/* CircadiaOS — Dark design system.
   WHOOP × Linear × Apple × Eight Sleep. All pages dark. Inter + Geist Mono. */

:root {
  --night: #09090b;
  --night-2: #111113;
  --night-line: rgba(255,255,255,0.08);
  --night-text: #fafafa;
  --night-muted: rgba(255,255,255,0.55);
  --paper: #09090b;
  --paper-2: #111113;
  --ink: #fafafa;
  --ink-2: rgba(255,255,255,0.75);
  --ink-muted: rgba(255,255,255,0.55);
  --line: rgba(255,255,255,0.08);
  --amber: #f59e0b;
  --blue: #7dd3fc;
  --accent: #818cf8;
  --serif: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", "SF Mono", Menlo, monospace;
  --max: 1200px;
  --gutter: clamp(24px, 5vw, 64px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: #09090b; color: #fafafa; font-family: var(--sans); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; } p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.08; letter-spacing: -0.025em; }
h1, h2 { font-family: var(--sans); }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.8rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 3rem); }
h3 { font-family: var(--sans); font-size: clamp(1.2rem, 1.8vw, 1.5rem); font-weight: 600; }
h4 { font-size: 0.95rem; font-weight: 500; }
em { font-style: italic; }
strong { font-weight: 500; color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.mono { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; }
.eyebrow { display: block; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 18px; }
.lede { font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.45; color: var(--ink-2); max-width: 40ch; }
.small { font-size: 0.9rem; color: var(--ink-2); }
.muted { color: var(--ink-muted); }
p a, li a, td a, dd a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: rgba(255,255,255,0.35); }
p a:hover, li a:hover { text-decoration-color: currentColor; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(9,9,11,0.7); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-bottom: 1px solid rgba(255,255,255,0.06); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--sans); font-size: 1.25rem;  letter-spacing: -0.01em; }
.brand img { width: 22px; height: 22px; filter: none; }
.nav { display: flex; gap: 30px; align-items: center; font-size: 0.92rem; color: rgba(255,255,255,0.55); }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.nav .cta { color: #09090b; background: #fff; padding: 9px 16px; border-radius: 999px; font-weight: 500; border: 0; }
.nav .cta:hover { background: #e4e4e7; }
.nav-toggle { display: none; background: none; border: 1px solid rgba(255,255,255,0.2); color: #fff; border-radius: 999px; padding: 7px 12px; font: inherit; font-size: 0.85rem; }
/* Over the homepage photo the header floats and turns white. */
body:has(.hero-photo), body:has(.hero-vid) .site-header { position: absolute; left: 0; right: 0; background: transparent; border-bottom: 0; backdrop-filter: none; -webkit-backdrop-filter: none; color: var(--night-text); }
body:has(.hero-photo), body:has(.hero-vid) .brand img { filter: none; }
body:has(.hero-photo), body:has(.hero-vid) .nav { color: var(--night-muted); }
body:has(.hero-photo), body:has(.hero-vid) .nav a:hover { color: #fff; }
body:has(.hero-photo), body:has(.hero-vid) .nav .cta { background: rgba(255,255,255,0.14); color: #fff; border: 1px solid rgba(255,255,255,0.35); backdrop-filter: blur(8px); }
body:has(.hero-photo), body:has(.hero-vid) .nav-toggle { border-color: rgba(255,255,255,0.4); }
@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0; background: rgba(9,9,11,0.95); color: rgba(255,255,255,0.7) !important; border-bottom: 1px solid rgba(255,255,255,0.08); padding: 8px var(--gutter) 18px; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
  .nav.open { display: flex; }
  .nav a { padding: 13px 0; width: 100%; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav .cta { margin-top: 14px; width: auto; border: 0; background: #fff; color: #09090b; backdrop-filter: none; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 10px; background: #fafafa; color: #09090b; font-weight: 600; font-size: 0.95rem; line-height: 1; border: 1px solid transparent; transition: transform .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-1px); background: #fff; }
.btn.ghost { background: transparent; color: #fafafa; border-color: rgba(255,255,255,0.2); }
.btn.ghost:hover { background: rgba(255,255,255,0.06); }
.btn.light { background: var(--night-text); color: var(--ink); }
.btn.light:hover { background: #fff; }
.btn.outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.45); }
.btn.outline-light:hover { background: rgba(255,255,255,0.1); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn-note { font-size: 0.85rem; color: var(--ink-muted); margin-top: 16px; }

/* ---------- Night sections (homepage) ---------- */
.night { background: var(--night); color: var(--night-text); }
.night .eyebrow { color: var(--night-muted); }
.night .lede { color: var(--night-muted); }
.night p a, .night li a { text-decoration-color: rgba(255,255,255,0.35); }
.night .muted { color: var(--night-muted); }

/* Full-bleed photographic hero */
.hero-photo { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; background: var(--night); color: var(--night-text); }
.hero-photo .photo { position: absolute; inset: 0; }
.hero-photo .photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; animation: kenburns 18s ease-out both; }
@keyframes kenburns { from { transform: scale(1.07); } to { transform: scale(1); } }
.hero-photo .veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,10,16,0.25) 0%, rgba(7,10,16,0.05) 35%, rgba(7,10,16,0.55) 75%, rgba(7,10,16,0.92) 100%); }
.hero-photo .wrap { position: relative; width: 100%; padding-bottom: clamp(40px, 6vw, 80px); padding-top: 140px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: end; }
.hero-photo h1 { max-width: 12ch; margin-bottom: 26px; }
.hero-photo h1 em { color: #fff; }
.hero-photo .lede { color: rgba(242,239,233,0.8); margin-bottom: 30px; }
.hero-photo .side { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--night-muted); line-height: 1.9; text-align: right; }
.hero-photo .side b { color: var(--night-text); font-weight: 500; display: block; font-size: 1.6rem; letter-spacing: 0; font-family: var(--sans);  text-transform: none; }
.hero-photo .timestamp { position: absolute; top: 92px; right: var(--gutter); font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--night-muted); }
@media (max-width: 860px) { .hero-photo .wrap { grid-template-columns: 1fr; } .hero-photo .side { text-align: left; } .hero-photo .timestamp { display: none; } }

/* Editorial statement */
.statement { padding: clamp(80px, 10vw, 140px) 0; }
.statement .wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.statement p.big { font-family: var(--sans);  font-weight: 300; font-size: clamp(1.5rem, 2.6vw, 2.35rem); line-height: 1.25; letter-spacing: -0.01em; }
.statement p.big strong { font-weight: 400; }
@media (max-width: 860px) { .statement .wrap { grid-template-columns: 1fr; } }

/* Ruled facts list (replaces cards) */
.rules { border-top: 1px solid var(--night-line); }
.rules > div { display: grid; grid-template-columns: 220px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--night-line); }
.rules dt { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--night-muted); padding-top: 4px; }
.rules dd { margin: 0; font-size: 1.02rem; }
.paper .rules { border-color: var(--night-line); } .paper .rules > div { border-color: var(--night-line); } .paper .rules dt { color: var(--night-muted); }
@media (max-width: 600px) { .rules > div { grid-template-columns: 1fr; gap: 4px; } }

/* Phases: photo + timeline */
.phases { display: grid; grid-template-columns: 1fr 1fr; min-height: 90vh; }
.phases .photo { position: relative; min-height: 60vh; }
.phases .photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phases .photo .cap { position: absolute; left: 24px; bottom: 22px; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.75); }
.phases .text { padding: clamp(56px, 7vw, 110px) clamp(28px, 6vw, 96px); display: flex; flex-direction: column; justify-content: center; }
.timeline { list-style: none; margin: 40px 0 0; padding: 0; border-top: 1px solid var(--night-line); }
.timeline li { display: grid; grid-template-columns: 96px 1fr 72px; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--night-line); align-items: baseline; }
.timeline .t { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.06em; color: var(--night-muted); }
.timeline .name { font-family: var(--sans); font-size: 1.45rem;  font-weight: 300; }
.timeline .desc { display: block; font-family: var(--sans); font-size: 0.95rem; color: var(--night-muted); margin-top: 6px; }
.timeline .temp { font-family: var(--sans); font-size: 1.6rem; text-align: right;  }
.timeline .temp.cool { color: var(--blue); } .timeline .temp.warm { color: var(--amber); }
@media (max-width: 900px) { .phases { grid-template-columns: 1fr; } .timeline li { grid-template-columns: 80px 1fr 60px; } }

/* Curve figure, large and quiet */
.curve-block { padding: clamp(80px, 10vw, 140px) 0; }
.curve-block .head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 48px; }
.curve-block .head p { color: var(--night-muted); max-width: 46ch; font-size: 1.05rem; }
@media (max-width: 860px) { .curve-block .head { grid-template-columns: 1fr; } }
.curve-figure { margin: 0; }
.curve-figure svg { width: 100%; height: auto; }
.curve-labels { display: grid; grid-template-columns: repeat(4, 1fr); font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); margin-top: 14px; }
.night .curve-labels { color: var(--night-muted); }
.curve-labels span:nth-child(4) { color: var(--amber); } .curve-labels span:nth-child(2), .curve-labels span:nth-child(3) { color: var(--blue); }
.curve-figure figcaption { font-size: 0.82rem; color: var(--ink-muted); margin-top: 10px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.night .curve-figure figcaption { color: var(--night-muted); }

/* Dawn: full-bleed photo with overlay text */
.dawn { position: relative; min-height: 92vh; display: flex; align-items: center; overflow: hidden; color: #fff; }
.dawn .photo { position: absolute; inset: 0; }
.dawn .photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.dawn .veil { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,12,4,0.55) 0%, rgba(20,12,4,0.25) 50%, rgba(20,12,4,0.0) 100%); }
.dawn .wrap { position: relative; padding-top: 80px; padding-bottom: 80px; }
.dawn .eyebrow { color: rgba(255,255,255,0.7); }
.dawn h2 { max-width: 14ch; margin-bottom: 22px; text-shadow: 0 2px 30px rgba(0,0,0,0.25); }
.dawn p { max-width: 44ch; color: rgba(255,255,255,0.85); font-size: 1.1rem; }
.dawn .btn-row { margin-top: 28px; }

/* ---------- Sections ---------- */
.paper { background: #09090b; color: #fafafa; }
.section { padding-top: clamp(72px, 9vw, 128px); padding-bottom: clamp(72px, 9vw, 128px); }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head p { color: var(--ink-2); font-size: 1.08rem; max-width: 48ch; margin: 0; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }

/* Numbered rows */
.steps { border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 80px 1fr 1.2fr; gap: 28px; padding: 34px 0; border-bottom: 1px solid var(--line); align-items: start; }
.step .n { font-family: var(--sans); font-size: 2.2rem; font-weight: 300; line-height: 1; color: var(--ink-muted);  }
.step h3 { margin: 0; }
.step p { color: var(--ink-2); font-size: 1.02rem; margin: 0; }
@media (max-width: 860px) { .step { grid-template-columns: 56px 1fr; } .step p { grid-column: 2; } }

/* Compatibility as typographic lists */
.list-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.list-cols ul { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid var(--line); }
.list-cols li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 1.15rem; display: flex; justify-content: space-between; gap: 16px; }
.list-cols li span { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); }
@media (max-width: 700px) { .list-cols { grid-template-columns: 1fr; } }

/* Pricing, typographic */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.plan { padding: 40px 40px 40px 0; display: flex; flex-direction: column; }
.plan + .plan { border-left: 1px solid var(--line); padding-left: 40px; padding-right: 0; }
.plan .price { font-family: var(--sans); font-weight: 700; font-size: clamp(2.4rem, 4vw, 3.4rem); line-height: 1; letter-spacing: -.02em; margin: 14px 0 4px; }
.plan .price small { font-family: var(--sans); font-size: 1rem; color: var(--ink-muted); }
.plan .per { color: var(--ink-muted); font-size: 0.9rem; margin-bottom: 26px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 30px; color: var(--ink-2); font-size: 0.98rem; }
.plan li { padding: 9px 0; border-top: 1px solid var(--line); }
.plan .btn { align-self: flex-start; margin-top: auto; }
.badge { display: inline-block; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--amber); color: var(--amber); margin-left: 10px; vertical-align: middle; }
@media (max-width: 800px) { .plans { grid-template-columns: 1fr; } .plan, .plan + .plan { padding: 32px 0; border-left: 0; } .plan + .plan { border-top: 1px solid var(--line); } }

/* Guides index */
.guide-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.guide-list li { border-bottom: 1px solid var(--line); }
.guide-list a { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 24px; padding: 22px 0; align-items: baseline; }
.guide-list a:hover h3 { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.guide-list h3 { font-size: 1.35rem; }
.guide-list p { margin: 0; color: var(--ink-2); font-size: 0.98rem; }
.guide-list .arrow { color: var(--ink-muted); }
@media (max-width: 760px) { .guide-list a { grid-template-columns: 1fr; gap: 6px; } .guide-list .arrow { display: none; } }
.guide-card { display: block; padding: 24px 0; border-top: 1px solid var(--line); }
.guide-card h3 { margin-bottom: 6px; }
.guide-card p { margin: 0; color: var(--ink-2); font-size: 0.98rem; }
.guide-card .arrow { display: block; margin-top: 10px; color: var(--ink-muted); font-size: 0.85rem; }
.grid { display: grid; gap: 0 40px; }
.grid.cols-2 { grid-template-columns: 1fr 1fr; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .grid.cols-2, .grid.cols-3 { grid-template-columns: 1fr; } }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 0; font-family: var(--sans); font-size: 1.15rem; font-weight: 500; display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); color: var(--ink-muted); font-size: 1.4rem; font-weight: 300; flex-shrink: 0; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 0 26px; color: var(--ink-2); max-width: 66ch; font-size: 1.02rem; }
.night .faq, .night .faq details { border-color: var(--night-line); } .night .faq .answer { color: var(--night-muted); }

/* Cards used by inner pages (kept minimal: hairline, no fill) */
.card { border-top: 1px solid var(--line); padding: 24px 0; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-2); font-size: 0.98rem; }
.card .num { font-family: var(--sans); font-size: 2rem; color: var(--ink-muted); margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 10px; font-size: 1.05rem; }
.chip.more { color: var(--ink-muted); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; border-top: 1px solid var(--line); }
.facts > div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 6px; }
.facts dd { margin: 0; font-size: 1rem; }
@media (max-width: 800px) { .facts { grid-template-columns: 1fr; } }

/* Tables */
.table-wrap { overflow-x: auto; border-top: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
th, td { text-align: left; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--mono); font-weight: 500; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
td.us { color: #fafafa; font-weight: 600; } td.them { color: var(--ink-2); }
.table-note { font-size: 0.82rem; color: rgba(255,255,255,.5); margin-top: 12px; }

/* Article pages */
.page-head { padding-top: clamp(72px, 9vw, 120px); padding-bottom: clamp(36px, 5vw, 56px); }
.page-head h1 { max-width: 16ch; margin-bottom: 22px; }
.page-head .lede { max-width: 52ch; }
.article { max-width: 720px; }
.article h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 64px 0 20px; }
.article h3 { margin: 36px 0 10px; }
.article p, .article li { color: var(--ink-2); font-size: 1.08rem; line-height: 1.6; }
.article p strong, .article li strong { color: #fafafa; }
.article ul, .article ol { padding-left: 22px; } .article li { margin-bottom: 8px; }
.article .answer-box { border-left: 2px solid var(--accent); padding: 4px 0 4px 24px; margin: 36px 0; }
.article .answer-box p { color: #fafafa; font-family: var(--sans); font-weight: 600; font-size: 1.3rem; line-height: 1.4; }
.article figure { margin: 40px 0; }
.legal p, .legal li { font-size: 0.98rem; } .legal h2 { font-size: 1.5rem; margin-top: 44px; } .legal h3 { font-size: 1.1rem; }
.hr { border: 0; border-top: 1px solid var(--line); margin: 48px 0; }
.method-diagram { width: 100%; max-width: 680px; height: auto; margin: 8px 0 0; }
@media (max-width: 500px) { .method-diagram { transform: scale(1); transform-origin: left top; } }

/* CTA band */
.cta-band { padding: clamp(80px, 10vw, 140px) 0; text-align: center; }
.cta-band h2 { margin-bottom: 16px; }
.cta-band p { color: var(--ink-muted); max-width: 44ch; margin: 0 auto 30px; }
.cta-band .btn-row { justify-content: center; }

/* Press line */
.press { display: flex; flex-wrap: wrap; gap: 14px 44px; align-items: baseline; padding: 28px 0; border-top: 1px solid var(--night-line); border-bottom: 1px solid var(--night-line); }
.press .eyebrow { margin: 0; }
.press a { font-family: var(--sans); font-size: 1.3rem;  color: var(--night-text); }
.press a:hover { text-decoration: underline; text-underline-offset: 6px; }

/* Forms (Netlify Forms) */
.form { display: grid; gap: 12px; max-width: 480px; }
.form input, .form textarea { width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,0.2); color: #fafafa; padding: 12px 0; font: inherit; font-size: 1rem; border-radius: 0; }
.form input:focus, .form textarea:focus { outline: none; border-bottom-width: 2px; }
.form label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }

/* Team */
.person { padding: 20px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; align-items: baseline; font-size: 1.15rem; }
.person:last-of-type { border-bottom: 1px solid var(--line); }
.person .role { color: var(--ink-muted); font-size: 0.85rem; font-family: var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }

/* Footer */
.site-footer { background: var(--night); color: var(--night-muted); padding: 72px 0 40px; font-size: 0.92rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer .brand { color: var(--night-text); }
.site-footer .brand img { filter: none; }
.site-footer h4 { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--night-muted); margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; } .site-footer li { margin-bottom: 9px; } .site-footer a:hover { color: #fff; }
.site-footer .about { max-width: 34ch; margin-top: 16px; }
.site-footer .legal-line { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--night-line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.8rem; }
@media (max-width: 800px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }

/* Reveal on scroll (progressive enhancement; content is visible without JS) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in, html.no-js .reveal { opacity: 1; transform: none; }

/* Utility */
.mt-1 { margin-top: 16px; } .mt-2 { margin-top: 32px; } .mt-3 { margin-top: 56px; } .mb-2 { margin-bottom: 32px; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Simple homepage additions ---------- */
.hero-photo .wrap.simple { grid-template-columns: 1fr; padding-bottom: clamp(56px, 8vw, 110px); }
.hero-photo .wrap.simple h1 { max-width: 16ch; font-size: clamp(2.6rem, 6vw, 5.6rem); }
.hero-photo .wrap.simple .lede { max-width: 46ch; font-size: clamp(1.1rem, 1.5vw, 1.35rem); }
.trio { padding: clamp(80px, 10vw, 150px) 0; }
.three { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(32px, 5vw, 72px); }
.three li { border-top: 1px solid var(--night-line); padding-top: 26px; }
.three .n { font-family: var(--mono); font-size: 0.78rem; color: var(--night-muted); display: block; margin-bottom: 26px; letter-spacing: 0.08em; }
.three h2 { font-size: clamp(1.7rem, 2.6vw, 2.4rem); margin-bottom: 14px; }
.three p { color: var(--night-muted); font-size: 1.05rem; margin: 0; max-width: 32ch; }
@media (max-width: 860px) { .three { grid-template-columns: 1fr; gap: 36px; } }
.diptych { display: grid; grid-template-columns: 1fr 1fr; background: var(--night); }
.diptych figure { margin: 0; position: relative; min-height: 80vh; overflow: hidden; }
.diptych img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.diptych figcaption { position: absolute; left: clamp(24px, 4vw, 56px); right: clamp(24px, 4vw, 56px); bottom: clamp(28px, 4vw, 56px); color: #fff; text-shadow: 0 2px 30px rgba(0,0,0,0.45); }
.diptych .eyebrow { color: rgba(255,255,255,0.72); }
.diptych h3 { font-size: clamp(1.6rem, 2.6vw, 2.4rem); font-weight: 300; }
.diptych figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,0.55) 100%); pointer-events: none; }
@media (max-width: 760px) { .diptych { grid-template-columns: 1fr; } .diptych figure { min-height: 70vh; } }
.simple-curve .head h2 { font-size: clamp(1.8rem, 3.2vw, 2.9rem); }
.brands { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.brands li { padding: 28px 0; border-bottom: 1px solid var(--line); font-family: var(--sans); font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 300;  }
@media (max-width: 760px) { .brands { grid-template-columns: 1fr 1fr; } }

/* ---------- The loop ---------- */
.loop { padding: clamp(80px, 10vw, 150px) 0; }
.loop-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.ring { margin: 0; position: sticky; top: 100px; }
.ring svg { width: 100%; height: auto; max-width: 520px; margin: 0 auto; }
.loop-steps { list-style: none; margin: 0; padding: 0; }
.loop-steps li { padding: 30px 0; border-top: 1px solid var(--night-line); }
.loop-steps li:last-child { border-bottom: 1px solid var(--night-line); }
.loop-steps .k { display: block; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--night-muted); margin-bottom: 14px; }
.loop-steps h2 { font-size: clamp(1.5rem, 2.3vw, 2.1rem); margin-bottom: 12px; max-width: 22ch; }
.loop-steps p { color: var(--night-muted); font-size: 1.02rem; margin: 0; max-width: 48ch; }
.loop-steps .repeat .k { color: var(--amber); }
@media (max-width: 900px) { .loop-grid { grid-template-columns: 1fr; } .ring { position: static; } }
.small-brands { margin-top: 0; border-top: 0; grid-template-columns: repeat(5, 1fr); }
.small-brands li { font-size: clamp(1.05rem, 1.6vw, 1.3rem); padding: 18px 0; color: var(--ink-2); }
@media (max-width: 760px) { .small-brands { grid-template-columns: 1fr 1fr; } }

/* ---------- Phone mockup ---------- */
.ph { flex-shrink: 0; background: linear-gradient(180deg, #2a2a2e 0%, #1c1c1e 8%, #1c1c1e 100%); border-radius: clamp(32px, 4vw, 50px); padding: clamp(3px, .4vw, 5px); box-shadow: 0 0 0 .5px rgba(255,255,255,.2), inset 0 .5px 0 rgba(255,255,255,.1), 0 1px 3px rgba(0,0,0,.3), 0 4px 12px rgba(0,0,0,.25), 0 12px 36px rgba(0,0,0,.35), 0 32px 80px rgba(0,0,0,.4); position: relative; }
.ph::before { content: ''; position: absolute; top: clamp(8px, 1.1vw, 13px); left: 50%; transform: translateX(-50%); width: clamp(52px, 7vw, 80px); height: clamp(14px, 1.8vw, 22px); background: #000; border-radius: 999px; z-index: 2; box-shadow: 0 0 0 .5px rgba(255,255,255,.06); }
.ph::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 .5px 0 rgba(255,255,255,.12); pointer-events: none; }
.ph img { width: 100%; height: auto; display: block; border-radius: clamp(29px, 3.7vw, 46px); }

/* ---------- App showcase ---------- */
.app-showcase { padding: clamp(40px, 6vw, 80px) 0; }
.app-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; padding: clamp(48px, 7vw, 96px) 0; border-top: 1px solid var(--line); }
.app-row:first-child { border-top: 0; }
.app-row--flip .app-phone { order: 2; }
.app-row--flip .app-text { order: 1; }
.app-phone { display: flex; justify-content: center; }
.app-phone .ph { width: 280px; }
.app-phone > img { width: 280px; height: auto; display: block; }
.app-text h2 { font-size: clamp(1.6rem, 2.8vw, 2.4rem); margin-bottom: 16px; }
.app-text p { color: var(--ink-2); font-size: 1.05rem; max-width: 38ch; }
@media (max-width: 860px) {
  .app-row, .app-row--flip .app-phone, .app-row--flip .app-text { order: unset; }
  .app-row { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .app-text p { max-width: none; }
  .app-phone .ph { width: 240px; }
  .app-phone > img { width: 240px; }
}

/* Hide Netlify badge */
[data-netlify-badge], .netlify-badge, a[href*="netlify.com"][rel*="noopener"] img[alt*="Netlify"] { display: none !important; }
a[href*="netlify.com/powered-by"] { display: none !important; }
