/* =========================================================================
   Day You Were Born Certificates — v2 design system
   Source of truth: docs/03-design-system.md
   Every colour, font and spacing value is defined once here as a token.
   ========================================================================= */

/* ---------- Fonts ---------- */
@font-face { font-family: "Landster"; src: url("../fonts/landster.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Landster"; src: url("../fonts/landster-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Cariosa"; src: url("../fonts/cariosa.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
/* Hanken Grotesk (small UI text): self-hosted variable font, see fonts/HANKEN-GROTESK-NOTICE.txt */
@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/hanken-grotesk-latin-ext.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/hanken-grotesk-latin.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Compania is subset to lowercase a–z, space, apostrophe, comma, full stop. Highlight phrases must be written in lowercase. */
@font-face { font-family: "Compania"; src: url("../fonts/compania-subset.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  /* Colour */
  --espresso: #1e1812;
  --cocoa: #4a2e1c;
  --rust: #724429;
  --clay: #a5846b;          /* decoration only, never text */
  --gold: #b48d52;          /* brand gold: shapes, buttons on dark, seal */
  --brass: #d2b07a;         /* gold text on dark grounds */
  --parchment: #f2e8dd;
  --paper: #faf6ee;
  --bone: #e3d6c5;
  --navy: #22324a;          /* logo only */
  --ink: #1e1812;
  --ink-soft: #6a5444;
  --gold-ink: #7d5e2d;      /* gold-coloured text on light grounds */

  /* Type families */
  --font-head: "Landster", "Rockwell", Georgia, serif;
  --font-body: "Cariosa", "Avenir Next", system-ui, sans-serif;
  --font-ui: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-script: "Compania", cursive;

  /* Type scale */
  --text-display: clamp(2.75rem, 1.5rem + 5vw, 5.25rem);
  --text-h1: clamp(2.25rem, 1.4rem + 3.4vw, 4rem);
  --text-h2: clamp(1.75rem, 1.3rem + 1.8vw, 2.75rem);
  --text-h3: clamp(1.25rem, 1.1rem + 0.7vw, 1.65rem);
  --text-script: clamp(3.25rem, 1.8rem + 6vw, 7.25rem);
  --text-lede: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
  --text-body: 1.0625rem;
  --text-nav: 0.8125rem;
  --text-label: 0.72rem;
  --text-ui: 0.9375rem;
  --text-small: 0.8125rem;

  /* Layout */
  --shell: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4.5rem, 9vw, 8rem);
  --radius: 2px;
  --radius-ui: 3px;
  --header-h: 76px;
  --overlap: 56px;

  --shadow-card: 0 1px 2px rgba(30, 24, 18, 0.08), 0 14px 30px -18px rgba(30, 24, 18, 0.35);
  --shadow-lift: 0 2px 6px rgba(30, 24, 18, 0.12), 0 30px 60px -28px rgba(30, 24, 18, 0.55);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--parchment);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
strong, b { font-weight: inherit; }
ul { padding: 0; }

/* ---------- OpenCart compatibility (theme only; not in the static concept) ----------
   Bootstrap 3 is still loaded for the cart, checkout and account pages. It is loaded BEFORE this file, so
   everything below simply undoes the Bootstrap rules that would otherwise leak into our own components. */
html { font-size: 16px; }                                   /* Bootstrap sets 10px; every rem in this file assumes 16px */
a:hover, a:focus { color: inherit; text-decoration: none; }
p, h1, h2, h3, h4, h5, h6, ul, ol, dl, blockquote, figure, pre { margin: 0; }
blockquote { padding: 0; border: 0; font-size: inherit; }
label { margin: 0; max-width: none; font-weight: inherit; display: inline; }
small { font-size: inherit; }
/* Class names we share with Bootstrap: .label .nav .btn .row */
.label { display: inline; padding: 0; white-space: normal; text-align: inherit; vertical-align: baseline; border-radius: 0; }
.nav { margin: 0; padding: 0; list-style: none; }
.nav::before, .nav::after { content: none; }
.btn { border: 0; font-weight: inherit; text-align: center; vertical-align: middle; white-space: nowrap; }
.btn:hover, .btn:focus, .btn:active { text-decoration: none; background-image: none; }
.record .row { margin-left: 0; margin-right: 0; }
.record .row::before, .record .row::after { content: none; }

/* Real paper texture laid over the whole page (img/tex/paper-overlay.webp, from the aged-parchment background).
   It is a neutral grey "detail only" layer blended with overlay, so it adds grain and stains without shifting any colour. */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: 0.5; mix-blend-mode: overlay;
  background: url("../img/tex/paper-overlay.webp") center / cover no-repeat;
}

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 0; z-index: 200; background: var(--espresso); color: var(--parchment); padding: 0.75rem 1rem; }
.skip:focus { left: 0; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 400; color: var(--rust); letter-spacing: 0.015em; line-height: 1.1; }
.t-display { font-size: var(--text-display); line-height: 1.04; letter-spacing: 0.01em; }
.t-h1 { font-size: var(--text-h1); line-height: 1.08; }
.t-h2 { font-size: var(--text-h2); line-height: 1.12; }
.t-h3 { font-size: var(--text-h3); line-height: 1.2; letter-spacing: 0.02em; color: var(--espresso); }
.lede { font-size: var(--text-lede); line-height: 1.55; color: var(--ink-soft); }
p { color: var(--ink-soft); max-width: 38rem; text-wrap: pretty; }
h1, h2, h3, .lede, .hero__lede { text-wrap: balance; }
.script { font-family: var(--font-script); font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--rust); line-height: 0.9; }
.label { font-family: var(--font-ui); font-weight: 600; font-size: var(--text-label); letter-spacing: 0.2em; text-transform: uppercase; line-height: 1.3; color: var(--gold-ink); }
.on-dark .label, .label--dark { color: var(--brass); }
.on-dark h1, .on-dark h2, .on-dark h3 { color: var(--parchment); }
.on-dark p { color: rgba(242, 232, 221, 0.82); }
.on-dark .script { color: var(--brass); }
.ui { font-family: var(--font-ui); }

/* ---------- Layout ---------- */
.shell { width: min(100% - (var(--gutter) * 2), var(--shell)); margin-inline: auto; }
.sec { position: relative; padding-block: var(--section-y); }
.sec--paper { background: var(--paper); }
.sec--espresso { background: var(--espresso) url("../img/tex/tex-espresso.webp") center top / 1000px 1000px repeat; }   /* dark linen bookbinding cloth: a mirrored (seamless) tile, shown fine-grained */
.sec--rust { background: var(--rust); }
.sec--parchment { background: var(--parchment); }
.head { max-width: 40rem; margin-bottom: clamp(2.25rem, 4vw, 3.5rem); }
.head--center { margin-inline: auto; text-align: center; }
.head--center p { margin-inline: auto; }
.head .label { display: block; margin-bottom: 1rem; }
.head p { margin-top: 1.1rem; }

/* ---------- Torn paper edges ---------- */
/* Pre-baked images from tools/make-rips.sh: a pale fibrous torn border around a solid fill in the ground colour.
   They are plain background-images, so they work from a web server AND when index.html is opened straight from disk
   (CSS masks do not: browsers block them on file://). Overscan keeps the torn strip ends off-screen. */
.torn {
  --torn-h: clamp(72px, 9.5vw, 138px);
  position: absolute; left: -2vw; right: -2vw; height: var(--torn-h); z-index: 2; pointer-events: none;
  background: var(--rip) center / 100% 100% no-repeat;
}
/* Shadow only on the edge that is visible: down-strips tear onto the next ground, up-strips tear into this one. */
/* A CSS drop-shadow also bleeds past the strip's HIDDEN straight edge, which showed as a faint line.
   clip-path (applied after the filter) keeps the shadow only on the side where the tear is.
   It is trimmed 3px INSIDE the strip's solid fill so a half-covered pixel row (the strip starts on a fractional pixel) cannot show a line. */
.torn--down { filter: drop-shadow(0 4px 4px rgba(30, 24, 18, 0.32)); clip-path: inset(3px -12px -28px -12px); }
.torn--up, .hero .torn { filter: drop-shadow(0 -3px 3px rgba(0, 0, 0, 0.3)); clip-path: inset(-28px -12px 3px -12px); }
.torn--up   { bottom: calc(var(--torn-h) * -0.34); }   /* torn upper edge visible inside this section */
.torn--down { bottom: calc(var(--torn-h) * -0.66); }   /* torn lower edge visible on the next section */
.torn.flip { transform: scaleX(-1); }
/* strip number + ground colour -> baked image */
.t1.torn--parchment.torn--up { --rip: url("../img/rips/rip-1-parchment-up.webp"); }
.t1.torn--parchment.torn--down { --rip: url("../img/rips/rip-1-parchment-down.webp"); }
.t1.torn--paper.torn--up { --rip: url("../img/rips/rip-1-paper-up.webp"); }
.t1.torn--paper.torn--down { --rip: url("../img/rips/rip-1-paper-down.webp"); }
.t2.torn--parchment.torn--up { --rip: url("../img/rips/rip-2-parchment-up.webp"); }
.t2.torn--parchment.torn--down { --rip: url("../img/rips/rip-2-parchment-down.webp"); }
.t2.torn--paper.torn--up { --rip: url("../img/rips/rip-2-paper-up.webp"); }
.t2.torn--paper.torn--down { --rip: url("../img/rips/rip-2-paper-down.webp"); }
.t3.torn--parchment.torn--up { --rip: url("../img/rips/rip-3-parchment-up.webp"); }
.t3.torn--parchment.torn--down { --rip: url("../img/rips/rip-3-parchment-down.webp"); }
.t3.torn--paper.torn--up { --rip: url("../img/rips/rip-3-paper-up.webp"); }
.t3.torn--paper.torn--down { --rip: url("../img/rips/rip-3-paper-down.webp"); }
.t4.torn--parchment.torn--up { --rip: url("../img/rips/rip-4-parchment-up.webp"); }
.t4.torn--parchment.torn--down { --rip: url("../img/rips/rip-4-parchment-down.webp"); }
.t4.torn--paper.torn--up { --rip: url("../img/rips/rip-4-paper-up.webp"); }
.t4.torn--paper.torn--down { --rip: url("../img/rips/rip-4-paper-down.webp"); }
.t5.torn--parchment.torn--up { --rip: url("../img/rips/rip-5-parchment-up.webp"); }
.t5.torn--parchment.torn--down { --rip: url("../img/rips/rip-5-parchment-down.webp"); }
.t5.torn--paper.torn--up { --rip: url("../img/rips/rip-5-paper-up.webp"); }
.t5.torn--paper.torn--down { --rip: url("../img/rips/rip-5-paper-down.webp"); }
.t6.torn--parchment.torn--up { --rip: url("../img/rips/rip-6-parchment-up.webp"); }
.t6.torn--parchment.torn--down { --rip: url("../img/rips/rip-6-parchment-down.webp"); }
.t6.torn--paper.torn--up { --rip: url("../img/rips/rip-6-paper-up.webp"); }
.t6.torn--paper.torn--down { --rip: url("../img/rips/rip-6-paper-down.webp"); }
/* The strips overscan the viewport by 2vw so their ragged ends sit off-screen. Clip that horizontally at each section so it can
   never create sideways scroll (iOS Safari ignores overflow-x: hidden on body). overflow-x: clip, unlike hidden, leaves the vertical
   overhang (a strip tearing into the next section) untouched. */
.sec, .hero, .page-hero, .site-footer { overflow-x: clip; }
/* sections that sit under a torn edge need room for it */
.after-torn { padding-top: calc(var(--section-y) + 24px); }

/* Short torn label strip behind a small label */
.strip { position: relative; display: inline-block; padding: 0.7rem 2.1rem; isolation: isolate; }
.strip::before { content: ""; position: absolute; inset: -5px -12px; z-index: -1;
  background: url("../img/rips/label-paper.webp") center / 100% 100% no-repeat;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.28)); }
.strip .label { color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.7em;
  font-family: var(--font-body); font-size: var(--text-nav); letter-spacing: 0.14em; text-transform: uppercase;
  padding: 1.05em 1.9em; border-radius: var(--radius-ui); line-height: 1;
  transition: transform 0.4s var(--ease), background-color 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.btn svg { width: 16px; height: 16px; }
.btn--rust { background: var(--rust); color: var(--parchment); }
.btn--rust:hover { background: var(--cocoa); transform: translateY(-2px); box-shadow: var(--shadow-card); }
.btn--gold { background: var(--gold); color: var(--espresso); }
.btn--gold:hover { background: var(--brass); transform: translateY(-2px); }
.btn--ghost { box-shadow: inset 0 0 0 1px var(--bone); color: var(--ink); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--rust); color: var(--rust); }
.btn--ghost-dark { box-shadow: inset 0 0 0 1px rgba(210, 176, 122, 0.55); color: var(--brass); }
.btn--ghost-dark:hover { box-shadow: inset 0 0 0 1px var(--brass); }
.textlink { display: inline-flex; align-items: center; gap: 0.5em; font-size: var(--text-nav); letter-spacing: 0.14em; text-transform: uppercase; color: var(--rust); border-bottom: 1px solid transparent; padding-bottom: 3px; transition: border-color 0.3s var(--ease), gap 0.3s var(--ease); }
.textlink:hover { border-color: var(--rust); gap: 0.8em; }
.textlink svg { width: 16px; height: 16px; }
.on-dark .textlink { color: var(--brass); } .on-dark .textlink:hover { border-color: var(--brass); }

/* =========================================================================
   Header: wooden bar (img/tex/header-wood.jpg), centred logo hanging below it
   ========================================================================= */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: #a88c66 url("../img/tex/header-wood.jpg") center / cover no-repeat;   /* light oak */
  border-bottom: 1px solid #5b4630;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), inset 0 -2px 0 rgba(30, 24, 18, 0.2), 0 8px 16px -10px rgba(30, 24, 18, 0.55);
  color: var(--espresso);
}
/* Walnut (the default in index.html): the same plank graded deeper, with light text. Remove the class "site-header--walnut" from <header> for the natural light oak. */
.site-header--walnut { background-color: #57412b; background-image: url("../img/tex/header-wood-walnut.jpg"); border-bottom-color: #1e1812; color: var(--parchment); }
.site-header--walnut .nav a, .site-header--walnut .cart-btn, .site-header--walnut .nav-toggle { color: var(--parchment); text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.45); }
.site-header--walnut .nav a::after { background: var(--brass); }
.site-header--walnut .cart-count { background: var(--gold); color: var(--espresso); }
.site-header--walnut .brand-inline__word b { color: var(--parchment); }
.site-header--walnut .brand-inline__word small { color: var(--brass); }
/* Oak variant (remove the walnut class) needs the dark mark on the light wood */
.site-header:not(.site-header--walnut) .brand-inline img { content: url("../img/logo/mark.svg"); }
.header-grid { display: grid; grid-template-columns: 1fr 148px 1fr; align-items: center; height: var(--header-h); }
.header-right { display: flex; align-items: center; justify-content: flex-end; gap: clamp(1rem, 2.4vw, 2rem); }
.nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.25rem); }
.nav a { position: relative; font-size: var(--text-nav); letter-spacing: 0.14em; text-transform: uppercase; color: var(--espresso); text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3); padding: 0.4em 0; white-space: nowrap; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--espresso); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.brand-tab {
  position: relative; justify-self: center; align-self: start; width: 132px; height: 134px; z-index: 5;
  background: var(--parchment); display: grid; place-items: start center; padding-top: 14px;
  clip-path: polygon(0 0, 100% 0, 100% 84%, 50% 100%, 0 84%);
}
/* The shadow lives on the wrapper: clip-path is applied AFTER a filter on the same element, so a drop-shadow on .brand-tab itself
   was cut away by the shield shape and never showed. */
.brand-tab-wrap { position: relative; height: var(--header-h); display: flex; justify-content: center; filter: drop-shadow(0 4px 5px rgba(15, 10, 6, 0.2)) drop-shadow(0 1px 1px rgba(15, 10, 6, 0.14)); }
.brand-tab-wrap .brand-tab { position: absolute; top: 0; }
.brand-tab img { width: 92px; height: auto; margin-top: 6px; }
.cart-btn { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-ui); font-weight: 600; font-size: var(--text-ui); color: var(--espresso); }
.cart-btn svg { width: 22px; height: 22px; }
.cart-count { background: var(--espresso); color: var(--parchment); font-size: 0.7rem; min-width: 19px; height: 19px; border-radius: 10px; display: grid; place-items: center; padding: 0 5px; }
.nav-toggle { display: none; width: 44px; height: 44px; place-items: center; color: var(--espresso); }
.nav-toggle svg { width: 26px; height: 26px; }
.brand-inline { display: none; align-items: center; }
.brand-inline { gap: 0.7rem; }
.brand-inline img { height: 44px; width: auto; }
.brand-inline__word b { display: block; font-family: var(--font-head); font-weight: 400; font-size: 1.1rem; letter-spacing: 0.02em; color: var(--espresso); line-height: 1.05; }
.brand-inline__word small { display: block; font-family: var(--font-ui); font-weight: 600; font-size: 0.56rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--espresso); margin-top: 3px; }

/* =========================================================================
   Hero
   ========================================================================= */
.hero { position: relative; z-index: 3; padding-top: clamp(5.5rem, 12vw, 9.5rem); isolation: isolate; }
.hero__bg { position: absolute; inset: 0 0 var(--overlap) 0; z-index: -2; overflow: hidden; background: var(--espresso); }
.hero__slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.8s var(--ease); }
.hero__slide.is-active { opacity: 1; }
.hero__scrim { position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(30, 24, 18, 0.62) 0%, rgba(30, 24, 18, 0.34) 38%, rgba(30, 24, 18, 0.7) 100%),
              radial-gradient(80% 70% at 50% 40%, rgba(30, 24, 18, 0.35), transparent 70%); }
.hero .torn { z-index: -1; bottom: calc(var(--overlap) - (var(--torn-h) * 0.5)); }
.hero__copy { text-align: center; max-width: 62rem; margin-inline: auto; }
.hero__copy .strip { margin-bottom: 1.6rem; }
.hero h1 { color: var(--parchment); display: flex; flex-direction: column; align-items: center; }
.hero h1 .line { font-size: var(--text-display); line-height: 1.02; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35); }
.hero h1 .script { font-size: var(--text-script); color: var(--brass); margin-top: -0.06em; text-shadow: 0 2px 28px rgba(0, 0, 0, 0.45); }
.hero__lede { margin: 1.4rem auto 0; color: rgba(242, 232, 221, 0.9); max-width: 36rem; font-size: var(--text-lede); }
.hero__builder { position: relative; margin-top: clamp(2.5rem, 5vw, 3.75rem); margin-bottom: 0; }

/* ---- Builder bar (overlaps the hero) ---- */
.builder { background: var(--paper); border: 1px solid var(--bone); box-shadow: var(--shadow-lift); border-radius: var(--radius); position: relative; }
.builder__row { display: grid; grid-template-columns: 1.15fr 1.2fr 1fr 1.55fr auto; align-items: stretch; }
.bfield { padding: 1.05rem 1.25rem 1rem; border-right: 1px solid var(--bone); min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 0.4rem; }
.bfield > label, .bfield > .legend { font-family: var(--font-ui); font-weight: 600; font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); }
.bfield input, .bfield select {
  width: 100%; font-family: var(--font-head); font-size: 1.15rem; letter-spacing: 0.02em; color: var(--espresso);
  background: transparent; border: 0; border-bottom: 1px solid transparent; padding: 0.2rem 0; appearance: none; -webkit-appearance: none; border-radius: 0;
}
.bfield__fixed { font-family: var(--font-head); font-size: 1.15rem; letter-spacing: 0.02em; color: var(--espresso); padding: 0.2rem 0; }
.builder__link { text-decoration: underline; text-underline-offset: 3px; color: var(--rust); }
.bfield input::placeholder { color: var(--clay); }
.bfield input:focus, .bfield select:focus { outline: none; border-bottom-color: var(--gold); }
.bfield:focus-within { background: var(--parchment); }
.bfield .sel { position: relative; }
.bfield .sel svg { position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--ink-soft); pointer-events: none; }
.bfield input[aria-invalid="true"] { border-bottom-color: var(--rust); }
.bfield--format { min-width: 0; }
.bseg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.4rem; }
.bseg label { position: relative; display: flex; flex-direction: column; align-items: center; padding: 0.4rem 0.2rem; border: 1px solid var(--bone); border-radius: var(--radius-ui); cursor: pointer; transition: border-color 0.2s, background-color 0.2s; text-align: center; }
.bseg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.bseg .n { font-family: var(--font-ui); font-weight: 600; font-size: 0.78rem; color: var(--ink); }
.bseg .p { font-family: var(--font-ui); font-weight: 600; font-size: 0.78rem; color: var(--gold-ink); }
.bseg label:has(input:checked) { border-color: var(--rust); background: var(--parchment); box-shadow: inset 0 0 0 1px var(--rust); }
.bseg label:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.baction { display: flex; flex-direction: column; justify-content: center; gap: 0.3rem; padding: 0.8rem 1.4rem; background: var(--rust); color: var(--parchment); border: 0; border-radius: 0 var(--radius) var(--radius) 0; min-width: 190px; text-align: left; cursor: pointer; transition: background-color 0.3s var(--ease); }
.baction:hover { background: var(--cocoa); }
.baction:focus-visible { outline-offset: -4px; outline-color: var(--parchment); }
.baction .t { font-family: var(--font-ui); font-weight: 600; font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--parchment); }
.baction .v { font-family: var(--font-head); font-size: 1.6rem; line-height: 1; }
.baction .go { display: inline-flex; align-items: center; gap: 0.5em; font-size: var(--text-nav); letter-spacing: 0.14em; text-transform: uppercase; }
.baction .go svg { width: 15px; height: 15px; }
.baction:disabled { opacity: 0.85; cursor: default; }
.builder__frames { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; padding: 0.8rem 1.25rem; border-top: 1px solid var(--bone); background: var(--parchment); border-radius: 0 0 var(--radius) var(--radius); }
.builder__frames[hidden] { display: none; }
.builder__frames .legend { font-family: var(--font-ui); font-weight: 600; font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); }
.swatches { display: flex; flex-wrap: wrap; gap: 0.4rem 0.7rem; }
.swatch { position: relative; display: inline-flex; align-items: center; gap: 0.5em; font-family: var(--font-ui); font-size: 0.82rem; color: var(--ink-soft); cursor: pointer; padding: 0.25rem 0.7rem 0.25rem 0.3rem; border: 1px solid transparent; border-radius: 22px; }
.swatch input { position: absolute; opacity: 0; }
.swatch i { width: 18px; height: 18px; border-radius: 50%; background: var(--c); border: 1px solid rgba(30, 24, 18, 0.25); }
.swatch:has(input:checked) { border-color: var(--gold); color: var(--ink); }
.swatch:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.builder__note { position: absolute; top: 100%; left: 0; right: 0; margin: 0.85rem auto 0; text-align: center; font-family: var(--font-ui); font-size: var(--text-small); color: var(--ink-soft); max-width: none; }
.hero + .sec { padding-top: calc(var(--section-y) * 0.6 + 36px); }

/* =========================================================================
   Occasions
   ========================================================================= */
.occ-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.5rem); }
.occ { position: relative; background: var(--paper); border: 1px solid var(--bone); border-radius: var(--radius); min-height: 280px; padding: clamp(1.5rem, 2.4vw, 2.1rem); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; box-shadow: var(--shadow-card); transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease); isolation: isolate; }
.occ:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.occ__media { position: absolute; inset: 0 0 0 auto; width: 58%; z-index: -1; background-size: cover; background-position: center; filter: sepia(0.2) saturate(0.95);
  -webkit-mask-image: linear-gradient(to left, #000 26%, rgba(0, 0, 0, 0.5) 52%, transparent 88%); mask-image: linear-gradient(to left, #000 26%, rgba(0, 0, 0, 0.5) 52%, transparent 88%); transition: transform 0.8s var(--ease); }
.occ:hover .occ__media { transform: scale(1.05); }
/* Soft paper scrim so the text side stays readable over the photograph */
.occ::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, var(--paper) 34%, rgba(250, 246, 238, 0.78) 54%, rgba(250, 246, 238, 0) 82%); }
.occ h3 { font-size: 1.55rem; color: var(--espresso); margin-bottom: 0.45rem; }
.occ p { font-size: 0.95rem; max-width: 17rem; margin-bottom: 1.1rem; color: var(--ink-soft); }
.occ .textlink { align-self: flex-start; }
.occ__stretch { position: absolute; inset: 0; z-index: 3; }
.occ__stretch:focus-visible { outline: 2px solid var(--gold); outline-offset: -4px; }

/* =========================================================================
   Almanac: instant-photo certificate + record list
   ========================================================================= */
.almanac { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.photo { --rot: -1.5deg; background: var(--paper); padding: 14px 14px 52px; box-shadow: var(--shadow-card); transform: rotate(var(--rot)); transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); position: relative; border-radius: 1px; }
.photo:hover { transform: rotate(0deg) translateY(-4px); box-shadow: var(--shadow-lift); }
.photo img, .photo .ph { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: var(--espresso); }
/* The certificate is a flat A4 image, not a 4:5 photograph: keep its true shape inside the frame. */
.photo .cert-img { aspect-ratio: 1240 / 1754; object-fit: contain; background: var(--paper); }
.photo figcaption { position: absolute; left: 14px; right: 14px; bottom: 14px; text-align: center; font-family: var(--font-head); font-style: italic; font-size: 1rem; color: var(--ink-soft); letter-spacing: 0.02em; line-height: 1.2; }

.record { background: var(--paper); border: 1px solid var(--bone); padding: clamp(1.6rem, 3vw, 2.5rem); box-shadow: var(--shadow-card); border-radius: var(--radius); }
.record__date { font-family: var(--font-head); font-style: italic; color: var(--gold-ink); font-size: 1.1rem; padding-bottom: 1.1rem; margin-bottom: 1.3rem; border-bottom: 1px solid var(--bone); }
.record dl { display: flex; flex-direction: column; gap: 1rem; }
.record .row { display: flex; align-items: baseline; gap: 0.75rem; }
.record dt { font-family: var(--font-ui); font-weight: 600; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); white-space: nowrap; }
.record .dots { flex: 1; border-bottom: 1px dotted var(--gold); transform: translateY(-3px); min-width: 10px; }
.record dd { font-family: var(--font-head); font-size: 1.05rem; color: var(--espresso); text-align: right; }
.record__note { margin-top: 1.4rem; font-family: var(--font-head); font-style: italic; font-size: 0.85rem; color: var(--ink-soft); }
.almanac__copy .label { display: block; margin-bottom: 1rem; }
.almanac__copy h2 { margin-bottom: 1.2rem; }
.almanac__copy p + p { margin-top: 1rem; }
.almanac__copy .btn { margin-top: 1.8rem; }
.almanac__stack { display: flex; flex-direction: column; gap: 2rem; }

/* =========================================================================
   How it works: three instant-photos on espresso
   ========================================================================= */
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.step3 .photo { background: var(--paper); }
.step3:nth-child(1) .photo { --rot: -2deg; }
.step3:nth-child(2) .photo { --rot: 1.2deg; margin-top: 1.5rem; }
.step3:nth-child(3) .photo { --rot: -1deg; }
.step3__body { padding: 1.6rem 0.4rem 0; }
.step3 .label { display: block; margin-bottom: 0.6rem; }
.step3 h3 { font-size: 1.55rem; margin-bottom: 0.6rem; }
.step3 p { font-size: 0.97rem; }

/* =========================================================================
   Formats
   ========================================================================= */
.formats { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.75rem); align-items: stretch; }
.format { position: relative; background: var(--paper); border: 1px solid var(--bone); border-radius: var(--radius); padding: clamp(1.7rem, 2.6vw, 2.3rem); display: flex; flex-direction: column; box-shadow: var(--shadow-card); transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease); }
.format:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.format h3 { font-size: 1.6rem; color: var(--espresso); margin-bottom: 0.4rem; }
.format__lead { font-size: 0.95rem; margin-bottom: 1.5rem; min-height: 3.2em; }
.format__price { font-family: var(--font-ui); font-weight: 600; font-size: 2.1rem; color: var(--espresso); line-height: 1; }
.format__price span { display: flex; align-items: flex-start; gap: 2px; }
.format__price sup { font-size: 1rem; margin-top: 0.2rem; color: var(--gold-ink); }
.format__price small { display: block; font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 0.5rem; font-weight: 600; }
.format ul { list-style: none; margin: 1.5rem 0 1.8rem; display: flex; flex-direction: column; gap: 0.7rem; }
.format li { display: flex; gap: 0.65em; align-items: baseline; font-family: var(--font-ui); font-size: 0.9rem; color: var(--ink-soft); }
.format li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex: none; transform: translateY(-1px); }
.format .btn { margin-top: auto; }
.format--feature { background: var(--rust); border-color: var(--rust); }
.format--feature h3, .format--feature .format__price { color: var(--parchment); }
.format--feature .format__price sup, .format--feature .format__price small { color: var(--parchment); }
.format--feature p, .format--feature li { color: rgba(242, 232, 221, 0.9); }
.format__flag { position: absolute; top: -14px; right: 1.4rem; z-index: 2; }
.format__flag .strip { padding: 0.5rem 1.5rem; }
.formats-foot { text-align: center; margin: 2rem auto 0; font-family: var(--font-ui); font-size: var(--text-small); color: var(--ink-soft); max-width: none; }

/* =========================================================================
   Craft (the one rust band) + stamp
   ========================================================================= */
.craft__grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.stamp { width: clamp(130px, 17vw, 190px); color: var(--brass); margin-bottom: 1.6rem; }
.craft h2 { color: var(--parchment); margin-bottom: 1.2rem; }
.craft .label { display: block; margin-bottom: 1rem; color: var(--parchment); }
.craft p { color: rgba(242, 232, 221, 0.92); }
.craft__points { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.2rem 2.5rem; }
.craft__point .label { font-size: 0.64rem; margin-bottom: 0.6rem; }
.craft__point h3 { color: var(--parchment); font-size: 1.3rem; margin-bottom: 0.5rem; }
.craft__point p { font-size: 0.93rem; }

/* =========================================================================
   Reviews
   ========================================================================= */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 2.5vw, 2rem); }
.review { background: var(--paper); border: 1px solid var(--bone); border-radius: var(--radius); padding: clamp(1.7rem, 2.6vw, 2.2rem); display: flex; flex-direction: column; box-shadow: var(--shadow-card); }
.stars { display: flex; gap: 3px; margin-bottom: 1.1rem; color: var(--gold); }
.stars svg { width: 17px; height: 17px; }
.review blockquote { font-family: var(--font-head); font-style: italic; font-size: 1.18rem; line-height: 1.4; color: var(--espresso); margin-bottom: 1.4rem; flex: 1; letter-spacing: 0.01em; }
.review figcaption { font-family: var(--font-ui); font-size: var(--text-small); color: var(--ink-soft); }
.review figcaption b { display: block; font-weight: 600; color: var(--ink); font-size: 0.9rem; }
.reviews__foot { margin: 2.5rem auto 0; text-align: center; font-family: var(--font-ui); color: var(--ink-soft); font-size: var(--text-ui); max-width: none; }
.reviews__foot b { font-family: var(--font-head); font-weight: 400; font-size: 1.3rem; color: var(--rust); margin-right: 0.4rem; }

/* =========================================================================
   Closing CTA
   ========================================================================= */
.closing { text-align: center; }
.closing .label { display: block; margin-bottom: 1.2rem; }
.closing h2 { display: flex; flex-direction: column; align-items: center; }
.closing h2 .script { font-size: var(--text-script); margin-top: -0.04em; }
.closing .lede { margin: 1.4rem auto 2.2rem; max-width: 32rem; }

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer { position: relative; background: var(--espresso) url("../img/tex/tex-espresso.webp") center top / 1000px 1000px repeat; color: rgba(242, 232, 221, 0.78); padding-top: clamp(4.5rem, 8vw, 7rem); }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(210, 176, 122, 0.25); }
.footer-brand img { width: 150px; height: auto; margin-bottom: 1.25rem; }
.footer-brand p { color: rgba(242, 232, 221, 0.7); font-size: 0.95rem; max-width: 26rem; }
.footer-col .footer-title { font-family: var(--font-ui); font-weight: 600; font-size: var(--text-label); letter-spacing: 0.22em; text-transform: uppercase; color: var(--brass); margin-bottom: 1.1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col a { font-size: 0.95rem; color: rgba(242, 232, 221, 0.8); transition: color 0.25s; }
.footer-col a:hover { color: var(--parchment); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding-block: 1.7rem; font-family: var(--font-ui); font-size: var(--text-small); color: rgba(242, 232, 221, 0.6); }

/* ---------- Mobile nav ---------- */
.mnav { position: fixed; inset: 0; z-index: 90; background: var(--espresso); transform: translateX(100%); transition: transform 0.45s var(--ease); display: flex; flex-direction: column; padding: 1.25rem var(--gutter) 2rem; overflow-y: auto; }
.mnav.open { transform: none; }
.mnav__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.mnav__top img { height: 54px; width: auto; }
.mnav a.l { font-family: var(--font-head); font-size: 1.9rem; color: var(--parchment); padding: 0.7rem 0; border-bottom: 1px solid rgba(210, 176, 122, 0.25); }
.mnav .btn { margin-top: 2rem; }
.mnav__close { width: 44px; height: 44px; display: grid; place-items: center; color: var(--parchment); }
.mnav__close svg { width: 26px; height: 26px; }

/* ---------- Scroll reveal (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: 0.08s; } .js .reveal.d2 { transition-delay: 0.16s; } .js .reveal.d3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .builder__row { grid-template-columns: 1fr 1fr; }
  .bfield { border-bottom: 1px solid var(--bone); }
  .bfield--format { grid-column: 1 / -1; border-right: 0; }
  .baction { grid-column: 1 / -1; border-radius: 0 0 var(--radius) var(--radius); flex-direction: row; justify-content: space-between; align-items: center; min-width: 0; padding: 1rem 1.4rem; }
  .bfield:nth-child(2) { border-right: 0; }
}
@media (max-width: 960px) {
  .header-grid { grid-template-columns: 1fr auto; }
  .nav { display: none; }
  .brand-tab-wrap { display: none; }
  .brand-inline { display: flex; }
  .nav-toggle { display: grid; }
  .header-right { gap: 0.5rem; }
  .almanac, .craft__grid { grid-template-columns: 1fr; }
  .occ-grid, .formats { grid-template-columns: 1fr 1fr; }
  .formats { max-width: none; }
  .reviews { grid-template-columns: 1fr; }
  .steps3 { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
  .step3:nth-child(2) .photo { margin-top: 0; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .hero { padding-top: clamp(3rem, 9vw, 5rem); }
  .almanac .photo { max-width: 420px; margin-inline: auto; }
}
@media (max-width: 640px) {
  .occ-grid, .formats { grid-template-columns: 1fr; }
  .builder__row { grid-template-columns: 1fr; }
  .bfield { border-right: 0; }
  .craft__points { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .occ__media { width: 50%; opacity: 0.55; }
  .hero .torn { --torn-h: 56px; }
  .strip { padding: 0.6rem 1.3rem; }
  .strip .label { letter-spacing: 0.12em; font-size: 0.62rem; white-space: nowrap; }
}

/* =========================================================================
   Inner pages (occasion, how it works, about, contact, reviews)
   ========================================================================= */

/* ---------- Page hero: photo (or plain linen) with a torn lower edge ---------- */
.page-hero { position: relative; isolation: isolate; text-align: center; padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(5.5rem, 11vw, 8.5rem); }
.page-hero__bg { position: absolute; inset: 0; z-index: -2; background: var(--espresso) center / cover no-repeat; }
.page-hero__scrim { position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(30, 24, 18, 0.72) 0%, rgba(30, 24, 18, 0.5) 45%, rgba(30, 24, 18, 0.82) 100%),
              radial-gradient(70% 80% at 50% 45%, rgba(30, 24, 18, 0.35), transparent 75%); }
.page-hero--plain { background: var(--espresso) url("../img/tex/tex-espresso.webp") center top / 1000px 1000px repeat; }
.page-hero h1 { color: var(--parchment); display: flex; flex-direction: column; align-items: center; margin-top: 0.4rem; }
.page-hero h1 .line { font-size: var(--text-h1); line-height: 1.05; text-shadow: 0 2px 26px rgba(0, 0, 0, 0.4); }
.page-hero h1 .script { font-size: clamp(3rem, 1.6rem + 5.2vw, 6rem); color: var(--brass); margin-top: -0.05em; text-shadow: 0 2px 26px rgba(0, 0, 0, 0.45); }
.page-hero .lede { color: rgba(242, 232, 221, 0.9); max-width: 38rem; margin: 1.3rem auto 0; }
.page-hero .strip { margin: 1.1rem 0 1.3rem; }
.page-hero__actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; justify-content: center; align-items: center; }
.page-hero--split { text-align: left; }
.page-hero--split .shell { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.page-hero--split h1 { align-items: flex-start; }
.page-hero--split .lede { margin-inline: 0; }
.page-hero--split .crumbs ol { justify-content: flex-start; }

.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.2rem 0.65rem; margin: 0 0 1.2rem; padding: 0; font-family: var(--font-ui); font-size: 0.78rem; letter-spacing: 0.06em; color: rgba(242, 232, 221, 0.78); }
.crumbs li + li::before { content: "/"; margin-right: 0.65rem; opacity: 0.55; }
.crumbs a:hover { color: var(--brass); }
.crumbs [aria-current] { color: var(--parchment); }

/* ---------- Editorial columns (no icon blocks: a gold rule and a small label) ---------- */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3.5vw, 3rem); }
.benefit { padding-top: 1.4rem; border-top: 2px solid var(--gold); }
.benefit .label { display: block; margin-bottom: 0.75rem; }
.benefit h3 { font-size: 1.5rem; color: var(--espresso); margin-bottom: 0.55rem; }
.benefit p { font-size: 0.97rem; }

/* ---------- Milestone ages ---------- */
.ages { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: rgba(210, 176, 122, 0.3); border: 1px solid rgba(210, 176, 122, 0.3); }
.age { background: rgba(30, 24, 18, 0.6); padding: 1.7rem 1rem; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 0.35rem; transition: background-color 0.3s var(--ease); }
.age:hover { background: rgba(74, 46, 28, 0.85); }
.age:focus-visible { outline: 2px solid var(--gold); outline-offset: -3px; }
.age__n { font-family: var(--font-head); font-size: 2.3rem; line-height: 1; color: var(--parchment); }
.age--word .age__n { font-size: 1.5rem; line-height: 1.15; padding: 0.25rem 0; letter-spacing: 0.015em; }
.age__l { font-family: var(--font-ui); font-weight: 600; font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brass); }
.ages-foot { text-align: center; margin: 1.75rem auto 0; font-family: var(--font-ui); font-size: var(--text-ui); color: rgba(242, 232, 221, 0.85); max-width: none; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.faq__intro .label { display: block; margin-bottom: 1rem; }
.faq__intro p { margin-top: 1rem; }
.faq-list { border-top: 1px solid var(--bone); }
.faq-item { border-bottom: 1px solid var(--bone); }
.faq-item summary { list-style: none; cursor: pointer; position: relative; padding: 1.25rem 2.5rem 1.25rem 0; font-family: var(--font-head); font-size: 1.25rem; letter-spacing: 0.015em; color: var(--espresso); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 0.4rem; top: 1.1rem; font-family: var(--font-ui); font-weight: 400; font-size: 1.6rem; color: var(--gold-ink); }
.faq-item[open] summary::after { content: "\2013"; }
.faq-a { padding: 0 2.5rem 1.4rem 0; font-size: 1rem; }

/* ---------- How it works: timeline of instant-photos ---------- */
.tl { display: grid; gap: clamp(3rem, 6vw, 5.5rem); }
.tl__row { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.tl__row:nth-child(even) { grid-template-columns: 1.2fr 0.8fr; }
.tl__row:nth-child(even) .photo { order: 2; --rot: 1.4deg; }
.tl__row .photo { max-width: 380px; width: 100%; justify-self: center; }
.tl__body .label { display: block; margin-bottom: 0.7rem; }
.tl__body h3 { font-size: var(--text-h2); line-height: 1.1; margin-bottom: 0.8rem; color: var(--rust); }
.tl__body p { margin-bottom: 1rem; }
.tl__list { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; margin-top: 1.1rem; }
.tl__list li { display: flex; gap: 0.65em; align-items: baseline; font-family: var(--font-ui); font-size: 0.93rem; color: var(--ink-soft); }
.tl__list li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex: none; transform: translateY(-1px); }

/* ---------- Story, prose, pull-quote (About) ---------- */
.story { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.story .photo { max-width: 400px; width: 100%; justify-self: center; }
.prose .label { display: block; margin-bottom: 1rem; }
.prose h2 { margin-bottom: 1.4rem; }
.prose p { font-size: 1.05rem; line-height: 1.75; }
.prose p + p { margin-top: 1.1rem; }
.pullquote { max-width: 46rem; margin-inline: auto; text-align: center; }
.pullquote svg { width: 46px; height: auto; margin: 0 auto 1.5rem; color: var(--gold); }
.pullquote blockquote { font-family: var(--font-head); font-size: clamp(1.7rem, 1.1rem + 2.4vw, 2.8rem); line-height: 1.2; color: var(--rust); margin: 0; letter-spacing: 0.01em; text-wrap: balance; }
.pullquote em { font-style: italic; color: var(--gold-ink); }
.pullquote cite { display: block; margin-top: 1.6rem; font-style: normal; font-family: var(--font-ui); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-ink); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.cform { background: var(--paper); border: 1px solid var(--bone); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.4rem); box-shadow: var(--shadow-card); }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.fld { margin-bottom: 1.05rem; }
.fld label { display: block; font-family: var(--font-ui); font-weight: 600; font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 0.45rem; }
.fld .opt { text-transform: none; letter-spacing: 0.02em; font-weight: 500; color: var(--ink-soft); }
.fld input, .fld select, .fld textarea { width: 100%; padding: 0.8em 0.95em; font-family: var(--font-ui); font-size: 0.97rem; color: var(--espresso); background: var(--white); border: 1px solid var(--bone); border-radius: var(--radius-ui); appearance: none; -webkit-appearance: none; transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.fld textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(180, 141, 82, 0.22); }
.fld input[aria-invalid="true"], .fld textarea[aria-invalid="true"] { border-color: var(--rust); }
.fld .sel { position: relative; }
.fld .sel svg { position: absolute; right: 0.9rem; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--ink-soft); pointer-events: none; }
.cform .btn { width: 100%; margin-top: 0.4rem; }
.cform__note { text-align: center; margin: 0.9rem auto 0; font-family: var(--font-ui); font-size: var(--text-small); color: var(--ink-soft); max-width: none; }
.cform__error { color: var(--rust); font-family: var(--font-ui); font-size: 0.9rem; margin: 0 0 1rem; min-height: 1.3em; }
.fsuccess { background: var(--paper); border: 1px solid var(--bone); border-radius: var(--radius); padding: clamp(2rem, 4vw, 3rem); text-align: center; box-shadow: var(--shadow-card); }
.fsuccess svg { width: 54px; height: auto; margin: 0 auto 1.2rem; color: var(--gold); }
.fsuccess h3 { font-size: 1.7rem; margin-bottom: 0.6rem; }
.fsuccess p { margin-inline: auto; max-width: 34ch; }
.cmeth { padding: 1.45rem 0; border-bottom: 1px solid var(--bone); }
.cmeth:first-child { padding-top: 0; }
.cmeth:last-child { border-bottom: 0; }
.cmeth .label { display: block; margin-bottom: 0.55rem; }
.cmeth__big { font-family: var(--font-head); font-size: 1.35rem; color: var(--espresso); letter-spacing: 0.015em; word-break: break-word; }
a.cmeth__big:hover { color: var(--rust); }
.cmeth p { font-size: 0.97rem; margin: 0.35rem 0 0; }
.cmeth .textlink { margin-top: 0.5rem; }

/* ---------- Reviews page ---------- */
.rating { background: var(--paper); border: 1px solid var(--bone); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.2rem); box-shadow: var(--shadow-lift); color: var(--ink); }
.rating__top { display: flex; align-items: center; gap: 1.3rem; padding-bottom: 1.25rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--bone); }
.rating__score { font-family: var(--font-head); font-size: 3.6rem; line-height: 1; color: var(--rust); }
.rating .stars { margin-bottom: 0.45rem; }
.rating__meta p { font-family: var(--font-ui); font-size: 0.85rem; color: var(--ink-soft); margin: 0; }
.bars { display: flex; flex-direction: column; gap: 0.6rem; }
.bar { display: flex; align-items: center; gap: 0.7rem; font-family: var(--font-ui); font-size: 0.78rem; color: var(--ink-soft); }
.bar__l { width: 2.8rem; white-space: nowrap; }
.bar__t { flex: 1; height: 6px; background: var(--bone); border-radius: 3px; overflow: hidden; }
.bar__f { display: block; height: 100%; background: var(--gold); border-radius: 3px; }
.bar__p { width: 2.6rem; text-align: right; }
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-bottom: clamp(2rem, 4vw, 3rem); }
.chip { font-family: var(--font-ui); font-size: 0.85rem; font-weight: 600; padding: 0.6em 1.2em; border-radius: 22px; border: 1px solid var(--bone); background: var(--paper); color: var(--espresso); cursor: pointer; transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease); }
.chip:hover { border-color: var(--rust); }
.chip.is-active { background: var(--rust); color: var(--parchment); border-color: var(--rust); }
.chip:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.wall { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 2.5vw, 2rem); align-items: start; }
.feature { text-align: center; }
.feature .stars { justify-content: center; margin-bottom: 1.4rem; }
.feature blockquote { font-family: var(--font-head); font-size: clamp(1.6rem, 1.1rem + 2vw, 2.5rem); line-height: 1.22; color: var(--parchment); max-width: 44rem; margin: 0 auto 1.4rem; letter-spacing: 0.01em; text-wrap: balance; }
.feature cite { font-style: normal; font-family: var(--font-ui); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--parchment); }
.feature .stars { color: var(--brass); }

/* ---------- Shared small helpers ---------- */
[hidden] { display: none !important; }   /* component display rules (flex, grid) must never override the hidden attribute */
.sec--paper + .sec--paper { padding-top: 0; }
.mt-2 { margin-top: 2rem; }
.center { text-align: center; }
.center p { margin-inline: auto; }

@media (max-width: 960px) {
  .page-hero--split { text-align: center; }
  .page-hero--split .shell { grid-template-columns: 1fr; }
  .page-hero--split h1 { align-items: center; }
  .page-hero--split .lede { margin-inline: auto; }
  .page-hero--split .crumbs ol { justify-content: center; }
  .benefits { grid-template-columns: 1fr; gap: 1.6rem; }
  .ages { grid-template-columns: repeat(3, 1fr); }
  .faq, .contact, .story { grid-template-columns: 1fr; }
  .tl__row, .tl__row:nth-child(even) { grid-template-columns: 1fr; }
  .tl__row:nth-child(even) .photo { order: 0; }
  .wall { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .ages { grid-template-columns: repeat(2, 1fr); }
  .frow { grid-template-columns: 1fr; }
  .wall { grid-template-columns: 1fr; }
  .rating__score { font-size: 2.9rem; }
  .page-hero .torn { --torn-h: 56px; }
}

/* An odd number of range tiles must not leave an empty grid cell (it shows as a blank gold-tinted tile). */
@media (max-width: 960px) {
  .ages--five { grid-template-columns: repeat(6, 1fr); }
  .ages--five .age { grid-column: span 2; }
  .ages--five .age:nth-child(n+4) { grid-column: span 3; }
  .ages--ten .age:last-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .ages--five { grid-template-columns: repeat(2, 1fr); }
  .ages--five .age, .ages--five .age:nth-child(n+4) { grid-column: auto; }
  .ages--five .age:last-child { grid-column: 1 / -1; }
  .ages--ten .age:last-child { grid-column: auto; }
}

/* ---------- Pages added for OpenCart (information, success, reviews form) ---------- */
.legal { max-width: 46rem; }
.legal h2 { font-size: var(--text-h3); margin: 2.4rem 0 0.8rem; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { font-size: 1.05rem; line-height: 1.75; max-width: none; }
.legal p + p { margin-top: 1rem; }
.legal ul { list-style: disc; padding-left: 1.3rem; margin: 0.6rem 0 1rem; color: var(--ink-soft); }
.legal li + li { margin-top: 0.45rem; }
.legal a { color: var(--rust); text-decoration: underline; text-underline-offset: 3px; }
.success { padding-bottom: calc(var(--section-y) + 4rem); }
.success .fsuccess { max-width: 34rem; margin-inline: auto; text-align: center; }
.success .fsuccess h1 { font-size: 1.7rem; margin-bottom: 0.8rem; color: var(--rust); }
.success__text { margin: 0 auto 1.6rem; }
.success__text p { margin-inline: auto; max-width: 34ch; }
.reviews__empty { text-align: center; margin: 0 auto; }
.write { margin: 2.5rem auto 0; max-width: 40rem; text-align: center; }
.write summary { display: inline-flex; cursor: pointer; list-style: none; }
.write summary::-webkit-details-marker { display: none; }
.write[open] summary { margin-bottom: 1.6rem; }
.write .cform { text-align: left; }
.fld--captcha .form-group { margin: 0; }
.fld--captcha .col-sm-2, .fld--captcha .col-sm-10 { width: auto; float: none; padding: 0; }
.fld--captcha input { width: 100%; }
.fld--captcha img { margin-top: 0.6rem; }
.fld--captcha legend { display: none; }
.fld--captcha fieldset { border: 0; padding: 0; margin: 0; }
