/* Fiteqe storefront.
   One idea carries the design: the tailor's tape. Everything else stays quiet. */

:root {
  --cotton: #f2eadb;
  --paper: #f9f6ef;
  --ink: #0f1e3c;
  --muted: #535b6c;
  --ink-soft: #2a364f;
  --field-line: #b5a789;
  --on-dark-soft: #d6cdb9;
  --chalk: #d8ccb4;
  --chalk-2: #e9dfca;
  --tape: #c9a45c;
  --danger: #b3261e;
  --ok: #1f6b45;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1180px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--cotton);
  color: var(--ink);
  font-family: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

h1, h2, h3 { margin: 0; font-weight: 650; line-height: 1.08; letter-spacing: -0.02em; font-stretch: 116%; }
h1 { font-size: clamp(2.5rem, 8.2vw, 5.4rem); line-height: 1; letter-spacing: -0.03em; font-stretch: 120%; }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--cotton); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }

/* ---- Header ---- */
.announce { background: var(--ink); color: var(--cotton); text-align: center; font-size: 0.9rem; padding: 8px var(--gutter); }
.site-head { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--cotton) 94%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--chalk); }
.head-row { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.wordmark { font-size: 1.6rem; font-weight: 800; font-stretch: 125%; letter-spacing: -0.04em; text-decoration: none; position: relative; padding-bottom: 6px; line-height: 1; }
.wordmark::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background-color: var(--tape);
  background-image: repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 6px);
  background-size: 100% 40%; background-repeat: no-repeat;
}
.nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 32px); font-size: 0.95rem; font-weight: 500; }
.nav a { text-decoration: none; padding: 8px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current='page'] { border-bottom-color: var(--ink); }
.cart-link .count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; margin-left: 4px; border-radius: 11px; background: var(--tape); color: var(--ink); font-size: 0.8rem; font-weight: 700; }
.cart-link .count[hidden] { display: none; }
@media (max-width: 560px) { .nav .long { display: none; } .nav { gap: 14px; font-size: 0.9rem; } }

/* ---- Buttons and links ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border: 1px solid var(--ink); border-radius: 2px;
  background: var(--ink); color: var(--cotton); font: inherit; font-weight: 600; font-stretch: 108%;
  text-decoration: none; cursor: pointer; transition: background 0.15s, color 0.15s;
}
.btn:hover { background: var(--tape); color: var(--ink); }
.btn[disabled] { opacity: 0.5; pointer-events: none; }
.btn-plain { background: transparent; color: var(--ink); }
.btn-plain:hover { background: var(--ink); color: var(--cotton); }
.btn-block { width: 100%; }
.link { font-weight: 600; text-decoration-thickness: 2px; text-decoration-color: var(--tape); }
.link:hover { text-decoration-color: var(--ink); }
.linklike { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; text-decoration: underline; text-decoration-color: var(--tape); text-decoration-thickness: 2px; text-underline-offset: 3px; cursor: pointer; color: inherit; }
.linklike:hover { text-decoration-color: var(--ink); }

/* ---- Hero ---- */
.hero { padding: clamp(40px, 8vw, 96px) 0 0; }
.hero h1 { max-width: 13ch; }
.hero-copy { max-width: 46ch; margin-top: 24px; font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--ink-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-top: 32px; }
.ruler { margin-top: clamp(48px, 8vw, 88px); height: 58px; background: var(--tape); overflow: hidden; border-block: 1px solid var(--ink); }
.ruler svg { width: 100%; height: 100%; }

/* ---- Sections ---- */
.section { padding: clamp(56px, 9vw, 112px) 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: clamp(24px, 4vw, 40px); }
.section-head p { color: var(--muted); max-width: 44ch; }

/* ---- Collection ---- */
.grid { display: grid; gap: clamp(24px, 4vw, 48px) clamp(16px, 3vw, 32px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.product { text-decoration: none; display: block; }
.product .frame { aspect-ratio: 4 / 5; background: var(--chalk-2); overflow: hidden; }
.product .frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
.product:hover .frame img { transform: scale(1.025); }
.product .meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 14px; }
.product .name { font-size: 1.2rem; font-weight: 620; font-stretch: 112%; letter-spacing: -0.01em; }
.product .price { font-weight: 600; white-space: nowrap; }
.product .blurb { color: var(--muted); margin-top: 4px; font-size: 0.97rem; max-width: 38ch; }
.shorts-note { margin-top: clamp(32px, 5vw, 56px); padding-top: 20px; border-top: 1px solid var(--chalk); color: var(--muted); max-width: 60ch; }

/* ---- Statement ---- */
.statement { background: var(--ink); color: var(--cotton); }
.statement p.big { font-size: clamp(1.8rem, 5vw, 3.4rem); font-weight: 600; font-stretch: 112%; line-height: 1.12; letter-spacing: -0.025em; max-width: 20ch; }
.statement p.small { margin-top: 24px; max-width: 48ch; color: var(--on-dark-soft); }

/* ---- Steps ---- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--ink); }
.steps li { display: grid; grid-template-columns: clamp(56px, 10vw, 112px) 1fr; gap: 8px 16px; padding: 24px 0; border-bottom: 1px solid var(--chalk); align-items: baseline; }
.steps .n { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 300; font-stretch: 125%; line-height: 1; letter-spacing: -0.04em; }
.steps h3 { margin-bottom: 4px; }
.steps p { color: var(--muted); max-width: 56ch; }

/* ---- Reviews ---- */
.reviews { columns: 1; column-gap: clamp(24px, 4vw, 56px); }
@media (min-width: 760px) { .reviews { columns: 2; } }
.review { break-inside: avoid; padding: 0 0 28px; margin: 0 0 28px; border-bottom: 1px solid var(--chalk); }
.review blockquote { margin: 0; font-size: 1.12rem; line-height: 1.5; }
.review figcaption { margin-top: 12px; font-size: 0.93rem; color: var(--muted); }
.review figcaption strong { color: var(--ink); font-weight: 600; }
.stars { display: inline-flex; gap: 2px; margin-bottom: 10px; }
.stars svg { width: 16px; height: 16px; fill: var(--ink); }
.stars svg.off { fill: var(--chalk); }

/* ---- Contact ---- */
.contact { background: var(--chalk-2); }
.contact-grid { display: grid; gap: 28px 48px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 8px; }
.contact-grid dt { font-weight: 600; margin-bottom: 2px; }
.contact-grid dd { margin: 0; color: var(--ink-soft); overflow-wrap: anywhere; }

/* ---- Footer ---- */
.site-foot { padding: 40px 0 48px; font-size: 0.93rem; color: var(--muted); }
.site-foot .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }

/* ---- Product page ---- */
.pdp { display: grid; gap: clamp(24px, 5vw, 64px); padding: clamp(24px, 5vw, 56px) 0 clamp(56px, 8vw, 96px); }
@media (min-width: 900px) { .pdp { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } .pdp .photo { position: sticky; top: 88px; } }
.pdp .photo .frame { aspect-ratio: 4 / 5; background: var(--chalk-2); overflow: hidden; }
.pdp .photo img { width: 100%; height: 100%; object-fit: cover; }
.crumbs { font-size: 0.93rem; color: var(--muted); padding-top: 20px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.pdp h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.pdp .price { font-size: 1.3rem; font-weight: 600; margin-top: 10px; }
.pdp .desc { margin-top: 16px; max-width: 46ch; color: var(--ink-soft); }
.facts { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 6px; }
.facts li { padding-left: 22px; position: relative; }
.facts li::before { content: ''; position: absolute; left: 0; top: 0.72em; width: 12px; height: 2px; background: var(--ink); }

/* ---- Forms ---- */
.form { display: grid; gap: 18px; margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--ink); }
.form h2 { font-size: 1.35rem; }
.field { display: grid; gap: 6px; }
.field label, .field .label { font-weight: 600; font-size: 0.95rem; }
.field .hint { font-size: 0.87rem; color: var(--muted); }
.field .error { font-size: 0.87rem; color: var(--danger); min-height: 1.2em; }
input[type='text'], input[type='tel'], input[type='email'], input[type='number'], input[type='password'], input[type='search'], select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--paper); border: 1px solid var(--field-line); border-radius: 2px; padding: 12px 14px;
}
textarea { min-height: 88px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--ink); outline-offset: 0; border-color: var(--ink); }
input[aria-invalid='true'] { border-color: var(--danger); }
.three { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 440px) { .three { grid-template-columns: 1fr; } }
.two { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 520px) { .two { grid-template-columns: 1fr; } }
.num-wrap { position: relative; }
.num-wrap input { padding-right: 44px; }
.num-wrap .unit { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 0.9rem; pointer-events: none; }

.seg { display: inline-grid; grid-auto-flow: column; border: 1px solid var(--ink); border-radius: 2px; width: fit-content; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { padding: 8px 18px; cursor: pointer; font-weight: 600; font-size: 0.93rem; }
.seg input:checked + label { background: var(--ink); color: var(--cotton); }
.seg input:focus-visible + label { outline: 3px solid var(--ink); outline-offset: 3px; }

.qty { display: inline-grid; grid-template-columns: 44px 56px 44px; border: 1px solid var(--ink); border-radius: 2px; width: fit-content; }
.qty button { background: none; border: 0; font-size: 1.2rem; cursor: pointer; font-family: inherit; }
.qty button:hover { background: var(--tape); }
.qty input { border: 0; border-inline: 1px solid var(--chalk); border-radius: 0; text-align: center; padding: 10px 0; background: transparent; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.notice { padding: 14px 16px; border-left: 4px solid var(--tape); background: var(--paper); }
.notice.bad { border-left-color: var(--danger); }
.notice.good { border-left-color: var(--ok); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- Measuring guide ---- */
details.guide { margin-top: 20px; border: 1px solid var(--ink); border-radius: 2px; background: var(--paper); }
details.guide > summary { cursor: pointer; padding: 14px 16px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
details.guide > summary::-webkit-details-marker { display: none; }
details.guide > summary::after { content: '+'; font-size: 1.4rem; line-height: 1; font-weight: 400; }
details.guide[open] > summary::after { content: '\2212'; }
details.guide .guide-body { padding: 4px 16px 20px; }

.guide-body { display: grid; gap: 24px; }
.guide-fig { background: var(--chalk-2); padding: 12px; }
.guide-fig svg { width: 100%; max-width: 260px; margin: 0 auto; }
.guide-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.guide-steps li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; }
.badge { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--tape); border: 1px solid var(--ink); font-weight: 700; font-size: 0.9rem; }
.guide-steps strong { display: block; }
.guide-steps p { color: var(--ink-soft); font-size: 0.97rem; }
.guide-extra h3 { margin-bottom: 8px; }
.guide-extra ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--ink-soft); font-size: 0.97rem; }
@media (min-width: 720px) { .page-guide .guide-body { grid-template-columns: 280px 1fr; align-items: start; } .page-guide .guide-extra { grid-column: 2; } }

/* ---- Checkout ---- */
.checkout { display: grid; gap: clamp(28px, 5vw, 64px); padding: clamp(24px, 5vw, 56px) 0 clamp(56px, 8vw, 96px); }
@media (min-width: 960px) { .checkout { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: start; } .checkout aside { position: sticky; top: 88px; } }
.lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.lines li { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--chalk); align-items: start; }
.lines img { width: 72px; aspect-ratio: 4 / 5; object-fit: cover; background: var(--chalk-2); }
.lines .t { font-weight: 600; }
.lines .s { color: var(--muted); font-size: 0.9rem; margin-top: 2px; }
.lines .p { font-weight: 600; white-space: nowrap; text-align: right; }
.lines .p button { display: block; margin: 6px 0 0 auto; font-weight: 500; font-size: 0.87rem; }
.sum { background: var(--paper); border: 1px solid var(--ink); padding: 20px; display: grid; gap: 10px; }
.sum .row { display: flex; justify-content: space-between; gap: 16px; }
.sum .row.due { padding: 12px; margin: 4px -4px; background: var(--tape); font-weight: 700; font-size: 1.1rem; }
.sum .row.total { border-top: 1px solid var(--chalk); padding-top: 10px; font-weight: 600; }
.pay { margin-top: 4px; padding: 16px; border: 1px dashed var(--ink); display: grid; gap: 4px; }
.pay .acct { font-size: 1.25rem; font-weight: 700; font-stretch: 112%; letter-spacing: 0.02em; overflow-wrap: anywhere; }
.drop { display: grid; place-items: center; gap: 4px; padding: 22px 16px; border: 1px dashed var(--ink); background: var(--paper); text-align: center; cursor: pointer; }
.drop:hover { background: var(--chalk-2); }
.drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.drop:focus-within { outline: 3px solid var(--ink); outline-offset: 3px; }
.drop img { max-height: 180px; width: auto; margin: 6px auto 0; border: 1px solid var(--chalk); }
.empty { padding: 56px 0; max-width: 40ch; }
.empty p { margin: 12px 0 24px; color: var(--muted); }

/* ---- Thank you ---- */
.thanks { padding: clamp(48px, 9vw, 120px) 0; max-width: 640px; }
.thanks h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); }
.thanks .ref { display: inline-block; margin-top: 20px; padding: 6px 12px; background: var(--tape); font-weight: 700; letter-spacing: 0.04em; }
.thanks dl { margin: 28px 0; display: grid; gap: 8px; border-top: 1px solid var(--ink); padding-top: 16px; }
.thanks dl div { display: flex; justify-content: space-between; gap: 16px; }
.thanks dt { color: var(--muted); }
.thanks dd { margin: 0; font-weight: 600; }


/* =====================================================================
   Motion and hover effects
   Scroll animations only switch on when motion.js adds .motion to <html>,
   so without JavaScript (or with reduced motion) everything stays visible.
   ===================================================================== */

/* ---- Header: sticks, shrinks and tucks away while scrolling down ---- */
#site-header { position: sticky; top: 0; z-index: 30; transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1); }
#site-header.hide { transform: translateY(-100%); }
.site-head { transition: box-shadow 0.3s; }
.head-row { transition: height 0.3s; }
#site-header.scrolled .head-row { height: 54px; }
#site-header.scrolled .site-head { box-shadow: 0 10px 28px -18px rgba(15, 30, 60, 0.45); }

.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; background: var(--tape); transform: scaleX(var(--p, 0)); transform-origin: left; pointer-events: none; }

/* ---- Reveal on scroll ---- */
.motion [data-reveal] { opacity: 0; transition: opacity 0.8s ease, transform 0.95s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: var(--d, 0ms); will-change: opacity, transform; }
.motion [data-reveal='up'] { transform: translateY(40px); }
.motion [data-reveal='left'] { transform: translateX(-48px); }
.motion [data-reveal='right'] { transform: translateX(48px); }
.motion [data-reveal='scale'] { transform: scale(0.93); }
.motion [data-reveal='fade'] { transform: none; }
.motion [data-reveal].in { opacity: 1; transform: none; will-change: auto; }

/* Headline: each word rises out of a mask */
.motion [data-reveal='split'] { opacity: 1; transform: none; }
.motion [data-reveal='split'] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.motion [data-reveal='split'] .w > span { display: inline-block; transform: translateY(115%); transition: transform 1.05s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: calc(var(--i, 0) * 75ms + 120ms); }
.motion [data-reveal='split'].in .w > span { transform: none; }

/* Product photos settle in with a slow zoom */
.motion .product .frame img { transform: scale(1.14); transition: transform 1.4s cubic-bezier(0.2, 0.7, 0.2, 1); }
.motion .product.in .frame img { transform: scale(1); }

/* ---- Hero ---- */
.hero-grid { display: grid; gap: clamp(28px, 5vw, 56px); align-items: center; }
@media (min-width: 880px) { .hero-grid.has-media { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); } }
.hero-text { opacity: var(--fo, 1); transform: translateY(var(--fy, 0)); }
.hero-media { aspect-ratio: 4 / 5; overflow: hidden; background: var(--chalk-2); max-height: 78vh; width: 100%; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; transform: translateY(var(--py, 0)) scale(1.12); }
.motion .hero-media[data-reveal='clip'] { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); transition: clip-path 1.3s cubic-bezier(0.7, 0, 0.2, 1); }
.motion .hero-media[data-reveal='clip'].in { clip-path: inset(0 0 0 0); }
.hero-actions .arr, .btn .arr { display: inline-block; transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1); }

.ruler { color: var(--ink); position: relative; }
.ruler svg { width: auto; max-width: none; transform: translateX(calc(var(--shift, 0px) * -1)); }

/* ---- Scrolling banner ---- */
.marquee { overflow: hidden; border-block: 1px solid var(--ink); background: var(--cotton); padding: clamp(12px, 2vw, 20px) 0; }
.marquee .track { display: flex; width: max-content; will-change: transform; }
.marquee .mq { white-space: pre; padding-right: 0.7em; font-size: clamp(1.5rem, 4.4vw, 3rem); font-weight: 700; font-stretch: 122%; letter-spacing: -0.025em; line-height: 1.1; }

/* ---- Statement: words light up as you scroll ---- */
.statement { position: relative; overflow: hidden; }
.statement .wrap { position: relative; z-index: 1; }
.statement.has-img { padding: clamp(120px, 24vw, 280px) 0; }
.statement .bgimg { position: absolute; inset: -14% 0; background-size: cover; background-position: center; opacity: 0.5; transform: translateY(var(--py, 0)); }
.statement .bgimg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, var(--ink), transparent 32%, transparent 68%, var(--ink)); }
.motion .sw { opacity: 0.2; transition: opacity 0.4s ease; }
.motion .sw.lit { opacity: 1; }

/* ---- Steps: the number you are reading lights up ---- */
.steps h3 { transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1); }
.steps .n { transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.4s; }
.motion .steps .n { opacity: 0.22; }
.motion .steps li.active .n { opacity: 1; transform: translateX(8px); }

/* ---- Buttons: colour sweeps in, button lifts ---- */
.btn { position: relative; overflow: hidden; isolation: isolate; transition: color 0.2s 0.14s, border-color 0.3s, transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.3s; }
.btn::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--tape); transform: translateY(101%); transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1); }
.btn-plain::before { background: var(--ink); }
.btn:active { transform: scale(0.98); }
.btn:focus-visible::before { transform: none; }
@media (hover: hover) {
  .btn:hover { background: var(--ink); color: var(--ink); transform: translateY(-3px); box-shadow: 0 14px 26px -14px rgba(15, 30, 60, 0.55); }
  .btn-plain:hover { background: transparent; color: var(--cotton); }
  .btn:hover::before { transform: none; }
  .btn:hover .arr { transform: translateX(6px); }
  .btn:active { transform: translateY(-1px) scale(0.98); }
}

/* ---- Links ---- */
.link, .linklike { transition: text-decoration-color 0.25s, letter-spacing 0.25s; }
.nav a { position: relative; border-bottom-color: transparent; }
.nav a:hover, .nav a[aria-current='page'] { border-bottom-color: transparent; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 3px; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1); }
.nav a:hover::after, .nav a[aria-current='page']::after { transform: scaleX(1); }
.wordmark { transition: letter-spacing 0.4s cubic-bezier(0.2, 0.7, 0.2, 1); }
.contact-grid a, .site-foot a { text-decoration-color: transparent; text-decoration-line: underline; text-decoration-thickness: 2px; transition: text-decoration-color 0.25s; }
.contact-grid a { text-decoration-color: var(--chalk); }
.contact-grid a:hover { text-decoration-color: var(--ink); }
.site-foot a:hover { text-decoration-color: var(--ink); }

@media (hover: hover) {
  .wordmark:hover { letter-spacing: 0.01em; }

  /* Product cards: lift, zoom, label slides up */
  .product .frame { position: relative; transition: transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.55s; }
  .product .frame::after { content: 'View piece \2192'; position: absolute; left: 14px; bottom: 14px; padding: 9px 16px; background: var(--cotton); color: var(--ink); font-weight: 600; font-size: 0.93rem; transform: translateY(160%); transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .product:hover .frame { transform: translateY(-8px); box-shadow: 0 30px 44px -28px rgba(15, 30, 60, 0.6); }
  .product:hover .frame::after { transform: none; }
  .product:hover .frame img { transform: scale(1.06); }
  .motion .product.in:hover .frame img { transform: scale(1.06); }
  .product .name { background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size 0.45s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .product:hover .name { background-size: 100% 2px; }

  .steps li:hover h3 { transform: translateX(10px); }
  .steps li:hover .n { opacity: 1; }
  .review { transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .review:hover { transform: translateX(8px); }
  .qty button { transition: background 0.2s; }
  .drop { transition: background 0.2s, transform 0.3s; }
  .drop:hover { transform: translateY(-2px); }
  .tabs button { transition: background 0.2s; }
}

@media (prefers-reduced-motion: reduce) {
  .progress, .marquee .track { transition: none; }
}


/* =====================================================================
   Footer, information pages (About, Contact, Shipping, Returns)
   ===================================================================== */
.nav-extra { display: none; }
@media (min-width: 760px) { .nav-extra { display: inline; } }

.site-foot { border-top: 1px solid var(--chalk); padding: clamp(40px, 6vw, 72px) 0 36px; font-size: 0.95rem; color: var(--muted); }
.foot-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.foot-col { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.foot-col h3 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--muted); font-weight: 700; font-stretch: 100%; margin-bottom: 4px; }
.foot-col p { margin: 0; }
.foot-name { font-size: 1.6rem; font-weight: 800; font-stretch: 125%; letter-spacing: -0.04em; color: var(--ink); line-height: 1; margin-bottom: 4px; }
.foot-col a { color: var(--ink); text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: 4px; overflow-wrap: anywhere; transition: text-decoration-color 0.25s; }
.foot-col a:hover { text-decoration-color: var(--ink); }
.foot-pay { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--chalk); }
.pay-label { font-weight: 600; color: var(--ink); }
.pay-badges { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pay-badges li { padding: 6px 14px; border: 1px solid var(--ink); border-radius: 999px; background: var(--paper); color: var(--ink); font-weight: 600; font-size: 0.88rem; }
.pay-note { font-size: 0.9rem; color: var(--muted); }
.foot-legal { margin: 28px 0 0; font-size: 0.85rem; }
aside .foot-pay { margin-top: 16px; padding-top: 16px; }

.info { display: grid; gap: clamp(28px, 5vw, 64px); padding: clamp(32px, 6vw, 80px) 0 clamp(56px, 8vw, 112px); }
@media (min-width: 900px) { .info.has-media { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); align-items: start; } .info-media { position: sticky; top: 96px; } }
.info h1 { font-size: clamp(2.2rem, 6vw, 4rem); max-width: 16ch; margin-bottom: clamp(24px, 4vw, 40px); }
.prose { max-width: 66ch; }
.prose h2 { font-size: 1.35rem; margin: 2em 0 0.5em; letter-spacing: -0.01em; font-stretch: 112%; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 1em; color: var(--ink-soft); }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.3em; display: grid; gap: 6px; color: var(--ink-soft); }
.prose a, .info-more a { text-decoration-thickness: 2px; text-decoration-color: var(--tape); text-underline-offset: 3px; }
.lede { font-size: clamp(1.1rem, 2.2vw, 1.35rem); max-width: 46ch; color: var(--ink-soft); margin: 0 0 32px; }
.contact-cards { display: grid; margin: 0; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); border-top: 1px solid var(--ink); }
.contact-cards > div { padding: 22px 20px 22px 0; border-bottom: 1px solid var(--chalk); }
.contact-cards dt { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 700; margin-bottom: 6px; }
.contact-cards dd { margin: 0; font-size: 1.15rem; font-weight: 600; overflow-wrap: anywhere; }
.contact-cards a { text-decoration-thickness: 2px; text-decoration-color: var(--tape); text-underline-offset: 4px; }
.contact-cards a:hover { text-decoration-color: var(--ink); }
.info-more { margin-top: 40px; }
.info-media { aspect-ratio: 4 / 5; overflow: hidden; background: var(--chalk-2); }
.info-media img { width: 100%; height: 100%; object-fit: cover; }
.motion .info-media[data-reveal='clip'] { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); transition: clip-path 1.3s cubic-bezier(0.7, 0, 0.2, 1); }
.motion .info-media[data-reveal='clip'].in { clip-path: inset(0 0 0 0); }


/* ---- Logo picture ---- */
.wordmark.has-logo { display: flex; align-items: center; padding: 0; }
.wordmark.has-logo::after { display: none; }
.wordmark img { height: 50px; width: auto; max-width: none; display: block; transition: height 0.3s, transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1); }
#site-header.scrolled .wordmark img { height: 42px; }
@media (hover: hover) { .wordmark.has-logo:hover img { transform: scale(1.05); } }
.foot-logo { height: 56px; width: auto; max-width: none; display: block; margin-bottom: 6px; }


/* ---- Header: logo left, links centred, basket right ---- */
.head-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.head-row .wordmark { justify-self: start; }
.head-row .nav { justify-content: center; }
.head-row .cart-link { justify-self: end; position: relative; padding: 8px 0; font-size: 0.95rem; font-weight: 500; text-decoration: none; white-space: nowrap; }
.head-row .cart-link::after { content: ''; position: absolute; left: 0; right: 0; bottom: 3px; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1); }
.head-row .cart-link:hover::after, .head-row .cart-link[aria-current='page']::after { transform: scaleX(1); }
@media (max-width: 640px) {
  .head-row { grid-template-columns: auto 1fr auto; gap: 10px; }
  .head-row .cart-link { font-size: 0.9rem; }
}

/* ---- Scrolling banner: smaller and calmer ---- */
.marquee { padding: 13px 0; }
.marquee .mq { font-size: clamp(0.82rem, 1.5vw, 1rem); font-weight: 600; font-stretch: 112%; letter-spacing: 0.18em; text-transform: uppercase; }
