/* Tan & Co — design system */
@font-face { font-family: "Cormorant Garamond"; src: url(/assets/fonts/cormorant-garamond-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url(/assets/fonts/cormorant-garamond-latin-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url(/assets/fonts/cormorant-garamond-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url(/assets/fonts/cormorant-garamond-latin-500-italic.woff2) format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url(/assets/fonts/cormorant-garamond-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url(/assets/fonts/inter-latin-wght-normal.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --ivory: #FAF6EF;
  --espresso: #33241C;
  --gulf-tan: #C08B52;
  --onyx: #1A1A1A;
  --harbor-navy: #1F3A5F;
  --bordeaux: #6E1B2E;
  --coral: #E1735F;
  /* derived tints (not new colours — Espresso / Tan at reduced strength) */
  --line: rgba(51, 36, 28, .14);
  --line-strong: rgba(51, 36, 28, .28);
  --muted: rgba(51, 36, 28, .66);
  --paper: #F3EDE3;           /* ivory, one step deeper, for image wells */
  --tan-deep: #A87440;        /* hover state of gulf-tan */
  --serif: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ivory); color: var(--espresso); font: 400 15px/1.65 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; letter-spacing: -.005em; margin: 0; }
h1 { font-size: clamp(38px, 5vw, 64px); }
h2 { font-size: clamp(30px, 3.4vw, 44px); }
h3 { font-size: 24px; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.label { font: 500 11px/1.2 var(--sans); letter-spacing: .22em; text-transform: uppercase; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 0; background: var(--espresso); color: var(--ivory); padding: 8px 14px; z-index: 99; }
.skip:focus { left: 8px; }
:focus-visible { outline: 1.5px solid var(--gulf-tan); outline-offset: 3px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 30px;
  background: var(--gulf-tan); color: var(--ivory); border: 1px solid var(--gulf-tan); border-radius: 0; cursor: pointer;
  font: 500 12px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; transition: background .25s, border-color .25s, color .25s; }
.btn:hover { background: var(--tan-deep); border-color: var(--tan-deep); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--espresso); border-color: var(--espresso); }
.btn-ghost:hover { background: var(--espresso); color: var(--ivory); border-color: var(--espresso); }
.btn-block { width: 100%; }
.link { color: var(--gulf-tan); border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; background: none; border: 0; cursor: pointer; position: relative; color: var(--espresso); }

/* Announcement */
.announce { background: var(--onyx); color: var(--ivory); text-align: center; }
.announce p { margin: 0; padding: 10px 16px; font: 400 11.5px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
/* Onyx block text: ivory, the only exception to Espresso — it's the background inverted, not a second near-black */

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--ivory); border-bottom: 1px solid var(--line); }
.header-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding-top: 14px; padding-bottom: 6px; }
.secondary-nav { display: flex; gap: 26px; }
.secondary-nav a { font: 400 11px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); transition: color .2s; }
.secondary-nav a:hover { color: var(--espresso); }
.logo img { width: clamp(150px, 16vw, 210px); height: auto; }
.header-actions { justify-self: end; display: flex; gap: 2px; }
.menu-toggle { display: none; }
.cart-count { position: absolute; top: 5px; right: 3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--gulf-tan); color: var(--ivory); font: 600 10px/17px var(--sans); text-align: center; }

.main-nav ul { list-style: none; margin: 0 auto; display: flex; justify-content: center; gap: clamp(22px, 3.2vw, 48px); }
.nav-link { display: block; padding: 14px 0 16px; font: 500 12px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; position: relative; }
.nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 10px; height: 1px; background: var(--gulf-tan); transform: scaleX(0); transition: transform .3s var(--ease); }
.nav-item:hover .nav-link::after, .nav-item:focus-within .nav-link::after { transform: scaleX(1); }

/* Mega menu — full width, sub-families as columns */
.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--ivory); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .22s var(--ease), transform .22s var(--ease), visibility 0s .22s; box-shadow: 0 30px 40px -30px rgba(51,36,28,.18); }
.nav-item.has-mega:hover .mega, .nav-item.has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: none; transition-delay: .08s, .08s, 0s; }
.mega-inner { display: grid; grid-template-columns: 1fr 260px; gap: 48px; padding-top: 38px; padding-bottom: 44px; }
.mega-cols { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px; }
.mega-head { display: block; font: 500 20px/1.2 var(--serif); margin-bottom: 14px; }
.mega-head:hover { color: var(--gulf-tan); }
.mega-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; justify-content: start; }
.mega-col li a { font-size: 13.5px; color: var(--muted); transition: color .2s; }
.mega-col li a:hover { color: var(--espresso); }
.mega-tiles .mega-col { border: 1px solid var(--line); padding: 26px 22px; min-height: 120px; display: flex; align-items: flex-end; transition: border-color .2s; }
.mega-tiles .mega-col:hover { border-color: var(--gulf-tan); }
.mega-tiles .mega-head { margin: 0; font-size: 24px; }
.mega-feature { background: var(--espresso); color: var(--ivory); padding: 26px; display: flex; flex-direction: column; justify-content: space-between; min-height: 200px; }
.mega-feature .label { color: rgba(250,246,239,.7); }
.mega-feature-stamp { font: 500 54px/1 var(--serif); letter-spacing: .12em; background: linear-gradient(160deg, #E9CE98 0%, #C08B52 45%, #F3DDAE 60%, #A87440 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mega-feature-cta { font-size: 13px; letter-spacing: .04em; }

/* Mobile menu */
.mobile-menu { position: fixed; inset: 0; z-index: 60; background: var(--ivory); overflow-y: auto; padding: 0 20px 40px; }
.mobile-menu-head { display: flex; justify-content: space-between; align-items: center; height: 64px; border-bottom: 1px solid var(--line); }
.mobile-list { list-style: none; margin: 0; padding: 0; }
.mobile-list > li { border-bottom: 1px solid var(--line); }
.mobile-list summary, .mobile-top { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; font: 500 26px/1.1 var(--serif); cursor: pointer; list-style: none; }
.mobile-list summary::-webkit-details-marker { display: none; }
.mobile-list summary::after { content: "+"; font: 300 22px/1 var(--sans); color: var(--muted); }
.mobile-list details[open] summary::after { content: "–"; }
.mobile-all { display: block; margin: 0 0 16px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--gulf-tan); }
.mobile-col { margin-bottom: 18px; }
.mobile-col .mega-head { font-size: 18px; margin-bottom: 8px; }
.mobile-col ul { list-style: none; padding: 0 0 0 2px; margin: 0; display: grid; gap: 8px; }
.mobile-col li a { color: var(--muted); font-size: 14.5px; }
.mobile-secondary { display: flex; gap: 22px; padding-top: 24px; }
.mobile-secondary a { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

/* Breadcrumb */
.crumbs { font-size: 12px; letter-spacing: .06em; color: var(--muted); padding: 22px 0 0; }
.crumbs a:hover { color: var(--espresso); }
.crumbs span { margin: 0 8px; opacity: .5; }

/* ---------- Product page ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); padding-top: 24px; padding-bottom: 96px; align-items: start; }
.gallery { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 16px; position: sticky; top: 150px; }
.thumbs { display: flex; flex-direction: column; gap: 10px; }
.thumbs button { padding: 0; border: 1px solid transparent; background: var(--paper); cursor: pointer; aspect-ratio: 1; transition: border-color .2s; }
.thumbs button[aria-current="true"] { border-color: var(--espresso); }
.stage { position: relative; background: var(--paper); aspect-ratio: 1; overflow: hidden; }
.stage img { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s var(--ease); }
.stage-overlay { position: absolute; pointer-events: none; font-family: var(--serif); transform: translate(-50%, -50%); white-space: nowrap; }

.buybox { max-width: 500px; }
.buybox .label { color: var(--muted); }
.buybox h1 { font-size: clamp(34px, 3.6vw, 48px); margin: 12px 0 10px; }
.price { font: 400 17px/1 var(--sans); letter-spacing: .02em; }
.status-sold { display: inline-block; margin-left: 12px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--bordeaux); }
.lede { margin: 22px 0 0; font-size: 15.5px; color: var(--muted); max-width: 46ch; }
.opt { margin-top: 28px; }
.opt-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.opt-head .label { color: var(--espresso); }
.opt-head .val { font-size: 13.5px; color: var(--muted); }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer; position: relative; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.swatch::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid transparent; transition: border-color .2s; }
.swatch[aria-checked="true"]::after { border-color: var(--espresso); }
.swatch.is-sold::before { content: ""; position: absolute; left: 50%; top: 3px; bottom: 3px; width: 1px; background: var(--ivory); transform: rotate(45deg); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { padding: 10px 16px; border: 1px solid var(--line-strong); background: none; cursor: pointer; font-size: 13px; transition: border-color .2s, background .2s; }
.pill[aria-checked="true"] { border-color: var(--espresso); background: var(--espresso); color: var(--ivory); }
.size-note { margin-top: 22px; font-size: 13.5px; }

/* Personalization block */
.stamp { margin-top: 34px; border-top: 1px solid var(--line); padding-top: 28px; }
.stamp-head { display: flex; justify-content: space-between; align-items: baseline; }
.stamp-head h2 { font-size: 28px; }
.fee { font-size: 13px; color: var(--gulf-tan); letter-spacing: .04em; }
.stamp-toggle { display: flex; align-items: center; gap: 10px; margin: 16px 0 0; font-size: 14px; cursor: pointer; }
.stamp-toggle input { accent-color: var(--gulf-tan); width: 16px; height: 16px; }
.stamp-body { display: grid; gap: 18px; margin-top: 20px; }
.stamp-body[hidden] { display: none; }
.field label { display: block; margin-bottom: 8px; }
.input { width: 100%; height: 50px; padding: 0 16px; border: 1px solid var(--line-strong); background: transparent; border-radius: 0; font-size: 16px; letter-spacing: .06em; }
.input:focus { outline: none; border-color: var(--espresso); }
.counter { float: right; font-size: 12px; color: var(--muted); }
.finishes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.finish { padding: 12px 8px; border: 1px solid var(--line-strong); background: none; cursor: pointer; font-size: 12.5px; text-align: center; display: grid; gap: 8px; justify-items: center; }
.finish i { width: 22px; height: 22px; border-radius: 50%; display: block; }
.finish[data-finish="hot-stamp"] i { background: radial-gradient(circle at 35% 30%, #6a4a36, #2a1c15); }
.finish[data-finish="gold"] i { background: linear-gradient(135deg, #F3DDAE, #C08B52 50%, #8C5F2E); }
.finish[data-finish="silver"] i { background: linear-gradient(135deg, #FFFFFF, #B9BCC0 50%, #7E8388); }
.finish[aria-checked="true"] { border-color: var(--espresso); }

/* Preview: framed leather swatch beside the untouched photo */
.preview { display: grid; grid-template-columns: 1fr; gap: 10px; }
.preview-frame { position: relative; aspect-ratio: 16 / 9; border: 1px solid var(--line-strong); padding: 10px; background: var(--ivory); }
.leather { position: relative; width: 100%; height: 100%; display: grid; place-items: center; background-color: var(--leather, #7A4A2A); overflow: hidden;
  background-image:
    radial-gradient(ellipse at 30% 20%, rgba(255,255,255,.10), transparent 60%),
    radial-gradient(ellipse at 80% 90%, rgba(0,0,0,.22), transparent 55%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.35'/></svg>");
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.18), inset 0 0 40px rgba(0,0,0,.25); }
.leather::after { content: ""; position: absolute; inset: 9px; border: 1px dashed rgba(255,255,255,.22); pointer-events: none; }
.stamp-text { font: 500 clamp(30px, 4.2vw, 46px)/1 var(--serif); letter-spacing: .14em; text-align: center; padding: 0 12px; max-width: 100%; overflow-wrap: anywhere; }
.stamp-text.is-empty { opacity: .35; }
.fx-gold { background: linear-gradient(170deg, #FBEBC3 0%, #E3B96E 28%, #B4803F 52%, #F1D496 70%, #9A6A33 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,.35)); }
.fx-silver { background: linear-gradient(170deg, #FFFFFF 0%, #D7DADE 30%, #8F959B 52%, #F2F3F5 70%, #7C8186 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,.35)); }
.fx-hot-stamp { color: rgba(0,0,0,.42); text-shadow: 0 1px 0 rgba(255,255,255,.16), 0 -1px 1px rgba(0,0,0,.45); }
.preview-note { font-size: 12px; color: var(--muted); }

.buy-row { margin-top: 30px; display: grid; gap: 12px; }
.total-line { display: flex; justify-content: space-between; font-size: 14px; }
.total-line strong { font-weight: 500; }
.assurances { margin: 26px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 13px; color: var(--muted); }
.assurances li::before { content: "—"; color: var(--gulf-tan); margin-right: 10px; }

.details { margin-top: 38px; border-top: 1px solid var(--line); }
.details details { border-bottom: 1px solid var(--line); }
.details summary { padding: 18px 0; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.details summary::-webkit-details-marker { display: none; }
.details summary::after { content: "+"; color: var(--muted); }
.details details[open] summary::after { content: "–"; }
.details .body { padding: 0 0 20px; font-size: 14.5px; color: var(--muted); }
.details .body ul { margin: 0; padding-left: 18px; }

/* Photo-needed gap: deliberately loud */
.photo-needed { display: grid; place-content: center; text-align: center; gap: 8px; width: 100%; height: 100%; min-height: 180px; aspect-ratio: 1;
  border: 3px dashed var(--espresso); background: var(--ivory); color: var(--espresso); font: 700 13px/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.photo-needed small { font: 400 12px/1.2 ui-monospace, Menlo, monospace; letter-spacing: 0; text-transform: none; }

/* Product card */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 22px; }
.card { display: block; }
.card-media { position: relative; aspect-ratio: 1; background: var(--paper); overflow: hidden; }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s var(--ease), transform .8s var(--ease); }
.card-media img.alt { opacity: 0; }
.card:hover .card-media img.alt { opacity: 1; }
.card:hover .card-media img { transform: scale(1.02); }
.card-body { padding-top: 14px; display: grid; gap: 4px; }
.card-name { font: 500 20px/1.2 var(--serif); }
.card-meta { font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; }
.card-dots { display: flex; gap: 5px; margin-top: 6px; }
.card-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); }
.badge { position: absolute; top: 12px; left: 12px; z-index: 2; padding: 5px 9px; font: 500 10px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; background: var(--bordeaux); color: var(--ivory); }

/* Section rhythm */
.section { padding-top: clamp(64px, 9vw, 120px); padding-bottom: clamp(64px, 9vw, 120px); }
.section-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 40px; gap: 24px; }
.section-head .label { color: var(--muted); display: block; margin-bottom: 12px; }

/* Cart drawer */
.drawer-scrim { position: fixed; inset: 0; background: rgba(26,26,26,.35); z-index: 70; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); background: var(--ivory); z-index: 71; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .35s var(--ease); }
.drawer.is-open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; border-bottom: 1px solid var(--line); }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 24px; }
.drawer-foot { padding: 20px 24px 24px; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.drawer-foot .row { display: flex; justify-content: space-between; }
.line { display: grid; grid-template-columns: 80px 1fr auto; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.line img, .line .ph { width: 80px; height: 80px; object-fit: cover; background: var(--paper); }
.line .ph { border: 2px dashed var(--espresso); }
.line-name { font: 500 18px/1.2 var(--serif); }
.line-meta { color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.line-stamp { margin-top: 4px; font-size: 12.5px; }
.line-stamp b { font-family: var(--serif); font-size: 15px; font-weight: 500; letter-spacing: .08em; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); margin-top: 8px; }
.qty button { width: 28px; height: 28px; background: none; border: 0; cursor: pointer; }
.qty span { min-width: 22px; text-align: center; }
.remove { background: none; border: 0; padding: 0; font-size: 12px; color: var(--muted); text-decoration: underline; cursor: pointer; }
.empty { padding: 40px 0; text-align: center; color: var(--muted); }

/* Footer */
.site-footer { background: var(--onyx); color: var(--ivory); margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px; padding-top: 72px; padding-bottom: 56px; }
.footer-brand p { margin-top: 18px; max-width: 28ch; font-size: 13.5px; opacity: .7; }
.site-footer h4 { font: 500 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; opacity: .55; margin: 6px 0 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 13.5px; }
.site-footer ul a { opacity: .85; transition: opacity .2s, color .2s; }
.site-footer ul a:hover { opacity: 1; color: var(--gulf-tan); }
.footer-base { display: flex; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 28px; border-top: 1px solid rgba(250,246,239,.12); font-size: 12px; opacity: .6; }

/* Responsive */
@media (max-width: 1080px) {
  .mega-inner { grid-template-columns: 1fr; }
  .mega-feature { display: none; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .announce p { font-size: 10.5px; letter-spacing: .1em; }
  .main-nav, .secondary-nav { display: none; }
  .menu-toggle { display: inline-grid; justify-self: start; margin-left: -10px; }
  .header-top { padding-top: 10px; padding-bottom: 10px; }
  .pdp { grid-template-columns: 1fr; padding-top: 12px; }
  .gallery { position: static; grid-template-columns: 1fr; margin: 0 calc(var(--gutter) * -1); }
  .thumbs { order: 2; flex-direction: row; overflow-x: auto; padding: 0 var(--gutter); }
  .thumbs button { width: 62px; flex-shrink: 0; }
  .buybox { max-width: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 14px; }
  .card-name { font-size: 17px; }
  .footer-grid { grid-template-columns: 1fr 1fr; padding-top: 52px; }
  .footer-base { flex-direction: column; }
}

/* Listing */
.listing-head { padding: 36px 0 44px; display: grid; gap: 10px; }
.filters { display: flex; gap: 22px; margin-top: 14px; }
.filters a { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); padding-bottom: 4px; border-bottom: 1px solid transparent; }
.filters a[aria-current="true"] { color: var(--espresso); border-color: var(--gulf-tan); }
[data-grid] { padding-bottom: 110px; }
.card[hidden] { display: none; }

/* Cart page / simple pages */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; padding-bottom: 110px; align-items: start; }
.summary { border: 1px solid var(--line); padding: 28px; display: grid; gap: 14px; position: sticky; top: 150px; }
.summary .row { display: flex; justify-content: space-between; font-size: 14px; }
.summary .total { border-top: 1px solid var(--line); padding-top: 14px; font-size: 16px; }
.summary .link { justify-self: center; font-size: 13px; }
.narrow-page { max-width: 760px; padding-top: 90px; padding-bottom: 120px; display: grid; gap: 18px; }
@media (max-width: 860px) { .cart-layout { grid-template-columns: 1fr; } .summary { position: static; } }

/* Global fixes */
[hidden] { display: none !important; }
/* Supplier photos are shot on pure white: multiply lets the white fall into our paper tone so images sit in the page */
.stage img, .thumbs img, .card-media img, .line img { mix-blend-mode: multiply; }
.announce .short { display: none; }
@media (max-width: 860px) { .announce .long { display: none; } .announce .short { display: inline; } }

/* Header v2: company links sit small, right-aligned under the icons */
.header-right { justify-self: end; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.header-right .secondary-nav { gap: 14px; margin-right: 10px; }
.header-right .secondary-nav a { font-size: 9.5px; letter-spacing: .16em; }
@media (max-width: 860px) { .header-left { display: none; } }

/* Foil v2: real foil is one even metallic colour — no gradient, no shading */
.fx-gold, .fx-silver { background: none; -webkit-background-clip: border-box; background-clip: border-box; filter: none; text-shadow: none; }
.fx-gold { color: #D8B46A; }
.fx-silver { color: #D3D6DA; }
.mega-feature-stamp { background: none; color: #D8B46A; }
.finish[data-finish="gold"] i { background: #D8B46A; }
.finish[data-finish="silver"] i { background: #D3D6DA; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }

/* ================= Pages v1 ================= */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lede-sm { font-size: 16px; max-width: 54ch; }
.btn-light { background: transparent; color: var(--ivory); border-color: var(--ivory); }
.btn-light:hover { background: var(--ivory); color: var(--espresso); border-color: var(--ivory); }
.linklike { background: none; border: 0; padding: 0; color: var(--gulf-tan); border-bottom: 1px solid currentColor; cursor: pointer; font: inherit; }
.form-ok { font-size: 14px; color: var(--espresso); margin: 12px 0 0; }
.draft-note { display: inline-block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--bordeaux); border: 1px solid var(--bordeaux); padding: 4px 8px; }
.prose p { font-size: 16px; line-height: 1.75; }

/* Hero */
.hero { position: relative; min-height: min(86vh, 820px); display: grid; align-items: end; overflow: hidden; background: var(--espresso); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(26,20,16,.72) 0%, rgba(26,20,16,.35) 42%, rgba(26,20,16,0) 70%), linear-gradient(0deg, rgba(26,20,16,.45), rgba(26,20,16,0) 45%); }
.hero-copy { position: relative; z-index: 1; width: 100%; padding-bottom: clamp(56px, 9vh, 110px); color: var(--ivory); }
.hero-copy .label { color: rgba(250,246,239,.85); }
.hero-copy h1 { font-size: clamp(52px, 8vw, 112px); font-weight: 400; line-height: .98; margin: 18px 0 34px; letter-spacing: -.01em; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* Marquee */
.marquee { border-bottom: 1px solid var(--line); overflow: hidden; background: var(--ivory); }
.marquee-track { display: flex; gap: 34px; width: max-content; padding: 18px 0; animation: marquee 38s linear infinite; }
.marquee span { font: 500 11.5px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; white-space: nowrap; }
.marquee i { color: var(--gulf-tan); font-style: normal; }
@keyframes marquee { to { transform: translateX(-33.333%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* Category tiles */
.cat-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.cat-media { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper); }
.cat-media img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; transition: transform .8s var(--ease); }
.cat-tile:hover img { transform: scale(1.04); }
.cat-label { display: block; margin-top: 14px; font: 500 22px/1.1 var(--serif); }

/* Home personalization block */
.pz-block { background: var(--espresso); color: var(--ivory); padding: clamp(72px, 10vw, 130px) 0; }
.pz-block-inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.pz-block .label { color: rgba(250,246,239,.7); }
.pz-block h2 { font-size: clamp(40px, 4.6vw, 62px); margin: 14px 0 18px; }
.pz-block p { opacity: .8; max-width: 40ch; }
.pz-block .input { color: var(--ivory); border-color: rgba(250,246,239,.35); }
.pz-block .input:focus { border-color: var(--ivory); }
.pz-block .input::placeholder { color: rgba(250,246,239,.4); }
.input-lg { height: 60px; font: 500 26px/1 var(--serif); letter-spacing: .14em; }
.finish-toggle { display: flex; gap: 8px; margin: 18px 0 26px; }
.finish-toggle button { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; background: none; border: 1px solid rgba(250,246,239,.3); color: var(--ivory); cursor: pointer; font-size: 13px; }
.finish-toggle button[aria-checked="true"] { border-color: var(--ivory); }
.dot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; }
.dot.gold { background: #D8B46A; } .dot.silver { background: #D3D6DA; }
.pz-block-swatches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pz-block-swatches figure { margin: 0; }
.pz-block-swatches .preview-frame { aspect-ratio: 3 / 4; background: transparent; border-color: rgba(250,246,239,.18); }
.pz-block-swatches figcaption { margin-top: 10px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; opacity: .6; }
.pz-block-swatches .stamp-text { font-size: clamp(26px, 3vw, 40px); }

.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 24px; }

/* Gift strip */
.gift-strip { background: var(--paper); padding: 22px 0; }
.gift-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gift { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 20px; background: var(--ivory); padding: 14px; transition: box-shadow .3s; }
.gift:hover { box-shadow: 0 0 0 1px var(--gulf-tan); }
.gift img { width: 110px; height: 110px; object-fit: cover; mix-blend-mode: multiply; background: var(--paper); }
.gift strong { display: block; font: 500 28px/1.1 var(--serif); margin-top: 6px; }

/* Founder */
.founder { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.founder h2 { margin: 14px 0 18px; }
.founder h2 em, .about-hero h1 em { font-style: italic; color: var(--gulf-tan); }
.founder p { color: var(--muted); max-width: 46ch; }

/* Signup */
.signup { border-top: 1px solid var(--line); padding: clamp(64px, 8vw, 100px) 0; }
.signup-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; }
.signup h2 { margin: 12px 0 10px; }
.capture { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.capture .form-ok { grid-column: 1 / -1; }

/* Shop */
.family-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.family-chips a, .family-chips button { padding: 9px 16px; border: 1px solid var(--line-strong); background: none; cursor: pointer; font-size: 13px; color: var(--espresso); }
.family-chips [aria-current="true"] { background: var(--espresso); color: var(--ivory); border-color: var(--espresso); }
.family-section { padding-bottom: 40px; }
.family-section .section-head { border-top: 1px solid var(--line); padding-top: 40px; margin-bottom: 16px; }
.group-block { margin-bottom: 64px; }
.group-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 22px; }
.group-head h3 { font-size: 26px; }
.group-head .link { font-size: 13px; }

/* Gifts / collections */
.tile-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.tile { display: block; }
.tile img { aspect-ratio: 4/5; object-fit: cover; width: 100%; background: var(--paper); mix-blend-mode: multiply; }
.tile span { display: block; margin-top: 12px; font: 500 24px/1.1 var(--serif); }
.gift-corp { margin: 48px 0 110px; font-size: 15px; }
.coll-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding-bottom: 110px; }
.coll-card { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; color: var(--ivory); }
.coll-card .coll-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.coll-card-body { position: absolute; left: 24px; bottom: 24px; display: grid; gap: 8px; }
.coll-name { font: 500 40px/1 var(--serif); }
.coll-hero { position: relative; min-height: min(80vh, 760px); display: grid; align-items: center; overflow: hidden; color: var(--ivory); }
.coll-hero .coll-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.coll-hero-copy { position: relative; max-width: var(--wrap); width: 100%; }
.coll-hero-copy > * { max-width: 560px; }
.coll-hero h1 { font-size: clamp(64px, 9vw, 128px); font-weight: 400; margin: 16px 0 12px; }
.coll-hero p { font-size: 18px; opacity: .88; }
.coming { display: block; margin: 26px 0 22px; font: 500 12px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: #D8B46A; }
.coll-hero .input { color: var(--ivory); border-color: rgba(250,246,239,.45); }
.coll-hero .input::placeholder { color: rgba(250,246,239,.55); }
.coll-hero .form-ok { color: var(--ivory); }

/* Forms / split pages */
.page-split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); padding-top: 72px; padding-bottom: 120px; align-items: start; }
.page-split h1 { margin: 14px 0 18px; }
.form-card { border: 1px solid var(--line); padding: clamp(22px, 3vw, 36px); display: grid; gap: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid label { display: grid; gap: 7px; font-size: 12px; letter-spacing: .08em; color: var(--muted); }
.form-grid .full { grid-column: 1 / -1; }
textarea.input { height: auto; padding: 14px 16px; resize: vertical; letter-spacing: 0; }
select.input { appearance: none; background: transparent url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path d='M1 1l5 5 5-5' fill='none' stroke='%2333241C'/></svg>") no-repeat right 16px center; }
.contact-list { display: grid; grid-template-columns: 90px 1fr; gap: 14px 18px; margin-top: 30px; align-items: baseline; }
.contact-list dd { margin: 0; }

/* About */
.about-hero { padding: 90px 0 50px; }
.about-hero h1 { font-size: clamp(44px, 6vw, 84px); font-weight: 400; margin-top: 16px; max-width: 16ch; }
.about-cols { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.about-figure { margin: 0; position: sticky; top: 150px; }
.about-figure figcaption { font-size: 12px; color: var(--muted); margin-top: 10px; }
.about-drop { font: 400 26px/1.45 var(--serif) !important; }
.signature { font-family: var(--serif); font-style: italic; font-size: 20px !important; margin-top: 28px; }
.about-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; padding: 100px 0 60px; border-bottom: 1px solid var(--line); }
.about-pillars h3 { margin: 12px 0 10px; }
.about-pillars p { color: var(--muted); font-size: 14.5px; }
.about-cta { text-align: center; padding: 90px 0 120px; }
.about-cta h2 { font-size: clamp(38px, 5vw, 64px); margin-bottom: 30px; }
.about-cta .btn { margin: 0 6px 10px; }

/* Personalization page */
.pz-head { padding: 60px 0 30px; }
.pz-head h1 { margin: 14px 0 12px; }
.stepper { list-style: none; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); }
.stepper li { padding: 16px 0; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); cursor: pointer; border-top: 2px solid transparent; margin-top: -1px; display: flex; gap: 10px; align-items: center; }
.stepper li span { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line-strong); display: inline-grid; place-items: center; font-size: 11px; letter-spacing: 0; }
.stepper li.is-on { color: var(--espresso); border-top-color: var(--gulf-tan); }
.stepper li.is-on span { background: var(--gulf-tan); border-color: var(--gulf-tan); color: var(--ivory); }
.stepper li.is-done span { background: var(--espresso); border-color: var(--espresso); color: var(--ivory); }
.pz-step { padding-bottom: 110px; }
.pz-step h2 { font-size: 34px; margin-bottom: 24px; }
.pz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 22px 16px; margin-top: 26px; }
.pz-card { display: grid; gap: 6px; text-align: left; background: none; border: 1px solid transparent; padding: 0 0 10px; cursor: pointer; font-size: 13px; }
.pz-card img, .pz-card .photo-needed { aspect-ratio: 1; width: 100%; object-fit: cover; background: var(--paper); mix-blend-mode: multiply; min-height: 0; }
.pz-card .card-name { font-size: 18px; }
.pz-card:hover .card-name, .pz-card.is-on .card-name { color: var(--gulf-tan); }
.pz-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.pz-photo { max-width: 560px; }
.pz-name { font: 500 30px/1.1 var(--serif); margin: 0 0 6px; }
.pz-nav { display: flex; gap: 10px; margin-top: 34px; }
.pz-final { display: grid; grid-template-columns: 1fr 1fr 0.8fr; gap: 28px; align-items: start; }
.preview-frame.tall { aspect-ratio: 1; }
.pz-summary { display: grid; grid-template-columns: 90px 1fr; gap: 12px 14px; margin: 0; font-size: 14px; }
.pz-summary dt { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.pz-summary dd { margin: 0; }
.stamp-val { font: 500 20px/1 var(--serif); letter-spacing: .1em; }
.pz-confirm { max-width: 520px; display: grid; gap: 18px; }

/* Responsive for pages */
@media (max-width: 1080px) {
  .cat-tiles { grid-template-columns: repeat(3, 1fr); }
  .tile-row { grid-template-columns: repeat(3, 1fr); }
  .pz-final { grid-template-columns: 1fr 1fr; }
  .pz-summary { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .hero { min-height: 78vh; }
  .hero::after { background: linear-gradient(0deg, rgba(26,20,16,.8) 0%, rgba(26,20,16,.2) 60%, rgba(26,20,16,0) 100%); }
  .cat-tiles { grid-template-columns: repeat(2, 1fr); }
  .cat-tile:last-child { grid-column: 1 / -1; }
  .cat-tile:last-child .cat-media { aspect-ratio: 2 / 1; }
  .pz-block-inner, .founder, .signup-inner, .page-split, .about-cols, .pz-two, .pz-final { grid-template-columns: 1fr; }
  .pz-block-swatches { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 32px 14px; }
  .gift-row { grid-template-columns: 1fr; }
  .tile-row { grid-template-columns: repeat(2, 1fr); }
  .coll-row { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .about-figure { position: static; }
  .about-pillars { grid-template-columns: 1fr; padding: 60px 0 40px; }
  .stepper li { font-size: 0; letter-spacing: 0; justify-content: center; gap: 0; }
  .stepper li span { font-size: 11px; }
  .capture { grid-template-columns: 1fr; }
  .pz-grid { grid-template-columns: repeat(2, 1fr); }
}

/* v3 — Sinan's review */
.announce, .site-footer { background: var(--espresso); }      /* top banner + footer share the home personalization brown */
.finish-toggle { flex-wrap: wrap; }
.dot.hot { background: #1a120d; box-shadow: inset 0 1px 1px rgba(255,255,255,.25); }
.mega-inner { grid-template-columns: 1fr 200px; }
.mega-feature { background: var(--espresso); min-height: 0; padding: 20px 18px; align-self: start; gap: 6px; text-align: center; align-items: center; }
.mega-feature .label { font-size: 10px; }
.mega-feature-stamp { font-size: 40px; letter-spacing: .12em; margin-top: 10px; }
.mega-feature-note { font-size: 11px; letter-spacing: .08em; opacity: .7; margin-bottom: 12px; }
.mega-feature-cta { font-size: 12px; }
/* Light flat-lay hero */
.hero-light { background: #F2EBE0; align-items: center; }
.hero-light::after { background: linear-gradient(90deg, rgba(242,235,224,.95) 0%, rgba(242,235,224,.7) 26%, rgba(242,235,224,0) 42%); }
.hero-light .hero-img { object-position: 100% 50%; }
.hero-light .hero-copy { color: var(--espresso); padding-bottom: 0; }
.hero-light .hero-copy .label { color: var(--muted); }
@media (max-width: 860px) {
  .hero-light { display: block; min-height: 0; }
  .hero-light::after { display: none; }
  .hero-light .hero-img { position: static; height: auto; aspect-ratio: 4 / 3; object-position: 82% 50%; }
  .hero-light .hero-copy { padding-top: 28px; padding-bottom: 44px; }
  .hero-light .hero-copy h1 { font-size: 52px; margin: 12px 0 24px; }
}

/* v4 — mega-menu images, collection photography, leather hero */
.mega-tiles { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 20px; }
.mega-tiles .mega-col.has-img { border: 0; padding: 0; min-height: 0; display: block; }
.mega-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #fff; border: 1px solid var(--line); margin-bottom: 12px; transition: border-color .2s; }
.mega-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.mega-col.has-img:hover .mega-img { border-color: var(--gulf-tan); }
.mega-col.has-img:hover .mega-img img { transform: scale(1.04); }
.mega-tiles .mega-col.has-img .mega-head { font-size: 20px; }

.coll-photo { object-fit: cover; }
.coll-wash { position: absolute; inset: 0; pointer-events: none; }
.coll-wash-marine { background: linear-gradient(90deg, rgba(31,58,95,.88) 0%, rgba(31,58,95,.55) 45%, rgba(31,58,95,.12) 100%); }
.coll-wash-sports { background: linear-gradient(90deg, rgba(51,36,28,.85) 0%, rgba(51,36,28,.5) 45%, rgba(51,36,28,.1) 100%); }
.coll-wash-christmas { background: linear-gradient(90deg, rgba(110,27,46,.85) 0%, rgba(110,27,46,.5) 45%, rgba(110,27,46,.1) 100%); }
.coll-card .coll-wash { background: linear-gradient(0deg, rgba(26,20,16,.7) 0%, rgba(26,20,16,.1) 55%, rgba(26,20,16,0) 100%); }
.coll-card-body { z-index: 1; }
.coll-hero-copy { z-index: 1; }

/* Home hero: leather desk mat on the right, copy in the empty left half — never overlapping the mat.
   The mat starts at 55% of the image width; the image is sized by width on desktop, so the copy
   column is capped at 46% of the viewport. */
.hero-flat { position: relative; background: #F2EBE0; overflow: hidden; height: min(55.8vw, calc(100vh - 150px)); min-height: 480px; display: flex; align-items: center; }
.hero-flat-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 100% 50%; }
.hero-flat-copy { position: relative; z-index: 1; width: 46vw; padding-left: clamp(24px, 5.5vw, 120px); padding-right: 3vw; box-sizing: border-box; color: var(--espresso); }
.hero-flat-copy .label { color: var(--muted); }
.hero-flat-copy h1 { font-size: clamp(40px, 5vw, 92px); font-weight: 400; line-height: 1.02; letter-spacing: -.01em; margin: 16px 0 30px; }
@media (max-width: 860px) {
  .hero-flat { display: flex; flex-direction: column; height: auto; min-height: 0; }
  .hero-flat-copy { order: 1; width: 100%; padding: 32px var(--gutter) 28px; }
  .hero-flat-copy h1 { font-size: clamp(40px, 11vw, 56px); margin: 12px 0 22px; }
  .hero-flat-img { order: 2; position: static; height: auto; aspect-ratio: 4 / 5; object-position: 100% 50%; }
}
.mega-tiles:not(:has(.mega-col:nth-child(4))) .mega-img { aspect-ratio: 16 / 9; }
