/* Ferrow Studio v3: a type-first studio site. Dark monument hero, light editorial sections,
   one ember accent. Tokens follow the brief's DESIGN.md (Anton / Geist / Geist Mono stand in for
   the reference's licensed faces). */
:root {
  --ember: #ff6436; --onyx: #161616; --graphite: #3c3a3e; --stone: #5d5c5f; --ash: #a2a2a2;
  --mist: #c9c7cc; --fog: #f1f1f1; --paper: #f8f8f8; --white: #fff;
  --display: "Anton", "Bebas Neue", Impact, sans-serif;
  --sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --ease-in: cubic-bezier(.32, .72, 0, 1); --ease-out: cubic-bezier(.19, 1, .22, 1);
  --max: 1200px; --gut: clamp(16px, 4vw, 48px);
  --hair: 1px solid rgba(60, 58, 62, .15);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--graphite); font: 500 17px/1.3 var(--sans); letter-spacing: -0.01em; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--ember); color: var(--white); }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--onyx); color: var(--fog); padding: 10px 14px; font: 600 13px var(--mono); text-transform: uppercase; }
.skip:focus { top: 12px; }
.wrap { width: min(100% - 2 * var(--gut), var(--max)); margin-inline: auto; }

/* ---- type ---- */
.mono-xl { font-family: var(--display); font-weight: 400; text-transform: uppercase; line-height: .84; letter-spacing: -0.01em; }
.h-lg { font-size: clamp(30px, 4.2vw, 60px); line-height: 1; letter-spacing: -0.03em; font-weight: 500; color: var(--graphite); }
.h-md { font-size: clamp(28px, 3vw, 36px); line-height: 1; letter-spacing: -0.03em; font-weight: 500; color: var(--graphite); }
.h-sm { font-size: clamp(19px, 1.5vw, 21px); line-height: 1.2; letter-spacing: -0.02em; font-weight: 500; }
.label { font: 500 12px/1.3 var(--mono); text-transform: uppercase; letter-spacing: -0.01em; color: var(--stone); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ember); flex: none; }
.tag { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; background: var(--onyx); color: var(--fog); font: 600 11px/1 var(--mono); text-transform: uppercase; }
.tag--glass { background: rgba(255,255,255,.05); color: rgba(255,255,255,.75); border: 1px solid rgba(255,255,255,.15); }
.tag--confirm { background: var(--ember); color: var(--onyx); }

/* ---- buttons: pills, the only rounded things ---- */
.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 7px 14px; border-radius: 9999px; border: 1px solid rgba(255,255,255,.18);
  font: 500 13px/1 var(--mono); text-transform: uppercase; color: rgba(255,255,255,.82); transition: background-color .3s var(--ease-in), color .3s var(--ease-in), border-color .3s; }
.pill:hover { background: rgba(255,255,255,.08); color: var(--white); }
.pill--solid { background: var(--fog); color: var(--onyx); border-color: transparent; }
.pill--solid:hover { background: var(--white); color: var(--onyx); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 9999px; font: 500 15px/1 var(--sans); border: 1px solid transparent; cursor: pointer;
  transition: transform .3s var(--ease-in), background-color .3s var(--ease-in); }
.btn:active { transform: scale(.98); }
.btn--light { background: var(--fog); color: var(--onyx); }
.btn--light:hover { background: var(--white); }
.btn--ghost { color: var(--fog); border-color: rgba(255,255,255,.3); }
.btn--ghost:hover { border-color: var(--fog); }

/* ---- top bar: floats on the hero, gets a quiet bar once the page moves ---- */
.top { position: fixed; z-index: 50; inset: 0 0 auto 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px var(--gut);
  transition: background-color .5s var(--ease-in), backdrop-filter .5s; }
.top.is-solid { background: rgba(22, 22, 22, .72); backdrop-filter: blur(10px); }
.top__mark { display: inline-flex; align-items: center; gap: 10px; color: var(--fog); font: 500 15px var(--sans); letter-spacing: -0.02em; min-height: 44px; }
.top__nav { display: flex; gap: 6px; }

/* ===================================================================== hero */
.hero { position: relative; height: 230svh; background: var(--onyx); color: var(--fog); }
.hero__stage { position: sticky; top: 0; height: 100svh; min-height: 620px; overflow: hidden;
  background: radial-gradient(120% 70% at 50% 100%, #6e6c70 0%, #3c3a3e 38%, #1d1d1e 70%, var(--onyx) 100%); }
.hero__title { position: absolute; left: 0; right: 0; top: calc(64px + 3svh); text-align: center; font-size: clamp(76px, 17.5vw, 300px);
  background: linear-gradient(#f1f1f1 0%, #dcd6d6 30%, #b9b7bb 55%, #6e6c70 85%, #3c3a3e 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  transform: translateY(calc(var(--p, 0) * -6svh)); }
.hero__title span { display: block; }
.hero__meta { position: absolute; left: var(--gut); right: var(--gut); top: 47%; display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; z-index: 2; pointer-events: none; }
.hero__meta .label { color: rgba(241,241,241,.7); }
.hero__lead { max-width: 21em; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.3; color: var(--fog); text-align: left; }
.hero__ctas { position: absolute; left: var(--gut); bottom: 28px; display: flex; gap: 8px; z-index: 3; }

/* the monitor rises through the headline as you scroll; its screen changes project */
.monitor { position: absolute; left: 50%; bottom: 0; width: min(54vw, 820px, 120svh); z-index: 1;
  transform: translate(-50%, calc((1 - var(--p, 0)) * 26%)) scale(calc(.86 + var(--p, 0) * .14)); transform-origin: 50% 100%; }
.monitor__screen { position: relative; aspect-ratio: 16 / 10; background: #0b0b0b; border: clamp(6px, .8vw, 12px) solid #0d0d0e; border-radius: 10px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255,255,255,.07), 0 40px 80px -40px rgba(0,0,0,.9); }
.monitor__screen > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity .6s var(--ease-out); }
.monitor__screen > .is-on { opacity: 1; }
.monitor__neck { width: 12%; height: clamp(40px, 6vw, 84px); margin: 0 auto; background: linear-gradient(90deg, #111, #2c2b2d 50%, #111); }
.monitor__foot { width: 38%; height: 14px; margin: 0 auto; border-radius: 6px 6px 0 0; background: linear-gradient(#2a292b, #121212); }
.monitor figcaption { position: absolute; left: clamp(14px, 1.6vw, 24px); top: clamp(14px, 1.6vw, 24px); z-index: 2; }

/* the projected concept sites (shared with v2): light pages drawn in code */
.monitor__site, .card__site { container-type: inline-size; background: #f3ece0; display: block; overflow: hidden; }
.ps { position: absolute; inset: 0; padding: 3cqi 4cqi; display: grid; grid-template-rows: auto 1fr auto; gap: 2.4cqi; color: #1d1b17; font-family: var(--sans); letter-spacing: -0.01em; }
.ps__nav { display: flex; align-items: center; gap: 2.6cqi; font-size: 1.6cqi; font-weight: 500; }
.ps__logo { font-weight: 600; font-size: 2.1cqi; margin-right: auto; }
.ps__btn { background: var(--c-accent); color: var(--c-accent-ink, #1d1b17); padding: .8cqi 1.6cqi; border-radius: .6cqi; font-weight: 600; }
.ps__hero { display: grid; grid-template-columns: 1fr 1.15fr; gap: 4cqi; align-items: center; }
.ps__h { font-size: 4cqi; line-height: 1.02; font-weight: 600; letter-spacing: -0.03em; margin: 0 0 1.6cqi; color: var(--c-ink, #1d1b17); }
.ps__p { font-size: 1.6cqi; line-height: 1.4; margin: 0 0 2.4cqi; opacity: .8; }
.ps__ctas { display: flex; gap: 1.4cqi; }
.ps__ctas span { font-size: 1.4cqi; font-weight: 600; padding: 1cqi 2cqi; border-radius: .6cqi; }
.ps__ctas span:first-child { background: var(--c-accent); color: var(--c-accent-ink, #1d1b17); }
.ps__ctas span:last-child { box-shadow: inset 0 0 0 .2cqi currentColor; }
.ps__img { height: 100%; min-height: 20cqi; border-radius: 1cqi; background: var(--c-img); }
.ps__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2cqi; font-size: 1.35cqi; }
.ps__row b { display: block; font-size: 1.6cqi; margin-bottom: .4cqi; }
.ps__row span { opacity: .75; }
.ps[data-concept="electric"] { --c-accent: #f2c230; --c-img: linear-gradient(160deg, #8d8a80, #3a3934 70%); }
.ps[data-concept="physio"] { --c-accent: #2f6b4d; --c-accent-ink: #f3efe6; --c-ink: #173726; --c-img: radial-gradient(60% 70% at 70% 30%, #b8cfbd, #5f8a6f 70%); }
.ps[data-concept="bakery"] { --c-accent: #b0502a; --c-accent-ink: #fff4e8; --c-ink: #3a2316; --c-img: radial-gradient(40% 30% at 40% 60%, #c98a4a 60%, transparent 62%), radial-gradient(30% 24% at 68% 38%, #a8642f 60%, transparent 62%), linear-gradient(160deg, #e9c99a, #8c4b25); }
@container (max-width: 520px) {
  .ps { padding: 5cqi 6cqi; gap: 4cqi; grid-template-rows: auto auto 1fr; }
  .ps__nav { font-size: 3.4cqi; } .ps__nav > span:not(.ps__logo):not(.ps__btn) { display: none; }
  .ps__logo { font-size: 4.2cqi; } .ps__btn { padding: 1.4cqi 2.6cqi; border-radius: 1cqi; }
  .ps__hero { grid-template-columns: 1fr; gap: 4cqi; } .ps__h { font-size: 8.4cqi; } .ps__p { font-size: 3.4cqi; }
  .ps__ctas span { font-size: 3.2cqi; padding: 1.8cqi 3.2cqi; border-radius: 1cqi; } .ps__img { min-height: 34cqi; } .ps__row { display: none; }
}

/* ===================================================================== light sections */
section:not(.hero) { padding-block: clamp(72px, 10vw, 120px); }
.ghost { font: 400 clamp(96px, 19vw, 280px)/.74 var(--display); text-transform: uppercase; color: var(--white); letter-spacing: -0.01em; margin-bottom: -0.18em; user-select: none; }
.work, .process { background: var(--fog); }

.intro__grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 60px); align-items: end; }
.intro .h-lg { margin-bottom: 24px; }
.portrait { aspect-ratio: 4 / 5; background: linear-gradient(#2a292b, #6e6c70); display: flex; align-items: flex-end; padding: 12px; }

.work__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 36px; }
.card { position: relative; display: block; grid-column: span 2; background: var(--white); overflow: hidden; }
.card--wide { grid-column: span 3; }
.card img, .card .card__site { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; transition: transform .75s var(--ease-out); }
.card .card__site { position: relative; }
.card:hover img, .card:hover .card__site { transform: scale(1.025); }
.card__tags { position: absolute; left: 12px; top: 12px; display: flex; flex-wrap: wrap; gap: 4px; z-index: 1; }
.card__name { display: flex; align-items: center; justify-content: space-between; padding: 14px 12px 16px; font-size: 21px; letter-spacing: -0.02em; color: var(--graphite); border-top: var(--hair); }
.card__name::after { content: "→"; color: var(--stone); transition: transform .3s var(--ease-in); }
.card:hover .card__name::after { transform: translateX(4px); color: var(--ember); }

.included { padding-block: clamp(48px, 6vw, 72px) !important; }
.strip { list-style: none; padding: 0; margin: 18px 0 0; display: flex; background: rgba(255,255,255,.7); border: var(--hair); overflow: hidden; }
.strip li { flex: 1 1 0; position: relative; padding: 22px 18px; font-size: clamp(15px, 1.3vw, 19px); letter-spacing: -0.02em; text-align: center; white-space: nowrap; }
.strip li + li::before { content: ""; position: absolute; left: 0; top: -10%; bottom: -10%; width: 1px; background: var(--mist); transform: skewX(-18deg); }

.tiles { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tile h3 { font-size: clamp(30px, 3vw, 36px); letter-spacing: -0.03em; font-weight: 500; margin: 18px 0 8px; }
.tile p { color: var(--stone); max-width: 30ch; }
.tile__art { aspect-ratio: 1 / .82; display: grid; place-items: center; padding: 12%; background: linear-gradient(var(--onyx), #6e6c70 55%, var(--mist)); }
.tile__art .card__site { position: relative; width: 100%; aspect-ratio: 16 / 10; }
.sk { width: 100%; aspect-ratio: 4 / 3; background: #eeece8; padding: 7% 8%; display: grid; gap: 6%; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto auto 1fr auto; }
.sk i { display: block; border: 1.5px solid #6d6a66; }
.sk__nav { grid-column: 1 / -1; height: 10px; border-style: dashed !important; }
.sk__h { height: 12px; background: repeating-linear-gradient(90deg, #8a8783 0 6px, transparent 6px 9px); border: 0 !important; }
.sk__h--s { width: 70%; }
.sk__img { grid-column: 2; grid-row: 2 / span 3; background: linear-gradient(to top right, transparent 49%, #8a8783 50%, transparent 51%), linear-gradient(to bottom right, transparent 49%, #8a8783 50%, transparent 51%); }
.sk__btn { width: 55%; height: 16px; border-radius: 99px !important; }
.sk__row { grid-column: 1 / -1; height: 22px; }
.phone { height: 100%; aspect-ratio: 9 / 18; border: 5px solid #0d0d0e; border-radius: 18px; overflow: hidden; background: #f3ece0; }
.phone .card__site { height: 100%; aspect-ratio: auto; }

.price__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: end; }
.price__num { font-size: clamp(140px, 22vw, 300px); background: linear-gradient(#000, #3c3a3e 40%, #6e6c70 70%, #b9b7bb); -webkit-background-clip: text; background-clip: text; color: transparent; margin: 6px 0 12px; }
.price__notes { display: grid; gap: 18px; padding-bottom: 12px; }
.price__notes > p:not(.h-sm) { color: var(--stone); }
.hosting { border-top: var(--hair); padding-top: 18px; display: grid; gap: 8px; }
.hosting p:last-child { color: var(--stone); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.about { border-top: var(--hair); }
.about__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 24px; }
.about .h-sm { color: var(--stone); }

/* ===================================================================== the end: dark again */
.end { background: radial-gradient(120% 80% at 50% 0%, #3c3a3e, var(--onyx) 60%); color: var(--fog); padding: clamp(72px, 10vw, 120px) 0 24px; overflow: hidden; }
.end__title { font-size: clamp(64px, 14vw, 230px); background: linear-gradient(#f1f1f1, #b9b7bb 55%, #6e6c70); -webkit-background-clip: text; background-clip: text; color: transparent; }
.end__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); margin-top: clamp(40px, 5vw, 72px); }
.end__lead { font-size: clamp(19px, 1.5vw, 21px); line-height: 1.25; letter-spacing: -0.02em; max-width: 26ch; }
.contact { display: grid; gap: 10px; margin-top: 24px; }
.contact div { display: flex; gap: 14px; align-items: center; }
.contact dt { font: 500 12px var(--mono); text-transform: uppercase; color: var(--ash); min-width: 72px; }
.contact dd { margin: 0; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 12px; }
.form label { display: grid; gap: 8px; font: 500 12px var(--mono); text-transform: uppercase; color: var(--ash); }
.form__full { grid-column: 1 / -1; }
.form :is(input, select, textarea) { width: 100%; min-height: 48px; padding: 12px; border: 1px solid rgba(255,255,255,.18); border-radius: 0; background: rgba(255,255,255,.04);
  color: var(--fog); font: 500 16px var(--sans); text-transform: none; appearance: none; }
.form textarea { min-height: 110px; resize: vertical; }
.form :is(input, select, textarea):focus { outline: none; border-color: var(--ember); }
.form .btn { grid-column: 1 / -1; justify-self: start; }
.end__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: clamp(56px, 7vw, 96px); padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); }
.end__foot .label { display: inline-flex; align-items: center; gap: 8px; color: var(--ash); }
.end__foot nav { display: flex; gap: 18px; }
.end__foot nav a { font: 500 12px var(--mono); text-transform: uppercase; color: var(--fog); min-height: 44px; display: inline-flex; align-items: center; }

/* ---- arrival: the hero builds in once, weighted, no bounce ---- */
.js .hero__title span, .js .hero__meta, .js .monitor, .js .hero__ctas { animation: rise .9s var(--ease-in) both; }
.js .hero__title span:nth-child(2) { animation-delay: .08s; }
.js .hero__meta { animation-delay: .25s; }
.js .monitor { animation: rise-m 1.1s var(--ease-in) .3s both; }
.js .hero__ctas { animation-delay: .45s; }
@keyframes rise { from { opacity: 0; translate: 0 40px; } }
@keyframes rise-m { from { opacity: 0; translate: 0 18%; } }

/* ---- smaller screens ---- */
@media (max-width: 900px) {
  .top__nav { display: none; }
  .hero { height: 180svh; }
  .hero__title { top: 92px; font-size: clamp(64px, 19vw, 160px); }
  .hero__meta { top: auto; bottom: calc(54vw + 140px); flex-direction: column; gap: 10px; }
  .monitor { width: 92vw; bottom: 92px; transform: translate(-50%, calc((1 - var(--p, 0)) * 12%)); }
  .hero__ctas { left: var(--gut); right: var(--gut); bottom: 20px; }
  .hero__ctas .btn { flex: 1; }
  .intro__grid, .price__grid, .about__grid, .end__grid { grid-template-columns: 1fr; }
  .portrait { max-width: 220px; }
  .work__grid { grid-template-columns: 1fr; }
  .card, .card--wide { grid-column: auto; }
  .strip { flex-wrap: wrap; }
  .strip li { flex: 1 1 50%; text-align: left; border-bottom: var(--hair); }
  .strip li + li::before { display: none; }
  .tiles { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .end__foot { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .hero { height: auto; }
  .hero__stage { position: relative; }
  .js .hero__title span, .js .hero__meta, .js .monitor, .js .hero__ctas { animation: none; }
  .monitor { --p: 1; }
  .card img, .card .card__site, .monitor__screen > * { transition: none; }
}

/* the rendered monitor (Higgsfield, Nano Banana 2): the live work sits on its measured screen */
.monitor { width: min(64vw, 980px, 140svh); aspect-ratio: 2304 / 1856; bottom: -8svh;
  background: url("../plates/monitor.webp") center / 100% 100% no-repeat;
  -webkit-mask-image: linear-gradient(#000 88%, transparent); mask-image: linear-gradient(#000 88%, transparent); }
.monitor__screen { position: absolute; left: 16.67%; top: 17.35%; width: 67.32%; height: 52.26%; aspect-ratio: auto;
  border: 0; border-radius: 0; box-shadow: none; background: #000; }
.monitor__neck, .monitor__foot { display: none; }
.monitor figcaption { left: calc(16.67% + 14px); top: calc(17.35% + 14px); }
@media (max-width: 900px) { .monitor { width: 118vw; bottom: 60px; } }

/* ===================================================================== v3.1: flow and finish */
/* tighter rhythm: no dead bands between sections */
section:not(.hero) { padding-block: clamp(64px, 8vw, 104px); }
.work { padding-bottom: clamp(64px, 7vw, 96px); }
.ghost { font-size: clamp(88px, 15vw, 220px); }

/* scroll progress: one ember hairline */
.progress { position: fixed; z-index: 60; inset: 0 0 auto 0; height: 2px; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--ember); transform-origin: 0 50%; transform: scaleX(var(--prog, 0)); }

/* the top bar takes the tone of what is under it */
.top.is-solid { background: rgba(22, 22, 22, .82); }
.top[data-tone="light"].is-solid { background: rgba(248, 248, 248, .82); border-bottom: 1px solid rgba(60, 58, 62, .1); }
.top[data-tone="light"] .top__mark { color: var(--graphite); }
.top[data-tone="light"] .pill:not(.pill--solid) { color: var(--graphite); border-color: rgba(60, 58, 62, .2); }
.top[data-tone="light"] .pill:not(.pill--solid):hover { background: rgba(60, 58, 62, .06); }
.top[data-tone="light"] .pill--solid { background: var(--onyx); color: var(--fog); }

/* arrival: things settle in once, weighted; visible without script and under reduced motion */
.js [data-reveal] { opacity: 0; translate: 0 36px; transition: opacity .75s var(--ease-in), translate .9s var(--ease-in); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; translate: 0 0; }
.js .ghost[data-parallax], [data-parallax] { will-change: transform; }

/* work images drift inside their frames */
.card__media { display: block; overflow: hidden; aspect-ratio: 16 / 10; }
.card__px { display: block; height: 116%; margin-top: -8%; }
.card__px img { height: 100%; aspect-ratio: auto; }
.card { transition: transform .5s var(--ease-in); }
.card:hover { transform: translateY(-3px); }

/* ===================================================================== the enquiry */
.end { position: relative; padding: 0 0 24px; background: var(--onyx); overflow: hidden; }
.ticker { overflow: hidden; border-block: 1px solid rgba(255,255,255,.1); background: #1b1b1c; }
.ticker__row { display: flex; align-items: center; gap: clamp(20px, 2.5vw, 40px); width: max-content; padding: clamp(14px, 2vw, 24px) 0;
  font: 400 clamp(40px, 6vw, 92px)/1 var(--display); text-transform: uppercase; color: var(--fog); }
.ticker__row span:nth-child(4n+1) { -webkit-text-stroke: 1px rgba(241,241,241,.55); color: transparent; }
.ticker__row .dot { width: clamp(10px, 1vw, 16px); height: clamp(10px, 1vw, 16px); }
.ticker:hover .ticker__row { animation-play-state: paused; }

.end__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: start; margin-top: clamp(64px, 8vw, 112px); }
.end__info .label { display: inline-flex; align-items: center; gap: 8px; color: var(--ash); }
.end__title { font-size: clamp(64px, 8.6vw, 140px); margin: 18px 0 24px; background: linear-gradient(#f1f1f1, #b9b7bb 60%, #6e6c70); -webkit-background-clip: text; background-clip: text; color: transparent; }
.end__lead { color: var(--fog); max-width: 30ch; }
.end__steps { list-style: none; padding: 0; margin: 32px 0 0; border-top: 1px solid rgba(255,255,255,.12); }
.end__steps li { display: flex; gap: 18px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.12); color: var(--fog); font-size: 17px; }
.end__steps .label { color: var(--ember); }
.end .contact { margin-top: 28px; }

/* the form is a light sheet on the dark ground */
.form { background: var(--paper); color: var(--graphite); padding: clamp(20px, 2.6vw, 36px); grid-template-columns: 1fr 1fr; gap: 20px 14px; }
.form__head { grid-column: 1 / -1; font-size: clamp(24px, 2.2vw, 32px); letter-spacing: -0.03em; padding-bottom: 14px; border-bottom: var(--hair); }
.form label { color: var(--stone); }
.form :is(input, select, textarea) { background: var(--white); color: var(--graphite); border: 1px solid var(--mist); transition: border-color .3s var(--ease-in); }
.form :is(input, textarea)::placeholder { color: var(--ash); }
.form :is(input, select, textarea):focus { border-color: var(--graphite); box-shadow: inset 0 -2px 0 var(--ember); }
.form__need { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.form__need legend { font: 500 12px var(--mono); text-transform: uppercase; color: var(--stone); margin-bottom: 8px; padding: 0; }
.form__need label { display: inline-flex; cursor: pointer; text-transform: none; }
.form__need input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.form__need span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 9999px; border: 1px solid var(--mist); background: var(--white);
  font: 500 15px var(--sans); color: var(--graphite); transition: background-color .3s var(--ease-in), color .3s, border-color .3s; }
.form__need input:checked + span { background: var(--onyx); color: var(--fog); border-color: var(--onyx); }
.form__need input:focus-visible + span { outline: 2px solid var(--ember); outline-offset: 2px; }
.btn--dark { background: var(--onyx); color: var(--fog); gap: 12px; min-height: 56px; justify-content: space-between; padding: 0 24px; }
.btn--dark:hover { background: #000; }
.btn__arrow { transition: transform .3s var(--ease-in); }
.btn--dark:hover .btn__arrow { transform: translateX(6px); }
.form .btn { justify-self: stretch; }

.end__foot { position: relative; z-index: 1; margin-top: clamp(64px, 8vw, 112px); }
.end__mark { font: 400 clamp(90px, 21vw, 330px)/.74 var(--display); text-transform: uppercase; white-space: nowrap; text-align: center; margin: 24px 0 -0.12em;
  background: linear-gradient(#3c3a3e, #1c1c1d 70%); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; }

@media (max-width: 900px) {
  .end__grid { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker__row { animation: none; }
  .js [data-reveal] { opacity: 1; translate: none; transition: none; }
  [data-parallax] { transform: none !important; }
}
.end__mark { font-size: clamp(64px, 14.6vw, 300px); }
.card__tags { top: auto; bottom: 68px; }
@media (max-width: 900px) { .hero__meta { opacity: calc(1 - var(--p, 0) * 1.4); } }
/* the ticker moves with the reader's scroll, never on its own */
.ticker__row { animation: none; }

/* ===================================================================== v3.2: one sheet, no seams */
/* every light section lies on one paper sheet with round corners: it rises over the dark hero and lifts
   off the dark enquiry, so there is no straight colour seam anywhere on the page */
.sheet { position: relative; z-index: 2; background: var(--paper); border-radius: clamp(24px, 3vw, 44px);
  margin: -48px 0 -48px; box-shadow: 0 -30px 60px -30px rgba(0,0,0,.45); }
.sheet > section { background: transparent !important; }
.sheet > section + section { border-top: 0; }
.sheet > section:first-child { padding-top: clamp(96px, 11vw, 144px); }
.sheet > section:last-child { padding-bottom: clamp(96px, 11vw, 144px); }
.end { padding-top: 48px; }
.ghost { color: #ecebed; }
.about { border-top: 0; }
/* the hero dims a little as the sheet covers it */
.hero__stage::after { content: ""; position: absolute; inset: 0; background: #000; opacity: calc(var(--p, 0) * .25); pointer-events: none; z-index: 4; }

/* ---- work carousel: rounded frames you drag, swipe or step through ---- */
.carousel { margin-top: 36px; --slide: min(68vw, 860px); }
.carousel__track { list-style: none; margin: 0; padding: 0 0 8px; display: flex; gap: clamp(12px, 1.6vw, 24px); overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; overscroll-behavior-x: contain; cursor: grab; outline-offset: 6px;
  margin-right: calc(-1 * max(var(--gut), (100vw - var(--max)) / 2)); padding-right: max(var(--gut), (100vw - var(--max)) / 2); }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track.is-drag { cursor: grabbing; scroll-snap-type: none; }
.slide { flex: 0 0 var(--slide); scroll-snap-align: start; }
.slide__media { position: relative; aspect-ratio: 16 / 10; border-radius: clamp(14px, 1.6vw, 22px); overflow: hidden; background: #e9e7e3;
  transform: scale(.94); opacity: .55; transition: transform .7s var(--ease-in), opacity .7s var(--ease-in); }
.slide.is-current .slide__media { transform: none; opacity: 1; }
.slide__media img, .slide__site { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.slide__site { container-type: inline-size; background: #f3ece0; display: block; overflow: hidden; position: relative; }
.slide__meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px 4px 0; }
.slide__name { font-size: clamp(21px, 1.8vw, 28px); letter-spacing: -0.03em; color: var(--graphite); margin-right: auto; }
.carousel__ui { display: flex; align-items: center; gap: 12px; margin-top: 28px; }
.carousel__count { min-width: 64px; color: var(--graphite); }
.carousel__bar { flex: 1; height: 1px; background: var(--mist); position: relative; overflow: hidden; }
.carousel__bar i { position: absolute; inset: 0; background: var(--graphite); transform-origin: 0 50%; transform: scaleX(var(--cp, .2)); transition: transform .5s var(--ease-in); }
.round { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(60,58,62,.25); background: transparent; color: var(--graphite); font: 500 18px var(--sans); cursor: pointer;
  transition: background-color .3s var(--ease-in), color .3s; }
.round:hover { background: var(--onyx); color: var(--fog); }
.round:disabled { opacity: .35; cursor: default; background: transparent; color: var(--graphite); }

/* ---- softer, rounder pieces through the sheet ---- */
.tile__art, .portrait { border-radius: clamp(14px, 1.6vw, 22px); overflow: hidden; }
.strip { border-radius: 9999px; }
.strip li { padding-block: 20px; }

/* ---- the enquiry sheet is rounded too ---- */
.form { border-radius: clamp(18px, 2vw, 28px); }
.form :is(input, select, textarea) { border-radius: 12px; }
.ticker { border-radius: 0; }

@media (max-width: 900px) {
  .carousel { --slide: 84vw; }
  .strip { border-radius: 22px; }
  .sheet { margin: -32px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .slide__media { transition: none; transform: none; opacity: 1; }
}
.form :is(input, textarea)::placeholder { color: var(--stone); }

/* ===================================================================== v3.3: the centred, self-sliding carousel */
html, body { overflow-x: clip; }
.carousel { position: relative; width: 100vw; margin-left: calc(50% - 50vw); margin-top: 40px; overflow: hidden; --slide: min(62vw, 880px); --gap: clamp(14px, 1.8vw, 28px); }
.carousel__track { display: flex; gap: var(--gap); overflow: visible; margin: 0; padding: 0; scroll-snap-type: none; cursor: grab;
  transition: transform .9s var(--ease-in); will-change: transform; touch-action: pan-y; user-select: none; outline: none; }
.carousel__track.is-drag { cursor: grabbing; transition: none; }
.carousel__track:focus-visible .is-current .slide__media { outline: 2px solid var(--ember); outline-offset: 4px; }
.slide { flex: 0 0 var(--slide); }
.slide__media { transform: scale(.9); opacity: .4; filter: saturate(.7); transition: transform .9s var(--ease-in), opacity .9s var(--ease-in), filter .9s; }
.slide.is-current .slide__media { transform: none; opacity: 1; filter: none; box-shadow: 0 30px 60px -36px rgba(22,22,22,.45); }
.slide__meta { opacity: 0; translate: 0 10px; transition: opacity .6s var(--ease-in) .15s, translate .6s var(--ease-in) .15s; }
.slide.is-current .slide__meta { opacity: 1; translate: 0 0; }
.slide img { pointer-events: none; }
/* the edges fade into the sheet */
.carousel::before, .carousel::after { content: ""; position: absolute; top: 0; bottom: 70px; width: max(var(--gut), (100vw - var(--slide)) / 2 - var(--gap)); z-index: 1; pointer-events: none; }
.carousel::before { left: 0; background: linear-gradient(90deg, var(--paper), rgba(248,248,248,0)); }
.carousel::after { right: 0; background: linear-gradient(-90deg, var(--paper), rgba(248,248,248,0)); }
.carousel__ui { width: min(var(--slide), 100% - 2 * var(--gut)); margin: 28px auto 0; }
.carousel__bar i { transition: none; }
.round--sm { font-size: 11px; letter-spacing: -2px; }
@media (max-width: 900px) { .carousel { --slide: 82vw; } .carousel::before, .carousel::after { display: none; } }
@media (prefers-reduced-motion: reduce) { .carousel__track, .slide__media, .slide__meta { transition: none; } }

/* ===================================================================== v3.4: the gliding strip */
.carousel__track { transition: none !important; cursor: pointer; }
.carousel__track.is-drag { cursor: grabbing; }
.slide__media, .slide.is-current .slide__media { transition: none; filter: none; opacity: calc(1 - var(--k, 0) * .55); transform: scale(calc(1 - var(--k, 0) * .1)); box-shadow: none; }
.slide__meta, .slide.is-current .slide__meta { opacity: calc(1 - var(--k, 0) * 1.6); translate: none; transition: none; }
.carousel.is-paused .slide__media { filter: saturate(.85); }
.carousel__bar i { transform: scaleX(var(--cp, 0)); }
.carousel__track:focus-visible { outline: 2px solid var(--ember); outline-offset: 8px; border-radius: 22px; }

/* iOS Safari loses background-clip:text on a parent whose children animate: each line carries its own fill */
.hero__title { background: none; -webkit-text-fill-color: initial; color: var(--fog); }
.hero__title span { background: linear-gradient(#f1f1f1 0%, #dcd6d6 30%, #b9b7bb 60%, #6e6c70 100%); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent; padding-inline: .02em; }
.price__num, .end__title, .end__mark { -webkit-text-fill-color: transparent; }


/* ===================================================================== v4: review fixes (REVIEW-v3.md) */
/* hero: the lead keeps clear of the headline */
.hero__lead { max-width: 13em; text-align: left; }
@media (min-width: 901px) { .hero__meta { opacity: calc(1 - var(--p, 0) * 1.2); } }

/* display type: no clipped tops */
.hero__title span, .price__num, .end__title { line-height: .92; padding-top: .06em; }

/* carousel: only the centred site shows its name and tags */
.slide__meta, .slide.is-current .slide__meta { opacity: clamp(0, calc((.16 - var(--k, 1)) * 12), 1); }
.monitor figcaption { background: rgba(16,16,16,.82); color: var(--fog); }

/* intro: a monogram until Dominic's photo arrives; About folded in */
.intro__grid { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); align-items: start; }
.who { display: grid; gap: 18px; }
.monogram { position: relative; display: grid; place-items: center; width: clamp(88px, 8vw, 120px); aspect-ratio: 1; border-radius: 50%;
  background: var(--onyx); color: var(--fog); font: 400 clamp(44px, 4vw, 60px)/1 var(--display); }
.monogram .dot { position: absolute; right: 8%; bottom: 10%; width: 14px; height: 14px; border: 3px solid var(--paper); }
.monogram--photo { object-fit: cover; }
.intro__more { margin-top: 24px; max-width: 46ch; font-size: clamp(17px, 1.4vw, 21px); line-height: 1.4; letter-spacing: -0.02em; color: var(--stone); }

/* reading comfort */
.h-lg { line-height: 1.08; }
.price__notes .h-sm, .end__lead { line-height: 1.35; }

/* focus: ember on dark, graphite on light (ember on paper is under 3:1) */
.sheet :focus-visible, .form :focus-visible, .top[data-tone="light"] :focus-visible { outline-color: var(--graphite); }
.carousel__track:focus-visible { outline-color: var(--graphite); }
.form :is(input, select, textarea):focus { box-shadow: inset 0 -2px 0 var(--graphite); }

/* tap targets */
.pill { min-height: 44px; }
.form__need span { min-height: 44px; }
.form__need label { position: relative; }
.end__foot nav a { padding-inline: 6px; }

/* form status */
.form__status { min-height: 1.3em; font-size: 15px; color: var(--graphite); }
.form__status.is-error { color: #b3261e; }
.form__status.is-ok { color: #1f6b3a; }
.form [aria-invalid="true"] { border-color: #b3261e; }

/* quieter ghost words */
.ghost { color: #efeef0; }

/* phone menu: one pill opens the links */
.top__menu { display: none; }
@media (max-width: 900px) {
  .top__menu { display: inline-flex; order: 3; }
  .top { flex-wrap: wrap; }
  .top__mark { order: 1; margin-right: auto; }
  .top > .pill--solid { order: 2; }
  .top.is-open .top__nav { display: flex; order: 4; width: 100%; flex-wrap: wrap; gap: 6px; padding-top: 8px; }
  .top.is-open { background: rgba(22, 22, 22, .94); }
  .top[data-tone="light"].is-open { background: rgba(248, 248, 248, .96); }
  .intro__grid { grid-template-columns: 1fr; }
  .who { grid-template-columns: auto 1fr; align-items: center; }
}
.hero__title { font-size: clamp(64px, 16.4vw, 280px); }
@media (max-width: 900px) {
  .hide-sm { display: none; }
  .top > .pill--solid { text-transform: uppercase; }
  .top { column-gap: 8px; }
  .hero__title { font-size: clamp(60px, 19vw, 150px); }
}
button.pill { background: transparent; cursor: pointer; }
.top[data-tone="light"] button.pill { color: var(--graphite); border-color: rgba(60, 58, 62, .2); }
/* v4 tidy: hidden radios sit off the words; display lines get headroom; the header fits at 320 */
.form__need input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
.price__num, .end__title { line-height: 1; padding-block: .04em; }
@media (max-width: 360px) { .top { padding-inline: 12px; column-gap: 6px; } .top .pill { padding: 7px 10px; font-size: 12px; } .top__mark { font-size: 14px; gap: 6px; } }
