/* ==========================================================================
   ZENITH — static build (spec v1)
   Tokens → base → layout → components → sections → motion → responsive
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Brand palette (from zenith.lv original) */
  --c-navy: #00131B;          /* dark screens, ink on light */
  --c-navy-2: #002D40;        /* surfaces, glow */
  --c-ice: #EAF2F5;           /* text on dark, light screens */
  --c-ice-2: #D3E1E7;         /* image placeholders on light */
  --c-mute-d: #9FB4BD;        /* secondary text on dark  (8.7:1) */
  --c-body-d: #B6C7CE;        /* body copy on dark */
  --c-mute-l: #4F6670;        /* secondary text on light (5.3:1) */
  --c-red: #EE334E;           /* brand accent: logo, primary CTA, stars */

  --line-d: rgba(234, 242, 245, .24);
  --line-d-soft: rgba(234, 242, 245, .12);
  --line-l: rgba(0, 19, 27, .14);
  --field: rgba(0, 45, 64, .5);
  --glow: rgba(238, 51, 78, .6);
  --glow-soft: rgba(238, 51, 78, .18);
  --ghost-bg: rgba(238, 51, 78, .08);

  /* Type */
  --f-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, "Helvetica Neue", Arial, sans-serif;
  --f-mono: ui-monospace, "SF Mono", Menlo, monospace;
  --f-logo: "Exo 2", sans-serif;

  /* Layout */
  --max: 1240px;
  --gut: 40px;
  --radius: 20px;

  /* Motion */
  --t-ui: 200ms;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--c-navy);
  color: var(--c-ice);
  font-family: var(--f-sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
html, main > section, main + section { overflow-x: clip; } /* entering animations never cause sideways scroll */
a { color: inherit; }
a:hover { opacity: .75; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 12px 16px; background: var(--c-ice); color: var(--c-navy); }
.skip-link:focus { left: 16px; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.from-7 { grid-column: 7 / span 6; }

.screen-dark { background: var(--c-navy); color: var(--c-ice); }
.screen-light { background: var(--c-ice); color: var(--c-navy); }
.screen-dark .muted { color: var(--c-mute-d); }
.screen-light .muted { color: var(--c-mute-l); }
.screen-dark a:hover { opacity: 1; color: var(--c-red); }
.screen-pad { padding: 96px 0; }

/* ---------- Typography helpers ---------- */
.eyebrow { font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: .14em; text-transform: uppercase; }
.h-display { font-size: 4rem; line-height: 1; font-weight: 600; letter-spacing: -.045em; }
.h-xl { font-size: 4.5rem; line-height: .98; font-weight: 600; letter-spacing: -.05em; }
.lead { font-size: 1.125rem; line-height: 1.5; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 0 26px;
  border-radius: 999px; border: 1px solid currentColor;
  font: inherit; font-size: 1rem; font-weight: 600;
  text-decoration: none; cursor: pointer;
  transition: background-color var(--t-ui) ease-out, color var(--t-ui) ease-out, border-color var(--t-ui) ease-out, box-shadow var(--t-ui) ease-out;
}
.btn:hover { opacity: 1; }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 0.9375rem; }
.btn--md { min-height: 46px; font-size: 0.9375rem; }

.screen-dark .btn--primary { background: var(--c-red); color: var(--c-navy); border-color: var(--c-red); }
.screen-dark .btn--primary:hover { background: transparent; color: var(--c-ice); box-shadow: 0 10px 30px -10px var(--glow); }
.screen-light .btn--primary { background: var(--c-navy); color: var(--c-ice); border-color: var(--c-navy); }
.screen-light .btn--primary:hover { background: transparent; color: var(--c-navy); }

.btn--ghost { background: transparent; }
.screen-dark .btn--ghost { border-color: var(--line-d); color: var(--c-ice); }
.screen-dark .btn--ghost:hover { background: var(--ghost-bg); border-color: var(--c-red); color: var(--c-ice); }
.screen-light .btn--ghost:hover { background: var(--c-navy); color: var(--c-ice); }

.link-btn { min-height: 44px; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(0, 19, 27, .72);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(234, 242, 245, .07);
}
.site-header__row { display: flex; align-items: center; gap: 20px 26px; min-height: 72px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; margin-right: auto; text-decoration: none; color: var(--c-ice); }
.main-nav { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; font-size: 0.9375rem; }
.main-nav a { text-decoration: none; }
.main-nav a[aria-current="page"] { font-weight: 600; }
.main-nav__cta { display: none; }
.nav-toggle {
  display: none; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 16px;
  border: 1px solid var(--line-d); border-radius: 999px;
  background: transparent; color: var(--c-ice);
  font: inherit; font-size: 0.9375rem; cursor: pointer;
}
.nav-toggle:hover { border-color: var(--c-ice); }

/* Language dropdown */
.lang { position: relative; }
.lang__btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 14px;
  border: 1px solid var(--line-d); border-radius: 999px;
  background: transparent; color: var(--c-ice);
  font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: .12em;
  cursor: pointer; transition: border-color var(--t-ui) ease-out;
}
.lang__btn:hover { border-color: var(--c-ice); }
.lang__btn svg { transition: transform var(--t-ui) ease-out; }
.lang__btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.lang__menu {
  position: absolute; right: 0; top: calc(100% + 8px);
  min-width: 180px; margin: 0; padding: 6px; list-style: none;
  background: var(--c-navy-2); border: 1px solid var(--line-d); border-radius: 14px;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6);
}
.lang__menu[hidden] { display: none; }
.lang__menu a {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 44px; padding: 0 12px; border-radius: 10px;
  text-decoration: none; font-size: 0.9375rem;
}
.lang__menu a:hover, .lang__menu a:focus-visible { background: rgba(234, 242, 245, .08); opacity: 1; color: var(--c-ice); }
.lang__menu a[aria-current="true"]::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c-red); }
.lang__code { font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: .12em; color: var(--c-mute-d); }

/* Side screen navigation (desktop) */
.side-nav {
  position: fixed; right: 22px; top: 50%; transform: translateY(-50%); z-index: 30;
  display: flex; flex-direction: column; gap: 6px;
  mix-blend-mode: difference; color: #FFFFFF;
}
.side-nav a { display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-height: 28px; text-decoration: none; }
.side-nav a:hover { opacity: 1; color: #FFFFFF; }
.side-nav__label { font-family: var(--f-mono); font-size: 0.6875rem; letter-spacing: .12em; text-transform: uppercase; opacity: 0; transform: translateX(6px); transition: opacity var(--t-ui), transform var(--t-ui); }
.side-nav a:hover .side-nav__label,
.side-nav a:focus-visible .side-nav__label,
.side-nav a[aria-current="true"] .side-nav__label { opacity: 1; transform: none; }
.side-nav__dot { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid #FFFFFF; }
.side-nav a[aria-current="true"] .side-nav__dot { background: #FFFFFF; }

/* ---------- Screen 1 — Hero ---------- */
.hero {
  position: relative; min-height: 860px; overflow: hidden;
  background: radial-gradient(1200px 700px at 72% 50%, rgba(0, 45, 64, .9), rgba(0, 19, 27, 0) 70%), var(--c-navy);
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero__copy { position: relative; z-index: 2; padding-top: 120px; padding-bottom: 140px; pointer-events: none; }
.hero__copy a { pointer-events: auto; }
.hero__title { margin-top: 36px; max-width: 620px; font-size: 3.25rem; line-height: 1.02; font-weight: 600; letter-spacing: -.035em; }
.hero__text { margin-top: 26px; max-width: 470px; font-size: 1.25rem; line-height: 1.5; }
.hero__text a { color: var(--c-ice); }
.hero__cta { margin-top: 34px; }
.hero__label { position: absolute; z-index: 2; right: 108px; bottom: 44px; text-align: right; pointer-events: none; }
.hero__shape { margin-top: 6px; font-size: 1.625rem; font-weight: 600; letter-spacing: -.02em; }
.hero__note { margin-top: 4px; font-size: 0.9375rem; }

/* ---------- Screen 2 — Featured project ---------- */
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }
.section-head a { font-weight: 600; }
.feature { align-items: center; }
.feature__body { display: flex; flex-direction: column; gap: 18px; }
.feature__title { font-size: 4.5rem; line-height: .95; font-weight: 600; letter-spacing: -.05em; }
.feature__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 8px; }
.feature__all { font-weight: 600; }

/* Tablet that drops into place on scroll (transparent PNG, no card) */
.tablet { position: relative; display: block; padding: 40px 0 56px; text-decoration: none; }
.tablet:hover { opacity: 1; }
.tablet__img {
  position: relative; z-index: 1; display: block;
  transform: translate3d(0, var(--ty, 0px), 0) rotate(var(--rot, 0deg));
  transform-origin: 60% 80%;
  will-change: transform;
}
.tablet__img img {
  width: 100%; height: auto;
  /* soften the edges where the source photo crops the device */
  -webkit-mask-image: linear-gradient(to right, #000 90%, transparent), linear-gradient(to bottom, #000 90%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, #000 90%, transparent), linear-gradient(to bottom, #000 90%, transparent);
  mask-composite: intersect;
}
.tablet__shadow {
  position: absolute; left: 12%; right: 12%; bottom: 30px; height: 40px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 19, 27, .18), rgba(0, 19, 27, 0));
  opacity: var(--sh, 1); transform: scaleX(var(--shx, 1));
}

.shot { display: block; overflow: hidden; border-radius: var(--radius); background: var(--c-ice-2); aspect-ratio: 16 / 10; }
.shot--wide { aspect-ratio: 16 / 9; }
.shot img { width: 100%; height: 115%; object-fit: cover; }
.shot--wide img, .shot--static img { height: 100%; }
.shot--placeholder { display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; font-size: 0.9375rem; color: var(--c-mute-l); }

/* ---------- Screen 3 — Directions accordion ---------- */
.directions__head { margin-bottom: 40px; align-items: end; }
.accordion { border-top: 1px solid rgba(234, 242, 245, .18); }
.accordion__item { border-bottom: 1px solid var(--line-d-soft); }
.accordion__item h3 { margin: 0; }
.accordion__btn {
  width: 100%; min-height: 92px;
  display: flex; align-items: center; gap: 26px;
  padding: 20px 8px; border: 0; background: transparent;
  color: var(--c-ice); text-align: left; cursor: pointer; font: inherit;
  transition: background-color var(--t-ui) ease-out;
}
.accordion__btn:hover { background: rgba(234, 242, 245, .04); }
.accordion__num { width: 32px; }
.accordion__title { flex: 1 1 auto; font-size: 2.125rem; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.accordion__sign { width: 30px; font-size: 1.875rem; font-weight: 300; text-align: center; }
.accordion__panel { display: flex; flex-wrap: wrap; gap: 20px 48px; align-items: end; padding: 0 8px 34px 99px; }
.accordion__panel[hidden] { display: none; }
.accordion__panel p { flex: 1 1 360px; max-width: 620px; font-size: 1.125rem; line-height: 1.55; }
.accordion__actions { display: flex; gap: 10px; flex-wrap: wrap; }

.star { flex: none; width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid var(--line-d); transition: all .3s ease-out; }
.accordion__btn:hover .star,
.accordion__btn[aria-expanded="true"] .star { background: var(--c-red); border-color: var(--c-red); box-shadow: 0 0 0 6px var(--glow-soft); }

/* ---------- Screen 4 — Studio ---------- */
.studio { display: flex; flex-direction: column; gap: 56px; }
.studio__title { max-width: 980px; font-size: 3.5rem; line-height: 1.02; font-weight: 600; letter-spacing: -.04em; }
.facts { display: flex; flex-direction: column; border-top: 1px solid var(--line-l); }
.fact { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: baseline; padding: 28px 0; border-bottom: 1px solid var(--line-l); text-decoration: none; }
.fact--center { align-items: center; gap: 18px 32px; }
.fact__label { min-width: 240px; }
.fact__text { flex: 1 1 420px; font-size: 1.375rem; font-weight: 500; line-height: 1.35; }
.fact__text--strong { font-weight: 600; }
.fact__text--sm { flex-basis: 320px; font-size: 1.25rem; font-weight: 400; line-height: 1.4; }
.fact__link { font-weight: 600; }
.play {
  flex: none; width: 56px; height: 56px; border-radius: 50%;
  border: 1px solid var(--c-navy); background: transparent; color: var(--c-navy);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background-color var(--t-ui), color var(--t-ui);
}
.play:hover { background: var(--c-navy); color: var(--c-ice); }
.play .icon-pause { display: none; }
.play[aria-pressed="true"] .icon-play { display: none; }
.play[aria-pressed="true"] .icon-pause { display: block; }
.note-sm { font-size: 0.875rem; }

/* ---------- Screen 5 — Form ---------- */
.contact__text { margin-top: 24px; max-width: 400px; font-size: 1.125rem; line-height: 1.5; }
.form { display: flex; flex-direction: column; gap: 18px; }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 0.875rem; font-weight: 600; }
.field__input {
  width: 100%; min-height: 54px; padding: 0 20px;
  border-radius: 14px; border: 1px solid var(--line-d);
  background: var(--field); color: var(--c-ice);
  font: inherit; font-size: 1.0625rem;
  transition: border-color var(--t-ui) ease-out;
}
.field__input:hover { border-color: var(--c-mute-d); }
.field__input:focus { border-color: var(--c-red); }
textarea.field__input { min-height: 132px; padding: 14px 20px; resize: vertical; line-height: 1.5; }
select.field__input option { color: var(--c-navy); }
.form__more[hidden] { display: none; }
.form__consent { font-size: 0.875rem; }
.form .btn { align-self: flex-start; }
.form[hidden] { display: none; }
/* Success state takes the full size of the form block */
.form-success {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 18px;
  min-height: 420px; padding: 48px;
  border: 1px solid var(--line-d); border-radius: var(--radius);
  background: radial-gradient(600px 300px at 80% 0%, rgba(0, 45, 64, .9), rgba(0, 19, 27, 0) 70%);
}
.form-success[hidden] { display: none; }
.form-success__mark { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--c-red); color: var(--c-navy); }
.form-success__title { font-size: 2.75rem; line-height: 1; font-weight: 600; letter-spacing: -.035em; }
.form-success p { max-width: 460px; }
.form-success .btn { margin-top: 8px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid rgba(234, 242, 245, .08); }
.site-footer__row { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; padding-top: 48px; padding-bottom: 40px; }
.footer-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px 40px; flex: 0 1 640px; font-size: 0.9375rem; }
.footer-meta { display: flex; flex-direction: column; gap: 8px; font-size: 0.875rem; }

/* ---------- Portfolio ---------- */
.breadcrumbs { padding-top: 28px; }
.portfolio { padding: 80px 0 120px; }
.timeline-item { display: grid; grid-template-columns: 72px minmax(0, 1fr); column-gap: 24px; }
.timeline { position: relative; }
.timeline__track { position: absolute; top: 8px; bottom: 8px; left: 0; width: 72px; display: flex; justify-content: center; }
.timeline__line { position: relative; width: 1px; height: 100%; background: var(--line-l); }
.timeline__fill { position: absolute; inset: 0; background: var(--c-red); transform-origin: top; }
.timeline__list { display: flex; flex-direction: column; gap: 120px; }
.timeline__star-cell { display: flex; justify-content: center; padding-top: 12px; }
.timeline .star { background: var(--c-ice); border-color: rgba(0, 19, 27, .35); }
.case:hover .star { background: var(--c-red); border-color: var(--c-red); box-shadow: 0 0 0 6px var(--glow-soft); }
.case__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.case__title-row { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.case__title { font-size: 2.5rem; line-height: 1.1; font-weight: 600; letter-spacing: -.03em; }
.case__cat { font-size: 0.9375rem; }
.case__open { font-weight: 600; text-decoration: none; }
.arrow { display: inline-block; transition: transform .25s ease-out; }
.case:hover .arrow { transform: translateX(6px); }
.case .shot img { transition: transform .8s var(--ease-out); }
.case:hover .shot img { transform: scale(1.03); }
.case__text { margin-top: 28px; max-width: 720px; font-size: 1.125rem; line-height: 1.55; }
.case__meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px 24px; margin: 24px 0 0; padding-top: 18px; border-top: 1px solid var(--line-l); }
.case__meta dd { margin: 6px 0 0; }
.earlier-head { margin-top: 140px; margin-bottom: 56px; }

/* Portfolio filter */
.filter-row { margin-bottom: 72px; }
.filter { display: flex; flex-wrap: wrap; gap: 10px; }
.filter__chip {
  min-height: 44px; padding: 0 18px;
  border: 1px solid var(--line-l); border-radius: 999px;
  background: transparent; color: var(--c-navy);
  font: inherit; font-size: 0.9375rem; font-weight: 500; cursor: pointer;
  transition: background-color var(--t-ui) ease-out, color var(--t-ui) ease-out, border-color var(--t-ui) ease-out;
}
.filter__chip:hover { border-color: var(--c-navy); }
.filter__chip[aria-pressed="true"] { background: var(--c-navy); color: var(--c-ice); border-color: var(--c-navy); }
.filter__chip[data-filter-value="liaa"][aria-pressed="false"]::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--c-red); vertical-align: 2px; }
.filter__count { margin-top: 16px; font-size: 0.875rem; }
.filter__empty { padding: 40px 0 0 96px; font-size: 1.125rem; }
.timeline[hidden] + .earlier-head { margin-top: 0; }
.earlier-head__inner { border-top: 2px solid var(--c-navy); padding-top: 24px; }
.earlier-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 40px; }
.earlier { display: flex; flex-direction: column; gap: 16px; }
.earlier__row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; }
.earlier__title { font-size: 1.625rem; font-weight: 600; letter-spacing: -.02em; }
.cta-band { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: end; padding-top: 104px; padding-bottom: 104px; }
.cta-band h2 { font-size: 3.5rem; line-height: 1; font-weight: 600; letter-spacing: -.045em; }


/* ---------- About ---------- */
.about-hero {
  position: relative; min-height: 720px; overflow: hidden;
  background: radial-gradient(1100px 650px at 76% 45%, rgba(0, 45, 64, .9), rgba(0, 19, 27, 0) 70%), var(--c-navy);
}
.about-hero__copy { position: relative; z-index: 2; padding-top: 40px; padding-bottom: 120px; pointer-events: none; }
.about-hero__copy a { pointer-events: auto; }
.about-hero__title { margin-top: 120px; max-width: 640px; font-size: 4rem; line-height: 1; font-weight: 600; letter-spacing: -.045em; }
.about-hero__lead { margin-top: 28px; max-width: 560px; font-size: 1.25rem; line-height: 1.5; }
.about-h2 { max-width: 760px; margin-bottom: 56px; }

.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; border-top: 1px solid var(--line-l); padding-top: 40px; }
.principle { display: flex; flex-direction: column; gap: 14px; }
.principle__title { font-size: 1.625rem; line-height: 1.15; font-weight: 600; letter-spacing: -.02em; }
.principle__text { font-size: 1.0625rem; line-height: 1.6; }
.star--lit { background: var(--c-red); border-color: var(--c-red); box-shadow: 0 0 0 6px var(--glow-soft); }

.skills { align-items: start; }
.skills__intro { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; position: sticky; top: 120px; }
.skills__list { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(234, 242, 245, .18); }
.skill { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 24px; padding: 22px 0; border-bottom: 1px solid var(--line-d-soft); text-decoration: none; }
.skill__name { font-size: 1.625rem; font-weight: 600; letter-spacing: -.02em; transition: transform var(--t-ui) ease-out; }
.skill__note { font-size: 0.9375rem; }
.skill:hover { opacity: 1; }
.skill:hover .skill__name { transform: translateX(8px); color: var(--c-red); }

.team__head { align-items: end; margin-bottom: 48px; }

.about-proof { padding-bottom: 96px; }
.proof { border-top: 2px solid var(--c-navy); }
.proof__row { display: grid; grid-template-columns: 260px minmax(0, 1fr) minmax(0, 1.2fr) 32px; gap: 24px; align-items: baseline; padding: 28px 0; border-bottom: 1px solid var(--line-l); text-decoration: none; }
.proof__row:hover { opacity: 1; }
.proof__row:hover .arrow { transform: translateX(6px); }
.proof__tag { color: var(--c-mute-l); }
.proof__name { font-size: 1.625rem; font-weight: 600; letter-spacing: -.02em; }
.proof__text { font-size: 1rem; line-height: 1.5; }

.soundia .grid-12 { align-items: center; }
.soundia__copy { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.soundia__visual { display: flex; flex-direction: column; gap: 24px; }
.soundia__photo { aspect-ratio: 16 / 10; border-radius: var(--radius); background: var(--c-navy-2); display: flex; align-items: center; justify-content: center; color: var(--c-mute-d); font-size: 0.9375rem; }
.soundia__wave { width: 100%; height: 80px; }
.cta-section { border-top: 1px solid rgba(234, 242, 245, .08); }



/* Partner banners — white block with two image slots */
.banners { background: #FFFFFF; padding: 64px 0; }
.banners__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.banner-slot { display: flex; align-items: center; justify-content: center; min-height: 180px; border: 1px dashed var(--line-l); border-radius: 12px; }
.banner-slot:has(img) { border: 0; }
.banner-slot img { max-width: 100%; max-height: 180px; width: auto; height: auto; }

/* ---------- Text pages (privacy, cookies, terms) ---------- */
.doc-head { padding: 72px 0 64px; }
.doc-head__title { margin-top: 28px; font-size: 4rem; line-height: 1; font-weight: 600; letter-spacing: -.045em; }
.doc-head__meta { margin-top: 20px; }
.doc { padding: 72px 0 120px; }
.doc__layout { display: grid; grid-template-columns: 260px minmax(0, 720px); gap: 80px; }
.toc { position: sticky; top: 104px; align-self: start; }
.toc__title { margin-bottom: 14px; }
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; border-left: 1px solid var(--line-l); }
.toc li { counter-increment: toc; }
.toc a { display: block; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 2px solid transparent; font-size: 0.875rem; line-height: 1.4; color: var(--c-mute-l); text-decoration: none; }
.toc a::before { content: counter(toc) ". "; }
.toc a:hover, .toc a[aria-current="true"] { color: var(--c-navy); border-left-color: var(--c-red); opacity: 1; }
.prose { font-size: 1.125rem; line-height: 1.7; color: var(--c-navy); }
.prose > * + * { margin-top: 18px; }
.prose h2 { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-l); font-size: 1.75rem; line-height: 1.2; font-weight: 600; letter-spacing: -.02em; scroll-margin-top: 96px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 32px; font-size: 1.25rem; font-weight: 600; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--c-red); }
.prose a { text-decoration-color: var(--c-red); text-underline-offset: 3px; }
.prose strong { font-weight: 600; }
.prose .lead-p { font-size: 1.3125rem; line-height: 1.55; }
.prose .note { padding: 20px 24px; border-radius: 14px; background: var(--c-ice-2); font-size: 1rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line-l); border-radius: 14px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.5; }
.prose th, .prose td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-l); }
.prose th { font-family: var(--f-mono); font-size: 0.6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--c-mute-l); font-weight: 500; }
.prose tr:last-child td { border-bottom: 0; }

/* ---------- 404 ---------- */
.notfound { position: relative; min-height: calc(100vh - 73px); display: flex; align-items: center; overflow: hidden;
  background: radial-gradient(900px 600px at 70% 50%, rgba(0, 45, 64, .9), rgba(0, 19, 27, 0) 70%), var(--c-navy); }
.notfound__copy { position: relative; z-index: 2; pointer-events: none; padding-top: 80px; padding-bottom: 80px; }
.notfound__copy a { pointer-events: auto; }
.notfound__code { font-size: 11.25rem; line-height: .85; font-weight: 600; letter-spacing: -.06em; }
.notfound__title { margin-top: 24px; font-size: 2.5rem; line-height: 1.1; font-weight: 600; letter-spacing: -.03em; }
.notfound__actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }


/* ---------- Laravel views: shared bits ---------- */
.form__errors { padding: 12px 16px; border-radius: 12px; background: rgba(238, 51, 78, .14); color: var(--c-ice); font-size: 0.9375rem; }
.field__error { font-size: 0.875rem; color: #FF8A9A; }
.field__input[aria-invalid="true"] { border-color: var(--c-red); }
.lang__off { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 44px; padding: 0 12px; font-size: 0.9375rem; color: var(--c-mute-d); opacity: .6; cursor: not-allowed; }
.doc-head__lead { margin-top: 20px; max-width: 720px; font-size: 1.25rem; line-height: 1.5; }
.lead-xl { font-size: 1.5rem; line-height: 1.45; max-width: 860px; }

/* Case page */
.case-page__head { padding-top: 48px; padding-bottom: 40px; }
.case-page__title { font-size: 6rem; line-height: .9; font-weight: 600; letter-spacing: -.05em; }
.case-page__meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 0; margin: 32px 0 0; border-top: 2px solid var(--c-navy); }
.case-page__meta > div { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line-l); }
.case-page__meta dd { margin: 6px 0 0; font-weight: 600; }
.shot--hero { aspect-ratio: 21 / 9; }
.shot--hero img { height: 100%; }
.case-page__body { padding-top: 64px; padding-bottom: 16px; display: flex; flex-direction: column; gap: 56px; }
.case-block { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 40px; border-top: 1px solid var(--line-l); padding-top: 28px; }
.case-block__title { font-size: 1.75rem; font-weight: 600; letter-spacing: -.02em; }
.case-metric { margin-top: 64px; padding: 96px 0; }
.case-metric__value { font-size: 10rem; line-height: .85; font-weight: 600; letter-spacing: -.06em; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; padding-top: 64px; }
.gallery__item { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.gallery__item .shot img { height: 100%; }
.related { padding-top: 80px; padding-bottom: 96px; }
.related__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); margin-top: 24px; border-top: 2px solid var(--c-navy); }
.related__item { display: flex; flex-direction: column; gap: 8px; padding: 24px 24px 24px 0; border-bottom: 1px solid var(--line-l); text-decoration: none; }
.related__name { font-size: 1.625rem; font-weight: 600; letter-spacing: -.02em; }
.earlier__link { display: block; text-decoration: none; }
.earlier__title a { text-decoration: none; }

/* Services */
.service-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--c-navy); }
.service-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.4fr) 32px; gap: 24px; align-items: baseline; padding: 28px 0; border-bottom: 1px solid var(--line-l); text-decoration: none; }
.service-row:hover { opacity: 1; }
.service-row:hover .arrow { transform: translateX(6px); }
.service-row__title { font-size: 1.75rem; font-weight: 600; letter-spacing: -.02em; }
.service-list__extra { display: flex; gap: 32px; margin-top: 32px; font-weight: 600; }
.service-page { align-items: start; }
.from-9 { grid-column: 9 / span 4; }
.service-aside { position: sticky; top: 104px; }
.service-aside__box { display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: var(--radius); background: var(--c-navy); color: var(--c-ice); }
.service-aside__title { font-size: 1.375rem; font-weight: 600; line-height: 1.25; }
.service-aside__box .btn--primary { background: var(--c-red); color: var(--c-navy); border-color: var(--c-red); align-self: flex-start; }
.research-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.research-card { display: flex; flex-direction: column; gap: 14px; padding-top: 24px; border-top: 2px solid var(--c-navy); }
.research-card__title { font-size: 1.75rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }

/* LIAA & support */
.support-stages { align-items: start; }
.span-6 { grid-column: span 6; }
.stage { border-top: 2px solid var(--c-navy); padding-top: 24px; }
.stage__title { margin: 12px 0 16px; font-size: 2rem; font-weight: 600; letter-spacing: -.03em; }
.stage__list { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 0; }
.stage__list li { padding: 12px 0; border-bottom: 1px solid var(--line-l); font-size: 1.0625rem; }
.stage__list li::marker { color: var(--c-red); font-weight: 600; }
.programmes { display: grid; gap: 24px; margin-top: 24px; }
.programme { padding: 32px; border-radius: var(--radius); background: #FFFFFF; border: 1px solid var(--line-l); display: flex; flex-direction: column; gap: 12px; }
.programme__name { font-size: 2rem; font-weight: 600; letter-spacing: -.03em; }
.programme__meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 16px 32px; margin: 8px 0 0; }
.programme__meta dd { margin: 6px 0 0; }

/* Initiatives */
.initiative-facts { margin: 0; display: flex; flex-direction: column; gap: 18px; }
.initiative-facts dd { margin: 6px 0 0; font-size: 0.9375rem; line-height: 1.5; }
.funding { display: flex; gap: 20px; align-items: center; margin-top: 48px; padding: 20px 24px; border-radius: 14px; background: #FFFFFF; border: 1px solid var(--line-l); }
.funding__logo { max-height: 56px; width: auto; }
.funding__text { font-size: 0.875rem; line-height: 1.5; color: var(--c-mute-l); }
.soundia__photo--img { overflow: hidden; }
.soundia__photo--img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Motion ---------- */
@keyframes in-bottom { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes in-right { from { transform: translateX(80px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes in-left { from { transform: translateX(-80px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes parallax { from { transform: translateY(-6%); } to { transform: translateY(0); } }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

@media (prefers-reduced-motion: no-preference) {
  .anim-in-bottom { animation: in-bottom 900ms var(--ease-out) both; animation-delay: 450ms; }
  @supports (animation-timeline: view()) {
    .reveal-right { animation: in-right linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
    .reveal-left { animation: in-left linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
    .reveal-bottom { animation: in-bottom linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
    .shot--parallax img { animation: parallax linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
    .timeline__fill { animation: grow linear both; animation-timeline: view(); animation-range: cover 10% cover 90%; }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Accessibility panel: "Stop animations" also stops scroll-driven effects */
html.a11y-no-motion .reveal-right, html.a11y-no-motion .reveal-left, html.a11y-no-motion .reveal-bottom,
html.a11y-no-motion .anim-in-bottom, html.a11y-no-motion .shot--parallax img, html.a11y-no-motion .timeline__fill,
html.a11y-no-motion .seal-ring { animation: none !important; }
html.a11y-no-motion .tablet__img { transform: none !important; }

/* Accessibility panel: colour themes — drop decorative gradients and the star field so contrast stays pure */
html.a11y-mode-universal[class*="a11y-theme-"] body *:not(a11y-widget) { background-image: none !important; }
html[class*="a11y-theme-"] .hero__canvas, html[class*="a11y-theme-"] .tablet__shadow { display: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  :root { --gut: 20px; }
  .grid-12 { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .grid-12 > * { grid-column: auto; }
  .side-nav { display: none; }
  .hero { min-height: 900px; }
  .hero__copy { padding-top: 56px; }
  .hero__title { font-size: 2.5rem; }
  .hero__label { left: 20px; right: 96px; bottom: 28px; text-align: left; }
  .screen-pad { padding: 72px 0; }
  .h-display, .feature__title { font-size: 2.75rem; }
  .tablet { padding: 8px 0 32px; }
  .form-success { min-height: 340px; padding: 32px; }
  .form-success__title { font-size: 2.125rem; }
  .h-xl { font-size: 3rem; }
  .studio__title { font-size: 2.25rem; }
  .accordion__title { font-size: 1.5rem; }
  .accordion__btn { gap: 16px; }
  .accordion__panel { padding-left: 8px; }
  .fact__label { min-width: 0; }
  .timeline-item { grid-template-columns: 28px minmax(0, 1fr); column-gap: 14px; }
  .case__title { font-size: 1.875rem; }
  .cta-band h2 { font-size: 2.5rem; }

  /* Mobile header: logo · language · Menu; links open as a panel */
  .site-header__row { gap: 12px; }
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .banners__grid { grid-template-columns: minmax(0, 1fr); }
  .banners { padding: 40px 0; }
  .case-page__title { font-size: 3rem; }
  .case-block { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .case-metric__value { font-size: 5rem; }
  .service-row { grid-template-columns: minmax(0, 1fr) 24px; gap: 6px 12px; }
  .service-row > .eyebrow, .service-row__title, .service-row__text { grid-column: 1; }
  .service-row .arrow { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
  .service-aside { position: static; }
  .research-grid { grid-template-columns: minmax(0, 1fr); }
  .lead-xl { font-size: 1.25rem; }
  .about-hero { min-height: 640px; }
  .about-hero__title { margin-top: 64px; font-size: 2.5rem; }
  .principles { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .skills__intro { position: static; }
  .skill__name { font-size: 1.375rem; }
  .proof__row { grid-template-columns: minmax(0, 1fr) 24px; gap: 6px 12px; }
  .proof__tag, .proof__name, .proof__text { grid-column: 1; }
  .proof__row .arrow { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
  .doc-head__title { font-size: 2.5rem; }
  .doc__layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .toc { position: static; }
  .prose { font-size: 1.0625rem; }
  .filter__empty { padding-left: 0; }
  .notfound__code { font-size: 7rem; }
  .notfound__title { font-size: 1.875rem; }
  .main-nav { display: none; order: 5; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 4px 0 16px; font-size: 1.375rem; font-weight: 500; }
  .main-nav a { display: flex; align-items: center; min-height: 56px; border-top: 1px solid var(--line-d-soft); }
  .main-nav__cta { display: flex; color: var(--c-red); }
  .site-header.is-open .main-nav { display: flex; }
}
