/* ============================================================
   Dygram Designs — product-style system
   Modelled on the supplied reference: gradient hero, pill buttons,
   rounded surface cards, floating overlays, tabbed feature panel.

   Adapted rather than copied. The reference is a fintech SaaS, so its
   dashboard screenshots and client wordmarks have no equivalent here —
   those slots carry real client work and real reviews instead.

   Class names unchanged: portfolio.css layers on this file.

   CONTRAST RULE (non-negotiable):
     black on lime = 14.0:1  OK  -> primary button
     lime on black = 14.0:1  OK  -> accent text on dark
     lime on paper =  1.4:1  NO  -> never lime text on light
   ============================================================ */

:root{
  --ink:#080A08;
  --lime:#D6E147;
  --sun:#E4EF63;
  --paper:#FFFFFF;
  --mute:#666E63;
  --line:#E8E8E6;
  --surface:#F4F4F2;      /* card + panel fill */
  --surface-2:#ECECEA;    /* nested fill */

  /* Roles that flip with the theme. --ink and --paper above never flip:
     they mean "always dark" and "always light" (text on lime, text on the
     hero gradient), which is why they must not be reused for page colours. */
  --bg:#FFFFFF;           /* page background */
  --fg:#080A08;           /* primary text   */
  --card:#FFFFFF;         /* floating card  */
  --slab:#080A08;         /* permanently dark blocks */
  --nav-bg:rgba(255,255,255,.82);

  --ink-70:rgba(8,10,8,.70);
  --paper-70:rgba(255,255,255,.70);
  --paper-60:rgba(255,255,255,.62);

  --font-display:'Inter Tight','Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Helvetica,Arial,sans-serif;
  --font-body:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Helvetica,Arial,sans-serif;

  /* ---- type ---- */
  --t-display:clamp(2.75rem,6.4vw,5.25rem);
  --t-h1:clamp(2.25rem,4.6vw,3.75rem);
  --t-h2:clamp(1.875rem,3.6vw,3rem);
  --t-h3:clamp(1.125rem,1.7vw,1.5rem);
  --t-lead:clamp(1rem,1.25vw,1.1875rem);
  --t-body:1.0625rem;
  --t-small:.9375rem;
  --t-label:.75rem;

  --ls-display:-.032em;
  --ls-head:-.026em;
  --ls-label:.1em;

  /* ---- radius: the defining move of this style ---- */
  --r-pill:999px;
  --r-sm:12px;
  --r-md:20px;
  --r-lg:28px;
  --r-xl:34px;

  /* ---- grid ---- */
  --wrap:1280px;
  --gutter:clamp(1.25rem,3.4vw,2.75rem);
  --col-gap:clamp(1rem,1.6vw,1.5rem);
  --section-y:clamp(4rem,7.5vw,7.5rem);

  /* Pod height drives the bar; --nav-h is what sticky sub-bars (filters,
     catbar) and scroll-margin clear, so it is pod + both paddings. */
  --pod-h:52px;
  --nav-h:calc(52px + 2.3rem);
  /* Lime is a FILL — 1.4:1 as text on white. Anywhere the accent has to be
     TEXT, use this instead: a deep green that measures 7.2:1 on white. Dark
     mode swaps it back to lime, which is 13.9:1 there. */
  --accent-text:#3D5A16;
  --pod:#181D16;
  --pod-line:rgba(255,255,255,.12);
  --ease:cubic-bezier(.22,.61,.36,1);
  --card-pad:clamp(1.5rem,2.4vw,2rem);
  --card-line:transparent;   /* dark mode gives this a value */
  --shadow-card:0 1px 2px rgba(8,10,8,.04),0 8px 24px -12px rgba(8,10,8,.12);
  --shadow-float:0 12px 40px -12px rgba(8,10,8,.28);
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{
  margin:0;background:var(--bg);color:var(--fg);
  font-family:var(--font-body);font-size:var(--t-body);line-height:1.6;
  -webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;
  font-feature-settings:"kern" 1,"liga" 1;
  overflow-x:hidden;
}
h1,h2,h3,h4,p,figure,blockquote,ul,ol,dl,dd{margin:0}
ul,ol{padding:0;list-style:none}
img,svg,video{max-width:100%;display:block}
a{color:inherit}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}
:focus-visible{
  outline:2px solid var(--lime);
  outline-offset:2px;
  box-shadow:0 0 0 4px rgba(8,10,8,.85);
  border-radius:2px;
}
/* On a lime surface the lime ring would vanish, so invert there. */
.btn--primary:focus-visible,.filter.is-current:focus-visible,.pkrow--on .pkrow__go:focus-visible{
  outline-color:var(--ink);
  box-shadow:0 0 0 4px rgba(255,255,255,.9);
}

.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.skip-link{position:absolute;left:-9999px;top:0;z-index:300;padding:.9rem 1.4rem;background:var(--slab);color:var(--paper);font-size:var(--t-small);font-weight:600;border-radius:0 0 var(--r-sm) 0}
.skip-link:focus{left:0}

.wrap{width:100%;max-width:var(--wrap);margin-inline:auto;padding-inline:var(--gutter)}
.row{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:var(--col-gap)}

/* ============================================================
   typography
   ============================================================ */
.eyebrow{
  display:inline-flex;align-items:center;gap:.5rem;
  font-family:var(--font-display);font-size:var(--t-label);font-weight:600;
  letter-spacing:var(--ls-label);text-transform:uppercase;color:var(--mute);
}
.eyebrow::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--lime);flex:none}
.eyebrow--dark{color:var(--ink-70)}

.h1,.h2,.h3{font-family:var(--font-display);color:var(--fg);text-wrap:balance}
.h1{font-size:var(--t-h1);font-weight:600;letter-spacing:var(--ls-display);line-height:1.05}
.h2{font-size:var(--t-h2);font-weight:600;letter-spacing:var(--ls-head);line-height:1.08}
.h3{font-size:var(--t-h3);font-weight:600;letter-spacing:-.015em;line-height:1.25}
.h1 strong,.h2 strong,.h3 strong{font-weight:700}

.lead{font-size:var(--t-lead);line-height:1.55;color:var(--mute);max-width:52ch;text-wrap:pretty}
.h1+.lead,.h2+.lead,.h3+.lead{margin-top:1.25rem}

.link-arrow{
  display:inline-flex;align-items:center;gap:.5rem;
  font-family:var(--font-display);font-weight:600;font-size:var(--t-small);
  text-decoration:none;
}
.link-arrow span{transition:translate .25s var(--ease)}
.link-arrow:hover span{translate:4px 0}

/* ============================================================
   buttons — pill, the reference's signature
   ============================================================ */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.5rem;
  padding:.9rem 1.6rem;border-radius:var(--r-pill);
  font-family:var(--font-display);font-weight:600;font-size:var(--t-small);
  text-decoration:none;white-space:nowrap;
  transition:background-color .25s var(--ease),color .25s var(--ease),
             box-shadow .25s var(--ease),transform .2s var(--ease);
}
.btn:active{transform:translateY(1px)}
.btn--primary{background:var(--lime);color:var(--ink)}
.btn--primary:hover{background:var(--sun)}
.btn--ghost{background:var(--surface);color:var(--fg)}
.btn--ghost:hover{background:var(--surface-2)}
.btn--lg{padding:1.05rem 2rem;font-size:1rem}
.btn--sm{padding:.6rem 1.1rem;font-size:.875rem}
/* On the dark hero and dark bands the ghost button needs its own surface. */
.hero .btn--ghost,.section--dark .btn--ghost,.final .btn--ghost{
  background:rgba(255,255,255,.12);color:var(--paper);
  backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);
}
.hero .btn--ghost:hover,.section--dark .btn--ghost:hover,.final .btn--ghost:hover{
  background:var(--paper);color:var(--ink);
}

/* ============================================================
   nav — segmented floating pod bar
   Three separate pills: mark, links, actions. The pods carry their
   own dark fill, so the bar reads on the dark hero and on white
   inner pages without swapping anything — which removes the
   nav--over / is-stuck colour juggling the old bar needed, and the
   two-file logo swap with it.
   ============================================================ */
.nav{
  position:fixed;top:0;left:0;right:0;z-index:100;
  padding:clamp(.75rem,1.4vw,1.15rem) var(--gutter);
  pointer-events:none;   /* the gaps between pods stay click-through */
}
.nav__inner{
  display:flex;align-items:center;justify-content:center;
  gap:clamp(.4rem,.7vw,.6rem);
  max-width:var(--wrap);margin-inline:auto;
}
.nav__inner > *{pointer-events:auto}
/* The open menu is a SIBLING of .nav__inner, not a child, so the rule above
   never reached it and every link and the CTA inside it were dead to clicks at
   every width — .nav is pointer-events:none so the gaps between the pods stay
   click-through. */
.nav__mobile{pointer-events:auto}

/* shared pod shell */
.nav__logo,.nav__links,.nav__end,.nav__toggle{
  background:var(--pod);
  border:1px solid var(--pod-line);
  border-radius:var(--r-pill);
  box-shadow:0 6px 24px -12px rgba(0,0,0,.55);
}

.nav__logo{
  flex:none;display:grid;place-items:center;
  width:var(--pod-h);height:var(--pod-h);
  text-decoration:none;
  transition:transform .3s var(--ease);
}
.nav__logo:hover{transform:scale(1.06)}
.nav__logo img{width:46%;height:auto}

.nav__links{
  display:flex;align-items:center;height:var(--pod-h);
  padding-inline:clamp(.5rem,1vw,.9rem);
}
.nav__links a{
  position:relative;padding:.4rem clamp(.6rem,1.1vw,1rem);
  text-decoration:none;white-space:nowrap;
  font-size:var(--t-small);font-weight:500;color:rgba(255,255,255,.62);
  transition:color .2s var(--ease);
}
.nav__links a:hover,.nav__links a[aria-current]{color:#FFF}
/* Hairline between links, as in the reference. ::after on all but the last
   rather than ::before on all but the first, so a wrapped row never starts
   with an orphan rule. */
.nav__links a:not(:last-child)::after{
  content:"";position:absolute;right:0;top:50%;translate:0 -50%;
  width:1px;height:14px;background:rgba(255,255,255,.16);
}

.nav__end{
  display:flex;align-items:center;gap:.35rem;height:var(--pod-h);
  padding-inline:.35rem;
}
.nav__end .btn{flex:none;height:calc(var(--pod-h) - .7rem);padding-inline:1.15rem}

.nav__toggle{display:none}

.nav__mobile{
  display:none;margin-top:.5rem;
  /* Landscape phones are ~375px tall. Without this cap the panel overflows the
     viewport and the CTA at its foot cannot be reached — .nav is fixed, so
     scrolling the page behind it does not move the button. dvh so the mobile
     URL bar collapsing does not leave it short. */
  max-height:calc(100vh - var(--nav-h) - 1rem);
  max-height:calc(100dvh - var(--nav-h) - 1rem);
  overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;
  background:var(--pod);border:1px solid var(--pod-line);
  border-radius:var(--r-lg);padding:.75rem 1rem 1.15rem;
  box-shadow:0 16px 40px -18px rgba(0,0,0,.7);
}
.nav__mobile a{
  display:flex;align-items:center;min-height:48px;
  text-decoration:none;color:rgba(255,255,255,.78);
  font-family:var(--font-display);font-size:1.0625rem;font-weight:500;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.nav__mobile a:last-of-type{border-bottom:0}
.nav__mobile .btn{margin-top:.85rem;width:100%}

/* ============================================================
   hero — the gradient
   Reference runs near-black -> saturated brand colour -> white.
   Dygram has no blue, so the mid stop is a deep lime-black: the same
   dark→brand→light arc without inventing a colour off-palette.
   ============================================================ */
.hero{
  position:relative;isolation:isolate;
  padding-block:calc(var(--nav-h) + clamp(3rem,7vw,6rem)) clamp(2.5rem,5vw,4.5rem);
  /* Two declarations: the second wins where `in oklab` is supported and is
     dropped whole where it is not, so older browsers keep the sRGB version.
     Nine stops rather than five, and the light-up is spread from 55% to 100%
     instead of being crammed into the last 12% — that short ramp was the
     visible band. oklab interpolates perceptually, which is what stops the
     dark-to-light run going muddy through the olive midtones. */
  background:linear-gradient(180deg,
    #080A08 0%,#090B09 34%,#0F100B 54%,#171913 68%,
    #262A1E 78%,#434839 86%,#7A8070 91%,#B8BCAE 95.5%,#E9EBE2 98%,var(--bg) 100%);
  background:linear-gradient(180deg in oklab,
    #080A08 0%,#090B09 34%,#0F100B 54%,#171913 68%,
    #262A1E 78%,#434839 86%,#7A8070 91%,#B8BCAE 95.5%,#E9EBE2 98%,var(--bg) 100%);
  color:var(--paper);
}
/* Soft lime bloom, the reference's glow behind the headline. */
.hero::before{
  content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:radial-gradient(110% 78% at 72% 42%,rgba(214,225,71,.24) 0%,rgba(214,225,71,.10) 38%,transparent 72%);
}
.hero__inner{position:relative}
.hero__grid{
  display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);
  gap:clamp(2rem,5vw,4.5rem);align-items:end;
}
.hero__title{
  font-family:var(--font-display);font-weight:600;color:var(--paper);
  font-size:var(--t-display);letter-spacing:var(--ls-display);line-height:1.03;
  max-width:15ch;
}
.hero__title strong{font-weight:700}
.hero__sub{font-size:var(--t-lead);line-height:1.55;color:var(--paper-70);max-width:44ch}
.hero__actions{display:flex;flex-wrap:wrap;align-items:center;gap:1rem;margin-top:2rem}

/* Rating chip beside the CTA, as in the reference. */
.hero__rating{display:flex;align-items:center;gap:.6rem;font-size:var(--t-small);color:var(--paper-70)}
.hero__rating b{color:var(--paper);font-weight:600}
.hero__stars{display:flex;gap:2px}
.hero__stars svg{width:15px;height:15px;fill:var(--lime)}

/* ---- trust strip ---- */
.trust{
  display:flex;align-items:center;gap:clamp(1.5rem,4vw,3rem);
  margin-top:clamp(3rem,6vw,5rem);
}
.trust__label{
  flex:none;max-width:14ch;font-size:var(--t-small);line-height:1.35;
  color:var(--paper-70);padding-right:clamp(1.5rem,4vw,3rem);
  border-right:1px solid rgba(255,255,255,.22);
}
.trust__label b{display:block;color:var(--paper);font-weight:600}
.trust__rail{flex:1 1 auto;min-width:0;width:100%;overflow:hidden;mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent)}
.trust__track{display:flex;gap:clamp(1rem,2vw,1.75rem);width:max-content;animation:rail 46s linear infinite}
.trust__track img{
  height:clamp(58px,6vw,80px);width:auto;border-radius:var(--r-sm);
  opacity:.92;
}
@keyframes rail{to{transform:translateX(-50%)}}
.trust__rail:hover .trust__track{animation-play-state:paused}

/* ============================================================
   showcase — rounded frame with floating cards over it
   ============================================================ */
.showcase{margin-top:clamp(2.5rem,5vw,4rem);position:relative}
.showcase__frame{
  position:relative;border-radius:var(--r-xl);overflow:hidden;
  background:var(--surface);box-shadow:var(--shadow-float);
  aspect-ratio:5/3;
}
/* Slides stack; only opacity animates, so the browser can composite the
   crossfade on the GPU instead of repainting the frame each step. */
.showcase__slide{
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
  opacity:0;transition:opacity 1.1s var(--ease);
}
.showcase__slide.is-on{opacity:1}
.showcase__frame{isolation:isolate}

/* ============================================================
   sections
   ============================================================ */
.section--dark{background:var(--slab);color:var(--paper);border-radius:var(--r-xl);margin-inline:var(--gutter)}
.section--dark .h1,.section--dark .h2,.section--dark .h3{color:var(--paper)}
.section--dark .lead,.section--dark p{color:var(--paper-70)}

.problem{padding-block:var(--section-y)}
.problem__body{margin-top:clamp(1.5rem,3vw,2.5rem)}
.problem__body p{max-width:56ch;font-size:var(--t-lead);line-height:1.6}
.problem__body p+p{margin-top:1.25rem}

.sec__head{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:var(--col-gap);align-items:end}
.sec__label{grid-column:1 / 8}
.sec__title{grid-column:1 / 9}
.sec__body{grid-column:1 / 9}
.sec__head--flush .sec__label,.sec__head--flush .sec__title{grid-column:1 / 13}
/* Section heads centre in this style, unlike the editorial system. */
.sec__head--mid{text-align:center;justify-items:center}
.sec__head--mid .sec__label,.sec__head--mid .sec__title{grid-column:1 / 13}
.sec__head--mid .lead{margin-inline:auto}

/* ============================================================
   USP
   Six cards, one anatomy: index / heading / one sentence / link.
   The previous version had big figures on three cards and none on
   the other three, so the two rows read as different components —
   and its "emphasised" card was --slab on --surface, which in dark
   mode are 4 points apart and therefore not emphasis at all.
   ============================================================ */
.usp{padding-block:var(--section-y)}
.usp__grid{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
  /* No boxes, so the gaps do the separating and have to be much larger than
     card gaps were — at card spacing the items read as one block of text. */
  gap:clamp(2.5rem,4.5vw,4rem) clamp(2rem,4vw,3.5rem);
  margin-top:clamp(2.5rem,4vw,3.5rem);
}
.usp__card{
  display:grid;grid-template-rows:auto auto 1fr auto;
  text-decoration:none;color:inherit;
  /* The row track still pins the link to the foot, so every link sits on the
     same line across a row even when the copy above differs in length. */
  padding-right:clamp(0rem,1.5vw,1.5rem);
}
.usp__idx{
  font-family:var(--font-display);font-variant-numeric:tabular-nums;
  font-size:var(--t-label);font-weight:700;letter-spacing:.1em;color:var(--accent-text);
}
.usp__card h3{
  margin-top:1.1rem;
  font-family:var(--font-display);font-weight:600;
  font-size:clamp(1.0625rem,1.5vw,1.25rem);letter-spacing:-.018em;line-height:1.3;
  text-wrap:balance;
}
.usp__card p{margin-top:.7rem;font-size:var(--t-small);line-height:1.6;color:var(--mute)}
.usp__go{
  justify-self:start;display:inline-flex;align-items:center;gap:.45rem;margin-top:1.5rem;
  font-family:var(--font-display);font-weight:600;font-size:var(--t-small);
  transition:color .2s var(--ease);
}
.usp__go::after{
  content:"";position:absolute;left:0;right:0;bottom:-3px;height:1px;
  background:currentColor;opacity:.25;transition:opacity .2s var(--ease);
}
.usp__go{position:relative}
.usp__card:hover .usp__go::after{opacity:1}
.usp__go span{transition:translate .25s var(--ease)}
.usp__card:hover .usp__go span{translate:4px 0}

@media (max-width:900px){ .usp__grid{grid-template-columns:repeat(2,minmax(0,1fr))} }
@media (max-width:620px){ .usp__grid{grid-template-columns:minmax(0,1fr)} }

/* ============================================================
   proof — stat cards + big quote card
   ============================================================ */
.proof{padding-block:var(--section-y)}
/* The quote card: text left, portrait bleeding off the right edge. */
.bigquote{
  position:relative;overflow:hidden;
  margin-top:clamp(.75rem,1.4vw,1.25rem);
  background:var(--surface);border-radius:var(--r-xl);border:1px solid var(--card-line);
  padding:clamp(2rem,4vw,3.5rem);
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.42fr);
  gap:clamp(1.5rem,3vw,3rem);align-items:start;
}
.bigquote::before{
  content:"”";position:absolute;left:clamp(1.5rem,3vw,2.75rem);top:clamp(.5rem,1.5vw,1rem);
  font-family:var(--font-display);font-size:5rem;line-height:1;color:var(--mute);opacity:.32;
}
.bigquote blockquote{
  padding-top:clamp(2.5rem,5vw,4rem);
  font-family:var(--font-display);font-weight:600;
  font-size:clamp(1.125rem,2.1vw,1.625rem);letter-spacing:-.02em;line-height:1.3;
  min-height:var(--typer-h,auto);text-wrap:pretty;
}
.bigquote figcaption{align-self:start;padding-top:clamp(2.5rem,5vw,4rem);font-size:var(--t-small);color:var(--mute)}
.bigquote figcaption b{display:block;color:var(--fg);font-weight:600}
.typer__caret{display:inline-block;width:.45ch;height:.8em;margin-left:.06em;background:var(--fg);translate:0 .05em;animation:caret 1.1s steps(1) infinite}
@keyframes caret{0%,55%{opacity:1}56%,100%{opacity:0}}

/* ============================================================
   packages — rounded cards in this style
   ============================================================ */
.packages{padding-block:var(--section-y)}
.pk{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
  gap:clamp(.75rem,1.4vw,1.25rem);margin-top:clamp(2rem,4vw,3rem);
  align-items:stretch;
}
.pkrow{
  display:grid;grid-template-rows:auto auto auto auto auto 1fr auto auto;
  position:relative;
  background:var(--surface);border:1px solid var(--card-line);border-radius:var(--r-lg);
  padding:var(--card-pad);
}
/* The 1fr sits on the deliverables list, so "Best for" and the button land on
   the same line across all three cards however many items a tier lists. */
.pkrow--on{background:var(--slab);border-color:var(--lime)}
.pkrow--on .pkrow__name,.pkrow--on .pkrow__count b,.pkrow--on .pkrow__price{color:var(--paper)}
.pkrow--on .pkrow__tag,.pkrow--on .pkrow__count,.pkrow--on .pkrow__adds,
.pkrow--on .deliv li,.pkrow--on .pkrow__best{color:var(--paper-70)}
.pkrow--on .pkrow__best span{color:var(--paper)}

.pkrow__name{
  display:flex;align-items:center;gap:.6rem;flex-wrap:wrap;
  font-family:var(--font-display);font-weight:600;
  font-size:clamp(1.25rem,2.2vw,1.5rem);letter-spacing:-.025em;line-height:1;
}
.pkrow__name em{
  font-style:normal;font-size:.6875rem;font-weight:700;letter-spacing:var(--ls-label);
  text-transform:uppercase;padding:.3rem .65rem;border-radius:var(--r-pill);
  background:var(--lime);color:var(--ink);
}
.pkrow__tag{margin-top:.6rem;font-size:var(--t-small);color:var(--mute);line-height:1.5}
.pkrow__count{
  margin-top:1.5rem;padding-bottom:1.25rem;border-bottom:1px solid var(--card-line);
  display:flex;align-items:baseline;gap:.4rem;font-size:var(--t-small);color:var(--mute);
}
.pkrow--on .pkrow__count{border-bottom-color:rgba(255,255,255,.14)}
.pkrow__count b{
  font-family:var(--font-display);font-weight:600;font-size:2rem;
  letter-spacing:-.035em;color:var(--fg);font-variant-numeric:tabular-nums;
}
/* Price sits directly under the tier name, above the divider — it is the
   first thing a buyer looks for, so it should not be below the feature list. */
.pkrow__price{margin-top:1.25rem;display:flex;align-items:baseline;gap:.4rem}
.pkrow__price b{
  font-family:var(--font-display);font-weight:600;
  font-size:clamp(2rem,3.2vw,2.75rem);letter-spacing:-.04em;line-height:1;
}
.pkrow__price span{font-size:var(--t-small);color:var(--mute)}
.pkrow--on .pkrow__price span{color:var(--paper-70)}
.pkrow__adds{
  margin-top:1.25rem;font-size:var(--t-label);font-weight:600;
  letter-spacing:var(--ls-label);text-transform:uppercase;color:var(--mute);
}
.pkrow .deliv{margin-top:1.25rem;gap:.6rem}
.pkrow .deliv li{font-size:var(--t-small);line-height:1.5}
.pkrow__best{
  margin-top:1.75rem;padding-top:1.25rem;border-top:1px solid var(--card-line);
  font-size:.875rem;line-height:1.55;color:var(--mute);
}
.pkrow--on .pkrow__best{border-top-color:rgba(255,255,255,.14)}
.pkrow__best span{
  display:block;margin-bottom:.3rem;
  font-size:var(--t-label);font-weight:700;letter-spacing:var(--ls-label);
  text-transform:uppercase;color:var(--fg);
}
.pkrow__go{
  margin-top:1.75rem;display:inline-flex;align-items:center;justify-content:center;gap:.5rem;
  height:48px;border-radius:var(--r-pill);background:var(--surface-2);
  font-family:var(--font-display);font-weight:600;font-size:var(--t-small);
  text-decoration:none;transition:background-color .25s var(--ease),color .25s var(--ease);
}
.pkrow--on .pkrow__go{background:var(--lime);color:var(--ink)}
.pkrow:hover .pkrow__go{background:var(--lime);color:var(--ink)}
.pkrow__go span{transition:translate .25s var(--ease)}
.pkrow:hover .pkrow__go span{translate:4px 0}

@media (max-width:900px){ .pk{grid-template-columns:minmax(0,1fr)} }

/* ============================================================
   process
   ============================================================ */
.process{padding-block:var(--section-y)}
.process__note{margin-top:1.25rem;max-width:56ch;color:var(--mute)}
.process__note b{color:var(--fg);font-weight:600}
.steps{margin-top:clamp(2rem,4vw,3rem);display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(.75rem,1.4vw,1.25rem)}
.step{background:var(--surface);border-radius:var(--r-lg);padding:var(--card-pad);border:1px solid var(--card-line)}
.step__num{
  display:inline-grid;place-items:center;width:38px;height:38px;border-radius:50%;
  background:var(--lime);color:var(--ink);
  font-family:var(--font-display);font-weight:700;font-size:.8125rem;font-variant-numeric:tabular-nums;
}
.step h2,.step h3{margin-top:1.25rem;font-family:var(--font-display);font-weight:600;font-size:var(--t-h3);letter-spacing:-.018em;line-height:1.25}
.step p{margin-top:.65rem;color:var(--mute);font-size:var(--t-small);line-height:1.6}
.section--dark .step{background:rgba(255,255,255,.06)}
.section--dark .step p{color:var(--paper-70)}

/* ============================================================
   why
   ============================================================ */
.why{padding-block:var(--section-y)}
.grid{display:grid;gap:clamp(.75rem,1.4vw,1.25rem)}
.grid--why{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:clamp(2rem,4vw,3rem)}
.grid--quotes{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:clamp(2rem,4vw,3rem)}
.why__item{background:var(--surface);border-radius:var(--r-lg);padding:var(--card-pad);border:1px solid var(--card-line)}
.why__item h3{font-family:var(--font-display);font-weight:600;font-size:var(--t-h3);letter-spacing:-.018em;line-height:1.25}
.why__item p{margin-top:.75rem;color:var(--mute);font-size:var(--t-small)}
.section--dark .why__item{background:rgba(255,255,255,.06)}

.quote{background:var(--surface);border-radius:var(--r-lg);padding:var(--card-pad);border:1px solid var(--card-line);display:flex;flex-direction:column}
.quote blockquote{font-size:var(--t-small);line-height:1.6;color:var(--ink-70)}
.quote figcaption{margin-top:auto;padding-top:1.5rem;font-size:.875rem}
.quote figcaption b{display:block;font-weight:600}
.quote figcaption span{color:var(--mute)}

/* ============================================================
   final CTA — rounded dark slab
   ============================================================ */
.final{padding-inline:var(--gutter);padding-block:0 var(--section-y)}
.final__inner{
  background:var(--slab);color:var(--paper);border-radius:var(--r-xl);
  padding:clamp(3rem,7vw,6rem) clamp(1.75rem,5vw,5rem);
  text-align:center;max-width:var(--wrap);margin-inline:auto;
  position:relative;overflow:hidden;
}
.final__inner::before{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(90% 120% at 50% 120%,rgba(214,225,71,.20),transparent 62%);
}
.final .h2{color:var(--paper);max-width:18ch;margin-inline:auto;position:relative}
.final p{margin-top:1.25rem;max-width:48ch;margin-inline:auto;color:var(--paper-70);position:relative}
.final .btn{margin-top:2rem;position:relative}

/* ============================================================
   trust bar + footer
   ============================================================ */
.footer{background:var(--slab);color:var(--paper);padding-block:clamp(3rem,6vw,5rem) 2rem}
.footer__inner{display:grid;grid-template-columns:minmax(0,1.4fr) repeat(3,minmax(0,1fr));gap:clamp(2rem,4vw,3.5rem)}
.footer__brand img{height:28px;width:auto}
.footer__brand p{margin-top:1rem;color:var(--paper-60);font-size:var(--t-small);max-width:32ch}
.footer__nav{display:contents}
.footer__nav h3{font-family:var(--font-display);font-size:var(--t-label);font-weight:600;letter-spacing:var(--ls-label);text-transform:uppercase;color:var(--paper-60);margin-bottom:1rem}
.footer__nav a{display:block;padding:.35rem 0;text-decoration:none;font-size:var(--t-small);color:var(--paper-70);transition:color .2s var(--ease)}
.footer__nav a:hover{color:var(--lime)}
.footer__base{
  display:flex;flex-wrap:wrap;justify-content:space-between;gap:1rem;
  margin-top:clamp(2.5rem,5vw,4rem);padding-top:1.75rem;
  border-top:1px solid rgba(255,255,255,.14);
  font-size:var(--t-label);color:var(--paper-60);
}
.footer__fineprint{max-width:52ch;text-align:right}

/* ============================================================
   reveal
   ============================================================ */
.js .reveal{opacity:0;translate:0 16px}
.js .reveal.is-in{opacity:1;translate:0;transition:opacity .7s var(--ease),translate .7s var(--ease)}
.js .reveal[data-delay="1"].is-in{transition-delay:.07s}
.js .reveal[data-delay="2"].is-in{transition-delay:.14s}
.js .reveal[data-delay="3"].is-in{transition-delay:.21s}
.js .reveal[data-delay="4"].is-in{transition-delay:.28s}

/* ============================================================
   responsive
   ============================================================ */
@media (max-width:1080px){
  .steps{grid-template-columns:repeat(2,minmax(0,1fr))}
  .footer__inner{grid-template-columns:repeat(3,minmax(0,1fr))}
  .footer__brand{grid-column:1 / -1}
}

@media (max-width:900px){
  .hero__grid{grid-template-columns:minmax(0,1fr);align-items:start;gap:2rem}
  .bigquote{grid-template-columns:minmax(0,1fr)}
  .pk{grid-template-columns:minmax(0,1fr)}
}

@media (max-width:860px){

  .trust{flex-direction:column;align-items:flex-start;gap:1.25rem}
  .trust__label{max-width:none;border-right:0;padding-right:0}
  .showcase__frame{aspect-ratio:4/3}
  .grid--why,.grid--quotes,.steps{grid-template-columns:minmax(0,1fr)}
  .footer__inner{grid-template-columns:repeat(2,minmax(0,1fr))}
  .footer__base{flex-direction:column}
  .footer__fineprint{text-align:left}
}

@media (max-width:520px){
  .footer__inner{grid-template-columns:minmax(0,1fr)}
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms !important;transition-duration:.01ms !important}
  html{scroll-behavior:auto}
  .js .reveal{opacity:1;translate:none}
  .trust__track{animation:none}
}

/* ============================================================
   responsive hardening
   Defensive rules for the failure modes that actually shipped bugs
   in this build, rather than ones that only look plausible.
   ============================================================ */

/* 1. Tap targets. WCAG 2.5.8 asks for 24px minimum; 44px is the figure
      Apple and Google both publish, and it is what a thumb needs. The tab
      pills measured 37px. */
@media (pointer:coarse),(max-width:768px){
  .filter{min-height:44px}
  .btn--sm{min-height:44px}
  .nav__mobile a{min-height:44px;display:flex;align-items:center}
  /* Measured 35.2px on every template at every width. */
  .footer__nav a{min-height:44px;display:inline-flex;align-items:center}
  /* 43.2px — near enough to look right and still fail a thumb. */
  .subtab{min-height:44px}
  /* 97.2x20.2px: the category link above a blog post title. */
  .post__head .eyebrow a{min-height:44px;display:inline-flex;align-items:center}
  /* 35x40px, fails both axes. */
  .boardnav--sm{min-width:44px;min-height:44px}
  /* iPad landscape (1024/1180) is a coarse pointer running the DESKTOP nav,
     which renders from 901px — so these never met the phone breakpoint. */
  .nav__links a{min-height:44px;display:inline-flex;align-items:center}
  .themetoggle{min-width:44px;min-height:44px}
}

/* 2. A long unbroken string — a URL pasted into a review, a client name with
      no spaces — cannot be wrapped by the layout and will push a track wide.
      break-word only breaks when there is no other option. */
p,li,blockquote,dd,figcaption,.pkrow__inc,.showcase__rows{overflow-wrap:break-word}

/* 3. Media never exceeds its box regardless of intrinsic size. */
img,svg,video,iframe{max-width:100%;height:auto}
.showcase__slide,.svc__tile img,.piece img{height:100%}

/* 4. Anything that scrolls sideways on purpose gets momentum scrolling and
      keeps its own overflow contained. */
.filters .wrap,.trust__rail{-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}

/* 5. Between the nav breakpoint (860) and the hero breakpoint (900) the bar
      is a hamburger while the hero is still two columns. Align them so there
      is no band where the layout half-changes. */
/* 6. Very small phones: the display type floor was set for 390 and is tight
      at 320–360. */
@media (max-width:380px){
  :root{--t-display:clamp(2.25rem,10vw,2.75rem);--gutter:1.1rem}
  .hero__actions{gap:.75rem}
  .hero__rating{font-size:.8125rem}
  .stat b{font-size:2rem}
}

/* 7. Landscape phones are short, not narrow — a 82vh hero leaves no content
      visible at all. */
@media (max-height:520px) and (orientation:landscape){
  .hero{padding-block:calc(var(--nav-h) + 1.5rem) 2rem}
}

/* ============================================================
   section rhythm
   Two sections on the same page background each paying a full
   --section-y stacks into a dead band twice the intended gap —
   216px measured at 1440. The following section halves its top,
   so the rhythm is one --section-y between sections, not two.
   Sections carrying their own background are excluded: there the
   full band IS the separation between two colours.
   ============================================================ */
main > section + section:not(.final):not(.section--dark):not(.hero){
  padding-top:calc(var(--section-y) * .5);
}

/* ---------- nav: mobile ---------- */
@media (max-width:900px){
  /* Declared HERE, with the breakpoint that actually swaps the bar. It used to
     live in a max-width:860 block while the hamburger switched at 900, so every
     sticky sub-bar sat 20.8px too low between 861 and 900. */
  :root{--nav-h:68px}
  .nav__links,.nav__end{display:none}
  .nav__inner{justify-content:space-between}
  .nav__toggle{
    display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;
    width:var(--pod-h);height:var(--pod-h);flex:none;
  }
  .nav__toggle span{display:block;width:17px;height:1.5px;background:rgba(255,255,255,.8);transition:transform .3s var(--ease)}
  .nav__toggle[aria-expanded="true"] span:first-child{transform:translateY(3.25px) rotate(45deg)}
  .nav__toggle[aria-expanded="true"] span:last-child{transform:translateY(-3.25px) rotate(-45deg)}
  .nav__mobile{display:block}
  .nav__mobile[hidden]{display:none}
}

/* ============================================================
   leadership
   ============================================================ */
.lead-in{padding-block:var(--section-y)}
.person{
  max-width:64ch;margin-inline:auto;text-align:center;
  margin-top:clamp(2rem,4vw,3rem);padding:clamp(1.75rem,3vw,2.5rem);
  background:var(--surface);border:1px solid var(--card-line);border-radius:var(--r-lg);
}
.person__name{
  font-family:var(--font-display);font-weight:600;
  font-size:clamp(1.375rem,2.4vw,1.75rem);letter-spacing:-.025em;line-height:1.1;
}
.person__role{
  margin-top:.5rem;font-size:var(--t-label);font-weight:600;
  letter-spacing:var(--ls-label);text-transform:uppercase;color:var(--accent-text);
}
.person__bio{margin-top:1.25rem;font-size:var(--t-small);line-height:1.65;color:var(--mute)}
