/* ===========================================================
   Design system tokens — Airbnb (contract, copied verbatim)
   =========================================================== */
:root {
  /* ─── Surface (3 levels) ─── */
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-warm: #f7f7f7;
  /* ─── Foreground ramp (4 levels) ─── */
  --fg: #222222;
  --fg-2: #3f3f3f;
  --muted: #6a6a6a;
  --meta: #929292;
  /* ─── Border (2 levels) ─── */
  --border: #dddddd;
  --border-soft: #ebebeb;
  /* ─── Accent ─── */
  --accent: #ff385c;
  --accent-on: #ffffff;
  --accent-hover: #e31c5f;
  --accent-active: #e00b41;
  /* ─── Semantic ─── */
  --success: #008a05;
  --warn: #c47700;
  --danger: #c13515;
  /* ─── Typography — fonts ─── */
  --font-display:
    "Airbnb Cereal VF", "Airbnb Cereal App", Circular,
    -apple-system, system-ui, "Helvetica Neue", Roboto, sans-serif;
  --font-body:
    "Airbnb Cereal VF", "Airbnb Cereal App", Circular,
    -apple-system, system-ui, "Helvetica Neue", Roboto, sans-serif;
  --font-mono:
    ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Monaco,
    Consolas, monospace;
  /* ─── Typography — type scale (px) ─── */
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 20px;
  --text-xl: 22px;
  --text-2xl: 28px;
  --text-3xl: 44px;
  --text-4xl: 56px;
  /* ─── Typography — leading & tracking ─── */
  --leading-body: 1.43;
  --leading-tight: 1.2;
  --tracking-display: -0.02em;
  /* ─── Spacing — base scale ─── */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  /* ─── Section rhythm ─── */
  --section-y-desktop: 64px;
  --section-y-tablet: 48px;
  --section-y-phone: 32px;
  /* ─── Radius ─── */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  /* ─── Elevation ─── */
  --elev-flat: none;
  --elev-ring: 0 0 0 1px var(--border);
  --elev-raised:
    rgba(0, 0, 0, 0.02) 0 0 0 1px,
    rgba(0, 0, 0, 0.04) 0 2px 6px 0,
    rgba(0, 0, 0, 0.1) 0 4px 8px 0;
  /* ─── Focus ring ─── */
  --focus-ring: 0 0 0 2px var(--fg);
  /* ─── Motion ─── */
  --motion-fast: 150ms;
  --motion-base: 200ms;
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  /* ─── Layout ─── */
  --container-max: 1280px;
  --container-gutter-desktop: 40px;
  --container-gutter-tablet: 24px;
  --container-gutter-phone: 16px;
}
/* ===========================================================
   Base
   =========================================================== */
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 500;
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
svg { display: block; }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
.sr {
  position: absolute; width: 1px; height: 1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.ic { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ic-16 { width: 16px; height: 16px; }
.ic-24 { width: 24px; height: 24px; }
.ic-fill { fill: currentColor; stroke: currentColor; }
.ic-fill[data-on="false"] { fill: none; }
/* ===========================================================
   Layout primitives
   =========================================================== */
.wrap { width: 100%; max-width: 1680px; margin: 0 auto; padding: 0 var(--container-gutter-desktop); }
.narrow { max-width: var(--container-max); }
/* Anchor targets must clear the sticky nav (76px) or the linked heading lands under it. */
[id] { scroll-margin-top: 92px; }
.sec { padding: var(--section-y-desktop) 0; }
.sec--warm { background: var(--surface-warm); }
.sec__head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-8); margin-bottom: var(--space-8); }
.sec__head > div { max-width: 62ch; }
.grid { display: grid; gap: var(--space-6); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.hair { height: 1px; background: var(--border); border: 0; }
.stack-2 > * + * { margin-top: var(--space-2); }
.stack-3 > * + * { margin-top: var(--space-3); }
.stack-4 > * + * { margin-top: var(--space-4); }
.stack-6 > * + * { margin-top: var(--space-6); }
/* ===========================================================
   Typography
   =========================================================== */
.h1 { font-family: var(--font-display); font-size: var(--text-4xl); font-weight: 700; line-height: 1.18; letter-spacing: var(--tracking-display); }
.h2 { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 700; line-height: 1.25; letter-spacing: var(--tracking-display); }
.h3 { font-size: var(--text-xl); font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; }
.h4 { font-size: var(--text-lg); font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
/* Vietnamese is diacritic-dense and wraps late; balance stops orphaned last lines. */
.h1, .h2, .h3, .h4, .feat__t { text-wrap: balance; }
.lead { text-wrap: pretty; }
.t5 { font-size: var(--text-base); font-weight: 600; line-height: 1.3; }
.lead { font-size: var(--text-base); font-weight: 500; line-height: 1.6; color: var(--muted); max-width: 58ch; }
.sm { font-size: var(--text-sm); line-height: 1.5; }
.xs { font-size: var(--text-xs); line-height: 1.5; }
.muted { color: var(--muted); }
.eyebrow { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.price { font-weight: 700; letter-spacing: -0.01em; }
.strike { color: var(--muted); text-decoration: line-through; font-weight: 500; }
.acc { color: var(--accent); }
/* ===========================================================
   Buttons and controls
   =========================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 44px; padding: 12px 22px; border-radius: var(--radius-lg);
  font-size: var(--text-base); font-weight: 600; line-height: 1.25;
  border: 1px solid transparent; text-align: center;
  transition: background var(--motion-fast) var(--ease-standard),
              border-color var(--motion-fast) var(--ease-standard),
              color var(--motion-fast) var(--ease-standard),
              transform var(--motion-fast) var(--ease-standard);
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: var(--accent-on); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:active { background: var(--accent-active); }
.btn-secondary { background: var(--surface); color: var(--fg); border-color: var(--fg); }
.btn-secondary:hover { background: var(--surface-warm); }
.btn-ghost { background: var(--surface); color: var(--fg); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-warm); border-color: var(--fg); }
.btn-sm { min-height: 40px; padding: 9px 16px; font-size: var(--text-sm); border-radius: var(--radius-md); }
.btn-block { width: 100%; }
.btn-icon {
  width: 44px; height: 44px; min-height: 44px; padding: 0;
  border-radius: var(--radius-pill); display: grid; place-items: center;
  background: var(--surface-warm); color: var(--fg); border: 1px solid transparent;
  transition: background var(--motion-fast) var(--ease-standard), transform var(--motion-fast);
}
.btn-icon:hover { background: var(--border-soft); }
.btn-icon:active { transform: scale(0.92); }
.btn-icon--on { background: var(--fg); color: var(--bg); }
.btn-icon--on:hover { background: var(--fg-2); }
.link-u { text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.link-u:hover { text-decoration-thickness: 2px; }
.linky { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: var(--text-sm); font-weight: 600; }
.linky .ic { transition: transform var(--motion-fast) var(--ease-standard); }
.linky:hover .ic { transform: translateX(3px); }
.chip {
  display: inline-flex; align-items: center; gap: var(--space-2);
  min-height: 44px; padding: 0 18px; border-radius: var(--radius-pill);
  border: 1px solid var(--border); background: var(--surface); color: var(--fg);
  font-size: var(--text-sm); font-weight: 500; white-space: nowrap;
  transition: background var(--motion-fast) var(--ease-standard), border-color var(--motion-fast) var(--ease-standard);
}
.chip:hover { background: var(--surface-warm); border-color: var(--fg); }
.chip.is-on { background: var(--fg); border-color: var(--fg); color: var(--bg); font-weight: 600; }
/* A size the chosen print finish is not sold in. Struck through so the state is not carried by
   opacity alone; the hover reset keeps it from looking pressable. */
.chip:disabled, .chip:disabled:hover { background: var(--surface); border-color: var(--border); opacity: 0.45; text-decoration: line-through; cursor: not-allowed; }
.chiprow { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: var(--radius-md); font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.02em; }
.badge-soft { background: var(--surface-warm); color: var(--fg); }
.badge-rausch { background: var(--accent); color: var(--accent-on); }
.badge-line { border: 1px solid var(--border); color: var(--fg); }
.field { display: block; }
.field span { display: block; font-size: var(--text-xs); font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.field input, .field select {
  width: 100%; min-height: 48px; padding: 12px 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: var(--text-base); font-weight: 500; outline: none;
  transition: border-color var(--motion-fast) var(--ease-standard), box-shadow var(--motion-fast) var(--ease-standard);
}
.field input::placeholder { color: var(--muted); font-weight: 500; }
.field input:hover, .field select:hover { border-color: var(--fg); }
.field input:focus-visible, .field select:focus-visible { border-color: var(--fg); outline: 2px solid var(--fg); outline-offset: 1px; }
.stepper { display: flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.stepper button { width: 44px; height: 48px; display: grid; place-items: center; color: var(--fg); transition: background var(--motion-fast); }
.stepper button:hover { background: var(--surface-warm); }
.stepper input {
  width: 76px; height: 48px; border: 0; border-left: 1px solid var(--border); border-right: 1px solid var(--border);
  text-align: center; font-size: var(--text-base); font-weight: 600; outline: none;
  font-variant-numeric: tabular-nums; -moz-appearance: textfield;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper:has(input[aria-invalid="true"]) { border-color: var(--danger); }
.fieldmsg { font-size: var(--text-xs); letter-spacing: 0.01em; color: var(--danger); margin-top: var(--space-2); }
/* ===========================================================
   Media — every catalog asset is 2.71:1, never cropped
   =========================================================== */
.media { position: relative; display: block; border-radius: var(--radius-md); overflow: hidden; background: var(--surface-warm); }
.media > img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
/* These two carry a baked-in red caption block at their right edge; anchoring the
   cover-crop left keeps the product and drops the text instead of slicing it. */
img[src$="print-nham.jpg"], img[src$="print-nham-2.jpg"] { object-position: left center; }
.media--lg { border-radius: var(--radius-lg); }
.media__cap { font-size: var(--text-sm); font-weight: 500; color: var(--muted); }
/* ===========================================================
   Cards
   =========================================================== */
.pcard { display: flex; flex-direction: column; gap: var(--space-3); }
.pcard__media { position: relative; }
.pcard__fav { position: absolute; top: 12px; right: 12px; background: var(--surface); box-shadow: 0 0 0 4px var(--surface); }
.pcard__fav:hover { background: var(--surface-warm); }
.pcard__body { display: flex; flex-direction: column; gap: var(--space-2); }
.pcard__meta { font-size: var(--text-sm); font-weight: 500; color: var(--muted); }
.pcard__cta { margin-top: var(--space-3); }
.tile figure { margin-bottom: var(--space-3); }
.tile figcaption { display: flex; flex-direction: column; gap: var(--space-1); }
.tile .go { display: inline-flex; align-items: center; gap: 6px; margin-top: var(--space-2); font-size: var(--text-sm); font-weight: 600; }
.tile .go .ic { transition: transform var(--motion-fast) var(--ease-standard); }
.tile a:hover .go .ic { transform: translateX(3px); }
.benefit { display: flex; flex-direction: column; gap: var(--space-3); padding-top: var(--space-5); border-top: 1px solid var(--border); }
.benefit .ic-24 { color: var(--fg); }
.step { display: flex; flex-direction: column; gap: var(--space-3); }
.step__n { font-family: var(--font-display); font-size: var(--text-3xl); font-weight: 700; line-height: 1; letter-spacing: var(--tracking-display); }
.specrow { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-4) 0; border-bottom: 1px solid var(--border); }
.specrow:first-of-type { border-top: 1px solid var(--border); }
.specrow .ic-24 { flex: 0 0 auto; }
.specrow__t { font-weight: 600; }
.specrow__d { font-size: var(--text-sm); color: var(--muted); }
.spec { display: flex; gap: var(--space-8); flex-wrap: wrap; }
.spec > div { min-width: 120px; }
.spec dt { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.spec dd { font-size: var(--text-base); font-weight: 600; margin-top: 2px; }
/* ===========================================================
   Panels
   =========================================================== */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-6); }
.panel--elev { box-shadow: var(--elev-raised); }
.panel--sticky { position: sticky; top: 108px; }
.optgroup + .optgroup { margin-top: var(--space-5); padding-top: var(--space-5); border-top: 1px solid var(--border); }
.optgroup__h { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-3); }
.sumrow { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4); padding: var(--space-2) 0; font-size: var(--text-sm); }
.sumrow dt { color: var(--muted); }
.sumrow dd { font-weight: 600; text-align: right; }
.total { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--border); }
.total b { font-size: var(--text-2xl); font-weight: 700; letter-spacing: var(--tracking-display); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 3px; background: var(--border); border-radius: 9999px; }
input[type="range"]::-moz-range-track { height: 3px; background: var(--border); border-radius: 9999px; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -11px; border-radius: 50%; background: var(--fg); border: 4px solid var(--surface); box-shadow: 0 0 0 1px var(--border); }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--fg); border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--border); }
/* ===========================================================
   Header
   =========================================================== */
.topbar { background: var(--surface-warm); color: var(--fg); font-size: var(--text-sm); }
.topbar__in { display: flex; align-items: center; justify-content: center; gap: var(--space-3); min-height: 44px; text-align: center; padding-top: 6px; padding-bottom: 6px; }
.nav { position: sticky; top: 0; z-index: 60; background: var(--surface); border-bottom: 1px solid var(--border); transition: box-shadow var(--motion-base) var(--ease-standard); }
.nav.is-stuck { box-shadow: var(--elev-raised); }
.nav__in { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--space-6); min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { width: 34px; height: 34px; border-radius: var(--radius-sm); }
.brand__t { display: block; }
.brand__t b { display: block; font-size: var(--text-lg); font-weight: 700; letter-spacing: -0.03em; color: var(--fg); line-height: 1.2; }
.brand__t small { display: block; font-size: var(--text-xs); font-weight: 600; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.25; }
.navlinks { display: flex; align-items: center; gap: 2px; justify-content: center; }
.navlinks a { padding: 10px 14px; border-radius: var(--radius-sm); font-size: var(--text-sm); font-weight: 600; transition: background var(--motion-fast); }
.navlinks a:hover { background: var(--surface-warm); }
.navacts { display: flex; align-items: center; gap: var(--space-2); justify-content: flex-end; }
.navacts .txt { display: inline-flex; align-items: center; gap: 6px; padding: 10px 12px; border-radius: var(--radius-sm); font-size: var(--text-sm); font-weight: 600; }
.navacts .txt:hover { background: var(--surface-warm); }
.cartbtn { position: relative; }
.cartbtn .count {
  position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px; padding: 0 5px;
  display: grid; place-items: center; border-radius: var(--radius-pill);
  background: var(--fg); color: var(--bg); font-size: 11px; font-weight: 700;
}
.navcta { opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity var(--motion-base) var(--ease-standard), transform var(--motion-base) var(--ease-standard), visibility var(--motion-base); }
.navcta.is-in { opacity: 1; visibility: visible; transform: none; }
.burger { display: none; }
/* ===========================================================
   Hero
   =========================================================== */
.hero { padding: var(--section-y-desktop) 0 0; }
.hero__top { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: var(--space-12); align-items: end; margin-bottom: var(--space-8); }
.hero__acts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.hero__facts { display: flex; flex-wrap: wrap; gap: var(--space-6); padding-top: var(--space-5); border-top: 1px solid var(--border); }
.hero__facts div { font-size: var(--text-sm); color: var(--muted); }
.hero__facts b { display: block; color: var(--fg); font-weight: 600; margin-bottom: 2px; }
.shot { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-warm); }
.shot__imgs { position: relative; aspect-ratio: 16 / 9; }
.shot__imgs img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 700ms var(--ease-standard); }
.shot__imgs img.is-on { opacity: 1; }
.dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 8px; z-index: 2; }
.dots button { width: 8px; height: 8px; padding: 0; border-radius: var(--radius-pill); background: var(--surface); box-shadow: 0 0 0 1px rgba(0,0,0,0.06), 0 1px 4px rgba(0,0,0,0.38); opacity: 0.72; transition: opacity var(--motion-fast) var(--ease-standard), width var(--motion-fast) var(--ease-standard); }
.dots button:hover { opacity: 0.9; }
.dots button[aria-current="true"] { opacity: 1; width: 24px; }
/* Carousel pause control — the 4px white ring is the brand's separator for circular
   buttons sitting on photography (DESIGN.md §6). Required by WCAG 2.2.2.
   Pinned top-right, not bottom-right: every hero frame carries the Mixbook watermark
   in the bottom-right, and a fixed 44px control clips it below ~1400px wide. */
.shot__toggle { position: absolute; right: 14px; top: 14px; z-index: 3; background: var(--surface); box-shadow: 0 0 0 4px var(--surface); }
.shot__toggle:hover { background: var(--surface-warm); }
.resume { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-4) var(--space-6); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); margin-top: var(--space-6); }
.resume__ic { flex: 0 0 auto; width: 44px; height: 44px; border-radius: var(--radius-md); background: var(--surface-warm); display: grid; place-items: center; }
.resume__b { flex: 1 1 auto; min-width: 0; }
.resume__b b { display: block; font-weight: 700; }
/* ===========================================================
   Occasion feature
   =========================================================== */
.feat { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: var(--space-8); align-items: center; margin-top: var(--space-8); }
.feat__t { font-size: var(--text-xl); font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
/* ===========================================================
   Variant strip
   =========================================================== */
.strip { display: flex; gap: var(--space-3); overflow-x: auto; padding: 2px 2px var(--space-2); scrollbar-width: thin; }
.strip button { flex: 0 0 232px; text-align: left; border-radius: var(--radius-md); padding: 0; background: var(--surface); border: 1px solid transparent; transition: border-color var(--motion-fast) var(--ease-standard); }
.strip button .media { border-radius: var(--radius-md) var(--radius-md) 0 0; }
.strip button:hover { border-color: var(--border); }
.strip button.is-on { border-color: var(--fg); }
.strip button.is-on .strip__l { background: var(--fg); color: var(--bg); }
.strip__l { display: block; padding: 8px 12px; background: var(--surface); border-radius: 0 0 var(--radius-md) var(--radius-md); font-size: var(--text-sm); font-weight: 600; line-height: 1.3; }
/* ===========================================================
   Configurator
   =========================================================== */
.cfg { display: grid; grid-template-columns: minmax(0, 1fr) 384px; gap: var(--space-8); align-items: start; margin-top: var(--space-8); }
/* ===========================================================
   Templates
   =========================================================== */
.tplrow { display: flex; flex-wrap: wrap; gap: var(--space-2); }
/* ===========================================================
   Search overlay
   =========================================================== */
.overlay { position: fixed; inset: 0; z-index: 200; display: none; }
.overlay.is-open { display: block; }
.overlay__scrim { position: absolute; inset: 0; background: rgba(0,0,0,0.32); }
.overlay__panel { position: relative; max-width: 720px; margin: 0 auto; background: var(--surface); border-radius: 0 0 var(--radius-lg) var(--radius-lg); padding: var(--space-6); box-shadow: var(--elev-raised); max-height: 86vh; overflow-y: auto; }
.sres { display: flex; flex-direction: column; gap: var(--space-1); margin-top: var(--space-4); }
.sres a { display: grid; grid-template-columns: 108px 1fr auto; gap: var(--space-3); align-items: center; padding: var(--space-2); border-radius: var(--radius-md); }
.sres a:hover { background: var(--surface-warm); }
.sres img { width: 108px; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius-sm); }
/* ===========================================================
   Drawer + toast
   =========================================================== */
.drawer { position: fixed; inset: 0; z-index: 210; display: none; }
.drawer.is-open { display: block; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(0,0,0,0.32); }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 88vw); background: var(--surface); padding: var(--space-6); overflow-y: auto; box-shadow: var(--elev-raised); }
.drawer nav a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--border); font-weight: 600; }
.crow { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-3); padding: var(--space-4) 0; border-bottom: 1px solid var(--border); }
.crow__n { font-size: var(--text-sm); font-weight: 600; line-height: 1.45; flex: 1 1 auto; min-width: 0; }
.crow__r { display: flex; align-items: center; gap: var(--space-3); flex: 0 0 auto; }
.crow__p { font-size: var(--text-sm); color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.crow button { color: var(--muted); display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--radius-pill); transition: background var(--motion-fast) var(--ease-standard), color var(--motion-fast) var(--ease-standard); }
.crow button:hover { background: var(--surface-warm); color: var(--fg); }
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
  background: var(--fg); color: var(--bg); padding: 14px 22px; border-radius: var(--radius-pill);
  font-size: var(--text-sm); font-weight: 600; z-index: 300; opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: var(--space-2);
  transition: opacity var(--motion-base) var(--ease-standard), transform var(--motion-base) var(--ease-standard);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
/* ===========================================================
   Footer
   =========================================================== */
.foot { border-top: 1px solid var(--border); padding: var(--section-y-desktop) 0 var(--space-8); }
.foot__cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1.35fr; gap: var(--space-8); }
.foot h3 { font-size: var(--text-sm); font-weight: 700; margin-bottom: var(--space-3); }
.foot li + li { margin-top: 10px; }
.foot a { font-size: var(--text-sm); color: var(--muted); }
.foot a:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.foot__contact dt { font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.02em; color: var(--muted); }
.foot__contact dd { font-size: var(--text-sm); color: var(--fg); margin: 2px 0 var(--space-3); }
.foot__contact dd:last-child { margin-bottom: 0; }
.foot__contact a { color: var(--fg); }
.foot__contact a:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.foot__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); margin-top: var(--space-8); padding-top: var(--space-5); border-top: 1px solid var(--border); font-size: var(--text-sm); color: var(--muted); }
/* ===========================================================
   Reveal
   =========================================================== */
.rv { opacity: 0; transform: translateY(14px); transition: opacity 520ms var(--ease-standard), transform 520ms var(--ease-standard); }
.rv.in { opacity: 1; transform: none; }
/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width: 1440px) {
  .g5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1200px) {
  .navlinks { display: none; }
  .burger { display: grid; }
  .cfg { grid-template-columns: 1fr; }
  .panel--sticky { position: static; }
  .hero__top { grid-template-columns: 1fr; gap: var(--space-6); }
  .wrap { padding: 0 var(--container-gutter-tablet); }
  .foot__cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1100px) {
  .navacts .txt { display: none; }
}
@media (max-width: 1024px) {
  .g4, .g5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feat { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .sec { padding: var(--section-y-phone) 0; }
  .hero { padding-top: var(--section-y-phone); }
  .h1 { font-size: 38px; line-height: 1.22; }
  .h2 { font-size: 24px; }
  .step__n { font-size: 36px; }
  .navcta { display: none; }
  .wrap { padding: 0 var(--container-gutter-phone); }
  .g2, .g3, .g4, .g5 { grid-template-columns: 1fr; }
  .sec__head { flex-direction: column; align-items: flex-start; gap: var(--space-4); }
  .hero__acts .btn { width: 100%; }
  .hero__facts { gap: var(--space-4); flex-direction: column; }
  .resume { flex-direction: column; align-items: flex-start; }
  .resume .btn { width: 100%; }
  .sres a { grid-template-columns: 84px 1fr; }
  .sres img { width: 84px; }
  .sres .sres__c { display: none; }
  .foot__cols { grid-template-columns: 1fr; gap: var(--space-6); }
  .panel { padding: var(--space-4); }
  .total b { font-size: var(--text-xl); }
}
@media (max-width: 420px) {
  /* At 360px the brand lockup + 3 icon buttons leave ~2px of slack; drop the subtitle. */
  .brand__t small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .rv { opacity: 1; transform: none; }
}
