/* Self-hosted fonts (SIL Open Font License; see /fonts/OFL.txt) */
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/cormorant-garamond-400.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/cormorant-garamond-500.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 100 1000; font-display: swap; src: url('/fonts/dm-sans-var.woff2') format('woff2'); }

/* ==========================================================================
   Liminal Point — site stylesheet (Direction A: dark ground, soft surfaces, scroll motion)
   Locked: palette, marks, wordmark face. Fonts are self-hosted (@font-face above).
   ========================================================================== */

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

:root {
  /* Locked palette */
  --charcoal: #2C2C2C;
  --cream: #F5F0E8;
  --warm-stone: #C4B5A0;
  --muted-brass: #B8A07A;
  --warm-gray: #8B7D6B;
  --deep-black: #1A1A1A;
  /* Dark ground and text tones (cream at set strengths) */
  --ground: #131211;
  --text: rgba(245, 240, 232, 0.8);
  --text-soft: rgba(245, 240, 232, 0.64);
  --text-faint: rgba(245, 240, 232, 0.5);
  --hairline: rgba(245, 240, 232, 0.08);

  /* Type */
  --font-wordmark: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-heading: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --heading-weight: 500;
  --heading-tracking: -0.005em;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;

  --fs-display: clamp(2rem, 1.4rem + 2.1vw, 3.25rem);
  --fs-h2: clamp(1.7rem, 1.35rem + 1.2vw, 2.4rem);
  --fs-statement: clamp(1.3rem, 1.1rem + 0.75vw, 1.7rem);
  --fs-lede: clamp(1.04rem, 0.99rem + 0.25vw, 1.16rem);
  --fs-body: clamp(0.94rem, 0.92rem + 0.1vw, 1rem);

  /* Layout */
  --container: 1200px;
  --gutter: clamp(1.25rem, 4.5vw, 4.5rem);
  --section-y: clamp(4.5rem, 8vw, 7.5rem);
  --r-card: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  font-size: 16px;
}

html {
  background-color: var(--ground); color-scheme: dark; overflow-x: clip;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
body {
  font-family: var(--font-body); font-weight: 300; font-size: var(--fs-body); line-height: 1.78;
  color: var(--text); background-color: var(--ground); overflow-x: clip; font-kerning: normal;
}
::selection { background-color: var(--warm-stone); color: var(--charcoal); }
a { color: inherit; text-decoration: none; }
p, li { text-wrap: pretty; }
:focus-visible { outline: 1px solid var(--warm-stone); outline-offset: 4px; border-radius: 4px; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 300; padding: 0.6rem 1.1rem; border-radius: 100px; background: var(--cream); color: var(--charcoal); font-size: 0.8rem; }
.skip-link:focus { top: 1rem; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Moving glow (fixed behind every page) ---------- */
.lp-glow {
  position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh; z-index: 0;
  display: block; pointer-events: none;
  background:
    radial-gradient(50% 50% at 26% 20%, rgba(92, 79, 66, 0.5), transparent 70%),
    radial-gradient(38% 40% at 78% 74%, rgba(196, 181, 160, 0.16), transparent 70%),
    radial-gradient(34% 30% at 52% 0%, rgba(184, 160, 122, 0.12), transparent 70%),
    var(--ground);
}
main, .site-footer { position: relative; z-index: 1; }

/* ---------- Navigation ---------- */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; color: var(--cream);
  padding: 1.8rem var(--gutter); display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid transparent; view-transition-name: site-nav;
  transition: padding 0.5s var(--ease), background-color 0.5s var(--ease), border-color 0.5s var(--ease);
}
.site-nav.scrolled {
  padding: 1rem var(--gutter); background-color: rgba(19, 18, 17, 0.58); border-bottom-color: rgba(245, 240, 232, 0.05);
  backdrop-filter: blur(16px) saturate(120%); -webkit-backdrop-filter: blur(16px) saturate(120%);
}
.nav-brand { display: flex; align-items: center; gap: 0.75rem; transition: opacity 0.3s ease; }
.nav-brand:hover { opacity: 0.8; }
.nav-brand svg { display: block; }
.nav-wordmark { font-family: var(--font-wordmark); font-weight: 500; font-size: 1rem; letter-spacing: 0.25em; text-transform: uppercase; }
.nav-links { display: flex; gap: 2.4rem; list-style: none; }
.nav-links a {
  position: relative; padding: 0.4rem 0; font-size: 0.7rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  opacity: 0.62; transition: opacity 0.4s ease;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 1px; background-color: var(--warm-stone);
  transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease);
}
.nav-links a:hover, .nav-links a.active { opacity: 1; }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); transform-origin: left; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.6rem; margin-right: -0.6rem; z-index: 102; color: inherit; }
.nav-toggle span { display: block; width: 24px; height: 1.5px; margin: 6px 0; background-color: currentColor; transition: transform 0.4s var(--ease), opacity 0.3s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Shared type ---------- */
.heading {
  font-family: var(--font-heading); font-weight: var(--heading-weight); font-size: var(--fs-h2); color: var(--cream);
  line-height: 1.1; letter-spacing: var(--heading-tracking); text-wrap: balance;
}
.prose { max-width: 60ch; }
.prose p + p { margin-top: 1.4em; }
.lede { font-size: var(--fs-lede); line-height: 1.72; color: var(--cream); font-weight: 300; }
.accent { color: var(--warm-stone); }

/* ---------- Hero: home ---------- */
.hero { position: relative; }
.hero-home {
  min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center;
  text-align: center; padding-top: 7.5rem; color: var(--cream);
}
.hero-core { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 var(--gutter) 3rem; }
.hero-watermark { position: absolute; pointer-events: none; will-change: transform; color: var(--cream); }
.hero-home .hero-watermark { top: 44%; left: 50%; transform: translate(-50%, -50%); opacity: 0.022; }
.hero-symbol { position: relative; margin-bottom: 2.2rem; }
.hero-wordmark {
  position: relative; font-family: var(--font-wordmark); font-weight: 400; font-size: 2.75rem;
  letter-spacing: 0.32em; text-transform: uppercase; line-height: 1.15; margin-bottom: 2.4rem;
  margin-right: -0.32em; /* optically re-center tracked caps */
}
.hero-wordmark span { display: block; }
.hero-thesis { position: relative; max-width: 600px; font-size: 0.98rem; line-height: 1.85; color: rgba(245, 240, 232, 0.84); }
.hero-thesis p + p { margin-top: 1.2rem; }

/* Sectors strip (slow, continuous) */
.strip { width: 100%; padding: 1.4rem 0 2.4rem; }
.strip-label { font-size: 0.64rem; font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 1rem; }
.strip-viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}
.strip-track { display: flex; width: max-content; animation: stripMove 80s linear infinite; }
.strip:hover .strip-track { animation-play-state: paused; }
.strip-list { display: flex; align-items: center; list-style: none; flex-shrink: 0; }
.strip-list li {
  display: flex; align-items: center; white-space: nowrap;
  font-family: var(--font-heading); font-weight: 400; font-size: clamp(1.15rem, 1rem + 0.45vw, 1.4rem); color: rgba(245, 240, 232, 0.6);
}
.strip-sep { display: inline-flex; margin: 0 clamp(1.5rem, 3vw, 2.6rem); color: rgba(245, 240, 232, 0.4); }
.strip-sep svg { display: block; }
@keyframes stripMove { to { transform: translateX(-50%); } }

/* ---------- Hero: interior pages ---------- */
.hero-page {
  min-height: 66vh; min-height: 66svh; display: flex; align-items: flex-end; color: var(--cream);
  padding: 10rem 0 clamp(3.5rem, 6vw, 5.5rem);
}
.hero-page .container { width: 100%; position: relative; z-index: 2; }
.hero-page .hero-watermark { right: clamp(1rem, 9vw, 10rem); top: 54%; transform: translateY(-50%); opacity: 0.024; }
.lockup { display: flex; align-items: center; gap: 1rem; margin-bottom: clamp(2rem, 3.5vw, 3rem); color: var(--cream); }
.lockup-mark { font-family: var(--font-wordmark); font-weight: 500; font-size: 1rem; letter-spacing: 0.3em; text-transform: uppercase; }
.lockup-rule { width: 1px; height: 1rem; background: var(--warm-stone); opacity: 0.6; }
.lockup-sub { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase; color: var(--warm-stone); }
.hero-statement {
  font-family: var(--font-heading); font-weight: var(--heading-weight); font-size: var(--fs-display); color: var(--cream);
  line-height: 1.1; letter-spacing: var(--heading-tracking); max-width: 21ch; text-wrap: balance;
}
.hero-statement.is-long { max-width: 27ch; font-size: clamp(1.8rem, 1.3rem + 1.7vw, 2.8rem); line-height: 1.16; }

/* Hero entrance (staggered) */
.enter { opacity: 0; transform: translateY(22px); animation: heroReveal 1.4s var(--ease) forwards; }
.enter-1 { animation-delay: 0.25s; } .enter-2 { animation-delay: 0.5s; } .enter-3 { animation-delay: 0.8s; }
.enter-4 { animation-delay: 1.05s; } .enter-5 { animation-delay: 1.3s; } .enter-6 { animation-delay: 1.7s; }

/* ---------- Sections ---------- */
.section { position: relative; padding: var(--section-y) 0; }
.section-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(1.5rem, 3vw, 3rem); }
.section-head { grid-column: 1 / span 5; align-self: start; }
.section-content { grid-column: 6 / -1; }
@media (min-width: 1024px) { .section-head { position: sticky; top: 7rem; } }

/* One reading column: heading left, everything else in order on the right */
.section-content > .lede, .section-content > .prose { max-width: 60ch; }
.section-content > .card-grid { margin-top: 1rem; }
.after-cards { margin-top: 1.8rem; max-width: 60ch; }
.cards-caption { margin-top: 1.8rem; max-width: 60ch; }

/* ---------- Soft surfaces ---------- */
.card {
  position: relative; border-radius: var(--r-card); padding: clamp(1.4rem, 2.2vw, 2rem);
  background: linear-gradient(140deg, rgba(245, 240, 232, 0.075) 0%, rgba(245, 240, 232, 0.02) 72%);
  box-shadow: inset 0 1px 0 rgba(245, 240, 232, 0.06), 0 32px 60px -42px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(14px) saturate(112%); -webkit-backdrop-filter: blur(14px) saturate(112%);
  transition: transform 0.7s var(--ease), background-color 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(120% 90% at 0% 0%, rgba(196, 181, 160, 0.12), transparent 60%);
  transition: opacity 0.6s var(--ease);
}
.card:hover { transform: translateY(-3px); }
.card:hover::before { opacity: 1; }
.card-mini { display: block; color: var(--cream); }
.card-mini svg { display: block; }
.card-title { font-family: var(--font-heading); font-weight: var(--heading-weight); font-size: 1.4rem; line-height: 1.16; color: var(--cream); margin-bottom: 0.7rem; }
.card-text { font-size: 0.93rem; line-height: 1.7; color: var(--text); }
.card-statement { font-family: var(--font-heading); font-weight: 400; font-size: clamp(1.15rem, 1.05rem + 0.35vw, 1.32rem); line-height: 1.38; color: var(--cream); }

.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; }
.card-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.9rem; }
.card-stack { display: grid; gap: 0.9rem; }

/* Sector list (Ventures): the mark sits on each name's centre line */
.sector-list { list-style: none; margin-top: clamp(2rem, 3.5vw, 2.8rem); border-top: 1px solid var(--hairline); }
.sector-list li {
  display: flex; align-items: center; gap: 1.2rem; padding: 1.05rem 0.2rem; border-bottom: 1px solid var(--hairline);
  font-family: var(--font-heading); font-weight: 400; font-size: clamp(1.18rem, 1.05rem + 0.4vw, 1.38rem); line-height: 1.3; color: var(--cream);
}
.sector-mark { display: flex; flex: none; color: rgba(245, 240, 232, 0.7); }
.sector-mark svg { display: block; }

/* Pills */
.pill {
  display: inline-flex; align-items: center; gap: 0.8rem; padding: 0.8rem 1.25rem 0.8rem 1.4rem; border-radius: 100px;
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cream);
  background: rgba(245, 240, 232, 0.08); box-shadow: inset 0 0 0 1px rgba(245, 240, 232, 0.08);
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.pill-solid { background: var(--warm-stone); color: var(--charcoal); box-shadow: none; text-transform: none; letter-spacing: 0.02em; font-size: 0.95rem; padding: 0.9rem 1.4rem 0.9rem 1.6rem; }
.pill-solid:hover { background: var(--cream); }
.arrow { position: relative; display: inline-block; width: 18px; height: 1px; background: currentColor; transition: width 0.5s var(--ease); }
.arrow::after { content: ''; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-right: 1px solid currentColor; border-top: 1px solid currentColor; transform: rotate(45deg); }
.pill:hover .arrow { width: 28px; }

/* Practice cards (home) */
.practice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(0.9rem, 1.6vw, 1.25rem); margin-top: clamp(2.5rem, 4vw, 3.5rem); }
.practice-card { display: flex; flex-direction: column; min-height: 22rem; padding: clamp(1.8rem, 3.2vw, 3rem); }
.practice-card .card-mini { margin-bottom: clamp(2.5rem, 5vw, 4.5rem); color: var(--cream); }
.practice-card .card-title { font-size: clamp(1.9rem, 1.5rem + 1vw, 2.4rem); line-height: 1; margin-bottom: 1rem; }
.practice-card .card-text { max-width: 46ch; }
.practice-card .pill { margin-top: auto; align-self: flex-start; }
.practice-card .card-text { margin-bottom: 2rem; }
.practice-card:hover .pill { background: var(--warm-stone); color: var(--charcoal); box-shadow: none; }
.practice-card:hover .arrow { width: 28px; }
.practice-link { position: absolute; inset: 0; z-index: 2; border-radius: inherit; }

/* ---------- Threshold sequence: the mark stays while the steps pass ---------- */
.seq .section-grid { align-items: start; }
.seq-aside { grid-column: 1 / span 5; }
.seq-aside .heading { margin-bottom: clamp(2rem, 3.5vw, 3rem); }
@media (min-width: 1024px) {
  .seq-aside { position: sticky; top: max(6.5rem, calc(50vh - 11rem)); }
}
/* The Threshold Point at large size: same geometry as the logo */
.mark { height: clamp(150px, 14vw, 196px); aspect-ratio: 80 / 120; color: var(--cream); margin-bottom: 2.5rem; }
.mark svg { display: block; width: 100%; height: 100%; overflow: visible; }
.mk-l { stroke: currentColor; stroke-width: 4; stroke-linecap: round; }
.mk-dot { fill: #C4B5A0; }

.seq-body { grid-column: 6 / -1; position: relative; }
.seq-steps { list-style: none; }
/* Reading rail: stations at each passage; the point follows the reader and the trail behind it fills */
.seq-rail { position: absolute; left: 0.4rem; top: 0; width: 1px; height: 0; background: rgba(245, 240, 232, 0.1); }
.seq-rail-fill {
  position: absolute; left: 0; top: 0; width: 1px; height: var(--y, 0px);
  background: linear-gradient(to bottom, rgba(196, 181, 160, 0.1), rgba(196, 181, 160, 0.85));
}
.seq-station {
  position: absolute; left: -3.5px; top: 0; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%;
  background: var(--ground); box-shadow: inset 0 0 0 1px rgba(245, 240, 232, 0.32);
  transition: background-color 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.seq-station.on { background: rgba(196, 181, 160, 0.55); box-shadow: inset 0 0 0 1px rgba(196, 181, 160, 0.7); }
.seq-rail-dot {
  position: absolute; left: -5px; top: 0; width: 11px; height: 11px; margin-top: -5.5px; border-radius: 50%; background: var(--warm-stone);
  box-shadow: 0 0 0 5px rgba(196, 181, 160, 0.12), 0 0 22px rgba(196, 181, 160, 0.35); transform: translateY(var(--y, 0px));
}
.seq-step { min-height: 38vh; display: flex; align-items: center; }
.seq-step:first-child { min-height: 30vh; align-items: flex-start; padding-top: 0.4rem; }
.seq-step:last-child { min-height: 38vh; }
.seq-text { position: relative; padding-left: 2.6rem; color: var(--cream); }
.seq-statement .seq-text { font-family: var(--font-heading); font-weight: 400; font-size: var(--fs-statement); line-height: 1.32; }
.seq-prose .seq-text { font-size: var(--fs-lede); line-height: 1.75; font-weight: 300; max-width: 52ch; }
.js .seq-text { opacity: 0.34; transition: opacity 0.8s var(--ease); }
.js .seq-step.is-active .seq-text { opacity: 1; }

/* ---------- Panels: a lit surface that widens to the edges as it arrives ---------- */
.panel { position: relative; isolation: isolate; padding: clamp(4.5rem, 7.5vw, 6.5rem) 0; margin: clamp(1.5rem, 3vw, 2.5rem) 0; }
.panel-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  clip-path: inset(var(--py, 0px) var(--px, 1.25rem) round var(--pr, 32px));
  background:
    radial-gradient(80% 70% at 12% 0%, rgba(196, 181, 160, 0.16), transparent 62%),
    radial-gradient(60% 60% at 100% 100%, rgba(139, 125, 107, 0.16), transparent 64%),
    linear-gradient(165deg, rgba(58, 52, 46, 0.62), rgba(30, 28, 26, 0.5));
}
.panel .card { background: linear-gradient(140deg, rgba(245, 240, 232, 0.085) 0%, rgba(245, 240, 232, 0.025) 72%); }
.panel-intro { max-width: 62ch; }
.panel-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(1.5rem, 3vw, 3rem); align-items: start; margin-bottom: clamp(2.5rem, 4vw, 3.5rem); }
.panel-head .heading { grid-column: 1 / span 5; }
.panel-head .panel-lead { grid-column: 6 / -1; padding-top: 0.5rem; }
.panel-head.solo { margin-bottom: 0; }
.statement { font-family: var(--font-heading); font-weight: 400; font-size: clamp(1.25rem, 1.08rem + 0.6vw, 1.58rem); line-height: 1.32; color: var(--cream); }
.prose .statement + p { margin-top: 1.6em; }

/* Soft list (Advisory) */
.soft-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem clamp(2rem, 4vw, 4rem); }
.soft-list li { position: relative; padding-left: 2.3rem; font-size: var(--fs-lede); line-height: 1.65; color: var(--cream); }
.soft-list li::before { content: ''; position: absolute; left: 0; top: 0.78em; width: 14px; height: 3px; border-radius: 3px; background: var(--warm-stone); }

/* Closing band: open ground, soft light behind */
.closing { position: relative; isolation: isolate; text-align: center; padding: clamp(6rem, 11vw, 9.5rem) 0; overflow: hidden; }
.closing-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.closing::before {
  content: ''; position: absolute; left: 50%; top: 52%; z-index: -1; width: min(980px, 140vw); aspect-ratio: 1.6; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(196, 181, 160, 0.13), rgba(196, 181, 160, 0.04) 55%, transparent); pointer-events: none;
}
.closing .lockup { justify-content: center; margin-bottom: 1.6rem; }
.closing-line { max-width: 34ch; font-family: var(--font-heading); font-weight: 400; font-size: var(--fs-statement); line-height: 1.32; color: var(--cream); margin-bottom: 2.4rem; text-wrap: balance; }

/* ---------- Contact ---------- */
.contact-hero { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 9rem 0 5rem; color: var(--cream); }
.contact-hero .container { width: 100%; }
.contact-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(1.5rem, 3vw, 3rem); align-items: center; }
.contact-copy { grid-column: 1 / span 7; }
.contact-art { grid-column: 9 / -1; justify-self: center; }
.contact-art .mark { height: clamp(180px, 18vw, 240px); margin: 0; }
.contact-line { max-width: 34ch; font-family: var(--font-heading); font-weight: 400; font-size: var(--fs-statement); line-height: 1.32; color: var(--cream); margin-bottom: clamp(2.2rem, 4vw, 3rem); }
.contact-email {
  display: inline-block; position: relative; font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.35rem); font-weight: 400; letter-spacing: 0.01em;
  padding-bottom: 0.35rem; overflow-wrap: anywhere; color: var(--cream);
}
.contact-email::after { content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: rgba(196, 181, 160, 0.5); }
.contact-email::before {
  content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: var(--cream); z-index: 1;
  transform: scaleX(0); transform-origin: right; transition: transform 0.7s var(--ease);
}
.contact-email:hover::before { transform: scaleX(1); transform-origin: left; }
.contact-domain { margin-top: clamp(2.2rem, 4vw, 3rem); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase; color: var(--text-faint); }

/* ---------- Legal and 404 ---------- */
.legal { padding: 10rem 0 var(--section-y); color: var(--cream); }
.legal-title { font-family: var(--font-heading); font-weight: var(--heading-weight); font-size: var(--fs-h2); line-height: 1.1; letter-spacing: var(--heading-tracking); }
.legal-updated { margin-top: 0.9rem; font-size: 0.8rem; color: var(--text-faint); }
.legal-body { margin-top: clamp(2.2rem, 4vw, 3.2rem); color: var(--text); }
.legal-body h2 { font-family: var(--font-heading); font-weight: var(--heading-weight); font-size: 1.45rem; line-height: 1.2; color: var(--cream); margin: 2.4rem 0 0.8rem; }
.legal-body h2 + p { margin-top: 0; }
.notfound { min-height: 82vh; min-height: 82svh; display: flex; align-items: center; padding: 9rem 0 5rem; color: var(--cream); }
.notfound .container { width: 100%; }
.notfound .pill { margin-top: 2.6rem; }

/* ---------- Footer: same ground, condensed ---------- */
.site-footer { padding: clamp(2.5rem, 5vw, 4rem) 0 2rem; font-size: 0.8rem; color: var(--text-soft); }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 0.75rem; color: var(--cream); }
.footer-brand .nav-wordmark { font-size: 0.95rem; }
.footer-nav { display: flex; gap: clamp(1.25rem, 2.6vw, 2.4rem); list-style: none; flex-wrap: wrap; }
.footer-nav a, .footer-social a { font-size: 0.68rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-soft); transition: color 0.3s ease; }
.footer-nav a:hover, .footer-social a:hover { color: var(--cream); }
.footer-contact { display: flex; align-items: center; gap: 1.6rem; }
.footer-email { font-size: 0.88rem; color: var(--cream); border-bottom: 1px solid rgba(196, 181, 160, 0.35); transition: border-color 0.3s ease; }
.footer-email:hover { border-color: var(--warm-stone); }
.footer-fine { margin-top: clamp(1.8rem, 3vw, 2.4rem); padding-top: 1.4rem; border-top: 1px solid var(--hairline); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem 4rem; align-items: end; }
.disclaimer { max-width: 96ch; font-size: 0.68rem; line-height: 1.7; color: var(--text-faint); }
.footer-legal { font-size: 0.68rem; letter-spacing: 0.03em; color: var(--text-faint); white-space: nowrap; }
.footer-legal a { margin-left: 1.25rem; color: var(--text-soft); border-bottom: 1px solid rgba(196, 181, 160, 0.3); transition: color 0.3s ease, border-color 0.3s ease; }
.footer-legal a:hover { color: var(--cream); border-color: var(--warm-stone); }

/* ---------- Scroll reveals (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease), transform 1.2s var(--ease); }
.js .reveal.visible { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: 0.08s; } .js .reveal.d2 { transition-delay: 0.18s; } .js .reveal.d3 { transition-delay: 0.28s; } .js .reveal.d4 { transition-delay: 0.38s; }
.heading-reveal > span { display: block; }
.js .heading-reveal > span { clip-path: inset(0 0 100% 0); transform: translateY(0.4em); transition: clip-path 1.3s var(--ease), transform 1.3s var(--ease); }
.js .heading-reveal.visible > span { clip-path: inset(-0.2em -0.2em -0.3em -0.2em); transform: none; }

@keyframes heroReveal { to { opacity: 1; transform: none; } }

/* ---------- Cross-page transition (progressive enhancement) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 0.35s var(--ease) both vtOut; }
::view-transition-new(root) { animation: 0.6s var(--ease) both vtIn; }
@keyframes vtOut { to { opacity: 0; } }
@keyframes vtIn { from { opacity: 0; } }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .section-head, .section-content, .seq-aside, .seq-body { grid-column: 1 / -1; }
  .section-head { margin-bottom: 2rem; }
  .seq-aside { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.5rem; }
  .seq-aside .heading { margin-bottom: 0; }
  .mark { height: 110px; margin: 0 0.5rem 0 0; flex-shrink: 0; }
  .seq-step, .seq-step:first-child, .seq-step:last-child { min-height: 0; padding: 1.4rem 0; align-items: flex-start; }
  .js .seq-text { opacity: 0.4; }
  .panel-head .heading, .panel-head .panel-lead { grid-column: 1 / -1; }
  .panel-head .panel-lead { margin-top: 1.4rem; }
  .card-row { grid-template-columns: 1fr; }
  .contact-copy, .contact-art { grid-column: 1 / -1; }
  .contact-art { justify-self: start; margin-top: 3rem; }
  .contact-art .mark { height: 180px; }
}
@media (max-width: 900px) {
  .practice-grid { grid-template-columns: 1fr; }
  .practice-card { min-height: 0; }
  .footer-row { flex-direction: column; align-items: flex-start; }
  .footer-fine { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .site-nav { padding: 1.3rem var(--gutter); }
  .site-nav.scrolled { padding: 0.95rem var(--gutter); }
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 0.6rem 0.6rem 0.6rem auto; width: min(320px, 84vw); flex-direction: column; justify-content: center;
    padding: 2rem 2.6rem; gap: 2rem; border-radius: 24px; background-color: rgba(28, 26, 24, 0.96); color: var(--cream);
    transform: translateX(110%); visibility: hidden;
    transition: transform 0.55s var(--ease), visibility 0s linear 0.55s;
  }
  .nav-links.open { transform: none; visibility: visible; box-shadow: -30px 0 60px rgba(0, 0, 0, 0.3); transition: transform 0.55s var(--ease), visibility 0s; }
  .nav-links a { font-size: 0.85rem; opacity: 0.8; }
  .nav-scrim { position: fixed; inset: 0; z-index: 99; background: rgba(10, 10, 9, 0.45); opacity: 0; pointer-events: none; transition: opacity 0.5s var(--ease); }
  .nav-scrim.open { opacity: 1; pointer-events: auto; }
  .hero-home { padding-top: 6.5rem; }
  .hero-wordmark { font-size: 2.1rem; letter-spacing: 0.25em; margin-right: -0.25em; }
  .hero-thesis { font-size: 0.94rem; }
  .hero-page { min-height: 60svh; padding-top: 8.5rem; }
  .hero-page .hero-watermark { display: none; }
  .lockup { flex-wrap: wrap; gap: 0.8rem; }
  .card-grid, .soft-list { grid-template-columns: 1fr; }
  .footer-legal { white-space: normal; }
  .footer-legal a { margin-left: 1rem; }
  .footer-contact { flex-wrap: wrap; gap: 1rem 1.6rem; }
}
@media (max-width: 480px) {
  .hero-wordmark { font-size: 1.65rem; letter-spacing: 0.18em; margin-right: -0.18em; margin-bottom: 2.2rem; }
  .lockup-mark { font-size: 0.92rem; letter-spacing: 0.24em; }
  .mark { height: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; transition-duration: 0.01ms !important; }
  .enter { opacity: 1; transform: none; }
  .js .reveal, .js .heading-reveal > span { opacity: 1; transform: none; clip-path: none; }
  .strip-track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; }
  .strip-track .strip-list[aria-hidden] { display: none; }
  .strip-list { flex: 1 1 100%; flex-wrap: wrap; justify-content: center; row-gap: 0.6rem; padding: 0 var(--gutter); }
  .strip-viewport { -webkit-mask-image: none; mask-image: none; }
  .strip-list li:last-child .strip-sep { display: none; }
  .card:hover { transform: none; }
}
@media print {
  .site-nav, .nav-scrim, .lp-glow, .strip { display: none; }
  html, body { background: #fff; color: #000; }
}
