/* DeerVending V2 — design tokens
   Drop into the existing global stylesheet (e.g. app/globals.css, styles/theme.css)
   and keep the existing brand stylesheet as-is. All values are themeable via data-theme.

   Status of this file: REVIEW AGAINST THE CURRENT BRAND SYSTEM BEFORE USE.
   The tokens below follow the agreed V2 direction. If the repo already defines
   --ink / --blue / --paper etc., MERGE (do not overwrite) so existing components
   keep their current appearance until each section is reworked deliberately. */

:root {
  /* Ink & neutrals */
  --ink: #102c3c;            /* headings, primary text */
  --ink-70: #46606f;         /* secondary text — verify >= 4.5:1 on --off-white */
  --ink-50: #647d8a;         /* muted text — decorative/disabled use only */
  --off-white: #f7f8f6;
  --paper: #ffffff;
  --border: #dfe6e7;
  --border-strong: #c3d0d2;

  /* Brand action */
  --blue: #2767d4;
  --blue-dark: #1c4ca3;
  --blue-ink: #ffffff;

  /* Product category accents (soft, decorative only — never body text on white) */
  --accent-phone: #d9ecec;
  --accent-phone-strong: #1f6f74;
  --accent-candy: #f6e3f0;
  --accent-candy-strong: #8a4a76;
  --accent-floral: #f7e5e4;
  --accent-floral-strong: #9c5559;

  /* Semantic */
  --success-bg: #eef7f0;
  --success-border: #2f7d46;
  --success-ink: #1f5c31;
  --error-bg: #fdf0ef;
  --error-border: #b3261e;
  --error-ink: #7f1d1a;

  /* Typography — keep the CURRENT licensed brand font stack.
     Replace the fallbacks with the fonts already loaded by the repo; do not
     introduce a new webfont for this redesign. */
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Noto Sans SC", "PingFang SC", "Microsoft JhengHei", sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: clamp(1.5rem, 1.15rem + 1.4vw, 2rem);
  --text-3xl: clamp(1.875rem, 1.35rem + 2.2vw, 2.75rem);
  --text-hero: clamp(2.125rem, 1.5rem + 2.9vw, 3.5rem);
  --leading-tight: 1.2;
  --leading-normal: 1.6;
  /* CJK needs more leading than Latin at the same size */
  :lang(zh), :lang(zh-Hant), :lang(zh-Hans) { --leading-normal: 1.75; }

  /* Space */
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  /* Layout */
  --content-max: 1200px;
  --gutter: 1.25rem;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-pill: 999px;
  --shadow-card: 0 1px 2px rgba(16, 44, 60, 0.06), 0 8px 24px rgba(16, 44, 60, 0.06);

  /* Media ratios — machine photos must never be cropped through the machine */
  --ratio-hero: 4 / 3;
  --ratio-card: 3 / 2;
  --media-fit: contain;   /* verify per asset; see docs/02-media-inventory.md */

  --focus-ring: 0 0 0 3px var(--paper), 0 0 0 5px var(--blue);
  --dur-fast: 140ms;
  --dur-base: 220ms;
  --ease: cubic-bezier(0.2, 0, 0.2, 1);
}

/* Utility classes used by the redesigned sections (framework-agnostic) */
.container { width: 100%; max-width: var(--content-max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--space-2xl); background: var(--paper); }
.section--alt { background: var(--off-white); }
.stack > * + * { margin-top: var(--space-md); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs);
  min-height: 44px; padding: 0.7rem 1.4rem;
  border-radius: var(--radius-pill); border: 1.5px solid transparent;
  font: 600 var(--text-base)/1.2 var(--font-sans);
  text-decoration: none; cursor: pointer;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease);
}
.btn--primary { background: var(--blue); color: var(--blue-ink); }
.btn--primary:hover { background: var(--blue-dark); }
.btn--ghost { background: transparent; color: var(--blue-dark); border-color: var(--border-strong); }
.btn--ghost:hover { border-color: var(--blue); background: rgba(39, 103, 212, 0.06); }
:where(a, button, input, select, textarea, [tabindex]):focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-sm); }

.card {
  background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius-md);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}
/* Only apply hover lift to devices that actually hover */
@media (hover: hover) and (pointer: fine) {
  .card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
}
.card__media { aspect-ratio: var(--ratio-card); background: var(--off-white); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: var(--media-fit); }

.hero { display: grid; gap: var(--space-xl); align-items: center; }
@media (min-width: 64rem) { .hero { grid-template-columns: 1fr 1fr; } }

.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); }

/* Status pill — factual only, never a marketing badge */
.status {
  display: inline-flex; align-items: center; gap: var(--space-xs);
  padding: 0.3rem 0.75rem; border-radius: var(--radius-pill);
  font: 600 var(--text-xs)/1.4 var(--font-sans);
  border: 1px solid currentColor;
}
.status--operating { color: var(--success-ink); background: var(--success-bg); border-color: var(--success-border); }
.status--proposed  { color: #6b5314; background: #fdf7e6; border-color: #a4801f; }

.badge-category { display: inline-block; padding: 0.25rem 0.7rem; border-radius: var(--radius-pill); font: 600 var(--text-xs)/1.4 var(--font-sans); }
.badge-category--phone { background: var(--accent-phone); color: var(--accent-phone-strong); }
.badge-category--candy { background: var(--accent-candy); color: var(--accent-candy-strong); }
.badge-category--floral { background: var(--accent-floral); color: var(--accent-floral-strong); }

.form-field { display: block; margin-bottom: var(--space-md); }
.form-field__label { display: block; font: 600 var(--text-sm)/1.4 var(--font-sans); margin-bottom: var(--space-2xs); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; min-height: 44px; padding: 0.6rem 0.8rem;
  border: 1.5px solid var(--border-strong); border-radius: var(--radius-sm);
  font: var(--text-base)/1.5 var(--font-sans); color: var(--ink); background: var(--paper);
}
.form-field [aria-invalid="true"] { border-color: var(--error-border); }
.form-error { color: var(--error-ink); font-size: var(--text-sm); margin-top: var(--space-2xs); }

.form-status { padding: var(--space-md); border-radius: var(--radius-sm); border: 1px solid; }
.form-status--success { background: var(--success-bg); border-color: var(--success-border); color: var(--success-ink); }
.form-status--error { background: var(--error-bg); border-color: var(--error-border); color: var(--error-ink); }

.concept-note { font-size: var(--text-sm); color: var(--ink-70); border-left: 3px solid var(--border-strong); padding-left: var(--space-sm); }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: var(--space-md); top: var(--space-md); z-index: 100; background: var(--paper); padding: var(--space-sm); border-radius: var(--radius-sm); box-shadow: var(--shadow-card); }

/* Motion — subtle, and disabled on request */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

@media (max-width: 23.75rem) {  /* 380px guard */
  :root { --gutter: 1rem; }
  .btn { width: 100%; }
}

/* DeerVending V2 — layout layer. Appended to tokens.css at build time.
   Premium B2B: generous space, restrained motion, strong dark/light contrast. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--off-white);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: var(--leading-tight); margin: 0 0 var(--space-sm); letter-spacing: -0.02em; }
h1 { font-size: var(--text-hero); font-weight: 700; }
h2 { font-size: var(--text-3xl); font-weight: 700; }
h3 { font-size: var(--text-xl); font-weight: 650; }
p { margin: 0 0 var(--space-md); }
a { color: var(--blue-dark); }
:focus-visible { box-shadow: var(--focus-ring); outline: none; border-radius: var(--radius-sm); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link:focus { position: fixed; left: var(--space-md); top: var(--space-md); z-index: 200;
  background: var(--paper); padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-card); }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex; align-items: center; gap: var(--space-lg);
  min-height: 72px;
}
.brand { display: inline-flex; align-items: center; gap: var(--space-xs);
  text-decoration: none; color: var(--ink); font-weight: 700; letter-spacing: -0.02em; }
.brand__mark { width: 40px; flex: 0 0 40px; }
.brand__name { font-size: var(--text-lg); }
.nav { margin-inline-start: auto; }
.nav__list, .mobile-nav__list, .footer__list, .footer__legal, .chips {
  list-style: none; margin: 0; padding: 0;
}
.nav__list { display: flex; align-items: center; gap: var(--space-xs); }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 0 var(--space-sm); border-radius: var(--radius-sm);
  color: var(--ink); text-decoration: none; font-weight: 550; font-size: var(--text-sm);
}
.nav__link:hover { background: var(--off-white); }
.nav__link[aria-current="page"] { color: var(--blue-dark); box-shadow: inset 0 -2px 0 var(--blue); }
.nav__item--has-sub { display: flex; align-items: center; }
.nav__caret {
  min-width: 32px; min-height: 44px; border: 0; background: none; cursor: pointer;
  color: var(--ink-70); font-size: var(--text-xs);
}
.nav__submenu {
  position: absolute; top: 100%; inset-inline-start: 0; z-index: 60;
  min-width: 260px; padding: var(--space-xs); margin: 0; list-style: none;
  background: var(--paper); border: 1px solid var(--border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-card);
}
.nav__submenu[hidden] { display: none; }
.nav__sublink {
  display: block; padding: var(--space-sm) var(--space-md); border-radius: var(--radius-sm);
  color: var(--ink); text-decoration: none; font-size: var(--text-sm); font-weight: 550;
}
.nav__sublink:hover { background: var(--off-white); }

.site-header__end { display: flex; align-items: center; gap: var(--space-sm); }
.locale-switch { position: relative; }
.locale-switch__button {
  min-height: 40px; padding: 0 var(--space-sm); cursor: pointer;
  border: 1px solid var(--border-strong); border-radius: var(--radius-pill);
  background: var(--paper); color: var(--ink); font: 600 var(--text-xs)/1 var(--font-sans);
}
.locale-switch__menu {
  position: absolute; inset-inline-end: 0; top: calc(100% + 6px); z-index: 60;
  min-width: 190px; padding: var(--space-xs); margin: 0; list-style: none;
  background: var(--paper); border: 1px solid var(--border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-card);
}
.locale-switch__menu[hidden] { display: none; }
.locale-switch__option {
  display: block; padding: var(--space-sm) var(--space-md); border-radius: var(--radius-sm);
  color: var(--ink); text-decoration: none; font-size: var(--text-sm);
}
.locale-switch__option:hover { background: var(--off-white); }
.locale-switch__option[aria-current="true"] { font-weight: 700; color: var(--blue-dark); }

.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px; cursor: pointer;
  background: var(--paper); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); }
.nav-toggle__bar { display: block; height: 2px; background: var(--ink); border-radius: 2px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:first-of-type { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:last-of-type { transform: translateY(-3.5px) rotate(-45deg); }

.mobile-nav {
  display: none; padding: var(--space-md) var(--gutter) var(--space-lg);
  background: var(--paper); border-top: 1px solid var(--border);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav__list > li { border-bottom: 1px solid var(--border); }
.mobile-nav__list .nav__link { width: 100%; justify-content: space-between; }
.mobile-nav__list .nav__submenu { position: static; box-shadow: none; border: 0; padding: 0 0 var(--space-sm) var(--space-md); }
.mobile-nav .btn { margin-top: var(--space-md); width: 100%; }

/* ---------------------------------------------------------------- hero */
.hero { padding: var(--space-2xl) 0; background: linear-gradient(180deg, var(--paper), var(--off-white)); }
.hero__inner { display: grid; gap: var(--space-xl); align-items: center; }
.eyebrow {
  font: 700 var(--text-xs)/1.4 var(--font-sans); letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--blue-dark); margin-bottom: var(--space-sm);
}
.hero__title { max-width: 18ch; }
.hero__lead { font-size: var(--text-lg); color: var(--ink-70); max-width: 52ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-lg); }

/* ---------------------------------------------------------------- media */
.media { display: block; }
.media--card, .media--square { border-radius: var(--radius-md); overflow: hidden; background: var(--paper); }
.media--hero { border-radius: var(--radius-lg, 18px); overflow: hidden; background: var(--paper); }
.media--logo { background: none; overflow: visible; }
.media__img { display: block; width: 100%; height: auto; object-fit: contain; }
.media--card .media__img, .media--square .media__img { aspect-ratio: var(--ratio-card); object-fit: contain; }
.media--hero .media__img { aspect-ratio: var(--ratio-hero); object-fit: contain; }
.media__body {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--space-xs); text-align: center; padding: var(--space-xl) var(--space-md);
  aspect-ratio: var(--ratio-card);
  background:
    repeating-linear-gradient(135deg, rgba(16,44,60,0.045) 0 12px, transparent 12px 24px),
    var(--paper);
  border: 1px dashed var(--border-strong);
}
.media--hero .media__body { aspect-ratio: var(--ratio-hero); }
.media--logo .media__body { aspect-ratio: auto; padding: 0; border: 0; background: none; }
.media__body--concept { background: repeating-linear-gradient(135deg, rgba(156,85,89,0.07) 0 12px, transparent 12px 24px), var(--paper); }
.media__slot-label { font: 700 var(--text-sm)/1.3 var(--font-sans); color: var(--ink); }
.media__slot-detail { font: 400 var(--text-xs)/1.4 var(--font-sans); color: var(--ink-70); max-width: 32ch; }
.media__caption { font-size: var(--text-xs); color: var(--ink-70); padding: var(--space-xs) var(--space-sm); }

/* ---------------------------------------------------------------- sections */
.section { padding: var(--space-2xl) 0; background: var(--paper); }
.section--alt { background: var(--off-white); }
.section__title { max-width: 24ch; }
.section__intro { font-size: var(--text-lg); color: var(--ink-70); max-width: 60ch; }
.section__actions { margin-top: var(--space-lg); display: flex; flex-wrap: wrap; gap: var(--space-sm); }

.grid { display: grid; gap: var(--space-lg); }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }
.grid--tiles, .step, .tile { list-style: none; }
.grid > .step { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-lg); }

.card { border: 1px solid var(--border); }
.card__body { padding: var(--space-lg); display: flex; flex-direction: column; gap: var(--space-sm); align-items: flex-start; }
.card__title { font-size: var(--text-xl); margin: 0; }
.card__text { color: var(--ink-70); margin: 0; }

.tile { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-lg); }
.section--alt .tile { background: var(--paper); }
.tile__title { font-size: var(--text-lg); margin-bottom: var(--space-xs); }
.tile__text { color: var(--ink-70); margin: 0; }
.tile--sector { border-top: 3px solid var(--blue); }

.status { margin: var(--space-xs) 0 0; }
.status__label { font-weight: 700; }

.checklist { margin: 0; padding-inline-start: var(--space-lg); color: var(--ink-70); }
.checklist li { margin-bottom: var(--space-xs); }

.split { display: grid; gap: var(--space-xl); align-items: center; }
.split__copy > * + * { margin-top: var(--space-md); }

.chips { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.chip {
  padding: var(--space-sm) var(--space-md); border-radius: var(--radius-pill);
  background: var(--accent-floral); color: var(--accent-floral-strong);
  font: 600 var(--text-sm)/1.3 var(--font-sans);
}

.faq { max-width: 80ch; }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-md);
  padding: var(--space-lg) 0; cursor: pointer; font-weight: 650; list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after { content: "+"; font-size: var(--text-xl); color: var(--blue); flex: 0 0 auto; }
.faq__item[open] .faq__q::after { content: "\2013"; }
.faq__a { padding-bottom: var(--space-lg); color: var(--ink-70); }

.callout {
  padding: var(--space-lg); border-radius: var(--radius-md);
  background: var(--accent-phone); color: var(--accent-phone-strong);
  border-inline-start: 4px solid var(--accent-phone-strong);
}
.flag {
  display: inline-block; margin-inline-start: var(--space-xs); padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill); background: #fdf7e6; color: #6b5314;
  border: 1px solid #a4801f; font: 600 var(--text-xs)/1.4 var(--font-sans);
}
.location-card__name { font-size: var(--text-lg); margin-bottom: var(--space-2xs); }
.location-card__machine { color: var(--ink-70); margin-bottom: var(--space-sm); }
.gallery { display: grid; gap: var(--space-lg); }

.page-head { padding: var(--space-2xl) 0 var(--space-xl); background: var(--paper); }
.page-head--floral { background: linear-gradient(180deg, var(--accent-floral), var(--paper)); }
.page-head__title { max-width: 22ch; }
.page-head__lead { font-size: var(--text-lg); color: var(--ink-70); max-width: 60ch; }

/* ---------------------------------------------------------------- form */
.enquiry-form { max-width: 860px; }
.enquiry-form__grid { display: grid; gap: var(--space-md); }
.form-field { display: block; margin-bottom: var(--space-md); }
.form-field__label { display: block; font-weight: 650; font-size: var(--text-sm); margin-bottom: var(--space-2xs); }
.req { color: var(--error-border); margin-inline-start: 2px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; min-height: 44px; padding: 0.65rem 0.8rem;
  border: 1.5px solid var(--border-strong); border-radius: var(--radius-sm);
  font: var(--text-base)/1.5 var(--font-sans); color: var(--ink); background: var(--paper);
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-field [aria-invalid="true"] { border-color: var(--error-border); background: var(--error-bg); }
.form-error { display: none; margin-top: var(--space-2xs); color: var(--error-ink); font-size: var(--text-sm); }
.form-error[data-shown="true"] { display: block; }
.enquiry-form__privacy { margin-top: var(--space-md); font-size: var(--text-sm); color: var(--ink-70); }
.form-status-region { margin-top: var(--space-md); }
.form-status-region:not(:empty) {
  padding: var(--space-md); border-radius: var(--radius-sm); border: 1px solid var(--success-border);
  background: var(--success-bg); color: var(--success-ink);
}
.form-status-region[data-tone="error"] { border-color: var(--error-border); background: var(--error-bg); color: var(--error-ink); }
.form-status-region[data-tone="preview"] { border-color: #a4801f; background: #fdf7e6; color: #6b5314; }
.form-status { margin: 0; font-weight: 650; }
.form-status__detail { margin: var(--space-2xs) 0 0; font-weight: 400; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--ink); color: #dbe5ea; padding: var(--space-2xl) 0 var(--space-lg); margin-top: auto; }
.site-footer a { color: #dbe5ea; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer__top { display: grid; gap: var(--space-xl); }
.footer__name { font-size: var(--text-lg); font-weight: 700; color: #fff; margin-bottom: var(--space-xs); }
.footer__tagline { color: #a8bcc6; max-width: 34ch; }
.footer__pending { color: #a8bcc6; }
.concept-note { color: #a8bcc6; border-inline-start-color: #3c5b6b; }
.section .concept-note { color: var(--ink-70); }
.footer__heading { font-size: var(--text-sm); letter-spacing: 0.08em; text-transform: uppercase; color: #8fa8b4; margin-bottom: var(--space-sm); }
.footer__list li { margin-bottom: var(--space-xs); }
.footer__bottom {
  margin-top: var(--space-xl); padding-top: var(--space-lg);
  border-top: 1px solid #26414f;
  display: flex; flex-wrap: wrap; gap: var(--space-md); justify-content: space-between;
  font-size: var(--text-sm); color: #8fa8b4;
}
.footer__legal { display: flex; flex-wrap: wrap; gap: var(--space-md); }

/* ---------------------------------------------------------------- layout */
.main { display: block; }
body { display: flex; flex-direction: column; min-height: 100vh; }

@media (min-width: 40rem) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 64rem) {
  .hero__inner { grid-template-columns: 1.05fr 1fr; gap: var(--space-2xl); }
  .split { grid-template-columns: 1fr 1fr; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .footer__top { grid-template-columns: 1.4fr repeat(3, 1fr); }
  .enquiry-form__grid { grid-template-columns: repeat(2, 1fr); }
  .form-field--wide { grid-column: 1 / -1; }
}
@media (max-width: 63.99rem) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .site-header__end .nav__cta { display: none; }
  .mobile-nav[data-open="true"] { display: block; }
}
@media (max-width: 30rem) {
  .brand__name { font-size: var(--text-base); }
  .hero__actions .btn { width: 100%; }
  .footer__bottom { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
}
@media print {
  .site-header, .site-footer, .mobile-nav, .hero__actions { display: none; }
  body { background: #fff; }
}

.media__concept-note {
  margin: 0; padding: var(--space-xs) var(--space-sm);
  font-size: var(--text-xs); color: #6b5314;
  background: #fdf7e6; border-inline-start: 3px solid #a4801f;
}
/* DeerVending V2 — layout layer. Appended to tokens.css at build time.
   Premium B2B: generous space, restrained motion, strong dark/light contrast. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--off-white);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: var(--leading-tight); margin: 0 0 var(--space-sm); letter-spacing: -0.02em; }
h1 { font-size: var(--text-hero); font-weight: 700; }
h2 { font-size: var(--text-3xl); font-weight: 700; }
h3 { font-size: var(--text-xl); font-weight: 650; }
p { margin: 0 0 var(--space-md); }
a { color: var(--blue-dark); }
:focus-visible { box-shadow: var(--focus-ring); outline: none; border-radius: var(--radius-sm); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link:focus { position: fixed; left: var(--space-md); top: var(--space-md); z-index: 200;
  background: var(--paper); padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-card); }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex; align-items: center; gap: var(--space-lg);
  min-height: 72px;
}
.brand { display: inline-flex; align-items: center; gap: var(--space-xs);
  text-decoration: none; color: var(--ink); font-weight: 700; letter-spacing: -0.02em; }
.brand__mark { width: 40px; flex: 0 0 40px; }
.brand__name { font-size: var(--text-lg); }
.nav { margin-inline-start: auto; }
.nav__list, .mobile-nav__list, .footer__list, .footer__legal, .chips {
  list-style: none; margin: 0; padding: 0;
}
.nav__list { display: flex; align-items: center; gap: var(--space-xs); }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 0 var(--space-sm); border-radius: var(--radius-sm);
  color: var(--ink); text-decoration: none; font-weight: 550; font-size: var(--text-sm);
}
.nav__link:hover { background: var(--off-white); }
.nav__link[aria-current="page"] { color: var(--blue-dark); box-shadow: inset 0 -2px 0 var(--blue); }
.nav__item--has-sub { display: flex; align-items: center; }
.nav__caret {
  min-width: 32px; min-height: 44px; border: 0; background: none; cursor: pointer;
  color: var(--ink-70); font-size: var(--text-xs);
}
.nav__submenu {
  position: absolute; top: 100%; inset-inline-start: 0; z-index: 60;
  min-width: 260px; padding: var(--space-xs); margin: 0; list-style: none;
  background: var(--paper); border: 1px solid var(--border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-card);
}
.nav__submenu[hidden] { display: none; }
.nav__sublink {
  display: block; padding: var(--space-sm) var(--space-md); border-radius: var(--radius-sm);
  color: var(--ink); text-decoration: none; font-size: var(--text-sm); font-weight: 550;
}
.nav__sublink:hover { background: var(--off-white); }

.site-header__end { display: flex; align-items: center; gap: var(--space-sm); }
.locale-switch { position: relative; }
.locale-switch__button {
  min-height: 40px; padding: 0 var(--space-sm); cursor: pointer;
  border: 1px solid var(--border-strong); border-radius: var(--radius-pill);
  background: var(--paper); color: var(--ink); font: 600 var(--text-xs)/1 var(--font-sans);
}
.locale-switch__menu {
  position: absolute; inset-inline-end: 0; top: calc(100% + 6px); z-index: 60;
  min-width: 190px; padding: var(--space-xs); margin: 0; list-style: none;
  background: var(--paper); border: 1px solid var(--border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-card);
}
.locale-switch__menu[hidden] { display: none; }
.locale-switch__option {
  display: block; padding: var(--space-sm) var(--space-md); border-radius: var(--radius-sm);
  color: var(--ink); text-decoration: none; font-size: var(--text-sm);
}
.locale-switch__option:hover { background: var(--off-white); }
.locale-switch__option[aria-current="true"] { font-weight: 700; color: var(--blue-dark); }

.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px; cursor: pointer;
  background: var(--paper); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); }
.nav-toggle__bar { display: block; height: 2px; background: var(--ink); border-radius: 2px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:first-of-type { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:last-of-type { transform: translateY(-3.5px) rotate(-45deg); }

.mobile-nav {
  display: none; padding: var(--space-md) var(--gutter) var(--space-lg);
  background: var(--paper); border-top: 1px solid var(--border);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav__list > li { border-bottom: 1px solid var(--border); }
.mobile-nav__list .nav__link { width: 100%; justify-content: space-between; }
.mobile-nav__list .nav__submenu { position: static; box-shadow: none; border: 0; padding: 0 0 var(--space-sm) var(--space-md); }
.mobile-nav .btn { margin-top: var(--space-md); width: 100%; }

/* ---------------------------------------------------------------- hero */
.hero { padding: var(--space-2xl) 0; background: linear-gradient(180deg, var(--paper), var(--off-white)); }
.hero__inner { display: grid; gap: var(--space-xl); align-items: center; }
.eyebrow {
  font: 700 var(--text-xs)/1.4 var(--font-sans); letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--blue-dark); margin-bottom: var(--space-sm);
}
.hero__title { max-width: 18ch; }
.hero__lead { font-size: var(--text-lg); color: var(--ink-70); max-width: 52ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-lg); }

/* ---------------------------------------------------------------- media */
.media { display: block; }
.media--card, .media--square { border-radius: var(--radius-md); overflow: hidden; background: var(--paper); }
.media--hero { border-radius: var(--radius-lg, 18px); overflow: hidden; background: var(--paper); }
.media--logo { background: none; overflow: visible; }
.media__img { display: block; width: 100%; height: auto; object-fit: contain; }
.media--card .media__img, .media--square .media__img { aspect-ratio: var(--ratio-card); object-fit: contain; }
.media--hero .media__img { aspect-ratio: var(--ratio-hero); object-fit: contain; }
.media__body {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--space-xs); text-align: center; padding: var(--space-xl) var(--space-md);
  aspect-ratio: var(--ratio-card);
  background:
    repeating-linear-gradient(135deg, rgba(16,44,60,0.045) 0 12px, transparent 12px 24px),
    var(--paper);
  border: 1px dashed var(--border-strong);
}
.media--hero .media__body { aspect-ratio: var(--ratio-hero); }
.media--logo .media__body { aspect-ratio: auto; padding: 0; border: 0; background: none; }
.media__body--concept { background: repeating-linear-gradient(135deg, rgba(156,85,89,0.07) 0 12px, transparent 12px 24px), var(--paper); }
.media__slot-label { font: 700 var(--text-sm)/1.3 var(--font-sans); color: var(--ink); }
.media__slot-detail { font: 400 var(--text-xs)/1.4 var(--font-sans); color: var(--ink-70); max-width: 32ch; }
.media__caption { font-size: var(--text-xs); color: var(--ink-70); padding: var(--space-xs) var(--space-sm); }

/* ---------------------------------------------------------------- sections */
.section { padding: var(--space-2xl) 0; background: var(--paper); }
.section--alt { background: var(--off-white); }
.section__title { max-width: 24ch; }
.section__intro { font-size: var(--text-lg); color: var(--ink-70); max-width: 60ch; }
.section__actions { margin-top: var(--space-lg); display: flex; flex-wrap: wrap; gap: var(--space-sm); }

.grid { display: grid; gap: var(--space-lg); }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }
.grid--tiles, .step, .tile { list-style: none; }
.grid > .step { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-lg); }

.card { border: 1px solid var(--border); }
.card__body { padding: var(--space-lg); display: flex; flex-direction: column; gap: var(--space-sm); align-items: flex-start; }
.card__title { font-size: var(--text-xl); margin: 0; }
.card__text { color: var(--ink-70); margin: 0; }

.tile { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-lg); }
.section--alt .tile { background: var(--paper); }
.tile__title { font-size: var(--text-lg); margin-bottom: var(--space-xs); }
.tile__text { color: var(--ink-70); margin: 0; }
.tile--sector { border-top: 3px solid var(--blue); }

.status { margin: var(--space-xs) 0 0; }
.status__label { font-weight: 700; }

.checklist { margin: 0; padding-inline-start: var(--space-lg); color: var(--ink-70); }
.checklist li { margin-bottom: var(--space-xs); }

.split { display: grid; gap: var(--space-xl); align-items: center; }
.split__copy > * + * { margin-top: var(--space-md); }

.chips { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.chip {
  padding: var(--space-sm) var(--space-md); border-radius: var(--radius-pill);
  background: var(--accent-floral); color: var(--accent-floral-strong);
  font: 600 var(--text-sm)/1.3 var(--font-sans);
}

.faq { max-width: 80ch; }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-md);
  padding: var(--space-lg) 0; cursor: pointer; font-weight: 650; list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after { content: "+"; font-size: var(--text-xl); color: var(--blue); flex: 0 0 auto; }
.faq__item[open] .faq__q::after { content: "\2013"; }
.faq__a { padding-bottom: var(--space-lg); color: var(--ink-70); }

.callout {
  padding: var(--space-lg); border-radius: var(--radius-md);
  background: var(--accent-phone); color: var(--accent-phone-strong);
  border-inline-start: 4px solid var(--accent-phone-strong);
}
.flag {
  display: inline-block; margin-inline-start: var(--space-xs); padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill); background: #fdf7e6; color: #6b5314;
  border: 1px solid #a4801f; font: 600 var(--text-xs)/1.4 var(--font-sans);
}
.location-card__name { font-size: var(--text-lg); margin-bottom: var(--space-2xs); }
.location-card__machine { color: var(--ink-70); margin-bottom: var(--space-sm); }
.gallery { display: grid; gap: var(--space-lg); }

.page-head { padding: var(--space-2xl) 0 var(--space-xl); background: var(--paper); }
.page-head--floral { background: linear-gradient(180deg, var(--accent-floral), var(--paper)); }
.page-head__title { max-width: 22ch; }
.page-head__lead { font-size: var(--text-lg); color: var(--ink-70); max-width: 60ch; }

/* ---------------------------------------------------------------- form */
.enquiry-form { max-width: 860px; }
.enquiry-form__grid { display: grid; gap: var(--space-md); }
.form-field { display: block; margin-bottom: var(--space-md); }
.form-field__label { display: block; font-weight: 650; font-size: var(--text-sm); margin-bottom: var(--space-2xs); }
.req { color: var(--error-border); margin-inline-start: 2px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; min-height: 44px; padding: 0.65rem 0.8rem;
  border: 1.5px solid var(--border-strong); border-radius: var(--radius-sm);
  font: var(--text-base)/1.5 var(--font-sans); color: var(--ink); background: var(--paper);
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-field [aria-invalid="true"] { border-color: var(--error-border); background: var(--error-bg); }
.form-error { display: none; margin-top: var(--space-2xs); color: var(--error-ink); font-size: var(--text-sm); }
.form-error[data-shown="true"] { display: block; }
.enquiry-form__privacy { margin-top: var(--space-md); font-size: var(--text-sm); color: var(--ink-70); }
.form-status-region { margin-top: var(--space-md); }
.form-status-region:not(:empty) {
  padding: var(--space-md); border-radius: var(--radius-sm); border: 1px solid var(--success-border);
  background: var(--success-bg); color: var(--success-ink);
}
.form-status-region[data-tone="error"] { border-color: var(--error-border); background: var(--error-bg); color: var(--error-ink); }
.form-status-region[data-tone="preview"] { border-color: #a4801f; background: #fdf7e6; color: #6b5314; }
.form-status { margin: 0; font-weight: 650; }
.form-status__detail { margin: var(--space-2xs) 0 0; font-weight: 400; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--ink); color: #dbe5ea; padding: var(--space-2xl) 0 var(--space-lg); margin-top: auto; }
.site-footer a { color: #dbe5ea; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer__top { display: grid; gap: var(--space-xl); }
.footer__name { font-size: var(--text-lg); font-weight: 700; color: #fff; margin-bottom: var(--space-xs); }
.footer__tagline { color: #a8bcc6; max-width: 34ch; }
.footer__pending { color: #a8bcc6; }
.concept-note { color: #a8bcc6; border-inline-start-color: #3c5b6b; }
.section .concept-note { color: var(--ink-70); }
.footer__heading { font-size: var(--text-sm); letter-spacing: 0.08em; text-transform: uppercase; color: #8fa8b4; margin-bottom: var(--space-sm); }
.footer__list li { margin-bottom: var(--space-xs); }
.footer__bottom {
  margin-top: var(--space-xl); padding-top: var(--space-lg);
  border-top: 1px solid #26414f;
  display: flex; flex-wrap: wrap; gap: var(--space-md); justify-content: space-between;
  font-size: var(--text-sm); color: #8fa8b4;
}
.footer__legal { display: flex; flex-wrap: wrap; gap: var(--space-md); }

/* ---------------------------------------------------------------- layout */
.main { display: block; }
body { display: flex; flex-direction: column; min-height: 100vh; }

@media (min-width: 40rem) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 64rem) {
  .hero__inner { grid-template-columns: 1.05fr 1fr; gap: var(--space-2xl); }
  .split { grid-template-columns: 1fr 1fr; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .footer__top { grid-template-columns: 1.4fr repeat(3, 1fr); }
  .enquiry-form__grid { grid-template-columns: repeat(2, 1fr); }
  .form-field--wide { grid-column: 1 / -1; }
}
@media (max-width: 63.99rem) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .site-header__end .nav__cta { display: none; }
  .mobile-nav[data-open="true"] { display: block; }
}
@media (max-width: 30rem) {
  .brand__name { font-size: var(--text-base); }
  .hero__actions .btn { width: 100%; }
  .footer__bottom { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
}
@media print {
  .site-header, .site-footer, .mobile-nav, .hero__actions { display: none; }
  body { background: #fff; }
}

.media__concept-note {
  margin: 0; padding: var(--space-xs) var(--space-sm);
  font-size: var(--text-xs); color: #6b5314;
  background: #fdf7e6; border-inline-start: 3px solid #a4801f;
}

.footer__logo { display: inline-block; margin-bottom: var(--space-sm); }
.footer__logo .media__img {
  width: 88px; height: 88px; object-fit: contain;
  background: #fff; padding: 8px; border-radius: 10px;
}
.brand__mark .media__img {
  width: 40px; height: 40px; object-fit: contain; border-radius: 8px;
}
@media (max-width: 63.99rem) {
  .brand__mark .media__img { width: 32px; height: 32px; }
}

