/* ═══════════════════════════════════════════════════════
   IRISHMAN MANAGEMENT — Cinematic redesign
   ═══════════════════════════════════════════════════════ */

:root {
  --bg: #06090a;
  --bg-2: #0a0f11;
  --ink: #e9eef0;
  --ink-dim: #97a4a8;
  --line: rgba(233, 238, 240, 0.08);
  --emerald: #2fd682;
  --emerald-mid: #23b76c;
  --emerald-deep: #0e7a4a;
  --gold: #d8b45a;
  --danger: #e07a5f;
  --ink-on-emerald: #05130c;
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Inter", -apple-system, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --r-card: 18px;
  --r-inset: 10px;
  /* Three motion durations, full stop. The old six-token ramp (0.2/0.3/0.35/
     0.4/0.45/0.5) drew distinctions nobody can perceive — 0.4 vs 0.45 is noise.
     fast = micro-feedback (hover nudges), base = the default transition, slow =
     deliberate reveals/entrances. Every prior token collapsed onto these three. */
  --dur-fast: 0.2s;
  --dur-base: 0.35s;
  --dur-slow: 0.5s;
  /* Type scale: one set of body sizes, no hand-tuned half-pixels. --fs-1 (lede/
     body-large) down to --fs-5 (fine print). Replaces the twelve ad-hoc decimals
     (16.5 / 14.5 / 13.5 / 12.5 …) that had accreted across the sheet. The mono
     eyebrow micro-sizes (11/10/9px, letterspaced) stay their own system. */
  --fs-1: 16px;
  --fs-2: 15px;
  --fs-3: 14px;
  --fs-4: 13px;
  --fs-5: 12px;
  /* Reveal timing is now uniform-fast (~0.5s) across every verb — a thumb-scroll
     outran the old 0.9–1s "establishing/build/payoff" speeds, and the Pricing
     "payoff" hold was removed (prices must never be withheld below the fold), so
     the three-speed narrative-pacing tokens were retired. See the reveal block. */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(47, 214, 130, 0.28); color: #fff; }

img { max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* Keyboard accessibility: visible focus ring on every interactive element,
   plus a skip-to-content link for keyboard/screen-reader users so they aren't
   forced to tab through the entire nav on every single page. Uses
   :focus-visible so mouse/touch users never see a ring, only keyboard nav. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--emerald);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 10000;
  background: var(--bg-2);
  color: var(--ink);
  border: 1px solid var(--emerald);
  padding: 10px 18px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  border-radius: 4px;
  transition: top var(--dur-fast) var(--ease);
}
.skip-link:focus {
  top: 12px;
  outline: none;
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 48px); }

/* ══════════ SCROLL PROGRESS + CURSOR ══════════ */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--emerald), var(--gold));
  z-index: 900;
}
.cursor-glow {
  position: fixed; width: 520px; height: 520px; border-radius: 50%;
  pointer-events: none; z-index: 1;
  background: radial-gradient(circle, rgba(47, 214, 130, 0.07) 0%, transparent 65%);
  transform: translate(-50%, -50%);
  transition: opacity var(--dur-slow) var(--ease);
}
@media (hover: none) { .cursor-glow { display: none; } }

/* ══════════ NAV ══════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 800;
  padding: 22px 0;
  transition: padding var(--dur-slow) var(--ease), background var(--dur-slow) var(--ease), border-color var(--dur-slow) var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  padding: 12px 0;
  background: rgba(6, 9, 10, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
}
.nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 48px);
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo-mark {
  font-family: var(--font-display); font-weight: 700; font-size: 20px;
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid rgba(47, 214, 130, 0.4); border-radius: var(--r-inset);
  background: linear-gradient(135deg, rgba(47, 214, 130, 0.12), rgba(216, 180, 90, 0.08));
  color: var(--emerald);
}
.nav-logo-text { font-weight: 600; font-size: 15px; letter-spacing: 0.02em; }
.nav-logo-text em { font-style: normal; font-weight: 300; color: var(--ink-dim); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-size: 14px; font-weight: 400; color: var(--ink-dim);
  transition: color var(--dur-base) var(--ease); position: relative;
}
.nav-links a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -5px;
  width: 100%; height: 1px; background: var(--emerald);
  transform: scaleX(0); transform-origin: right;
  transition: transform var(--dur-slow) var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:not(.nav-cta):hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta {
  padding: 10px 20px; border-radius: 999px;
  border: 1px solid rgba(47, 214, 130, 0.5);
  color: var(--emerald) !important; font-weight: 500 !important;
  transition: background var(--dur-base) var(--ease), color var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease) !important;
}
.nav-cta:hover { background: var(--emerald); color: var(--ink-on-emerald) !important; box-shadow: 0 0 30px rgba(47, 214, 130, 0.35); }
.nav-burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-burger span { display: block; width: 26px; height: 2px; background: var(--ink); margin: 6px 0; transition: transform var(--dur-base) var(--ease), opacity var(--dur-base) var(--ease); }

@media (max-width: 840px) {
  .nav-burger { display: block; }
  .nav-links {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; justify-content: center;
    background: rgba(6, 9, 10, 0.97); backdrop-filter: blur(20px);
    opacity: 0; visibility: hidden; transition: opacity var(--dur-slow) var(--ease), visibility var(--dur-slow) var(--ease);
  }
  .nav-links.open { opacity: 1; visibility: visible; }
  .nav-links a { font-size: 22px; }
  .nav-burger.open span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-burger.open span:last-child { transform: translateY(-4px) rotate(-45deg); }
}

/* Reduced-transparency: on OSes/browsers asking for less transparency, drop the
   backdrop-blur (blurring over the animating aurora doubles GPU cost on mid-tier
   phones) and fall back to a near-solid nav/menu surface. */
@media (prefers-reduced-transparency: reduce) {
  .nav.scrolled {
    background: rgba(6, 9, 10, 0.98);
    backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  .nav-links {
    background: rgba(6, 9, 10, 0.99);
    backdrop-filter: none; -webkit-backdrop-filter: none;
  }
}

/* ══════════ HERO ══════════ */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(6, 9, 10, 0.9) 0%, transparent 55%),
    linear-gradient(to bottom, rgba(6, 9, 10, 0.35), transparent 30%, transparent 70%, var(--bg));
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 1180px; margin: 0 auto; padding: 140px clamp(20px, 5vw, 48px) 100px;
  width: 100%;
}
.hero-kicker {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.35em;
  color: var(--ink-dim); margin-bottom: 28px;
  display: flex; align-items: center; gap: 10px;
}
.kicker-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 12px var(--emerald);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.75); } }

.hero-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(42px, 7.4vw, 96px);
  line-height: 1.06; letter-spacing: -0.015em;
  margin-bottom: 32px;
}
.hero-title em { font-style: italic; }
.line-mask { display: block; overflow: hidden; padding-bottom: 0.08em; }
.line { display: block; }

/* Static emerald accent. The old infinite gradient shimmer (hero "AI automation",
   contact "that pays for itself") fought comprehension on the two lines that most
   need to be read — a solid accent reads better and stops the GPU compositing a
   loop nobody asked for. Kept as a class so the two accents stay a shared token. */
.shimmer { color: var(--emerald); }

.hero-sub {
  max-width: 560px; font-size: clamp(15px, 1.6vw, 18px);
  color: var(--ink-dim); margin-bottom: 44px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-scroll-hint {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.4em; color: var(--ink-dim);
}
.hero-scroll-line { width: 1px; height: 52px; background: var(--line); position: relative; overflow: hidden; }
.hero-scroll-line::after {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 50%;
  background: var(--emerald);
  animation: scroll-drip 2.2s var(--ease) infinite;
}
/* Animate transform, not `top`: keeps the drip on the compositor instead of
   forcing a layout + paint every frame. */
@keyframes scroll-drip { from { transform: translateY(-100%); } to { transform: translateY(220%); } }

/* ══════════ BUTTONS ══════════ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px; border-radius: 999px;
  font-family: var(--font-body); font-size: 14px; font-weight: 600;
  letter-spacing: 0.02em; cursor: pointer;
  transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease), background var(--dur-base) var(--ease), color var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease);
}
.btn-lg { padding: 18px 38px; font-size: 15px; }
.btn-primary {
  background: linear-gradient(120deg, var(--emerald), var(--emerald-mid));
  color: var(--ink-on-emerald);
  box-shadow: 0 8px 32px rgba(47, 214, 130, 0.25);
}
.btn-primary:hover { box-shadow: 0 12px 44px rgba(47, 214, 130, 0.45); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: rgba(47, 214, 130, 0.5); color: var(--emerald); }
.btn-arrow { transition: transform var(--dur-base) var(--ease); }
.btn:hover .btn-arrow { transform: translateX(5px); }

/* ══════════ MARQUEE ══════════ */
.marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; padding: 22px 0;
  background: var(--bg-2);
  position: relative; z-index: 3;
}
.marquee-track {
  display: flex; align-items: center; gap: 42px;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee:hover .marquee-track,
.marquee.paused .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--font-display); font-style: italic;
  font-size: 20px; color: var(--ink-dim); white-space: nowrap;
}
.marquee-track i { color: var(--emerald); font-style: normal; font-size: 13px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ══════════ SECTIONS ══════════ */
.section { padding: clamp(90px, 12vw, 150px) 0; position: relative; }

.section-head {
  display: flex; align-items: center; gap: 16px; margin-bottom: 30px;
}
.section-num {
  font-family: var(--font-mono); font-size: 12px; color: var(--emerald);
  border: 1px solid rgba(47, 214, 130, 0.3); border-radius: 6px;
  padding: 4px 9px;
}
/* Word-category eyebrow for standalone pages (GUIDE, CHECKLIST, CASE STUDY…).
   The .section-num badge is reserved for the homepage's 01–08 chapter numbers;
   word categories read as a lettered tag, not a boxed numeral. */
.section-tag {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--emerald);
  padding: 4px 12px; border-radius: 999px;
  border: 1px solid rgba(47, 214, 130, 0.28);
  background: rgba(47, 214, 130, 0.05);
}
.section-label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.35em;
  color: var(--ink-dim);
}
.section-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(32px, 4.6vw, 58px); line-height: 1.12;
  letter-spacing: -0.01em; margin-bottom: clamp(40px, 6vw, 70px);
}
.section-title em { font-style: italic; color: var(--ink-dim); }

/* ══════════ ABOUT ══════════ */
.about-statement {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(28px, 4.2vw, 52px); line-height: 1.25;
  letter-spacing: -0.01em;
  max-width: 980px; margin-bottom: clamp(40px, 6vw, 64px);
}
/* Emphasis spans in the About statement. It reveals as one block (word-by-word
   animation stippled body copy in and hurt legibility), so these classes only
   carry color/style. */
.about-statement .dim { color: var(--ink-dim); }
.about-statement .em { font-style: italic; color: var(--emerald); }

.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px);
  max-width: 980px;
}
.about-grid p { color: var(--ink-dim); font-size: var(--fs-1); }
@media (max-width: 720px) { .about-grid { grid-template-columns: 1fr; } }

.stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--r-card);
  overflow: hidden; margin-top: clamp(48px, 6vw, 72px);
}
.stat { background: var(--bg-2); padding: clamp(24px, 3vw, 40px); }
.stat-num {
  font-family: var(--font-display); font-size: clamp(30px, 4vw, 50px);
  font-weight: 600; color: var(--emerald);
}
/* Static "01" flourish — replaces the animated 0→1 count-up, which read as a
   loading glitch rather than a metric. Italic Playfair gives it a deliberate,
   editorial feel instead of a counter that barely moves. */
.stat-num.flourish { font-style: italic; letter-spacing: 0.01em; }
.stat-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.25em; color: var(--ink-dim); margin-top: 6px; text-transform: uppercase; }
.stat-sub { display: block; letter-spacing: 0.2em; color: var(--ink-dim); opacity: 0.7; margin-top: 4px; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ══════════ SERVICES ══════════ */
.services { background: linear-gradient(to bottom, var(--bg), var(--bg-2) 30%, var(--bg)); }
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
@media (max-width: 1020px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  position: relative;
  border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 34px 28px;
  background: rgba(10, 15, 17, 0.6);
  transition: border-color var(--dur-slow) var(--ease), box-shadow var(--dur-slow) var(--ease), transform var(--dur-fast) var(--ease);
  overflow: hidden;
}
.service-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%), rgba(47, 214, 130, 0.08), transparent 45%);
  opacity: 0; transition: opacity var(--dur-slow) var(--ease);
  pointer-events: none;
}
.service-card:hover { border-color: rgba(47, 214, 130, 0.35); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); }
.service-card:hover::before { opacity: 1; }
.service-icon {
  font-size: 26px; color: var(--emerald); margin-bottom: 20px;
  width: 54px; height: 54px; display: grid; place-items: center;
  border: 1px solid rgba(47, 214, 130, 0.25); border-radius: var(--r-card);
  background: rgba(47, 214, 130, 0.06);
}
/* Custom line-glyphs on one 24px grid — replaces the ad-hoc dingbat characters
   (◈ ✳ ⚙ …) that read as a fallback font, not a designed icon set. */
.service-icon svg { width: 26px; height: 26px; display: block; }
.marquee-track i svg { display: block; }
.service-card h3 {
  font-family: var(--font-display); font-size: 22px; font-weight: 600;
  margin-bottom: 12px; letter-spacing: -0.01em;
}
.service-card p { font-size: var(--fs-3); color: var(--ink-dim); margin-bottom: 18px; }
.service-card ul { list-style: none; }
.service-card li {
  font-size: var(--fs-4); color: var(--ink-dim);
  padding: 7px 0 7px 22px; position: relative;
  border-top: 1px solid var(--line);
}
.service-card li::before {
  content: "→"; position: absolute; left: 0; color: var(--emerald); font-size: 12px;
}
.service-learn-more {
  display: inline-block; margin-top: 14px; font-size: 13px; font-weight: 600;
  color: var(--emerald); border-bottom: 1px solid transparent; transition: border-color var(--dur-base) var(--ease);
}
.service-learn-more:hover { border-color: var(--emerald); }
.service-tag {
  position: absolute; top: 22px; right: 22px;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.2em;
  color: var(--gold); border: 1px solid rgba(216, 180, 90, 0.4);
  padding: 4px 9px; border-radius: 999px;
}

/* ══════════ PRICING ══════════ */
.pricing { background: var(--bg-2); }
.pricing-note {
  color: var(--ink-dim); font-size: var(--fs-3); margin-top: -20px; margin-bottom: clamp(40px, 6vw, 64px);
  max-width: 620px;
}
.pricing-tracks { display: flex; flex-direction: column; gap: clamp(40px, 5vw, 60px); }
.pricing-track-title {
  font-family: var(--font-display); font-size: clamp(20px, 2.4vw, 26px); font-weight: 600;
  margin-bottom: 4px;
}
.pricing-track-sub {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  color: var(--ink-dim); margin-bottom: 20px; text-transform: uppercase;
}
.pricing-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pricing-cards-2 { grid-template-columns: repeat(2, 1fr); max-width: 760px; }
@media (max-width: 900px) { .pricing-cards { grid-template-columns: 1fr; } }

.price-card {
  position: relative; border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 28px 24px; background: var(--bg);
  transition: border-color var(--dur-slow) var(--ease), transform var(--dur-base) var(--ease);
}
.price-card:hover { transform: translateY(-4px); border-color: rgba(47, 214, 130, 0.3); }
.price-card.featured {
  border-color: rgba(47, 214, 130, 0.5);
  background: linear-gradient(160deg, rgba(47, 214, 130, 0.07), transparent 60%), var(--bg);
  box-shadow: 0 20px 50px rgba(47, 214, 130, 0.08);
}
.price-tag {
  position: absolute; top: -11px; left: 24px;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.2em;
  color: var(--ink-on-emerald); background: var(--emerald);
  padding: 4px 10px; border-radius: 999px;
}
.price-name { display: block; font-size: 14px; color: var(--ink-dim); margin-bottom: 8px; }
.price-amount {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(26px, 3vw, 34px); color: var(--ink); margin-bottom: 14px;
}
.price-period { font-family: var(--font-body); font-size: 14px; font-weight: 400; color: var(--ink-dim); }
/* "Let's talk" is a call-to-scope, not a headline number — give it body-text
   weight so it stops competing with real Playfair prices at 34px. */
.price-amount.price-text {
  font-family: var(--font-body); font-weight: 500;
  font-size: clamp(17px, 1.9vw, 20px); color: var(--ink-dim);
}
.price-card p { font-size: var(--fs-4); color: var(--ink-dim); }
.pricing-cta { margin-top: clamp(40px, 5vw, 60px); }

/* ══════════ FAQ ══════════ */
.faq-list { max-width: 820px; }
.faq-item { padding: clamp(24px, 3vw, 32px) 0; border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item h3 {
  font-family: var(--font-display); font-size: clamp(17px, 2vw, 20px);
  font-weight: 600; margin-bottom: 10px;
}
.faq-item p { color: var(--ink-dim); font-size: var(--fs-3); }

.work-frame {
  max-width: 640px; color: var(--ink-dim); font-size: var(--fs-2);
  margin-bottom: clamp(36px, 5vw, 52px);
}
.work-group-label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.25em;
  color: var(--emerald); text-transform: uppercase; margin: clamp(28px, 4vw, 40px) 0 6px;
}
.work-list:first-of-type + .work-group-label { margin-top: clamp(28px, 4vw, 40px); }
.work-link { font-family: var(--font-mono); font-size: 12px; color: var(--emerald); transition: color var(--dur-base) var(--ease); }
.work-link:hover { color: var(--gold); }
.work-body h3 a { color: inherit; border-bottom: 1px solid transparent; transition: border-color var(--dur-base) var(--ease); }
.work-body h3 a:hover { border-color: var(--emerald); }

/* ══════════ WORK ══════════ */
.work-list { border-top: 1px solid var(--line); }
.work-item {
  display: grid; grid-template-columns: 70px 1fr auto;
  gap: clamp(18px, 3vw, 40px); align-items: center;
  padding: clamp(30px, 4vw, 46px) 10px;
  border-bottom: 1px solid var(--line);
  transition: background var(--dur-slow) var(--ease), padding-left var(--dur-slow) var(--ease);
}
.work-item:hover { background: rgba(47, 214, 130, 0.03); padding-left: 24px; }
.work-index { font-family: var(--font-mono); font-size: 13px; color: var(--emerald); }
.work-body h3 {
  font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 600; margin-bottom: 8px;
}
.wip {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.2em;
  vertical-align: middle; margin-left: 10px;
  color: var(--gold); border: 1px solid rgba(216, 180, 90, 0.4);
  padding: 3px 8px; border-radius: 999px;
}
.work-body p { font-size: var(--fs-3); color: var(--ink-dim); max-width: 620px; margin-bottom: 14px; }
.work-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.work-tags span {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em;
  color: var(--ink-dim); border: 1px solid var(--line);
  padding: 4px 10px; border-radius: 999px;
}
.work-year { font-family: var(--font-mono); font-size: 12px; color: var(--ink-dim); }
@media (max-width: 680px) {
  .work-item { grid-template-columns: 1fr; gap: 12px; }
  .work-year { order: -1; }
}

/* ══════════ PROCESS ══════════ */
.process { background: var(--bg-2); }
.process-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
}
@media (max-width: 1020px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process-grid { grid-template-columns: 1fr; } }
.process-step {
  border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 30px 26px; position: relative; overflow: hidden;
  background: var(--bg);
  transition: border-color var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}
.process-step:hover { border-color: rgba(47, 214, 130, 0.35); transform: translateY(-6px); }
.process-num {
  font-family: var(--font-display); font-size: 64px; font-weight: 700;
  line-height: 1; margin-bottom: 18px;
  background: linear-gradient(160deg, rgba(47, 214, 130, 0.55), rgba(47, 214, 130, 0.06));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.process-step h3 { font-family: var(--font-display); font-size: 21px; font-weight: 600; margin-bottom: 10px; }
.process-step p { font-size: var(--fs-3); color: var(--ink-dim); }

/* ══════════ PRINCIPLES ══════════ */
.principles-list { max-width: 860px; }
.principle {
  padding: clamp(26px, 3.4vw, 38px) 0;
  border-bottom: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: baseline;
}
.principle:first-child { border-top: 1px solid var(--line); }
.principle span {
  font-family: var(--font-display); font-size: clamp(20px, 2.4vw, 27px);
  font-weight: 600; font-style: italic;
}
.principle p { color: var(--ink-dim); font-size: var(--fs-2); }
@media (max-width: 680px) { .principle { grid-template-columns: 1fr; gap: 8px; } }

/* ══════════ CONTACT ══════════ */
.contact { overflow: hidden; }
.contact-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.55; }
.contact-inner { position: relative; z-index: 2; }
.contact-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(36px, 5.6vw, 72px); line-height: 1.1;
  letter-spacing: -0.015em; margin-bottom: 26px;
}
.contact-sub { max-width: 560px; color: var(--ink-dim); font-size: var(--fs-1); margin-bottom: 40px; }

.lead-form { max-width: 560px; margin-bottom: 28px; }
.lead-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .lead-form-row { grid-template-columns: 1fr; } }
.lead-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.lead-field label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em;
  color: var(--ink-dim); text-transform: uppercase;
}
.lead-field input, .lead-field textarea, .lead-field select,
.roi-lead-row input[type="email"] {
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); border-radius: var(--r-inset);
  padding: 12px 14px; color: var(--ink); font-family: var(--font-body); font-size: var(--fs-3);
  transition: border-color var(--dur-base) var(--ease), background var(--dur-base) var(--ease);
  resize: vertical;
}
.lead-field select { appearance: none; cursor: pointer; }
.lead-field input:focus, .lead-field textarea:focus, .lead-field select:focus,
.roi-lead-row input[type="email"]:focus {
  outline: none; border-color: rgba(47, 214, 130, 0.5); background: rgba(47, 214, 130, 0.04);
}
.lead-field-hp {
  position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden;
}
.lead-form-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 6px; }
.lead-form-status { font-size: var(--fs-4); color: var(--ink-dim); }
.lead-form-status.success { color: var(--emerald); }
.lead-form-status.error { color: var(--danger); }
.contact-principal { margin-bottom: clamp(28px, 4vw, 40px); max-width: 62ch; }
.contact-principal-name { font-family: var(--font-display); font-size: clamp(18px, 2.2vw, 22px); color: var(--ink); margin-bottom: 8px; }
.contact-principal-bio { font-size: var(--fs-2); color: var(--ink-dim); line-height: 1.65; }
.contact-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: clamp(48px, 6vw, 72px); }
.contact-details {
  display: grid; grid-template-columns: repeat(3, auto); gap: clamp(24px, 4vw, 64px);
  border-top: 1px solid var(--line); padding-top: 34px;
  width: fit-content;
}
.contact-details > div { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.contact-details a:hover { color: var(--emerald); }
.cd-label { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.3em; color: var(--ink-dim); }
@media (max-width: 680px) { .contact-details { grid-template-columns: 1fr; } }

/* ══════════ CONTENT PAGE LAYOUT ══════════ */
/* Standalone content pages (guides, blog posts, tools) use this instead of an
   inline style="padding-top:…" attribute — kept as a class so the site-wide CSP
   doesn't need 'unsafe-inline' in style-src. */
.page-hero-pad { padding-top: clamp(140px, 16vw, 190px); }

/* ══════════ PROSE (landing/blog pages) ══════════ */
.prose { max-width: 720px; color: var(--ink-dim); font-size: var(--fs-1); line-height: 1.75; }
.byline {
  display: flex; align-items: center; gap: 10px; font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.08em; color: var(--ink-dim); text-transform: uppercase;
  margin-bottom: clamp(28px, 3.5vw, 38px);
}
.byline strong { color: var(--ink); font-weight: 600; }
.byline .dot { color: var(--emerald); }
.prose-lede {
  font-family: var(--font-display); font-style: italic; font-size: clamp(19px, 2.2vw, 23px);
  color: var(--ink); margin-bottom: clamp(32px, 4vw, 44px); line-height: 1.5;
}
.prose h2 {
  font-family: var(--font-display); font-weight: 600; color: var(--ink);
  font-size: clamp(22px, 2.6vw, 28px); margin: clamp(36px, 4vw, 48px) 0 16px;
  letter-spacing: -0.01em;
}
.prose p { margin-bottom: 20px; }
.prose ul { margin: 0 0 24px; padding-left: 4px; list-style: none; }
.prose li {
  padding: 10px 0 10px 24px; position: relative; border-top: 1px solid var(--line);
}
.prose li:last-child { border-bottom: 1px solid var(--line); }
.prose li::before { content: "→"; position: absolute; left: 0; color: var(--emerald); font-size: 13px; }
.prose li strong { color: var(--ink); }
.prose a { color: var(--emerald); border-bottom: 1px solid rgba(47, 214, 130, 0.3); transition: border-color var(--dur-base) var(--ease); }
.prose a:hover { border-color: var(--emerald); }
/* Anchor the CTA to the 720px reading column so it lines up with the prose on
   every content page (blog index, ROI calc, 404) instead of spanning full-width. */
.prose-cta { margin-top: clamp(40px, 5vw, 56px); max-width: 720px; }

/* ══════════ ROI CALCULATOR ══════════ */
.roi-calc {
  max-width: 640px; border: 1px solid var(--line); border-radius: var(--r-card);
  padding: clamp(24px, 4vw, 36px); background: var(--bg-2); margin-bottom: clamp(32px, 5vw, 48px);
}
.roi-inputs { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.roi-output {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  border-top: 1px solid var(--line); padding-top: 24px; margin-top: 20px;
}
@media (max-width: 640px) { .roi-output { grid-template-columns: 1fr; } }
.roi-stat { display: flex; flex-direction: column; gap: 6px; }
.roi-stat-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.15em; color: var(--ink-dim); text-transform: uppercase; }
.roi-stat-value { font-family: var(--font-display); font-size: clamp(22px, 3vw, 28px); font-weight: 700; color: var(--emerald); }
.roi-disclaimer { font-size: 12px; color: var(--ink-dim); opacity: 0.75; margin-top: 20px; font-style: italic; }
.roi-lead { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 24px; }
.roi-lead > label { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.15em; color: var(--ink-dim); text-transform: uppercase; margin-bottom: 10px; }
.roi-lead-row { display: flex; gap: 10px; flex-wrap: wrap; }
/* The ROI email input is the same field component as the contact form — it
   inherits `.lead-field input` styling (see the shared selector) so both form
   systems share one fill, one focus affordance. Only layout lives here. */
.roi-lead-row input[type="email"] { flex: 1 1 220px; min-width: 0; }
.roi-lead-row .btn { flex: 0 0 auto; }
.roi-lead .lead-form-status { display: block; margin-top: 10px; }
@media (max-width: 480px) { .roi-lead-row .btn { width: 100%; } }

/* ══════════ CALLOUT (honesty notes, case-study disclaimers) ══════════ */
.callout {
  border: 1px solid var(--line); border-left: 3px solid var(--emerald); border-radius: var(--r-inset);
  padding: clamp(16px, 2.4vw, 22px) clamp(18px, 2.6vw, 26px); background: var(--bg-2);
  margin: clamp(28px, 3.5vw, 40px) 0; font-size: var(--fs-3); color: var(--ink-dim); line-height: 1.7;
}
.callout strong { color: var(--ink); }

/* ══════════ FOOTER ══════════ */
.footer { border-top: 1px solid var(--line); padding: 56px 0 40px; background: var(--bg-2); }
.footer-inner {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px;
}
.footer-brand { display: flex; gap: 16px; align-items: flex-start; }
.footer-brand p { font-size: var(--fs-4); color: var(--ink-dim); line-height: 1.7; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: var(--fs-4); color: var(--ink-dim); transition: color var(--dur-base) var(--ease); width: fit-content; }
.footer-links a:hover { color: var(--emerald); }
.footer-meta p { font-size: var(--fs-5); color: var(--ink-dim); }
.footer-meta p + p { margin-top: 6px; }
@media (max-width: 720px) { .footer-inner { grid-template-columns: 1fr; } }

/* ══════════ REVEAL ANIMATIONS ══════════ */
/* Progressive enhancement: content is fully visible by default. Only once JS
   has added `.js-enabled` do the reveal states hide, then re-show on scroll.
   This keeps the whole funnel visible if JS is disabled, slow, or fails. */
/* Reveal durations cut to ~0.4s: a thumb-scroll outruns a 900ms fade, so the old
   timings left elements still animating below the fold. Faster motion also makes
   the distinct reveal verbs (clip/drift/slide) legible instead of a slow blur. */
.reveal-up { transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease); }
.reveal-line { transition: transform var(--dur-slow) var(--ease); }
/* Extra reveal verbs so the page doesn't animate on a single note. */
.reveal-clip { transition: clip-path var(--dur-slow) var(--ease), opacity var(--dur-slow) var(--ease); }
.reveal-drift { transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease); }

/* ── The single signature gesture (see BUSINESS_PLAN "Narrative pacing") ──
   reveal-slide: the Work(03) list slides in horizontally — the one real
   directional move on the page, held a touch longer than ambient reveals so it
   still reads as a deliberate beat. Never used on funnel copy. */
.reveal-slide { transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease); }

.js-enabled .reveal-up { opacity: 0; transform: translateY(36px); }
.js-enabled .reveal-line { transform: translateY(110%); }
.js-enabled .reveal-clip { clip-path: inset(0 0 100% 0); opacity: 0.4; }
.js-enabled .reveal-drift { opacity: 0; transform: translateX(-44px); }
.js-enabled .reveal-slide { opacity: 0; transform: translateX(-64px); }

.reveal-up.in { opacity: 1; transform: none; }
.reveal-line.in { transform: none; }
.reveal-clip.in { clip-path: inset(0 0 0 0); opacity: 1; }
.reveal-drift.in { opacity: 1; transform: none; }
.reveal-slide.in { opacity: 1; transform: none; }

[data-delay="1"] { transition-delay: 0.12s; }
[data-delay="2"] { transition-delay: 0.24s; }
[data-delay="3"] { transition-delay: 0.36s; }
[data-delay="4"] { transition-delay: 0.48s; }
[data-delay="5"] { transition-delay: 0.6s; }

/* On phones the thumb-scroll outruns a 0.5s reveal, so every scroll verb only
   ever showed absence below the fold — AND the expensive ones (clip-path
   compositing, the 5-card horizontal slide, the masked hero-line slide) cost
   real frames on mid-tier hardware for motion nobody perceives. Render EVERY
   reveal verb static under 768px: no fade, no clip, no slide, no line-mask.
   Content is simply present. (Prior versions exempted clip/slide/line and lied
   about it in this comment — now fixed.) */
@media (max-width: 768px) {
  .reveal-up, .reveal-line, .reveal-clip, .reveal-drift, .reveal-slide,
  .js-enabled .reveal-up, .js-enabled .reveal-line, .js-enabled .reveal-clip,
  .js-enabled .reveal-drift, .js-enabled .reveal-slide {
    opacity: 1; transform: none; clip-path: none; transition: none;
  }
}

/* ══════════ AMBIENT ANIMATION GATING ══════════ */
/* When a section carrying looping CSS animations (hero kicker pulse, scroll-drip)
   scrolls off-screen, JS adds `.anim-paused` so the GPU isn't compositing
   animations nobody can see. Re-armed on scroll back in. (`.shimmer` is a static
   emerald accent since round 4 — no animation to pause, so it's not listed.) */
.anim-paused .kicker-dot,
.anim-paused .hero-scroll-line::after { animation-play-state: paused; }

/* ══════════ REDUCED MOTION ══════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal-up, .reveal-line, .reveal-clip, .reveal-drift, .reveal-slide,
  .js-enabled .reveal-up, .js-enabled .reveal-line,
  .js-enabled .reveal-clip, .js-enabled .reveal-drift,
  .js-enabled .reveal-slide {
    opacity: 1; transform: none; clip-path: none;
  }
  .hero-canvas, .contact-canvas, .cursor-glow { display: none; }
}
