/* ==========================================================================
   Kiyoshi Labs, site styles
   Brand palette (from logo kit README):
     Midnight #0E1A2B · Silver #D3D8DF · Ice #9FC3E0 · Steel #3E6E99 · Mist #F3F5F8
   ========================================================================== */

:root {
  /* Brand primitives */
  --midnight: #0E1A2B;
  --midnight-2: #13233A;   /* raised surface on midnight */
  --midnight-3: #1B2F4A;   /* borders / hover on midnight */
  --silver: #D3D8DF;
  --ice: #9FC3E0;
  --ice-strong: #B9D5EC;
  --steel: #3E6E99;
  --steel-dark: #315A80;
  --mist: #F3F5F8;
  --white: #FFFFFF;

  /* Semantic: light surfaces */
  --bg: var(--mist);
  --surface: var(--white);
  --text: var(--midnight);
  --text-muted: #4A5A6E;
  --border: #DCE2EA;

  /* Semantic: dark surfaces */
  --dark-bg: var(--midnight);
  --dark-surface: var(--midnight-2);
  --dark-text: #F3F5F8;
  --dark-muted: #A9B6C6;
  --dark-border: rgba(211, 216, 223, 0.14);

  --danger: #B42318;
  --danger-dark: #F2A49B;
  --success: #2F7D5B;

  /* Type */
  --font-sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --font-kanji: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;

  /* Spacing (8pt) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 2px rgba(14, 26, 43, 0.06);
  --shadow: 0 1px 2px rgba(14, 26, 43, 0.05), 0 8px 24px rgba(14, 26, 43, 0.06);
  --shadow-lg: 0 24px 64px rgba(6, 12, 22, 0.35);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 150ms;
  --t-base: 240ms;

  --header-h: 72px;
  --z-header: 40;
  --z-toast: 90;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3 {
  margin: 0;
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
p { margin: 0; }

a { color: var(--steel); text-underline-offset: 3px; }
a:hover { color: var(--steel-dark); }
.dark a { color: var(--ice); }
.dark a:hover { color: var(--ice-strong); }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; }

:focus-visible {
  outline: 2px solid var(--steel);
  outline-offset: 3px;
  border-radius: 4px;
}
.dark :focus-visible,
.site-header :focus-visible,
.site-footer :focus-visible,
.drawer :focus-visible { outline-color: var(--ice); }

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 16px;
}
@media (min-width: 768px) { .container { padding-inline: 32px; } }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.mono { font-family: var(--font-mono); letter-spacing: 0.02em; }

.icon {
  width: 20px; height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-lg { width: 28px; height: 28px; stroke-width: 1.5; }

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ice);
  color: var(--midnight);
  border-radius: var(--radius-sm);
  font-weight: 500;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Surfaces ---------- */
.dark {
  position: relative;
  background: var(--dark-bg);
  color: var(--dark-text);
  isolation: isolate;
}
.light { background: var(--surface); }

.hex-field {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(60% 70% at 78% 40%, rgba(159, 195, 224, 0.14), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath d='M28 66L0 50V16L28 0l28 16v34L28 66zm0 0v34' fill='none' stroke='%23D3D8DF' stroke-opacity='0.07' stroke-width='1'/%3E%3C/svg%3E");
  background-size: auto, 56px 100px;
  -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent);
          mask-image: linear-gradient(to bottom, #000 40%, transparent);
}
.hex-field.faint {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath d='M28 66L0 50V16L28 0l28 16v34L28 66zm0 0v34' fill='none' stroke='%23D3D8DF' stroke-opacity='0.05' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 56px 100px;
  -webkit-mask-image: radial-gradient(70% 80% at 90% 0%, #000, transparent 70%);
          mask-image: radial-gradient(70% 80% at 90% 0%, #000, transparent 70%);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.005em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--t-fast) ease, color var(--t-fast) ease,
              border-color var(--t-fast) ease, transform var(--t-fast) ease;
}
.btn:active { transform: scale(0.98); }
.btn .icon { width: 18px; height: 18px; transition: transform var(--t-base) var(--ease-out); }
.btn-block { width: 100%; }

.btn-primary { background: var(--midnight); color: var(--mist); }
.btn-primary:hover { background: var(--midnight-3); color: var(--mist); }
.dark .btn-primary, .drawer .btn-primary { background: var(--ice); color: var(--midnight); }
.dark .btn-primary:hover, .drawer .btn-primary:hover { background: var(--ice-strong); color: var(--midnight); }
.btn-primary:hover .icon { transform: translateX(3px); }

.btn-secondary { background: transparent; color: var(--midnight); border-color: #C5CFDB; }
.btn-secondary:hover { border-color: var(--steel); color: var(--steel-dark); }
.drawer .btn-secondary { color: var(--dark-text); border-color: var(--dark-border); }
.drawer .btn-secondary:hover { border-color: var(--ice); color: var(--ice); }

.btn-ghost { background: transparent; color: var(--dark-text); border-color: rgba(211, 216, 223, 0.28); }
.btn-ghost:hover { border-color: var(--ice); color: var(--ice); }

.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; transform: none; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: inherit;
  transition: background-color var(--t-fast) ease, border-color var(--t-fast) ease;
}
.icon-btn:hover { background: rgba(211, 216, 223, 0.08); border-color: var(--dark-border); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  height: var(--header-h);
  background: rgba(14, 26, 43, 0.86);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
          backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--dark-border);
  color: var(--dark-text);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--s-5);
}
.brand { display: block; flex: none; padding: 6px 0; }
.brand img { width: auto; height: 34px; }

.site-nav {
  display: none;
  margin-left: auto;
  gap: 4px;
}
.site-nav a {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--dark-muted);
  font-size: 15px;
  text-decoration: none;
  transition: color var(--t-fast) ease, background-color var(--t-fast) ease;
}
.site-nav a:hover { color: var(--dark-text); background: rgba(211, 216, 223, 0.06); }
.site-nav a[aria-current="true"] { color: var(--ice); }

.header-actions { display: flex; align-items: center; gap: var(--s-2); margin-left: auto; }

.btn-order {
  position: relative;
  min-height: 44px;
  padding: 8px 16px;
  background: transparent;
  color: var(--dark-text);
  border-color: rgba(211, 216, 223, 0.28);
}
.btn-order:hover { border-color: var(--ice); color: var(--ice); }
.badge {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--ice);
  color: var(--midnight);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
}
.badge[hidden] { display: none; }
.badge.bump { animation: bump 320ms var(--ease-out); }
@keyframes bump { 40% { transform: scale(1.25); } }

@media (max-width: 1023px) {
  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 8px 16px 24px;
    background: var(--midnight);
    border-bottom: 1px solid var(--dark-border);
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--t-base) var(--ease-out), transform var(--t-base) var(--ease-out), visibility 0s linear var(--t-base);
  }
  .site-nav.open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity var(--t-base) var(--ease-out), transform var(--t-base) var(--ease-out);
  }
  .site-nav a { padding: 14px 8px; font-size: 17px; border-bottom: 1px solid var(--dark-border); border-radius: 0; }
}
@media (min-width: 1024px) {
  .site-nav { display: flex; }
  .nav-toggle { display: none; }
  .header-actions { margin-left: var(--s-3); }
}
@media (max-width: 420px) {
  .brand img { height: 28px; }
  .btn-order-label { display: none; }
  .btn-order { padding: 8px 12px; }
}

/* ---------- Eyebrow / headings ---------- */
.eyebrow {
  margin-bottom: var(--s-4);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ice);
}
.eyebrow-steel { color: var(--steel); }

.section { padding-block: var(--s-9); }
@media (max-width: 767px) { .section { padding-block: var(--s-8); } }

.section-head { max-width: 640px; margin-bottom: var(--s-7); }
.section-head h2 { font-size: clamp(32px, 4.5vw, 48px); }
.section-sub { margin-top: var(--s-4); color: var(--text-muted); font-size: 18px; }
.dark .section-sub { color: var(--dark-muted); }

/* ---------- Hero ---------- */
.hero {
  overflow: hidden;
  padding-block: clamp(64px, 10vw, 128px) clamp(64px, 9vw, 112px);
}
.hero-grid {
  display: grid;
  gap: var(--s-8);
  align-items: center;
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; }
}
.hero h1 {
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1;
}
.hero h1 .accent { color: var(--ice); font-weight: 400; }
.lede {
  max-width: 34em;
  margin-top: var(--s-5);
  font-size: clamp(18px, 1.6vw, 20px);
  color: var(--dark-muted);
}
.lede em { color: var(--dark-text); font-style: normal; font-weight: 500; }
.lede strong { color: var(--ice); font-weight: 500; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }

.hero-visual {
  position: relative;
  justify-self: center;
  width: min(100%, 420px);
  aspect-ratio: 1;
}
.hero-mark {
  width: 78%;
  height: 78%;
  opacity: 0.95;
}
.spec-card {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(280px, 78%);
  padding: var(--s-4);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  background: rgba(19, 35, 58, 0.82);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg);
  font-size: 14px;
}
.spec-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: var(--s-3);
  margin-bottom: var(--s-2);
  border-bottom: 1px solid var(--dark-border);
  font-size: 12px;
  color: var(--dark-muted);
}
.spec-status { display: inline-flex; align-items: center; gap: 6px; color: var(--ice); font-weight: 500; }
.spec-status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ice); box-shadow: 0 0 0 4px rgba(159, 195, 224, 0.18); }
.spec-list { list-style: none; margin: 0; padding: 0; }
.spec-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  color: var(--silver);
}
.spec-list li span { flex: 1; }
.spec-list .icon { width: 16px; height: 16px; color: var(--dark-muted); }
.spec-list .icon.ok { color: var(--ice); stroke-width: 2.25; }

@media (max-width: 959px) {
  .hero-visual { width: min(100%, 340px); }
}

/* ---------- RUO strip ---------- */
.ruo-strip {
  background: var(--midnight-2);
  color: var(--dark-muted);
  border-block: 1px solid var(--dark-border);
  font-size: 14px;
}
.ruo-strip .container { display: flex; align-items: flex-start; gap: var(--s-3); padding-block: var(--s-4); }
.ruo-strip .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--ice); }
.ruo-strip strong { color: var(--dark-text); font-weight: 500; }

/* ---------- Story ---------- */
.story-grid { display: grid; gap: var(--s-7); align-items: start; }
@media (min-width: 960px) {
  .story-grid { grid-template-columns: 0.8fr 1.2fr; gap: var(--s-9); }
}
.kanji-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-4);
}
@media (min-width: 960px) { .kanji-col { position: sticky; top: calc(var(--header-h) + 48px); } }
.kanji {
  font-family: var(--font-kanji);
  font-weight: 300;
  font-size: clamp(140px, 22vw, 280px);
  line-height: 0.9;
  color: var(--midnight);
}
.kanji-label { font-size: 13px; color: var(--text-muted); }
.story-copy h2 { font-size: clamp(32px, 4.5vw, 48px); margin-bottom: var(--s-5); }
.story-copy > p { max-width: 36em; color: var(--text-muted); font-size: 18px; }
.story-copy > p + p { margin-top: var(--s-4); }
.story-copy em { font-style: normal; color: var(--text); font-weight: 500; }

.chapters { list-style: none; margin: var(--s-7) 0 0; padding: 0; border-top: 1px solid var(--border); }
.chapters li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: var(--s-4);
  padding-block: var(--s-5);
  border-bottom: 1px solid var(--border);
}
.chapter-num { font-size: 14px; color: var(--steel); padding-top: 3px; }
.chapters h3 { font-size: 20px; margin-bottom: 4px; }
.chapters p { color: var(--text-muted); font-size: 16px; }

/* ---------- Menu ---------- */
.menu-controls {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  margin-bottom: var(--s-4);
}
@media (min-width: 900px) {
  .menu-controls { flex-direction: row; align-items: center; justify-content: space-between; }
}
.search {
  position: relative;
  display: block;
  width: 100%;
  max-width: 360px;
}
@media (max-width: 899px) { .search { max-width: none; } }
.search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
.search input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px 12px 44px;
  border: 1px solid #C5CFDB;
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 16px;
  transition: border-color var(--t-fast) ease, box-shadow var(--t-fast) ease;
}
.search input:focus { outline: none; border-color: var(--steel); box-shadow: 0 0 0 3px rgba(62, 110, 153, 0.18); }

.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip {
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid #C5CFDB;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--t-fast) ease;
}
.chip:hover { border-color: var(--steel); color: var(--steel-dark); }
.chip[aria-pressed="true"] { background: var(--midnight); border-color: var(--midnight); color: var(--mist); }

.results-count { margin-bottom: var(--s-5); font-size: 14px; color: var(--text-muted); font-family: var(--font-mono); }

.product-grid {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
}
.product-card {
  display: flex;
  flex-direction: column;
  padding: var(--s-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--t-base) ease, box-shadow var(--t-base) ease, transform var(--t-base) var(--ease-out);
}
.product-card:hover { border-color: #C5D3E2; box-shadow: var(--shadow); transform: translateY(-2px); }
.product-top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-3); }
.product-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
}
.product-vial {
  flex: none;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: var(--mist);
  color: var(--steel);
}
.product-vial .icon { width: 18px; height: 18px; }
.product-card h3 { font-size: 22px; margin-top: 6px; }
.product-desc { margin-top: var(--s-2); font-size: 15px; color: var(--text-muted); line-height: 1.55; }
.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: var(--s-4);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}
.product-meta span { display: inline-flex; align-items: center; gap: 6px; }
.product-meta .icon { width: 14px; height: 14px; color: var(--steel); }

.product-buy { margin-top: auto; padding-top: var(--s-5); }
.size-row { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-3); }
.size-row .select-wrap { flex: 1; }
.size-single { flex: 1; display: flex; align-items: center; min-height: 44px; font-size: 14px; color: var(--text-muted); }

.select-wrap { position: relative; }
.select-wrap select {
  width: 100%;
  min-height: 44px;
  padding: 10px 40px 10px 12px;
  border: 1px solid #C5CFDB;
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 15px;
  -webkit-appearance: none;
          appearance: none;
  cursor: pointer;
}
.select-wrap select:focus { outline: none; border-color: var(--steel); box-shadow: 0 0 0 3px rgba(62, 110, 153, 0.18); }
.select-wrap .icon { position: absolute; right: 12px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); pointer-events: none; color: var(--text-muted); }

.add-btn { width: 100%; }
.add-btn.added { background: var(--steel); }

.empty-state {
  display: flex; flex-direction: column; align-items: center; gap: var(--s-3);
  padding: var(--s-8) var(--s-4);
  border: 1px dashed #C5CFDB;
  border-radius: var(--radius-lg);
  text-align: center;
  color: var(--text-muted);
}
.empty-state .icon { width: 28px; height: 28px; }

.menu-note {
  display: flex; align-items: flex-start; gap: var(--s-3);
  margin-top: var(--s-7);
  padding: var(--s-4) var(--s-5);
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 15px;
  color: var(--text-muted);
}
.menu-note .icon { color: var(--steel); margin-top: 2px; }

/* ---------- Testing ---------- */
.testing { overflow: hidden; }
.service-grid, .process { display: grid; grid-template-columns: 1fr; }
@media (min-width: 600px) { .service-grid, .process { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .service-grid, .process { grid-template-columns: repeat(4, 1fr); } }
.service-grid { gap: var(--s-4); }
.service-card {
  padding: var(--s-6) var(--s-5);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(27, 47, 74, 0.6), rgba(19, 35, 58, 0.4));
  transition: border-color var(--t-base) ease;
}
.service-card:hover { border-color: rgba(159, 195, 224, 0.4); }
.service-card .icon { color: var(--ice); margin-bottom: var(--s-5); }
.service-card h3 { font-size: 20px; margin-bottom: var(--s-2); }
.service-card p { color: var(--dark-muted); font-size: 15px; }
.testing-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  margin-top: var(--s-7);
  padding-top: var(--s-6);
  border-top: 1px solid var(--dark-border);
  color: var(--dark-muted);
}

/* ---------- Quality ---------- */
.process {
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--s-7) var(--s-6);
  counter-reset: step;
}
.process li { position: relative; padding-top: var(--s-6); border-top: 2px solid var(--border); counter-increment: step; }
.process li::before {
  content: "0" counter(step);
  position: absolute;
  top: -12px;
  right: 0;
  padding-left: 8px;
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--steel);
}
.process-icon {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  margin-bottom: var(--s-4);
  border-radius: 12px;
  background: var(--midnight);
  color: var(--ice);
}
.process h3 { font-size: 20px; margin-bottom: var(--s-2); }
.process p { color: var(--text-muted); font-size: 16px; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; gap: var(--s-6); }
@media (min-width: 960px) { .faq-grid { grid-template-columns: 0.8fr 1.2fr; gap: var(--s-9); } }
.accordion { border-top: 1px solid var(--border); }
.accordion details { border-bottom: 1px solid var(--border); }
.accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: 64px;
  padding-block: var(--s-4);
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary .icon { color: var(--steel); transition: transform var(--t-base) var(--ease-out); }
.accordion details[open] summary .icon { transform: rotate(180deg); }
.accordion summary:hover { color: var(--steel-dark); }
.accordion details p { padding-bottom: var(--s-5); max-width: 40em; color: var(--text-muted); }

/* ---------- Forms ---------- */
.form { display: grid; gap: var(--s-4); }
.field { display: grid; gap: 6px; }
.field label { font-size: 15px; font-weight: 500; }
.req { color: var(--ice); }
.optional { font-weight: 400; color: var(--dark-muted); font-size: 14px; }
.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form textarea,
.form select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(211, 216, 223, 0.22);
  border-radius: var(--radius);
  background: rgba(14, 26, 43, 0.6);
  color: var(--dark-text);
  font-size: 16px;
  transition: border-color var(--t-fast) ease, box-shadow var(--t-fast) ease;
}
.form textarea { resize: vertical; min-height: 96px; }
.form select { padding-right: 40px; }
.form ::placeholder { color: #7F8DA0; }
.form input:focus, .form textarea:focus, .form select:focus {
  outline: none;
  border-color: var(--ice);
  box-shadow: 0 0 0 3px rgba(159, 195, 224, 0.2);
}
.form .select-wrap .icon { color: var(--dark-muted); }
.form [aria-invalid="true"] { border-color: var(--danger-dark) !important; }
.field-error { font-size: 14px; color: var(--danger-dark); }

.field-check { grid-template-columns: 24px 1fr; align-items: start; column-gap: var(--s-3); }
.field-check input {
  width: 22px; height: 22px;
  margin: 2px 0 0;
  accent-color: var(--ice);
  cursor: pointer;
}
.field-check label { font-weight: 400; font-size: 14px; color: var(--dark-muted); line-height: 1.5; cursor: pointer; }
.field-check label strong { color: var(--dark-text); font-weight: 500; }
.field-check .field-error { grid-column: 2; }

.error-summary {
  padding: var(--s-4);
  border: 1px solid var(--danger-dark);
  border-radius: var(--radius);
  background: rgba(180, 35, 24, 0.12);
  font-size: 14px;
  color: var(--dark-text);
}
.error-summary ul { margin: 6px 0 0; padding-left: 18px; }
.error-summary a { color: var(--danger-dark); }

.form-status { font-size: 14px; color: var(--dark-muted); min-height: 1.4em; }
.form-status.error { color: var(--danger-dark); }
.form-status.success { color: var(--ice); }

.btn.loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.loading::after {
  content: "";
  position: absolute;
  width: 18px; height: 18px;
  border: 2px solid var(--midnight);
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Contact ---------- */
.contact { overflow: hidden; }
.contact-grid { display: grid; gap: var(--s-7); align-items: start; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: var(--s-9); } }
.contact-copy h2 { font-size: clamp(32px, 4.5vw, 48px); }
.contact-list { list-style: none; margin: var(--s-6) 0 0; padding: 0; display: grid; gap: var(--s-3); }
.contact-list li { display: flex; align-items: center; gap: var(--s-3); color: var(--dark-muted); }
.contact-list .icon { color: var(--ice); }
.card-form {
  padding: var(--s-6);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  background: rgba(19, 35, 58, 0.7);
}
@media (max-width: 480px) { .card-form { padding: var(--s-5); } }

/* ---------- Footer ---------- */
.site-footer {
  background: #0A1421;
  color: var(--dark-muted);
  padding-block: var(--s-8) var(--s-6);
  font-size: 15px;
}
.footer-grid { display: grid; gap: var(--s-6); padding-bottom: var(--s-6); border-bottom: 1px solid var(--dark-border); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1fr auto; align-items: start; } }
.footer-brand img { width: auto; height: 30px; margin-bottom: var(--s-4); }
.footer-brand p { max-width: 28em; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-nav a { color: var(--dark-muted); text-decoration: none; padding: 6px 0; }
.footer-nav a:hover { color: var(--ice); }
.footer-legal { padding-top: var(--s-5); font-size: 13px; line-height: 1.6; }
.footer-legal strong { color: var(--silver); font-weight: 500; }
.footer-legal p + p { margin-top: var(--s-3); }

/* ---------- Order drawer ---------- */
.drawer {
  margin: 0 0 0 auto;
  padding: 0;
  width: min(440px, 100vw);
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  border: 0;
  background: var(--midnight);
  color: var(--dark-text);
  box-shadow: var(--shadow-lg);
}
.drawer::backdrop { background: rgba(6, 12, 22, 0.6); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.drawer[open] { animation: drawer-in 280ms var(--ease-out); }
.drawer[open]::backdrop { animation: fade-in 280ms ease; }
@keyframes drawer-in { from { transform: translateX(32px); opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } }

.drawer-panel { display: flex; flex-direction: column; height: 100%; }
.drawer-head {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding: 14px var(--s-4) 14px var(--s-5);
  border-bottom: 1px solid var(--dark-border);
}
.drawer-head h2 { flex: 1; font-size: 20px; }
.drawer-step { flex: 1; display: flex; flex-direction: column; min-height: 0; overflow-y: auto; }
.drawer-step[hidden] { display: none; }
.drawer-step[data-step="details"] { padding: var(--s-5); }

.cart-list { list-style: none; margin: 0; padding: var(--s-2) var(--s-5); flex: 1; }
.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s-2) var(--s-4);
  padding-block: var(--s-4);
  border-bottom: 1px solid var(--dark-border);
}
.cart-item h3 { font-size: 17px; }
.cart-item .size { font-family: var(--font-mono); font-size: 13px; color: var(--dark-muted); }
.qty { justify-self: start; display: inline-flex; align-items: center; border: 1px solid var(--dark-border); border-radius: var(--radius); }
.qty button { width: 40px; height: 40px; display: grid; place-items: center; border: 0; background: transparent; color: var(--dark-text); }
.qty button:hover { color: var(--ice); }
.qty button .icon { width: 16px; height: 16px; }
.qty output { min-width: 28px; text-align: center; font-family: var(--font-mono); font-size: 14px; }
.remove-btn {
  justify-self: end;
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--dark-muted);
  font-size: 13px;
}
.remove-btn:hover { color: var(--danger-dark); }
.remove-btn .icon { width: 15px; height: 15px; }

.cart-empty {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s-4);
  padding: var(--s-7) var(--s-5);
  text-align: center;
  color: var(--dark-muted);
}
.cart-empty[hidden] { display: none; }
.drawer-foot { padding: var(--s-5); border-top: 1px solid var(--dark-border); background: var(--midnight-2); }
.drawer-foot[hidden] { display: none; }
.fine { margin-block: 0 var(--s-4); font-size: 13px; color: var(--dark-muted); }

.drawer-done { align-items: center; justify-content: center; gap: var(--s-4); padding: var(--s-7) var(--s-5); text-align: center; }
.drawer-done h3 { font-size: 24px; }
.drawer-done p { color: var(--dark-muted); max-width: 26em; }
.done-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: rgba(159, 195, 224, 0.14); color: var(--ice); }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: var(--z-toast);
  padding: 12px 18px;
  border-radius: var(--radius);
  background: var(--midnight);
  color: var(--mist);
  border: 1px solid var(--dark-border);
  box-shadow: var(--shadow-lg);
  font-size: 15px;
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity var(--t-base) ease, transform var(--t-base) var(--ease-out);
  max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Reveal motion ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }

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