/* =========================================================
   Aflyd — architectural edition
   Warm plaster paper, ink type, one oxblood accent.
   Editorial serif for headings, neutral sans for text.
   Motion: slow reveals and line drawings only.
   ========================================================= */

:root {
  --paper: #F2EEE7;
  --stone: #E9E3D9;
  --white: #FBF9F5;
  --ink: #1B1A17;
  --ink-2: #45423C;
  --muted: #6B655B;
  --line: #D3CBBE;
  --line-strong: #B5AC9E;
  --accent: #6E2230;
  --accent-hover: #8A3141;

  --dark: #1A1917;
  --on-dark: #EEE9E1;
  --on-dark-muted: #A39D92;
  --line-dark: #36332E;
  --accent-on-dark: #D9A5AE;

  --serif: "Instrument Serif", "Times New Roman", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.section--dark :focus-visible { outline-color: var(--accent-on-dark); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--ink); color: var(--paper); padding: 10px 14px; }
.skip:focus { left: 8px; }
em { font-style: italic; }

/* ---------- Layout primitives ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(96px, 13vh, 160px) 0; position: relative; }
.section--stone { background: var(--stone); }
.section--dark { background: var(--dark); color: var(--on-dark); }
.section__head { margin-bottom: clamp(40px, 6vw, 80px); }
.section__head--split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px var(--gutter); align-items: end; }
.section__head--split > :first-child { grid-column: 1 / 8; }
.section__head--split > :last-child { grid-column: 8 / 13; margin: 0; }

.label { margin: 0 0 18px; font-size: 12px; line-height: 1.4; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.section--dark .label { color: var(--on-dark-muted); }
.h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5vw, 72px); line-height: 1.02; letter-spacing: -.015em; }
.h2 em, .hero__title em, .flow__title em { color: var(--accent); }
.caption { display: flex; gap: 16px; justify-content: space-between; margin: 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; background: var(--ink); color: var(--paper);
  font-size: 15px; font-weight: 500; letter-spacing: .01em;
  transition: background-color .25s ease, color .25s ease;
}
.btn:hover { background: var(--accent); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.section--dark .btn { background: var(--on-dark); color: var(--dark); }
.section--dark .btn:hover { background: var(--accent-on-dark); }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; padding: 12px 0; border-bottom: 1px solid currentColor; transition: color .25s ease; }
.link-arrow::after { content: "→"; transition: transform .3s var(--ease); }
.link-arrow:hover { color: var(--accent); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Header (original layout: logo left, language + menu right) ---------- */
:root {
  --menu-bg: rgba(26, 25, 23, .78);
  --menu-fg: #EEE9E1;
  --menu-hot: #D9A5AE;
  --menu-glow: rgba(110, 34, 48, .55);
  --ease-io: cubic-bezier(.77, 0, .18, 1);
}
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 70;
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px var(--gutter); mix-blend-mode: difference; color: #fff;
}
.logo { font-size: 22px; font-weight: 600; letter-spacing: -.05em; }
.logo span { opacity: .55; }
.header__right { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); }
.lang { display: flex; align-items: center; gap: 2px; font-size: 12px; font-weight: 500; letter-spacing: .06em; }
.lang span { opacity: .45; }
.lang button { min-width: 36px; min-height: 44px; padding: 0 6px; font: inherit; letter-spacing: inherit; color: inherit; opacity: .5; position: relative; transition: opacity .3s; }
.lang button::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 12px; height: 1px; background: currentColor; transform: scaleX(0); transition: transform .4s var(--ease); }
.lang button:hover { opacity: .85; }
.lang button.is-active { opacity: 1; text-decoration: none; }
.lang button.is-active::after { transform: scaleX(1); }
.menu-btn { min-height: 44px; display: inline-flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.menu-btn__icon { width: 22px; height: 10px; position: relative; display: inline-block; }
.menu-btn__icon i { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .6s var(--ease-io), top .6s var(--ease-io); }
.menu-btn__icon i:first-child { top: 0; } .menu-btn__icon i:last-child { top: 8px; }
.menu-open .menu-btn__icon i:first-child { top: 4px; transform: rotate(45deg); }
.menu-open .menu-btn__icon i:last-child { top: 4px; transform: rotate(-45deg); }
.menu-btn__label { position: relative; overflow: hidden; display: inline-grid; height: 1.3em; line-height: 1.3em; }
.menu-btn__label span { display: block; grid-area: 1 / 1; transition: transform .6s var(--ease-io); }
.menu-btn__close { transform: translateY(110%); }
.menu-open .menu-btn__open { transform: translateY(-110%); }
.menu-open .menu-btn__close { transform: translateY(0); }
.menu-open .header { mix-blend-mode: normal; color: var(--menu-fg); }

/* ---------- Menu (original: circular reveal, frosted glass, glow, letter roll) ---------- */
.menu {
  position: fixed; inset: 0; z-index: 60; overflow: hidden; color: var(--menu-fg);
  background: var(--menu-bg);
  -webkit-backdrop-filter: blur(34px) saturate(1.4); backdrop-filter: blur(34px) saturate(1.4);
  display: flex; flex-direction: column; justify-content: space-between; padding: 96px var(--gutter) 24px;
  clip-path: circle(0% at calc(100% - 48px) 34px);
  transition: clip-path 1.1s var(--ease-io), visibility 0s linear 1.1s; visibility: hidden;
}
.menu-open .menu { clip-path: circle(150% at calc(100% - 48px) 34px); visibility: visible; transition: clip-path 1.1s var(--ease-io), visibility 0s; }
.menu__glow {
  position: absolute; left: 0; top: 0; width: 46vmax; height: 46vmax; margin: -23vmax 0 0 -23vmax; border-radius: 50%;
  background: radial-gradient(circle, var(--menu-glow) 0%, transparent 70%); filter: blur(30px);
  pointer-events: none; z-index: -1; transform: translate(70vw, 40vh);
}
.menu__inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; flex: 1; }
.menu__list { list-style: none; margin: 0; padding: 0; }
.menu__list li { overflow: hidden; border: 0; }
.menu__list a {
  display: flex; align-items: baseline; gap: 18px; padding: 2px 0;
  transform: translateY(110%); transition: transform 1s var(--ease-io), opacity .5s var(--ease), filter .5s var(--ease);
}
.menu-open .menu__list a { transform: none; }
.menu-open .menu__list li:nth-child(1) a { transition-delay: .25s, 0s, 0s; }
.menu-open .menu__list li:nth-child(2) a { transition-delay: .31s, 0s, 0s; }
.menu-open .menu__list li:nth-child(3) a { transition-delay: .37s, 0s, 0s; }
.menu-open .menu__list li:nth-child(4) a { transition-delay: .43s, 0s, 0s; }
.menu-open .menu__list li:nth-child(5) a { transition-delay: .49s, 0s, 0s; }
.menu-open .menu__list li:nth-child(6) a { transition-delay: .55s, 0s, 0s; }
.menu__num { font-size: 11px; font-weight: 500; letter-spacing: .08em; color: var(--menu-hot); transition: transform .6s var(--ease); }
.menu__list:hover a:not(:hover), .menu__list:focus-within a:not(:focus-visible):not(:hover) { opacity: .28; filter: blur(1.5px); }
.menu__list a:hover .menu__num, .menu__list a:focus-visible .menu__num { transform: translateX(10px) rotate(-90deg); }
.roll { position: relative; display: inline-block; clip-path: inset(0 -100vw 0 -1em); padding-bottom: .08em; margin-bottom: -.08em; font-family: var(--serif); font-size: clamp(42px, 6.4vw, 104px); line-height: 1.02; letter-spacing: -.02em; }
.roll__line { display: block; white-space: nowrap; }
.roll__line--b { position: absolute; left: 0; top: 0; font-style: italic; color: var(--menu-hot); }
.roll .ch { display: inline-block; transition: transform .7s var(--ease-io); transition-delay: calc(var(--i) * 22ms); }
.roll__line--b .ch { transform: translateY(105%); }
a:hover .roll__line--a .ch, a:focus-visible .roll__line--a .ch { transform: translateY(-105%); }
a:hover .roll__line--b .ch, a:focus-visible .roll__line--b .ch { transform: none; }
.menu__preview { align-self: stretch; display: flex; flex-direction: column; justify-content: center; gap: 20px; border-left: 1px solid rgba(238, 233, 225, .16); padding-left: 40px; opacity: 0; transform: translateX(30px); transition: opacity .8s var(--ease) .5s, transform 1s var(--ease) .5s; }
.menu-open .menu__preview { opacity: 1; transform: none; }
.menu__big { font-family: var(--serif); font-size: clamp(120px, 18vw, 280px); line-height: .8; color: transparent; -webkit-text-stroke: 1px rgba(238, 233, 225, .7); display: inline-block; transition: opacity .25s ease, transform .5s var(--ease); }
.menu__desc { margin: 0; max-width: 30ch; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; line-height: 1.6; min-height: 4.8em; transition: opacity .25s ease, transform .5s var(--ease); }
.menu__preview.is-swapping .menu__big, .menu__preview.is-swapping .menu__desc { opacity: 0; transform: translateY(-12px); }
.menu__foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: rgba(238, 233, 225, .75); opacity: 0; transition: opacity .6s ease .7s; }
.menu-open .menu__foot { opacity: 1; }

/* ---------- Home (original layout) with drifting sunlight ---------- */
.hero { min-height: 100svh; padding: 64px var(--gutter) 0; display: flex; flex-direction: column; overflow: hidden; position: relative; isolation: isolate; }
.hero > :not(.sunlight) { position: relative; z-index: 1; }
.hero__top { display: grid; grid-template-columns: 13% 1fr auto; gap: 24px; padding-top: 8px; align-items: start; }
.hero__coords { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.hero__statement { margin: 0; max-width: 46ch; font-size: 14px; line-height: 1.55; text-transform: uppercase; letter-spacing: .04em; font-weight: 500; }
.hero__clock { margin: 0; font-size: 12px; font-weight: 500; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.hero__clock small { color: var(--muted); font-size: 10px; margin-left: 4px; }
.hero__services { margin-top: auto; padding-bottom: 28px; }
.label-row { display: flex; align-items: center; gap: 12px; margin-bottom: 40px; font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.label-row .muted { color: var(--muted); }
.ticks { width: 96px; height: 12px; background: repeating-linear-gradient(90deg, var(--muted) 0 1px, transparent 1px 4px); }
.hero__service-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.hero__service-list li { position: relative; padding-top: 18px; }
.hero__service-list li:last-child { text-align: right; }
.hero__service-list i { position: absolute; top: -4px; left: 0; font-style: normal; color: var(--accent); font-size: 14px; }
.wordmark {
  margin: 0; font-weight: 600; color: var(--accent); text-transform: lowercase;
  font-size: 22vw; line-height: .8; letter-spacing: -.065em; white-space: nowrap; margin-left: -.03em; padding-bottom: .02em; overflow: hidden;
}
.wordmark__inner { display: inline-block; }
.wordmark .ch { display: inline-block; will-change: transform; }

/* Sunlight: soft window panes of light on the plaster, slowly travelling and breathing */
.sunlight { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.sunlight__win {
  position: absolute; left: 42%; top: -8%; width: 44vw; height: 70vh;
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, 1fr); gap: 2.4vw;
  transform: rotate(-12deg) skewX(-20deg); filter: blur(22px); opacity: .9;
  animation: sunDrift 46s ease-in-out infinite alternate, sunBreathe 11s ease-in-out infinite alternate;
}
.sunlight__win i { background: #FFFDF7; border-radius: 4px; }
.sunlight__win--2 { left: 6%; top: 34%; width: 26vw; height: 46vh; grid-template-rows: 1fr 1fr; opacity: .6; animation-duration: 60s, 14s; animation-delay: -20s, -5s; }
.sunlight__warm { position: absolute; inset: -20%; background: radial-gradient(40% 35% at 70% 30%, rgba(255, 214, 160, .22), transparent 70%); animation: sunWarm 18s ease-in-out infinite alternate; }
@keyframes sunDrift { from { translate: 0 0; } to { translate: -16vw 12vh; } }
@keyframes sunBreathe { from { opacity: .7; } to { opacity: 1; } }
@keyframes sunWarm { from { translate: 0 0; opacity: .7; } to { translate: -10% 8%; opacity: 1; } }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px var(--gutter); }
.about__title { grid-column: 1 / 6; }
.about__body { grid-column: 7 / 13; }
.about__text { margin: 0 0 24px; font-family: var(--serif); font-size: clamp(24px, 2.2vw, 32px); line-height: 1.3; }
.about__sub { margin: 0; color: var(--ink-2); }
.principles { list-style: none; margin: clamp(72px, 9vw, 120px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px var(--gutter); }
.principles li { border-top: 1px solid var(--ink); padding-top: 24px; }
.num { font-size: 13px; font-weight: 500; color: var(--accent); font-variant-numeric: tabular-nums; }
.principles h3 { margin: 18px 0 10px; font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.15; }
.principles p { margin: 0; font-size: 16px; color: var(--ink-2); }
.about__meta { margin: clamp(56px, 7vw, 88px) 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--gutter); }
.about__meta div { border-top: 1px solid var(--line); padding-top: 18px; }
.about__meta dt { font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.about__meta dd { margin: 0; font-size: 16px; }

/* ---------- Example ads ---------- */
.examples__note { font-size: 16px; color: var(--ink-2); max-width: 40ch; }
.ads { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 32px; }
.adcard { margin: 0; }
.ad { background: var(--white); border: 1px solid var(--line); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.adcard:hover .ad { transform: translateY(-4px); box-shadow: 0 24px 48px -28px rgba(27, 26, 23, .35); }
.ad__head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; font-size: 13px; }
.ad__head small { margin-left: auto; color: var(--muted); font-size: 11px; }
.ad__avatar { width: 24px; height: 24px; border-radius: 50%; background: var(--ink); flex: none; }
.ad__copy { margin: 0; padding: 0 14px 12px; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.ad__cta { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ad__cta b { background: var(--ink); color: var(--paper); padding: 7px 12px; font-weight: 500; white-space: nowrap; }
.adcard .caption { margin-top: 14px; }
.adcard__name { font-size: 15px; color: var(--ink); }
.adcard__type { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }

/* Illustrated ad images, in muted natural tones */
.scene { aspect-ratio: 4 / 3; position: relative; overflow: hidden; }
.scene--arch { background: linear-gradient(#E8DFD3 72%, #CDBFAE 72%); }
.scene--arch::before { content: ""; position: absolute; left: 30%; right: 30%; top: 16%; bottom: 28%; background: linear-gradient(#A8705A, #86543F); border-radius: 999px 999px 0 0; }
.scene--arch::after { content: ""; position: absolute; left: 37%; right: 37%; top: 28%; bottom: 28%; background: linear-gradient(160deg, #F6F0E7, #E3D4C1); border-radius: 999px 999px 0 0; }
.scene--facade { background: linear-gradient(#D9DDDA 0 64%, #A4AB97 64%); }
.scene--facade::before { content: ""; position: absolute; left: 16%; right: 16%; top: 26%; bottom: 36%; background: #F6F3EE; box-shadow: 0 10px 24px rgba(0,0,0,.08); }
.scene--facade::after { content: ""; position: absolute; left: 22%; right: 22%; top: 34%; bottom: 44%; background: repeating-linear-gradient(90deg, #2B2A27 0 22%, transparent 22% 26%); }
.scene--kitchen { background: linear-gradient(#EEE8DF 0 40%, #B38962 40% 72%, #E6E1D9 72% 76%, #7E5A3D 76%); }
.scene--kitchen::before { content: ""; position: absolute; inset: 40% 0 28% 0; background: repeating-linear-gradient(90deg, transparent 0 24%, #6E4D33 24% 24.5%); }
.scene--kitchen::after { content: ""; position: absolute; left: 30%; top: 0; width: 2px; height: 22%; background: #2B2A27; box-shadow: 90px 0 0 #2B2A27; }
.scene--plan { background-color: #F7F4EE; background-image: linear-gradient(rgba(27,26,23,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(27,26,23,.06) 1px, transparent 1px); background-size: 14px 14px; }
.scene--plan::before { content: ""; position: absolute; inset: 16%; border: 4px solid var(--ink); }
.scene--plan::after { content: ""; position: absolute; left: 16%; right: 42%; top: 50%; height: 4px; background: var(--ink); }
.scene--pendant { background: radial-gradient(45% 30% at 50% 62%, rgba(241,215,166,.28), transparent 70%), linear-gradient(#2A2420, #3B312A); }
.scene--pendant::before { content: ""; position: absolute; left: 50%; top: 0; width: 1px; height: 46%; background: #8F8170; box-shadow: -64px 0 0 #8F8170, 64px 0 0 #8F8170; }
.scene--pendant::after { content: ""; position: absolute; left: calc(50% - 13px); top: 44%; width: 26px; height: 26px; border-radius: 50%; background: #F1D7A6; box-shadow: 0 0 26px rgba(241,215,166,.7), -64px 0 0 0 #F1D7A6, 64px 0 0 0 #F1D7A6; }
.scene--stairs { background: linear-gradient(135deg, #E6DFD4, #C7BCAD); }
.scene--stairs::before { content: ""; position: absolute; left: 10%; bottom: 0; width: 80%; height: 72%; background: linear-gradient(to top right, #948A7D 50%, transparent 50.5%); }
.scene--stairs::after { content: ""; position: absolute; left: 10%; bottom: 0; width: 80%; height: 72%; background: repeating-linear-gradient(0deg, transparent 0 16px, rgba(0,0,0,.18) 16px 17px); -webkit-mask: linear-gradient(to top right, #000 50%, transparent 50.5%); mask: linear-gradient(to top right, #000 50%, transparent 50.5%); }

/* ---------- Statement ---------- */
.quote { margin: 0; max-width: 1080px; }
.quote p { margin: 0 0 40px; font-family: var(--serif); font-size: clamp(36px, 4.6vw, 68px); line-height: 1.1; letter-spacing: -.01em; }
.quote em { color: var(--accent-on-dark); }
.quote .caption { border-top-color: var(--line-dark); color: var(--on-dark-muted); max-width: 320px; }

/* ---------- How we work ---------- */
.process__intro { font-size: 18px; color: var(--ink-2); max-width: 44ch; }
.timeline { position: relative; height: 1px; background: var(--line); }
.timeline span { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px var(--gutter); }
.step { position: relative; padding-top: 36px; }
.step::before { content: ""; position: absolute; left: 0; top: -4px; width: 7px; height: 7px; background: var(--paper); border: 1px solid var(--accent); }
.step__n { display: block; font-family: var(--serif); font-size: 64px; line-height: 1; color: var(--ink); }
.step__days { margin: 18px 0 6px; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.step h3 { margin: 0 0 12px; font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.1; }
.step__text { margin: 0 0 20px; font-size: 15.5px; color: var(--ink-2); }
.step__list { list-style: none; margin: 0 0 20px; padding: 0; }
.step__list li { position: relative; padding: 9px 0 9px 18px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.step__list li::before { content: "–"; position: absolute; left: 0; color: var(--accent); }
.step__you { margin: 0; padding-top: 14px; border-top: 1px solid var(--ink); font-size: 14px; line-height: 1.5; }
.step__you b { display: block; margin-bottom: 4px; font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }

/* ---------- Studio Flow ---------- */
.flow__intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px var(--gutter); align-items: start; }
.flow__intro > :first-child { grid-column: 1 / 6; }
.flow__intro > :last-child { grid-column: 7 / 13; }
.flow__title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(64px, 9vw, 140px); line-height: .9; letter-spacing: -.025em; }
.flow__lead { margin: 0 0 24px; font-family: var(--serif); font-size: clamp(26px, 2.4vw, 34px); line-height: 1.25; }
.flow__body p { margin: 0 0 16px; color: var(--ink-2); }

.pillars { margin-top: clamp(72px, 9vw, 120px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.pillar { padding: 28px 28px 0 0; }
.pillar + .pillar { padding-left: 28px; border-left: 1px solid var(--line-strong); }
.pillar__tag { margin: 0 0 18px; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.pillar__n { display: block; font-family: var(--serif); font-size: clamp(64px, 7vw, 96px); line-height: .95; }
.pillar h3 { margin: 16px 0 8px; font-size: 16px; font-weight: 600; }
.pillar p { margin: 0; font-size: 15px; color: var(--ink-2); max-width: 34ch; }

.flow__detail { margin-top: clamp(80px, 10vw, 128px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 56px var(--gutter); align-items: start; }
.calc { grid-column: 1 / 7; background: var(--white); border: 1px solid var(--line); padding: clamp(28px, 3vw, 44px); }
.terms { grid-column: 8 / 13; display: grid; gap: 44px; }
.calc__head .label { color: var(--accent); }
.calc__head h3 { margin: 0 0 32px; font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 2.6vw, 36px); line-height: 1.1; }
.calc__label { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; font-size: 14px; color: var(--ink-2); }
.calc__label output { font-family: var(--serif); font-size: 72px; line-height: .8; color: var(--accent); font-variant-numeric: tabular-nums; }
.calc__range { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; margin: 16px 0 0; background: transparent; cursor: pointer; --p: 70%; }
.calc__range::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(90deg, var(--ink) var(--p), var(--line) var(--p)); }
.calc__range::-moz-range-track { height: 2px; background: var(--line); }
.calc__range::-moz-range-progress { height: 2px; background: var(--ink); }
.calc__range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -10px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); transition: transform .2s ease; }
.calc__range:active::-webkit-slider-thumb { transform: scale(1.15); }
.calc__range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); }
.calc__ticks { display: flex; justify-content: space-between; margin: 0 2px 24px; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.calc__rows { margin: 0; }
.calc__rows div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; }
.calc__rows dd { margin: 0; font-weight: 500; font-variant-numeric: tabular-nums; }
.calc__refund { border-top-color: var(--ink) !important; }
.calc__refund dd { font-family: var(--serif); font-weight: 400; font-size: 44px; line-height: 1; color: var(--accent); }
.calc__formula { margin: 12px 0 0; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }

.terms__qualified { margin: 0; font-size: 16px; color: var(--ink-2); }
.terms__qualified .label { display: block; color: var(--accent); }
.founding { border-top: 1px solid var(--ink); padding-top: 22px; }
.founding .label { color: var(--accent); }
.founding__big { margin: 0 0 16px; font-family: var(--serif); font-size: clamp(40px, 4vw, 56px); line-height: 1; }
.founding dl { margin: 0; }
.founding dl div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 15px; }
.founding dd { margin: 0; font-weight: 500; white-space: nowrap; }
.terms__list { list-style: none; margin: 0; padding: 0; counter-reset: term; }
.terms__list li { counter-increment: term; position: relative; padding: 12px 0 12px 40px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.terms__list li::before { content: counter(term, decimal-leading-zero); position: absolute; left: 0; top: 14px; font-size: 12px; font-weight: 500; color: var(--accent); font-variant-numeric: tabular-nums; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.cta-row__mail { font-size: 14px; color: var(--muted); border-bottom: 1px solid var(--line-strong); padding: 6px 0; transition: color .2s, border-color .2s; }
.cta-row__mail:hover { color: var(--ink); border-color: var(--ink); }

/* ---------- Fit ---------- */
.fit__title { max-width: 16ch; }
.fit__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px var(--gutter); }
.fit__col h3 { margin: 0 0 8px; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.fit__col--yes h3 { color: var(--accent); }
.fit__col ul { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.fit__col li { position: relative; padding: 18px 0 18px 36px; border-top: 1px solid var(--line); font-family: var(--serif); font-size: clamp(22px, 2vw, 27px); line-height: 1.25; }
.fit__col--yes li::before { content: ""; position: absolute; left: 2px; top: 27px; width: 14px; height: 7px; border: solid var(--accent); border-width: 0 0 1.5px 1.5px; transform: rotate(-45deg); }
.fit__col--no li { color: var(--muted); }
.fit__col--no li::before { content: ""; position: absolute; left: 2px; top: 31px; width: 16px; height: 1.5px; background: var(--line-strong); }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px var(--gutter); }
.faq-grid .section__head { grid-column: 1 / 5; }
.faq { grid-column: 5 / 13; border-bottom: 1px solid var(--line-strong); }
.faq details { border-top: 1px solid var(--line-strong); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 44px; padding: 22px 0; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq__q { font-family: var(--serif); font-size: clamp(22px, 2vw, 28px); line-height: 1.25; transition: color .2s; }
.faq summary:hover .faq__q { color: var(--accent); }
.faq__icon { position: relative; width: 14px; height: 14px; flex: none; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -.75px; background: var(--ink); transition: transform .35s var(--ease); }
.faq__icon::after { transform: rotate(90deg); }
.faq details[open] .faq__icon::after { transform: rotate(0deg); }
.faq__a p { margin: 0; padding: 0 0 26px; max-width: 62ch; color: var(--ink-2); }
.faq details[open] .faq__a { animation: faqIn .45s var(--ease); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- Footer ---------- */
.footer { padding-bottom: 40px; }
.footer__cta { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px var(--gutter); align-items: end; }
.footer__big { grid-column: 1 / 9; font-family: var(--serif); font-size: clamp(52px, 7.5vw, 120px); line-height: .98; letter-spacing: -.02em; transition: color .3s ease; }
.footer__big em { color: var(--accent-on-dark); }
.footer__side { grid-column: 9 / 13; }
.footer__lede { margin: 0 0 12px; font-size: 18px; }
.footer__note { margin: 0; font-size: 15px; color: var(--on-dark-muted); }
.footer__cols { margin-top: clamp(80px, 10vw, 128px); padding-top: 28px; border-top: 1px solid var(--line-dark); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px var(--gutter); }
.footer__cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 15px; color: var(--on-dark-muted); }
.footer__cols a { display: inline-block; padding: 6px 0; transition: color .2s; }
.footer__cols a:hover { color: var(--on-dark); }
.footer__base { margin-top: clamp(72px, 9vw, 112px); display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.footer__mark { font-size: clamp(88px, 17vw, 260px); font-weight: 600; letter-spacing: -.06em; line-height: .78; color: #D9CCB8; }
.footer__copy { margin: 0; font-size: 13px; color: var(--on-dark-muted); }

/* ---------- Axonometric drawing ---------- */
.axo .face { stroke: var(--ink); stroke-width: 1; stroke-linejoin: round; }
.axo .detail { fill: none; stroke: var(--ink); stroke-width: .8; }
.axo .guide { fill: none; stroke: var(--line-strong); stroke-width: .7; stroke-dasharray: 3 4; }
.axo .dim { fill: none; stroke: var(--muted); stroke-width: .7; }
.axo text { font-family: var(--sans); font-size: 10px; fill: var(--muted); letter-spacing: .08em; }
.js .axo .face, .js .axo .detail, .js .axo .dim { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease) var(--d, 0s), fill-opacity .9s ease calc(var(--d, 0s) + 1.1s); }
.js .axo .face { fill-opacity: 0; }
.js .axo text, .js .axo .guide { opacity: 0; transition: opacity 1s ease 2.4s; }
.axo.is-drawn .face, .axo.is-drawn .detail, .axo.is-drawn .dim { stroke-dashoffset: 0; }
.axo.is-drawn .face { fill-opacity: 1; }
.axo.is-drawn text, .axo.is-drawn .guide { opacity: 1; }

/* ---------- Reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .9s ease var(--d, 0s), transform 1.1s var(--ease) var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; align-items: center; }
  .hero__copy, .hero__figure { grid-column: 1 / -1; }
  .hero__figure { max-width: 560px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts div:nth-child(n+3) { margin-top: 24px; border-top: 1px solid var(--line); }
  .about__title, .about__body { grid-column: 1 / -1; }
  .steps { grid-template-columns: 1fr 1fr; }
  .flow__intro > :first-child, .flow__intro > :last-child { grid-column: 1 / -1; }
  .calc, .terms { grid-column: 1 / -1; }
  .faq-grid .section__head, .faq { grid-column: 1 / -1; }
  .footer__big, .footer__side { grid-column: 1 / -1; }
  .section__head--split > :first-child, .section__head--split > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .principles, .pillars, .fit__cols, .about__meta { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding: 24px 0 28px; border-left: 0; }
  .pillar + .pillar { border-top: 1px solid var(--line-strong); }
  .ads { grid-template-columns: 1fr 1fr; gap: 40px 16px; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  :root { --header-h: 64px; }
  .header__cta { display: none; }
  .header__right { gap: 12px; }
  .hero__lead { font-size: 17px; }
  .ads { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .timeline { display: none; }
  .step { padding-top: 28px; border-top: 1px solid var(--line); }
  .step::before { display: none; }
  .facts dd { font-size: 13px; }
  .calc__label output { font-size: 56px; }
}
/* ---------- Sections blend into one another ----------
   With JavaScript on, sections are transparent and the page colour eases from
   one section's colour to the next as you scroll (main.js). */
body { transition: background-color .2s linear; }
.js .section--stone, .js .section--dark { background: transparent; }

/* ---------- Headings rise in word by word ---------- */
.js [data-split][data-reveal] { opacity: 1; transform: none; }
.sw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.sw > span { display: inline-block; }
.js [data-split] .sw > span { transform: translateY(108%); transition: transform 1.1s var(--ease) calc(var(--d, 0s) + var(--wi, 0) * 55ms); }
.js [data-split].is-in .sw > span { transform: none; }

/* ---------- Hairlines draw themselves in ---------- */
.js .principles li, .js .about__meta div, .js .pillar, .js .fit__col ul, .js .step__you { border-top-color: transparent; position: relative; }
.js .principles li::after, .js .about__meta div::after, .js .pillar::after, .js .fit__col ul::after, .js .step__you::after {
  content: ""; position: absolute; left: 0; top: -1px; width: 100%; height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease) calc(var(--d, 0s) + .15s);
}
.js .about__meta div::after { background: var(--line-strong); }
.js .pillar::after { background: var(--ink); }
.js .principles li.is-in::after, .js .about__meta.is-in div::after, .js .pillar.is-in::after,
.js .fit__col.is-in ul::after, .js .step.is-in .step__you::after { transform: none; }
.js .fit__col li { opacity: 0; transform: translateX(-10px); transition: opacity .7s ease, transform .9s var(--ease); }
.js .fit__col.is-in li { opacity: 1; transform: none; }
.js .fit__col.is-in li:nth-child(2) { transition-delay: .08s; }
.js .fit__col.is-in li:nth-child(3) { transition-delay: .16s; }
.js .fit__col.is-in li:nth-child(4) { transition-delay: .24s; }

/* Ad illustrations ease in slightly larger, like a camera settling */
.js .adcard .scene { transform: scale(1.06); transition: transform 1.6s var(--ease) calc(var(--d, 0s) + .1s); }
.js .adcard.is-in .scene { transform: none; }

/* Quote drifts gently with the scroll */
[data-parallax] { will-change: transform; }

@media (max-width: 900px) {
  .hero__top { grid-template-columns: 1fr auto; }
  .hero__coords { display: none; }
  .hero__service-list { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .hero__service-list li:last-child { text-align: left; }
  .menu__inner { grid-template-columns: 1fr; }
  .menu__preview { display: none; }
  .sunlight__win { left: 20%; width: 80vw; height: 50vh; }
  .sunlight__win--2 { display: none; }
}
@media (max-width: 600px) {
  .hero__statement { font-size: 12.5px; }
  .header { padding: 10px var(--gutter); }
  .lang { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .js [data-split] .sw > span, .js .fit__col li, .js .adcard .scene { transform: none; opacity: 1; }
  .js .principles li::after, .js .about__meta div::after, .js .pillar::after, .js .fit__col ul::after, .js .step__you::after { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

.manifesto { padding: clamp(140px, 24vh, 240px) 0; }

/* ---------- Home: rotating line ---------- */
.hero__rotator {
  margin: clamp(40px, 9vh, 110px) 0 0 calc(13% + 24px); font-family: var(--serif); font-size: clamp(30px, 3.6vw, 58px);
  line-height: 1.1; letter-spacing: -.01em; color: var(--ink); display: flex; flex-wrap: wrap; column-gap: .28em;
}
.rot__lead { color: var(--muted); }
.rot { position: relative; display: inline-grid; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.rot__w { grid-area: 1 / 1; font-style: italic; color: var(--accent); white-space: nowrap; transition: transform 1s var(--ease-io), opacity 1s ease; }
.rot__w.is-out { transform: translateY(-105%); opacity: 0; }
.rot__w.is-pre { transform: translateY(105%); opacity: 0; transition: none; }

/* ---------- Cursor: burgundy circle that grows over links ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor {
    display: block; position: fixed; left: 0; top: 0; z-index: 300; pointer-events: none;
    width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: var(--accent);
    opacity: 0; transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background-color .35s ease, opacity .3s ease;
  }
  .cursor.is-on { opacity: .9; }
  .cursor.is-hover { width: 78px; height: 78px; margin: -39px 0 0 -39px; background: rgba(110, 34, 48, .28); }
  .cursor.on-dark { background: var(--accent-on-dark); }
  .cursor.on-dark.is-hover { background: rgba(217, 165, 174, .3); }
}

@media (max-width: 900px) {
  .hero__rotator { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .cursor { display: none !important; }
}

/* ---------- Home: silk light canvas ---------- */
.hero > .silk, .has-silk > .silk { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; pointer-events: none; }

/* ---------- Contact: Book a 15-minute call ---------- */
.footer__big {
  position: relative; display: inline-block; justify-self: start; isolation: isolate;
  transform: translate(var(--mx, 0px), var(--my, 0px)); transition: color .4s ease, transform .6s cubic-bezier(.2, .9, .3, 1.2);
}
.footer__big::after {
  content: ""; position: absolute; left: 0; bottom: -.08em; width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .8s var(--ease-io);
}
.footer__big:hover::after, .footer__big:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.book__arrow {
  display: inline-grid; place-items: center; width: .62em; height: .62em; margin-left: .18em; vertical-align: .05em;
  border-radius: 50%; background: var(--accent-on-dark); color: var(--dark); overflow: hidden;
  transform: scale(0) rotate(-45deg); transition: transform .7s cubic-bezier(.2, .9, .3, 1.3);
}
.book__arrow svg { width: 45%; height: 45%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease-io); }
.footer__big:hover .book__arrow, .footer__big:focus-visible .book__arrow { transform: none; }
.footer__big:hover .book__arrow svg { animation: bookNudge 1.6s var(--ease-io) .4s infinite; }
@keyframes bookNudge { 0%, 60%, 100% { transform: none; } 30% { transform: translate(2px, -2px); } }
.footer__big.is-pressed { animation: bookPress .65s var(--ease-io); }
.footer__big.is-pressed .book__arrow svg { animation: bookFly .65s var(--ease-io) forwards; }
@keyframes bookPress { 0% { scale: 1; } 25% { scale: .96; } 100% { scale: 1; } }
@keyframes bookFly { 0% { transform: none; } 45% { transform: translate(140%, -140%); } 46% { transform: translate(-140%, 140%); } 100% { transform: none; } }
.book__burst {
  position: absolute; z-index: -1; width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%; pointer-events: none;
  border: 1px solid var(--accent-on-dark); background: radial-gradient(circle, rgba(217, 165, 174, .35), transparent 70%);
  animation: bookBurst 1.1s cubic-bezier(.2, .8, .2, 1) forwards;
}
@keyframes bookBurst { from { transform: scale(0); opacity: 1; } to { transform: scale(22); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .footer__big, .book__arrow, .book__arrow svg { transition: none; animation: none !important; }
}

/* ---------- Silk sections: fade into the neighbouring colours ---------- */
.has-silk { position: relative; isolation: isolate; }
.has-silk > .silk { z-index: -1; -webkit-mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent); mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent); }
.footer.has-silk > .silk { -webkit-mask-image: linear-gradient(transparent, #000 25%); mask-image: linear-gradient(transparent, #000 25%); }

/* ---------- Book a call: letter roll (same wave as the menu) ---------- */
.footer__big .rc { position: relative; display: inline-block; }
.footer__big .rc__a, .footer__big .rc__b { display: inline-block; transition: transform .7s var(--ease-io); transition-delay: calc(var(--ci) * 16ms); }
.footer__big .rc__b { position: absolute; left: 0; top: 0; transform: translateY(125%); font-style: italic; color: var(--accent-on-dark); }
.footer__big .rc__b--up { font-style: normal; color: #fff; }
.footer__big:hover .rc__a, .footer__big:focus-visible .rc__a { transform: translateY(-125%); }
.footer__big:hover .rc__b, .footer__big:focus-visible .rc__b { transform: none; }
.footer__big.is-pressed .rc__a { transform: none; transition-duration: .55s; transition-delay: calc(var(--ci) * 8ms); }
.footer__big.is-pressed .rc__b { transform: translateY(-125%); transition-duration: .55s; transition-delay: calc(var(--ci) * 8ms); }
@media (prefers-reduced-motion: reduce) {
  .footer__big .rc__a, .footer__big .rc__b { transition: none; }
}

/* Silk stays invisible until its first frame is drawn (no black flash) */
.silk { opacity: 0; transition: opacity 1.2s ease; }
.silk.is-live { opacity: 1; }

/* ---------- Text selection: dusty rose on light sections, burgundy on dark ---------- */
::selection { background: #E9C4CB; color: #1B1A17; text-shadow: none; }
.wordmark ::selection, .wordmark::selection, em::selection, .rot__w::selection { color: #6E2230; }
.section--dark ::selection, .menu ::selection, .footer ::selection { background: #8A2A3B; color: #FBF5F2; }

/* ---------- Contact: quick lead form ---------- */
.lead {
  margin-top: clamp(64px, 8vw, 104px);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px var(--gutter); align-items: end;
}
.lead__intro { grid-column: 1 / 5; }
.lead__title { margin: 0 0 10px; font-family: var(--serif); font-size: clamp(26px, 2.4vw, 36px); line-height: 1.1; }
.lead__title em { color: var(--accent-on-dark); }
.lead__text { margin: 0; font-size: 15px; color: var(--on-dark-muted); max-width: 36ch; }
.lead__form { grid-column: 5 / 13; position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 28px 24px; align-items: end; }
.field { position: relative; }
.field input {
  display: block; width: 100%; min-height: 56px; padding: 24px 0 8px; border: 0; border-radius: 0;
  border-bottom: 1px solid rgba(238, 233, 225, .28); background: transparent; color: var(--on-dark);
  font: 400 17px/1.3 var(--sans); outline: none; transition: border-color .3s ease;
}
.field input:-webkit-autofill { -webkit-text-fill-color: var(--on-dark); -webkit-box-shadow: 0 0 0 100px #1F1D1B inset; caret-color: var(--on-dark); }
.field label {
  position: absolute; left: 0; top: 26px; font-size: 15px; color: var(--on-dark-muted); pointer-events: none;
  transform-origin: left top; transition: transform .45s var(--ease), color .3s ease;
}
.field input:focus + label, .field input:not(:placeholder-shown) + label { transform: translateY(-22px) scale(.8); color: var(--accent-on-dark); }
.field::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent-on-dark);
  transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-io);
}
.field:focus-within::after { transform: none; }
.field__err { position: absolute; left: 0; top: calc(100% + 6px); font-size: 12px; line-height: 1.3; color: #F0A3AE; opacity: 0; transform: translateY(-4px); transition: opacity .3s ease, transform .3s ease; }
.field.is-error input { border-bottom-color: #E98A9A; }
.field.is-error .field__err { opacity: 1; transform: none; }
.field.is-error { animation: fieldShake .45s var(--ease); }
@keyframes fieldShake { 20% { translate: -5px 0; } 45% { translate: 4px 0; } 70% { translate: -2px 0; } }
.lead__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.lead__send {
  min-height: 52px; padding: 0 22px 0 26px; border-radius: 999px; display: inline-flex; align-items: center; gap: 12px;
  background: var(--accent-on-dark); color: var(--dark); font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  transition: background-color .35s ease, transform .35s var(--ease), opacity .3s ease;
}
.lead__send svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease-io); }
.lead__send:hover { background: #fff; }
.lead__send:hover svg { transform: translateX(4px); }
.lead__send:active { transform: scale(.96); }
.lead__send:focus-visible { outline: 2px solid var(--accent-on-dark); outline-offset: 4px; }
.lead__form.is-sending .lead__send { opacity: .6; pointer-events: none; }
.lead__form.is-sending .lead__send svg { animation: sendPulse 1s ease-in-out infinite; }
@keyframes sendPulse { 50% { transform: translateX(6px); opacity: .4; } }
.lead__status { grid-column: 1 / -1; margin: 0; min-height: 1.4em; font-size: 15px; color: var(--on-dark-muted); }
.lead__status.is-error { color: #F0A3AE; }
/* Sent: fields fold away, a thank-you rises in */
.lead__form.is-sent .field, .lead__form.is-sent .lead__send { opacity: 0; transform: translateY(-10px); pointer-events: none; transition: opacity .5s ease, transform .6s var(--ease); }
.lead__form.is-sent .field:nth-child(2) { transition-delay: .06s; } .lead__form.is-sent .field:nth-child(3) { transition-delay: .12s; }
.lead__form.is-sent .lead__send { transition-delay: .18s; }
.lead__form.is-sent .lead__status {
  position: absolute; left: 0; bottom: 0; font-family: var(--serif); font-size: clamp(24px, 2.4vw, 34px); line-height: 1.15; color: var(--on-dark);
  animation: sentIn .9s var(--ease) .35s both;
}
@keyframes sentIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) {
  .lead__intro, .lead__form { grid-column: 1 / -1; }
  .lead__form { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .lead__send { justify-content: center; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .field.is-error { animation: none; }
  .lead__form.is-sent .lead__status { animation: none; }
}

/* No divider lines around the lead form */
.footer__cols { border-top: 0; }

/* Example ads: real photos over the drawn scenes */
.scene > img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; display: block; }

/* Example ads: gentle hover motion — photo eases in and drifts with the cursor */
.scene > img { transform: scale(1.02) translate(var(--px, 0px), var(--py, 0px)); transition: transform 1.2s var(--ease), filter .8s ease; filter: saturate(.92); }
.adcard:hover .scene > img { transform: scale(1.08) translate(var(--px, 0px), var(--py, 0px)); filter: saturate(1.05); }
.adcard.is-tracking .scene > img { transition: transform .5s var(--ease), filter .8s ease; }
.ad__cta b { transition: background-color .35s ease; }
.adcard:hover .ad__cta b { background: var(--accent); }
@media (prefers-reduced-motion: reduce) {
  .scene > img, .adcard:hover .scene > img { transform: none; transition: none; }
}

/* ---------- Example ads: polish ---------- */
.ads { gap: 64px 32px; }
.ad { border-radius: 10px; overflow: hidden; box-shadow: 0 1px 0 rgba(27, 26, 23, .04), 0 18px 40px -30px rgba(27, 26, 23, .35); }
.adcard:hover .ad { transform: translateY(-6px); box-shadow: 0 1px 0 rgba(27, 26, 23, .04), 0 30px 60px -30px rgba(27, 26, 23, .45); }
.ad__head { padding: 14px 16px 10px; }
.ad__head b { font-weight: 600; letter-spacing: -.01em; }
.ad__avatar {
  width: 28px; height: 28px; display: grid; place-items: center; background: var(--ink); color: var(--paper);
  font: italic 15px/1 var(--serif); box-shadow: 0 0 0 2px var(--white), 0 0 0 3px var(--accent);
}
.ad__copy { padding: 0 16px 14px; font-size: 14px; color: var(--ink); }
.scene { aspect-ratio: 1 / 1; }
.ad__cta { padding: 12px 16px; border-top: 1px solid var(--line); }
.ad__cta b { border-radius: 6px; padding: 8px 14px; font-weight: 600; letter-spacing: .04em; }
.adcard .caption { flex-wrap: wrap; row-gap: 6px; margin-top: 18px; }
.adcard__aud { flex-basis: 100%; font-size: 13px; color: var(--ink-2); }
.adcard__aud b { font-weight: 500; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-right: 8px; }
.examples__cta {
  margin-top: clamp(56px, 7vw, 88px); padding-top: 28px; display: flex; flex-wrap: wrap; align-items: baseline;
  justify-content: space-between; gap: 16px 32px;
}
.examples__cta p { margin: 0; font-family: var(--serif); font-size: clamp(24px, 2.4vw, 34px); line-height: 1.15; max-width: 26ch; }

/* =========================================================
   Final polish pass
   ========================================================= */

/* Typography: no lonely last words in headings, nicer paragraph rag */
.h2, h3, .flow__lead, .quote p, .faq__q, .lead__title, .examples__cta p, .footer__big, .about__text { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
html { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }

/* How we work: "Your part" lines up across all four steps */
.step { display: flex; flex-direction: column; }
.step__you { margin-top: auto; }
.step::before { transition: background-color .5s ease, transform .6s var(--ease); }
.step.is-in::before { background: var(--accent); transform: rotate(45deg); }

/* Buttons: a small arrow that leans forward on hover */
.btn::after { content: "→"; display: inline-block; margin-left: 10px; transition: transform .4s var(--ease); }
.btn:hover::after { transform: translateX(4px); }
.btn:active { transform: scale(.98); }

/* Links: underline draws in instead of snapping */
.footer__cols a, .menu__foot a, .to-top {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .45s var(--ease), color .2s ease;
}
.footer__cols a:hover, .menu__foot a:hover, .to-top:hover { background-size: 100% 1px; }

/* FAQ: question nudges in on hover, stays burgundy while open */
.faq__q { transition: color .25s ease, transform .45s var(--ease); }
.faq summary:hover .faq__q { transform: translateX(6px); }
.faq details[open] .faq__q { color: var(--accent); }
.faq__icon::before, .faq__icon::after { transition: transform .35s var(--ease), background-color .25s ease; }
.faq summary:hover .faq__icon::before, .faq summary:hover .faq__icon::after,
.faq details[open] .faq__icon::before, .faq details[open] .faq__icon::after { background: var(--accent); }

/* Fit check: items brighten slightly on hover */
.fit__col li { transition: color .25s ease, transform .4s var(--ease); }
.fit__col li:hover { color: var(--ink); transform: translateX(4px); }

/* Ad photos fade in once loaded, no hard pop */
.scene > img { opacity: 0; }
.scene > img.is-loaded { opacity: 1; transition: opacity .8s ease, transform 1.2s var(--ease), filter .8s ease; }
.adcard.is-tracking .scene > img.is-loaded { transition: opacity .8s ease, transform .5s var(--ease), filter .8s ease; }

/* Footer end: back to top + copyright */
.footer__end { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.to-top { font-size: 13px; color: var(--on-dark-muted); padding: 4px 0; }
.to-top:hover { color: var(--on-dark); }
.to-top span { display: inline-block; transition: transform .4s var(--ease); }
.to-top:hover span { transform: translateY(-3px); }
@media (max-width: 600px) { .footer__end { align-items: flex-start; } }

@media (prefers-reduced-motion: reduce) {
  .scene > img { opacity: 1; }
  .faq summary:hover .faq__q, .fit__col li:hover { transform: none; }
}

/* Footer "aflyd": letters lift toward the cursor, with a wave when it arrives */
.footer__mark { display: inline-block; cursor: default; padding-top: .12em; margin-top: -.12em; -webkit-user-select: none; user-select: none; }
.footer__mark .ch { display: inline-block; transform-origin: 50% 100%; will-change: transform; }
.footer__mark .ch__in { display: inline-block; transform-origin: 50% 100%; transition: color .4s ease; }
.footer__mark .ch.is-up .ch__in { color: #F3EADC; }
.footer__mark.is-wave .ch__in { animation: markWave 1.05s cubic-bezier(.33, .8, .35, 1) both; animation-delay: calc(var(--i) * 65ms); }
@keyframes markWave {
  0% { transform: none; }
  28% { transform: translateY(-20%) rotate(-4deg) scaleY(1.04); }
  55% { transform: translateY(5%) rotate(1.5deg) scaleY(.97); }
  76% { transform: translateY(-4%) rotate(-.5deg); }
  100% { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .footer__mark.is-wave .ch__in { animation: none; }
}

/* Lead form: privacy note */
.lead__legal { margin: 14px 0 0; font-size: 12px; color: var(--on-dark-muted); }
.lead__legal a { color: var(--on-dark); border-bottom: 1px solid rgba(238, 233, 225, .35); transition: border-color .2s; }
.lead__legal a:hover { border-color: var(--on-dark); }

/* ---------- Cookie banner ---------- */
.consent {
  position: fixed; left: var(--gutter); bottom: 20px; z-index: 250; width: min(420px, calc(100vw - 2 * var(--gutter)));
  padding: 22px 22px 18px; background: rgba(26, 25, 23, .94); color: var(--on-dark); border-radius: 12px;
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .5);
  opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .6s var(--ease);
}
.consent.is-open { opacity: 1; transform: none; }
.consent__title { margin: 0 0 6px; font-family: var(--serif); font-size: 24px; line-height: 1.1; }
.consent__text { margin: 0 0 16px; font-size: 14px; line-height: 1.55; color: var(--on-dark-muted); }
.consent__text a { color: var(--on-dark); border-bottom: 1px solid rgba(238, 233, 225, .35); }
.consent__text a:hover { border-color: var(--on-dark); }
.consent__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.consent__btn {
  flex: 1 1 auto; min-height: 44px; padding: 0 18px; border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: .02em;
  background: var(--accent-on-dark); color: var(--dark); transition: background-color .3s ease, color .3s ease, transform .3s var(--ease);
}
.consent__btn:hover { background: #fff; }
.consent__btn:active { transform: scale(.97); }
.consent__btn--ghost { background: transparent; color: var(--on-dark); box-shadow: inset 0 0 0 1px rgba(238, 233, 225, .35); }
.consent__btn--ghost:hover { background: rgba(238, 233, 225, .08); color: var(--on-dark); }
.consent :focus-visible { outline: 2px solid var(--accent-on-dark); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .consent { transition: none; } }
