/* Fix Master Homes — boutique editorial: warm stone paper, deep navy ink, brass detail.
   Framed full-bleed photography, generous space, serif display + clean sans. */
:root {
  --paper: #F4F2EE;
  --paper-2: #EAE6DF;
  --card: #FBFAF8;
  --ink: #0E1A2B;
  --ink-2: #33404F;
  --muted: #535B66;
  --line: rgba(14, 26, 43, .14);
  --line-2: rgba(14, 26, 43, .26);
  --navy: #0E1A2B;
  --navy-2: #16263D;
  --on-dark: #F4F2EE;
  --on-dark-2: rgba(244, 242, 238, .7);
  --line-dark: rgba(244, 242, 238, .16);
  --brass: #A57A39;
  --brass-l: #CDA86C;
  --brass-t: #86602A; /* gold for small text on light backgrounds (passes WCAG AA contrast) */
  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Futura", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --max: 1360px;
  --gut: 40px;
  --frame: 0px;
  --head: 92px;
  --sec: 128px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: calc(var(--head) + 16px); -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.7 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gut); }

/* ---------- Type ---------- */
.eyebrow { display: block; font: 500 11.5px/1.4 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--brass-t); margin-bottom: 22px; }
.eyebrow.light { color: var(--brass-l); }
.display, .h1, .h2, .statement, .lead-serif, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.005em; text-wrap: balance; }
.display { font-size: clamp(3.4rem, 8.2vw, 8.6rem); line-height: .92; }
.h1 { font-size: clamp(3rem, 6.6vw, 6.4rem); line-height: .96; }
.h2 { font-size: clamp(2.4rem, 4.4vw, 4.2rem); line-height: 1.02; }
.display em, .h1 em, .h2 em, .statement em, .band-quote em, .mega-title em, .modal-title em { font-style: italic; font-weight: 400; color: var(--brass); }
.hero .display em, .hero .h1 em, .standards.dark .h2 em, .investors-band .h2 em, .cta .h2 em { color: var(--brass-l); }
h3 { font-size: 1.75rem; line-height: 1.15; }
.lede { font-size: 20px; color: var(--ink-2); max-width: 36em; margin-top: 28px; }
.muted { color: var(--muted); max-width: 26em; margin: 18px 0 26px; }
.muted-light { color: var(--on-dark-2); max-width: 30em; margin: 22px 0 34px; }
.statement { font-size: clamp(2rem, 3.6vw, 3.3rem); line-height: 1.16; margin-bottom: 34px; }
.lead-serif { font-size: clamp(1.55rem, 2.1vw, 2rem); line-height: 1.38; margin-bottom: 36px; max-width: 24em; }

/* ---------- Buttons & links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 54px; padding: 0 28px; border: 1px solid transparent; font: 500 12px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease); white-space: nowrap; }
.btn-dark { background: var(--ink); color: var(--on-dark); }
.btn-dark:hover { background: var(--brass); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: var(--brass-l); }
.btn-ghost { border-color: rgba(244, 242, 238, .5); color: var(--on-dark); background: transparent; }
.btn-ghost:hover { background: var(--on-dark); color: var(--ink); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 11px; }
.ar { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; flex-shrink: 0; transition: transform .4s var(--ease); }
.btn:hover .ar, .text-link:hover .ar, .card:hover .ar { transform: translate(2px, -2px); }
.text-link { display: inline-flex; align-items: center; gap: 10px; font: 500 12px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; text-decoration: none; padding-bottom: 8px; border-bottom: 1px solid var(--brass); transition: color .3s; }
.text-link:hover { color: var(--brass); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 300; background: var(--ink); color: var(--on-dark); padding: 10px 16px; }
.skip:focus { left: 8px; }

/* ---------- Header: transparent over the photo, solid on scroll / menu / plain pages ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 60; color: var(--on-dark); background: transparent; border: 1px solid transparent; border-width: 0 0 1px; transition: background .35s var(--ease), color .35s var(--ease), border-color .35s, box-shadow .35s var(--ease), top .4s var(--ease), left .4s var(--ease), right .4s var(--ease), border-radius .4s var(--ease); }
/* Scrolled header: floating navy bar, a thin 6px gap from the top, 6px corners, contained to the content width */
.site-header.float .header-inner { height: 66px; padding-inline: 26px; }
.site-header.float .logo svg { width: 252px; }
.site-header.float .btn-head { min-height: 40px; }
body:not(.menu-open) .site-header.solid.float, body:not(.menu-open) .site-header.solid.float:has(.has-mega:hover), body:not(.menu-open) .site-header.solid.float:has(.has-mega:focus-within) {
  background: rgba(14, 26, 43, .97); color: var(--on-dark); border-width: 1px; border-color: rgba(244, 242, 238, .1); border-radius: 6px;
  top: 6px; left: max(16px, calc(50% - 690px)); right: max(16px, calc(50% - 690px));
  box-shadow: 0 18px 38px -24px rgba(14, 26, 43, .75);
}
body:not(.menu-open) .site-header.solid.float .mega { top: calc(100% + 8px); border: 1px solid var(--line); border-radius: 6px; }
body:not(.menu-open) .site-header.solid.float .logo .lg { fill: #D6B06A; }
body:not(.menu-open) .site-header.solid.float .nav > a::after, body:not(.menu-open) .site-header.solid.float .has-mega > a::after { background: var(--brass-l); }
body:not(.menu-open) .site-header.solid.float .btn-head, body:not(.menu-open) .site-header.solid.float:has(.has-mega:hover) .btn-head { background: var(--brass-l); border-color: var(--brass-l); color: var(--ink); }
body:not(.menu-open) .site-header.solid.float .btn-head:hover { background: var(--on-dark); border-color: var(--on-dark); color: var(--ink); }
body.menu-open .site-header { box-shadow: none; }
body.menu-open .site-header .header-inner { height: var(--head); }
.site-header.solid, body.plain .site-header, body.menu-open .site-header, .site-header:has(.has-mega:hover), .site-header:has(.has-mega:focus-within) { background: var(--paper); color: var(--ink); border-color: var(--line); }
.header-inner { max-width: var(--max); margin: 0 auto; height: var(--head); display: flex; align-items: center; gap: 34px; padding-inline: calc(var(--gut) + var(--frame)); transition: height .35s var(--ease); }
.logo { display: block; flex-shrink: 0; }
.logo svg { width: 300px; height: auto; display: block; overflow: visible; transition: width .5s var(--ease); }
.logo .lw { font: 600 25px var(--sans); letter-spacing: 1px; }
.logo .lsv { fill: currentColor; }
.logo .ls { font: 500 9px var(--sans); letter-spacing: 5.2px; fill: currentColor; opacity: .8; }
/* Logo gold: brighter over photos and navy, deeper on light backgrounds for contrast */
.logo .lg { fill: #D6B06A; transition: fill .45s var(--ease); }
.site-header.solid .logo .lg, .site-header.float .logo .lg, body.plain .site-header .logo .lg, body.menu-open .site-header .logo .lg, .site-header:has(.has-mega:hover) .logo .lg { fill: #A57A39; }
.nav { display: flex; align-items: center; gap: 30px; height: 100%; margin-left: auto; }
.nav > a, .has-mega > a { position: relative; font: 400 12px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; text-decoration: none; color: inherit; opacity: .86; padding: 8px 0; transition: opacity .3s; }
.nav > a::after, .has-mega > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--brass-l); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.solid .nav > a::after, body.plain .nav > a::after, .solid .has-mega > a::after, body.plain .has-mega > a::after { background: var(--brass); }
.nav > a:hover, .has-mega:hover > a, .nav a[aria-current] { opacity: 1; }
.nav > a:hover::after, .has-mega:hover > a::after, .nav a[aria-current]::after { transform: scaleX(1); transform-origin: left; }
.header-call { font: 500 12.5px/1 var(--sans); letter-spacing: .12em; text-decoration: none; white-space: nowrap; opacity: .9; }
.header-call:hover { opacity: 1; }
.btn-head { border-color: rgba(244, 242, 238, .55); color: var(--on-dark); background: transparent; }
.btn-head:hover { background: var(--on-dark); color: var(--ink); }
.site-header.solid .btn-head, body.plain .btn-head, body.menu-open .btn-head, .site-header:has(.has-mega:hover) .btn-head { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.site-header.solid .btn-head:hover, body.plain .btn-head:hover { background: var(--brass); border-color: var(--brass); }
.has-mega { height: 100%; display: flex; align-items: center; }
.mega { position: absolute; left: 0; right: 0; top: 100%; color: var(--ink); background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); box-shadow: 0 30px 60px -40px rgba(14, 26, 43, .35); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s; }
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
.mega-inner { max-width: var(--max); margin: 0 auto; padding: 40px var(--gut) 44px; display: grid; grid-template-columns: 280px 1fr; gap: 56px; }
.mega-title { font: 500 30px/1.12 var(--serif); margin-bottom: 26px; }
.mega-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 20px; }
.mega-item { display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: center; padding: 10px; text-decoration: none; transition: background .3s; }
.mega-item:hover { background: var(--paper-2); }
.mega-img { width: 96px; height: 72px; overflow: hidden; background: var(--paper-2); }
.mega-img img { width: 100%; height: 100%; object-fit: cover; }
.mega-item b { display: block; font: 500 22px/1.2 var(--serif); }
.mega-item small { display: block; font-size: 13px; color: var(--muted); line-height: 1.4; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; padding: 10px; cursor: pointer; color: inherit; }
.nav-toggle span { display: block; height: 1.5px; background: currentColor; margin: 7px 0; transition: transform .3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }
body.plain main { padding-top: var(--head); }

/* Mobile overlay */
.overlay { position: fixed; inset: var(--head) 0 0 0; z-index: 55; background: var(--paper); overflow-y: auto; clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease); }
.overlay.open { clip-path: inset(0 0 0 0); }
.overlay-inner { min-height: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: 28px var(--gut) 40px; }
.overlay-nav > a { display: block; font: 500 clamp(2.3rem, 9vw, 3.4rem)/1.18 var(--serif); text-decoration: none; opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease), transform .6s var(--ease), color .3s; }
.overlay.open .overlay-nav > a { opacity: 1; transform: none; }
.overlay-nav > a:hover { color: var(--brass); }
.overlay-sub { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 4px 0 12px; }
.overlay-sub a { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.overlay-foot { display: grid; gap: 14px; justify-items: start; }
.overlay-phone { font: 500 2rem/1 var(--serif); text-decoration: none; }
.overlay-mail { color: var(--muted); text-decoration: none; }
body.menu-open { overflow: hidden; }
body.menu-open .m-bar { display: none !important; }

/* ---------- Heroes ---------- */
.hero { padding: var(--frame); }
.hero-frame { position: relative; overflow: hidden; background: var(--navy); display: flex; align-items: flex-end; }
.hero-home .hero-frame { height: 100vh; min-height: 680px; max-height: 1080px; }
.hero-page .hero-frame { min-height: 74vh; }
.hero-frame > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); animation: settle 9s var(--ease) forwards; }
@keyframes settle { to { transform: scale(1); } }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 26, 43, .7) 0%, rgba(14, 26, 43, .35) 11%, rgba(14, 26, 43, .05) 26%, rgba(14, 26, 43, .4) 52%, rgba(14, 26, 43, .9) 100%), linear-gradient(90deg, rgba(14, 26, 43, .66) 0%, rgba(14, 26, 43, .2) 55%, rgba(14, 26, 43, 0) 80%); }
.hero-content { position: relative; z-index: 1; width: 100%; max-width: 1100px; padding: 0 56px 60px; color: var(--on-dark); }
.hero-page .hero-content { padding-top: calc(var(--head) + 90px); }
.hero-sub { margin-top: 26px; max-width: 34em; font-size: 19px; color: rgba(244, 242, 238, .86); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.line { display: block; overflow: hidden; padding-bottom: .06em; }
.line > span { display: block; transform: translateY(105%); animation: up 1.3s var(--ease) .1s forwards; }
.line + .line > span { animation-delay: .22s; }
@keyframes up { to { transform: none; } }
.rise { opacity: 0; transform: translateY(18px); animation: rise 1.1s var(--ease) .55s forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: rgba(244, 242, 238, .7); }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: var(--on-dark); }
.crumbs span[aria-current] { color: var(--brass-l); }
.plain-hero { padding: 96px 0 84px; border-bottom: 1px solid var(--line); }
.plain-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 80px; align-items: end; }
.plain-grid .lede { margin: 0 0 10px; font-size: 19px; }
.plain-hero .crumbs { color: var(--muted); }
.plain-hero .crumbs span[aria-current] { color: var(--brass-t); }
.plain-hero .crumbs a:hover { color: var(--ink); }

/* Commitments strip */
.commit { border-bottom: 1px solid var(--line); }
.commit-list { display: grid; grid-template-columns: repeat(4, 1fr); }
.commit-list li { padding: 30px 28px 32px 0; display: grid; gap: 6px; align-content: start; }
.commit-list li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.commit-list b { font: 500 1.4rem/1.2 var(--serif); }
.commit-list span { font-size: 15.5px; color: var(--muted); line-height: 1.55; }

/* ---------- Sections ---------- */
.section { padding: var(--sec) 0; }
.section.tint { background: var(--paper-2); margin: 0 var(--frame); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 96px; align-items: start; }
.split > * { min-width: 0; }
.split-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; margin-bottom: 64px; }
.split-head > p { max-width: 26em; color: var(--muted); }
.split-head > div { max-width: 820px; }
.intro-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 96px; align-items: center; }
.intro-img { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-2); }
.intro-img img { width: 100%; height: 100%; object-fit: cover; }
.sticky-col { position: sticky; top: calc(var(--head) + 40px); }
.col-head { display: grid; justify-items: start; align-content: start; gap: 28px; }
.col-head > .eyebrow { margin-bottom: -6px; }
.col-head .muted, .col-head .statement, .col-head .lead-serif, .col-head .big-phone { margin: 0; }

/* Cards */
.cards { display: grid; gap: 28px; }
.cards-5 { grid-template-columns: repeat(6, 1fr); }
.cards-5 .card { grid-column: span 2; }
.cards-5 .card:nth-child(1), .cards-5 .card:nth-child(2) { grid-column: span 3; }
.cards-5 .card:nth-child(1) .card-img, .cards-5 .card:nth-child(2) .card-img { aspect-ratio: 16 / 11; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-2 { grid-template-columns: 1fr 1fr; margin-top: 8px; }
.cards-2 .card-img { aspect-ratio: 16 / 10; }
.card { display: block; text-decoration: none; min-width: 0; }
.card-img { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.card:hover .card-img img { transform: scale(1.05); }
.card-meta { display: grid; grid-template-columns: auto 1fr auto; column-gap: 16px; align-items: baseline; padding: 22px 0 20px; border-bottom: 1px solid var(--line); }
.card-k { font-size: 11px; letter-spacing: .2em; color: var(--brass-t); text-transform: uppercase; }
.card-meta b { font: 500 1.9rem/1.15 var(--serif); }
.card-meta small { grid-column: 2; font-size: 15px; color: var(--muted); }
.card-meta .ar { grid-row: 1; grid-column: 3; width: 14px; height: 14px; color: var(--brass); }

/* Investors band */
.investors-band { background: var(--navy); color: var(--on-dark); padding: var(--sec) 0; margin: 0 var(--frame); }
.row-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.inv-list { border-top: 1px solid var(--line-dark); }
.inv-list li { font: 500 clamp(1.4rem, 2.1vw, 1.9rem)/1.3 var(--serif); padding: 18px 0; border-bottom: 1px solid var(--line-dark); display: flex; gap: 18px; align-items: baseline; }
.inv-list li::before { content: ""; width: 18px; height: 1px; background: var(--brass-l); flex-shrink: 0; transform: translateY(-7px); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-2); }
.steps.three { grid-template-columns: repeat(3, 1fr); }
.steps li { padding: 34px 32px 0 0; }
.steps li + li { padding-left: 30px; border-left: 1px solid var(--line); }
.big-n { display: block; font: italic 400 4.6rem/.8 var(--serif); color: var(--brass); margin-bottom: 30px; }
.steps h3 { margin-bottom: 12px; }
.steps p { color: var(--muted); font-size: 17px; }

/* Scope list */
.scope { border-top: 1px solid var(--line-2); padding-top: 26px; }
.scope li { font: 500 clamp(1.4rem, 2vw, 1.75rem)/1.3 var(--serif); padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; gap: 18px; align-items: baseline; }
.scope li::before { content: ""; width: 18px; height: 1px; background: var(--brass); flex-shrink: 0; transform: translateY(-7px); }

/* Photo band */
.band { padding: 0 var(--frame); }
.band-frame { position: relative; height: 84vh; min-height: 520px; overflow: hidden; display: flex; align-items: flex-end; }
.band-frame img { position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover; will-change: transform; }
.band-quote { position: relative; z-index: 1; margin: 0 56px 56px; max-width: 16em; padding: 40px 44px; background: var(--paper); font: 500 clamp(1.7rem, 2.4vw, 2.3rem)/1.22 var(--serif); }
.band-quiet .band-frame { justify-content: flex-end; }
.band-quiet .band-frame img { object-position: 30% 50%; }

/* Standards */
.standards { padding: var(--sec) 0; }
.standards.dark { background: var(--navy); color: var(--on-dark); margin: 0 var(--frame); }
.standards.dark .split-head > p { color: var(--on-dark-2); }
.std-list { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-2); }
.standards.dark .std-list { border-color: var(--line-dark); }
.std-list li { padding: 34px 28px 0 0; }
.std-list li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.standards.dark .std-list li + li { border-color: var(--line-dark); }
.std-n { display: block; font: italic 400 1.4rem/1 var(--serif); color: var(--brass); margin-bottom: 40px; }
.standards.dark .std-n { color: var(--brass-l); }
.std-list h3 { margin-bottom: 14px; }
.std-list p { font-size: 17px; color: var(--muted); }
.standards.dark .std-list p { color: var(--on-dark-2); }

/* Process page */
.pstep-list { border-top: 1px solid var(--line-2); }
.pstep { display: grid; grid-template-columns: 110px 1fr; padding: 42px 0; border-bottom: 1px solid var(--line); }
.pstep-n { font: italic 400 3rem/1 var(--serif); color: var(--brass); }
.pstep h3 { font-size: 2.1rem; margin-bottom: 10px; }
.pstep p { color: var(--muted); max-width: 32em; }

/* FAQ */
.faq { border-top: 1px solid var(--line-2); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0; font: 500 clamp(1.3rem, 1.9vw, 1.65rem)/1.25 var(--serif); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover span { color: var(--brass); }
.faq-item i { position: relative; width: 14px; height: 14px; flex-shrink: 0; }
.faq-item i::before, .faq-item i::after { content: ""; position: absolute; left: 0; top: 6.5px; width: 14px; height: 1px; background: var(--brass); transition: transform .4s var(--ease); }
.faq-item i::after { transform: rotate(90deg); }
.faq-item[open] i::after { transform: rotate(0); }
.faq-a { padding: 0 48px 28px 0; color: var(--muted); }

/* Prose */
.prose p { color: var(--ink-2); margin-bottom: 1.2em; }
.prose h2 { font: 500 2rem/1.2 var(--serif); margin: 1.6em 0 .5em; }
.prose h2:first-child { margin-top: 0; }
.prose a { color: var(--brass-t); }
.narrow { max-width: 780px; }

/* Area marquee */
.area { padding: calc(var(--sec) * .85) 0; overflow: hidden; }
.area-sub { color: var(--muted); max-width: 30em; }
.marquee { margin-top: 48px; border-block: 1px solid var(--line); padding: 30px 0; overflow: hidden; }
.marquee-track { display: flex; align-items: center; gap: 44px; width: max-content; animation: marquee 60s linear infinite; }
.marquee-track span { font: 500 clamp(2.6rem, 5.6vw, 5rem)/1 var(--serif); white-space: nowrap; }
.marquee-track span:nth-of-type(even) { font-style: italic; font-weight: 400; color: var(--brass); }
.marquee-track i { width: 10px; height: 10px; background: var(--brass); transform: rotate(45deg); flex-shrink: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* CTA */
.cta { padding: 0 var(--frame); }
.cta-frame { position: relative; overflow: hidden; min-height: 620px; display: flex; align-items: center; justify-content: center; text-align: center; background: var(--navy); }
.cta-frame > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-frame::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(14, 26, 43, .86) 0%, rgba(14, 26, 43, .7) 70%); }
.cta-inner { position: relative; z-index: 1; color: var(--on-dark); padding: 100px 24px; display: flex; flex-direction: column; align-items: center; max-width: 820px; }
.cta-inner .h2 { font-size: clamp(3rem, 6.4vw, 6rem); margin-bottom: 24px; }
.cta-inner > p:not(.eyebrow) { color: var(--on-dark-2); max-width: 32em; margin-bottom: 40px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 80px; align-items: start; }
.contact-side { display: grid; gap: 34px; }
.cside { display: grid; gap: 4px; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.cside .eyebrow { margin-bottom: 10px; }
.cside b, .cmail { font: 500 1.6rem/1.25 var(--serif); text-decoration: none; overflow-wrap: anywhere; }
.cside small { color: var(--muted); font-size: 14.5px; }
.big-phone { font: 500 clamp(2.2rem, 3.4vw, 3rem)/1.1 var(--serif); text-decoration: none; display: inline-block; margin-bottom: 16px; }
.cside .big-phone { margin-bottom: 0; }
.big-phone:hover, .cmail:hover { color: var(--brass); }
.next { display: grid; gap: 10px; counter-reset: n; }
.next li { counter-increment: n; display: flex; gap: 14px; align-items: baseline; color: var(--ink-2); }
.next li::before { content: counter(n); font: italic 400 1.4rem/1 var(--serif); color: var(--brass); width: 16px; }
.contact-form { background: var(--card); border: 1px solid var(--line); padding: 48px; }

/* ---------- Inquiry form ---------- */
.f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 26px; }
.field { display: grid; gap: 8px; font: 500 11.5px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); min-width: 0; }
.field.full { grid-column: 1 / -1; }
.opt { color: var(--muted); font-weight: 400; letter-spacing: .08em; text-transform: none; font-size: 12px; margin-left: 4px; }
.field input, .field select, .field textarea { width: 100%; font: 400 17px/1.4 var(--sans); color: var(--ink); background: var(--paper); border: 1px solid var(--line-2); border-radius: 0; padding: 13px 14px; letter-spacing: 0; text-transform: none; transition: border-color .3s, background .3s; }
.field select { -webkit-appearance: none; appearance: none; padding-right: 40px; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23A57A39' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 14px center; }
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #9AA0A8; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: #fff; }
.field.invalid input { border-color: #B4533F; }
.f-error { min-height: 22px; margin: 14px 0 4px; font-size: 14.5px; color: #A2412E; }
.f-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; }
.f-note { font-size: 14px; color: var(--muted); max-width: 30em; }
.f-note a { color: var(--ink); }
.f-consent { flex-basis: 100%; font-size: 12px; line-height: 1.55; color: var(--muted); max-width: 62em; margin: 0; }
.f-consent a { color: inherit; text-decoration: underline; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.f-done h3 { font-size: 2.2rem; margin-bottom: 12px; }
.f-done p:not(.eyebrow) { color: var(--ink-2); }
.inquiry.sent .f-grid, .inquiry.sent .f-foot, .inquiry.sent .f-error { display: none; }
.hp { position: absolute; left: -9999px; }

/* Modal */
.modal { width: min(760px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; background: var(--paper); color: var(--ink); box-shadow: 0 40px 120px -30px rgba(14, 26, 43, .5); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.modal::backdrop { background: rgba(14, 26, 43, .55); }
.modal[open] { animation: modalIn .5s var(--ease); }
@keyframes modalIn { from { opacity: 0; transform: translateY(16px); } }
.modal-panel { position: relative; padding: 44px 48px 36px; }
.modal .f-grid { gap: 18px 24px; }
@media (max-height: 820px) and (min-width: 641px) { .modal-panel { padding: 30px 40px 26px; } .modal-sub { margin-bottom: 18px; } .modal .field textarea { min-height: 0; height: 64px; } }
.modal-title { font: 500 clamp(2rem, 4vw, 2.8rem)/1.05 var(--serif); margin-bottom: 12px; }
.modal-sub { color: var(--muted); margin-bottom: 30px; }
.modal-close { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; }
.modal-close span { position: absolute; left: 12px; top: 21px; width: 20px; height: 1.5px; background: var(--ink); transform: rotate(45deg); }
.modal-close span + span { transform: rotate(-45deg); }
body.modal-open { overflow: hidden; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: var(--on-dark-2); padding: 100px 0 34px; font-size: 15.5px; margin: var(--frame); }
.footer .eyebrow { color: var(--brass-l); margin-bottom: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 48px; }
.footer-grid > * { min-width: 0; }
.footer-brand .logo { color: var(--on-dark); }
.footer-brand .logo svg { width: 290px; margin-bottom: 26px; }
.footer-brand p { max-width: 24em; }
.footer ul { display: grid; gap: 10px; }
.footer a { text-decoration: none; transition: color .3s; overflow-wrap: anywhere; }
.footer a:hover { color: var(--on-dark); }
.footer-areas { margin-top: 70px; padding-top: 28px; border-top: 1px solid var(--line-dark); font-size: 14px; line-height: 1.9; }
.footer-areas .eyebrow { display: inline; margin-right: 10px; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 40px; font-size: 12.5px; color: rgba(244, 242, 238, .62); }

/* Two framed panels in a row are always separated by the same gutter */
:is(.band, .investors-band, .standards.dark, .section.tint, .cta) + :is(.band, .investors-band, .standards.dark, .section.tint, .cta) { margin-top: var(--frame); }

/* Mobile action bar */
.m-bar { display: none; }

/* Reveal: content is visible unless JS is running and it's below the fold */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal, .rise, .line > span { opacity: 1 !important; transform: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .header-call { display: none; }
}
@media (max-width: 1024px) {
  :root { --head: 76px; --gut: 28px; --sec: 104px; }
  .nav { display: none; }
  .nav-toggle { display: block; }
  .btn-head { margin-left: auto; }
  .split, .contact-grid, .intro-grid, .plain-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-form { order: -1; }
  .intro-img { aspect-ratio: 16 / 11; }
  .sticky-col { position: static; }
  .commit-list, .std-list, .steps { grid-template-columns: 1fr 1fr; }
  .commit-list li:nth-child(3), .std-list li:nth-child(3), .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .commit-list li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .std-list, .steps { row-gap: 48px; }
  .steps.three { grid-template-columns: 1fr; row-gap: 0; }
  .steps.three li { padding: 30px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .cards-5, .cards-3 { grid-template-columns: 1fr 1fr; }
  .cards-5 .card, .cards-5 .card:nth-child(2) { grid-column: auto; }
  .cards-5 .card .card-img { aspect-ratio: 4 / 5; }
  .cards-5 .card:nth-child(1) { grid-column: 1 / -1; }
  .cards-5 .card:nth-child(1) .card-img { aspect-ratio: 16 / 10; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-content { padding: 0 32px 44px; }
}
@media (max-width: 640px) {
  :root { --gut: 16px; --head: 68px; --sec: 84px; }
  body { font-size: 17px; }
  .logo svg { width: 232px; }
  .btn-head { display: none; }
  body:not(.menu-open) .site-header.solid.float { left: 8px; right: 8px; }
  .site-header.float .header-inner { height: 58px; padding-inline: 16px; }
  .site-header.float .logo svg { width: 206px; }
  .header-inner { padding-inline: calc(var(--gut) + 6px); }
  .hero-home .hero-frame { min-height: 600px; height: calc(100svh - 60px); }
  .hero-page .hero-frame { min-height: 70svh; }
  .hero-content { padding: 0 22px 30px; }
  .hero-page .hero-content { padding-top: calc(var(--head) + 60px); }
  .hero-sub { font-size: 17px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .plain-hero { padding: 70px 0 54px; }
  .lede { font-size: 18px; }
  .commit-list, .std-list, .steps, .cards-5, .cards-3, .cards-2, .footer-grid, .f-grid { grid-template-columns: 1fr; }
  .commit-list li, .commit-list li + li, .commit-list li:nth-child(3) { padding: 20px 0; border-left: 0; border-top: 1px solid var(--line); }
  .commit-list li:first-child { border-top: 0; }
  .std-list li, .std-list li + li, .steps li, .steps li + li { padding: 28px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .standards.dark .std-list li { border-color: var(--line-dark); }
  .std-list, .steps { row-gap: 0; }
  .cards-5 .card:nth-child(1) .card-img { aspect-ratio: 4 / 5; }
  .split-head { flex-direction: column; align-items: flex-start; margin-bottom: 44px; }
  .pstep { grid-template-columns: 62px 1fr; padding: 30px 0; }
  .pstep-n { font-size: 2.1rem; }
  .pstep h3 { font-size: 1.7rem; }
  .band-frame { height: 64vh; min-height: 420px; }
  .band-quote { margin: 0 12px 12px; padding: 24px; }
  .faq-a { padding-right: 0; }
  .cta-frame { min-height: 520px; }
  .contact-form { padding: 24px 18px; }
  .modal { width: 100%; max-width: 100%; max-height: 100%; height: 100%; margin: 0; }
  .modal-panel { padding: 64px 18px 32px; }
  .f-foot .btn { width: 100%; }
  /* Slim action bar: appears after the opening photo, hides where the same buttons are already on screen */
  .m-bar { display: grid; grid-template-columns: 1fr 1.7fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: rgba(14, 26, 43, .97); border-top: 1px solid rgba(205, 168, 108, .55); padding-bottom: env(safe-area-inset-bottom, 0px); transform: translateY(110%); transition: transform .5s var(--ease); }
  .m-bar.show { transform: none; }
  .m-bar a, .m-bar button { height: 54px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 0; background: none; font: 500 11.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: var(--on-dark); cursor: pointer; }
  .m-call { border-right: 1px solid var(--line-dark) !important; }
  .m-call svg { width: 15px; height: 15px; fill: var(--brass-l); }
  .m-start .ar { color: var(--brass-l); }
  .m-start:active, .m-call:active { background: rgba(244, 242, 238, .06); }
}

/* Call to action under the "How it works" steps */
.steps + .row-actions { margin-top: 56px; }

/* Phones: header slides away while scrolling down, returns on scroll up (see script.js setHeader) */
@media (max-width: 640px) {
  .site-header { transition: background .35s var(--ease), color .35s var(--ease), border-color .35s, box-shadow .35s var(--ease), transform .35s var(--ease); }
  .site-header.tuck { transform: translateY(calc(-100% - 12px)); box-shadow: none; }
}
