/* ==========================================================================
   MCusson — site.css
   One stylesheet, no framework. Tokens first, then layout, then components.
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */

:root {
  color-scheme: light dark;

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", "JetBrains Mono", Menlo, Consolas, monospace;

  --bg: #fbfaf8;
  --bg-2: #f2f1ee;
  --surface: #ffffff;
  --surface-2: #f7f6f3;
  --ink: #0b0d12;
  --ink-2: #363b47;
  --muted: #666c7b;
  --line: rgb(11 13 18 / 0.08);
  --line-2: rgb(11 13 18 / 0.14);
  --accent: #3d5afe;
  --accent-soft: rgb(61 90 254 / 0.1);
  --grid-line: rgb(11 13 18 / 0.05);
  --aurora-opacity: 0.5;

  --shadow-sm: 0 1px 2px rgb(11 13 18 / 0.06);
  --shadow: 0 1px 2px rgb(11 13 18 / 0.04), 0 10px 28px -12px rgb(11 13 18 / 0.14);
  --shadow-lg: 0 2px 4px rgb(11 13 18 / 0.04), 0 30px 70px -24px rgb(11 13 18 / 0.28);

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --maxw: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(88px, 11vw, 148px);
  --header-h: 68px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #07080b;
    --bg-2: #0d0f14;
    --surface: #0f1117;
    --surface-2: #13161e;
    --ink: #f3f4f7;
    --ink-2: #c4c8d2;
    --muted: #8c92a2;
    --line: rgb(255 255 255 / 0.08);
    --line-2: rgb(255 255 255 / 0.15);
    --accent: #8397ff;
    --accent-soft: rgb(131 151 255 / 0.14);
    --grid-line: rgb(255 255 255 / 0.045);
    --aurora-opacity: 0.42;

    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4);
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 10px 28px -12px rgb(0 0 0 / 0.7);
    --shadow-lg: 0 2px 4px rgb(0 0 0 / 0.3), 0 30px 70px -24px rgb(0 0 0 / 0.9);
  }
}

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

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss03";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p,
ul,
figure {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
}

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

::selection {
  background: var(--accent);
  color: #fff;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--maxw));
  margin-inline: auto;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: 1.125rem;
  letter-spacing: -0.025em;
}

.brand-mark {
  width: 30px;
  height: 30px;
  flex: none;
}

.mk-bg {
  fill: var(--ink);
}

.mk-m {
  fill: none;
  stroke: var(--bg);
  stroke-width: 5.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 100;
  animation: draw 1.4s var(--ease) 0.2s both;
}

.mk-dot {
  fill: var(--accent);
  transform-origin: 48px 41.5px;
  animation: pop 0.6s var(--ease) 1.1s both;
}

@keyframes draw {
  from {
    stroke-dashoffset: 100;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes pop {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease,
    backdrop-filter 0.3s ease;
}

.site-header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 74%, transparent);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.nav-links {
  display: flex;
  gap: 2px;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-2);
  transition:
    color 0.2s ease,
    background-color 0.2s ease;
}

.nav-links a:hover {
  color: var(--ink);
  background: var(--line);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.lang-switch:hover {
  color: var(--ink);
  border-color: color-mix(in srgb, var(--ink) 35%, transparent);
}

@media (max-width: 760px) {
  .nav-links {
    display: none;
  }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 580;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn-primary {
  background: var(--ink);
  color: var(--bg);
  box-shadow:
    var(--shadow-sm),
    inset 0 1px 0 rgb(255 255 255 / 0.14);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  color: var(--ink);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-sm);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--ink) 30%, transparent);
}

.btn-sm {
  height: 36px;
  padding: 0 16px;
  font-size: 0.875rem;
}

.arrow {
  width: 16px;
  height: 16px;
  flex: none;
  transition: transform 0.3s var(--ease);
}

.btn:hover .arrow {
  transform: translateX(3px);
}

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

.hero {
  position: relative;
  isolation: isolate;
  margin-top: calc(var(--header-h) * -1);
  padding-top: calc(var(--header-h) + clamp(64px, 11vw, 136px));
  padding-bottom: clamp(72px, 10vw, 128px);
  overflow: clip;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 32%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 32%, #000 25%, transparent 75%);
}

.aurora {
  position: absolute;
  inset: -10% -10% 0;
  opacity: var(--aurora-opacity);
}

.aurora span {
  position: absolute;
  width: min(62vw, 760px);
  aspect-ratio: 1;
  border-radius: 50%;
  will-change: transform;
  animation: drift 24s var(--ease-in-out) infinite alternate;
}

.aurora .a1 {
  left: 2%;
  top: 0;
  background: radial-gradient(circle, rgb(61 90 254 / 0.55), transparent 62%);
  --dx: 8vw;
  --dy: 6vh;
}

.aurora .a2 {
  right: 0;
  top: -8%;
  background: radial-gradient(circle, rgb(139 92 246 / 0.5), transparent 62%);
  animation-duration: 28s;
  animation-delay: -7s;
  --dx: -9vw;
  --dy: 10vh;
}

.aurora .a3 {
  left: 28%;
  top: 22%;
  background: radial-gradient(circle, rgb(20 184 166 / 0.45), transparent 62%);
  animation-duration: 32s;
  animation-delay: -13s;
  --dx: 6vw;
  --dy: -8vh;
}

.aurora .a4 {
  right: 18%;
  top: 34%;
  width: min(40vw, 480px);
  background: radial-gradient(circle, rgb(245 178 27 / 0.35), transparent 62%);
  animation-duration: 26s;
  animation-delay: -4s;
  --dx: -6vw;
  --dy: -6vh;
}

@keyframes drift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(var(--dx), var(--dy), 0) scale(1.12);
  }
  100% {
    transform: translate3d(calc(var(--dx) * -0.6), calc(var(--dy) * 0.8), 0) scale(0.94);
  }
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 40%;
  background: linear-gradient(to bottom, transparent, var(--bg));
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 940px;
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  box-shadow: var(--shadow-sm);
  font-size: 0.8125rem;
  font-weight: 550;
  color: var(--ink-2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.pulse {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  flex: none;
}

.pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: inherit;
  animation: ping 2.4s var(--ease) infinite;
}

@keyframes ping {
  0% {
    transform: scale(1);
    opacity: 0.55;
  }
  80%,
  100% {
    transform: scale(3.2);
    opacity: 0;
  }
}

.hero h1 {
  margin-top: 28px;
  font-size: clamp(2.6rem, 1.1rem + 5.8vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 680;
  text-wrap: balance;
}

.gradient-text {
  background: linear-gradient(100deg, #3d5afe 0%, #8b5cf6 25%, #14b8a6 50%, #8b5cf6 75%, #3d5afe 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sheen 10s linear infinite;
}

@media (prefers-color-scheme: dark) {
  .gradient-text {
    background-image: linear-gradient(100deg, #8397ff 0%, #b69cff 25%, #5eead4 50%, #b69cff 75%, #8397ff 100%);
  }
}

@keyframes sheen {
  to {
    background-position: 200% center;
  }
}

.hero .lead {
  margin-top: 26px;
  max-width: 660px;
  font-size: clamp(1.075rem, 0.98rem + 0.45vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink-2);
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 38px;
}

.hero-projects {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: clamp(48px, 7vw, 72px);
}

.hero-projects-label {
  width: 100%;
  margin-bottom: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.project-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px 6px 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  box-shadow: var(--shadow-sm);
  font-size: 0.875rem;
  font-weight: 560;
  color: var(--ink-2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition:
    transform 0.3s var(--ease),
    border-color 0.2s ease,
    color 0.2s ease;
}

.project-pill:hover {
  transform: translateY(-2px);
  border-color: var(--line-2);
  color: var(--ink);
}

.project-pill .logo {
  width: 30px;
  height: 30px;
  border-radius: 9px;
}

/* Load-in sequence for the hero (CSS only, so it never waits on JS). */
.enter {
  animation: enter 1s var(--ease) both;
}

.d1 {
  animation-delay: 0.05s;
}
.d2 {
  animation-delay: 0.15s;
}
.d3 {
  animation-delay: 0.27s;
}
.d4 {
  animation-delay: 0.39s;
}
.d5 {
  animation-delay: 0.52s;
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(18px);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* ---------- Logos ---------- */

.logo {
  flex: none;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--line);
}

.logo img {
  width: 100%;
  height: 100%;
}

/* Le Voisin Techno's mark has no plate of its own, so it sits on white. */
.logo.plate {
  display: grid;
  place-items: center;
  background: #fff;
}

.logo.plate img {
  width: 76%;
  height: 76%;
  object-fit: contain;
}

/* ---------- Sections ---------- */

.section {
  position: relative;
  padding-block: var(--section);
}

.section + .section {
  padding-top: 0;
}

.hero + .section {
  padding-top: clamp(40px, 6vw, 80px);
}

/* Loops pause while their region is scrolled out of view (set by site.js). */
.is-offscreen,
.is-offscreen *,
.is-offscreen *::before,
.is-offscreen *::after {
  animation-play-state: paused !important;
}

.section-head {
  max-width: 740px;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
  font-weight: 620;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.kicker::before {
  content: "";
  width: 18px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
}

.section-title {
  margin-top: 16px;
  font-size: clamp(2rem, 1.25rem + 2.9vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 660;
  text-wrap: balance;
}

.section-lead {
  margin-top: 18px;
  max-width: 60ch;
  font-size: clamp(1.05rem, 0.99rem + 0.3vw, 1.2rem);
  color: var(--ink-2);
  text-wrap: pretty;
}

/* ---------- Scroll reveal ---------- */
/* Uses the `translate` property so it never fights hover `transform`s. */

.js .reveal {
  opacity: 0;
  translate: 0 28px;
}

.js .reveal.is-in {
  opacity: 1;
  translate: none;
}

.reveal {
  --delay: 0ms;
  transition:
    opacity 1s var(--ease) var(--delay),
    translate 1s var(--ease) var(--delay);
}

.s1 {
  --delay: 90ms;
}
.s2 {
  --delay: 180ms;
}
.s3 {
  --delay: 270ms;
}

/* ---------- Project cards (bento) ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}

.card {
  --brand: var(--accent);
  --mx: 50%;
  --my: 0%;
  grid-column: span 6;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition:
    opacity 1s var(--ease) var(--delay),
    translate 1s var(--ease) var(--delay),
    transform 0.5s var(--ease),
    box-shadow 0.5s var(--ease),
    border-color 0.3s ease;
}

.card.wide {
  grid-column: span 7;
}

.card.narrow {
  grid-column: span 5;
}

@media (max-width: 1024px) {
  .card.wide,
  .card.narrow {
    grid-column: span 6;
  }
}

@media (max-width: 720px) {
  .card.wide,
  .card.narrow {
    grid-column: span 12;
  }
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--line-2);
}

/* Cursor spotlight + glowing border, tinted with each product's colour. */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(560px circle at var(--mx) var(--my), color-mix(in srgb, var(--brand) 11%, transparent), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  padding: 1px;
  border-radius: inherit;
  background: radial-gradient(380px circle at var(--mx) var(--my), color-mix(in srgb, var(--brand) 75%, transparent), transparent 42%);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box exclude,
    linear-gradient(#000 0 0);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.card:hover::before,
.card:hover::after {
  opacity: 1;
}

.brand-lvt {
  --brand: #1d8a6f;
}
.brand-siftsum {
  --brand: #0e9384;
}
.brand-hs {
  --brand: #1f9d4c;
}
.brand-weblua {
  --brand: #7066ff;
}

.card-visual {
  position: relative;
  display: grid;
  place-items: center;
  height: 240px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(110% 90% at 50% 0%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 70%),
    color-mix(in srgb, var(--surface-2) 85%, transparent);
}

.card-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(color-mix(in srgb, var(--ink) 10%, transparent) 1px, transparent 1px);
  background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 20%, transparent 75%);
}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 16px;
  padding: 28px clamp(22px, 3vw, 32px) 30px;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.card-meta .logo {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  box-shadow:
    0 0 0 1px var(--line),
    var(--shadow-sm);
  transition: transform 0.5s var(--ease);
}

.card:hover .card-meta .logo {
  transform: rotate(-6deg) scale(1.06);
}

.card-name {
  font-size: 1.375rem;
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: -0.028em;
}

/* Whole card is clickable via the title link. */
.card-name a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
}

.card-name a:focus-visible {
  outline: none;
}

.card:has(.card-name a:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.card-domain {
  font-size: 0.875rem;
  color: var(--muted);
}

.tag {
  align-self: flex-start;
  margin-left: auto;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent);
  background: color-mix(in srgb, var(--brand) 10%, transparent);
  color: color-mix(in srgb, var(--brand) 78%, var(--ink));
  font-size: 0.75rem;
  font-weight: 620;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.card-desc {
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.62;
  text-wrap: pretty;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips li {
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-2);
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 6px;
}

.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9375rem;
  font-weight: 620;
}

.card-cta .arrow {
  width: 15px;
  height: 15px;
}

.card:hover .card-cta .arrow {
  transform: translate(3px, -3px);
}

.lang-note {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
}

/* "Next project" strip */
.card-soon {
  grid-column: span 12;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  padding: 22px clamp(22px, 3vw, 32px);
  border-style: dashed;
  border-color: var(--line-2);
  background: transparent;
  box-shadow: none;
}

.card-soon:hover {
  transform: none;
  box-shadow: none;
}

.card-soon::before,
.card-soon::after {
  display: none;
}

.soon-orbit {
  position: relative;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  border: 1.5px dashed var(--line-2);
  animation: spin 14s linear infinite;
}

.soon-orbit::after {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  width: 7px;
  height: 7px;
  margin-left: -3.5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.soon-title {
  font-weight: 620;
  letter-spacing: -0.015em;
}

.soon-text {
  font-size: 0.9375rem;
  color: var(--muted);
}

/* ---------- Card visuals (decorative product vignettes) ---------- */

.viz {
  position: relative;
  z-index: 1;
}

.panel {
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

/* Le Voisin Techno: a house-call checklist that ticks itself off. */
.viz-lvt .panel {
  width: min(320px, 82vw);
  padding: 14px 16px 16px;
}

.viz-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 0.8125rem;
  font-weight: 620;
}

.viz-head .logo {
  width: 26px;
  height: 26px;
  border-radius: 7px;
}

.viz-badge {
  margin-left: auto;
  padding: 3px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  color: color-mix(in srgb, var(--brand) 80%, var(--ink));
  font-size: 0.6875rem;
  font-weight: 650;
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 0.875rem;
  color: var(--ink-2);
}

.check {
  position: relative;
  width: 18px;
  height: 18px;
  flex: none;
  border-radius: 50%;
  border: 1.5px solid var(--line-2);
}

.check::after {
  content: "";
  position: absolute;
  inset: -1.5px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.6' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
      center / 100% no-repeat,
    #1d8a6f;
  transform: scale(0);
}

.is-in .check::after {
  animation: tick 7s var(--ease) infinite;
}

.checklist li:nth-child(2) .check::after {
  animation-delay: 0.5s;
}
.checklist li:nth-child(3) .check::after {
  animation-delay: 1s;
}
.checklist li:nth-child(4) .check::after {
  animation-delay: 1.5s;
}

@keyframes tick {
  0%,
  6% {
    transform: scale(0);
  }
  12%,
  86% {
    transform: scale(1);
  }
  94%,
  100% {
    transform: scale(0);
  }
}

/* SiftSum: a receipt being scanned into line items. */
.viz-sift {
  display: flex;
  align-items: center;
}

.receipt {
  position: relative;
  width: 220px;
  padding: 16px 18px 22px;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink-2);
  -webkit-mask:
    linear-gradient(#000 0 0) top / 100% calc(100% - 8px) no-repeat,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 12px 8px repeat-x;
  mask:
    linear-gradient(#000 0 0) top / 100% calc(100% - 8px) no-repeat,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 12px 8px repeat-x;
}

.receipt-head {
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line-2);
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

.receipt-line,
.receipt-total {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 3px 0;
}

.receipt-total {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--line-2);
  font-weight: 700;
  color: var(--ink);
}

.scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 44px;
  background: linear-gradient(to bottom, transparent, rgb(45 212 191 / 0.22));
  border-bottom: 2px solid #2dd4bf;
  box-shadow: 0 8px 18px -6px rgb(45 212 191 / 0.7);
  opacity: 0;
}

.is-in .scan {
  animation: scan 3.4s var(--ease-in-out) infinite;
}

@keyframes scan {
  0% {
    transform: translateY(-44px);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    transform: translateY(170px);
    opacity: 0;
  }
}

.sift-chip {
  position: absolute;
  right: -56px;
  bottom: -16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  font-size: 0.75rem;
  font-weight: 620;
  white-space: nowrap;
  opacity: 0;
  translate: 0 10px;
}

.sift-chip .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0e9384;
  box-shadow: 0 0 0 4px rgb(14 147 132 / 0.18);
}

.is-in .sift-chip {
  animation: chip-in 0.8s var(--ease) 0.9s forwards;
}

@keyframes chip-in {
  to {
    opacity: 1;
    translate: none;
  }
}

@media (max-width: 420px) {
  .sift-chip {
    right: -20px;
  }
}

/* Home Station: three big buttons, one playing, a caregiver notice beside it. */
.viz-hs {
  display: flex;
  align-items: center;
  gap: 18px;
}

.phone {
  display: flex;
  flex-direction: column;
  gap: 9px;
  width: 128px;
  padding: 16px 12px 14px;
  border-radius: 26px;
  border: 5px solid color-mix(in srgb, var(--ink) 88%, transparent);
  background: #f4faf6;
  box-shadow: var(--shadow-lg);
}

.big-btn {
  position: relative;
  display: grid;
  place-items: center;
  height: 42px;
  border-radius: 12px;
  background: #1b7f3b;
}

.big-btn::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 3px;
  border-left: 11px solid #fff;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
}

.big-btn.is-on {
  background: #22a24d;
}

.big-btn.is-on::before {
  width: 11px;
  height: 13px;
  margin-left: 0;
  border: 0;
  background: linear-gradient(90deg, #fff 0 35%, transparent 35% 65%, #fff 65%);
}

.big-btn.is-on::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 15px;
  border: 2px solid #22a24d;
  opacity: 0;
}

.is-in .big-btn.is-on::after {
  animation: ring 2.2s var(--ease) infinite;
}

@keyframes ring {
  0% {
    opacity: 0.8;
    transform: scale(0.96);
  }
  100% {
    opacity: 0;
    transform: scale(1.12);
  }
}

.hs-note {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}

.eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}

.eq i {
  width: 3px;
  height: 100%;
  border-radius: 2px;
  background: #1f9d4c;
  transform-origin: bottom;
  transform: scaleY(0.35);
}

.is-in .eq i {
  animation: eq 1.1s ease-in-out infinite alternate;
}

.eq i:nth-child(2) {
  animation-delay: -0.4s !important;
}
.eq i:nth-child(3) {
  animation-delay: -0.8s !important;
}
.eq i:nth-child(4) {
  animation-delay: -0.2s !important;
}

@keyframes eq {
  0% {
    transform: scaleY(0.25);
  }
  100% {
    transform: scaleY(1);
  }
}

@media (max-width: 420px) {
  .hs-note {
    display: none;
  }
}

/* Weblua: a tiny editor that types its own program. */
.editor {
  width: min(360px, 84vw);
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgb(255 255 255 / 0.08);
  background: #0a0e1a;
  box-shadow: var(--shadow-lg);
  color: #d7dcf0;
  font-family: var(--mono);
  font-size: 0.8125rem;
}

.editor-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid rgb(255 255 255 / 0.07);
  font-size: 0.6875rem;
  color: #8b93b3;
}

.editor-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2a3048;
}

.editor-bar .file {
  margin-left: 8px;
  color: #c6cbe4;
}

.editor-bar .ver {
  margin-left: auto;
  padding: 2px 7px;
  border-radius: 6px;
  background: linear-gradient(120deg, rgb(91 124 255 / 0.25), rgb(139 92 246 / 0.25));
  color: #c9d2ff;
}

.code {
  display: grid;
  gap: 4px;
  padding: 14px 16px 12px;
}

.ln {
  display: inline-block;
  white-space: pre;
  overflow: hidden;
  vertical-align: bottom;
}

.js .ln {
  width: 0;
}

.js .is-in .ln {
  animation: type calc(var(--n, 20) * 55ms) steps(var(--n, 20), end) forwards;
}

.js .is-in .ln.l1 {
  animation-delay: 0.35s;
}

.js .is-in .ln.l2 {
  animation-delay: 1.75s;
}

@keyframes type {
  to {
    width: calc(var(--n, 20) * 1ch);
  }
}

.caret {
  display: inline-block;
  width: 7px;
  height: 1.1em;
  margin-left: 1px;
  vertical-align: text-bottom;
  background: #8b5cf6;
  animation: blink 1.05s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.tk-k {
  color: #c792ea;
}
.tk-s {
  color: #7fe0c4;
}
.tk-f {
  color: #82aaff;
}
.tk-o {
  color: #89ddff;
}

.console {
  display: flex;
  gap: 8px;
  padding: 10px 16px 12px;
  border-top: 1px solid rgb(255 255 255 / 0.07);
  background: rgb(255 255 255 / 0.02);
  color: #7fe0c4;
}

.console .prompt {
  color: #5b6488;
}

.js .console .out {
  opacity: 0;
}

.js .is-in .console .out {
  animation: fade-in 0.5s ease 3.4s forwards;
}

@keyframes fade-in {
  to {
    opacity: 1;
  }
}

/* ---------- Approach ---------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 900px) {
  .pillars {
    grid-template-columns: minmax(0, 1fr);
  }
}

.pillar {
  padding: 30px 28px 32px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(to bottom, var(--surface), color-mix(in srgb, var(--surface) 40%, transparent));
}

.pillar-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--accent-soft);
  color: var(--accent);
}

.pillar-icon svg {
  width: 22px;
  height: 22px;
}

.pillar h3 {
  font-size: 1.1875rem;
  font-weight: 640;
  letter-spacing: -0.02em;
}

.pillar p {
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 1rem;
  text-wrap: pretty;
}

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

.contact-panel {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  padding: clamp(24px, 6vw, 72px);
  overflow: hidden;
  border-radius: calc(var(--radius-lg) + 4px);
  background: #0b0d12;
  color: #f3f4f7;
  box-shadow: var(--shadow-lg);
}

@media (prefers-color-scheme: dark) {
  .contact-panel {
    background: #0f1117;
    border: 1px solid var(--line);
  }
}

@media (max-width: 1080px) {
  .contact-panel {
    grid-template-columns: minmax(0, 1fr);
  }
}

.contact-panel .aurora {
  inset: -40% -20% auto auto;
  width: 90%;
  height: 180%;
  opacity: 0.55;
}

.contact-panel .aurora span {
  width: 70%;
}

.contact-panel .kicker {
  color: #9fb0ff;
}

.contact-panel .section-lead {
  color: #c4c8d2;
}

.methods {
  display: grid;
  gap: 12px;
}

.method {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 16px 16px 18px;
  border-radius: 18px;
  border: 1px solid rgb(255 255 255 / 0.1);
  background: rgb(255 255 255 / 0.05);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.method:hover {
  border-color: rgb(255 255 255 / 0.2);
  background: rgb(255 255 255 / 0.08);
}

.method-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 12px;
  background: rgb(255 255 255 / 0.08);
  color: #fff;
}

.method-icon svg {
  width: 20px;
  height: 20px;
}

.method-text {
  min-width: 0;
  flex: 1;
}

.method-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8c92a2;
}

.method-value {
  display: block;
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.3rem);
  font-weight: 620;
  letter-spacing: -0.02em;
  color: #fff;
}

.method-value:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.copy-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  flex: none;
  border-radius: 999px;
  border: 1px solid rgb(255 255 255 / 0.16);
  background: rgb(255 255 255 / 0.06);
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.copy-btn:hover {
  background: rgb(255 255 255 / 0.12);
}

.copy-btn svg {
  width: 14px;
  height: 14px;
}

.copy-btn .done {
  display: none;
}

.copy-btn.is-done {
  border-color: rgb(52 211 153 / 0.5);
  color: #6ee7b7;
}

.copy-btn.is-done .idle {
  display: none;
}

.copy-btn.is-done .done {
  display: inline-block;
}

/* Phones: drop the decorative icon and make copy icon-only so the email fits. */
@media (max-width: 520px) {
  .method {
    gap: 12px;
    padding: 14px 12px 14px 16px;
  }

  .method-icon {
    display: none;
  }

  .copy-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    justify-content: center;
  }

  .copy-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

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

.site-footer {
  position: relative;
  overflow: hidden;
  padding-top: clamp(64px, 8vw, 96px);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr));
  gap: 40px;
}

@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
}

.footer-tagline {
  margin-top: 14px;
  max-width: 32ch;
  color: var(--muted);
  font-size: 0.9375rem;
}

.footer-title {
  margin-bottom: 14px;
  font-size: 0.8125rem;
  font-weight: 620;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-list {
  display: grid;
  gap: 10px;
  font-size: 0.9375rem;
}

.footer-list a {
  color: var(--ink-2);
  transition: color 0.2s ease;
}

.footer-list a:hover {
  color: var(--ink);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 56px;
  padding-block: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--muted);
}

.footer-bottom a:hover {
  color: var(--ink);
}

.footer-wordmark {
  margin-top: 8px;
  margin-bottom: -0.2em;
  text-align: center;
  font-size: clamp(4.5rem, 21vw, 18rem);
  font-weight: 750;
  line-height: 0.8;
  letter-spacing: -0.065em;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--ink) 11%, transparent), transparent 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
  pointer-events: none;
}

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

.error-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: var(--gutter);
  text-align: center;
}

.error-code {
  font-size: clamp(5rem, 18vw, 10rem);
  font-weight: 750;
  line-height: 1;
  letter-spacing: -0.06em;
}

.error-page p {
  margin-top: 12px;
  color: var(--ink-2);
}

.error-page .hero-actions {
  margin-top: 28px;
}

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .aurora span,
  .gradient-text,
  .soon-orbit,
  .caret,
  .scan,
  .big-btn.is-on::after,
  .eq i,
  .pulse::after {
    animation: none !important;
  }

  .check::after {
    animation: none !important;
    transform: scale(1);
  }

  .js .reveal {
    opacity: 1;
    translate: none;
  }
}
