/* QUARTZELLE design system — tokens, typography, 12-column grid, controls, header, drawers, footer */
@font-face { font-family: 'Instrument Serif'; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/instrument-serif-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Instrument Serif'; font-weight: 400; font-style: italic; font-display: swap; src: url(/fonts/instrument-serif-latin-400-italic.woff2) format('woff2'); }
/* Cormorant Garamond is still used by the admin area (see admin.css) */
@font-face { font-family: 'Cormorant Garamond'; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/cormorant-garamond-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-weight: 500; font-style: normal; font-display: swap; src: url(/fonts/cormorant-garamond-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-weight: 600; font-style: normal; font-display: swap; src: url(/fonts/cormorant-garamond-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-weight: 400; font-style: italic; font-display: swap; src: url(/fonts/cormorant-garamond-latin-400-italic.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-weight: 500; font-style: italic; font-display: swap; src: url(/fonts/cormorant-garamond-latin-500-italic.woff2) format('woff2'); }
@font-face { font-family: 'Jost'; font-weight: 300; font-style: normal; font-display: swap; src: url(/fonts/jost-latin-300-normal.woff2) format('woff2'); }
@font-face { font-family: 'Jost'; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/jost-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Jost'; font-weight: 500; font-style: normal; font-display: swap; src: url(/fonts/jost-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Jost'; font-weight: 600; font-style: normal; font-display: swap; src: url(/fonts/jost-latin-600-normal.woff2) format('woff2'); }

:root {
  /* base colours */
  --gold: #C9AE70;            /* accent: text only on dark teal, otherwise lines and marks */
  --gold-deep: #8A7035;       /* large text and decoration only: 4.3:1 on ivory is too low for small text */
  --gold-soft: #E9DDBD;
  --teal: #075B5B;
  --teal-dark: #073B3B;
  --ivory: #F7F4ED;
  --beige: #E8DED0;
  --white: #FFFFFF;
  /* roles */
  --ink: #073B3B;
  --ink-soft: #4B6463;        /* secondary text: AA on ivory, beige and white */
  --line: rgba(7, 59, 59, .14);          /* hairline dividers */
  --line-strong: rgba(7, 59, 59, .55);   /* control boundaries: 3:1 on ivory */
  --line-light: rgba(247, 244, 237, .18);/* hairlines on dark teal */
  --line-gold: rgba(201, 174, 112, .55);
  --danger: #A33A2E;
  --ok: #2F7A58;
  /* type */
  --serif: 'Instrument Serif', 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --t-display: clamp(64px, 10vw, 168px);
  --t-h1: clamp(52px, 7vw, 112px);
  --t-h2: clamp(42px, 5.2vw, 80px);
  --t-h3: clamp(28px, 2.5vw, 38px);
  --t-h4: 24px;
  --t-label: 11px;
  --track: .2em;
  /* space and grid */
  --container: 1440px;
  --gutter: clamp(20px, 4vw, 64px);
  --col-gap: clamp(16px, 2vw, 32px);
  --section: clamp(80px, 10vw, 168px);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 80px;
  --header-compact: 68px;     /* header height once scrolled */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ivory); color: var(--ink); font: 400 16px/1.7 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-synthesis-weight: none; }
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.on-dark :focus-visible, .site-footer :focus-visible, .section.teal :focus-visible, .section.dark :focus-visible { outline-color: var(--gold); }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--teal-dark); color: var(--ivory); padding: 10px 16px; z-index: 999; }
.skip-link:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
body.no-scroll { overflow: hidden; }
::selection { background: var(--gold-soft); color: var(--teal-dark); }

/* ── typography ── */
h1, h2, h3, h4, .serif { font-family: var(--serif); font-weight: 400; line-height: 1; letter-spacing: -.012em; color: var(--ink); text-wrap: balance; }
h1 { font-size: var(--t-h1); line-height: .95; letter-spacing: -.022em; }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); line-height: 1.1; letter-spacing: -.005em; }
h4 { font-size: var(--t-h4); line-height: 1.15; }
.display { font-size: var(--t-display); line-height: .9; letter-spacing: -.028em; }
p { color: var(--ink-soft); text-wrap: pretty; }
.eyebrow { font: 500 var(--t-label)/1.4 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 14px; }
.eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--gold); }
.eyebrow.center { justify-content: center; }
.on-dark .eyebrow, .eyebrow.on-dark { color: var(--gold); }
.lead { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.7; font-weight: 300; }
.muted { color: var(--ink-soft); }
.gold { color: var(--gold-deep); }
.center { text-align: center; }
.num { font-variant-numeric: tabular-nums; }

/* ── layout: container and 12-column grid ── */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container.narrow { max-width: 960px; }
.container.wide { max-width: 1680px; }
.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); }
.section { padding-block: var(--section); }
.section.tight { padding-block: clamp(48px, 6vw, 96px); }
.section.beige { background: var(--ivory); border-top: 1px solid var(--line); }
.section.white { background: var(--ivory); border-top: 1px solid var(--line); }
.section.teal, .section.dark { background: var(--teal-dark); color: var(--ivory); }
.section.teal h1, .section.teal h2, .section.teal h3, .section.dark h1, .section.dark h2, .section.dark h3 { color: var(--ivory); }
.section.teal p, .section.dark p { color: rgba(247, 244, 237, .82); }
.section.teal .eyebrow, .section.dark .eyebrow { color: var(--gold); }

/* Section headings sit off-centre on the 12-column grid: title left, supporting copy lower right. */
.section-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px var(--col-gap); align-items: end; margin-bottom: clamp(40px, 5vw, 80px); padding-top: 24px; border-top: 1px solid var(--line); }
.section-head > * { grid-column: 1 / -1; }
.section-head.center { text-align: left; }
.section-head.center > h2 { grid-column: 1 / 9; }
.section-head.center > p:not(.eyebrow) { grid-column: 9 / -1; padding-bottom: .4em; }
.section-head.split > div { grid-column: 1 / 10; display: grid; grid-template-columns: subgrid; gap: 12px var(--col-gap); }
.section-head.split > div > * { grid-column: 1 / -1; }
.section-head.split > a { grid-column: 10 / -1; justify-self: end; }
.section-head p { max-width: 44ch; }
.section.teal .section-head, .section.dark .section-head { border-top-color: var(--line-light); }
@media (max-width: 760px) {
  .section-head.center > h2, .section-head.center > p:not(.eyebrow), .section-head.split > div, .section-head.split > a { grid-column: 1 / -1; }
  .section-head.split > a { justify-self: start; }
  .section-head { column-gap: 0; }
}

.gold-rule { width: 64px; height: 1px; background: var(--gold); margin-block: 8px; border: 0; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.ornament { display: none; }

/* ── buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 34px; font: 500 var(--t-label)/1 var(--sans); letter-spacing: var(--track); text-transform: uppercase; border: 1px solid var(--teal-dark); color: var(--ivory); background: linear-gradient(var(--teal), var(--teal)) no-repeat bottom / 100% 0%, var(--teal-dark); transition: background-size .45s var(--ease), color .3s var(--ease), border-color .3s var(--ease); white-space: nowrap; }
.btn:hover { background-size: 100% 100%, auto; border-color: var(--teal); }
.btn.outline, .btn.outline-gold { background: linear-gradient(var(--teal-dark), var(--teal-dark)) no-repeat bottom / 100% 0%, transparent; color: var(--ink); border-color: var(--line-strong); }
.btn.outline:hover, .btn.outline-gold:hover { background-size: 100% 100%, auto; color: var(--ivory); border-color: var(--teal-dark); }
.btn.outline-gold { border-color: var(--gold); }
/* on dark surfaces the primary button turns ivory and fills with gold */
.on-dark .btn:not(.outline), .section.teal .btn:not(.outline), .section.dark .btn:not(.outline) { color: var(--teal-dark); border-color: var(--ivory); background: linear-gradient(var(--gold), var(--gold)) no-repeat bottom / 100% 0%, var(--ivory); }
.on-dark .btn:not(.outline):hover, .section.teal .btn:not(.outline):hover, .section.dark .btn:not(.outline):hover { background-size: 100% 100%, auto; border-color: var(--gold); }
.on-dark .btn.outline, .section.teal .btn.outline, .section.dark .btn.outline { background: linear-gradient(var(--ivory), var(--ivory)) no-repeat bottom / 100% 0%, transparent; color: var(--ivory); border-color: rgba(247, 244, 237, .55); }
.on-dark .btn.outline:hover, .section.teal .btn.outline:hover, .section.dark .btn.outline:hover { background-size: 100% 100%, auto; color: var(--teal-dark); border-color: var(--ivory); }
.btn.sm { min-height: 42px; padding: 0 22px; }
.btn.block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .5; pointer-events: none; }
.btn.is-loading::after { content: ''; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── links ── */
.link { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: var(--gold); text-underline-offset: 4px; transition: color .2s, text-decoration-color .2s; }
.link:hover { color: var(--teal); text-decoration-color: currentColor; }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; font: 500 var(--t-label)/1 var(--sans); letter-spacing: var(--track); text-transform: uppercase; color: var(--ink); padding-bottom: 8px; background: linear-gradient(currentColor, currentColor) no-repeat left bottom / 100% 1px; transition: gap .35s var(--ease), color .2s; }
.link-arrow:hover { gap: 18px; color: var(--teal); }
.link-arrow.on-dark, .section.teal .link-arrow, .section.dark .link-arrow { color: var(--ivory); }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; position: relative; color: var(--ink); transition: color .2s, opacity .2s; }
.icon-btn:hover { color: var(--teal); opacity: .75; }
.icon { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.badge-count { position: absolute; top: 4px; right: 0; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--teal-dark); color: var(--ivory); font: 500 10px/17px var(--sans); text-align: center; }
.badge-count:empty, .badge-count[data-n="0"] { display: none; }

/* ── forms: quiet underlined fields ── */
.field { display: grid; gap: 4px; position: relative; }
.field label, .label { font: 500 var(--t-label)/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink); }
.field .hint { font-size: 13px; color: var(--ink-soft); }
.field label.check, .field .check span { font: 400 15px/1.5 var(--sans); letter-spacing: 0; text-transform: none; }
.input, .select, .textarea { width: 100%; min-height: 48px; padding: 10px 0; background-color: transparent; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0; font-size: 16px; transition: border-color .2s, box-shadow .2s; appearance: none; -webkit-appearance: none; }
.textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23073B3B' stroke-width='1.3'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 2px center; padding-right: 28px; }
.select option { background: var(--ivory); color: var(--ink); }
.input::placeholder, .textarea::placeholder { color: var(--ink-soft); }
.input:hover, .select:hover, .textarea:hover { border-bottom-color: var(--ink); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-bottom-color: var(--teal); box-shadow: 0 2px 0 var(--teal); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-bottom-color: var(--danger); box-shadow: 0 1px 0 var(--danger); }
.field-error { color: var(--danger); font-size: 13px; line-height: 1.4; margin-top: 4px; }
.form-error { background: #f8e9e6; border-left: 2px solid var(--danger); color: #7d2c22; padding: 12px 16px; font-size: 14.5px; }
.form-ok { background: #e6f1ea; border-left: 2px solid var(--ok); color: #1f5a3d; padding: 12px 16px; font-size: 14.5px; }
.form-grid { display: grid; gap: 24px var(--col-gap); grid-template-columns: repeat(2, 1fr); align-items: start; }
.form-grid .full { grid-column: 1 / -1; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 15px; }
.check input { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; border: 1px solid var(--line-strong); background: transparent; flex: none; margin-top: 3px; display: grid; place-items: center; cursor: pointer; transition: all .15s; }
.check input[type=radio] { border-radius: 50%; }
.check input:checked { background: var(--teal-dark); border-color: var(--teal-dark); }
.check input[type=checkbox]:checked::after { content: ''; width: 5px; height: 9px; border: solid var(--ivory); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) translate(-1px, -1px); }
.check input[type=radio]:checked::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ivory); }
.check input:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* ── announcement + header ── */
.announce { background: var(--teal-dark); color: var(--ivory); font: 400 var(--t-label)/18px var(--sans); letter-spacing: .18em; text-transform: uppercase; text-align: center; padding: 8px var(--gutter); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.announce:empty { display: none; }
.announce .star { color: var(--gold); margin-inline: 10px; }
@media (max-width: 480px) {
  .announce { font-size: clamp(9px, 2.7vw, var(--t-label)); letter-spacing: .1em; padding-inline: 10px; }
  .announce .star { display: none; }
}

/* ── search results and chips ── */
.search-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0 var(--col-gap); padding: 20px 0 32px; }
.sr-item { display: grid; grid-template-columns: 72px 1fr; gap: 18px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.sr-item img { width: 72px; height: 72px; object-fit: cover; background: var(--beige); }
.sr-item b { font: 400 23px/1.15 var(--serif); display: block; }
.sr-item:hover b { color: var(--teal); }
.search-hints { padding: 24px 0 36px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 16px; border: 1px solid var(--line); border-radius: 18px; font: 500 var(--t-label)/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; background: transparent; transition: background .25s, color .25s, border-color .25s; }
a.chip:hover, button.chip:hover { border-color: var(--ink); }
.chip.active { background: var(--teal-dark); color: var(--ivory); border-color: var(--teal-dark); }
.chip .x { font-size: 15px; line-height: 1; }

/* mini cart lines */
.cart-line { display: grid; grid-template-columns: 96px 1fr auto; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.cart-line img { width: 96px; height: 96px; object-fit: cover; background: var(--beige); }
.cart-line .cl-name { display: block; width: fit-content; font: 400 24px/1.1 var(--serif); }
.cart-line .cl-var { font-size: 13.5px; color: var(--ink-soft); margin-top: 2px; }
.cart-line .cl-price { text-align: right; font-weight: 500; }
.cart-line .cl-warn { font-size: 13px; color: var(--danger); margin-top: 4px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); height: 40px; }
.qty button { width: 38px; height: 100%; display: grid; place-items: center; font-size: 18px; transition: background .2s, color .2s; }
.qty button:hover:not([disabled]) { background: var(--teal-dark); color: var(--ivory); }
.qty button[disabled] { opacity: .35; cursor: not-allowed; }
.qty span, .qty input { width: 38px; text-align: center; font: 500 15px/38px var(--sans); border: 0; background: none; }
.remove-btn { font-size: 13px; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-strong); }
.remove-btn:hover { color: var(--danger); text-decoration-color: currentColor; }
.ship-progress { padding: 14px 0 4px; font-size: 14px; }
.ship-progress strong { font-weight: 500; }
.ship-progress .bar { height: 1px; background: var(--line); margin-top: 12px; position: relative; overflow: hidden; }
.ship-progress .bar i { position: absolute; inset: 0 auto 0 0; background: var(--teal-dark); transition: width .5s var(--ease); }
.empty { text-align: center; padding: 72px 12px; display: grid; gap: 18px; justify-items: center; }
.empty .icon { width: 40px; height: 40px; color: var(--ink-soft); stroke-width: 1; }

/* ── footer ── */
.site-footer { background: var(--teal-dark); color: rgba(247, 244, 237, .82); }
.footer-lead { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px var(--col-gap); align-items: end; padding-block: clamp(72px, 9vw, 144px) clamp(48px, 6vw, 88px); border-bottom: 1px solid var(--line-light); }
.footer-statement { grid-column: 1 / 10; font: 400 var(--t-display)/.9 var(--serif); letter-spacing: -.028em; color: var(--ivory); text-wrap: balance; }
.footer-statement em { color: var(--gold); }
.footer-lead .link-arrow { grid-column: 10 / -1; justify-self: end; }
.footer-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px var(--col-gap); padding-block: clamp(48px, 6vw, 80px); }
.footer-grid > div { grid-column: span 2; }
.footer-grid > .footer-brand { grid-column: span 4; }
.footer-grid > .footer-shop { grid-column: span 4; }
/* the shop list reads down two columns, so the footer stays short */
.footer-shop ul { display: grid; grid-auto-flow: column; grid-template-rows: repeat(var(--rows, 5), auto); grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px var(--col-gap); align-items: start; }
.site-footer .footer-shop li + li { margin-top: 0; }
.footer-brand p { color: rgba(247, 244, 237, .78); max-width: 36ch; font-size: 15px; }
.site-footer h5 { font: 500 var(--t-label)/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin: 0 0 24px; }
.site-footer li + li { margin-top: 12px; }
.site-footer a { color: rgba(247, 244, 237, .84); font-size: 15px; transition: color .2s; overflow-wrap: anywhere; }
.site-footer a:hover { color: var(--gold); }
.site-footer .footer-lead a.link-arrow { color: var(--ivory); font-size: var(--t-label); }
.site-footer .footer-lead a.link-arrow:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid var(--line-light); padding-block: 28px; display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; font-size: 13.5px; color: rgba(247, 244, 237, .68); }
.footer-bottom .venture { display: block; margin-top: 6px; letter-spacing: .04em; color: rgba(247, 244, 237, .82); }
.pay-chips { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.pay-chips span { font: 500 var(--t-label)/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: rgba(247, 244, 237, .72); }
.to-top { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; color: var(--ivory); font: 500 var(--t-label)/1 var(--sans); letter-spacing: var(--track); text-transform: uppercase; }
.to-top:hover { color: var(--gold); }
.to-top .icon { width: 18px; height: 18px; }
@media (max-width: 960px) {
  .footer-statement, .footer-lead .link-arrow { grid-column: 1 / -1; }
  .footer-lead .link-arrow { justify-self: start; }
  .footer-lead { column-gap: 0; }
  .footer-grid { column-gap: 20px; }
  .footer-grid > div { grid-column: span 6; }
  .footer-grid > .footer-brand, .footer-grid > .footer-shop { grid-column: 1 / -1; }
}
@media (max-width: 520px) { .footer-bottom { flex-direction: column; align-items: flex-start; } }

/* ── toasts ── */
.toasts { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 300; display: grid; gap: 8px; width: min(92vw, 460px); pointer-events: none; }
.toast { background: var(--teal-dark); color: var(--ivory); padding: 16px 20px; border: 1px solid var(--line-gold); box-shadow: 0 20px 50px -24px rgba(0, 0, 0, .55); font-size: 15px; line-height: 1.45; display: flex; gap: 20px; align-items: center; justify-content: space-between; animation: toast-in .45s var(--ease); pointer-events: auto; }
.toast.err { background: var(--danger); border-color: var(--danger); }
.toast a { color: var(--gold); font: 500 var(--t-label)/1 var(--sans); letter-spacing: var(--track); text-transform: uppercase; white-space: nowrap; }
/* keep messages clear of the mobile "Add to bag" bar */
@media (max-width: 900px) { body:has(.sticky-buy.show) .toasts { bottom: calc(96px + env(safe-area-inset-bottom)); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px); } }

/* ── skeleton / loading ── */
.page-loading { min-height: 60vh; display: grid; place-items: center; }
.spinner { width: 34px; height: 34px; border: 1px solid var(--line); border-top-color: var(--teal-dark); border-radius: 50%; animation: spin .8s linear infinite; }
.skel { background: linear-gradient(100deg, var(--beige) 30%, #f1e9de 50%, var(--beige) 70%); background-size: 300% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -150% 0; } }
/* holds the footer below the screen until the page content arrives */
main#main:empty { min-height: 100vh; }

.boot { min-height: 100vh; display: grid; place-items: center; }
.boot img { width: min(62vw, 260px); height: auto; }
/* the plain version of each page that the server writes for search engines, AI assistants and visitors without
   scripts (server/seo.js). With scripts running, the app takes its place and it is never shown. */
.js .ssr { display: none; }
html:not(.js) .boot { min-height: 0; padding: 40px 0 0; }
.ssr { max-width: 860px; margin: 0 auto; padding: 24px 20px 64px; }
.ssr nav ul { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 0; list-style: none; }
.ssr h2, .ssr h3 { margin: 28px 0 10px; }
.ssr p, .ssr ul, .ssr ol, .ssr dl { margin: 0 0 14px; }
.ssr img { max-width: 220px; height: auto; border-radius: 8px; }
.ssr svg { width: 18px; height: 18px; }
.shop-answers h2 { margin-bottom: 20px; text-align: center; }

/* ── signature moments (js/lib/intro.js and motion.js) ── */
.cursor-label { position: absolute; z-index: 3; left: 0; top: 0; display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; background: rgba(247, 244, 237, .94); color: var(--teal-dark); font: 500 var(--t-label)/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; pointer-events: none; opacity: 0; clip-path: circle(28% at 50% 50%); transition: opacity .25s, clip-path .35s var(--ease); } /* GSAP owns this element's transform, so it grows by clip */
.cursor-label.show { opacity: 1; clip-path: circle(50% at 50% 50%); }
.footer-wordmark { overflow: hidden; padding-block: 4px clamp(20px, 3.4vw, 48px); }
.footer-wordmark img { width: min(100%, 1180px); height: auto; margin-inline: auto; }

/* Scroll effects live in js/lib/motion.js; content is visible by default. The mask gets room for italic descenders. */
.m-line-mask { padding-bottom: .14em; margin-bottom: -.14em; }
:has(> [data-motion="parallax"]) { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ── headings: capitalise the first letter of every word ── */
h1, h2, h3, h4, .pcard-name, .faq .acc summary { text-transform: capitalize; }

/* the 3D sea of light behind the footer logo */
.footer-stage { position: relative; isolation: isolate; }
.footer-3d { position: absolute; z-index: 0; left: 0; right: 0; top: -110px; bottom: 0; pointer-events: none; }
.footer-3d canvas { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 1.4s ease; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 80%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 80%, transparent); }
.footer-3d.is-live canvas { opacity: 1; }
.footer-stage > .container { position: relative; z-index: 1; }
.footer-3d.has-3d + .container .footer-wordmark { padding-block: 40px clamp(90px, 9vw, 150px); }
@media (max-width: 900px) { .site-footer { content-visibility: auto; contain-intrinsic-size: auto 1300px; } }
