/* =========================================================
   Designmine — Design System
   Clean / minimal / light, with jewel-tone accents.
   ========================================================= */

/* ---------- Fonts ---------- */
/* Geom (headings) and Inter (body) are loaded via Google Fonts <link> in each page's <head>. */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }

/* ---------- Tokens ---------- */
:root {
  /* Surfaces */
  --bg:        #fbfbf9;   /* warm off-white */
  --surface:   #ffffff;
  --surface-2: #f3f3ef;
  --line:      #e6e6df;
  --field-border: #868c94;  /* meets WCAG 1.4.11 non-text contrast (>=3:1) on white */

  /* Ink */
  --ink:       #14161a;
  --ink-soft:  #3a3f47;
  --muted:     #656b74;      /* darkened to clear 4.5:1 on surface-2 (WCAG 1.4.3) */

  /* Jewel accents */
  --emerald:   #0f8a6a;
  --emerald-d: #0a6e55;
  --sapphire:  #2e5aac;
  --amethyst:  #7c4dbc;
  --ruby:      #c13e5a;
  --topaz:     #e0a020;
  --topaz-d:   #8a6214;   /* darker gold for text on light bg — meets WCAG AA (4.9:1) */
  --aqua:      #1aa6a0;

  /* Roles */
  --accent:    var(--emerald);
  --accent-d:  var(--emerald-d);

  /* Type — --serif kept as the token name; now points to the Geom display face */
  --serif: "Geom", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 16px;
  --radius-sm: 10px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(20,22,26,.05), 0 4px 16px rgba(20,22,26,.04);
  --shadow-md: 0 6px 24px rgba(20,22,26,.08), 0 2px 6px rgba(20,22,26,.05);
}

/* ---------- Base ---------- */
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: -0.005em;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700; /* Geom ships a single weight */
  line-height: 1.06;
  letter-spacing: -0.023em;
  color: var(--ink);
  font-optical-sizing: auto;
}

.display   { font-size: clamp(2.6rem, 6.4vw, 5rem); }
.h2        { font-size: clamp(2rem, 4.2vw, 3.2rem); }
.h3        { font-size: clamp(1.35rem, 2.4vw, 1.9rem); }
.eyebrow {
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-d);
  display: inline-flex;
  align-items: center;
  gap: .55rem;
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px; background: currentColor; opacity: .5;
}
.lede { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--ink-soft); line-height: 1.55; }
.muted { color: var(--muted); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 10vw, 130px); }
.section--tight { padding-block-start: 0; padding-block-end: clamp(48px, 7vw, 90px); }
.section--alt { background: var(--surface-2); }
main#main-content .section--tight:last-of-type,
.section--mid { padding-block: clamp(48px, 7vw, 90px); }
.center { text-align: center; }
.stack > * + * { margin-top: 1rem; }
.grid { display: grid; gap: clamp(20px, 3vw, 34px); }
.section-head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head.center { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .9rem 1.5rem; border-radius: 999px;
  font-weight: 700; font-size: .95rem; letter-spacing: -0.01em;
  border: 1px solid transparent; transition: transform .3s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .3s;
  will-change: transform;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: var(--accent-d); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.btn .arw { transition: transform .3s var(--ease); }
.btn:hover .arw { transform: translateX(4px); }
.btn.btn--primary, .btn.btn--ghost {
    line-height: 0.7lh;
}

.textlink {
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 700; color: var(--accent-d); font-size: .95rem;
}
.textlink .arw { transition: transform .3s var(--ease); }
.textlink:hover .arw { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 1.5rem; position: relative; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--serif); font-size: 1.3rem; letter-spacing: -0.03em; font-weight: 500; }
.brand__mark { width: 26px; height: 26px; flex: none; }
.brand__logo { height: 26px; width: auto; flex: none; display: block; }
.nav__links { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); }
.nav__links > a, .nav__link {
  font-size: .95rem; font-weight: 600; color: var(--ink-soft); position: relative; padding-block: .3rem;
  transition: color .2s; display: inline-flex; align-items: center; gap: .35rem;
  background: none; border: 0; font-family: inherit; cursor: pointer;
}
.nav__links > a:hover, .nav__link:hover { color: var(--ink); }
.nav__links > a::after, .nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1.5px; width: 0; background: var(--accent);
  transition: width .3s var(--ease);
}
.nav__links > a:hover::after, .nav__link:hover::after,
.nav__item--has-menu:hover .nav__link::after,
.nav__item--has-menu:focus-within .nav__link::after { width: 100%; }

/* Dropdown (desktop) */
.nav__item--has-menu { position: relative; }
.nav__caret { font-size: .9em; transition: transform .35s var(--ease); display: inline-block; }
.nav__item--has-menu:hover .nav__caret,
.nav__item--has-menu:focus-within .nav__caret { transform: rotate(180deg); }
.nav__submenu {
  position: absolute; top: calc(100% + 12px); left: 50%;
  transform: translateX(-50%) translateY(-8px) scale(.97); transform-origin: top center;
  min-width: 244px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: 8px; display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .35s var(--ease), transform .42s var(--ease), visibility .35s;
}
.nav__submenu::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; } /* hover bridge */
.nav__item--has-menu:hover .nav__submenu,
.nav__item--has-menu:focus-within .nav__submenu {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0) scale(1);
}
.nav__submenu a {
  display: block; padding: .62rem .8rem; border-radius: var(--radius-sm); font-size: .92rem; font-weight: 500;
  color: var(--ink-soft); white-space: nowrap;
  opacity: 0; transform: translateY(8px);
  transition: background .2s, color .2s, transform .42s var(--ease), opacity .42s var(--ease);
}
.nav__submenu a::after { display: none; }
.nav__item--has-menu:hover .nav__submenu a,
.nav__item--has-menu:focus-within .nav__submenu a { opacity: 1; transform: translateY(0); }
.nav__submenu a:hover { background: var(--surface-2); color: var(--accent-d); }
.nav__item--has-menu:hover .nav__submenu a:nth-child(1),
.nav__item--has-menu:focus-within .nav__submenu a:nth-child(1) { transition-delay: .04s; }
.nav__item--has-menu:hover .nav__submenu a:nth-child(2),
.nav__item--has-menu:focus-within .nav__submenu a:nth-child(2) { transition-delay: .09s; }
.nav__item--has-menu:hover .nav__submenu a:nth-child(3),
.nav__item--has-menu:focus-within .nav__submenu a:nth-child(3) { transition-delay: .14s; }
.nav__item--has-menu:hover .nav__submenu a:nth-child(4),
.nav__item--has-menu:focus-within .nav__submenu a:nth-child(4) { transition-delay: .19s; }

.nav__cta { display: flex; align-items: center; gap: .8rem; }
.nav__toggle { display: none; background: none; border: 0; padding: .4rem; z-index: 60; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: transform .4s var(--ease), opacity .3s var(--ease); }
.nav[data-open="true"] .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav[data-open="true"] .nav__toggle span:nth-child(2) { opacity: 0; }
.nav[data-open="true"] .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(40px, 7vw, 80px); padding-bottom: clamp(48px, 8vw, 96px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; align-items: stretch; gap: clamp(24px, 4vw, 56px); }
.hero__content { max-width: 640px; }
.hero .display { margin-top: 1.1rem; }
.hero__lede { margin-top: 1.4rem; max-width: 30em; }
.hero__cta { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .8rem; }
.hero__stage { position: relative; height: 100%; min-height: 440px; }
#gem-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__glow {
  position: absolute; inset: 8% 8%; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, rgba(15,138,106,.16), rgba(46,90,172,.10) 45%, transparent 70%);
  filter: blur(10px);
}

/* ---------- Hero: Excavation (dig to reveal the lode) ---------- */
.hero-x { position: relative; min-height: 82vh; display: flex; align-items: center; overflow: hidden; background: #0a130f; }
.hero-x__img { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-x__rock { position: absolute; inset: 0; z-index: 1; opacity: .92; /* ~8% of the lode bleeds through the dark */
  background:
    radial-gradient(130% 100% at 32% 24%, #17261e 0%, #0a130f 68%),
    repeating-linear-gradient(118deg, rgba(255,255,255,.03) 0 2px, transparent 2px 8px),
    repeating-linear-gradient(28deg, rgba(0,0,0,.3) 0 3px, transparent 3px 10px);
  -webkit-mask-image: radial-gradient(circle 250px at var(--mx,60%) var(--my,48%), transparent 0 40%, #000 76%);
  mask-image: radial-gradient(circle 250px at var(--mx,60%) var(--my,48%), transparent 0 40%, #000 76%);
}
.hero-x__dust { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; }
.hero-x::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(90deg, rgba(10,19,15,.94) 0%, rgba(10,19,15,.74) 40%, rgba(10,19,15,0) 70%); }
.hero-x .container { position: relative; z-index: 4; }
.hero-x__content { max-width: 610px; }
.hero-x__content .display, .hero-x__content .lede { color: #f3f7f4; }
.hero-x__content .eyebrow { color: #8fe6c9; }
.dig-hint { position: absolute; z-index: 4; right: 6%; bottom: 22px; display: inline-flex; align-items: center; gap: .5rem; color: rgba(255,255,255,.5); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; transition: opacity .7s ease; }
.dig-hint__cursor { width: 12px; height: auto; flex: none; transform: translateY(-1px); }
.dig-hint.is-hidden { opacity: 0; }
@media (max-width: 940px) {
  .hero-x__rock { -webkit-mask-image: radial-gradient(circle 180px at var(--mx,55%) var(--my,44%), transparent 0 42%, #000 78%); mask-image: radial-gradient(circle 180px at var(--mx,55%) var(--my,44%), transparent 0 42%, #000 78%); }
  .dig-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) { .hero-x__rock { opacity: 0; } .dig-hint { display: none; } }

/* ---------- Trust bar ---------- */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust__row { display: flex; align-items: center; gap: clamp(1.5rem, 4vw, 3.5rem); flex-wrap: wrap; justify-content: center; padding-block: 26px; }
.trust__label { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.trust__logo { font-family: var(--serif); font-size: 1.15rem; color: var(--ink-soft); letter-spacing: -0.01em; }

/* ---------- Service cards ---------- */
.cards { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 3vw, 34px); position: relative; overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
  display: flex; flex-direction: column; min-height: 100%;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }
.card__facet { width: 48px; height: auto; margin-bottom: 1.1rem; color: var(--ink); transition: color .35s var(--ease); }
.card__facet svg { width: 100%; height: auto; display: block; }
.card__facet img { width: 100%; height: auto; display: block; }
.card:hover .card__facet { color: var(--card-accent); }
.card h3 { margin-bottom: .5rem; }
.card__desc { color: var(--ink-soft); flex: 1; }
.card__link { margin-top: 1.3rem; }
.card::after {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%;
  background: var(--card-accent, var(--accent)); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.card:hover::after { transform: scaleX(1); }
.card--design { --card-accent: var(--amethyst); }
.card--dev    { --card-accent: var(--sapphire); }
.card--ai     { --card-accent: var(--ruby); }
.card--strategy { --card-accent: var(--topaz); }

/* ---------- Per-service identity: icon badge + accent (Tier 2) ---------- */
.svc--strategy { --svc-accent: var(--topaz); }
.svc--design   { --svc-accent: var(--amethyst); }
.svc--dev      { --svc-accent: var(--sapphire); }
.svc--ai       { --svc-accent: var(--ruby); }

/* Hero badge on standalone service pages */
.svc-badge { width: 60px; height: 60px; margin-top: 1.5rem; margin-bottom: 1rem; color: var(--svc-accent, var(--ink)); }
.svc-badge svg { width: 100%; height: 100%; display: block; }

/* Row badge + tinted enumerator on the Services overview */
.svc-row__head { display: flex; align-items: center; gap: .85rem; margin-bottom: .5rem; }
.svc-row__badge { width: 42px; height: 42px; flex: none; color: var(--svc-accent, var(--ink)); }
.svc-row__badge svg { width: 100%; height: 100%; display: block; }
.svc-row__head .svc-row__k { color: var(--svc-accent, var(--accent-d)); }

/* Tier 3: hero glow, tinted eyebrows, and accent chip bullets keyed to the service.
   Fallbacks are transparent/default so pages without a service token are untouched. */
.svc-hero { position: relative; overflow: hidden; }
.svc-hero > .container { position: relative; z-index: 1; }
.svc-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(62% 78% at 12% -8%, color-mix(in srgb, var(--svc-accent, transparent) 16%, transparent), transparent 68%);
}
.svc--strategy .eyebrow, .svc--design .eyebrow, .svc--dev .eyebrow, .svc--ai .eyebrow { color: var(--svc-accent); }
.svc--strategy .chip::before, .svc--design .chip::before, .svc--dev .chip::before, .svc--ai .chip::before { color: var(--svc-accent); }
/* Topaz is too light for small text on light bg; use the darker variant for strategy text only (badge/glow keep bright topaz). */
.svc--strategy .eyebrow, .svc--strategy .chip::before { color: var(--topaz-d); }
/* Hero primary button hover + "Is this you?" checkmarks pick up the service accent */
.svc-hero .btn--primary:hover { background: var(--svc-accent, var(--accent-d)); }
.svc--design .fit--yes li::before, .svc--dev .fit--yes li::before, .svc--ai .fit--yes li::before { color: var(--svc-accent); }
/* Strategy uses the darker gold so white button text and the checkmark stay legible */
.svc--strategy .svc-hero .btn--primary:hover { background: var(--topaz-d); }
.svc--strategy .fit--yes li::before { color: var(--topaz-d); }

/* ---------- Work / case studies ---------- */
.work-grid { grid-template-columns: repeat(2, 1fr); }
.work-card {
  position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface);
  border: 1px solid var(--line); display: block; transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.work-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.work-card__media { aspect-ratio: 16 / 10; position: relative; overflow: hidden; }
.work-card__media .ph { position: absolute; inset: 0; }
.work-card__body { padding: 22px 24px 26px; }
.work-card__result { font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1; color: var(--ink); }
.work-card__meta { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-top: .6rem; }
.work-card__client { font-weight: 700; }
.work-card__tag { font-size: .8rem; color: var(--muted); }
.work-card__desc { color: var(--ink-soft); margin-top: .5rem; font-size: .96rem; }

/* placeholder gradient art */
.ph { background: linear-gradient(135deg, var(--p1, #dfe7f5), var(--p2, #eadff5)); }
.ph--emerald { --p1:#d3efe5; --p2:#e3f3ea; }
.ph--sapphire{ --p1:#dbe4f7; --p2:#e9eefb; }
.ph--amethyst{ --p1:#e8dff5; --p2:#f2ecfa; }
.ph--topaz   { --p1:#f7ecd3; --p2:#fbf4e3; }
.ph--ruby    { --p1:#f6dbe1; --p2:#fbe9ee; }
.ph-note { position:absolute; left:12px; bottom:12px; font-size:.7rem; letter-spacing:.08em; text-transform:uppercase; color: var(--ink-soft); background: rgba(255,255,255,.9); padding: 3px 8px; border-radius: 6px; }

/* ---------- Process ---------- */
.process { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); counter-reset: step; }
.step { position: relative; padding-top: 2.4rem; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--serif); font-size: 1rem; color: var(--accent-d);
  position: absolute; top: 0; left: 0; font-weight: 700;
}
.step__bar { height: 2px; background: var(--line); margin-bottom: 1.1rem; position: relative; }
.step__bar::after { content:""; position:absolute; left:0; top:0; height:100%; width: 26px; background: var(--accent); }
.step h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.step p { color: var(--ink-soft); font-size: .96rem; }
.step .client-role { display:block; margin-top:.6rem; font-size:.82rem; color: var(--muted); font-weight: 600; }

/* ---------- Why / split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.why-list { display: grid; gap: 1.1rem; margin-top: 1.6rem; }
.why-item { display: flex; gap: .9rem; align-items: flex-start; }
.why-item .dot { width: 10px; height: 10px; margin-top: .3rem; flex: none; transform: rotate(45deg); background: var(--accent); border-radius: 2px; }
.why-item h4 { font-family: var(--sans); font-weight: 600; font-size: 1rem; margin-bottom: .1rem; }
.why-item p { color: var(--ink-soft); font-size: .95rem; }

/* ---------- Testimonials ---------- */
.quotes { grid-template-columns: repeat(3, 1fr); }
.quote { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display:flex; flex-direction:column; }
.quote__mark { font-family: var(--serif); font-size: 2.6rem; line-height: .6; color: var(--accent); height: 1rem; }
.quote__text { margin-top: 1.1rem; font-size: 1.02rem; color: var(--ink-soft); flex: 1; }
.quote__by { display: flex; align-items: center; gap: .75rem; margin-top: 1.4rem; }
.quote__avatar { width: 50px; height: 50px; border-radius: 50%; flex: none; background: url(../../assets/img/ED-2025-07-12.jpg) center/cover no-repeat;}
.quote__name { font-weight: 600; font-size: .92rem; }
.quote__role { font-size: .82rem; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--ink); color: #fff; border-radius: clamp(20px, 3vw, 32px); padding: clamp(40px, 7vw, 84px); text-align: center; }
.cta-band h2 { color: #fff; max-width: 16em; margin-inline: auto; }
.cta-band p { color: rgba(255,255,255,.72); max-width: 34em; margin: 1rem auto 0; }
.cta-band .btn--primary { background: #fff; color: var(--ink); }
.cta-band .btn--primary:hover { background: var(--emerald); color: #fff; }
.cta-band .btn--ghost { color:#fff; border-color: rgba(255,255,255,.28); }
.cta-band .btn--ghost:hover { border-color:#fff; }
.cta-band__row { margin-top: 2rem; display:flex; gap:.8rem; justify-content:center; flex-wrap:wrap; }
.cta-band__glow { position:absolute; width: 60%; height: 160%; left: 50%; top: -30%; transform: translateX(-50%); background: radial-gradient(circle, rgba(15,138,106,.4), transparent 62%); filter: blur(30px); pointer-events:none; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: clamp(48px, 6vw, 72px) 32px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: clamp(24px, 3vw, 40px); }
.footer-brand p { color: var(--muted); margin-top: 1rem; max-width: 26em; font-size: .95rem; }
.footer-col h4 { font-family: var(--sans); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; font-weight: 600; }
.footer-col a { display: block; color: var(--ink-soft); font-size: .95rem; padding-block: .3rem; transition: color .2s; }
.footer-col a:hover { color: var(--accent-d); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: clamp(36px, 5vw, 56px); padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; gap: 1rem; flex-wrap: wrap; }
.footer-legal { display: flex; gap: 1.1rem; }
.footer-legal a { color: var(--muted); transition: color .2s; }
.footer-legal a:hover { color: var(--accent-d); }

/* ---------- Service page bits ---------- */
.svc-hero { padding-top: clamp(48px, 7vw, 90px); padding-bottom: clamp(40px, 6vw, 70px); }
.svc-hero__inner { max-width: 760px; }
.svc-hero .display { margin-top: 1rem; }
.svc-hero__sub { margin-top: 1.3rem; }
.pillars { grid-template-columns: repeat(2, 1fr); }
.pillar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 30px; }
.pillar__k { font-family: var(--serif); color: var(--accent-d); font-size: 1.1rem; }
.pillar h3 { font-size: 1.25rem; margin: .5rem 0; }
.pillar p { color: var(--ink-soft); font-size: .97rem; }
.usecases { display:flex; flex-wrap:wrap; gap:.6rem; margin-top: 1.4rem; }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: .5rem 1rem; font-size: .88rem; font-weight: 500; color: var(--ink-soft); }
.chip::before { content:"◆"; color: var(--accent); margin-right: .5rem; font-size: .7rem; }

.prose { max-width: 68ch; }
.prose p { margin: 2rem 0 1.8rem; color: var(--ink-soft); }
.prose strong { color: var(--ink); font-weight: 600; }

/* ---------- Contact form ---------- */
.contact-wrap { display: grid; grid-template-columns: 1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-size: .85rem; font-weight: 600; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font: inherit; font-size: .98rem; padding: .8rem .95rem; border: 1px solid var(--field-border); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(15,138,106,.14); }
.field select {
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23656b74' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 2.4rem;
}
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field .err { font-size: .8rem; color: var(--ruby); min-height: 1em; display:none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--ruby); }
.field.invalid .err { display:block; }
.field.valid input, .field.valid select, .field.valid textarea { border-color: var(--emerald); }
.form-aside { background: var(--surface-2); border-radius: var(--radius); padding: 30px; }
.form-note { font-size: .9rem; color: var(--muted); }
.form-success { display:none; padding: 14px 16px; border-radius: var(--radius-sm); background: #e3f3ea; color: var(--emerald-d); font-weight: 600; font-size: .95rem; }
.form-success.show { display:block; }
.form-error { display:none; padding: 14px 16px; border-radius: var(--radius-sm); background: #fbe9ee; color: var(--ruby); font-weight: 600; font-size: .95rem; }
.form-error.show { display:block; }

/* ---------- Reveal animation (JS-driven; safe default visible) ---------- */
.reveal { opacity: 0; transform: translateY(22px); }
.reveal.is-in { opacity: 1; transform: none; }
.no-anim .reveal { opacity: 1 !important; transform: none !important; }

/* ---------- Sticky mobile CTA ---------- */
.mobile-cta { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 40; display: none; }
.mobile-cta .btn { width: 100%; box-shadow: var(--shadow-md); }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__stage { order: -1; max-width: 380px; margin-inline: auto; height: auto; aspect-ratio: 1 / 1; min-height: 320px; }
  .cards, .quotes { grid-template-columns: 1fr; }
  .process { grid-template-columns: repeat(2, 1fr); row-gap: 34px; }
  .work-grid { grid-template-columns: 1fr; }
  .split, .contact-wrap { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav__cta .btn--primary { display: none; }
  .nav__toggle { display: block; }

  /* Collapsible mobile panel — animated, not display-toggled */
  .nav__links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); padding: 0 var(--gutter);
    max-height: 0; opacity: 0; overflow: hidden; pointer-events: none;
    border-bottom: 1px solid transparent; box-shadow: var(--shadow-md);
    transition: max-height .55s var(--ease), opacity .4s var(--ease), padding .55s var(--ease), border-color .4s;
  }
  .nav[data-open="true"] .nav__links {
    max-height: 92vh; opacity: 1; pointer-events: auto;
    padding: 8px var(--gutter) 22px; border-bottom-color: var(--line); overflow-y: auto;
  }

  /* Top-level items: full width, flow in with a stagger */
  .nav__links > a, .nav__item--has-menu {
    width: 100%; opacity: 0; transform: translateY(10px);
    transition: opacity .45s var(--ease), transform .45s var(--ease);
  }
  .nav__links > a { padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .nav__item--has-menu > .nav__link { width: 100%; justify-content: flex-start; padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .nav[data-open="true"] .nav__links > a,
  .nav[data-open="true"] .nav__item--has-menu { opacity: 1; transform: none; }
  .nav[data-open="true"] .nav__links > *:nth-child(1) { transition-delay: .06s; }
  .nav[data-open="true"] .nav__links > *:nth-child(2) { transition-delay: .12s; }
  .nav[data-open="true"] .nav__links > *:nth-child(3) { transition-delay: .18s; }
  .nav[data-open="true"] .nav__links > *:nth-child(4) { transition-delay: .24s; }
  .nav[data-open="true"] .nav__links > *:nth-child(5) { transition-delay: .30s; }

  /* Accordion submenu on mobile */
  .nav__caret { font-size: 1em; }
  .nav__item--has-menu:hover .nav__caret,
  .nav__item--has-menu:focus-within .nav__caret { transform: none; }
  .nav__item--has-menu.open .nav__caret { transform: rotate(180deg); }
  .nav__submenu {
    position: static; transform: none; opacity: 1; visibility: visible; pointer-events: auto;
    box-shadow: none; border: 0; background: transparent; padding: 0; min-width: 0;
    max-height: 0; overflow: hidden;
    transition: max-height .5s var(--ease);
  }
  .nav__item--has-menu:hover .nav__submenu,
  .nav__item--has-menu:focus-within .nav__submenu { transform: none; }
  .nav__item--has-menu.open .nav__submenu { max-height: 500px; }
  .nav__submenu a { opacity: 1; transform: none; padding: .7rem 0 .7rem 1.1rem; border-bottom: 1px solid var(--line); color: var(--muted); }
  .nav__item--has-menu:hover .nav__submenu a,
  .nav__item--has-menu:focus-within .nav__submenu a { transition-delay: 0s; }
  .mobile-cta { display: block; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .row2 { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- Interior page hero ---------- */
.page-hero { padding-top: clamp(40px, 6vw, 76px); padding-bottom: clamp(28px, 4vw, 48px); }
.page-hero__inner { max-width: 760px; }
.page-hero .display { margin-top: 1rem; font-size: clamp(2.3rem, 5vw, 4rem); }
.page-hero p { margin-top: 1.2rem; max-width: 40em; }
.breadcrumb { font-size: .85rem; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent-d); }

/* ---------- Services overview rows ---------- */
.svc-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding-block: clamp(36px, 5vw, 60px); border-bottom: 1px solid var(--line); }
.svc-row:last-child { border-bottom: 0; }
.svc-row__media { aspect-ratio: 4 / 3; border-radius: var(--radius); position: relative; overflow: hidden; border: 1px solid var(--line); }
.svc-row__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.svc-row--flip .svc-row__text { order: 2; }
.svc-row__k { font-family: var(--serif); color: var(--accent-d); font-size: 1.05rem; }
.svc-row__list { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.2rem 0 1.6rem; }

/* ---------- Team ---------- */
.team-grid { grid-template-columns: repeat(3, 1fr); }
.member__photo { aspect-ratio: 1/1; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.member h3 { font-size: 1.15rem; margin-top: 1rem; }
.member .role { color: var(--accent-d); font-weight: 600; font-size: .88rem; }
.member p { color: var(--ink-soft); font-size: .95rem; margin-top: .5rem; }

/* ---------- Values ---------- */
.values { grid-template-columns: repeat(2, 1fr); }
.value { display: flex; gap: 1rem; align-items: flex-start; }
.value .vk { font-family: var(--serif); font-size: 1.4rem; color: var(--accent); line-height: 0.7; flex: none; }
.value h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.value p { color: var(--ink-soft); font-size: .96rem; }

/* ---------- Engagement models ---------- */
.models { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }
.model { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; }
.model--feature { border-color: var(--accent); box-shadow: var(--shadow-md); position: relative; }
.model__badge { position: absolute; top: -12px; left: 30px; background: var(--accent-d); color: #fff; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; }
.model h3 { font-size: 1.35rem; }
.model__price { font-family: var(--serif); font-size: 1.05rem; color: var(--ink); margin: .6rem 0 1rem; }
.model__price small { color: var(--muted); font-weight: 400; }
.model ul.ticks { display: grid; gap: .6rem; margin: 0 0 1.6rem; flex: 1; }
.model ul.ticks li { position: relative; padding-left: 1.6rem; color: var(--ink-soft); font-size: .95rem; }
.model ul.ticks li::before { content: "◆"; position: absolute; left: 0; top: 3px; color: var(--accent); font-size: .7rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 6px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-family: var(--serif); font-size: 1.15rem; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent-d); font-size: 1.4rem; transition: transform .3s var(--ease); font-family: var(--sans); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-soft); padding: 0 0 18px; max-width: 62ch; }

/* ---------- Case study detail ---------- */
.cs-hero__media { aspect-ratio: 21/9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin-top: 2rem; position: relative; }
.cs-metrics { grid-template-columns: repeat(3, 1fr); margin-block: clamp(32px,5vw,52px); }
.cs-metric { border-left: 2px solid var(--accent); padding-left: 1.1rem; }
.cs-metric .n { font-family: var(--serif); font-size: clamp(2rem,4vw,3rem); line-height: 1; }
.cs-metric .l { color: var(--muted); font-size: .9rem; margin-top: .4rem; }
.cs-body { max-width: 68ch; }
.cs-body h2 { font-size: 1.6rem; margin-top: 2rem; }
.cs-body p { margin-top: 1rem; color: var(--ink-soft); }
.cs-quote { border-left: 3px solid var(--accent); padding: .4rem 0 .4rem 1.4rem; margin: 2rem 0; font-family: var(--serif); font-size: 1.35rem; line-height: 1.4; color: var(--ink); }
.cs-quote cite { display: block; font-family: var(--sans); font-size: .9rem; color: var(--muted); font-style: normal; margin-top: .8rem; }

/* ---------- Responsive (new components) ---------- */
@media (max-width: 940px) {
  .svc-row, .values { grid-template-columns: 1fr; }
  .svc-row--flip .svc-row__text { order: 0; }
  .svc-row__media { order: -1; }
  .team-grid, .cs-metrics { grid-template-columns: 1fr; }
}
@media (min-width: 561px) and (max-width: 940px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .cs-metrics { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Credibility stat strip ---------- */
.stat-strip { grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.stat { padding: clamp(20px, 3vw, 32px); border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat__n { font-family: var(--serif); font-size: clamp(1.9rem, 3.4vw, 2.8rem); line-height: 1; color: var(--ink); letter-spacing: -0.02em; }
.stat__l { color: var(--muted); font-size: .9rem; margin-top: .5rem; }

/* ---------- Designmining method page ---------- */
.method-benefits { grid-template-columns: repeat(4, 1fr); }
.mbenefit { border-top: 2px solid var(--accent); padding-top: 1rem; }
.mbenefit h4 { font-family: var(--sans); font-weight: 600; font-size: .98rem; margin-bottom: .3rem; }
.mbenefit p { color: var(--ink-soft); font-size: .92rem; }

.phase { display: grid; grid-template-columns: 84px 1fr 1fr; gap: clamp(16px, 3vw, 40px); align-items: start; padding-block: clamp(28px, 4vw, 44px); border-top: 1px solid var(--line); }
.phase:first-of-type { border-top: 0; }
.phase__k { font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.6rem); color: var(--accent); line-height: 1; }
.phase__main h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); margin-bottom: .5rem; }
.phase__main p { color: var(--ink-soft); }
.phase__side .label { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: .7rem; }
.phase__side .chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.2rem; }
.phase__side .gain { display: flex; gap: .6rem; align-items: flex-start; color: var(--ink); font-size: .95rem; padding-left: 1rem; }
.phase__side .gain::before { content: "◆"; color: var(--accent); font-size: .7rem; margin-top: .35em; flex: none; }

/* ---------- Who this is for / risk ---------- */
.fit-grid { grid-template-columns: 1fr 1fr; }
.fit { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 30px; }
.fit h3 { font-size: 1.2rem; margin-bottom: 1rem; display: flex; align-items: center; gap: .5rem; }
.fit ul { display: grid; gap: .7rem; }
.fit li { position: relative; padding-left: 1.6rem; color: var(--ink-soft); font-size: .96rem; }
.fit--yes li::before { content: "✓"; position: absolute; left: 0; color: var(--emerald); font-weight: 700; }
.fit--no li::before { content: "—"; position: absolute; left: 0; color: var(--muted); }
.callout { border-left: 3px solid var(--topaz); background: var(--surface-2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 22px 26px; }
.callout h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.callout p { color: var(--ink-soft); font-size: .97rem; }

@media (max-width: 940px) {
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
  .method-benefits { grid-template-columns: repeat(2, 1fr); }
  .phase { grid-template-columns: 1fr; gap: 1rem; }
  .fit-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .stat-strip { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .method-benefits { grid-template-columns: 1fr; }
}

/* ---------- Insights / posts ---------- */
.post-grid { grid-template-columns: repeat(3, 1fr); }
.post { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
a.post:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.post__media { aspect-ratio: 16 / 10; position: relative; }
.post__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.post__body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.post__tag { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-d); font-weight: 600; }
.post h3 { font-size: 1.2rem; margin: .5rem 0; }
.post p { color: var(--ink-soft); font-size: .95rem; flex: 1; }
.post__meta { color: var(--muted); font-size: .82rem; margin-top: 1rem; }
.post--soon { opacity: .72; }
.article-body { max-width: 68ch; }
.article-body h2 { font-size: 1.5rem; margin-top: 2rem; }
.article-body p { margin-top: 1rem; color: var(--ink-soft); }
.article-body strong { color: var(--ink); font-weight: 600; }
.article-lead { font-size: clamp(1.1rem, 1.7vw, 1.35rem); color: var(--ink-soft); line-height: 1.5; }

/* Article chart figure */
.chart-fig { margin: 2rem 0 0; }
.chart-fig .chart-svg { width: 100%; height: auto; display: block; font-family: var(--sans); }
.chart-cap { font-size: .85rem; color: var(--muted); margin-top: .9rem; line-height: 1.5; }
.chart-cap b { color: var(--ink-soft); font-weight: 600; }
.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; }
/* A visually-hidden <table> (used as an accessible data equivalent for a chart) can't actually shrink to 1px like other sr-only content: its caption/cells inherit white-space: nowrap from .sr-only, and unwrapped text forces a wide min-content box regardless of the table's own width or table-layout. That invisible box was wide enough to push the whole page into horizontal scroll on phones. Restoring normal wrapping (and fixed table layout, for good measure) lets the box actually collapse to ~1px as intended. */
table.sr-only, table.sr-only * { white-space: normal; }
table.sr-only { table-layout: fixed; }

/* Article endnotes / references */
.endnotes { max-width: 68ch; margin-top: 2.6rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.endnotes h2 { font-size: 1.1rem; margin-bottom: .4rem; }
.endnotes ol { margin: .6rem 0 0; padding-left: 1.3rem; }
.endnotes li { font-size: .9rem; color: var(--ink-soft); margin-bottom: .7rem; line-height: 1.55; }
.endnotes a { color: var(--accent-d); font-weight: 600; }
.ref-link { font-size: .72em; line-height: 0; }
.ref-link a { color: var(--accent-d); font-weight: 600; text-decoration: none; padding: 0 .1em; }
.ref-link a:hover { text-decoration: underline; }

/* Article author byline */
.article-byline { display: flex; align-items: center; gap: .8rem; max-width: 68ch; margin: 0 0 1.8rem; padding-bottom: 1.4rem; border-bottom: 1px solid var(--line); }
.article-byline__avatar { width: 50px; height: 50px; border-radius: 50%; flex: none; object-fit: cover; }
.article-byline__meta { display: flex; flex-direction: column; }
.article-byline__name { font-weight: 600; font-size: .92rem; color: var(--ink); line-height: 1.25; }
.article-byline__date { font-size: .82rem; color: var(--muted); line-height: 1.25; }

/* Article inset figure (floats into the right margin on desktop) */
.article-figure { margin: .4rem 0 1.4rem; }
.article-figure img { width: 100%; height: auto; display: block; border-radius: var(--radius); border: 1px solid var(--line); }
.article-figure figcaption { font-size: .82rem; color: var(--muted); margin-top: .6rem; line-height: 1.5; }
@media (min-width: 900px) {
  .article-figure--right { float: right; width: 375px; margin: 1.54rem -150px 1.1rem 1.9rem; }
  /* ~25% larger variant, still half in the text and half in the margin */
  .article-figure--lg { width: 469px; margin-right: -188px; padding-top: 1rem; }
}
/* When the inset stacks on smaller/phone viewports, match the space above the
   photo to the space below it (caption → first paragraph). Desktop float untouched. */
@media (max-width: 899px) {
  .article-figure--lg { margin-top: 2rem; }
  .prose p { margin: 0 0 1.8rem; }
}

@media (max-width: 940px) { .post-grid { grid-template-columns: 1fr; } }
@media (min-width: 561px) and (max-width: 940px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Placeholder work slots (pre-portfolio) ---------- */
.work-card--slot {
  border: 2px dashed var(--line); background: transparent; box-shadow: none;
  display: flex; align-items: center; justify-content: center; text-align: center; min-height: 240px;
  transition: border-color .3s var(--ease), transform .4s var(--ease);
}
.work-card--slot:hover { transform: translateY(-3px); box-shadow: none; border-color: var(--accent); }
.work-card--slot .slot-inner { padding: 28px; }
.work-card--slot .slot-k { font-family: var(--serif); color: var(--accent); font-size: 2rem; line-height: 1; }
.work-card--slot h3 { font-size: 1.1rem; margin: .7rem 0 .3rem; }
.work-card--slot p { color: var(--muted); font-size: .92rem; max-width: 26ch; margin-inline: auto; }

.approach-grid { grid-template-columns: repeat(3, 1fr); }
.approach { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; }
.approach .k { font-family: var(--serif); color: var(--accent-d); font-size: 1.05rem; }
.approach h3 { font-size: 1.15rem; margin: .5rem 0; }
.approach p { color: var(--ink-soft); font-size: .95rem; }
@media (max-width: 940px) { .approach-grid { grid-template-columns: 1fr; } }
@media (min-width: 561px) and (max-width: 940px) { .approach-grid { grid-template-columns: repeat(2, 1fr); } }

/* Modules grid: two half-width cards on row one, three third-width cards on row two */
.grid--2-3 { grid-template-columns: repeat(6, 1fr); }
.grid--2-3 > :nth-child(1), .grid--2-3 > :nth-child(2) { grid-column: span 3; }
.grid--2-3 > :nth-child(3), .grid--2-3 > :nth-child(4), .grid--2-3 > :nth-child(5) { grid-column: span 2; }
@media (max-width: 640px) { .grid--2-3 { grid-template-columns: 1fr; } .grid--2-3 > * { grid-column: auto; } }

/* ---------- Product hero: large bleeding image, text overlaid ---------- */
.phero .container { position: relative; }
.phero__content { position: relative; z-index: 2; max-width: 560px; }
.phero__img {
  position: absolute; z-index: 0; top: 50%; right: clamp(-110px, -8vw, -20px);
  transform: translateY(-50%); width: min(70%, 960px); height: auto; pointer-events: none;
}
/* soft scrim: keeps the overlaid text legible over the image's left edge */
.phero .container::after {
  content: ""; position: absolute; inset: -12% -24px; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, var(--bg) 0%, var(--bg) 36%, rgba(251,251,249,.6) 54%, rgba(251,251,249,0) 72%);
}
@media (max-width: 940px) {
  .phero__content { max-width: none; }
  .phero__img { position: static; transform: none; width: 100%; max-width: 560px; margin: 1.6rem auto 0; display: block; }
  .phero .container::after { display: none; }
}

/* ---------- Accessibility: visible keyboard focus + skip link ---------- */
:focus-visible { outline: 2px solid var(--accent-d); outline-offset: 2px; border-radius: 2px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--accent-d); outline-offset: 1px; }
.nav__submenu a:focus-visible { outline-offset: -2px; }

.skip-link {
  position: absolute; left: 12px; top: -64px; z-index: 100;
  background: var(--ink); color: #fff; padding: .7rem 1.1rem; border-radius: 8px;
  font-weight: 600; font-size: .95rem; text-decoration: none;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
