/* ==========================================================================
   Kalkey: "the gallery and the cut". Tokens and rules: see /design.md
   ========================================================================== */

@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-style: normal;
  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: "Instrument Sans";
  src: url("../fonts/instrument-sans-latin-ext.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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 {
  --paper: #FFFFFF;
  --ink: #151413;
  --mute: #6F6B67;
  --line: #E6E4E1;
  --mat: #F2F1EF;
  --red: #FB0A00;
  --ember: #EA5207;
  --error: #C40800;

  --on-ink: #F4F3F1;
  --on-ink-mute: #A8A39E;
  --on-ink-line: rgba(255, 255, 255, .14);

  --font: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --max: 1680px;
  --margin: clamp(20px, 3vw, 44px);
  --gutter: clamp(16px, 1.4vw, 20px);
  --header-h: 76px;

  --ease: cubic-bezier(.2, .7, .1, 1);
}

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

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
:where(ul[role="list"], ol[role="list"]) { list-style: none; margin: 0; padding: 0; }

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
::selection { background: var(--ink); color: var(--paper); }

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  background: var(--ink); color: var(--paper);
  padding: 12px 18px; transform: translateY(-160%);
}
.skip-link:focus-visible { transform: none; }

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

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--margin);
}

/* --------------------------------------------------------------------------
   Type
   -------------------------------------------------------------------------- */

.t-display {
  font-size: clamp(44px, 6.1vw, 92px);
  line-height: .98;
  font-weight: 560;
  font-stretch: 85%;
  letter-spacing: -.035em;
}
.t-h2 {
  font-size: clamp(32px, 3.9vw, 56px);
  line-height: 1.02;
  font-weight: 560;
  font-stretch: 85%;
  letter-spacing: -.03em;
}
.t-h3 {
  font-size: 28px;
  line-height: 1.15;
  font-weight: 530;
  font-stretch: 90%;
  letter-spacing: -.015em;
}
.t-lead { font-size: 21px; line-height: 1.45; letter-spacing: -.005em; }
.t-small { font-size: 14px; line-height: 1.45; }
.mute { color: var(--mute); }

/* The red slash: the K's 45° band. Marks what is current or selected. */
.slash {
  display: inline-block;
  flex: none;
  width: .78em;
  height: .78em;
  margin-right: .3em;
  vertical-align: -.06em;
  background: linear-gradient(to bottom right,
    transparent calc(50% - 1.1px), var(--red) calc(50% - 1.1px),
    var(--red) calc(50% + 1.1px), transparent calc(50% + 1.1px));
}

/* Text that rolls up to a duplicate copy on hover */
.roll { display: inline-grid; overflow: hidden; vertical-align: top; }
.roll > span { grid-area: 1 / 1; transition: transform .5s var(--ease); }
.roll > span + span { transform: translateY(105%); }
a:hover .roll > span:first-child, button:hover .roll > span:first-child { transform: translateY(-105%); }
a:hover .roll > span + span, button:hover .roll > span + span { transform: none; }

/* --------------------------------------------------------------------------
   Buttons and links
   -------------------------------------------------------------------------- */

.btn {
  --cut: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  padding: 0 28px;
  background: var(--ink);
  color: var(--paper);
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.btn--cut { clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); }
.btn--cut:focus-visible { clip-path: none; }
.btn:hover { background: #33302D; }
.btn--sm { height: 42px; padding: 0 20px; font-size: 15px; --cut: 10px; }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: #E4E1DD; }
.btn[disabled] { opacity: .55; cursor: progress; }

.link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .28em;
  transition: text-decoration-thickness .2s;
}
.link:hover { text-decoration-thickness: 2px; }

/* --------------------------------------------------------------------------
   Brand
   -------------------------------------------------------------------------- */

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-k { width: 28px; height: auto; overflow: visible; }
.brand-word { font-size: 20px; font-weight: 600; font-stretch: 90%; letter-spacing: -.02em; }

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: transform .45s var(--ease), border-color .3s, background-color .4s var(--ease), color .4s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header.is-hidden { transform: translateY(calc(-100% - 2px)); }
/* Over dark sections (set by main.js from the section under the header) */
.site-header.is-dark { background: var(--ink); color: var(--on-ink); }
.site-header.is-dark.is-scrolled { border-bottom-color: var(--on-ink-line); }
.site-header.is-dark .header-cta { background: var(--paper); color: var(--ink); }
.site-header.is-dark .header-cta:hover { background: #E4E1DD; }
.site-header.is-dark :focus-visible { outline-color: #FF6A5C; }
.menu-open .site-header { transform: none; border-bottom-color: transparent; background: var(--paper); color: var(--ink); }

.header-inner { height: 100%; display: flex; align-items: center; gap: 40px; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 34px; list-style: none; margin: 0; padding: 0; }
.nav-link { display: inline-flex; align-items: center; font-size: 15px; font-weight: 500; }
.nav-link .slash { display: none; }
.nav-link.is-active .slash { display: inline-block; }

.menu-btn { display: none; margin-left: auto; font-size: 15px; font-weight: 500; height: 42px; padding: 0 4px; }
.menu-btn-close { display: none; }
.menu-open .menu-btn-open { display: none; }
.menu-open .menu-btn-close { display: inline; }

.site-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--paper);
  padding-top: calc(var(--header-h) + 24px);
  overflow-y: auto;
}
.site-menu[hidden] { display: none; }
.site-menu-inner { min-height: 100%; display: flex; flex-direction: column; padding-bottom: 32px; }
.site-menu-links { list-style: none; margin: 0; padding: 0; }
.site-menu-links a {
  display: flex; align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(36px, 10vw, 56px);
  line-height: 1.05;
  font-weight: 560;
  font-stretch: 85%;
  letter-spacing: -.03em;
}
.site-menu-foot { margin-top: auto; padding-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .nav, .header-cta { display: none; }
  .menu-btn { display: inline-flex; align-items: center; }
}

/* --------------------------------------------------------------------------
   Mats, devices, labels (the gallery wall)
   -------------------------------------------------------------------------- */

.mat { position: relative; display: block; background: var(--mat); overflow: hidden; }
.mat--website { aspect-ratio: 4 / 3; }
.mat--app { aspect-ratio: 2 / 3; }

.device { position: absolute; transition: transform .6s var(--ease); }
.device-screen { overflow: hidden; }
.device-screen svg, .device-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

.device--browser {
  left: 8%; right: 8%; top: 50%;
  translate: 0 -50%;
  background: #fff;
  border-radius: clamp(5px, .6vw, 10px);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(21, 20, 19, .06), 0 22px 44px -16px rgba(21, 20, 19, .32);
}
.device-bar {
  display: flex; align-items: center; gap: .9%;
  aspect-ratio: 1 / .036;
  padding-left: 1.8%;
  background: #ECEAE7;
}
.device-bar i { width: 1.1%; aspect-ratio: 1; border-radius: 50%; background: #C8C4BF; }
.device--browser .device-screen { aspect-ratio: 16 / 10; }

.device--phone {
  top: 8%; bottom: 8%; left: 50%;
  translate: -50% 0;
  aspect-ratio: .4786; /* 390x844 screen + equal bezel of 3.2% of the width */
  background: #141414;
  border-radius: 15% / 7%;
  box-shadow: 0 1px 2px rgba(21, 20, 19, .08), 0 24px 44px -14px rgba(21, 20, 19, .4);
}
.device--phone .device-screen { position: absolute; inset: 1.53% 3.2%; border-radius: 12% / 5.6%; }

a:hover .device, a:focus-visible .device { transform: translateY(-1.5%); }

.label { display: flex; flex-direction: column; margin-top: 14px; font-size: 15px; line-height: 1.35; }
.l-name { font-weight: 500; }
.l-sub { color: var(--mute); }
.l-industry, .l-origin { display: none; }
.l-platform::after { content: ", "; }
.l-platform:has(~ .l-year:empty)::after { content: none; }

/* "Our product" / "Client project" tag on a project's mat */
.origin-tag {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  padding: 5px 9px;
  font-size: 12px; line-height: 1.2; font-weight: 500;
  background: var(--paper); color: var(--ink);
  border-radius: 2px;
}
.origin-tag--ours { background: var(--ink); color: var(--paper); }
.case .origin-tag, .section--dark .origin-tag { background: #F4F3F1; }

/* --------------------------------------------------------------------------
   Home: hero + reel
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  background: var(--ink);
  color: var(--on-ink);
  overflow: hidden;
}
.hero ::selection { background: var(--on-ink); color: var(--ink); }
.hero :focus-visible { outline-color: #FF6A5C; }
.hero-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: 40px;
  align-items: center;
  padding-block: clamp(32px, 6vh, 72px);
}
.hero-copy { grid-column: 1 / span 6; position: relative; z-index: 2; }
.hero-title { max-width: 15ch; font-size: clamp(40px, 4.6vw, 72px); text-wrap: balance; }
.hero-lead { margin-top: 28px; max-width: 26em; color: var(--on-ink-mute); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 36px; }
.hero-availability { display: flex; align-items: center; margin-top: clamp(40px, 8vh, 88px); font-size: 15px; color: var(--on-ink-mute); }
.hero-showcase { grid-column: 7 / span 6; }

/* Hero showcase: projects revealed one by one behind the red 45° band */
.showcase { width: 100%; max-width: 780px; margin-left: auto; perspective: 1600px; }
.showcase-stage {
  position: relative;
  aspect-ratio: 4 / 3;
  max-height: calc(100svh - var(--header-h) - 190px);
  margin-left: auto;
  overflow: hidden;
  background: #24221F;
  will-change: transform;
}
.showcase-slide { position: absolute; inset: 0; z-index: 1; visibility: hidden; }
.showcase-slide.is-current { visibility: visible; }
.showcase-slide.is-next { visibility: visible; z-index: 2; }
.showcase .mat { background: #24221F; }
.showcase .device--browser, .showcase .device--phone { box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .75); }
.showcase .comp .device { transition: transform .6s var(--ease); }
.comp--browser .device--browser { left: 8%; right: 8%; }
.showcase-band {
  position: absolute; inset: 0; z-index: 3;
  pointer-events: none;
  background: linear-gradient(225deg, #EA5207, #FD0500 42%, #E8601A);
  clip-path: polygon(0 0, 0 0, 0 0);
}
.showcase-caption {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 24px;
  margin-top: 18px;
}
.showcase-name { display: grid; overflow: hidden; font-size: 21px; font-weight: 500; line-height: 1.3; letter-spacing: -.01em; }
.showcase-name span { grid-area: 1 / 1; }
.showcase-meta { color: var(--on-ink-mute); font-size: 15px; }
.showcase-controls { grid-column: 2; grid-row: 1 / span 2; display: flex; align-items: center; gap: 22px; font-size: 15px; color: var(--on-ink-mute); }
.showcase-controls button { min-height: 40px; color: var(--on-ink); font-weight: 500; }
.showcase-count { font-variant-numeric: tabular-nums; }
.showcase-progress { grid-column: 1 / -1; height: 1px; margin-top: 14px; background: var(--on-ink-line); }
.showcase-progress i { display: block; height: 100%; background: var(--on-ink); transform-origin: left; transform: scaleX(0); }
html:not(.js) .showcase-controls, html:not(.js) .showcase-progress { display: none; }

/* Card deck variant: cards fan up and to the right; JS moves them, these are the no-JS positions */
.showcase--deck .showcase-stage { overflow: visible; background: none; transform-style: preserve-3d; pointer-events: none; }
.showcase--deck .deck-card { pointer-events: auto; }
.deck-card {
  position: absolute; left: 0; bottom: 0;
  width: 88%; height: 88%;
  transform-origin: 50% 100%;
  border-radius: 6px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .85);
}
.showcase .deck-card { background: #24221F; background: color-mix(in srgb, var(--tint) 14%, #24221F); }
.deck-card:nth-child(1) { z-index: 3; }
.deck-card:nth-child(2) { z-index: 2; transform: translate(6%, -6%) rotate(3.5deg) scale(.93); }
.deck-card:nth-child(3) { z-index: 1; transform: translate(12%, -12%) rotate(7deg) scale(.86); }
.deck-card:nth-child(n+4) { visibility: hidden; opacity: 0; }
.showcase--deck .showcase-caption { margin-top: 22px; }

.section--first { border-top: 0; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 32px; }
.section-sub { margin-top: 12px; }

.reel {
  --h: clamp(250px, 36vh, 430px);
  margin-top: clamp(36px, 6vh, 64px);
  padding-left: max(var(--margin), calc((100vw - var(--max)) / 2 + var(--margin)));
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.reel.is-dragging { cursor: grabbing; }
.reel-track { display: flex; gap: var(--gutter); width: max-content; list-style: none; margin: 0; padding: 0; will-change: transform; }
.reel-item { flex: none; }
.reel-item .mat { height: var(--h); width: auto; }
.reel-item a { display: block; -webkit-user-drag: none; }
.reel-item img, .reel-item svg { -webkit-user-drag: none; pointer-events: none; }
.reel-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-top: 28px; color: var(--mute); font-size: 15px; }
.reel-foot .link { color: var(--ink); }

/* Hide the hero content until the intro timeline has set its start state (CSS fallback reveals it after 3s). */
.js .hero:not(.is-ready) .hero-copy, .js .hero:not(.is-ready) .showcase { opacity: 0; animation: kk-reveal 0s linear 3s forwards; }
@keyframes kk-reveal { to { opacity: 1; } }

/* Without JS the reel is a normal horizontal scroller */
html:not(.js) .reel { overflow-x: auto; cursor: auto; }

/* --------------------------------------------------------------------------
   Home: sections
   -------------------------------------------------------------------------- */

.section { padding-block: clamp(80px, 13vh, 160px); border-top: 1px solid var(--line); }

.split {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: 40px;
}
.split-aside { grid-column: 1 / span 4; }
.split-main { grid-column: 6 / span 7; }
.split-aside .t-lead { margin-top: 20px; color: var(--mute); max-width: 26em; }
@media (min-width: 1000px) {
  .split-aside--sticky { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
}

.services-list { list-style: none; margin: 0; padding: 0; }
.service {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  column-gap: var(--gutter);
  row-gap: 10px;
  padding-block: 30px;
  border-top: 1px solid var(--line);
}
.service:last-child { border-bottom: 1px solid var(--line); }
.service p { max-width: 36em; }
.service .tools { margin-top: 10px; color: var(--mute); font-size: 15px; }

.steps {
  list-style: none; margin: 56px 0 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: 48px;
}
.step { border-top: 1px solid var(--ink); padding-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.step-num { font-size: 15px; color: var(--mute); font-variant-numeric: tabular-nums; }
.step p { max-width: 30em; }
.step-time { margin-top: auto; padding-top: 8px; font-size: 15px; color: var(--mute); }

.statement {
  font-size: clamp(28px, 3.3vw, 48px);
  line-height: 1.12;
  font-weight: 500;
  font-stretch: 88%;
  letter-spacing: -.022em;
  max-width: 22em;
}
.facts {
  list-style: none; margin: 64px 0 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: var(--gutter);
}
.facts li { border-top: 1px solid var(--line); padding-top: 18px; }
.facts strong { display: block; font-weight: 500; margin-bottom: 6px; }
.facts span { color: var(--mute); }

/* --------------------------------------------------------------------------
   Home: dark sections
   -------------------------------------------------------------------------- */

.section--dark { background: var(--ink); color: var(--on-ink); border-top: 0; }
.section--dark .t-lead, .section--dark .mute { color: var(--on-ink-mute); }
.section--dark :focus-visible { outline-color: #FF6A5C; }
.section--dark ::selection { background: var(--on-ink); color: var(--ink); }

/* Featured case study: wiped in by a red band, then scrolls sideways while pinned */
.case-wrap { position: relative; }
.case { position: relative; background: var(--ink); color: var(--on-ink); overflow: hidden; }
.case :focus-visible { outline-color: #FF6A5C; }
.case-band {
  position: absolute; inset: 0; z-index: 3;
  pointer-events: none;
  background: linear-gradient(225deg, #EA5207, #FD0500 40%, #E8601A);
  clip-path: polygon(0 0, 0 0, 0 0);
}
.case-track { display: flex; width: max-content; height: 100vh; height: 100svh; padding-top: var(--header-h); }
.case-panel {
  flex: none;
  display: flex; flex-direction: column; justify-content: center;
  height: 100%;
  padding: clamp(32px, 6vh, 72px) clamp(28px, 3.5vw, 64px);
}
.case-panel--intro { width: min(46vw, 720px); padding-left: max(var(--margin), calc((100vw - var(--max)) / 2 + var(--margin))); }
.case-kicker { font-size: 15px; color: var(--on-ink-mute); margin-bottom: 20px; }
.case-title { max-width: 8ch; }
.case-lead { margin-top: 24px; color: var(--on-ink-mute); max-width: 24em; }
.case-meta { margin-top: 40px; max-width: 26em; }
.case-meta div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding-block: 12px; border-top: 1px solid var(--on-ink-line); font-size: 15px; }
.case-meta dt { color: var(--on-ink-mute); }

.case .mat { background: #24221F; }
.case .device--browser, .case .device--phone { box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7); }
.case-panel--shot { width: min(64vw, calc((100svh - var(--header-h) - 140px) * 4 / 3)); }
.case-mat { width: 100%; }

.case-panel--story { width: min(38vw, 560px); gap: 14px; }
.case-panel--story .t-h3:not(:first-child) { margin-top: 28px; }
.case-panel--story p { color: var(--on-ink-mute); }
.case-built { list-style: none; margin: 0; padding: 0; }
.case-built li { padding-block: 12px; border-top: 1px solid var(--on-ink-line); }

.case-panel--phones { position: relative; flex-direction: row; align-items: center; gap: clamp(16px, 2vw, 32px); width: min(46vw, 720px); }
.case-phone { position: relative; flex: 1; aspect-ratio: .4786; max-height: calc(100svh - var(--header-h) - 120px); }
.case-phone .device--phone { top: 0; bottom: 0; }
.case-phone--2 { margin-top: 12vh; }

.case-panel--results { width: min(44vw, 680px); }
.stats { list-style: none; margin: 28px 0 0; padding: 0; }
.stats li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; padding-block: 20px; border-top: 1px solid var(--on-ink-line); }
.stat-value {
  font-size: clamp(56px, 6.4vw, 104px);
  line-height: .95;
  font-weight: 560;
  font-stretch: 85%;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}
.stat-label { color: var(--on-ink-mute); max-width: 24em; }

.case-panel--end { width: min(44vw, 640px); padding-right: max(var(--margin), calc((100vw - var(--max)) / 2 + var(--margin))); }
.case-panel--end .t-h2 { max-width: 10ch; }

.case-progress { position: absolute; left: var(--margin); right: var(--margin); bottom: 28px; height: 1px; background: var(--on-ink-line); }
.case-progress i { display: block; height: 100%; background: var(--on-ink); transform-origin: left; transform: scaleX(0); }

/* Small screens and reduced motion: the case study reads top to bottom */
@media (max-width: 900px), (prefers-reduced-motion: reduce) {
  .case-track { flex-direction: column; width: auto; height: auto; padding-block: 80px; }
  .case-panel { width: auto !important; height: auto; padding: 32px var(--margin) !important; }
  .case-panel--shot .case-mat { aspect-ratio: 4 / 3; }
  .case-panel--phones { justify-content: center; }
  .case-phone { max-width: 42vw; }
  .case-phone--2 { margin-top: 48px; }
  .case-progress, .case-band { display: none; }
}

/* Tech stack */
.tech { overflow: hidden; }
.tech-list div { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: var(--gutter); padding-block: 20px; border-top: 1px solid var(--on-ink-line); }
.tech-list div:last-child { border-bottom: 1px solid var(--on-ink-line); }
.tech-list dt { color: var(--on-ink-mute); padding-top: .35em; font-size: 15px; }
.tech-list dd { font-size: clamp(20px, 1.9vw, 28px); line-height: 1.3; letter-spacing: -.01em; }

.marquee { margin-top: clamp(72px, 12vh, 140px); overflow: hidden; }
.marquee-track { display: flex; align-items: center; width: max-content; will-change: transform; }
.marquee-item {
  font-size: clamp(56px, 8vw, 128px);
  line-height: 1.1;
  font-weight: 560;
  font-stretch: 85%;
  letter-spacing: -.035em;
  color: #3A3734;
  white-space: nowrap;
  transition: color .4s;
}
.marquee:hover .marquee-item { color: #55514D; }
.marquee-shard {
  flex: none;
  width: clamp(18px, 2vw, 30px);
  aspect-ratio: 1;
  margin-inline: clamp(24px, 3vw, 48px);
  background: var(--red);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

/* FAQ */
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding-block: 24px;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q { font-size: clamp(19px, 1.6vw, 23px); font-weight: 500; line-height: 1.3; letter-spacing: -.01em; }
.faq-icon { position: relative; flex: none; width: 18px; height: 18px; transition: transform .45s var(--ease); }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 1.5px; margin-top: -.75px; background: currentColor; }
.faq-icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-a { overflow: hidden; }
.faq-a p { padding-bottom: 26px; max-width: 40em; color: var(--mute); }

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

.services-cta { margin-top: 32px; }
.service-link { text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 1px; text-underline-offset: .2em; transition: text-decoration-color .25s; }
.service-link:hover { text-decoration-color: currentColor; }

.svc-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-top: var(--header-h);
  background: var(--ink);
  color: var(--on-ink);
  overflow: hidden;
}
.svc-hero :focus-visible { outline-color: #FF6A5C; }
.svc-hero ::selection { background: var(--on-ink); color: var(--ink); }
.svc-hero-band {
  position: absolute;
  right: var(--margin);
  top: calc(var(--header-h) + 4vh);
  width: min(40vw, 66vh);
  aspect-ratio: 1;
  background: linear-gradient(225deg, #EA5207 0%, #FD0500 34%, #F81200 70%, #E8601A 100%);
  clip-path: polygon(45% 0, 100% 0, 0 100%, 0 45%);
}
.svc-hero-grid {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  padding-block: clamp(40px, 8vh, 96px);
}
.svc-hero-copy, .svc-index { grid-column: 1 / span 6; }
.svc-hero-title { font-size: clamp(72px, 12vw, 200px); line-height: .88; letter-spacing: -.045em; }
.svc-hero-copy .t-lead { margin-top: 28px; max-width: 26em; color: var(--on-ink-mute); }
.svc-index { margin-top: clamp(40px, 7vh, 72px); }
.svc-index ul { list-style: none; margin: 0; padding: 0; }
.svc-index a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  padding-block: 15px;
  border-top: 1px solid var(--on-ink-line);
  font-size: clamp(22px, 2.1vw, 32px);
  line-height: 1.15;
  font-weight: 500;
  font-stretch: 88%;
  letter-spacing: -.02em;
}
.svc-index li:last-child a { border-bottom: 1px solid var(--on-ink-line); }
.svc-index-time { flex: none; font-size: 14px; font-stretch: 100%; letter-spacing: 0; color: var(--on-ink-mute); }

.svc { padding-block: clamp(96px, 15vh, 180px); border-top: 1px solid var(--line); scroll-margin-top: 0; }
.svc--dark { background: var(--ink); color: var(--on-ink); border-top: 0; }
.svc--dark + .svc, .svc-hero + .svc { border-top: 0; }
.svc--dark :focus-visible { outline-color: #FF6A5C; }
.svc--dark ::selection { background: var(--on-ink); color: var(--ink); }
.svc-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: 56px;
  align-items: start;
}
.svc-text { grid-column: 1 / span 5; }
.svc-visual { grid-column: 7 / span 6; position: sticky; top: calc(var(--header-h) + 40px); }
.svc-grid--flip .svc-text { grid-column: 8 / span 5; grid-row: 1; }
.svc-grid--flip .svc-visual { grid-column: 1 / span 6; grid-row: 1; }
.svc-title { font-size: clamp(44px, 5.2vw, 84px); max-width: 9ch; }
.svc-pitch { margin-top: 24px; }
.svc--dark .svc-pitch { color: var(--on-ink-mute); }
.svc-sub { margin-top: 48px; margin-bottom: 8px; font-size: 15px; font-weight: 500; color: var(--mute); }
.svc--dark .svc-sub { color: var(--on-ink-mute); }
.svc-list { list-style: none; margin: 0; padding: 0; }
.svc-list li { padding-block: 13px; border-top: 1px solid var(--line); font-size: 18px; }
.svc-facts { margin-top: 40px; }
.svc-facts div { display: grid; grid-template-columns: 100px 1fr; gap: 16px; padding-block: 12px; border-top: 1px solid var(--line); font-size: 15px; }
.svc-facts div:last-child { border-bottom: 1px solid var(--line); }
.svc-facts dt { color: var(--mute); }
.svc--dark .svc-list li, .svc--dark .svc-facts div { border-color: var(--on-ink-line); }
.svc--dark .svc-facts dt { color: var(--on-ink-mute); }
.svc-text .hero-actions { margin-top: 40px; }

/* Device compositions */
.comp { aspect-ratio: 5 / 4; }
.svc--dark .mat { background: #24221F; }
.svc--dark .device--browser, .svc--dark .device--phone { box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .75); }
.comp .device { transition: none; }
.comp--web-phone .device--browser { left: 6%; right: auto; width: 76%; top: 11%; translate: none; }
.comp--web-phone .device--phone { left: auto; right: 7%; top: auto; bottom: 7%; height: 70%; translate: none; }
.comp--two-phones .device--phone { top: 8%; bottom: auto; height: 80%; }
.comp--two-phones .device--phone:nth-child(1) { left: 32%; }
.comp--two-phones .device--phone:nth-child(2) { left: 68%; top: 13%; }
.comp--wireframe { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: minmax(0, 1fr); gap: 4%; padding: 7% 12% 5%; }
.comp-step { position: relative; margin: 0; display: flex; flex-direction: column; align-items: center; min-height: 0; }
.comp-step .device--phone { position: relative; inset: auto; translate: none; height: calc(100% - 34px); }
.comp-step figcaption { margin-top: 12px; font-size: 14px; color: var(--mute); }
.svc--dark .comp-step figcaption { color: var(--on-ink-mute); }

/* Ways to work */
.models {
  list-style: none; margin: 56px 0 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: 48px;
}
.model { border-top: 1px solid var(--ink); padding-top: 20px; }
.model dl { margin-top: 20px; }
.model dl div { padding-block: 12px; border-top: 1px solid var(--line); }
.model dt { color: var(--mute); font-size: 14px; margin-bottom: 4px; }

.js .svc-hero:not(.is-ready) .svc-hero-copy, .js .svc-hero:not(.is-ready) .svc-index, .js .svc-hero:not(.is-ready) .svc-hero-band { opacity: 0; animation: kk-reveal 0s linear 3s forwards; }

@media (max-width: 1000px) {
  .svc-text, .svc-grid--flip .svc-text { grid-column: 1 / -1; grid-row: 2; }
  .svc-visual, .svc-grid--flip .svc-visual { grid-column: 1 / -1; grid-row: 1; position: relative; top: auto; }
  .models { grid-template-columns: 1fr; }
  .svc-hero-copy, .svc-index { grid-column: 1 / -1; }
  .svc-hero-band { width: 56vw; top: calc(var(--header-h) + 12px); opacity: .9; }
}

/* --------------------------------------------------------------------------
   Careers (the hero reuses the Services hero)
   -------------------------------------------------------------------------- */

.careers-hero .svc-hero-copy { grid-column: 1 / span 7; }
.roles-note { margin-top: 20px; color: var(--on-ink-mute); max-width: 34em; }
.roles + .roles-note { margin-top: 28px; }
.section--dark .faq-item { border-color: var(--on-ink-line); }
.role-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; }
.role-meta { font-size: 15px; color: var(--on-ink-mute); }
.role-body { padding-bottom: 28px; max-width: 40em; }
.role-body p { padding-bottom: 0; color: var(--on-ink-mute); }
.role-points { margin-top: 16px; }
.role-points li { padding-block: 10px; border-top: 1px solid var(--on-ink-line); }
.role-body .link { display: inline-block; margin-top: 20px; }

@media (max-width: 1000px) {
  .careers-hero .svc-hero-copy { grid-column: 1 / -1; }
}

/* --------------------------------------------------------------------------
   Portfolio
   -------------------------------------------------------------------------- */

.page-head { padding-top: calc(var(--header-h) + clamp(40px, 8vh, 100px)); }
.page-head .t-lead { margin-top: 20px; max-width: 30em; color: var(--mute); }

.work-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px 32px;
  margin-top: clamp(40px, 7vh, 80px);
  padding-block: 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.toggle-group { display: flex; flex-wrap: wrap; gap: 6px 28px; }
.toggle {
  display: inline-flex; align-items: center;
  min-height: 40px;
  font-size: 17px;
  color: var(--mute);
  transition: color .25s;
}
.toggle:hover { color: var(--ink); }
.toggle[aria-current="true"] { color: var(--ink); }
.toggle .slash { width: 0; margin-right: 0; opacity: 0; transition: width .35s var(--ease), margin .35s var(--ease), opacity .2s; }
.toggle[aria-current="true"] .slash { width: .78em; margin-right: .3em; opacity: 1; }
.toggle .count { font-size: 13px; align-self: flex-start; margin: 8px 0 0 3px; font-variant-numeric: tabular-nums; }

.work { padding-top: 48px; padding-bottom: clamp(96px, 14vh, 160px); }
.work-list {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 56px var(--gutter);
}
.work-card--website { grid-column: span 6; }
.work-card--app { grid-column: span 3; }
.work-link { display: block; }
/* In a row with a website card, app mats stretch to the same height */
.work-list:not(.is-index) .work-card { display: flex; flex-direction: column; }
.work-list:not(.is-index) .work-link { flex: 1; display: flex; flex-direction: column; }
.work-list:not(.is-index) .work-card--app .mat { flex: 1 0 auto; }
/* After the flex rule above, which would otherwise outrank it */
.work-list .work-card.is-hidden { display: none; }
.work-empty { margin-top: 24px; color: var(--mute); font-size: 19px; }
.work-empty[hidden] { display: none; }

/* Index view */
.work-list.is-index { display: block; }
.is-index .work-card { border-top: 1px solid var(--line); }
.is-index .work-card:last-child { border-bottom: 1px solid var(--line); }
.is-index .mat { display: none; }
.is-index .work-link { padding-block: 22px; }
.is-index .label {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 2fr) minmax(0, 3fr) minmax(0, 2fr) minmax(0, 1fr);
  column-gap: var(--gutter);
  align-items: baseline;
  margin: 0;
}
.is-index .l-name {
  justify-self: start;
  font-size: clamp(26px, 2.8vw, 42px);
  line-height: 1.1;
  font-weight: 530;
  font-stretch: 85%;
  letter-spacing: -.025em;
  transition: transform .5s var(--ease);
}
.is-index .work-link:hover .l-name, .is-index .work-link:focus-visible .l-name { transform: translateX(14px); }
.is-index .l-sub { display: contents; }
.is-index .l-industry, .is-index .l-origin { display: block; color: var(--mute); }
.is-index .l-platform::after { content: none; }
.is-index .l-year { text-align: right; font-variant-numeric: tabular-nums; }

.index-preview {
  position: fixed; top: 0; left: 0; z-index: 60;
  width: clamp(220px, 19vw, 320px);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}
.index-preview .mat--app { width: 62%; }
.index-preview.is-app { width: clamp(150px, 13vw, 220px); }
.index-preview.is-app .mat--app { width: 100%; }

/* Project sheet */
.sheet {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: transparent;
  color: var(--ink);
  overflow: hidden;
}
.sheet::backdrop { background: transparent; }
.sheet:focus, .sheet-panel:focus { outline: none; }
.sheet-scrim { position: absolute; inset: 0; background: rgba(21, 20, 19, .5); }
html:not(.js) .sheet { background: rgba(21, 20, 19, .5); }
.sheet-panel {
  position: absolute;
  inset: clamp(10px, 3vh, 32px) 0 0 0;
  background: var(--paper);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.sheet-bar {
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 64px;
  padding-inline: var(--margin);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.sheet-count { color: var(--mute); font-size: 15px; font-variant-numeric: tabular-nums; }
.sheet-actions { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.sheet-actions a, .sheet-actions button { min-height: 40px; display: inline-flex; align-items: center; }
.sheet-body { max-width: var(--max); margin-inline: auto; padding: var(--margin) var(--margin) 96px; }
.sheet-mat.mat { aspect-ratio: 16 / 9; max-height: 72vh; width: 100%; }
.sheet-mat .device--browser { left: 50%; right: auto; width: min(84%, calc(72vh * 16 / 9 * .84)); translate: -50% -50%; }
.sheet-info {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: 40px;
  margin-top: 44px;
}
.sheet-text { grid-column: 1 / span 7; }
.sheet-text .t-lead { margin-top: 18px; max-width: 32em; }
.sheet-text .btn { margin-top: 32px; }
.sheet-facts { grid-column: 9 / span 4; }
.sheet-facts div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding-block: 14px; border-top: 1px solid var(--line); }
.sheet-facts dt { color: var(--mute); }

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

.contact {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: 56px;
  padding-top: calc(var(--header-h) + clamp(40px, 8vh, 100px));
  padding-bottom: clamp(96px, 14vh, 160px);
}
.contact-intro { grid-column: 1 / span 7; }
.contact-intro .t-lead { margin-top: 24px; color: var(--mute); max-width: 24em; }
.contact-label { display: block; margin: 0; font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--mute); }

/* Email and phone: the page's main links, one per row */
.contact-lines { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; }
.contact-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px 24px;
  padding-block: 18px 22px;
  border-top: 1px solid var(--line);
}
.contact-lines li:last-child .contact-line { border-bottom: 1px solid var(--line); }
.contact-line .contact-label { grid-column: 1 / -1; }
.contact-value {
  min-width: 0;
  font-size: clamp(30px, 3.9vw, 60px);
  line-height: 1.04;
  font-weight: 560;
  font-stretch: 85%;
  letter-spacing: -.03em;
  overflow-wrap: anywhere;
}
.contact-value .roll > span { padding-bottom: .08em; }
.contact-arrow {
  width: clamp(22px, 2.2vw, 34px);
  height: auto;
  margin-bottom: .3em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  transition: transform .5s var(--ease);
}
.contact-line:hover .contact-arrow { transform: translate(12%, -12%); }

/* Office address and presence */
.contact-more {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: 40px;
}
.contact-block { grid-column: span 4; }
.contact-block address, .contact-block ul { margin: 14px 0 0; padding: 0; list-style: none; font-style: normal; font-size: 21px; line-height: 1.45; letter-spacing: -.005em; }

.form { display: grid; gap: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px var(--gutter); }
.field { display: grid; gap: 10px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field-label, .field legend { font-size: 15px; font-weight: 500; padding: 0; }
.field .optional { color: var(--mute); font-weight: 400; }
.input {
  width: 100%;
  font: inherit;
  font-size: 17px;
  color: var(--ink);
  background: var(--mat);
  border: 0;
  border-bottom: 1px solid #CFCBC6;
  border-radius: 0;
  padding: 14px 16px;
  transition: border-color .2s, background-color .2s;
  -webkit-appearance: none;
  appearance: none;
}
.input:hover { border-bottom-color: var(--ink); }
.input:focus-visible { outline: 2px solid var(--red); outline-offset: 0; background: var(--paper); }
textarea.input { min-height: 168px; resize: vertical; line-height: 1.5; }
.field.has-error .input { border-bottom: 2px solid var(--error); }
.field-error { color: var(--error); font-size: 14px; }
.field-error:empty { display: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 18px;
  border: 1px solid #D9D6D2;
  font-size: 15px;
  transition: background-color .2s, color .2s, border-color .2s;
}
.chip input:hover + span { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.form-note { color: var(--mute); font-size: 14px; }
.form-alert { padding: 16px 18px; background: #FFF1F0; color: var(--error); font-size: 15px; }
.form-alert:empty { display: none; }

.form-done { padding-top: 8px; }
.form-done .t-h2 { max-width: 14em; }
.form-done p { margin-top: 18px; color: var(--mute); max-width: 30em; }
.form-done > .link { display: inline-block; margin-top: 28px; }

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

.not-found { padding-top: calc(var(--header-h) + clamp(60px, 14vh, 160px)); padding-bottom: clamp(96px, 16vh, 180px); }
.not-found .t-lead { margin-top: 20px; color: var(--mute); }
.not-found .hero-actions { margin-top: 36px; }

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

.site-footer { background: var(--ink); color: var(--on-ink); }
.site-footer :focus-visible { outline-color: #FF6A5C; }
.footer-cta {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: 32px;
  padding-block: clamp(80px, 13vh, 150px);
  align-items: end;
}
.footer-title { grid-column: 1 / span 7; max-width: 9ch; }
.footer-cta-side { grid-column: 9 / span 4; }
.footer-cta-side .t-lead { color: var(--on-ink-mute); }
.footer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 28px; }
.footer-email { font-size: 17px; }

.footer-base {
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px;
  padding-block: 28px;
  border-top: 1px solid var(--on-ink-line);
  font-size: 14px;
  color: var(--on-ink-mute);
}
.brand--footer { color: var(--on-ink); }
.brand--footer .brand-k { width: 24px; }
.brand--footer .brand-word { font-size: 17px; }
.footer-nav, .footer-social { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; margin: 0; padding: 0; }
.footer-nav a:hover, .footer-social a:hover { color: var(--on-ink); }
.footer-copy { margin-left: auto; }

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

@media (max-width: 1100px) {
  .tech-list div { grid-template-columns: 1fr; gap: 6px; }
  .split-aside, .split-main { grid-column: 1 / -1; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-intro { grid-column: 1 / -1; max-width: 40em; }
  .contact-block { grid-column: span 6; }
  .sheet-text { grid-column: 1 / -1; }
  .sheet-facts { grid-column: 1 / span 8; }
}

@media (max-width: 900px) {
  .hero { align-items: flex-start; }
  .hero-copy, .hero-showcase { grid-column: 1 / -1; }
  .showcase { max-width: none; }
  .showcase-stage { max-height: none; }
  .hero-availability { margin-top: 40px; }
  .work-card--website { grid-column: span 12; }
  .work-card--app { grid-column: span 6; }
  .footer-title, .footer-cta-side { grid-column: 1 / -1; }
  .footer-copy { margin-left: 0; width: 100%; }
  .is-index .label { grid-template-columns: minmax(0, 1fr) auto; }
  .is-index .l-platform, .is-index .l-industry, .is-index .l-origin { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .t-lead { font-size: 19px; }
  .t-h3 { font-size: 24px; }
  .reel { --h: 230px; }
  .service { grid-template-columns: 1fr; }
  .steps, .facts { grid-template-columns: 1fr; row-gap: 32px; }
  .work-list { row-gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
  .sheet-facts { grid-column: 1 / -1; }
  .sheet-facts div { grid-template-columns: 100px 1fr; }
  .sheet-mat.mat { aspect-ratio: 4 / 3; }
  .sheet-mat.mat--app { aspect-ratio: 3 / 4; }
  .sheet-actions { gap: 18px; }
  .contact-block { grid-column: 1 / -1; }
  .contact-block address, .contact-block ul { font-size: 19px; }
}

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