/* ==========================================================================
   Vantt Studio – creative agency / design studio one-page template
   Plain CSS, no framework. Sections: tokens, base, components, sections,
   other pages, then 1024px and 767px breakpoints and reduced motion.
   ========================================================================== */

/* ---------- Design tokens: change these to re-theme the whole page ---------- */
:root {
  /* Colours */
  --ink: #0D0D10;          /* page background */
  --ink-2: #16161B;        /* panels and form card */
  --ink-3: #1F1F26;        /* raised elements */
  --line: #2B2B33;         /* hairlines on ink */
  --line-2: #3A3A44;       /* form underlines, chip borders */
  --bone: #EEE9DF;         /* headings and strong text on ink */
  --muted: #B4AFA6;        /* body text on ink */
  --faint: #77736C;        /* placeholders, small print */
  --cream: #EFE8DA;        /* manifesto background */
  --cream-line: #D9D0BE;   /* hairlines on cream */
  --cream-text: #3A3833;   /* body text on cream */
  --cream-head: #17161A;   /* headings on cream */
  --accent: #3D2BFF;       /* the one accent: ultramarine (buttons, marquee, process) */
  --accent-deep: #2A1BD9;  /* button hover */
  --accent-light: #9C93FF; /* accent text on ink (readable contrast) */
  --white: #FFFFFF;

  /* Type */
  --font-head: "Unbounded", "Arial Black", sans-serif; /* wide display face */
  --font-body: "Geist", "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --container: 1400px;
  --gutter: 40px;
  --section: 140px;        /* vertical padding of sections */
  --header-h: 80px;
  --radius: 8px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--muted);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; color: var(--bone); font-family: var(--font-head); font-weight: 600; line-height: 1.05; letter-spacing: -.03em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
::selection { background: var(--accent); color: var(--white); }
:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 3px; }
.ac { color: var(--accent-light); }
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { padding: var(--section) 0; }
.ico { flex-shrink: 0; transition: transform .35s var(--ease); }

/* ---------- Components ---------- */

/* Section label: "(02) Manifesto" */
.label { display: flex; gap: .7em; margin: 0 0 28px; font-size: 13px; font-weight: 500; line-height: 1.2; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.label__num { color: var(--accent-light); }
.lead { max-width: 46ch; font-size: 19px; line-height: 1.55; color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: 14px 22px; border: 1px solid transparent; border-radius: 999px;
  font: 600 15px/1.2 var(--font-body); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.btn--accent { background: var(--accent); color: var(--white); }
.btn--accent:hover { background: var(--accent-deep); }
.btn--line { border-color: rgba(238, 233, 223, .3); color: var(--bone); background: transparent; }
.btn--line:hover { background: var(--bone); border-color: var(--bone); color: var(--ink); }
.btn:hover .ico--arrow { transform: translateX(3px); }
.btn:hover .ico--arrowup { transform: rotate(45deg); }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--lg { padding: 18px 28px; font-size: 16px; }
.btn--block { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Photo pill inside big type */
.pill { display: inline-block; overflow: hidden; border-radius: 999px; vertical-align: -.04em; background: var(--ink-3); }
.pill__img { width: 100%; height: 100%; object-fit: cover; }

/* Availability line with pulsing dot */
.avail { display: flex; align-items: center; gap: 14px; margin: 0; font-size: 15px; line-height: 1.4; }
.avail strong { display: block; color: var(--bone); font-weight: 500; }
.avail__slots { color: var(--muted); }
.avail__dot { position: relative; width: 10px; height: 10px; flex-shrink: 0; border-radius: 50%; background: var(--accent-light); }
.avail__dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--accent-light); animation: pulse 2s ease-out infinite; }
@keyframes pulse { from { transform: scale(1); opacity: .7; } to { transform: scale(3.2); opacity: 0; } }

/* Rotating round badge */
.badge { position: relative; display: grid; place-items: center; width: 170px; height: 170px; flex-shrink: 0; color: var(--bone); text-decoration: none; }
.badge__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 18s linear infinite; }
.badge__ring text { fill: currentColor; font: 600 14px var(--font-body); letter-spacing: .1em; }
.badge__core { display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; background: var(--accent); color: var(--white); transition: transform .45s var(--ease), background-color .25s; }
.badge:hover .badge__core { transform: scale(1.08) rotate(45deg); background: var(--accent-deep); }
@keyframes spin { to { transform: rotate(360deg); } }

/* Tags */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; list-style: none; }
.tags li { padding: 6px 14px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 13px; color: var(--bone); }

/* ---------- Header ---------- */
.header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background-color .3s, border-color .3s; border-bottom: 1px solid transparent; }
.header.is-scrolled { background: rgba(13, 13, 16, .82); border-bottom-color: var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.header__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.logo { display: inline-flex; align-items: baseline; color: var(--bone); text-decoration: none; }
.logo__word { font: 700 26px/1 var(--font-head); letter-spacing: -.06em; }
.logo__dot { width: .3em; height: .3em; margin-left: .08em; background: var(--accent); font-size: 26px; }
.logo__sub { margin-left: 12px; padding-left: 12px; border-left: 1px solid var(--line-2); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; gap: 34px; }
.nav a { position: relative; font-size: 15px; font-weight: 500; text-decoration: none; color: var(--muted); transition: color .2s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav a:hover { color: var(--bone); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.header__actions { display: flex; align-items: center; gap: 12px; }

.menu-toggle { display: none; align-items: center; gap: 10px; padding: 9px 16px; border: 1px solid rgba(238, 233, 223, .25); border-radius: 999px; background: transparent; color: var(--bone); font: 600 14px var(--font-body); cursor: pointer; }
.menu-toggle__icon { position: relative; width: 16px; height: 8px; }
.menu-toggle__icon i { position: absolute; left: 0; width: 100%; height: 1.5px; background: currentColor; transition: transform .35s var(--ease), top .35s var(--ease); }
.menu-toggle__icon i:first-child { top: 0; }
.menu-toggle__icon i:last-child { top: 100%; margin-top: -1.5px; }
.menu-open .menu-toggle__icon i:first-child { top: 50%; transform: translateY(-50%) rotate(45deg); }
.menu-open .menu-toggle__icon i:last-child { top: 50%; margin-top: 0; transform: translateY(-50%) rotate(-45deg); }

.mobile-nav { position: fixed; inset: 0; z-index: -1; display: none; flex-direction: column; justify-content: space-between; padding: calc(var(--header-h) + 24px) 0 32px; background: var(--ink); overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity .3s, transform .4s var(--ease), visibility .3s; }
.menu-open .mobile-nav { opacity: 1; visibility: visible; transform: none; }
.mobile-nav__links { display: flex; flex-direction: column; }
.mobile-nav__links a { display: flex; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font: 600 clamp(30px, 8.6vw, 52px)/1.05 var(--font-head); letter-spacing: -.04em; color: var(--bone); text-decoration: none; }
.mobile-nav__num { font: 500 13px var(--font-body); letter-spacing: .08em; color: var(--accent-light); }
.mobile-nav__foot { display: grid; gap: 18px; margin-top: 32px; }
.mobile-nav__mail { color: var(--muted); text-align: center; }

/* ---------- Hero ---------- */
.hero { padding: calc(var(--header-h) + 48px) 0 88px; }
.hero__meta { display: flex; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 4vw, 56px); padding-bottom: 18px; border-bottom: 1px solid var(--line); list-style: none; font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.hero__title { display: flex; flex-direction: column; font-size: clamp(36px, 13vw, 240px); font-weight: 700; line-height: .98; letter-spacing: -.055em; }
.hero__line { display: block; overflow: hidden; padding-bottom: .05em; }
.hero__line:nth-child(3) { text-align: right; }
.hero__line-in { display: inline-block; animation: rise 1.1s var(--ease) both; animation-delay: calc(var(--i) * .1s + .1s); }
.pill--hero { width: 1.7em; height: .78em; margin-right: .14em; animation: grow 1.2s var(--ease) .45s both; }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes grow { from { width: 0; margin-right: 0; } }
.hero__foot { display: grid; grid-template-columns: 1.1fr 1fr auto; grid-template-areas: "lead avail badge" "lead actions badge"; align-items: center; gap: 24px 48px; margin-top: clamp(40px, 5vw, 72px); padding-top: 36px; border-top: 1px solid var(--line); }
.hero__lead { grid-area: lead; align-self: start; max-width: 38ch; margin: 0; font-size: 20px; line-height: 1.5; color: var(--muted); }
.hero__foot .avail { grid-area: avail; align-self: end; }
.hero__actions { grid-area: actions; align-self: start; }
.hero__foot .badge { grid-area: badge; }

/* ---------- Services marquee ---------- */
.marquees { overflow: hidden; }
.marquee { display: flex; overflow: hidden; -webkit-user-select: none; user-select: none; }
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee__group { display: flex; flex-shrink: 0; align-items: center; gap: var(--mq-gap, 40px); padding-right: var(--mq-gap, 40px); list-style: none; white-space: nowrap; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-33.3333%); } }
.marquee--accent { --mq-gap: clamp(24px, 3vw, 48px); padding: 26px 0; background: var(--accent); color: var(--white); font: 600 clamp(28px, 4.4vw, 68px)/1.1 var(--font-head); letter-spacing: -.035em; }
.marquee--accent .marquee__star { color: var(--ink); font-size: .7em; }
.marquee--ink { --mq-gap: 28px; padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--bone); font-size: 15px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.marquee--ink .marquee__track { animation-duration: 32s; animation-direction: reverse; }
.marquee--ink .marquee__star { color: var(--accent-light); }

/* ---------- Selected work ---------- */
.work { position: relative; }
.work__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 56px; }
.work__head .lead { margin: 0; max-width: 40ch; }
.work__title { font-size: clamp(40px, 6.4vw, 104px); font-weight: 700; line-height: .95; letter-spacing: -.055em; }
.work__title sup { margin-left: .2em; font-size: .28em; font-weight: 500; letter-spacing: 0; color: var(--accent-light); vertical-align: top; position: relative; top: .3em; }
.work__cols, .work__item { display: grid; grid-template-columns: 72px minmax(0, 1fr) 220px 72px; grid-template-areas: "num main tags year" "media media media media"; column-gap: 24px; }
.work__cols { padding-bottom: 14px; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.work__cols span:last-child { text-align: right; }
.work__list { list-style: none; }
.work__item { position: relative; align-items: center; padding: 30px 0; border-bottom: 1px solid var(--line); transition: opacity .35s; }
.work__item::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--accent-light); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.work__num { grid-area: num; font-size: 14px; font-variant-numeric: tabular-nums; color: var(--faint); }
.work__main { grid-area: main; min-width: 0; }
.work__name { font-size: clamp(26px, 3.6vw, 56px); font-weight: 600; letter-spacing: -.045em; transition: transform .5s var(--ease), color .3s; }
.work__desc { max-width: 54ch; margin: 10px 0 0; font-size: 15px; line-height: 1.5; }
.work__tags { grid-area: tags; margin: 0; font-size: 14px; }
.work__year { grid-area: year; text-align: right; font: 500 16px var(--font-head); color: var(--bone); }
.work__media { grid-area: media; margin: 22px 0 0; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius); background: var(--ink-3); }
.work__img { width: 100%; height: 100%; object-fit: cover; }
/* Desktop with a mouse: images float with the cursor instead (js adds .is-floating) */
.work__list.is-floating .work__media { display: none; }
.work__list.is-floating:hover .work__item { opacity: .32; }
.work__list.is-floating .work__item:hover { opacity: 1; }
.work__list.is-floating .work__item:hover::after { transform: scaleX(1); }
.work__list.is-floating .work__item:hover .work__name { transform: translateX(18px); color: var(--accent-light); }
.work__float { position: fixed; top: 0; left: 0; z-index: 40; width: 340px; aspect-ratio: 4 / 5; pointer-events: none; opacity: 0; transition: opacity .3s; will-change: transform; }
.work__float.is-visible { opacity: 1; }
.work__float-in { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: var(--radius); transform: scale(.7); transition: transform .5s var(--ease); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.work__float.is-visible .work__float-in { transform: scale(1); }
.work__float img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.12); transition: opacity .35s, transform .7s var(--ease); }
.work__float img.is-active { opacity: 1; transform: scale(1); }
.work__cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; margin-top: 48px; }
.work__cta p { margin: 0; font: 500 clamp(20px, 2vw, 26px)/1.3 var(--font-head); letter-spacing: -.03em; color: var(--bone); }

/* ---------- Manifesto (cream) ---------- */
.manifesto { background: var(--cream); color: var(--cream-text); }
.manifesto .label { color: var(--cream-text); }
.manifesto .label__num, .manifesto .ac { color: var(--accent); }
.manifesto__text { margin: 0 0 48px; font: 500 clamp(26px, 4.3vw, 66px)/1.14 var(--font-head); letter-spacing: -.035em; color: var(--cream-head); }
.manifesto__text .w { transition: color .45s; }
.manifesto__text.is-scrolly .w { color: rgba(23, 22, 26, .16); }
.manifesto__text.is-scrolly .w.is-lit { color: var(--cream-head); }
.manifesto__text.is-scrolly .w.ac.is-lit { color: var(--accent); }
.pill--text { width: 2em; height: .82em; margin: 0 .04em; vertical-align: -.1em; }
.manifesto__sign { display: flex; align-items: center; gap: 16px; margin: 0; font-size: 15px; font-weight: 500; color: var(--cream-head); }
.manifesto__line { width: 48px; height: 1px; background: currentColor; }
.manifesto__points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin: 88px 0 0; padding-top: 40px; border-top: 1px solid var(--cream-line); list-style: none; }
.manifesto__pn { font-size: 13px; font-weight: 600; letter-spacing: .1em; color: var(--accent); }
.manifesto__points h3 { margin: 14px 0 8px; font-size: 20px; color: var(--cream-head); letter-spacing: -.02em; }
.manifesto__points p { margin: 0; font-size: 16px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 72px; }
.stat { padding-top: 24px; border-top: 1px solid var(--cream-head); }
.stat__num { margin: 0; font: 700 clamp(48px, 6vw, 96px)/1 var(--font-head); letter-spacing: -.06em; color: var(--cream-head); }
.stat__label { margin: 12px 0 0; font-size: 15px; }

/* ---------- Capabilities ---------- */
.caps__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; }
.caps__intro { position: sticky; top: calc(var(--header-h) + 40px); align-self: start; }
.caps__intro h2 { margin-bottom: 24px; font-size: clamp(34px, 4.6vw, 72px); font-weight: 700; line-height: 1.02; letter-spacing: -.05em; }
.caps__photo { margin: 40px 0 0; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius); background: var(--ink-3); }
.caps__photo img { width: 100%; height: 100%; object-fit: cover; }
.caps__list { list-style: none; }
.cap { display: grid; grid-template-columns: 72px 1fr; gap: 24px; padding: 40px 0; border-top: 1px solid var(--line); }
.cap:first-child { padding-top: 8px; border-top: 0; }
.cap:last-child { border-bottom: 1px solid var(--line); }
.cap__num { padding-top: .5em; font: 600 16px var(--font-head); color: var(--accent-light); }
.cap__title { margin-bottom: 12px; font-size: clamp(24px, 2.6vw, 38px); letter-spacing: -.04em; transition: transform .45s var(--ease); }
.cap:hover .cap__title { transform: translateX(10px); }
.cap p { max-width: 52ch; margin: 0; }

/* ---------- Process (ultramarine) ---------- */
.process { background: var(--accent); color: rgba(255, 255, 255, .84); }
.process h2, .process h3 { color: var(--white); }
.process .ac { color: var(--ink); }
.label--light, .label--light .label__num { color: rgba(255, 255, 255, .85); }
.process__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 80px; }
.process__head h2 { font-size: clamp(34px, 5vw, 80px); font-weight: 700; letter-spacing: -.05em; }
.process__head .lead { margin: 0; max-width: 40ch; color: rgba(255, 255, 255, .86); }
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; list-style: none; }
.steps::before { content: ""; position: absolute; top: 7px; left: 0; right: 0; height: 1px; background: rgba(255, 255, 255, .4); }
.step { position: relative; padding-top: 44px; }
.step__dot { position: absolute; top: 0; left: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--white); transition: transform .35s var(--ease), background-color .3s; }
.step:hover .step__dot { transform: scale(1.5); background: var(--ink); }
.step__phase { margin: 0; font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .78); }
.step__num { margin: 10px 0 18px; font: 700 clamp(56px, 6vw, 96px)/1 var(--font-head); letter-spacing: -.06em; color: var(--white); }
.step h3 { margin-bottom: 10px; font-size: 24px; letter-spacing: -.03em; }
.step p:last-child { margin: 0; font-size: 16px; }

/* ---------- Testimonials ---------- */
.voices__head { margin-bottom: 56px; }
.voices__head h2 { font-size: clamp(34px, 5vw, 80px); font-weight: 700; letter-spacing: -.05em; }
.voices__grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; }
.quote { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; margin: 0; padding: 40px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-2); transition: border-color .3s; }
.quote:hover { border-color: var(--line-2); }
.quote__mark { display: block; height: .45em; font: 700 96px/1 var(--font-head); color: var(--accent-light); }
.quote blockquote { margin: 0; font-size: 19px; line-height: 1.55; color: var(--bone); }
.quote figcaption { display: flex; align-items: center; gap: 14px; font-size: 14px; }
.quote figcaption strong { display: block; font-size: 16px; font-weight: 600; color: var(--bone); }
.quote__avatar { display: grid; place-items: center; width: 48px; height: 48px; flex-shrink: 0; border-radius: 50%; background: var(--accent); color: var(--white); font: 600 15px var(--font-head); }
.quote--big { grid-row: span 2; background: var(--bone); border-color: var(--bone); }
.quote--big .quote__mark { color: var(--accent); font-size: 140px; }
.quote--big blockquote { font: 500 clamp(22px, 2.4vw, 36px)/1.3 var(--font-head); letter-spacing: -.025em; color: var(--cream-head); }
.quote--big figcaption { color: var(--cream-text); }
.quote--big figcaption strong { color: var(--cream-head); }

/* ---------- Contact / project form ---------- */
.contact { padding-bottom: 120px; }
.contact__title { display: flex; flex-direction: column; margin-bottom: 72px; font-size: clamp(40px, 14.2vw, 260px); font-weight: 700; line-height: .95; letter-spacing: -.06em; }
.contact__line:last-child { text-align: right; }
.contact__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: start; }
.contact__info { display: grid; gap: 32px; }
.contact__info .lead { margin: 0; }
.contact__list { list-style: none; border-top: 1px solid var(--line); }
.contact__list li { display: flex; align-items: center; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--bone); }
.contact__list a { display: flex; align-items: center; gap: 14px; text-decoration: none; transition: color .2s; }
.contact__list a:hover { color: var(--accent-light); }
.contact__list .ico { color: var(--accent-light); }
.contact__form { padding: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--ink-2); }
.brief { display: grid; gap: 28px; }
.brief__row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field__label { padding: 0; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--bone); }
.field__label em { font-style: normal; font-weight: 400; letter-spacing: .04em; text-transform: none; color: var(--faint); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0;
  background: transparent; color: var(--bone); font: 400 17px/1.4 var(--font-body);
  transition: border-color .25s, box-shadow .25s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-bottom-color: var(--accent-light); box-shadow: 0 1px 0 var(--accent-light); }
.field input:user-invalid { border-bottom-color: #FF8A7A; }
.field textarea { min-height: 110px; resize: vertical; }
.select { position: relative; display: block; }
.select select { padding-right: 32px; -webkit-appearance: none; appearance: none; cursor: pointer; }
.select select:has(option[value=""]:checked) { color: var(--faint); }
.select option { background: var(--ink-2); color: var(--bone); }
.select .ico { position: absolute; top: 50%; right: 0; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.chips legend { margin-bottom: 14px; }
.chips__row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--bone); transition: background-color .2s, border-color .2s, color .2s; }
.chip input[type="checkbox"] + span::before { content: "+"; display: inline-block; width: .8em; text-align: center; font-weight: 400; color: var(--accent-light); }
.chip:hover span { border-color: var(--bone); }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--white); }
.chip input[type="checkbox"]:checked + span::before { content: "✓"; color: var(--white); }
.chip input:focus-visible + span { outline: 2px solid var(--accent-light); outline-offset: 2px; }
.brief__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-top: 4px; }
.brief__note { max-width: 30ch; margin: 0; font-size: 14px; color: var(--faint); }
.brief.is-sending button { opacity: .7; pointer-events: none; }

/* ---------- Footer ---------- */
.footer { padding: 96px 0 32px; border-top: 1px solid var(--line); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer__lead { max-width: 26ch; margin: 0 0 24px; font: 500 22px/1.35 var(--font-head); letter-spacing: -.025em; color: var(--bone); }
.footer__mail { font-size: 18px; color: var(--bone); text-underline-offset: 6px; transition: color .2s; }
.footer__mail:hover { color: var(--accent-light); }
.footer__title { margin: 0 0 16px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.footer__list { display: grid; gap: 10px; list-style: none; font-size: 15px; }
.footer__list a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; transition: color .2s; }
.footer__list a:hover { color: var(--bone); }
.footer__word { display: flex; align-items: flex-end; margin: 96px 0 28px; font: 800 clamp(80px, 25.5vw, 400px)/.8 var(--font-head); letter-spacing: -.05em; color: var(--bone); white-space: nowrap; }
.footer__dot { display: inline-block; flex-shrink: 0; width: .17em; height: .17em; margin: 0 0 .02em .06em; background: var(--accent); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--faint); }
.footer__bottom p { margin: 0; }
.footer__top { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; }
.footer__top:hover { color: var(--bone); }
.footer__top:hover .ico { transform: translateY(-3px); }

/* ---------- Thank-you page ---------- */
.page-hero { padding-top: calc(var(--header-h) + 72px); }
.page-hero__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 72px; align-items: center; }
.page-hero__title { margin-bottom: 24px; font-size: clamp(40px, 6vw, 96px); font-weight: 700; line-height: 1; letter-spacing: -.055em; }
.next { margin: 40px 0 44px; list-style: none; }
.next li { display: grid; grid-template-columns: 56px 1fr; padding: 22px 0; border-top: 1px solid var(--line); }
.next li:last-child { border-bottom: 1px solid var(--line); }
.next__num { font: 600 16px var(--font-head); color: var(--accent-light); }
.next h3 { margin-bottom: 6px; font-size: 20px; letter-spacing: -.02em; }
.next p { margin: 0; }
.page-hero__photo { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--ink-3); }
.page-hero__photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 404 page ---------- */
.lost { padding-top: calc(var(--header-h) + 88px); }
.lost__num { display: flex; align-items: center; gap: .03em; margin: 0 0 40px; font: 800 clamp(120px, 26vw, 380px)/.85 var(--font-head); letter-spacing: -.06em; color: var(--bone); }
.pill--lost { width: 1.25em; height: .7em; }
.lost__title { max-width: 18ch; margin-bottom: 20px; font-size: clamp(32px, 4.6vw, 64px); font-weight: 700; letter-spacing: -.05em; }
.lost .lead { margin-bottom: 36px; }

/* ==========================================================================
   Tablet (1024px and below)
   ========================================================================== */
@media (max-width: 1024px) {
  :root { --gutter: 32px; --section: 110px; --header-h: 72px; }
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .mobile-nav { display: flex; }
  .hero__foot { grid-template-columns: 1fr auto; grid-template-areas: "lead lead" "avail badge" "actions badge"; gap: 24px 32px; }
  .hero__lead { margin-bottom: 12px; }
  .work__cols, .work__item { grid-template-columns: 52px minmax(0, 1fr) 170px 56px; column-gap: 18px; }
  .caps__grid { grid-template-columns: 1fr; gap: 56px; }
  .caps__intro { position: static; }
  .caps__photo { aspect-ratio: 16 / 9; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 56px 32px; }
  .steps::before { display: none; }
  .step { border-top: 1px solid rgba(255, 255, 255, .4); padding-top: 36px; }
  .step__dot { top: -8px; }
  .voices__grid { grid-template-columns: 1fr; }
  .quote--big { grid-row: auto; }
  .contact__grid { grid-template-columns: 1fr; gap: 48px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__about { grid-column: 1 / -1; }
  .page-hero__grid { grid-template-columns: 1fr 1fr; gap: 48px; }
}

/* ==========================================================================
   Phone (767px and below)
   ========================================================================== */
@media (max-width: 767px) {
  :root { --gutter: 20px; --section: 84px; --header-h: 64px; }
  body { font-size: 16px; }
  .lead { font-size: 17px; }
  .header__cta { display: none; }
  .logo__word, .logo__dot { font-size: 23px; }
  .logo__sub { display: none; }

  .hero { padding-top: calc(var(--header-h) + 28px); padding-bottom: 64px; }
  .hero__meta { flex-direction: column; gap: 4px; font-size: 11px; }
  .hero__meta li:nth-child(2) { display: none; }
  .hero__title { font-size: clamp(34px, 12.6vw, 96px); }
  .hero__foot { grid-template-areas: "lead lead" "avail badge" "actions actions"; gap: 24px 16px; padding-top: 28px; }
  .hero__lead { margin-bottom: 0; font-size: 17px; }
  .hero .actions .btn { flex: 1 1 auto; }
  .badge { width: 108px; height: 108px; }
  .badge__ring text { font-size: 17px; letter-spacing: .06em; }
  .badge__core { width: 58px; height: 58px; }
  .badge__core .ico { width: 22px; height: 22px; }

  .marquee--accent { padding: 16px 0; font-size: 28px; }
  .marquee--ink { padding: 14px 0; font-size: 13px; }

  .work__head { flex-direction: column; align-items: flex-start; gap: 20px; margin-bottom: 32px; }
  .work__cols { display: none; }
  .work__list { border-top: 1px solid var(--line); }
  .work__item { grid-template-columns: 1fr auto; grid-template-areas: "num year" "main main" "tags tags" "media media"; row-gap: 6px; padding: 24px 0 28px; }
  .work__name { font-size: 26px; }
  .work__desc { font-size: 15px; }
  .work__tags { margin-top: 6px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-light); }
  .work__media { margin-top: 16px; aspect-ratio: 4 / 3; }
  .work__cta { flex-direction: column; align-items: stretch; }
  .work__cta .btn { width: 100%; }

  .manifesto__text { font-size: clamp(24px, 7vw, 34px); }
  .manifesto__points { grid-template-columns: 1fr; gap: 28px; margin-top: 56px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 32px 20px; margin-top: 56px; }
  .stat__num { font-size: 48px; }
  .stat__label { font-size: 14px; }

  .cap { grid-template-columns: 44px 1fr; gap: 12px; padding: 32px 0; }
  .cap__num { padding-top: .35em; font-size: 14px; }

  .process__head, .voices__head { flex-direction: column; align-items: flex-start; gap: 20px; margin-bottom: 48px; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .step__num { font-size: 56px; }

  .quote { padding: 28px 24px; }
  .quote--big .quote__mark { font-size: 110px; }
  .quote--big blockquote { font-size: 22px; }

  .contact { padding-bottom: 88px; }
  .contact__title { margin-bottom: 44px; font-size: clamp(36px, 13.6vw, 104px); }
  .contact__form { padding: 28px 20px; margin-inline: -4px; }
  .brief__row { grid-template-columns: 1fr; gap: 28px; }
  .chip span { padding: 9px 15px; font-size: 14px; }
  .brief__foot .btn { width: 100%; }

  .footer { padding-top: 72px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .footer__grid > div:nth-child(2) { grid-column: 1 / -1; }
  .footer__lead { font-size: 20px; }
  .footer__word { margin: 64px 0 20px; font-size: 25vw; }

  .page-hero { padding-top: calc(var(--header-h) + 40px); }
  .page-hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .page-hero__photo { aspect-ratio: 4 / 3; }
  .page-hero .actions .btn, .lost .actions .btn { flex: 1 1 auto; }
}

/* ---------- Reduced motion: no marquee, spinning or sliding ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .marquee__track, .badge__ring, .avail__dot::after { animation: none !important; }
  .marquee { overflow-x: auto; scrollbar-width: none; }
}
