/* Senia: concept website. Palette and type follow the Senia brand boards. */
:root {
  --night: #000019;
  --night-2: #08082a;
  --violet: #5d54d6;
  --electric: #7c72ff;
  --haze: #dddaff;
  --paper: #ffffff;
  --mist: #eaeaea;
  --steel: #b0b0b0;
  --ink-soft: #4a4a63;
  --line-dark: rgba(221, 218, 255, 0.14);
  --line-light: rgba(0, 0, 25, 0.12);

  --font: "Urbanist", "Segoe UI", system-ui, sans-serif;
  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius-s: 12px;
  --radius-m: 20px;
  --radius-l: 32px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--paper);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.08; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--electric); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--violet); color: var(--paper); }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 12px; z-index: 100; background: var(--paper); color: var(--night); padding: 10px 16px; border-radius: 999px; }
.skip:focus { left: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 30px; border-radius: 999px;
  font: 500 1rem/1 var(--font); text-decoration: none; letter-spacing: 0.005em;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.btn-fill { background: var(--violet); color: var(--paper); box-shadow: 0 10px 30px -12px rgba(124, 114, 255, .8); }
.btn-fill:hover { background: var(--electric); }
.btn-line { border-color: rgba(255, 255, 255, .7); color: var(--paper); }
.btn-line:hover { background: var(--paper); color: var(--night); }
.btn-light { background: var(--paper); color: var(--night); }
.btn-light:hover { background: var(--haze); }
.btn-dark { background: var(--night); color: var(--paper); }
.btn-dark:hover { background: var(--violet); }

/* Interactive hover button (native port of the shadcn "InteractiveHoverButton"):
   label slides out, a dot swells to fill the pill, label returns with an arrow */
/* overflow: clip (not hidden) so the browser can never scroll the pill's contents sideways */
.ihb { position: relative; isolation: isolate; overflow: hidden; overflow: clip; padding-left: 44px; padding-right: 30px; }
.ihb-dot {
  position: absolute; z-index: -1; left: 22px; top: 50%; width: 8px; height: 8px; margin-top: -4px;
  border-radius: 50%; background: var(--violet); pointer-events: none;
  transition: scale .7s var(--ease), background-color .3s var(--ease);
}
.ihb-label { display: inline-block; transition: translate .55s var(--ease), opacity .35s var(--ease); }
.ihb-hover {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px;
  color: var(--paper); opacity: 0; translate: 48px 0; pointer-events: none;
  transition: translate .55s var(--ease), opacity .35s var(--ease);
}
.ihb-hover svg { width: 18px; height: 18px; flex: none; }
.btn-line.ihb:hover, .btn-line.ihb:focus-visible { background: transparent; color: var(--paper); border-color: var(--violet); }
.ihb:hover .ihb-label, .ihb:focus-visible .ihb-label { translate: 48px 0; opacity: 0; }
.ihb:hover .ihb-hover, .ihb:focus-visible .ihb-hover { translate: -4px 0; opacity: 1; }
.ihb:hover .ihb-dot, .ihb:focus-visible .ihb-dot { scale: 80; }
/* On the violet CTA band the fill is white with violet text, so it stays visible */
.cta .ihb .ihb-dot { background: var(--paper); }
.cta .btn-line.ihb:hover, .cta .btn-line.ihb:focus-visible { border-color: var(--paper); }
.cta .ihb .ihb-hover { color: var(--violet); }

.text-link {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none;
  color: var(--violet); border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.on-dark .text-link, .text-link.on-dark { color: var(--haze); }
.text-link:hover { color: var(--electric); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background-color .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(0, 0, 25, .72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line-dark);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 24px; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 26px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 38px; }
.nav-links a { text-decoration: none; font-size: .975rem; font-weight: 500; color: rgba(255, 255, 255, .82); transition: color .25s; position: relative; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--paper); }
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px; border-radius: 2px; background: var(--electric);
}
.nav-cta { min-height: 44px; padding: 0 24px; font-size: .95rem; }
.nav-links .nav-mobile-only { display: none; }
.menu-btn { display: none; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(100svh, 980px);
  padding: 150px 0 56px;
  display: flex; flex-direction: column;
  background:
    radial-gradient(60% 55% at 50% -8%, rgba(93, 84, 214, .42), transparent 70%),
    radial-gradient(45% 50% at 92% 18%, rgba(124, 114, 255, .16), transparent 70%),
    linear-gradient(180deg, #05052a 0%, var(--night) 62%);
}
.hero-wave {
  position: absolute; z-index: -1; pointer-events: none; will-change: transform;
  left: 34%; bottom: -6%; width: min(1180px, 88vw);
  mix-blend-mode: lighten; opacity: .95;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%), radial-gradient(75% 85% at 42% 70%, #000 52%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 22%), radial-gradient(75% 85% at 42% 70%, #000 52%, transparent 100%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
  animation: wave-in 2.4s var(--ease) both, wave-drift 18s ease-in-out 2.4s infinite alternate;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; flex: 1; }
.hero h1 { font-size: clamp(2.7rem, 5.6vw, 4.75rem); line-height: 1.04; letter-spacing: -0.028em; max-width: 13ch; }
.hero-lede { margin-top: 28px; max-width: 34em; color: rgba(255, 255, 255, .78); font-size: 1.125rem; line-height: 1.7; }
.hero-actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 16px; }

.stats { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 190px)); gap: 18px; justify-content: end; }
.stat {
  border-radius: var(--radius-s); padding: 22px 24px 24px; color: var(--paper);
  background: linear-gradient(160deg, rgba(124, 114, 255, .95), rgba(93, 84, 214, .92));
  box-shadow: 0 30px 60px -30px rgba(0, 0, 25, .9), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.stat strong { display: block; font-size: 2.1rem; font-weight: 500; line-height: 1; letter-spacing: -0.02em; }
.stat span { display: block; margin-top: 12px; font-size: .95rem; line-height: 1.35; color: rgba(255, 255, 255, .86); }
.stat-main {
  grid-column: 1 / -1; padding: 40px 38px 40px; min-height: 260px;
  background: linear-gradient(100deg, #5d54d6 0%, rgba(93, 84, 214, .96) 48%, rgba(93, 84, 214, .35) 82%, rgba(93, 84, 214, 0) 100%);
  box-shadow: none; margin-right: -12%;
}
.stat-main strong { font-size: clamp(3.4rem, 5vw, 4.4rem); }
.stat-main span { max-width: 15em; font-size: 1rem; }
.stat-bar { margin-top: 36px; height: 4px; width: 78%; border-radius: 4px; background: rgba(255, 255, 255, .28); overflow: hidden; }
.stat-bar i { display: block; height: 100%; width: 86%; background: var(--paper); border-radius: inherit; transform-origin: left; animation: bar 1.6s var(--ease) 1s both; }
.stats .stat:nth-child(2) { transform: translateY(14px); }

.trusted { margin-top: 64px; text-align: center; }
.trusted p { font-size: .975rem; color: rgba(255, 255, 255, .8); }
.clients { margin-top: 20px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px 56px; color: rgba(255, 255, 255, .55); }
.clients li { font-size: 1.35rem; line-height: 1; white-space: nowrap; }
.c-lumen { font-weight: 300; letter-spacing: .32em; font-size: 1.05rem !important; }
.c-northwave { font-weight: 700; letter-spacing: -0.04em; }
.c-kova { font-weight: 800; font-style: italic; letter-spacing: -0.02em; }
.c-halden { font-weight: 500; letter-spacing: .06em; font-variant: small-caps; }
.c-fieldnote { font-weight: 400; letter-spacing: -0.01em; }
.c-fieldnote::first-letter { color: rgba(255, 255, 255, .85); }

/* Load sequence: one orchestrated moment */
.load > * { animation: rise 1s var(--ease) both; }
.load > *:nth-child(2) { animation-delay: .12s; }
.load > *:nth-child(3) { animation-delay: .24s; }
.stats .stat { animation: rise 1.1s var(--ease) both; }
.stats .stat:nth-child(1) { animation-delay: .35s; }
.stats .stat:nth-child(2) { animation-delay: .5s; }
.stats .stat:nth-child(3) { animation-delay: .62s; }
@keyframes rise { from { opacity: 0; translate: 0 22px; } to { opacity: 1; translate: 0 0; } }
@keyframes bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes wave-in { from { opacity: 0; transform: translate3d(0, 6%, 0) scale(1.04); } to { opacity: .95; transform: none; } }
@keyframes wave-drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-2%, -2.5%, 0) rotate(-1.5deg); } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 190px 0 120px;
  background:
    radial-gradient(55% 70% at 15% -10%, rgba(93, 84, 214, .38), transparent 70%),
    linear-gradient(180deg, #05052a, var(--night) 75%);
}
.page-hero .hero-wave { left: auto; right: -14%; bottom: -30%; width: min(900px, 80vw); opacity: .8; }
.page-hero h1 { font-size: clamp(2.6rem, 5.2vw, 4.4rem); max-width: 15ch; letter-spacing: -0.028em; }
.page-hero p { margin-top: 26px; max-width: 36em; font-size: 1.125rem; line-height: 1.7; color: rgba(255, 255, 255, .78); }
.crumb { display: inline-block; margin-bottom: 26px; font-size: .95rem; color: var(--haze); text-decoration: none; }

/* ---------- Sections ---------- */
.section { padding: clamp(88px, 11vw, 150px) 0; }
.light { background: var(--paper); color: var(--night); }
.mist { background: var(--mist); color: var(--night); }
.violet { background: var(--violet); color: var(--paper); }
.section-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 40px; align-items: end; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head h2, .h2 { font-size: clamp(2.1rem, 4vw, 3.4rem); letter-spacing: -0.025em; }
.section-head p { color: var(--ink-soft); max-width: 30em; }
.on-dark .section-head p, .section-head.on-dark p { color: rgba(255, 255, 255, .72); }

/* Statement (home) */
.statement { font-size: clamp(2.4rem, 5.4vw, 4.6rem); line-height: 1.05; letter-spacing: -0.03em; font-weight: 600; max-width: 14ch; }
.statement em { font-style: normal; color: var(--violet); }
.statement-row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 56px; align-items: end; }
.statement-row p { color: var(--ink-soft); font-size: 1.125rem; max-width: 26em; }
.statement-row .text-link { margin-top: 28px; }

.offer { margin-top: clamp(64px, 8vw, 110px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-light); }
.offer li { padding: 34px 36px 8px 0; }
.offer li + li { padding-left: 36px; border-left: 1px solid var(--line-light); }
.offer h3 { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.015em; }
.offer p { margin-top: 14px; color: var(--ink-soft); }
.offer .tags { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 6px 14px !important; border: 0 !important; border-radius: 999px; background: #f1f0ff; color: var(--violet); font-size: .875rem; font-weight: 500; }

/* Case study (home) */
.case { position: relative; overflow: hidden; background: radial-gradient(70% 80% at 85% 10%, rgba(93, 84, 214, .28), transparent 70%), var(--night); }
.case-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 4vw, 56px); align-items: stretch; }
.case-copy { display: flex; flex-direction: column; }
.case-client { display: flex; align-items: center; gap: 14px; color: var(--haze); font-weight: 500; }
.case-client::before { content: ""; width: 38px; height: 1px; background: currentColor; opacity: .6; }
.case-copy h2 { margin-top: 26px; font-size: clamp(2.1rem, 3.8vw, 3.2rem); max-width: 15ch; }
.case-copy > p { margin: 24px 0 56px; max-width: 30em; color: rgba(255, 255, 255, .74); }
.case-figures { margin-top: auto; padding-top: 48px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; border-top: 1px solid var(--line-dark); }
.case-figures strong { display: block; font-size: clamp(4rem, 8vw, 6.6rem); font-weight: 300; line-height: .9; letter-spacing: -0.05em; }
.case-figures span { display: block; margin-top: 14px; max-width: 15em; color: rgba(255, 255, 255, .7); font-size: .975rem; line-height: 1.45; }
.case-actions { margin-top: 40px; }

.case-panel { position: relative; overflow: hidden; border-radius: var(--radius-l); background: var(--violet); min-height: 560px; padding: clamp(28px, 3.4vw, 44px); display: flex; flex-direction: column; }
.case-panel > p { position: relative; z-index: 1; max-width: 13em; font-size: 1.15rem; line-height: 1.35; font-weight: 500; }
.case-panel .wave-img { position: absolute; z-index: 0; right: -38%; top: -4%; width: 115%; max-width: none;
  -webkit-mask-image: linear-gradient(200deg, #000 35%, transparent 75%); mask-image: linear-gradient(200deg, #000 35%, transparent 75%); }
.bars { position: relative; z-index: 1; margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: end; height: 340px; }
.bar { border-radius: 6px; padding: 18px 20px; font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 500; letter-spacing: -0.02em; display: flex; flex-direction: column; justify-content: space-between; }
.bar small { font-size: .85rem; font-weight: 500; letter-spacing: 0; opacity: .75; }
.bar-before { height: 52%; background: var(--night); color: var(--paper); }
.bar-after { height: 100%; background: var(--haze); color: var(--night); }

/* Approach (home) */
.approach { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.approach-media { position: relative; overflow: hidden; border-radius: var(--radius-l); background: radial-gradient(90% 80% at 70% 15%, #f4f3ff, var(--haze) 75%); }
.approach-media img { width: 100%; mix-blend-mode: multiply; }
.approach h2 { font-size: clamp(2.3rem, 4.4vw, 3.8rem); font-weight: 600; letter-spacing: -0.03em; }
.approach h2 > span { display: block; }
.approach > div > p { margin-top: 24px; color: var(--ink-soft); font-size: 1.125rem; max-width: 30em; }
.principles { margin-top: 40px; border-top: 1px solid var(--line-light); }
.principles li { display: grid; grid-template-columns: 9.5rem 1fr; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line-light); }
.principles b { font-weight: 600; }
.principles span { color: var(--ink-soft); }

/* CTA band */
.cta { position: relative; overflow: hidden; isolation: isolate; background: var(--violet); padding: clamp(96px, 12vw, 160px) 0; }
.cta .wave-img { position: absolute; z-index: -1; right: -6%; bottom: -10%; width: min(980px, 95vw); max-width: none; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%); mask-image: linear-gradient(90deg, transparent 0%, #000 30%); }
.cta h2 { font-size: clamp(2.5rem, 5.4vw, 4.6rem); line-height: 1.04; font-weight: 600; letter-spacing: -0.03em; max-width: 12ch; }
.cta p { margin-top: 24px; max-width: 30em; font-size: 1.125rem; color: rgba(255, 255, 255, .86); }
.cta .hero-actions { margin-top: 40px; }

/* ---------- Services page ---------- */
.svc-list { border-top: 1px solid var(--line-light); }
.svc { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr) minmax(0, .8fr); gap: 40px; padding: 44px 0; border-bottom: 1px solid var(--line-light); }
.svc h3 { font-size: clamp(1.6rem, 2.4vw, 2rem); font-weight: 600; letter-spacing: -0.02em; }
.svc > p { color: var(--ink-soft); }
.svc ul { display: grid; gap: 8px; }
.svc ul li { position: relative; padding-left: 20px; font-weight: 500; }
.svc ul li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 2px 6px; background: var(--violet); }

.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr); gap: 20px; align-items: start; }
.duo figure { margin: 0; border-radius: var(--radius-m); overflow: hidden; background: var(--night-2); }
.duo img { width: 100%; object-fit: cover; aspect-ratio: 1 / 1; object-position: 50% 40%; }
.duo figure:last-child img { aspect-ratio: 1.647 / 1; object-position: 0 0; }
.duo figcaption { padding: 16px 20px; font-size: .925rem; color: rgba(255, 255, 255, .7); }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: step; border-top: 1px solid var(--line-dark); }
.steps li { padding: 34px 28px 8px 0; position: relative; }
.steps li + li { padding-left: 28px; border-left: 1px solid var(--line-dark); }
.steps .num { display: block; font-size: .95rem; color: var(--electric); font-weight: 600; font-variant-numeric: tabular-nums; }
.steps h3 { margin-top: 40px; font-size: 1.6rem; font-weight: 600; }
.steps p { margin-top: 12px; color: rgba(255, 255, 255, .72); font-size: 1rem; }
.steps small { display: block; margin-top: 18px; color: var(--haze); font-size: .9rem; }

/* ---------- Agency page ---------- */
.story { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.story figure { margin: 0; border-radius: var(--radius-m); overflow: hidden; }
.story img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.story h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
.story p { margin-top: 22px; color: var(--ink-soft); font-size: 1.1rem; max-width: 32em; }
.facts { margin-top: 44px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; border-top: 1px solid var(--line-light); padding-top: 28px; }
.facts strong { display: block; font-size: 2.6rem; font-weight: 500; line-height: 1; letter-spacing: -0.03em; color: var(--violet); }
.facts span { display: block; margin-top: 10px; font-size: .95rem; color: var(--ink-soft); line-height: 1.4; }

.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.value { border-radius: var(--radius-m); padding: 36px 32px 40px; background: rgba(221, 218, 255, .05); border: 1px solid var(--line-dark); }
.value:nth-child(2) { background: var(--violet); border-color: transparent; }
.value h3 { font-size: 1.75rem; font-weight: 600; }
.value p { margin-top: 14px; color: rgba(255, 255, 255, .76); }
.value:nth-child(2) p { color: rgba(255, 255, 255, .9); }

.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: clamp(140px, 16vw, 220px); gap: 16px; }
.gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius-s); background: #e3e3e8; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.gallery figure:hover img { transform: scale(1.03); }
.gallery figcaption {
  position: absolute; left: 14px; bottom: 14px; padding: 6px 12px; border-radius: 999px;
  background: rgba(0, 0, 25, .62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: var(--paper); font-size: .85rem; font-weight: 500;
}
.g-signage { grid-column: span 8; grid-row: span 2; }
.g-binder { grid-column: span 4; grid-row: span 2; }
.g-tote { grid-column: span 4; grid-row: span 2; }
.g-bottles { grid-column: span 4; grid-row: span 2; }
.g-phone { grid-column: span 4; grid-row: span 2; }
.g-night { grid-column: span 12; grid-row: span 3; }
.g-night img { object-position: 50% 42%; }

.team { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.team figure { margin: 0; border-radius: var(--radius-m); overflow: hidden; order: 2; }
.team img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; }
.team h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
.team p { margin-top: 22px; color: var(--ink-soft); font-size: 1.1rem; max-width: 30em; }
.team .text-link { margin-top: 30px; }

/* ---------- Contact page ---------- */
.contact { position: relative; isolation: isolate; overflow: hidden; padding: 170px 0 clamp(88px, 10vw, 140px);
  background: radial-gradient(55% 70% at 10% -10%, rgba(93, 84, 214, .38), transparent 70%), linear-gradient(180deg, #05052a, var(--night) 70%); }
.contact .hero-wave { left: -22%; right: auto; bottom: -24%; width: min(900px, 90vw); opacity: .55; }
.contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact h1 { font-size: clamp(2.5rem, 4.8vw, 4rem); letter-spacing: -0.028em; max-width: 12ch; }
.contact-intro > p { margin-top: 24px; color: rgba(255, 255, 255, .78); font-size: 1.125rem; max-width: 26em; }
.details { margin-top: 48px; border-top: 1px solid var(--line-dark); }
.details div { display: grid; grid-template-columns: 8rem 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line-dark); }
.details dt { color: var(--haze); font-size: .95rem; }
.details dd { margin: 0; }

.form-card { background: var(--paper); color: var(--night); border-radius: var(--radius-l); padding: clamp(28px, 4vw, 52px); box-shadow: 0 60px 120px -60px rgba(93, 84, 214, .7); }
.form-card h2 { font-size: 1.75rem; font-weight: 600; }
.form-card > p { margin-top: 10px; color: var(--ink-soft); }
.form { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; }
.field { display: grid; gap: 8px; }
.field-full { grid-column: 1 / -1; }
.field label, .field legend { font-size: .925rem; font-weight: 600; }
.field .opt { font-weight: 400; color: #77778c; }
.field input, .field textarea {
  width: 100%; font: 400 1rem/1.4 var(--font); color: var(--night);
  background: #f6f6f9; border: 1px solid #e2e2ea; border-radius: var(--radius-s);
  padding: 15px 16px; transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; background: var(--paper); border-color: var(--violet); box-shadow: 0 0 0 4px rgba(93, 84, 214, .15); }
.field.has-error input, .field.has-error textarea { border-color: #c4314b; background: #fff7f8; }
.error { display: none; font-size: .875rem; color: #b3243d; }
.field.has-error .error { display: block; }
fieldset.field { border: 0; margin: 0; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; min-height: 42px; padding: 0 18px; border-radius: 999px;
  border: 1px solid #d9d8e6; font-size: .95rem; font-weight: 500; cursor: pointer; user-select: none;
  transition: background-color .2s, color .2s, border-color .2s;
}
.chip input:checked + span { background: var(--violet); color: var(--paper); border-color: var(--violet); }
.chip input:focus-visible + span { outline: 2px solid var(--electric); outline-offset: 3px; }
.form .btn { grid-column: 1 / -1; justify-self: start; margin-top: 6px; }
.form-note { grid-column: 1 / -1; font-size: .875rem; color: #77778c; }
.sent { display: none; text-align: left; padding: 12px 0 6px; }
.sent .tick { width: 56px; height: 56px; border-radius: 50%; background: var(--violet); display: grid; place-items: center; }
.sent h2 { margin-top: 26px; outline: none; }
.sent p { margin-top: 12px; color: var(--ink-soft); max-width: 28em; }
.sent .btn { margin-top: 28px; }
.form-card.is-sent .form, .form-card.is-sent .form-head { display: none; }
.form-card.is-sent .sent { display: block; animation: rise .7s var(--ease) both; }

/* ---------- "Concept by VOREK" badge ---------- */
.vorek-badge {
  position: fixed; left: 20px; bottom: 20px; z-index: 60;
  display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 8px;
  background: rgba(0, 0, 25, .84); border: 1px solid rgba(221, 218, 255, .16); border-radius: 999px;
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 25, .8);
  color: var(--paper); font-size: .85rem; line-height: 1.15;
  opacity: 0; translate: 0 16px; pointer-events: none;
  transition: opacity .6s var(--ease), translate .7s var(--ease);
}
.vorek-badge.is-in { opacity: 1; translate: 0 0; pointer-events: auto; }
.vb-info { display: flex; align-items: center; gap: 10px; padding: 4px 8px 4px 4px; text-decoration: none; border-radius: 999px; }
.vb-mark { width: 26px; height: 26px; border-radius: 50%; flex: none; background: radial-gradient(circle at 35% 30%, #b9bbff, #8c8ff5 55%, #5d60c9); box-shadow: 0 0 0 3px rgba(140, 143, 245, .18); }
.vb-text small { display: block; font-size: .72rem; color: rgba(255, 255, 255, .62); }
.vb-text b { display: block; font-weight: 700; letter-spacing: .14em; font-size: .82rem; }
.vb-info:hover b { color: #b9bbff; }
.vb-cta { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px; background: #8c8ff5; color: #191a33; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background-color .3s var(--ease); }
.vb-cta:hover { background: #b9bbff; }
.vb-close { display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: rgba(255, 255, 255, .6); cursor: pointer; transition: background-color .3s, color .3s; }
.vb-close:hover { background: rgba(255, 255, 255, .1); color: var(--paper); }
@media (max-width: 560px) {
  .vorek-badge { left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); justify-content: space-between; }
  .vb-cta { padding: 0 12px; }
}
.menu-open .vorek-badge { opacity: 0; pointer-events: none; }

/* ---------- Case study page ---------- */
.cs-meta { margin-top: 48px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; border-top: 1px solid var(--line-dark); padding-top: 26px; max-width: 980px; }
.cs-meta dt { font-size: .9rem; color: var(--haze); }
.cs-meta dd { margin: 6px 0 0; font-weight: 500; }

.showcase-wrap { padding-top: 0; }
.showcase {
  position: relative; overflow: hidden; isolation: isolate; border-radius: var(--radius-l);
  background: linear-gradient(140deg, #6a61e0 0%, var(--violet) 45%, #3d36a8 100%);
  min-height: 640px; display: grid; place-items: center; padding: clamp(32px, 5vw, 72px) clamp(20px, 4vw, 64px);
}
.showcase .wave-img { position: absolute; z-index: -1; right: -12%; bottom: -18%; width: 85%; max-width: none; opacity: .9; pointer-events: none; }
.showcase-stage { position: relative; display: flex; align-items: center; justify-content: center; gap: clamp(20px, 3vw, 44px); width: 100%; }

/* Lumen: the fictional client brand, warm amber light on ivory */
.lumen-logo { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; letter-spacing: -0.02em; color: #14132b; }
.lumen-logo i { width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #ffd98a, #f2a93b); box-shadow: 0 0 0 3px rgba(242, 169, 59, .22); }

.device-phone {
  flex: none; width: 290px; border-radius: 46px; padding: 11px; background: #0d0d1f;
  box-shadow: 0 60px 90px -40px rgba(0, 0, 25, .75), inset 0 0 0 1.5px rgba(255, 255, 255, .12);
}
.phone-screen { position: relative; border-radius: 36px; overflow: hidden; background: #f8f6f1; color: #14132b; aspect-ratio: 9 / 19; padding: 16px 18px 0; display: flex; flex-direction: column; font-size: .8rem; }
.phone-notch { position: absolute; top: 9px; left: 50%; width: 86px; height: 24px; margin-left: -43px; border-radius: 20px; background: #0d0d1f; }
.phone-status { display: flex; justify-content: space-between; font-size: .7rem; font-weight: 600; padding: 2px 6px 0; }
.phone-top { margin-top: 26px; display: flex; justify-content: space-between; align-items: center; }
.phone-avatar { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, #f2a93b, #e0702f); }
.phone-hello { margin-top: 18px; color: #6c6a7d; }
.phone-balance { font-size: 1.9rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.phone-balance small { font-size: .95rem; color: #6c6a7d; font-weight: 500; }
.phone-chart { margin-top: 10px; height: 64px; }
.phone-chart svg { width: 100%; height: 100%; }
.phone-h { margin-top: 14px; font-weight: 600; display: flex; justify-content: space-between; }
.phone-h span { color: #6c6a7d; font-weight: 500; }
.decision { margin-top: 8px; padding: 11px 12px; border-radius: 14px; background: #fff; box-shadow: 0 6px 16px -10px rgba(20, 19, 43, .25); display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; }
.decision b { font-weight: 600; }
.decision small { grid-column: 1; color: #6c6a7d; font-size: .7rem; }
.decision em { grid-row: 1 / span 2; grid-column: 2; font-style: normal; font-size: .68rem; font-weight: 600; padding: 4px 9px; border-radius: 999px; background: #fdf0d8; color: #a8640c; }
.decision em.go { background: #e3f4ea; color: #1f7a44; }
.phone-nav { margin-top: auto; display: flex; justify-content: space-around; padding: 12px 0 16px; border-top: 1px solid #ece9e1; }
.phone-nav i { width: 20px; height: 4px; border-radius: 4px; background: #d6d2c6; }
.phone-nav i:first-child { background: #14132b; }

.device-desk {
  width: min(560px, 52%); border-radius: 18px; background: #f8f6f1; color: #14132b; overflow: hidden;
  box-shadow: 0 60px 100px -40px rgba(0, 0, 25, .7), 0 0 0 1px rgba(255, 255, 255, .25);
}
.desk-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: #efece4; }
.desk-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d8d3c6; }
.desk-bar span { margin-left: 12px; font-size: .75rem; color: #6c6a7d; }
.desk-body { padding: 22px 24px 26px; }
.desk-head { display: flex; justify-content: space-between; align-items: center; }
.desk-title { margin-top: 18px; font-size: 1.35rem; font-weight: 600; letter-spacing: -0.02em; }
.goal { margin-top: 14px; display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; font-size: .85rem; }
.goal span { color: #6c6a7d; }
.goal .track { grid-column: 1 / -1; height: 6px; border-radius: 6px; background: #ebe7dc; overflow: hidden; }
.goal .track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #f2a93b, #e0702f); width: var(--w); }
.desk-tags { margin-top: 20px; display: flex; gap: 8px; flex-wrap: wrap; }
.desk-tags span { padding: 6px 12px; border-radius: 999px; background: #fff; font-size: .75rem; font-weight: 600; box-shadow: 0 4px 12px -8px rgba(20, 19, 43, .3); }

.cs-split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); }
.cs-split h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
.cs-split .cs-copy p { color: var(--ink-soft); font-size: 1.1rem; max-width: 34em; }
.cs-split .cs-copy p + p { margin-top: 18px; }
.cs-pains { margin-top: 36px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cs-pains div { padding: 22px 22px 24px; border-radius: var(--radius-m); background: #f4f3fb; }
.cs-pains strong { display: block; font-size: 2.2rem; font-weight: 500; letter-spacing: -0.03em; line-height: 1; color: var(--night); }
.cs-pains span { display: block; margin-top: 10px; color: var(--ink-soft); font-size: .95rem; line-height: 1.4; }

.flow { margin-top: clamp(56px, 7vw, 96px); display: grid; gap: 18px; }
.flow-row { display: grid; grid-template-columns: 9rem 1fr; gap: 24px; align-items: center; }
.flow-row > span { font-weight: 600; }
.flow-row small { display: block; color: var(--ink-soft); font-weight: 400; }
.flow-steps { display: flex; flex-wrap: wrap; gap: 8px; }
.flow-steps li { padding: 9px 14px; border-radius: 999px; font-size: .875rem; font-weight: 500; background: #efeff3; color: #6c6a7d; }
.flow-after .flow-steps li { background: var(--violet); color: var(--paper); }

.results { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-dark); }
.results > div { padding: 34px 28px 8px 0; }
.results > div + div { padding-left: 28px; border-left: 1px solid var(--line-dark); }
.results strong { display: block; font-size: clamp(3rem, 5.4vw, 4.6rem); font-weight: 300; line-height: .95; letter-spacing: -0.05em; }
.results span { display: block; margin-top: 14px; color: rgba(255, 255, 255, .72); font-size: .975rem; line-height: 1.45; max-width: 16em; }
.results-panel { margin-top: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.results-panel .case-panel { min-height: 460px; }
.results-panel h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 500; letter-spacing: -0.02em; }
.results-panel p { margin-top: 16px; color: rgba(255, 255, 255, .72); max-width: 30em; }

.quote { max-width: 980px; }
.quote blockquote { margin: 0; font-size: clamp(1.7rem, 3.4vw, 2.8rem); line-height: 1.22; letter-spacing: -0.02em; font-weight: 500; }
.quote blockquote::before { content: "“"; display: block; font-size: 5rem; line-height: .6; color: var(--violet); margin-bottom: 18px; }
.quote figcaption { margin-top: 32px; display: flex; align-items: center; gap: 14px; color: var(--ink-soft); }
.quote figcaption b { display: block; color: var(--night); font-weight: 600; }
.quote .q-avatar { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, #f2a93b, #e0702f); flex: none; }

@media (max-width: 1080px) {
  .results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .results > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .results > div:nth-child(n+3) { border-top: 1px solid var(--line-dark); margin-top: 24px; }
}
@media (max-width: 860px) {
  .cs-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-split, .results-panel { grid-template-columns: 1fr; }
  .device-desk { display: none; }
  .showcase { min-height: 0; }
  .flow-row { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 560px) {
  .device-phone { width: 250px; border-radius: 40px; }
  .phone-screen { border-radius: 31px; font-size: .7rem; padding: 14px 14px 0; }
  .phone-balance { font-size: 1.6rem; }
  .phone-chart { height: 50px; }
  .decision { padding: 9px 10px; }
  .decision ~ .decision ~ .decision { display: none; }
  .cs-pains { grid-template-columns: 1fr; }
  .results { grid-template-columns: 1fr 1fr; }
  .results > div, .results > div + div { padding: 26px 14px 8px 0; border-left: 0; }
  .results strong { font-size: 2.8rem; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--night); border-top: 1px solid var(--line-dark); padding: 80px 0 40px; }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, .6fr)); gap: 40px; }
.foot-brand img { height: 28px; width: auto; }
.foot-brand p { margin-top: 22px; font-size: 1.6rem; line-height: 1.2; font-weight: 500; letter-spacing: -0.02em; max-width: 12em; }
.foot-col h2 { font-size: .95rem; font-weight: 500; color: var(--haze); letter-spacing: 0; }
.foot-col ul { margin-top: 18px; display: grid; gap: 10px; }
.foot-col a { text-decoration: none; color: rgba(255, 255, 255, .8); }
.foot-col a:hover { color: var(--paper); }
.foot-bottom { margin-top: 72px; padding-top: 28px; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: .9rem; color: rgba(255, 255, 255, .55); }
.foot-bottom a { color: rgba(255, 255, 255, .78); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .stats { justify-content: start; grid-template-columns: repeat(2, minmax(0, 200px)); }
  .stat-main { margin-right: 0; max-width: 460px; }
  .hero-wave { left: 8%; width: 110vw; bottom: -4%; }
  .svc { grid-template-columns: 1fr 1fr; }
  .svc h3 { grid-column: 1 / -1; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .steps li:nth-child(n+3) { border-top: 1px solid var(--line-dark); margin-top: 24px; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .nav { height: 72px; }
  .nav-cta { display: none; }
  .menu-btn {
    display: block; position: relative; width: 46px; height: 46px; border-radius: 50%; padding: 0;
    background: rgba(255, 255, 255, .08); border: 1px solid var(--line-dark); color: var(--paper); cursor: pointer;
  }
  .menu-btn span { position: absolute; left: 13px; top: 21px; width: 18px; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform .35s var(--ease); }
  .menu-btn span:first-child { transform: translateY(-3.5px); }
  .menu-btn span:last-child { transform: translateY(3.5px); }
  .menu-open .menu-btn span:first-child { transform: rotate(45deg); }
  .menu-open .menu-btn span:last-child { transform: rotate(-45deg); }
  .nav-links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px var(--gutter) 28px; background: rgba(0, 0, 25, .97);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line-dark);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  }
  .menu-open .nav-links { opacity: 1; visibility: visible; transform: none; }
  .menu-open .site-header { background: rgba(0, 0, 25, .97); }
  .nav-links a { padding: 16px 0; font-size: 1.3rem; border-bottom: 1px solid var(--line-dark); }
  .nav-links a[aria-current="page"]::after { display: none; }
  .nav-links a[aria-current="page"] { color: var(--electric); }
  .nav-links .nav-mobile-only { display: inline-flex; margin-top: 22px; border: 0; padding: 0 30px; font-size: 1rem; }

  .section-head, .statement-row, .case-grid, .approach, .story, .team, .contact-grid { grid-template-columns: 1fr; }
  .offer { grid-template-columns: 1fr; }
  .offer li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-light); }
  .offer li { padding: 30px 0 26px; }
  .case-panel { min-height: 460px; }
  .bars { height: 260px; }
  .approach-media { max-width: 520px; }
  .duo { grid-template-columns: 1fr; }
  .duo img { aspect-ratio: 4 / 3; }
  .values { grid-template-columns: 1fr; }
  .team figure { order: 0; }
  .gallery { grid-auto-rows: 120px; gap: 10px; }
  .g-signage, .g-night { grid-column: span 12; }
  .g-binder, .g-tote, .g-bottles, .g-phone { grid-column: span 6; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .hero { padding-top: 120px; min-height: 0; }
  .hero h1 { font-size: clamp(2.35rem, 10.5vw, 2.9rem); }
  .hero-lede, .page-hero p, .cta p, .contact-intro > p { font-size: 1.05rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-wave { left: -10%; width: 150vw; bottom: 10%; }
  .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-main { padding: 28px 26px; min-height: 0; }
  .stats .stat:nth-child(2) { transform: none; }
  .stat { padding: 18px 18px 20px; }
  .stat strong { font-size: 1.8rem; }
  .clients { gap: 14px 30px; }
  .clients li { font-size: 1.1rem; }
  .trusted { margin-top: 48px; }
  .page-hero { padding: 140px 0 88px; }
  .page-hero .hero-wave { right: -40%; width: 130vw; bottom: -12%; }
  .case-figures { grid-template-columns: 1fr 1fr; gap: 20px; }
  .case-figures strong { font-size: 3.4rem; }
  .bar { padding: 14px; }
  .principles li { grid-template-columns: 1fr; gap: 4px; }
  .svc { grid-template-columns: 1fr; gap: 18px; padding: 34px 0; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 28px 0 8px; border-left: 0; }
  .steps li + li { border-top: 1px solid var(--line-dark); margin-top: 0 !important; }
  .steps h3 { margin-top: 20px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts strong { font-size: 2.2rem; }
  .contact { padding-top: 130px; }
  .form { grid-template-columns: 1fr; }
  .form .btn { width: 100%; }
  .details div { grid-template-columns: 1fr; gap: 2px; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .site-footer { padding-top: 64px; }
}

/* =====================================================================
   MOTION. Only active when <html> has .motion (added in <head> unless the
   visitor prefers reduced motion). Without it, everything is static and visible.
   ===================================================================== */

/* Page-to-page cross-fade (browsers with cross-document View Transitions) */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root) { animation: vt-out .38s cubic-bezier(.4, 0, 1, 1) both; }
::view-transition-new(root) { animation: vt-in .7s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; translate: 0 -14px; filter: blur(4px); } }
@keyframes vt-in { from { opacity: 0; translate: 0 22px; } }

/* Header tucks away on scroll down, returns on scroll up */
.motion .site-header { transition: transform .5s var(--ease), background-color .4s var(--ease), border-color .4s var(--ease); }
.motion .site-header.is-hidden { transform: translateY(-100%); }

/* 1. Headlines: word-by-word rise out of a mask */
.motion :is(.hero h1, .page-hero h1, .contact h1, .statement, .section-head h2, .case-copy h2, .approach h2, .cta h2, .story h2, .team h2):not(.is-split) { visibility: hidden; }
.motion .load > h1 { animation: none; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .02em .12em; margin: 0 -.02em -.12em; }
.wi { display: inline-block; translate: 0 108%; rotate: 4deg; transform-origin: 0 100%;
  transition: translate 1.1s var(--ease), rotate 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 48ms + var(--base, 0ms)); }
.is-split.in .wi { translate: 0 0; rotate: 0deg; }

/* 2. Supporting copy follows its headline */
.motion .rv { opacity: 0; translate: 0 20px; transition: opacity 1s var(--ease), translate 1.1s var(--ease); transition-delay: var(--d, 0ms); }
.motion .rv.in { opacity: 1; translate: 0 0; }

/* 3. Frames and their images arrive together (never an empty card), then
      photos drift gently inside their frames as the page scrolls */
.motion :is(.story figure, .team figure, .duo figure, .gallery figure, .approach-media, .case-panel, .showcase) {
  clip-path: inset(100% 0 0 0); transition: clip-path 1.6s cubic-bezier(.76, 0, .24, 1); transition-delay: var(--d, 0ms);
}
.motion :is(.story figure, .team figure, .duo figure, .gallery figure, .approach-media, .case-panel, .showcase).in { clip-path: inset(0 0 0 0); }
.motion :is(.story figure, .team figure, .duo figure, .gallery figure) img {
  scale: 1.32; translate: 0 var(--pp, 0px);
  transition: scale 2.4s cubic-bezier(.16, 1, .3, 1), transform 1.2s var(--ease); transition-delay: var(--d, 0ms), 0ms;
}
.motion :is(.story figure, .team figure, .duo figure, .gallery figure).in img { scale: 1.1; }
.motion .approach-media img { scale: 1.18; transition: scale 2.4s cubic-bezier(.16, 1, .3, 1); }
.motion .approach-media.in img { scale: 1; }
.motion :is(.gallery, .duo) figcaption { opacity: 0; translate: 0 8px; transition: opacity .8s var(--ease), translate .8s var(--ease); transition-delay: calc(var(--d, 0ms) + 1000ms); }
.motion :is(.gallery, .duo) .in figcaption { opacity: 1; translate: 0 0; }

/* Hero recedes as you scroll away from it */
.motion .hero .hero-grid { opacity: calc(1 - var(--hp, 0) * .85); translate: 0 calc(var(--hp, 0) * -90px); scale: calc(1 - var(--hp, 0) * .04); transform-origin: 50% 0; }
.motion .hero .trusted { opacity: calc(1 - var(--hp, 0) * 1.6); }

/* First-visit intro: the S on deep indigo, then the curtain lifts */
html.intro { overflow: hidden; }
html.intro::before {
  content: ""; position: fixed; inset: 0; z-index: 200;
  background: radial-gradient(55% 45% at 50% 45%, #15145a 0%, var(--night) 70%);
  transition: transform 1.1s cubic-bezier(.76, 0, .24, 1);
}
html.intro::after {
  content: ""; position: fixed; z-index: 201; left: 50%; top: 50%; width: 190px; height: 40px; margin: -20px 0 0 -95px;
  background: url("/assets/img/logo-light.png") center / contain no-repeat;
  animation: mark-in .9s cubic-bezier(.16, 1, .3, 1) .1s backwards;
  transition: transform 1s cubic-bezier(.76, 0, .24, 1), opacity .6s var(--ease);
}
html.intro.intro-out::before { transform: translateY(-100%); }
html.intro.intro-out::after { transform: translateY(-34vh) scale(.8); opacity: 0; }
@keyframes mark-in { from { opacity: 0; transform: translateY(18px) scale(.86); filter: blur(10px); } }
/* hold the hero's own load sequence until the curtain lifts */
html.intro :is(.load > *, .stats .stat, .stat-bar i, .hero-wave) { animation-play-state: paused; }

/* Inertia scrolling (Lenis) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* Lighter mode for devices that can't keep the page smooth (set by JS after measuring) */
.lite .hero-wave { animation: wave-in 2.4s var(--ease) both; translate: 0 var(--sy, 0px); }
.lite .hero .stats, .lite .hero .load { translate: none; }

/* 4. Rules draw across */
.motion :is(.offer, .steps, .principles, .svc-list, .case-figures, .facts, .details, .results) { position: relative; border-top-color: transparent; }
.motion :is(.offer, .steps, .principles, .svc-list, .case-figures, .facts, .details, .results)::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--rule, var(--line-light));
  scale: 0 1; transform-origin: 0 50%; transition: scale 1.6s cubic-bezier(.7, 0, .2, 1);
}
.motion :is(.steps, .case-figures, .details, .results) { --rule: var(--line-dark); }
.motion :is(.offer, .steps, .principles, .svc-list, .case-figures, .facts, .details, .results).in::before { scale: 1 1; }

/* 5. Case study bars grow from the baseline */
.motion .bar { clip-path: inset(100% 0 0 0 round 6px); transition: clip-path 1.5s cubic-bezier(.7, 0, .2, 1); }
.motion .bar-before { transition-delay: .55s; }
.motion .bar-after { transition-delay: .8s; }
.motion .bars.in .bar { clip-path: inset(0 0 0 0 round 6px); }

/* 6. Numbers keep their width while counting */
[data-counting] { font-variant-numeric: tabular-nums; }

/* 7. Cursor depth in the hero, scroll depth on waves */
.motion .hero-wave { translate: calc(var(--mx, 0) * -26px) calc(var(--my, 0) * -18px + var(--sy, 0px)); }
.motion .hero .stats { translate: calc(var(--mx, 0) * 14px) calc(var(--my, 0) * 10px); }
.motion .hero .load { translate: calc(var(--mx, 0) * 5px) calc(var(--my, 0) * 4px); }
.motion :is(.cta, .case-panel) .wave-img { translate: 0 var(--wy, 0px); }

/* 8. Magnetic buttons */
.motion .magnetic { translate: var(--bx, 0px) var(--by, 0px); transition: translate .5s var(--ease), background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease); }
.motion .magnetic.is-near { transition-duration: .15s, .3s, .3s, .3s, .3s; }

/* 9. Spotlight on cards */
.motion :is(.stat, .value) { position: relative; overflow: hidden; }
.motion :is(.stat, .value)::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; opacity: 0;
  background: radial-gradient(260px circle at var(--px, 50%) var(--py, 50%), rgba(255, 255, 255, .22), transparent 65%);
  transition: opacity .5s var(--ease);
}
.motion :is(.stat, .value):hover::after { opacity: 1; }

/* 10. Service rows respond to hover */
@media (hover: hover) and (pointer: fine) {
  .svc { position: relative; }
  .svc::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--violet); scale: 0 1; transform-origin: 0 50%; transition: scale .8s var(--ease); }
  .svc:hover::after { scale: 1 1; }
  .svc h3 { transition: translate .6s var(--ease), color .4s var(--ease); }
  .svc:hover h3 { translate: 10px 0; color: var(--violet); }
}

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