/* =====================================================================
   Company website — all styling lives here.
   Palette follows nordcut.studio (zinc-950 canvas, Inter, terracotta
   accent). The signature element is the hero "film": a short, captioned
   story told in HTML scenes (see .film below and assets/site.js).
   ===================================================================== */

:root {
  color-scheme: dark;

  /* Canvas & surfaces */
  --bg: #09090b;
  --bg-raised: #0e0e11;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);

  /* Ink — contrast against --bg in brackets */
  --ink: #fafafa;       /* 19:1 */
  --ink-soft: #d4d4d8;  /* 13:1 */
  --muted: #a1a1aa;     /* 7.7:1 — secondary body text */
  --faint: #71717a;     /* 4.1:1 — large or decorative text only */

  /* Accent (terracotta) */
  --accent: #c2503f;
  --accent-deep: #a94334;
  --accent-deeper: #8f3729;
  --accent-ink: #e0735d; /* 6.4:1 — accent for small text */

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 68px;
  --radius: 16px;
  --radius-lg: 24px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* z-index scale */
  --z-sticky: 100;
  --z-skip: 400;
}

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

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

p,
ul,
ol,
dl,
dd {
  margin: 0;
}

p {
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration: none;
}

.nw {
  white-space: nowrap;
}

img,
svg {
  display: block;
  max-width: 100%;
}

::selection {
  background: rgba(194, 80, 63, 0.45);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.skip {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: var(--z-skip);
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
  font-weight: 600;
  transition: top 0.2s var(--ease-out);
}

.skip:focus {
  top: 12px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, box-shadow 0.3s var(--ease-out),
    filter 0.2s, transform 0.2s var(--ease-out);
}

.btn:focus-visible {
  border-radius: 999px;
}

.btn:active {
  transform: translateY(1px);
}

.btn-sm {
  height: 38px;
  padding: 0 16px;
  font-size: 14px;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--ink);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-primary {
  background-image: linear-gradient(180deg, var(--accent) 0%, var(--accent-deep) 60%, var(--accent-deeper) 100%);
  color: #fff;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(255, 120, 100, 0.25), 0 12px 40px rgba(169, 67, 52, 0.35);
}

.btn-primary:hover {
  filter: brightness(1.08);
  box-shadow: inset 0 0 0 1px rgba(255, 140, 120, 0.35), 0 14px 48px rgba(169, 67, 52, 0.5);
}

.btn .arrow {
  transition: transform 0.3s var(--ease-out);
}

.btn:hover .arrow {
  transform: translateX(3px);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: rgba(9, 9, 11, 0.72);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 28px;
  height: 28px;
  flex: none;
}

.brand-name {
  overflow: hidden;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.brand-divider {
  flex: none;
  width: 1px;
  height: 16px;
  background: var(--line-strong);
}

.brand-tagline {
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
}

.nav {
  display: flex;
  flex: none;
  align-items: center;
  gap: 28px;
}

.nav a:not(.btn) {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s;
}

.nav a:not(.btn):hover {
  color: var(--ink);
}

/* ---------- Shared type ---------- */

.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.kicker .idx {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--accent-ink);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.kicker .idx::after {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--line-strong);
}

.title {
  margin-top: 20px;
  font-size: clamp(2rem, 1.3rem + 2.4vw, 3.25rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.lead {
  margin-top: 20px;
  max-width: 60ch;
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  font-weight: 350;
  line-height: 1.6;
  color: var(--muted);
}

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

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(40px, 5vw, 72px) clamp(64px, 8vw, 112px);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(40% 55% at 80% 30%, rgba(194, 80, 63, 0.2), rgba(194, 80, 63, 0.05) 50%, transparent 72%),
    radial-gradient(40% 40% at 8% 100%, rgba(194, 80, 63, 0.06), transparent 70%);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(55% 70% at 78% 35%, #000 0%, transparent 75%);
  mask-image: radial-gradient(55% 70% at 78% 35%, #000 0%, transparent 75%);
  opacity: 0.55;
}

.hero-top {
  max-width: 1160px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
}

.eyebrow .dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-ink);
  box-shadow: 0 0 0 3px rgba(224, 115, 93, 0.18), 0 0 12px rgba(224, 115, 93, 0.6);
}

.hero h1 {
  max-width: 15em;
  margin-top: 24px;
  font-size: clamp(2.2rem, 1.2rem + 4.6vw, 5.25rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero h1 .soft {
  display: block;
  color: var(--faint);
}

.hero-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px 48px;
  margin-top: 32px;
}

.hero .lead {
  margin-top: 0;
  max-width: 60ch;
}

.hero-row .actions {
  margin-top: 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 40px;
  margin-top: 28px;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--ink-soft);
}

.hero-meta li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.hero-meta li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 1.5px;
  background: var(--accent);
  transform: rotate(45deg);
}

.hero-meta em {
  padding: 2px 6px;
  border: 1px solid rgba(224, 115, 93, 0.35);
  border-radius: 6px;
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent-ink);
}

/* =====================================================================
   The film — a wide, captioned banner that tells the story in 6 chapters.
   Left: chapter label + a big caption that builds up word by word.
   Right: the scene visual, drawn inside .film-stage and sized in cqw
   (1cqw = 1% of the stage width), so each scene scales as one piece.
   Scene animations only run while their scene has .is-active; each
   keyframe animates FROM a hidden state TO the element's normal styles,
   so with motion turned off every scene simply shows its final frame.
   ===================================================================== */

.film {
  position: relative;
  margin-top: clamp(40px, 5vw, 64px);
}

.film::after {
  content: "";
  position: absolute;
  left: 15%;
  right: 15%;
  bottom: -44px;
  z-index: -1;
  height: 120px;
  background: radial-gradient(closest-side, rgba(194, 80, 63, 0.32), transparent);
  filter: blur(30px);
  pointer-events: none;
}

.film-frame {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: clamp(480px, 44vw, 580px);
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  background: #0c0c0e;
  box-shadow: 0 60px 140px -40px rgba(0, 0, 0, 0.9), 0 0 0 10px rgba(255, 255, 255, 0.02);
}

.film-bg {
  position: absolute;
  inset: -20%;
  z-index: -3;
  background:
    radial-gradient(30% 45% at 74% 38%, rgba(194, 80, 63, 0.3), transparent 70%),
    radial-gradient(35% 50% at 8% 95%, rgba(194, 80, 63, 0.16), transparent 70%),
    linear-gradient(180deg, #131316, #0b0b0d);
  animation: film-drift 18s ease-in-out infinite alternate;
}

.film-lines {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(55% 75% at 74% 42%, #000, transparent 75%);
  mask-image: radial-gradient(55% 75% at 74% 42%, #000, transparent 75%);
}

.film-grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.08;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Left: chapter label + caption */

.film-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(28px, 4.5vw, 64px) 0 clamp(20px, 3vw, 40px) clamp(28px, 4.5vw, 64px);
}

.film-chapter {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.film-num {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--accent-ink);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.film-num::after {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--line-strong);
}

.film-chapter.swap {
  animation: rise-in-px 0.5s var(--ease-out) both;
}

.film-caption {
  min-height: 3.3em; /* room for three lines, so the banner never jumps */
  max-width: 13em;
  margin: 20px 0 0;
  font-size: clamp(1.9rem, 1rem + 2.3vw, 3.1rem);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: #fff;
}

.film-caption span,
.film-caption b {
  display: inline-block;
  animation: word 0.55s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 70ms);
}

.film-caption b {
  font-weight: 650;
  color: var(--accent-ink);
}

/* Right: the scene stage */

.film-stage {
  position: relative;
  align-self: center;
  justify-self: center;
  width: min(420px, 100%);
  aspect-ratio: 100 / 106;
  container-type: inline-size;
}

.scenes {
  position: absolute;
  inset: 0;
}

.scene {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5cqw;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, transform 0.7s var(--ease-out), visibility 0s linear 0.7s;
}

.scene[data-in="zoom"] {
  transform: scale(1.06);
}

.scene[data-in="left"] {
  transform: translateX(10%);
}

.scene[data-in="up"] {
  transform: translateY(8%);
}

.scene.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.45s ease, transform 0.7s var(--ease-out), visibility 0s;
}

.caps {
  display: none;
}

/* Bottom: chapter bar + pause */

.film-bar {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: 16px;
  min-width: 0;
  padding: 0 clamp(16px, 3vw, 32px) clamp(12px, 2vw, 20px);
}

.film-chapters {
  display: flex;
  flex: 1;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.film-chapters::-webkit-scrollbar {
  display: none;
}

.chap {
  position: relative;
  display: flex;
  flex: 1 0 auto;
  align-items: baseline;
  gap: 8px;
  padding: 14px 6px 6px 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s;
}

.chap i {
  position: absolute;
  top: 0;
  left: 0;
  right: 6px;
  height: 2px;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.14);
}

.chap i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent-ink);
  transform: scaleX(var(--p, 0));
  transform-origin: left;
}

.chap-num {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.chap:hover {
  color: var(--ink-soft);
}

.chap[aria-current="true"] {
  color: var(--ink);
}

.chap[aria-current="true"] .chap-num {
  color: var(--accent-ink);
}

.film-toggle {
  position: relative;
  display: grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(9, 9, 11, 0.4);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s;
}

.film-toggle::before {
  content: "";
  position: absolute;
  inset: -6px;
}

.film-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.film-toggle:focus-visible {
  border-radius: 50%;
}

.film-toggle svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.film-toggle .i-play,
.film[data-state="paused"] .film-toggle .i-pause {
  display: none;
}

.film[data-state="paused"] .film-toggle .i-play {
  display: block;
}

/* Shared film pieces */

.chips {
  display: flex;
  gap: 2cqw;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 1.6cqw;
  padding: 1.6cqw 3.2cqw;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 3.1cqw;
  font-weight: 500;
  color: #e4e4e7;
  white-space: nowrap;
}

.chip i {
  width: 1.6cqw;
  height: 1.6cqw;
  border-radius: 50%;
  background: var(--accent-ink);
}

.is-active .chip.c1 {
  animation: rise-in 0.6s var(--ease-out) 1.5s both;
}

.is-active .chip.c2 {
  animation: rise-in 0.6s var(--ease-out) 3s both;
}

.sk {
  display: block;
  width: var(--w, 60%);
  height: 2.4cqw;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.14);
}

.sk-dim {
  background: rgba(255, 255, 255, 0.07);
}

/* 1 · Portfolio */

.tiles {
  display: grid;
  grid-template-columns: repeat(3, 18.5cqw);
  gap: 3.4cqw;
}

.tile {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 5cqw;
  background: linear-gradient(160deg, #27272c, #17171a);
  box-shadow: 0 1.5cqw 4cqw rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: #d4d4d8;
}

.tile svg {
  width: 40%;
  height: 40%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tile.accent {
  border-color: rgba(255, 150, 130, 0.35);
  background: linear-gradient(160deg, #d0604d, #8f3729);
  box-shadow: 0 2cqw 7cqw rgba(194, 80, 63, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  color: #fff;
}

.tile:nth-child(2n) {
  --d: 0.09s;
}

.tile:nth-child(1),
.tile:nth-child(3),
.tile:nth-child(7),
.tile:nth-child(9) {
  --d: 0.18s;
}

.tile.e {
  --h: 1.55s;
}

.tile.s {
  --h: 3.05s;
}

.is-active .tiles {
  animation: float 3.2s ease-in-out 1s infinite alternate;
}

.is-active .tile {
  animation: tile-in 0.75s var(--ease-out) var(--d, 0s) both;
}

.is-active .tile.e,
.is-active .tile.s {
  animation: tile-in 0.75s var(--ease-out) var(--d, 0s) both, tile-lit 0.6s ease var(--h) forwards;
}

/* 2 · Acquire */

.ui-card {
  position: relative;
  width: 78cqw;
  padding: 4.6cqw 5cqw 1.6cqw;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 5.4cqw;
  background: linear-gradient(180deg, #1d1d21, #141417);
  box-shadow: 0 5cqw 12cqw rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.ui-head {
  display: flex;
  align-items: center;
  gap: 2.4cqw;
  padding-bottom: 3.6cqw;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 3.5cqw;
  font-weight: 600;
  color: #f4f4f5;
}

.ui-dot {
  width: 2cqw;
  height: 2cqw;
  border-radius: 50%;
  background: var(--accent-ink);
  box-shadow: 0 0 0 1cqw rgba(224, 115, 93, 0.16);
}

.stamp {
  /* slapped over the card's top-right corner, like a real stamp */
  position: absolute;
  top: -2.6cqw;
  right: -2.4cqw;
  padding: 1.1cqw 2.4cqw;
  border: 0.5cqw solid var(--accent-ink);
  border-radius: 1.6cqw;
  background: rgba(224, 115, 93, 0.08);
  box-shadow: 0 0 5cqw rgba(224, 115, 93, 0.25);
  color: var(--accent-ink);
  font-size: 3cqw;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transform: rotate(-8deg);
}

.checks {
  margin: 0;
  padding: 0;
  list-style: none;
}

.checks li {
  display: grid;
  grid-template-columns: 6.4cqw minmax(0, 1fr);
  align-items: center;
  column-gap: 3cqw;
  padding: 3.4cqw 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 3.6cqw;
  color: #d4d4d8;
}

.checks li:last-child {
  border-bottom: 0;
}

.checks li:nth-child(1) {
  --t: 0.45s;
  --w: 92%;
}

.checks li:nth-child(2) {
  --t: 1.95s;
  --w: 84%;
}

.checks li:nth-child(3) {
  --t: 3.55s;
  --w: 70%;
}

.tick {
  position: relative;
  grid-row: span 2;
  width: 6.4cqw;
  height: 6.4cqw;
  border-radius: 50%;
  background: linear-gradient(180deg, #d0604d, #a94334);
  box-shadow: 0 0 4cqw rgba(224, 115, 93, 0.35);
}

.tick::after {
  content: "";
  position: absolute;
  left: 36%;
  top: 22%;
  width: 24%;
  height: 44%;
  border: solid #fff;
  border-width: 0 0.6cqw 0.6cqw 0;
  transform: rotate(45deg);
}

.bar {
  display: block;
  grid-column: 2;
  height: 1.2cqw;
  margin-top: 1.6cqw;
  overflow: hidden;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.07);
}

.bar::after {
  content: "";
  display: block;
  width: var(--w, 100%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #a94334, #e0735d);
  transform-origin: left;
}

.is-active .ui-card {
  animation: card-in 0.7s var(--ease-out) both;
}

.is-active .tick {
  animation: tick-on 0.45s var(--ease-out) var(--t) both;
}

.is-active .tick::after {
  animation: check-on 0.35s var(--ease-out) calc(var(--t) + 0.15s) both;
}

.is-active .bar::after {
  animation: bar-on 1s var(--ease-out) var(--t) both;
}

.is-active .stamp {
  animation: stamp-on 0.45s var(--ease-out) 4.3s both;
}

/* 3 · Build */

.store {
  width: 70cqw;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 5cqw;
  background: #151518;
  box-shadow: 0 5cqw 12cqw rgba(0, 0, 0, 0.5);
}

.store-chrome {
  display: flex;
  align-items: center;
  gap: 1.2cqw;
  padding: 2.4cqw 3.2cqw;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: #1a1a1e;
}

.store-chrome i {
  width: 1.6cqw;
  height: 1.6cqw;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.store-chrome span {
  flex: 1;
  height: 2.6cqw;
  margin-left: 2cqw;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
}

.store-img {
  display: grid;
  place-items: center;
  height: 36cqw;
  background: radial-gradient(60% 70% at 50% 45%, #4a2a22, #1c1414 72%);
}

.jar {
  position: relative;
  width: 16cqw;
  height: 20cqw;
  margin-top: 4cqw;
  border-radius: 3cqw 3cqw 4cqw 4cqw;
  background: linear-gradient(90deg, #cfc5b8 0%, #f1ebe3 40%, #b8ab9b 100%);
  box-shadow: 0 3cqw 5cqw rgba(0, 0, 0, 0.45);
}

.jar::before {
  content: "";
  position: absolute;
  top: -4.4cqw;
  left: 1.6cqw;
  right: 1.6cqw;
  height: 4.8cqw;
  border-radius: 1.4cqw 1.4cqw 0.6cqw 0.6cqw;
  background: linear-gradient(90deg, #2a2a2e, #4a4a50 45%, #202024);
}

.jar::after {
  content: "";
  position: absolute;
  top: 6.4cqw;
  left: 0;
  right: 0;
  height: 6.4cqw;
  background: linear-gradient(90deg, #a94334, #d0604d 45%, #8f3729);
}

.store-info {
  display: grid;
  gap: 2cqw;
  padding: 3.6cqw 4cqw 4cqw;
}

.stars {
  display: flex;
  gap: 0.8cqw;
}

.stars i {
  width: 2.6cqw;
  height: 2.6cqw;
  background: var(--accent-ink);
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.store-btn {
  display: grid;
  place-items: center;
  height: 8cqw;
  margin-top: 1cqw;
  border-radius: 99px;
  background: linear-gradient(180deg, #c2503f, #8f3729);
  box-shadow: inset 0 0 0 1px rgba(255, 120, 100, 0.25);
  color: #fff;
  font-size: 3.2cqw;
  font-weight: 600;
}

.toasts {
  position: absolute;
  top: 2cqw;
  right: 3.6cqw;
  display: grid;
  gap: 2cqw;
  width: 48cqw;
}

.toast {
  display: flex;
  align-items: center;
  gap: 2.4cqw;
  padding: 2.4cqw 3cqw;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 3.6cqw;
  background: rgba(28, 28, 32, 0.88);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 3cqw 8cqw rgba(0, 0, 0, 0.5);
}

.toast-ic {
  display: grid;
  flex: none;
  place-items: center;
  width: 7cqw;
  height: 7cqw;
  border-radius: 2cqw;
  background: linear-gradient(160deg, #d0604d, #8f3729);
  color: #fff;
}

.toast-ic svg {
  width: 58%;
  height: 58%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.toast > span {
  display: flex;
  flex-direction: column;
  font-size: 2.8cqw;
  line-height: 1.3;
  color: var(--muted);
}

.toast b {
  font-size: 3.2cqw;
  font-weight: 600;
  color: #fff;
}

.toast:nth-child(1) {
  --t: 1.3s;
}

.toast:nth-child(2) {
  --t: 2.4s;
}

.toast:nth-child(3) {
  --t: 3.6s;
}

.is-active .store {
  animation: card-in 0.7s var(--ease-out) both;
}

.is-active .jar {
  animation: jar-in 0.9s var(--ease-out) 0.15s both;
}

.is-active .store-btn {
  animation: press 0.5s ease 1.05s both;
}

.is-active .toast {
  animation: toast-in 0.6s var(--ease-out) var(--t) both;
}

/* 4 · Scale */

.ads {
  position: relative;
  width: 80cqw;
  height: 42cqw;
}

.ad {
  position: absolute;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 23cqw;
  height: 40cqw;
  overflow: hidden;
  padding: 2.4cqw;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 3.6cqw;
  box-shadow: 0 4cqw 9cqw rgba(0, 0, 0, 0.55);
}

.ad b {
  margin-bottom: 3cqw;
  font-size: 4.2cqw;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: #fff;
  text-shadow: 0 0.6cqw 2cqw rgba(0, 0, 0, 0.4);
}

.ad-tag {
  position: absolute;
  top: 2.2cqw;
  left: 2.2cqw;
  padding: 0.5cqw 1.6cqw;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.35);
  font-size: 2.3cqw;
  color: #fff;
}

.ad-bar {
  position: absolute;
  left: 2.2cqw;
  right: 2.2cqw;
  bottom: 2cqw;
  height: 0.6cqw;
  overflow: hidden;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.25);
}

.ad-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  transform-origin: left;
}

.a1 {
  left: 4cqw;
  background: radial-gradient(80% 60% at 30% 20%, #e0735d, transparent 60%), linear-gradient(170deg, #9c3f31, #2a1411);
  transform: rotate(-9deg) translateY(3cqw);
}

.a2 {
  left: calc(50% - 11.5cqw);
  z-index: 2;
  background: radial-gradient(80% 60% at 70% 25%, #8b93a7, transparent 60%), linear-gradient(170deg, #3c4150, #121318);
  transform: scale(1.08);
}

.a3 {
  right: 4cqw;
  background: radial-gradient(80% 60% at 40% 20%, #d9b99a, transparent 60%), linear-gradient(170deg, #7a5a44, #1e1510);
  transform: rotate(9deg) translateY(3cqw);
}

.channels {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.6cqw;
  width: 86cqw;
}

.channels span {
  padding: 1.3cqw 2.6cqw;
  border: 1px solid rgba(224, 115, 93, 0.55);
  border-radius: 99px;
  background: rgba(224, 115, 93, 0.12);
  font-size: 2.9cqw;
  font-weight: 500;
  color: #fff;
}

.channels span:nth-child(1) {
  --t: 1.9s;
}

.channels span:nth-child(2) {
  --t: 2.2s;
}

.channels span:nth-child(3) {
  --t: 2.5s;
}

.channels span:nth-child(4) {
  --t: 2.8s;
}

.growth {
  position: relative;
  width: 78cqw;
  height: 22cqw;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4cqw;
  background: linear-gradient(180deg, #19191c, #131316);
}

.growth svg {
  position: absolute;
  top: 3cqw;
  left: 3cqw;
  width: calc(100% - 6cqw);
  height: calc(100% - 5.4cqw);
  overflow: visible;
}

.g-line {
  fill: none;
  stroke: var(--accent-ink);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.g-label {
  position: absolute;
  top: 2.4cqw;
  left: 3cqw;
  font-size: 2.5cqw;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.g-dot {
  position: absolute;
  top: 3.2cqw;
  right: 1.8cqw;
  width: 2.4cqw;
  height: 2.4cqw;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 1.2cqw rgba(224, 115, 93, 0.35), 0 0 4cqw rgba(224, 115, 93, 0.8);
}

.is-active .ad {
  animation: ad-in 0.8s var(--ease-out) both;
}

.is-active .a1 {
  animation-delay: 0.1s;
}

.is-active .a3 {
  animation-delay: 0.2s;
}

.is-active .ad-bar::after {
  animation: ad-play 3.2s linear infinite;
}

.is-active .channels span {
  animation: chip-on 0.5s ease var(--t) both;
}

.is-active .g-line {
  animation: draw 2.2s var(--ease-out) 3s both;
}

.is-active .g-area {
  animation: fade-in 1s ease 3.8s both;
}

.is-active .g-dot {
  animation: pop-in 0.5s var(--ease-out) 4.9s both;
}

/* 5 · Clients */

.doc-stack {
  position: relative;
  width: 70cqw;
}

.doc-back {
  position: absolute;
  inset: 0;
  border-radius: 4.4cqw;
  background: linear-gradient(180deg, #d9d3ca, #c9c2b7);
  opacity: 0.35;
  transform: rotate(-6deg) translate(-3cqw, 2cqw);
}

.doc {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 5cqw;
  border-radius: 4.4cqw;
  background: linear-gradient(180deg, #f4f1ec, #e6e1d9);
  box-shadow: 0 5cqw 12cqw rgba(0, 0, 0, 0.55);
  color: #1b1b1f;
}

.doc-kicker {
  font-size: 2.6cqw;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8f3729;
}

.doc-title {
  margin: 1cqw 0 1.4cqw;
  font-size: 4.8cqw;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.doc .sk {
  height: 1.8cqw;
  margin-top: 2.1cqw;
  background: rgba(0, 0, 0, 0.12);
}

.doc-scope {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4cqw;
  margin-top: 3.6cqw;
}

.doc-scope span {
  padding: 1cqw 2.2cqw;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 99px;
  font-size: 2.6cqw;
  font-weight: 600;
  color: #3f3f46;
}

.signs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4cqw;
  margin-top: 5cqw;
}

.sign svg {
  width: 100%;
  height: 9cqw;
  overflow: visible;
}

.sig {
  fill: none;
  stroke: #1b1b1f;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.sign > span {
  display: block;
  margin-top: 1cqw;
  padding-top: 1.4cqw;
  overflow: hidden;
  border-top: 1px solid rgba(0, 0, 0, 0.25);
  font-size: 2.6cqw;
  color: #52525b;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.sign:nth-child(1) {
  --t: 1.1s;
}

.sign:nth-child(2) {
  --t: 2.4s;
}

.signed {
  position: absolute;
  top: 4.4cqw;
  right: 4.4cqw;
  display: inline-flex;
  align-items: center;
  gap: 1.4cqw;
  padding: 1.2cqw 2.6cqw;
  border-radius: 99px;
  background: #1b1b1f;
  color: #fff;
  font-size: 2.8cqw;
  font-weight: 600;
}

.signed::before {
  content: "";
  width: 1.6cqw;
  height: 1.6cqw;
  border-radius: 50%;
  background: var(--accent-ink);
  box-shadow: 0 0 0 0.8cqw rgba(224, 115, 93, 0.3);
}

.is-active .doc {
  animation: doc-in 0.8s var(--ease-out) both;
}

.is-active .doc-back {
  animation: fade-in 0.8s ease 0.2s both;
}

.is-active .sig {
  animation: draw 1.1s ease-in-out var(--t) both;
}

.is-active .signed {
  animation: pop-in 0.5s var(--ease-out) 3.9s both;
}

/* 6 · Worldwide */

.globe {
  width: 72cqw;
  height: 72cqw;
}

.is-active .globe {
  animation: globe-in 1s var(--ease-out) both;
}

/* Paused: freeze every running animation where it is */

.film.is-paused .film-bg,
.film.is-paused .scene,
.film.is-paused .scene *,
.film.is-paused .scene *::before,
.film.is-paused .scene *::after,
.film.is-paused .film-caption * {
  animation-play-state: paused !important;
}

/* Film keyframes — each animates FROM a hidden state to the normal styles */

@keyframes film-drift {
  to {
    transform: translate3d(-5%, 4%, 0) rotate(6deg);
  }
}

@keyframes word {
  from {
    opacity: 0;
    transform: translateY(45%) scale(0.94);
    filter: blur(3px);
  }
}

@keyframes rise-in-px {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(3cqw);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

@keyframes pop-in {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
}

@keyframes float {
  to {
    transform: translateY(-1.6cqw);
  }
}

@keyframes tile-in {
  from {
    opacity: 0;
    transform: translateY(8cqw) scale(0.55);
  }
}

@keyframes tile-lit {
  to {
    border-color: rgba(224, 115, 93, 0.55);
    box-shadow: 0 1.5cqw 5cqw rgba(194, 80, 63, 0.28), inset 0 0 0 1px rgba(224, 115, 93, 0.25);
    color: #fff;
  }
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(6cqw) scale(0.96);
  }
}

@keyframes tick-on {
  from {
    background: transparent;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  }
}

@keyframes check-on {
  from {
    opacity: 0;
    transform: rotate(45deg) scale(0.2);
  }
}

@keyframes bar-on {
  from {
    transform: scaleX(0);
  }
}

@keyframes stamp-on {
  from {
    opacity: 0;
    transform: rotate(-8deg) scale(2.4);
  }
}

@keyframes jar-in {
  from {
    opacity: 0;
    transform: translateY(5cqw) rotate(-6deg);
  }
}

@keyframes press {
  50% {
    filter: brightness(1.25);
    transform: scale(0.93);
  }
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateX(12cqw) scale(0.96);
  }
}

@keyframes ad-in {
  from {
    opacity: 0;
    transform: translateY(14cqw) scale(0.8);
  }
}

@keyframes ad-play {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes chip-on {
  from {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    color: #a1a1aa;
  }
}

@keyframes draw {
  from {
    stroke-dashoffset: 1;
  }
}

@keyframes doc-in {
  from {
    opacity: 0;
    transform: translateY(10cqw) rotate(4deg);
  }
}

@keyframes globe-in {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
}

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

.section {
  padding-block: clamp(72px, 9vw, 120px);
  border-top: 1px solid var(--line);
}

.section-head {
  max-width: 780px;
}

/* Shared section bits */

.tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-soft);
  white-space: nowrap;
}

.ticks {
  margin-top: 12px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.ticks li {
  position: relative;
  padding: 13px 0 13px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink-soft);
}

.ticks li:last-child {
  border-bottom: 0;
}

.ticks li::before {
  content: "";
  position: absolute;
  top: 25px; /* centre of the first line: 13px padding + half of 24px line */
  left: 0;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 1.5px;
  background: var(--accent);
  transform: rotate(45deg);
}

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

.site-footer {
  padding-block: 56px 40px;
  border-top: 1px solid var(--line);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
}

.footer-brand p {
  max-width: 38ch;
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
}

.footer-nav {
  display: flex;
  gap: clamp(48px, 8vw, 104px);
}

.footer-h {
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-nav a {
  display: block;
  padding: 5px 0;
  font-size: 14px;
  color: var(--ink-soft);
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--ink);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Legal pages ---------- */

.legal {
  padding-block: clamp(56px, 8vw, 104px) clamp(80px, 10vw, 128px);
}

.legal .container {
  max-width: calc(760px + 2 * var(--gutter));
}

.crumbs a {
  color: var(--muted);
  transition: color 0.2s;
}

.crumbs a:hover {
  color: var(--ink);
}

.legal h1 {
  margin-top: 20px;
  font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.updated {
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
}

.prose {
  max-width: 70ch;
  margin-top: 44px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  line-height: 1.7;
}

.prose h2 {
  margin: 40px 0 12px;
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose ul {
  margin: 0 0 14px;
}

.prose ul {
  padding-left: 20px;
}

.prose li {
  margin: 6px 0;
}

.prose li::marker {
  color: var(--accent-ink);
}

.prose a {
  color: var(--accent-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.prose strong {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- 404 ---------- */

.not-found {
  padding-block: clamp(96px, 16vw, 200px);
}

/* ---------- Page-load motion ---------- */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.rise {
  animation: rise 0.6s var(--ease-out) both;
}

.rise-2 {
  animation-delay: 0.06s;
}

.rise-3 {
  animation-delay: 0.12s;
}

.rise-4 {
  animation-delay: 0.18s;
}

.rise-5 {
  animation-delay: 0.26s;
}

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

@media (max-width: 1120px) {
  .brand-divider,
  .brand-tagline {
    display: none;
  }
}

@media (max-width: 760px) {
  .film-frame {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    min-height: 0;
    border-radius: 22px;
  }

  .film-copy {
    padding: 24px 20px 0;
  }

  .film-caption {
    margin-top: 14px;
    font-size: 1.65rem;
  }

  .film-stage {
    width: min(360px, 100%);
    margin: 4px 0 8px;
  }

  .film-bar {
    padding: 0 14px 12px;
  }

  .chap {
    flex: 0 0 auto;
  }
}



@media (max-width: 760px) {
  .nav a:not(.btn) {
    display: none;
  }
}

@media (max-width: 480px) {
  .actions .btn {
    flex: 1 1 auto;
  }


}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .rise,
  .film *,
  .film *::before,
  .film *::after {
    animation: none !important;
  }

  .scene {
    transform: none !important;
    transition: opacity 0.2s linear, visibility 0s;
  }

  .btn,
  .btn .arrow {
    transition: none;
  }
}
