/* Syed Law Group — design system v3 */
:root {
  --ink: #131d2a; --ink-2: #1a2635; --ink-3: #2a3a4d;
  --paper: #f7f3ec; --paper-2: #efe8db; --white: #fffdf9;
  --text: #1f2833; --muted: #5b6573;
  --line: rgba(19, 29, 42, .13); --line-light: rgba(247, 243, 236, .16);
  --brass: #b08d57; --brass-ink: #7d6035; --brass-light: #d2b78a;
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --wrap: 1280px; --gutter: clamp(20px, 5vw, 64px); --radius: 2px; --header-h: 68px;
  --ease-lux: cubic-bezier(.22, .8, .2, 1); --ease-curtain: cubic-bezier(.77, 0, .18, 1);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .08 0 0 0 0 .1 0 0 0 0 .14 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --hairlines: repeating-linear-gradient(90deg, transparent 0, transparent calc(25% - 1px), rgba(247,243,236,.055) calc(25% - 1px), rgba(247,243,236,.055) 25%);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 28px); }
body { margin: 0; background: var(--paper) var(--grain); color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.7; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1.1em; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.08; letter-spacing: -.012em; margin: 0 0 .5em; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.8rem, 6.4vw, 5.4rem); }
h2 { font-size: clamp(2.2rem, 4.2vw, 3.6rem); }
h3 { font-size: 1.6rem; font-weight: 500; line-height: 1.15; letter-spacing: -.004em; }
::selection { background: rgba(176, 141, 87, .38); color: var(--ink); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--paper); padding: 10px 16px; z-index: 300; }
.skip:focus { left: 12px; top: 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow { display: inline-flex; align-items: center; gap: 14px; font: 600 .72rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--brass-ink); margin-bottom: 1.6rem; }
.eyebrow::before { content: ""; width: 32px; height: 1px; background: currentColor; }
.eyebrow.light, .section.dark .eyebrow { color: var(--brass-light); }
.lede { font-size: 1.16rem; line-height: 1.65; color: var(--muted); max-width: 40em; }

/* ---------- Buttons & links ---------- */
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 17px 30px; font: 600 .78rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; border: 1px solid transparent; border-radius: var(--radius); cursor: pointer; position: relative; overflow: hidden; isolation: isolate; transition: color .45s ease, border-color .3s ease, background .3s ease; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: scaleX(0); transform-origin: 100% 50%; transition: transform .6s var(--ease-lux); }
.btn:hover::before { transform: scaleX(1); transform-origin: 0 50%; }
.btn .arrow { transition: transform .35s var(--ease-lux); }
.btn:hover .arrow { transform: translateX(5px); }
.btn-brass { background: var(--brass); color: var(--ink); }
.btn-brass::before { background: #dcc496; }
.btn-ghost { border-color: rgba(247, 243, 236, .5); color: var(--paper); }
.btn-ghost::before { background: var(--paper); }
.btn-ghost:hover { color: var(--ink); border-color: var(--paper); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink::before { background: var(--ink-3); }
.btn[disabled] { opacity: .7; cursor: default; }

.text-link { position: relative; display: inline-block; font: 600 .78rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink); text-decoration: none; padding-bottom: 9px; background: linear-gradient(var(--brass), var(--brass)) 0 100% / 100% 1px no-repeat; transition: color .3s ease; }
.text-link::after { content: ""; position: absolute; inset: -12px -6px; }
.text-link:hover { color: var(--brass-ink); animation: redraw .9s var(--ease-lux); }
@keyframes redraw {
  0% { background-size: 100% 1px; background-position: 100% 100%; } 45% { background-size: 0 1px; background-position: 100% 100%; }
  46% { background-size: 0 1px; background-position: 0 100%; } 100% { background-size: 100% 1px; background-position: 0 100%; }
}

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; color: var(--paper); padding: 24px 0; transition: background .4s ease, box-shadow .4s ease, padding .4s var(--ease-lux); view-transition-name: site-header; }
.site-header.scrolled, .site-header.menu-open { background: rgba(19, 29, 42, .84); -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px); box-shadow: 0 1px 0 var(--line-light); padding: 14px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--paper); }
.brand-mark { width: 40px; height: 40px; flex: none; border: 1px solid rgba(210, 183, 138, .7); display: grid; place-items: center; font: 500 1.45rem/1 var(--serif); color: var(--brass-light); transition: background .4s ease, color .4s ease; }
.brand:hover .brand-mark { background: var(--brass-light); color: var(--ink); }
.brand-name { font: 500 1.5rem/1 var(--serif); letter-spacing: .01em; white-space: nowrap; }
.brand-name small { display: block; margin-top: 5px; font: 600 .6rem/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: rgba(247, 243, 236, .65); }
.nav { display: flex; align-items: center; gap: 40px; }
.nav a { color: rgba(247, 243, 236, .85); text-decoration: none; font: 500 .76rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; padding: 9px 0; position: relative; transition: color .3s ease; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--paper); }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--brass); transform: scaleX(0); transform-origin: 100% 50%; transition: transform .5s var(--ease-lux); }
.nav a:not(.btn):hover::after, .nav a:not(.btn)[aria-current="page"]::after { transform: scaleX(1); transform-origin: 0 50%; }
.nav .btn { padding: 13px 22px; color: var(--ink); }
.menu-toggle { display: none; background: none; border: 0; color: var(--paper); width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.menu-toggle span { display: block; height: 1.5px; background: currentColor; margin: 6px 0; transition: transform .3s var(--ease-lux), opacity .25s; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero (home) ---------- */
.hero { position: relative; isolation: isolate; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; color: var(--paper); padding: calc(var(--header-h) + 76px) 0 0; overflow: hidden; background: var(--ink); }
.hero-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero-poster { z-index: -3; }
.hero-video { opacity: 0; transition: opacity 1.2s ease; pointer-events: none; }
.hero-video.ready { opacity: 1; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(19,29,42,.62) 0%, rgba(19,29,42,.12) 28%, rgba(19,29,42,.34) 56%, rgba(19,29,42,.95) 100%), linear-gradient(90deg, rgba(19,29,42,.74) 0%, rgba(19,29,42,.22) 60%, rgba(19,29,42,0) 82%); }
.hero::after, .page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--hairlines); -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 72%, transparent); mask-image: linear-gradient(180deg, transparent, #000 30%, #000 72%, transparent); }
.hero .wrap { width: 100%; }
.hero .eyebrow, .page-hero .eyebrow { text-shadow: 0 1px 12px rgba(19, 29, 42, .6); }
.hero h1 { color: var(--paper); font-size: clamp(2.9rem, min(7.4vw, 11.5vh), 6.4rem); line-height: 1.02; letter-spacing: -.02em; max-width: 11.5em; margin-bottom: .42em; }
.hero h1 em, .page-hero h1 em, .cta h2 em { font-style: italic; color: var(--brass-light); }
.hero .lede { color: rgba(247, 243, 236, .86); font-size: 1.14rem; max-width: 35em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2.2rem; }
.hero-index { margin-top: clamp(44px, 7vh, 88px); border-top: 1px solid var(--line-light); display: grid; grid-template-columns: repeat(4, 1fr); }
.hero-index a { position: relative; display: flex; gap: 14px; align-items: baseline; padding: 24px 20px 30px 0; color: rgba(247, 243, 236, .76); text-decoration: none; font: 500 .74rem/1.45 var(--sans); letter-spacing: .15em; text-transform: uppercase; transition: color .3s ease; }
.hero-index a + a { padding-left: 22px; border-left: 1px solid var(--line-light); }
.hero-index b { font-weight: 500; font-size: .7rem; color: var(--brass-light); }
.hero-index a::after { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--brass-light); transform: scaleX(0); transform-origin: 0 50%; transition: transform .7s var(--ease-lux); }
.hero-index a:hover { color: var(--paper); }
.hero-index a:hover::after { transform: scaleX(1); }
.scroll-cue { position: absolute; right: var(--gutter); bottom: 132px; z-index: 1; display: flex; align-items: center; gap: 12px; font: 600 .62rem/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: rgba(247, 243, 236, .7); writing-mode: vertical-rl; }
.scroll-cue i { display: block; width: 1px; height: 64px; background: rgba(247, 243, 236, .25); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--brass-light); animation: cue 2.4s var(--ease-lux) infinite; }
@keyframes cue { 0% { top: -40%; } 100% { top: 100%; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; isolation: isolate; padding: calc(var(--header-h) + 150px) 0 clamp(64px, 9vw, 120px); color: var(--paper); background: var(--ink); overflow: hidden; }
.page-hero .hero-img { opacity: .55; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(19,29,42,.66) 0%, rgba(19,29,42,.34) 45%, rgba(19,29,42,.94) 100%); }
.page-hero h1 { color: var(--paper); font-size: clamp(3rem, 7vw, 5.8rem); line-height: 1.02; letter-spacing: -.02em; margin-bottom: .32em; }
.page-hero .lede { color: rgba(247, 243, 236, .84); max-width: 44em; }
.page-hero.plain { padding-top: calc(var(--header-h) + 120px); }
.page-hero.plain::before { display: none; }

/* ---------- Sections ---------- */
.section { padding: clamp(88px, 11vw, 160px) 0; counter-reset: svc; }
.section.tight { padding: clamp(40px, 5vw, 72px) 0 clamp(64px, 8vw, 110px); }
.section.alt { background: var(--paper-2) var(--grain); }
.section.dark { background: var(--ink); color: rgba(247, 243, 236, .82); }
.section.dark h2, .section.dark h3 { color: var(--paper); }
.section.dark .lede { color: rgba(247, 243, 236, .78); }
.section-head { max-width: 820px; margin-bottom: clamp(44px, 5.5vw, 76px); }
.section-head .lede { margin-bottom: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.split.top { align-items: start; }

/* Intro statement */
.statement { font-family: var(--serif); font-weight: 400; font-size: clamp(2.1rem, 4.5vw, 4.1rem); line-height: 1.12; letter-spacing: -.015em; color: var(--ink); margin: 0; max-width: 18.5em; text-wrap: balance; }
.statement em { font-style: italic; color: var(--brass-ink); }
.sw { transition: opacity .35s linear; }
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4.5vw, 72px); width: min(100%, 900px); margin: clamp(48px, 6vw, 88px) 0 0 auto; padding-top: clamp(30px, 3.6vw, 44px); border-top: 1px solid var(--line); }
.intro-grid .lede { font-size: 1.08rem; color: var(--text); }
.intro-grid p:last-of-type { color: var(--muted); }

/* Marquee */
.marquee { overflow: hidden; background: var(--ink); padding: 30px 0; border-top: 1px solid rgba(210, 183, 138, .35); border-bottom: 1px solid rgba(210, 183, 138, .35); }
.marquee-track { display: flex; align-items: center; width: max-content; animation: marquee 64s linear infinite; }
.marquee-track span { font: italic 400 clamp(1.5rem, 2.7vw, 2.3rem)/1.1 var(--serif); color: rgba(247, 243, 236, .9); white-space: nowrap; padding: 0 clamp(1.4rem, 3vw, 2.6rem); }
.marquee-track i { width: 7px; height: 7px; flex: none; background: var(--brass); transform: rotate(45deg); }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Practice index (home) */
.areas { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(40px, 6.5vw, 112px); align-items: start; }
.areas-list { border-bottom: 1px solid var(--line); }
.area { position: relative; display: grid; grid-template-columns: 58px minmax(0, 1fr) 36px; align-items: start; padding: 34px 0 38px; border-top: 1px solid var(--line); text-decoration: none; color: inherit; }
.area::before { content: ""; position: absolute; left: 0; top: -1px; width: 100%; height: 1px; background: var(--brass); transform: scaleX(0); transform-origin: 0 50%; transition: transform .9s var(--ease-lux); }
.area.is-active::before { transform: scaleX(1); }
.area > * { transition: opacity .45s ease, transform .6s var(--ease-lux); }
.area-num { font: 500 .74rem/1 var(--sans); letter-spacing: .2em; color: var(--muted); padding-top: 1em; transition: color .3s ease, opacity .45s ease; }
.area.is-active .area-num { color: var(--brass-ink); }
.area-title { display: block; font: 400 clamp(1.7rem, 2.55vw, 2.4rem)/1.12 var(--serif); letter-spacing: -.012em; color: var(--ink); text-wrap: balance; }
.area-desc { display: block; margin-top: 12px; color: var(--muted); font-size: .98rem; line-height: 1.65; max-width: 35em; }
.area-arrow { justify-self: end; padding-top: .55em; font-size: 1.25rem; color: var(--brass-ink); opacity: 0; transform: translateX(-12px); }
.area.is-active .area-arrow { opacity: 1; transform: none; }
.area:hover .area-main { transform: translateX(8px); }
.areas-list:hover .area:not(:hover) > :not(.area-arrow) { opacity: .42; }
.area-thumb { display: none; }
.areas-figure { position: sticky; top: calc(var(--header-h) + 44px); aspect-ratio: 5 / 6; isolation: isolate; }
.areas-figure::after { content: ""; position: absolute; inset: 24px -24px -24px 24px; border: 1px solid var(--brass); z-index: -1; }
.areas-frame { position: absolute; inset: 0; overflow: hidden; background: var(--paper-2); }
.areas-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity .9s ease, transform 1.8s var(--ease-lux); }
.areas-frame img.is-active { opacity: 1; transform: scale(1); }
.areas-count { position: absolute; left: 0; bottom: 0; z-index: 1; display: flex; align-items: center; gap: 12px; padding: 15px 20px; background: var(--ink); color: rgba(247, 243, 236, .7); font: 500 .7rem/1 var(--sans); letter-spacing: .2em; }
.areas-count b { color: var(--brass-light); font-weight: 500; }
.areas-count i { width: 28px; height: 1px; background: rgba(247, 243, 236, .35); }

/* Portrait & credentials */
.portrait-wrap { position: relative; isolation: isolate; max-width: 480px; }
.portrait { position: relative; }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; }
.portrait::after { content: ""; position: absolute; inset: 24px -24px -24px 24px; z-index: -1; border: 1px solid var(--brass); }
.credentials { list-style: none; padding: 0; margin: 2.2rem 0; border-top: 1px solid var(--line); }
.credentials li { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 17px 0; border-bottom: 1px solid var(--line); font-size: .98rem; transition: padding-left .5s var(--ease-lux), background .5s ease; }
.credentials li:hover { padding-left: 10px; background: linear-gradient(90deg, rgba(176, 141, 87, .1), transparent 70%); }
.credentials .k { font: 600 .7rem/1.95 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--brass-ink); }
.section.dark .credentials, .section.dark .credentials li { border-color: var(--line-light); }
.section.dark .credentials .k { color: var(--brass-light); }
.section.dark .text-link { color: var(--paper); }
.section.dark .text-link:hover { color: var(--brass-light); }

/* Process steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); position: relative; border-top: 1px solid var(--line); }
.step { position: relative; padding: 46px 44px 0 0; }
.step + .step { padding-left: 44px; border-left: 1px solid var(--line); }
.step::before { content: ""; position: absolute; top: -6px; left: 0; width: 11px; height: 11px; background: var(--paper-2); border: 1px solid var(--brass); transform: rotate(45deg); }
.step + .step::before { left: -6px; }
.step-num { font: 400 3.6rem/1 var(--serif); margin-bottom: 20px; width: max-content; background: linear-gradient(100deg, #8a6a3b 0%, var(--brass) 35%, #e2c995 50%, var(--brass) 65%, #8a6a3b 100%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 7s ease-in-out infinite; }
@keyframes sheen { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
.step h3 { font-size: 1.55rem; }
.step p { font-size: .98rem; color: var(--muted); margin-bottom: 0; }

/* CTA band */
.cta { position: relative; isolation: isolate; overflow: hidden; padding: clamp(96px, 13vw, 190px) 0; color: var(--paper); background: var(--ink); }
.cta .hero-img { opacity: .6; object-position: 60% 50%; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(19,29,42,.96) 0%, rgba(19,29,42,.74) 48%, rgba(19,29,42,.25) 100%); }
.cta h2 { color: var(--paper); font-size: clamp(2.5rem, 5.4vw, 4.6rem); line-height: 1.04; letter-spacing: -.018em; max-width: 12em; }
.cta p { color: rgba(247, 243, 236, .8); max-width: 34em; font-size: 1.08rem; }

/* Services page */
.subnav { position: sticky; top: var(--header-h); z-index: 40; background: rgba(247, 243, 236, .9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: clamp(22px, 3.4vw, 52px); overflow-x: auto; scrollbar-width: none; }
.subnav .wrap::-webkit-scrollbar { display: none; }
.subnav a { position: relative; flex: none; display: flex; gap: 10px; align-items: baseline; padding: 19px 0 18px; text-decoration: none; white-space: nowrap; font: 500 .72rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); transition: color .3s ease; }
.subnav b { font-weight: 500; font-size: .66rem; color: var(--brass-ink); }
.subnav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--brass); transform: scaleX(0); transform-origin: 0 50%; transition: transform .5s var(--ease-lux); }
.subnav a:hover, .subnav a.is-active { color: var(--ink); }
.subnav a.is-active::after { transform: scaleX(1); }
.service { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 7vw, 112px); align-items: center; padding: clamp(64px, 8vw, 112px) 0; border-bottom: 1px solid var(--line); counter-increment: svc; scroll-margin-top: calc(var(--header-h) + 64px); }
.service:last-child { border-bottom: 0; }
.service:nth-child(even) .service-img { order: 2; }
.service-img { overflow: hidden; }
.service-img img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.service h2 { font-size: clamp(2.1rem, 3.6vw, 3.1rem); }
.service > div:not(.service-img) { position: relative; isolation: isolate; }
.service > div:not(.service-img)::before { content: "0" counter(svc); position: absolute; right: 0; top: -.42em; z-index: -1; pointer-events: none; font: 400 clamp(7rem, 15vw, 12.5rem)/1 var(--serif); color: rgba(176, 141, 87, .11); letter-spacing: -.02em; }

/* About page timeline */
.timeline-section { padding-top: 0; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 5px; height: 1px; background: linear-gradient(90deg, var(--brass), rgba(176, 141, 87, .2)); transform-origin: 0 50%; }
.timeline li { position: relative; padding: 42px 28px 0 0; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 0; width: 11px; height: 11px; background: var(--paper); border: 1px solid var(--brass); transform: rotate(45deg); }
.t-year { display: block; font: 400 clamp(3rem, 5.6vw, 4.6rem)/1 var(--serif); color: var(--ink); letter-spacing: -.015em; }
.t-label { display: block; margin-top: 12px; font-size: .96rem; line-height: 1.55; color: var(--muted); }
.t-label strong { display: block; font: 600 .7rem/1.95 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--brass-ink); }

/* Prose (legal pages) */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.85rem; font-weight: 500; margin-top: 2.3em; padding-top: 1.1em; border-top: 1px solid var(--line); }
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--brass); }
.prose a { color: var(--brass-ink); text-underline-offset: 3px; }
.prose .updated { color: var(--muted); font-size: .92rem; margin-top: 3em; padding-top: 1.5em; border-top: 1px solid var(--line); }

/* Legal pages: side menu */
.legal-layout { display: grid; grid-template-columns: minmax(0, 780px) 250px; gap: clamp(40px, 7vw, 120px); justify-content: space-between; align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 44px); max-height: calc(100vh - var(--header-h) - 88px); overflow: auto; border-left: 1px solid var(--line); padding: 4px 0 4px 26px; scrollbar-width: thin; }
.toc h4 { font: 600 .68rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--brass-ink); margin: 0 0 16px; }
.toc a { position: relative; display: block; padding: 6px 0; font-size: .86rem; line-height: 1.4; color: var(--muted); text-decoration: none; transition: color .3s ease; }
.toc a::before { content: ""; position: absolute; left: -27px; top: 0; bottom: 0; width: 2px; background: var(--brass); transform: scaleY(0); transition: transform .4s var(--ease-lux); }
.toc a:hover, .toc a.is-active { color: var(--ink); }
.toc a.is-active::before { transform: scaleY(1); }
@media (max-width: 1000px) { .legal-layout { display: block; } .toc { display: none; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(40px, 7vw, 112px); align-items: start; }
.contact-aside { position: sticky; top: calc(var(--header-h) + 44px); }
.contact-aside h2 { font-size: clamp(2.1rem, 3.4vw, 3rem); }
.info-list { list-style: none; padding: 0; margin: 2.2rem 0; border-top: 1px solid var(--line); }
.info-list li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.info-list .k { display: block; font: 600 .7rem/1.7 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--brass-ink); }
.notice { background: var(--paper-2); border-left: 2px solid var(--brass); padding: 22px 24px; font-size: .92rem; color: var(--muted); }
.notice strong { color: var(--ink); }
.notice a { color: var(--brass-ink); text-underline-offset: 3px; }
.form { background: var(--white); border: 1px solid var(--line); padding: clamp(28px, 4.4vw, 56px); box-shadow: 0 40px 80px -60px rgba(19, 29, 42, .45); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { margin-bottom: 24px; }
.field label { display: block; margin-bottom: 9px; font: 600 .7rem/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink); transition: color .3s ease; }
.field .opt { color: var(--muted); font-weight: 500; letter-spacing: .06em; text-transform: none; }
.field input, .field select, .field textarea { width: 100%; padding: 15px 16px; font: 400 1rem/1.5 var(--sans); color: var(--text); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .25s ease, background .25s ease, box-shadow .35s ease; appearance: none; -webkit-appearance: none; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%237d6035' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field textarea { min-height: 170px; resize: vertical; }
.field:focus-within label { color: var(--brass-ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brass); background: var(--white); box-shadow: 0 1px 0 var(--brass), 0 14px 30px -20px rgba(19, 29, 42, .4); }
.field input:user-invalid, .field textarea:user-invalid, .field select:user-invalid { border-color: #a4443a; }
.check { display: flex; gap: 14px; align-items: flex-start; font-size: .9rem; color: var(--muted); margin: 6px 0 28px; }
.check input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--ink); flex: none; }
.form .btn { width: 100%; justify-content: center; padding: 19px; }
.form-note { font-size: .82rem; color: var(--muted); text-align: center; margin: 16px 0 0; }
.hidden-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(247, 243, 236, .7); padding: clamp(64px, 8vw, 104px) 0 36px; font-size: .94rem; border-top: 1px solid var(--line-light); }
.site-footer > .wrap { container-type: inline-size; }
.footer-mark { font-family: var(--serif); font-weight: 500; line-height: 1.05; font-size: calc((min(100vw, var(--wrap)) - 2 * var(--gutter)) / 7.4); font-size: calc(100cqi / 6.6); letter-spacing: -.01em; white-space: nowrap; color: rgba(210, 183, 138, .09); margin: 0 0 48px; padding-bottom: .04em; user-select: none; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid var(--line-light); }
.site-footer .brand { margin-bottom: 22px; }
.site-footer h4 { font: 600 .68rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--brass-light); margin: 6px 0 20px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { text-decoration: none; color: rgba(247, 243, 236, .82); transition: color .3s ease; }
.site-footer li a { background: linear-gradient(var(--brass-light), var(--brass-light)) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease-lux), color .3s ease; padding-bottom: 2px; }
.site-footer li a:hover { color: var(--paper); background-size: 100% 1px; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-top: 28px; font-size: .82rem; color: rgba(247, 243, 236, .55); }
.footer-legal p { margin: 0; }

/* ---------- Motion ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; animation-timing-function: cubic-bezier(.22, .8, .2, 1); }

html.intro body::before { content: ""; position: fixed; inset: 0; z-index: 200; background: var(--ink); pointer-events: none; animation: intro-lift 1s var(--ease-curtain) 1s forwards; }
html.intro body::after { content: "S"; position: fixed; left: 50%; top: 50%; z-index: 201; width: 76px; height: 76px; margin: -38px 0 0 -38px; display: grid; place-items: center; border: 1px solid rgba(210, 183, 138, .7); pointer-events: none; font: 500 2.7rem/1 var(--serif); color: var(--brass-light); opacity: 0; animation: intro-mark 1.9s var(--ease-lux) forwards; }
@keyframes intro-lift { to { transform: translateY(-100%); } }
@keyframes intro-mark { 0% { opacity: 0; transform: scale(.92); } 28%, 55% { opacity: 1; transform: none; } 78%, 100% { opacity: 0; transform: translateY(-36px); } }

.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; background: linear-gradient(90deg, #8a6a3b, var(--brass), var(--brass-light)); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }

.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 1s var(--ease-lux) var(--d, 0ms), transform 1s var(--ease-lux) var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

.js .hero .wrap > *, .js .page-hero .wrap > * { opacity: 0; transform: translateY(22px); transition: opacity 1.2s var(--ease-lux), transform 1.2s var(--ease-lux); }
.is-loaded .hero .wrap > *, .is-loaded .page-hero .wrap > * { opacity: 1; transform: none; }
.hero .wrap > :nth-child(2), .page-hero .wrap > :nth-child(2) { transition-delay: .15s; }
.hero .wrap > :nth-child(3), .page-hero .wrap > :nth-child(3) { transition-delay: .4s; }
.hero .wrap > :nth-child(4), .page-hero .wrap > :nth-child(4) { transition-delay: .55s; }
.hero .hero-foot > * { transition-delay: .85s; }
.hero-content { will-change: transform, opacity; }

.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .09em .16em; margin: 0 -.09em -.16em; }
.js .w > span { display: inline-block; transform: translateY(118%); transition: transform 1.25s var(--ease-lux); transition-delay: calc(var(--i, 0) * 70ms + 120ms); }
.is-loaded .hero .w > span, .is-loaded .page-hero .w > span, .reveal.in .w > span { transform: none; }

.js .eyebrow::before { transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.1s var(--ease-lux) .35s; }
.reveal.in .eyebrow::before, .reveal.in.eyebrow::before, .is-loaded .hero .eyebrow::before, .is-loaded .page-hero .eyebrow::before { transform: scaleX(1); }

.js .steps { border-top-color: transparent; }
.js .steps::after { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: linear-gradient(90deg, var(--brass), rgba(176, 141, 87, .25)); transform: scaleX(0); transform-origin: 0 50%; transition: transform 2s var(--ease-lux); }
.js .steps.in::after { transform: scaleX(1); }

.js .unveil { clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--ease-curtain); }
.js .unveil img { transform: scale(1.14); transition: transform 2.2s var(--ease-lux); }
.js .unveil.in { clip-path: inset(0 0 0 0); }
.js .unveil.in img { transform: scale(1); }
.js .unveil-self { clip-path: inset(0 0 100% 0); transition: clip-path 1.6s var(--ease-curtain) .15s; }
.js .unveil-self.in { clip-path: inset(0 0 0 0); }
.js .portrait::after, .js .areas-figure::after { transform: translate(-12px, -12px); opacity: 0; transition: transform 1.6s var(--ease-lux) .9s, opacity 1.2s ease .9s; }
.js .portrait:has(.unveil-self.in)::after, .js .areas-figure.in::after { transform: none; opacity: 1; }

.js .timeline::before { transform: scaleX(0); transition: transform 2.4s var(--ease-lux); }
.js .timeline.in::before { transform: scaleX(1); }
.js .timeline li { opacity: 0; transform: translateY(16px); transition: opacity 1s var(--ease-lux), transform 1s var(--ease-lux); }
.js .timeline.in li { opacity: 1; transform: none; }
.js .timeline.in li:nth-child(2) { transition-delay: .5s; }
.js .timeline.in li:nth-child(3) { transition-delay: 1s; }

.parallax { transform: scale(1.14); will-change: transform; }

.glow { position: relative; }
.glow::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .8s ease; background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%), rgba(176, 141, 87, .15), transparent 62%); }
.glow:hover::before { opacity: 1; }
.glow > .wrap { position: relative; z-index: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-index { grid-template-columns: 1fr 1fr; }
  .hero-index a:nth-child(3) { padding-left: 0; border-left: 0; }
  .hero-index a:nth-child(n+3) { border-top: 1px solid var(--line-light); }
  .hero-index a { padding-top: 18px; padding-bottom: 20px; }
  .scroll-cue { display: none; }
}
@media (max-width: 900px) {
  .areas { grid-template-columns: 1fr; }
  .areas-figure { display: none; }
  .area { grid-template-columns: 44px minmax(0, 1fr); padding: 30px 0 34px; }
  .area::before, .area-arrow { display: none; }
  .area-num { color: var(--brass-ink); }
  .area:hover .area-main { transform: none; }
  .areas-list:hover .area:not(:hover) > :not(.area-arrow) { opacity: 1; }
  .area-thumb { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-top: 22px; }
  .contact-aside { position: static; }
}
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--ink); padding: 8px var(--gutter) 30px; border-top: 1px solid var(--line-light); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s ease, transform .35s var(--ease-lux), visibility .25s; }
  .menu-open .nav { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 19px 0; border-bottom: 1px solid var(--line-light); font-size: .85rem; }
  .nav a:not(.btn)::after { display: none; }
  .nav a[aria-current="page"] { color: var(--brass-light); }
  .nav .btn { margin-top: 22px; justify-content: center; padding: 17px; border-bottom: 1px solid transparent; }
  .brand-name { font-size: 1.3rem; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .split, .contact-grid, .service, .intro-grid { grid-template-columns: 1fr; }
  .service:nth-child(even) .service-img { order: 0; }
  .steps { grid-template-columns: 1fr; border-top: 0; }
  .js .steps::after { display: none; }
  .step, .step + .step { padding: 40px 0 34px 30px; border-left: 0; border-top: 1px solid var(--line); }
  .step::before, .step + .step::before { left: 0; top: -6px; }
  .step + .step::before { left: 0; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .credentials li { grid-template-columns: 1fr; gap: 2px; }
  .portrait::after { inset: 14px -14px -14px 14px; }
  .portrait-wrap { margin-right: 14px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding-top: calc(var(--header-h) + 56px); }
  .hero::before { background: linear-gradient(180deg, rgba(19,29,42,.72) 0%, rgba(19,29,42,.5) 26%, rgba(19,29,42,.66) 58%, rgba(19,29,42,.97) 100%); }
  .hero-index a { font-size: .66rem; letter-spacing: .12em; gap: 10px; }
  .hero-index a:nth-child(even) { padding-left: 16px; }
  .timeline { grid-template-columns: 1fr; }
  .timeline::before { left: 5px; right: auto; top: 6px; bottom: 30px; width: 1px; height: auto; transform-origin: 50% 0; background: linear-gradient(180deg, var(--brass), rgba(176, 141, 87, .2)); }
  .js .timeline::before { transform: scaleY(0); }
  .js .timeline.in::before { transform: scaleY(1); }
  .timeline li { padding: 0 0 36px 36px; }
  .page-hero { padding-top: calc(var(--header-h) + 96px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.intro body::before, html.intro body::after { display: none; }
  .js .reveal, .js .hero .wrap > *, .js .page-hero .wrap > *, .js .timeline li { opacity: 1; transform: none; transition: none; }
  .js .w > span, .js .eyebrow::before, .js .steps::after, .js .timeline::before, .parallax, .js .unveil img { transform: none; }
  .js .unveil, .js .unveil-self { clip-path: none; }
  .js .portrait::after, .js .areas-figure::after { transform: none; opacity: 1; }
  .marquee-track, .step-num, .scroll-cue i::after { animation: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
