/* ============================================================
   TailorSense design system
   Direction C: Heritage Trust (redesigned for the UK/EU market)
   Author: TailorSense engineering team
   Scope: marketing site and product app prototype

   Design rationale: independent tailors and small studios in the UK
   and EU are a trust-led, craft-proud buying audience, not a typical
   "move fast" tech-startup buyer. Verified with the UI/UX Pro Max
   design system tool: its Trust & Authority pattern and Luxury/Premium
   Brand palette (near-black + warm bronze on warm ivory, light mode,
   high contrast, no gimmick gradients) fit this audience far better
   than the earlier dark "craft-tech" SaaS direction. Every text/
   background pairing below is WCAG-checked, not eyeballed:
   body text 16.6:1, muted text 5.9:1+, links 5.8:1, button text on
   the copper fill 5.2 to 8.7:1 across the whole gradient range.
   ============================================================ */

:root {
  /* colour tokens: deep wine and antique gold, on a cool neutral ground.
     Deliberately not a warm cream/oat background with a rust accent,
     which would echo a well-known AI assistant's brand rather than
     read as an independent fashion and tailoring identity. Wine and
     gold are drawn from couture and textile heritage: runway carpet,
     velvet, thread, and the gold zari work common to the South Asian
     and Dawoodi Bohra garments TailorSense also serves. */
  --bg: #F6F4F5;
  --bg-2: #FFFFFF;
  --bg-3: #ECE4E8;
  --ink: #221720;
  --ink-2: #2E2028;
  --muted: #6E5F68;
  --line: rgba(34, 23, 32, .13);
  --copper-dark: #4A0F22;
  --copper: #7A1638;
  --copper-2: #8A6A1F;
  --copper-grad: linear-gradient(120deg, #4A0F22, #7A1638 60%, #611230);
  --on-copper: #FFFFFF;
  --teal: #2A6E5C;
  --red: #B23B3B;
  --footer-bg: #4A0F22;
  --footer-fg: #F6F0EF;
  --footer-muted: #C9AEB8;
  /* type tokens: authoritative serif heading, legible sans body */
  --display: 'EB Garamond', Georgia, serif;
  --body: 'Inter', system-ui, sans-serif;
  /* spacing scale: 4 8 12 16 24 32 48 64 96 */
  --radius: 14px;
  --radius-sm: 9px;
}

/* Smooth cross-fade between page navigations, the same mechanism
   Safari/WebKit pioneered — supporting browsers cross-fade instead of
   a hard cut; everywhere else this is silently ignored (progressive
   enhancement, not a dependency). */
@view-transition {
  navigation: auto;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.14; font-weight: 600; letter-spacing: -.01em; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--copper-2); font-weight: 700; font-family: var(--body);
}
.grad-text {
  background: var(--copper-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.muted { color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 13px 30px; border-radius: var(--radius-sm);
  font-family: var(--body); font-size: 15px; font-weight: 600; cursor: pointer;
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--copper-grad); color: var(--on-copper); box-shadow: 0 8px 22px rgba(110,64,25,.24); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(110,64,25,.32); }
.btn-ghost { border-color: var(--line); background: var(--bg-2); color: var(--ink); }
.btn-ghost:hover { background: var(--bg-3); }
.btn-sm { min-height: 42px; padding: 8px 20px; font-size: 13px; border-radius: 8px; }

/* ---------- trust strip ---------- */
.trust-strip { background: var(--bg-3); border-bottom: 1px solid var(--line); }
.trust-strip .container { display: flex; flex-wrap: wrap; gap: 10px 32px; align-items: center; justify-content: center; padding: 12px 24px; font-size: 12.5px; color: var(--muted); }
.trust-strip .item { display: flex; align-items: center; gap: 7px; }
.trust-strip svg { width: 14px; height: 14px; stroke: var(--copper-2); fill: none; stroke-width: 2; flex: none; }

/* ---------- navigation ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 247, 241, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 24px; }
.brand img { height: 42px; width: auto; display: block; }
.nav-links { display: flex; gap: 30px; font-size: 14.5px; color: var(--muted); font-weight: 500; }
.nav-links a { transition: color .2s; padding: 6px 2px; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a.active { border-bottom: 2px solid var(--copper); }
.nav-cta { display: flex; gap: 12px; align-items: center; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; cursor: pointer; }
.nav-toggle svg { width: 20px; height: 20px; stroke: var(--ink); }
.mobile-only-link { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 96px 0 84px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.mesh { position: absolute; width: 760px; height: 760px; border-radius: 50%; filter: blur(130px); opacity: .35; background: #E6C9D3; }
.mesh.a { top: -340px; right: -220px; }
.mesh.b { bottom: -380px; left: -280px; opacity: .3; background: #D8C6A0; }
.gridlines {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(28,23,18,.045) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(28,23,18,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.4vw, 70px); letter-spacing: -.015em; }
.hero .lede { margin: 24px 0 34px; font-size: 18px; color: var(--muted); max-width: 52ch; font-weight: 400; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 13px; color: var(--muted); }
.page-hero { padding: 76px 0 40px; }
.page-hero h1 { font-size: clamp(34px, 4.4vw, 54px); letter-spacing: -.015em; margin-top: 14px; }
.page-hero p { margin-top: 18px; color: var(--muted); max-width: 62ch; font-weight: 400; font-size: 17px; }

/* ---------- preview cards (formerly glass, now paper) ---------- */
.stage { position: relative; height: 500px; }
.glass-card {
  position: absolute; background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 24px;
  box-shadow: 0 18px 40px rgba(28,23,18,.10); animation: float 7s ease-in-out infinite;
}
.glass-card h4 { font-size: 12.5px; letter-spacing: .07em; margin-bottom: 12px; color: var(--copper-2); font-family: var(--body); font-weight: 700; }
.gc1 { top: 4%; left: 2%; width: 64%; }
.gc2 { top: 40%; right: 0; width: 58%; animation-delay: 1.4s; }
.gc3 { bottom: 0; left: 8%; width: 58%; animation-delay: 2.6s; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }

.mrow { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.mrow:last-child { border: none; }
.mrow b { font-family: var(--body); font-weight: 600; }
.chip { font-size: 11px; padding: 3px 10px; border-radius: 99px; font-weight: 700; letter-spacing: .03em; white-space: nowrap; }
.chip.ok { background: rgba(42,110,92,.12); color: var(--teal); }
.chip.warn { background: rgba(140,84,35,.13); color: var(--copper-2); }
.chip.risk { background: rgba(174,59,59,.12); color: var(--red); }
.risk-bar { height: 8px; border-radius: 99px; background: var(--bg-3); overflow: hidden; margin: 7px 0 12px; }
.risk-bar i { display: block; height: 100%; border-radius: 99px; background: var(--copper-grad); }
.conf { display: flex; align-items: center; gap: 14px; }
.conf .ring {
  width: 64px; height: 64px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
}
.conf .ring span {
  width: 48px; height: 48px; border-radius: 50%; background: var(--bg-2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--body); font-weight: 700; font-size: 14px; color: var(--ink);
}
.conf p { font-size: 13px; color: var(--muted); }

/* ---------- sections ---------- */
section { padding: 96px 0; position: relative; }
.sec-head { max-width: 660px; margin-bottom: 54px; }
.sec-head h2 { font-size: clamp(28px, 3.8vw, 46px); letter-spacing: -.01em; margin-top: 14px; }
.sec-head p { margin-top: 16px; color: var(--muted); font-weight: 400; }
.band { border-block: 1px solid var(--line); background: var(--bg-3); }

/* stats */
.stats-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 48px 0; }
.stat { text-align: center; }
.stat .num { font-family: var(--display); font-size: 42px; font-weight: 700; }
.stat .cap { margin-top: 6px; font-size: 13.5px; color: var(--muted); max-width: 32ch; margin-inline: auto; }

/* bento grid */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.cell {
  grid-column: span 2; background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px 28px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.cell:hover { transform: translateY(-3px); border-color: var(--copper); box-shadow: 0 14px 30px rgba(28,23,18,.08); }
.cell.wide { grid-column: span 3; }
.cell.full { grid-column: span 6; }
.cell svg.icon { width: 30px; height: 30px; stroke: var(--copper-2); fill: none; stroke-width: 1.6; margin-bottom: 16px; }
.cell h3 { font-size: 20px; margin-bottom: 9px; }
.cell p { font-size: 14.5px; color: var(--muted); font-weight: 400; }

/* numbered steps */
.rail { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.rail.cols3 { grid-template-columns: repeat(3, 1fr); }
.node { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 24px 22px; position: relative; }
.node::before {
  counter-increment: s; content: counter(s, decimal-leading-zero);
  font-family: var(--display); font-weight: 700; font-size: 15px;
  color: var(--copper-2); letter-spacing: .1em;
}
.node h3 { font-size: 17px; margin: 10px 0 8px; }
.node p { font-size: 13.5px; color: var(--muted); font-weight: 400; }

/* pricing */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tier {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px;
  padding: 38px 32px; display: flex; flex-direction: column; position: relative;
}
.tier.feature {
  background: linear-gradient(var(--bg-2), var(--bg-2)) padding-box, var(--copper-grad) border-box;
  border: 1.5px solid transparent; box-shadow: 0 16px 34px rgba(28,23,18,.09);
}
.tier .tag {
  position: absolute; top: -13px; right: 26px; background: var(--copper-grad);
  color: var(--on-copper); font-size: 11px; font-weight: 700; letter-spacing: .06em;
  padding: 5px 14px; border-radius: 99px; text-transform: uppercase;
}
.tier .name { font-family: var(--body); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.tier .price { font-family: var(--display); font-size: 50px; font-weight: 700; margin: 12px 0 2px; }
.tier .price small { font-size: 16px; font-weight: 400; color: var(--muted); font-family: var(--body); }
.tier ul { list-style: none; margin: 22px 0 30px; flex: 1; }
.tier li { padding: 9px 0; font-size: 14px; color: var(--ink); font-weight: 400; display: flex; gap: 12px; align-items: baseline; }
.tier li svg { width: 14px; height: 14px; stroke: var(--teal); stroke-width: 2.6; fill: none; flex: none; transform: translateY(1px); }

/* comparison table */
.cmp { width: 100%; border-collapse: collapse; font-size: 14px; }
.cmp th, .cmp td { padding: 13px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.cmp th { font-family: var(--body); font-size: 12.5px; letter-spacing: .05em; color: var(--copper-2); font-weight: 700; text-transform: uppercase; }
.cmp td:first-child { color: var(--muted); }
.cmp .yes { color: var(--teal); font-weight: 700; }
.cmp .no { color: var(--muted); opacity: .6; }

/* founder */
.founder { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: center; }
.f-photo {
  aspect-ratio: 4 / 5; border-radius: 20px;
  background: linear-gradient(150deg, var(--bg-3), #D9BFA0);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
}
.founder blockquote { font-family: var(--display); font-size: clamp(23px, 2.8vw, 32px); font-weight: 500; line-height: 1.35; font-style: italic; }
.founder .sig { margin-top: 22px; color: var(--muted); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }

/* prose (legal, articles) */
.prose { max-width: 760px; }
.prose h2 { font-size: 27px; margin: 42px 0 14px; }
.prose h3 { font-size: 19px; margin: 26px 0 10px; }
.prose p, .prose li { color: var(--ink); font-weight: 400; font-size: 15px; }
.prose p strong { color: var(--ink); }
.prose ul { padding-left: 22px; margin: 10px 0; }

/* forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 720px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px;
  min-height: 48px; padding: 12px 16px; color: var(--ink);
  font-family: var(--body); font-size: 15px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--copper); outline-offset: 1px; border-color: transparent;
}
.field .hint { font-size: 12.5px; color: var(--muted); }

/* CTA and footer */
.cta { text-align: center; padding: 110px 0; position: relative; overflow: hidden; background: var(--bg-3); }
.cta h2 { font-size: clamp(32px, 4.6vw, 54px); letter-spacing: -.015em; max-width: 20ch; margin: 0 auto 18px; position: relative; }
.cta p { color: var(--muted); margin-bottom: 30px; position: relative; }
.site-footer { padding: 52px 0 36px; font-size: 14px; color: var(--footer-muted); background: var(--footer-bg); }
.site-footer img { filter: none; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 34px; }
.foot-grid h4 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--footer-fg); margin-bottom: 14px; }
.foot-grid a { display: block; padding: 5px 0; transition: color .2s; color: var(--footer-muted); }
.foot-grid a:hover { color: var(--footer-fg); }
.foot-grid p { color: var(--footer-muted); }
.foot-base { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-top: 1px solid rgba(250,247,241,.14); padding-top: 22px; font-size: 13px; }

/* reveal on scroll: definition lives in the "editorial richness
   layer" section below — kept as one rule, not duplicated, after a
   real bug where a second copy of this rule at equal specificity
   made cascade resolution unreliable (elements kept the class "in"
   but rendered at their pre-reveal opacity/transform anyway). */

/* ============================================================
   Legacy product app prototype (superseded by the Next.js
   studio platform; tokens kept in sync for consistency only)
   ============================================================ */
.app-shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.app-side {
  background: var(--bg-2); border-right: 1px solid var(--line);
  padding: 22px 16px; display: flex; flex-direction: column; gap: 4px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.app-side .brand { padding: 4px 10px 18px; }
.app-side a.item {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px;
  border-radius: 10px; font-size: 14px; color: var(--muted); transition: background .15s, color .15s;
}
.app-side a.item svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.7; flex: none; }
.app-side a.item:hover { background: var(--bg-3); color: var(--ink); }
.app-side a.item.active { background: rgba(140,84,35,.12); color: var(--copper-2); }
.side-label { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding: 16px 14px 6px; opacity: .8; }
.app-main { padding: 30px 34px 60px; min-width: 0; }
.app-head { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 26px; flex-wrap: wrap; }
.app-head h1 { font-size: 25px; }
.app-head .crumb { font-size: 13px; color: var(--muted); margin-bottom: 4px; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 26px; }
.kpi { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; }
.kpi .v { font-family: var(--display); font-size: 28px; font-weight: 700; }
.kpi .l { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

.panel { background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; padding: 24px; margin-bottom: 20px; }
.panel h3 { font-size: 16px; margin-bottom: 14px; letter-spacing: 0; }
.panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }

.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 13px 12px; border-bottom: 1px solid var(--line); }
.tbl tr:hover td { background: var(--bg-3); }
.tbl a { color: var(--copper-2); }

.stage-pill { font-size: 11.5px; padding: 4px 12px; border-radius: 99px; background: var(--bg-3); white-space: nowrap; color: var(--ink); }

.measure-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.measure-grid .mfield { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 10px; align-items: center; padding: 9px 4px; border-bottom: 1px solid var(--line); font-size: 14px; }
.mfield input {
  background: var(--bg); border: 1px solid var(--line); border-radius: 9px;
  min-height: 42px; padding: 8px 12px; color: var(--ink); font-size: 14.5px; width: 100%;
}
.mfield input:focus { outline: 2px solid var(--copper); border-color: transparent; }
.mfield input.flagged { border-color: var(--red); outline: 1px solid var(--red); }
.ai-val { font-family: var(--body); font-weight: 600; color: var(--muted); font-size: 14px; }

.note { font-size: 13px; color: var(--copper-dark); background: rgba(140,84,35,.08); border: 1px solid rgba(140,84,35,.22); border-radius: 10px; padding: 12px 16px; }
.provenance { font-size: 12px; color: var(--muted); border-left: 2px solid var(--copper); padding-left: 10px; margin-top: 10px; }

@media (max-width: 1020px) {
  .hero-grid, .founder, .panel-grid, .measure-grid { grid-template-columns: 1fr; }
  .stage { height: auto; display: grid; gap: 14px; margin-top: 10px; }
  .glass-card { position: static; width: 100% !important; animation: none; }
  .bento, .rail, .rail.cols3, .tiers, .stats-inner, .kpis { grid-template-columns: 1fr 1fr; }
  .cell.wide, .cell { grid-column: span 2; }
  .nav-links {
    display: flex; position: absolute; top: 74px; left: 0; right: 0;
    flex-direction: column; background: var(--bg-2); padding: 18px 24px 22px;
    border-bottom: 1px solid var(--line); gap: 6px;
    box-shadow: 0 16px 30px rgba(28,23,18,.12);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity var(--dur-med) var(--ease-editorial), transform var(--dur-med) var(--ease-editorial), visibility 0s linear var(--dur-med);
  }
  /* !important: this environment has demonstrated (see the pricing-tier
     .reveal.in bug) that an equal-specificity class combo can lose to
     the base rule despite matching correctly — pinning the open state
     is cheap insurance against the exact same failure mode recurring
     here, where it would mean a mobile visitor can never open the menu. */
  .nav-links.open {
    opacity: 1 !important; visibility: visible !important; transform: none !important;
    transition: opacity var(--dur-med) var(--ease-editorial), transform var(--dur-med) var(--ease-editorial), visibility 0s linear 0s;
  }
  .nav-links .mobile-only-link {
    display: block; margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line);
    font-weight: 600; color: var(--ink);
  }
  .nav-toggle { display: block; }
  .nav-cta .btn-ghost { display: none; }
  .app-shell { grid-template-columns: 1fr; }
  .app-side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; }
  section { padding: 64px 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .trust-strip .container { justify-content: flex-start; }
}
@media (max-width: 620px) {
  .bento, .rail, .rail.cols3, .tiers, .stats-inner, .kpis, .form-grid { grid-template-columns: 1fr; }
  .cell.wide, .cell { grid-column: span 1; }
}

/* ============================================================
   Editorial richness layer
   Adds the motion, texture and finishing detail of a Paris
   maison's digital presence (Dior, Chanel, Loewe) on top of the
   Heritage Trust foundation above — same tokens, more craft in
   the transitions. Every effect here is transform/opacity-only
   (GPU-cheap) and fully neutralised under prefers-reduced-motion.
   ============================================================ */
:root {
  --ease-editorial: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --dur-fast: 180ms;
  --dur-med: 420ms;
  --dur-slow: 900ms;
}

/* film-grain texture: a single tiled SVG noise, extremely subtle,
   gives flat colour fields the tactile quality of print stock
   rather than a flat digital fill. */
.grain { position: relative; }
.grain::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  opacity: .045; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* scroll progress hairline — a quiet, precise reading aid rather
   than a decoration; couture houses' editorial sites use exactly
   this to signal "this is a considered long-form page". */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: var(--copper-grad); z-index: 200; transition: width 80ms linear;
}

/* nav gains weight once the page has scrolled past the hero —
   quieter at rest, more present once it's doing navigational work */
.site-nav.scrolled { background: rgba(250, 247, 241, .97); box-shadow: 0 1px 0 var(--line), 0 18px 40px -24px rgba(28,23,18,.35); }
.site-nav {
  transition: background var(--dur-med) var(--ease-editorial), box-shadow var(--dur-med) var(--ease-editorial), transform var(--dur-med) var(--ease-editorial);
}
/* Apple-style recede: the nav steps out of the way while you're
   reading down the page and returns the instant you scroll back up,
   so it never competes with the content for attention. */
.site-nav.nav-hidden { transform: translateY(-100%); }
.brand img { transition: transform var(--dur-fast) var(--ease-spring); }
.brand:hover img { transform: scale(1.04); }

/* animated underline for nav links — draws in from the left on
   hover/focus and stays filled for the active page, replacing the
   static border with something that feels considered */
.nav-links a { position: relative; }
.nav-links a::after {
  content: ''; position: absolute; left: 2px; right: 2px; bottom: 2px; height: 1.5px;
  background: var(--copper); transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-med) var(--ease-editorial);
}
.nav-links a:hover::after, .nav-links a:focus-visible::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { border-bottom: none; }

/* buttons: a light sweep passes through on hover, and primary
   actions lift with a softened, longer-throw shadow for depth */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary { transition: transform var(--dur-fast) var(--ease-spring), box-shadow var(--dur-med) var(--ease-editorial); }
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.22) 45%, transparent 60%);
  transform: translateX(-120%); transition: transform var(--dur-slow) var(--ease-editorial);
}
.btn:hover::before { transform: translateX(120%); }
.btn-ghost { transition: transform var(--dur-fast) var(--ease-spring), background var(--dur-fast) ease, border-color var(--dur-fast) ease; }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--copper-2); }

/* reveal: richer entrance (fade + rise + a whisper of scale),
   choreographed by a per-element --d delay set from JS index */
.reveal {
  opacity: 0; transform: translateY(26px) scale(.985);
  transition: opacity var(--dur-slow) var(--ease-editorial), transform var(--dur-slow) var(--ease-editorial);
  transition-delay: var(--d, 0ms);
}
/* !important here is deliberate, not a shortcut: this is the single
   rule that MUST win once JS marks a card revealed, and the file
   previously had a second copy of this exact selector pair (now
   removed) that made cascade resolution unreliable — content stayed
   at its pre-reveal opacity despite the "in" class being present.
   Pinning this one guarantees it can't happen again from any rule
   added later in the file. */
.reveal.in { opacity: 1 !important; transform: none !important; }

.cell, .tier {
  position: relative;
}
.glass-card { overflow: hidden; }

/* pricing "feature" tier: the gradient border gently breathes to
   draw the eye without shouting */
.tier.feature { transition: box-shadow var(--dur-med) var(--ease-editorial), transform var(--dur-fast) var(--ease-spring); }
.tier.feature:hover { transform: translateY(-4px); box-shadow: 0 26px 54px rgba(74,15,34,.18); }

/* founder quote: an oversized decorative mark, set like a pull
   quote in a print magazine spread */
.founder blockquote { position: relative; padding-left: 8px; }
.founder blockquote::before {
  content: '\201C'; display: block; font-family: var(--display); font-style: normal;
  font-size: 84px; line-height: .5; color: var(--copper-2); opacity: .35; margin-bottom: 6px;
}

/* eyebrow kicker: a short hairline draws in beside the label,
   the editorial "section marker" convention */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ''; width: 28px; height: 1.5px; background: var(--copper-2); display: inline-block; }

/* stat numbers get a touch more presence and a hairline rule
   beneath, echoing an editorial statistics sidebar */
.stat { padding-top: 18px; border-top: 1px solid var(--line); }
.stat .num { letter-spacing: -.01em; }

/* soft parallax for the hero mesh — driven by scroll position via
   a CSS variable JS updates; falls back to static if JS/reduced
   motion disable it */
.mesh { transition: transform 60ms linear; will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  .btn::before, .brand img { display: none !important; }
  html { scroll-behavior: auto; }
  .reveal, .reveal.in { transition: none !important; transition-delay: 0ms !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
