/* =========================================================
   G Squared v2 — styles
   Tokens + base + sections
   ========================================================= */

:root {
  --ink: #0A0A0A;
  --paper: #F6F4F0;
  --white: #FFFFFF;
  --muted: #525252;
  --subtle: #8A8A8A;
  --hairline: #ECECEC;
  --border-strong: #D9D9D9;
  --accent: #0A0A0A;
  --accent-soft: #525252;
  --dark-bg: #0A0A0A;
  --dark-card: #121212;
  --dark-border: #1F1F1F;
  --dark-body: #A3A3A3;
  --dark-ink: #FAFAFA;

  --ff-display: "Fraunces", Georgia, serif;
  --ff-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-pill: 999px;

  --max: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-y: clamp(80px, 11vw, 160px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ff-body);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

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

/* =========================================================
   Typography
   ========================================================= */
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--subtle);
  margin: 0 0 20px;
}

.section-title, .hero-title, .contact-title {
  font-family: var(--ff-display);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin: 0;
  color: var(--ink);
}

.section-title { font-size: clamp(40px, 6.5vw, 88px); }
.hero-title { font-size: clamp(56px, 10vw, 148px); font-weight: 400; }
.contact-title { font-size: clamp(44px, 7vw, 108px); }

em, .accent-italic {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

/* Hand-drawn scribble underline — evokes the logo's charcoal texture */
.scribbled {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.scribbled em { position: relative; z-index: 1; }
.scribble-underline {
  position: absolute;
  left: -3%;
  right: -3%;
  width: 106%;
  bottom: -0.08em;
  height: 0.28em;
  pointer-events: none;
  overflow: visible;
}
.agg-scribble {
  position: static;
  width: max-content;
  display: block;
  height: 16px;
  margin-top: 6px;
}

.section-sub {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--muted);
  max-width: 56ch;
  margin: 24px 0 0;
  line-height: 1.55;
}

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  width: 100%;
  padding: 0 8px;
  background: transparent;
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }

/* Single morphing container — matches tailark HeroHeader reference:
   `transition-all duration-300` on all properties at once. */
.header-inner {
  position: relative;
  max-width: 1152px; /* max-w-6xl */
  margin: 8px auto 0;
  padding: 16px 48px; /* lg:py-4 lg:px-12 */
  display: flex;
  align-items: center;
  justify-content: space-between; /* logo left, cta right — nav is absolutely centered */
  gap: 24px;
  border-radius: 0;
  border: 1px solid rgba(10, 10, 10, 0);
  background: rgba(246, 244, 240, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: all 800ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Scrolled: pill — narrower, padded down, translucent glass */
.site-header.is-scrolled .header-inner {
  max-width: 896px; /* max-w-4xl */
  padding: 12px 20px; /* lg:px-5 */
  border-radius: 16px; /* rounded-2xl */
  background: rgba(246, 244, 240, 0.5); /* bg-background/50 */
  border-color: rgba(10, 10, 10, 0.08);
  backdrop-filter: blur(16px); /* backdrop-blur-lg */
  -webkit-backdrop-filter: blur(16px);
}

@media (max-width: 1023px) {
  .header-inner { padding: 12px 24px; } /* px-6 on mobile */
  .site-header.is-scrolled .header-inner { padding: 10px 20px; }
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--ff-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.brand-logo {
  height: 40px;
  width: auto;
  display: block;
}
.brand-logo-dark {
  filter: invert(1);
  height: 56px;
}
.brand-word { color: var(--muted); font-weight: 400; }

/* Nav centered BETWEEN logo and CTA — equal visual margins on both sides */
.site-nav {
  margin-left: auto;
  margin-right: auto;
  display: flex;
  gap: 32px;
}
.site-nav a {
  font-size: 14px;
  color: #7b7b7b;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
  transition: color .2s ease;
}
.site-nav a:hover { color: var(--accent); }
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 1px;
  background: #7b7b7b;
  transition: right .25s ease;
}
.site-nav a:hover::after { right: 0; }

.nav-cta {
  border: 1px solid var(--ink);
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 500;
  transition: all .25s ease;
}
.nav-cta:hover { border-color: var(--accent); color: var(--accent); }

/* Light nav over dark sections */
.site-header.on-dark .site-nav a,
.site-header.on-dark .brand-mark,
.site-header.on-dark .nav-cta { color: #fff; }
.site-header.on-dark .site-nav a::after { background: rgba(255,255,255,0.6); }
.site-header.on-dark .nav-cta { border-color: rgba(255,255,255,0.6); }
.site-header.on-dark.is-scrolled .header-inner { background: rgba(0,0,0,0.35); border-color: rgba(255,255,255,0.12); }
.site-header.on-dark .brand-logo { filter: invert(1) brightness(1.2); }

@media (max-width: 720px) {
  .site-nav { display: none; }
  .header-inner { gap: 16px; }
}

/* =========================================================
   Buttons
   ========================================================= */
.btn-primary, .btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 500;
  transition: all .28s ease;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--ink);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-ghost .arrow {
  transition: transform .25s ease;
}
.btn-ghost:hover .arrow { transform: translateX(4px); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  padding: clamp(56px, 10vw, 120px) var(--gutter) clamp(40px, 6vw, 80px);
  max-width: var(--max);
  margin: 0 auto;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
}
.hero-copy { max-width: 720px; }
.hero-title { margin: 0 0 28px; }
.hero-sub {
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--muted);
  max-width: 58ch;
  margin: 0 0 32px;
  line-height: 1.55;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
  color: var(--subtle);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.hero-meta span { position: relative; padding-right: 20px; }
.hero-meta span:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 4px; height: 4px;
  background: var(--accent);
  border-radius: 50%;
  transform: translateY(-50%);
}

.hero-asset {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
}
.asset-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.asset-placeholder svg {
  width: 100%;
  height: 100%;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-asset { max-width: 480px; margin: 0 auto; }
}

/* Aggregate bar */
.aggregate-bar {
  margin-top: clamp(56px, 8vw, 100px);
  padding: 40px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 40px;
  align-items: center;
}
.agg-lead { position: relative; }
.agg-figure {
  display: block;
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(44px, 6vw, 80px);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
  width: max-content;
  font-variant-numeric: tabular-nums;
}
.agg-label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.agg-supports {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.agg-supports > div {
  border-left: 1px solid var(--hairline);
  padding-left: 20px;
}
.agg-supports strong {
  display: block;
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(28px, 3.5vw, 44px);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}
.agg-supports span {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}
@media (max-width: 760px) {
  .aggregate-bar { grid-template-columns: 1fr; }
  .agg-supports { grid-template-columns: 1fr 1fr; }
}

/* =========================================================
   Marquee
   ========================================================= */
.marquee {
  overflow: hidden;
  border-bottom: 1px solid var(--hairline);
  padding: 20px 0;
  background: var(--paper);
}
.marquee-track {
  display: inline-flex;
  gap: 32px;
  white-space: nowrap;
  animation: marquee 40s linear infinite;
  font-family: var(--ff-display);
  font-style: italic;
  font-size: clamp(20px, 2.2vw, 28px);
  color: var(--ink);
}
.marquee-track span:nth-child(even) { color: var(--accent); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* =========================================================
   Sections (shared)
   ========================================================= */
.section {
  padding: var(--section-y) var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
}
.section-paper { background: var(--paper); }

/* Tighten the gap between the Method accordion and the Results section */
.method-section { padding-top: calc(var(--section-y) * 0.75); padding-bottom: calc(var(--section-y) / 2); }
#work { padding-top: calc(var(--section-y) * 0.75); }
#results {
  padding-top: 140px;
  padding-bottom: 260px;
  max-width: none;
  margin: 0;
  padding-left: 0;
  padding-right: 0;
  background: linear-gradient(
    180deg,
    var(--paper) 0%,
    #000 90px,
    #000 calc(100% - 180px),
    var(--paper) 100%
  );
  color: #fff;
}
#results .section-header { max-width: 780px; margin-left: auto; margin-right: auto; padding-left: var(--gutter); padding-right: var(--gutter); text-align: center; box-sizing: border-box; }
#results .section-sub { margin-left: auto; margin-right: auto; color: rgba(255,255,255,0.75); }
#results .eyebrow { color: #fff; }
#results .section-title { color: #fff; }
#results .section-title em, #results em { color: #fff; }
#results .stat { border-top-color: rgba(255,255,255,0.2); }
#results .stat-figure { color: #fff; }
#results .stat-label { color: #fff; }
#results .stat-note { color: rgba(255,255,255,0.6); }
.section-dark {
  background: var(--dark-bg);
  color: var(--dark-ink);
  max-width: none;
  margin: 0;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.section-dark .section-title { color: var(--dark-ink); }
.section-dark .section-title em,
.section-dark em { color: #fff; }
.section-dark .section-sub { color: var(--dark-body); }
.section-dark .eyebrow { color: var(--dark-body); }

#services {
  max-width: none;
  margin: 0;
  padding-left: 0;
  padding-right: 0;
  padding-top: 160px;
  padding-bottom: 320px;
  background: linear-gradient(
    180deg,
    var(--paper) 0%,
    #000 90px,
    #000 calc(100% - 180px),
    var(--paper) 100%
  );
  color: #fff;
}
#services .services-grid { align-items: stretch; }
#services .service-card {
  background: #ffffff !important;
  border: 1px solid #ffffff !important;
  box-shadow: 0 10px 40px -15px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  opacity: 1 !important;
}
#services .service-card:hover {
  transform: translateY(-15px);
}
#services .service-num { color: var(--ink) !important; font-style: italic; opacity: 1 !important; }
#services .service-title { color: var(--ink) !important; opacity: 1 !important; }
#services .service-body { color: var(--muted) !important; opacity: 1 !important; }
#services .section-header,
#services .services-grid {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  box-sizing: border-box;
}

.section-header {
  max-width: 780px;
  margin-bottom: clamp(48px, 6vw, 80px);
}

/* =========================================================
   Method loop
   ========================================================= */
.method-section { position: relative; }
.method-loop {
  position: relative;
}
.method-connectors {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.6;
}
.connector-line {
  stroke-dashoffset: 0;
}
.method-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 32px);
  position: relative;
  z-index: 1;
}
.method-step {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: all .3s ease;
  position: relative;
  overflow: hidden;
}
.method-step::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(10, 10, 10, 0.04));
  opacity: 0;
  transition: opacity .3s ease;
}
.method-step:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 20px 40px -20px rgba(10, 10, 10, 0.12);
}
.method-step:hover::before { opacity: 1; }
.step-num {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 56px;
  color: var(--accent);
  opacity: 0.4;
  line-height: 1;
  margin-bottom: 20px;
}
.step-title {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.step-body {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}
@media (max-width: 960px) {
  .method-steps { grid-template-columns: repeat(2, 1fr); }
  .method-connectors { display: none; }
}
@media (max-width: 560px) {
  .method-steps { grid-template-columns: 1fr; }
}

/* Interactive image accordion — four method steps */
.method-accordion {
  display: flex;
  gap: 16px;
  height: 480px;
  width: 100%;
}
.accordion-item {
  position: relative;
  flex: 0 0 auto;
  width: 72px;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  border: 0;
  padding: 0;
  background: #1a1a1a;
  transition: width 700ms cubic-bezier(.4, 0, .2, 1);
  isolation: isolate;
}
.accordion-item.is-active {
  /* Fill remaining space: total - (3 inactive panels + 3 gaps) */
  width: calc(100% - (3 * 72px) - (3 * 16px));
}
.accordion-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: #1a1a1a;
  z-index: 0;
}

/* Numeral container — bleeds out of the top-left of each panel */
.accordion-numeral {
  position: absolute;
  top: -40px;
  left: 0;
  right: 0;
  height: 115%;
  pointer-events: none;
  opacity: 0;
  overflow: hidden;
  transition: opacity 600ms ease 200ms;
  z-index: 0;
}
.accordion-item.is-active .accordion-numeral { opacity: 1; }

.numeral-row {
  display: flex;
  align-items: flex-start;
  flex-wrap: nowrap;
  padding-left: 16px;
  white-space: nowrap;
}
.numeral-row .numeral-italic {
  font-family: 'Fraunces', 'Playfair Display', serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(280px, 34vw, 440px);
  line-height: 0.85;
  color: rgba(246, 244, 240, 0.10);
  user-select: none;
  flex: 0 0 auto;
}
.numeral-row .numeral-italic:first-child { color: #f6f4f0; }
/* Italic "4" has a taller ascender + wider flag than 1/2/3 — scale it down so it fits the box. */
.method-accordion .accordion-item:nth-child(4) .numeral-row .numeral-italic {
  font-size: clamp(230px, 28vw, 360px);
}
.accordion-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.10) 0%, rgba(10,10,10,0.70) 100%);
  z-index: 1;
}
/* Single caption that repositions + rotates between active/inactive states,
   matching the 21st.dev reference (300ms on a 700ms container ≈ 0.43 ratio,
   scaled here to 600ms on a 1400ms container). */
.accordion-caption {
  position: absolute;
  left: 50%;
  color: #f6f4f0;
  font-family: var(--ff-body);
  font-size: 27px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  bottom: 96px;
  transform: translateX(-50%) rotate(90deg);
  transform-origin: center;
  transition: all 300ms cubic-bezier(.4, 0, .2, 1);
  z-index: 2;
  pointer-events: none;
}
.accordion-item.is-active .accordion-caption {
  bottom: 24px;
  transform: translateX(-50%) rotate(0deg);
}

/* Short tagline — only visible when the panel is active */
.accordion-tagline {
  position: absolute;
  left: 50%;
  bottom: 72px;
  transform: translateX(-50%) translateY(6px);
  color: rgba(246, 244, 240, 0.72);
  font-family: var(--ff-body);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-align: center;
  opacity: 0;
  transition: opacity 300ms ease, transform 300ms ease;
  z-index: 2;
  pointer-events: none;
}
.accordion-item.is-active .accordion-tagline {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  transition-delay: 350ms;
}
@media (max-width: 860px) {
  .method-accordion {
    flex-direction: column;
    height: auto;
  }
  .accordion-item {
    width: 100%;
    height: 80px;
    transition: height 700ms cubic-bezier(.4, 0, .2, 1);
  }
  .accordion-item.is-active {
    width: 100%;
    height: 360px;
  }
  .accordion-caption {
    bottom: 50%;
    transform: translate(-50%, 50%) rotate(0deg);
  }
  .accordion-item.is-active .accordion-caption {
    bottom: 24px;
    transform: translateX(-50%) rotate(0deg);
  }
  .accordion-numeral { top: 0; height: 100%; }
  .numeral-row .numeral-italic { font-size: clamp(220px, 60vw, 320px); }
  .method-accordion .accordion-item:nth-child(4) .numeral-row .numeral-italic {
    font-size: clamp(180px, 50vw, 260px);
  }
}

/* =========================================================
   Stats grid
   ========================================================= */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 64px);
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding-left: clamp(48px, 8vw, 140px);
  padding-right: clamp(48px, 8vw, 140px);
  box-sizing: border-box;
}
.stat {
  border-top: 1px solid var(--ink);
  padding-top: 32px;
}
.stat:nth-child(2) { text-align: center; }
.stat:nth-child(3) { text-align: right; }
.stat-figure {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(64px, 9vw, 140px);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  margin-bottom: 24px;
}
.stat-label {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}
.stat-note {
  font-size: 13px;
  color: var(--subtle);
  line-height: 1.5;
}
@media (max-width: 720px) {
  .stat-grid { grid-template-columns: 1fr; }
  .stat, .stat:nth-child(2), .stat:nth-child(3) { text-align: center; }
}

/* =========================================================
   Case studies
   ========================================================= */
.case-list {
  display: grid;
  gap: clamp(20px, 3vw, 40px);
}
.case {
  padding: clamp(32px, 4vw, 56px);
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--accent);
  transition: transform .3s ease, box-shadow .3s ease;
}
.case:hover {
  transform: translateY(-15px);
  box-shadow: 0 24px 48px -28px rgba(10, 10, 10, 0.15);
}
.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--subtle);
  margin-bottom: 20px;
  align-items: center;
}
.case-tag { color: var(--accent); font-weight: 500; }
.case-year { margin-left: auto; }
.case-title {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(26px, 3.5vw, 44px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 20px;
}
.case-body {
  font-size: 16px;
  color: var(--muted);
  margin: 0 0 32px;
  max-width: 72ch;
  line-height: 1.6;
}
.case-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  justify-content: start;
}
.case-stats strong {
  display: block;
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(24px, 2.8vw, 36px);
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.case-stats span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--subtle);
}
@media (max-width: 560px) {
  .case-stats { grid-template-columns: 1fr 1fr; gap: 20px; }
}

/* =========================================================
   Services (dark)
   ========================================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.5vw, 40px);
}
.service-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  padding: 40px 32px;
  transition: all .3s ease;
}
.service-card:hover {
  border-color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.06);
  transform: translateY(-15px);
}
.service-num {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 44px;
  color: rgba(255,255,255,0.85);
  line-height: 1;
  margin-bottom: 24px;
}
.service-title {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 28px;
  color: #fff;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.service-body {
  font-size: 15px;
  color: rgba(255,255,255,0.78);
  line-height: 1.6;
  margin: 0;
}
@media (max-width: 900px) { .services-grid { grid-template-columns: 1fr; } }

/* =========================================================
   Founder
   ========================================================= */
.founder-section { background: var(--paper); }
.founder-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.founder-portrait {
  position: relative;
  max-width: 480px;
  border-radius: 36px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--hairline);
}
.portrait-placeholder {
  position: absolute;
  inset: 0;
}
.portrait-placeholder svg { width: 100%; height: 100%; }
.founder-photo {
  display: block;
  width: 100%;
  height: auto;
  transform: translate3d(0, var(--founder-parallax, 0px), 0);
  will-change: transform;
}
.founder-copy .section-title { margin-bottom: 24px; }
.founder-body {
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--muted);
  max-width: 56ch;
  line-height: 1.55;
  margin: 0 0 32px;
}
.founder-signature {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 22px;
  color: var(--ink);
  margin: 0 0 20px;
}
.founder-links {
  display: flex;
  align-items: center;
  gap: 16px;
}
.founder-links .founder-ig {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  color: var(--ink);
  transition: all .25s ease;
}
.founder-links .founder-ig:hover {
  background: var(--ink);
  color: var(--paper);
}
.founder-links .founder-contact-btn {
  display: inline-flex;
  align-items: center;
  padding: 11px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  font-weight: 500;
  transition: all .25s ease;
}
.founder-links .founder-contact-btn:hover {
  background: var(--accent);
  color: var(--paper);
}
@media (max-width: 840px) {
  .founder-grid { grid-template-columns: 1fr; }
  .founder-portrait { margin: 0 auto; }
}

/* =========================================================
   Testimonials
   ========================================================= */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.5vw, 32px);
}
.testimonial {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 36px 32px;
  margin: 0;
  transition: all .3s ease;
}
.testimonial:hover {
  border-color: var(--accent);
  transform: translateY(-15px);
}
.testimonial blockquote {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.4;
  color: var(--ink);
  margin: 0 0 28px;
  quotes: none;
}
.testimonial figcaption {
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
}
.testimonial figcaption strong {
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  display: block;
  margin-bottom: 4px;
}
.testimonial figcaption span {
  display: block;
  font-size: 12px;
  color: var(--subtle);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
@media (max-width: 960px) { .testimonial-grid { grid-template-columns: 1fr; } }

/* =========================================================
   Contact
   ========================================================= */
.contact { padding-bottom: clamp(80px, 10vw, 140px); }
.contact-inner { max-width: 860px; }
.contact-title { margin: 0 0 24px; }
.contact-sub {
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--muted);
  max-width: 56ch;
  margin: 0 0 48px;
  line-height: 1.55;
}
.contact-form {
  display: grid;
  gap: 20px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.contact-form label {
  display: block;
}
.contact-form label span {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--subtle);
  margin-bottom: 8px;
  font-weight: 500;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(10, 10, 10, 0.14);
}
.contact-form textarea { resize: vertical; }
.contact-form button { margin-top: 12px; justify-self: start; }
.form-status { font-size: 14px; color: var(--muted); margin: 0; }
.form-section-label {
  font-family: var(--ff-sans);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink);
  margin: 8px 0 -4px;
  padding-top: 8px;
  border-top: 1px solid var(--hairline);
}
.form-section-label:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.contact-form .checkbox-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
}
.contact-form .checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--ink);
}
.contact-form .checkbox-row span {
  font-size: 14px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
  font-weight: 400;
}
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  position: relative;
  width: calc(100% - clamp(16px, 2.5vw, 32px));
  max-width: none;
  margin: 0 auto;
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(255,255,255,0.08), rgba(255,255,255,0) 60%),
    linear-gradient(180deg, rgba(20,20,22,0.92) 0%, rgba(0,0,0,0.96) 100%);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  color: rgba(255,255,255,0.6);
  padding: clamp(56px, 7vw, 96px) clamp(24px, 4vw, 56px) 56px;
  border: 1px solid rgba(255,255,255,0.08);
  border-bottom: 0;
  border-radius: 28px 28px 0 0;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    inset 1px 0 0 rgba(255,255,255,0.06),
    inset -1px 0 0 rgba(255,255,255,0.06),
    0 -20px 60px -20px rgba(0,0,0,0.4);
}
.site-footer::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 60%;
  pointer-events: none;
  background:
    radial-gradient(80% 140px at 50% 0%, rgba(255,255,255,0.12), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,0.04), transparent 60%);
  mix-blend-mode: screen;
}
.site-footer::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, rgba(255,255,255,0.28), rgba(255,255,255,0.04) 40%, rgba(255,255,255,0) 100%);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
}
@media (min-width: 768px) {
  .site-footer { border-radius: 40px 40px 0 0; }
}
.footer-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(70%, 900px);
  height: 256px;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.08), transparent 70%);
  filter: blur(8px);
}
.footer-divider {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 33%;
  height: 1px;
  background: rgba(255,255,255,0.25);
  border-radius: 9999px;
  filter: blur(1px);
  pointer-events: none;
}
.footer-inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
}
.footer-brand .brand-logo {
  height: 40px;
  width: auto;
  filter: invert(1) brightness(1.2);
}
.footer-brand .footer-copy {
  font-family: var(--ff-sans);
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  margin: 28px 0 0;
  line-height: 1.5;
}
.footer-brand .footer-locale {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  margin: 4px 0 0;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.footer-col-label {
  font-family: var(--ff-sans);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.9);
  margin: 0 0 16px;
}
.footer-cols ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-cols a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  transition: color .3s ease;
}
.footer-cols a:hover { color: #fff; }
.footer-icon { flex-shrink: 0; }

[data-footer-reveal] {
  opacity: 0;
  transform: translateY(-15px);
  filter: blur(4px);
  transition: opacity .8s ease var(--footer-delay, 0s), transform .8s ease var(--footer-delay, 0s), filter .8s ease var(--footer-delay, 0s);
}
[data-footer-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
@media (prefers-reduced-motion: reduce) {
  [data-footer-reveal] { opacity: 1; transform: none; filter: none; transition: none; }
}
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr; gap: 48px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

/* =========================================================
   GSAP-controlled reveal states
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .header-inner { transition-duration: 800ms !important; }
  /* Preserve hero intro animations (typing, fade-up, frost build) per explicit design intent */
  .woven-hero .woven-char,
  .woven-hero .woven-cta { transition-duration: 1.2s !important; }
}

/* ======================================================
   CINEMATIC HERO
   ====================================================== */

.cinematic-hero {
  position: relative;
  width: 100%;
  background: var(--paper);
  overflow: hidden;
}

.cinematic-stage {
  position: relative;
  min-height: 100vh;
  padding: clamp(100px, 14vw, 160px) var(--gutter) clamp(80px, 10vw, 140px);
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(48px, 7vw, 96px);
}

/* --- Text wrapper --- */
.hero-text-wrapper {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  will-change: transform, opacity;
}

.hero-tagline {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(44px, 7vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0 0 28px;
  color: var(--ink);
}

.tagline-line {
  display: block;
  overflow: hidden;
}

.tagline-line-1 { font-weight: 500; }
.tagline-line-2 { font-weight: 400; }

.text-revenue {
  font-style: italic;
  font-weight: 600;
  background: linear-gradient(180deg, #0A0A0A 0%, #3A3A3A 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-subcopy {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.55;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 36px;
}

.cinematic-ctas {
  display: inline-flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

/* --- Main card --- */
.main-card {
  position: relative;
  width: min(92%, 1120px);
  aspect-ratio: 16 / 11;
  border-radius: 32px;
  background:
    radial-gradient(120% 80% at 20% 0%, rgba(255,255,255,0.04) 0%, transparent 60%),
    linear-gradient(180deg, #1A1A1A 0%, #050505 100%);
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.06) inset,
    0 60px 120px -30px rgba(0,0,0,0.55),
    0 20px 40px -10px rgba(0,0,0,0.35);
  color: #fff;
  will-change: transform;
}

.premium-depth-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      600px circle at var(--mouse-x, 50%) var(--mouse-y, 30%),
      rgba(255,255,255,0.08),
      transparent 40%
    );
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.card-grain {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/></svg>");
  pointer-events: none;
}

/* --- Initial card content (brand + tagline) --- */
.card-initial-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 24px;
  text-align: center;
  padding: 40px;
  z-index: 2;
  will-change: opacity, transform;
}

.brand-wordmark {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: clamp(72px, 13vw, 180px);
  letter-spacing: -0.04em;
  line-height: 1;
}

.text-silver-matte {
  background: linear-gradient(180deg, #F2F2F2 0%, #8A8A8A 55%, #3E3E3E 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 2px 8px rgba(255,255,255,0.08));
}

.card-tagline {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--ff-display);
  font-size: clamp(18px, 1.8vw, 26px);
  color: rgba(255,255,255,0.72);
  letter-spacing: -0.01em;
}

.card-tagline .italic { font-style: italic; color: rgba(255,255,255,0.95); }

/* --- iPhone mockup + badges --- */
.mockup-scroll-wrapper {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
  z-index: 3;
  opacity: 0;
  will-change: opacity, transform;
}

.iphone-bezel {
  position: relative;
  width: clamp(240px, 28vw, 340px);
  aspect-ratio: 9 / 19;
  background: linear-gradient(180deg, #1e1e1e 0%, #0b0b0b 100%);
  border: 1.5px solid rgba(255,255,255,0.08);
  border-radius: 42px;
  padding: 10px;
  box-shadow:
    0 40px 80px -20px rgba(0,0,0,0.7),
    0 0 0 1px rgba(255,255,255,0.04) inset;
}

.iphone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  background: #000;
  border-radius: 100px;
  z-index: 2;
}

.iphone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #0A0A0A 0%, #181818 100%);
  border-radius: 32px;
  padding: 44px 20px 24px;
  display: flex;
  flex-direction: column;
  color: #fff;
  overflow: hidden;
}

.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

.dash-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px rgba(255,255,255,0.8);
}

.dash-metric {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-top: 14px;
  font-family: var(--ff-display);
  font-weight: 500;
  letter-spacing: -0.03em;
}
.dash-prefix { font-size: 22px; color: rgba(255,255,255,0.6); }
.dash-value { font-size: 42px; color: #fff; }
.dash-suffix { font-size: 22px; color: rgba(255,255,255,0.6); margin-left: 2px; }

.dash-caption {
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  margin-top: 6px;
  letter-spacing: 0.02em;
}

.dash-ring-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 22px auto 18px;
}

.dash-ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-track {
  fill: none;
  stroke: rgba(255,255,255,0.08);
  stroke-width: 6;
}
.ring-progress {
  fill: none;
  stroke: #fff;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 326.7;
  stroke-dashoffset: 326.7;
}

.dash-ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.ring-value {
  font-family: var(--ff-display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.ring-label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-top: 2px;
}

.dash-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

.dash-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,0.75);
  padding: 8px 10px;
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.05);
}

.dash-pill {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: #fff;
  color: #0A0A0A;
  padding: 3px 8px;
  border-radius: 100px;
  font-weight: 600;
}

/* --- Floating badges --- */
.floating-ui-badge {
  position: absolute;
  display: flex;
  gap: 10px;
  align-items: center;
  background: rgba(255,255,255,0.96);
  color: #0A0A0A;
  padding: 12px 16px;
  border-radius: 14px;
  font-family: var(--ff-body);
  font-size: 13px;
  line-height: 1.3;
  box-shadow:
    0 12px 32px -8px rgba(0,0,0,0.4),
    0 0 0 1px rgba(255,255,255,0.5) inset;
  opacity: 0;
  will-change: transform, opacity;
}

.floating-ui-badge strong {
  display: block;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.floating-ui-badge span {
  display: block;
  color: rgba(10,10,10,0.55);
  font-size: 11px;
}

.badge-glyph {
  font-family: var(--ff-display);
  font-size: 20px;
  font-weight: 600;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #0A0A0A;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.badge-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #0A0A0A;
  box-shadow: 0 0 0 4px rgba(10,10,10,0.08);
  flex-shrink: 0;
}

.badge-mer { top: 18%; left: 6%; }
.badge-capi { bottom: 18%; right: 6%; }

/* --- Final CTA inside card --- */
.card-final-cta {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: clamp(40px, 6vw, 80px);
  z-index: 4;
  opacity: 0;
  pointer-events: none;
  will-change: opacity, transform;
}

.card-final-cta .final-eyebrow {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin: 0 0 18px;
}

.final-heading {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  color: #fff;
}
.final-heading em {
  font-style: italic;
  background: linear-gradient(180deg, #ffffff 0%, #a0a0a0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.final-sub {
  font-size: clamp(15px, 1.2vw, 17px);
  color: rgba(255,255,255,0.68);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.55;
}

.cinematic-cta.inverted {
  color: #fff;
  border-color: rgba(255,255,255,0.3);
}
.cinematic-cta.inverted:hover { border-color: #fff; }

@media (max-width: 760px) {
  .badge-mer { top: 4%; left: 4%; }
  .badge-capi { bottom: 4%; right: 4%; }
  .floating-ui-badge { font-size: 11px; padding: 10px 12px; }
  .main-card { aspect-ratio: 3 / 4; }
}

/* ======================================================
   CINEMATIC HERO — ambient motion
   ====================================================== */

/* Metric showcase (replaces iPhone mockup) */
.metric-showcase {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: clamp(30px, 5vw, 70px);
  z-index: 3;
  opacity: 0;
  will-change: opacity, transform;
}

.showcase-eyebrow {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin: 0 0 22px;
}

.showcase-number {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--ff-display);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.95;
  background: linear-gradient(180deg, #ffffff 0%, #9a9a9a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.showcase-prefix { font-size: clamp(40px, 5vw, 72px); opacity: 0.75; }
.showcase-value  { font-size: clamp(90px, 13vw, 200px); letter-spacing: -0.05em; }
.showcase-suffix { font-size: clamp(40px, 5vw, 72px); opacity: 0.75; margin-left: 4px; }

.showcase-caption {
  font-size: clamp(13px, 1.1vw, 15px);
  color: rgba(255,255,255,0.55);
  margin: 18px 0 36px;
  letter-spacing: 0.02em;
}

.showcase-pills {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.showcase-pill {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 14px 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  min-width: 140px;
  text-align: left;
  will-change: transform, opacity;
}
.showcase-pill strong {
  font-family: var(--ff-display);
  font-size: 24px;
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.02em;
}
.showcase-pill span {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
}

/* Metric ticker marquee */
.card-ticker {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 24%;
  overflow: hidden;
  z-index: 2;
  opacity: 0;
  mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
  pointer-events: none;
}

.ticker-track {
  display: inline-flex;
  gap: 28px;
  white-space: nowrap;
  animation: ticker-scroll 32s linear infinite;
  font-family: var(--ff-display);
  font-size: clamp(16px, 1.6vw, 22px);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.55);
  padding: 0 20px;
}

.ticker-track span { flex-shrink: 0; }
.ticker-sep {
  color: rgba(255,255,255,0.22);
  font-size: 0.7em;
  transform: translateY(-2px);
}

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ======================================================
   WOVEN LIGHT HERO
   ====================================================== */

.woven-hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
  /* Force canvas + buttons into the same compositing context so
     .woven-btn backdrop-filter can sample the WebGL canvas pixels */
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
}

.woven-canvas-mount {
  position: absolute;
  inset: 0;
  /* no z-index: avoids creating a stacking context that would prevent
     .woven-btn backdrop-filter from sampling the canvas pixels */
}
.woven-canvas-mount canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.woven-content {
  position: relative;
  /* no z-index: avoids creating a stacking context that would isolate the
     .woven-btn backdrop-filter from the particle canvas behind it */
  text-align: center;
  padding: 0 var(--gutter);
  max-width: 900px;
}

.woven-headline {
  font-family: 'Playfair Display', 'Fraunces', serif;
  font-weight: 700;
  font-size: clamp(36px, 5.2vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}
.woven-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(50px);
  will-change: transform, opacity;
}
.woven-space {
  display: inline-block;
  width: 0.35em;
}
.woven-sub .woven-char {
  transform: translateY(18px);
}
.woven-headline .woven-word {
  display: inline-block;
  white-space: nowrap;
}
.woven-headline .woven-break-mobile {
  display: none;
}
@media (max-width: 640px) {
  .woven-headline .woven-break-mobile { display: initial; }
}
.woven-caret {
  display: inline-block;
  width: 0.06em;
  height: 0.9em;
  margin-left: 0.04em;
  vertical-align: -0.08em;
  background: currentColor;
  visibility: hidden;
  animation: woven-caret-blink 0.9s steps(2, end) infinite;
}
@keyframes woven-caret-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.woven-headline .woven-char-accent {
  font-family: 'Fraunces', 'Playfair Display', serif;
  font-style: italic;
  font-weight: 600;
}

.woven-sub {
  font-family: var(--ff-body);
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.55;
  color: rgba(10,10,10,0.65);
  max-width: 680px;
  margin: 26px auto 0;
  /* Match the frosted pill look of the .woven-btn buttons */
  display: inline-block;
  padding: 14px 28px;
  border-radius: 28px;
  border: 1px solid rgba(10,10,10,0.08);
  background: rgba(246, 244, 240, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.woven-sub-line { display: block; }

.woven-cta {
  margin-top: 40px;
  display: inline-flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  transform: translateY(24px);
  /* no will-change/z-index: avoids creating a stacking context that would
     isolate .woven-btn backdrop-filter from the particle canvas */
}

.woven-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  border-radius: 999px;
  /* Match scrolled-pill header exactly: bg-background/50 + backdrop-blur-lg */
  border: 1px solid rgba(10,10,10,0.08);
  background: rgba(246, 244, 240, 0.5);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: none;
  transition: background .3s ease, border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.woven-btn:hover {
  background: rgba(246, 244, 240, 0.7);
  border-color: rgba(10,10,10,0.18);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,1),
    inset 0 -1px 0 rgba(10,10,10,0.06),
    0 14px 36px -12px rgba(10,10,10,0.22),
    0 2px 6px -2px rgba(10,10,10,0.1);
}
.woven-btn-ghost {
  background: rgba(246, 244, 240, 0.5);
  border-color: rgba(10,10,10,0.08);
}
.woven-btn-ghost:hover {
  background: rgba(246, 244, 240, 0.7);
  border-color: rgba(10,10,10,0.16);
}

/* Keep site header readable over black hero */
.woven-hero ~ * { position: relative; z-index: 1; }

@media (max-width: 640px) {
  .woven-btn { padding: 12px 22px; font-size: 13px; }
}
