/* ==========================================================================
   ByElenor — core stylesheet
   Tokens, base, utilities and the shared chrome (header, menus, search,
   bag drawer, toast, page curtain, footer, product card, placeholders).
   Page-specific styles live in /assets/css/pages/*.css
   ========================================================================== */

:root {
  --bg: #F0F1F2;
  --ink: #121315;
  --body: #33363B;
  --muted: #5E636B;
  --disabled: #A3A8AE;
  --line: rgba(18, 19, 21, .14);
  --line-soft: rgba(18, 19, 21, .12);
  --line-strong: rgba(18, 19, 21, .24);
  --panel: #E4E6E8;
  --panel-2: #E6E8EA;
  --dark: #141518;
  --on-dark: #F0F1F2;
  --on-dark-2: #E9EAEC;
  --on-dark-body: #C9CCD0;
  --on-dark-muted: #9AA0A8;
  --on-dark-faint: #8E949C;
  --error: #9E3B32;

  --sans: 'Geist', system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, monospace;
  --serif: 'Instrument Serif', Georgia, serif;

  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
  --ease-spring: cubic-bezier(.3, 1.6, .5, 1);
  --ease-mag: cubic-bezier(.2, .8, .2, 1);

  --gutter: clamp(20px, 3vw, 40px);
  --nav-h: 84px; /* 64px bar + 10px top/bottom padding */

  --hatch-l: repeating-linear-gradient(135deg, #D8DBDE 0 1px, #E4E6E8 1px 11px);
  --hatch-m: repeating-linear-gradient(135deg, #C4C8CD 0 1px, #CFD3D7 1px 11px);
  --hatch-d: repeating-linear-gradient(135deg, #2A2D31 0 1px, #1E2023 1px 11px);
  --hatch-d2: repeating-linear-gradient(135deg, #2E3135 0 1px, #232528 1px 11px);
}

/* ---------------------------------------------------------------- Base */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body { overflow-x: clip; font-size: 15px; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; color: inherit; }
img { display: block; max-width: 100%; }
input, textarea, select { font-family: inherit; }
input::placeholder, textarea::placeholder { color: #7A8088; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
h1, h2, h3, h4 { font-weight: 400; margin: 0; }
p { margin: 0; }
figure { margin: 0; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; background: var(--ink); color: var(--bg); font-size: 13px; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.page { position: relative; overflow-x: clip; }
.grain { position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .06; mix-blend-mode: multiply; background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------------------------------------------------------------- Type utilities */
.serif { font-family: var(--serif); font-weight: 400; }
.italic, .serif i, .serif em { font-style: italic; }
.mono { font-family: var(--mono); }
.eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.caption { font-family: var(--mono); font-size: 10px; line-height: 1.5; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tabular { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.lede { font-size: 16px; line-height: 1.6; color: var(--body); text-wrap: pretty; }
.prose-sm { font-size: 15px; line-height: 1.65; color: var(--body); text-wrap: pretty; }

/* Display headings — sizes from the design */
.h-hero { font-family: var(--serif); font-size: clamp(68px, 11.6vw, 204px); line-height: .86; letter-spacing: -.025em; }
.h-page { font-family: var(--serif); font-size: clamp(72px, 13vw, 230px); line-height: .84; letter-spacing: -.035em; }
.h-section { font-family: var(--serif); font-size: clamp(44px, 6vw, 96px); line-height: .95; letter-spacing: -.02em; }
.h-title { font-family: var(--serif); font-size: clamp(44px, 4.4vw, 72px); line-height: .95; letter-spacing: -.02em; }

/* Masked line reveal wrapper: <span class="line"><span data-reveal="rise">…</span></span> */
/* The mask needs room for descenders (g, y, p, commas) at these tight line-heights: pad it, then pull the
   next line back up by the same amount so spacing is unchanged. Side padding covers italic overhang. */
.line { display: block; overflow: hidden; padding: 0 .08em .25em; margin: 0 -.08em -.19em; }
.line > span { display: block; }
.line--in { display: inline-block; }
.line--in > span { display: inline-block; }

/* ---------------------------------------------------------------- Links & buttons */
.ul { background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat; background-position: 0 100%; background-size: 0% 1px; transition: background-size .5s var(--ease), color .3s; padding-bottom: 2px; }
.ul:hover, .ul:focus-visible, .ul.is-active { background-size: 100% 1px; }
.ul-on { background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat; background-position: 0 100%; background-size: 100% 1px; padding-bottom: 4px; transition: letter-spacing .5s var(--ease); }
.ul-on--grow:hover { letter-spacing: .04em; }
.link-u { text-decoration: underline; text-underline-offset: 3px; }
.text-link { font-size: 14px; }

.btn-reset { background: none; border: 0; padding: 0; margin: 0; cursor: pointer; font: inherit; color: inherit; }

.btn-pill { display: inline-flex; align-items: center; justify-content: center; gap: 14px; height: 52px; padding: 0 28px; border: 1px solid var(--ink); border-radius: 999px; background: none; color: var(--ink); font-size: 14px; cursor: pointer; transition: transform .5s var(--ease-mag), background-color .35s, color .35s, border-color .35s; }
.btn-pill:hover { background: var(--ink); color: var(--bg); }
.btn-pill--solid { background: var(--ink); color: var(--bg); }
.btn-pill--solid:hover { background: #2A2D31; }
.btn-pill--light { border-color: rgba(244, 245, 246, .55); color: #F4F5F6; }
.btn-pill--light:hover { background: #F4F5F6; color: var(--ink); }
.btn-pill--sm { height: 34px; padding: 0 14px; font-size: 12px; }

.btn-block { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; height: 56px; padding: 0 22px; border: 0; background: var(--ink); color: var(--bg); font-size: 14px; cursor: pointer; text-align: left; transition: letter-spacing .5s var(--ease); }
.btn-block:hover { letter-spacing: .03em; }
.btn-block > * { position: relative; }
.btn-block[disabled] { cursor: not-allowed; opacity: .55; }
.btn-block__fill { position: absolute !important; inset: 0; background: #3A3D42; transform-origin: 0 50%; transform: scaleX(0); }
.btn-block.is-busy .btn-block__fill { transform: scaleX(1); transition: transform .52s cubic-bezier(.6, 0, .2, 1); }

.btn-outline { height: 46px; padding: 0 18px; border: 1px solid var(--ink); background: none; font-size: 13px; color: var(--ink); cursor: pointer; transition: background-color .3s, color .3s; }
.btn-outline:hover { background: var(--ink); color: var(--bg); }

/* ---------------------------------------------------------------- Forms */
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-size: 12px; color: var(--muted); }
.input, .select, .textarea { width: 100%; height: 50px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 0; background: transparent; font-size: 15px; color: var(--ink); outline: none; transition: border-color .3s; -webkit-appearance: none; appearance: none; }
.textarea { height: auto; padding: 12px 14px; resize: vertical; }
.select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--ink); }
.input.is-invalid, .select.is-invalid, .textarea.is-invalid { border-color: var(--error); }
.field__error, .field__error p { font-size: 12px; color: var(--error); margin: 0; }
.input-line { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; padding: 12px 0; font-size: clamp(18px, 1.7vw, 26px); color: var(--ink); outline: none; }
.check { display: flex; align-items: center; gap: 12px; font-size: 14px; cursor: pointer; padding: 4px 0; }
.check input { width: 16px; height: 16px; margin: 0; accent-color: var(--ink); }
.alert { padding: 14px 18px; border: 1px solid var(--line-strong); font-size: 14px; line-height: 1.5; }
.alert--error { border-color: var(--error); color: var(--error); }

/* ---------------------------------------------------------------- Layout helpers */
.gutter { padding-left: var(--gutter); padding-right: var(--gutter); }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-top: 20px; margin-bottom: clamp(32px, 4vw, 56px); }
.sec-head--lg { margin-bottom: clamp(40px, 6vw, 96px); }
.grid-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(150px, 21vw, 360px), 1fr)); gap: clamp(12px, 1.6vw, 24px); row-gap: 40px; }
.no-scrollbar { scrollbar-width: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }
.rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 8px; scroll-padding-left: var(--gutter); }
.rail::-webkit-scrollbar { display: none; }
.rail > * { flex: none; scroll-snap-align: start; }
.desktop-only { }
.mobile-only { display: none !important; }
@media (max-width: 1100px) {
  .desktop-only { display: none !important; }
  .mobile-only { display: revert !important; }
}

/* ---------------------------------------------------------------- Media & placeholders */
.media { position: relative; overflow: hidden; background: var(--hatch-l); }
.media--l { background: var(--hatch-l); }
.media--m { background: var(--hatch-m); }
.media--d { background: var(--hatch-d); }
.media--d2 { background: var(--hatch-d2); }
.media > img, .media__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media__inner { position: absolute; inset: 0; }
.media__label { position: absolute; left: 14px; right: 14px; bottom: 12px; font-family: var(--mono); font-size: 10px; line-height: 1.5; letter-spacing: .06em; text-transform: uppercase; color: #666C74; pointer-events: none; }
.media--m .media__label { color: #555B63; }
.media--d .media__label, .media--d2 .media__label { color: var(--on-dark-faint); }
/* When a real photo is present, hide the description label (it remains the alt text).
   Generated placeholders are named ph-*.jpg and keep the label visible over the hatching. */
.media img:not([src*="/ph-"]) + .media__label, .media__inner img:not([src*="/ph-"]) + .media__label { display: none; }

/* ---------------------------------------------------------------- Reveal initial states (JS adds .rv-ready) */
.rv-ready [data-reveal="rise"]:not(.is-shown) { transform: translateY(135%); } /* clears the descender padding on .line */
.rv-ready [data-reveal="fade"]:not(.is-shown) { opacity: 0; transform: translateY(22px); }
.rv-ready [data-reveal="mask"]:not(.is-shown) { clip-path: inset(100% 0 0 0); }
.rv-ready [data-reveal="scale"]:not(.is-shown) { transform: scale(1.06); }
.rv-ready [data-reveal="rise"] { transition: transform 1.15s var(--ease) var(--rv-delay, 0ms); }
.rv-ready [data-reveal="fade"] { transition: opacity 1s var(--ease) var(--rv-delay, 0ms), transform 1.1s var(--ease) var(--rv-delay, 0ms); }
.rv-ready [data-reveal="mask"] { transition: clip-path 1.3s var(--ease-io) var(--rv-delay, 0ms); }
.rv-ready [data-reveal="scale"] { transition: transform 2.4s var(--ease) var(--rv-delay, 0ms); }
@media (prefers-reduced-motion: reduce) {
  .rv-ready [data-reveal] { transform: none !important; opacity: 1 !important; clip-path: none !important; transition: none !important; }
  *, *::before, *::after { scroll-behavior: auto !important; }
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 60; transition: transform .6s var(--ease); font-size: 13px; letter-spacing: .01em; }
.site-header.is-hidden { transform: translateY(-100%); }
.nav-bar { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: var(--nav-h); padding: 10px var(--gutter); background: var(--bg); color: var(--ink); border-bottom: 1px solid var(--line-soft); transition: background-color .5s, color .5s, border-color .5s; }
.site-header.is-on-dark .nav-bar { background: rgba(240, 241, 242, 0); color: #F4F5F6; border-bottom-color: rgba(18, 19, 21, 0); }
.nav-bar__left { display: flex; align-items: center; gap: 28px; }
.nav-bar__right { display: flex; align-items: center; justify-content: flex-end; gap: clamp(14px, 2vw, 28px); }
.nav-btn { background: none; border: 0; padding: 10px 0; color: inherit; font-size: 13px; cursor: pointer; }
.nav-bar .ul { padding-bottom: 2px; }
.nav-bar__left > a, .nav-bar__right > a, .nav-bar .nav-btn { font-size: 15px; font-weight: 500; line-height: 1.2; }
/* Header buttons share the links' box (no extra padding) so "Search" and "Bag" sit on the same baseline. */
.nav-bar .nav-btn { display: inline-flex; align-items: center; margin: 0; padding: 0 0 2px; }
.nav-bar .nav-menu-btn { padding-right: 12px; }
.nav-shop.is-open { background-size: 100% 1px; }

.logo { display: flex; align-items: baseline; gap: 3px; color: inherit; }
.logo--svg { align-items: center; }
.logo--svg .logo-svg { display: block; height: 40px; width: auto; }
.logo__by { font-family: var(--serif); font-style: italic; font-size: 24px; line-height: 1; }
.logo__name { font-size: 12px; font-weight: 500; letter-spacing: .34em; text-transform: uppercase; margin-right: -.34em; }

.bag-btn { display: flex; align-items: center; gap: 6px; }
.bag-count { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border: 1px solid currentColor; border-radius: 999px; font-size: 10px; font-variant-numeric: tabular-nums; transition: transform .38s var(--ease-spring); }
.bag-count.is-bump { transform: scale(1.35); }
/* Icon-only buttons (close X): center the icon and keep a comfortable tap target */
.nav-btn > ion-icon:only-child { display: block; }
.nav-btn[aria-label^="Close"] { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; min-height: 32px; }
.nav-btn ion-icon[name="close-outline"] { font-size: 24px; }
/* Ionicons in the header (Search, Bag) */
.nav-btn ion-icon { font-size: 20px; --ionicon-stroke-width: 28px; /* default 32 — a touch lighter to match the type */ }
.nav-bar .bag-btn { position: relative; }
.nav-bar .bag-btn .bag-count { position: absolute; top: -9px; right: -13px; } /* sits off the bag's handle */

/* Mega menu */
.mega { position: absolute; top: var(--nav-h); left: 0; right: 0; z-index: 1; background: var(--bg); color: var(--ink); border-bottom: 1px solid var(--line-soft); clip-path: inset(0 0 100% 0); pointer-events: none; transition: clip-path .7s var(--ease-io); }
.site-header.is-mega .mega { clip-path: inset(0 0 0 0); pointer-events: auto; }
.mega__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .7fr) minmax(0, 1.6fr); gap: 40px; padding: 44px var(--gutter) 48px; }
.mega__col { display: flex; flex-direction: column; }
.mega__col .eyebrow { margin-bottom: 18px; }
.mega__big { align-self: flex-start; font-family: var(--serif); font-size: 44px; line-height: 1.12; color: var(--ink); transition: padding-left .45s var(--ease); }
.mega__big:hover, .mega__big:focus-visible { padding-left: 18px; font-style: italic; }
.mega__links { display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.mega__links .eyebrow { margin-bottom: 6px; }
.mega__links .eyebrow ~ .eyebrow { margin-top: 18px; }
.mega__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mega__card { display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.mega__card .media { aspect-ratio: 4 / 5; }

/* Mobile menu */
.mobile-menu { position: fixed; inset: 0; z-index: 55; background: var(--ink); color: var(--on-dark); transform: translateY(-100%); visibility: hidden; overflow: hidden; transition: transform .7s var(--ease-io), visibility 0s linear .7s; display: flex; flex-direction: column; justify-content: space-between; padding: 104px 20px 32px; }
.is-menu-open .mobile-menu { transform: translateY(0); visibility: visible; transition: transform .7s var(--ease-io), visibility 0s; }
.mobile-menu__big { display: flex; flex-direction: column; }
.mobile-menu__big a { font-family: var(--serif); font-size: 46px; line-height: 1.1; color: var(--on-dark); }
.mobile-menu__small { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; font-size: 15px; border-top: 1px solid rgba(240, 241, 242, .16); padding-top: 24px; }
.mobile-menu__small a { padding: 6px 0; color: var(--on-dark); }
.is-menu-open .site-header .nav-bar { background: rgba(240, 241, 242, 0); color: #F4F5F6; border-bottom-color: transparent; }

/* Toast */
.toast { position: fixed; top: calc(var(--nav-h) + 12px); right: var(--gutter); z-index: 70; display: flex; align-items: center; gap: 18px; padding: 14px 18px; background: var(--ink); color: var(--on-dark); font-size: 13px; opacity: 0; transform: translateY(-10px); pointer-events: none; transition: opacity .4s, transform .5s var(--ease); }
.toast.is-on { opacity: 1; transform: translateY(0); pointer-events: auto; }
.toast__opt { color: var(--on-dark-muted); }
.toast button { background: none; border: 0; padding: 0; color: var(--on-dark); font-size: 13px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   Search overlay
   ========================================================================== */
.search { position: fixed; inset: 0; z-index: 80; background: var(--bg); color: var(--ink); clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .75s var(--ease-io), visibility 0s linear .75s; overflow-y: auto; overscroll-behavior: contain; }
.search.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .75s var(--ease-io), visibility 0s; }
.search__bar { position: sticky; top: 0; z-index: 2; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: var(--nav-h); padding: 10px var(--gutter); border-bottom: 1px solid transparent; background: var(--bg); font-size: 13px; }
.search__close { justify-self: end; }
.search__body { padding: clamp(24px, 4vw, 56px) var(--gutter) 80px; transform: translateY(-24px); opacity: 0; transition: transform .9s var(--ease) .15s, opacity .6s .15s; }
.search.is-open .search__body { transform: none; opacity: 1; }
.search__form { display: flex; align-items: flex-end; gap: 20px; border-bottom: 1px solid var(--ink); padding-bottom: 10px; }
.search__input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; padding: 0; font-family: var(--serif); font-size: clamp(46px, 7.4vw, 124px); line-height: 1.05; letter-spacing: -.02em; color: var(--ink); }
.search__input::-webkit-search-cancel-button { display: none; }
.search__clear { padding: 12px 0; font-size: 13px; color: var(--muted); white-space: nowrap; }
.search__cols { display: flex; flex-wrap: wrap; gap: 48px clamp(32px, 5vw, 96px); margin-top: clamp(32px, 4vw, 56px); }
.search__side { flex: 1 1 220px; max-width: 320px; display: flex; flex-direction: column; gap: 36px; }
.search__group { display: flex; flex-direction: column; gap: 4px; }
.search__group .eyebrow { margin-bottom: 10px; }
.search__pop { align-self: flex-start; padding: 5px 0; font-family: var(--serif); font-size: 30px; line-height: 1.1; text-align: left; transition: padding-left .4s var(--ease); }
.search__pop:hover { padding-left: 12px; font-style: italic; }
.search__term { align-self: flex-start; padding: 5px 0; font-size: 17px; color: var(--muted); text-align: left; }
.search__term b { color: var(--ink); font-weight: 500; }
.search__cat { display: flex; align-items: baseline; gap: 10px; padding: 5px 0; }
.search__cat span:first-child { font-family: var(--serif); font-size: 30px; line-height: 1.1; }
.search__col { display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: center; }
.search__col .media { aspect-ratio: 1 / 1; }
.search__main { flex: 3 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.search__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.search__none { font-family: var(--serif); font-size: clamp(30px, 3.4vw, 52px); line-height: 1.08; max-width: 640px; }
.search__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(140px, 15vw, 240px), 1fr)); gap: clamp(12px, 1.4vw, 20px); row-gap: 28px; }
.search__tile { display: flex; flex-direction: column; gap: 10px; }
.search__tile .media { aspect-ratio: 3 / 4; }
.search__tile-meta { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }

/* ==========================================================================
   Bag drawer
   ========================================================================== */
.scrim { position: fixed; inset: 0; z-index: 84; background: rgba(18, 19, 21, .42); opacity: 0; pointer-events: none; transition: opacity .6s; }
.is-cart-open .scrim--cart { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 85; width: min(460px, 100vw); background: var(--bg); color: var(--ink); display: flex; flex-direction: column; transform: translateX(100%); visibility: hidden; transition: transform .75s var(--ease-io), visibility 0s linear .75s; }
.is-cart-open .drawer { transform: none; visibility: visible; transition: transform .75s var(--ease-io), visibility 0s; }
.drawer__inner { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 24px; flex: none; }
.drawer__title { display: flex; align-items: baseline; gap: 10px; }
.drawer__title .serif { font-size: 30px; line-height: 1; }
.drawer__ship { padding: 0 24px 18px; flex: none; font-size: 13px; color: var(--body); }
.drawer__bar { margin-top: 10px; height: 1px; background: var(--line); }
.drawer__bar span { display: block; height: 1px; background: var(--ink); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); transition: transform .8s var(--ease); }
.drawer__empty { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 24px; padding: 24px; }
.drawer__empty p { font-family: var(--serif); font-size: 44px; line-height: 1; }
.drawer__empty div { display: flex; gap: 24px; font-size: 14px; }
.drawer__lines { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.drawer.is-busy .drawer__lines { opacity: .6; transition: opacity .2s; }
.cart-line { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 16px; padding: 20px 24px; border-top: 1px solid var(--line-soft); transition: opacity .35s, transform .4s var(--ease); }
.cart-line.is-removing { opacity: 0; transform: translateX(24px); }
.cart-line .media { aspect-ratio: 4 / 5; }
.cart-line__body { display: flex; flex-direction: column; justify-content: space-between; gap: 12px; min-width: 0; }
.cart-line__top { display: flex; justify-content: space-between; gap: 12px; }
.cart-line__name { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.cart-line__opt { font-size: 12px; color: var(--muted); }
.cart-line__price { font-size: 14px; font-variant-numeric: tabular-nums; }
.cart-line__bottom { display: flex; justify-content: space-between; align-items: center; }
.qty { display: flex; align-items: center; border: 1px solid rgba(18, 19, 21, .22); height: 36px; }
.qty button { width: 36px; height: 36px; background: none; border: 0; font-size: 15px; color: var(--ink); cursor: pointer; }
.qty button[disabled] { color: var(--disabled); cursor: default; }
.qty span { width: 24px; text-align: center; font-size: 13px; font-variant-numeric: tabular-nums; }
.cart-line__remove { padding: 10px 0; font-size: 12px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.cart-rec { margin: 8px 24px 24px; padding-top: 18px; border-top: 1px solid var(--line-soft); display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.cart-rec .media { aspect-ratio: 4 / 5; }
.cart-rec__text { display: flex; flex-direction: column; gap: 3px; font-size: 13px; }
.cart-rec__text .eyebrow { font-size: 10px; }
.drawer__foot { flex: none; padding: 20px 24px 24px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.drawer__sub { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; }
.drawer__sub .serif { font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; }
.drawer__note { font-size: 12px; color: var(--muted); }
.drawer__assure { font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); text-align: center; }

/* Page-change curtain */
.curtain { position: fixed; inset: 0; z-index: 100; background: var(--ink); display: flex; align-items: center; justify-content: center; pointer-events: none; transform: translateY(-100%); }
.curtain.is-in { transform: translateY(0); }
.curtain.is-anim { transition: transform .6s var(--ease-io); }
.curtain .logo { color: var(--on-dark); }
.curtain .logo-svg { display: block; height: 40px; width: auto; } /* full size at every width (header logo shrinks on phones) */

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink); color: #D3D6DA; padding: clamp(72px, 8vw, 120px) var(--gutter) 24px; overflow: hidden; }
.site-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 56px 48px; }
.site-footer__tag { max-width: 380px; font-family: var(--serif); font-size: clamp(28px, 2.6vw, 40px); line-height: 1.1; color: var(--on-dark); }
.site-footer__cols { flex: 1 1 560px; max-width: 860px; display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); gap: 40px 28px; }
.site-footer__col { display: flex; flex-direction: column; gap: 10px; }
.site-footer__col .eyebrow { color: var(--on-dark-faint); margin-bottom: 6px; }
.site-footer__col a { align-self: flex-start; font-size: 14px; color: #D3D6DA; }
.site-footer__col a:hover { color: var(--on-dark); }
.site-footer__col ul { list-style: none; margin: 0; padding: 0; display: contents; }
.site-footer__col li { display: contents; }
.site-footer__word { margin-top: clamp(64px, 9vw, 140px); color: var(--on-dark); line-height: 0; }
.site-footer__word .logo-svg { display: block; width: 75%; height: auto; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: clamp(28px, 3vw, 44px); padding-top: 18px; border-top: 1px solid rgba(240, 241, 242, .14); font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--on-dark-faint); }
.site-footer__bottom a { color: var(--on-dark-faint); }

/* ==========================================================================
   Product card
   ========================================================================== */
.pcard { display: flex; flex-direction: column; gap: 14px; width: 100%; color: var(--ink); }
.pcard__media { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--panel); }
.pcard__link { position: absolute; inset: 0; display: block; }
.pcard__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease), opacity .6s; }
.pcard__img--alt { opacity: 0; }
.pcard__ph { position: absolute; inset: 0; background: var(--hatch-l); transition: transform 1.4s var(--ease); }
.pcard__ph--alt { background: var(--hatch-m); opacity: 0; transition: opacity .6s, transform 1.4s var(--ease); }
.pcard__label { position: absolute; left: 12px; top: 12px; right: 64px; font-family: var(--mono); font-size: 10px; line-height: 1.5; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pcard__img:not([src*="/ph-"]) ~ .pcard__label { display: none; }
.pcard__save { position: absolute; top: 6px; right: 6px; padding: 8px; background: none; border: 0; cursor: pointer; font-size: 12px; color: var(--ink); opacity: 0; transition: opacity .35s; text-underline-offset: 3px; }
.pcard__save.is-saved { opacity: 1; text-decoration: underline; }
.pcard__bar { position: absolute; left: 8px; right: 8px; bottom: 8px; height: 44px; display: flex; background: var(--bg); color: var(--ink); transform: translateY(calc(100% + 12px)); transition: transform .55s var(--ease-mag), background-color .3s, color .3s; }
.pcard__bar.is-added { background: var(--ink); color: var(--bg); }
.pcard__main { flex: 1; border: 0; background: none; color: inherit; font-size: 13px; letter-spacing: .01em; cursor: pointer; }
.pcard__opts { flex: 1; display: none; align-items: stretch; min-width: 0; }
.pcard__bar.is-picking .pcard__main { display: none; }
.pcard__bar.is-picking .pcard__opts { display: flex; }
.pcard__opt { flex: 1; min-width: 0; border: 0; background: none; padding: 0 2px; font-size: 12px; color: var(--ink); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard__opt:hover { background-color: rgba(18, 19, 21, .06); }
.pcard__opt[disabled] { color: var(--disabled); text-decoration: line-through; cursor: not-allowed; }
.pcard__meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; color: var(--ink); }
.pcard__name { display: flex; flex-direction: column; gap: 4px; min-width: 0; transition: transform .5s var(--ease); font-size: 14px; }
.pcard__sub { font-size: 12px; color: var(--muted); opacity: 0; transition: opacity .4s; }
.pcard__price { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 14px; font-variant-numeric: tabular-nums; }
.pcard__tag { font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

@media (hover: hover) and (min-width: 760px) {
  .pcard:hover .pcard__img, .pcard:hover .pcard__ph { transform: scale(1.04); }
  .pcard:hover .pcard__img--alt, .pcard:hover .pcard__ph--alt { opacity: 1; }
  .pcard:hover .pcard__save { opacity: 1; }
  .pcard:hover .pcard__bar, .pcard:focus-within .pcard__bar { transform: translateY(0); }
  .pcard:hover .pcard__sub { opacity: 1; }
  .pcard:hover .pcard__name { transform: translateX(4px); }
}
@media (hover: none), (max-width: 759px) {
  .pcard__save { opacity: 1; }
  .pcard__bar { transform: translateY(0); }
}

/* ---------------------------------------------------------------- Responsive chrome */

@media (max-width: 759px) {
  .mega { display: none; }

}

@media (max-width: 550px) {
  .logo--svg .logo-svg { display: block; height: 24px; width: auto; }

}

@media (max-width: 440px) {
  .logo--svg .logo-svg { display: block; height: 20px; width: auto; }

}