/* CORMELIA GROUP LTD. - core: base, type, buttons, forms, shell (header, menu sheet, search palette, cart drawer, footer, modal, toasts), 404, utilities. Tokens: tokens.css. */
@layer reset, base, components, shell, utilities;

/* ---------------------------------------------------------------- reset */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  * { margin: 0; }
  html { overflow-x: clip; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scrollbar-gutter: stable; scroll-padding-top: calc(var(--head-h) + 1rem); }
  body { min-height: 100svh; }
  img, svg, video, canvas, picture { display: block; max-width: 100%; }
  img { height: auto; }
  input, button, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; }
  button { background: none; border: 0; padding: 0; cursor: pointer; }
  a { color: inherit; }
  ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
  table { border-collapse: collapse; }
  [hidden] { display: none !important; }
  dialog { color: inherit; }
}

/* ---------------------------------------------------------------- base */
@layer base {
  body {
    font-family: var(--f-text); font-size: var(--step-0); line-height: 1.6; font-weight: 400;
    background: var(--stone); color: var(--ink);
    -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
  }
  body:has(dialog[open]), body:has(.cart-drawer.is-open) { overflow: hidden; }
  ::selection { background: var(--ember); color: var(--on-ember); }
  :focus-visible { outline: 2px solid var(--ember-deep); outline-offset: 3px; border-radius: 2px; }
  .on-dark :focus-visible, .mast :focus-visible, .foot :focus-visible, dialog.sheet :focus-visible, .cart-drawer :focus-visible, .dlg :focus-visible, .cmd :focus-visible { outline-color: var(--apricot); }
  main { display: block; }
  main:focus { outline: none; }
  p { text-wrap: pretty; max-width: 64ch; }
  h1, h2, h3, h4 { font-family: var(--f-display); text-wrap: balance; overflow-wrap: anywhere; }
  h1 { font-size: var(--step-4); font-weight: 780; font-stretch: 78%; line-height: .96; letter-spacing: -.03em; }
  h2 { font-size: var(--step-3); font-weight: 700; font-stretch: 92%; line-height: 1.04; letter-spacing: -.025em; }
  h3 { font-size: var(--step-2); font-weight: 680; font-stretch: 92%; line-height: 1.08; letter-spacing: -.02em; }
  h4 { font-size: var(--step-1); font-weight: 650; font-stretch: 96%; line-height: 1.15; letter-spacing: -.01em; }
  .lead { font-size: var(--step-1); line-height: 1.45; color: var(--ink-2); max-width: 52ch; }
  .on-dark .lead { color: var(--text-2); }
  a:not([class]) { color: var(--ember-deep); text-underline-offset: .2em; text-decoration-thickness: 1px; }
  :is(.on-dark, .band--dark, .band--soot, .mast, .foot, .lost, .receipt, .cbanner, .map__box, .phead, .ct-hero, .cta, .story, dialog.sheet, dialog.cmd, .cart-drawer, .dlg) a:not([class]) { color: var(--ember-soft); }
  :is(.on-dark, .band--dark, .band--soot, .mast, .foot, .lost, .receipt, .cbanner, .map__box, .phead, .ct-hero, .cta, .story, dialog.sheet, dialog.cmd, .cart-drawer, .dlg) .kicker { color: var(--ember-soft); }
  :is(.on-dark, .band--dark, .band--soot, .mast, .foot, .lost, .receipt, .cbanner, .map__box, .phead, .ct-hero, .cta, .story, dialog.sheet, dialog.cmd, .cart-drawer, .dlg) .link-arrow { color: var(--ember-soft); }
  a:not([class]):hover { text-decoration-thickness: 2px; }
  address { font-style: normal; }
  hr { border: 0; height: 1px; background: var(--line-light); }
  .on-dark hr { background: var(--line-dark); }
  .num, .price { font-family: var(--f-mono); font-variant-numeric: tabular-nums lining-nums; font-feature-settings: "tnum" 1, "lnum" 1; letter-spacing: -.01em; }
  .price { font-weight: 600; }
  .on-dark .price { color: var(--ember-soft); }
  .nw { white-space: nowrap; }
  .icon { width: 1.5rem; height: 1.5rem; flex: none; }
  .skip { position: fixed; z-index: 200; inset-block-start: .5rem; inset-inline-start: .5rem; transform: translateY(-200%); background: var(--ember); color: var(--on-ember); padding: .75rem 1rem; border-radius: var(--r-sm); font-weight: 600; text-decoration: none; }
  .skip:focus { transform: none; }
  .vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
}

/* ---------------------------------------------------------------- components */
@layer components {
  .frame { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }

  /* bands: sections with their own ground */
  .band { position: relative; padding-block: var(--section); background: var(--stone); color: var(--ink); }
  .band--sand { background: var(--sand); }
  .band--dark { background: var(--soot-950); color: var(--text); }
  .band--soot { background: var(--soot-900); color: var(--text); }
  .band--dark, .band--soot { color-scheme: dark; }
  .band--tight { padding-block: calc(var(--section) * .6); }
  /* a light band that slides over the dark one above it */
  .band--sheet { margin-top: calc(var(--r-sheet) * -1); border-radius: var(--r-sheet) var(--r-sheet) 0 0; z-index: 1; }
  .on-dark { color: var(--text); }

  /* grain: only on dark bands */
  .grain { position: relative; isolation: isolate; }
  .grain::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--grain); opacity: .06; mix-blend-mode: overlay; pointer-events: none; }

  /* kicker: mono caps with an LED dot */
  .kicker { display: inline-flex; align-items: center; gap: .6em; font-family: var(--f-mono); font-size: var(--step--1); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ember-deep); line-height: 1.3; }
  .kicker::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 10px 1px rgb(255 90 54 / .6); flex: none; }
  .on-dark .kicker, .band--dark .kicker, .band--soot .kicker { color: var(--ember-soft); }

  /* ----- buttons */
  .btn {
    --b-bg: var(--grad-ember-btn); --b-fg: var(--on-ember); --b-edge: transparent;
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
    min-height: 48px; padding: .5rem 1.4rem; border-radius: var(--r-sm); border: 1px solid var(--b-edge);
    background: var(--b-bg); color: var(--b-fg); font-weight: 600; font-size: 1rem; line-height: 1.1; text-decoration: none; text-align: center; cursor: pointer;
    box-shadow: inset 0 1px 0 rgb(255 255 255 / .35), 0 8px 20px -10px rgb(255 90 54 / .6);
    transition: transform var(--t-fast) var(--ease), box-shadow var(--t-ui) var(--ease), background-color var(--t-ui) var(--ease), color var(--t-fast);
  }
  .btn::after { content: ""; position: absolute; inset-inline-end: .75rem; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: currentColor; opacity: 0; transform: scale(.4); transition: opacity var(--t-ui), transform var(--t-ui) var(--ease); pointer-events: none; }
  .btn .icon { width: 1.25rem; height: 1.25rem; }
  @media (hover: hover) {
    .btn:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgb(255 255 255 / .4), var(--glow-ember); }
    .btn:hover::after { opacity: 1; transform: none; box-shadow: 0 0 8px 2px rgb(255 255 255 / .5); }
  }
  .btn:active { transform: translateY(1px); }
  .btn--ghost { --b-bg: transparent; --b-fg: var(--ink); --b-edge: var(--line-light); box-shadow: var(--bezel-light); }
  .on-dark .btn--ghost, .band--dark .btn--ghost, .band--soot .btn--ghost, .btn--ghost.on-dark { --b-fg: var(--text); --b-edge: var(--line-dark); box-shadow: var(--bezel-dark); }
  @media (hover: hover) { .btn--ghost:hover { box-shadow: var(--bezel-light), 0 0 0 1px var(--ember-deep); } .on-dark .btn--ghost:hover, .band--dark .btn--ghost:hover { box-shadow: var(--bezel-dark), 0 0 0 1px var(--ember-soft); } }
  .btn--deep { --b-bg: var(--ember-deep); --b-fg: var(--bone); box-shadow: inset 0 1px 0 rgb(255 255 255 / .18); }
  .btn--plain { box-shadow: none; }
  .btn--sm { min-height: 44px; padding-inline: 1rem; font-size: .9375rem; }
  .btn--block { display: flex; width: 100%; }
  .btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
  .link-arrow { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; text-decoration: none; color: var(--ember-deep); padding-block: .6rem; }
  .on-dark .link-arrow, .band--dark .link-arrow { color: var(--ember-soft); }
  .link-arrow .icon { width: 1.2rem; height: 1.2rem; transition: transform var(--t-ui) var(--ease); }
  .link-arrow:hover .icon { transform: translateX(4px); }

  /* ----- forms (light ground by default, .on-dark / dialogs flip it) */
  .field { display: grid; gap: .4rem; min-width: 0; --f-bg: var(--bone); --f-fg: var(--ink); --f-edge: var(--line-light); --f-lab: var(--ink-2); --f-err: var(--err); --f-ring: var(--ember-deep); }
  .on-dark .field, .dlg .field, .cmd .field, .field.on-dark { --f-bg: var(--soot-700); --f-fg: var(--text); --f-edge: var(--line-dark); --f-lab: var(--text-2); --f-err: var(--err-dark); --f-ring: var(--apricot); }
  .field label, .field legend { font-size: .875rem; font-weight: 500; color: var(--f-lab); }
  .field .opt { font-weight: 400; opacity: .85; }
  .field input, .field select, .field textarea {
    width: 100%; min-height: 48px; padding: .65rem .9rem; border-radius: var(--r-xs); border: 1px solid var(--f-edge); background: var(--f-bg); color: var(--f-fg);
    box-shadow: inset 0 1px 2px rgb(18 12 10 / .08); transition: border-color var(--t-fast), box-shadow var(--t-fast); caret-color: var(--ember);
  }
  .field textarea { min-height: 7rem; resize: vertical; field-sizing: content; max-height: 20rem; }
  .field select { appearance: none; padding-inline-end: 2.4rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A3301A' stroke-width='2' stroke-linecap='square'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8rem center; background-size: 1.1rem; }
  .on-dark .field select, .dlg .field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFA184' stroke-width='2' stroke-linecap='square'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); }
  .field input::placeholder, .field textarea::placeholder { color: color-mix(in oklch, var(--f-fg) 55%, transparent); }
  .field input:hover, .field select:hover, .field textarea:hover { border-color: var(--copper); }
  .field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--f-ring); outline-offset: 2px; border-color: var(--f-ring); border-radius: var(--r-xs); }
  .field.has-error input, .field.has-error select, .field.has-error textarea, .field [aria-invalid="true"] { border-color: var(--f-err); box-shadow: 0 0 0 1px var(--f-err); }
  .field__err { display: none; align-items: flex-start; gap: .4rem; color: var(--f-err); font-size: .875rem; font-weight: 500; line-height: 1.35; }
  .field__err:not(:empty) { display: flex; }
  .field__err:not(:empty)::before { content: "!"; flex: none; display: grid; place-items: center; width: 1.1rem; height: 1.1rem; margin-top: .05rem; border: 1.5px solid currentColor; border-radius: 50%; font: 700 .7rem/1 var(--f-mono); }
  .row { display: grid; gap: var(--s4); }
  .row--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
  .hp { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
  .status { min-height: 1.4em; font-size: .9375rem; font-weight: 500; }
  .status.is-ok { color: var(--ok); } .status.is-bad { color: var(--err); }
  .dlg .status.is-ok, .on-dark .status.is-ok { color: var(--ok-dark); }
  .dlg .status.is-bad, .on-dark .status.is-bad { color: var(--err-dark); }
  .err-line { padding: .75rem 1rem; border-radius: var(--r-xs); border: 1px solid var(--err); color: var(--err); font-weight: 500; background: color-mix(in oklch, var(--err) 8%, var(--bone)); }
  .note { font-size: .875rem; color: var(--ink-2); max-width: 52ch; }
  .on-dark .note, .band--dark .note, .cart-drawer .note, .foot .note { color: var(--text-2); }
  .flash { display: flex; gap: .6rem; align-items: center; margin-block: var(--s4) 0; padding: .75rem 1rem; border-radius: var(--r-xs); border: 1px solid var(--ok); color: var(--ok); font-weight: 500; background: var(--bone); }

  /* quantity stepper (cart drawer, checkout) */
  .qty { display: inline-flex; align-items: center; border-radius: var(--r-xs); box-shadow: var(--bezel-dark); background: var(--soot-700); color: var(--text); }
  .qty button { width: 44px; height: 44px; display: grid; place-items: center; font-size: 1.25rem; line-height: 1; border-radius: var(--r-xs); transition: background-color var(--t-fast); }
  .qty button:hover { background: var(--oxblood); }
  .qty span { min-width: 2ch; text-align: center; font-family: var(--f-mono); font-variant-numeric: tabular-nums; }

  /* bezel frame ("device glass") */
  .bezel { border-radius: var(--r-md); box-shadow: var(--bezel-light); background: var(--bone); overflow: hidden; }
  .on-dark .bezel, .band--dark .bezel { box-shadow: var(--bezel-dark); background: var(--soot-800); }

  /* toasts */
  .toasts { position: fixed; z-index: 120; inset-inline: var(--gutter); inset-block-end: calc(1rem + env(safe-area-inset-bottom)); display: grid; justify-items: end; gap: .5rem; pointer-events: none; }
  .toast { pointer-events: auto; display: flex; align-items: center; gap: .75rem; max-width: min(100%, 26rem); padding: .75rem 1rem; border-radius: var(--r-sm); background: var(--soot-900); color: var(--text); box-shadow: var(--bezel-dark), var(--shadow-1), var(--shadow-2); font-size: .9375rem; animation: toast-in .4s var(--ease) both; }
  .toast .icon { width: 1.25rem; height: 1.25rem; color: var(--ember); }
  .toast button { min-height: 44px; padding-inline: .75rem; font-weight: 600; color: var(--ember-soft); text-decoration: underline; text-underline-offset: .2em; }
  .toast.is-out { animation: toast-out .3s var(--ease) both; }
  @keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
  @keyframes toast-out { to { opacity: 0; transform: translateY(8px); } }

  /* reveal on scroll (only hidden once ui.js runs: html.js-ready) */
  .js-ready [data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
  .js-ready [data-reveal="wipe"] { transform: none; clip-path: inset(100% 0 0 0); transition-property: opacity, clip-path; }
  .js-ready [data-reveal].is-in { opacity: 1; transform: none; clip-path: inset(0); }

  /* modal dialog (service request, any form) */
  .dlg { width: min(100% - 2rem, 34rem); max-height: min(100% - 2rem, 48rem); margin: auto; padding: 0; border: 0; border-radius: var(--r-md); background: var(--soot-900); color: var(--text); box-shadow: var(--bezel-dark), 0 40px 80px -30px #000; overflow: auto; overscroll-behavior: contain; }
  .dlg::backdrop { background: rgb(18 12 10 / .72); }
  .dlg[open] { animation: dlg-in .35s var(--ease) both; }
  .dlg[open]::backdrop { animation: fade .3s ease both; }
  .dlg__form { display: grid; gap: var(--s5); padding: clamp(1.25rem, 4vw, 2rem); position: relative; }
  .dlg__head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
  .dlg__head h2 { font-size: var(--step-2); margin-top: .5rem; }
  .dlg__x { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r-xs); box-shadow: var(--bezel-dark); flex: none; transition: background-color var(--t-fast); }
  .dlg__x:hover { background: var(--soot-700); }
  .dlg__re { display: grid; grid-template-columns: auto 1fr; gap: .25rem 1rem; padding: .85rem 1rem; border-radius: var(--r-xs); background: var(--soot-800); box-shadow: var(--bezel-dark); font-size: .9375rem; }
  .dlg__re dt { font-family: var(--f-mono); font-size: var(--step--1); letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); padding-top: .2em; }
  .dlg__re dd { font-weight: 500; overflow-wrap: anywhere; }
  .dlg__fields { display: grid; gap: var(--s4); }
  .dlg__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
  @keyframes dlg-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
  @keyframes fade { from { opacity: 0; } }
}

/* ---------------------------------------------------------------- shell */
@layer shell {
  /* ----- header: utility strip + main bar */
  .mast-sentinel { position: absolute; inset: 0 auto auto 0; width: 1px; height: 1px; pointer-events: none; }
  /* the solid/blurred ground lives on a pseudo-element: no backdrop-filter, filter or transform on the header itself, so position:fixed descendants (cart drawer, veil) keep the viewport as their containing block */
  .mast { position: sticky; top: 0; z-index: 60; isolation: isolate; color: var(--text); color-scheme: dark; transition: box-shadow var(--t-ui); }
  .mast::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--soot-950); transition: background-color var(--t-ui); pointer-events: none; }
  .mast.is-solid { box-shadow: 0 1px 0 var(--line-dark), 0 18px 40px -24px #000; }
  @supports (backdrop-filter: blur(1px)) { .mast.is-solid::before { background: rgb(18 12 10 / .86); backdrop-filter: blur(14px) saturate(1.2); } }
  .util { display: none; background: var(--soot-900); border-bottom: 1px solid var(--line-dark); font-family: var(--f-mono); font-size: .75rem; letter-spacing: .06em; color: var(--text-2); }
  .util__in { display: flex; align-items: center; justify-content: space-between; gap: var(--s5); min-height: var(--util-h); }
  .util a { display: inline-flex; align-items: center; gap: .5rem; min-height: 32px; text-decoration: none; color: var(--text); }
  .util a:hover { color: var(--apricot); }
  .util .icon { width: 1rem; height: 1rem; }
  .util__note { display: inline-flex; align-items: center; gap: .6rem; text-transform: uppercase; }
  .util__note::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 8px 1px rgb(255 90 54 / .6); }
  .util__r { display: flex; gap: var(--s5); align-items: center; }
  .mast__in { display: flex; align-items: center; gap: var(--s4); min-height: var(--mast-h); }
  .mast__brand { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); text-decoration: none; }
  .mast__brand .logo__full { height: 26px; width: auto; }
  .mast__nav { display: none; margin-inline-start: var(--s6); gap: .25rem; }
  .mast__nav a { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding-inline: .9rem; border-radius: var(--r-xs); text-decoration: none; font-weight: 500; font-size: .9375rem; color: var(--text-2); transition: color var(--t-fast); }
  .mast__nav a::after { content: ""; position: absolute; inset-inline: .9rem; bottom: .45rem; height: 2px; background: var(--ember); transform: scaleX(0); transform-origin: left; transition: transform var(--t-ui) var(--ease); }
  .mast__nav a:hover, .mast__nav a[aria-current="page"] { color: var(--text); }
  .mast__nav a:hover::after, .mast__nav a[aria-current="page"]::after { transform: scaleX(1); }
  .mast__act { margin-inline-start: auto; display: flex; align-items: center; gap: .5rem; }
  .mast .btn--ghost { --b-fg: var(--text); --b-edge: var(--line-dark); box-shadow: var(--bezel-dark); }

  /* command search trigger */
  .cmdbtn { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; min-width: 44px; justify-content: center; padding-inline: .75rem; border-radius: var(--r-xs); background: var(--soot-800); box-shadow: var(--bezel-dark); color: var(--text-2); text-decoration: none; font-size: .9375rem; transition: background-color var(--t-fast), color var(--t-fast); }
  .cmdbtn:hover { background: var(--soot-700); color: var(--text); }
  .cmdbtn__label, .cmdbtn kbd { display: none; }
  .cmdbtn kbd { font-family: var(--f-mono); font-size: .75rem; padding: .1rem .45rem; border-radius: 3px; box-shadow: var(--bezel-dark); color: var(--text-2); }

  .mast__burger { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding-inline: .9rem; border-radius: var(--r-xs); box-shadow: var(--bezel-dark); font-weight: 600; font-size: .9375rem; transition: background-color var(--t-fast); }
  .mast__burger:hover { background: var(--soot-800); }

  @media (min-width: 960px) {
    .util { display: block; }
    .mast__nav { display: flex; }
    .mast__burger { display: none; }
    .cmdbtn { min-width: 15rem; justify-content: flex-start; }
    .cmdbtn__label, .cmdbtn kbd { display: inline; }
    .cmdbtn kbd { margin-inline-start: auto; }
  }
  @media (min-width: 960px) and (max-width: 1099px) { .cmdbtn { min-width: 0; } .cmdbtn__label, .cmdbtn kbd { display: none; } }

  /* ----- bottom sheet (mobile menu) and command palette: native <dialog> */
  dialog.sheet { position: fixed; inset: auto 0 0 0; width: 100%; max-width: none; max-height: 92svh; margin: 0; padding: 0; border: 0; border-radius: var(--r-sheet) var(--r-sheet) 0 0; background: var(--soot-900); color: var(--text); box-shadow: var(--bezel-dark), 0 -30px 60px -30px #000; overflow: auto; overscroll-behavior: contain; }
  dialog.sheet::backdrop { background: rgb(18 12 10 / .7); }
  dialog.sheet[open] { animation: sheet-up .45s var(--ease) both; }
  dialog.sheet[open]::backdrop { animation: fade .3s ease both; }
  .sheet__grab { width: 44px; height: 4px; margin: .6rem auto 0; border-radius: 2px; background: var(--line-dark); }
  .sheet__head { display: flex; align-items: center; justify-content: space-between; padding: .75rem var(--gutter) .5rem; }
  .sheet__head .logo__full { height: 24px; width: auto; }
  .sheet__close { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding-inline: .9rem; border-radius: var(--r-xs); box-shadow: var(--bezel-dark); font-weight: 600; }
  .sheet__body { display: grid; gap: var(--s6); padding: var(--s4) var(--gutter) calc(var(--s6) + env(safe-area-inset-bottom)); }
  .sheet__nav { display: grid; }
  .sheet__nav a { display: flex; align-items: center; gap: 1rem; min-height: 56px; border-bottom: 1px solid var(--line-dark); text-decoration: none; font-family: var(--f-display); font-stretch: 85%; font-weight: 720; font-size: 1.75rem; letter-spacing: -.02em; transition: font-stretch .35s var(--ease), color var(--t-fast); }
  .sheet__nav a span { font-family: var(--f-mono); font-size: .75rem; font-stretch: 100%; font-weight: 500; color: var(--ember-soft); letter-spacing: .1em; }
  .sheet__nav a:hover, .sheet__nav a:focus-visible { font-stretch: 108%; color: var(--apricot); }
  .sheet__nav a[aria-current="page"] { color: var(--ember-soft); }
  .sheet__cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: .5rem; list-style: none; padding: 0; }
  .sheet__cats a { display: flex; align-items: center; gap: .75rem; min-height: 48px; padding: .4rem .9rem; border-radius: var(--r-xs); background: var(--soot-800); box-shadow: var(--bezel-dark); text-decoration: none; font-size: .9375rem; font-weight: 500; transition: background-color var(--t-fast); }
  .sheet__cats a:hover { background: var(--soot-700); }
  .sheet__cats .icon { width: 1.35rem; height: 1.35rem; color: var(--ember-soft); }
  .sheet__meta { display: grid; gap: .5rem; color: var(--text-2); font-size: .9375rem; }
  .sheet__meta a { text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
  .sheet__tel { font-family: var(--f-mono); font-size: 1.25rem; color: var(--text); }
  @keyframes sheet-up { from { transform: translateY(100%); } }

  /* command palette */
  dialog.cmd { width: min(100% - 2rem, 40rem); max-height: min(100% - 2rem, 40rem); margin: 10vh auto auto; padding: 0; border: 0; border-radius: var(--r-md); background: var(--soot-900); color: var(--text); box-shadow: var(--bezel-dark), 0 40px 80px -30px #000; overflow: auto; overscroll-behavior: contain; }
  dialog.cmd::backdrop { background: rgb(18 12 10 / .72); }
  dialog.cmd[open] { animation: dlg-in .3s var(--ease) both; }
  .cmd__form { display: grid; grid-template-columns: 1fr auto; gap: .5rem; padding: var(--s4); border-bottom: 1px solid var(--line-dark); }
  .cmd__form input { min-height: 52px; padding: .5rem 1rem; border-radius: var(--r-xs); background: var(--soot-700); border: 1px solid var(--line-dark); color: var(--text); font-size: 1.0625rem; caret-color: var(--ember); }
  .cmd__form input::placeholder { color: var(--text-2); }
  .cmd__list { list-style: none; padding: var(--s3) var(--s3) var(--s4); display: grid; gap: 2px; }
  .cmd__list h3 { font-family: var(--f-mono); font-size: var(--step--1); letter-spacing: .12em; text-transform: uppercase; font-weight: 500; color: var(--text-2); padding: .5rem .75rem; }
  .cmd__list a { display: flex; align-items: center; gap: .85rem; min-height: 48px; padding: .4rem .75rem; border-radius: var(--r-xs); text-decoration: none; font-weight: 500; }
  .cmd__list a:hover, .cmd__list a:focus-visible { background: var(--soot-700); }
  .cmd__list .icon { width: 1.35rem; height: 1.35rem; color: var(--ember-soft); }
  .cmd__list a::after { content: "\2192"; margin-inline-start: auto; color: var(--text-2); opacity: 0; transition: opacity var(--t-fast); }
  .cmd__list a:hover::after, .cmd__list a:focus-visible::after { opacity: 1; }

  /* ----- cart: header button with charge ring */
  .cart-root { display: contents; }
  .cart-btn { --charge: 0deg; position: relative; display: inline-flex; padding: 2px; min-height: 48px; border-radius: calc(var(--r-sm) + 2px); background: conic-gradient(from 0deg, var(--copper) var(--charge), var(--line-dark) 0); color: var(--text); cursor: pointer; transition: transform var(--t-fast) var(--ease); }
  .cart-btn[data-count]:not([data-count="0"]) { --charge: 360deg; background: var(--grad-copper); }
  .cart-btn.is-charging[data-count] { background: conic-gradient(from 0deg, var(--ember) var(--charge), var(--line-dark) 0); animation: charge .9s var(--ease) both; }
  @keyframes charge { from { --charge: 0deg; } to { --charge: 360deg; } }
  .cart-btn__in { display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; padding-inline: .85rem; border-radius: var(--r-sm); background: var(--soot-900); font-weight: 600; font-size: .9375rem; }
  .cart-btn:hover .cart-btn__in { background: var(--soot-800); }
  .cart-btn .icon { width: 1.3rem; height: 1.3rem; }
  .cart-btn__label { display: none; }
  .cart-btn__n { display: inline-grid; place-items: center; min-width: 1.6rem; height: 1.6rem; padding-inline: .3rem; border-radius: 50%; background: var(--soot-700); font-family: var(--f-mono); font-size: .8125rem; font-variant-numeric: tabular-nums; }
  .cart-btn[data-count]:not([data-count="0"]) .cart-btn__n { background: var(--ember); color: var(--on-ember); }
  .cart-btn__n.is-bump { animation: bump .6s var(--ease); }
  @keyframes bump { 30% { transform: scale(1.35); } 100% { transform: none; } }
  @media (min-width: 600px) { .cart-btn__label { display: inline; } }

  /* cart drawer: right panel on desktop, bottom sheet on mobile */
  .cart-veil { position: fixed; inset: 0; z-index: 90; background: rgb(18 12 10 / .7); opacity: 0; visibility: hidden; transition: opacity var(--t-ui), visibility 0s var(--t-ui); }
  .cart-veil.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
  .cart-drawer { position: fixed; z-index: 100; inset: auto 0 0 0; max-height: 92svh; display: flex; flex-direction: column; background: var(--soot-900); color: var(--text); color-scheme: dark; border-radius: var(--r-sheet) var(--r-sheet) 0 0; box-shadow: var(--bezel-dark), 0 -30px 60px -30px #000; transform: translateY(105%); visibility: hidden; transition: transform .45s var(--ease), visibility 0s .45s; }
  .cart-drawer.is-open { transform: none; visibility: visible; transition-delay: 0s; }
  @media (min-width: 720px) {
    .cart-drawer { inset: 0 0 0 auto; width: min(100%, 28rem); max-height: none; border-radius: var(--r-md) 0 0 var(--r-md); transform: translateX(105%); }
    .cart-drawer.is-open { transform: none; }
  }
  .cart-drawer__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: var(--s5) var(--s5) var(--s4); border-bottom: 1px solid var(--line-dark); }
  .cart-drawer__title { font-size: var(--step-2); margin-top: .4rem; }
  .cart-drawer__close { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r-xs); box-shadow: var(--bezel-dark); flex: none; transition: background-color var(--t-fast); }
  .cart-drawer__close:hover { background: var(--soot-700); }
  .cart-drawer__body { flex: 1; overflow: auto; overscroll-behavior: contain; padding: var(--s4) var(--s5); display: grid; align-content: start; gap: var(--s4); }
  .cart-line { display: grid; grid-template-columns: 84px 1fr; gap: var(--s4); padding-bottom: var(--s4); border-bottom: 1px solid var(--line-dark); }
  .cart-line:last-child { border-bottom: 0; }
  .cart-line img { width: 84px; height: 63px; object-fit: cover; border-radius: var(--r-xs); box-shadow: var(--bezel-dark); background: var(--soot-800); }
  .cart-line__name { font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
  .cart-line__price { color: var(--ember-soft); font-size: .9375rem; margin-top: .15rem; }
  .cart-line__unit { color: var(--text-2); font-size: .8125rem; }
  .cart-line__ctl { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: .6rem; flex-wrap: wrap; }
  .cart-line__rm { min-height: 44px; padding-inline: .5rem; color: var(--text-2); text-decoration: underline; text-underline-offset: .2em; font-size: .9375rem; }
  .cart-line__rm:hover { color: var(--err-dark); }
  .cart-drawer__foot { display: grid; gap: .75rem; padding: var(--s4) var(--s5) calc(var(--s5) + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-dark); background: var(--soot-950); }
  .cart-total { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
  .cart-total span { color: var(--text-2); }
  .cart-total strong { font-size: 1.5rem; font-weight: 600; color: var(--text); }
  /* empty state: unplugged cord */
  .cart-empty { display: grid; justify-items: center; text-align: center; gap: var(--s3); padding-block: var(--s6); }
  .cart-empty p { color: var(--text-2); }
  .cord { width: min(100%, 15rem); height: auto; color: var(--text-2); overflow: visible; }
  .cord__wire { stroke-dasharray: 3 7; animation: cord-flow 3s linear infinite; stroke: var(--copper); }
  .cord__spark { fill: var(--ember); transform-origin: 192px 62px; animation: spark 2.4s steps(1) infinite; }
  @keyframes cord-flow { to { stroke-dashoffset: -20; } }
  @keyframes spark { 0%, 70%, 100% { opacity: 0; } 74%, 82% { opacity: 1; } 78% { opacity: .2; } }

  /* ----- footer */
  .foot { position: relative; background: var(--soot-950); color: var(--text); color-scheme: dark; padding-block: var(--s9) var(--s5); overflow: clip; }
  .foot a { text-decoration: none; }
  .foot__grid { display: grid; gap: var(--s7) var(--s6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
  .foot__id { display: grid; gap: var(--s4); align-content: start; }
  .foot__id .logo__full { height: 32px; width: auto; }
  .foot__legal { font-family: var(--f-mono); font-size: .8125rem; letter-spacing: .22em; text-transform: uppercase; color: var(--text-2); }
  .foot__col h2 { font-family: var(--f-mono); font-stretch: 100%; font-size: var(--step--1); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ember-soft); margin-bottom: var(--s3); line-height: 1.3; }
  .foot__col ul { list-style: none; padding: 0; display: grid; }
  .foot__col li a { display: inline-flex; align-items: center; min-height: 40px; color: var(--text-2); transition: color var(--t-fast); }
  .foot__col li a:hover { color: var(--apricot); }
  .foot__tel { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--f-mono); font-size: 1.25rem; color: var(--text); }
  .foot__tel:hover { color: var(--apricot); }
  .foot address, .foot__mail { color: var(--text-2); font-size: .9375rem; line-height: 1.55; }
  .foot__mail { display: inline-flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; }
  .foot__mail:hover { color: var(--apricot); }
  .foot__word { margin-block: var(--s8) var(--s5); font-family: var(--f-display); font-stretch: 78%; font-weight: 800; font-size: clamp(3.2rem, 1rem + 15.5vw, 17rem); line-height: .8; letter-spacing: -.035em; text-transform: uppercase; white-space: nowrap; background: var(--grad-copper); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .9; user-select: none; }
  .foot__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; padding-top: var(--s4); border-top: 1px solid var(--line-dark); color: var(--text-2); font-size: .875rem; }
  .foot__bar a { color: var(--text); display: inline-flex; min-height: 40px; align-items: center; }

  /* ----- 404: breaker switch */
  .lost { position: relative; min-height: calc(100svh - var(--head-h)); display: grid; align-items: center; padding-block: var(--s8); background: var(--grad-thermal); color: var(--text); color-scheme: dark; overflow: clip; }
  .lost__in { display: grid; gap: var(--s6); }
  .lost__no { font-family: var(--f-display); font-stretch: 78%; font-weight: 800; font-size: var(--step-5); line-height: .85; letter-spacing: -.03em; display: flex; align-items: center; gap: .04em; color: var(--text); }
  .lost__no .off { color: transparent; -webkit-text-stroke: 2px var(--copper); }
  .lost h1 { font-size: var(--step-3); }
  .lost p { color: var(--text-2); }
  .breaker { display: inline-flex; align-items: center; gap: var(--s4); width: fit-content; min-height: 72px; padding: .5rem 1.25rem .5rem .5rem; border-radius: var(--r-md); background: var(--soot-800); box-shadow: var(--bezel-dark), var(--shadow-1); text-decoration: none; color: var(--text); }
  .breaker__slot { position: relative; width: 56px; height: 104px; border-radius: var(--r-xs); background: var(--soot-950); box-shadow: inset 0 2px 8px #000, var(--bezel-dark); flex: none; }
  .breaker__lever { position: absolute; inset: 6px 6px auto; height: 48px; border-radius: 3px; background: linear-gradient(180deg, var(--soot-700), var(--soot-800)); box-shadow: 0 1px 0 rgb(255 255 255 / .12) inset, 0 6px 10px -4px #000; transition: transform .45s var(--ease), background .3s; }
  .breaker__lever::after { content: ""; position: absolute; inset: 50% 30% auto; height: 2px; background: var(--text-2); opacity: .5; }
  .breaker__txt { display: grid; gap: .15rem; }
  .breaker__txt strong { font-family: var(--f-display); font-stretch: 85%; font-weight: 720; font-size: 1.5rem; letter-spacing: -.01em; }
  .breaker__txt span { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); display: inline-flex; align-items: center; gap: .5rem; }
  .breaker__txt span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--text-2); transition: background .3s, box-shadow .3s; }
  .breaker:hover .breaker__lever, .breaker:focus-visible .breaker__lever { transform: translateY(40px); background: var(--grad-ember-btn); }
  .breaker:hover .breaker__txt span::before, .breaker:focus-visible .breaker__txt span::before { background: var(--ember); box-shadow: 0 0 10px 2px rgb(255 90 54 / .7); }
  .lost__links { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; }
  .lost__links a { display: inline-flex; align-items: center; gap: .6rem; min-height: 48px; padding-inline: 1rem; border-radius: var(--r-xs); background: var(--soot-800); box-shadow: var(--bezel-dark); text-decoration: none; font-weight: 500; transition: background-color var(--t-fast); }
  .lost__links a:hover { background: var(--soot-700); }
  .lost__links .icon { color: var(--ember-soft); width: 1.3rem; height: 1.3rem; }
  .lost__search { display: grid; grid-template-columns: 1fr auto; gap: .5rem; max-width: 30rem; }
  .lost__search input { min-height: 48px; padding: .5rem 1rem; border-radius: var(--r-xs); background: var(--soot-700); border: 1px solid var(--line-dark); color: var(--text); }
  .lost__search input::placeholder { color: var(--text-2); }
  @media (min-width: 900px) { .lost__in { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: var(--s8); } .lost__side { display: grid; gap: var(--s5); } }

  /* header on narrow phones: wordmark gets the room (search lives in the menu sheet, Menu is icon-only) */
  .sheet__search { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem; }
  .sheet__search input { min-height: 48px; padding: .5rem 1rem; border-radius: var(--r-xs); background: var(--soot-700); border: 1px solid var(--line-dark); color: var(--text); }
  .sheet__search input::placeholder { color: var(--text-2); }
  .sheet__nav a, .sheet__meta a { color: var(--text); }
  .sheet__meta a { color: var(--text-2); } .sheet__meta .sheet__tel { color: var(--text); }
  .sheet__nav a[aria-current="page"] { color: var(--ember-soft); }
  @media (max-width: 479px) {
    .cmdbtn { display: none; }
    .mast__burger { padding-inline: 0; width: 44px; justify-content: center; }
    .mast__burger span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .mast__brand .logo__full { height: 30px; }
    .mast__in { gap: .5rem; }
  }
  @media (min-width: 480px) { .sheet__search { display: none; } }
}

/* ---------------------------------------------------------------- utilities */
@layer utilities {
  .stack > * + * { margin-top: var(--s4); }
  .center { text-align: center; }
  .mono { font-family: var(--f-mono); }
  .nowrap { white-space: nowrap; }
  .hide-sm { display: none; }
  @media (min-width: 720px) { .hide-sm { display: revert; } }
}

/* ---------------------------------------------------------------- accessibility modes */
@media (prefers-contrast: more) { :root { --line-dark: rgb(245 238 231 / .4); --line-light: rgb(26 18 16 / .45); } }
@media (forced-colors: active) { .btn { border: 1px solid ButtonText; } .cart-btn { border: 1px solid ButtonText; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .js-ready [data-reveal] { opacity: 1; transform: none; clip-path: none; }
  .cord__wire { animation: none; }
  .sheet__nav a:hover, .sheet__nav a:focus-visible { font-stretch: 85%; }
}
