/* ============================================================
   SIGIL LAW — mystical soul, technical spine
   ============================================================ */

:root {
  /* Arcane palette — deep ocean/teal + antique gold */
  --ink-900: #050d0c;   /* deepest — near black teal */
  --ink-800: #071614;   /* page base */
  --ink-700: #0a1f1b;   /* raised panels */
  --ink-600: #0f2a24;   /* borders / hover */
  --sea:     #16463c;   /* mid sea green */
  --sea-lt:  #2f7a67;   /* accent green */

  --gold:    #c9a24e;   /* primary gold (brightened brand gold) */
  --gold-lt: #e6cf92;   /* light gold highlight */
  --gold-dk: #8a6c2c;   /* deep brand gold — rules */

  --cream:   #ede6d3;   /* primary text */
  --cream-2: #c3c0b2;   /* secondary text */
  --muted:   #7f8a83;   /* tertiary / mono labels */

  --line: rgba(201, 162, 78, 0.16);
  --line-strong: rgba(201, 162, 78, 0.32);

  --serif: "Fraunces", Georgia, serif;
  --sans: "Space Grotesk", system-ui, sans-serif;
  --mono: "Space Mono", ui-monospace, monospace;

  --edge: clamp(1.25rem, 5vw, 6rem);
  --maxw: 1320px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--ink-800);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* layered ocean-depth glow */
  background-image:
    radial-gradient(120% 80% at 78% -10%, rgba(47,122,103,0.20), transparent 55%),
    radial-gradient(90% 70% at 8% 8%, rgba(201,162,78,0.07), transparent 50%),
    linear-gradient(180deg, #061311 0%, #071614 40%, #050d0c 100%);
  background-attachment: fixed;
}

::selection { background: var(--gold); color: var(--ink-900); }

.fx-vignette {
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  box-shadow: inset 0 0 220px 40px rgba(0,0,0,0.55);
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,0.02) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay; opacity: 0.5;
}

/* ---------- Typography primitives ---------- */
.label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex; gap: 0.6em; align-items: center;
}
.label__mark { color: var(--gold-dk); }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-2);
  display: inline-flex; align-items: center; gap: 0.7em;
}
.eyebrow__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px 2px rgba(201,162,78,0.6);
}

.idx { color: var(--gold-dk); font-family: var(--mono); }

/* ---------- Buttons ---------- */
.btn {
  --pad-y: 0.85em; --pad-x: 1.5em;
  display: inline-flex; align-items: center; gap: 0.6em;
  padding: var(--pad-y) var(--pad-x);
  font-family: var(--mono);
  font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; color: var(--cream);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: transparent;
  transition: all 0.4s var(--ease);
  cursor: pointer; white-space: nowrap;
}
.btn--gold {
  background: linear-gradient(180deg, var(--gold-lt), var(--gold));
  color: var(--ink-900); border-color: var(--gold);
  font-weight: 700;
  box-shadow: 0 6px 24px -8px rgba(201,162,78,0.5);
}
.btn--gold:hover {
  background: linear-gradient(180deg, #f2e2b6, var(--gold-lt));
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -8px rgba(201,162,78,0.65);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-lt); background: rgba(201,162,78,0.06); }
.btn--nav { padding: 0.6em 1.1em; font-size: 0.72rem; }
.btn--lg { --pad-y: 1.1em; --pad-x: 2.4em; font-size: 1rem; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 2rem;
  padding: 1.1rem var(--edge);
  background: rgba(6,17,15,0.55);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
  transition: background 0.4s var(--ease), padding 0.4s var(--ease);
}
.nav.is-scrolled { background: rgba(5,13,12,0.9); padding-top: 0.8rem; padding-bottom: 0.8rem; }

.nav__brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; margin-right: auto; }
.nav__mark { width: 34px; height: 34px; object-fit: contain; filter: drop-shadow(0 0 8px rgba(201,162,78,0.3)); }
.nav__wordmark {
  font-family: var(--serif); font-weight: 500;
  font-size: 1.32rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cream);
}

.nav__links { display: flex; gap: 2.2rem; margin-left: auto; }
.nav__links a {
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--cream-2); text-decoration: none;
  transition: color 0.3s var(--ease); position: relative;
}
.nav__links a .idx { font-size: 0.62rem; margin-right: 0.3em; opacity: 0.8; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 1px; width: 0;
  background: var(--gold); transition: width 0.35s var(--ease);
}
.nav__links a:hover { color: var(--gold-lt); }
.nav__links a:hover::after { width: 100%; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 6px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--gold); transition: 0.3s var(--ease); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; z-index: 2;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 8rem var(--edge) 3rem;
  max-width: var(--maxw); margin: 0 auto;
  overflow: hidden;
}
.hero__sigil {
  position: absolute; z-index: -1;
  right: -8%; top: 50%; transform: translateY(-50%);
  width: min(60vw, 720px); opacity: 0.06;
  filter: drop-shadow(0 0 40px rgba(201,162,78,0.2));
  animation: slow-spin 120s linear infinite;
  pointer-events: none;
}
@keyframes slow-spin { to { transform: translateY(-50%) rotate(360deg); } }

.hero__inner { max-width: 62rem; }
.eyebrow { margin-bottom: 2rem; }

.hero__title {
  font-family: var(--serif);
  font-weight: 340;
  font-size: clamp(2.9rem, 8vw, 7.2rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}
.hero__title span { display: block; }
.hero__title--accent em {
  font-style: italic; font-weight: 340;
  color: var(--gold);
  background: linear-gradient(180deg, var(--gold-lt), var(--gold-dk));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero__lede {
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  line-height: 1.65; color: var(--cream-2);
  max-width: 44rem; margin-bottom: 2.6rem;
}
.hero__lede strong { color: var(--cream); font-weight: 400; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero__meta {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; margin-top: 4.5rem;
  border-top: 1px solid var(--line);
  background: var(--line);
}
.hero__meta > div {
  background: var(--ink-800);
  padding: 1.3rem 1.2rem 1.1rem;
  display: flex; flex-direction: column; gap: 0.35rem;
}
.hero__meta-k { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.hero__meta-v { font-family: var(--serif); font-size: 1.15rem; color: var(--cream); letter-spacing: 0.01em; }

/* ============================================================
   SECTIONS (shared)
   ============================================================ */
.section {
  position: relative; z-index: 2;
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(5rem, 10vw, 9rem) var(--edge);
}
.section__head { margin-bottom: 3.5rem; }
.section__title {
  font-family: var(--serif); font-weight: 350;
  font-size: clamp(2rem, 4.6vw, 3.7rem);
  line-height: 1.04; letter-spacing: -0.015em;
  margin-top: 1.2rem; color: var(--cream);
}
.section__intro {
  margin-top: 1.4rem; max-width: 40rem;
  color: var(--cream-2); font-size: 1.05rem;
}

/* ---------- Practice grid ---------- */
.grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.card {
  position: relative;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 2.4rem 2rem 2.2rem;
  min-height: 16rem;
  transition: background 0.5s var(--ease);
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 100% at 100% 0%, rgba(47,122,103,0.14), transparent 60%);
  opacity: 0; transition: opacity 0.5s var(--ease);
}
.card:hover { background: var(--ink-700); }
.card:hover::before { opacity: 1; }
.card__idx {
  font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.1em;
  color: var(--gold-dk);
  display: block; margin-bottom: 1.6rem;
}
.card:hover .card__idx { color: var(--gold); }
.card__title {
  font-family: var(--serif); font-weight: 420; font-size: 1.55rem;
  line-height: 1.1; letter-spacing: -0.01em; color: var(--cream);
  margin-bottom: 0.9rem; position: relative;
}
.card__body { color: var(--cream-2); font-size: 0.96rem; line-height: 1.6; position: relative; }
.card__tags {
  list-style: none; display: flex; flex-wrap: wrap; gap: 0.45rem;
  margin-top: 1.4rem; position: relative;
}
.card__tags li {
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--line); border-radius: 100px;
  padding: 0.32em 0.75em;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about__layout {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.about__media { position: sticky; top: 6rem; }
.about__frame {
  position: relative; border: 1px solid var(--line-strong);
  padding: 10px; background: linear-gradient(160deg, rgba(201,162,78,0.08), transparent);
}
.about__frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  border: 1px solid rgba(201,162,78,0.18); margin: 4px;
}
.about__frame img { width: 100%; display: block; filter: saturate(0.94) contrast(1.02); }
.about__caption {
  margin-top: 1rem; font-family: var(--mono); font-size: 0.74rem;
  letter-spacing: 0.08em; color: var(--cream-2); text-transform: uppercase;
}
.about__caption .idx { margin-right: 0.4em; }

.about__prose { margin-top: 1.8rem; }
.about__prose p { color: var(--cream-2); font-size: 1.06rem; line-height: 1.75; margin-bottom: 1.2rem; }
.about__prose strong { color: var(--cream); font-weight: 400; }

.creds {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
  margin-top: 3rem; padding-top: 2.4rem; border-top: 1px solid var(--line);
}
.creds__h {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 1.1rem; font-weight: 400;
}
.creds ul { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.creds li { display: flex; flex-direction: column; gap: 0.15rem; line-height: 1.35; }
.creds li strong { font-weight: 400; color: var(--cream); font-size: 0.98rem; }
.creds li span { font-family: var(--mono); font-size: 0.72rem; color: var(--muted); letter-spacing: 0.03em; }
.creds li em { font-style: italic; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  text-align: center; overflow: hidden;
  border-top: 1px solid var(--line);
}
.contact__sigil {
  position: absolute; z-index: -1; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: min(70vw, 560px); opacity: 0.05;
  animation: slow-spin 140s linear infinite reverse;
  pointer-events: none;
}
@keyframes pulse-glow { 0%,100%{opacity:.05} 50%{opacity:.09} }
.contact__inner { max-width: 46rem; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.contact .label { margin-bottom: 1.6rem; }
.contact__title {
  font-family: var(--serif); font-weight: 350;
  font-size: clamp(2.4rem, 6vw, 5rem); line-height: 1.02; letter-spacing: -0.02em;
  margin-bottom: 1.4rem;
}
.contact__lede { color: var(--cream-2); font-size: 1.1rem; max-width: 34rem; margin-bottom: 2.6rem; }
.contact__alt {
  margin-top: 1.8rem; display: flex; align-items: center; gap: 1rem;
  font-family: var(--mono); font-size: 0.82rem; letter-spacing: 0.06em;
}
.contact__alt a { color: var(--cream-2); text-decoration: none; transition: color 0.3s var(--ease); }
.contact__alt a:hover { color: var(--gold-lt); }
.contact__sep { color: var(--gold-dk); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: relative; z-index: 2;
  border-top: 1px solid var(--line);
  padding: 3rem var(--edge);
  max-width: var(--maxw); margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 0.8rem; text-align: center;
}
.footer__brand { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.6rem; }
.footer__mark { width: 30px; height: 30px; opacity: 0.9; }
.footer__brand .nav__wordmark { font-size: 1.1rem; }
.footer__fine { font-family: var(--mono); font-size: 0.72rem; color: var(--muted); letter-spacing: 0.04em; max-width: 40rem; line-height: 1.7; }
.footer__disclaimer { color: #5c655f; }
.footer__copy { font-family: var(--mono); font-size: 0.7rem; color: var(--muted); margin-top: 0.6rem; letter-spacing: 0.06em; }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__sigil, .contact__sigil { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .about__layout { grid-template-columns: 1fr; }
  .about__media { position: static; max-width: 26rem; }
}
@media (max-width: 720px) {
  .nav__links, .btn--nav { display: none; }
  .nav__toggle { display: flex; }
  .nav.is-open .nav__links {
    display: flex; flex-direction: column; gap: 1.4rem;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(5,13,12,0.97); backdrop-filter: blur(14px);
    padding: 1.8rem var(--edge) 2.2rem; border-bottom: 1px solid var(--line);
  }
  .nav.is-open .nav__toggle span:first-child { transform: translateY(7px) rotate(45deg); }
  .nav.is-open .nav__toggle span:last-child { transform: translateY(-7px) rotate(-45deg); }
  .grid { grid-template-columns: 1fr; }
  .hero__meta { grid-template-columns: repeat(2, 1fr); }
  .creds { grid-template-columns: 1fr; gap: 1.8rem; }
  .hero { min-height: auto; padding-top: 7rem; }
}
@media (max-width: 420px) {
  .hero__meta { grid-template-columns: 1fr; }
  .contact__alt { flex-direction: column; gap: 0.5rem; }
}

/* ---- fixes 2026-10 ---- */
.card__body + .card__body { margin-top: 0.9rem; }
@media (max-width: 720px) {
  .nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
}
.practice__tags { margin-top: 1.6rem; }
.practice__tags li { font-size: 0.72rem; color: var(--gold-lt); background: #4a3a18; border-color: var(--gold-dk); }
.creds { grid-template-columns: 1fr; }
@media (min-width: 721px) { .creds { grid-template-columns: 1.4fr 1fr; gap: 2.5rem; } }
.about__prose a { color: var(--gold); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 0.22em; transition: color 0.3s var(--ease), text-decoration-color 0.3s var(--ease); }
.about__prose a:hover { color: var(--gold-lt); text-decoration-color: var(--gold-lt); }
.industry__tags { margin-top: 0.6rem; }
.industry__tags li { color: var(--gold-lt); background: var(--sea); border-color: var(--sea-lt); }

/* ---- brand subline ---- */
.nav__brandtext { display: flex; flex-direction: column; gap: 0.15rem; line-height: 1; }
.nav__sub { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cream-2); }

/* ---- tag rows with mother tags + unfurl ---- */
.tagrow { display: flex; align-items: center; flex-wrap: wrap; gap: 0.45rem; margin-top: 1.6rem; }
.tagrow + .tagrow { margin-top: 0.6rem; }
.tagrow .tagrow__list { margin-top: 0; }
.tagrow__mother {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold); background: transparent; border: 1px solid transparent;
  border-radius: 100px; padding: 0.32em 0.85em; position: relative; z-index: 1;
}
.tagrow__list li {
  clip-path: inset(0 100% 0 0 round 100px); opacity: 0; transform: translateX(-0.8rem);
  --d: calc(0.35s + var(--i, 0) * 0.12s);
  transition: clip-path 0.7s var(--ease) var(--d), opacity 0.5s var(--ease) var(--d),
              transform 0.7s var(--ease) var(--d), filter 0.25s ease 0s;
}
.tagrow.is-in .tagrow__list li { clip-path: inset(0 0 0 0 round 100px); opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .tagrow__list li { clip-path: none; opacity: 1; transform: none; transition: none; }
}
.tagrow--industries .tagrow__mother { color: #5fb39c; }

/* ---- practice sub-sections ---- */
.practice__group + .practice__group { margin-top: 4.5rem; }
.practice__subtitle {
  font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  color: var(--cream); letter-spacing: -0.01em; margin-bottom: 1.6rem;
}
@media (min-width: 961px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
.tagrow__list li:hover { filter: brightness(1.3); }
.practice__subtitle em { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 0.2em 0.9em 0.28em; }
