/* ==========================================================================
   Techflows — brand & site styles
   Inspired by the Lusion style (Refero Styles), rebuilt for a bright Swiss tech agency.
   ========================================================================== */

@font-face { font-family: 'Switzer'; src: url('../fonts/switzer-300.woff2') format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Switzer'; src: url('../fonts/switzer-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Switzer'; src: url('../fonts/switzer-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Switzer'; src: url('../fonts/switzer-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Fragment Mono'; src: url('../fonts/fragment-mono-latin.woff2') format('woff2'); font-weight: 400; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Fragment Mono'; src: url('../fonts/fragment-mono-latin-ext.woff2') format('woff2'); font-weight: 400; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  /* Colour */
  --canvas: #f3f4f8;        /* Glacier — page canvas */
  --paper: #ffffff;
  --haze: #e9ebf3;
  --line: #e0e3ec;
  --ink: #0b0c10;
  --ink-2: #2a2d37;
  --muted: #5a5f6e;
  --blue: #1d2b57;          /* Navy — brand (matches the hero pieces) */
  --blue-deep: #131d40;
  --blue-soft: #e2e6f1;
  --lime: #d4ff3f;          /* Signal Lime — accent */
  --swiss: #ff1f1f;

  /* Type */
  --font: 'Switzer', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: 'Fragment Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* Layout */
  --gutter: clamp(16px, 3.2vw, 44px);
  --maxw: 1480px;
  --header-h: 76px;
  --r-xl: clamp(28px, 6vw, 96px);
  --r-lg: clamp(22px, 2.4vw, 36px);
  --r-md: 18px;
  --section: clamp(96px, 12vw, 180px);

  /* Motion */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, canvas, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
em { font-style: normal; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: fixed; left: 16px; top: 16px; z-index: 400;
  padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #fff;
  transform: translateY(-160%); transition: transform .3s var(--ease-out);
}
.skip-link:focus { transform: none; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }
.nowrap { white-space: nowrap; }
.text-blue { color: var(--blue); }

/* ---------- Type ---------- */
.label {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .02em; text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: clamp(18px, 2vw, 28px);
}
.plus { width: 12px; height: 12px; position: relative; flex: none; }
.plus::before, .plus::after { content: ''; position: absolute; background: var(--blue); border-radius: 1.5px; }
.plus::before { left: 35%; width: 30%; top: 0; height: 100%; }
.plus::after { top: 35%; height: 30%; left: 0; width: 100%; }

.h2 {
  font-size: clamp(42px, 5.8vw, 100px);
  line-height: .94;
  letter-spacing: -0.05em;
  font-weight: 400;
}
.h3 { font-size: clamp(28px, 2.6vw, 44px); line-height: 1; letter-spacing: -0.04em; font-weight: 400; }
.lead { font-size: clamp(17px, 1.3vw, 21px); line-height: 1.45; color: var(--ink-2); letter-spacing: -0.015em; max-width: 34em; }

.section-head { margin-bottom: clamp(44px, 6vw, 96px); }
.section-head__lead { margin-top: clamp(20px, 2vw, 32px); }
.section-head--split { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 5vw, 96px); align-items: end; }
.section-head__side { display: grid; gap: 24px; justify-items: start; }

/* ---------- Buttons, chips, tags ---------- */
.btn {
  --h: 54px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  height: var(--h); padding: 0 26px;
  border-radius: 999px; border: 1px solid transparent;
  font-size: 15px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap;
  cursor: pointer;
  transition: background-color .35s var(--ease-out), color .35s var(--ease-out), border-color .35s var(--ease-out), box-shadow .35s var(--ease-out);
  will-change: transform;
}
.btn--sm { --h: 42px; padding: 0 18px; font-size: 13.5px; }
.btn--lg { --h: 62px; padding: 0 32px; font-size: 16px; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--blue); }
.btn--blue { background: var(--blue); color: #fff; box-shadow: 0 10px 30px -12px rgba(29, 43, 87, .7); }
.btn--blue:hover { background: var(--ink); box-shadow: 0 10px 30px -12px rgba(11, 12, 16, .5); }
.btn--light { background: rgba(255, 255, 255, .78); border-color: var(--line); color: var(--ink); }
.btn--light:hover { background: #fff; border-color: #cfd3e0; }
.btn--ghost { background: transparent; border-color: rgba(11, 12, 16, .16); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { background: var(--lime); }
.btn__arrow { display: inline-block; transition: transform .45s var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn__tick { width: 9px; height: 9px; position: relative; }
.btn__tick::before, .btn__tick::after { content: ''; position: absolute; background: currentColor; border-radius: 1px; }
.btn__tick::before { left: 35%; width: 30%; top: 0; height: 100%; }
.btn__tick::after { top: 35%; height: 30%; left: 0; width: 100%; }
.btn:hover .btn__tick { animation: spin90 .6s var(--ease-out); }
@keyframes spin90 { to { transform: rotate(90deg); } }

.chip {
  display: inline-flex; align-items: center; height: 34px; padding: 0 14px;
  border-radius: 999px; font-size: 13px; font-weight: 500;
  background: rgba(255, 255, 255, .7); border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 1px 2px rgba(10, 14, 40, .05);
}
.chip--glass { backdrop-filter: blur(10px) saturate(1.4); -webkit-backdrop-filter: blur(10px) saturate(1.4); cursor: pointer; transition: background .3s, transform .4s var(--ease-spring); }
.chip--glass:hover { background: #fff; transform: translateY(-2px); }

.tag {
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px;
  border-radius: 999px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .02em;
  border: 1px solid currentColor; opacity: .75; white-space: nowrap;
}
.tag--lime { background: var(--lime); color: var(--ink); border-color: var(--lime); opacity: 1; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  padding: 8px 14px; border-radius: 999px; font-size: 13.5px;
  border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
}
.link-arrow { display: inline-flex; gap: .5em; align-items: center; font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 2px; width: fit-content; }
.link-arrow span { transition: transform .45s var(--ease-out); }
.link-arrow:hover span { transform: translateX(5px); }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center;
  background: var(--canvas);
  pointer-events: none;
}
.loader__mark { width: 56px; height: 56px; fill: var(--blue); animation: loaderSpin 1.6s var(--ease-io) infinite; }
@keyframes loaderSpin { 0% { transform: rotate(0) scale(1); } 50% { transform: rotate(90deg) scale(.82); } 100% { transform: rotate(180deg) scale(1); } }
.no-js .loader, .is-loaded .loader { display: none; }

/* ---------- Cursor ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 250; pointer-events: none; display: none; }
.has-cursor .cursor { display: block; }
.cursor__dot {
  position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
  background: var(--blue); transition: transform .35s var(--ease-out), opacity .25s;
}
.cursor.is-hover .cursor__dot { transform: scale(3.2); opacity: .18; }
.cursor__label {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -50%) scale(0);
  padding: 12px 18px; border-radius: 999px; background: var(--ink); color: #fff;
  font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
  transition: transform .45s var(--ease-out);
}
.cursor.is-label .cursor__label { transform: translate(-50%, -50%) scale(1); }
.cursor.is-label .cursor__dot { opacity: 0; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 12px var(--gutter);
  transition: transform .6s var(--ease-out);
  pointer-events: none;
}
.site-header.is-hidden { transform: translateY(-120%); }
.site-header__inner {
  pointer-events: auto;
  max-width: calc(var(--maxw) - 2 * var(--gutter) + 24px);
  margin-inline: auto;
  height: 64px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 0 6px 0 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background-color .5s var(--ease-out), border-color .5s var(--ease-out), box-shadow .5s var(--ease-out), padding .5s var(--ease-out);
}
.site-header.is-scrolled .site-header__inner {
  background: rgba(255, 255, 255, .74);
  border-color: rgba(255, 255, 255, .9);
  box-shadow: 0 1px 2px rgba(10, 14, 40, .04), 0 12px 32px -12px rgba(10, 14, 40, .14);
  backdrop-filter: blur(16px) saturate(1.5); -webkit-backdrop-filter: blur(16px) saturate(1.5);
}
/* logo sits in the middle of the header, EN/DE + menu on the right */
.logo { grid-column: 2; justify-self: center; display: inline-flex; align-items: center; gap: 12px; width: fit-content; }
/* TF monogram: dark-green T and F, joined by a swash that flows in on load and on hover */
.logo__mark { --tf: #3d4127; width: clamp(40px, 3.6vw, 54px); height: clamp(40px, 3.6vw, 54px); overflow: visible; }
.logo__mark .tf-t, .logo__mark .tf-f { fill: var(--tf); }
.logo__mark .tf-flow { fill: none; stroke: var(--tf); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 0; animation: tfFlow 1.6s var(--ease-out) .4s both; }
.logo:hover .logo__mark .tf-flow { animation: tfFlow 1.1s var(--ease-out) both; }
.logo__mark .tf-f { transform-box: fill-box; transform-origin: 0 50%; animation: tfArm .9s var(--ease-out) .2s both; }
.logo__mark .tf-f + .tf-f { animation-delay: .32s; }
@keyframes tfFlow { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes tfArm { from { transform: scaleX(0); } to { transform: none; } }
.menu-open .logo__mark { --tf: #fff; }

/* EN / DE switch */
.lang-switch { display: inline-flex; align-items: center; height: 42px; padding: 4px; gap: 2px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .78); }
.lang-switch button { height: 32px; min-width: 36px; padding: 0 10px; border: 0; border-radius: 999px; background: none; font-family: var(--mono); font-size: 12px; letter-spacing: .02em; color: var(--muted); cursor: pointer; transition: background .3s, color .3s; }
.lang-switch button:hover { color: var(--ink); }
.lang-switch button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.logo__word { font-size: clamp(24px, 2.4vw, 34px); font-weight: 500; letter-spacing: .04em; text-transform: uppercase; line-height: 1; transform: translateY(-1px); }
.site-header__tagline { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .02em; color: var(--ink-2); }
.site-header__tagline .sep { color: var(--blue); margin: 0 .4em; }
.site-header__actions { grid-column: 3; display: flex; gap: 8px; justify-content: flex-end; }
.menu-toggle { gap: 10px; }
.menu-toggle__dots { display: inline-flex; gap: 3px; position: relative; width: 14px; height: 14px; align-items: center; justify-content: center; }
.menu-toggle__dots i { width: 4px; height: 4px; border-radius: 4px; background: currentColor; transition: all .45s var(--ease-out); }
.menu-open .menu-toggle__dots i { position: absolute; width: 14px; height: 1.6px; }
.menu-open .menu-toggle__dots i:first-child { transform: rotate(45deg); }
.menu-open .menu-toggle__dots i:last-child { transform: rotate(-45deg); }
.menu-open .site-header__inner { background: transparent !important; box-shadow: none !important; border-color: transparent !important; backdrop-filter: none !important; }
.menu-open .logo, .menu-open .site-header__tagline { color: #fff; }
.menu-open .site-header__tagline { opacity: .6; }

/* ---------- Menu overlay ---------- */
.menu {
  position: fixed; inset: 0; z-index: 90;
  background: radial-gradient(80% 60% at 85% 0%, rgba(29, 43, 87, .55), rgba(29, 43, 87, 0) 60%), var(--ink);
  color: #fff;
  clip-path: circle(0% at calc(100% - 60px) 38px);
}
.menu[hidden] { display: block; visibility: hidden; }
.menu__inner {
  height: 100%; max-width: var(--maxw); margin-inline: auto;
  padding: calc(var(--header-h) + 6vh) var(--gutter) 40px;
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: end;
}
.menu__nav { display: grid; gap: .1em; }
.menu__nav a {
  display: flex; align-items: baseline; gap: 18px;
  font-size: clamp(44px, 7.2vw, 112px); line-height: 1.02; letter-spacing: -0.05em;
  transition: color .4s var(--ease-out), translate .6s var(--ease-out);
  width: fit-content;
}
.menu__nav a:hover { color: var(--lime); translate: 14px 0; }
.menu__nav .tag { font-size: 12px; align-self: center; letter-spacing: .02em; }
.menu__idx { font-family: var(--mono); font-size: 13px; letter-spacing: .02em; color: rgba(255, 255, 255, .45); width: 2.4em; }
.menu__aside { display: grid; gap: 32px; padding-bottom: 12px; font-size: 16px; color: rgba(255, 255, 255, .78); }
.menu__aside .label { color: rgba(255, 255, 255, .45); margin-bottom: 10px; }
.menu__contact { display: block; font-size: clamp(20px, 1.8vw, 26px); color: #fff; letter-spacing: -0.03em; width: fit-content; }
.menu__contact:hover { color: var(--lime); }

/* ---------- Hero ---------- */
.hero { position: relative; height: 150vh; }
.hero__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero__head {
  position: absolute; z-index: 2;
  top: calc(var(--header-h) + clamp(18px, 4vh, 56px)); left: 0; right: 0;
  max-width: var(--maxw); margin-inline: auto; padding-inline: calc(var(--gutter) + 6px);
  display: grid; grid-template-columns: 1fr; justify-items: center; text-align: center; align-items: end;
  will-change: transform, opacity;
}
.hero__eyebrow { margin-bottom: clamp(14px, 2vh, 24px); }
.flag svg { width: 16px; height: 16px; border-radius: 4px; }
.hero__title {
  font-size: clamp(44px, 6.3vw, 116px);
  line-height: .9;
  letter-spacing: -0.055em;
  font-weight: 400;
  max-width: 10.5em;
}
.flowword { color: var(--blue); position: relative; display: inline-block; }
.flowword::after {
  content: ''; position: absolute; left: .02em; right: .32em; bottom: -.08em; height: .13em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 10'%3E%3Cpath d='M0 5 Q 5 0 10 5 T 20 5 T 30 5 T 40 5' fill='none' stroke='%231d2b57' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x 0 50% / .52em 100%;
  animation: flowline 1.4s linear infinite;
  transform-origin: left; transform: scaleX(var(--flow-x, 1));
}
@keyframes flowline { to { background-position: .52em 50%; } }
.hero__intro { padding-bottom: .6em; }
.hero__lead { font-size: clamp(17px, 1.3vw, 21px); line-height: 1.42; color: var(--ink-2); max-width: 26em; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(18px, 2.6vh, 30px); }

.hero__stage {
  position: absolute; z-index: 1;
  left: var(--gutter); right: var(--gutter);
  top: calc(var(--header-h) + 4px); bottom: 14px;
  border-radius: var(--r-xl);
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 18% 0%, #ffffff 0%, rgba(255, 255, 255, 0) 58%),
    radial-gradient(70% 80% at 88% 100%, #dce1ff 0%, rgba(220, 225, 255, 0) 70%),
    #e8ebf5;
  transform: translate3d(0, var(--stage-shift, 0px), 0);
  will-change: transform;
  isolation: isolate;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; opacity: 0; transition: opacity 1.4s var(--ease-out); }
.hero__canvas.is-ready { opacity: 1; }
.reduced .hero__canvas, .no-js .hero__canvas { opacity: 1; }
.hero__canvas:active { cursor: grabbing; }
.hero__fallback { position: absolute; inset: 0; z-index: -1; }
.hero__ui { position: absolute; inset: 0; z-index: 3; pointer-events: none; will-change: opacity; }
.hero__ui > * { pointer-events: auto; }
.hero__chips, .hero__hint, .hero__ticks { position: absolute; z-index: 3; }
.hero__chips { left: calc(var(--gutter) + clamp(16px, 2vw, 28px)); bottom: clamp(30px, 4vh, 44px); display: flex; flex-wrap: wrap; gap: 8px; }
.hero__hint { right: calc(var(--gutter) + clamp(16px, 2vw, 28px)); bottom: clamp(38px, 4.6vh, 52px); color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.hint-icon { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--blue); position: relative; }
.hint-icon::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--blue); animation: hintPulse 1.8s var(--ease-out) infinite; }
@keyframes hintPulse { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }
.hero__ticks {
  left: 50%; transform: translateX(-50%); bottom: 0; height: 14px;
  width: calc(100% - 2 * var(--gutter) - 40px);
  display: flex; justify-content: space-between; align-items: center;
  color: var(--ink-2); font-size: 11px;
}
.hero__ticks > span:not(.hero__scroll) { font-family: var(--font); font-size: 14px; line-height: 1; }
.hero__scroll { opacity: .8; }
.hero__caption {
  position: absolute; z-index: 3; top: 50%;
  margin-top: -1.1em;
  font-size: clamp(24px, 2.7vw, 48px); line-height: 1.02; letter-spacing: -0.045em;
  max-width: 7.5em; opacity: 0; pointer-events: none;
}
/* captions sit above and below the TECHFLOWS wordmark */
.hero__caption--left { left: calc(var(--gutter) + clamp(24px, 4vw, 72px)); top: 16%; margin-top: 0; }
.hero__caption--right { right: calc(var(--gutter) + clamp(24px, 4vw, 72px)); top: auto; bottom: 16%; margin-top: 0; text-align: right; }

/* ---------- Intro / About ---------- */
.intro { padding-top: clamp(80px, 10vw, 150px); }
.intro__statement {
  font-size: clamp(30px, 4.1vw, 68px);
  line-height: 1.06;
  letter-spacing: -0.045em;
  max-width: 17.5em;
  text-indent: 2.2em;
}
.intro__statement .word { display: inline-block; text-indent: 0; }
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  margin-top: clamp(64px, 9vw, 140px);
  border-top: 1px solid var(--line);
}
.stat { padding: 22px 24px 0 0; display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: clamp(18px, 3vw, 48px); }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat__label { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .02em; color: var(--muted); }
.stat__value { font-size: clamp(56px, 7.2vw, 128px); line-height: .85; letter-spacing: -0.06em; font-variant-numeric: tabular-nums; }
.stat__value sup { font-size: .42em; vertical-align: top; position: relative; top: .12em; margin-left: .04em; color: var(--blue); letter-spacing: -0.04em; }

/* ---------- Services (stacking cards) ---------- */
.stack { display: grid; gap: 0; }
.service {
  --i: 0;
  position: sticky;
  top: calc(var(--header-h) + 18px + var(--i) * 14px);
  min-height: min(78vh, 720px);
  margin-bottom: 6vh;
  border-radius: var(--r-lg);
  padding: clamp(24px, 3.4vw, 52px);
  display: grid; grid-template-columns: 1fr 1.08fr; gap: clamp(24px, 4vw, 64px);
  overflow: hidden;
  transform-origin: 50% 0;
  will-change: transform;
}
.service:last-child { margin-bottom: 0; }
.service::after { content: ''; position: absolute; inset: 0; background: #000; opacity: var(--dim, 0); pointer-events: none; border-radius: inherit; }
.service--paper { background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.service--blue { background: var(--blue); color: #fff; }
.service--ink { background: var(--ink); color: #fff; }
.service--lime { background: var(--lime); color: var(--ink); }
.service__body { display: flex; flex-direction: column; gap: clamp(18px, 2vw, 28px); position: relative; z-index: 1; }
.service__top { display: grid; gap: clamp(18px, 3vh, 40px); }
.service__num { display: flex; gap: 10px; align-items: center; opacity: .8; }
.service__title { font-size: clamp(44px, 5.4vw, 92px); line-height: .92; letter-spacing: -0.055em; font-weight: 400; }
.service__text { font-size: clamp(16px, 1.25vw, 20px); line-height: 1.45; max-width: 27em; opacity: .82; margin-top: auto; }
.service__visual {
  position: relative; border-radius: calc(var(--r-lg) - 10px);
  overflow: hidden; display: grid; place-items: center; min-height: 340px;
}
.service--paper .service__visual { background: linear-gradient(160deg, #f6f7fb, #eceef6); }
.service--blue .service__visual { background: radial-gradient(90% 80% at 50% 30%, rgba(255, 255, 255, .18), rgba(255, 255, 255, .04)); }
.service--ink .service__visual { background: radial-gradient(90% 80% at 50% 30%, #1b1d27, #121319); }
.service--lime .service__visual { background: rgba(255, 255, 255, .45); }
.service:not(.is-inview) .service__visual * { animation-play-state: paused !important; }

/* Visual 1 — browser + code */
.vis-browser { width: min(88%, 520px); aspect-ratio: 4 / 3.1; position: relative; }
.vis-browser__bar {
  height: 34px; border-radius: 14px 14px 0 0; background: #fff; border: 1px solid var(--line); border-bottom: 0;
  display: flex; align-items: center; gap: 6px; padding: 0 12px;
}
.vis-browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: #dfe2ea; }
.vis-browser__bar span { margin: 0 auto; font-family: var(--mono); font-size: 11px; color: var(--muted); background: var(--canvas); padding: 3px 12px; border-radius: 999px; }
.vis-browser__body {
  height: calc(100% - 34px); background: #fff; border: 1px solid var(--line); border-radius: 0 0 14px 14px;
  padding: 18px; display: grid; grid-template-rows: auto 1fr auto; gap: 14px; overflow: hidden;
}
.vb-hero { display: grid; gap: 8px; }
.vb-hero b { display: block; height: 14px; border-radius: 6px; background: var(--ink); width: 0; animation: vbWidth 6s var(--ease-out) infinite; }
.vb-hero b:nth-child(1) { --w: 72%; height: 18px; }
.vb-hero b:nth-child(2) { --w: 48%; background: #c9cdda; animation-delay: .15s; }
.vb-hero b.vb-btn { --w: 22%; height: 22px; border-radius: 999px; background: var(--blue); margin-top: 4px; animation-delay: .3s; }
@keyframes vbWidth { 0%, 4% { width: 0; } 14%, 86% { width: var(--w); } 96%, 100% { width: 0; } }
.vb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.vb-grid b { display: block; border-radius: 10px; background: var(--blue-soft); opacity: 0; transform: translateY(12px); animation: vbPop 6s var(--ease-out) infinite; }
.vb-grid b:nth-child(1) { animation-delay: .45s; }
.vb-grid b:nth-child(2) { animation-delay: .55s; background: #f1f2f7; }
.vb-grid b:nth-child(3) { animation-delay: .65s; background: var(--lime); }
@keyframes vbPop { 0%, 6% { opacity: 0; transform: translateY(12px); } 16%, 86% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: translateY(12px); } }
.vb-chart { display: flex; align-items: flex-end; gap: 8px; height: 64px; }
.vb-chart b { flex: 1; border-radius: 6px 6px 2px 2px; background: #dfe3f3; height: 0; animation: vbBar 6s var(--ease-out) infinite; }
.vb-chart b:nth-child(6) { background: var(--blue); }
.vb-chart b:nth-child(1) { animation-delay: .7s; } .vb-chart b:nth-child(2) { animation-delay: .78s; } .vb-chart b:nth-child(3) { animation-delay: .86s; }
.vb-chart b:nth-child(4) { animation-delay: .94s; } .vb-chart b:nth-child(5) { animation-delay: 1.02s; } .vb-chart b:nth-child(6) { animation-delay: 1.1s; }
@keyframes vbBar { 0%, 8% { height: 0; } 22%, 86% { height: var(--h); } 96%, 100% { height: 0; } }
.vis-code {
  position: absolute; left: -6%; bottom: -10%; width: 64%;
  background: var(--ink); color: #c9cbe0; border-radius: 14px; padding: 14px 16px;
  font-family: var(--mono); font-size: 11.5px; line-height: 1.7;
  box-shadow: 0 24px 50px -20px rgba(11, 12, 16, .45);
}
.vis-code p { white-space: nowrap; overflow: hidden; clip-path: inset(0 100% 0 0); animation: vcType 6s steps(28) infinite; }
.vis-code p:nth-child(2) { animation-delay: .5s; } .vis-code p:nth-child(3) { animation-delay: 1s; } .vis-code p:nth-child(4) { animation-delay: 1.5s; }
@keyframes vcType { 0%, 5% { clip-path: inset(0 100% 0 0); } 18%, 88% { clip-path: inset(0 0 0 0); } 97%, 100% { clip-path: inset(0 100% 0 0); } }
.c-k { color: #9aa6ff; } .c-v { color: #fff; } .c-f { color: var(--lime); } .c-s { color: #ffb4a8; }

/* Visual 2 — phone */
.vis-phone {
  width: clamp(170px, 15vw, 230px); aspect-ratio: 9 / 19.2; position: relative;
  border-radius: 38px; background: #f6f7fb; border: 9px solid #0b0c10;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .35), 0 40px 80px -30px rgba(0, 0, 40, .6);
  padding: 46px 14px 14px; display: flex; flex-direction: column;
  animation: vpFloat 7s var(--ease-io) infinite;
  transform-style: preserve-3d;
}
@keyframes vpFloat { 0%, 100% { transform: perspective(900px) rotateY(-12deg) rotateX(4deg) translateY(0); } 50% { transform: perspective(900px) rotateY(10deg) rotateX(-2deg) translateY(-10px); } }
.vis-phone__island { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 34%; height: 20px; border-radius: 20px; background: #0b0c10; }
.vis-phone__notif {
  position: absolute; left: 8px; right: 8px; top: 34px; z-index: 2;
  display: flex; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 14px;
  background: rgba(255, 255, 255, .92); box-shadow: 0 10px 24px -10px rgba(0, 0, 40, .35);
  color: var(--ink); font-size: 10px; line-height: 1.25;
  opacity: 0; transform: translateY(-16px) scale(.96);
  animation: vpNotif 7s var(--ease-out) infinite;
}
.vis-phone__notif b { display: block; font-weight: 600; }
.vis-phone__notif i { font-style: normal; color: var(--muted); }
.vp-icon { width: 22px; height: 22px; border-radius: 6px; background: var(--blue); flex: none; position: relative; }
.vp-icon::before, .vp-icon::after { content: ''; position: absolute; background: #fff; border-radius: 1px; }
.vp-icon::before { left: 9px; top: 5px; width: 4px; height: 12px; }
.vp-icon::after { top: 9px; left: 5px; height: 4px; width: 12px; }
@keyframes vpNotif { 0%, 34% { opacity: 0; transform: translateY(-16px) scale(.96); } 42%, 78% { opacity: 1; transform: none; } 86%, 100% { opacity: 0; transform: translateY(-16px) scale(.96); } }
.vis-phone__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 18px; }
.vis-phone__grid i { aspect-ratio: 1; border-radius: 10px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(11, 12, 16, .06); opacity: 0; transform: scale(.6); animation: vpIcon 7s var(--ease-spring) infinite; }
.vis-phone__grid i:nth-child(n) { animation-delay: calc(var(--d, 0) * 1s); }
.vis-phone__grid i:nth-child(1) { --d: .05; } .vis-phone__grid i:nth-child(2) { --d: .1; } .vis-phone__grid i:nth-child(3) { --d: .15; } .vis-phone__grid i:nth-child(4) { --d: .2; }
.vis-phone__grid i:nth-child(5) { --d: .25; } .vis-phone__grid i:nth-child(6) { --d: .3; } .vis-phone__grid i:nth-child(7) { --d: .35; } .vis-phone__grid i:nth-child(8) { --d: .4; }
.vis-phone__grid i:nth-child(9) { --d: .45; } .vis-phone__grid i:nth-child(10) { --d: .5; } .vis-phone__grid i:nth-child(11) { --d: .55; } .vis-phone__grid i:nth-child(12) { --d: .6; }
@keyframes vpIcon { 0%, 3% { opacity: 0; transform: scale(.6); } 12%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: scale(.6); } }
.vis-phone__dock { margin-top: auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 8px; border-radius: 18px; background: rgba(11, 12, 16, .06); }
.vis-phone__dock i { aspect-ratio: 1; border-radius: 9px; background: #fff; box-shadow: inset 0 0 0 1px rgba(11, 12, 16, .08); }
.vis-phone__dock i:first-child { background: var(--blue); }
/* Vivicasa on the phone: the real app screen scrolls while the notification drops in */
.vis-phone--viv { padding: 0; background: #0f1112; }
.vis-phone--viv .vis-phone__island { z-index: 3; }
.vis-phone--viv .vis-phone__notif { z-index: 3; }
.vis-phone__screen { position: absolute; inset: 0; border-radius: 29px; overflow: hidden; background: #0f1112; }
.vis-phone__scroll { padding-top: 26px; animation: vpScroll 7s var(--ease-io) infinite; }
.vis-phone__scroll img { display: block; width: 100%; height: auto; }
.vis-phone__scroll .vp-card { width: calc(100% - 16px); margin: 8px auto 0; border-radius: 12px; opacity: 0; transform: scale(.85); animation: vpIcon 7s var(--ease-spring) infinite; animation-delay: .9s; }
.vis-phone__scroll .vp-card + .vp-card { animation-delay: 1.1s; }
.vp-icon-img { width: 22px; height: 22px; border-radius: 6px; flex: none; }
@keyframes vpScroll { 0%, 18% { transform: translateY(0); } 48%, 80% { transform: translateY(-30%); } 96%, 100% { transform: translateY(0); } }

/* Visual 3 — AI */
.vis-ai { width: min(88%, 500px); display: grid; gap: 22px; }
.vis-ai__flow { display: flex; align-items: center; justify-content: space-between; gap: 0; }
.vis-ai__flow .node {
  font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .02em;
  padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .18); color: rgba(255, 255, 255, .85);
}
.vis-ai__flow .node--ai { background: var(--lime); color: var(--ink); border-color: var(--lime); box-shadow: 0 0 0 0 rgba(212, 255, 63, .5); animation: aiPulse 2.4s var(--ease-out) infinite; }
@keyframes aiPulse { 0% { box-shadow: 0 0 0 0 rgba(212, 255, 63, .45); } 100% { box-shadow: 0 0 0 18px rgba(212, 255, 63, 0); } }
.vis-ai__flow .wire {
  flex: 1; height: 2px; margin: 0 8px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .5) 0 6px, transparent 6px 12px);
  background-size: 24px 2px; animation: wire 1s linear infinite;
}
@keyframes wire { to { background-position: 24px 0; } }
.vis-ai__chat { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); border-radius: 22px; padding: 18px; display: grid; gap: 12px; }
.bubble { border-radius: 16px; padding: 12px 14px; font-size: 13.5px; line-height: 1.4; max-width: 86%; }
.bubble--user { justify-self: end; background: var(--lime); color: var(--ink); border-bottom-right-radius: 5px; clip-path: inset(0 0 0 100% round 16px); animation: aiUser 6s var(--ease-out) infinite; }
@keyframes aiUser { 0%, 4% { clip-path: inset(0 0 0 100% round 16px); } 16%, 90% { clip-path: inset(0 0 0 0 round 16px); } 98%, 100% { clip-path: inset(0 0 0 100% round 16px); } }
.bubble--ai { background: rgba(255, 255, 255, .07); display: grid; gap: 8px; width: 86%; border-bottom-left-radius: 5px; }
.bubble--ai b { display: block; height: 8px; border-radius: 6px; background: rgba(255, 255, 255, .55); width: 0; animation: aiLine 6s var(--ease-out) infinite; }
.bubble--ai b:nth-child(1) { animation-delay: 1.2s; } .bubble--ai b:nth-child(2) { animation-delay: 1.45s; } .bubble--ai b:nth-child(3) { animation-delay: 1.7s; } .bubble--ai b:nth-child(4) { animation-delay: 1.95s; }
@keyframes aiLine { 0%, 2% { width: 0; } 12%, 70% { width: var(--w); } 80%, 100% { width: 0; } }
.vis-ai__done { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .02em; color: var(--lime); opacity: 0; animation: aiDone 6s var(--ease-out) infinite; }
.vis-ai__done span { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--lime); color: var(--ink); margin-right: 6px; }
@keyframes aiDone { 0%, 52% { opacity: 0; transform: translateY(6px); } 60%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }

/* Visual 4 — growth */
.vis-growth { width: min(88%, 520px); display: grid; gap: 16px; position: relative; }
.vis-growth__big { font-size: clamp(64px, 7vw, 120px); line-height: .85; letter-spacing: -0.06em; display: flex; align-items: flex-end; gap: 12px; }
.vis-growth__big span { font-family: var(--mono); font-size: 12px; letter-spacing: .02em; text-transform: uppercase; line-height: 1.2; padding-bottom: .5em; }
.vis-growth__chart { width: 100%; height: 170px; overflow: visible; }
.vis-growth__chart .line { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 520; stroke-dashoffset: 520; animation: gLine 6s var(--ease-out) infinite; vector-effect: non-scaling-stroke; }
.vis-growth__chart .area { fill: rgba(11, 12, 16, .08); opacity: 0; animation: gArea 6s var(--ease-out) infinite; }
@keyframes gLine { 0%, 4% { stroke-dashoffset: 520; } 36%, 88% { stroke-dashoffset: 0; } 98%, 100% { stroke-dashoffset: 520; } }
@keyframes gArea { 0%, 20% { opacity: 0; } 40%, 86% { opacity: 1; } 96%, 100% { opacity: 0; } }
.vis-growth__posts { display: flex; gap: 10px; }
.post { flex: 1; aspect-ratio: 1; border-radius: 14px; background: #fff; position: relative; overflow: hidden; box-shadow: 0 10px 24px -14px rgba(11, 12, 16, .35); }
.post i { position: absolute; inset: 8px 8px 30%; border-radius: 9px; background: linear-gradient(135deg, var(--blue), #8f9bff); }
.post:nth-child(2) i { background: linear-gradient(135deg, var(--ink), #4a4e5e); }
.post:nth-child(3) i { background: linear-gradient(135deg, #ff9a7a, #ffd36b); }
.post em { position: absolute; right: 10px; bottom: 6px; color: #ff3366; font-size: 16px; transform: scale(0); animation: heart 6s var(--ease-spring) infinite; }
.post:nth-child(2) em { animation-delay: .4s; } .post:nth-child(3) em { animation-delay: .8s; }
@keyframes heart { 0%, 40% { transform: scale(0); } 48% { transform: scale(1.35); } 54%, 88% { transform: scale(1); } 96%, 100% { transform: scale(0); } }

/* ---------- iOS ---------- */
.ios { padding-bottom: clamp(80px, 9vw, 140px); }
.ios-stage {
  position: relative;
  height: clamp(660px, 100svh, 1040px);
  margin: 0 var(--gutter);
  border-radius: var(--r-xl);
  overflow: hidden;
  background:
    radial-gradient(60% 55% at 50% 42%, #ffffff 0%, rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, #eef0f6 0%, #e6e8f0 100%);
  isolation: isolate;
  outline: none;
}
.ios-stage__canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; }
.ios-stage__glow {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(42% 58% at 50% 48%, rgba(255, 255, 255, 1) 0%, rgba(232, 236, 255, .9) 35%, rgba(255, 255, 255, 0) 72%);
  opacity: var(--glow, 0);
  transition: opacity .2s linear;
}
.ios-stage__canvas { z-index: 1; }
.ios-bar {
  position: absolute; z-index: 3; top: clamp(16px, 2.4vw, 28px); left: 50%; transform: translateX(-50%);
  width: min(560px, calc(100% - 32px)); height: 54px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 8px; border-radius: 16px;
  background: rgba(255, 255, 255, .7);
  border: 1px solid rgba(255, 255, 255, .85);
  box-shadow: 0 1px 2px rgba(10, 14, 40, .04), 0 16px 40px -18px rgba(10, 14, 40, .18);
  backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5);
}
.ios-bar__title { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.ios-bar__title span { color: var(--blue); }
.ios-bar__icon, .ios-bar__nav button {
  width: 38px; height: 38px; border-radius: 10px; border: 0; background: transparent; cursor: pointer;
  display: grid; place-items: center; font-size: 17px; transition: background .25s;
}
.ios-bar__icon svg { width: 18px; height: 18px; }
.ios-bar__icon:hover, .ios-bar__nav button:hover { background: rgba(11, 12, 16, .06); }
.ios-bar__nav { display: flex; gap: 2px; }
.ios-card {
  position: absolute; z-index: 3; left: 50%; bottom: clamp(56px, 7vh, 76px); transform: translateX(-50%);
  width: min(560px, calc(100% - 32px));
  border-radius: 20px;
  background: rgba(255, 255, 255, .76);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 1px 2px rgba(10, 14, 40, .04), 0 24px 60px -24px rgba(10, 14, 40, .25);
  backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6);
  overflow: hidden;
}
.ios-card__inner { padding: 22px 26px 24px; }
.ios-card__title { font-size: clamp(24px, 2vw, 30px); letter-spacing: -0.035em; font-weight: 400; line-height: 1.05; margin-bottom: 10px; }
.ios-card__text { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.ios-dots { position: absolute; z-index: 3; left: 50%; bottom: clamp(22px, 3vh, 32px); transform: translateX(-50%); display: flex; gap: 8px; }
.ios-dots button {
  position: relative; width: 8px; height: 8px; padding: 0; border: 0; border-radius: 8px;
  background: rgba(11, 12, 16, .16); cursor: pointer; overflow: hidden;
  transition: width .6s var(--ease-out), background .3s;
}
.ios-dots button[aria-selected="true"] { width: 40px; background: rgba(11, 12, 16, .12); }
.ios-dots button i { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: var(--blue); border-radius: inherit; }
.ios-dots button[aria-selected="true"] i { transform: scaleX(var(--progress, 0)); }
.ios-stage.is-full { position: fixed; inset: 0; z-index: 150; margin: 0; height: 100vh; height: 100svh; border-radius: 0; }
.ios-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 3vw, 48px) clamp(20px, 3vw, 48px); margin-top: clamp(56px, 7vw, 110px); }
.ios-grid li { border-top: 1px solid var(--line); padding-top: 20px; display: grid; gap: 10px; align-content: start; }
.ios-grid h3 { font-size: clamp(22px, 1.8vw, 28px); font-weight: 400; letter-spacing: -0.035em; line-height: 1.1; }
.ios-grid p { color: var(--muted); max-width: 26em; }
.ios-grid__n { color: var(--blue); }

/* ---------- Work ---------- */
.work { padding-bottom: clamp(60px, 8vw, 120px); }
.work .section-head { margin-bottom: 0; }
.rail { position: relative; }
.rail__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.rail__track { display: flex; gap: clamp(16px, 2vw, 32px); padding-inline: var(--gutter); will-change: transform; width: max-content; padding-top: calc(var(--header-h) * .5); }
.work-card {
  flex: none; width: clamp(300px, 54vw, 960px);
  display: flex; flex-direction: column; gap: 18px;
  text-align: left; background: none; border: 0; padding: 0; cursor: pointer;
}
.work-card__media {
  display: block; position: relative; overflow: hidden;
  aspect-ratio: 16 / 10; border-radius: var(--r-lg); background: #dfe2ee;
  transform: translateZ(0);
}
.work-card__media img {
  position: absolute; top: 0; left: -6%; width: 112%; height: 100%; object-fit: cover; max-width: none;
  transform: translate3d(var(--px, 0%), 0, 0) scale(1.001);
  transition: scale 1.1s var(--ease-out);
}
.work-card:hover .work-card__media img { scale: 1.045; }
.work-card__meta { display: grid; grid-template-columns: 1fr auto; gap: 6px 18px; align-items: start; padding-inline: 4px; }
.work-card__title { font-size: clamp(20px, 1.7vw, 28px); letter-spacing: -0.035em; line-height: 1.1; }
.work-card__desc { grid-column: 1; color: var(--muted); font-size: 15px; max-width: 34em; }
.work-card .tag { grid-column: 2; grid-row: 1; }
.work-card--end { width: clamp(260px, 30vw, 460px); }
.work-card__end {
  aspect-ratio: 16 / 20; border-radius: var(--r-lg); background: var(--ink); color: #fff;
  display: flex; flex-direction: column; justify-content: space-between; padding: clamp(22px, 2.4vw, 36px);
  transition: background .5s var(--ease-out);
}
.work-card--end:hover .work-card__end { background: var(--blue); }
.work-card__end-title { font-size: clamp(34px, 3.4vw, 60px); line-height: .95; letter-spacing: -0.05em; }
.work-card__end-arrow { font-size: 40px; transition: transform .5s var(--ease-out); }
.work-card--end:hover .work-card__end-arrow { transform: translateY(8px); }
.rail__progress { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(24px, 4vh, 44px); height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.rail__progress span { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(var(--p, 0)); }

.vis-browser__body--shot { display: block; padding: 0; overflow: hidden; }
.vis-browser__body--shot img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; display: block; }

/* ---------- Team ---------- */
.team { padding-bottom: 0; }
.team .section-head { margin-bottom: 0; }
.rail--team { --tw: clamp(240px, 23vw, 400px); }
/* team: a normal sideways scroller — the page keeps scrolling down; swipe or use the arrows to see everyone.
   It starts at the left edge; the card at the front of the row is the large one. */
.rail--team .rail__sticky { position: relative; height: auto; overflow: visible; padding-block: clamp(16px, 3vw, 40px) clamp(48px, 7vw, 96px); }
.rail--team .rail__track {
  width: auto; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; align-items: center;
  gap: clamp(40px, 5vw, 72px); scroll-padding-inline: var(--gutter);
  padding: 36px max(var(--gutter), calc(100vw - var(--tw) * 1.9 - var(--gutter))) 36px var(--gutter);
}
.rail--team .rail__track::-webkit-scrollbar { display: none; }
.rail--team .rail__progress { display: none; }
.rail--team .team-card { scroll-snap-align: start; transform-origin: 0 55%; }
.team-card { flex: none; width: var(--tw); margin: 0; display: flex; flex-direction: column; gap: 16px; transform: scale(var(--s, 1)); transform-origin: 50% 55%; opacity: var(--o, 1); will-change: transform; }
.team-card--wide { width: calc(var(--tw) * 1.667); }
.team-card__media { display: block; position: relative; overflow: hidden; aspect-ratio: 4 / 5; border-radius: var(--r-lg); background: #dfe2ee; transform: translateZ(0); }
.team-card--wide .team-card__media { aspect-ratio: 4 / 3; height: calc(var(--tw) * 1.25); }
.team-card__media img {
  position: absolute; top: 0; left: -6%; width: 112%; height: 100%; max-width: none; object-fit: cover; object-position: var(--pos, 50% 30%);
  transform: translate3d(var(--px, 0%), 0, 0) scale(1.001); transition: scale 1.1s var(--ease-out);
}
.team-card:hover .team-card__media img { scale: 1.045; }
.team-card__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-inline: 4px; }
.team-card__name { font-size: clamp(20px, 1.7vw, 28px); letter-spacing: -0.035em; line-height: 1.1; }
.team-card__role { color: var(--muted); text-align: right; }

.scroll-arrows { display: flex; gap: 8px; margin-top: 18px; }
.index-head .scroll-arrows { margin-top: 0; }
.scroll-arrows button {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  font-size: 18px; cursor: pointer; transition: background .3s, color .3s, border-color .3s;
}
.scroll-arrows button:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
/* ---------- FAQ ---------- */
.faq__list { margin-top: clamp(32px, 4vw, 56px); border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: clamp(20px, 2.4vw, 30px) 4px; font-size: clamp(19px, 1.8vw, 26px); letter-spacing: -0.03em; line-height: 1.2;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon { flex: none; position: relative; width: 22px; height: 22px; }
.faq__icon::before, .faq__icon::after { content: ''; position: absolute; left: 50%; top: 50%; background: var(--blue); border-radius: 2px; transition: transform .45s var(--ease-out); }
.faq__icon::before { width: 22px; height: 3px; transform: translate(-50%, -50%); }
.faq__icon::after { width: 3px; height: 22px; transform: translate(-50%, -50%); }
.faq__item[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(90deg) scaleX(0); }
.faq__item p { max-width: 52em; padding: 0 4px clamp(22px, 2.6vw, 32px); color: var(--muted); font-size: clamp(16px, 1.2vw, 18px); line-height: 1.55; }

.index-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px; margin: clamp(80px, 9vw, 140px) 0 24px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper);
  font-size: 14px; cursor: pointer; transition: background .3s, color .3s, border-color .3s;
}
.filter sup { font-family: var(--mono); font-size: 10px; margin-left: 2px; opacity: .6; }
.filter:hover { border-color: #c9cddb; }
.filter.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
/* project index: one sideways row of cards under the filter tabs, instead of a long list */
.index-list { display: flex; gap: 16px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; padding: 4px 2px 14px; }
.index-list::-webkit-scrollbar { display: none; }
.index-row { flex: none; width: clamp(250px, 24vw, 340px); scroll-snap-align: start; }
.index-row.is-hidden { display: none; }
.index-row__btn {
  position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  padding: 12px 12px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px;
  text-align: left; cursor: pointer; isolation: isolate; overflow: hidden;
  transition: color .45s var(--ease-out), border-color .45s var(--ease-out);
}
.index-row__btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1; background: var(--ink); border-radius: 18px;
  transform: scaleY(0); transform-origin: 50% 100%; transition: transform .55s var(--ease-out);
}
.index-row__btn:hover, .index-row__btn:focus-visible { color: #fff; border-color: var(--ink); }
/* the cards show their own picture, so the cursor-following preview is not needed */
.index-list ~ .preview, .preview[data-preview] { display: none !important; }
.index-row__btn:hover::before, .index-row__btn:focus-visible::before { transform: scaleY(1); }
.index-row__n { padding-inline: 4px; color: var(--muted); transition: color .3s; }
.index-row__btn:hover .index-row__n { color: var(--lime); }
.index-row__title { padding-inline: 4px; font-size: clamp(18px, 1.4vw, 22px); letter-spacing: -0.035em; line-height: 1.15; }
.index-row__desc { padding-inline: 4px; color: var(--muted); font-size: 14px; transition: color .3s; }
.index-row__btn:hover .index-row__desc { color: rgba(255, 255, 255, .7); }
.index-row__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding: 6px 4px 0; }
.index-row__thumb { order: -1; width: 100%; display: block; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: var(--line); }
.index-row__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease-out); }
.index-row__btn:hover .index-row__thumb img { transform: scale(1.06); }

.preview {
  position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none;
  width: clamp(260px, 24vw, 380px); aspect-ratio: 16 / 10;
}
.preview__inner {
  position: absolute; inset: 0; border-radius: 18px; overflow: hidden; background: #dfe2ee;
  transform: translate(-50%, -50%) scale(.6) rotate(-4deg); opacity: 0;
  transition: transform .6s var(--ease-out), opacity .35s var(--ease-out);
  box-shadow: 0 30px 60px -24px rgba(11, 12, 16, .45);
}
.preview.is-visible .preview__inner { transform: translate(-50%, -50%) scale(1) rotate(var(--tilt, 0deg)); opacity: 1; }
.preview__inner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s; }
.preview__inner img.is-current { opacity: 1; }

/* ---------- Process ---------- */
.process__grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 120px); }
.process__sticky { position: sticky; top: calc(var(--header-h) + 48px); }
.process__counter { display: flex; align-items: flex-start; margin-top: clamp(32px, 5vw, 72px); color: var(--blue); }
.process__digits { font-size: clamp(110px, 15vw, 260px); line-height: .78; letter-spacing: -0.07em; display: inline-block; font-variant-numeric: tabular-nums; }
.process__of { font-family: var(--mono); font-size: 13px; color: var(--muted); margin-left: 12px; margin-top: .6em; }
.process__steps { position: relative; padding-left: clamp(40px, 4vw, 64px); }
.process__line { position: absolute; left: 10px; top: 36px; bottom: 36px; width: 2px; background: var(--line); border-radius: 2px; }
.process__line span { position: absolute; inset: 0; background: var(--blue); transform-origin: top; transform: scaleY(var(--p, 0)); border-radius: 2px; }
.process__line i { position: absolute; left: 50%; top: calc(var(--p, 0) * 100%); width: 16px; height: 16px; border-radius: 50%; background: var(--lime); border: 3px solid var(--blue); transform: translate(-50%, -50%); box-shadow: 0 0 0 6px rgba(29, 43, 87, .12); }
.step { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: clamp(28px, 3.6vw, 48px) 0; border-top: 1px solid var(--line); opacity: .32; transition: opacity .6s var(--ease-out); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step.is-active, .step.is-past { opacity: 1; }
.step.is-past { opacity: .55; }
.step__n { color: var(--blue); padding-top: .55em; }
.step h3 { font-size: clamp(26px, 2.5vw, 42px); font-weight: 400; letter-spacing: -0.04em; line-height: 1.02; margin-bottom: 12px; }
.step p { color: var(--muted); max-width: 30em; font-size: 16.5px; }

/* ---------- Platforms ---------- */
.platforms { padding: clamp(48px, 6vw, 96px) 0; overflow: hidden; display: grid; gap: clamp(28px, 4vw, 56px); }
.platforms__title { text-align: center; color: var(--muted); }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__group { display: flex; align-items: center; flex: none; }
.marquee--logos .marquee__group { gap: clamp(56px, 7vw, 120px); padding-right: clamp(56px, 7vw, 120px); }
.marquee--logos img { height: clamp(26px, 2.6vw, 38px); width: auto; filter: grayscale(1) contrast(1.1); opacity: .55; transition: filter .4s, opacity .4s; }
.marquee--logos img:hover { filter: none; opacity: 1; }
.marquee--words .marquee__group { gap: .32em; padding-right: .32em; font-size: clamp(52px, 8.4vw, 150px); letter-spacing: -0.055em; line-height: 1.04; white-space: nowrap; }
.marquee--words i { color: var(--blue); font-style: normal; display: inline-block; transform: translateY(-.04em); }

/* ---------- Offices ---------- */
.office-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.4vw, 20px); }
.office {
  min-height: clamp(260px, 26vw, 360px); border-radius: var(--r-lg); padding: clamp(22px, 2.4vw, 34px);
  background: var(--paper); box-shadow: inset 0 0 0 1px var(--line);
  display: flex; flex-direction: column; gap: 6px;
  transition: translate .7s var(--ease-out), box-shadow .7s var(--ease-out);
}
.office:hover { translate: 0 -6px; box-shadow: inset 0 0 0 1px var(--line), 0 30px 60px -30px rgba(11, 12, 16, .25); }
.office--hq { background: var(--blue); color: #fff; box-shadow: none; }
.office--hq:hover { box-shadow: 0 30px 60px -24px rgba(29, 43, 87, .55); }
.office__badge { opacity: .7; margin-bottom: auto; }
.office__city { font-size: clamp(38px, 3.8vw, 64px); letter-spacing: -0.05em; line-height: .95; font-weight: 400; }
.office__region { opacity: .75; }
.office__time { margin-top: 18px; display: flex; align-items: center; gap: 10px; }
.office__time time { font-variant-numeric: tabular-nums; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); position: relative; box-shadow: 0 0 0 1px rgba(11, 12, 16, .15); }
.pulse::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--lime); animation: pulse 2s var(--ease-out) infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(3.2); opacity: 0; } }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(36px, 6vw, 110px); align-items: start; }
.contact__title { font-size: clamp(58px, 8.2vw, 148px); line-height: .88; letter-spacing: -0.06em; font-weight: 400; margin-bottom: clamp(20px, 2.4vw, 36px); }
.contact__direct { margin-top: clamp(36px, 4vw, 60px); border-top: 1px solid var(--line); }
.contact__line { display: grid; grid-template-columns: 90px 1fr; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: clamp(17px, 1.4vw, 22px); letter-spacing: -0.025em; transition: color .3s, padding .5s var(--ease-out); }
a.contact__line:hover { color: var(--blue); padding-left: 8px; }
.contact__line .label { color: var(--muted); }
.form {
  background: var(--paper); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 44px);
  box-shadow: inset 0 0 0 1px var(--line), 0 40px 80px -50px rgba(11, 12, 16, .3);
  display: grid; gap: 20px;
}
.form__group { border: 0; padding: 0; margin: 0; display: grid; gap: 12px; min-width: 0; }
.form__group legend { padding: 0; margin-bottom: 12px; color: var(--muted); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 8px; }
.field .label { color: var(--muted); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--canvas); border: 1px solid transparent; border-radius: var(--r-md);
  padding: 15px 18px; outline: none; resize: vertical;
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.field input:hover, .field textarea:hover { background: #eef0f6; }
.field input:focus, .field textarea:focus { background: #fff; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(29, 43, 87, .12); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #e5484d; }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice {
  height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper);
  font-size: 14.5px; cursor: pointer; transition: background .3s, color .3s, border-color .3s, transform .4s var(--ease-spring);
}
.choice:hover { border-color: #c9cddb; }
.choice:active { transform: scale(.96); }
.choice[aria-pressed="true"] { background: var(--blue); color: #fff; border-color: var(--blue); }
.form__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.form__note { font-size: 13px; color: var(--muted); max-width: 22em; }
.form__status { font-size: 14.5px; min-height: 1.4em; }
.form__status.is-ok { color: #138a4a; }
.form__status.is-error { color: #d0343a; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--blue); color: #fff;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding-top: clamp(72px, 9vw, 140px);
  overflow: hidden; position: relative;
}
.footer__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.footer__claim { font-size: clamp(30px, 3.4vw, 58px); line-height: 1.02; letter-spacing: -0.045em; }
.footer__cols { display: grid; grid-template-columns: repeat(5, 1fr); gap: 32px; margin-top: clamp(56px, 7vw, 110px); padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .25); font-size: 15.5px; line-height: 1.6; }
.footer__cols .label { color: rgba(255, 255, 255, .6); margin-bottom: 12px; }
.footer__cols a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease-out); }
.footer__cols a:hover { background-size: 100% 1px; }
.footer__muted { color: rgba(255, 255, 255, .6); margin-top: 8px; }
.footer__nav { display: grid; gap: 2px; }
.footer__word {
  --fs: calc((100vw - 2 * var(--gutter)) / 5.12);
  display: flex; align-items: flex-end; gap: calc(var(--fs) * .2);
  padding: clamp(48px, 6vw, 96px) var(--gutter) 0;
  font-size: var(--fs); line-height: 1.02; letter-spacing: -0.045em; font-weight: 500;
  overflow: hidden;
  max-width: none; white-space: nowrap; user-select: none;
}
.stack-marker { height: 0; }
.footer__mark { width: calc(var(--fs) * .69); height: calc(var(--fs) * .69); fill: #fff; flex: none; margin-bottom: calc(var(--fs) * .2); transition: rotate 1.2s var(--ease-spring); }
.footer__word:hover .footer__mark { rotate: 90deg; }
.footer__letters { display: inline-flex; }
.footer__letters .char { display: inline-block; transition: translate .7s var(--ease-spring), color .3s; }
.footer__letters .char:hover { translate: 0 -.08em; color: var(--lime); }
.footer__legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 26px 30px; font-size: 13.5px; color: rgba(255, 255, 255, .75); }
.footer__top-link:hover { color: #fff; }

/* ---------- Lightbox ---------- */
.lightbox {
  width: min(1180px, calc(100% - 24px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: var(--r-lg);
  background: var(--paper); color: var(--ink); overflow: hidden;
  box-shadow: 0 60px 120px -40px rgba(0, 0, 30, .6);
}
.lightbox::backdrop { background: rgba(11, 12, 16, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.lightbox[open] { animation: lbIn .6s var(--ease-out); }
@keyframes lbIn { from { transform: translateY(28px) scale(.97); } }
.lightbox__inner { position: relative; display: grid; grid-template-columns: 1.7fr 1fr; }
.lightbox__figure { background: #e3e6f0; max-height: calc(100vh - 32px); }
.lightbox__figure img { width: 100%; height: 100%; object-fit: contain; }
.lightbox__meta { padding: clamp(24px, 3vw, 44px); display: flex; flex-direction: column; justify-content: center; gap: 14px; padding-bottom: 96px; }
.lightbox__meta h3 { font-size: clamp(28px, 2.6vw, 42px); letter-spacing: -0.045em; line-height: 1; font-weight: 400; }
.lightbox__meta p:last-child { color: var(--muted); font-size: 17px; }
.lightbox__meta .label { color: var(--blue); }
.lightbox__close {
  position: absolute; top: 14px; right: 14px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: var(--ink); color: #fff; font-size: 22px; cursor: pointer; transition: background .3s, transform .5s var(--ease-spring);
}
.lightbox__close:hover { background: var(--blue); transform: rotate(90deg); }
.lightbox__nav { position: absolute; right: clamp(24px, 3vw, 44px); bottom: clamp(24px, 3vw, 36px); display: flex; gap: 8px; }
.lightbox__nav button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); cursor: pointer; font-size: 18px; transition: background .3s, color .3s; }
.lightbox__nav button:hover { background: var(--ink); color: #fff; }

/* SplitText line masks: give descenders/ascenders room without changing layout */
.hero-line-mask, .split-line-mask { padding: .1em 0 .18em; margin: -.1em 0 -.18em; }

/* ---------- Reveal states (JS + motion only) ---------- */
.js.motion [data-reveal] { opacity: 0; transform: translateY(26px); }
.js.motion [data-split] { visibility: hidden; }
.js.motion .hero__title, .js.motion [data-hero-fade] { visibility: hidden; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero__head { align-items: start; gap: 18px; }
  .hero__title { max-width: 11em; }
  .service { grid-template-columns: 1fr; min-height: min(84vh, 760px); }
  .service__visual { min-height: 280px; }
  .service__text { margin-top: 0; }
  .lightbox__inner { grid-template-columns: 1fr; }
  .lightbox__meta { padding-bottom: 88px; }
  .footer__cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  :root { --header-h: 68px; }
  .site-header__tagline { display: none; }
  .site-header__inner { grid-template-columns: 1fr auto; }
  .logo { grid-column: 1; justify-self: start; }
  .site-header__actions { grid-column: 2; }
  .section-head--split { grid-template-columns: 1fr; align-items: start; }
  .stats { grid-template-columns: 1fr; }
  .stat + .stat { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 28px; }
  .ios-grid { grid-template-columns: repeat(2, 1fr); }
  .process__grid { grid-template-columns: 1fr; }
  .process__sticky { position: static; }
  .process__counter { display: none; }
  .office-grid { grid-template-columns: 1fr; }
  .office { min-height: 220px; }
  .contact__grid { grid-template-columns: 1fr; }
  .index-row { width: min(78vw, 300px); }
  .menu__inner { grid-template-columns: 1fr; align-content: end; }
  .hero__hint { display: none; }
  .hero__caption { font-size: clamp(22px, 6vw, 34px); top: auto; bottom: 16%; margin-top: 0; }
  .hero__caption--left { top: 22%; bottom: auto; }
}
@media (max-width: 600px) {
  /* phones: logo and name centred on top, language switch + menu centred underneath */
  :root { --header-h: 128px; }
  .site-header__inner { grid-template-columns: 1fr; height: auto; row-gap: 10px; padding: 10px 10px 12px; border-radius: 28px; }
  .logo { grid-column: 1; justify-self: center; }
  .logo__mark { width: 40px; height: 40px; }
  .logo__word { font-size: 26px; }
  .site-header__actions { grid-column: 1; justify-content: center; }
  .site-header__actions .btn--dark { display: none; }
  .hero__title { font-size: clamp(42px, 12.4vw, 64px); }
  .hero__lead { font-size: 16px; }
  .hero__ctas .btn { --h: 48px; padding: 0 20px; }
  .hero__chips { gap: 6px; }
  .hero__chips .chip { height: 30px; padding: 0 11px; font-size: 12px; }
  .hero__ticks { display: none; }
  .form__row { grid-template-columns: 1fr; }
  .ios-grid { grid-template-columns: 1fr; }
  .ios-card__inner { padding: 18px 18px 20px; }
  .ios-card__text { font-size: 14px; }
  .ios-bar__title { letter-spacing: .08em; font-size: 11px; white-space: nowrap; }
  .ios-bar__label { display: none; }
  .footer__cols { grid-template-columns: 1fr; }
  .contact__line { grid-template-columns: 70px 1fr; }
  .service { padding: 22px; }
  .vis-code { display: none; }
}

/* Touch devices & small screens: native horizontal rail */
@media (max-width: 860px), (hover: none) {
  .rail { height: auto !important; }
  .rail__sticky { position: relative; height: auto; overflow: visible; padding-block: 40px 56px; }
  .rail__track { transform: none !important; overflow-x: auto; width: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: none; padding-top: 0; }
  .rail__track::-webkit-scrollbar { display: none; }
  .work-card { width: min(82vw, 560px); scroll-snap-align: center; }
  .rail--team { --tw: min(64vw, 300px); }
  .work-card--end { width: min(60vw, 320px); }
  .rail__progress { display: none; }
  .preview { display: none; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .hero { height: auto; }
  .hero__sticky { position: relative; height: auto; min-height: 100svh; }
  .service { position: relative; top: auto; }
}
.reduced .hero { height: auto; }
.reduced .hero__sticky { position: relative; height: 100svh; min-height: 640px; }
