/* Luthen v3: Apple-plain. White and soft-grey bands, one ink button, glossy app-style icons.
   Cards size themselves from the section that owns the width (container queries). */
:root {
  --color-bg: #ffffff;
  --color-grey: #f5f5f7;
  --color-card: #ffffff;
  --color-ink: #1d1d1f;
  --color-soft: #6e6e73;
  --color-faint: #86868b;
  --color-line: rgba(0, 0, 0, 0.08);
  --color-link: #1d47e6;
  --color-ok: #1a9e4b;
  --color-ok-bg: #e5f6eb;
  --color-flag: #c4541f;
  --color-flag-bg: #fdeee5;
  --color-you: #1d47e6;
  --color-you-bg: #e8edff;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --radius-card: 1.75rem;
  --radius-ui: 1rem;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.04), 0 0.75rem 2.5rem -1rem rgba(0, 0, 0, 0.12);
  --shadow-float: 0 1px 2px rgba(0, 0, 0, 0.06), 0 1.25rem 3rem -1rem rgba(16, 24, 64, 0.25);
  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
  --nav: 3.25rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--nav); }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font: 400 1.0625rem/1.5 var(--font-sans);
  font-optical-sizing: auto;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--color-link); outline-offset: 3px; border-radius: 0.375rem; }

.skip {
  position: fixed; z-index: 60; top: 0.5rem; left: 0.5rem;
  padding: 0.625rem 0.875rem; border-radius: 100px;
  background: var(--color-ink); color: #fff; text-decoration: none; font-size: 0.875rem;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.wrap { width: min(100%, 72rem); margin-inline: auto; padding-inline: var(--gutter); }

/* ── nav: Apple's thin frosted bar */
.nav {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.nav.is-scrolled { border-bottom-color: var(--color-line); }
.nav__inner {
  display: flex; align-items: center; gap: 2rem;
  width: min(100%, 72rem); height: var(--nav);
  margin-inline: auto; padding-inline: var(--gutter);
}
.nav__brand { font-weight: 650; font-size: 1.1875rem; letter-spacing: -0.03em; text-decoration: none; }
.nav__links { display: none; gap: 1.75rem; margin-inline: auto; }
.nav__links a, .nav__cta { font-size: 0.8125rem; text-decoration: none; color: rgba(29, 29, 31, 0.8); transition: color 0.2s; }
.nav__links a:hover { color: var(--color-ink); }
.nav__cta {
  display: none; padding: 0.375rem 0.875rem; border-radius: 100px;
  background: var(--color-ink); color: #fff; font-weight: 500;
}
.nav__cta:hover { background: #000; }
.nav__menu {
  display: grid; place-content: center; gap: 0.3125rem;
  width: 2.5rem; height: 2.5rem; margin-inline-start: auto; margin-inline-end: -0.5rem;
  border: 0; background: none; cursor: pointer; color: var(--color-ink);
}
.nav__menu i { display: block; width: 1.0625rem; height: 1.5px; border-radius: 1px; background: currentColor; transition: transform 0.3s var(--ease); }
.nav__menu[aria-expanded='true'] i:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav__menu[aria-expanded='true'] i:last-child { transform: translateY(-3.25px) rotate(-45deg); }
.sheet {
  padding: 0.5rem var(--gutter) 1.5rem;
  border-bottom: 1px solid var(--color-line);
}
.sheet nav { display: grid; margin-bottom: 1.25rem; }
.sheet nav a { padding: 0.75rem 0; font-size: 1.75rem; font-weight: 600; letter-spacing: -0.03em; text-decoration: none; }
@media (min-width: 48rem) {
  .nav__links, .nav__cta { display: flex; }
  .nav__menu, .sheet { display: none !important; }
}

/* ── buttons and links */
.actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 1.75rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.875rem; padding: 0 1.375rem; border-radius: 100px;
  font-size: 1.0625rem; font-weight: 500; text-decoration: none;
  transition: background 0.2s, transform 0.2s var(--ease);
}
.btn--dark { background: var(--color-ink); color: #fff; }
.btn--dark:hover { background: #000; }
.btn:active { transform: scale(0.98); }
.more {
  display: inline-flex; align-items: center; gap: 0.125rem;
  color: var(--color-link); font-size: 1.0625rem; text-decoration: none;
}
.more svg { width: 1rem; height: 1rem; transition: transform 0.2s var(--ease); }
.more:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.more:hover svg { transform: translateX(2px); }

/* ── icons: rounded app tiles with a top gloss; the glyph inherits --g and --d */
.ico {
  --a: #5b86ff; --b: #1d47e6; --d: #1d47e6; --g: #fff; --glow: rgba(29, 71, 230, 0.38); --angle: 180deg;
  position: relative; flex: none;
  display: grid; place-items: center;
  width: var(--size, 4rem); height: var(--size, 4rem); min-height: 0;
  border-radius: 23%;
  background: linear-gradient(var(--angle), var(--a), var(--b));
  box-shadow:
    inset 0 1px 0.5px rgba(255, 255, 255, 0.55),
    inset 0 -1px 2px rgba(0, 0, 0, 0.1),
    0 1px 2px rgba(0, 0, 0, 0.08),
    0 calc(var(--size, 4rem) * 0.14) calc(var(--size, 4rem) * 0.36) calc(var(--size, 4rem) * -0.12) var(--glow);
}
.ico::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(130% 75% at 50% -12%, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 58%);
}
.ico svg { position: relative; width: 58%; height: 58%; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.16)); }
.ico--shield { --a: #6a92ff; --b: #1d47e6; --d: #1a3fd0; }
.ico--people { --a: #ffc35c; --b: #ff7a1a; --d: #ee7212; --glow: rgba(255, 122, 26, 0.38); }
.ico--customers { --a: #5fe08c; --b: #17a34a; --d: #159a46; --glow: rgba(23, 163, 74, 0.34); }
.ico--bill { --a: #ffffff; --b: #eceff5; --g: #1d47e6; --d: #ffffff; --glow: rgba(20, 24, 40, 0.18); }
.ico--bill svg { filter: none; }
.ico--bank { --a: #62d7ec; --b: #0a8fb6; --d: #0a8fb6; --glow: rgba(10, 143, 182, 0.34); }
.ico--approve { --a: #4b4b51; --b: #1d1d1f; --d: #1d1d1f; --glow: rgba(0, 0, 0, 0.3); }
.ico--audit { --a: #bcbcc3; --b: #7a7a83; --d: #7a7a83; --glow: rgba(0, 0, 0, 0.18); }
.ico--match { --a: #c985ff; --b: #8a3fe0; --d: #8a3fe0; --glow: rgba(138, 63, 224, 0.34); }
.ico--inbox { --a: #6dcbff; --b: #0a7bff; --d: #0a7bff; --glow: rgba(10, 123, 255, 0.34); }
.ico--agents { --a: #ff7fb2; --b: #8f5bff; --d: #8f5bff; --glow: rgba(143, 91, 255, 0.36); --angle: 145deg; }
.ico--sync { --a: #ffd84f; --b: #ffa600; --d: #e69500; --glow: rgba(255, 166, 0, 0.34); }
.ico--lock { --a: #7c86ff; --b: #3b3fd8; --d: #3b3fd8; --glow: rgba(59, 63, 216, 0.36); }
.ico--xs { --size: 2rem; border-radius: 26%; }
.ico--sm { --size: 3rem; }
.ico--md { --size: 4rem; }
.ico--lg { --size: 5rem; }
.ico--xl { --size: 6.5rem; }

/* ── hero */
.hero {
  display: grid; justify-items: center; text-align: center;
  padding: clamp(2.5rem, 7vw, 5rem) var(--gutter) clamp(4rem, 9vw, 7rem);
}
.orbit {
  container-type: inline-size;
  position: relative;
  width: min(100%, 38rem); aspect-ratio: 2 / 1;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.orbit__i {
  position: absolute; left: var(--x); top: var(--y);
  width: calc(var(--s) * 1cqi);
  translate: -50% -50%;
  animation:
    pop 0.9s var(--ease) calc(var(--n) * 70ms + 100ms) both,
    bob calc(6s + var(--n) * 0.45s) ease-in-out calc(var(--n) * -0.8s) infinite;
}
.orbit__i .ico { --size: calc(var(--s) * 1cqi); }
.orbit__face {
  width: 100%; aspect-ratio: 1; border-radius: 50%; object-fit: cover;
  border: calc(1.1cqi) solid #fff;
  box-shadow: 0 1.25rem 3rem -1rem rgba(16, 24, 64, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.04);
}
.orbit__badge {
  position: absolute; right: 4%; bottom: 4%;
  display: grid; place-items: center;
  width: 28%; aspect-ratio: 1; border-radius: 50%;
  background: linear-gradient(#3fd27a, #17a34a); color: #fff;
  border: calc(0.8cqi) solid #fff;
  box-shadow: 0 0.5rem 1rem -0.25rem rgba(23, 163, 74, 0.5);
}
.orbit__badge svg { width: 62%; height: 62%; }
@keyframes pop { from { opacity: 0; scale: 0.6; } to { opacity: 1; scale: 1; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-0.6cqi); } }

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5.25rem);
  font-weight: 650; line-height: 1.03; letter-spacing: -0.045em;
}
.hero__sub {
  max-width: 40rem; margin: 1.125rem 0 2rem; text-wrap: balance;
  font-size: clamp(1.25rem, 2.4vw, 1.75rem); font-weight: 550; line-height: 1.2; letter-spacing: -0.025em;
  color: var(--color-soft);
}

/* ── sections */
.sec { padding-block: clamp(4.5rem, 10vw, 8rem); }
.sec--grey { background: var(--color-grey); }
.head { max-width: 46rem; margin: 0 auto clamp(2.5rem, 5vw, 4rem); text-align: center; }
.head h2, .spot h2, .close h2 {
  font-size: clamp(2.125rem, 5vw, 3.75rem);
  font-weight: 650; line-height: 1.06; letter-spacing: -0.04em;
}
.head p { margin-top: 1.125rem; font-size: clamp(1.125rem, 1.8vw, 1.3125rem); line-height: 1.4; color: var(--color-soft); }
.card { position: relative; background: var(--color-card); border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
.card h3 { font-size: 1.5rem; font-weight: 650; line-height: 1.15; letter-spacing: -0.03em; }
.card p { color: var(--color-soft); }

/* ── products */
#products .wrap { container: products / inline-size; }
.products { display: grid; gap: 1.25rem; }
@container products (min-width: 50rem) {
  .products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.product { display: flex; flex-direction: column; align-items: flex-start; padding: 2.25rem 2rem 2rem; }
.product .ico { margin-bottom: 2rem; }
.product h3 { font-size: 2rem; margin: 0.375rem 0 0.75rem; }
.product__links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: auto; padding-top: 1.5rem; }
.status { display: inline-flex; align-items: center; gap: 0.4375rem; font-size: 0.875rem; font-weight: 500; }
.card .status { color: var(--color-faint); }
.card .status--live { color: var(--color-ok); }
.status i { width: 0.4375rem; height: 0.4375rem; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(26, 158, 75, 0.18); }

/* ── chips (states inside the illustrative UI) */
.chip {
  display: inline-flex; align-items: center; justify-self: end;
  padding: 0.1875rem 0.5625rem; border-radius: 100px;
  font-size: 0.75rem; font-weight: 550; font-style: normal; white-space: nowrap;
  background: var(--color-grey); color: var(--color-soft);
}
.chip--ok { background: var(--color-ok-bg); color: var(--color-ok); }
.chip--flag { background: var(--color-flag-bg); color: var(--color-flag); }
.chip--you { background: var(--color-you-bg); color: var(--color-you); }

/* ── Shield spotlight */
.spot { container: spot / inline-size; }
.spot__grid { display: grid; gap: 3.5rem; align-items: center; }
@container spot (min-width: 60rem) {
  .spot__grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 4rem; }
}
.kicker { display: flex; align-items: center; gap: 0.625rem; margin-bottom: 1.25rem; font-size: 1.0625rem; font-weight: 600; }
.spot__lede { margin: 1.25rem 0 1.75rem; font-size: 1.1875rem; line-height: 1.45; color: var(--color-soft); }
.spot__list { display: grid; gap: 0.875rem; margin-bottom: 1.75rem; }
.spot__list li { display: flex; align-items: center; gap: 0.875rem; font-weight: 500; }
.spot__works { margin-bottom: 1.25rem; font-size: 0.9375rem; color: var(--color-soft); }

.spot__shot { position: relative; margin: 0; padding: 2.5rem 0 3.5rem; }
.spot__shot figcaption { position: absolute; left: 0; bottom: 0; font-size: 0.75rem; color: var(--color-faint); }
.win {
  overflow: hidden; border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 0 0 1px var(--color-line), 0 2rem 4rem -1.5rem rgba(16, 24, 64, 0.25);
}
.win__bar {
  display: flex; align-items: center; gap: 0.4375rem;
  padding: 0.8125rem 1rem; background: #fbfbfd; border-bottom: 1px solid var(--color-line);
  font-size: 0.75rem; font-weight: 550; color: var(--color-soft);
}
.win__bar i { width: 0.6875rem; height: 0.6875rem; border-radius: 50%; background: #ff5f57; }
.win__bar i:nth-child(2) { background: #febc2e; }
.win__bar i:nth-child(3) { background: #28c840; }
.win__bar span { margin-inline: auto; padding-inline-end: 3rem; }
.win__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--color-line); }
.win__stats div { padding: 1rem 1.125rem; }
.win__stats div + div { border-inline-start: 1px solid var(--color-line); }
.win__stats span { display: block; font-size: 0.6875rem; color: var(--color-faint); }
.win__stats b { font-size: 1.375rem; font-weight: 650; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.win__rows li {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.25rem 0.875rem;
  padding: 0.75rem 1.125rem; border-bottom: 1px solid var(--color-line);
  font-size: 0.8125rem;
}
.win__rows li:last-child { border-bottom: 0; }
.win__rows li.is-on { background: #f6f8ff; }
.win__rows i {
  display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 0.5rem;
  background: var(--color-grey); font-style: normal; font-weight: 600; font-size: 0.75rem; color: var(--color-soft);
}
.win__rows b { font-weight: 550; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win__rows small { display: block; font-weight: 400; color: var(--color-faint); font-size: 0.75rem; }
.win__rows .amt { display: none; font-variant-numeric: tabular-nums; text-align: right; }
.win__rows .chip { grid-column: 3; }
@container spot (min-width: 30rem) {
  .win__rows li { grid-template-columns: auto minmax(0, 1fr) auto 7.5rem; }
  .win__rows .amt { display: block; }
  .win__rows .chip { grid-column: auto; }
}

.float {
  position: absolute; display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 1rem 0.75rem 0.75rem; border-radius: 1rem;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 0 0 1px var(--color-line), var(--shadow-float);
  font-size: 0.8125rem; line-height: 1.3; color: var(--color-soft);
  animation: bob2 7s ease-in-out infinite;
}
.float b { display: block; color: var(--color-ink); font-weight: 600; }
.float--a { top: 0; left: -0.75rem; }
.float--b { top: 47%; right: -1.25rem; animation-delay: -2.5s; }
.float--c {
  right: 2rem; bottom: -0.5rem; flex-direction: column; align-items: stretch; gap: 0.75rem;
  padding: 1rem; min-width: 13rem; animation-delay: -4.5s;
}
.float--c small { display: block; font-size: 0.75rem; }
.float--c b { font-size: 1.375rem; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.float__btn {
  display: block; padding: 0.5625rem 1rem; border-radius: 100px; text-align: center;
  background: var(--color-ink); color: #fff; font-weight: 550;
}
@keyframes bob2 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
/* phones: the window keeps its rows clear; the approval card tucks under it */
@container spot (max-width: 34rem) {
  .spot__shot { padding-bottom: 2rem; }
  .float--a { left: 0.5rem; }
  .float--b { display: none; }
  .float--c { position: relative; right: auto; bottom: auto; width: min(100% - 2rem, 16rem); margin: 0.75rem 1rem 0 auto; }
  .win__stats div { padding: 0.875rem 0.75rem; }
  .win__stats b { font-size: 1.0625rem; }
}

/* ── steps: each card opens on a small piece of the product */
#how-title { text-wrap: balance; }
.sec--grey:has(.steps) .wrap { container: steps / inline-size; }
.steps { display: grid; gap: 1.25rem; }
@container steps (min-width: 54rem) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.step { display: flex; flex-direction: column; padding: 1.25rem 1.25rem 2rem; }
.step > .ico { margin: 1.75rem 0.75rem 1.25rem; }
.step h3, .step > p { margin-inline: 0.75rem; }
.step > p { margin-top: 0.625rem; }
.ui {
  display: grid; align-content: start; gap: 0.5rem;
  min-height: 15.5rem; padding: 1.125rem; border-radius: var(--radius-ui);
  background: var(--color-grey); font-size: 0.8125rem;
}
.ui__label { font-size: 0.75rem; font-weight: 600; color: var(--color-faint); margin-bottom: 0.25rem; }
.ui__row {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.75rem;
  padding: 0.625rem; border-radius: 0.75rem; background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.ui__row b { font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ui__row small { display: block; font-weight: 400; color: var(--color-faint); font-size: 0.75rem; }
.ui__row--dim { opacity: 0.6; }
.ui__progress { display: grid; gap: 0.375rem; margin-bottom: 0.25rem; }
.ui__progress span { font-size: 0.75rem; color: var(--color-soft); }
.ui__progress i { position: relative; height: 0.375rem; border-radius: 1rem; background: #e3e3e8; overflow: hidden; }
.ui__progress i::after { content: ''; position: absolute; inset: 0 auto 0 0; width: calc(var(--p) * 100%); border-radius: inherit; background: linear-gradient(90deg, #6a92ff, #1d47e6); }
.ui__check { display: grid; grid-template-columns: 1.25rem minmax(0, 1fr) auto; align-items: center; gap: 0.5rem; font-weight: 500; }
.ui .ui__check { color: var(--color-ink); }
.ui__check svg { width: 1.25rem; height: 1.25rem; padding: 0.1875rem; border-radius: 50%; background: var(--color-ok); color: #fff; }
.ui__check small { color: var(--color-faint); font-weight: 400; font-size: 0.75rem; }
.ui__check--todo i { width: 1.25rem; height: 1.25rem; border-radius: 50%; border: 1.5px dashed #b4b4bb; }
.ui .ui__check--todo { color: var(--color-you); }
.ui--approve { align-content: center; justify-items: stretch; gap: 0.625rem; padding-inline: 1.5rem; }
.ui__amt { margin-bottom: 0.375rem; font-size: 2rem; font-weight: 650; letter-spacing: -0.04em; text-align: center; font-variant-numeric: tabular-nums; }
.ui .ui__amt { color: var(--color-ink); }
.ui__amt small { display: block; font-size: 0.8125rem; font-weight: 500; letter-spacing: 0; color: var(--color-soft); }
.ui--approve .ui__label { text-align: center; }
.ui__btn { padding: 0.6875rem; border-radius: 100px; text-align: center; font-weight: 550; background: var(--color-ink); color: #fff; }
.ui__btn--ghost { background: #fff; color: var(--color-ink); box-shadow: 0 0 0 1px var(--color-line); }
.ui__foot { display: flex; align-items: center; justify-content: center; gap: 0.375rem; margin-top: 0.25rem; font-size: 0.75rem; }
.ui .ui__foot { color: var(--color-ok); }
.ui__foot svg { width: 0.875rem; height: 0.875rem; }

/* ── trust: statement with inline icons, then the bento */
.statement {
  max-width: 58rem; margin: 0 auto clamp(3rem, 6vw, 4.5rem); text-align: center;
  font-size: clamp(2rem, 4.6vw, 3.5rem); font-weight: 650; line-height: 1.14; letter-spacing: -0.04em;
  text-wrap: balance;
}
.statement .soft { color: #a1a1a6; }
.statement .nowrap { white-space: nowrap; }
.ico--inline { --size: 0.95em; display: inline-grid; vertical-align: -0.12em; margin-inline: 0.06em 0.18em; border-radius: 26%; }
.trust .wrap { container: trust / inline-size; }
.bento { display: grid; gap: 1.25rem; }
@container trust (min-width: 36rem) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* wide: a 2 + 3 / 3 + 2 bento, so the cards that hold a piece of UI get the room */
@container trust (min-width: 56rem) {
  .bento { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .tile:nth-child(1), .tile:nth-child(4) { grid-column: span 2; }
  .tile:nth-child(2), .tile:nth-child(3) { grid-column: span 3; }
  .tile__art--list, .tile__art--log { padding-inline: 2rem; }
}
.tile {
  display: flex; flex-direction: column; min-height: 24rem; padding: 1.75rem;
  background: var(--color-grey); box-shadow: none;
}
.tile h3 { font-size: 1.375rem; margin-top: auto; }
.tile p { margin-top: 0.5rem; font-size: 0.9375rem; line-height: 1.45; }
.tile__art { display: grid; place-items: center; align-content: center; gap: 1.25rem; flex: 1; padding-bottom: 1.5rem; }
.tile--dark { background: linear-gradient(180deg, #2a2a2e, #111113); color: #fff; }
.tile--dark p { color: rgba(255, 255, 255, 0.7); }
.tile--dark .ico--approve { --a: #ffffff; --b: #e9e9ee; --g: #1d1d1f; --d: #ffffff; --glow: rgba(0, 0, 0, 0.5); }
.tile--dark .ico--approve svg { filter: none; }
.tile__pill {
  display: inline-flex; align-items: center; gap: 0.4375rem;
  padding: 0.4375rem 0.875rem; border-radius: 100px;
  background: rgba(255, 255, 255, 0.12); font-size: 0.8125rem; font-weight: 500;
}
.tile__pill svg { width: 1rem; height: 1rem; --g: #fff; --d: #2a2a2e; }
.tile__art--list { place-items: stretch; gap: 0.625rem; }
.who {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.75rem;
  padding: 0.75rem; border-radius: 1rem; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  font-size: 0.8125rem;
}
.who img { width: 2rem; height: 2rem; border-radius: 50%; object-fit: cover; }
.who b { font-weight: 550; }
.who small { display: block; font-weight: 400; color: var(--color-faint); font-size: 0.75rem; }
.tile__art--log { place-items: stretch; align-content: center; gap: 0; }
.tile__art--log p {
  display: grid; grid-template-columns: 2.75rem 4.5rem minmax(0, 1fr); gap: 0.5rem;
  margin: 0; padding: 0.625rem 0; border-bottom: 1px solid var(--color-line);
  font-size: 0.8125rem; color: var(--color-soft);
}
.tile__art--log p:last-child { border-bottom: 0; }
.tile__art--log time { font-variant-numeric: tabular-nums; color: var(--color-faint); }
.tile__art--log b { font-weight: 600; color: var(--color-ink); }

/* ── case studies: a wide gallery; the neighbours peek in from both sides */
.head--left { max-width: none; text-align: left; margin-inline: 0; }
#cases-title { text-wrap: balance; }
.gallery { container: gallery / inline-size; --slide-w: min(86cqi, 66rem); --gap: clamp(0.75rem, 1.6cqi, 1.25rem); }
.gallery__track {
  position: relative;
  display: flex; gap: var(--gap);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding-inline: calc((100cqi - var(--slide-w)) / 2);
  scrollbar-width: none;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track:focus { outline: none; }
.slide {
  container: slide / inline-size;
  position: relative; flex: 0 0 var(--slide-w);
  overflow: hidden; isolation: isolate;
  min-height: 36rem;
  border-radius: var(--radius-card);
  background: var(--color-card);
  scroll-snap-align: center; scroll-snap-stop: always;
}
.slide:not(.is-active) { cursor: pointer; }
/* phones: the photo on top fades down into the card, the story underneath */
.slide__media {
  position: absolute; inset: 0 0 auto; z-index: -1; height: 62%;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
}
.slide__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; transition: transform 1.4s var(--ease); }
.slide.is-active .slide__media img { transform: scale(1.02); }
.slide__text {
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 36rem; padding: 1.5rem;
}
.slide__who { margin-bottom: 0.75rem; font-size: 0.875rem; font-weight: 600; color: var(--color-soft); }
.slide__copy { font-size: clamp(1.1875rem, 5.2cqi, 1.75rem); font-weight: 600; line-height: 1.22; letter-spacing: -0.025em; color: var(--color-faint); }
.slide__copy b { font-weight: 600; color: var(--color-ink); }
/* wide: the photo fills the left and fades right into the card; the story sits on the right */
@container slide (min-width: 40rem) {
  .slide__media {
    inset: 0 auto 0 0; width: 64%; height: 100%;
    -webkit-mask-image: linear-gradient(90deg, #000 50%, transparent 100%);
    mask-image: linear-gradient(90deg, #000 50%, transparent 100%);
  }
  .slide__text {
    width: 44%; margin-inline-start: auto; justify-content: center;
    min-height: min(56cqi, 38rem); padding: clamp(2rem, 5cqi, 3.5rem) clamp(2rem, 5cqi, 3.5rem) clamp(2rem, 5cqi, 3.5rem) 0;
  }
  .slide__copy { font-size: clamp(1.375rem, 2.9cqi, 2rem); }
}

.gallery__controls { display: flex; justify-content: center; align-items: center; gap: 0.875rem; margin-top: 1.75rem; }
.dots {
  display: flex; align-items: center; gap: 0.25rem;
  height: 3.5rem; padding-inline: 1.125rem; border-radius: 100px;
  background: rgba(210, 210, 215, 0.62);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
}
.dots__dot {
  display: grid; place-items: center;
  width: 1.5rem; height: 1.5rem; padding: 0; border: 0; background: none; cursor: pointer;
  transition: width 0.5s var(--ease);
}
.dots__dot i {
  position: relative; overflow: hidden; display: block;
  width: 0.5rem; height: 0.5rem; border-radius: 100px;
  background: rgba(0, 0, 0, 0.42);
  transition: width 0.5s var(--ease), background 0.3s;
}
.dots__dot:hover i { background: rgba(0, 0, 0, 0.6); }
.dots__dot.is-active { width: 3.5rem; }
.dots__dot.is-active i { width: 3rem; background: rgba(0, 0, 0, 0.18); }
.dots__dot i::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: var(--color-ink); transform: scaleX(0); transform-origin: left;
}
.dots__dot.is-active i::after { animation: fill var(--slide-time, 6s) linear forwards; }
.dots__dot.is-active.is-restart i::after { animation: none; }
.gallery[data-paused] .dots__dot.is-active i::after { animation-play-state: paused; }
@keyframes fill { to { transform: none; } }
.gallery__play {
  display: grid; place-items: center;
  width: 3.5rem; height: 3.5rem; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(210, 210, 215, 0.62); color: rgba(0, 0, 0, 0.56);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  transition: background 0.2s, color 0.2s;
}
.gallery__play:hover { background: rgba(200, 200, 205, 0.8); color: rgba(0, 0, 0, 0.72); }
.gallery__play svg { width: 1.5rem; height: 1.5rem; fill: currentColor; }
.gallery__play .i-play, .gallery[data-paused] .gallery__play .i-pause { display: none; }
.gallery[data-paused] .gallery__play .i-play { display: block; }

/* ── close */
.close { text-align: center; }
.close__icons { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-bottom: 2.25rem; }
.close p { max-width: 32rem; margin: 1.25rem auto 2rem; font-size: 1.1875rem; color: var(--color-soft); }

/* ── footer */
.foot { padding-block: 2.25rem 2.5rem; background: var(--color-grey); font-size: 0.8125rem; color: var(--color-soft); }
.foot__nav { display: flex; flex-wrap: wrap; gap: 0.75rem 1.75rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--color-line); }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--color-ink); text-decoration: underline; }
.foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; padding-top: 1.25rem; color: var(--color-faint); }

/* ── patterns: one cobalt, behind the cards, fading out at the edges of each section */
.hero, .sec { position: relative; isolation: isolate; overflow: clip; }
.pattern {
  --ink: 29, 71, 230;
  --fade: radial-gradient(ellipse 70% 65% at 50% 55%, #000 25%, transparent 75%);
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  -webkit-mask-image: var(--fade); mask-image: var(--fade);
}
.pattern--grid {
  background-image:
    linear-gradient(rgba(var(--ink), 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--ink), 0.12) 1px, transparent 1px);
  background-size: 6rem 6rem;
  background-position: center top;
}
.pattern--tiles {
  background: url('assets/v3/tiles.svg') center top / 18rem 12rem repeat;
  opacity: 0.55;
}
.pattern--tiles.pattern--hero { background-size: 33.75rem 22.5rem; opacity: 1; }
.pattern--hero { --fade: radial-gradient(ellipse 60% 52% at 50% 30%, #000 20%, transparent 72%); }
.pattern--low { --fade: radial-gradient(ellipse 72% 62% at 50% 62%, #000 22%, transparent 76%); }
.pattern--soft { --fade: radial-gradient(ellipse 60% 55% at 50% 60%, #000 10%, transparent 70%); opacity: 0.6; }
.pattern--top { --fade: radial-gradient(ellipse 55% 45% at 50% 22%, #000 15%, transparent 72%); }
@media (max-width: 47.99rem) {
  .pattern--tiles { background-size: 13.5rem 9rem; }
  .pattern--tiles.pattern--hero { background-size: 21rem 14rem; }
  .pattern--grid { background-size: 4.5rem 4.5rem; }
  .pattern--low { --fade: radial-gradient(ellipse 100% 55% at 50% 55%, #000 20%, transparent 78%); }
}

/* ── reveal: decorative entrance only */
[data-reveal] { opacity: 0; transform: translateY(1.5rem); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orbit__i, .float { animation: none; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .slide__media img { transition: none; }
}
