/* Kyne Robotics site styles.
   Layout language: full-bleed dark hero, glass pill navigation, mono eyebrow labels,
   light display type, rounded media cards, soft periwinkle washes, black footer. */

:root {
  --ink: #0a0b14;
  --ink-2: #2a2c38;
  --muted: #6a6d7c;
  --line: #e3e4eb;
  --surface: #f2f2f5;
  --pill: #e7e7eb;
  --pill-hover: #dcdce2;
  --tile: #e3e3e7;
  --accent: #6c6cf4;
  --accent-hover: #5a5ae6;
  --accent-ink: #ffffff;
  --night: #07080d;

  --wash: linear-gradient(180deg, #ffffff 0%, #e9ecfb 16%, #c4cff3 42%, #c6c4e8 60%, #e9ebfa 84%, #ffffff 100%);
  --wash-soft: linear-gradient(180deg, #ffffff 0%, #eef0fb 40%, #e3e7fa 70%, #ffffff 100%);

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --gutter: clamp(16px, 5vw, 100px);
  --maxw: 1440px;
  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 18px;
  --r-sm: 8px;
  --header-h: 88px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 300; letter-spacing: -0.02em; line-height: 1.08; text-wrap: balance; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; }

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

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm);
  text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 16px; }

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

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 1040px; }

.section { padding: clamp(72px, 10vw, 140px) 0; }
.section--tight { padding: clamp(48px, 7vw, 96px) 0; }
.section--wash { background: var(--wash); }
.section--wash-soft { background: var(--wash-soft); }
.section--surface { background: var(--surface); }
/* Pages end on this wash, so the footer's rounded corners sit on lavender */
.section--wash-end { background: linear-gradient(180deg, #ffffff 0%, #eef0fb 35%, #d6dcf6 70%, #c9d0f2 100%); }

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

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12.5px; font-weight: 400;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2);
  margin: 0 0 28px;
}
.eyebrow::before {
  content: ""; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); flex: none;
}
.eyebrow--plain::before { display: none; }
.eyebrow--light { color: rgba(255, 255, 255, .86); }

.display {
  font-size: clamp(40px, 5.4vw, 78px);
  font-weight: 300; line-height: 1.04; letter-spacing: -0.03em;
}
.h2 { font-size: clamp(32px, 4vw, 58px); line-height: 1.06; letter-spacing: -0.028em; }
.h3 { font-size: clamp(26px, 2.6vw, 38px); line-height: 1.12; }
.h4 { font-size: 22px; line-height: 1.25; font-weight: 400; letter-spacing: -0.01em; }

.lead { font-size: clamp(19px, 1.7vw, 24px); font-weight: 300; line-height: 1.45; color: var(--ink-2); }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); letter-spacing: .04em; }
.center { text-align: center; }

.statement { max-width: 1080px; margin: 0 auto; text-align: center; }
.statement .h2 { margin-bottom: 28px; }
.statement p { text-wrap: pretty; font-size: clamp(17px, 1.4vw, 20px); font-weight: 300; color: var(--muted); max-width: 640px; margin: 0 auto; }

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

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 40px; padding: 0 16px; border-radius: var(--r-sm);
  font-size: 15px; font-weight: 400; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .2s;
  white-space: nowrap;
}
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: var(--accent-hover); }
.btn--outline { border-color: rgba(255, 255, 255, .85); color: #fff; background: transparent; }
.btn--outline:hover { background: rgba(255, 255, 255, .12); }
.btn--outline.btn--round { border-radius: 999px; }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #22242f; }

/* Grey pill link with a separate dotted-arrow tile */
.pill-link {
  display: inline-flex; align-items: stretch; gap: 6px; text-decoration: none; color: var(--ink);
  font-size: 15px;
}
.pill-link__label {
  display: inline-flex; align-items: center; padding: 0 16px; min-height: 34px;
  background: var(--pill); border-radius: 999px; transition: background .2s;
}
.pill-link__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; min-height: 34px; background: var(--pill); border-radius: 8px; transition: background .2s, transform .2s;
}
.pill-link:hover .pill-link__label, .pill-link:hover .pill-link__icon { background: var(--pill-hover); }
.pill-link:hover .pill-link__icon { transform: translateX(2px); }
.pill-link--lg { font-size: 17px; }
.pill-link--lg .pill-link__label { min-height: 42px; padding: 0 20px; }
.pill-link--lg .pill-link__icon { width: 42px; min-height: 42px; }
.pill-link--inline .pill-link__icon { display: none; }

.dots {
  display: inline-block; width: 12px; height: 12px; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Ccircle cx='3' cy='2.4' r='1.2'/%3E%3Ccircle cx='6.2' cy='6' r='1.2'/%3E%3Ccircle cx='3' cy='9.6' r='1.2'/%3E%3Ccircle cx='9.6' cy='6' r='1.2'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Ccircle cx='3' cy='2.4' r='1.2'/%3E%3Ccircle cx='6.2' cy='6' r='1.2'/%3E%3Ccircle cx='3' cy='9.6' r='1.2'/%3E%3Ccircle cx='9.6' cy='6' r='1.2'/%3E%3C/svg%3E") center / contain no-repeat;
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

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

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 clamp(16px, 1.7vw, 24px);
  color: #fff;
  transition: color .3s, background .3s, box-shadow .3s;
}
.site-header.is-solid {
  color: var(--ink);
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
          backdrop-filter: saturate(160%) blur(16px);
  box-shadow: 0 1px 0 rgba(10, 11, 20, .06);
  height: 72px;
}

.nav { display: flex; gap: 4px; align-items: center; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 32px; padding: 0 13px; border-radius: 999px;
  font-size: 14px; text-decoration: none; color: inherit;
  background: rgba(255, 255, 255, .2);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 0; cursor: pointer; transition: background .2s;
}
.nav__link:hover { background: rgba(255, 255, 255, .32); }
.site-header.is-solid .nav__link { background: var(--pill); }
.site-header.is-solid .nav__link:hover { background: var(--pill-hover); }
.nav__link[aria-current="page"] { box-shadow: inset 0 0 0 1px currentColor; }
.nav__link .dots { width: 9px; height: 9px; opacity: .8; }

.nav__menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 260px;
  padding: 8px; border-radius: 16px; background: rgba(255, 255, 255, .96); color: var(--ink);
  box-shadow: 0 18px 50px rgba(10, 11, 20, .16);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.nav__item:hover .nav__menu, .nav__item:focus-within .nav__menu { opacity: 1; visibility: visible; transform: none; }
.nav__menu a {
  display: block; padding: 10px 12px; border-radius: 10px; text-decoration: none; font-size: 14px;
}
.nav__menu a:hover { background: var(--surface); }
.nav__menu small { display: block; color: var(--muted); font-size: 12.5px; }

.brand {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit;
  justify-self: center;
}
.brand__mark { width: 34px; height: 34px; }
.brand__word { font-size: 12px; font-weight: 500; letter-spacing: .34em; text-transform: uppercase; }

.header-cta { justify-self: end; display: flex; gap: 8px; align-items: center; }

.menu-toggle {
  display: none; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px;
  border-radius: 999px; border: 0; color: inherit; cursor: pointer;
  background: rgba(255, 255, 255, .2); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: 14px;
}
.site-header.is-solid .menu-toggle { background: var(--pill); }
.menu-toggle__bars { width: 14px; height: 10px; position: relative; }
.menu-toggle__bars::before, .menu-toggle__bars::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; border-radius: 2px;
}
.menu-toggle__bars::before { top: 1px; }
.menu-toggle__bars::after { bottom: 1px; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 60; background: var(--night); color: #fff;
  padding: 24px 16px 32px; display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
  overflow-y: auto;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.mobile-menu__close {
  min-height: 36px; padding: 0 14px; border-radius: 999px; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .14); color: #fff; font-size: 14px;
}
.mobile-menu nav a {
  display: block; padding: 12px 0; font-size: 34px; font-weight: 300; letter-spacing: -0.02em;
  text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.mobile-menu nav a.sub { font-size: 20px; padding-left: 20px; color: rgba(255, 255, 255, .72); }
.mobile-menu .btn { margin-top: 32px; align-self: flex-start; }

@media (max-width: 1020px) {
  .nav, .header-cta .btn { display: none; }
  .menu-toggle { display: inline-flex; }
  .site-header { grid-template-columns: auto 1fr auto; }
  .brand { justify-self: start; grid-column: 1; }
  .header-cta { grid-column: 3; }
  .nav-slot { display: none; }
}
@media (max-width: 420px) { .brand__word { display: none; } }

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

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: max(640px, 100svh);
  display: flex; align-items: flex-end;
  background: var(--night); color: #fff;
}
.hero--sub { min-height: max(560px, 78svh); }
.hero--short { min-height: max(460px, 60svh); }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img, .hero__media video { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 8, 13, .9) 0%, rgba(7, 8, 13, .66) 38%, rgba(7, 8, 13, .22) 72%, rgba(7, 8, 13, .12) 100%),
    linear-gradient(0deg, rgba(7, 8, 13, .7) 0%, rgba(7, 8, 13, 0) 45%),
    linear-gradient(180deg, rgba(7, 8, 13, .55) 0%, rgba(7, 8, 13, 0) 22%);
}
.hero__inner { width: 100%; padding-bottom: clamp(56px, 11vh, 120px); padding-top: calc(var(--header-h) + 48px); }
.hero__content { max-width: 760px; }
.hero .display { margin-bottom: 24px; }
.hero__lead { font-size: clamp(17px, 1.5vw, 21px); font-weight: 300; line-height: 1.5; color: rgba(255, 255, 255, .84); max-width: 600px; margin-bottom: 32px; }
.hero .eyebrow { margin-bottom: 22px; letter-spacing: .2em; font-size: 13px; }

.hero__toggle {
  position: absolute; right: clamp(16px, 2vw, 28px); bottom: clamp(16px, 3vh, 28px); z-index: 2;
  display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 12px;
  border: 0; border-radius: 999px; cursor: pointer; color: #fff; font-size: 13px;
  background: rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.hero__toggle:hover { background: rgba(255, 255, 255, .26); }
.hero__caption {
  position: absolute; left: var(--gutter); bottom: 18px; z-index: 2;
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255, 255, 255, .58); margin: 0;
}

/* ---------- Marquee ---------- */

.marquee { overflow: hidden; position: relative; padding: 8px 0;
  -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: clamp(48px, 6vw, 96px); width: max-content; animation: marquee 48s linear infinite; }
.marquee__item { font-size: clamp(20px, 2vw, 27px); font-weight: 500; letter-spacing: -0.02em; white-space: nowrap; color: var(--ink); opacity: .86; }
.marquee__item span { font-weight: 300; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; row-gap: 20px; }
  .marquee__track [aria-hidden="true"] { display: none; }
}

/* ---------- Cards ---------- */

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 1020px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }

.case-card { display: flex; flex-direction: column; gap: 28px; text-decoration: none; color: inherit; }
.case-card__media { border-radius: var(--r-md); overflow: hidden; aspect-ratio: 16 / 14.2; background: var(--surface); }
.case-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.case-card:hover .case-card__media img { transform: scale(1.035); }
.case-card__title { font-size: clamp(18px, 1.5vw, 21px); font-weight: 400; line-height: 1.3; letter-spacing: -0.01em; margin-bottom: 20px; }
.case-card__tag { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }

/* Tiles: grey cards with a dotted rule under the header row */
.tile {
  display: flex; flex-direction: column; background: var(--tile); border-radius: var(--r-lg);
  padding: 18px; text-decoration: none; color: inherit; min-height: 100%;
  transition: background .25s, transform .25s;
}
.tile:hover { background: #d9d9de; }
.tile__top {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding-bottom: 8px; margin-bottom: 12px;
  background-image: radial-gradient(circle, rgba(10, 11, 20, .55) 1px, transparent 1.3px);
  background-size: 6px 3px; background-repeat: repeat-x; background-position: bottom left;
}
.tile__name { font-size: 16px; }
.tile__num { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; }
.tile__title { font-size: 16.5px; line-height: 1.3; margin-bottom: 16px; min-height: 2.6em; }
.tile__media { margin-top: auto; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 4.6; background: #efeff2; }
.tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.tile:hover .tile__media img { transform: scale(1.04); }
@media (max-width: 680px) { .tile__media { aspect-ratio: 16 / 10; } .tile__title { min-height: 0; } }

/* ---------- Feature split (dark media cards on a wash) ---------- */

.feature-head { text-align: center; max-width: 980px; margin: 0 auto clamp(56px, 7vw, 96px); }
.feature {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 12px; align-items: stretch;
}
.feature__side { display: grid; grid-template-rows: auto 1fr; gap: 40px; }
.feature__top { display: grid; grid-template-columns: 1fr minmax(0, 200px); gap: 12px; align-items: start; }
.feature__text { align-self: end; }
.feature__text p.lead { color: var(--ink); font-size: clamp(20px, 1.9vw, 26px); line-height: 1.3; margin-bottom: 28px; }
.dark-card { background: var(--night); color: #fff; border-radius: var(--r-lg); overflow: hidden; position: relative; }
.dark-card--media { aspect-ratio: 4 / 4.1; min-height: 100%; }
.dark-card--media video, .dark-card--media img { width: 100%; height: 100%; object-fit: cover; }
.dark-card--mini { aspect-ratio: 1; padding: 16px; display: flex; flex-direction: column; justify-content: space-between; }
.dark-card__label { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.pipeline-mini { list-style: none; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; display: grid; gap: 6px; }
.pipeline-mini li { display: flex; gap: 10px; color: rgba(255, 255, 255, .55); }
.pipeline-mini li span { color: var(--accent); }
.pipeline-mini li.is-on { color: #fff; }
@media (max-width: 1020px) {
  .feature { grid-template-columns: 1fr; }
  .feature__top { grid-template-columns: 1fr; }
  .dark-card--mini { aspect-ratio: auto; min-height: 200px; }
  .dark-card--media { aspect-ratio: 16 / 10; }
}

/* ---------- Stat stage (floating glass cards around an image) ---------- */

.stat-stage { position: relative; display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 24px; align-items: center; }
.stat-stage__media { border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: 0 40px 80px rgba(10, 11, 20, .12); }
.stat-stage__media img, .stat-stage__media video { width: 100%; height: 100%; object-fit: cover; }
.stat-stage__col { display: grid; gap: 24px; }
.stat-stage__col--left .stat-card:nth-child(2) { margin-left: 12%; margin-right: -14%; }
.stat-stage__col--right .stat-card:nth-child(1) { margin-left: -14%; margin-right: 6%; }
.stat-card {
  position: relative; z-index: 1;
  background: rgba(236, 236, 240, .86); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-radius: var(--r-lg); padding: 22px 22px 20px; box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset;
}
.stat-card__label { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 14px; display: flex; justify-content: space-between; gap: 10px; }
.stat-card__value { font-size: clamp(38px, 3.6vw, 52px); font-weight: 300; letter-spacing: -0.04em; line-height: 1; margin-bottom: 18px; }
.stat-card__value small { font-size: .4em; letter-spacing: 0; margin-left: 4px; }
.stat-card__desc { font-size: 13.5px; line-height: 1.4; color: var(--ink-2); margin: 0; }
.stat-card__src { display: block; margin-top: 10px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 1020px) {
  .stat-stage { grid-template-columns: 1fr 1fr; }
  .stat-stage__media { grid-column: 1 / -1; grid-row: 1; aspect-ratio: 16 / 10; }
  .stat-stage__col--left .stat-card:nth-child(2), .stat-stage__col--right .stat-card:nth-child(1) { margin: 0; }
}
@media (max-width: 560px) { .stat-stage { grid-template-columns: 1fr; } }

/* ---------- Collage statement ---------- */

.collage { display: grid; grid-template-columns: 1.15fr .6fr 1.1fr; grid-template-rows: auto auto; gap: 14px; align-items: end; }
.collage__big { grid-row: 1 / span 2; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 1 / 1.02; }
.collage__small { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 1 / 1.02; align-self: start; }
.collage img, .collage video { width: 100%; height: 100%; object-fit: cover; }
.collage__text { grid-column: 2 / span 2; grid-row: 2; }
.collage__text .h2 { font-size: clamp(30px, 3.3vw, 50px); line-height: 1.1; }
@media (max-width: 880px) {
  .collage { grid-template-columns: 1.4fr 1fr; align-items: stretch; }
  .collage__big { grid-row: auto; grid-column: auto; aspect-ratio: auto; min-height: 220px; }
  .collage__small { aspect-ratio: 4 / 5; }
  .collage__text { grid-column: 1 / -1; grid-row: auto; margin-top: 12px; }
}

/* ---------- Split rows (services, case studies) ---------- */

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.split--top { align-items: start; }
.split + .split { margin-top: clamp(80px, 10vw, 140px); }
.split--flip .split__media { order: 2; }
.split__body .h3 { margin-bottom: 22px; }
.split__body p { color: var(--ink-2); }
@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; }
  .split--flip .split__media { order: 0; }
}

.media { border-radius: var(--r-lg); overflow: hidden; background: var(--surface); position: relative; }
.media img, .media video { width: 100%; height: auto; }
.media--cover { aspect-ratio: 16 / 10; }
.media--cover img, .media--cover video { height: 100%; object-fit: cover; }
.media--contain { background: #fff; border: 1px solid var(--line); }
figure { margin: 0; }
figcaption { font-size: 13.5px; line-height: 1.5; color: var(--muted); margin-top: 12px; max-width: 760px; }
figcaption strong { color: var(--ink-2); font-weight: 500; }

.checklist { list-style: none; display: grid; gap: 0; margin-top: 28px; border-top: 1px solid var(--line); }
.checklist li { padding: 13px 0 13px 30px; border-bottom: 1px solid var(--line); position: relative; font-size: 16px; color: var(--ink-2); }
.checklist li::before {
  content: ""; position: absolute; left: 4px; top: 21px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
}
.checklist--two { grid-template-columns: 1fr 1fr; column-gap: 32px; }
@media (max-width: 680px) { .checklist--two { grid-template-columns: 1fr; } }

/* ---------- Steps ---------- */

.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.steps--6 { grid-template-columns: repeat(3, 1fr); }
.step { background: #fff; border-radius: var(--r-lg); padding: 22px 22px 26px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.section--wash .step, .section--wash-soft .step { border-color: rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.step__num { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; color: var(--accent); }
.step__title { font-size: 22px; font-weight: 400; letter-spacing: -0.015em; line-height: 1.2; }
.step p { font-size: 15px; color: var(--ink-2); margin: 0; }
@media (max-width: 1100px) { .steps { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .steps, .steps--6 { grid-template-columns: 1fr; } }

/* ---------- Principles / info cards ---------- */

.info-card { background: var(--surface); border-radius: var(--r-lg); padding: clamp(22px, 2.4vw, 32px); display: flex; flex-direction: column; gap: 14px; }
.info-card--white { background: #fff; border: 1px solid var(--line); }
.info-card--dark { background: var(--night); color: #fff; }
.info-card__num { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; color: var(--muted); }
.info-card--dark .info-card__num { color: rgba(255, 255, 255, .55); }
.info-card h3 { font-size: clamp(22px, 2vw, 28px); font-weight: 400; letter-spacing: -0.02em; line-height: 1.15; }
.info-card p { margin: 0; color: var(--ink-2); font-size: 16px; }
.info-card.info-card--dark p { color: rgba(255, 255, 255, .74); }
.info-card__media { border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 10; margin-bottom: 6px; background: #e8e8ec; }
.info-card__media img { width: 100%; height: 100%; object-fit: cover; }

.dotfield { width: 100%; height: 100%; color: #fff; }

/* ---------- Facts row (case studies) ---------- */

.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.facts div { padding: 22px 24px 4px 0; }
.facts dt { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.facts dd { margin: 0; font-size: 16.5px; line-height: 1.4; }
@media (max-width: 880px) { .facts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; } }

.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat-grid .stat-card { background: #fff; border: 1px solid var(--line); -webkit-backdrop-filter: none; backdrop-filter: none; }
.section--wash .stat-grid .stat-card, .section--wash-soft .stat-grid .stat-card { border-color: rgba(255, 255, 255, .8); background: rgba(255, 255, 255, .7); }
@media (max-width: 1020px) { .stat-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .stat-grid { grid-template-columns: 1fr; } }

.status-box {
  border-radius: var(--r-lg); padding: clamp(22px, 2.6vw, 34px); background: #fff; border: 1px solid var(--line);
  display: grid; grid-template-columns: 180px 1fr; gap: 24px;
}
.status-box__label { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.status-box p { margin: 0 0 .6em; color: var(--ink-2); }
.status-box p:last-child { margin: 0; }
@media (max-width: 680px) { .status-box { grid-template-columns: 1fr; gap: 10px; } }

.credits { font-size: 13px; color: var(--muted); line-height: 1.6; border-top: 1px solid var(--line); padding-top: 22px; }
.credits a { color: var(--ink-2); }

.guide-table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.guide-table th, .guide-table td { text-align: left; vertical-align: top; padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); }
.guide-table th { font-family: var(--mono); font-weight: 400; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.guide-table td:first-child { font-weight: 500; white-space: nowrap; }
.guide-table td:nth-child(2) { font-family: var(--mono); font-size: 13px; color: var(--muted); white-space: nowrap; }
@media (max-width: 680px) {
  .guide-table thead { display: none; }
  .guide-table tr { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .guide-table td { border: 0; padding: 2px 0; }
  .guide-table td:nth-child(3) { grid-column: 1 / -1; }
}

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gallery figure { border-radius: 14px; overflow: hidden; position: relative; aspect-ratio: 16 / 10; background: var(--surface); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption {
  position: absolute; inset: auto 0 0 0; margin: 0; padding: 26px 12px 10px; font-size: 12.5px; color: #fff;
  background: linear-gradient(0deg, rgba(7, 8, 13, .75), rgba(7, 8, 13, 0));
}
@media (max-width: 880px) { .gallery { grid-template-columns: 1fr 1fr; } }

.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); margin-bottom: clamp(40px, 5vw, 72px); align-items: end; }
.section-head p { color: var(--ink-2); margin: 0; }
@media (max-width: 880px) { .section-head { grid-template-columns: 1fr; } }

.prose { max-width: 760px; }
.prose p { color: var(--ink-2); font-size: 18px; }

.next-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--r-xl); overflow: hidden;
  text-decoration: none; color: #fff; background: var(--night); min-height: 340px;
}
.next-card__text { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.next-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.next-card__media { overflow: hidden; }
.next-card:hover .next-card__media img { transform: scale(1.04); }
@media (max-width: 760px) { .next-card { grid-template-columns: 1fr; } .next-card__media { aspect-ratio: 16 / 10; } }

/* ---------- Work index rows ---------- */

.work-row { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(28px, 4vw, 64px); align-items: center; text-decoration: none; color: inherit; }
.work-row + .work-row { margin-top: clamp(72px, 9vw, 128px); }
.work-row__media { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 10; background: var(--surface); }
.work-row__media video, .work-row__media img { width: 100%; height: 100%; object-fit: cover; }
.work-row__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }
.tag { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--surface); color: var(--ink-2); }
.work-row .h3 { margin-bottom: 18px; }
.work-row p { color: var(--ink-2); }
.mini-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 26px 0 30px; border-top: 1px solid var(--line); }
.mini-stats div { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); }
.mini-stats strong { display: block; font-size: 28px; font-weight: 300; letter-spacing: -0.03em; }
.mini-stats span { font-size: 13px; color: var(--muted); }
@media (max-width: 880px) { .work-row { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 48px 22px 0; position: relative;
  font-size: clamp(18px, 1.6vw, 22px); font-weight: 400; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background:
    linear-gradient(currentColor, currentColor) center / 14px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 14px no-repeat;
  transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); max-width: 760px; padding-bottom: 8px; }

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

.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--surface); border: 1px solid transparent; border-radius: 12px; padding: 13px 14px;
  transition: border-color .2s, background .2s;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: #fff; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: inline-flex; align-items: center; min-height: 38px; padding: 0 16px; border-radius: 999px;
  background: var(--surface); font-size: 14.5px; cursor: pointer; border: 1px solid transparent; transition: background .2s, border-color .2s;
}
.choice input:checked + span { background: #fff; border-color: var(--accent); color: var(--ink); box-shadow: inset 0 0 0 1px var(--accent); }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form__note { grid-column: 1 / -1; font-size: 13px; color: var(--muted); margin: 0; }
.form__status { grid-column: 1 / -1; font-size: 15px; margin: 0; padding: 14px 16px; border-radius: 12px; background: #eef0fd; display: none; }
.form__status.is-visible { display: block; }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }

.aside-card { background: var(--surface); border-radius: var(--r-lg); padding: 28px; }
.aside-card + .aside-card { margin-top: 12px; }
.aside-card ol { list-style: none; counter-reset: n; display: grid; gap: 18px; margin-top: 8px; }
.aside-card ol li { counter-increment: n; display: grid; grid-template-columns: 34px 1fr; gap: 8px; color: var(--ink-2); font-size: 15.5px; }
.aside-card ol li::before { content: "0" counter(n); font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: var(--accent); padding-top: 3px; }
.aside-card a { color: var(--ink); }

/* ---------- CTA band ---------- */

.cta-band { text-align: center; }
.cta-band .h2 { max-width: 980px; margin: 0 auto 28px; }
.cta-band p { max-width: 620px; margin: 0 auto 28px; color: var(--ink-2); font-weight: 300; font-size: 19px; }
.cta-band .actions { justify-content: center; }

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

.site-footer { padding: 0 10px; background: #c9d0f2; }
.site-footer__inner {
  background: #000; color: #fff; border-radius: 44px 44px 0 0;
  padding: clamp(40px, 5vw, 56px) clamp(24px, 4vw, 52px) 40px;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; min-height: 440px;
}
.site-footer__word { font-size: clamp(22px, 2.4vw, 32px); font-weight: 300; letter-spacing: .5em; text-transform: uppercase; text-decoration: none; display: inline-block; }
.site-footer__line { font-size: clamp(30px, 3.6vw, 52px); font-weight: 300; line-height: 1.1; letter-spacing: -0.02em; max-width: 620px; margin: auto 0 0; text-wrap: balance; }
.site-footer__left { display: flex; flex-direction: column; justify-content: space-between; gap: 64px; }
.site-footer__right { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
.footer-cols h2 { font-size: 13px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 8px; }
.footer-cols h2 a { text-decoration: none; }
.footer-cols ul { list-style: none; }
.footer-cols li a { font-size: 13.5px; letter-spacing: .1em; color: rgba(255, 255, 255, .78); text-decoration: none; line-height: 1.7; }
.footer-cols a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.site-footer__legal { font-size: 15px; color: rgba(255, 255, 255, .86); margin: 0; }
.site-footer__legal span { display: block; font-size: 12.5px; color: rgba(255, 255, 255, .5); margin-top: 6px; }
@media (max-width: 880px) {
  .site-footer__inner { grid-template-columns: 1fr; border-radius: 28px 28px 0 0; }
}

/* ---------- Reveal on scroll ---------- */

.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- Utilities ---------- */

.mt-0 { margin-top: 0; }
.mt-s { margin-top: 16px; }
.mt-m { margin-top: 32px; }
.mt-l { margin-top: clamp(48px, 6vw, 88px); }
.mb-0 { margin-bottom: 0; }
.mb-m { margin-bottom: 32px; }
.mb-l { margin-bottom: clamp(40px, 5vw, 72px); }
.nowrap { white-space: nowrap; }
@media (max-width: 680px) { .hero__caption { display: none; } }
.field label.choice { font-family: var(--font); font-size: 14.5px; letter-spacing: 0; text-transform: none; color: var(--ink); }
@media (max-width: 680px) {
  .hero::after { background: linear-gradient(0deg, rgba(7, 8, 13, .9) 0%, rgba(7, 8, 13, .66) 55%, rgba(7, 8, 13, .4) 100%); }
}
