/* ==========================================================================
   DIA LAW ASSOCIATES — site styles
   Design note: the site is built around the one thing a chamber is actually
   allowed to display — its name-board. Ink navy (court ink), Chennai granite
   grey, aged brass. Nothing decorative that doesn't carry information.
   ========================================================================== */

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
  --ink:        #0F1C2B;
  --ink-2:      #17293C;
  --ink-3:      #24394F;
  --slate:      #4C5F71;
  --muted:      #6C7D8C;
  --stone:      #E3E8E9;
  --stone-2:    #D5DDDF;
  --paper:      #FBFBF9;
  --brass:      #86672D;
  --brass-lite: #C8AA6C;

  --line:        rgba(15, 28, 43, .14);
  --line-strong: rgba(15, 28, 43, .30);
  --line-dark:   rgba(200, 170, 108, .28);

  --f-display: "Newsreader", Georgia, "Times New Roman", serif;
  --f-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --shell: min(1140px, 100% - 2.5rem);
  --gap: clamp(2.5rem, 6vw, 5.5rem);

  --t-eyebrow: 0.72rem;
  --t-small:   0.875rem;
  --t-body:    clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --t-lead:    clamp(1.075rem, 1rem + 0.4vw, 1.25rem);
  --t-h3:      clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem);
  --t-h2:      clamp(1.7rem, 1.35rem + 1.6vw, 2.6rem);
  --t-h1:      clamp(2.15rem, 1.5rem + 3.1vw, 3.9rem);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 2. Reset ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--t-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.14; letter-spacing: -0.015em; font-family: var(--f-display); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }

.shell { width: var(--shell); margin-inline: auto; }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: var(--brass-lite);
  padding: .75rem 1.25rem; font-family: var(--f-mono); font-size: var(--t-small);
}
.skip:focus { left: 0; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

/* ---------- 3. Repeated type devices ------------------------------------- */
.eyebrow {
  font-family: var(--f-mono);
  font-size: var(--t-eyebrow);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brass);
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 0 0 1.5rem;
}
.eyebrow::after {
  content: ""; flex: 1 1 auto; height: 1px; background: var(--line-strong); max-width: 8rem;
}
.eyebrow--dark { color: var(--brass-lite); }
.eyebrow--dark::after { background: var(--line-dark); }

.lead { font-size: var(--t-lead); color: var(--slate); line-height: 1.6; max-width: 46ch; }
.prose p + p { margin-top: 1.1rem; }
.prose { color: var(--slate); max-width: 62ch; }

.section { padding-block: var(--gap); }
.section--ink { background: var(--ink); color: var(--stone); }
.section--paper { background: var(--paper); }
.section--line { border-top: 1px solid var(--line); }
.section-head { max-width: 60ch; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head h2 { font-size: var(--t-h2); }
.section-head p { margin-top: 1rem; color: var(--slate); }
.section--ink .section-head p { color: #A9B8C4; }

/* ---------- 4. Buttons --------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--f-mono); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  padding: .95rem 1.5rem; border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { background: var(--ink-3); border-color: var(--ink-3); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: transparent; border-color: var(--ink); color: var(--ink); }
.section--ink .btn--ghost:hover { background: rgba(200, 170, 108, .12); }
.btn--brass { background: var(--brass-lite); border-color: var(--brass-lite); color: var(--ink); }
.btn--brass:hover { background: #D9BE84; border-color: #D9BE84; }
.btn--wide { width: 100%; justify-content: center; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* ---------- 5. Header ---------------------------------------------------- */
.masthead {
  position: sticky; top: 0; z-index: 40;
  background: rgba(227, 232, 233, .88);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.masthead__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .85rem; }
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; }
.brand__mark {
  width: 2.4rem; height: 2.4rem; flex: none;
  display: grid; place-items: center;
  background: var(--ink); color: var(--brass-lite);
  font-family: var(--f-display); font-size: .82rem; letter-spacing: .06em;
}
.brand__name { font-family: var(--f-display); font-size: 1.06rem; letter-spacing: .01em; line-height: 1.1; }
.brand__sub { display: block; font-family: var(--f-mono); font-size: .58rem; letter-spacing: .2em; text-transform: uppercase; color: var(--brass); margin-top: .2rem; }

.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a {
  font-size: .9rem; text-decoration: none; color: var(--ink-2);
  padding-block: .25rem; border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.nav a:hover { border-bottom-color: var(--brass); }
.nav a[aria-current="page"] { border-bottom-color: var(--brass); color: var(--ink); }
.nav__call {
  font-family: var(--f-mono); font-size: .78rem; letter-spacing: .04em;
  border: 1px solid var(--line-strong); padding: .55rem .9rem;
}
.nav__call:hover { border-bottom-color: var(--line-strong); background: var(--ink); color: var(--paper); border-color: var(--ink); }

.burger { display: none; background: none; border: 1px solid var(--line-strong); padding: .55rem .7rem; cursor: pointer; }
.burger span { display: block; width: 18px; height: 1.5px; background: var(--ink); margin: 4px 0; transition: transform .25s var(--ease), opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

@media (max-width: 800px) {
  .burger { display: block; }
  .nav {
    position: absolute; inset: 100% 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: .5rem 1.25rem 1.25rem;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding-block: .85rem; border-bottom: 1px solid var(--line); }
  .nav__call { text-align: center; margin-top: .85rem; border: 1px solid var(--ink); }
}

/* ---------- 6. Hero ------------------------------------------------------ */
.hero { padding-block: clamp(3rem, 7vw, 6rem) var(--gap); }
.hero__grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: 1.05fr .95fr; } }
.hero h1 { font-size: var(--t-h1); letter-spacing: -0.025em; }
.hero h1 em { font-style: italic; font-weight: 400; color: var(--brass); }
.hero .lead { margin-top: 1.5rem; }
.hero__meta {
  margin-top: 2.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem;
  font-family: var(--f-mono); font-size: .74rem; letter-spacing: .09em; text-transform: uppercase; color: var(--muted);
}

/* The name-board — the signature element */
.plate {
  position: relative;
  background: linear-gradient(158deg, #1D3145 0%, var(--ink) 46%, #0A141F 100%);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  box-shadow: 0 26px 60px -28px rgba(15, 28, 43, .65), 0 2px 0 rgba(255,255,255,.5);
  color: var(--stone);
}
.plate::before {
  content: ""; position: absolute; inset: 10px; border: 1px solid var(--line-dark); pointer-events: none;
}
.plate::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: repeating-linear-gradient(112deg, rgba(255,255,255,.028) 0 2px, transparent 2px 5px);
}
.plate__inner { position: relative; z-index: 1; text-align: center; }
.plate__rule { height: 1px; background: linear-gradient(90deg, transparent, var(--brass-lite), transparent); margin: 1.15rem auto; width: 62%; }
.plate__name {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(1.5rem, 1.05rem + 2vw, 2.35rem); line-height: 1.08; letter-spacing: .005em;
  color: var(--brass-lite);
  text-shadow: 0 1px 0 rgba(0,0,0,.6), 0 -1px 0 rgba(255,255,255,.06);
}
.plate__role { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: #93A6B4; }
.plate__body { font-size: .9rem; color: #A9BAC7; line-height: 1.75; }
.plate__body strong { color: var(--stone); font-weight: 500; }
.plate__foot { margin-top: 1.35rem; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brass-lite); }
.plate a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--line-dark); }
.plate a:hover { border-bottom-color: var(--brass-lite); }

/* ---------- 7. Practice areas ------------------------------------------- */
.grid-areas { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 640px) { .grid-areas { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-areas { grid-template-columns: repeat(3, 1fr); } }
.grid-areas--2 { grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid-areas--2 { grid-template-columns: repeat(2, 1fr); } }
.area {
  background: var(--paper); padding: clamp(1.5rem, 3vw, 2.1rem);
  transition: background .3s var(--ease);
}
.area:hover { background: #fff; }
.area__tag { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--brass); }
.area h3 { font-size: var(--t-h3); margin: .85rem 0 .7rem; }
.area p { font-size: .95rem; color: var(--slate); line-height: 1.68; }
.area ul { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.area li {
  font-family: var(--f-mono); font-size: .68rem; letter-spacing: .05em;
  color: var(--slate); border: 1px solid var(--line); padding: .28rem .55rem;
}

/* ---------- 8. Process (a real sequence, so it is numbered) -------------- */
.steps { display: grid; gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { background: var(--ink); padding: clamp(1.5rem, 3vw, 2rem); }
.step__no { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .18em; color: var(--brass-lite); }
.step h3 { font-size: 1.12rem; margin: .9rem 0 .6rem; color: var(--stone); }
.step p { font-size: .9rem; color: #9EAFBC; line-height: 1.7; }

/* ---------- 9. Split / about -------------------------------------------- */
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .split--narrow { grid-template-columns: 1.2fr .8fr; } }

.facts { border-top: 1px solid var(--line); }
.facts div {
  display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem;
  padding: .95rem 0; border-bottom: 1px solid var(--line);
}
.facts dt { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .13em; text-transform: uppercase; color: var(--brass); padding-top: .28rem; }
.facts dd { margin: 0; font-size: .96rem; color: var(--ink-2); }
@media (max-width: 520px) { .facts div { grid-template-columns: 1fr; gap: .2rem; } }

/* ---------- 10. Contact -------------------------------------------------- */
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brass); margin-bottom: .45rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: .96rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: 0;
  padding: .8rem .9rem; transition: border-color .2s var(--ease);
}
.field textarea { min-height: 8.5rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brass); outline: none; }
.form-note { font-size: .8rem; color: var(--muted); margin-top: 1rem; line-height: 1.6; }

.hours { width: 100%; border-collapse: collapse; font-size: .93rem; }
.hours th, .hours td { text-align: left; padding: .6rem 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.hours th { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.hours td { text-align: right; color: var(--ink-2); }
.hours tr.is-closed td { color: var(--muted); }

/* ---------- 11. Footer --------------------------------------------------- */
.foot { background: var(--ink); color: #9EAFBC; padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.foot__grid { display: grid; gap: 2.5rem; }
@media (min-width: 820px) { .foot__grid { grid-template-columns: 1.4fr .8fr .8fr 1.2fr; } }
.foot h4 { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--brass-lite); font-weight: 400; margin-bottom: 1rem; }
.foot a { color: #BCCAD5; text-decoration: none; }
.foot a:hover { color: var(--brass-lite); }
.foot li { margin-bottom: .55rem; font-size: .92rem; }
.foot__brand .plate__name { font-size: 1.35rem; }
.foot__note {
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line-dark);
  display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between;
  font-size: .78rem; color: #7D8F9C;
}
.foot__disclaimer { font-size: .8rem; line-height: 1.7; color: #8397A5; max-width: 100%; margin-top: 1.5rem; }

/* ---------- 12. Bar Council disclaimer gate ------------------------------ */
.gate {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(9, 17, 26, .82);
  backdrop-filter: blur(4px);
  display: grid; place-items: center; padding: 1.25rem;
}
.gate[hidden] { display: none; }
.gate__box {
  background: var(--paper); max-width: 44rem; width: 100%;
  max-height: 88vh; overflow-y: auto;
  padding: clamp(1.6rem, 4vw, 2.75rem);
  border-top: 3px solid var(--brass);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.7);
}
.gate__box h2 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.75rem); margin-bottom: 1.25rem; }
.gate__box p { font-size: .93rem; color: var(--slate); line-height: 1.7; }
.gate__box li { font-size: .93rem; color: var(--slate); line-height: 1.7; padding-left: 1.4rem; position: relative; margin-bottom: .6rem; }
.gate__box li::before { content: ""; position: absolute; left: 0; top: .72em; width: .5rem; height: 1px; background: var(--brass); }
.gate__list { margin: 1.25rem 0; }
.gate__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* ---------- 13. Motion --------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal { opacity: 1; }
.reveal-1 { transition-delay: .08s; }
.reveal-2 { transition-delay: .16s; }
.reveal-3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 14. Print ---------------------------------------------------- */
@media print {
  .masthead, .gate, .btn-row, .burger { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ==========================================================================
   PART TWO — dynamic components
   ========================================================================== */

/* ---- Scroll progress ---------------------------------------------------- */
.progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 60;
  transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--brass), var(--brass-lite));
  pointer-events: none;
}

/* ---- Open / closed chip ------------------------------------------------- */
.chip {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--f-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--slate); white-space: nowrap;
}
.chip__dot { width: .45rem; height: .45rem; border-radius: 50%; background: var(--muted); flex: none; }
.chip.is-open .chip__dot { background: #3F8F5B; box-shadow: 0 0 0 3px rgba(63,143,91,.18); }
.chip.is-open { color: #2F6E45; }
.chip--dark { color: #9EAFBC; }
.chip--dark.is-open { color: var(--brass-lite); }

/* ---- Hero atmosphere ---------------------------------------------------- */
.hero { position: relative; overflow: hidden; }
.hero__bg {
  position: absolute; inset: -10% -5%; z-index: 0; pointer-events: none; opacity: .5;
  background-image:
    repeating-linear-gradient(to bottom, transparent 0 31px, rgba(15,28,43,.055) 31px 32px),
    repeating-linear-gradient(to right, transparent 0 31px, rgba(15,28,43,.035) 31px 32px);
  mask-image: radial-gradient(120% 90% at 70% 20%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 90% at 70% 20%, #000 20%, transparent 78%);
  animation: drift 44s linear infinite;
}
@keyframes drift { to { background-position: 0 -64px, -64px 0; } }
.hero__grid, .hero .shell { position: relative; z-index: 1; }

/* ---- Rotating chamber seal --------------------------------------------- */
.seal { position: absolute; right: -1.6rem; top: -1.6rem; width: 8.5rem; height: 8.5rem; z-index: 0; }
.seal__ring { animation: spin 46s linear infinite; transform-origin: 50% 50%; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 640px) { .seal { width: 6rem; height: 6rem; right: -.9rem; top: -.9rem; } }

/* engraved rule that draws itself in */
.draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.is-in .draw, .plate .draw { animation: draw 1.6s var(--ease) .3s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---- Marquee ------------------------------------------------------------ */
.marquee {
  overflow: hidden; border-block: 1px solid var(--line); background: var(--paper);
  padding-block: .9rem; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; width: max-content; gap: 2.5rem; animation: slide 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee span {
  font-family: var(--f-mono); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--slate);
  display: flex; align-items: center; gap: 2.5rem;
}
.marquee span::after { content: "◆"; color: var(--brass); font-size: .5rem; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---- Practice explorer (tabs) ------------------------------------------ */
.explorer { display: grid; gap: 0; border: 1px solid var(--line); background: var(--paper); }
@media (min-width: 900px) { .explorer { grid-template-columns: 17rem 1fr; } }
.explorer__list { border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .explorer__list { border-bottom: 0; border-right: 1px solid var(--line); } }
.explorer__btn {
  display: flex; align-items: center; gap: .85rem; width: 100%; text-align: left;
  background: none; border: 0; border-bottom: 1px solid var(--line); cursor: pointer;
  padding: 1rem 1.15rem; color: var(--ink-2); font-size: .95rem;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.explorer__btn:last-child { border-bottom: 0; }
.explorer__btn svg { width: 1.35rem; height: 1.35rem; flex: none; color: var(--brass); opacity: .75; }
.explorer__btn:hover { background: #fff; }
.explorer__btn[aria-selected="true"] { background: var(--ink); color: var(--stone); }
.explorer__btn[aria-selected="true"] svg { color: var(--brass-lite); opacity: 1; }
.explorer__panel { padding: clamp(1.5rem, 4vw, 2.75rem); }
.explorer__panel[hidden] { display: none; }
.explorer__panel h3 { font-size: var(--t-h2); margin-bottom: .9rem; }
.explorer__panel .prose { margin-bottom: 1.6rem; }
.explorer__cols { display: grid; gap: 1.5rem 2.5rem; }
@media (min-width: 700px) { .explorer__cols { grid-template-columns: 1fr 1fr; } }
.ticks li { padding-left: 1.35rem; position: relative; margin-bottom: .6rem; font-size: .93rem; color: var(--slate); line-height: 1.6; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .68em; width: .55rem; height: 1px; background: var(--brass); }

/* ---- Matter router (wizard) -------------------------------------------- */
.router {
  background: var(--ink); color: var(--stone); border: 1px solid var(--line-dark);
  padding: clamp(1.6rem, 4vw, 2.75rem); position: relative; overflow: hidden;
}
.router__rail { display: flex; gap: .4rem; margin-bottom: 1.75rem; }
.router__rail i { height: 2px; flex: 1; background: rgba(200,170,108,.22); transition: background .35s var(--ease); }
.router__rail i.is-done { background: var(--brass-lite); }
.router__step[hidden] { display: none; }
.router__q { font-family: var(--f-display); font-size: clamp(1.3rem,1.1rem + 1vw,1.85rem); margin-bottom: 1.35rem; }
.router__opts { display: grid; gap: .6rem; }
@media (min-width: 620px) { .router__opts { grid-template-columns: 1fr 1fr; } }
.router__opt {
  text-align: left; background: rgba(255,255,255,.04); color: var(--stone);
  border: 1px solid rgba(200,170,108,.28); padding: .95rem 1.1rem; cursor: pointer;
  font-size: .95rem; transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.router__opt:hover { background: rgba(200,170,108,.14); border-color: var(--brass-lite); transform: translateY(-1px); }
.router__back {
  background: none; border: 0; color: #9EAFBC; cursor: pointer; margin-top: 1.4rem;
  font-family: var(--f-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
}
.router__back:hover { color: var(--brass-lite); }
.router__result { border-top: 1px solid var(--line-dark); padding-top: 1.5rem; }
.router__result h4 { font-size: 1.5rem; color: var(--brass-lite); margin-bottom: .8rem; }
.router__result p { color: #A9BAC7; font-size: .95rem; }
.router__bring { margin-top: 1.4rem; }
.router__bring h5 { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brass-lite); font-weight: 400; margin: 0 0 .8rem; }
.router__bring li { padding-left: 1.35rem; position: relative; margin-bottom: .5rem; font-size: .92rem; color: #A9BAC7; }
.router__bring li::before { content: ""; position: absolute; left: 0; top: .7em; width: .55rem; height: 1px; background: var(--brass-lite); }

/* ---- Accordion ---------------------------------------------------------- */
.acc { border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__btn {
  width: 100%; display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem;
  background: none; border: 0; cursor: pointer; padding: 1.35rem 0; text-align: left;
  font-family: var(--f-display); font-size: var(--t-h3); color: var(--ink); line-height: 1.25;
}
.acc__btn:hover { color: var(--brass); }
.acc__sign { flex: none; width: 1rem; height: 1rem; position: relative; margin-top: .45rem; }
.acc__sign::before, .acc__sign::after { content: ""; position: absolute; background: var(--brass); transition: transform .3s var(--ease); }
.acc__sign::before { inset: 50% 0 auto 0; height: 1px; }
.acc__sign::after { inset: 0 50% 0 auto; width: 1px; }
.acc__btn[aria-expanded="true"] .acc__sign::after { transform: scaleY(0); }
.acc__panel { overflow: hidden; transition: height .35s var(--ease); }
.js .acc__panel { height: 0; }
.acc__panel > div { padding-bottom: 1.5rem; color: var(--slate); font-size: .96rem; line-height: 1.7; max-width: 68ch; }

/* ---- Compliance calendar ------------------------------------------------ */
.cal__filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.cal__filter {
  font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
  background: none; border: 1px solid var(--line-strong); padding: .55rem .9rem; cursor: pointer; color: var(--slate);
  transition: all .2s var(--ease);
}
.cal__filter:hover { border-color: var(--ink); color: var(--ink); }
.cal__filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.cal__list { border-top: 1px solid var(--line); }
.cal__row {
  display: grid; grid-template-columns: 7rem 1fr auto; gap: 1rem 1.5rem; align-items: baseline;
  padding: 1.1rem 0; border-bottom: 1px solid var(--line);
}
.cal__row[hidden] { display: none; }
.cal__when { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .06em; color: var(--brass); }
.cal__what strong { display: block; font-weight: 500; font-size: 1rem; color: var(--ink); margin-bottom: .25rem; }
.cal__what span { font-size: .89rem; color: var(--slate); }
.cal__in { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.cal__row.is-soon { background: linear-gradient(90deg, rgba(200,170,108,.16), transparent 55%); }
.cal__row.is-soon .cal__in { color: var(--brass); }
@media (max-width: 720px) {
  .cal__row { grid-template-columns: 1fr auto; }
  .cal__when { grid-column: 1 / -1; }
}

/* ---- Interactive checklist ---------------------------------------------- */
.check { border: 1px solid var(--line); background: var(--paper); padding: clamp(1.4rem, 3vw, 2rem); }
.check + .check { margin-top: 1.5rem; }
.check__head { display: flex; flex-wrap: wrap; gap: 1rem; align-items: baseline; justify-content: space-between; margin-bottom: 1.35rem; }
.check__head h3 { font-size: var(--t-h3); }
.check__count { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; color: var(--brass); }
.check__bar { height: 2px; background: var(--stone-2); margin-bottom: 1.35rem; }
.check__bar i { display: block; height: 100%; width: 0; background: var(--brass); transition: width .35s var(--ease); }
.check label {
  display: flex; gap: .85rem; align-items: flex-start; padding: .6rem 0; cursor: pointer;
  font-size: .95rem; color: var(--slate); line-height: 1.6; border-bottom: 1px solid var(--line);
}
.check label:last-of-type { border-bottom: 0; }
.check input { appearance: none; -webkit-appearance: none; margin: .3rem 0 0; flex: none;
  width: 1.05rem; height: 1.05rem; border: 1px solid var(--line-strong); background: #fff; cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease); }
.check input:checked { background: var(--brass); border-color: var(--brass); }
.check input:checked + span { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-strong); }
.check__actions { margin-top: 1.4rem; display: flex; gap: .75rem; flex-wrap: wrap; }
.check__actions button {
  font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
  background: none; border: 1px solid var(--line-strong); padding: .55rem .9rem; cursor: pointer; color: var(--slate);
}
.check__actions button:hover { border-color: var(--ink); color: var(--ink); }

/* ---- Scroll-linked timeline -------------------------------------------- */
.tl { position: relative; padding-left: 2.5rem; }
.tl__spine { position: absolute; left: .55rem; top: .5rem; bottom: .5rem; width: 1px; background: var(--line-dark); }
.tl__spine i { display: block; width: 100%; height: 0; background: var(--brass-lite); transition: height .2s linear; }
.tl__item { position: relative; padding-bottom: 2.5rem; }
.tl__item:last-child { padding-bottom: 0; }
.tl__dot {
  position: absolute; left: -2.5rem; top: .35rem; width: 1.15rem; height: 1.15rem;
  border: 1px solid var(--line-dark); background: var(--ink); border-radius: 50%;
  display: grid; place-items: center; transition: border-color .3s var(--ease);
}
.tl__dot::after { content: ""; width: .4rem; height: .4rem; border-radius: 50%; background: var(--line-dark); transition: background .3s var(--ease); }
.tl__item.is-in .tl__dot { border-color: var(--brass-lite); }
.tl__item.is-in .tl__dot::after { background: var(--brass-lite); }
.tl__no { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .16em; color: var(--brass-lite); }
.tl__item h3 { font-size: 1.25rem; color: var(--stone); margin: .6rem 0 .5rem; }
.tl__item p { font-size: .94rem; color: #9EAFBC; line-height: 1.7; max-width: 46ch; }

/* ---- Notes / articles --------------------------------------------------- */
.notes { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 780px) { .notes { grid-template-columns: repeat(3, 1fr); } }
.note {
  background: var(--paper); padding: clamp(1.5rem, 3vw, 2rem); text-decoration: none; display: flex; flex-direction: column;
  transition: background .3s var(--ease);
}
.note:hover { background: #fff; }
.note__kicker { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brass); }
.note h3 { font-size: var(--t-h3); margin: .9rem 0 .7rem; }
.note p { font-size: .93rem; color: var(--slate); line-height: 1.65; flex: 1; }
.note__more { margin-top: 1.25rem; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.note:hover .note__more { color: var(--brass); }

.article { max-width: 68ch; }
.article h2 { font-size: var(--t-h3); margin: 2.5rem 0 1rem; color: var(--ink); }
.article p { color: var(--slate); line-height: 1.75; margin-bottom: 1.1rem; }
.article ol { counter-reset: n; margin: 1.2rem 0; }
.article ol li { counter-increment: n; position: relative; padding-left: 2.2rem; margin-bottom: .9rem; color: var(--slate); line-height: 1.7; }
.article ol li::before {
  content: counter(n, decimal-leading-zero); position: absolute; left: 0; top: .1rem;
  font-family: var(--f-mono); font-size: .74rem; color: var(--brass);
}
.article blockquote {
  margin: 2rem 0; padding: 1.25rem 0 1.25rem 1.5rem; border-left: 2px solid var(--brass);
  font-family: var(--f-display); font-size: 1.15rem; line-height: 1.5; color: var(--ink-2);
}
.callout {
  border: 1px solid var(--line); background: var(--paper); padding: 1.25rem 1.4rem; margin: 2rem 0;
  font-size: .9rem; color: var(--slate); line-height: 1.7;
}
.callout strong { color: var(--ink); font-weight: 500; }

/* ---- Map ---------------------------------------------------------------- */
.map { border: 1px solid var(--line); filter: grayscale(1) contrast(1.05); background: var(--stone-2); }
.map iframe { display: block; width: 100%; height: 340px; border: 0; }

/* ---- Counter-free stat strip (facts, not claims) ----------------------- */
.strip { display: grid; gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); }
@media (min-width: 640px) { .strip { grid-template-columns: repeat(4, 1fr); } }
.strip div { background: var(--ink); padding: 1.4rem 1.25rem; text-align: center; }
.strip dt { font-family: var(--f-mono); font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: #8397A5; }
.strip dd { margin: .5rem 0 0; font-family: var(--f-display); font-size: 1.35rem; color: var(--brass-lite); }

@media (prefers-reduced-motion: reduce) {
  .seal__ring, .marquee__track, .hero__bg { animation: none !important; }
  .draw { stroke-dashoffset: 0 !important; }
}

/* ==========================================================================
   PART THREE — the globe, the name-board and the live elements
   ========================================================================== */

/* ---- Canvas globe ------------------------------------------------------- */
.globe-wrap {
  position: relative; width: 100%; max-width: 27rem; margin-inline: auto; aspect-ratio: 1 / 1;
}
.globe-wrap::before {
  content: ""; position: absolute; inset: 8%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 34% 30%, rgba(200,170,108,.16), rgba(15,28,43,.86) 62%, transparent 72%);
}
.globe-wrap canvas { position: relative; width: 100%; height: 100%; display: block; }
.globe-ring { position: absolute; inset: -4%; pointer-events: none; z-index: 1; }
.globe-ring .spin-rev { animation: spin 76s linear infinite reverse; transform-origin: 50% 50%; }
.globe-cap {
  position: absolute; left: 50%; bottom: -.35rem; transform: translateX(-50%);
  font-family: var(--f-mono); font-size: .62rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--brass); white-space: nowrap; z-index: 2;
}
@media (max-width: 899px) { .globe-wrap { max-width: 21rem; } }

/* ---- Cycling line ------------------------------------------------------- */
.cycler {
  display: flex; align-items: baseline; gap: .6rem; margin-top: 2rem;
  font-family: var(--f-mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.cycler b {
  color: var(--brass); font-weight: 400; display: inline-block;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.cycler b.is-out { opacity: 0; transform: translateY(-6px); }

/* ---- Live clock --------------------------------------------------------- */
.clock {
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.clock b { font-weight: 500; color: var(--brass); }

/* ---- Name-board band ---------------------------------------------------- */
.board {
  position: relative; overflow: hidden;
  background: linear-gradient(158deg, #1D3145 0%, var(--ink) 46%, #0A141F 100%);
  padding: clamp(2rem, 5vw, 3.25rem) clamp(1.25rem, 4vw, 3rem);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.board::before { content: ""; position: absolute; inset: 12px; border: 1px solid var(--line-dark); pointer-events: none; }
.board::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .45;
  background: repeating-linear-gradient(112deg, rgba(255,255,255,.03) 0 2px, transparent 2px 5px);
}
.board__inner { position: relative; z-index: 1; text-align: center; }
.board__name {
  font-family: var(--f-display); font-size: clamp(1.6rem, 1.1rem + 2.4vw, 2.8rem); font-weight: 500;
  color: var(--brass-lite); letter-spacing: .01em; line-height: 1.1;
  text-shadow: 0 1px 0 rgba(0,0,0,.6);
}
.board__role { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .24em; text-transform: uppercase; color: #93A6B4; }
.board__rule { height: 1px; width: min(28rem, 70%); margin: 1.2rem auto; background: linear-gradient(90deg, transparent, var(--brass-lite), transparent); }
.board__grid { display: grid; gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); margin-top: 2rem; }
@media (min-width: 700px) { .board__grid { grid-template-columns: repeat(3, 1fr); } }
.board__cell { background: rgba(10,20,31,.55); padding: 1.35rem 1.25rem; }
.board__cell dt { font-family: var(--f-mono); font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--brass-lite); }
.board__cell dd { margin: .6rem 0 0; font-size: .95rem; color: #BCCAD5; line-height: 1.65; }
.board__cell a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--line-dark); }
.board__cell a:hover { color: var(--brass-lite); border-bottom-color: var(--brass-lite); }

/* ---- Pointer tilt ------------------------------------------------------- */
.tilt { transition: transform .4s var(--ease); transform-style: preserve-3d; }
.tilt.is-tilting { transition: transform .08s linear; }

/* ---- Next-deadline readout --------------------------------------------- */
.nextdue {
  display: flex; align-items: baseline; gap: 1.25rem; flex-wrap: wrap;
  border: 1px solid var(--line); background: var(--paper); padding: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 2.5rem;
}
.nextdue__n {
  font-family: var(--f-display); font-size: clamp(3.2rem, 2rem + 6vw, 5.5rem); line-height: .9;
  color: var(--brass); font-variant-numeric: tabular-nums;
}
.nextdue__u { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.nextdue__what { flex: 1 1 16rem; }
.nextdue__what strong { display: block; font-family: var(--f-display); font-size: var(--t-h3); color: var(--ink); margin-bottom: .35rem; }
.nextdue__what span { font-size: .9rem; color: var(--slate); }

@media (prefers-reduced-motion: reduce) {
  .globe-ring .spin-rev { animation: none !important; }
  .tilt { transform: none !important; }
}
