/* ==========================================================================
   Warm Close Advisory — styles
   Square corners everywhere. 1px rules inside lists, 2px rules to open them.
   ========================================================================== */

:root {
  --flour: #F1F0ED;
  --ink: #0E0E0E;
  --marble: #D7D5D1;
  --marble-deep: #CFCCC7;
  --umber: #4A2F24;
  --gold: #B89B6A;
  --gold-soft: #D9C3A0;
  --body: #3C3A37;
  --muted: #B5B2AD;
  --muted-light: #5E5B57;
  --rule-dark: #3A3936;

  --sans: 'Archivo', system-ui, sans-serif;
  --serif: 'Fraunces', Georgia, serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;

  --gutter: 48px;
  --section: 170px;
  --section-sm: 150px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--flour);
  color: var(--ink);
  font-family: var(--sans);
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
::selection { background: var(--ink); color: var(--flour); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
section[id] { scroll-margin-top: 84px; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 14px 20px; background: var(--ink); color: var(--flour);
  font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase;
}
.skip-link:focus { top: 16px; }

/* Fine paper grain across the whole page — barely there, reads as material. */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none;
  opacity: .05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Layout ---------- */

.container { max-width: 1344px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; }
.section { padding-top: var(--section); padding-bottom: var(--section); }
.section--sm { padding-top: var(--section-sm); padding-bottom: var(--section-sm); }
.section--top-only { padding-top: var(--section); padding-bottom: 0; }

.span-12 { grid-column: span 12; }
.span-6 { grid-column: span 6; }
.span-5 { grid-column: span 5; }
.span-3 { grid-column: span 3; }
.col-4-9 { grid-column: 4 / span 9; }
.col-4-6 { grid-column: 4 / span 6; }
.col-4-5 { grid-column: 4 / span 5; }
.col-4-4 { grid-column: 4 / span 4; }
.col-7-6 { grid-column: 7 / span 6; }
.col-9-4 { grid-column: 9 / span 4; }

.bg-ink { background: var(--ink); color: var(--flour); }
.bg-marble { background: var(--marble); }
.bg-umber { background: var(--umber); color: var(--flour); }

/* ---------- Type ---------- */

.label {
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase;
}
.label--side { padding-top: 10px; }
.label--num { letter-spacing: 0; color: var(--umber); }
.on-dark .label--num, .label--gold { color: var(--gold); }

.display {
  margin: 0; font-stretch: 70%; font-weight: 800; text-transform: uppercase;
  line-height: .88; letter-spacing: -.02em; text-wrap: balance;
  overflow-wrap: break-word;
}
.display--xl { font-size: clamp(54px, 9.6vw, 138px); line-height: .86; letter-spacing: -.025em; }
.display--lg { font-size: clamp(50px, 8.2vw, 118px); line-height: .86; }
.display--md { font-size: clamp(46px, 7.25vw, 104px); }

.accent {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  text-transform: lowercase; font-stretch: 100%; letter-spacing: -.03em;
}

.body { margin: 0; font-size: 17px; line-height: 1.65; color: var(--body); }
.body--lead { font-size: 19px; line-height: 1.55; }
.body--sm { font-size: 15px; line-height: 1.65; }
.on-dark .body { color: var(--muted); }

.nobr { white-space: nowrap; }

.statement {
  font-stretch: 80%; font-weight: 700; text-transform: uppercase;
  line-height: 1; letter-spacing: -.01em;
}

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(241, 240, 237, .92);
  -webkit-backdrop-filter: saturate(1.2) blur(12px);
  backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid var(--ink);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding-top: 26px; padding-bottom: 26px; transition: padding .4s var(--ease); }
.is-scrolled .nav { padding-top: 18px; padding-bottom: 18px; }
.wordmark { font-family: var(--serif); font-size: 22px; font-weight: 400; letter-spacing: .34em; text-transform: uppercase; }
.nav__links { display: flex; align-items: center; gap: 40px; }
.nav__link { position: relative; }
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease);
}
.nav__link:hover::after, .nav__link:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.nav__num { color: var(--umber); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 18px;
  font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  background: var(--ink); color: var(--flour);
  transition: background-color .35s var(--ease), color .35s var(--ease);
}
.btn__arrow { display: inline-block; transition: transform .45s var(--ease); }
.btn:hover .btn__arrow, .btn:focus-visible .btn__arrow { transform: translateX(8px); }
.btn:hover { background: var(--umber); }
.btn--nav { padding: 14px 22px; font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: .06em; }
.btn--hero { padding: 24px 34px; white-space: nowrap; }
.btn--bar { padding: 30px 32px; font-size: 14px; width: 100%; }
.btn--light { background: var(--flour); color: var(--ink); }
.btn--light:hover { background: var(--gold-soft); }

/* ---------- Hero ---------- */

.hero { padding-top: 110px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 56px; }
.meta-bar { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 2px solid var(--ink); }
.hero__foot { align-items: end; }
.hero__cta { display: flex; justify-content: flex-end; }

/* ---------- Marquee ---------- */

.marquee { overflow: hidden; contain: paint; }
.marquee__track {
  display: flex; width: max-content; padding: 26px 0;
  font-stretch: 75%; font-weight: 700; font-size: 26px; letter-spacing: .01em;
  text-transform: uppercase; white-space: nowrap;
  animation: marquee 70s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { padding: 0 34px; }
.marquee__sep { color: var(--gold); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Figures ---------- */

.figure { position: relative; overflow: hidden; margin: 0; background: var(--marble-deep); }
.figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.figure--hero { height: 640px; }
.figure--portrait { aspect-ratio: 1614 / 1086; background: #F2F2F0; }
.figure--portrait img { object-position: 30% 40%; }

/* ---------- Principles ---------- */

.triad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.triad__cell { display: flex; flex-direction: column; gap: 22px; padding: 28px 28px 0; border-left: 1px solid var(--ink); }
.triad__cell:first-child { padding-left: 0; border-left: none; }
.triad__cell:last-child { padding-right: 0; }
.triad .statement { font-size: 30px; }

/* ---------- Problem / symptom rows ---------- */

.section-grid { row-gap: 64px; }
.rule-list { display: flex; flex-direction: column; border-top: 2px solid var(--ink); }
.rule-list--mt { margin-top: 24px; }
.rule-row { padding: 30px 0; border-bottom: 1px solid var(--ink); align-items: baseline; }
.rule-row .statement { font-weight: 600; font-size: 36px; line-height: 1.05; }

/* ---------- A / B moment ---------- */

.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
.compare__col { display: flex; flex-direction: column; }
.compare__col--dark { padding: 0 28px; }
.compare__head { display: flex; justify-content: space-between; padding-bottom: 16px; border-bottom: 2px solid var(--ink); }
.compare__col--dark .compare__head { padding-top: 22px; border-bottom-color: var(--flour); }
.beat { display: flex; flex-direction: column; gap: 10px; padding: 26px 0; border-bottom: 1px solid var(--ink); }
.compare__col--dark .beat { border-bottom-color: var(--rule-dark); }
.compare__col--dark .beat:last-child { border-bottom: none; }
.beat .label { color: var(--umber); }
.compare__col--dark .beat .label { color: var(--gold); }
.beat .statement { font-weight: 600; font-size: 28px; line-height: 1.08; letter-spacing: 0; }

/* ---------- Founder note ---------- */

.quote { margin: 0; font-stretch: 75%; font-weight: 700; font-size: clamp(34px, 4.9vw, 70px); line-height: .95; letter-spacing: -.015em; text-transform: uppercase; text-wrap: balance; }

/* ---------- Decisions grid ---------- */

.decisions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.decision {
  height: 170px; padding: 22px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
  display: flex; flex-direction: column; justify-content: space-between;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
.decision .statement { font-size: 26px; }
.decision:hover { background: var(--marble); }
.decision--key { background: var(--ink); color: var(--flour); }
.decision--key:hover { background: var(--umber); }
.decision--key .label--num { color: var(--gold); }

/* ---------- Sprint ---------- */

.sprint { display: flex; flex-direction: column; gap: 96px; }
.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--flour); border-bottom: 1px solid var(--rule-dark); }
.stat { display: flex; flex-direction: column; gap: 10px; padding: 28px 24px; border-left: 1px solid var(--rule-dark); }
.stat:first-child { padding-left: 0; border-left: none; }
.stat:last-child { padding-right: 0; }
.stat__num { font-stretch: 70%; font-weight: 800; font-size: 84px; line-height: .9; }
.stat .label { letter-spacing: 0; font-weight: 400; color: var(--muted); }

.phases { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule-dark); }
.phase { display: flex; flex-direction: column; gap: 20px; padding: 28px 24px 0; border-left: 1px solid var(--rule-dark); }
.phase:first-child { padding-left: 0; border-left: none; }
.phase:last-child { padding-right: 0; }
.phase .label { letter-spacing: 0; font-weight: 400; }
.phase__name { font-stretch: 75%; font-weight: 800; font-size: 44px; line-height: .9; text-transform: uppercase; }

.deliverables { display: flex; flex-direction: column; border-top: 1px solid var(--flour); }
.deliverable { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); column-gap: 32px; padding: 28px 0; border-bottom: 1px solid var(--rule-dark); align-items: baseline; }
.deliverable .statement { grid-column: span 5; font-size: 32px; letter-spacing: 0; }
.deliverable .body { grid-column: 6 / span 4; font-size: 15px; line-height: 1.6; }

.terms { align-items: end; }
.term { display: flex; flex-direction: column; gap: 16px; }
.term .label { letter-spacing: 0; }
.term .body { font-size: 15px; line-height: 1.7; }
.terms__cta { grid-column: 4 / span 9; margin-top: 56px; }

/* ---------- Standard ---------- */

.standard-grid { row-gap: 72px; }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 32px; border-top: 2px solid var(--ink); }
.pillar { display: flex; flex-direction: column; gap: 22px; padding: 30px 28px 0 0; }
.pillar__title { font-stretch: 78%; font-weight: 800; font-size: 40px; line-height: .92; text-transform: uppercase; }
.pillar .body { font-size: 16px; }

/* ---------- Fit ---------- */

.fit-grid { row-gap: 80px; }
.fit-list { display: flex; flex-direction: column; }
.fit-list__head { display: flex; justify-content: space-between; padding-bottom: 16px; border-bottom: 2px solid var(--ink); }
.fit-list__item { padding: 20px 0; border-bottom: 1px solid var(--ink); font-size: 18px; line-height: 1.45; }
.fit-list--no { color: var(--muted-light); }
.fit-list--no .fit-list__head { border-bottom-color: #8C8984; }
.fit-list--no .fit-list__item { border-bottom-color: #C4C1BC; }

/* ---------- About ---------- */

.about { border-top: 1px solid var(--ink); }
.about-grid { row-gap: 48px; align-items: start; }
.about__intro { display: flex; flex-direction: column; gap: 40px; position: sticky; top: 120px; align-self: start; }
.about__lead { margin: 0; padding-top: 24px; border-top: 2px solid var(--ink); font-size: 30px; line-height: 1.05; letter-spacing: 0; max-width: 520px; }
.about__text { display: flex; flex-direction: column; gap: 22px; }
.about__pivot { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 26px; line-height: 1.3; color: var(--ink); }
.about__name { overflow-wrap: break-word; margin: 0; font-stretch: 70%; font-weight: 800; font-size: clamp(56px, 8.9vw, 128px); line-height: .84; letter-spacing: -.025em; text-transform: uppercase; }
.about__close { margin: 16px 0 0; padding-top: 24px; border-top: 1px solid var(--ink); font-size: 30px; line-height: 1.05; letter-spacing: 0; }

/* ---------- FAQ ---------- */

.faq-section { padding-bottom: var(--section); }
.faq-grid { row-gap: 56px; }
.faq { border-bottom: 1px solid var(--ink); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 32px;
  padding: 30px 0; list-style: none; cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .statement { font-size: 32px; line-height: 1.05; letter-spacing: 0; transition: color .3s var(--ease); }
.faq summary:hover .statement { color: var(--umber); }
.faq__plus { font-weight: 300; font-size: 40px; line-height: 1; transition: transform .35s var(--ease); }
.faq[open] .faq__plus { transform: rotate(45deg); }
.faq__answer { margin: 0; padding: 0 0 32px; max-width: 760px; }

/* ---------- Final CTA ---------- */

.cta-grid { row-gap: 56px; }
.bg-umber .label--side { color: var(--gold-soft); }
.bg-umber .body { color: #E3D9CF; }
.availability { align-self: end; display: flex; flex-direction: column; gap: 10px; padding-top: 18px; border-top: 1px solid var(--gold-soft); }
.availability .label { color: var(--gold-soft); letter-spacing: 0; }
.availability p { margin: 0; font-size: 16px; line-height: 1.5; }

/* ---------- Footer ---------- */

.footer { padding-top: 80px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 64px; }
.footer__mark { font-family: var(--serif); font-size: clamp(38px, 11.1vw, 164px); font-weight: 400; line-height: .9; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; }
.footer__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 20px; border-top: 1px solid var(--rule-dark); color: var(--muted); letter-spacing: 0; }
.footer__bar a { transition: color .3s var(--ease); }
.footer__bar a:hover { color: var(--flour); }

/* ---------- Motion: reveal on scroll (only when JS is running) ---------- */

.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0s !important; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1100px) {
  .nav__link { display: none; }
  .hero__foot .span-5 { grid-column: span 6; }
  .hero__foot .col-9-4 { grid-column: 7 / span 6; }
  .decisions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat:nth-child(4) { padding-left: 0; border-left: none; }
  .stat:nth-child(n+4) { border-top: 1px solid var(--rule-dark); }
  .phases { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .phase:nth-child(3) { padding-left: 0; border-left: none; }
  .phase:nth-child(2) { padding-right: 0; }
}

@media (max-width: 900px) {
  :root { --gutter: 20px; --section: 96px; --section-sm: 96px; }

  .grid, .triad, .compare, .pillars, .deliverable, .decisions, .stats, .phases { grid-template-columns: 1fr; row-gap: 24px; }
  .grid > *, .deliverable > * { grid-column: auto !important; }

  .nav { padding-top: 18px; padding-bottom: 18px; }
  .wordmark { font-size: 16px; letter-spacing: .24em; }
  .nav__links { gap: 16px; }
  .btn--nav { padding: 12px 16px; }

  .hero { padding-top: 64px; padding-bottom: 56px; gap: 32px; }
  .hero__cta { justify-content: flex-start; }
  .btn--hero { width: 100%; white-space: normal; }
  .meta-bar, .compare__head, .fit-list__head, .footer__bar { flex-wrap: wrap; gap: 12px; }
  .meta-bar span:nth-child(2) { display: none; }

  .marquee__track { font-size: 20px; padding: 20px 0; }
  .marquee__item { padding: 0 22px; }

  .figure--hero { height: 360px; }
  .figure--portrait { aspect-ratio: 4 / 3; }

  .triad__cell, .stat, .phase { padding: 24px 0 0; border-left: none; border-top: none; }
  .triad__cell + .triad__cell { border-top: 1px solid var(--ink); }
  .triad .statement { font-size: 26px; }

  .rule-row .statement, .beat .statement, .deliverable .statement, .faq summary .statement, .about__close { font-size: 24px; }
  .rule-row { row-gap: 10px; }

  .compare { row-gap: 48px; }
  .compare__col--dark { padding: 0 20px; }

  .decision { height: auto; min-height: 120px; gap: 24px; }
  .decision .statement { font-size: 22px; }

  .sprint { gap: 64px; }
  .stats { row-gap: 0; }
  .stat { padding: 20px 0; flex-direction: row; align-items: baseline; justify-content: space-between; }
  .stat + .stat, .stat:nth-child(n+4) { border-top: 1px solid var(--rule-dark); }
  .stat__num { font-size: 60px; }
  .phase { padding-bottom: 8px; }
  .phase + .phase { border-top: 1px solid var(--rule-dark); padding-top: 28px; }
  .phases { row-gap: 20px; }
  .phase__name { font-size: 38px; }
  .deliverable { row-gap: 12px; }
  .terms { row-gap: 40px; }
  .terms__cta { margin-top: 16px; }

  .pillars { row-gap: 40px; }
  .pillar__title { font-size: 32px; }

  .about__close { margin-top: 16px; }
  .about__intro { position: static; gap: 28px; }
  .about__lead { font-size: 24px; }
  .about__pivot { font-size: 22px; }

  .faq summary { padding: 24px 0; gap: 20px; }
  .faq__plus { font-size: 32px; }

  .btn--bar { padding: 24px 22px; font-size: 13px; }

  .footer { padding-top: 64px; gap: 40px; }
  .footer__bar { flex-direction: column; align-items: flex-start; }
}
