/* =========================================================================
   EMBER — portfolio v5
   ---------------------------------------------------------------------------
   Many shades of orange on warm paper, with a deep warm black for ink and
   dark bands. Text that sits on an orange fill is always deep black, never
   white. (Token names — forest, canopy, leaf, river — are kept from v4 so
   every rule keeps working; only their values changed.)

   Structure/theme language borrowed from the Chichingo reference (soft
   gradient canvas, rounded panels, two-tone headlines, gradient pills);
   full-bleed photographic bands and light wide-tracked body text borrowed
   from the Partnerbike–Jobike reference.

   Type (same as trymaklu.com): Cinzel (headings — capital-only, the first
   letter of each word sits taller) · Playfair Display (italic quotes) ·
   DM Sans (body, labels/data). Bangla: Tiro Bangla · Hind Siliguri
   ========================================================================= */

:root {
  /* ── inks: deep warm black ──────────────────────────────────────────── */
  --ink:        #141110;
  --ink-2:      #4a4440;
  --ink-3:      #8a827c;

  /* ── oranges: deep black → rust → tangerine → peach ─────────────────── */
  --forest:     #1a1412;
  --canopy:     #c2410c;
  --canopy-hi:  #ea580c;
  --leaf:       #f97316;
  --sprout:     #fdba74;
  --mist-green: #ffedd5;
  --wash-green: #fff7ed;

  /* ── ambers: the second orange family ───────────────────────────────── */
  --river:       #f59e0b;
  --river-deep:  #b45309;
  --river-soft:  #fde68a;
  --river-wash:  #fffbeb;

  /* ── sky / paper ────────────────────────────────────────────────────── */
  --sky:        #ece7e3;
  --paper:      #fffdfb;
  --canvas:     #fbf8f5;

  /* ── type ─────────────────────────────────────────────────────────────
     The trio from trymaklu.com. Cinzel only has capitals: lowercase input
     renders as smaller capitals, so "Ruhan" reads R-big + UHAN — which is
     why headings are typed in normal case, never uppercased. Playfair
     Display carries italic quotes (Cinzel has no italic); DM Sans carries
     everything else. --font-mono keeps its name for the label/data role,
     but now also uses DM Sans.                                           */
  --font-display: "Cinzel", "Playfair Display", Georgia, serif;
  --font-serif:   "Playfair Display", Georgia, serif;
  --font-body:    "DM Sans", system-ui, sans-serif;
  --font-mono:    "DM Sans", system-ui, sans-serif;

  /* ── geometry ───────────────────────────────────────────────────────── */
  --maxw:      1200px;
  --prose:     720px;
  --gutter:    24px;
  --r-chip:    8px;
  --r-btn:     14px;
  --r-card:    20px;
  --r-panel:   28px;

  --line:      1px solid rgba(20,17,16, 0.08);
  --line-2:    1px solid rgba(20,17,16, 0.14);

  /* ── shadows: soft + layered, never hard offset ─────────────────────── */
  --sh-sm:   0 1px 2px rgba(20,17,16,.04), 0 2px 8px rgba(20,17,16,.04);
  --sh-md:   0 4px 12px rgba(20,17,16,.05), 0 12px 32px rgba(20,17,16,.06);
  --sh-lg:   0 8px 24px rgba(20,17,16,.06), 0 28px 64px rgba(20,17,16,.08);
  --sh-glow: 0 12px 32px rgba(194,65,12,.22);

  /* ── motion ─────────────────────────────────────────────────────────── */
  --ease:      cubic-bezier(.22, 1, .36, 1);
  --micro:     160ms ease-out;
  --panel-t:   320ms var(--ease);

  color-scheme: light;
}

/* =========================================================================
   BANGLA
   -------------------------------------------------------------------------
   Bengali needs its own faces — Latin fonts have no Bengali glyphs, so the
   browser would fall back to whatever the OS has, which looks broken.
   Cinzel / Playfair / DM Sans stay first in each stack so English words
   inside Bangla text keep the same look; Bengali glyphs fall through to
   Tiro Bangla (serif, the heading role) and Hind Siliguri (DM Sans' role). Bengali also sits taller than Latin because of its matra and
   below-baseline marks, so line-height and letter-spacing are re-tuned.
   ========================================================================= */
:root[lang="bn"] {
  --font-display: "Cinzel", "Tiro Bangla", "Noto Serif Bengali", serif;
  --font-serif:   "Playfair Display", "Tiro Bangla", "Noto Serif Bengali", serif;
  --font-body:    "DM Sans", "Hind Siliguri", "Noto Sans Bengali", system-ui, sans-serif;
  --font-mono:    "DM Sans", "Hind Siliguri", system-ui, sans-serif;
}
[lang="bn"] body { line-height: 1.85; font-size: 17px; }
/* Bengali conjuncts get cramped by negative tracking — reset it */
[lang="bn"] .display,
[lang="bn"] h1, [lang="bn"] h2, [lang="bn"] h3,
[lang="bn"] .section-title, [lang="bn"] .hero-title {
  letter-spacing: 0; line-height: 1.42; font-variation-settings: normal;
}
[lang="bn"] .hero-title { font-size: clamp(30px, 5.4vw, 52px); }
[lang="bn"] .section-title { font-size: clamp(25px, 3.9vw, 41px); }
/* Letter-spacing pulls Bengali glyph clusters apart — "যোগাযোগ" renders as
   "যো গা যো গ". Every tracked/uppercased label is reset in one place so a
   new one can't be added later and quietly break. text-transform is dropped
   too: Bengali has no case, so uppercase is a no-op that only adds risk. */
[lang="bn"] .label,
[lang="bn"] .field label,
[lang="bn"] .craft-label,
[lang="bn"] .built-label,
[lang="bn"] .edu-label,
[lang="bn"] .foot-col h4,
[lang="bn"] .ch-k,
[lang="bn"] .exp-flag,
[lang="bn"] .svc-more,
[lang="bn"] .svc-tag,
[lang="bn"] .hero-frame figcaption cite {
  letter-spacing: 0.01em;
  text-transform: none;
}
[lang="bn"] .label { font-size: 13px; }
[lang="bn"] .field label { font-size: 12.5px; }
[lang="bn"] .hero-lede, [lang="bn"] .prose { line-height: 1.95; }
[lang="bn"] .svc-name { font-size: 18px; line-height: 1.45; }
[lang="bn"] .svc-desc, [lang="bn"] .svc-body p { line-height: 1.9; }
[lang="bn"] .exp-role { line-height: 1.4; }
[lang="bn"] .faq summary { line-height: 1.55; }
[lang="bn"] .hero-frame figcaption blockquote { font-size: 15px; line-height: 1.7; font-style: normal; }

/* ── language toggle ────────────────────────────────────────────────────── */
.lang {
  display: inline-flex; align-items: center; flex: none;
  background: var(--mist-green); border-radius: 999px; padding: 3px; gap: 2px;
}
.lang a {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500; line-height: 1;
  padding: 7px 12px; border-radius: 999px; color: var(--ink-2);
  transition: background var(--micro), color var(--micro);
}
.lang a[aria-current="true"] { background: linear-gradient(135deg, var(--leaf), var(--river)); color: var(--ink); }
.lang a:not([aria-current="true"]):hover { color: var(--ink); background: rgba(255,255,255,.7); }
/* the Bangla label needs a Bengali-capable face even on the English page */
.lang .bn { font-family: "Hind Siliguri", var(--font-mono); font-size: 13px; }

/* =========================================================================
   BASE
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  background: var(--canvas);
  background-image:
    radial-gradient(58% 44% at 12% 0%,   rgba(253,186,116, .30), transparent 68%),
    radial-gradient(52% 40% at 92% 6%,   rgba(245,158,11, .20), transparent 70%),
    radial-gradient(46% 38% at 50% 100%, rgba(249,115,22, .16),  transparent 72%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--sprout); color: var(--forest); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
p, h1, h2, h3, h4 { overflow-wrap: break-word; }
button, input, select, textarea { font: inherit; color: inherit; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); width: 100%; }

/* filter defs holder — present in the DOM, never takes up space */
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ── type utilities ─────────────────────────────────────────────────────── */
.display, h1, h2, h3 {
  font-family: var(--font-display);
}
.display { font-weight: 700; letter-spacing: 0.02em; line-height: 1.04; }
h1, h2, h3 { font-weight: 600; letter-spacing: 0.02em; line-height: 1.14; }

.label {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--canopy);
  display: inline-flex; align-items: center; gap: 10px;
}
.label .num { color: var(--ink-3); }
.label::before {
  content: ""; width: 22px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--canopy), var(--sprout));
}

.section-title {
  font-size: clamp(28px, 4.4vw, 48px); font-weight: 600; font-family: var(--font-display);
  letter-spacing: 0.02em; line-height: 1.08; margin: 14px 0 12px;
}
.section-note  { color: var(--ink-2); font-size: 16px; max-width: 56ch; }
.tone { color: var(--canopy); }

section { padding: 120px 0; position: relative; }
.section-head { margin-bottom: 56px; max-width: var(--prose); }

/* =========================================================================
   NAV — floating pill (Chichingo)
   ========================================================================= */
.nav {
  position: fixed; top: 14px; left: 0; right: 0; z-index: 80;
  transition: top var(--micro);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; gap: 20px;
  padding: 10px 12px 10px 18px;
  border-radius: 999px;
  background: rgba(255,253,251, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: var(--line);
  box-shadow: var(--sh-sm);
  transition: box-shadow var(--panel-t), background var(--panel-t);
}
.nav.scrolled .nav-inner { box-shadow: var(--sh-md); background: rgba(255,253,251, 0.9); }

.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 800; font-size: 17px; letter-spacing: 0.02em;
  margin-right: auto; min-width: 0;
}
.seal {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  display: inline-grid; place-items: center;
  font-family: var(--font-display); font-size: 11px; font-weight: 700; letter-spacing: 0.02em;
  color: var(--ink); background: linear-gradient(135deg, var(--leaf), var(--river));
  box-shadow: 0 2px 8px rgba(194,65,12,.28);
}

.nav-menu { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-menu a {
  font-size: 14px; font-weight: 500; color: var(--ink-2);
  padding: 9px 15px; border-radius: 999px;
  transition: color var(--micro), background var(--micro);
}
.nav-menu a:hover { color: var(--ink); background: var(--mist-green); }
.nav-cta {
  color: var(--ink) !important; font-weight: 600 !important;
  background: linear-gradient(135deg, var(--canopy-hi), var(--river));
  box-shadow: 0 4px 14px rgba(194,65,12,.26);
}
.nav-cta:hover { background: linear-gradient(135deg, var(--leaf), var(--sprout)) !important; }

.hamburger {
  display: none; width: 42px; height: 42px; flex: none;
  border: var(--line); background: var(--paper); border-radius: 999px;
  cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.hamburger span { width: 16px; height: 1.8px; background: var(--ink); border-radius: 2px; transition: transform var(--micro), opacity var(--micro); }
.nav-backdrop {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(20,17,16, .34); backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none; transition: opacity var(--panel-t);
}
.nav-backdrop.open { opacity: 1; pointer-events: auto; }

/* =========================================================================
   HERO
   ========================================================================= */
.hero { padding: 168px 0 104px; overflow: hidden; }
.hero-inner {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 64px; align-items: center;
}

.hero-chip {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 500; color: var(--ink-2);
  background: var(--paper); border: var(--line); box-shadow: var(--sh-sm);
  padding: 8px 16px; border-radius: 999px; margin-bottom: 26px;
}
.pip {
  width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: var(--leaf); box-shadow: 0 0 0 3px rgba(249,115,22,.22);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

.hero-title { font-size: clamp(36px, 6.4vw, 64px); margin-bottom: 22px; }
.hero-title .ln { display: block; }
.hero-title .tone {
  background: linear-gradient(100deg, var(--canopy), var(--leaf) 60%, var(--river-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lede { font-size: 18px; line-height: 1.65; color: var(--ink-2); max-width: 46ch; margin-bottom: 34px; }
.hero-lede strong {
  color: var(--forest); font-weight: 600;
  background: linear-gradient(180deg, transparent 62%, var(--sprout) 62%);
  padding: 0 2px;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-body); font-size: 15px; font-weight: 600;
  padding: 14px 26px; border-radius: var(--r-btn); cursor: pointer;
  border: 1px solid transparent;
  transition: transform var(--micro), box-shadow var(--micro), background var(--micro);
}
.btn.primary { background: linear-gradient(135deg, var(--canopy-hi), var(--leaf) 55%, var(--river)); color: var(--ink); box-shadow: var(--sh-glow); }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(194,65,12,.3); }
.btn.ghost { background: var(--paper); color: var(--ink); border-color: rgba(20,17,16,.12); box-shadow: var(--sh-sm); }
.btn.ghost:hover { transform: translateY(-2px); border-color: var(--leaf); color: var(--canopy); box-shadow: var(--sh-md); }
.btn:active { transform: translateY(0); }

/* identity chip */
.identity { display: flex; align-items: center; gap: 14px; }
.identity-photo {
  width: 56px; height: 56px; border-radius: 50%; flex: none; overflow: hidden;
  border: 2px solid var(--paper); box-shadow: var(--sh-md), 0 0 0 2px var(--sprout);
}
.identity-photo img {
  width: 100%; height: 100%; object-fit: cover;
  /* The source is 4096×1856 (very wide); the face sits at ~49% across, ~43%
     down. cover fits the height, so only object-position-x bites — the zoom
     is done with a transform anchored on the face so it stays put. */
  object-position: 49% 50%;
  transform-origin: 49% 43%;
  transform: scale(2.9);
  /* a touch more punch than the hero — the chip is tiny, so it needs it */
  filter: url(#photo-enhance) saturate(1.18) contrast(1.09) brightness(1.03);
}
.identity-meta { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
/* the name links home (ruhan.bd) — underline only on hover so it stays a
   name first and a link second */
.identity-name {
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  width: fit-content; text-decoration-color: transparent;
  transition: color var(--micro), text-decoration-color var(--micro);
}
.identity-name:hover {
  color: var(--canopy);
  text-decoration: underline; text-decoration-thickness: 1.5px;
  text-underline-offset: 3px; text-decoration-color: var(--leaf);
}
.identity-title { font-size: 13px; font-weight: 600; color: var(--canopy); }
.identity-role  { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); }

/* hero portrait frame */
.hero-visual { position: relative; }
.hero-visual::before {
  content: ""; position: absolute; inset: -12% -8% -8% -12%; z-index: 0;
  background: radial-gradient(50% 50% at 50% 50%, rgba(249,115,22,.34), transparent 70%);
  filter: blur(28px);
  animation: breathe 14s ease-in-out infinite;
}
@keyframes breathe { 0%,100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.07); opacity: 1; } }
.hero-frame {
  position: relative; z-index: 1;
  aspect-ratio: 4 / 5; border-radius: var(--r-panel); overflow: hidden;
  border: 6px solid var(--paper); box-shadow: var(--sh-lg);
}
/* 4:5 frame from a 2.2:1 source — cover fits the height and crops the sides,
   so x=49% keeps him centred in the portrait window. */
.hero-frame img {
  width: 100%; height: 100%; object-fit: cover; object-position: 49% 50%;
  /* photo enhancement — see the .enhance note below */
  filter: url(#photo-enhance) saturate(1.14) contrast(1.06) brightness(1.02);
}
/* depth pass: a soft vignette + a warm lift in the lower third, so the
   foreground separates from the canopy instead of flattening into it */
.hero-frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background:
    radial-gradient(120% 88% at 50% 38%, transparent 44%, rgba(20,17,16,.30) 100%),
    linear-gradient(to top, rgba(245,158,11,.16), transparent 42%);
}
.hero-frame figcaption {
  position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 2;
  color: #fff; background: rgba(20,17,16,.44);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding: 14px 16px 13px; border-radius: 12px;
  border-left: 2.5px solid var(--sprout);
}
.hero-frame figcaption blockquote {
  font-family: var(--font-serif); font-weight: 500; font-style: italic;
  font-size: 15px; line-height: 1.4; letter-spacing: -0.01em;
}
.hero-frame figcaption blockquote::before { content: "\201C"; }
.hero-frame figcaption blockquote::after  { content: "\201D"; }
.hero-frame figcaption cite {
  display: block; margin-top: 7px; font-style: normal;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--sprout);
}
.hero-frame figcaption cite::before { content: "— "; }

/* =========================================================================
   CAPABILITY BAND
   ========================================================================= */
.caps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; gap: 20px; }
.cap {
  background: var(--paper); border: var(--line); border-radius: var(--r-card);
  padding: 26px 24px; box-shadow: var(--sh-sm);
  transition: transform var(--panel-t), box-shadow var(--panel-t);
}
.cap:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.cap-icon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  color: var(--ink); margin-bottom: 16px; box-shadow: var(--sh-sm);
}
.cap:nth-child(1) .cap-icon { background: linear-gradient(135deg, var(--leaf), var(--river)); }
.cap:nth-child(2) .cap-icon { background: linear-gradient(135deg, var(--canopy-hi), var(--leaf)); }
.cap:nth-child(3) .cap-icon { background: linear-gradient(135deg, var(--river), var(--river-soft)); }
.cap:nth-child(4) .cap-icon { background: linear-gradient(135deg, var(--leaf), var(--sprout)); }
.cap-name { font-family: var(--font-display); font-weight: 700; font-size: 16px; margin-bottom: 6px; }
.cap-desc { font-size: 14px; color: var(--ink-2); line-height: 1.6; }

/* =========================================================================
   SERVICES — big rounded panel holding expandable cards
   ========================================================================= */
.panel {
  background: rgba(255,253,251, .66);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: var(--line); border-radius: var(--r-panel);
  padding: 44px; box-shadow: var(--sh-sm);
}

.svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 20px; }

.svc {
  background: var(--paper); border: var(--line); border-radius: var(--r-card);
  padding: 26px; box-shadow: var(--sh-sm);
  transition: transform var(--panel-t), box-shadow var(--panel-t), border-color var(--panel-t);
}
.svc:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: rgba(249,115,22,.4); }
.svc summary { cursor: pointer; list-style: none; }
.svc summary::-webkit-details-marker { display: none; }
.svc summary::marker { content: ""; }

/* per-service accent — six different orange/amber shades, all bright enough for deep-black icons */
.svc-web      { --a: #f97316; }
.svc-mobile   { --a: #f59e0b; }
.svc-ai       { --a: #fb923c; }
.svc-erp      { --a: #ea580c; }
.svc-data     { --a: #fdba74; }
.svc-security { --a: #fcd34d; }

.svc-motif {
  height: 74px; border-radius: 14px; margin-bottom: 18px; position: relative; overflow: hidden;
  background: color-mix(in srgb, var(--a) 9%, var(--paper));
  border: 1px solid color-mix(in srgb, var(--a) 18%, transparent);
}
.svc-head { display: flex; align-items: flex-start; gap: 12px; }
.svc-icon {
  width: 38px; height: 38px; border-radius: 11px; flex: none; display: grid; place-items: center;
  background: var(--a); color: var(--ink); box-shadow: var(--sh-sm);
}
.svc-name { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: 0.02em; }
.svc-tag  { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); display: block; margin-top: 3px; }
.svc-desc { font-size: 14px; color: var(--ink-2); line-height: 1.65; margin-top: 14px; }
.svc-more {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 14px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .04em;
  color: color-mix(in srgb, var(--a) 55%, var(--ink));
}
.svc-more svg { transition: transform var(--panel-t); }
.svc[open] .svc-more svg { transform: rotate(180deg); }
.svc[open] .lbl-shut { display: none; }
.svc:not([open]) .lbl-open { display: none; }

.svc-body-wrap { overflow: hidden; transition: height var(--panel-t); }
.svc-body { padding-top: 18px; margin-top: 16px; border-top: 1px dashed rgba(20,17,16,.16); }
.svc-body p { font-size: 14px; color: var(--ink-2); line-height: 1.7; }
.built-label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3); margin: 18px 0 10px;
}
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 7px; }
.chips li {
  font-family: var(--font-mono); font-size: 12px; padding: 5px 11px; border-radius: var(--r-chip);
  background: color-mix(in srgb, var(--a) 12%, var(--paper));
  border: 1px solid color-mix(in srgb, var(--a) 26%, transparent);
  color: var(--forest);
}

/* ── service motifs (each card gets its own) ────────────────────────────── */
.m-browser .bar { position: absolute; inset: 0 0 auto 0; height: 22px; background: color-mix(in srgb, var(--a) 16%, var(--paper)); display: flex; align-items: center; gap: 5px; padding: 0 10px; }
.m-browser .bar i { width: 6px; height: 6px; border-radius: 50%; background: var(--a); opacity: .5; }
.m-browser .bar i:first-child { opacity: .95; }
.m-browser .ln { position: absolute; left: 12px; height: 7px; border-radius: 4px; background: color-mix(in srgb, var(--a) 30%, var(--paper)); }
.m-browser .ln:nth-of-type(1) { top: 34px; width: 58%; }
.m-browser .ln:nth-of-type(2) { top: 48px; width: 82%; }

.m-phone { display: grid; place-items: center; }
.m-phone .dev { width: 36px; height: 56px; border: 2.5px solid var(--a); border-radius: 9px; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 5px; background: var(--paper); }
.m-phone .dev i { border-radius: 3px; background: color-mix(in srgb, var(--a) 55%, var(--paper)); }

.m-chat { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 0 14px; }
.m-chat .bub { height: 13px; border-radius: 8px; background: color-mix(in srgb, var(--a) 22%, var(--paper)); width: 64%; }
.m-chat .bub.me { align-self: flex-end; width: 44%; background: var(--a); }
.m-chat .typing { display: flex; gap: 4px; }
.m-chat .typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--a); animation: bounce 1.3s ease-in-out infinite; }
.m-chat .typing i:nth-child(2) { animation-delay: .15s; }
.m-chat .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%,60%,100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }

.m-dash { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 0 14px; }
.m-dash .row { display: flex; align-items: center; gap: 7px; }
.m-dash .row i { height: 7px; border-radius: 4px; background: color-mix(in srgb, var(--a) 26%, var(--paper)); }
.m-dash .row i:first-child { width: 20px; background: var(--a); }
.m-dash .row i:last-child { flex: 1; }

.m-chart { display: flex; align-items: flex-end; gap: 7px; padding: 14px 16px; height: 100%; }
.m-chart i { flex: 1; border-radius: 4px 4px 0 0; background: color-mix(in srgb, var(--a) 34%, var(--paper)); }
.m-chart i:nth-child(2), .m-chart i:nth-child(4) { background: var(--a); }
.m-chart i:nth-child(1) { height: 38%; }
.m-chart i:nth-child(2) { height: 68%; }
.m-chart i:nth-child(3) { height: 52%; }
.m-chart i:nth-child(4) { height: 88%; }
.m-chart i:nth-child(5) { height: 32%; }

.m-shield { display: grid; place-items: center; }
.m-shield .sh { position: relative; width: 36px; height: 42px; background: var(--a); overflow: hidden;
  clip-path: polygon(50% 0%, 100% 20%, 100% 60%, 50% 100%, 0% 60%, 0% 20%); }
.m-shield .sh::after { content: ""; position: absolute; left: 0; right: 0; height: 40%; background: rgba(255,255,255,.6); animation: scan 2.4s ease-in-out infinite; }
@keyframes scan { 0% { top: -40%; } 100% { top: 100%; } }

/* ── toolkit sub-block inside the services panel ────────────────────────── */
.toolkit { margin-top: 52px; padding-top: 40px; border-top: 1px dashed rgba(20,17,16,.16); }
.toolkit-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 3vw, 30px); margin-bottom: 6px; }
.craft-rows { margin-top: 28px; display: flex; flex-direction: column; }
.craft-row { display: grid; grid-template-columns: minmax(0, 190px) minmax(0, 1fr); gap: 20px; padding: 18px 0; border-bottom: var(--line); }
.craft-row:first-child { border-top: var(--line); }
.craft-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); padding-top: 4px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span {
  font-size: 13px; font-weight: 500; padding: 6px 13px; border-radius: 999px;
  background: var(--wash-green); border: 1px solid rgba(249,115,22,.28); color: var(--forest);
  transition: transform var(--micro), background var(--micro), color var(--micro);
}
.tags span:hover { transform: translateY(-2px); background: var(--leaf); color: var(--ink); border-color: var(--leaf); }

/* =========================================================================
   FULL-BLEED EDITORIAL BAND — the Partnerbike move
   ========================================================================= */
.bleed { padding: 0; position: relative; }
.bleed-media { position: relative; height: clamp(320px, 46vw, 480px); overflow: hidden; }
/* The band is huge on screen, so it gets plain CSS filters rather than the
   SVG convolution — same visual lift, a fraction of the paint cost. */
.bleed-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 46%;
  filter: saturate(1.16) contrast(1.05);
}
.bleed-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20,17,16,.78) 0%, rgba(20,17,16,.46) 46%, rgba(20,17,16,.12) 100%);
}
.bleed-copy {
  position: absolute; inset: 0; z-index: 2; display: flex; align-items: center;
}
.bleed-copy .inner { max-width: 620px; color: #fff; }
.bleed-copy .label { color: var(--sprout); }
.bleed-copy .label::before { background: linear-gradient(90deg, var(--sprout), transparent); }
.bleed-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(26px, 4vw, 42px); letter-spacing: 0.02em; line-height: 1.1; margin: 14px 0 14px; color: #fff; }
.bleed-text { font-size: 16px; line-height: 1.7; color: rgba(255,255,255,.86); }

/* =========================================================================
   PROCESS — numbered timeline
   ========================================================================= */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: start; gap: 18px; }
.step { position: relative; }
.step-no {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 14px; font-weight: 500;
  background: var(--paper); border: 1.5px solid var(--leaf); color: var(--canopy);
  box-shadow: var(--sh-sm); position: relative; z-index: 2; margin-bottom: 18px;
}
/* connector line between nodes */
.step:not(:last-child)::before {
  content: ""; position: absolute; top: 23px; left: 46px; right: -18px; height: 1.5px;
  background: repeating-linear-gradient(90deg, var(--sprout) 0 6px, transparent 6px 12px);
  z-index: 1;
}
.step-name { font-family: var(--font-display); font-weight: 700; font-size: 17px; margin-bottom: 7px; }
.step-desc { font-size: 14px; color: var(--ink-2); line-height: 1.6; }

/* =========================================================================
   EXPERIENCE
   ========================================================================= */
.exp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 20px; margin-bottom: 44px; }
.exp {
  background: var(--paper); border: var(--line); border-radius: var(--r-card);
  padding: 30px; box-shadow: var(--sh-sm);
  transition: transform var(--panel-t), box-shadow var(--panel-t);
}
.exp:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.exp.now { background: linear-gradient(160deg, var(--wash-green), var(--paper) 60%); border-color: rgba(249,115,22,.38); }
.exp-flag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--canopy); margin-bottom: 14px;
}
.exp-year {
  display: inline-block; font-family: var(--font-mono); font-size: 12px;
  background: var(--mist-green); color: var(--forest);
  padding: 4px 12px; border-radius: 999px; margin-bottom: 14px;
}
.exp-role { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: 0.02em; margin-bottom: 5px; }
.exp-org  { font-size: 15px; font-weight: 500; color: var(--ink-2); margin-bottom: 12px; }
.exp-org small { color: var(--ink-3); font-weight: 400; }
.exp-desc { font-size: 14px; color: var(--ink-2); line-height: 1.7; }

.edu-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 16px; }
.edu-list { display: flex; flex-wrap: wrap; gap: 12px; }
.edu {
  background: var(--paper); border: var(--line); border-radius: var(--r-btn);
  padding: 14px 20px; box-shadow: var(--sh-sm); max-width: 100%;
}
.edu strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: 15px; margin-bottom: 3px; }
.edu span { font-size: 13px; color: var(--ink-2); }

/* =========================================================================
   WHY OPEN SOURCE — warm river panel
   ========================================================================= */
.why-panel {
  background: var(--river-wash); border: 1px solid rgba(245,158,11,.34);
  border-radius: var(--r-panel); padding: 52px 44px; box-shadow: var(--sh-sm);
}
.why-panel .label { color: var(--river-deep); }
.why-panel .label::before { background: linear-gradient(90deg, var(--river-deep), var(--river-soft)); }
.prose { font-size: 17px; line-height: 1.75; color: var(--ink-2); max-width: var(--prose); }
.prose strong {
  color: var(--forest); font-weight: 600;
  background: linear-gradient(180deg, transparent 62%, rgba(245,158,11,.55) 62%);
  padding: 0 2px;
}
.trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 18px; margin-top: 36px; }
.trust-item { background: var(--paper); border: var(--line); border-radius: var(--r-card); padding: 22px; box-shadow: var(--sh-sm); }
.trust-item strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: 16px; margin-bottom: 6px; color: var(--forest); }
.trust-item span { font-size: 14px; color: var(--ink-2); line-height: 1.6; }

/* =========================================================================
   FAQ
   ========================================================================= */
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 860px; }
.faq {
  background: var(--paper); border: var(--line); border-radius: var(--r-card);
  padding: 20px 24px; box-shadow: var(--sh-sm);
  transition: border-color var(--micro), box-shadow var(--micro);
}
.faq[open] { border-color: rgba(249,115,22,.42); box-shadow: var(--sh-md); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: 0.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::marker { content: ""; }
.faq .pm {
  width: 28px; height: 28px; border-radius: 50%; flex: none; position: relative;
  background: var(--mist-green); transition: background var(--micro), transform var(--panel-t);
}
.faq .pm::before, .faq .pm::after {
  content: ""; position: absolute; left: 50%; top: 50%; background: var(--canopy);
  transform: translate(-50%, -50%); border-radius: 2px; transition: opacity var(--micro);
}
.faq .pm::before { width: 11px; height: 2px; }
.faq .pm::after  { width: 2px; height: 11px; }
.faq[open] .pm { background: var(--leaf); transform: rotate(90deg); }
.faq[open] .pm::before { background: var(--ink); }
.faq[open] .pm::after  { opacity: 0; }
.faq-body-wrap { overflow: hidden; transition: height var(--panel-t); }
.faq-body { padding-top: 14px; }
.faq-body p { font-size: 15px; color: var(--ink-2); line-height: 1.7; max-width: 68ch; }

/* =========================================================================
   CONTACT
   ========================================================================= */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 44px; align-items: start; }

.channel {
  display: flex; align-items: center; gap: 14px;
  background: var(--paper); border: var(--line); border-radius: var(--r-card);
  padding: 18px 20px; box-shadow: var(--sh-sm); margin-bottom: 12px;
  transition: transform var(--micro), box-shadow var(--micro), border-color var(--micro);
}
.channel:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: rgba(249,115,22,.42); }
.ch-icon { width: 42px; height: 42px; border-radius: 12px; flex: none; display: grid; place-items: center; color: var(--ink); }
.ch-mail { background: linear-gradient(135deg, var(--leaf), var(--river)); }
.ch-wa   { background: linear-gradient(135deg, var(--sprout), var(--river-soft)); }
.ch-meta { display: flex; flex-direction: column; min-width: 0; }
.ch-k { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.ch-v { font-weight: 600; font-size: 15px; word-break: break-word; }
.ch-go { margin-left: auto; color: var(--ink-3); flex: none; }

.copy-btn {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 4px;
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-3);
  background: none; border: none; cursor: pointer; padding: 6px 0;
  transition: color var(--micro);
}
.copy-btn:hover { color: var(--canopy); }
.copy-btn.done { color: var(--canopy); }

.form-panel { background: var(--paper); border: var(--line); border-radius: var(--r-panel); padding: 34px; box-shadow: var(--sh-md); }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.field input, .field select, .field textarea {
  background: var(--canvas); border: 1px solid rgba(20,17,16,.12); border-radius: var(--r-btn);
  padding: 13px 15px; font-size: 15px; width: 100%;
  transition: border-color var(--micro), box-shadow var(--micro), background var(--micro);
}
.field textarea { resize: vertical; min-height: 130px; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; background: var(--paper);
  border-color: var(--leaf); box-shadow: 0 0 0 4px rgba(249,115,22,.16);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 22px; }
.form-note { font-size: 13px; color: var(--ink-3); }
.btn.send { min-width: 168px; }
.btn.send[disabled] { opacity: .6; cursor: not-allowed; transform: none; }

.form-status { margin-top: 16px; font-size: 14px; border-radius: var(--r-btn); padding: 0; max-height: 0; overflow: hidden; transition: max-height var(--panel-t), padding var(--panel-t); }
.form-status.show { padding: 13px 16px; max-height: 220px; }
.form-status.ok   { background: var(--wash-green); border: 1px solid rgba(249,115,22,.4); color: var(--forest); }
.form-status.err  { background: #fdf1ec; border: 1px solid rgba(190,88,52,.34); color: #8a3d20; }

/* =========================================================================
   FOOTER
   ========================================================================= */
footer { background: var(--forest); color: rgba(255,255,255,.72); padding: 72px 0 32px; margin-top: 0; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 44px; }
.foot-brand .wordmark { color: #fff; margin-bottom: 14px; }
.foot-brand .seal { background: linear-gradient(135deg, var(--leaf), var(--sprout)); color: var(--forest); }
.foot-tag { font-size: 14px; line-height: 1.7; max-width: 42ch; }
.foot-col h4 { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--sprout); margin-bottom: 16px; }
.foot-col a { display: block; font-size: 14px; padding: 5px 0; color: rgba(255,255,255,.72); transition: color var(--micro); }
.foot-col a:hover { color: #fff; }
.foot-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12);
  font-size: 13px;
}
.foot-top { display: inline-flex; align-items: center; gap: 7px; transition: color var(--micro); }
.foot-top:hover { color: var(--sprout); }
.foot-seo { margin-top: 18px; font-size: 12px; color: rgba(255,255,255,.4); line-height: 1.6; }

/* =========================================================================
   FLOATING CONTACT
   ========================================================================= */
.fab { position: fixed; right: 22px; bottom: 22px; z-index: 75; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.fab a {
  display: inline-flex; align-items: center; gap: 10px;
  height: 50px; padding: 0 20px 0 15px; border-radius: 999px;
  color: var(--ink); box-shadow: var(--sh-lg);
  font-family: var(--font-mono); font-size: 13px; font-weight: 500; letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform var(--micro), box-shadow var(--micro);
}
.fab a svg { flex: none; }
.fab a:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(20,17,16,.24); }
.fab .f-mail { background: linear-gradient(135deg, var(--leaf), var(--river)); }
.fab .f-wa   { background: linear-gradient(135deg, var(--sprout), var(--river-soft)); }

/* ── inline contact line (hero + anywhere the address should be readable) ─ */
.contact-line { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.contact-line a {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 13px; font-weight: 500;
  background: var(--paper); border: var(--line); box-shadow: var(--sh-sm);
  padding: 9px 16px; border-radius: 999px; color: var(--ink);
  transition: transform var(--micro), border-color var(--micro), box-shadow var(--micro);
}
.contact-line a:hover { transform: translateY(-2px); border-color: var(--leaf); box-shadow: var(--sh-md); }
.contact-line a svg { flex: none; color: var(--canopy); }
.contact-line a.wa svg { color: var(--river-deep); }

/* =========================================================================
   REVEAL
   ========================================================================= */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 600ms ease, transform 600ms var(--ease); }
.reveal.in { opacity: 1; transform: none; }

.contact-where { margin-top: 20px; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1200px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 34px; }
  .step:nth-child(3)::before { display: none; }
}

/* ── tablet: the nav pill runs out of room once the language toggle is in,
      and two service cards side by side get cramped well before 780px ───── */
@media (max-width: 1080px) {
  .nav-menu { gap: 0; }
  .nav-menu a { padding: 9px 11px; font-size: 13.5px; }
}

@media (max-width: 960px) {
  .hamburger { display: flex; }
  .nav-menu {
    position: fixed; top: 0; right: -100%; height: 100dvh; width: min(82vw, 320px);
    z-index: 78; flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: 6px; padding: 92px 22px 28px;
    background: var(--paper); border-left: var(--line); box-shadow: var(--sh-lg);
    transform: translateX(104%); right: 0; transition: transform var(--panel-t);
    overflow-y: auto;
  }
  .nav-menu.open { transform: none; }
  .nav-menu a { font-size: 16px; padding: 13px 16px; border-radius: var(--r-btn); width: 100%; }
  .nav-menu li { opacity: 0; transform: translateX(14px); transition: opacity 300ms ease, transform 300ms var(--ease); width: 100%; }
  .nav-menu.open li { opacity: 1; transform: none; }
  .nav-menu.open li:nth-child(1) { transition-delay: .05s; }
  .nav-menu.open li:nth-child(2) { transition-delay: .10s; }
  .nav-menu.open li:nth-child(3) { transition-delay: .15s; }
  .nav-menu.open li:nth-child(4) { transition-delay: .20s; }
  .nav-menu.open li:nth-child(5) { transition-delay: .25s; }
  .nav-menu.open li:nth-child(6) { transition-delay: .30s; }
  .nav-cta { text-align: center; margin-top: 8px; }

  /* one service card per row from here — two columns of dense copy is unreadable */
  .svc-grid { grid-template-columns: minmax(0, 1fr); }
  .exp-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 980px) {
  section { padding: 92px 0; }
  .hero { padding: 140px 0 80px; }
  /* Tablets keep the two-column hero — there is still width for it, and
     stacking here pushed the portrait far below the fold. The text column
     takes the extra space and the portrait narrows instead. */
  .hero-inner { grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr); gap: 32px; }
  .hero-frame { aspect-ratio: 3 / 4; }
  .hero-lede { max-width: none; }
  .caps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .panel { padding: 32px 24px; }
  .why-panel { padding: 40px 28px; }
  .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
  .foot-brand { grid-column: 1 / -1; }
}

/* ── small tablet / large phone ─────────────────────────────────────────── */
@media (max-width: 860px) {
  /* three trust cards side by side get too narrow to read here */
  .trust { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step::before { display: none !important; }
  /* the 200px label column squeezes the tag cloud into a sliver */
  .craft-row { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .bleed-media { height: clamp(300px, 52vw, 400px); }
  .bleed-media::after { background: linear-gradient(180deg, rgba(20,17,16,.34) 0%, rgba(20,17,16,.82) 100%); }
  .bleed-copy { align-items: flex-end; padding-bottom: 34px; }
}

@media (max-width: 780px) {
  .nav { top: 10px; }
  .nav-inner { padding: 8px 8px 8px 14px; gap: 12px; }
  .wordmark { font-size: 16px; }
  .lang a { padding: 6px 10px; font-size: 11.5px; }
}

/* Below this the two hero columns genuinely stop fitting — the headline
   starts breaking badly and the portrait gets too narrow to read. Stack. */
@media (max-width: 700px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero-visual { max-width: 380px; }
  .hero-frame { aspect-ratio: 4 / 5; }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; }
  section { padding: 72px 0; }
  .hero { padding: 118px 0 64px; }
  .caps { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .field-grid { grid-template-columns: minmax(0, 1fr); }
  .form-panel { padding: 24px 20px; }
  .panel { padding: 22px 16px; }
  .why-panel { padding: 30px 20px; }
  .svc { padding: 20px; }
  .exp { padding: 22px; }
  .svc-motif { height: 62px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .form-foot { flex-direction: column; align-items: stretch; }
  .btn.send { width: 100%; }
  /* the portrait shouldn't eat a whole phone screen before the copy starts */
  .hero-visual { max-width: 100%; }
  .hero-frame { aspect-ratio: 5 / 4; }
  /* the full address is too wide for a phone — keep the label, drop the
     address; the in-page contact cards carry the detail there */
  .fab { right: 14px; bottom: 14px; gap: 8px; }
  .fab a { height: 46px; padding: 0 16px 0 13px; font-size: 12px; }
  .fab .fab-full { display: none; }
  .fab .fab-short { display: inline !important; }
  .contact-line { gap: 8px; }
  .contact-line a { font-size: 12px; padding: 8px 13px; }
  /* Explore and Contact are short lists — side by side uses the width that's
     already there instead of stacking into a long scroll. Brand spans above. */
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .foot-brand { grid-column: 1 / -1; }
  .foot-col a { padding: 6px 0; }
  .foot-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  /* keep the last line clear of the floating contact buttons */
  footer { padding-bottom: 96px; }
  .edu-list { flex-direction: column; }
  .edu { width: 100%; }
}

@media (max-width: 420px) {
  .edu { padding: 12px 16px; }
  .identity-photo { width: 48px; height: 48px; }
  .hero-chip { font-size: 12px; padding: 7px 13px; }
  .nav-inner { gap: 8px; padding: 8px 8px 8px 12px; }
  .lang a { padding: 6px 9px; font-size: 11px; }
  .seal { width: 27px; height: 27px; font-size: 10px; }
  .wordmark { font-size: 15px; gap: 8px; }
  .svc-head { gap: 10px; }
  .exp-role { font-size: 20px; }
  /* long unbroken strings (emails, URLs) must not push the layout wide */
  .ch-v, .contact-line a { overflow-wrap: anywhere; }
  .contact-line a { max-width: 100%; }
}

/* =========================================================================
   ACCESSIBILITY
   ========================================================================= */
:focus-visible { outline: 2.5px solid var(--canopy); outline-offset: 3px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* small utilities pulled out of inline styles */
.copy-btn + .channel { margin-top: 14px; }
.field label .opt { text-transform: none; letter-spacing: 0; opacity: .7; }
.foot-place { display: block; font-size: 14px; padding: 5px 0; color: rgba(255,255,255,.5); }
