/* Deltatime Studio — site styles
   Rebuilt from the Claude Design export "Home — Landing page". */

/* ---------- Fonts (self-hosted, latin subset, variable weight) ---------- */

@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('../assets/fonts/rubik-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('../assets/fonts/unbounded-latin.woff2') format('woff2');
}

/* ---------- Tokens ---------- */

:root {
  --red: #e41a50;
  --red-deep: #a8123b;
  --red-soft: #ff5c85;
  --pink: #fdecf1;
  --ink: #1a1a1a;
  --ink-2: #262626;
  --white: #ffffff;

  --ink-75: rgba(26, 26, 26, 0.75);
  --ink-78: rgba(26, 26, 26, 0.78);

  --font-body: 'Rubik', system-ui, sans-serif;
  --font-display: 'Unbounded', 'Rubik', system-ui, sans-serif;

  --container: 1360px;
  --gutter: clamp(16px, 4vw, 56px);

  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- Base ---------- */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

a { color: var(--red-deep); }
a:not([class]):hover { color: var(--ink); }

::selection { background: var(--red); color: var(--white); }

a:focus-visible,
button:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
/* Sections receive focus when reached from a menu link (js/clean-urls.js); no ring around a whole section */
[tabindex="-1"]:focus { outline: none; }
.is-dark a:focus-visible,
.is-dark button:focus-visible { outline-color: var(--white); }

.page {
  position: relative;
  overflow-x: clip;
  background: var(--ink);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Icons drawn from the inline sprite */
.ico { flex: 0 0 auto; fill: currentColor; }
.ico--stroke {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Shared pieces ---------- */

.display {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
}

.kicker {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-deep);
}

.nav-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.2s ease;
}
.nav-link:hover { color: var(--white); }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.2s ease;
}
.arrow-link:hover { gap: 16px; }

/* Faint "+" grid behind red sections */
.has-plus-pattern::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cg fill='%23fff' opacity='.08'%3E%3Crect x='29' y='22' width='6' height='20' rx='3'/%3E%3Crect x='22' y='29' width='20' height='6' rx='3'/%3E%3C/g%3E%3C/svg%3E");
}

/* Scalloped bottom edge that bleeds into the next section */
.wave {
  position: absolute;
  left: 0;
  bottom: -39px;
  z-index: 2;
  display: block;
  width: 100%;
  height: 40px;
  color: var(--red);
}

/* Pill with a blinking dot */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.status-dot {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(228, 26, 80, 0.4);
  animation: blink 1.4s ease-in-out infinite;
}

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

.btn {
  --lip: var(--ink);
  --lip-hover: 4px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 6px 0 var(--lip);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translateY(2px); box-shadow: 0 var(--lip-hover) 0 var(--lip); }
.btn:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--lip); }
.btn:disabled { opacity: 0.7; cursor: progress; }

.btn--red { --lip: var(--red-deep); --lip-hover: 3px; background: var(--red); }
.btn--red, .btn--red:hover { color: var(--white); }

.btn--light { background: var(--white); }
.btn--light, .btn--light:hover { color: var(--red); }

.btn--black-lip { --lip: #000000; }

.btn--sm {
  min-height: 44px;
  padding: 0 20px;
  letter-spacing: 0.06em;
  box-shadow: 0 5px 0 var(--lip);
}

.btn--outline {
  min-height: 48px;
  padding: 0 22px;
  background: var(--white);
  border: 2px solid var(--ink);
  letter-spacing: 0.06em;
}
.btn--outline, .btn--outline:hover { color: var(--ink); }

.btn--block {
  display: flex;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 60px;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.04em;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  border-bottom: 2px solid var(--ink-2);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.site-header__brand {
  flex: 0 1 270px;
  min-width: 0;
  display: flex;
  align-items: center;
  padding: 6px 0;
}
.site-header__brand img { display: block; width: 100%; max-width: 270px; height: auto; }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 40px);
  font-weight: 600;
  font-size: 15px;
}
.site-nav a { padding: 12px 0; }

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

.hero {
  position: relative;
  z-index: 2;
  padding: clamp(48px, 6vw, 88px) 0 clamp(72px, 7vw, 110px);
  background: var(--red);
  color: var(--white);
}

.hero__inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px clamp(24px, 4vw, 56px);
}

.hero__copy {
  flex: 3 1 560px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 26px;
}

.hero__headline { display: flex; flex-direction: column; gap: 18px; }

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hero__bars { display: flex; gap: 5px; }
.hero__bars span { width: 12px; height: 6px; border-radius: 2px; background: var(--ink); }

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 4.6vw, 66px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.hero__mark {
  display: inline-block;
  padding: 0.02em 0.22em 0.08em;
  border-radius: 0.26em;
  background: var(--white);
  color: var(--red);
  transform: rotate(-3deg);
  box-shadow: 0 0.1em 0 var(--ink);
}

.hero__lead { max-width: 540px; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; }

.hero__menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 440px;
}

.btn--start {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 0 12px 0 26px;
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.02em;
}
.btn--start__label { display: flex; align-items: center; gap: 14px; }

.key-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.12em;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background-color 0.2s ease, padding-left 0.2s ease;
}
.menu-item:hover { background-color: rgba(26, 26, 26, 0.2); color: var(--white); padding-left: 30px; }
.menu-item__cursor { opacity: 0.5; transition: opacity 0.2s ease, transform 0.25s ease; }
.menu-item:hover .menu-item__cursor { opacity: 1; transform: rotate(90deg); }

.check-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-weight: 600;
  font-size: 14px;
}
.check-list li { display: flex; align-items: center; gap: 8px; }
.check-badge {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
}
.check-badge .ico { stroke-width: 3.6; }

/* Hero illustration */
.hero__art { flex: 2 1 400px; min-width: 0; display: flex; justify-content: center; }
.hero__stage { position: relative; width: 100%; max-width: 560px; aspect-ratio: 1 / 0.9; }

.hero__halo {
  position: absolute;
  left: 9%;
  top: 0;
  width: 82%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(26, 26, 26, 0.12);
}
.hero__shadow {
  position: absolute;
  left: 25%;
  bottom: 9%;
  width: 50%;
  height: 7%;
  border-radius: 50%;
  background: rgba(26, 26, 26, 0.28);
  animation: shadow 6s ease-in-out infinite;
}
.hero__mascot { position: absolute; left: 9%; top: 20%; width: 82%; transform: rotate(-6deg); }
.hero__mascot svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  animation: float 6s ease-in-out infinite;
}
.mascot__eye {
  transform-box: fill-box;
  transform-origin: center;
  animation: eye 5.5s ease-in-out infinite;
}

.hero__bubble {
  position: absolute;
  left: 0;
  top: 4%;
  padding: 10px 16px;
  border-radius: 16px;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: rotate(-6deg);
}
.hero__bubble::after {
  content: "";
  position: absolute;
  right: 22px;
  bottom: -6px;
  width: 14px;
  height: 14px;
  border-radius: 2px;
  background: var(--ink);
  transform: rotate(45deg);
}

.hero__ring {
  position: absolute;
  right: 6%;
  top: 3%;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 5px solid var(--white);
}
.hero__dot {
  position: absolute;
  right: 0;
  top: 46%;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ink);
}
.hero__plus {
  position: absolute;
  left: 0;
  top: 50%;
  width: 36px;
  height: 36px;
  color: var(--white);
  animation: bob 4.5s ease-in-out infinite;
}

.hero__play {
  position: absolute;
  right: 0;
  bottom: 2%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 20px 7px 7px;
  border-radius: 999px;
  background: var(--white);
  box-shadow: 0 6px 0 var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.hero__play, .hero__play:hover { color: var(--ink); }
.hero__play:hover { transform: translateY(2px); box-shadow: 0 4px 0 var(--ink); }
.hero__play:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--ink); }
.hero__play-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
}

/* ---------- What we improve ---------- */

.improve {
  position: relative;
  padding: clamp(96px, 9vw, 128px) 0 clamp(64px, 6vw, 88px);
  background: var(--white);
  color: var(--ink);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 28px;
}

.feature-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  min-height: 270px;
  padding: 28px;
  border-radius: 28px;
  background: var(--white);
  border: 3px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover { transform: translate(-4px, -4px); box-shadow: 12px 12px 0 var(--ink); }
.feature-card > * { position: relative; }

.feature-card > .feature-card__watermark {
  position: absolute;
  right: -14px;
  bottom: -30px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 116px;
  line-height: 1;
  text-transform: uppercase;
  color: var(--pink);
  pointer-events: none;
}

.feature-card__icon {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
}
.feature-card__icon svg { stroke-width: 2.4; }

.feature-card__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  line-height: 1.05;
  text-transform: uppercase;
}
.feature-card__text { max-width: 320px; font-size: 16px; line-height: 1.5; color: var(--ink-75); }

.feature-card__more {
  margin-top: auto;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.feature-card__more .ico { color: var(--red); }
.feature-card:hover .feature-card__more { gap: 16px; }

/* ---------- Client logo ticker ---------- */

.ticker-band {
  position: relative;
  z-index: 2;
  padding: 36px 0;
  background-image: linear-gradient(178deg, var(--white) 50%, var(--pink) 50%);
}

.ticker {
  margin: 0 -60px;
  padding: 18px 0;
  transform: rotate(-2deg);
  background: var(--ink);
  overflow: hidden;
}

.ticker__track {
  display: flex;
  width: max-content;
  animation: marquee 48s linear infinite;
}

.ticker__group {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-right: 40px;
}
.ticker__group img { display: block; flex: 0 0 auto; }
.ticker__sep { color: var(--red); }

/* ---------- Section scaffolding ---------- */

.section {
  padding: clamp(72px, 7vw, 112px) 0;
  scroll-margin-top: 72px;
}
.section--pink { background: var(--pink); color: var(--ink); }
.section--white { background: var(--white); color: var(--ink); }
.section--dark { background: var(--ink); color: var(--white); }

.section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px 6px 6px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.section-tag--light { background: var(--white); color: var(--ink); }
.section-tag__num {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-size: 11px;
  letter-spacing: 0;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 4.2vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.section-lead { max-width: 620px; font-size: 18px; line-height: 1.55; color: var(--ink-75); }
.section--dark .section-lead { color: rgba(255, 255, 255, 0.78); }

/* ---------- Services ---------- */

.services { padding-top: clamp(64px, 7vw, 104px); }

.service-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(480px, 100%), 1fr));
  gap: 32px;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: clamp(26px, 3vw, 40px);
  border-radius: 32px;
  background: var(--sc-bg);
  color: var(--white);
  box-shadow: 10px 10px 0 var(--sc-lift);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover { transform: translate(-4px, -4px); box-shadow: 12px 12px 0 var(--sc-lift); }

.service-card--red {
  --sc-bg: var(--red);
  --sc-lift: var(--ink);
  --sc-accent: var(--white);
  --sc-bullet: var(--white);
  --sc-tagline: var(--white);
  --sc-label: var(--white);
  --sc-text: var(--white);
  --sc-rule: rgba(255, 255, 255, 0.3);
  --sc-chip-border: rgba(255, 255, 255, 0.6);
  --sc-chip-text: var(--white);
  --sc-strong: 700;
  --sc-best-strong: 800;
}
.service-card--dark {
  --sc-bg: var(--ink);
  --sc-lift: var(--red);
  --sc-accent: var(--red-soft);
  --sc-bullet: var(--red);
  --sc-tagline: rgba(255, 255, 255, 0.88);
  --sc-label: rgba(255, 255, 255, 0.65);
  --sc-text: rgba(255, 255, 255, 0.75);
  --sc-rule: rgba(255, 255, 255, 0.1);
  --sc-chip-border: rgba(255, 255, 255, 0.25);
  --sc-chip-text: rgba(255, 255, 255, 0.9);
  --sc-strong: 600;
  --sc-best-strong: 700;
}

.service-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.service-card__titles { display: flex; flex-direction: column; gap: 10px; }

.service-card__class {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sc-accent);
}
.service-card__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 2.6vw, 38px);
  line-height: 1.05;
  text-transform: uppercase;
}
.service-card__tagline { font-size: 18px; font-weight: 500; color: var(--sc-tagline); }

.service-card__badge {
  flex: 0 0 auto;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 24px;
}
.service-card--red .service-card__badge { background: var(--white); color: var(--red); transform: rotate(-6deg); }
.service-card--dark .service-card__badge { background: var(--red); color: var(--white); transform: rotate(6deg); }
.service-card__badge .ico--stroke { stroke-width: 2.2; }

.service-card__label {
  margin-bottom: 6px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sc-label);
}

.ability-list { display: flex; flex-direction: column; }
.ability-list li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-top: 2px solid var(--sc-rule);
}
.ability-list .ico { margin-top: 3px; color: var(--sc-bullet); }
.ability-list__body { display: flex; flex-direction: column; gap: 4px; }
.ability-list strong { font-weight: var(--sc-strong); font-size: 17px; }
.ability-list__body > span { font-size: 15px; line-height: 1.5; color: var(--sc-text); }

.service-card__best { font-size: 15px; line-height: 1.55; color: var(--sc-tagline); }
.service-card__best strong {
  font-weight: var(--sc-best-strong);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sc-accent);
}

.tool-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tool-list li {
  padding: 6px 14px;
  border-radius: 999px;
  border: 2px solid var(--sc-chip-border);
  font-weight: 600;
  font-size: 13px;
  color: var(--sc-chip-text);
}

.service-card .btn { margin-top: auto; align-self: flex-start; white-space: normal; }

.combo {
  margin-top: 44px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  padding: 20px clamp(20px, 3vw, 32px);
  border-radius: 28px;
  background: var(--white);
  border: 3px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
}
.combo__body { display: flex; align-items: center; gap: 18px; }
.combo__icon {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: var(--red);
}
.combo__icon svg { width: 46px; height: 30px; }
.combo__text { display: flex; flex-direction: column; gap: 4px; }
.combo__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  line-height: 1.1;
  text-transform: uppercase;
}
.combo__text p:last-child { font-size: 16px; color: var(--ink-78); }

/* ---------- Work ---------- */

.work__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.showreel-link {
  gap: 12px;
  min-height: 48px;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.showreel-link, .showreel-link:hover { color: var(--white); }
.showreel-link__icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
}

/* Carousel: a native scroll-snap track (swipe, trackpad, keyboard) driven by two arrow buttons in js/carousel.js */
.work-carousel {
  --per-view: 3;
  --gap: 28px;
  position: relative;
  margin-top: 48px;
}

.work-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--per-view) - 1) * var(--gap)) / var(--per-view));
  gap: var(--gap);
  /* Extra room so the cards' hover lift and offset shadow aren't clipped by the scroll area */
  margin: -8px -16px -16px -8px;
  padding: 8px 16px 16px 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 8px;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.work-track::-webkit-scrollbar { display: none; }
.work-track:focus-visible { outline: 3px solid var(--white); outline-offset: -2px; border-radius: 32px; }

.work-track__item { display: flex; scroll-snap-align: start; }
.work-track__item > .work-card { flex: 1; min-width: 0; }

.carousel-btn {
  position: absolute;
  top: var(--arrow-top, 34%);
  z-index: 3;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 5px 0 var(--red);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.2s ease;
}
.carousel-btn--prev { left: 0; translate: -50% -50%; }
.carousel-btn--next { right: 0; translate: 50% -50%; }
.carousel-btn .ico { stroke-width: 2.8; transition: translate 0.2s var(--ease-out); }
.carousel-btn--prev .ico { rotate: 180deg; }
.carousel-btn:hover { transform: translateY(2px); box-shadow: 0 3px 0 var(--red); }
.carousel-btn:active { transform: translateY(5px); box-shadow: 0 0 0 var(--red); }
.carousel-btn--next:hover .ico { translate: 3px 0; }
.carousel-btn--prev:hover .ico { translate: -3px 0; }
.carousel-btn[aria-disabled="true"] { opacity: 0.3; cursor: default; transform: none; box-shadow: none; }
.carousel-btn[aria-disabled="true"] .ico { translate: none; }

@media (max-width: 1000px) {
  .work-carousel { --per-view: 2; }
}

/* Small screens: the arrows move under the track (left and right) so they never cover a card */
@media (max-width: 720px) {
  .work-carousel {
    display: grid;
    grid-template-columns: auto 1fr auto;
    row-gap: 24px;
  }
  .work-track { grid-column: 1 / -1; }
  .carousel-btn { position: static; width: 48px; height: 48px; translate: none; }
  .carousel-btn--prev { grid-column: 1; }
  .carousel-btn--next { grid-column: 3; }
}

@media (max-width: 640px) {
  .work-carousel { --gap: 16px; }
  /* One card at a time, with the next one peeking in to invite a swipe */
  .work-track { grid-auto-columns: 86%; }
}

.work-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 28px;
  background: var(--ink-2);
  box-shadow: 0 0 0 var(--red);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.work-card:hover { transform: translate(-4px, -4px); box-shadow: 12px 12px 0 var(--red); }

.work-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 11;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 6px;
  color: var(--ink);
}
.work-card__media > * { position: relative; }
.work-card__media > .work-card__art,
.work-card__media > .work-card__still { position: absolute; }
.work-card__media--red { background: var(--red); color: var(--white); }
.work-card__media--white { background: var(--white); }
.work-card__media--pink { background: var(--pink); }

.work-card__art--sparkle { right: 8%; top: 14%; width: 46%; height: auto; }

/* Drop an <img class="work-card__still"> into a media block to show a real project still */
.work-card__still { inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Keep the game's logo in frame when the artwork is cropped to the card's shape */
.work-card__still--left { object-position: left center; }
.work-card__still--right { object-position: right center; }

/* Cards with a game key art: a dark fade at the bottom keeps the name readable, the logo above stays clear */
.work-card__media--photo {
  background: var(--ink);
  color: var(--white);
}
.work-card__media--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(to top, rgba(26, 26, 26, 0.88) 0%, rgba(26, 26, 26, 0.45) 30%, rgba(26, 26, 26, 0) 55%);
  pointer-events: none;
}
.work-card__media--photo > * { z-index: 1; }
.work-card__media--photo > .work-card__still { z-index: 0; transition: scale 0.6s var(--ease-out); }
.work-card:hover .work-card__media--photo > .work-card__still { scale: 1.04; }

.work-card__media > .work-card__ring {
  position: absolute;
  left: 10%;
  top: 16%;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 6px solid rgba(255, 255, 255, 0.5);
}

/* Every card: project name + studio, bottom-left of the visual */
.work-card__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  line-height: 1.15;
  text-transform: uppercase;
}
.work-card__studio {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
}

/* Body: category, one line of description, then tags and status pinned to the bottom so they line up across cards */
.work-card__body { flex: 1; display: flex; flex-direction: column; gap: 14px; padding: 20px 24px 24px; }
.work-card__kicker {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-soft);
}
.work-card__kicker + .work-card__text { margin-top: -8px; }
.work-card__text { font-size: 16px; line-height: 1.5; color: rgba(255, 255, 255, 0.82); }
.work-card__meta {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-list li {
  padding: 4px 12px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  font-weight: 600;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.82);
}
.work-card__result {
  margin-left: auto;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red-soft);
}

/* Linked cards: the link's ::after covers the whole card, the badge signals where it goes */
.work-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 28px;
}
.work-card__link:focus-visible { outline: none; }
.work-card__link:focus-visible::after { outline: 3px solid var(--white); outline-offset: -3px; }

.work-card__badge {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(26, 26, 26, 0.72);
  color: var(--white);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background-color 0.2s ease;
}
.work-card__badge .ico { stroke-width: 2.8; transition: translate 0.2s var(--ease-out); }
.work-card:hover .work-card__badge { background: var(--red); }
.work-card:hover .work-card__badge .ico { translate: 2px -2px; }

/* ---------- Why us ---------- */

.why__layout { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 28px; }

.perk-grid {
  flex: 999 1 560px;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 20px;
}

.perk {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  border-radius: 28px;
  background: var(--pink);
}
.perk__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
}
.perk__icon svg { stroke-width: 2.2; }
.perk h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  line-height: 1.2;
  text-transform: uppercase;
}
.perk p { font-size: 16px; line-height: 1.55; color: var(--ink-75); }

.slot-card {
  flex: 1 1 320px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  min-height: 560px;
  padding: 32px;
  border-radius: 32px;
  background: var(--red);
  color: var(--white);
  box-shadow: 10px 10px 0 var(--ink);
}
.slot-card > * { position: relative; }
.slot-card > .slot-card__mascot {
  position: absolute;
  right: -44px;
  bottom: -40px;
  width: 280px;
  transform: rotate(-12deg);
}
.slot-card__mascot svg { display: block; width: 100%; height: auto; aspect-ratio: 200 / 128; }
.slot-card > .slot-card__p2 {
  position: absolute;
  right: 196px;
  bottom: 150px;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  transform: rotate(-10deg);
}
.slot-card .status-pill { gap: 8px; padding: 8px 14px; }
.slot-card .status-dot { width: 8px; height: 8px; }
.slot-card__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.1;
  text-transform: uppercase;
}
.slot-card__text { font-size: 17px; line-height: 1.55; }

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

.steps {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 40px 24px;
}

.step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 80px;
}

.step__line {
  position: absolute;
  top: 26px;
  left: 72px;
  right: -16px;
  height: 0;
  border-top: 5px dashed rgba(255, 255, 255, 0.3);
}
.step__line--done { border-top-style: solid; border-top-color: var(--red); border-radius: 3px; }

.step__node {
  position: absolute;
  top: 0;
  left: 0;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 4px solid var(--white);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
}
.step__node--current {
  border: 0;
  background: var(--red);
  box-shadow: 0 0 0 7px rgba(228, 26, 80, 0.28);
}
.step__node--current::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 19px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--white);
}

.step__level {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}
.step__level--current { color: var(--red-soft); }

.step h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  line-height: 1.1;
  text-transform: uppercase;
}
.step p { font-size: 16px; line-height: 1.55; color: rgba(255, 255, 255, 0.78); }

.cta-strip {
  margin-top: 56px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(22px, 3vw, 36px);
  border-radius: 28px;
  background: var(--red);
}
.cta-strip p {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--white);
}

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

.contact {
  position: relative;
  z-index: 2;
  padding: clamp(72px, 7vw, 112px) 0 clamp(80px, 8vw, 120px);
  scroll-margin-top: 72px;
  background: var(--red);
  color: var(--white);
}

.contact__inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 56px clamp(32px, 5vw, 80px);
}

.contact__intro {
  flex: 1 1 440px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  padding-top: 24px;
}
.contact__title { font-size: clamp(32px, 4.2vw, 60px); }
.contact__lead { max-width: 520px; font-size: 19px; font-weight: 500; line-height: 1.5; }

.promise-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 17px;
  font-weight: 600;
}
.promise-list li { display: flex; align-items: center; gap: 12px; }
.promise-list__check {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--white);
  color: var(--red);
}
.promise-list__check .ico { stroke-width: 3.6; }

.contact__email { margin-top: 6px; font-size: 16px; }
.contact__email a {
  color: var(--white);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.contact__panel { flex: 1 1 460px; min-width: 0; position: relative; padding-top: 74px; }
.contact__mascot { position: absolute; top: 0; right: 48px; z-index: 0; width: 170px; }
.contact__mascot svg { display: block; width: 100%; height: auto; aspect-ratio: 200 / 128; }
.contact__mascot .mascot__eye { animation-delay: 2.2s; }

.brief-card {
  position: relative;
  z-index: 1;
  padding: clamp(24px, 3vw, 40px);
  border-radius: 32px;
  background: var(--white);
  color: var(--ink);
  border: 3px solid var(--ink);
  box-shadow: 12px 12px 0 var(--ink);
}

.brief { display: flex; flex-direction: column; gap: 20px; }

.brief__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 2px dashed rgba(26, 26, 26, 0.2);
}
.brief__head > div { display: flex; flex-direction: column; gap: 6px; }
.brief__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  line-height: 1.05;
  text-transform: uppercase;
}
.brief__time {
  flex: 0 0 auto;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--pink);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 16px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field__label { font-weight: 600; font-size: 14px; }
.choice { padding: 0; border: 0; min-width: 0; }
.choice legend { padding: 0; margin-bottom: 10px; }

.input {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--white);
  border: 2px solid var(--ink);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: normal;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.input::placeholder { color: #707070; }
.input:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(228, 26, 80, 0.25);
}
textarea.input { min-height: 120px; resize: vertical; line-height: 1.5; }

.select-wrap { position: relative; }
.select-wrap .input {
  padding-right: 48px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.select-wrap .ico {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--ink);
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  transition: transform 0.15s ease;
}
.chip:hover { transform: translateY(-2px); }
.chip[aria-pressed="true"] { border-color: var(--red); background: var(--red); color: var(--white); }

.brief__error {
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--pink);
  border: 2px solid var(--red);
  font-size: 14px;
  font-weight: 600;
}

.brief__legal { font-size: 13px; line-height: 1.5; color: rgba(26, 26, 26, 0.68); }

.brief-done {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 24px 0;
}
.brief-done__icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  box-shadow: 0 6px 0 var(--ink);
}
.brief-done__icon .ico { stroke-width: 3; }
.brief-done__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  line-height: 1.05;
  text-transform: uppercase;
}
.brief-done__title:focus { outline: none; }
.brief-done p { max-width: 420px; font-size: 17px; line-height: 1.55; color: var(--ink-78); }

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

.site-footer {
  padding: clamp(96px, 9vw, 128px) 0 28px;
  background: var(--ink);
  color: var(--white);
}
.site-footer__inner { display: flex; flex-direction: column; gap: 48px; }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 36px 32px;
}

.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.footer-brand a { display: block; width: 100%; max-width: 260px; padding: 4px 0; }
.footer-brand img { display: block; width: 100%; height: auto; }
.footer-brand p { max-width: 280px; font-size: 15px; line-height: 1.55; color: rgba(255, 255, 255, 0.75); }

.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; font-size: 15px; }
.footer-col__heading {
  margin-bottom: 4px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-soft);
}
.footer-col__muted { color: rgba(255, 255, 255, 0.75); }

.socials { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 8px; }
.socials a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.22);
  font-weight: 700;
  font-size: 13px;
}
.socials .ico { stroke-width: 2.8; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 20px;
  border-top: 2px solid var(--ink-2);
  font-weight: 500;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}
.footer-bottom__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* ---------- Document pages (legal notice, privacy policy) ---------- */

.doc-hero {
  position: relative;
  z-index: 2;
  padding: clamp(48px, 6vw, 80px) 0 clamp(64px, 7vw, 96px);
  background: var(--red);
  color: var(--white);
}
.doc-hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.doc-hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.doc-hero__meta { font-weight: 600; font-size: 15px; }

.doc-body {
  padding: clamp(88px, 8vw, 112px) 0 clamp(72px, 7vw, 112px);
  background: var(--white);
  color: var(--ink);
}

.doc { max-width: 780px; font-size: 17px; line-height: 1.65; }
.doc > * + * { margin-top: 16px; }
.doc h2 {
  margin-top: 48px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(19px, 2vw, 23px);
  line-height: 1.2;
  text-transform: uppercase;
}
.doc h2 + * { margin-top: 14px; }
.doc p, .doc li { color: rgba(26, 26, 26, 0.82); }
.doc strong { color: var(--ink); font-weight: 700; }
.doc a { font-weight: 600; text-underline-offset: 3px; overflow-wrap: anywhere; }

.doc ul { display: flex; flex-direction: column; gap: 10px; }
.doc li { position: relative; padding-left: 26px; }
.doc li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.6em;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--red);
}

.doc__lead { font-size: 19px; line-height: 1.6; }

.doc__summary {
  padding: 22px 26px;
  border-radius: 24px;
  background: var(--pink);
}
.doc__summary p { color: var(--ink); }

/* Company identity card */
.doc__card {
  display: grid;
  grid-template-columns: minmax(150px, 210px) 1fr;
  gap: 12px 24px;
  margin-bottom: 0;
  padding: clamp(22px, 3vw, 32px);
  border-radius: 24px;
  border: 3px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
}
.doc__card dt {
  padding-top: 3px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red-deep);
}
.doc__card dd { margin: 0; font-weight: 600; }

@media (max-width: 560px) {
  .doc__card { grid-template-columns: 1fr; gap: 4px; }
  .doc__card dd + dt { margin-top: 12px; }
}

.footer-bottom__links a[aria-current="page"] { color: var(--white); }

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

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes shadow { 0%, 100% { transform: scaleX(1); opacity: 1; } 50% { transform: scaleX(0.82); opacity: 0.6; } }
@keyframes eye { 0%, 90%, 100% { transform: scaleY(1); } 94% { transform: scaleY(0.1); } }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-10px) rotate(12deg); } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes rise-in { from { opacity: 0; translate: 0 18px; } }
@keyframes settle-in { from { opacity: 0; scale: 0.94; } }
@keyframes pop-in { from { opacity: 0; scale: 0.6; } }
@keyframes chip-pop { 50% { scale: 1.07; } }
@keyframes beacon {
  0% { box-shadow: 0 0 0 7px rgba(228, 26, 80, 0.28), 0 0 0 7px rgba(228, 26, 80, 0.45); }
  70%, 100% { box-shadow: 0 0 0 7px rgba(228, 26, 80, 0.28), 0 0 0 24px rgba(228, 26, 80, 0); }
}

/* Hover & cursor feedback */

.btn .ico--stroke { transition: translate 0.2s var(--ease-out); }
.btn:hover .ico--stroke { translate: 3px 0; }

/* Header nav: underline on hover, kept on the section in view (set by js/motion.js) */
.site-nav a { position: relative; }
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 3px;
  border-radius: 3px;
  background: var(--red);
  scale: 0 1;
  transform-origin: left center;
  transition: scale 0.3s var(--ease-out);
}
.site-nav a:hover::after,
.site-nav a[aria-current="true"]::after { scale: 1 1; }
.site-nav a[aria-current="true"] { color: var(--white); }

/* Feature cards: soft light under the cursor, icon pops, watermark slides */
.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(260px circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(228, 26, 80, 0.09), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.feature-card:hover::before { opacity: 1; }
.feature-card__icon { transition: rotate 0.35s var(--ease-spring), scale 0.35s var(--ease-spring); }
.feature-card:hover .feature-card__icon { rotate: -8deg; scale: 1.08; }
.feature-card > .feature-card__watermark { transition: translate 0.6s var(--ease-out); }
.feature-card:hover > .feature-card__watermark { translate: -12px 0; }

.service-card__badge { transition: transform 0.35s var(--ease-spring); }
.service-card:hover .service-card__badge { transform: rotate(0deg) scale(1.06); }

.work-card__art { transition: rotate 0.6s var(--ease-out), scale 0.6s var(--ease-out); }
.work-card:hover .work-card__art--sparkle { rotate: 14deg; scale: 1.06; }

.hero__play-icon,
.showreel-link__icon { transition: scale 0.25s var(--ease-spring); }
.hero__play:hover .hero__play-icon,
.showreel-link:hover .showreel-link__icon { scale: 1.1; }

.socials .ico { transition: translate 0.2s var(--ease-out); }
.socials a:hover .ico { translate: 2px -2px; }

.chip[aria-pressed="true"] { animation: chip-pop 0.3s var(--ease-out); }

/* Process: the current level pulses like a map marker */
.step__node--current { animation: beacon 2.4s ease-out infinite; }

/* Scroll reveal — classes are added by js/motion.js, so content stays visible without JS */

.reveal { opacity: 0; translate: 0 28px; }
.reveal.is-in {
  opacity: 1;
  translate: 0 0;
  transition:
    opacity 0.7s var(--ease-out) var(--reveal-delay, 0ms),
    translate 0.8s var(--ease-out) var(--reveal-delay, 0ms);
}

/* Process: each connector draws towards the next level */
.step.reveal .step__line { clip-path: inset(0 100% 0 0); }
.step.reveal.is-in .step__line {
  clip-path: inset(0 0 0 0);
  transition: clip-path 0.8s cubic-bezier(0.65, 0, 0.35, 1) calc(var(--reveal-delay, 0ms) + 250ms);
}

/* Parallax and cursor-depth layers are moved through `translate` by js/motion.js */
[data-parallax],
[data-depth] { will-change: translate; }

@media (prefers-reduced-motion: no-preference) {
  /* Hero: quick "press start" intro on load */
  .hero__copy > * { animation: rise-in 0.7s var(--ease-out) both; }
  .hero__copy > :nth-child(2) { animation-delay: 80ms; }
  .hero__copy > :nth-child(3) { animation-delay: 160ms; }
  .hero__copy > :nth-child(4) { animation-delay: 230ms; }
  .hero__copy > :nth-child(5) { animation-delay: 290ms; }
  .hero__art { animation: settle-in 0.9s var(--ease-out) 0.12s both; }
  .hero__bubble { animation: pop-in 0.5s var(--ease-spring) 0.75s both; }

  /* Brief sent: the confirmation lands with a small bounce */
  .brief-done > * { animation: rise-in 0.5s var(--ease-out) both; }
  .brief-done > .brief-done__icon { animation: pop-in 0.5s var(--ease-spring) both; }
  .brief-done > :nth-child(2) { animation-delay: 90ms; }
  .brief-done > :nth-child(3) { animation-delay: 150ms; }
  .brief-done > :nth-child(4) { animation-delay: 210ms; }
  .brief-done > :nth-child(5) { animation-delay: 270ms; }
}

@media print {
  .reveal { opacity: 1 !important; translate: none !important; }
}

/* ---------- Responsive ---------- */

@media (max-width: 820px) {
  .hide-sm { display: none !important; }
}

@media (max-width: 480px) {
  .site-header .btn--sm { padding: 0 16px; font-size: 12px; letter-spacing: 0.04em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html, .work-track { scroll-behavior: auto; }
}
