/* ==========================================================================
   The Opus Group — design system
   Photography-led and human. Warm cream ground, true black, antique gold.
   Magazine layouts: overlapping crops, framed captions, generous rag.
   ========================================================================== */

/* --- 1. Tokens ---------------------------------------------------------- */

:root {
  /* Ground — warm, light. Never use ink as the page ground. */
  --paper: #f6f0e5;
  --paper-2: #efe7d8;
  --paper-3: #e4d9c6;
  --white: #fffdf9;

  /* Black — true and warm, used in bands and type, not as the page ground */
  --ink: #0e0d0b;
  --ink-soft: #1c1a16;

  /* Gold — deep antique gold that holds against cream */
  --gold: #9a7328;
  --gold-bright: #c8a04a;
  --gold-pale: #e8d5a8;

  /* Text */
  --text: #17150f;
  --text-2: #5c5344;
  --text-3: #8b7f6b;
  --on-ink: #f2ece0;
  --on-ink-2: #b3a892;

  --line: #d8ccb6;
  --line-ink: rgba(242, 236, 224, 0.18);

  /* Type */
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Karla", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

  --fs-display: clamp(2.7rem, 1.1rem + 6vw, 6.4rem);
  --fs-h1: clamp(2rem, 1.25rem + 2.9vw, 3.5rem);
  --fs-h2: clamp(1.6rem, 1.15rem + 1.9vw, 2.5rem);
  --fs-h3: clamp(1.15rem, 1rem + 0.65vw, 1.45rem);
  --fs-lead: clamp(1.06rem, 1rem + 0.4vw, 1.3rem);
  --fs-sm: 0.945rem;
  --fs-xs: 0.84rem;
  --fs-label: 0.72rem;

  --gutter: clamp(1.15rem, 0.5rem + 2.6vw, 3.5rem);
  --section-y: clamp(4.5rem, 2.5rem + 7vw, 9.5rem);
  --maxw: 1300px;
  --header-h: 112px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 3px;
}

/* --- 2. Reset ----------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; }

img, video, svg { display: block; max-width: 100%; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-variation-settings: "SOFT" 30, "WONK" 1, "opsz" 40;
  line-height: 1.06;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }

::selection { background: var(--gold-pale); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 300;
  padding: 0.75rem 1.2rem; background: var(--ink); color: var(--on-ink);
  font-size: var(--fs-xs);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* --- 3. Layout ---------------------------------------------------------- */

.shell { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.shell--narrow { max-width: 940px; }

.section { position: relative; padding-block: var(--section-y); }
.section--tight { padding-block: clamp(3rem, 2rem + 4vw, 6rem); }
.section--paper-2 { background: var(--paper-2); }

/* Black band — used sparingly so the page stays light overall */
.section--ink { background: var(--ink); color: var(--on-ink); }
.section--ink h1, .section--ink h2, .section--ink h3 { color: var(--white); }
.section--ink .lead, .section--ink .prose p { color: var(--on-ink-2); }

/* --- 4. Type utilities -------------------------------------------------- */

.label {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: var(--sans);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.label::before { content: ""; width: 1.6rem; height: 1px; background: currentColor; flex: none; }
.label--plain::before { display: none; }
.section--ink .label { color: var(--gold-bright); }

.display { font-size: var(--fs-display); line-height: 0.98; letter-spacing: -0.035em; }
.h1 { font-size: var(--fs-h1); }
.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); letter-spacing: -0.012em; }

.lead { font-size: var(--fs-lead); line-height: 1.62; color: var(--text-2); }
.lead a { color: var(--text); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; transition: color 0.3s var(--ease); }
.lead a:hover { color: var(--gold); }
.prose { max-width: 62ch; }
.prose p { color: var(--text-2); }

.ital { font-style: italic; font-variation-settings: "SOFT" 60, "WONK" 1; color: var(--gold); }
.section--ink .ital { color: var(--gold-bright); }

/* Hand-drawn underline under a word */
.marked { position: relative; display: inline-block; }
.marked svg {
  position: absolute; left: -2%; bottom: -0.32em; width: 104%; height: 0.42em;
  overflow: visible; pointer-events: none;
}
.marked {
  /* One full draw → hold → sweep-away cycle. Change this to 5s or 10s to
     re-time the loop; every phase below is a percentage of it. */
  --mark-cycle: 8s;
}
.marked svg path {
  fill: none; stroke: var(--gold-bright); stroke-width: 5; stroke-linecap: round;
  stroke-dasharray: 340; stroke-dashoffset: 340;
}
/* Only starts once the word has scrolled into view, so the first draw is seen
   from the beginning rather than picked up mid-cycle. */
.marked.is-in svg path {
  animation: draw-mark var(--mark-cycle) var(--ease-out) infinite;
}

@keyframes draw-mark {
  0%    { stroke-dashoffset: 340; }   /* unstarted */
  14%   { stroke-dashoffset: 0; }     /* drawn, ~1.1s */
  78%   { stroke-dashoffset: 0; }     /* held, the state it sits in most of the time */
  92%   { stroke-dashoffset: -340; }  /* sweeps away in the same direction it drew */
  100%  { stroke-dashoffset: -340; }  /* brief pause before the next pass */
}

.rule-dot { display: flex; align-items: center; gap: 0.75rem; margin: 2.25rem 0; }
.rule-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex: none; }
.rule-dot::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.section--ink .rule-dot::after { background: var(--line-ink); }

/* --- 5. Buttons --------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; gap: 0.65rem;
  padding: 1rem 1.7rem;
  background: var(--ink); color: var(--white);
  font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  border: 1px solid var(--ink);
  border-radius: 100px;
  transition: background 0.35s var(--ease), color 0.35s var(--ease),
              border-color 0.35s var(--ease), transform 0.35s var(--ease-out);
}
.btn:hover { background: var(--gold); border-color: var(--gold); transform: translateY(-2px); }
.btn__arrow { transition: transform 0.35s var(--ease-out); flex: none; }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--gold { background: var(--gold); border-color: var(--gold); color: var(--white); }
.btn--gold:hover { background: var(--ink); border-color: var(--ink); }

.btn--outline { background: transparent; color: var(--text); border-color: var(--line); }
.btn--outline:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }

.section--ink .btn--outline { color: var(--white); border-color: var(--line-ink); }
.section--ink .btn--outline:hover { background: var(--gold); border-color: var(--gold); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2.25rem; }

.tlink {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding-bottom: 0.35rem;
  font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  border-bottom: 1px solid var(--gold);
  color: var(--text);
  transition: gap 0.3s var(--ease), color 0.3s var(--ease);
}
.tlink:hover { gap: 0.95rem; color: var(--gold); }
.section--ink .tlink { color: var(--white); }

/* --- 6. Brand ----------------------------------------------------------- */

.brand { display: inline-flex; align-items: center; gap: 0.8rem; }
.brand__mark { width: 62px; height: auto; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--display);
  font-variation-settings: "SOFT" 20, "WONK" 0, "opsz" 30;
  font-size: 1.4rem; letter-spacing: 0.01em; white-space: nowrap;
}
.brand__tag {
  font-size: 0.5rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); margin-top: 0.4rem;
}
.brand--cream { color: var(--white); }
.brand--cream .brand__tag { color: var(--gold-bright); }

/* --- 7. Header ---------------------------------------------------------- */

.header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: height 0.4s var(--ease), background 0.4s var(--ease),
              box-shadow 0.4s var(--ease);
}
.header.is-stuck {
  height: 100px;
  background: rgba(246, 240, 229, 0.92);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  box-shadow: 0 1px 0 var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; width: 100%; }

.nav { display: none; }
@media (min-width: 1200px) {
  .nav { display: flex; align-items: center; gap: clamp(1rem, 1.5vw, 1.6rem); margin-left: auto; }
}
.nav__link {
  position: relative; padding: 0.45rem 0;
  font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase;
  transition: color 0.3s var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}
.nav__link:hover { color: var(--gold); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }

/* Drop-down under a nav item. Opens on hover and on keyboard focus, no JS.
   The padding-top bridges the gap so the pointer can travel down into it. */
.nav__item { position: relative; display: flex; } /* flex so its link sizes like the bare ones */
.nav__menu {
  position: absolute; left: 50%; top: 100%; z-index: 10;
  padding-top: 0.9rem;
  transform: translate(-50%, 6px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s var(--ease), transform 0.35s var(--ease-out), visibility 0.3s;
}
.nav__item:hover .nav__menu, .nav__item:focus-within .nav__menu {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
}
.nav__menu-link {
  display: block; white-space: nowrap;
  padding: 0.85rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: 0 18px 36px -20px rgba(23, 21, 15, 0.35);
  font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase;
  transition: color 0.3s var(--ease);
}
.nav__menu-link:hover, .nav__menu-link[aria-current="page"] { color: var(--gold); }
/* On a page inside the menu, underline its parent like any current page */
.nav__item:has(.nav__menu-link[aria-current="page"]) > .nav__link::after { transform: scaleX(1); }

.header__actions { display: flex; align-items: center; gap: 0.7rem; }
.login-btn { display: none; padding: 0.65rem 1.2rem; font-size: var(--fs-label); }
@media (min-width: 720px) { .login-btn { display: inline-flex; } }

.burger {
  width: 46px; height: 46px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.burger:hover { border-color: var(--gold); }
.burger__lines { display: grid; gap: 5px; width: 17px; }
.burger__lines span { display: block; height: 1.6px; background: var(--ink); transition: transform 0.4s var(--ease-out), opacity 0.25s; }
.burger[aria-expanded="true"] .burger__lines span:first-child { transform: translateY(6.6px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__lines span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger__lines span:last-child { transform: translateY(-6.6px) rotate(-45deg); }
@media (min-width: 1200px) { .burger { display: none; } }

/* --- 8. Drawer ---------------------------------------------------------- */

.drawer {
  position: fixed; inset: 0; z-index: 99;
  background: var(--ink); color: var(--on-ink);
  padding: calc(var(--header-h) + 2.5rem) var(--gutter) 3rem;
  display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
  opacity: 0; visibility: hidden; transform: translateY(-1rem);
  transition: opacity 0.42s var(--ease), transform 0.5s var(--ease-out), visibility 0.42s;
  overflow-y: auto;
}
.drawer.is-open { opacity: 1; visibility: visible; transform: none; }
.drawer__nav { display: grid; gap: 0.2rem; }
.drawer__link {
  display: flex; align-items: baseline; gap: 1rem;
  padding: 0.7rem 0; border-bottom: 1px solid var(--line-ink);
  font-family: var(--display); font-size: clamp(1.9rem, 1.2rem + 3.4vw, 3rem);
  color: var(--white);
  opacity: 0; transform: translateY(14px);
  transition: color 0.3s var(--ease), opacity 0.5s var(--ease), transform 0.5s var(--ease-out);
}
.drawer.is-open .drawer__link { opacity: 1; transform: none; }
.drawer__link:hover, .drawer__link[aria-current="page"] { color: var(--gold-bright); }
.drawer__link span { font-family: var(--sans); font-size: var(--fs-label); font-weight: 700; letter-spacing: 0.16em; color: var(--gold-bright); }
.drawer__link--sub { padding-left: 2.1rem; font-size: clamp(1.3rem, 1rem + 1.6vw, 1.9rem); }
.drawer__foot { display: grid; gap: 0.8rem; font-size: var(--fs-sm); color: var(--on-ink-2); }
.drawer__foot a:hover { color: var(--gold-bright); }

/* --- 9. Hero (magazine cover) ------------------------------------------- */

.hero { position: relative; padding-top: calc(var(--header-h) + clamp(1.5rem, 1rem + 2vw, 3rem)); }

.hero__grid { display: grid; gap: clamp(1.5rem, 1rem + 2.5vw, 3rem); align-items: center; }
@media (min-width: 960px) { .hero__grid { grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); } }

.hero__copy { position: relative; z-index: 2; }
.hero__lead { max-width: 46ch; margin-top: 1.6rem; font-size: var(--fs-lead); color: var(--text-2); }

.hero__figure { position: relative; }
.hero__figure img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: var(--radius); }
@media (min-width: 960px) { .hero__figure img { aspect-ratio: 4 / 4.4; } }

/* small gold-framed inset photo overlapping the main one */
.hero__inset {
  position: absolute; left: -1.5rem; bottom: -2rem;
  width: clamp(120px, 12vw, 190px);
  border: 6px solid var(--paper);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px -18px rgba(23, 21, 15, 0.45);
  display: none;
}
@media (min-width: 760px) { .hero__inset { display: block; overflow: hidden; } }
/* The source frame is a wide river with a small boat; at inset size a plain
   cover-crop reads as empty water, so zoom in on the subject. */
.hero__inset img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block;
  transform: scale(2.3); transform-origin: 52% 57%;
}

.hero__meta {
  display: flex; flex-wrap: wrap; gap: 0.6rem 2rem;
  margin-top: clamp(2.5rem, 1.5rem + 3vw, 4rem);
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  font-size: var(--fs-xs); color: var(--text-3);
}
.hero__meta strong { color: var(--text); font-weight: 700; }

/* --- 9b. Interior page header ------------------------------------------- */

.page-head { padding-top: calc(var(--header-h) + clamp(2.5rem, 1.5rem + 4vw, 5.5rem)); }
.page-head__inner { display: grid; gap: 1.75rem; }
@media (min-width: 900px) {
  .page-head__inner { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: end; }
}
.page-head .lead { max-width: 46ch; }
.page-head__figure { margin-top: clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.page-head__figure img,
.page-head__figure video { width: 100%; aspect-ratio: 21 / 8; object-fit: cover; border-radius: var(--radius); }

/* --- 10. Figures & captions --------------------------------------------- */

.figure { position: relative; }
.figure img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.figure--tall img { aspect-ratio: 3 / 4; }
.figure--wide img { aspect-ratio: 16 / 10; }
.figure--square img { aspect-ratio: 1 / 1; }

.caption {
  margin-top: 0.85rem;
  padding-left: 0.9rem;
  border-left: 2px solid var(--gold);
  font-size: var(--fs-xs);
  line-height: 1.5;
  color: var(--text-3);
}

.grid-split { display: grid; gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: center; }
@media (min-width: 940px) {
  .grid-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .grid-split.is-reversed > :first-child { order: 2; }
}

.split-head { display: grid; gap: 1.5rem; margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4rem); }
@media (min-width: 900px) {
  .split-head { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: end; }
}

/* --- 11. Numbers strip -------------------------------------------------- */

.figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
@media (min-width: 860px) { .figures { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.figures--pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fig-cell { padding: clamp(1.5rem, 1rem + 1.6vw, 2.3rem) clamp(1rem, 0.6rem + 1.2vw, 1.8rem); background: var(--paper); }
.fig-cell__v { font-family: var(--display); font-size: clamp(2rem, 1.4rem + 2vw, 3rem); line-height: 1; letter-spacing: -0.03em; }
.fig-cell__v em { font-style: normal; color: var(--gold); }
.fig-cell__k { margin-top: 0.8rem; font-size: var(--fs-xs); line-height: 1.45; color: var(--text-2); }
/* Words rather than figures (the Big 4 systems strip) — sized so "Checkpoint" fits a quarter column */
.figures--words .fig-cell__v { font-size: clamp(1.6rem, 1.15rem + 1.3vw, 2.4rem); }

/* --- 12. Cards ---------------------------------------------------------- */

.cards { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.card {
  display: flex; flex-direction: column;
  padding: clamp(1.6rem, 1.1rem + 1.5vw, 2.4rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 46px -26px rgba(23, 21, 15, 0.32); }
.card__n { font-family: var(--display); font-size: var(--fs-sm); color: var(--gold); letter-spacing: 0.08em; }
.card h3 { margin: 1.1rem 0 0.75rem; }
.card p { font-size: var(--fs-sm); color: var(--text-2); }
.card .tlink { margin-top: auto; align-self: flex-start; padding-top: 1.4rem; border-bottom: 0; }
.card .tlink { position: relative; }
.card .tlink::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: var(--gold); }

/* --- 13. Quote band (black, sparing) ------------------------------------
   Full-bleed looping video. The clip puts the boat centre-right with sun
   glare, so the scrim is heaviest on the left where the copy sits. */

.band {
  position: relative;
  display: grid;
  align-items: center;
  min-height: clamp(420px, 60vh, 640px);
  padding-block: clamp(4rem, 3rem + 5vw, 7rem);
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.band__media { position: absolute; inset: 0; z-index: -2; }
.band__media video, .band__media img {
  width: 100%; height: 100%; object-fit: cover;
  /* warm the footage toward the cream-and-gold palette */
  filter: saturate(0.9) sepia(0.18) brightness(0.9);
}
.band__media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(14,13,11,0.94) 0%, rgba(14,13,11,0.72) 44%, rgba(14,13,11,0.34) 100%),
    linear-gradient(180deg, rgba(14,13,11,0.5) 0%, transparent 26%, rgba(14,13,11,0.5) 100%);
}
.band__inner { position: relative; }
.band__body { max-width: 34ch; }
.band blockquote {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.6rem, 1rem + 2.6vw, 2.9rem);
  line-height: 1.16; letter-spacing: -0.03em;
}
/* Brightness shifts across the loop, so hold the copy legible with a wide,
   low-opacity shadow rather than by darkening the footage further. */
.band .label, .band blockquote, .band cite {
  text-shadow: 0 1px 24px rgba(14, 13, 11, 0.75), 0 1px 3px rgba(14, 13, 11, 0.5);
}
.band cite {
  display: block; margin-top: 1.75rem;
  font-family: var(--sans); font-size: var(--fs-label); font-style: normal; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-bright);
}

/* --- 14. People --------------------------------------------------------- */

.people { display: grid; gap: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
@media (min-width: 800px) { .people { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 800px) { .people--pair { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 900px; margin-inline: auto; } }

.person__portrait { position: relative; overflow: hidden; border-radius: var(--radius); }
.person__portrait img {
  width: 100%; aspect-ratio: 3 / 3.6; object-fit: cover;
  filter: saturate(0.82) contrast(1.02);
  transition: transform 0.9s var(--ease-out), filter 0.6s var(--ease);
}
.person:hover .person__portrait img { transform: scale(1.04); filter: saturate(1) contrast(1); }
.person__name { margin-top: 1.15rem; font-family: var(--display); font-size: 1.32rem; letter-spacing: -0.02em; }
.person__role { margin-top: 0.35rem; font-size: var(--fs-label); font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); }
.person__meta { margin-top: 0.85rem; font-size: var(--fs-sm); color: var(--text-2); }

/* The whole card jumps to that person's bio further down the page */
.person__link { display: block; height: 100%; }
.person__name { transition: color 0.3s var(--ease); }
.person__link:hover .person__name { color: var(--gold); }
.person__more {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-top: 1.1rem; padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--gold);
  font-size: var(--fs-label); font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.person__link:hover .person__more .btn__arrow { transform: translateY(3px); }

/* Credentials panel under a bio: practice areas, designations, education */
.credentials {
  display: grid; gap: 2rem;
  margin-top: clamp(2.5rem, 1.5rem + 3vw, 4rem);
  padding-top: clamp(2rem, 1.4rem + 2vw, 3rem);
  border-top: 1px solid var(--line);
}
@media (min-width: 900px) {
  .credentials { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr) minmax(0, 1.1fr); gap: clamp(2rem, 1rem + 3vw, 4rem); }
}
.credentials__h {
  margin-bottom: 0.9rem;
  font-family: var(--sans); font-size: var(--fs-label); font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold);
}
.cred-list { list-style: none; font-size: var(--fs-sm); color: var(--text-2); }
.cred-list li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding-block: 0.6rem; border-bottom: 1px solid var(--line); line-height: 1.5;
}
.cred-list li:first-child { padding-top: 0; }
.cred-list em { font-style: italic; }
.cred-list__yr { flex: none; font-family: var(--display); color: var(--gold); font-variant-numeric: tabular-nums; }

/* --- 15. Letter / process ----------------------------------------------- */

.steps { display: grid; }
.step {
  display: grid; gap: 0.5rem 2.5rem;
  padding-block: clamp(1.5rem, 1.1rem + 1.4vw, 2.4rem);
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.step:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 800px) { .step { grid-template-columns: 4.5rem minmax(0, 17ch) minmax(0, 1fr); } }
.step__n { font-family: var(--display); font-size: 1.1rem; color: var(--gold); }
.step h3 { font-size: var(--fs-h3); }
.step p { margin: 0; font-size: var(--fs-sm); color: var(--text-2); }
.step h3 + p { margin-top: 0.5rem; }
.step__body { max-width: 68ch; }
.step__body p + p { margin-top: 1em; }

/* --- 16. Notice --------------------------------------------------------- */

.notice {
  display: flex; gap: 0.9rem;
  padding: 1.2rem 1.4rem;
  background: var(--paper-2);
  border-left: 2px solid var(--gold);
  border-radius: var(--radius);
  font-size: var(--fs-sm); color: var(--text-2);
}
.notice svg { width: 17px; height: 17px; flex: none; margin-top: 0.28rem; color: var(--gold); }
.section--ink .notice { background: rgba(255,255,255,.05); color: var(--on-ink-2); }

/* --- 16b. Contact & disclosures ------------------------------------------ */

.contact-grid { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); } }

.contact-card {
  padding: clamp(1.6rem, 1.1rem + 1.5vw, 2.4rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.contact-card__lede { margin-top: 0.75rem; font-size: var(--fs-sm); color: var(--text-2); }
.contact-list {
  display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 0.85rem 1.25rem;
  margin: 1.5rem 0 0; font-size: var(--fs-sm);
}
.contact-list dt {
  padding-top: 0.15rem;
  font-size: var(--fs-label); font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--gold);
}
.contact-list dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
/* On phones the label column leaves too little room for an email address, so stack */
@media (max-width: 520px) {
  .contact-list { grid-template-columns: minmax(0, 1fr); gap: 0.2rem; }
  .contact-list dd + dt { margin-top: 0.9rem; }
}
.contact-list a, .contact-card__note a { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.contact-list a:hover, .contact-card__note a:hover { color: var(--gold); }
.contact-card__note { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: var(--fs-sm); color: var(--text-2); }

/* Google Maps embed, warmed slightly toward the palette */
.contact-map { min-height: 360px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-2); }
.contact-map iframe { display: block; width: 100%; height: 100%; min-height: 360px; border: 0; filter: saturate(0.75) sepia(0.12); }

/* Document links on the Important Information page; the document titles are
   long, so give them a wider column than the default step */
@media (min-width: 800px) { .steps--docs .step { grid-template-columns: 4.5rem minmax(0, 26ch) minmax(0, 1fr); } }
.doc-links { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.1rem; }
.doc-links .btn { padding: 0.7rem 1.2rem; font-size: var(--fs-label); }

/* --- 17. CTA + footer --------------------------------------------------- */

.cta { position: relative; padding-block: clamp(4rem, 3rem + 5vw, 7.5rem); background: var(--paper-2); text-align: center; }

/* Where a CTA directly follows a section, two full section paddings stack and
   read as one oversized void — worst on Big 4, where the preceding section and
   the CTA share --paper-2 and merge into a single empty expanse. Collapse both
   sides of that join into one gap. */
.section:has(+ .cta) { padding-bottom: clamp(2rem, 1.2rem + 2.4vw, 3.25rem); }
.section + .cta { padding-top: clamp(2rem, 1.2rem + 2.4vw, 3.25rem); }
.cta h2 { max-width: 20ch; margin-inline: auto; }
.cta p { max-width: 48ch; margin: 1.2rem auto 0; color: var(--text-2); }
.cta .btn-row { justify-content: center; }

.footer { background: var(--ink); color: var(--on-ink-2); padding-top: clamp(3.5rem, 2.5rem + 4vw, 5.5rem); font-size: var(--fs-sm); }
.footer__top { display: grid; gap: 2.75rem; padding-bottom: 3rem; }
@media (min-width: 900px) { .footer__top { grid-template-columns: minmax(0,1.5fr) repeat(2, minmax(0,1fr)) minmax(0,1.1fr); gap: 3rem; } }
.footer h3 { margin-bottom: 1.3rem; font-family: var(--sans); font-size: var(--fs-label); font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-bright); }
.footer ul { list-style: none; display: grid; gap: 0.7rem; }
.footer a:hover { color: var(--gold-bright); }
.footer__blurb { max-width: 34ch; margin-top: 1.5rem; }
/* BrokerCheck badge — FINRA Rule 2210(d)(8). The artwork is FINRA's: it must not
   be recoloured, outlined, stretched or otherwise altered, so it keeps its own
   white card and its native aspect ratio wherever it sits. Used in the footer
   (on ink) and on important-information.html (on paper); --bc-accent lets the
   caption pick up the right gold for the background it lands on. */
.bc { --bc-accent: var(--gold); display: inline-grid; justify-items: start; gap: 0.8rem; max-width: 32ch; margin-top: 1.6rem; }
.footer .bc { --bc-accent: var(--gold-bright); }
.bc__card {
  display: block; padding: 0.95rem 1.2rem; background: #fff; border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(14, 13, 11, 0.12), 0 8px 22px rgba(14, 13, 11, 0.08);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease);
}
.bc__card img { display: block; width: 146px; height: auto; }
.bc__text { font-size: var(--fs-xs); line-height: 1.5; opacity: 0.78; transition: opacity 0.3s var(--ease), color 0.3s var(--ease); }
.bc__text .bc__arrow { display: inline-block; transition: transform 0.3s var(--ease-out); }
.bc:hover .bc__card, .bc:focus-visible .bc__card { transform: translateY(-2px); box-shadow: 0 2px 5px rgba(14, 13, 11, 0.14), 0 14px 30px rgba(14, 13, 11, 0.12); }
.bc:hover .bc__text, .bc:focus-visible .bc__text { opacity: 1; color: var(--bc-accent); }
.bc:hover .bc__arrow, .bc:focus-visible .bc__arrow { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) {
  .bc__card, .bc__arrow { transition: none; }
  .bc:hover .bc__card, .bc:focus-visible .bc__card { transform: none; }
  .bc:hover .bc__arrow, .bc:focus-visible .bc__arrow { transform: none; }
}
.footer__legal { padding-block: 2.25rem; border-top: 1px solid var(--line-ink); font-size: var(--fs-xs); line-height: 1.7; color: var(--text-3); }
.footer__legal p { max-width: 96ch; }
.footer__legal a { color: var(--on-ink-2); text-decoration: underline; text-underline-offset: 3px; }
.footer__bar { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; padding-bottom: 2rem; font-size: var(--fs-xs); color: var(--text-3); }
.footer__bar ul { display: flex; flex-wrap: wrap; gap: 1.5rem; }

/* --- 18. Reveal --------------------------------------------------------- */

[data-reveal] {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.85s var(--ease), transform 0.95s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal="fade"] { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .marked svg path { stroke-dashoffset: 0 !important; animation: none !important; }
}

/* --- 19. Error page ----------------------------------------------------- */
.error-page { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: var(--gutter); }

/* Story imagery and the compact Big 4 systems strip. */
.story-photo { margin: 3rem 0 0; }
.story-photo img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-radius: var(--radius); }
.figures--white .fig-cell { background: var(--white); }
@media (max-width: 400px) {
  .header .brand { gap: 0.55rem; }
  .header__inner { gap: 0.65rem; }
}

/* Native disclosure controls keep client login usable with mouse, touch and keyboard. */
.login-dropdown { display: none; position: relative; }
@media (min-width: 720px) { .login-dropdown { display: block; } }
.login-dropdown summary, .drawer__login summary { list-style: none; cursor: pointer; }
.login-dropdown summary::-webkit-details-marker, .drawer__login summary::-webkit-details-marker { display: none; }
.login-chevron { transition: transform 0.2s; }
.login-dropdown[open] .login-chevron { transform: rotate(180deg); }
.login-options {
  position: absolute; right: 0; top: calc(100% + 0.6rem); min-width: 190px;
  background: var(--white); border: 1px solid var(--line); border-top: 2px solid var(--gold);
  border-radius: var(--radius); box-shadow: 0 12px 28px -12px rgba(23,21,15,.3);
}
.login-options a { display: block; padding: 0.85rem 1.2rem; white-space: nowrap; font-size: var(--fs-sm); }
.login-options a:hover, .login-options a:focus-visible { color: var(--gold); background: var(--paper-2); }
.drawer__login-options { display: grid; gap: 0.8rem; padding: 0.9rem 0 0.2rem 1rem; }

/* Give the header identity more prominence without enlarging the footer. */
.header .brand__mark { width: 82px; }
.header .brand__name { font-size: 1.65rem; }
.header .brand__tag { font-size: 0.58rem; }
@media (max-width: 719px) {
  .header .brand__mark { width: 68px; }
  .header .brand__name { font-size: 1.4rem; }
  .header .brand__tag { font-size: 0.5rem; }
}
@media (max-width: 360px) {
  .header .brand__mark { width: 58px; }
  .header .brand__name { font-size: 1.18rem; }
  .header .brand__tag { font-size: 0.43rem; }
}

/* Wide photographic pauses between the three service descriptions. */
.service-image { margin: clamp(1rem, 2vw, 2rem) 0 clamp(2rem, 4vw, 4rem); }
.service-image img { width: 100%; height: auto; aspect-ratio: 3 / 1; object-fit: cover; object-position: center 58%; border-radius: var(--radius); }
@media (max-width: 719px) {
  .service-image img { aspect-ratio: 3 / 2; }
}
