/* Mayflow Digital. Mountain modern: alpine at dusk.
   Night slate up top, ridgelines that melt into warm stone, timber copper for the one thing to click.
   Archivo (OFL) for display, system sans for reading. */

@font-face { font-family: "Archivo"; src: url("/fonts/archivo-latin.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }

:root {
  --night: #11181d;
  --night-2: #172128;
  --dusk: #1c2d37;
  --horizon: #34474f;
  --ridge-far: #3b5866;
  --ridge-mid: #27414c;
  --ridge-near: #182830;
  --glow: #d69a63;
  --stone: #f3efe8;
  --stone-2: #e9e3d9;
  --surface: #fbf9f5;
  --ink: #15191a;
  --soft: #4b5153;
  --line: #d9d1c4;
  --lake: #1d4b59;
  --pine: #2f4a3f;
  --copper: #a35a30;
  --copper-light: #e2ac7c;
  --on-dark: #f3efe8;
  --on-dark-soft: #b9c3c6;
  --hairline-dark: rgba(243, 239, 232, .12);
  --display: "Archivo", ui-sans-serif, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --pad: clamp(1rem, 5vw, 4rem);
  --radius: 4px;
  --grain: 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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  color-scheme: light;
}

* { box-sizing: border-box; }
html { font-size: 106.25%; background: var(--stone); scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--stone); font-family: var(--sans); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
::selection { background: var(--lake); color: var(--on-dark); }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; font-stretch: 108%; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.wrap { width: 100%; max-width: 74rem; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.skip-link { position: fixed; top: .5rem; left: .5rem; z-index: 50; padding: .6rem .9rem; background: var(--ink); color: var(--on-dark); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header: black steel, logo in light ink */
.site-header { position: relative; z-index: 5; background: var(--night); color: var(--on-dark); border-bottom: 1px solid var(--hairline-dark); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .75rem; padding-bottom: .75rem; }
.brand { display: inline-block; width: 7.25rem; }
.brand img { filter: invert(1) sepia(.15) brightness(.97); }
.site-nav { display: flex; align-items: center; gap: 1.6rem; font-size: .95rem; font-weight: 550; }
.site-nav a { text-decoration: none; color: var(--on-dark-soft); white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--on-dark); }
.site-nav .button { color: var(--on-dark); }

/* Buttons */
.button { display: inline-flex; align-items: center; gap: .55rem; min-height: 2.9rem; padding: .85rem 1.35rem; border-radius: var(--radius); background: var(--copper); color: var(--on-dark); text-decoration: none; font-family: var(--display); font-weight: 650; font-stretch: 105%; letter-spacing: .01em; line-height: 1.1; white-space: nowrap; box-shadow: 0 10px 24px -12px rgba(163, 90, 48, .8); transition: transform .15s ease, filter .15s ease; }
.button:hover { filter: brightness(1.08); transform: translateY(-1px); }
.button svg { width: .9rem; height: .9rem; fill: none; stroke: currentColor; stroke-width: 2; }
.button-small { min-height: 0; padding: .55rem .95rem; font-size: .9rem; box-shadow: none; }
.text-link { color: var(--lake); font-weight: 600; }
.text-link:hover { color: var(--ink); }

/* Hero: night sky, ridgelines rising into the stone below */
.hero { position: relative; overflow: hidden; color: var(--on-dark); background:
  radial-gradient(120% 70% at 75% 100%, rgba(214, 154, 99, .38), transparent 60%),
  linear-gradient(180deg, var(--night) 0%, var(--dusk) 70%, var(--horizon) 100%); }
.hero::after, .page-hero::after, .cta::after { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: .09; mix-blend-mode: overlay; pointer-events: none; }
.hero-inner { position: relative; z-index: 2; padding-top: clamp(3rem, 8vh, 5.5rem); padding-bottom: clamp(9rem, 19vw, 15rem); }
.hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); line-height: 1; font-weight: 750; font-stretch: 110%; letter-spacing: -0.03em; max-width: 17ch; }
.lede { margin-top: 1.4rem; max-width: 38rem; font-size: 1.15rem; color: var(--soft); }
.hero .lede { color: var(--on-dark-soft); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; margin-top: 2.2rem; }
.hero .text-link { color: var(--on-dark); }
.hero .text-link:hover { color: var(--copper-light); }

.ridges { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(8rem, 19vw, 15rem); z-index: 1; pointer-events: none; }
.ridges path { transform-box: fill-box; }
.ridges .far { fill: var(--ridge-far); }
.ridges .mid { fill: var(--ridge-mid); }
.ridges .near { fill: var(--ridge-near); }
.ridges .front { fill: var(--stone); }
.ridges .trace { fill: none; stroke: var(--glow); stroke-width: 1.4; vector-effect: non-scaling-stroke; opacity: .75; }

@media (prefers-reduced-motion: no-preference) {
  .ridges .far, .ridges .mid, .ridges .near, .ridges .front { animation: rise 1.4s cubic-bezier(.2, .7, .1, 1) both; }
  .ridges .far { animation-delay: .05s; }
  .ridges .mid { animation-delay: .18s; }
  .ridges .near { animation-delay: .3s; }
  .ridges .front { animation-delay: .4s; }
  .ridges .trace { stroke-dasharray: 2400; stroke-dashoffset: 2400; animation: draw 2.6s .5s ease-out forwards; }
  .hero-inner > *, .page-head > * { animation: lift .9s cubic-bezier(.2, .7, .1, 1) both; }
  .hero-inner > :nth-child(2), .page-head > :nth-child(2) { animation-delay: .08s; }
  .hero-inner > :nth-child(3), .page-head > :nth-child(3) { animation-delay: .16s; }
  .hero-inner > :nth-child(4) { animation-delay: .24s; }
  @supports (animation-timeline: view()) {
    .reveal { animation: lift linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
  }
}
@keyframes rise { from { transform: translateY(35%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes lift { from { transform: translateY(18px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Sections */
.section { position: relative; padding-top: clamp(3.5rem, 8vw, 6rem); padding-bottom: clamp(3.5rem, 8vw, 6rem); }
.section-tint { background: var(--stone-2); }
.section h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.08; max-width: 22ch; }
.section-head { margin-bottom: clamp(2rem, 4vw, 3rem); }

/* Why: a faint topo map in the corner */
.why-band { overflow: hidden; }
.topo { position: absolute; right: -6rem; top: -2rem; width: 34rem; max-width: 70vw; opacity: .55; pointer-events: none; }
.topo path { fill: none; stroke: var(--line); stroke-width: 1.2; }
.why { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 1.5rem clamp(2rem, 6vw, 5rem); align-items: start; }
.why-copy p { font-size: 1.12rem; color: var(--soft); }
.why-copy p + p { margin-top: 1rem; }

/* Guardrails: black steel band */
.steel { background: var(--night); color: var(--on-dark); }
.rails { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--hairline-dark); border: 1px solid var(--hairline-dark); }
.rail { padding: 1.6rem 1.5rem 1.8rem; background: var(--night); transition: background .2s ease; }
.rail:hover { background: var(--night-2); }
.rail .icon { width: 2rem; height: 2rem; margin-bottom: 1.1rem; fill: none; stroke: var(--copper-light); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.rail h3 { margin-bottom: .45rem; font-size: 1.12rem; }
.rail p { color: var(--on-dark-soft); }

/* Guardrails, slim version lower on the page */
.steel-slim { padding-top: clamp(2.75rem, 6vw, 4rem); padding-bottom: clamp(2.75rem, 6vw, 4rem); }
.steel-slim .section-head { margin-bottom: 1.5rem; }
.rails-lede { margin-top: .5rem; font-family: var(--display); font-size: 1.05rem; font-stretch: 105%; color: var(--copper-light); }
.steel-slim h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); max-width: none; }
.steel-slim .rail { padding: 1.25rem 1.25rem 1.4rem; }
.steel-slim .rail .icon { width: 1.5rem; height: 1.5rem; margin-bottom: .7rem; }
.steel-slim .rail h3 { font-size: 1rem; }
.steel-slim .rail p { font-size: .95rem; }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; counter-reset: svc; }
.service { position: relative; padding: 1.5rem 1.5rem 1.6rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); counter-increment: svc; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.service::before { content: "0" counter(svc); display: block; margin-bottom: 1.4rem; font-family: var(--mono); font-size: .75rem; color: var(--copper); }
.service:hover { transform: translateY(-3px); border-color: var(--copper); box-shadow: 0 18px 30px -22px rgba(17, 24, 29, .55); }
.service h3 { margin-bottom: .35rem; font-size: 1.15rem; }
.service p { color: var(--soft); }
.services-note { margin-top: 1.75rem; color: var(--soft); }

/* How it works: a trail with three waypoints */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps::before { content: ""; position: absolute; top: 1.15rem; left: 1.15rem; right: 12%; border-top: 2px dashed var(--copper); opacity: .55; }
.steps li { position: relative; counter-increment: step; color: var(--soft); }
.steps li::before { content: "0" counter(step); position: relative; display: grid; place-items: center; width: 2.3rem; height: 2.3rem; margin-bottom: 1.25rem; border-radius: 50%; background: var(--stone); border: 2px solid var(--copper); font-family: var(--mono); font-size: .78rem; font-weight: 600; color: var(--copper); }
.steps li:last-child::before { background: var(--copper); color: var(--on-dark); }
.steps h3 { margin-bottom: .45rem; font-size: 1.25rem; color: var(--ink); }

/* Founder */
.founder { display: grid; grid-template-columns: minmax(0, 16rem) minmax(0, 1fr); gap: 2.5rem clamp(2rem, 6vw, 5rem); align-items: start; }
.portrait-frame { position: relative; }
.portrait-frame::before { content: ""; position: absolute; inset: 1rem -1rem -1rem 1rem; background: var(--copper); border-radius: var(--radius); }
.portrait { position: relative; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }
.founder-name { margin-top: 1.8rem; font-family: var(--display); font-weight: 700; font-size: 1.1rem; }
.founder-role { font-size: .92rem; color: var(--soft); }
.founder-copy { max-width: 40rem; }
.founder-copy p { margin-top: 1rem; font-size: 1.1rem; }
.founder-copy .more { margin-top: 1.4rem; }

/* Questions: click to open */
.faq { max-width: 50rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 3.4rem; padding: 1rem 0; font-family: var(--display); font-weight: 650; font-size: 1.05rem; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 1.5rem; font-weight: 400; line-height: 1; color: var(--copper); transition: transform .15s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--lake); }
.faq details p { padding: 0 2rem 1.2rem 0; color: var(--soft); }

/* Close: back to the mountains */
.cta { position: relative; overflow: hidden; color: var(--on-dark); background: linear-gradient(180deg, var(--dusk), var(--night)); }
.cta .ridges { top: -1px; bottom: auto; height: clamp(4rem, 9vw, 7rem); transform: scaleY(-1); }
.cta-inner { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 2rem; padding-top: clamp(6rem, 13vw, 9.5rem); padding-bottom: clamp(3rem, 7vw, 4.5rem); }
.cta h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
.cta p { margin-top: .5rem; color: var(--on-dark-soft); }
.cta a:not(.button) { color: var(--on-dark); }

/* Inner pages: a low ridge band */
.page-hero { position: relative; overflow: hidden; color: var(--on-dark); background: linear-gradient(180deg, var(--night), var(--dusk)); }
.page-hero .ridges { height: clamp(4.5rem, 10vw, 8rem); }
.page-head { position: relative; z-index: 2; padding-top: clamp(3rem, 8vh, 5rem); padding-bottom: clamp(6rem, 13vw, 10rem); }
.page-head h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); line-height: 1; font-stretch: 112%; }
.page-head .lede { margin-top: 1rem; color: var(--on-dark-soft); }

/* What I've built */
.builds { display: grid; gap: 1.5rem; padding-top: clamp(2rem, 4vw, 3rem); padding-bottom: clamp(3.5rem, 8vw, 6rem); }
.build { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 2rem clamp(2rem, 4vw, 3.5rem); align-items: start; padding: clamp(1.5rem, 3vw, 2.4rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.build-text { grid-template-columns: minmax(0, 1fr); }
.build-text .build-copy { max-width: 44rem; }
.build h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.build-copy p { margin-top: .75rem; color: var(--soft); }
.build-link { margin-top: 1.25rem !important; }
.proof { margin: 0; }
.proof-shot { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 24px 40px -24px rgba(17, 24, 29, .55); transition: transform .2s ease; }
.proof-shot:hover { transform: translateY(-3px); }
.proof figcaption { margin-top: .75rem; font-size: .9rem; color: var(--soft); }
.proof-rules { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0 0; padding: 0; }
.proof-rules li { padding: .3rem .7rem; border-radius: 999px; background: var(--stone-2); color: var(--pine); font-size: .85rem; font-weight: 600; }

/* Checkup quiz */
.quiz-wrap { padding-top: clamp(1.5rem, 4vw, 2.5rem); padding-bottom: clamp(3.5rem, 8vw, 6rem); }
.quiz { max-width: 44rem; scroll-margin-top: 1rem; }
.quiz h2:focus { outline: none; }
.quiz-progress { height: 6px; margin-bottom: 1.5rem; background: var(--stone-2); border-radius: 99px; overflow: hidden; }
.quiz-progress span { display: block; height: 100%; background: var(--copper); border-radius: 99px; transition: width .3s ease; }
.quiz-count { font-family: var(--mono); font-size: .8rem; color: var(--copper); }
.quiz-q { margin-top: .4rem; font-size: clamp(1.5rem, 3.4vw, 2.2rem); line-height: 1.12; }
.quiz-options { display: grid; gap: .75rem; margin-top: 1.75rem; }
.quiz-option { display: block; width: 100%; min-height: 3.4rem; padding: 1rem 1.25rem; text-align: left; font: inherit; font-size: 1.05rem; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; transition: border-color .15s ease, transform .15s ease, background .15s ease; }
.quiz-option:hover { border-color: var(--copper); transform: translateX(3px); }
.quiz-option.is-picked { border-color: var(--copper); background: var(--stone-2); }
.quiz-back { margin-top: 1.25rem; padding: .5rem 0; font: inherit; font-size: .95rem; color: var(--soft); background: none; border: 0; cursor: pointer; }
.quiz-back:hover { color: var(--ink); }
.quiz-field { display: grid; gap: .35rem; margin-top: 1.25rem; font-weight: 600; }
.quiz-field em { font-style: normal; font-weight: 400; color: var(--soft); }
.quiz-field input, .quiz-field textarea { width: 100%; padding: .75rem .9rem; font: inherit; font-weight: 400; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.quiz-field input:focus, .quiz-field textarea:focus { border-color: var(--copper); outline: 2px solid var(--copper); outline-offset: 1px; }
.quiz-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.quiz-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.75rem; }
.quiz-why { margin-top: .9rem; font-size: 1.08rem; color: var(--soft); }
.quiz-tip { margin-top: 1.5rem; padding: 1.25rem 1.4rem; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--copper); border-radius: var(--radius); }
.quiz-tip strong { font-family: var(--display); }
.quiz-tip p { margin-top: .35rem; }
.quiz-bars { display: grid; gap: .6rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.quiz-bars li { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr) 3rem; align-items: center; gap: .8rem; font-size: .95rem; }
.bar-track { height: 10px; background: var(--stone-2); border-radius: 99px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--lake); border-radius: 99px; }
.is-first .bar-fill { background: var(--copper); }
.is-first .bar-label { font-weight: 700; }
.bar-num { font-family: var(--mono); font-size: .8rem; color: var(--soft); text-align: right; }
.quiz-email { margin-top: 2.5rem; padding: clamp(1.25rem, 3vw, 1.75rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.quiz-email h3 { font-size: 1.25rem; }
.quiz-email .button { margin-top: 1.25rem; border: 0; cursor: pointer; }
.quiz-email .button:disabled { opacity: .6; cursor: default; }
.quiz-check { display: flex; gap: .65rem; align-items: flex-start; margin-top: 1.25rem; }
.quiz-check input { width: 1.15rem; height: 1.15rem; margin-top: .2rem; accent-color: var(--copper); flex: none; }
.quiz-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.quiz-status { margin-top: .9rem; font-weight: 600; color: var(--pine); }
.quiz-status:empty { display: none; }
.quiz-fine { margin-top: .9rem; font-size: .9rem; color: var(--soft); }
.quiz-actions .quiz-fine { margin-top: 0; }
@media (max-width: 640px) { .quiz-row { grid-template-columns: minmax(0, 1fr); } .quiz-bars li { grid-template-columns: 7rem minmax(0, 1fr) 2.6rem; } }

/* Privacy */
.legal { max-width: 44rem; padding-top: clamp(2rem, 4vw, 3rem); padding-bottom: clamp(3.5rem, 8vw, 6rem); }
.legal h2 { margin-top: 2.4rem; font-size: 1.3rem; }
.legal p, .legal li { margin-top: .6rem; color: var(--soft); }
.legal ul { margin: .4rem 0 0; padding-left: 1.2rem; }
.summary { padding: 1.5rem 1.6rem; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--copper); border-radius: var(--radius); }
.summary h2 { margin-top: 0; }
.summary li { color: var(--ink); }

/* Footer */
.site-footer { background: var(--night); color: var(--on-dark-soft); padding: 1.75rem 0 2.25rem; border-top: 1px solid var(--hairline-dark); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; font-size: .9rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; color: var(--on-dark); }

@media (max-width: 1100px) { .rails { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .steps, .why, .founder, .build { grid-template-columns: minmax(0, 1fr); }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { gap: 1.75rem; padding-left: 3.4rem; }
  .steps::before { top: 1.15rem; bottom: 1.15rem; left: 1.1rem; right: auto; border-top: 0; border-left: 2px dashed var(--copper); }
  .steps li::before { position: absolute; left: -3.4rem; top: 0; margin: 0; }
  .portrait-frame { max-width: 11rem; }
}
@media (max-width: 640px) {
  .services, .rails { grid-template-columns: minmax(0, 1fr); }
  .site-nav .nav-hide { display: none; }
  .brand { width: 6rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .service, .proof-shot, .rail { transition: none; }
}
