/* Epic Light multi-page site. Loads after base.css. */

/* ---------- Rhythm: more air between components ---------- */
section { position: relative; }
.pad { padding: clamp(88px, 10vw, 160px) 0; }
.pad-sm { padding: clamp(72px, 9vw, 128px) 0; }
.stack-gap > * + * { margin-top: clamp(40px, 5vw, 72px); }

/* ---------- Rounded controls ---------- */
.btn { border-radius: 999px; padding: 15px 26px; }
.site-head .btn { padding: 11px 20px; }
.seg { border-radius: 999px; overflow: hidden; }
.seg button { padding: 12px 20px; }

/* ---------- Page transition: logo stripes sweep away on load ---------- */
@view-transition { navigation: auto; }
.wipe { position: fixed; inset: 0; z-index: 100; pointer-events: none; display: grid; grid-template-rows: repeat(4, 1fr); }
.wipe i { display: block; transform-origin: 100% 50%; animation: wipe-out 700ms cubic-bezier(0.65, 0, 0.35, 1) forwards; }
.wipe i:nth-child(2) { animation-delay: 60ms; } .wipe i:nth-child(3) { animation-delay: 120ms; } .wipe i:nth-child(4) { animation-delay: 180ms; }
@keyframes wipe-out { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .wipe { display: none; } }
.wipe i:nth-child(1) { background: var(--teal); }
.wipe i:nth-child(2) { background: var(--burgundy); }
.wipe i:nth-child(3) { background: var(--red-orange); }
.wipe i:nth-child(4) { background: var(--amber); }
.reduced .wipe { display: none; }

/* ---------- Stripe progress + bulb cursor ---------- */
.progress { position: fixed; left: 0; right: 0; top: 0; z-index: 60; display: grid; gap: 1px; pointer-events: none; }
.progress i { display: block; height: 2px; transform-origin: 0 50%; transform: scaleX(0); }
.progress i:nth-child(1) { background: var(--teal); }
.progress i:nth-child(2) { background: var(--burgundy); }
.progress i:nth-child(3) { background: var(--red-orange); }
.progress i:nth-child(4) { background: var(--amber); }

@media (hover: hover) and (pointer: fine) {
  html.has-cursor, html.has-cursor a, html.has-cursor button, html.has-cursor label { cursor: none; }
  html.has-cursor input, html.has-cursor textarea { cursor: text; }
}
.cur-dot, .cur-ring, .cur-glow { position: fixed; left: 0; top: 0; pointer-events: none; z-index: 90; border-radius: 50%; opacity: 0; transition: opacity 200ms; }
.cur-dot { width: 8px; height: 8px; margin: -4px 0 0 -4px; background: #f6dfa8; box-shadow: 0 0 6px 1px rgba(231, 169, 28, 0.55); }
.cur-ring { width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1.5px solid rgba(231, 169, 28, 0.55); transition: opacity 200ms, width 220ms var(--ease), height 220ms var(--ease), margin 220ms var(--ease), background-color 220ms; }
.cur-ring.big { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(231, 169, 28, 0.08); }
.cur-glow { width: 640px; height: 640px; margin: -320px 0 0 -320px; z-index: 39; mix-blend-mode: screen;
  background: radial-gradient(circle, rgba(231, 169, 28, 0.11) 0%, rgba(231, 169, 28, 0.04) 32%, rgba(231, 169, 28, 0) 64%); }
.cur-on .cur-dot, .cur-on .cur-ring, .cur-on .cur-glow { opacity: 1; }
.paper-hover .cur-ring { border-color: var(--red-orange); }
@media (hover: none), (pointer: coarse) { .cur-dot, .cur-ring, .cur-glow { display: none; } }

/* ---------- Header: active link, mobile menu ---------- */
.site-head nav a[aria-current="page"] { color: var(--cream); }
.site-head nav a[aria-current="page"]::after { content: ""; display: block; height: 2px; margin-top: 4px; border-radius: 2px; background: var(--amber); }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; color: var(--cream); align-items: center; justify-content: center; }
.menu-btn span { display: block; width: 16px; height: 1.5px; background: currentColor; box-shadow: 0 5px 0 currentColor, 0 -5px 0 currentColor; }
.menu { position: fixed; inset: 0; z-index: 70; background: var(--night); padding: 96px var(--gutter) 40px; display: flex; flex-direction: column; gap: 6px; transform: translateY(-100%); transition: transform 300ms var(--ease); }
.menu.open { transform: none; }
.menu a { font: 340 clamp(36px, 10vw, 56px)/1.15 var(--serif); text-decoration: none; color: var(--cream); }
.menu .btn { margin-top: 28px; align-self: flex-start; font: 500 15px/1 var(--sans); }
.menu .close { position: absolute; right: var(--gutter); top: 18px; }
@media (max-width: 960px) { .menu-btn { display: inline-flex; } .site-head .right .btn { display: none; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: clamp(104px, 10vw, 140px) 0 clamp(48px, 6vw, 80px); }
.page-hero h1 { font-size: clamp(48px, 7vw, 112px); max-width: 11em; margin-top: 18px; }
.page-hero .lede { margin-top: 28px; }
.page-hero-media { margin-top: clamp(48px, 6vw, 88px); border-radius: 4px; overflow: hidden; }

/* ---------- Home hero: the 3D model, scroll-scrubbed ---------- */
.homes.hero3d { height: 380vh; }
.hero3d .homes-stage { background: #c7d0d8; }
.hero3d .homes-shade { background: linear-gradient(to bottom, rgba(18,16,13,0.62) 0%, rgba(18,16,13,0) 30%), linear-gradient(to top, rgba(18,16,13,0.8) 0%, rgba(18,16,13,0) 40%); }
.hero3d .intro-scrim { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(18,16,13,0.94) 0%, rgba(18,16,13,0.86) 38%, rgba(18,16,13,0.45) 58%, rgba(18,16,13,0) 76%); }
@media (max-width: 860px) { .hero3d .intro-scrim { background: linear-gradient(to top, rgba(18,16,13,0.96) 0%, rgba(18,16,13,0.8) 50%, rgba(18,16,13,0.2) 78%, rgba(18,16,13,0) 90%); } }
.hero-intro { position: absolute; left: var(--gutter); right: var(--gutter); top: 0; bottom: 0; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 120px; pointer-events: none; }
.hero-intro h1 { font-size: clamp(44px, 6.6vw, 112px); max-width: 9.5em; text-shadow: 0 1px 30px rgba(18,16,13,0.35); }
.hero-intro p { font-size: clamp(17px, 1.4vw, 21px); color: var(--cream); max-width: 26em; margin: 24px 0 28px; }
.hero-intro .btn { pointer-events: auto; align-self: flex-start; }
.hero3d .homes-top { top: 92px; justify-content: flex-end; }
.hero3d .homes-say { opacity: 0; }
.hero3d .homes-say strong { font-size: clamp(24px, 2.2vw, 34px); }
.hero3d .homes-say p { font-size: 16px; max-width: 30em; }
.scroll-cue { position: absolute; right: var(--gutter); bottom: 104px; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cream-dim); display: flex; align-items: center; gap: 10px; }
.scroll-cue i { width: 1px; height: 36px; background: var(--cream-dim); transform-origin: 50% 0; animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: 50% 0; } 51% { transform-origin: 50% 100%; } 100% { transform: scaleY(0); transform-origin: 50% 100%; } }
@media (max-width: 860px) { .hero-intro { padding-bottom: 96px; } .scroll-cue { display: none; } .hero3d .homes-top { top: 76px; } }

/* ---------- Words light up as you read ---------- */
.read { max-width: 1180px; }
.read .big { font-family: var(--serif); font-weight: 340; font-size: clamp(30px, 4vw, 60px); line-height: 1.15; letter-spacing: -0.015em; margin: 28px 0 0; }
.read .big .wi { opacity: 0.16; }
.read .big .w { overflow: visible; }
.read-foot { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-top: 64px; flex-wrap: wrap; }
.read-foot p { color: var(--cream-dim); max-width: 30em; margin: 0; }

/* ---------- Stacked cards (images framed to their own shape) ---------- */
.stack-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 56px; }
.stack-head p { color: var(--cream-dim); margin: 0; }
.cards { position: relative; }
.card { position: sticky; top: 16vh; height: min(60vh, 560px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--ink-2); border: 1px solid var(--line); border-radius: 6px; margin-bottom: 5vh; overflow: hidden; transform-origin: 50% 0; }
.card .frame { height: 100%; }
.card::after { content: ""; position: absolute; inset: 0; background: #0a0907; opacity: var(--dim, 0); pointer-events: none; }
.card .body { padding: clamp(28px, 4vw, 64px); display: flex; flex-direction: column; justify-content: space-between; }
.card .num { font-family: var(--serif); font-size: clamp(56px, 7vw, 112px); line-height: 0.85; color: var(--amber); letter-spacing: -0.04em; }
.card h3 { font-size: clamp(28px, 2.8vw, 44px); margin-bottom: 16px; }
.card p { color: var(--cream-dim); font-size: 17px; max-width: 24em; margin: 0; }
.card .stripes { width: 100%; }
@media (max-width: 860px) {
  .stack-head { grid-template-columns: 1fr; }
  .card { grid-template-columns: 1fr; grid-template-rows: 48% 1fr; height: 78vh; top: 10vh; }
}

/* ---------- Designed to belong: sticky photo + calm list ---------- */
.belong-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.belong-photo { position: sticky; top: 14vh; aspect-ratio: 4 / 5; max-height: 74vh; border-radius: 6px; overflow: hidden; background: var(--ink-2); }
.belong-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 500ms var(--ease); }
.belong-photo img.on { opacity: 1; }
.belong-photo .tag { position: absolute; left: 16px; bottom: 16px; padding: 8px 14px; border-radius: 999px; background: rgba(18,16,13,0.7); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.belong-list h2 { font-size: clamp(36px, 4vw, 64px); margin: 16px 0 12px; }
.belong-list > p { color: var(--cream-dim); max-width: 28em; }
.belong-item { min-height: 46vh; display: flex; flex-direction: column; justify-content: center; border-top: 1px solid var(--line); padding: 40px 0; }
.belong-item .n { font-family: var(--serif); color: var(--amber); font-size: 15px; margin-bottom: 14px; }
.belong-item h3 { font-size: clamp(22px, 1.9vw, 28px); margin-bottom: 12px; transition: color 250ms; color: var(--cream-faint); }
.belong-item p { color: var(--cream-faint); margin: 0; max-width: 30em; font-size: 16px; transition: color 250ms; }
.belong-item.on h3 { color: var(--cream); }
.belong-item.on p { color: var(--cream-dim); }
@media (max-width: 860px) {
  .belong-grid { grid-template-columns: 1fr; }
  .belong-photo { top: 72px; z-index: 2; aspect-ratio: 16 / 10; }
  .belong-item { min-height: 34vh; }
}

/* ---------- Zoom band ---------- */
.zoom { height: 220vh; }
.zoom-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.zoom-stage .bg { position: absolute; inset: 0; }
.zoom-stage .bg img { width: 100%; height: 100%; object-fit: cover; }
.zoom-stage .bg::after { content: ""; position: absolute; inset: 0; background: rgba(18,16,13,0.4); }
.zoom-stage h2 { position: relative; text-align: center; font-size: clamp(44px, 8vw, 140px); max-width: 10em; padding: 0 var(--gutter); }

/* ---------- Horizontal gallery: each card shaped like its photo ---------- */
.hz { overflow: hidden; }
.hz-track { display: flex; height: 100vh; height: 100svh; align-items: center; gap: clamp(28px, 3.4vw, 56px); padding: 0 var(--gutter); width: max-content; }
.hz-intro { width: min(520px, 80vw); flex: none; }
.hz-intro h2 { margin: 16px 0 24px; }
.hz-card { flex: none; height: 62vh; aspect-ratio: var(--ar, 4 / 3); position: relative; border-radius: 6px; overflow: hidden; background: var(--ink-2); }
.hz-card:nth-child(odd) { align-self: flex-start; margin-top: 15vh; }
.hz-card:nth-child(even) { align-self: flex-end; margin-bottom: 13vh; }
.hz-card .frame { position: absolute; inset: 0; }
.hz-card .frame > * { width: 100%; height: 100%; object-fit: cover; }
.hz-card .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 26px 24px; background: linear-gradient(to top, rgba(18,16,13,0.88), rgba(18,16,13,0)); }
.hz-card .cap span { font-family: var(--serif); color: var(--amber); font-size: 15px; }
.hz-card h3 { font-size: clamp(24px, 2.2vw, 34px); margin: 8px 0; }
.hz-card p { margin: 0; color: var(--cream-dim); max-width: 26em; font-size: 16px; }
.hz-end { flex: none; width: min(480px, 80vw); font-family: var(--serif); font-size: clamp(28px, 3vw, 48px); line-height: 1.12; padding-right: 6vw; }
@media (max-width: 860px) { .hz-card { height: 52vh; max-width: 84vw; } }

/* ---------- Teasers to other pages ---------- */
.teaser { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.teaser .media { border-radius: 6px; overflow: hidden; aspect-ratio: var(--ar, 4 / 3); }
.teaser .media img { width: 100%; height: 100%; object-fit: cover; }
.teaser h2 { margin: 16px 0 22px; }
.teaser p { color: var(--cream-dim); max-width: 30em; }
.teaser .btn { margin-top: 18px; }
.teaser.flip .media { order: 2; }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; color: var(--amber); text-decoration: none; font-weight: 500; }
.link-arrow .arr { transition: transform 200ms var(--ease); }
.link-arrow:hover .arr { transform: translateX(4px); }
@media (max-width: 860px) { .teaser { grid-template-columns: 1fr; } .teaser.flip .media { order: 0; } }

/* ---------- Gallery (Our work): photos keep their full frame ---------- */
.gallery { columns: 3 320px; column-gap: clamp(16px, 2vw, 28px); }
.gallery figure { break-inside: avoid; margin: 0 0 clamp(16px, 2vw, 28px); border-radius: 6px; overflow: hidden; position: relative; background: var(--ink-2); }
.gallery img, .gallery video { width: 100%; height: auto; display: block; transition: transform 600ms var(--ease); }
.gallery figure:hover img { transform: scale(1.03); }
.gallery figcaption { position: absolute; left: 12px; bottom: 12px; padding: 7px 12px; border-radius: 999px; background: rgba(18,16,13,0.72); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.lightbox { position: fixed; inset: 0; z-index: 95; background: rgba(12,10,8,0.94); display: none; place-items: center; padding: 24px; }
.lightbox.open { display: grid; }
.lightbox img { max-width: 100%; max-height: 88vh; border-radius: 4px; }
.lightbox button { position: absolute; top: 18px; right: 18px; }

/* ---------- Process timeline, counters, care ---------- */
.proc { display: grid; grid-template-columns: 5fr 7fr; gap: 6vw; }
.proc .left { position: sticky; top: 18vh; align-self: start; }
.proc .left h2 { margin: 18px 0 28px; }
.proc .left p { color: var(--cream-dim); }
.proc .left strong { display: block; font-weight: 400; color: var(--cream); }
.tl { position: relative; padding: 0 0 0 48px; }
.tl ol { list-style: none; margin: 0; padding: 0; }
.tl::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.tl .fill { position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: var(--amber); transform-origin: 50% 0; transform: scaleY(0); }
.tl li { position: relative; padding: 0 0 88px; }
.tl li::before { content: ""; position: absolute; left: -46px; top: 6px; width: 11px; height: 11px; border-radius: 50%; background: var(--night); border: 1px solid var(--line-strong); transition: background-color 250ms, border-color 250ms; }
.tl li.lit::before { background: var(--amber); border-color: var(--amber); }
.paper .tl li.lit::before { background: var(--red-orange); border-color: var(--red-orange); }
.paper .tl .fill { background: var(--red-orange); }
.tl small { font: 500 12px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--cream-faint); }
.tl h3 { margin: 12px 0; }
.tl p { color: var(--cream-dim); margin: 0; max-width: 34em; }
@media (max-width: 860px) { .proc { grid-template-columns: 1fr; } .proc .left { position: relative; top: 0; } }

.nums { display: grid; grid-template-columns: repeat(12, 1fr); border-top: 1px solid var(--line-strong); margin-top: 64px; }
.nums > div { padding: 40px 28px 40px 0; border-bottom: 1px solid var(--line); }
.nums > div:nth-child(-n+3) { grid-column: span 4; }
.nums > div:nth-child(4) { grid-column: span 7; }
.nums > div:nth-child(5) { grid-column: span 5; }
.nums > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.nums > div:nth-child(4) { border-left: 0; padding-left: 0; }
.nums .n { font-family: var(--serif); font-size: clamp(56px, 6vw, 96px); line-height: 0.9; letter-spacing: -0.04em; color: var(--amber); font-variant-numeric: tabular-nums; }
.nums .n small { font-size: 0.32em; letter-spacing: 0; color: var(--cream); margin-left: 6px; }
.nums h3 { font-size: 22px; margin: 18px 0 8px; }
.nums p { color: var(--cream-dim); margin: 0; font-size: 16px; }
@media (max-width: 860px) { .nums > div { grid-column: 1 / -1 !important; border-left: 0 !important; padding-left: 0 !important; } }

.care { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.care-inner { display: grid; grid-template-columns: 1fr 1fr; min-height: 80vh; }
.care-l { padding: clamp(64px, 8vw, 120px) var(--gutter); display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
.care-r { display: grid; grid-template-rows: 1fr 1fr; border-left: 1px solid var(--line); }
.care-r > div { padding: clamp(32px, 4vw, 64px); display: flex; flex-direction: column; justify-content: flex-end; }
.care-r > div + div { border-top: 1px solid var(--line); }
.care .big { font-family: var(--serif); font-size: clamp(110px, 15vw, 240px); line-height: 0.8; letter-spacing: -0.05em; color: var(--amber); }
.care .fine { font-size: 13px; color: var(--cream-faint); max-width: 36em; margin: 0; }
@media (max-width: 860px) { .care-inner { grid-template-columns: 1fr; } .care-r { border-left: 0; border-top: 1px solid var(--line); } }

/* ---------- Founder, areas, CTA, finale ---------- */
.founder { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.founder .media { aspect-ratio: 2 / 3; border-radius: 6px; overflow: hidden; position: sticky; top: 14vh; }
.founder .media img { width: 100%; height: 100%; object-fit: cover; }
.founder blockquote { margin: 0; }
.founder blockquote p { color: var(--cream-dim); max-width: 34em; }
.founder blockquote p.open { font-family: var(--serif); color: var(--cream); font-size: clamp(26px, 2.6vw, 38px); line-height: 1.22; }
.founder .sig { margin-top: 32px; font-family: var(--serif); font-style: italic; font-size: 28px; }
.founder .sig small { display: block; font: 400 14px/1.5 var(--sans); font-style: normal; color: var(--cream-faint); }
@media (max-width: 860px) { .founder { grid-template-columns: 1fr; } .founder .media { position: relative; top: 0; aspect-ratio: 4 / 5; } }

.towns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.towns span { padding: 9px 16px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 14px; color: var(--cream-dim); }

.cta { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); }
.cta h2 { margin: 18px 0 28px; }
.cta .areas { margin-top: 40px; font-size: 15px; color: var(--cream-faint); }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; } }
.cta-band { text-align: center; }
.cta-band h2 { max-width: 13em; margin: 18px auto 28px; }
.cta-band .lede { margin: 0 auto 36px; }

.finale { height: 115vh; }
.finale-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.finale-stage .bg { position: absolute; inset: 0; }
.finale-stage .bg img { width: 100%; height: 100%; object-fit: cover; }
.finale-stage .bg::after { content: ""; position: absolute; inset: 0; background: rgba(18,16,13,0.45); }
.finale-stage .inner { position: relative; text-align: center; padding: 0 var(--gutter); }
.finale-stage .logo-big { width: min(820px, 84vw); margin: 0 auto; }
.finale-stage p { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 34px); margin: 32px 0 0; }

/* ---------- Footer ---------- */
.site-foot.big { padding: clamp(72px, 9vw, 120px) 0 36px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.foot-grid img { width: 140px; }
.foot-grid h4 { margin: 0 0 14px; font: 500 12px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--cream-faint); }
.foot-grid a, .foot-grid p { display: block; margin: 0 0 8px; color: var(--cream-dim); text-decoration: none; font-size: 15px; }
.foot-grid a:hover { color: var(--cream); }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

/* Reduced motion: unpin */
.reduced .homes.hero3d, .reduced .zoom, .reduced .finale { height: auto; }
.reduced .zoom-stage, .reduced .finale-stage { position: relative; min-height: 100vh; }
.reduced .hero3d .homes-say { opacity: 1; }
.reduced .read .big .wi { opacity: 1; }
.reduced .hz-track { flex-direction: column; width: auto; height: auto; padding: 96px var(--gutter); align-items: stretch; }
.reduced .hz-card, .reduced .hz-card:nth-child(n) { height: auto; width: 100%; margin: 0; align-self: auto; }
.reduced .card { position: relative; top: 0; }
.reduced .belong-item h3, .reduced .belong-item p { color: var(--cream); }

@media (max-width: 760px) {
  .brk-roof-svg { width: 980px; max-width: none; }
  .brk-roof { padding-top: 72px; }
  .hero-intro .eyebrow { display: none; }
}

/* Hero captions sit on their own dark panel so they read over the bright day frames */
.hero3d .homes-say div { background: rgba(18, 16, 13, 0.78); padding: 22px 24px 20px; border-radius: 12px; border: 1px solid rgba(231, 225, 219, 0.08); }
.hero3d .homes-say p { color: var(--cream); opacity: 0.86; }
@media (max-width: 860px) { .hero3d .homes-say div { padding: 16px 18px; } }

/* About: a shorter founder photo */
.founder .media { aspect-ratio: 4 / 5; max-height: 58vh; max-width: 420px; }
@media (max-width: 860px) { .founder .media { max-height: 46vh; max-width: none; aspect-ratio: 16 / 11; } }

/* ---------- Responsive pass ---------- */
@media (max-width: 860px) {
  .teaser .media { aspect-ratio: 4 / 3 !important; max-width: none !important; max-height: 62vh; }
  .card { height: min(78vh, 640px); }
  .page-hero h1 { font-size: clamp(40px, 10vw, 72px); }
  .cta-band h2 { font-size: clamp(32px, 8vw, 56px); }
}
@media (max-width: 420px) {
  .btn { font-size: 13px; padding: 14px 20px; white-space: nowrap; }
  .hero-intro .btn { align-self: stretch; justify-content: center; }
  .hero-intro p { margin: 16px 0 20px; }
  .read-foot { margin-top: 40px; gap: 28px; }
  .stack-head { margin-bottom: 36px; }
}
@media (min-width: 1600px) {
  :root { --max: 1600px; }
  .hero-intro h1 { font-size: clamp(88px, 6vw, 128px); }
}
@media (max-width: 760px) { svg.doodle { display: none; } }

/* Lit doodles: bulbs switch on after the line art draws */
svg.doodle .dbulb { fill: #ffe3a3; stroke: none; opacity: 0; transition: opacity 260ms var(--ease); }
svg.doodle .dglow { opacity: 0; transition: opacity 400ms var(--ease); mix-blend-mode: screen; }
svg.doodle .dbulb.on, svg.doodle .dglow.on { opacity: 1; }
.paper svg.doodle .dglow { mix-blend-mode: multiply; }
/* Contact: keep the string lights on phones, above the heading instead of over it */
@media (max-width: 760px) {
  svg.doodle[data-doodle="string"] { display: block; position: relative; inset: auto !important; width: 86% !important; margin: 0 auto 8px; }
}

/* ================= Small screens (<= 760px). Large screens untouched. ================= */
@media (max-width: 760px) {
  /* Hero: the 3D video sits in a 4:3 window under the home switch, text below it */
  .homes.hero3d { height: 300vh; }
  .hero3d .homes-stage { background: var(--night); }
  .hero3d .homes-vid { position: absolute; left: 0; right: 0; top: 128px; aspect-ratio: 1 / 1; max-height: 52svh; overflow: hidden; }
  .hero3d .homes-vid video { object-fit: cover; object-position: 50% 50%; }
  .hero3d .homes-shade, .hero3d .intro-scrim { display: none; }
  .hero3d .homes-top { top: 76px; justify-content: center; }
  .hero-intro { top: calc(128px + min(100vw, 52svh)); bottom: auto; justify-content: flex-start; padding: 22px 0 0; }
  .hero-intro h1 { font-size: clamp(30px, 8.6vw, 40px); }
  .hero-intro p { font-size: 15px; margin: 10px 0 16px; }
  .hero3d .homes-say { top: calc(128px + min(100vw, 52svh) + 18px); bottom: auto; width: calc(100% - 2 * var(--gutter)); }
  .hero3d .homes-say div { position: absolute; top: 0; bottom: auto; background: transparent; border: 0; padding: 0; }
  .hero3d .homes-say p { opacity: 0.8; }
  .homes-rail { bottom: 22px; }

  /* Stacked cards become a simple list with full text */
  .card { position: relative; top: 0; height: auto; display: flex; flex-direction: column; margin-bottom: 24px; }
  .card .frame { height: auto; aspect-ratio: 4 / 3; }
  .card .body { gap: 18px; padding: 24px 22px 26px; }
  .card .num { font-size: 48px; }

  /* "Made for the way you live": vertical list instead of a sideways pin */
  .hz-track { flex-direction: column; width: auto; height: auto; padding: 88px var(--gutter); gap: 22px; align-items: stretch; }
  .hz-card, .hz-card:nth-child(odd), .hz-card:nth-child(even) { height: auto; width: 100%; max-width: none; margin: 0; align-self: auto; aspect-ratio: auto; overflow: visible; background: none; }
  .hz-card .frame { border-radius: 6px; overflow: hidden; }
  .hz-card .frame { position: relative; aspect-ratio: var(--ar, 4 / 3); max-height: 70vh; }
  .hz-card .cap { position: relative; background: none; padding: 16px 2px 4px; }
  .hz-end { width: auto; padding: 12px 0 0; font-size: 26px; }

  /* Breathing room */
  .pad { padding: 72px 0; }
  .read .big { font-size: 27px; }
  .stack-head h2, .teaser h2 { font-size: 32px; }
  .finale { height: auto; }
  .finale-stage { position: relative; height: 82svh; }
}

/* ---------- Taped prints (home cards): zig-zag, full photo, tape on four corners ---------- */
.cards .card { position: relative; top: auto; height: auto; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px);
  align-items: center; background: none; border: 0; border-radius: 0; overflow: visible; margin: 0 0 clamp(72px, 9vw, 130px); transform: none !important; }
.cards .card::after { display: none; }
.cards .card:nth-child(even) .frame { order: 2; }
.card .frame.taped { overflow: visible; background: none; height: auto; padding: 18px; display: block; }
.taped .photo { width: fit-content; max-width: 100%; margin: 0 auto; position: relative; padding: 12px 12px 14px; background: #efe8dc; transform: rotate(var(--rot, -1.5deg)); border: 1px solid rgba(26, 22, 18, 0.18); }
.taped .photo img, .taped .photo video { width: auto; max-width: 100%; height: auto; max-height: 70vh; display: block; }
.tape { position: absolute; width: clamp(70px, 6.4vw, 104px); height: 30px; z-index: 2; pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,0.07) 0 2px, rgba(255,255,255,0) 2px 7px), rgba(232, 220, 196, 0.8);
  clip-path: polygon(0 8%, 5% 0, 9% 10%, 14% 2%, 86% 2%, 91% 10%, 95% 0, 100% 8%, 97% 30%, 100% 50%, 97% 70%, 100% 92%, 95% 100%, 91% 90%, 86% 98%, 14% 98%, 9% 90%, 5% 100%, 0 92%, 3% 70%, 0 50%, 3% 30%); }
.tape.tl { left: -26px; top: -6px; transform: rotate(-42deg); }
.tape.tr { right: -26px; top: -6px; transform: rotate(40deg); }
.tape.bl { left: -26px; bottom: -6px; transform: rotate(38deg); }
.tape.br { right: -26px; bottom: -6px; transform: rotate(-44deg); }
.cards .card .body { padding: 0; gap: 18px; justify-content: center; }
.cards .card .num { font-size: clamp(48px, 5vw, 84px); }
.cards .card .stripes { width: 140px; }
@media (max-width: 760px) {
  .cards .card { grid-template-columns: 1fr; gap: 20px; margin-bottom: 64px; }
  .cards .card:nth-child(even) .frame { order: 0; }
  .card .frame.taped { padding: 14px; }
  .tape { width: 62px; height: 24px; }
}

/* Doodle light effects */
svg.doodle .dpool { opacity: 0; transition: opacity 1.2s var(--ease); }
svg.doodle .dpool.on { opacity: 1; }
svg.doodle .dhit { fill: transparent; pointer-events: auto; cursor: pointer; }
svg.doodle .dbulb { transition: fill 250ms var(--ease); }
.doodle-hint { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cream-faint); }
.founder .media img { object-position: 50% 62%; }
@media (max-width: 760px) { .tape.tl, .tape.bl { left: -12px; } .tape.tr, .tape.br { right: -12px; } .cards { overflow-x: clip; } }
/* Shutter flash over each print */
.taped .photo .flash { position: absolute; inset: 0; background: #fffaf0; opacity: 0; pointer-events: none; z-index: 3; }
/* Clear breathing room before the horizontal gallery */
.cards { padding-bottom: clamp(24px, 4vw, 60px); }
.cards { overflow-x: clip; overflow-clip-margin: 24px; }

/* Tighter hand-off from the taped cards into the sideways gallery */
.cards .card:last-child { margin-bottom: 0; }
.cards { padding-bottom: 0; }
@media (min-width: 761px) {
  .hz-intro { align-self: flex-start; margin-top: 16vh; }
}
