/* ============================================================
   loop / Goods for the Everyday — style.css
   ============================================================ */
:root {
  --paper: #F7F0F2;
  --panel: #FFFAFC;
  --panel2: #EDE1E7;

  --ink: #302033;
  --muted: #806D80;
  --rule: #DCCBD7;

  --blue: #A04475;
  --blue-hover: #81315D;

  --acid: #E8C77A;
  --rail: #552C50;

  --toast-bg: #302033;

  --bs-body-font-family: 'Space Grotesk', sans-serif;
  --bs-body-color: #302033;
  --bs-body-bg: #F7F0F2;
  --bs-border-color: #DCCBD7;
}

[data-theme="dark"] {
  color-scheme: dark;

  --paper: #19131D;
  --panel: #251B2B;
  --panel2: #342638;

  --ink: #F7EDF5;
  --muted: #BBA9BB;
  --rule: #49394C;

  --blue: #D982AD;
  --blue-hover: #EBA6C6;

  --acid: #E8C77A;
  --rail: #38223C;

  --toast-bg: #F7EDF5;

  --bs-body-color: #F7EDF5;
  --bs-body-bg: #19131D;
  --bs-border-color: #49394C;
  --bs-secondary-bg: #342638;
  --bs-tertiary-bg: #251B2B;
  --bs-emphasis-color: #FFFFFF;
}

* { box-sizing: border-box }

html { scroll-behavior: smooth; scroll-padding-top: 122px }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  line-height: 1.55;
  overflow-x: hidden;
  transition: background .35s, color .35s
}

button, input, select, textarea { font: inherit }
button { cursor: pointer }
button:disabled { cursor: not-allowed }
a { text-decoration: none; color: inherit }
img { display: block; max-width: 100% }
::selection { background: var(--acid); color: #172139 }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px }
[hidden] { display: none !important }
.collapse { visibility: visible }

.mono { font-family: 'IBM Plex Mono', monospace }
.micro { font: 600 10px/1.5 'IBM Plex Mono', monospace; text-transform: uppercase; letter-spacing: 1.25px }

.skip-link { position: fixed; z-index: 3000; top: -70px; left: 16px; padding: 12px 20px; background: var(--acid); color: #172139 }
.skip-link:focus { top: 0 }

.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 }

.site-shell {
  min-height: 100vh
}
.site-shell.has-rail {
  --rail-width: clamp(370px, 38vw, 650px)
}
.content-pane {
  width: 100%;
  min-width: 0;
  position: relative
}
.site-shell.has-rail .content-pane {
  width: calc(100% - var(--rail-width))
}
.content-in { padding-left: clamp(28px, 4vw, 72px); padding-right: clamp(28px, 4vw, 72px) }

/* ---------------- header ---------------- */
.site-header { position: sticky; top: 0; z-index: 1020; background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--rule) }
.header-top { min-height: 73px; display: flex; align-items: center; justify-content: space-between; gap: 16px }
.brand { font-size: 29px; font-weight: 700; letter-spacing: -2.4px; line-height: 1; white-space: nowrap }
.brand:hover { color: var(--blue) }
.brand span { color: var(--blue) }
.brand-loop { width: 24px; height: 24px; border: 7px solid var(--blue); display: inline-block; border-radius: 50%; vertical-align: -3px; margin-right: 3px; transition: transform .55s }
.brand:hover .brand-loop { transform: rotate(180deg) }
.head-actions { display: flex; align-items: center; gap: 4px }
.head-btn, .mobile-toggle { position: relative; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid transparent; background: transparent; color: var(--ink); font-size: 17px; transition: background .2s, color .2s }
.head-btn:hover, .mobile-toggle:hover { background: var(--ink); color: var(--paper) }
.head-btn .count { position: absolute; right: -3px; top: -3px; display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 3px; border-radius: 50%; background: var(--acid); color: #172139; font: 700 9px 'IBM Plex Mono', monospace; border: 2px solid var(--paper) }
.mobile-toggle { display: none }
.nav-row { border-top: 1px solid var(--rule) }
.nav-links { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 20px; min-height: 43px }
.nav-links a { position: relative; display: inline-block; padding: 12px 0; color: var(--muted); font: 600 10px 'IBM Plex Mono', monospace; text-transform: uppercase; letter-spacing: .1px; white-space: nowrap }
.nav-links a:hover, .nav-links a.active { color: var(--blue) }
.nav-links a:after { content: ''; position: absolute; bottom: 8px; left: 0; width: 100%; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .25s }
.nav-links a:hover:after, .nav-links a.active:after { transform: scaleX(1) }
.theme-icon { transition: transform .35s }
.head-btn:hover .theme-icon { transform: rotate(-30deg) }
.theme-icon.sun { display: none }
[data-theme="dark"] .theme-icon.sun { display: inline }
[data-theme="dark"] .theme-icon.moon { display: none }

@media(min-width:981px) { .nav-row.collapse { display: block !important } }

/* ---------------- hero (index) ---------------- */
.hero { position: relative; min-height: calc(100svh - 116px); display: flex; flex-direction: column; justify-content: center; padding-top: 37px; padding-bottom: 32px }
.hero-topline { display: flex; align-items: center; gap: 11px; margin-bottom: 21px; color: var(--blue) }
.hero-topline .bar { width: 34px; height: 2px; background: currentColor }
.hero-brand { font-size: clamp(76px, 9.4vw, 144px); font-weight: 700; line-height: .73; letter-spacing: -.115em; margin: 0 0 27px; color: var(--blue); white-space: nowrap }
.hero-brand .period { color: var(--ink) }
.hero h1 { font-size: clamp(32px, 3.3vw, 50px); line-height: 1.06; letter-spacing: -.07em; font-weight: 600; max-width: 780px; margin: 0 0 16px; text-wrap: balance }
.hero h1 em { font-style: normal; color: var(--blue) }
.hero-sub { font-size: 13px; line-height: 1.7; color: var(--muted); max-width: 650px; margin: 0 0 19px }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px }
.cta { min-height: 47px; display: inline-flex; align-items: center; justify-content: center; gap: 16px; padding: 11px 17px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); font: 600 11px 'IBM Plex Mono', monospace; text-transform: uppercase; transition: transform .25s, background .25s, color .25s }
.cta:hover { transform: translateY(-3px); background: var(--blue); border-color: var(--blue); color: #fff }
.cta.secondary { background: transparent; color: var(--ink) }
.cta.secondary:hover { background: var(--ink); color: var(--paper) }
.cta .bi { font-size: 15px }
.hero .mobile-rail-mount { display: none }

.active-feature { margin-top: 29px; padding: 12px 0 0; border-top: 2px solid var(--blue); min-height: 132px; position: relative }
.feature-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--blue); margin-bottom: 10px }
.feature-heading .current-counter { color: var(--muted) }
.feature-body { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 14px; align-items: start }
.feature-image { width: 86px; height: 91px; object-fit: cover; background: var(--panel2); border: 1px solid var(--rule) }
.feature-image.cutout { object-fit: contain; padding: 10px }
.feature-copy { min-width: 0 }
.feature-cat { color: var(--blue); display: block; margin: 0 0 4px }
.feature-name { font-size: clamp(18px, 1.9vw, 27px); line-height: 1.1; letter-spacing: -.04em; font-weight: 600; margin: 0 0 7px }
.feature-desc { font-size: 11px; line-height: 1.55; color: var(--muted); margin: 0 0 10px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden }
.feature-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap }
.feature-price { font-size: 20px; font-weight: 700; letter-spacing: -.05em; margin-right: auto }
.feature-action { min-height: 30px; padding: 5px 10px; border: 1px solid var(--rule); background: transparent; color: var(--ink); font: 600 10px 'IBM Plex Mono', monospace; display: inline-flex; align-items: center; gap: 5px }
.feature-action:hover { background: var(--acid); color: #172139; border-color: var(--acid) }
.active-feature.enter .feature-body { animation: activeReveal .65s cubic-bezier(.16, .82, .3, 1) both }
.active-feature.enter .feature-heading { animation: activeReveal .55s cubic-bezier(.16, .82, .3, 1) both }

/* ---------------- product rail (index) ---------------- */
.product-rail { position: fixed; top: 0; right: 0; width: var(--rail-width); height: 100vh; height: 100svh; background: var(--rail); color: #fff; overflow: hidden; isolation: isolate; z-index: 10; transition: background .4s }
.product-rail:before { content: 'loop  /  loop  /  loop'; position: absolute; top: 48%; left: -24%; white-space: nowrap; transform: rotate(-90deg); color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .12); font-size: 110px; letter-spacing: -.07em; font-weight: 700; pointer-events: none }
.product-rail:after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, var(--rail) 0%, transparent 17%, transparent 80%, var(--rail) 100%); pointer-events: none; z-index: 5 }
.rail-top { position: absolute; z-index: 9; top: 30px; left: 32px; right: 32px; display: flex; align-items: center; justify-content: space-between; gap: 10px }
.rail-top .rail-label { color: var(--acid) }
.rail-top .rail-length { color: rgba(255, 255, 255, .65) }
.rail-window { position: absolute; inset: 77px 0 88px; overflow: hidden; perspective: 900px }
.rail-items { position: absolute; inset: 0 }
.rail-object { position: absolute; top: 50%; left: 50%; display: block; width: min(73%, 350px); padding: 0; border: 0; background: transparent; color: #fff; text-align: left; transform-origin: center center; will-change: transform, opacity; visibility: hidden; pointer-events: none }
.rail-object.active { pointer-events: auto; cursor: zoom-in }
.rail-photo { display: block; width: 100%; height: 190px; overflow: hidden; border: 7px solid #f7f7ee; background: #fff; transition: border-color .25s }
.rail-object.active .rail-photo { border-color: var(--acid) }
.rail-photo img { width: 100%; height: 100%; object-fit: cover }
.rail-photo img.cutout { object-fit: contain; padding: 12px }
.rail-caption { display: flex; gap: 12px; align-items: start; padding: 9px 1px 0; font: 600 10px/1.35 'IBM Plex Mono', monospace; text-transform: uppercase; letter-spacing: .15px }
.rail-caption span:first-child { color: var(--acid) }
.rail-caption span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.rail-center { position: absolute; z-index: 4; top: 50%; left: 0; right: 0; height: 1px; background: rgba(234, 243, 94, .65); pointer-events: none }
.rail-center:before, .rail-center:after { content: ''; position: absolute; top: -4px; width: 9px; height: 9px; background: var(--acid); transform: rotate(45deg) }
.rail-center:before { left: 26px }
.rail-center:after { right: 26px }
.rail-bottom { position: absolute; z-index: 9; bottom: 24px; left: 32px; right: 32px; display: flex; align-items: center; justify-content: space-between; gap: 16px }
.rail-status { font-size: 11px; font-weight: 600; color: #fff }
.rail-status b { color: var(--acid) }
.rail-controls { display: flex; gap: 5px }
.rail-controls button { display: grid; place-items: center; width: 36px; height: 36px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .35); color: #fff; font-size: 15px }
.rail-controls button:hover { background: var(--acid); border-color: var(--acid); color: #172139 }
.rail-progress { position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: rgba(255, 255, 255, .15); z-index: 10 }
.rail-progress span { display: block; height: 100%; width: 0; background: var(--acid) }

/* ---------------- sections ---------------- */
.section { padding: 84px 0; border-top: 1px solid var(--rule) }
.section.no-rule { border-top: 0 }
.section-eyebrow { display: flex; align-items: center; gap: 10px; color: var(--blue); margin: 0 0 18px }
.section-eyebrow:before { content: ''; width: 25px; height: 2px; background: var(--blue) }
.section h2 { font-size: clamp(36px, 4.3vw, 65px); font-weight: 600; line-height: 1.04; letter-spacing: -.07em; margin: 0 0 17px }
.section-intro { color: var(--muted); font-size: 14px; line-height: 1.8; max-width: 620px; margin: 0 0 29px }
.section-index { float: right; color: var(--blue); font: 500 12px 'IBM Plex Mono', monospace; margin-top: 13px }

/* ---------------- about ---------------- */
.about-section { background: var(--panel) }
.about-lead { font-size: clamp(19px, 2.2vw, 31px); line-height: 1.42; letter-spacing: -.035em; max-width: 640px; margin: 24px 0 35px }
.about-lead strong { color: var(--blue); font-weight: 600 }
.about-values { border-top: 1px solid var(--rule) }
.value-line { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--rule); transition: padding .25s, background .25s }
.value-line:hover { padding-left: 12px; background: color-mix(in srgb, var(--blue) 4%, transparent) }
.value-symbol { font-size: 26px; color: var(--blue); line-height: 1.1 }
.value-line h3 { font-size: 17px; letter-spacing: -.03em; margin: 0 0 5px }
.value-line p { font-size: 12px; color: var(--muted); line-height: 1.65; margin: 0 }
.about-note { margin: 27px 0 0; color: var(--muted); font-size: 13px; line-height: 1.75 }

/* ---------------- categories ---------------- */
.category-section { background: var(--acid); color: #172139 }
.category-section .section-eyebrow, .category-section .section-index { color: #25326c }
.category-section .section-eyebrow:before { background: #25326c }
.category-section .section-intro { color: #3e453b }
.category-list { display: grid; grid-template-columns: 1fr 1fr; border-top: 2px solid #172139; border-left: 1px solid #172139 }
.category-tile { min-height: 160px; padding: 20px; border: 0; border-right: 1px solid #172139; border-bottom: 1px solid #172139; background: transparent; color: #172139; display: flex; flex-direction: column; align-items: flex-start; text-align: left; transition: background .3s, color .3s }
.category-tile:hover { background: #172139; color: var(--acid) }
.category-top { width: 100%; display: flex; justify-content: space-between; align-items: start }
.category-top .bi { font-size: 23px }
.category-num { font: 500 11px 'IBM Plex Mono', monospace }
.category-tile strong { font-size: clamp(15px, 1.65vw, 22px); letter-spacing: -.04em; line-height: 1.2; margin-top: auto }
.category-tile .category-bottom { display: flex; justify-content: space-between; align-items: center; width: 100%; font: 500 10px 'IBM Plex Mono', monospace; margin-top: 10px }

/* ---------------- featured ---------------- */
.featured-section { background: var(--panel2) }
.featured-track { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; padding: 8px 0 16px }
.featured-track::-webkit-scrollbar { display: none }
.featured-product { flex: 0 0 min(44%, 275px); scroll-snap-align: start; min-width: 0 }
.featured-photo { position: relative; aspect-ratio: 1/1.05; background: var(--panel); overflow: hidden }
.featured-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s }
.featured-photo img.cutout { object-fit: contain; padding: 24px }
.featured-product:hover .featured-photo img { transform: scale(1.06) }
.featured-wish { position: absolute; right: 9px; top: 9px; width: 32px; height: 32px; border: 0; background: var(--panel); color: var(--ink); display: grid; place-items: center }
.featured-wish[aria-pressed="true"] { color: #f05272 }
.featured-meta { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-top: 11px }
.featured-meta .micro { color: var(--blue) }
.featured-product h3 { font-size: 16px; line-height: 1.27; min-height: 41px; margin: 7px 0 4px }
.featured-foot { display: flex; align-items: center; gap: 7px }
.featured-foot strong { font-size: 17px; margin-right: auto }
.featured-foot button, .slider-controls button { display: grid; place-items: center; width: 33px; height: 33px; border: 1px solid var(--ink); background: transparent; color: var(--ink) }
.featured-foot button:hover, .slider-controls button:hover { background: var(--ink); color: var(--paper) }
.slider-controls { display: flex; align-items: center; gap: 5px }
.slider-controls button:disabled { opacity: .3; cursor: not-allowed }
.featured-header { display: flex; align-items: end; justify-content: space-between; gap: 12px }

/* ---------------- catalog ---------------- */
.catalog-section { background: var(--paper) }
.catalog-tools { display: grid; grid-template-columns: 1fr minmax(150px, 200px); gap: 10px; margin-bottom: 15px }
.search-box { position: relative }
.search-box .bi { position: absolute; top: 50%; left: 13px; transform: translateY(-50%); color: var(--muted) }
.search-box input { width: 100%; height: 44px; padding: 8px 12px 8px 40px; border: 1px solid var(--ink); background: var(--panel); color: var(--ink); border-radius: 0; font-size: 13px }
.sort-select { height: 44px; width: 100%; border: 1px solid var(--ink); background: var(--panel); color: var(--ink); padding: 8px 11px; border-radius: 0; font: 500 11px 'IBM Plex Mono', monospace }
.filter-board { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); margin: 23px 0 15px }
.filter-board button { display: flex; gap: 8px; align-items: center; justify-content: space-between; min-height: 47px; padding: 9px; border: 0; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--panel); color: var(--ink); font-size: 11px; text-align: left; transition: background .2s, color .2s }
.filter-board button:hover { background: var(--acid); color: #172139 }
.filter-board button.active { background: var(--blue); color: #fff }
.filter-board button .mono { font-size: 10px; opacity: .65 }
.catalog-result { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 14px 0 4px; color: var(--muted); font: 500 10px 'IBM Plex Mono', monospace }
.reset-btn { padding: 4px 0; border: 0; background: transparent; color: var(--blue); font: 600 10px 'IBM Plex Mono', monospace }
.product-ledger { border-top: 2px solid var(--ink) }
.ledger-row { --row-blue: #365cff; display: grid; grid-template-columns: 27px 94px minmax(0, 1fr) auto; align-items: center; gap: 15px; min-height: 132px; padding: 14px 0; border-bottom: 1px solid var(--rule); position: relative; transition: padding .3s, background .3s }
.ledger-row:before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--row-blue); transition: width .25s }
.ledger-row:hover { padding-left: 10px; background: color-mix(in srgb, var(--row-blue) 4%, transparent) }
.ledger-row:hover:before { width: 3px }
.ledger-num { align-self: start; margin-top: 3px; color: var(--blue); font: 500 10px 'IBM Plex Mono', monospace }
.ledger-img { width: 94px; height: 98px; object-fit: cover; background: var(--panel2) }
.ledger-img.cutout { object-fit: contain; padding: 7px }
.ledger-info { min-width: 0 }
.ledger-info small { display: inline-block; padding: 3px 6px; background: color-mix(in srgb, var(--blue) 11%, var(--panel)); color: var(--blue); font: 600 9px 'IBM Plex Mono', monospace; text-transform: uppercase; letter-spacing: .3px; margin-bottom: 6px }
.ledger-info h3 { font-size: clamp(14px, 1.5vw, 19px); letter-spacing: -.035em; line-height: 1.2; margin: 0 0 6px }
.ledger-info p { color: var(--muted); font-size: 10px; line-height: 1.4; margin: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden }
.ledger-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; min-width: 90px }
.ledger-right strong { font-size: 18px; line-height: 1 }
.ledger-actions { display: flex; gap: 4px }
.ledger-actions button { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--rule); background: var(--panel); color: var(--ink); font-size: 13px }
.ledger-actions button:hover { border-color: var(--blue); background: var(--blue); color: #fff }
.ledger-actions .wish-control[aria-pressed="true"] { color: #e74e6f }
.ledger-actions .wish-control[aria-pressed="true"]:hover { color: #fff }
.ledger-empty { padding: 45px 15px; text-align: center }
.ledger-empty i { font-size: 27px; color: var(--blue) }
.load-more { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px }
.load-more span { color: var(--muted); font: 500 10px 'IBM Plex Mono', monospace }
.load-more button { border: 1px solid var(--ink); padding: 10px 16px; background: transparent; color: var(--ink); font: 600 11px 'IBM Plex Mono', monospace }
.load-more button:hover { background: var(--ink); color: var(--paper) }

/* ---------------- why ---------------- */
.why-section { background: #172139; color: #f8f8f3 }
.why-section .section-eyebrow { color: var(--acid) }
.why-section .section-eyebrow:before { background: var(--acid) }
.why-section .section-index { color: var(--acid) }
.why-section .section-intro { color: #b7becd }
.why-list { border-top: 1px solid rgba(255, 255, 255, .28) }
.why-item { display: grid; grid-template-columns: 40px 36px 1fr; gap: 18px; padding: 19px 0; border-bottom: 1px solid rgba(255, 255, 255, .23); align-items: start }
.why-item .bi { font-size: 20px; color: var(--acid) }
.why-item .micro { color: #aab3c2 }
.why-item h3 { font-size: 17px; margin: 0 0 5px }
.why-item p { font-size: 12px; line-height: 1.7; margin: 0; color: #b7becd }

/* ---------------- faq ---------------- */
.faq-section { background: var(--panel) }
.faq-list { --bs-accordion-border-radius: 0; --bs-accordion-inner-border-radius: 0; --bs-accordion-bg: transparent; --bs-accordion-color: var(--ink); --bs-accordion-btn-color: var(--ink); --bs-accordion-active-bg: transparent; --bs-accordion-active-color: var(--blue); --bs-accordion-btn-focus-box-shadow: none; border-top: 1px solid var(--rule) }
.faq-list .accordion-item { border: 0; border-bottom: 1px solid var(--rule) }
.faq-list .accordion-button { padding: 17px 0; font-size: 14px; font-weight: 600; box-shadow: none; gap: 10px }
.faq-list .accordion-button:after { background-size: 13px; width: 13px; height: 13px }
.faq-list .accordion-body { padding: 0 24px 19px 0; color: var(--muted); font-size: 12px; line-height: 1.8 }
.faq-list .accordion-body button, .faq-list .accordion-body a.policy-link { border: 0; padding: 0; background: transparent; color: var(--blue); text-decoration: underline }

/* ---------------- newsletter ---------------- */
.newsletter-section { background: var(--acid); color: #172139 }
.newsletter-section .section-eyebrow, .newsletter-section .section-index { color: #25326c }
.newsletter-section .section-eyebrow:before { background: #25326c }
.newsletter-section .section-intro { color: #3d493b }
.newsletter-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px }
.field label { display: block; font: 600 10px 'IBM Plex Mono', monospace; text-transform: uppercase; letter-spacing: .4px; margin: 0 0 6px }
.field input, .field textarea, .field select { display: block; width: 100%; padding: 10px 12px; min-height: 44px; border: 1px solid currentColor; border-radius: 0; background: var(--panel); color: var(--ink); font-size: 13px }
.newsletter-section .field input { border-color: #172139; background: rgba(255, 255, 255, .88); color: #172139 }
.field textarea { min-height: 123px; resize: vertical }
.field.span-2 { grid-column: 1/-1 }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px }
.check-row { display: flex; gap: 9px; align-items: flex-start; margin: 14px 0 18px; flex-wrap: wrap }
.check-row input { margin-top: 3px; accent-color: #172139 }
.check-row label { font-size: 11px; line-height: 1.55 }
.check-row .invalid-feedback { width: 100%; margin-left: 22px }
.newsletter-actions { display: flex; align-items: center; gap: 13px }
.newsletter-actions .cta { border-color: #172139; background: #172139; color: #fff }
.newsletter-actions .cta:hover { background: var(--blue); border-color: var(--blue) }
.newsletter-actions .link-button { border: 0; background: none; text-decoration: underline; color: #172139; font: 600 11px 'IBM Plex Mono', monospace; padding: 8px 0 }
.newsletter-actions a.link-button { display: inline-block }
.status-line { font-size: 11px; line-height: 1.6; margin: 12px 0 0; color: var(--ink) }

/* ---------------- contact ---------------- */
.contact-section { background: var(--paper) }
.contact-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 30px }
.contact-details { border-top: 1px solid var(--rule) }
.contact-detail { padding: 13px 0; border-bottom: 1px solid var(--rule) }
.contact-detail span { display: block; color: var(--blue); font: 600 9px 'IBM Plex Mono', monospace; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px }
.contact-detail a, .contact-detail p { font-size: 13px; line-height: 1.55; margin: 0 }
.contact-detail a:hover { text-decoration: underline }
.contact-form .newsletter-grid { grid-template-columns: 1fr 1fr }
.contact-form .submit { margin-top: 15px }
.map-preview { margin-top: 20px; display: block; height: 145px; position: relative; overflow: hidden; background: #dce3ef; border: 1px solid var(--rule) }
.map-preview svg { display: block; width: 100%; height: 100% }
.map-preview .map-pin { position: absolute; left: 50%; top: 47%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 35px; height: 35px; background: var(--blue); color: #fff; clip-path: polygon(50% 100%, 0 40%, 0 0, 100% 0, 100% 40%) }
.map-preview .map-caption { position: absolute; bottom: 8px; left: 10px; background: var(--panel); color: var(--ink); padding: 4px 7px; font: 600 9px 'IBM Plex Mono', monospace }
.map-preview:hover .map-pin { animation: mapBounce .55s ease }

/* ---------------- footer ---------------- */
.footer { background: var(--ink); color: var(--paper); padding-top: 49px }
.footer .footer-mark { font-size: clamp(64px, 6vw, 70px); letter-spacing: -.11em; line-height: .75; font-weight: 700; color: var(--acid); margin-bottom: 38px }
.footer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 25px; padding: 25px 0 35px; border-top: 1px solid rgba(255, 255, 255, .25) }
.footer-col h3 { font: 600 10px 'IBM Plex Mono', monospace; text-transform: uppercase; color: var(--acid); letter-spacing: 1px; margin: 0 0 15px }
.footer-col a, .footer-col button { display: block; padding: 0; border: 0; background: transparent; color: var(--paper); opacity: .83; font-size: 12px; line-height: 1.6; text-align: left; margin-bottom: 8px }
.footer-col a:hover, .footer-col button:hover { opacity: 1; color: var(--acid) }
.footer-col p { font-size: 11px; line-height: 1.6; color: #c5cad6; margin: 0 0 12px }
.footer-form { display: flex; align-items: stretch; max-width: 280px }
.footer-form input { min-width: 0; flex: 1; padding: 8px; background: transparent; border: 1px solid rgba(255, 255, 255, .45); border-right: 0; color: #fff; font-size: 11px }
.footer-form input::placeholder { color: #c5cad6 }
.footer-col .footer-form button { display: grid; place-items: center; flex: none; width: 35px; margin: 0; padding: 0; background: var(--acid); color: #172139; border: 1px solid var(--acid); opacity: 1 }
.footer-col .footer-form button:hover { background: #fff; color: #172139; border-color: #fff }
.footer-lower { border-top: 1px solid rgba(255, 255, 255, .25); padding: 16px 0 22px; display: flex; justify-content: space-between; gap: 15px; align-items: center; font: 500 10px 'IBM Plex Mono', monospace; color: #c5cad6; flex-wrap: wrap }
.footer-share { display: flex; gap: 12px }
.footer-share a { font-size: 16px; color: var(--acid) }
.footer-lower a { color: #c5cad6 }
.footer-lower a:hover { color: var(--acid) }
.back-top { position: fixed; z-index: 1015; left: 15px; bottom: 15px; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--ink); background: var(--acid); color: #172139; opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .25s, transform .25s }
.back-top.visible { opacity: 1; pointer-events: auto; transform: none }
[data-theme="dark"] .footer { background: #0b1121; color: #f5f5ee }
[data-theme="dark"] .footer-col a, [data-theme="dark"] .footer-col button:not(.footer-form button) { color: #f5f5ee }
[data-theme="dark"] .footer-col a:hover, [data-theme="dark"] .footer-col button:not(.footer-form button):hover { color: var(--acid) }

/* ---------------- drawers ---------------- */
.offcanvas { --bs-offcanvas-width: min(430px, 100vw); background: var(--panel); color: var(--ink) }
.offcanvas-header { border-bottom: 1px solid var(--rule); padding: 23px }
.offcanvas-title { font-size: 25px; font-weight: 600; letter-spacing: -.06em }
.offcanvas-body { padding: 0; display: flex; flex-direction: column; min-height: 0 }
.drawer-items { overflow-y: auto; flex: 1; padding: 0 23px }
.drawer-line { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--rule) }
.drawer-line img { width: 72px; height: 77px; object-fit: cover; background: var(--panel2) }
.drawer-line img.cutout { object-fit: contain; padding: 7px }
.drawer-info { min-width: 0 }
.drawer-info h3 { font-size: 13px; line-height: 1.3; margin: 0 0 4px }
.drawer-info p { font: 500 10px 'IBM Plex Mono', monospace; color: var(--muted); margin: 0 0 9px }
.drawer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px }
.drawer-qty { display: flex; align-items: center; border: 1px solid var(--rule) }
.drawer-qty button { border: 0; background: transparent; color: var(--ink); width: 26px; height: 26px }
.drawer-qty output { font: 600 11px 'IBM Plex Mono', monospace; min-width: 25px; text-align: center }
.drawer-remove { border: 0; background: transparent; color: var(--muted); font-size: 12px }
.drawer-remove:hover { color: #d04c52 }
.drawer-price { font-weight: 700; font-size: 13px; white-space: nowrap }
.drawer-summary { padding: 21px 23px 24px; border-top: 1px solid var(--rule); background: var(--panel) }
.total-row { display: flex; justify-content: space-between; gap: 15px; font-size: 12px; margin-bottom: 10px }
.total-row.big { font-size: 18px; font-weight: 700; border-top: 1px solid var(--rule); padding-top: 14px; margin-top: 13px }
.drawer-summary .cta { width: 100% }
.drawer-message { font-size: 10px; color: var(--muted); line-height: 1.6; margin-top: 9px }
.drawer-empty { padding: 55px 12px; text-align: center; color: var(--muted) }
.drawer-empty .bi { font-size: 37px; color: var(--blue) }
.drawer-empty h3 { font-size: 19px; color: var(--ink); margin: 10px 0 }
.drawer-empty p { font-size: 12px; line-height: 1.6; margin: 0 0 15px }
.drawer-mini { border: 1px solid var(--rule); background: transparent; color: var(--ink); padding: 5px 9px; font: 600 10px 'IBM Plex Mono', monospace }
.drawer-mini:hover { background: var(--acid); color: #172139; border-color: var(--acid) }

/* ---------------- modals ---------------- */
.modal { --bs-modal-border-radius: 0; --bs-modal-border-width: 1px; --bs-modal-border-color: var(--rule) }
.modal-content { background: var(--panel); color: var(--ink) }
.modal-header, .modal-footer { border-color: var(--rule); padding: 19px 24px }
.modal-body { padding: 24px }
.modal-title { font-size: 22px; font-weight: 600; letter-spacing: -.05em }
.modal-footer { gap: 8px }
.modal-footer>* { margin: 0 }
.modal-backdrop { --bs-backdrop-bg: #111a31; --bs-backdrop-opacity: .63 }
.btn-close:focus { box-shadow: none; outline: 2px solid var(--blue) }

.quick-body { display: grid; grid-template-columns: .9fr 1.1fr; gap: 25px }
.quick-photo { width: 100%; height: 330px; object-fit: cover; background: var(--panel2) }
.quick-photo.cutout { object-fit: contain; padding: 25px }
.quick-heading { font-size: 30px; line-height: 1.1; letter-spacing: -.055em; margin: 5px 0 11px }
.quick-price { font-size: 26px; font-weight: 700; color: var(--blue) }
.quick-desc { font-size: 12px; line-height: 1.7; color: var(--muted); margin: 12px 0 15px }
.quick-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap }
.quick-actions .cta { min-height: 40px }
.quick-actions .drawer-qty { height: 40px }
.quick-actions .drawer-qty button { height: 38px; width: 30px }
.quick-actions .drawer-mini { height: 40px; font-size: 15px }
.quick-actions .drawer-mini[aria-pressed="true"] { color: #e65070 }
.quick-related { border-top: 1px solid var(--rule); margin-top: 22px; padding-top: 18px }
.quick-related h3 { font-size: 17px; margin: 0 0 13px }
.related-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px }
.related-item { border: 0; background: var(--panel2); text-align: left; color: var(--ink); padding: 5px; min-width: 0 }
.related-item:hover { outline: 1px solid var(--blue) }
.related-item img { width: 100%; aspect-ratio: 1; object-fit: cover }
.related-item strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; margin: 5px 1px 2px }
.related-item span { display: block; color: var(--blue); font: 600 10px 'IBM Plex Mono', monospace; margin-left: 1px }

.policy h3 { font-size: 14px; color: var(--blue); margin: 19px 0 5px }
.policy h3:first-child { margin-top: 0 }
.policy p { font-size: 12px; line-height: 1.8; color: var(--muted); margin: 0 }

.form-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 14px }
.form-stack .full { grid-column: 1/-1 }
.form-stack .field label { color: var(--ink) }
.form-stack .field input, .form-stack .field select, .form-stack .field textarea { border-color: var(--rule) }
.invalid-feedback { font-size: 10px }
.checkout-totals { background: var(--panel2); padding: 14px; margin-top: 16px }
.checkout-totals .total-row:last-child { margin: 0 }
.checkout-items { font-size: 11px; color: var(--muted); line-height: 1.7; max-height: 115px; overflow: auto; margin-bottom: 10px }
.checkout-items div { display: flex; justify-content: space-between; gap: 14px }
.checkout-note { font-size: 11px; line-height: 1.7; color: var(--muted); margin: 12px 0 0 }

.order-confirm { text-align: center }
.order-confirm .confirm-symbol { display: grid; place-items: center; width: 56px; height: 56px; background: var(--acid); color: #172139; font-size: 26px; margin: 0 auto 15px }
.order-confirm h3 { font-size: 26px; letter-spacing: -.05em; margin: 0 0 10px }
.order-confirm p { color: var(--muted); font-size: 12px; line-height: 1.7 }
.order-reference { font: 700 13px 'IBM Plex Mono', monospace; color: var(--blue); padding: 10px; border: 1px dashed var(--rule); margin: 13px 0 }

.search-modal-results { max-height: 310px; overflow: auto; margin-top: 10px }
.search-hit { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 10px; width: 100%; padding: 8px 0; border: 0; border-bottom: 1px solid var(--rule); background: transparent; text-align: left; color: var(--ink) }
.search-hit:hover { color: var(--blue) }
.search-hit img { width: 42px; height: 42px; object-fit: cover }
.search-hit strong { font-size: 12px }
.search-hit span:last-child { font: 600 11px 'IBM Plex Mono', monospace }

.was-validated .field input:invalid+.invalid-feedback,
.was-validated .field select:invalid+.invalid-feedback,
.was-validated .field textarea:invalid+.invalid-feedback,
.was-validated .check-row input:invalid~.invalid-feedback { display: block }
.was-validated .field input:invalid,
.was-validated .field select:invalid,
.was-validated .field textarea:invalid { border-color: #c64949 }

.ledger-row.arrive { animation: rowArrival .55s cubic-bezier(.16, .82, .3, 1) both; animation-delay: var(--delay, 0ms) }

@keyframes rowArrival {
  from { opacity: 0; transform: translateY(16px); clip-path: inset(0 0 90% 0) }
  to { opacity: 1; transform: none; clip-path: inset(0) }
}

/* ---------------- toasts ---------------- */
.toast-container { position: fixed; top: 20px; right: 20px; z-index: 1100; max-width: calc(100vw - 30px) }
.custom-toast { position: relative; width: min(355px, calc(100vw - 30px)); border: 1px solid var(--acid); border-left: 5px solid var(--acid); border-radius: 0; background: var(--toast-bg); color: var(--paper); box-shadow: 10px 10px 0 color-mix(in srgb, var(--blue) 25%, transparent); margin-bottom: 10px; overflow: hidden; animation: toastEnter .45s cubic-bezier(.2, .8, .3, 1) both }
.custom-toast .toast-body { display: flex; gap: 12px; align-items: flex-start; padding: 15px }
.custom-toast .toast-mark { width: 29px; height: 29px; flex: none; display: grid; place-items: center; background: var(--acid); color: #172139; font-size: 16px }
.custom-toast .toast-content { min-width: 0; flex: 1 }
.custom-toast strong { display: block; font-size: 12px; line-height: 1.35 }
.custom-toast small { display: block; color: color-mix(in srgb, var(--paper) 70%, transparent); font-size: 10px; line-height: 1.5; margin-top: 3px }
.custom-toast button { border: 0; background: transparent; color: var(--paper); font-size: 14px }
.custom-toast:after { content: ''; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--acid); transform-origin: left; animation: toastTime 5s linear both }
.custom-toast:hover:after, .custom-toast:focus-within:after { animation-play-state: paused }

@keyframes activeReveal {
  from { opacity: 0; transform: translateY(12px); clip-path: inset(0 0 85% 0) }
  to { opacity: 1; transform: none; clip-path: inset(0) }
}
@keyframes toastEnter {
  from { opacity: 0; transform: translateX(70px) rotate(2deg) }
  to { opacity: 1; transform: none }
}
@keyframes toastTime { to { transform: scaleX(0) } }
@keyframes mapBounce { 50% { transform: translate(-50%, -70%) } }

/* ============================================================
   ADDITIONS FOR SEPARATE PAGES
   ============================================================ */
.page-head { padding: 64px 0 10px }
.page-head .crumb { color: var(--muted); margin: 0 0 16px; display: flex; gap: 8px; align-items: center; font: 600 10px/1.5 'IBM Plex Mono', monospace; text-transform: uppercase; letter-spacing: 1.25px }
.page-head .crumb a { color: var(--muted) }
.page-head .crumb a:hover { color: var(--blue) }
.page-head .crumb .sep { color: var(--blue) }
.page-head h1 { font-size: clamp(42px, 6vw, 84px); line-height: .96; letter-spacing: -.095em; font-weight: 700; margin: 0 0 16px }
.page-head h1 em { font-style: normal; color: var(--blue) }
.page-head p { color: var(--muted); max-width: 640px; font-size: 14px; line-height: 1.75; margin: 0 }

.policy-page { max-width: 840px }
.policy-page .policy { border-top: 1px solid var(--rule); padding-top: 10px }
.policy-page .policy p { margin: 0 0 10px }
.policy-contact { margin-top: 30px; padding: 18px; border: 1px dashed var(--rule); font-size: 12px; color: var(--muted); line-height: 1.7 }
.policy-contact a { color: var(--blue); text-decoration: underline }

.narrow-form { max-width: 780px }
.form-note { margin-top: 20px; font-size: 12px; color: var(--muted); line-height: 1.7 }
.form-note a { color: var(--blue); text-decoration: underline }

.checkout-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 28px; align-items: start }
.checkout-side { position: sticky; top: 130px }
.checkout-side .checkout-totals { margin-top: 0 }
.checkout-side .drawer-mini { margin-top: 12px }
.checkout-empty { text-align: center; padding: 70px 20px; border: 1px dashed var(--rule) }
.checkout-empty .bi { font-size: 40px; color: var(--blue); display: inline-block }
.checkout-empty h2 { font-size: 26px; letter-spacing: -.05em; margin: 12px 0 8px }
.checkout-empty p { color: var(--muted); font-size: 13px; margin: 0 0 18px }

/* ---------------- responsive ---------------- */
@media(max-width:1200px) {
  .content-in { padding-left: 34px; padding-right: 34px }
  .nav-links { gap: 3px 14px }
  .nav-links a { font-size: 9px }
  .ledger-row { grid-template-columns: 21px 77px minmax(0, 1fr) auto; gap: 10px }
  .ledger-img { width: 77px; height: 82px }
  .ledger-right { min-width: 72px }
  .ledger-info p { display: none }
  .filter-board { grid-template-columns: repeat(2, 1fr) }
}

@media(max-width:980px) {
  .content-pane,
.site-shell.has-rail .content-pane {
  width: 100%
}
  .product-rail { position: relative; top: auto; right: auto; width: 100%; height: 435px }
  .hero { min-height: 0; padding-top: 55px }
  .hero .mobile-rail-mount { display: block; margin-top: 30px; margin-left: -34px; margin-right: -34px }
  .rail-window { inset: 54px 0 58px }
  .rail-top { top: 14px }
  .rail-bottom { bottom: 12px }
  .rail-photo { height: 132px }
  .rail-object { width: min(55%, 230px) }
  .product-rail:before { font-size: 80px }
  .hero-brand { font-size: clamp(80px, 15vw, 150px) }
  .hero h1 { font-size: clamp(36px, 6vw, 65px) }
  .feature-body { grid-template-columns: 85px 1fr }
  .feature-image { width: 85px; height: 90px }
  .site-header { position: sticky }
  .back-top { left: auto; right: 15px }
  .nav-row { display: none }
  .mobile-toggle { display: grid }
  .nav-row.show { display: block }
  .nav-links { padding: 10px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px }
  .nav-links a { font-size: 11px; padding: 11px 0 }
  .site-shell { display: block }
}

@media(max-width:900px) {
  .checkout-layout { grid-template-columns: 1fr }
  .checkout-side { position: static }
}

@media(max-width:650px) {
  .content-in { padding-left: 22px; padding-right: 22px }
  .hero .mobile-rail-mount { margin-left: -22px; margin-right: -22px }
  .hero { padding-top: 39px; padding-bottom: 40px }
  .hero-brand { font-size: clamp(80px, 17vw, 120px); margin-bottom: 28px }
  .hero h1 { font-size: clamp(34px, 8vw, 49px) }
  .hero-sub { font-size: 12px }
  .active-feature { margin-top: 34px }
  .section { padding: 63px 0 }
  .section h2 { font-size: clamp(36px, 9vw, 52px) }
  .category-list { grid-template-columns: 1fr 1fr }
  .category-tile { min-height: 143px; padding: 12px }
  .category-tile strong { font-size: 15px }
  .featured-product { flex-basis: 65% }
  .filter-board { grid-template-columns: repeat(2, 1fr) }
  .ledger-row { grid-template-columns: 18px 72px 1fr; min-height: 117px; gap: 9px }
  .ledger-img { width: 72px; height: 78px }
  .ledger-right { grid-column: 3; display: flex; flex-direction: row; justify-content: space-between; align-items: center; width: 100%; margin-top: -13px }
  .ledger-info h3 { font-size: 15px }
  .ledger-info small { font-size: 8px }
  .ledger-right strong { font-size: 16px }
  .ledger-actions button { width: 31px; height: 30px }
  .why-item { grid-template-columns: 27px 29px 1fr; gap: 10px }
  .contact-layout { grid-template-columns: 1fr; gap: 25px }
  .contact-form .newsletter-grid { grid-template-columns: 1fr }
  .newsletter-grid { grid-template-columns: 1fr }
  .field.span-2 { grid-column: auto }
  .footer-grid { grid-template-columns: 1fr 1fr }
  .rail-photo { height: 125px }
  .related-list { grid-template-columns: repeat(2, 1fr) }
  .related-item:nth-child(n+3) { display: none }
  .quick-body { grid-template-columns: 1fr }
  .quick-photo { height: 260px }
  .form-stack { grid-template-columns: 1fr }
  .form-stack .full { grid-column: auto }
}

@media(max-width:430px) {
  .hero-brand { font-size: clamp(72px, 18vw, 95px) }
  .brand { font-size: 24px }
  .head-btn, .mobile-toggle { width: 33px; height: 35px; font-size: 15px }
  .filter-board button { font-size: 10px }
  .featured-product { flex-basis: 76% }
  .section-index { display: none }
  .feature-body { grid-template-columns: 69px 1fr; gap: 10px }
  .feature-image { width: 69px; height: 82px }
  .feature-name { font-size: 18px }
  .feature-desc { -webkit-line-clamp: 1 }
  .feature-foot { gap: 5px }
  .feature-price { font-size: 18px }
  .feature-action { font-size: 9px; padding: 4px 7px }
  .rail-object { width: 63% }
  .footer-grid { gap: 19px }
}

@media(prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto }
  *, *:before, *:after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important }
  [data-aos] { opacity: 1 !important; transform: none !important }
}