/* IT-AL Video — stage light on deep blue. */

@font-face {
  font-family: 'Rubik';
  src: url('fonts/rubik-latin-variable.woff2') format('woff2');
  font-weight: 300 900;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('fonts/ibm-plex-sans-latin-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('fonts/ibm-plex-sans-latin-700.woff2') format('woff2');
  font-weight: 600 700;
  font-display: swap;
}

:root {
  --night: #0e1730;
  --stage: #172445;
  --slate: #2b3b6a;
  --azure: #4a5d96;
  --haze: #8796bb;
  --ice: #b9d7ea;
  --paper: #fdfdfd;

  --text: var(--paper);
  --text-soft: rgb(233 237 245 / .74);
  --line: rgb(185 215 234 / .14);
  --glass: rgb(23 36 69 / .55);
  --glass-strong: rgb(14 23 48 / .82);
  --glow: rgb(135 170 230 / .22);

  --font-display: 'Rubik', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;

  --container: 1240px;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --section: clamp(4.5rem, 10vw, 8.5rem);
  --radius-s: 10px;
  --radius-m: 18px;
  --radius-l: 28px;
  --header-h: 76px;

  --ease-out: cubic-bezier(.2, .8, .2, 1);

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* Anchored sections land with their title just under the header, not with the section's top padding. */
.section[id] { scroll-margin-top: calc(1rem - var(--section)); }

body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.08; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul[role='list'], ol[role='list'] { list-style: none; margin: 0; padding: 0; }

:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; border-radius: 4px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: fixed; left: 1rem; top: -4rem; z-index: 100;
  padding: .75rem 1rem; background: var(--paper); color: var(--night); border-radius: var(--radius-s);
  font-weight: 600; transition: top .2s;
}
.skip-link:focus { top: 1rem; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Buttons ---------- */

.button {
  --b-bg: transparent; --b-fg: var(--paper); --b-border: var(--line);
  display: inline-flex; align-items: center; gap: .6rem;
  min-height: 44px; padding: .6rem 1.15rem;
  border: 1px solid var(--b-border); border-radius: 999px;
  background: var(--b-bg); color: var(--b-fg);
  font: 600 .95rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background-color .25s, box-shadow .35s var(--ease-out), transform .25s var(--ease-out);
}
.button .icon { width: 1.1em; height: 1.1em; transition: transform .3s var(--ease-out); }
.button:hover .icon { transform: translateX(3px); }
.button--lg { min-height: 52px; padding: .8rem 1.5rem; font-size: 1rem; }
.button--light { --b-bg: var(--paper); --b-fg: var(--night); --b-border: var(--paper); }
.button--light:hover { box-shadow: 0 0 0 6px rgb(185 215 234 / .18), 0 10px 40px -10px rgb(185 215 234 / .6); }
.button--ghost { --b-bg: rgb(253 253 253 / .06); --b-border: rgb(253 253 253 / .28); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.button--ghost:hover { --b-bg: rgb(253 253 253 / .14); }
.button--glow { --b-bg: rgb(185 215 234 / .1); --b-border: rgb(185 215 234 / .35); }
.button--glow:hover { --b-bg: var(--paper); --b-fg: var(--night); box-shadow: 0 0 24px -4px rgb(185 215 234 / .7); }

.text-link { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; text-decoration: none; color: var(--ice); }
.text-link:hover .icon { transform: translateX(3px); }
.text-link .icon { transition: transform .3s var(--ease-out); }

.round-arrow {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none;
  border-radius: 50%; border: 1px solid rgb(253 253 253 / .3);
  background: rgb(14 23 48 / .35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  color: var(--paper);
  transition: background-color .3s, color .3s, border-color .3s, transform .4s var(--ease-out);
}
.round-arrow .icon { width: 20px; height: 20px; transition: transform .4s var(--ease-out); }

/* ---------- Header ---------- */

.site-header { position: fixed; inset: 0 0 auto; z-index: 50; }
.site-header__bar {
  position: relative;
  display: flex; align-items: center; gap: 2rem;
  height: var(--header-h);
  padding-inline: var(--gutter);
  transition: background-color .4s, box-shadow .4s, backdrop-filter .4s;
}
.site-header__bar::after {
  content: ''; position: absolute; inset: auto 0 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgb(185 215 234 / .45), transparent);
  opacity: 0; transition: opacity .4s;
}
.site-header__bar::before {
  /* Top scrim keeps the menu readable over bright photos before the glass kicks in. */
  content: ''; position: absolute; inset: 0 0 -40px; z-index: -1; pointer-events: none;
  background: linear-gradient(rgb(14 23 48 / .55), transparent);
  transition: opacity .4s;
}
.site-header.is-scrolled .site-header__bar,
body.menu-open .site-header__bar {
  background: rgb(14 23 48 / .62);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 10px 40px -20px rgb(0 0 0 / .8), 0 1px 30px -8px var(--glow);
}
.site-header.is-scrolled .site-header__bar::after { opacity: 1; }
.site-header.is-scrolled .site-header__bar::before { opacity: 0; }

.site-header__logo { display: block; flex: none; }
.site-header__logo img { height: 44px; width: auto; }

.site-nav { margin-inline: auto; }
.site-nav ul { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  position: relative; display: block; padding: .55rem .9rem; border-radius: 999px;
  font-size: .95rem; font-weight: 600; text-decoration: none; color: var(--text-soft);
  transition: color .2s, background-color .2s;
}
.site-nav a:hover { color: var(--paper); background: rgb(253 253 253 / .07); }
.site-nav a[aria-current='page'], .site-nav a.is-spy { color: var(--paper); }
/* On the home page the dot follows the section in view (site.js), so Home lets go of it meanwhile. */
.site-nav.is-spying a[aria-current='page']:not(.is-spy) { color: var(--text-soft); }
.site-nav.is-spying a[aria-current='page']:not(.is-spy)::after { opacity: 0; }
.site-nav a::after { transition: opacity .3s; }
.site-nav a[aria-current='page']::after, .site-nav a.is-spy::after {
  content: ''; position: absolute; left: 50%; bottom: .2rem; width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%; background: var(--ice); box-shadow: 0 0 10px 2px var(--ice);
}

.site-header__tools { display: flex; align-items: center; gap: 1rem; }
.lang-switch { display: flex; gap: .15rem; list-style: none; margin: 0; padding: 0; font-size: .8rem; font-weight: 600; letter-spacing: .06em; }
.lang-switch a { display: block; padding: .45rem .5rem; text-decoration: none; color: var(--haze); border-radius: 6px; }
.lang-switch a:hover { color: var(--paper); }
.lang-switch a[aria-current] { color: var(--paper); }

.menu-toggle {
  display: none; place-items: center; width: 46px; height: 46px; padding: 0;
  border: 1px solid var(--line); border-radius: 50%; background: rgb(253 253 253 / .06); color: var(--paper); cursor: pointer;
}
.menu-toggle__open, .menu-toggle__close { display: grid; }
.menu-toggle__close,
.menu-toggle[aria-expanded='true'] .menu-toggle__open { display: none; }
.menu-toggle[aria-expanded='true'] .menu-toggle__close { display: grid; }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0; z-index: -1;
  display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
  padding: 2rem var(--gutter) calc(2rem + env(safe-area-inset-bottom));
  background:
    radial-gradient(120% 60% at 100% 0%, rgb(74 93 150 / .45), transparent 60%),
    rgb(14 23 48 / .9);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu nav a {
  display: block; padding: .4rem 0;
  font: 500 clamp(2rem, 9vw, 2.75rem)/1.15 var(--font-display); letter-spacing: -.02em;
  text-decoration: none; color: var(--text-soft);
}
.mobile-menu nav a[aria-current='page'] { color: var(--paper); }
.mobile-menu nav li { opacity: 0; transform: translateY(12px); }
.mobile-menu.is-open nav li { opacity: 1; transform: none; transition: opacity .45s var(--ease-out), transform .45s var(--ease-out); transition-delay: calc(var(--i) * 45ms); }
.mobile-menu__footer { display: grid; gap: .85rem; }
.mobile-menu__footer .lang-switch { gap: .5rem; font-size: .95rem; letter-spacing: 0; margin-bottom: .5rem; }
.mobile-menu__footer .lang-switch a { padding: .5rem .9rem; border: 1px solid var(--line); border-radius: 999px; }
.mobile-menu__footer .lang-switch a[aria-current] { background: var(--paper); color: var(--night); }
.mobile-menu__contact { display: inline-flex; align-items: center; gap: .75rem; color: var(--text-soft); text-decoration: none; }

@media (max-width: 1023px) {
  .site-nav, .site-header__tools > .lang-switch, .site-header__cta { display: none; }
  .menu-toggle { display: grid; }
  .site-header__tools { margin-left: auto; }
  .site-header__logo img { height: 38px; }
  :root { --header-h: 68px; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + 3rem) 0 clamp(4rem, 12vh, 8rem);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.6s ease-in-out; }
.hero__media img.is-active { opacity: 1; }
.hero__media img:first-child { animation: hero-settle 2.4s var(--ease-out) both; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgb(14 23 48 / .25) 0%, rgb(14 23 48 / 0) 30%, rgb(14 23 48 / .55) 68%, var(--night) 100%),
    linear-gradient(90deg, rgb(14 23 48 / .6) 0%, rgb(14 23 48 / 0) 65%);
}
.hero__content { position: relative; }
.hero__title {
  max-width: 14ch;
  font-size: clamp(2.6rem, 7.2vw, 6.25rem);
  line-height: .98; letter-spacing: -.035em; font-weight: 500;
  text-shadow: 0 2px 40px rgb(14 23 48 / .45);
}
.hero__lead { max-width: 38rem; margin-top: 1.5rem; font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: rgb(253 253 253 / .86); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.25rem; }
.hero__lead, .hero__actions { animation: rise .9s var(--ease-out) both; }
/* The title is the LCP element: move it in without hiding it, so it counts as painted at once. */
.hero__title { animation: rise-soft .9s var(--ease-out) both; }
.hero__lead { animation-delay: .12s; }
.hero__actions { animation-delay: .24s; }
.hero__scroll {
  position: absolute; right: var(--gutter); bottom: clamp(4rem, 12vh, 8rem);
  display: grid; place-items: center; width: 48px; height: 48px;
  border: 1px solid rgb(253 253 253 / .3); border-radius: 50%; color: var(--paper);
  animation: bob 2.6s ease-in-out 1.2s infinite;
}
@media (max-width: 700px) { .hero__scroll { display: none; } }

@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes rise-soft { from { transform: translateY(18px); } }
@keyframes hero-settle { from { transform: scale(1.07); filter: brightness(.7); } }
@keyframes bob { 50% { transform: translateY(6px); } }

/* ---------- Sections ---------- */

.section { position: relative; padding-block: var(--section); isolation: isolate; }
.section--deep { background: var(--night); }
.section--lit {
  background:
    radial-gradient(60% 50% at 15% 0%, rgb(74 93 150 / .32), transparent 70%),
    radial-gradient(45% 40% at 95% 30%, rgb(135 170 230 / .1), transparent 70%),
    var(--stage);
}
.section--deep + .section--deep { padding-top: 0; }
.section__head { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; flex-wrap: wrap; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section__head .section__title { margin-bottom: 0; }
.section__title { max-width: 18ch; margin-bottom: clamp(2rem, 4vw, 3.25rem); font-size: clamp(2rem, 4.4vw, 3.5rem); }
.section__title--medium { font-size: clamp(1.6rem, 3vw, 2.4rem); max-width: 24ch; margin-bottom: 1.5rem; }
.section__title--small { font-size: clamp(1.3rem, 2.2vw, 1.75rem); margin-bottom: 2rem; color: var(--text-soft); }

/* Spotlight: cards light up where the pointer is (set by site.js). */
[data-spotlight] { --mx: 50%; --my: 50%; }
[data-spotlight]::after {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgb(185 215 234 / .16), transparent 45%);
  opacity: 0; transition: opacity .35s;
}
[data-spotlight]:hover::after { opacity: 1; }

/* ---------- Service cards (bento) ---------- */

.service-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(.75rem, 1.5vw, 1.25rem); }
.service-card {
  position: relative; isolation: isolate; overflow: hidden;
  grid-column: span 2; aspect-ratio: 4 / 5;
  border-radius: var(--radius-l); background: var(--slate);
  box-shadow: 0 30px 60px -30px rgb(0 0 0 / .7), inset 0 0 0 1px var(--line);
}
.service-card--wide { grid-column: span 3; aspect-ratio: 16 / 10; }
.service-card__link { position: absolute; inset: 0; display: block; color: inherit; text-decoration: none; }
.service-card__media { position: absolute; inset: 0; z-index: -1; }
.service-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out), filter .6s; }
.service-card::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgb(14 23 48 / 0) 35%, rgb(14 23 48 / .9) 100%);
}
.service-card__title {
  position: absolute; inset: auto 0 0; z-index: 1;
  padding: clamp(1.25rem, 2.5vw, 2rem); padding-right: 5.5rem;
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
}
.service-card .round-arrow { position: absolute; right: clamp(1.25rem, 2.5vw, 2rem); bottom: clamp(1.25rem, 2.5vw, 2rem); z-index: 1; }
.service-card:hover .service-card__media img,
.service-card:focus-within .service-card__media img { transform: scale(1.05); }
.service-card:hover .round-arrow,
.service-card:focus-within .round-arrow { background: var(--paper); color: var(--night); border-color: var(--paper); }
.service-card:hover .round-arrow .icon { transform: translateX(2px); }
.service-card:focus-within { outline: 2px solid var(--ice); outline-offset: 3px; }
.service-card__link:focus-visible { outline: none; }

@media (max-width: 899px) {
  .service-grid { grid-template-columns: 1fr 1fr; }
  .service-card, .service-card--wide { grid-column: span 1; aspect-ratio: 4 / 5; }
  .service-card--wide:first-child { grid-column: span 2; aspect-ratio: 16 / 10; }
}
@media (max-width: 599px) {
  .service-grid { grid-template-columns: 1fr; }
  .service-card, .service-card--wide, .service-card--wide:first-child { grid-column: auto; aspect-ratio: 4 / 3; }
}

/* ---------- Expertise: list + lit stage ---------- */

.expertise { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem); align-items: stretch; }
.expertise__stage {
  position: relative; min-height: 18rem; border-radius: var(--radius-l); overflow: hidden;
  background: var(--stage);
  box-shadow: 0 40px 80px -40px rgb(0 0 0 / .8), 0 0 90px -30px rgb(135 170 230 / .35);
}
.expertise__slide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s var(--ease-out); }
.expertise__slide.is-active { opacity: 1; }
.expertise__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.6s var(--ease-out); }
.expertise__slide.is-active img { transform: none; }

.expertise__list { display: grid; gap: .25rem; }
.expertise__item {
  position: relative; display: flex; align-items: center; gap: 1.25rem;
  padding: 1.1rem 1.35rem; border-radius: var(--radius-m);
  transition: background-color .35s, box-shadow .35s;
}
.expertise__item h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
.expertise__item h3 a { text-decoration: none; }
.expertise__item h3 a::before { content: ''; position: absolute; inset: 0; z-index: 1; }
.expertise__item p { margin-top: .3rem; font-size: .92rem; color: var(--text-soft); max-width: 46ch; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.expertise__text { flex: 1; }
.expertise__thumb { display: none; }
.expertise__item .round-arrow { opacity: 0; transform: translateX(-8px); }
.expertise__item.is-active {
  background: linear-gradient(90deg, rgb(74 93 150 / .35), rgb(43 59 106 / .15));
  box-shadow: inset 0 0 0 1px var(--line), 0 20px 50px -30px rgb(135 170 230 / .5);
}
.expertise__item.is-active .round-arrow { opacity: 1; transform: none; }
.expertise__item:focus-within { outline: 2px solid var(--ice); outline-offset: 2px; }
.expertise__item a:focus-visible { outline: none; }

@media (max-width: 899px) {
  .expertise { grid-template-columns: 1fr; }
  .expertise__stage { display: none; }
  .expertise__list { gap: 1rem; }
  .expertise__item { flex-wrap: wrap; padding: 0; background: var(--stage); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
  .expertise__item.is-active { background: var(--stage); }
  .expertise__thumb { display: block; width: 100%; aspect-ratio: 16 / 9; }
  .expertise__thumb img { width: 100%; height: 100%; object-fit: cover; }
  .expertise__text { padding: 1.25rem 0 1.25rem 1.25rem; }
  .expertise__item .round-arrow { opacity: 1; transform: none; margin-right: 1.25rem; }
}

/* ---------- Process ---------- */

.section--process {
  background:
    radial-gradient(70% 90% at 50% 120%, rgb(135 170 230 / .28), transparent 70%),
    linear-gradient(180deg, var(--night), var(--slate));
}
/* Each step sits on its own drawing: 2D plan, 3D model, render. Cards subgrid into two shared
   rows so titles line up even when one text runs a line shorter. */
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  grid-template-rows: minmax(clamp(16rem, 28vw, 22rem), 1fr) auto;
  column-gap: clamp(1rem, 2vw, 1.5rem);
}
.step {
  position: relative; display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 0;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--radius-l); overflow: hidden; isolation: isolate;
  background: linear-gradient(160deg, var(--slate), var(--stage));
  box-shadow: 0 24px 48px -24px rgb(0 0 0 / .6);
}
/* Rounded on its own too: the card's overflow clip alone lets the light drawings fringe the corners. */
.step__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
/* Scrim under the text, with the hairline drawn on it so it sits above the image. ::after is the spotlight. */
.step::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit;
  background: linear-gradient(180deg, rgb(14 23 48 / .04) 18%, rgb(14 23 48 / .7) 50%, rgb(14 23 48 / .95) 76%);
  box-shadow: inset 0 0 0 1px var(--line);
}
.step__title { align-self: end; display: flex; align-items: baseline; gap: .55rem; margin-bottom: .65rem; font-size: 1.5rem; }
.step__number { font-weight: 300; color: var(--ice); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.step p { color: rgb(233 237 245 / .86); font-size: .98rem; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; grid-template-rows: none; row-gap: 1rem; }
  .step { grid-row: auto; grid-template-rows: 1fr auto; min-height: min(30rem, 120vw); }
}

/* ---------- Brands marquee ---------- */

.brands { padding-block: clamp(3.5rem, 7vw, 5.5rem); background: var(--night); overflow: hidden; }
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
/* One track holds the logos twice; sliding it by half loops seamlessly. Spacing sits on each item so both halves are equal. */
.marquee__track { display: flex; width: max-content; align-items: center; animation: marquee 56s linear infinite; will-change: transform; }
/* Decorative only: no hover pause or highlight, and the pointer passes straight through. */
.marquee { pointer-events: none; user-select: none; }
.marquee__item { --logo-h: clamp(34px, 4vw, 52px); display: flex; align-items: center; height: calc(var(--logo-h) * 1.5); margin-right: clamp(3.5rem, 7vw, 6.5rem); }
.marquee__item img { height: calc(var(--logo-h) * var(--logo-scale, 1)); width: auto; filter: brightness(0) invert(1); opacity: .9; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { width: auto; mask-image: none; -webkit-mask-image: none; }
  .marquee__track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; padding: 0 var(--gutter); row-gap: 2rem; }
  .marquee__track .marquee__item[aria-hidden] { display: none; }
}

/* ---------- CTA band ---------- */

.cta-band {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: clamp(5rem, 12vw, 9rem);
  background: radial-gradient(60% 80% at 50% 100%, rgb(135 170 230 / .35), transparent 70%), var(--slate);
  text-align: center;
}
.cta-band__media { position: absolute; inset: 0; z-index: -2; }
.cta-band__media img { width: 100%; height: 100%; object-fit: cover; }
.cta-band.has-image::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(70% 90% at 50% 50%, rgb(23 36 69 / .72), rgb(14 23 48 / .94));
}
.cta-band__inner { display: grid; justify-items: center; gap: 1.25rem; }
.cta-band__title { font-size: clamp(2.2rem, 5.5vw, 4.25rem); max-width: 16ch; letter-spacing: -.03em; }
.cta-band__body { max-width: 36rem; color: var(--text-soft); font-size: 1.1rem; margin-bottom: 1rem; }

/* ---------- Inner page hero ---------- */

.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: calc(var(--header-h) + clamp(3rem, 8vw, 6rem)) 0 clamp(3rem, 6vw, 4.5rem);
  background: radial-gradient(60% 90% at 80% 0%, rgb(74 93 150 / .45), transparent 70%), var(--night);
}
.page-hero--image { min-height: clamp(22rem, 56vh, 36rem); min-height: clamp(22rem, 56svh, 36rem); display: flex; align-items: flex-end; }
.page-hero--image + .section { padding-top: clamp(2.5rem, 5vw, 4rem); }
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; animation: hero-settle 2s var(--ease-out) both; }
.page-hero--image::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgb(14 23 48 / .5) 0%, rgb(14 23 48 / .1) 35%, rgb(14 23 48 / .7) 75%, var(--night) 100%),
    linear-gradient(90deg, rgb(14 23 48 / .55), transparent 70%);
}
.page-hero__title { font-size: clamp(2.25rem, 5vw, 4rem); letter-spacing: -.035em; max-width: 20ch; animation: rise-soft .8s var(--ease-out) both; }
.page-hero__lead { max-width: 40rem; margin-top: 1.25rem; font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: rgb(253 253 253 / .85); animation: rise .8s .1s var(--ease-out) both; }
.page-hero__meta { margin-bottom: 1rem; color: var(--ice); font-weight: 600; }
.page-hero--center { min-height: 80svh; display: grid; place-items: center; text-align: center; }
.page-hero--center .page-hero__content { display: grid; justify-items: center; gap: 1.25rem; }
.page-hero--center .page-hero__title, .page-hero--center .page-hero__lead { margin-inline: auto; }
.page-hero__code {
  font: 300 clamp(6rem, 20vw, 12rem)/1 var(--font-display); letter-spacing: -.06em;
  color: var(--ice); font-variant-numeric: tabular-nums;
}

.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0 0 1.5rem; padding: 0; font-size: .85rem; color: var(--haze); }
.breadcrumb li + li::before { content: '/'; margin-right: .4rem; opacity: .5; }
.breadcrumb a { text-decoration: none; color: var(--text-soft); }
.breadcrumb a:hover { color: var(--paper); }
.breadcrumb [aria-current] { color: var(--paper); }

/* ---------- Content blocks ---------- */

.split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
@media (max-width: 899px) { .split { grid-template-columns: 1fr; } }

.prose { max-width: 44rem; color: var(--text-soft); }
.prose p + p { margin-top: 1.1em; }
.prose--large { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.6; color: rgb(253 253 253 / .86); }
.prose h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); color: var(--paper); margin: 2.2em 0 .7em; }
.prose .section__title { margin-top: 0; }
.prose a { color: var(--ice); }
.prose ul { padding-left: 1.2rem; }
.prose li + li { margin-top: .5em; }
.prose strong { color: var(--paper); }

/* Legal pages: text column + sticky index of the sections. */
.legal { display: grid; grid-template-columns: minmax(0, 44rem) minmax(0, 16rem); justify-content: space-between; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.legal .prose > :first-child { margin-top: 0; }
.legal .prose h2 { scroll-margin-top: calc(var(--header-h) + 1.5rem); }
.legal__toc { position: sticky; top: calc(var(--header-h) + 2rem); padding: 1.25rem 1.4rem; border-radius: var(--radius-m); background: var(--stage); box-shadow: inset 0 0 0 1px var(--line); }
.legal__toc-title { margin-bottom: .75rem; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ice); }
.legal__toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.legal__toc a { font-size: .9rem; color: var(--text-soft); text-decoration: none; }
.legal__toc a:hover { color: var(--paper); }
@media (max-width: 899px) { .legal { grid-template-columns: 1fr; } .legal__toc { display: none; } }
.is-style-notice { padding: 1rem 1.25rem; border-radius: var(--radius-m); background: rgb(185 215 234 / .1); box-shadow: inset 0 0 0 1px var(--line); color: var(--paper); }

.panel {
  position: relative; padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: var(--radius-l);
  background: linear-gradient(160deg, rgb(74 93 150 / .3), rgb(23 36 69 / .5));
  box-shadow: inset 0 0 0 1px var(--line), 0 30px 70px -40px rgb(135 170 230 / .45);
}
.panel__title { font-size: 1.2rem; margin-bottom: 1.25rem; }
.form__note { margin: 0 0 1.25rem; font-size: .92rem; color: var(--text-soft); max-width: 52ch; }
.panel__lead { margin: -.75rem 0 1.5rem; font-size: .95rem; color: var(--text-soft); max-width: 52ch; }

.check-list { display: grid; gap: 1rem; }
.check-list li { display: flex; gap: .85rem; color: var(--text-soft); line-height: 1.5; }
.check-list .icon { margin-top: .15em; color: var(--ice); }

.link-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: clamp(.85rem, 1.5vw, 1.25rem); }
.link-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--radius-m); background: rgb(14 23 48 / .55);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .4s var(--ease-out), box-shadow .4s;
}
.link-card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgb(185 215 234 / .3), 0 30px 60px -30px rgb(135 170 230 / .5); }
.link-card:focus-within { outline: 2px solid var(--ice); outline-offset: 3px; }
.link-card a:focus-visible { outline: none; }
.link-card__media { aspect-ratio: 3 / 2; overflow: hidden; }
.link-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.link-card:hover .link-card__media img { transform: scale(1.05); }
.link-card__body { padding: 1.25rem 1.25rem 4.5rem; }
.link-card__title { font-size: 1.25rem; }
.link-card__title a { text-decoration: none; }
.link-card__title a::before { content: ''; position: absolute; inset: 0; z-index: 3; }
.link-card p { margin-top: .5rem; font-size: .93rem; color: var(--text-soft); }
.link-card .round-arrow { position: absolute; left: 1.25rem; bottom: 1.25rem; width: 38px; height: 38px; }
.link-card:hover .round-arrow { background: var(--paper); color: var(--night); }

/* ---------- Projects ---------- */

.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.project-card { position: relative; overflow: hidden; border-radius: var(--radius-m); background: var(--stage); box-shadow: inset 0 0 0 1px var(--line); }
.project-card__media { aspect-ratio: 4 / 3; overflow: hidden; }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.project-card:hover .project-card__media img { transform: scale(1.05); }
.project-card__body { padding: 1.1rem 1.25rem 1.35rem; }
.project-card__meta { font-size: .85rem; color: var(--ice); margin-bottom: .3rem; }
.project-card__title { font-size: 1.25rem; }
.project-card__title a { text-decoration: none; }
.project-card__title a::before { content: ''; position: absolute; inset: 0; z-index: 3; }
.project-card:focus-within { outline: 2px solid var(--ice); outline-offset: 3px; }

.empty-state {
  display: grid; justify-items: start; gap: 1.5rem; max-width: 40rem;
  padding: clamp(2rem, 5vw, 3.5rem); border-radius: var(--radius-l);
  background: radial-gradient(80% 120% at 0% 0%, rgb(74 93 150 / .35), transparent 70%), var(--stage);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 1.15rem; color: var(--text-soft);
}

.gallery { display: grid; gap: .75rem; }
.gallery__row { display: flex; gap: .75rem; }
.gallery a { display: block; flex: var(--r) 1 0; min-width: 0; overflow: hidden; border-radius: var(--radius-s); aspect-ratio: var(--r); background: var(--night-2, rgb(253 253 253 / .05)); }
.gallery img { display: block; width: 100%; height: 100%; object-fit: cover; transition: opacity .4s var(--ease-out); }
.gallery a:hover img { opacity: .88; }
@media (max-width: 639px) { .gallery__row { flex-direction: column; } .gallery a { flex: none; } }

.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(8 13 28 / .96); color: var(--paper); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: transparent; }
.lightbox img { max-width: min(92vw, 1600px); max-height: 86vh; object-fit: contain; border-radius: var(--radius-s); }
.lightbox button { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 50%; background: rgb(253 253 253 / .08); color: var(--paper); cursor: pointer; }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__nav { top: 50%; margin-top: -24px; }
.lightbox__nav--prev { left: 1rem; }
.lightbox__nav--prev .icon { transform: rotate(180deg); }
.lightbox__nav--next { right: 1rem; }

/* ---------- Contact ---------- */

/* Contact page: short opening so the form starts within the first screen. */
.page-hero--compact { padding-bottom: clamp(1.5rem, 3vw, 2.25rem); }
/* Compact heroes without a lead keep the room of a typical one (2 lines, 3 on phones) so the content below starts at the same height on every page. */
.page-hero--lead-space .page-hero__content::after { content: ''; display: block; height: calc(1.25rem + 2 * 1.65 * clamp(1.05rem, 1.5vw, 1.25rem)); }
@media (max-width: 639px) { .page-hero--lead-space .page-hero__content::after { height: calc(1.25rem + 3 * 1.65 * 1.05rem); } }
.section--flush-top { padding-top: clamp(1rem, 2vw, 1.5rem); }
.contact { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact__channels { display: grid; gap: 1rem; }
.channel {
  position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; row-gap: .15rem; align-items: center;
  padding: 1.1rem 1.35rem; border-radius: var(--radius-m); background: var(--stage); box-shadow: inset 0 0 0 1px var(--line);
}
.channel .icon { grid-row: span 2; width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: rgb(185 215 234 / .12); color: var(--ice); }
.channel__label { font-size: .85rem; color: var(--haze); }
.channel__value { font-size: 1.1rem; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
a.channel__value::before { content: ''; position: absolute; inset: 0; }
@media (max-width: 899px) { .contact { grid-template-columns: 1fr; } }

.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.25rem; }
.field { display: grid; gap: .4rem; font-size: .9rem; color: var(--text-soft); }
.field--full { grid-column: 1 / -1; }
.field input, .field textarea {
  width: 100%; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-s);
  background: rgb(14 23 48 / .6); color: var(--paper); font: inherit; font-size: 1rem;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ice); box-shadow: 0 0 0 4px rgb(185 215 234 / .15); }
.field textarea { resize: vertical; min-height: 9rem; }
.checkbox { display: flex; gap: .75rem; align-items: flex-start; margin-bottom: 1.5rem; font-size: .92rem; color: var(--text-soft); }
.checkbox input { width: 20px; height: 20px; margin-top: .15em; accent-color: var(--ice); }
.checkbox a { color: var(--ice); }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__notice { display: flex; gap: .6rem; align-items: center; padding: .9rem 1.1rem; margin-bottom: 1.25rem; border-radius: var(--radius-s); font-weight: 600; }
.form__notice--ok { background: rgb(120 200 160 / .14); color: #c9f0da; }
.form__notice--error { background: rgb(240 120 120 / .14); color: #ffd1d1; }
@media (max-width: 599px) { .form__grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */

.site-footer { position: relative; overflow: hidden; padding-top: clamp(4rem, 8vw, 6rem); background: #0a1126; color: var(--text-soft); font-size: .95rem; }
.site-footer__glow {
  position: absolute; left: 50%; top: 0; width: 70%; height: 1px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgb(185 215 234 / .6), transparent);
  box-shadow: 0 0 60px 20px rgb(135 170 230 / .12);
}
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr .8fr; gap: clamp(2rem, 5vw, 4rem); padding-bottom: clamp(3rem, 6vw, 4.5rem); }
.site-footer__brand img { height: 48px; width: auto; margin-bottom: 1.25rem; }
.site-footer__brand p { max-width: 30ch; }
.site-footer__social { display: flex; gap: .5rem; margin-top: 1.25rem; }
.site-footer__social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); }
.site-footer__heading { font: 600 .95rem/1.2 var(--font-body); letter-spacing: 0; color: var(--paper); margin-bottom: 1.1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--paper); }
.site-footer__contacts a, .site-footer__contacts span { display: inline-flex; gap: .65rem; align-items: flex-start; }
.site-footer__contacts .icon { color: var(--ice); margin-top: .15em; }
.site-footer__legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 2rem; padding-block: 1.5rem calc(1.5rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); font-size: .82rem; color: var(--haze); }
@media (max-width: 899px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 499px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
