/* ==========================================================================
   style.css - the whole look of the site.
   Sections: 1 tokens · 2 base · 3 buttons · 4 header + logo · 5 hero · 6 marquee
             7 sections · 8 grid/cards · 9 houses · 10 story · 11 footer
             12 drawer/popup/toast · 13 product page · 14 mobile
   ========================================================================== */

/* 1. TOKENS - change the look here ---------------------------------------- */
:root {
  --ink: #1b1613;          /* near-black text */
  --ink-2: #2a2320;
  --paper: #ebe3d5;        /* parchment (left half of hero) */
  --paper-2: #f6f1e8;      /* lighter page background */
  --photo: #f4f4f4;        /* matches the studio photo backdrop */
  --muted: #6b5f56;
  --line: rgba(27, 22, 19, 0.14);
  --gold: #b48a35;         /* the one accent: brass crest gold, on dark backgrounds */
  --gold-text: #826024;    /* darker gold for text on light backgrounds (4.5:1 or more) */
  --panel: #5c1520;        /* right half of hero - changed by js/home.js */

  --display: "League Gothic", "Oswald", Impact, sans-serif;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: 5vw;
  --credit-h: 36px;
  --nav-h: 76px;
  --space-section: clamp(72px, 10vw, 150px);
  --radius: 4px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* 2. BASE ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 24px); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper-2);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; font-weight: 500; line-height: 1.05; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 3px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper-2); padding: 10px 16px;
}
.skip-link:focus { top: 16px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
/* small serif italic line above a product name (the "voice" of the school prospectus) */
.eyebrow { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--gold-text); margin-bottom: 10px; }

/* 3. BUTTONS --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 30px; border: 0; border-radius: 2px;
  background: var(--ink); color: var(--paper-2);
  font-weight: 500; letter-spacing: 0.02em; white-space: nowrap;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, box-shadow 0.25s;
}
.btn:hover { background: #000; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.btn-light { background: var(--paper-2); color: var(--ink); }
.btn-light:hover { background: #fff; }
.btn-outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper-2); }
.btn-small { min-height: 44px; padding: 0 18px; font-size: 14px; }
.btn-full { width: 100%; }
.link-btn {
  background: none; border: 0; padding: 0; font-size: 13px; min-height: 32px;
  text-decoration: underline; text-underline-offset: 3px; color: var(--muted);
}
.link-btn:hover { color: var(--ink); }
.icon-btn {
  flex: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: none;
}
.icon-btn:hover { border-color: var(--ink); }

/* 4. HEADER + LOGO ----------------------------------------------------------- */
/* No glass box: over the hero the header sits straight on the split colours,
   left half dark text on parchment, right half light text on the house colour. */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: transform 0.45s var(--ease);
}
.site-header.is-collapsed { transform: translateY(calc(var(--credit-h) * -1)); }

.credit-bar {
  height: var(--credit-h); display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 0 var(--gutter); background: var(--ink); color: var(--paper); font-size: 13px;
}
.credit-bar p { margin: 0; white-space: nowrap; }
.credit-bar a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(235, 227, 213, 0.45); }
.credit-bar a:hover { color: #fff; text-decoration-color: currentColor; }
.credit-links { display: flex; gap: 22px; }

.navbar {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  height: var(--nav-h); padding: 0 var(--gutter);
  transition: background 0.35s, color 0.35s;
}
/* hairline under the header, two-toned to follow the split */
.navbar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, rgba(27, 22, 19, 0.16) 50%, rgba(246, 241, 232, 0.22) 50%);
}
.nav-right { display: flex; align-items: center; gap: 30px; padding-left: 48px; color: var(--paper-2); }
.nav-links { display: flex; gap: 30px; margin-right: auto; }
.nav-links a, .nav-right button { font-size: 15px; font-weight: 500; }
.nav-links a { position: relative; padding: 10px 0; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-right button { background: none; border: 0; padding: 0; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; }
.bag-count {
  display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px;
  border-radius: 12px; border: 1px solid currentColor; font-size: 12px; font-variant-numeric: tabular-nums;
}
.bag-count.bump { animation: bump 0.55s var(--ease); }
@keyframes bump {
  40% { transform: scale(1.5); background: var(--gold); border-color: var(--gold); color: var(--ink); }
}
.menu-btn { display: none !important; }
.mobile-menu { display: grid; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.mobile-menu[hidden] { display: none; }
.mobile-menu a { padding: 14px var(--gutter); border-top: 1px solid var(--line); font-size: 18px; }

.site-header.is-solid .navbar { background: var(--paper-2); }
.site-header.is-solid .nav-right { color: var(--ink); }
.site-header.is-solid .navbar::after { background: var(--line); }

/* Logo: two lines, both starting on the same left edge, so nothing floats out of line */
.logo { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 4px; color: var(--ink); justify-self: start; line-height: 1; }
.logo-top { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 17px; padding-left: 1px; }
.logo-top i { font-style: normal; font-size: 1.25em; line-height: 0; color: var(--gold-text); }
.logo-main { font-family: var(--display); font-size: 34px; letter-spacing: 0.07em; line-height: 0.8; }
.logo-light { color: var(--paper); }
.logo-light .logo-top i { color: var(--gold); }

/* 5. HERO - the split screen ------------------------------------------------ */
.hero {
  position: relative; height: 100svh; min-height: 680px; overflow: hidden;
  touch-action: pan-y; outline: none;
}
.hero-half { position: absolute; top: 0; bottom: 0; }
.hero-left { left: 0; right: 50%; background: var(--paper); }
.hero-right { left: 50%; right: 0; background: var(--panel); transition: background-color 0.9s var(--ease); }

/* fine paper grain on the light half: echoes the printed prospectus feel of the brand */
.hero-left::after {
  content: ""; position: absolute; inset: 0; opacity: 0.35; pointer-events: none;
  background-image: radial-gradient(rgba(27, 22, 19, 0.08) 1px, transparent 1px);
  background-size: 3px 3px;
}

.hero-word {
  position: absolute; top: 50%; z-index: 1; margin: 0;
  transform: translateY(-50%);
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(4.5rem, 11vw, 12.5rem); line-height: 0.85; letter-spacing: 0.01em;
  pointer-events: none;
}
.hero-word-left { left: var(--gutter); color: var(--ink); }
.hero-word-right { right: var(--gutter); color: var(--paper-2); text-align: right; }
.hero-word-right span { display: inline-block; }
.hero-word-right span.is-in { animation: word-in 0.8s var(--ease) both; }

/* the bag: tilts with the mouse (perspective) and drifts slowly, like it is on display */
.hero-stage {
  position: absolute; left: 50%; top: 50%; z-index: 2;
  width: min(40vw, 62vh, 640px); aspect-ratio: 1;
  transform: translate(-50%, -45%) perspective(1200px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 0.5s var(--ease);
  cursor: grab; user-select: none;
}
.hero-stage.is-dragging { cursor: grabbing; }
.hero-float { width: 100%; height: 100%; animation: float 7s ease-in-out infinite; }
.hero-bag {
  width: 100%; height: 100%; object-fit: contain; -webkit-user-drag: none;
  filter: drop-shadow(0 40px 40px rgba(0, 0, 0, 0.22));
}
.hero-bag.is-in { animation: bag-in 0.9s var(--ease) both; }

.hero-bottom {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 var(--gutter) 36px;
}
.hero-product { display: flex; align-items: center; gap: 20px; font-size: 18px; color: var(--ink); }
.hero-product-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.hero-product-price { color: var(--muted); font-variant-numeric: tabular-nums; }
.hero-cta { justify-self: end; }

.hero-dots {
  display: flex; gap: 4px; padding: 4px 6px; border-radius: 30px;
  background: var(--paper-2); border: 1px solid var(--line);
}
.hero-dots button {
  width: 32px; height: 32px; border: 0; border-radius: 50%; background: none; display: grid; place-items: center; padding: 0;
}
.hero-dots button::before {
  content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--dot);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.hero-dots button:hover::before { transform: scale(1.2); }
.hero-dots button[aria-current="true"]::before { transform: scale(1.3); box-shadow: 0 0 0 2px var(--paper-2), 0 0 0 3.5px var(--ink); }

@keyframes bag-in {
  from { opacity: 0; transform: translateY(30px) scale(0.92) rotate(-4deg); }
  to { opacity: 1; transform: none; }
}
@keyframes word-in {
  from { opacity: 0; transform: translateY(40%); }
  to { opacity: 1; transform: none; }
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-14px) rotate(1deg); }
}

/* 6. MARQUEE: facts strip, separated by the four house colours --------------- */
.marquee { overflow: hidden; background: var(--ink); color: var(--paper); padding: 16px 0; }
.marquee-track {
  display: flex; align-items: center; width: max-content;
  font-family: var(--display); font-size: 30px; letter-spacing: 0.04em; text-transform: uppercase;
  animation: marquee 36s linear infinite;
}
/* margin (not gap) so both halves are exactly equal and the loop never jumps */
.marquee-track > * { margin-right: 28px; flex: none; }
.m-dot { width: 12px; height: 12px; border-radius: 50%; }
.m-red { background: #a3303f; }
.m-blue { background: #3d5a9e; }
.m-green { background: #6b7d55; }
.m-mustard { background: #c38f2c; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* 7. SECTIONS ------------------------------------------------------------- */
.section { padding: var(--space-section) var(--gutter); }
.section-head {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: end;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.section-title { font-family: var(--serif); font-size: clamp(2.6rem, 6vw, 5.4rem); line-height: 0.95; letter-spacing: -0.01em; }
.section-title em { font-style: italic; color: var(--gold-text); }
.lead { font-size: 18px; color: var(--muted); max-width: 46ch; margin: 0; }

/* 8. GRID + CARDS ------------------------------------------------------------ */
.filters { display: flex; gap: 8px; margin-bottom: 28px; flex-wrap: wrap; }
.filters button {
  min-height: 44px; padding: 0 20px; border: 1px solid var(--line); border-radius: 22px; background: none; font-size: 14px;
  transition: background 0.2s, color 0.2s;
}
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper-2); border-color: var(--ink); }

/* editorial rhythm: the backpack (hero product) is tall on the left, the others are wide around it */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px 20px; }
.card:first-child { grid-row: span 2; display: flex; flex-direction: column; }
.card[hidden] { display: none; }
.card:first-child .card-media { flex: 1; aspect-ratio: auto; min-height: 400px; }

.card-media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--photo); border-radius: var(--radius); }
.card-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.5s, transform 0.8s var(--ease); }
.card-img-alt { opacity: 0; }
.card:hover .card-img-alt { opacity: 1; }
.card:hover .card-img { transform: scale(1.04); }
.card-body { padding-top: 16px; }
.card-row { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.card h3 { font-family: var(--sans); font-size: 17px; font-weight: 500; line-height: 1.3; }
.card h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; }
.price { white-space: nowrap; font-variant-numeric: tabular-nums; }
.swatches { display: flex; gap: 4px; align-items: center; min-height: 44px; }
.swatch {
  width: 30px; height: 30px; border-radius: 50%; padding: 0;
  background: var(--swatch); border: 4px solid var(--paper-2); box-shadow: 0 0 0 1px var(--line);
  transition: box-shadow 0.2s, transform 0.2s;
}
.swatch:hover { transform: scale(1.1); }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 1.5px var(--ink); }
.swatch-lg { width: 40px; height: 40px; }

/* 9. HOUSES ------------------------------------------------------------------ */
.houses { background: var(--ink); color: var(--paper-2); }
.houses .lead { color: rgba(246, 241, 232, 0.7); }
.houses .section-title em { color: var(--gold); }
/* Each panel is a small poster: house name at the back, the cast member in front of it,
   the matching backpack in front of them, and the shop link on top. Hover widens the panel. */
.houses-panels { display: flex; gap: 10px; height: min(78vh, 680px); }
.house {
  position: relative; flex: 1; overflow: hidden; border-radius: 6px; isolation: isolate;
  display: flex; flex-direction: column; padding: 22px 24px;
  background: var(--house); color: var(--house-text, var(--paper-2));
  transition: flex-grow 0.7s var(--ease);
}
.house:hover, .house:focus-visible { flex-grow: 2.2; }
.house-name {
  position: relative; z-index: 0; font-family: var(--display); text-transform: uppercase;
  font-size: clamp(3rem, 5.6vw, 6rem); line-height: 0.85;
}
.house-cast {
  position: absolute; z-index: 1; left: 50%; bottom: 0; height: 84%; width: auto; max-width: none;
  transform: translateX(-50%); transform-origin: bottom center; transition: transform 0.7s var(--ease);
}
.house:hover .house-cast { transform: translateX(-50%) scale(1.04); }
.house::after { /* dark fade at the bottom so the shop link always passes contrast, even on mustard */
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(transparent 62%, rgba(0, 0, 0, 0.62));
}
.house-bag {
  position: absolute; z-index: 3; right: 3%; bottom: 7%; width: min(40%, 170px);
  transform: rotate(-6deg); transition: transform 0.7s var(--ease);
}
.house:hover .house-bag { transform: rotate(0deg) translateY(-8px); }
.house-cta {
  position: relative; z-index: 4; margin-top: auto; max-width: 60%;
  font-size: 14px; color: var(--paper-2); text-decoration: underline; text-underline-offset: 3px;
}
.houses-credit { margin: 18px 0 0; font-size: 13px; color: rgba(246, 241, 232, 0.7); }

/* 10. STORY ----------------------------------------------------------------- */
.story { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 7vw, 110px); align-items: center; background: var(--paper); }
.story-text p { font-size: 18px; max-width: 48ch; }
.story-text .section-title { margin-bottom: 30px; }
.story-text .btn { margin-top: 10px; }
.story-collage { position: relative; aspect-ratio: 1 / 1.05; }
/* overlapping photos: the shadow only marks which photo sits on top */
.story-collage img { position: absolute; object-fit: cover; border-radius: var(--radius); box-shadow: 0 30px 60px rgba(27, 22, 19, 0.18); }
.collage-a { width: 64%; aspect-ratio: 4 / 5; left: 0; top: 0; object-position: 30% 40%; }
.collage-b { width: 52%; aspect-ratio: 1; right: 0; top: 14%; }
.collage-c { width: 44%; aspect-ratio: 1; left: 30%; bottom: 0; }

/* 11. FOOTER ------------------------------------------------------------------ */
.site-footer { background: var(--ink); color: var(--paper); padding: 0 var(--gutter) 32px; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding: 48px 0; border-top: 1px solid rgba(235, 227, 213, 0.15); }
.footer-grid .logo { margin-bottom: 20px; }
.footer-muted { color: rgba(235, 227, 213, 0.68); max-width: 44ch; }
.footer-grid h3 { font-family: var(--serif); font-style: italic; font-size: 20px; margin-bottom: 14px; color: var(--gold); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-grid a:hover, .footer-grid .link-btn:hover { color: #fff; }
.footer-grid .link-btn { color: inherit; font-size: 16px; text-decoration: none; }

/* the maker's signature opens the footer: this is a portfolio piece, so the credit is the
   biggest line here. Same condensed caps as the hero words, so it reads as part of the site. */
.signature {
  display: grid; grid-template-columns: 1fr minmax(240px, 300px); align-items: end; gap: 32px 56px;
  padding: clamp(64px, 9vw, 120px) 0 clamp(40px, 5vw, 64px);
}
.signature-credit { margin: 0; font-family: var(--display); font-weight: 400; text-transform: uppercase; line-height: 0.82; }
/* two sizes: the phrase is the set-up, the name is the punchline */
.signature-kicker { display: block; font-size: clamp(1.6rem, 3.4vw, 3.2rem); letter-spacing: 0.04em; margin-bottom: 0.35em; }
.signature-name {
  position: relative; display: inline-block; color: var(--gold);
  font-size: clamp(4.5rem, 15vw, 14rem); letter-spacing: 0.005em;
  transition: color 0.3s;
}
/* hover: a thick gold bar slides in under the name and the name turns light */
.signature-name::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -0.06em; height: 0.045em;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.45s var(--ease);
}
.signature-name:hover, .signature-name:focus-visible { color: var(--paper); }
.signature-name:hover::after, .signature-name:focus-visible::after { transform: scaleX(1); }
.signature-links { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(235, 227, 213, 0.18); }
.signature-links li { border-bottom: 1px solid rgba(235, 227, 213, 0.18); }
.signature-links a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  min-height: 52px; padding: 14px 0; font-size: 18px; transition: color 0.25s;
}
.signature-links a span { font-size: 13px; color: rgba(235, 227, 213, 0.68); }
.signature-links a:hover { color: var(--gold); }
.footer-note { font-size: 12px; color: rgba(235, 227, 213, 0.6); margin: 0; }

/* 12. DRAWER + POPUP + TOAST ---------------------------------------------------- */
.drawer-overlay { position: fixed; inset: 0; z-index: 80; background: rgba(15, 11, 9, 0.45); opacity: 0; transition: opacity 0.3s; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 90; width: min(440px, 100%);
  display: flex; flex-direction: column; background: var(--paper-2);
  transform: translateX(100%); transition: transform 0.45s var(--ease);
}
.drawer[hidden] { display: none; } /* truly gone when closed, so keyboards can't tab into it */
.drawer-open .drawer { transform: none; }
.drawer-open .drawer-overlay { opacity: 1; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-family: var(--serif); font-size: 30px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 24px; }
.drawer-foot { padding: 20px 24px 28px; border-top: 1px solid var(--line); }
.drawer-foot:empty { display: none; }
.bag-empty { display: grid; justify-items: start; gap: 8px; padding: 32px 0; }
.bag-list { list-style: none; margin: 0; padding: 0; }
.bag-item { display: grid; grid-template-columns: 88px 1fr auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.bag-item img { background: var(--photo); border-radius: var(--radius); }
.bag-item-info { display: grid; gap: 4px; align-content: start; font-size: 15px; }
.bag-item-info a { font-weight: 500; }
.bag-item-side { display: grid; justify-items: end; align-content: space-between; }
.subtotal { display: flex; justify-content: space-between; font-size: 18px; margin-bottom: 10px; }
.concept-note { margin: 12px 0 0; padding: 12px 14px; background: var(--paper); border-radius: var(--radius); font-size: 14px; }
.concept-note a { text-decoration: underline; text-underline-offset: 3px; }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 30px; width: max-content; margin-top: 6px; }
.qty button { width: 40px; height: 40px; border: 0; background: none; font-size: 18px; }
.qty button:disabled { opacity: 0.3; cursor: not-allowed; }
.qty span { min-width: 22px; text-align: center; font-variant-numeric: tabular-nums; }
.qty-lg { margin: 0; }
.qty-lg button { width: 46px; height: 48px; }

/* "Added to your bag" popup, pinned under the Bag button. Shadow = it floats above the page. */
.bag-pop {
  position: fixed; z-index: 70; right: var(--gutter); top: 120px; width: min(360px, calc(100% - 32px));
  padding: 14px 18px 18px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 6px;
  box-shadow: 0 24px 60px rgba(27, 22, 19, 0.22);
}
.bag-pop.is-in { animation: pop-in 0.45s var(--ease) both; }
.bag-pop-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.bag-pop-head p { margin: 0; font-family: var(--serif); font-size: 24px; }
.bag-pop-item { display: grid; grid-template-columns: 72px 1fr; gap: 14px; margin: 12px 0 16px; }
.bag-pop-item img { background: var(--photo); border-radius: var(--radius); }
.bag-pop-item div { display: grid; gap: 2px; align-content: center; font-size: 15px; }
.bag-pop-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bag-pop-actions .btn { min-height: 46px; padding: 0 12px; }
@keyframes pop-in {
  from { opacity: 0; transform: translateY(-10px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

/* the copy of the product photo that flies into the Bag button */
.fly-ghost { position: fixed; z-index: 95; pointer-events: none; object-fit: contain; border-radius: 8px; will-change: transform, opacity; }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 100; max-width: calc(100% - 32px);
  padding: 14px 22px; border-radius: 30px; background: var(--ink); color: var(--paper-2); font-size: 14px;
  transform: translate(-50%, 150%); opacity: 0; transition: transform 0.4s var(--ease), opacity 0.4s; pointer-events: none;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* 13. PRODUCT PAGE ----------------------------------------------------------- */
.page-product main { padding-top: calc(var(--credit-h) + var(--nav-h) + 32px); }
.crumbs { padding: 0 var(--gutter) 24px; font-size: 13px; color: var(--muted); }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.pdp { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 80px); padding: 0 var(--gutter); align-items: start; }
.pdp-main { background: var(--photo); border-radius: var(--radius); overflow: hidden; }
.pdp-main img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.pdp-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; margin-top: 10px; }
.thumb { padding: 0; border: 1px solid transparent; border-radius: var(--radius); background: var(--photo); overflow: hidden; opacity: 0.65; transition: opacity 0.2s; }
.thumb:hover { opacity: 1; }
.thumb[aria-current="true"] { opacity: 1; border-color: var(--ink); }
/* the bar on top takes the colour you picked, so the page "wears" the house colour */
.pdp-info { position: sticky; top: calc(var(--nav-h) + 24px); border-top: 6px solid var(--house); padding-top: 22px; }
.pdp-info h1 { font-family: var(--serif); font-size: clamp(2.4rem, 4vw, 3.6rem); margin-bottom: 10px; }
.pdp-price { font-size: 22px; margin-bottom: 18px; }
.pdp-summary { font-size: 17px; color: var(--muted); }
.pdp-colour { display: grid; gap: 10px; margin: 26px 0; }
.tag-out { font-style: normal; font-size: 12px; padding: 2px 8px; border-radius: 10px; margin-left: 6px; background: var(--ink); color: var(--paper-2); }
.buy-row { display: flex; gap: 12px; }
.pdp-info > .muted.small { margin-top: 12px; }
.pdp-details { margin-top: 28px; border-bottom: 1px solid var(--line); }
.pdp-details details { border-top: 1px solid var(--line); }
.pdp-details summary {
  list-style: none; cursor: pointer; padding: 16px 0; font-weight: 500;
  display: flex; justify-content: space-between;
}
.pdp-details summary::-webkit-details-marker { display: none; }
.pdp-details summary::after { content: "+"; font-size: 20px; line-height: 1; transition: transform 0.3s; }
.pdp-details details[open] summary::after { transform: rotate(45deg); }
.pdp-details ul { margin: 0 0 18px; padding-left: 18px; color: var(--muted); }
.pdp-details p { color: var(--muted); }
.related { padding: var(--space-section) var(--gutter); }
.related .section-title { font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 32px; }
.related-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.mini-card { display: grid; gap: 4px; }
.mini-card img { background: var(--photo); border-radius: var(--radius); margin-bottom: 8px; transition: transform 0.5s var(--ease); }
.mini-card:hover img { transform: translateY(-4px); }
.pdp-missing { padding: 80px var(--gutter); display: grid; justify-items: start; gap: 12px; }

/* 14. TABLET + MOBILE ----------------------------------------------------------- */
@media (max-width: 1024px) {
  .card:first-child { grid-column: span 2; grid-row: auto; }
  .card:first-child .card-media { flex: none; min-height: 0; aspect-ratio: 16 / 10; }
  .card-media { aspect-ratio: 1; }
  .related-row { grid-template-columns: repeat(2, 1fr); }
  .nav-right { padding-left: 32px; gap: 22px; }
  .nav-links { gap: 22px; }
}

@media (max-width: 820px) {
  :root { --gutter: 16px; --credit-h: 44px; --nav-h: 64px; }

  /* header: one parchment bar (the hero's top half is parchment), links move into Menu */
  .credit-bar { font-size: 12px; }
  .credit-bar a { display: inline-flex; align-items: center; min-height: 44px; }
  .credit-long, .credit-bar .credit-site { display: none; }
  .navbar { grid-template-columns: 1fr auto; }
  .navbar::after { background: var(--line); }
  .nav-right { color: var(--ink); padding-left: 0; gap: 18px; }
  .nav-links { display: none; }
  .menu-btn { display: inline-flex !important; }
  .logo-top { font-size: 14px; }
  .logo-main { font-size: 28px; }

  /* hero: split top/bottom instead of left/right */
  .hero { min-height: 640px; }
  .hero-left { right: 0; bottom: 50%; }
  .hero-right { left: 0; top: 50%; }
  .hero-word { font-size: clamp(4.5rem, 23vw, 9rem); }
  .hero-word-left { top: 27%; left: 50%; transform: translate(-50%, -50%); }
  .hero-word-right { top: auto; bottom: 25%; right: 50%; transform: translateX(50%); }
  .hero-stage { width: min(76vw, 42vh); transform: translate(-50%, -48%) perspective(1200px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)); }
  .hero-bottom { grid-template-columns: 1fr auto; gap: 14px; padding: 0 16px 20px; }
  .hero-product { grid-column: 1 / -1; order: -1; justify-content: center; flex-wrap: wrap; gap: 6px 14px; color: var(--paper-2); font-size: 16px; }
  .hero-product-price { color: rgba(246, 241, 232, 0.75); }
  .hero-add { background: var(--paper-2); color: var(--ink); }
  .hero-add:hover { background: #fff; }
  .hero-dots { justify-self: start; gap: 0; padding: 2px; }
  .hero-dots button { width: 30px; height: 30px; }
  .hero-dots button::before { width: 10px; height: 10px; }
  .hero-cta { min-height: 44px; padding: 0 16px; }

  .section-head { grid-template-columns: 1fr; gap: 18px; }
  .houses-panels { display: grid; grid-template-columns: 1fr 1fr; height: auto; }
  .house { aspect-ratio: 3 / 4; padding: 14px; }
  .house-name { font-size: 12vw; }
  .house-cast { height: 82%; }
  .house-bag { width: 38%; bottom: 10%; }
  .house-cta { font-size: 12px; max-width: 58%; }
  .story { grid-template-columns: 1fr; }
  .pdp { grid-template-columns: 1fr; }
  .pdp-info { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .bag-pop { right: 16px; }
  .signature { grid-template-columns: 1fr; }
  .signature-name { font-size: 25vw; }
}

@media (max-width: 480px) {
  .grid { grid-template-columns: 1fr; gap: 36px; }
  .card:first-child { grid-column: span 1; }
  .card:first-child .card-media { aspect-ratio: 1; }
  .buy-row { flex-direction: column; }
  .marquee-track { font-size: 24px; }
}

/* People who turn off animations in their device settings get a calm page */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
