/* ─────────────────────────────────────────────────────────────────────────
   Ditto Vault — landing page design tokens
   Dark substrate. Modern grotesk + technical mono. Single accent.
   Exported as CSS custom properties so a frontend engineer (Astro + Tailwind v4)
   can map them 1:1 into their @theme block.
   ───────────────────────────────────────────────────────────────────────── */

@import url("https://api.fontshare.com/v2/css?f[]=switzer@400,500,600,700&f[]=general-sans@400,500,600,700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&family=Geist:wght@400;500;600;700&family=Geist+Mono:wght@400;500&display=swap");

:root {
  /* — Substrate ————————————————————————————————————————— */
  --bg:            #0A0D12;   /* page background — deep navy-charcoal */
  --bg-elev-1:     #11151C;   /* section bands, raised surfaces */
  --bg-elev-2:     #161B24;   /* cards, tiles */
  --bg-elev-3:     #1C222D;   /* hover, code blocks */
  --bg-gated:      #0E1116;   /* slightly cooler — Section 4 marker */

  /* — Hairlines, dividers ————————————————————————————————— */
  --line:          rgba(255, 255, 255, 0.07);
  --line-strong:   rgba(255, 255, 255, 0.12);
  --line-soft:     rgba(255, 255, 255, 0.04);

  /* — Type — high contrast on dark ——————————————————————————— */
  --text:          #ECEFF4;
  --text-2:        rgba(236, 239, 244, 0.72);
  --text-3:        rgba(236, 239, 244, 0.50);
  --text-4:        rgba(236, 239, 244, 0.32);
  --text-on-acc:   #0A0D12;

  /* — Accent ————————————————————————————————————————— */
  /* default: controlled green — institutional, not crypto-summer */
  --accent:        #5BD982;
  --accent-2:      #B0EFC4;
  --accent-soft:   rgba(91, 217, 130, 0.12);
  --accent-line:   rgba(91, 217, 130, 0.32);

  --warn:          #E8A85B;
  --danger:        #E86A5B;

  /* — Type stacks ——————————————————————————————————————— */
  --font-sans:     "Switzer", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono:     "JetBrains Mono", "SFMono-Regular", "Menlo", monospace;
  --font-display:  var(--font-sans);

  /* — Type scale (1440px desktop baseline) ————————————————————— */
  --t-eyebrow:     11px;     /* mono section labels */
  --t-meta:        12px;
  --t-body-s:      13px;
  --t-body:        15px;
  --t-body-l:      17px;
  --t-h6:          14px;
  --t-h5:          18px;
  --t-h4:          24px;
  --t-h3:          32px;
  --t-h2:          52px;
  --t-h1:          84px;     /* hero headline desktop */
  --t-display:     132px;    /* watermarks, key glyphs */

  /* — Spacing ———————————————————————————————————————— */
  --sp-1:  4px;
  --sp-2:  8px;
  --sp-3:  12px;
  --sp-4:  16px;
  --sp-5:  20px;
  --sp-6:  24px;
  --sp-7:  32px;
  --sp-8:  40px;
  --sp-9:  48px;
  --sp-10: 64px;
  --sp-11: 80px;
  --sp-12: 96px;
  --sp-13: 128px;

  /* — Radii ————————————————————————————————————————— */
  --r-0:  0;
  --r-1:  2px;
  --r-2:  4px;
  --r-3:  6px;
  --r-4:  10px;
  --r-pill: 999px;

  /* — Page gutter ————————————————————————————————————— */
  --gutter-desktop: 80px;
  --gutter-mobile:  20px;

  --max-w: 1280px;

  /* — Easing curves (Emil Kowalski design-engineering principles) ———————
     The built-in CSS easings are too weak. These have the punch that makes
     animations feel intentional. Use --ease-out for entering/exiting UI,
     --ease-in-out for elements moving on screen, --ease-drawer for iOS-like
     drawer-and-modal physics. */
  --ease-out:      cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out:   cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer:   cubic-bezier(0.32, 0.72, 0, 1);
}

/* ─────────────────────────────────────────────────────────────────────────
   Base
   ───────────────────────────────────────────────────────────────────────── */

.ditto-root,
.ditto-root * {
  box-sizing: border-box;
}

.ditto-root {
  width: 100%;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "ss02", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-variant-ligatures: none;
  position: relative;
  overflow: hidden;
}

.ditto-root.density-airy   { --density: 1.18; }
.ditto-root.density-regular{ --density: 1.00; }
.ditto-root.density-tight  { --density: 0.86; }

/* Type pairings — toggled via class on .ditto-root */
/* Default pairing uses Geist Mono (less reflex than JetBrains, which lands
   on most "AI design" font lists). Geist Mono is already imported. */
.ditto-root.type-switzer    { --font-sans: "Switzer", -apple-system, sans-serif; --font-mono: "Geist Mono", "JetBrains Mono", monospace; }
.ditto-root.type-geist      { --font-sans: "Geist", -apple-system, sans-serif;   --font-mono: "Geist Mono", monospace; }
.ditto-root.type-generalsans{ --font-sans: "General Sans", sans-serif;            --font-mono: "Geist Mono", monospace; }

/* ─────────────────────────────────────────────────────────────────────────
   Atomic utilities
   ───────────────────────────────────────────────────────────────────────── */

.mono {
  font-family: var(--font-mono);
  font-feature-settings: "ss01" off;
  letter-spacing: 0;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--t-eyebrow);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}

.eyebrow .slash { color: var(--accent); margin-right: 8px; font-weight: 400; }
.eyebrow .num   { color: var(--accent); margin-right: 10px; }
.eyebrow .div   { color: var(--text-4); margin: 0 8px; }
.eyebrow .dim   { color: var(--text-4); }

.headline {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.034em;
  line-height: 0.92;
  color: var(--text);
  text-wrap: balance;
}

.headline-accent {
  color: var(--accent);
}

.headline-soft {
  color: var(--text-3);
}

.lede {
  font-size: var(--t-body-l);
  color: var(--text-2);
  line-height: 1.5;
  letter-spacing: -0.005em;
  max-width: 56ch;
  text-wrap: pretty;
}

/* Section heading — used Section 2..6 */
.s-heading {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--t-h2);
  line-height: 1.04;
  letter-spacing: -0.022em;
  color: var(--text);
  text-wrap: balance;
}

/* Section numeric anchor — replaces the repeated mono eyebrow across
   sections 2–6. A single confident numeric that doubles as the section
   counter; one strong kicker per surface beats five tiny ones. */
.section-anchor {
  font-family: var(--font-mono);
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.85;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  margin-bottom: 6px;
}
.is-mobile .section-anchor { font-size: 40px; }

/* ─────────────────────────────────────────────────────────────────────────
   Buttons
   ───────────────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 40px;
  padding: 0 18px;
  border-radius: var(--r-3);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1;
  cursor: pointer;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  /* Emil: button press = 100–160ms, ease-out. Property-specific (no `all`). */
  transition:
    background 180ms var(--ease-out),
    border-color 180ms var(--ease-out),
    color 180ms var(--ease-out),
    transform 140ms var(--ease-out);
  white-space: nowrap;
  text-decoration: none;
}
/* Emil: scale(0.97) on :active gives the "the UI heard me" feedback. */
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--accent);
  color: var(--text-on-acc);
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-secondary:hover { border-color: rgba(255,255,255,0.28); background: rgba(255,255,255,0.03); }

.btn-ghost {
  color: var(--text-2);
  padding: 0 12px;
}
.btn-ghost:hover { color: var(--text); }

.btn .arrow { display: inline-block; transition: transform 160ms ease; }
.btn:hover .arrow { transform: translateX(2px); }

.btn-lg { height: 48px; padding: 0 22px; font-size: 15px; border-radius: 8px; }

/* ─────────────────────────────────────────────────────────────────────────
   Badges, chips, pills
   ───────────────────────────────────────────────────────────────────────── */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 8px;
  border-radius: var(--r-2);
  border: 1px solid var(--line-strong);
  background: var(--bg-elev-2);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: 0;
  white-space: nowrap;
}

.badge-accent {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent);
}

.badge-warn {
  border-color: rgba(232, 168, 91, 0.28);
  background: rgba(232, 168, 91, 0.08);
  color: var(--warn);
}

.badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.kbd-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--r-2);
  border: 1px solid var(--line-strong);
  background: var(--bg-elev-2);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-2);
}

/* ─────────────────────────────────────────────────────────────────────────
   Hairline grid — subtle vertical guides on full sections
   ───────────────────────────────────────────────────────────────────────── */

.hairgrid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line-soft) 1px, transparent 1px);
  background-size: calc(100% / 12) 100%;
  mask-image: linear-gradient(to bottom, transparent, black 12%, black 88%, transparent);
}

.hairgrid-h {
  background-image:
    linear-gradient(to bottom, var(--line-soft) 1px, transparent 1px);
  background-size: 100% 80px;
}

/* Edge lines that frame each section's content column */
.frame-edge {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line);
}
.frame-edge.left  { left:  var(--gutter-desktop); }
.frame-edge.right { right: var(--gutter-desktop); }

/* ─────────────────────────────────────────────────────────────────────────
   Stat row
   ───────────────────────────────────────────────────────────────────────── */

.stat-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 36px;
  padding: 8px 0 4px;
}

.stat {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}
.stat + .stat::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: var(--line-soft);
}
.stat:first-child .stat-value {
  font-size: 44px;
  color: var(--accent);
}

.stat-value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ─────────────────────────────────────────────────────────────────────────
   Mobile variants — applied when wrapped in .is-mobile
   ───────────────────────────────────────────────────────────────────────── */

.is-mobile {
  --gutter-desktop: var(--gutter-mobile);
  --t-h1: 44px;
  --t-h2: 30px;
  --t-h3: 22px;
  --t-h4: 18px;
  --t-body-l: 15px;
}

.is-mobile .stat { padding: 14px 16px 16px; }
.is-mobile .stat-value { font-size: 20px; }
.is-mobile .btn-lg { height: 44px; padding: 0 18px; }

/* ─────────────────────────────────────────────────────────────────────────
   Tweaks-only — accent overrides applied at runtime
   ───────────────────────────────────────────────────────────────────────── */

.ditto-root.accent-green   { --accent: #5BD982; --accent-2: #B0EFC4; --accent-soft: rgba(91,217,130,0.12);  --accent-line: rgba(91,217,130,0.32); }
.ditto-root.accent-teal    { --accent: #2DD4BF; --accent-2: #99F0E2; --accent-soft: rgba(45,212,191,0.12);  --accent-line: rgba(45,212,191,0.32); }
.ditto-root.accent-blue    { --accent: #6EA8FF; --accent-2: #B8D2FF; --accent-soft: rgba(110,168,255,0.12); --accent-line: rgba(110,168,255,0.32); }
.ditto-root.accent-bone    { --accent: #E8E4D9; --accent-2: #F5F2EA; --accent-soft: rgba(232,228,217,0.10); --accent-line: rgba(232,228,217,0.28); --text-on-acc: #0A0D12; }

/* Section 4 gated treatment — controlled by class on the section element */
.gated-soft   { --gated-tint: rgba(232,168,91,0.04); }
.gated-strong { --gated-tint: rgba(232,168,91,0.07); }

/* Accent glow — used in the hero behind the headline / visual */
.glow-accent {
  position: absolute;
  pointer-events: none;
  width: 820px;
  height: 820px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 60%);
  filter: blur(40px);
  opacity: 0.9;
}

/* Dotted grid — ambient texture for hero */
.dotgrid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at center, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, black 30%, transparent 100%);
}

/* Decorative noise / texture (very subtle) */
.noise::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/></svg>");
  mix-blend-mode: overlay;
  opacity: 0.025;
  z-index: 0;
}

/* ─────────────────────────────────────────────────────────────────────────
   Production overrides — single-page landing (not the design canvas)
   The design-canvas mockup uses fixed-height artboards (overflow:hidden).
   In production the page is a single scrollable column.
   ───────────────────────────────────────────────────────────────────────── */

html, body {
  height: auto;
  overflow-x: hidden;
}

body > #root > .ditto-root {
  height: auto;
  min-height: 100vh;
  overflow: visible;
}

/* Sections may set position:relative and overflow rules per-section; we
   let them flow naturally below. Hero needs its decorative glow to stay
   clipped inside the hero box so it doesn't bleed into the next section. */
body > #root > .ditto-root > header#hero {
  position: relative;
  overflow: hidden;
  min-height: min(100vh, 880px);
  display: flex;
  flex-direction: column;
}
@media (max-width: 767px) {
  body > #root > .ditto-root > header#hero {
    min-height: auto;
  }
}

/* Anchor offsets — small gap so smooth-scroll lands cleanly under any
   future sticky nav. */
section[id], header[id] { scroll-margin-top: 16px; }

/* Defensive viewport-based mobile scaling, in case the React-applied
   `.is-mobile` class hasn't been added yet (e.g. before hydration). */
@media (max-width: 767px) {
  .ditto-root {
    --gutter-desktop: var(--gutter-mobile);
    --t-h1: 44px;
    --t-h2: 30px;
    --t-h3: 22px;
    --t-h4: 18px;
    --t-body-l: 15px;
  }
  .ditto-root .stat { padding: 14px 16px 16px; }
  .ditto-root .stat-value { font-size: 20px; }
  .ditto-root .btn-lg { height: 44px; padding: 0 18px; }
  /* Hero — drop down to single column on mobile if Hero (desktop) ever
     renders below the breakpoint (e.g. during resize) */
  .ditto-root header#hero > div > div { grid-template-columns: 1fr !important; gap: 32px !important; }
}

/* Selection color */
.ditto-root ::selection { background: var(--accent-soft); color: var(--accent); }

/* Visible focus rings for keyboard users */
.ditto-root button:focus-visible,
.ditto-root a:focus-visible,
.ditto-root input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Disabled button affordance for the waitlist submit during submission */
.ditto-root .btn[disabled] { opacity: 0.7; cursor: not-allowed; }
.ditto-root .btn-primary[disabled] { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-line); }

/* ─────────────────────────────────────────────────────────────────────────
   Floating-pill navigation
   Sticky at the top, narrow pill with backdrop-blur (purposeful, not
   decorative — gives legibility over scrolling content per Emil's "blur
   only on fixed/sticky" rule). Active section gets accent treatment.
   ───────────────────────────────────────────────────────────────────────── */
.ditto-nav-wrap {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 0 var(--gutter-desktop);
  pointer-events: none;
}
.ditto-nav-pill {
  pointer-events: auto;
  width: 100%;
  max-width: var(--max-w);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 8px 8px 20px;
  border: 1px solid var(--line);
  background: rgba(17, 21, 28, 0.72);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-radius: 999px;
  box-shadow: 0 10px 40px -20px rgba(0, 0, 0, 0.5);
  gap: 24px;
}
.nav-brand { display: inline-flex; align-items: center; text-decoration: none; }
.nav-section-left, .nav-section-right { display: flex; align-items: center; }
.nav-section-left { gap: 28px; min-width: 0; }
.nav-section-right { gap: 10px; }
.nav-links {
  display: flex;
  gap: 2px;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  font-size: 13px;
  color: var(--text-2);
  border-radius: var(--r-pill);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition:
    color 200ms var(--ease-out),
    background-color 200ms var(--ease-out);
}
.nav-link:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.nav-link.is-active {
  color: var(--accent);
  background: var(--accent-soft);
}
.nav-link-muted {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  font-size: 13px;
  color: var(--text-3);
  text-decoration: none;
  font-weight: 500;
  border-radius: var(--r-pill);
  transition: color 200ms var(--ease-out), background-color 200ms var(--ease-out);
}
.nav-link-muted:hover { color: var(--text); background: rgba(255, 255, 255, 0.03); }
.nav-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--text-3);
  text-decoration: none;
  transition: color 200ms var(--ease-out), background-color 200ms var(--ease-out);
}
.nav-link-icon:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }

/* Mobile floating bar + slide-down panel */
.ditto-nav-mobile-wrap {
  position: fixed;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 50;
  pointer-events: none;
}
.ditto-nav-mobile {
  pointer-events: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 8px 8px 16px;
  border: 1px solid var(--line);
  background: rgba(17, 21, 28, 0.85);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-radius: 22px;
  box-shadow: 0 8px 24px -16px rgba(0, 0, 0, 0.5);
}
.nav-mobile-actions { display: flex; align-items: center; gap: 6px; }
.nav-menu-toggle {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 200ms var(--ease-out), border-color 200ms var(--ease-out);
}
.nav-menu-toggle:hover { background: rgba(255, 255, 255, 0.04); }
.nav-mobile-panel {
  position: fixed;
  inset: 0;
  z-index: 49;
  background: rgba(5, 7, 11, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  padding: 84px 20px 32px;
  animation: nav-panel-in 280ms var(--ease-out);
}
@keyframes nav-panel-in {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}
.nav-mobile-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav-mobile-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.018em;
  color: var(--text-2);
  text-decoration: none;
  border-radius: 14px;
  transition: color 200ms var(--ease-out), background-color 200ms var(--ease-out);
}
.nav-mobile-list a:hover { background: rgba(255, 255, 255, 0.04); color: var(--text); }
.nav-mobile-list a.is-active { color: var(--accent); }
.nav-mobile-list a .nav-arrow {
  opacity: 0.5;
  transition: transform 200ms var(--ease-out), opacity 200ms var(--ease-out);
}
.nav-mobile-list a:hover .nav-arrow { opacity: 1; transform: translateX(2px); }
.nav-mobile-divider { height: 1px; background: var(--line); margin: 14px 18px; }
.nav-mobile-list .nav-mobile-secondary {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-3);
  padding: 12px 18px;
}

/* Hero needs extra top padding to clear the floating nav */
.ditto-root header#hero { padding-top: 56px; }
.ditto-root.is-mobile header#hero { padding-top: 64px; }

/* ─────────────────────────────────────────────────────────────────────────
   Footer dittonetwork.io callout
   A confident link back to the parent brand, with a small kicker. Bigger
   and more prominent than a footer-list link.
   ───────────────────────────────────────────────────────────────────────── */
.footer-back {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.018em;
  color: var(--text);
  text-decoration: none;
  transition: color 200ms var(--ease-out);
}
.footer-back .arrow {
  display: inline-block;
  transition: transform 240ms var(--ease-out);
}
.footer-back:hover { color: var(--accent); }
.footer-back:hover .arrow { transform: translateX(4px); }

.footer-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-4);
}

/* ─────────────────────────────────────────────────────────────────────────
   Hover affordances on tiles / cards
   Emil: high-frequency hovers should be minimal. A border-shift + tiny
   translate is enough. Property-specific transitions; no `all`. Border
   color picks up the accent-line so the tile reads as "hot" without
   committing to a heavy hover state.
   ───────────────────────────────────────────────────────────────────────── */
/* Hover lift via transform + tinted shadow (avoids inline-style border
   specificity conflicts and gives an accent-tinted glow on lift). */
.tile-hover {
  transition:
    transform 220ms var(--ease-out),
    box-shadow 220ms var(--ease-out);
}
.tile-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -12px rgba(91, 217, 130, 0.18);
}

/* ─────────────────────────────────────────────────────────────────────────
   Scroll-entry reveals
   Each section fades + translates up on first viewport entry. Custom curve
   is the "out-expo" feel (0.16, 1, 0.3, 1) — generous deceleration, no
   bounce. CSS-only; the JS just toggles the `.is-visible` class.
   ───────────────────────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  /* Emil's stronger ease-out — punchy entry, no sluggish first frames. */
  transition:
    opacity 800ms var(--ease-out),
    transform 800ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Page-grain — fixed, pointer-events-none. Adds a touch of physicality
   that pure CSS panels miss. Subtle enough to not affect contrast. */
.ditto-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 0.92 0 0 0 0 0.94 0 0 0 0 0.96 0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
  opacity: 0.06;
}
@media (prefers-reduced-motion: reduce) { .ditto-grain { display: none; } }
