/* ==========================================================================
   Himaveda Pharmtech Labs — design system
   Built to the Digital Brand & Website Master Specification v0.1.
   ========================================================================== */

:root {
  /* Brand — supplied palette.
     CONTRAST NOTE (spec §3.7): measured against white —
       Navy      #0B4F7A  8.70  ✓ text, ✓ fill with white text
       Teal      #16B9C2  2.40  ✗ never text; decorative only
       Deep Teal #0E8FA0  3.85  ✗ normal text, ✓ large text / thick rules
       Slate     #5C6673  5.83  ✓ text
     Two derived tokens close the gap so the brand teal can still read as the
     accent without failing contrast. Nothing here invents a new brand colour. */
  --hv-navy:      #0B4F7A;  /* Navy — primary actions and headings */
  --hv-navy-dk:   #08395A;  /* derived: gradient end, footer ground */
  --hv-teal:      #16B9C2;  /* Teal — decorative accent, never text on light */
  --hv-teal-dp:   #0E8FA0;  /* Deep Teal — large marks, gradients, icon glyphs */
  --hv-teal-ink:  #0C7C8A;  /* derived: link and small-label text (4.92 ✓) */
  --hv-teal-lt:   #8AE3EA;  /* derived: accent text on dark surfaces */
  --hv-slate:     #5C6673;  /* Slate Grey */

  /* Aliases used through the sheet */
  --hv-deep:      var(--hv-navy);
  --hv-deep-2:    var(--hv-navy-dk);
  --hv-accent:    var(--hv-teal-ink);
  --hv-accent-2:  var(--hv-teal);

  /* Neutrals — navy/slate family */
  --ink:          #0F2739;
  --ink-2:        #3E4A57;
  --ink-3:        var(--hv-slate);
  --line:         #dbe3e9;
  --surface:      #ffffff;
  --surface-2:    #f4f8fa;
  --surface-3:    #e6f1f4;

  /* Type — spec §3.3: one legible sans family, three weights, system fallback.
     IBM Plex Sans is the type system; IBM Plex Mono carries eyebrows, metadata,
     numerals and reference strings. The logo is artwork, not type. */
  --font-display: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body:    "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-meta:    "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Rhythm */
  --wrap: 1140px;
  --gut: clamp(1.25rem, 4vw, 3rem);
  --sec: clamp(4rem, 9vw, 7.5rem);
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;      /* spec §3.3: 16–18px body */
  line-height: 1.6;     /* spec §3.3: around 1.5 */
  color: var(--ink-2);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

/* Accessibility baseline — spec §3.7 ---------------------------------------- */
:focus-visible {
  outline: 2px solid var(--hv-teal-ink);
  outline-offset: 3px;
  border-radius: 4px;
}
.hero :focus-visible,
.cta :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--hv-teal-lt);
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--hv-navy);
  color: #fff;
  padding: .8rem 1.4rem;
  border-radius: 0 0 8px 0;
  font-weight: 600;
}
.skip-link:focus {
  left: 0;
  text-decoration: none;
}

img { max-width: 100%; display: block; }

a { color: var(--hv-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 .6em;
}
h1 { font-weight: 700; letter-spacing: -0.03em; }

h1 { font-size: clamp(2.4rem, 5.6vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.005em; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.section { padding-block: var(--sec); }
.section--tint { background: var(--surface-2); }

/* Eyebrow label ------------------------------------------------------------ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-meta);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--hv-accent);
  margin: 0 0 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: .55;
}
.eyebrow--light { color: var(--hv-teal-lt); }

.lede {
  font-size: clamp(1.06rem, 1.7vw, 1.25rem);
  color: var(--ink-2);
  max-width: 62ch;
}

/* Buttons ------------------------------------------------------------------ */
.btn {
  display: inline-block;
  padding: .95rem 1.9rem;
  border-radius: 999px;
  font-size: .93rem;
  font-weight: 600;
  letter-spacing: .01em;
  border: 1px solid transparent;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn--primary { background: var(--hv-navy); color: #fff; }
.btn--primary:hover { background: var(--hv-navy-dk); }

/* On dark surfaces the navy fill has almost no separation from the ground,
   so the primary action inverts to white (8.70 against navy either way). */
.hero .btn--primary,
.cta .btn--primary {
  background: #fff;
  color: var(--hv-navy);
}
.hero .btn--primary:hover,
.cta .btn--primary:hover {
  background: var(--hv-teal-lt);
  color: var(--hv-navy-dk);
}

.btn--ghost {
  border-color: rgba(255,255,255,.38);
  color: #fff;
}
.btn--ghost:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.65); }

.btn--outline { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn--outline:hover { border-color: var(--hv-accent); color: var(--hv-accent); }

/* Header ------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 76px;
}

/* Brand lockup — real artwork. The supplied logo is a stacked square, which is
   wrong for a 76px header bar, so the mark and wordmark are set side by side.
   Footer uses white knockouts of the same two files. */
.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  line-height: 0;
}
.brand:hover { text-decoration: none; }
.brand__mark {
  height: 46px;
  width: auto;
  transition: height .25s ease;
}
.brand__word {
  height: 36px;
  width: auto;
  transition: height .25s ease;
}
.site-header.is-scrolled .brand__mark { height: 38px; }
.site-header.is-scrolled .brand__word { height: 30px; }

/* The mark's meaning lives in the colour separation between the navy H, the
   teal leaf and the blue flask, so a white knockout flattens it to a blob.
   On the dark footer it sits on a white tile instead, at full colour. */
.site-footer .brand { gap: .75rem; }
.site-footer .brand__mark {
  height: 54px;
  background: #fff;
  border-radius: 10px;
  padding: 6px 8px;
}
.site-footer .brand__word { height: 38px; }

/* Brand tagline — set in type rather than placed as artwork so it stays
   selectable, translatable and legible at any size. The flanking rules echo
   the logo lockup. */
.tagline {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  margin: 1.35rem 0 0;
  font-size: .86rem;
  font-weight: 500;
  letter-spacing: .005em;
  line-height: 1.5;
  color: var(--hv-teal-lt);
}
.tagline::before {
  content: "";
  flex: 0 0 22px;
  height: 1px;
  margin-top: .68em;          /* sits on the first line, not the block centre */
  background: currentColor;
  opacity: .55;
}

@media (max-width: 460px) {
  .brand__mark { height: 40px; }
  .brand__word { height: 30px; }
}

.nav { display: flex; align-items: center; gap: 2rem; }
.nav a {
  font-size: .93rem;
  font-weight: 500;
  color: var(--ink-2);
}
.nav a:hover { color: var(--hv-accent); text-decoration: none; }
.nav a.btn--primary,
.nav a.btn--primary:hover { color: #fff; }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .5rem .7rem;
  cursor: pointer;
  color: var(--ink);
}

/* Hero --------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 80% -8%, rgba(22,185,194,.32), transparent 62%),
    linear-gradient(140deg, var(--hv-navy-dk) 0%, var(--hv-navy) 45%, var(--hv-teal-dp) 100%);
  color: #dceceb;
  padding-block: clamp(5rem, 11vw, 9rem);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(760px 460px at 72% 12%, #000, transparent 78%);
  pointer-events: none;
}
.hero > .wrap { position: relative; z-index: 1; }
/* Spec §3.5 requires short and long headline variants; 20ch holds both without
   the long one collapsing into a four-line stack. */
.hero h1 { color: #fff; max-width: 20ch; }
.hero p {
  max-width: 60ch;
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  color: rgba(233,244,242,.86);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.4rem; }

/* Two-column split --------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.split__aside { position: sticky; top: 110px; }

/* Vision / Mission cards --------------------------------------------------- */
.vm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.vm-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  position: relative;
  overflow: hidden;
}
.vm-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--hv-teal-dp), var(--hv-teal));
}
.vm-card h3 {
  font-size: 1.45rem;
  margin-bottom: .5rem;
}
.vm-card p { font-size: 1.03rem; }

/* Values ------------------------------------------------------------------- */
.values {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.value {
  background: var(--surface);
  box-shadow: 0 0 0 .5px var(--line);
  padding: 1.9rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  transition: background .2s ease;
}
.value:hover { background: var(--surface-2); }
.value__num {
  font-family: var(--font-meta);
  font-size: .8rem;
  font-weight: 500;
  color: var(--hv-accent);
  letter-spacing: .08em;
}
.value h3 { margin: 0; font-size: 1.08rem; }
.value p { font-size: .93rem; color: var(--ink-3); line-height: 1.6; }

/* Differentiators ---------------------------------------------------------- */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.diff {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  transition: border-color .2s ease, transform .2s ease;
}
.diff:hover { border-color: var(--hv-teal-dp); transform: translateY(-3px); }
.diff__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--surface-3);
  color: var(--hv-deep);
  margin-bottom: 1.2rem;
}
.diff__icon svg { width: 21px; height: 21px; }
.diff h3 { margin-bottom: .35rem; font-size: 1.15rem; }
.diff p { font-size: .96rem; color: var(--ink-3); }

/* Support pillars ---------------------------------------------------------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 2.5rem;
}
.pillar {
  background: var(--surface);
  padding: 1.6rem 1.4rem;
  text-align: center;
}
.pillar__icon {
  width: 34px; height: 34px;
  margin: 0 auto .8rem;
  display: grid; place-items: center;
  border-radius: 9px;
  background: var(--surface-3);
  color: var(--hv-teal-dp);
}
.pillar__icon svg { width: 18px; height: 18px; }
.pillar h3 { font-size: .98rem; margin: 0; }

/* Industry cards ----------------------------------------------------------- */
.industries {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.industry {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.1rem 1.9rem;
  overflow: hidden;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.industry::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--hv-navy), var(--hv-teal-dp) 55%, var(--hv-teal));
  opacity: 0;
  transition: opacity .2s ease;
}
.industry:hover {
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 14px 34px -18px rgba(11,79,122,.45);
}
.industry:hover::before { opacity: 1; }
.industry__icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--surface-3);
  color: var(--hv-navy);
  margin-bottom: 1.3rem;
}
.industry__icon svg { width: 23px; height: 23px; }
.industry h3 { font-size: 1.22rem; margin-bottom: .5rem; }
.industry p { font-size: .97rem; color: var(--ink-3); margin: 0; }

/* Feature band ------------------------------------------------------------- */
/* Hero microcopy -------------------------------------------------------- */
.hero__micro {
  margin-top: 1.5rem;
  font-size: .93rem;
  color: rgba(214,235,232,.68);
  max-width: 46ch;
}

/* Trust / proof strip ---------------------------------------------------- */
.proof {
  border-bottom: 1px solid var(--line);
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}
.proof__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(1rem, 4vw, 3.5rem);
  align-items: baseline;
}
.proof h2 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); margin: 0; }
.proof p { margin: 0; }

/* Challenge list --------------------------------------------------------- */
.challenges { border-top: 1px solid var(--line); margin-top: 2.5rem; }
.challenge {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto;
  gap: 1rem 2rem;
  align-items: baseline;
  padding: 1.6rem .25rem;
  border-bottom: 1px solid var(--line);
  color: inherit;
  transition: background .18s ease, padding .18s ease;
}
.challenge:hover {
  text-decoration: none;
  background: var(--surface-2);
  padding-inline: 1rem;
}
.challenge h3 { margin: 0; font-size: 1.1rem; color: var(--ink); }
.challenge:hover h3 { color: var(--hv-teal-ink); }
.challenge p { margin: 0; font-size: .97rem; color: var(--ink-3); }
.challenge__arrow {
  color: var(--hv-teal-ink);
  font-size: 1.1rem;
  transition: transform .18s ease;
}
.challenge:hover .challenge__arrow { transform: translateX(4px); }

/* Process narrative ------------------------------------------------------ */
.process { max-width: 68ch; }
.process p { font-size: clamp(1.02rem, 1.5vw, 1.15rem); }

/* Insight cards ---------------------------------------------------------- */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem;
  margin-top: 2.75rem;
}
.insight {
  display: flex;
  flex-direction: column;
  gap: .7rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.7rem;
  color: inherit;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.insight:hover {
  text-decoration: none;
  transform: translateY(-3px);
  border-color: var(--hv-teal-dp);
  box-shadow: 0 14px 34px -20px rgba(11,79,122,.4);
}
.insight__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .9rem;
  font-family: var(--font-meta);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--hv-teal-ink);
}
.insight__meta span:last-child { color: var(--ink-3); }
.insight h3 { margin: 0; font-size: 1.12rem; }
.insight p { margin: 0; font-size: .95rem; color: var(--ink-3); }
.insight--featured { border-color: var(--hv-teal-dp); }

/* Editorial band — light surface. Spec §3.4 keeps dark surfaces for selected
   conversion moments only, so this stays quiet and the CTA below carries the weight. */
.band {
  border-top: 2px solid var(--hv-teal-dp);
  background: var(--surface-2);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: clamp(2.25rem, 5vw, 3.25rem);
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(1.25rem, 5vw, 4rem);
  align-items: start;
}
.band h2 { margin: 0; }
.band p { font-size: 1.08rem; margin: 0; }

@media (max-width: 860px) {
  .band { grid-template-columns: 1fr; }
}

/* Closing CTA -------------------------------------------------------------- */
.cta {
  background: linear-gradient(140deg, var(--hv-navy-dk) 0%, var(--hv-navy) 48%, var(--hv-teal-dp) 100%);
  color: rgba(233,244,242,.88);
  border-radius: var(--radius);
  padding: clamp(2.75rem, 6vw, 4.5rem);
  text-align: center;
}
.cta h2 { color: #fff; max-width: 22ch; margin-inline: auto; }
.cta p { max-width: 58ch; margin-inline: auto; font-size: 1.08rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; margin-top: 2.2rem; }

/* Footer ------------------------------------------------------------------- */
.site-footer {
  background: var(--hv-deep-2);
  color: rgba(215,232,230,.68);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  font-size: .92rem;
}
.site-footer a { color: rgba(215,232,230,.78); }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(2, 1fr);
  gap: 2.5rem;
}
.footer-grid h4 {
  color: #fff;
  font-family: var(--font-meta);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: .85rem;
  color: rgba(215,232,230,.5);
}

/* Responsive --------------------------------------------------------------- */
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split__aside { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: .5rem var(--gut) 1.25rem;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .75rem 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: .9rem; border-bottom: none; }
  .nav-toggle { display: block; }
  .site-header__inner { position: relative; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ==========================================================================
   MOTION — spec §3.6
   Rules this layer obeys:
   · motion confirms state change, guides attention, or preserves continuity
   · short fades and small movement only; no parallax, no continuous loops
   · reduced-motion is honoured completely, not partially
   · nothing gates access to core copy or CTAs — the reveal layer is opt-in
     via the .js class, so with JavaScript off every section renders visible
   ========================================================================== */

/* Scroll reveal ------------------------------------------------------------ */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
  transition:
    opacity   .55s cubic-bezier(.22,.61,.36,1),
    transform .55s cubic-bezier(.22,.61,.36,1);
  transition-delay: calc(var(--i, 0) * 70ms);
}

/* Hero entrance — runs from CSS on load, so it cannot strand content if a
   script fails. Single short fade, no stagger on the CTA row. */
.hero .wrap > * {
  animation: hv-rise .45s cubic-bezier(.22,.61,.36,1) both;
}
.hero .eyebrow      { animation-delay: .04s; }
.hero h1            { animation-delay: .10s; }
.hero > .wrap > p   { animation-delay: .16s; }
.hero__actions      { animation-delay: .20s; }
.hero__micro        { animation-delay: .24s; }

@keyframes hv-rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

/* Header state change ------------------------------------------------------ */
.site-header {
  transition: box-shadow .25s ease, background .25s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 6px 24px -18px rgba(11,79,122,.55);
  background: rgba(255,255,255,.94);
}

/* Navigation — underline grows from the left on hover and focus */
.nav a:not(.btn) {
  position: relative;
  padding-block: .35rem;
}
.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: var(--hv-teal-dp);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s cubic-bezier(.22,.61,.36,1);
}
.nav a:not(.btn):hover::after,
.nav a:not(.btn):focus-visible::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); }

/* Mobile menu -------------------------------------------------------------- */
@media (max-width: 720px) {
  .nav.is-open { animation: hv-drop .22s cubic-bezier(.22,.61,.36,1) both; }
  @keyframes hv-drop {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: none; }
  }
  .nav-toggle { transition: background .18s ease, border-color .18s ease; }
  .nav-toggle[aria-expanded="true"] {
    background: var(--surface-3);
    border-color: var(--hv-teal-dp);
  }
}

/* Card lift — sharpen what already existed so it reads as one system -------- */
.diff, .industry, .insight, .vm-card {
  transition:
    transform    .28s cubic-bezier(.22,.61,.36,1),
    box-shadow   .28s cubic-bezier(.22,.61,.36,1),
    border-color .28s ease;
}
.diff__icon, .industry__icon, .pillar__icon {
  transition: background .28s ease, color .28s ease, transform .28s cubic-bezier(.34,1.3,.64,1);
}
.diff:hover .diff__icon,
.industry:hover .industry__icon {
  background: var(--hv-navy);
  color: #fff;
  transform: translateY(-2px);
}
.pillar { transition: background .22s ease; }
.pillar:hover { background: var(--surface-2); }
.pillar:hover .pillar__icon { transform: translateY(-2px); }

/* Value cells — the rule slides in rather than the whole cell moving */
.value { position: relative; }
.value::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--hv-teal-dp), var(--hv-teal));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s cubic-bezier(.22,.61,.36,1);
}
.value:hover::after { transform: scaleX(1); }

/* Reduced motion — remove every transition, transform and animation --------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .btn:hover, .diff:hover, .industry:hover, .insight:hover { transform: none !important; }
}

/* ==========================================================================
   INTERIOR PAGE COMPONENTS
   ========================================================================== */

/* Compact hero for interior pages ------------------------------------------ */
.hero--page { padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.hero--page h1 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); max-width: 22ch; }

/* Breadcrumbs — spec §5.10 -------------------------------------------------- */
.crumbs {
  font-family: var(--font-meta);
  font-size: .74rem;
  letter-spacing: .06em;
  margin: 0 0 1.4rem;
  color: rgba(214,235,232,.62);
}
.crumbs a { color: var(--hv-teal-lt); }
.crumbs span { padding: 0 .45rem; opacity: .5; }

/* Service groups ----------------------------------------------------------- */
.svc-group + .svc-group { margin-top: clamp(2.5rem, 5vw, 4rem); }
.svc-group__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .75rem 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--hv-teal-dp);
  margin-bottom: 1.75rem;
}
.svc-group__head h3 { margin: 0; font-size: clamp(1.3rem, 2.2vw, 1.65rem); }
.svc-group__head p { margin: 0; color: var(--ink-3); font-size: .97rem; flex: 1 1 20ch; }

.svc-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.25rem;
}
.svc {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  background: var(--surface);
  color: inherit;
  transition: border-color .22s ease, transform .22s cubic-bezier(.22,.61,.36,1), box-shadow .22s ease;
}
a.svc:hover {
  text-decoration: none;
  border-color: var(--hv-teal-dp);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -20px rgba(11,79,122,.5);
}
.svc h4 {
  margin: 0 0 .45rem;
  font-size: 1.05rem;
  display: flex;
  align-items: baseline;
  gap: .5rem;
  justify-content: space-between;
}
.svc h4 .go { color: var(--hv-teal-ink); font-size: .95rem; transition: transform .2s ease; }
a.svc:hover h4 .go { transform: translateX(3px); }
.svc p { margin: 0; font-size: .94rem; color: var(--ink-3); line-height: 1.55; }

/* Numbered process steps --------------------------------------------------- */
.steps { counter-reset: step; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 2.5rem; }
.step { background: var(--surface); padding: 1.6rem 1.5rem; display: grid; grid-template-columns: auto minmax(0,1fr); gap: 1.25rem; align-items: start; }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-meta);
  font-size: .82rem;
  color: var(--hv-teal-ink);
  padding-top: .15rem;
}
.step h4 { margin: 0 0 .3rem; font-size: 1.05rem; }
.step p { margin: 0; font-size: .95rem; color: var(--ink-3); }

/* Reference table ---------------------------------------------------------- */
.tbl-wrap { overflow-x: auto; margin-top: 2rem; border: 1px solid var(--line); border-radius: var(--radius); }
table.ref { width: 100%; border-collapse: collapse; font-size: .94rem; min-width: 620px; }
table.ref th {
  font-family: var(--font-meta);
  font-size: .7rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3); text-align: left; padding: .85rem 1rem;
  background: var(--surface-2); border-bottom: 1px solid var(--line);
}
table.ref td { padding: .85rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
table.ref tr:last-child td { border-bottom: 0; }
table.ref td:first-child { color: var(--ink); font-weight: 600; white-space: nowrap; }
table.ref td.code { font-family: var(--font-meta); font-size: .86rem; color: var(--hv-teal-ink); white-space: nowrap; }

/* Review callout ----------------------------------------------------------- */
.callout {
  border-left: 3px solid var(--hv-teal-dp);
  background: var(--surface-2);
  border-radius: 0 10px 10px 0;
  padding: 1.15rem 1.4rem;
  margin-top: 2rem;
  font-size: .93rem;
}
.callout strong { color: var(--ink); }
.callout__tag {
  display: block;
  font-family: var(--font-meta);
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--hv-teal-ink); margin-bottom: .4rem;
}

/* Outcome list ------------------------------------------------------------- */
.outcomes { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: .85rem; }
.outcomes li { display: grid; grid-template-columns: auto minmax(0,1fr); gap: .8rem; align-items: start; font-size: 1rem; }
.outcomes li::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--hv-teal-dp); margin-top: .55em;
}

/* Filters ------------------------------------------------------------------ */
.filters { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 2rem; }
.filter {
  font-family: var(--font-meta);
  font-size: .74rem; letter-spacing: .06em;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
  border-radius: 999px; padding: .5rem 1rem; cursor: pointer;
  transition: .16s;
}
.filter:hover { border-color: var(--hv-teal-dp); }
.filter[aria-pressed="true"] { background: var(--hv-navy); border-color: var(--hv-navy); color: #fff; }

/* Article rows ------------------------------------------------------------- */
.rows { border-top: 1px solid var(--line); margin-top: 2.25rem; }
.row-item {
  display: grid;
  grid-template-columns: minmax(0,.9fr) minmax(0,1.4fr) auto;
  gap: .6rem 2rem;
  align-items: baseline;
  padding: 1.5rem .25rem;
  border-bottom: 1px solid var(--line);
  color: inherit;
  transition: background .18s ease, padding .18s ease;
}
.row-item:hover { text-decoration: none; background: var(--surface-2); padding-inline: 1rem; }
.row-item h3 { margin: 0; font-size: 1.08rem; color: var(--ink); }
.row-item:hover h3 { color: var(--hv-teal-ink); }
.row-item .meta { font-family: var(--font-meta); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--hv-teal-ink); }
.row-item .meta em { font-style: normal; color: var(--ink-3); display: block; margin-top: .3rem; }
.row-item p { margin: 0; font-size: .95rem; color: var(--ink-3); }
.row-item .go { color: var(--hv-teal-ink); transition: transform .18s ease; }
.row-item:hover .go { transform: translateX(4px); }

@media (max-width: 760px) {
  .row-item, .challenge { grid-template-columns: 1fr; gap: .5rem; }
  .row-item .go, .challenge__arrow { display: none; }
  .step { grid-template-columns: 1fr; gap: .4rem; }
}

/* Related links ------------------------------------------------------------ */
.related {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}
.related a {
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 1.15rem 1.25rem;
  color: inherit;
  transition: border-color .2s ease, background .2s ease;
}
.related a:hover { text-decoration: none; border-color: var(--hv-teal-dp); background: var(--surface-2); }
.related .kind {
  display: block;
  font-family: var(--font-meta);
  font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--hv-teal-ink); margin-bottom: .4rem;
}
.related strong { color: var(--ink); font-weight: 600; }

/* Footer — four columns ---------------------------------------------------- */
.footer-grid--4 { grid-template-columns: 1.5fr repeat(3, 1fr); }
@media (max-width: 980px) { .footer-grid--4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .footer-grid--4 { grid-template-columns: 1fr; } }

/* Visually hidden, still announced ----------------------------------------- */
.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;
}

/* Form --------------------------------------------------------------------- */
.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2.25rem;
}
.field { display: flex; flex-direction: column; gap: .45rem; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-meta);
  font-size: .74rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3);
}
.field .hint {
  font-family: var(--font-body);
  font-size: .86rem; letter-spacing: 0; text-transform: none;
  color: var(--ink-3); font-weight: 400; margin: 0 0 .9rem;
}
.field label .hint { display: inline; margin: 0 0 0 .4rem; }
.field input, .field select, .field textarea {
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: .8rem .9rem;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field textarea { resize: vertical; min-height: 7rem; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--hv-teal-dp);
  box-shadow: 0 0 0 3px rgba(14,143,160,.16);
}
.form .btn { justify-self: start; cursor: pointer; }
@media (max-width: 620px) { .form { grid-template-columns: 1fr; } }

/* ==========================================================================
   DIAGRAMS AND RICH UI
   ========================================================================== */

/* Reading progress — a state indicator, not decoration (spec §3.6) --------- */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px;
  z-index: 60; background: transparent; pointer-events: none;
}
.progress__bar {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--hv-navy), var(--hv-teal-dp) 60%, var(--hv-teal));
  transition: width .12s linear;
}

/* On-this-page navigation -------------------------------------------------- */
.onpage {
  position: sticky; top: 92px;
  align-self: start;
  border-left: 2px solid var(--line);
  padding-left: 1.1rem;
}
.onpage h2 {
  font-family: var(--font-meta);
  font-size: .7rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3); margin: 0 0 .9rem;
}
.onpage ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; counter-reset: op; }
.onpage a {
  font-size: .92rem; color: var(--ink-3); display: block; line-height: 1.4;
  transition: color .18s ease, transform .18s ease;
}
.onpage a:hover { color: var(--hv-teal-ink); text-decoration: none; transform: translateX(2px); }
.onpage a.is-active { color: var(--ink); font-weight: 600; }
.onpage a.is-active::before {
  content: ""; position: absolute; left: -1.15rem; width: 2px; height: 1.15em;
  background: var(--hv-teal-dp);
}
.onpage li { position: relative; }
@media (max-width: 900px) { .onpage { display: none; } }

.layout-aside {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 900px) { .layout-aside { grid-template-columns: 1fr; } }

/* Diagram frame ------------------------------------------------------------ */
.dgm {
  margin-top: 2.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  overflow-x: auto;
}
.dgm svg { display: block; width: 100%; height: auto; min-width: 560px; }
.dgm figcaption {
  margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--line);
  font-size: .87rem; color: var(--ink-3);
}
.dgm--tint { background: var(--surface-2); }

/* SVG token styling so diagrams follow the palette ------------------------- */
.dgm .d-line   { stroke: var(--line); stroke-width: 2; fill: none; }
.dgm .d-axis   { stroke: var(--hv-teal-dp); stroke-width: 2; fill: none; }
.dgm .d-node   { fill: var(--surface); stroke: var(--hv-navy); stroke-width: 2; }
.dgm .d-node-f { fill: var(--hv-navy); stroke: none; }
.dgm .d-node-a { fill: var(--hv-teal-dp); stroke: none; }
.dgm .d-label  { font-family: var(--font-body); font-size: 13px; font-weight: 600; fill: var(--ink); }
.dgm .d-sub    { font-family: var(--font-body); font-size: 12.5px; fill: var(--ink-3); }
.dgm .d-meta   { font-family: var(--font-meta); font-size: 12px; fill: var(--hv-teal-ink); letter-spacing: .04em; }
.dgm .d-chip   { fill: var(--surface-3); stroke: none; }
.dgm .d-chip-b { fill: var(--hv-navy); stroke: none; }
.dgm .d-onnavy { fill: #fff; }

/* Draw-in animation, gated on the reveal class ----------------------------- */
.js .dgm .d-draw { stroke-dasharray: 1400; stroke-dashoffset: 1400; }
.js .is-in .d-draw,
.js .dgm.is-in .d-draw { animation: d-draw 1.5s cubic-bezier(.33,.9,.36,1) forwards; }
@keyframes d-draw { to { stroke-dashoffset: 0; } }

.js .dgm .d-pop { opacity: 0; transform: translateY(6px); }
.js .is-in .d-pop,
.js .dgm.is-in .d-pop {
  animation: d-pop .5s cubic-bezier(.22,.61,.36,1) forwards;
  animation-delay: calc(.25s + var(--n, 0) * .11s);
}
@keyframes d-pop { to { opacity: 1; transform: none; } }

.dgm g[data-stage] { transition: opacity .2s ease; cursor: default; }
.dgm:hover g[data-stage] { opacity: .55; }
.dgm g[data-stage]:hover { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .js .dgm .d-draw { stroke-dashoffset: 0 !important; animation: none !important; }
  .js .dgm .d-pop  { opacity: 1 !important; transform: none !important; animation: none !important; }
  .progress__bar { transition: none; }
}

/* Region grid -------------------------------------------------------------- */
.regions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; margin-top: 2.5rem;
}
.region { background: var(--surface); padding: 1.6rem 1.5rem; transition: background .2s ease; }
.region:hover { background: var(--surface-2); }
.region .code {
  font-family: var(--font-meta); font-size: .7rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--hv-teal-ink); display: block; margin-bottom: .5rem;
}
.region h4 { margin: 0 0 .4rem; font-size: 1.05rem; }
.region p { margin: 0; font-size: .93rem; color: var(--ink-3); line-height: 1.55; }

/* Article prose ------------------------------------------------------------ */
.hero--article h1 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); max-width: 26ch; }
.prose { max-width: 70ch; }
.prose h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  margin: 2.75rem 0 .9rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { font-size: 1.1rem; margin: 2rem 0 .6rem; }
.prose p { font-size: 1.0625rem; line-height: 1.7; margin: 0 0 1.15em; }
.prose .prose-list { margin: 0 0 1.4em; padding: 0; list-style: none; display: grid; gap: .6rem; }
.prose .prose-list li {
  display: grid; grid-template-columns: auto minmax(0,1fr); gap: .8rem;
  align-items: start; font-size: 1.02rem; line-height: 1.6;
}
.prose .prose-list li::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--hv-teal-dp); margin-top: .62em;
}
.prose .tbl-wrap { margin: 1.75rem 0 2rem; }
.prose .callout { margin-top: 2.5rem; }

sup.cite {
  font-family: var(--font-meta);
  font-size: .62em; font-weight: 500;
  color: var(--hv-teal-ink);
  padding-left: .15em;
}

.sources { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; font-size: .92rem; }
.sources li { display: grid; grid-template-columns: 2rem minmax(0,1fr); align-items: baseline; }
.sources .ref-n { font-family: var(--font-meta); font-size: .78rem; color: var(--hv-teal-ink); }
.sources a { color: var(--ink-2); word-break: break-word; }
.sources a:hover { color: var(--hv-teal-ink); }

.art-meta {
  font-size: .88rem; margin: 0 0 .7rem; color: var(--ink);
}
.art-meta span {
  display: block;
  font-family: var(--font-meta); font-size: .66rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: .15rem;
}

/* ==========================================================================
   RESPONSIVE HARDENING
   Targets: iPhone (375–430), iPad (768–1366), laptop (1280–1440), desktop (1920+)
   ========================================================================== */

/* Grid and flex children default to min-width:auto, which refuses to shrink
   below their content's intrinsic width. A 620px table inside a grid column
   therefore drags the whole page sideways on a phone. min-width:0 lets the
   column shrink so the table scrolls inside its own container instead. */
.layout-aside > *,
.split > *,
.proof__inner > *,
.band > *,
.svc-list > *,
.insights-grid > *,
.diff-grid > *,
.industries > *,
.related > *,
.rows > *,
.challenge > *,
.row-item > *,
.step > *,
.footer-grid > * { min-width: 0; }

.prose { max-width: min(70ch, 100%); }
.lede  { max-width: min(62ch, 100%); }
.tbl-wrap, .dgm, .prose img, .prose pre { max-width: 100%; }

/* Scroll containers: momentum on iOS, and a fade so it is visible that
   there is more content to the right. */
.tbl-wrap, .dgm {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
@media (max-width: 900px) {
  .tbl-wrap {
    background:
      linear-gradient(to right, var(--surface) 30%, rgba(255,255,255,0)) left / 32px 100% no-repeat,
      linear-gradient(to left,  var(--surface) 30%, rgba(255,255,255,0)) right / 32px 100% no-repeat,
      radial-gradient(farthest-side at 0 50%, rgba(11,79,122,.16), transparent) left / 14px 100% no-repeat,
      radial-gradient(farthest-side at 100% 50%, rgba(11,79,122,.16), transparent) right / 14px 100% no-repeat;
    background-attachment: local, local, scroll, scroll;
  }
}

/* ---- Phones -------------------------------------------------------------- */
@media (max-width: 560px) {
  html { -webkit-text-size-adjust: 100%; }

  /* The desktop clamp floor is too large on a 375px screen. */
  h1 { font-size: clamp(1.85rem, 8.2vw, 2.4rem); }
  h2 { font-size: clamp(1.5rem, 6.4vw, 1.9rem); }
  .hero--page h1, .hero--article h1 { font-size: clamp(1.7rem, 7.6vw, 2.1rem); }
  .lede { font-size: 1.02rem; }

  .hero { padding-block: clamp(3rem, 12vw, 4.5rem); }
  .section { padding-block: clamp(2.75rem, 11vw, 4rem); }

  /* Full-width actions read better than two half-width pills. */
  .hero__actions, .cta__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn, .cta__actions .btn { text-align: center; }

  .cta { padding: 2rem 1.4rem; }
  .dgm { padding: 1.1rem .9rem; }
  .prose h2 { margin-top: 2.25rem; }
  .footer-bottom { flex-direction: column; gap: .6rem; }
}

/* Comfortable touch targets — 44px minimum on any coarse pointer. */
@media (pointer: coarse) {
  .nav a:not(.btn) { padding-block: .75rem; }
  .nav-toggle { min-width: 44px; min-height: 44px; }
  .filter { padding: .65rem 1.1rem; }
  .btn { padding-block: 1rem; }
  .row-item, .challenge { padding-block: 1.25rem; }
  /* Hover lifts are meaningless on touch and can leave elements stuck. */
  .diff:hover, .industry:hover, .insight:hover, a.svc:hover { transform: none; }
}

/* Notched iPhones: keep content clear of the rounded corners in landscape. */
@supports (padding: max(0px)) {
  .wrap {
    padding-left: max(var(--gut), env(safe-area-inset-left));
    padding-right: max(var(--gut), env(safe-area-inset-right));
  }
  .site-footer { padding-bottom: max(2rem, env(safe-area-inset-bottom)); }
}

/* ---- Tablets ------------------------------------------------------------- */
/* The full nav stops fitting before the old 720px breakpoint, so the menu
   now takes over across iPad portrait as well. */
@media (max-width: 1000px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 34px -26px rgba(11,79,122,.55);
    padding: .5rem var(--gut) 1.25rem;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .85rem 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: .9rem; border-bottom: none; text-align: center; }
  .nav-toggle { display: block; }
  .site-header__inner { position: relative; }
}

/* iPad portrait and landscape: two columns read better than three at this width. */
@media (min-width: 700px) and (max-width: 1100px) {
  .svc-list, .diff-grid, .industries, .insights-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .values  { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* The on-page sidebar only earns its space once there is room for it. */
@media (max-width: 1100px) {
  .layout-aside { grid-template-columns: 1fr; }
  .onpage { display: none; }
}
@media (min-width: 1101px) {
  .layout-aside { grid-template-columns: 220px minmax(0, 1fr); }
  .onpage { display: block; }
}

/* ---- Large desktops ------------------------------------------------------ */
/* Stop the measure from stretching to an uncomfortable line length. */
@media (min-width: 1600px) {
  :root { --wrap: 1240px; }
  body { font-size: 17.5px; }
}

/* Form fields carry an intrinsic min-width from the input's default size
   attribute, which overflows a narrow phone column. */
.form { min-width: 0; }
.form .field { min-width: 0; }
.field input, .field select, .field textarea {
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

/* The proof strip's two columns squeeze the heading to two words per line
   on a phone. Stack it. */
@media (max-width: 760px) {
  .proof__inner { grid-template-columns: 1fr; gap: .9rem; }
  .proof h2 { font-size: 1.35rem; }
}
