/* Elite Dev Studio — agency site styles.
   Identity: near-black and warm white, one acid-lime accent used only on actions and highlights.
   Dark bands (hero, services, studio, footer) alternate with light ones (work, process, packages, form, FAQ).
   Every colour is a token; a single deliberate theme. */
:root {
  color-scheme: light;
  /* colour */
  --black: #0A0A0A;
  --char: #141414;          /* panels on black */
  --char-2: #1D1D1D;
  --paper: #F4F4F0;         /* light bands */
  --white: #FFFFFF;
  --line: #DEDED8;
  --line-dark: rgba(255, 255, 255, .12);
  --ink: #0A0A0A;
  --ink-2: #4B4B46;         /* 8.9:1 on paper */
  --on-dark: #F4F4F0;
  --on-dark-2: #A6A69E;     /* 8.4:1 on black */
  --lime: #D4FF3A;
  --lime-hover: #C4F21F;
  --lime-soft: #EEFFB8;
  --error: #B42318;
  --error-dark: #FF8A7A;
  /* type */
  --display: 'Schibsted Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --text: 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --fs-hero: clamp(40px, 6.5vw, 88px);
  --fs-h2: clamp(36px, 4.6vw, 68px);
  --fs-h3: clamp(21px, 1.9vw, 28px);
  --fs-lead: clamp(18px, 1.4vw, 21px);
  --fs-body: 17px;
  --fs-small: 14px;
  /* shape + motion */
  --r-xl: 28px;
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --section: clamp(88px, 10vw, 152px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 var(--fs-body)/1.6 var(--text); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--black); }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p, h1, h2, h3, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -.035em; text-wrap: balance; color: var(--ink); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 4px; }
.light :focus-visible, .work :focus-visible, .process :focus-visible, .packages :focus-visible, .book :focus-visible, .faq :focus-visible, .page :focus-visible { outline-color: var(--ink); }
::selection { background: var(--lime); color: var(--black); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: var(--lime); color: var(--black); padding: 10px 14px; border-radius: var(--r-sm); }

.wrap {
  width: 100%; max-width: 1328px; margin-inline: auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px));
}
.h2 { font-size: var(--fs-h2); line-height: .98; letter-spacing: -.045em; font-weight: 800; }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--ink-2); max-width: 46ch; }
p { max-width: 68ch; }
.sec-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
.sec-head .h2 { grid-column: 1 / 7; }
.sec-head > .lead, .sec-head__side { grid-column: 8 / 13; }
.sec-head__side { display: grid; gap: 22px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px; border: 1px solid transparent; border-radius: 999px;
  font: 600 16px/1 var(--text); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .15s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--lime, .btn--primary { background: var(--lime); color: var(--black); }
.btn--lime:hover, .btn--primary:hover { background: var(--lime-hover); }
.btn--dark { background: var(--black); color: var(--on-dark); }
.btn--dark:hover { background: var(--char-2); }
.btn--outline { background: transparent; color: var(--on-dark); border-color: rgba(255, 255, 255, .32); }
.btn--outline:hover { border-color: var(--on-dark); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--quiet { background: transparent; color: var(--ink-2); padding: 0 8px; }
.btn--quiet:hover { color: var(--ink); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 15px; }

/* ---------- header ---------- */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--black); color: var(--on-dark); transition: background-color .25s var(--ease); }
.top.is-scrolled { background: rgba(10, 10, 10, .92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.top__row { display: flex; align-items: center; gap: 32px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand__mark { width: 42px; }
.brand__word { width: 178px; }
.top__links { display: flex; gap: 28px; font-size: 15px; }
.top__links a { text-decoration: none; color: var(--on-dark-2); transition: color .2s; }
.top__links a:hover { color: var(--on-dark); }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--black); color: var(--on-dark); overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 10, 10, .96) 0%, rgba(10, 10, 10, .86) 38%, rgba(10, 10, 10, .2) 72%, rgba(10, 10, 10, .1) 100%), linear-gradient(0deg, rgba(10, 10, 10, .9) 0%, rgba(10, 10, 10, 0) 30%); }
.hero__inner { min-height: min(88svh, 860px); display: grid; align-content: center; justify-items: start; gap: 30px; padding-block: clamp(64px, 9vw, 128px); }
.hero__title { font-size: var(--fs-hero); line-height: .96; letter-spacing: -.05em; font-weight: 800; color: var(--on-dark); }
.hero__title .ln { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.hero__title .ln > span { display: inline-block; }
.hero__title em { font-style: normal; color: var(--lime); }
.hero__lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--on-dark-2); max-width: 44ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__facts { display: grid; grid-template-columns: repeat(3, auto); gap: 18px 44px; margin-top: 26px; }
.hero__facts li { display: grid; gap: 4px; }
.hero__facts b { font: 700 26px/1 var(--display); letter-spacing: -.03em; color: var(--on-dark); }
.hero__facts span { font-size: var(--fs-small); color: var(--on-dark-2); }

/* ---------- sector strip ---------- */
.sectors { background: var(--lime); color: var(--black); padding-block: 18px; }
.sectors__in { overflow: hidden; margin-inline: max(24px, env(safe-area-inset-left, 0px)); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.sectors__track { display: flex; gap: 0; width: max-content; animation: marquee 48s linear infinite; }
.sectors__track span { font: 700 clamp(18px, 1.7vw, 24px)/1 var(--display); letter-spacing: -.02em; white-space: nowrap; display: inline-flex; align-items: center; }
.sectors__track span::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--black); margin-inline: 28px; }

/* ---------- work ---------- */
.work { padding-block: var(--section); background: var(--paper); }
.filter { display: flex; flex-wrap: wrap; gap: 8px; }
.filter button {
  font: 500 15px/1 var(--text); color: var(--ink); background: var(--white); border: 1px solid var(--line);
  padding: 11px 16px; border-radius: 999px; cursor: pointer; display: inline-flex; gap: 8px; align-items: center;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.filter button span { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.filter button:hover { border-color: var(--ink); }
.filter button[aria-pressed="true"] { background: var(--black); border-color: var(--black); color: var(--on-dark); }
.filter button[aria-pressed="true"] span { color: var(--lime); }
.work__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(28px, 3vw, 40px) 24px; }
.case { grid-column: span 2; display: grid; gap: 12px; align-content: start; }
.case[hidden] { display: none; }
.case--big { grid-column: span 3; }
.case__shot {
  position: relative; display: block; border-radius: var(--r-lg); overflow: hidden; background: var(--black);
  aspect-ratio: 16 / 10; padding: 0;
}
.case__shot > img:first-child { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s var(--ease); }
.case__shot:hover > img:first-child { transform: scale(1.03); }
.case__phone {
  position: absolute; right: 5%; bottom: -14%; width: 22%; border-radius: 16px; border: 4px solid var(--black);
  transition: transform .5s var(--ease);
}
.case__shot:hover .case__phone { transform: translateY(-6%); }
.case__meta { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.case__meta h3 { font-size: var(--fs-h3); line-height: 1.1; }
.case p { color: var(--ink-2); font-size: 16px; }
.case__link { font-size: 15px; font-weight: 500; color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 4px; justify-self: start; }
.tag { font-size: 12px; font-weight: 600; letter-spacing: .01em; padding: 5px 10px; border-radius: 999px; background: var(--white); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; }
.tag--live { background: var(--lime); border-color: var(--lime); color: var(--black); }

/* ---------- services (dark) ---------- */
.services { background: var(--black); color: var(--on-dark); padding-block: var(--section); }
.services .h2, .services h3 { color: var(--on-dark); }
.services .lead { color: var(--on-dark-2); }
.svc { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: center; }
.svc + .svc { margin-top: clamp(48px, 6vw, 96px); }
.svc__img { grid-column: 1 / 7; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4 / 3; background: var(--char); }
.svc__img img { width: 100%; height: 100%; object-fit: cover; }
.svc__copy { grid-column: 8 / 13; display: grid; gap: 18px; align-content: center; }
.svc--flip .svc__img { grid-column: 7 / 13; grid-row: 1; }
.svc--flip .svc__copy { grid-column: 1 / 6; grid-row: 1; }
.svc__copy h3 { font-size: clamp(30px, 3.2vw, 46px); line-height: 1; letter-spacing: -.04em; font-weight: 800; }
.svc__copy p { color: var(--on-dark-2); font-size: var(--fs-lead); line-height: 1.55; }
.svc__copy ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; margin-top: 10px; padding: 22px 24px; border-radius: var(--r-lg); background: var(--char); }
.svc__copy li { font-size: 16px; color: var(--on-dark); display: grid; grid-template-columns: 14px 1fr; gap: 10px; align-items: baseline; }
.svc__copy li::before { content: ""; width: 14px; height: 3px; border-radius: 2px; background: var(--lime); transform: translateY(-4px); }

/* ---------- studio / why (dark, continues the services band) ---------- */
.studio { background: var(--black); color: var(--on-dark); padding-block: 0 var(--section); }
.studio .h2 { color: var(--on-dark); }
.studio__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: center; padding-top: clamp(24px, 3vw, 48px); }
.studio__img { grid-column: 1 / 7; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 3 / 2; background: var(--char); }
.studio__img img { width: 100%; height: 100%; object-fit: cover; }
.studio__copy { grid-column: 8 / 13; display: grid; gap: 32px; }
.why { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
.why dt { font: 700 20px/1.2 var(--display); letter-spacing: -.02em; color: var(--on-dark); display: flex; gap: 10px; align-items: center; }
.why dt::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--lime); flex: none; }
.why dd { color: var(--on-dark-2); font-size: 16px; margin-top: 8px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: clamp(48px, 6vw, 88px); }
.stats li { background: var(--char); border-radius: var(--r-lg); padding: 28px; display: grid; gap: 12px; align-content: start; }
.stats b { font: 800 clamp(48px, 5vw, 76px)/.9 var(--display); letter-spacing: -.05em; color: var(--lime); font-variant-numeric: tabular-nums; }
.stats span { color: var(--on-dark-2); font-size: 16px; }
.stats small { display: block; margin-top: 6px; font-size: 13px; opacity: .8; }

/* ---------- process ---------- */
.process { padding-block: var(--section); }
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.flow li { background: var(--white); border-radius: var(--r-lg); padding: 28px 26px 32px; display: grid; gap: 12px; align-content: start; }
.flow li::before {
  counter-increment: step; content: "0" counter(step);
  font: 800 44px/1 var(--display); letter-spacing: -.04em; color: var(--black);
  -webkit-text-stroke: 0; margin-bottom: 18px;
}
.flow li:first-child { background: var(--lime); }
.flow h3 { font-size: var(--fs-h3); line-height: 1.15; }
.flow p { color: var(--ink-2); font-size: 16px; }
.flow li:first-child p { color: var(--black); }

/* ---------- packages ---------- */
.packages { padding-block: 0 var(--section); }
.pk { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.pk__card { position: relative; background: var(--white); border-radius: var(--r-xl); padding: 34px 30px 30px; display: grid; gap: 14px; grid-template-rows: auto auto 1fr auto; }
.pk__card h3 { font-size: clamp(30px, 2.6vw, 38px); font-weight: 800; letter-spacing: -.04em; }
.pk__for { color: var(--ink-2); }
.pk__card ul { display: grid; gap: 10px; margin: 10px 0 18px; align-content: start; }
.pk__card li { display: grid; grid-template-columns: 18px 1fr; gap: 12px; font-size: 16px; }
.pk__card li::before { content: ""; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--lime-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='m5 9.2 2.6 2.6L13 6.4' fill='none' stroke='%230A0A0A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.pk__card .btn { width: 100%; }
.pk__card--hi { background: var(--black); color: var(--on-dark); }
.pk__card--hi h3 { color: var(--on-dark); }
.pk__card--hi .pk__for { color: var(--on-dark-2); }
.pk__card--hi li::before { background-color: var(--lime); }
.pk__badge { position: absolute; top: 24px; right: 24px; font-size: 12px; font-weight: 600; padding: 6px 11px; border-radius: 999px; background: var(--lime); color: var(--black); }

/* ---------- book a call (form) ---------- */
.book { background: var(--white); padding-block: var(--section); }
.book__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: start; }
.book__aside { grid-column: 1 / 6; display: grid; gap: 26px; position: sticky; top: 116px; }
.ticks { display: grid; gap: 14px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.ticks li::before { content: ""; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='m6.5 11.2 3 3 6-6.4' fill='none' stroke='%230A0A0A' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat; }
.contact-line { font-size: 15px; color: var(--ink-2); }
.contact-line strong { color: var(--ink); font-weight: 600; user-select: all; }
.contact-line a { color: var(--ink); text-underline-offset: 3px; }

.lead-form { grid-column: 7 / 13; background: var(--paper); border-radius: var(--r-xl); padding: clamp(24px, 3vw, 42px); }
.steps-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 30px; }
.steps-bar li span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.steps-bar li::before { content: ""; display: block; height: 5px; border-radius: 5px; background: var(--line); transition: background-color .3s var(--ease); }
.steps-bar li.is-done::before, .steps-bar li.is-on::before { background: var(--black); }
.step { border: 0; margin: 0; padding: 0; min-width: 0; }
.step legend { font-family: var(--display); font-weight: 700; font-size: clamp(24px, 2.2vw, 30px); letter-spacing: -.03em; padding: 0; margin-bottom: 6px; }
.hint { font-size: var(--fs-small); color: var(--ink-2); margin-bottom: 18px; }
.sub { font-weight: 500; margin: 22px 0 12px; }
.opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.opts--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.opt { position: relative; cursor: pointer; }
.opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.opt span {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 58px; padding: 12px 16px;
  border-radius: var(--r-md); background: var(--white); border: 1px solid var(--line); font-size: 16px;
  transition: background-color .18s var(--ease), border-color .18s var(--ease);
}
.opt span::after { content: ""; width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid var(--line); flex: none; transition: all .18s var(--ease); }
.opt input[type="radio"] + span::after { border-radius: 50%; }
.opt:hover span { border-color: var(--ink-2); }
.opt input:checked + span { border-color: var(--black); background: var(--lime-soft); }
.opt input:checked + span::after { border-color: var(--black); background: var(--black); box-shadow: inset 0 0 0 3px var(--lime); }
.opt input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.field { display: grid; gap: 8px; margin-bottom: 16px; font-size: 15px; font-weight: 500; }
.field input, .field textarea, .tel {
  font: 400 17px/1.3 var(--text); color: var(--ink); background: var(--white); width: 100%;
  border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field input:focus, .field textarea:focus, .tel:focus-within { outline: none; border-color: var(--black); box-shadow: 0 0 0 3px var(--lime); }
.tel { display: flex; align-items: center; gap: 10px; padding: 0 14px; }
.tel b { font-weight: 500; color: var(--ink-2); }
.tel input { border: 0; padding: 14px 0; background: transparent; box-shadow: none !important; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink-2); margin-top: 8px; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--black); flex: none; }
.consent a { color: var(--ink); }
.err { color: var(--error); font-size: 14px; margin-top: 8px; }
.err:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 2px; height: 2px; overflow: hidden; }
.form-nav { display: flex; gap: 12px; justify-content: space-between; align-items: center; margin-top: 28px; }
.form-nav #next, .form-nav #send { margin-left: auto; }
.step-count { font-size: var(--fs-small); color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.form-note { margin-top: 14px; font-size: 13px; color: var(--ink-2); }
.form-note:empty { display: none; }
.js .step { display: none; }
.js .step.is-on { display: block; animation: stepIn .4s var(--ease); }
.js #send { display: none; }
.js .lead-form.is-last #next { display: none; }
.js .lead-form.is-last #send { display: inline-flex; }
.js .lead-form.is-first #back { visibility: hidden; }
.lead-form.is-sending { opacity: .7; pointer-events: none; }

/* ---------- FAQ ---------- */
.faq { padding-block: var(--section); }
.faq__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.faq__head { grid-column: 1 / 5; display: grid; gap: 18px; align-content: start; }
.qa { grid-column: 6 / 13; display: grid; gap: 8px; }
.qa details { background: var(--white); border-radius: var(--r-md); padding-inline: 26px; }
.qa summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; font-family: var(--display); font-weight: 600; font-size: clamp(18px, 1.5vw, 21px); letter-spacing: -.015em;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper); font: 500 20px/1 var(--text); transition: transform .25s var(--ease), background-color .2s var(--ease);
}
.qa details[open] summary::after { transform: rotate(45deg); background: var(--lime); }
.qa details:not([open]) > p { display: none; }
.qa details p { padding: 0 0 24px; color: var(--ink-2); max-width: 62ch; }
.qa details[open] p { animation: stepIn .35s var(--ease); }

/* ---------- closing band (lime) ---------- */
.close { background: var(--lime); color: var(--black); padding-block: clamp(72px, 8vw, 120px); }
.close__inner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: end; }
.close h2 { grid-column: 1 / 9; font-size: clamp(40px, 6vw, 92px); line-height: .94; letter-spacing: -.055em; font-weight: 800; }
.close__acts { grid-column: 9 / 13; display: grid; gap: 14px; justify-items: start; }
.close__acts p { font-size: 15px; }
.close__acts strong { user-select: all; }

/* ---------- footer ---------- */
.foot { background: var(--black); color: var(--on-dark); padding-block: clamp(56px, 6vw, 88px) 40px; }
.foot__row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: start; }
.foot__brand { grid-column: 1 / 6; }
.foot__card { width: 100%; max-width: 460px; border-radius: var(--r-lg); }
.foot__nav { grid-column: 7 / 9; display: grid; gap: 12px; font-size: 15px; }
.foot__nav a { color: var(--on-dark-2); text-decoration: none; }
.foot__nav a:hover { color: var(--on-dark); }
.foot__contact { grid-column: 9 / 13; display: grid; gap: 8px; font-size: 15px; color: var(--on-dark-2); }
.foot__contact strong { font: 700 clamp(26px, 2.4vw, 34px)/1.1 var(--display); color: var(--on-dark); letter-spacing: -.03em; user-select: all; }
.foot__contact a { color: var(--lime); text-underline-offset: 3px; }
.foot__place { margin-top: 14px; }
.foot__legal { margin-top: 56px; font-size: 13px; color: var(--on-dark-2); }
.foot__legal a { color: var(--on-dark); }

/* ---------- motion: load only for the hero, a slow strip, hover states. Everything is visible at rest. ---------- */
@keyframes rise { from { transform: translateY(104%); } to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes stepIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes slowZoom { from { transform: scale(1.08); } to { transform: none; } }
.js .hero__title .ln > span { animation: rise 1s var(--ease) both; }
.js .hero__title .ln + .ln > span { animation-delay: .1s; }
.js .hero__inner > :not(h1) { animation: fadeUp .8s var(--ease) both; animation-delay: .4s; }
.js .hero__bg img { animation: slowZoom 2.4s var(--ease) both; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .sectors__track { animation: none; }
}

/* ---------- tablet ---------- */
@media (max-width: 1024px) {
  .top__links { display: none; }
  .sec-head .h2, .sec-head > .lead, .sec-head__side { grid-column: 1 / -1; }
  .work__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case, .case--big { grid-column: span 1; }
  .svc__img, .svc--flip .svc__img { grid-column: 1 / 7; grid-row: 1; }
  .svc__copy, .svc--flip .svc__copy { grid-column: 7 / 13; grid-row: 1; }
  .studio__img { grid-column: 1 / -1; }
  .studio__copy { grid-column: 1 / -1; }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pk { grid-template-columns: minmax(0, 1fr); max-width: 620px; }
  .book__aside { grid-column: 1 / -1; position: static; }
  .lead-form { grid-column: 1 / -1; }
  .faq__head, .qa { grid-column: 1 / -1; }
  .close h2, .close__acts { grid-column: 1 / -1; }
  .foot__brand { grid-column: 1 / -1; }
  .foot__nav { grid-column: 1 / 5; }
  .foot__contact { grid-column: 5 / 13; }
}

/* ---------- phone ---------- */
@media (max-width: 720px) {
  :root { --fs-body: 16px; }
  .wrap { padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); }
  .top__row { min-height: 64px; }
  .brand__word { display: none; }
  .hero__bg img { object-position: 64% 50%; }
  .hero__bg::after { background: linear-gradient(0deg, rgba(10, 10, 10, .97) 0%, rgba(10, 10, 10, .9) 52%, rgba(10, 10, 10, .35) 100%); }
  .hero { display: flex; flex-direction: column; }
  .hero__inner { min-height: auto; padding-block: 40px 8px; gap: 24px; }
  .hero__bg { position: relative; inset: auto; order: 2; z-index: 0; aspect-ratio: 16 / 11; margin-top: -8px; }
  .hero__bg img { object-position: 62% 50%; }
  .hero__bg::after { background: linear-gradient(180deg, var(--black) 0%, rgba(10, 10, 10, 0) 30%, rgba(10, 10, 10, 0) 85%, rgba(10, 10, 10, .5) 100%); }
  .hero__title { font-size: 10.2vw; letter-spacing: -.045em; }
  .svc__copy ul { grid-template-columns: minmax(0, 1fr); }
  .sectors__in { margin-inline: 18px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .hero__facts b { font-size: 20px; }
  .hero__facts span { font-size: 13px; }
  .sec-head { margin-bottom: 32px; gap: 16px; }
  .work__grid { grid-template-columns: minmax(0, 1fr); }
  .svc, .studio__grid, .book__grid, .faq__grid, .close__inner, .foot__row { grid-template-columns: minmax(0, 1fr); }
  .svc__img, .svc__copy, .svc--flip .svc__img, .svc--flip .svc__copy { grid-column: 1; grid-row: auto; }
  .why { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .flow { grid-template-columns: minmax(0, 1fr); }
  .lead-form { margin-inline: -6px; padding: 24px 18px; }
  .opts, .opts--3 { grid-template-columns: minmax(0, 1fr); }
  .form-nav .btn { flex: 1; }
  .foot__nav, .foot__contact { grid-column: 1; }
  .foot { padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- inner pages (thank you, legal) ---------- */
.page { padding-block: clamp(48px, 7vw, 96px) var(--section); }
.page__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.page__body { grid-column: 4 / 11; display: grid; gap: 18px; }
.page__body h1 { font-size: var(--fs-h2); line-height: 1; font-weight: 800; letter-spacing: -.045em; }
.page__body h2 { font-size: 22px; margin-top: 22px; }
.page__body p, .page__body li { color: var(--ink-2); }
.page__body ul { display: grid; gap: 8px; padding-left: 20px; list-style: disc; }
.page__date { font-size: 14px; color: var(--ink-2); }
.page + .foot .foot__legal, .thanks + .foot .foot__legal { margin-top: 0; padding-top: 0; border-top: 0; }
.thanks { min-height: calc(100svh - 76px); display: grid; align-items: center; padding-block: 40px 72px; background: var(--black); color: var(--on-dark); }
.thanks__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: end; }
.thanks__copy { grid-column: 1 / 8; display: grid; gap: 24px; justify-items: start; }
.thanks__copy h1 { font-size: var(--fs-hero); line-height: .94; letter-spacing: -.055em; font-weight: 800; color: var(--on-dark); }
.thanks__copy .lead { color: var(--on-dark-2); }
.thanks .contact-line { color: var(--on-dark-2); }
.thanks .contact-line strong, .thanks .contact-line a { color: var(--on-dark); }
.thanks .btn--ghost { color: var(--on-dark); border-color: rgba(255, 255, 255, .32); }
.thanks .btn--ghost:hover { border-color: var(--on-dark); }
.thanks__char { grid-column: 9 / 13; justify-self: end; width: min(100%, 360px); }
.thanks__card { width: 100%; max-width: 480px; border-radius: var(--r-lg); align-self: center; }
.js .thanks__copy > * { animation: fadeUp .7s var(--ease) both; }
.js .thanks__copy > :nth-child(2) { animation-delay: .08s; }
.js .thanks__copy > :nth-child(3) { animation-delay: .16s; }
.js .thanks__char { animation: fadeUp .8s var(--ease) .2s both; }
@media (max-width: 720px) {
  .page__body, .thanks__copy, .thanks__char { grid-column: 1 / -1; }
  .page__grid, .thanks__grid { grid-template-columns: minmax(0, 1fr); }
  .thanks__copy h1 { font-size: 12vw; }
  .thanks__char { width: 56%; }
}
