/* Spreadwing: a dark gallery wall where the wallpapers carry the colour.
   The page keeps two looks, Light and Night, like every pair in the app,
   and composes its hero like a spread: subject left of centre, fold line clear. */

@property --fold { syntax: "<number>"; inherits: true; initial-value: 1; }

:root {
  color-scheme: dark;
  --ink: #08090d;
  --ink-raised: #111319;
  --ink-high: #1a1d25;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.2);
  --text: #f4f2ee;
  --muted: rgba(244, 242, 238, 0.68);
  --faint: rgba(244, 242, 238, 0.44);
  --amber: #ffb86b;
  --amber-deep: #f5734a;
  --moon: #c6d6ff;
  --moon-deep: #8aa3f0;
  --accent: var(--amber);
  --accent-deep: var(--amber-deep);
  --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 22px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --bar: 68px;
  --gut: 20px;
}
:root[data-look="night"] { --accent: var(--moon); --accent-deep: var(--moon-deep); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1160px, 100% - var(--gut) * 2); margin-inline: auto; }
main { overflow-x: clip; }

/* Light and Night layers stacked on top of each other; the look picks one. */
.lk-light, .lk-night { transition: opacity 0.9s ease; }
:root[data-look="night"] .lk-light { opacity: 0 !important; }
:root:not([data-look="night"]) .lk-night { opacity: 0 !important; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.site-header.scrolled, .site-header.solid {
  background: rgba(8, 9, 13, 0.74);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  border-bottom-color: var(--line);
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--bar); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font: 600 21px var(--serif); letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand:hover { text-decoration: none; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a { color: var(--muted); font-size: 15px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); text-decoration: none; }

.seg {
  display: inline-flex; padding: 3px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.08); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.seg button {
  appearance: none; border: 0; background: none; margin: 0;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px;
  font: 600 13px/1.2 var(--sans); color: var(--muted); cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--text); color: var(--ink); }
.seg svg { width: 14px; height: 14px; flex: none; }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--serif); text-wrap: balance; margin: 0; }
h1 { font-weight: 700; font-size: clamp(46px, 6.5vw, 98px); line-height: 0.98; letter-spacing: -0.022em; }
h1 em, h2 em { font-style: italic; font-weight: 500; color: var(--accent); transition: color 0.9s ease; }
h2 { font-weight: 600; font-size: clamp(34px, 4.6vw, 62px); line-height: 1.03; letter-spacing: -0.018em; }
.eyebrow {
  color: var(--accent); font-size: 12.5px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  margin: 0 0 16px; transition: color 0.9s ease;
}
.lede { color: var(--muted); font-size: clamp(17px, 1.5vw, 20px); max-width: 34em; margin: 20px 0 0; }
.pill {
  display: inline-block; padding: 13px 24px; border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep)); color: var(--ink); font-weight: 700;
  box-shadow: 0 14px 40px color-mix(in srgb, var(--accent-deep) 34%, transparent);
}
a.pill:hover { text-decoration: none; filter: brightness(1.06); }
.text-link { color: var(--text); font-weight: 600; font-size: 15px; border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; }
.text-link:hover { text-decoration: none; border-bottom-color: var(--accent); }

/* A gallery placard: the label beside a print. */
.placard { display: grid; gap: 1px; padding-left: 14px; border-left: 1px solid var(--line-strong); font-size: 13px; line-height: 1.45; color: var(--muted); margin: 0; }
.placard b { font: 600 18px/1.25 var(--serif); color: var(--text); }
.placard .meta { color: var(--faint); letter-spacing: 0.08em; text-transform: uppercase; font-size: 11px; font-weight: 600; margin-top: 4px; }

/* ---------- Living backdrops (Higgsfield loops over their stills) ---------- */
.living { position: absolute; inset: 0; z-index: -2; background: var(--ink); overflow: hidden; }
.living img, .living video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.living video { opacity: 0; transition: opacity 1.2s ease; }
.living video.on { opacity: 1; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; min-height: min(100svh, 940px); }
/* Scaled from a low anchor so the cabin sits above the headline, not under it. */
.hero .living img, .hero .living video { object-position: 30% 50%; transform: scale(1.2); transform-origin: 30% 88%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(to top, var(--ink) 0%, rgba(8, 9, 13, 0.82) 22%, rgba(8, 9, 13, 0.2) 56%, rgba(8, 9, 13, 0) 72%, rgba(8, 9, 13, 0.5) 100%),
    linear-gradient(to right, rgba(8, 9, 13, 0.5), rgba(8, 9, 13, 0) 60%);
}
.hero-fold {
  position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.26) 24%, rgba(255, 255, 255, 0.26) 80%, rgba(255, 255, 255, 0));
}
.hero-fold span {
  position: absolute; left: 12px; bottom: 76px; white-space: nowrap;
  font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint);
}
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 48px; align-items: end; padding-block: calc(var(--bar) + 80px) 72px; width: min(1160px, 100% - var(--gut) * 2); margin-inline: auto; }
.hero-copy { padding-right: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; margin-top: 34px; }
.hero-side { justify-self: end; display: grid; gap: 18px; justify-items: start; padding-bottom: 6px; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(84px, 11vw, 150px); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 48px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head p:not(.eyebrow) { color: var(--muted); margin: 0; max-width: 32em; }
.sec-head .eyebrow { grid-column: 1 / -1; margin-bottom: -4px; }

/* ---------- Unfold: the Duo opens as you scroll ---------- */
.unfold { position: relative; }
.unfold-track { height: 240svh; }
.unfold-stage {
  position: sticky; top: 0; height: 100svh; display: grid; align-items: center; overflow: clip;
  background: radial-gradient(52% 46% at 70% 52%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 70%);
}
.unfold-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; padding-top: var(--bar); }
.state-copy { display: grid; margin-top: 20px; min-height: 5.2em; }
.state-copy p { grid-area: 1 / 1; margin: 0; color: var(--muted); max-width: 30em; transition: opacity 0.45s ease, transform 0.45s var(--ease); }
.state-copy b { color: var(--text); font-weight: 600; }
.unfold[data-state="closed"] .when-open, .unfold[data-state="open"] .when-closed { opacity: 0; transform: translateY(8px); }
.unfold-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 26px; }
.toggle {
  appearance: none; display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  padding: 9px 15px 9px 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.05);
  color: var(--muted); font: 600 13px/1.2 var(--sans); transition: color 0.25s ease, border-color 0.25s ease;
}
.toggle::before { content: ""; width: 12px; height: 12px; border-radius: 3px; border: 1.5px dashed currentColor; }
.toggle:hover { color: var(--text); }
.toggle[aria-pressed="true"] { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.scroll-hint { margin: 22px 0 0; font-size: 13px; color: var(--faint); transition: opacity 0.4s ease; }
.unfold[data-state="open"] .scroll-hint { opacity: 0; }

.unfold-device { display: grid; justify-items: center; gap: 30px; min-width: 0; }
.device-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px 32px; width: 100%; }
.picker { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
.picker button {
  appearance: none; display: block; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 12px; cursor: pointer;
  background: var(--ink-raised) center / cover; opacity: 0.55; transition: opacity 0.25s ease, transform 0.25s var(--ease), box-shadow 0.25s ease;
}
.picker button:hover { opacity: 0.9; transform: translateY(-2px); }
.picker button[aria-pressed="true"] { opacity: 1; box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px var(--accent); }

.duo {
  --w: min(600px, 52vw, 76svh);
  --bz: calc(var(--w) * 0.013);
  --sw: calc((var(--w) - var(--bz) * 2) / 2);
  --sh: calc(var(--sw) * 1.40674);
  --r: calc(var(--w) * 0.05);
  --cx: 28.4%;
  perspective: 1900px; position: relative;
  width: var(--w); height: calc(var(--sh) + var(--bz) * 2 + var(--w) * 0.06);
  display: grid; place-items: center;
}
.duo::after {
  content: ""; position: absolute; left: 12%; right: 12%; bottom: -4%; height: 12%; z-index: -1;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.7), transparent); filter: blur(14px);
  transform: scaleX(calc(0.55 + var(--fold) * 0.45));
}
.duo-body {
  position: relative; width: var(--w); height: calc(var(--sh) + var(--bz) * 2);
  transform-style: preserve-3d;
  transform: translateX(calc((1 - var(--fold)) * 25%)) scale(calc(1 + (1 - var(--fold)) * 0.14)) rotateX(7deg) rotateY(calc(-5deg + (1 - var(--fold)) * 13deg));
}
.duo-half { position: absolute; top: 0; width: 50%; height: 100%; transform-style: preserve-3d; }
.duo-left { left: 0; }
.duo-right { left: 50%; transform-origin: left center; transform: rotateY(calc((1 - var(--fold)) * -180deg)) translateZ(-1.5px); }
.face {
  position: absolute; inset: 0; -webkit-backface-visibility: hidden; backface-visibility: hidden;
  background: linear-gradient(150deg, #3a3d47, #0d0e12 46%, #1c1e25);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}
.duo-left .face { border-radius: var(--r) 3px 3px var(--r); }
.duo-right .front { border-radius: 3px var(--r) var(--r) 3px; }
.duo-right .back { transform: rotateY(180deg); border-radius: var(--r) 3px 3px var(--r); }
.screen { position: absolute; overflow: hidden; background: #000; }
.screen i { position: absolute; inset: 0; background-repeat: no-repeat; background-size: auto 100%; }
.screen i.lk-light { background-image: var(--img-light); }
.screen i.lk-night { background-image: var(--img-night); }
.inner-l { inset: var(--bz) 0 var(--bz) var(--bz); border-radius: calc(var(--r) - var(--bz)) 0 0 calc(var(--r) - var(--bz)); }
.inner-r { inset: var(--bz) var(--bz) var(--bz) 0; border-radius: 0 calc(var(--r) - var(--bz)) calc(var(--r) - var(--bz)) 0; }
.inner-l i { background-position: left center; }
.inner-r i { background-position: right center; }
.cover { inset: var(--bz); border-radius: calc(var(--r) - var(--bz)); }
.cover i { background-position: var(--cx) center; }
/* The crease, and the shade that falls across the screens as the cover swings. */
.inner-l::after, .inner-r::after { content: ""; position: absolute; top: 0; bottom: 0; width: 7%; pointer-events: none; }
.inner-l::after { right: 0; background: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.2)); }
.inner-r::after { left: 0; background: linear-gradient(to right, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0)); }
.shade { position: absolute; inset: 0; background: #000; pointer-events: none; opacity: calc((1 - var(--fold)) * 0.6); }
.lock { position: absolute; top: 8.5%; left: 0; right: 0; text-align: center; color: #fff; text-shadow: 0 1px 14px rgba(0, 0, 0, 0.4); pointer-events: none; }
.lock small { display: block; font: 600 calc(var(--w) * 0.021) / 1.2 var(--sans); opacity: 0.92; }
.lock b { display: block; font: 600 calc(var(--w) * 0.086) / 1.05 var(--sans); letter-spacing: -0.02em; }
.zone {
  position: absolute; top: 0; bottom: 0; opacity: 0; transition: opacity 0.35s ease; pointer-events: none;
  background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--accent) 42%, transparent) 0 5px, rgba(0, 0, 0, 0.12) 5px 10px);
  outline: 1px dashed var(--accent); outline-offset: -1px;
}
.duo.zones .zone { opacity: 1; }
.inner-l .zone { right: 0; width: 8%; }
.inner-r .zone { left: 0; width: 8%; }
.cover .zone { right: 0; width: 20%; }

/* ---------- Light / Night comparison ---------- */
.compare {
  --pos: 50%;
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--ink-raised); touch-action: pan-y;
}
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.cmp-night { clip-path: inset(0 0 0 var(--pos)); }
.cmp-tag {
  position: absolute; top: 18px; padding: 6px 12px; border-radius: 999px; pointer-events: none;
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #fff;
  background: rgba(8, 9, 13, 0.46); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.cmp-tag.l { left: 18px; }
.cmp-tag.r { right: 18px; }
.cmp-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; pointer-events: none; box-shadow: 0 0 18px rgba(0, 0, 0, 0.5); }
.cmp-handle::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2308090d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 7l-5 5 5 5M15 7l5 5-5 5'/%3E%3C/svg%3E") center / 22px no-repeat;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare:focus-within { outline: 2px solid var(--accent); outline-offset: 4px; }
.looks-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 18px 40px; margin-top: 24px; }
.clock-note { margin: 0; color: var(--muted); font-size: 15px; max-width: 30em; }

/* ---------- Collections ---------- */
.coll { padding-block: 34px 44px; border-top: 1px solid var(--line); }
.coll-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 32px; margin-bottom: 22px; }
.coll-head h3 { font-weight: 600; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.1; letter-spacing: -0.01em; }
.coll-head p { margin: 0; color: var(--muted); font-size: 15px; }
.mosaic { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.mosaic li { min-width: 0; }
.mosaic .lead { grid-column: span 2; grid-row: span 2; }
.coll:nth-of-type(even) .mosaic .lead { grid-column: 4 / span 2; grid-row: 1 / span 2; }
.mosaic figure { position: relative; margin: 0; height: 100%; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--ink-raised); }
.mosaic .lead figure { border-radius: 20px; }
.mosaic img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease), opacity 0.5s ease; }
.mosaic img.swapping { opacity: 0; }
.mosaic figure:hover img { transform: scale(1.045); }
.mosaic figcaption {
  position: absolute; inset: auto 0 0 0; padding: 30px 12px 10px; font-size: 12.5px; font-weight: 600; line-height: 1.25;
  background: linear-gradient(rgba(8, 9, 13, 0), rgba(8, 9, 13, 0.84)); opacity: 0; transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s var(--ease);
}
.mosaic .lead figcaption { font: 600 19px/1.2 var(--serif); padding: 48px 18px 16px; opacity: 1; transform: none; }
.mosaic figure:hover figcaption { opacity: 1; transform: none; }
@media (hover: none) { .mosaic figcaption { opacity: 1; transform: none; } }

/* ---------- In the app: real simulator captures ---------- */
.shots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1398fr 2889fr 1398fr; gap: 20px; align-items: start; }
.shots li { min-width: 0; }
.shots figure { margin: 0; }
.shots img { display: block; width: 100%; border-radius: clamp(14px, 2vw, 26px); border: 1px solid var(--line-strong); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
.shots figcaption { margin-top: 14px; font-size: 13px; color: var(--faint); }

/* ---------- Auto-Swap ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px 72px; align-items: center; }
.split .copy p { color: var(--muted); max-width: 31em; }
.split .copy h2 + p { margin-top: 22px; }
.steps { list-style: none; counter-reset: step; margin: 26px 0 28px; padding: 0; display: grid; gap: 14px; max-width: 31em; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; color: var(--muted); font-size: 16px; }
.steps li::before {
  content: counter(step); width: 26px; height: 26px; margin-top: 1px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; font-weight: 700; color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
}
.steps b { color: var(--text); font-weight: 600; }
.automations { position: relative; display: grid; gap: 16px; padding-top: 150px; }
.automations .glass { position: absolute; width: 200px; right: 3%; top: 0; z-index: 2; pointer-events: none; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.55)); }
.auto-card { position: relative; z-index: 1; background: rgba(22, 24, 31, 0.86); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.auto-card:first-of-type { margin-right: 14%; }
.auto-card:last-of-type { margin-left: 14%; }
.auto-when { display: flex; align-items: center; gap: 10px; font-weight: 600; margin: 0 0 14px; }
.auto-when span { color: var(--faint); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; }
.auto-when b { color: var(--accent); font-weight: 600; }
.auto-card ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.auto-card li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); font-size: 15px; font-weight: 600; }
.auto-card li img, .auto-card li .sys { width: 34px; height: 34px; border-radius: 9px; }
.auto-card li .sys { display: grid; place-items: center; background: linear-gradient(140deg, #5b8cff, #36c3f0); }
.auto-card li .sys svg { width: 18px; height: 18px; }
.auto-card li small { color: var(--faint); font-size: 13px; font-weight: 500; white-space: nowrap; }
.auto-run { margin: 12px 2px 0; font-size: 13px; color: var(--faint); }

/* ---------- Studio ---------- */
.studio-visual { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.frame { position: relative; overflow: hidden; border-radius: 18px; border: 1px solid var(--line); background: var(--ink-raised) no-repeat; }
.frame-photo { aspect-ratio: 2048 / 1360; background-image: url("/assets/art/studio-photo.webp"); background-size: cover; }
.frame-label {
  position: absolute; left: 12px; top: 12px; padding: 5px 10px; border-radius: 999px; z-index: 2;
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #fff;
  background: rgba(8, 9, 13, 0.5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
/* Boxes below use the numbers CropPlanner produces for this photo. */
.crop-box { position: absolute; top: 14.83%; height: 70.34%; border: 1.5px solid rgba(255, 255, 255, 0.85); border-radius: 6px; box-shadow: 0 0 0 100vmax rgba(8, 9, 13, 0.38); }
.crop-spread { left: 5.11%; width: 66.41%; }
.crop-cover { left: 14.4%; width: 32.11%; border-color: var(--accent); box-shadow: none; }
.subject {
  position: absolute; left: 17.5%; top: 42%; width: 19.5%; height: 37%; border-radius: 8px;
  background:
    linear-gradient(var(--accent), var(--accent)) left top / 14px 2px, linear-gradient(var(--accent), var(--accent)) left top / 2px 14px,
    linear-gradient(var(--accent), var(--accent)) right top / 14px 2px, linear-gradient(var(--accent), var(--accent)) right top / 2px 14px,
    linear-gradient(var(--accent), var(--accent)) left bottom / 14px 2px, linear-gradient(var(--accent), var(--accent)) left bottom / 2px 14px,
    linear-gradient(var(--accent), var(--accent)) right bottom / 14px 2px, linear-gradient(var(--accent), var(--accent)) right bottom / 2px 14px;
  background-repeat: no-repeat;
}
.subject span { position: absolute; left: 0; bottom: calc(100% + 8px); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); white-space: nowrap; }
.results { display: grid; grid-template-columns: 0.4835fr 1fr; gap: 16px; align-items: stretch; }
.frame-cover, .frame-spread { background-image: url("/assets/art/studio-photo.webp"); }
.frame-cover { aspect-ratio: 1398 / 2034; background-size: 311.4% auto; background-position: 21.2% 50%; }
.frame-spread { aspect-ratio: 2670 / 1878; background-size: 150.6% auto; background-position: 15.2% 50%; }
.frame-spread::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: rgba(255, 255, 255, 0.5); }
.frame-cover::after { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 20%; border-left: 1px dashed rgba(255, 255, 255, 0.6); background: rgba(8, 9, 13, 0.18); }
.checks { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 10px; }
.checks li { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 16px; }
.checks li::before {
  content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 22%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23f4f2ee' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 10.5l2.6 2.6L14 7.6'/%3E%3C/svg%3E") center / 20px no-repeat;
}

/* ---------- Promises ---------- */
.promises { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.promise {
  position: relative; overflow: hidden; border-radius: 28px; border: 1px solid var(--line);
  padding: 250px clamp(26px, 3.4vw, 44px) clamp(26px, 3.4vw, 44px); display: flex; flex-direction: column; justify-content: flex-end;
  background: radial-gradient(90% 80% at 82% 12%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 62%), var(--ink-raised);
}
.promise img { position: absolute; right: 5%; top: 18px; width: 236px; pointer-events: none; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.45)); }
.promise h3 { font-weight: 600; font-size: clamp(28px, 3vw, 40px); line-height: 1.06; letter-spacing: -0.015em; max-width: 9em; }
.promise p { color: var(--muted); margin: 16px 0 0; max-width: 27em; }
.promise ul { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.promise li { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--muted); }

/* ---------- Closing ---------- */
.closing { position: relative; isolation: isolate; overflow: hidden; text-align: center; padding-block: clamp(120px, 17vw, 230px); }
.closing .living img, .closing .living video { object-position: 40% 40%; }
.closing::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, var(--ink) 0%, rgba(8, 9, 13, 0.34) 28%, rgba(8, 9, 13, 0.3) 62%, var(--ink) 100%);
}
.closing .icon { width: 84px; height: 84px; border-radius: 20px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); margin-bottom: 30px; }
.closing h2 { font-size: clamp(40px, 6.4vw, 92px); font-weight: 700; }
.closing p { color: var(--text); opacity: 0.84; margin: 20px auto 34px; max-width: 28em; }

/* ---------- Footer ---------- */
footer.site { border-top: 1px solid var(--line); padding: 30px 0 44px; color: var(--faint); font-size: 14px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
footer.site a { color: var(--muted); margin-right: 20px; }
footer.site a:hover { color: var(--text); text-decoration: none; }

/* ---------- Documents (support, privacy, shortcut) ---------- */
.doc { max-width: 720px; padding: calc(var(--bar) + 56px) 0 96px; }
.doc h1 { font-size: clamp(38px, 6vw, 58px); line-height: 1.04; }
.doc h1 + p { font-size: 19px; }
.doc .updated { color: var(--faint); font-size: 14px; margin-top: 12px; }
.doc h2 { font-weight: 600; font-size: 27px; line-height: 1.25; letter-spacing: -0.01em; margin: 48px 0 10px; }
.doc h3 { font: 600 17px/1.4 var(--sans); margin: 28px 0 4px; }
.doc p, .doc li { color: var(--muted); }
.doc strong { color: var(--text); font-weight: 600; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc .pill { margin-top: 6px; }
.short, .contact { background: var(--ink-raised); border: 1px solid var(--line); border-radius: var(--radius); margin-top: 28px; }
.short { padding: 8px 26px 12px; }
.short h2 { margin-top: 22px; }
.contact { padding: 24px 26px; }
.contact a { font: 600 22px var(--serif); }
.contact p { margin: 8px 0 0; }

/* ---------- Smaller screens ---------- */
@media (max-width: 900px) {
  .site-nav { gap: 16px; }
  .site-nav .nav-link { display: none; }
  .hero { min-height: min(100svh, 820px); }
  .hero-fold { display: none; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); padding-block: calc(var(--bar) + 120px) 40px; }
  .hero-copy { padding-right: 0; }
  .hero-side { display: none; }
  .hero .lede { font-size: 16px; }
  /* On a phone the picture takes the top of the hero and the words sit beneath it. */
  .hero .living { bottom: auto; height: 64%; }
  .hero .living img, .hero .living video { object-position: 31% 50%; transform: none; }
  .hero::before { background: linear-gradient(to top, var(--ink) 0%, var(--ink) 36%, rgba(8, 9, 13, 0.5) 50%, rgba(8, 9, 13, 0) 68%, rgba(8, 9, 13, 0.45) 100%); }
  .sec-head, .split, .promises { grid-template-columns: minmax(0, 1fr); }
  .unfold-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .unfold-copy h2 { font-size: clamp(30px, 8vw, 40px); }
  .state-copy { margin-top: 12px; min-height: 6.6em; font-size: 15.5px; }
  .unfold-controls { margin-top: 14px; }
  .scroll-hint { display: none; }
  .duo { --w: min(88vw, 46svh); }
  .unfold-device { gap: 18px; }
  .picker button { width: 36px; height: 36px; border-radius: 10px; }
  .device-foot { gap: 14px 24px; }
  .mosaic { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .mosaic .lead, .coll:nth-of-type(even) .mosaic .lead { grid-column: 1 / -1; grid-row: auto; }
  .mosaic .lead figure { aspect-ratio: 3 / 2; }
  .mosaic figcaption { font-size: 11px; padding: 22px 8px 7px; }
  .shots { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-inline: calc(var(--gut) * -1); padding: 0 var(--gut) 6px; scrollbar-width: none; }
  .shots li { flex: none; scroll-snap-align: center; }
  .shots .outer { width: 58vw; }
  .shots .inner { width: 120vw; max-width: 560px; }
  .automations { padding-top: 132px; }
  .automations .glass { width: 150px; right: 2%; }
  .compare { aspect-ratio: 2670 / 1878; }
  .auto-card:first-of-type { margin-right: 6%; }
  .auto-card:last-of-type { margin-left: 6%; }
  .split .visual { order: 2; }
  .promise { padding-top: 210px; }
  .promise img { width: 196px; }
}
@media (max-width: 520px) {
  :root { --gut: 16px; }
  .brand { font-size: 19px; }
  .seg button { padding: 7px 11px; }
  .auto-card li small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .unfold-track { height: auto; }
  .unfold-stage { position: static; height: auto; padding-block: 96px; }
  .duo-body, .duo-right, .shade, .duo::after { transition: none; }
  * { transition-duration: 0.01ms !important; }
}
