/* ==========================================================================
   Skedwil — design tokens
   ========================================================================== */
:root {
  --bg: #fafafa;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-chip: #f1f2f4;
  --border: rgba(16, 18, 20, 0.08);
  --border-strong: rgba(16, 18, 20, 0.14);

  /* The only two tones sections/cards ever use — alternated so you can
     always tell where one section ends and the next begins. */
  --surface-1: #ffffff;
  --surface-2: #eef0f2;

  --text: #101214;
  --text-muted: #5b6169;
  --text-faint: #9aa0a8;

  --accent: #cc0000;
  --accent-dim: #cc0000;
  --accent-ink: #ffffff;
  --accent-soft: rgba(204, 0, 0, 0.08);
  --accent-glow: rgba(204, 0, 0, 0.4);

  /* Used only for the falling pipeline bills — real money reads as green,
     so this is a deliberate exception to the site's red-only accent rule. */
  --money-green: #1e8e4a;

  /* Ambient glow behind the leak cards — kept separate from --accent-glow
     (which is tuned for a tight button hover halo) since this one gets
     spread over a much larger blur radius and needs a lower base alpha to
     still read as soft at that size. */
  --leak-glow: rgba(204, 0, 0, 0.16);

  --hero-mark-opacity: 0.045;
  --nav-bg-scrolled: rgba(250, 250, 250, 0.78);

  --font-display: "General Sans", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1240px;
  --gutter: clamp(20px, 5vw, 32px);
  --section-pad: clamp(56px, 7vw, 100px);
  --section-pad-lg: clamp(80px, 11vw, 152px); /* original size — kept only for the blind-spot section's top, so the gap after the logo strip stays put */

  --radius-s: 10px;
  --radius-m: 18px;
  --radius-l: 28px;
  --radius-pill: 999px;

  --shadow-card: 0 1px 2px rgba(16, 18, 20, 0.04), 0 14px 32px -16px rgba(16, 18, 20, 0.12);
  --shadow-card-hover: 0 4px 10px rgba(16, 18, 20, 0.05), 0 22px 44px -16px rgba(16, 18, 20, 0.16);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 0.22s;
  --dur-med: 0.55s;
  --dur-slow: 1s;
}

/* Dark theme — explicit toggle wins in both directions; system preference
   applies only when the visitor hasn't chosen (guarded by :not([data-theme="light"])). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0b0d;
    --bg-card: #141519;
    --bg-card-hover: #191b20;
    --bg-chip: #1d1f25;
    --surface-1: #141519;
    --surface-2: #0a0b0d;
    --border: rgba(255, 255, 255, 0.09);
    --border-strong: rgba(255, 255, 255, 0.18);

    --text: #f5f6f7;
    --text-muted: #9aa0a8;
    --text-faint: #6b7178;

    --accent: #cc0000;
    --accent-dim: #cc0000;
    --accent-ink: #ffffff;
    --accent-soft: rgba(204, 0, 0, 0.16);
    --accent-glow: rgba(204, 0, 0, 0.5);
    --money-green: #34b96a;
    --leak-glow: rgba(204, 0, 0, 0.32);

    --hero-mark-opacity: 0.09;
    --nav-bg-scrolled: rgba(10, 11, 13, 0.72);

    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.35), 0 14px 32px -16px rgba(0, 0, 0, 0.55);
    --shadow-card-hover: 0 4px 10px rgba(0, 0, 0, 0.4), 0 22px 44px -16px rgba(0, 0, 0, 0.6);
  }
}

:root[data-theme="dark"] {
  --bg: #0a0b0d;
  --bg-card: #141519;
  --bg-card-hover: #191b20;
  --bg-chip: #1d1f25;
  --surface-1: #141519;
  --surface-2: #0a0b0d;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);

  --text: #f5f6f7;
  --text-muted: #9aa0a8;
  --text-faint: #6b7178;

  --accent: #cc0000;
  --accent-dim: #cc0000;
  --accent-ink: #ffffff;
  --accent-soft: rgba(204, 0, 0, 0.16);
  --accent-glow: rgba(204, 0, 0, 0.5);
  --money-green: #34b96a;

  --hero-mark-opacity: 0.09;
  --nav-bg-scrolled: rgba(10, 11, 13, 0.72);

  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.35), 0 14px 32px -16px rgba(0, 0, 0, 0.55);
  --shadow-card-hover: 0 4px 10px rgba(0, 0, 0, 0.4), 0 22px 44px -16px rgba(0, 0, 0, 0.6);
}

body,
.nav,
.nav__mobile,
.leak-card,
.leak-card__icon,
.method-step,
.case-card,
.about__photo,
.footer {
  transition: background-color 0.35s var(--ease-out), border-color 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out), color 0.35s var(--ease-out);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

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

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

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

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

/* ==========================================================================
   Layout helpers
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section {
  position: relative;
  padding-block: var(--section-pad);
  scroll-margin-top: 96px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dim);
  margin-bottom: 20px;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.eyebrow--plain::before {
  display: none;
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(48px, 7vw, 80px);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

/* :not(.eyebrow) so a section-head that starts with an eyebrow (only the
   method section does) doesn't have its size/color clobbered by this —
   .eyebrow's own rule is a single class, lower specificity than "p" here
   would otherwise beat it. */
.section-head p:not(.eyebrow) {
  margin-top: 18px;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text);
}

h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  line-height: 1.15;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

/* ==========================================================================
   Buttons + links
   ========================================================================== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  padding: 15px 28px;
  border-radius: var(--radius-pill);
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out),
    background var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 0 0 0 var(--accent-glow);
}

.btn--primary:hover {
  box-shadow: 0 10px 28px -8px var(--accent-glow);
  transform: translateY(-2px);
}

.btn--large {
  padding: 18px 36px;
  font-size: 1rem;
}

.btn--small {
  padding: 11px 22px;
  font-size: 0.85rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text);
  padding-bottom: 2px;
  border-bottom: 1px solid var(--border-strong);
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}

.link-arrow span {
  transition: transform var(--dur-fast) var(--ease-out);
  color: var(--accent-dim);
}

.link-arrow:hover {
  color: var(--accent-dim);
  border-color: var(--accent-dim);
}

.link-arrow:hover span {
  transform: translateX(4px);
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition-duration: 0.3s;
    transform: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding-block: 22px;
  transition: padding var(--dur-med) var(--ease-out), background var(--dur-med) var(--ease-out),
    border-color var(--dur-med) var(--ease-out), backdrop-filter var(--dur-med) var(--ease-out);
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  padding-block: 14px;
  background: var(--nav-bg-scrolled);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.nav__mark {
  width: 26px;
  height: 26px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
}

.nav__links a {
  position: relative;
  padding-block: 4px;
  transition: color var(--dur-fast) var(--ease-out);
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--accent-dim);
  transition: right var(--dur-med) var(--ease-out);
}

.nav__links a:hover {
  color: var(--text);
}

.nav__links a:hover::after {
  right: 0;
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.theme-toggle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--text-muted);
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
  flex: none;
}

.theme-toggle:hover {
  background: var(--bg-chip);
  color: var(--text);
}

.theme-toggle__icon {
  position: absolute;
  width: 19px;
  height: 19px;
  transition: opacity var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out);
}

.theme-toggle__icon--sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.theme-toggle__icon--moon {
  opacity: 0;
  transform: rotate(-70deg) scale(0.5);
}

[data-theme="dark"] .theme-toggle__icon--sun {
  opacity: 0;
  transform: rotate(70deg) scale(0.5);
}

[data-theme="dark"] .theme-toggle__icon--moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .theme-toggle__icon {
    transition: opacity var(--dur-fast) linear;
    transform: none !important;
  }
}

.nav__toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav__toggle span {
  width: 20px;
  height: 1.5px;
  background: var(--text);
  transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}

.nav__mobile {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 28px;
  padding-inline: var(--gutter);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out),
    visibility 0s linear var(--dur-med);
}

.nav__mobile.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out);
}

.nav__mobile a {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.nav__mobile .btn {
  margin-top: 12px;
}

body.nav-open {
  overflow: hidden;
}

body.nav-open .nav__toggle span:first-child {
  transform: translateY(6.5px) rotate(45deg);
}

body.nav-open .nav__toggle span:last-child {
  transform: translateY(-6.5px) rotate(-45deg);
}

@media (max-width: 860px) {
  .nav__links,
  .nav__right .btn {
    display: none;
  }
  .nav__toggle {
    display: inline-flex;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding-top: clamp(160px, 22vw, 240px);
  padding-bottom: clamp(90px, 12vw, 140px);
  overflow: hidden;
  background: var(--surface-1);
  /* Establishes a local stacking context so .hero__bg's z-index:-1 stacks
     behind .hero__inner but in front of .hero's own background — without
     this, position:relative alone doesn't create a stacking context, so the
     negative z-index layer escapes to the document root and ends up
     painted underneath this section's own background instead (the blobs
     and mark would be fully invisible). */
  z-index: 0;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

/* Sized to sit just behind the headline and sub-copy, poking out a little
   above and below it rather than dominating the whole section. */
.hero__mark {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(340px, 30vw, 400px);
  height: auto;
  aspect-ratio: 621 / 867;
  transform: translate(-50%, -50%);
  color: var(--accent);
  opacity: var(--hero-mark-opacity);
}

.hero__inner {
  max-width: 900px;
}

.hero__title {
  font-size: clamp(2.4rem, 5.6vw, 4.5rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.hero__sub {
  margin-top: 28px;
  max-width: 620px;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.65;
  color: var(--text-muted);
}

.hero__actions {
  margin-top: 44px;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Proof strip
   ========================================================================== */
.proof {
  padding-block: 28px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.proof__label {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-faint);
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}

.proof__marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.proof__track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 64px;
  animation: marquee 20s linear infinite;
}

.proof__marquee:hover .proof__track {
  animation-play-state: paused;
}

.proof__track span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  color: var(--text-faint);
  transition: color var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}

.proof__track span:hover {
  color: var(--accent-dim);
}

.proof__track .dot {
  color: var(--border-strong);
  font-weight: 400;
}

/* Continuous, never stops — the track is the list doubled, so translateX
   ends exactly where it started visually and the loop has no seam. */
@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .proof__track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ==========================================================================
   Blind spot
   ========================================================================== */
.blind {
  overflow: hidden;
  padding-top: var(--section-pad-lg);
  background: var(--surface-1);
}

/* Pipeline sits just above the copy and runs down the full section, behind
   the text — drips fall the whole way and get clipped at the section edge. */
.pipeline {
  position: absolute;
  top: clamp(28px, 5vw, 44px);
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
}

.pipeline__tube {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 11px;
  border-radius: 6px;
  background: linear-gradient(
    180deg,
    #d7dadd 0%,
    #f8f9fa 14%,
    #aeb3b8 42%,
    #787d83 50%,
    #aeb3b8 58%,
    #f8f9fa 86%,
    #d7dadd 100%
  );
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 3px 6px rgba(0, 0, 0, 0.18);
}

.pipeline__joint {
  position: absolute;
  top: -3px;
  width: 8px;
  height: 17px;
  border-radius: 2px;
  background: linear-gradient(180deg, #8b9096 0%, #4a4d51 20%, #2c2e31 50%, #4a4d51 80%, #8b9096 100%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  transform: translateX(-50%);
}

/* Falling money bills — a flat rectangle tumbles as it falls (rotate +
   side-to-side sway) rather than dropping straight down, the way a light
   bill actually flutters through air. --spin flips the tumble direction per
   bill so a row of them doesn't read as synchronized. */
.pipeline__bill {
  position: absolute;
  top: 13px;
  left: 0;
  width: var(--bill-w, 14px);
  height: var(--bill-h, 8px);
  border-radius: 1.5px;
  background: var(--money-green);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4), 0 2px 4px rgba(0, 0, 0, 0.2);
  transform: translateX(-50%);
  opacity: 0;
  animation-name: bill-fall;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.pipeline__bill::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transform: translate(-50%, -50%);
}

@keyframes bill-fall {
  0% {
    top: 13px;
    opacity: 0;
    transform: translate(-50%, 0) rotate(0deg);
  }
  8% {
    opacity: 1;
  }
  20% {
    transform: translate(calc(-50% + 7px), 0) rotate(calc(var(--spin, 1) * 22deg));
  }
  38% {
    transform: translate(calc(-50% - 8px), 0) rotate(calc(var(--spin, 1) * -20deg));
  }
  56% {
    transform: translate(calc(-50% + 6px), 0) rotate(calc(var(--spin, 1) * 16deg));
  }
  74% {
    opacity: 1;
    transform: translate(calc(-50% - 5px), 0) rotate(calc(var(--spin, 1) * -14deg));
  }
  90% {
    opacity: 1;
  }
  100% {
    top: 103%;
    opacity: 0;
    transform: translate(calc(-50% + 3px), 0) rotate(calc(var(--spin, 1) * 10deg));
  }
}

@media (prefers-reduced-motion: reduce) {
  .pipeline__bill {
    animation: none;
    opacity: 0.5;
  }
}

.blind__inner {
  position: relative;
  z-index: 2;
  max-width: 780px;
  text-align: center;
}

.blind__copy {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.blind__copy p {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.blind__copy .blind__copy--emphasis {
  color: var(--text);
}

.blind__cta {
  margin-top: 14px;
}

/* ==========================================================================
   Leak grid
   ========================================================================== */
.leaks {
  background: var(--surface-2);
}

/* Phone/tablet: capped and centered so a 2-column grid stays a row of
   compact cards instead of stretching two huge cards edge to edge. */
.leaks__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 600px;
  margin-inline: auto;
}

/* Desktop: all 4 fit in one row across the full container instead of
   leaving the sides empty. */
@media (min-width: 860px) {
  .leaks__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: none;
    gap: 20px;
  }
}

/* Neon radiating from the card's own edge — a tight 1px ring for definition
   plus a moderate blur so it visibly emanates from the border, without
   ballooning into a big ambient blob or tightening into a hard outline. */
.leak-card {
  position: relative;
  background: var(--surface-1);
  border: 1px solid rgba(204, 0, 0, 0.2);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-card), 0 0 0 1px rgba(204, 0, 0, 0.08), 0 0 26px 0 var(--leak-glow);
  padding: 22px 20px;
  text-align: center;
  transition: box-shadow var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out);
}

.leak-card:hover {
  border-color: rgba(204, 0, 0, 0.36);
  box-shadow: var(--shadow-card-hover), 0 0 0 1px rgba(204, 0, 0, 0.14), 0 0 34px 2px var(--leak-glow);
  transform: translateY(-4px);
  z-index: 2;
}

/* No tile behind these — the source art is already trimmed to a
   transparent background, so it sits straight on the card. */
.leak-card__icon {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}

.leak-card__icon img {
  height: 40px;
  width: auto;
}

/* Two pre-rendered variants swap per theme — the source line art is dark,
   which disappears against a dark card now that there's no light tile
   behind it, so dark mode gets a version with the linework flipped light
   (accent-red pixels are left alone in both). Same is-it-dark logic as the
   rest of the theme system: system preference by default, manual toggle
   wins via [data-theme]. Specificity note: these must win over
   ".leak-card__icon img" above without relying on source order, since that
   rule also targets both <img> tags — hence the repeated "img" here. */
.leak-card__icon img.leak-card__icon--light {
  display: block;
}

.leak-card__icon img.leak-card__icon--dark {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .leak-card__icon img.leak-card__icon--light {
    display: none;
  }
  :root:not([data-theme="light"]) .leak-card__icon img.leak-card__icon--dark {
    display: block;
  }
}

:root[data-theme="dark"] .leak-card__icon img.leak-card__icon--light {
  display: none;
}

:root[data-theme="dark"] .leak-card__icon img.leak-card__icon--dark {
  display: block;
}

.leak-card h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.leak-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.leak-card__cost {
  margin-top: 14px;
  font-style: italic;
  color: var(--accent-dim) !important;
  font-size: 0.86rem !important;
}

.leaks__closer {
  margin-top: 44px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text-muted);
}

@media (max-width: 480px) {
  .leaks__grid {
    gap: 12px;
  }
  .leak-card {
    padding: 16px 14px;
  }
  .leak-card__icon img {
    height: 36px;
  }
}

/* ==========================================================================
   Work / case gallery — 3 cards, all visible, no scrolling
   ========================================================================== */
.work {
  background: var(--surface-1);
}

.work__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 760px) {
  .work__grid {
    grid-template-columns: 1fr;
  }
}

.case-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  text-align: left;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: box-shadow var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out);
}

.case-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.case-card__image {
  aspect-ratio: 4 / 3;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
  border-radius: calc(var(--radius-m) - 1px) calc(var(--radius-m) - 1px) 0 0;
}

.case-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 22px 24px;
}

.case-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.case-card__client {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
}

/* Small circular "open" affordance — nudges up-right and fills with the
   accent color on hover so the whole card reads as clickable, not just
   the text. */
.case-card__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  color: var(--text);
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}

.case-card__arrow svg {
  width: 15px;
  height: 15px;
}

.case-card:hover .case-card__arrow {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  transform: translate(3px, -3px);
}

.case-card__teaser {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.case-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--accent-dim);
}

.case-card__cta-arrow {
  transition: transform var(--dur-fast) var(--ease-out);
}

.case-card:hover .case-card__cta-arrow {
  transform: translateX(4px);
}

/* ==========================================================================
   Case study overlay — the site "becomes" the case study rather than a
   small modal floating over it. Native <dialog>/showModal() supplies focus
   trapping and ESC-to-close for free; main.js handles the fade/scale
   entrance (toggling .is-shown a frame after showModal, since you can't
   transition out of display:none) and the Previous/Next swap between cases.
   ========================================================================== */
.case-overlay {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(1180px, 92vw);
  height: min(860px, 90vh);
  max-width: 92vw;
  max-height: 90vh;
  padding: 0;
  border: none;
  border-radius: var(--radius-l);
  background: var(--surface-1);
  color: var(--text);
  box-shadow: 0 40px 100px -24px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: scale(0.96) translateY(16px);
  transition: opacity 0.32s var(--ease-out), transform 0.32s var(--ease-out);
}

.case-overlay.is-shown {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.case-overlay::backdrop {
  background: rgba(8, 9, 11, 0);
  transition: background 0.32s var(--ease-out);
}

.case-overlay.is-shown::backdrop {
  background: rgba(8, 9, 11, 0.72);
}

@media (prefers-reduced-motion: reduce) {
  .case-overlay,
  .case-overlay::backdrop {
    transition-duration: 0.01s;
  }
}

@media (max-width: 760px) {
  .case-overlay {
    width: 100vw;
    height: 100dvh;
    max-width: none;
    max-height: none;
    border-radius: 0;
  }
}

.case-overlay__scroll {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: inherit;
}

.case-overlay__close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(20, 21, 25, 0.55);
  color: #fff;
  backdrop-filter: blur(6px);
  transition: background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}

.case-overlay__close:hover {
  background: rgba(20, 21, 25, 0.8);
  transform: rotate(90deg);
}

.case-overlay__close svg {
  width: 18px;
  height: 18px;
}

.case-overlay__hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  min-height: clamp(260px, 30vw, 340px);
}

.case-overlay__hero-text {
  background: #14151a;
  color: #fff;
  padding: clamp(24px, 3.5vw, 44px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.case-overlay__hero-text .eyebrow {
  color: #ff5252;
}

.case-overlay__hero-text h2 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-top: 6px;
}

.case-overlay__meta {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
}

.case-overlay__tags {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

.case-overlay__rule {
  width: 40px;
  height: 1px;
  margin: 16px 0;
  border: none;
  background: rgba(255, 255, 255, 0.25);
}

.case-overlay__statement {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.5;
  max-width: 46ch;
  color: rgba(255, 255, 255, 0.92);
}

.case-overlay__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 760px) {
  .case-overlay__hero {
    grid-template-columns: 1fr;
  }
  .case-overlay__hero-image {
    aspect-ratio: 4 / 3;
    height: auto;
  }
}

.case-overlay__body {
  padding: 20px clamp(24px, 4vw, 48px) 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Tighter than the site-wide .eyebrow default (20px) — this whole overlay
   is meant to read as one continuous piece, not four stacked cards. */
.case-overlay__section .eyebrow {
  margin-bottom: 12px;
}

.case-overlay__section p + p {
  margin-top: 14px;
}

.case-overlay__section > p {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.7;
  max-width: 68ch;
}

.case-overlay__outcomes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px 24px;
}

@media (max-width: 760px) {
  .case-overlay__outcomes {
    grid-template-columns: repeat(2, 1fr);
  }
}

.outcome__icon {
  width: 24px;
  height: 24px;
  color: var(--accent-dim);
  margin-bottom: 8px;
}

.outcome p {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text);
}

.case-overlay__nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--border);
  margin-top: 20px;
}

.case-overlay__navlink {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: clamp(18px, 2.5vw, 26px) clamp(24px, 4vw, 48px);
  transition: background var(--dur-fast) var(--ease-out);
}

.case-overlay__navlink:hover {
  background: var(--surface-2);
}

.case-overlay__navlink--next {
  justify-content: flex-end;
  text-align: right;
  border-left: 1px solid var(--border);
}

.case-overlay__navarrow {
  color: var(--accent-dim);
  font-size: 1.1rem;
}

.case-overlay__navlabel {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.case-overlay__navkicker {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.case-overlay__navname {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text);
}

/* ==========================================================================
   Method
   ========================================================================== */
.method {
  background: var(--surface-1);
}

.method__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.method-step {
  padding: 32px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  background: var(--surface-1);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out);
}

.method-step:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.method-step__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--accent-dim);
  margin-bottom: 20px;
}

.method-step h3 {
  margin-bottom: 12px;
}

.method-step p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.principles {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding-top: clamp(56px, 7vw, 88px);
  border-top: 1px solid var(--border);
}

.principle__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dim);
  margin-bottom: 14px;
}

.principle h3 {
  font-size: 1.1rem;
}

@media (max-width: 980px) {
  .method__steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .principles {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 560px) {
  .method__steps {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   About
   ========================================================================== */
.about {
  background: var(--surface-2);
}

/* 1fr:2fr = a third for the photo, two-thirds for the copy — held at every
   width (see the media query below) rather than stacking on phone. */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(20px, 4vw, 56px);
  align-items: start;
}

.about__photo {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-l);
  border: 1px solid var(--border-strong);
}

.about__copy p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 20px;
  max-width: 700px;
}

.about__copy p:first-of-type {
  color: var(--text);
  font-size: 1.2rem;
}

.about__copy h2 {
  margin-bottom: 32px;
}

@media (max-width: 480px) {
  .about__grid {
    gap: 14px;
  }
}

/* ==========================================================================
   CTA
   ========================================================================== */
.cta {
  text-align: center;
  background: var(--surface-2);
}

.cta__inner {
  max-width: 760px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta__title {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  white-space: normal;
  margin-bottom: 20px;
}

.cta .eyebrow--plain {
  margin-bottom: 20px;
}

.cta__lede {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 480px;
}

.cta__lede strong {
  color: var(--text);
  font-weight: 600;
}

.cta .btn {
  margin-top: 32px;
}

@media (min-width: 640px) {
  .cta__title {
    white-space: nowrap;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  padding-block: 64px 40px;
  border-top: 1px solid var(--border);
  background: var(--surface-1);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
}

.footer__brand svg {
  width: 22px;
  height: 22px;
}

.footer__tagline {
  max-width: 420px;
  color: var(--text-faint);
  font-size: 0.92rem;
  line-height: 1.6;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer__links a {
  transition: color var(--dur-fast) var(--ease-out);
}

.footer__links a:hover {
  color: var(--accent-dim);
}

.footer__copy {
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--text-faint);
}

@media (min-width: 720px) {
  .footer__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand links"
      "tagline links"
      "copy links";
    align-items: start;
    column-gap: 40px;
  }
  .footer__brand {
    grid-area: brand;
  }
  .footer__tagline {
    grid-area: tagline;
  }
  .footer__links {
    grid-area: links;
    flex-direction: column;
    align-items: flex-end;
  }
  .footer__copy {
    grid-area: copy;
  }
}

/* ==========================================================================
   Magnetic buttons (JS hooks the transform)
   ========================================================================== */
.magnetic {
  will-change: transform;
}
