/* Huellas & Co. — "Hora dorada" layout, palette 06 "Oliva claro" (design-options/palettes)
   Cinematic, low-key storefront: full-bleed portrait photography with shallow depth of field,
   warm espresso darks, ivory type, honey accents. Fraunces (display) + Figtree (text), both SIL OFL. */

@font-face{font-family:Fraunces;src:url('./fraunces-opsz.woff2') format('woff2');font-style:normal;font-weight:100 900;font-display:swap}
@font-face{font-family:Fraunces;src:url('./fraunces-opsz-italic.woff2') format('woff2');font-style:italic;font-weight:100 900;font-display:swap}
@font-face{font-family:Figtree;src:url('./figtree-variable.woff2') format('woff2');font-style:normal;font-weight:300 900;font-display:swap}

:root {
  --night: #f1f0e7;
  --night-rgb: 241, 240, 231;
  --night-2-rgb: 232, 231, 218;
  --night-2: #e8e7da;
  --night-3: #dcdbc9;
  --ivory: #1b1e15;
  --ivory-rgb: 27, 30, 21;
  --sand: #545a45;
  --smoke: rgba(var(--ivory-rgb), .66);
  --honey: #5f6b2e;
  --honey-rgb: 95, 107, 46;
  --honey-2: #6f7d35;
  --line: rgba(var(--ivory-rgb), .14);
  --line-strong: rgba(var(--ivory-rgb), .28);
  --paper: #e6e5d6;
  --paper-2: #d9d8c6;
  --paper-0: #f7f6ee;
  --paper-accent: #5f6b2e;
  --paper-accent-strong: #4a5423;
  --ink: #1b1e15;
  --ink-rgb: 27, 30, 21;
  --ink-muted: #545a45;
  --line-dark: rgba(var(--ink-rgb), .14);
  --danger: #b3402a;
  --serif: Fraunces, Georgia, 'Times New Roman', serif;
  --sans: Figtree, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 24px;
  --gutter: clamp(16px, 4vw, 48px);
  --header: 72px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--night); color: var(--ivory); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 380; line-height: 1.04; letter-spacing: -.02em; font-optical-sizing: auto; }
h1 em, h2 em, .manifesto em { font-style: italic; font-weight: 340; color: var(--honey-2); }
p { margin: 0; }
.wrap { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--honey); color: var(--night); font-weight: 600; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--honey); outline-offset: 3px; }
.kicker { margin-bottom: 18px; font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--honey); }
.footnote { margin-top: 18px; font-size: 12px; color: var(--smoke); }

/* ---------- Buttons ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border: 1px solid transparent; border-radius: 999px; font-size: 15px; font-weight: 600; letter-spacing: .01em; cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .25s; }
.button.small { min-height: 42px; padding: 0 20px; font-size: 14px; }
.button.full { width: 100%; }
.button.honey, .button.primary { background: var(--honey); color: var(--night); }
.button.honey:hover, .button.primary:hover { background: var(--honey-2); }
.button.ghost { border-color: var(--line-strong); color: var(--ivory); backdrop-filter: blur(10px); background: rgba(var(--night-rgb), .2); }
.button.ghost:hover { border-color: var(--ivory); }
.button:disabled { opacity: .5; cursor: not-allowed; }
.button-arrow, .button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s; }
.button:hover .button-arrow { transform: translateX(3px); }
.text-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-weight: 600; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.text-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .35s, border-color .35s, backdrop-filter .35s; border-bottom: 1px solid transparent; }
.site-header.is-scrolled, body:not(.front) .site-header { background: rgba(var(--night-rgb), .78); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header); }
.wordmark { font-family: var(--serif); font-size: 24px; font-weight: 420; letter-spacing: -.01em; white-space: nowrap; }
.wordmark i { color: var(--honey); font-weight: 300; }
.site-header nav { display: flex; gap: 32px; font-size: 14px; color: var(--smoke); }
.site-header nav a { transition: color .2s; }
.site-header nav a:hover { color: var(--ivory); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.cart-button { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 50%; }
.cart-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.cart-button span { position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--honey); color: var(--night); font-size: 11px; font-weight: 700; line-height: 19px; text-align: center; }

/* ---------- Hero ---------- */
.hero { position: relative; display: grid; grid-template-rows: 1fr auto; min-height: 100svh; isolation: isolate; overflow: hidden; }
.hero-photo, .hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero-photo img { object-fit: cover; object-position: 72% 30%; animation: hero-settle 2.4s cubic-bezier(.2, .7, .2, 1) both; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(var(--night-rgb),.9) 0%, rgba(var(--night-rgb),.66) 34%, rgba(var(--night-rgb),.12) 64%, rgba(var(--night-rgb),0) 80%),
    linear-gradient(180deg, rgba(var(--night-rgb),.55) 0%, rgba(var(--night-rgb),0) 22%, rgba(var(--night-rgb),0) 62%, var(--night) 100%); }
@keyframes hero-settle { from { transform: scale(1.07); filter: blur(6px) brightness(.8); } to { transform: none; filter: none; } }
.hero-content { align-self: center; padding-top: calc(var(--header) + 48px); padding-bottom: 48px; }
.hero h1 { max-width: 11ch; font-size: clamp(50px, 7.4vw, 112px); font-weight: 360; }
.hero-lede { max-width: 42ch; margin-top: 26px; font-size: clamp(16px, 1.4vw, 19px); color: var(--sand); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-content > * { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.hero-content > :nth-child(2) { animation-delay: .12s; } .hero-content > :nth-child(3) { animation-delay: .24s; } .hero-content > :nth-child(4) { animation-delay: .36s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 36px; margin: 0 auto; padding-top: 22px; padding-bottom: 30px; list-style: none; font-size: 13px; color: var(--sand); }
.hero-facts li { display: flex; align-items: center; gap: 10px; }
.hero-facts svg { width: 18px; height: 18px; fill: none; stroke: var(--honey); stroke-width: 1.5; stroke-linecap: round; }

/* ---------- Manifesto ---------- */
.manifesto { padding: clamp(80px, 12vw, 160px) 0; }
.manifesto p { max-width: 24ch; margin-inline: auto; font-family: var(--serif); font-size: clamp(30px, 4.2vw, 60px); font-weight: 340; line-height: 1.12; letter-spacing: -.02em; text-align: center; }
.manifesto em { color: var(--sand); }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 10vw, 140px) 0; }
.heading { max-width: 720px; margin-bottom: clamp(36px, 5vw, 64px); }
.heading h2 { font-size: clamp(38px, 5vw, 72px); }
.heading > p:not(.kicker) { max-width: 52ch; margin-top: 20px; color: var(--smoke); font-size: 17px; }
.shapes .heading, .finishes .heading, .studio-section .heading { margin-inline: auto; text-align: center; }
.shapes .heading > p, .finishes .heading > p, .studio-section .heading > p { margin-inline: auto; }

/* Product renders sit on the same defocused street the studio uses. */
.shape-row, .finish-row { display: grid; gap: clamp(14px, 2vw, 24px); margin: 0; padding: 0; list-style: none; }
.shape-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.finish-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.shape-card, .finish-row li { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--night-2) url('photos/studio-bokeh.webp') center / cover; isolation: isolate; }
.shape-card::before, .finish-row li::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 55% at 50% 42%, rgba(var(--night-rgb),0), rgba(var(--night-rgb),.55)), linear-gradient(180deg, rgba(var(--night-rgb),.2), rgba(var(--night-rgb),.25) 60%, rgba(var(--night-rgb),.9)); }
.shape-card img, .finish-row img { width: 100%; aspect-ratio: 9 / 11; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.shape-card:hover img { transform: scale(1.05) rotate(-1.5deg); }
/* Shape cards: a product photograph (4:3) with the label on paper beneath it. */
.shape-card { background: var(--paper-0); border: 1px solid var(--line); }
.shape-card::before { display: none; }
.shape-card img { aspect-ratio: 4 / 3; }
.shape-card .shape-info { position: static; margin: 0; padding: 18px 84px 22px 24px; }
.shape-card:hover img { transform: none; } /* Photos stay put; the arrow carries the hover. */
.shape-info { display: grid; gap: 2px; margin-top: -24px; padding: 0 84px 24px 24px; }
.shape-info strong { font-family: var(--serif); font-size: 30px; font-weight: 380; }
.shape-info > span { font-size: 14px; color: var(--sand); }
.shape-cta { position: absolute; right: 22px; bottom: 24px; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--honey); color: var(--night); transition: transform .3s; }
.shape-cta svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.shape-card:hover .shape-cta { transform: rotate(-45deg); }
.finish-row li { display: grid; padding-bottom: 20px; }
.finish-row img { margin-bottom: -8px; }
.finish-row strong { padding-inline: 20px; font-family: var(--serif); font-size: 24px; font-weight: 400; }
.finish-row span { padding-inline: 20px; font-size: 13px; color: var(--sand); }

/* ---------- Pet portraits ---------- */
.pets { display: grid; grid-template-columns: 1fr 1fr; }
.pet-portrait { position: relative; display: block; overflow: hidden; isolation: isolate; }
.pet-portrait img { width: 100%; height: min(92vh, 980px); min-height: 520px; object-fit: cover; object-position: 50% 30%; transition: transform 1.6s cubic-bezier(.2, .7, .2, 1); }
.pet-portrait:hover img { transform: scale(1.04); }
.pet-portrait::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(var(--night-rgb),0) 45%, rgba(var(--night-rgb),.85)); }
.pet-copy { position: absolute; z-index: 1; left: clamp(20px, 4vw, 56px); right: 20px; bottom: clamp(28px, 5vw, 56px); display: grid; gap: 6px; }
.pet-copy .kicker { margin: 0; }
.pet-copy strong { max-width: 14ch; font-family: var(--serif); font-size: clamp(30px, 3.4vw, 50px); font-weight: 360; line-height: 1.05; }
.pet-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--sand); }
.pet-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .25s; }
.pet-portrait:hover .pet-link svg { transform: translateX(4px); }

/* ---------- Studio (tag builder) ---------- */
.studio-section { position: relative; padding: clamp(80px, 10vw, 130px) 0; isolation: isolate; }
.studio-section::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--night) 0%, rgba(var(--night-rgb),.7) 18%, rgba(var(--night-rgb),.78) 80%, var(--night) 100%), url('photos/studio-bokeh.webp') center / cover; }
.studio { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(360px, .8fr); gap: clamp(16px, 2.4vw, 32px); align-items: start; }
.studio-stage { position: sticky; top: calc(var(--header) + 16px); height: min(80vh, 780px); min-height: 460px; overflow: hidden; border-radius: 32px; background: var(--night-3) url('photos/studio-bokeh.webp') center / cover; box-shadow: 0 40px 80px -40px rgba(0,0,0,.8), inset 0 0 0 1px rgba(255,255,255,.06); isolation: isolate; }
.studio-stage::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 55% at 50% 45%, rgba(var(--night-rgb),0), rgba(var(--night-rgb),.6)); }
.studio-view { position: absolute; inset: 0; cursor: grab; touch-action: pan-y; outline: none; }
.studio-view:focus-visible { box-shadow: inset 0 0 0 2px var(--honey); border-radius: 32px; }
.studio-view.is-dragging { cursor: grabbing; }
.studio-canvas { width: 100%; height: 100%; }
.studio-loading { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--sand); animation: pulse 1.6s ease-in-out infinite; }
.studio-view[data-rendered] .studio-loading { display: none; }
@keyframes pulse { 50% { opacity: .4; } }
.tag-sides { position: absolute; inset: 70px 20px 120px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: center; }
.tag-sides figure { margin: 0; padding: 16px; border-radius: 20px; background: var(--paper-0); color: var(--ink); text-align: center; }
.tag-sides svg { width: 100%; height: auto; }
.tag-sides figcaption { margin-top: 6px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); }
.stage-top { position: absolute; top: 18px; left: 18px; right: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; pointer-events: none; }
.stage-top > * { pointer-events: auto; }
.segmented { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(var(--night-rgb),.55); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.segmented button { min-height: 36px; padding: 0 16px; border: 0; border-radius: 999px; background: none; font-size: 13px; font-weight: 600; color: var(--sand); cursor: pointer; transition: background .2s, color .2s; }
.segmented button[aria-pressed="true"] { background: var(--ivory); color: var(--night); }
.side-switch { margin-left: auto; }
.stage-hint { display: block; margin-bottom: 6px; font-size: 12px; color: var(--smoke); letter-spacing: .04em; }
.studio-stage:not(.is-realistic) .stage-hint { display: none; }
.stage-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 24px 20px; background: linear-gradient(180deg, rgba(var(--night-rgb),0), rgba(var(--night-rgb),.82) 40%); text-align: center; pointer-events: none; }
.stage-caption strong { display: block; font-family: var(--serif); font-size: 18px; font-weight: 420; }
.stage-caption p { margin-top: 4px; font-size: 12px; color: var(--smoke); }

.studio-panel { padding: clamp(22px, 2.4vw, 32px); border-radius: 32px; background: rgba(var(--night-2-rgb), .82); border: 1px solid var(--line); backdrop-filter: blur(22px) saturate(1.2); -webkit-backdrop-filter: blur(22px) saturate(1.2); box-shadow: 0 40px 80px -40px rgba(0,0,0,.8); color: var(--ivory); }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 22px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.panel-head .eyebrow { display: block; margin-bottom: 8px; font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--honey); }
.panel-head h3 { font-size: 32px; }
.panel-price { display: grid; text-align: right; font-family: var(--serif); font-size: 26px; font-weight: 420; }
.panel-price small { font-family: var(--sans); font-size: 12px; font-weight: 500; color: var(--smoke); }
.studio-panel fieldset { margin: 0; padding: 26px 0 0; border: 0; min-width: 0; }
/* Floated legends respect the fieldset's spacing like any other label. */
.studio-panel fieldset > legend { float: left; }
.studio-panel fieldset > legend + * { clear: both; }
.studio-panel .field { display: grid; gap: 8px; padding-top: 22px; }
.studio-panel fieldset .field { padding-top: 14px; }
.studio-panel legend, .studio-panel label[for] { display: flex; align-items: baseline; gap: 10px; width: 100%; margin-bottom: 10px; padding: 0; font-size: 14px; font-weight: 600; }
.studio-panel .field label[for] { margin-bottom: 0; }
.field-number { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 15px; color: var(--honey); }
.optional { font-weight: 400; color: var(--smoke); font-size: 12px; }
.size-guide-link { margin-left: auto; font-size: 12px; font-weight: 500; color: var(--sand); text-decoration: underline; text-underline-offset: 3px; }
.studio-panel input[type="text"], .studio-panel input[type="tel"] { width: 100%; min-height: 52px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 14px; background: rgba(var(--ivory-rgb),.05); font-size: 17px; transition: border-color .2s, background .2s; }
.studio-panel input::placeholder { color: rgba(var(--ivory-rgb),.38); }
.studio-panel input[type="text"]:focus, .studio-panel input[type="tel"]:focus { outline: none; border-color: var(--honey); background: rgba(var(--ivory-rgb),.08); }
.studio-panel small { font-size: 12px; color: var(--smoke); }
.choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.choice-grid.finish-choices { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.choice-grid label, .artwork-grid label { position: relative; display: block; cursor: pointer; }
.choice-grid input, .artwork-grid input { position: absolute; opacity: 0; pointer-events: none; }
.choice-grid span { display: grid; justify-items: center; gap: 6px; min-height: 52px; padding: 10px 6px; border: 1px solid var(--line); border-radius: 14px; background: rgba(var(--ivory-rgb),.03); font-size: 13px; font-weight: 500; text-align: center; color: var(--sand); transition: border-color .2s, background .2s, color .2s; }
.choice-grid label:hover span { border-color: var(--line-strong); }
.choice-grid input:checked + span { border-color: var(--honey); background: rgba(var(--honey-rgb),.12); color: var(--ivory); }
.choice-grid input:focus-visible + span, .artwork-grid input:focus-visible + span { outline: 2px solid var(--honey); outline-offset: 2px; }
.choice-grid.shapes svg { width: 40px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.choice-grid.shapes .hole { fill: currentColor; stroke: none; }
.size-choices span { align-content: center; gap: 2px; font-family: var(--serif); font-size: 20px; line-height: 1.1; }
.size-choices small { display: block; font-family: var(--sans); font-size: 11.5px; line-height: 1.2; color: var(--sand); white-space: nowrap; }
.choice-grid label.is-unavailable { cursor: not-allowed; }
.choice-grid label.is-unavailable span { opacity: .45; border-style: dashed; }
.styles b { font-size: 24px; font-weight: 400; line-height: 1.15; color: var(--ivory); white-space: nowrap; }
.font-classic { font-family: Georgia, serif; }
.font-playful { font-family: Arial, sans-serif; font-weight: 700 !important; }
.font-botanical { font-family: Georgia, serif; font-style: italic; }
.finish-swatch { width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25), 0 6px 14px -6px rgba(0,0,0,.8); }
.finish-gold { background: conic-gradient(from 210deg, #fff1b8, #d9a531, #ffe58a, #a87908, #f7d468, #fff1b8); }
.finish-rose-gold { background: conic-gradient(from 210deg, #ffe4d2, #d07f55, #f9c6a3, #a65a33, #f0b38c, #ffe4d2); }
.finish-silver { background: conic-gradient(from 210deg, #ffffff, #9aa1a6, #f2f4f5, #6f767b, #dfe3e5, #ffffff); }
.finish-black { background: conic-gradient(from 210deg, #5a5a5e, #0b0b0c, #39393c, #050506, #2a2a2d, #5a5a5e); }
.artwork-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.artwork-grid span { display: grid; justify-items: center; gap: 4px; padding: 8px 4px; border: 1px solid var(--line); border-radius: 14px; text-align: center; transition: border-color .2s, background .2s; }
.artwork-grid svg { width: 100%; max-width: 64px; height: 52px; }
.artwork-grid .tile-metal { fill: var(--paper-0); stroke: var(--sand); stroke-width: 3; }
.artwork-grid .tile-hole { fill: var(--night-2); }
.artwork-grid .tile-art-stroke { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.artwork-grid .tile-art-fill { fill: var(--ink); }
.artwork-grid .tile-name { fill: var(--ink); font-family: Georgia, serif; opacity: .55; }
.artwork-grid strong { font-size: 10.5px; font-weight: 500; line-height: 1.2; color: var(--sand); }
.artwork-grid input:checked + span { border-color: var(--honey); background: rgba(var(--honey-rgb),.12); }
.proposal-button { margin-top: 24px; padding: 0; border: 0; background: none; font-size: 14px; font-weight: 600; color: var(--honey); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.proposal-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.proposal-grid button { display: grid; justify-items: center; gap: 6px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper-0); color: var(--ink); font-size: 12px; font-weight: 600; cursor: pointer; }
.proposal-grid img { width: 100%; height: auto; }
.form-message { margin-top: 18px; padding: 12px 16px; border-radius: 14px; background: rgba(255,179,158,.12); border: 1px solid rgba(255,179,158,.4); color: var(--danger); font-size: 14px; }
.form-message.success { background: rgba(var(--honey-rgb),.12); border-color: rgba(var(--honey-rgb),.4); color: var(--honey-2); }
.studio-panel #add-tag { margin-top: 26px; min-height: 58px; font-size: 16px; }
.wizard-reassurance, .shipping-hint { margin-top: 12px; font-size: 12.5px; text-align: center; color: var(--smoke); }
.wizard-reassurance { color: var(--sand); }

/* ---------- How it works ---------- */
.how-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.how-photo { margin: 0; overflow: hidden; border-radius: 32px; }
.how-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.steps { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.steps li { display: grid; grid-template-columns: 76px 1fr; gap: 16px; padding: 26px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.step-number { font-family: var(--serif); font-style: italic; font-size: 46px; font-weight: 300; line-height: 1; color: var(--honey); }
.steps h3 { font-size: 28px; margin-bottom: 8px; }
.steps p { color: var(--smoke); }

/* ---------- Light chapter: sizes + FAQ ---------- */
.sizes, .faq { background: var(--paper); color: var(--ink); color-scheme: light; }
.sizes { padding-bottom: clamp(40px, 5vw, 70px); }
.faq { padding-top: clamp(40px, 5vw, 70px); }
.sizes .kicker, .faq .kicker { color: var(--paper-accent-strong); }
.sizes h2 em, .faq h2 em { color: var(--paper-accent); }
.sizes .heading > p:not(.kicker), .faq .heading > p:not(.kicker), .sizes .footnote { color: var(--ink-muted); }
.size-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.size-layout .heading { margin-bottom: 0; }
.size-drawing { margin: 0; padding: clamp(20px, 3vw, 40px); border-radius: 32px; background: var(--paper-2); }
.size-guide { width: 100%; height: auto; overflow: visible; font-family: var(--sans); }
.size-guide .size-metal { fill: var(--paper-0); stroke: #a39c84; stroke-width: 1.2; transition: fill .3s, stroke .3s; }
.size-guide .size-hole { fill: var(--paper-2); stroke: #a39c84; stroke-width: 1; }
.size-guide .is-current .size-metal { fill: rgba(var(--honey-rgb), .16); stroke: var(--paper-accent); stroke-width: 2; }
.size-guide .size-col { font-family: var(--serif); font-size: 20px; text-anchor: middle; fill: var(--ink); }
.size-guide .size-row { font-family: var(--serif); font-size: 17px; fill: var(--ink); }
.size-guide .size-dim { font-size: 13px; text-anchor: middle; fill: var(--ink-muted); }
.size-guide .size-na { font-size: 12px; text-anchor: middle; fill: var(--ink-muted); font-style: italic; }
.size-drawing figcaption { margin-top: 14px; font-size: 13px; color: var(--ink-muted); }
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-list details { border-top: 1px solid var(--line-dark); }
.faq-list details:last-child { border-bottom: 1px solid var(--line-dark); }
.faq-list summary { position: relative; padding: 24px 48px 24px 0; font-family: var(--serif); font-size: clamp(19px, 1.7vw, 23px); font-weight: 400; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ''; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -7px; background: linear-gradient(currentColor, currentColor) center / 14px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 14px no-repeat; transition: transform .3s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 48px 24px 0; color: var(--ink-muted); }
.faq .text-link { color: var(--ink); }

/* ---------- Closing ---------- */
.closing { position: relative; display: grid; place-items: center; min-height: min(78vh, 760px); overflow: hidden; isolation: isolate; text-align: center; }
.closing-photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 76% 50%; }
.closing::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(var(--night-rgb),.5), rgba(var(--night-rgb),.62) 60%, var(--night)); }
.closing h2 { max-width: 14ch; margin: 0 auto 34px; font-size: clamp(42px, 6vw, 88px); }

/* ---------- Footer ---------- */
.site-footer { padding: 72px 0 32px; background: var(--night); color: var(--sand); border-top: 1px solid var(--line); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-top .wordmark { color: var(--ivory); font-size: 30px; }
.footer-top p { margin-top: 14px; font-size: 14px; }
.footer-top h3 { margin-bottom: 16px; font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--honey); }
.footer-top > div > a:not(.wordmark) { display: block; padding: 4px 0; font-size: 14px; transition: color .2s; }
.footer-top a:hover { color: var(--ivory); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 12px; color: var(--smoke); }
.footer-bottom div { display: flex; gap: 18px; }

/* ---------- Demo cart dialog ---------- */
dialog { width: min(480px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 28px; border: 1px solid var(--line); border-radius: 28px; background: var(--night-2); color: var(--ivory); box-shadow: 0 40px 120px rgba(0,0,0,.6); }
dialog::backdrop { background: rgba(10,8,6,.6); backdrop-filter: blur(6px); }
.dialog-head { display: flex; justify-content: space-between; align-items: center; }
.dialog-head h2 { font-size: 30px; }
.icon-button { width: 40px; height: 40px; border: 1px solid var(--line-strong); border-radius: 50%; background: none; font-size: 22px; line-height: 1; cursor: pointer; }
.demo-notice { margin: 10px 0 18px; padding: 10px 14px; border-radius: 12px; background: rgba(var(--honey-rgb),.12); font-size: 12px; color: var(--honey-2); }
.cart-line { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-line h3 { font-size: 22px; }
.cart-line p { margin-top: 4px; font-size: 13px; color: var(--smoke); }
.cart-line button { margin-top: 6px; padding: 6px 0; border: 0; background: none; font-size: 13px; color: var(--honey); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.cart-total { display: flex; justify-content: space-between; margin: 22px 0; font-size: 16px; }
.muted { margin: 12px 0; font-size: 12px; color: var(--smoke); }
.empty-cart { padding: 28px 0; text-align: center; color: var(--smoke); }

/* ---------- Content & WooCommerce pages (light paper for legibility of forms and tables) ---------- */
body:not(.front) { background: var(--paper); color: var(--ink); color-scheme: light; }
body:not(.front) .site-header { color: var(--ivory); }
.page-content { min-height: 50vh; padding-top: calc(var(--header) + 56px); padding-bottom: 96px; }
.page-content h1 { font-size: clamp(42px, 5vw, 64px); margin-bottom: 24px; }
.page-content h2 { font-size: 32px; margin: 28px 0 14px; }
.page-content p { margin-block: 14px; }
.page-content a:not(.button) { color: var(--paper-accent-strong); text-decoration: underline; text-underline-offset: 3px; }
.page-content .studio-panel a:not(.button) { color: var(--sand); }
.woocommerce table.shop_table { border-color: var(--line-dark); border-radius: 18px; background: var(--paper-0); }
.woocommerce-page .woocommerce table.shop_table td { padding: 16px; }
.woocommerce-page .woocommerce table.cart img { width: 90px; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce button.button.alt, .woocommerce-page .woocommerce a.button.alt, .woocommerce-page .woocommerce button.button.alt { background: var(--ink); color: var(--paper); border-radius: 999px; padding: 15px 24px; font-size: 14px; font-weight: 600; text-decoration: none; }
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce-page .woocommerce a.button.alt:hover, .woocommerce-page .woocommerce button.button.alt:hover { background: #000; color: var(--paper); }
.woocommerce form .form-row label { font-size: 13px; font-weight: 600; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea { padding: 13px 14px; border-radius: 12px; border: 1px solid rgba(var(--ink-rgb),.25); background: var(--paper-0); color: var(--ink); }
.woocommerce-info, .woocommerce-message { border-top-color: var(--paper-accent); background: var(--paper-0); color: var(--ink); }
.woocommerce-info::before, .woocommerce-message::before { color: var(--paper-accent); }
.woocommerce #payment, .woocommerce-page .woocommerce #payment { background: var(--paper-2); border-radius: 18px; }
.woocommerce-page .woocommerce #payment .payment_box { background: var(--paper-0); color: var(--ink); }
.woocommerce-page .woocommerce #payment .payment_box::before { border-bottom-color: var(--paper-0); }
.woocommerce .col2-set { margin-bottom: 32px; }
.woocommerce-order-overview { padding: 0; }
.woocommerce .quantity .qty { min-width: 72px; }
.woocommerce dl.variation { font-size: 12px; }
.woocommerce-page .woocommerce dl.variation dd { margin-bottom: 8px; }
.woocommerce-page .woocommerce dl.variation dd p { margin: 0; }
.page-content .studio { margin-top: 24px; }
.whatsapp-help { position: fixed; right: 20px; bottom: 20px; z-index: 40; padding: 14px 20px; border-radius: 999px; background: var(--honey); color: var(--night); font-size: 13px; font-weight: 600; box-shadow: 0 12px 30px -12px rgba(0,0,0,.6); }

/* ---------- Scroll reveal (progressive; content is visible without support) ---------- */
@supports (animation-timeline: view()) {
  .heading, .shape-row li, .finish-row li, .steps li, .how-photo, .size-drawing, .faq-list details, .closing-inner, .manifesto p, .pet-copy { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
  @keyframes reveal { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .site-header nav { gap: 22px; }
  .studio { grid-template-columns: minmax(0, 1fr) minmax(340px, .95fr); }
  .artwork-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .finish-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  :root { --header: 64px; }
  .site-header nav { display: none; }
  .studio { grid-template-columns: 1fr; }
  /* The tag stays in view while the customer types underneath it. */
  .studio-stage { top: calc(var(--header) + 8px); z-index: 2; height: 46svh; min-height: 320px; border-radius: 26px; }
  .stage-caption { padding: 12px 16px 14px; }
  .stage-caption p { display: none; }
  .tag-sides { inset: 64px 12px 90px; }
  .shape-row { grid-template-columns: repeat(3, minmax(250px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .shape-row li { scroll-snap-align: center; }
  .how-grid, .size-layout, .faq-grid { grid-template-columns: 1fr; }
  .how-photo img { aspect-ratio: 4 / 3; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .header-actions .button { display: none; }
  .hero { grid-template-rows: 1fr auto; }
  .hero-photo img { object-position: 55% 20%; }
  .hero::before { background: linear-gradient(180deg, rgba(var(--night-rgb),.5) 0%, rgba(var(--night-rgb),0) 16%, rgba(var(--night-rgb),.25) 28%, rgba(var(--night-rgb),.86) 44%, var(--night) 70%); }
  .hero-photo img { height: 62%; bottom: auto; }
  .hero-content { align-self: end; padding-top: 44svh; padding-bottom: 20px; }
  .segmented button { min-height: 32px; padding: 0 12px; font-size: 12px; }
  .long-label { display: none; }
  .hero h1 { font-size: clamp(44px, 12.5vw, 64px); }
  .hero-actions .button { flex: 1 1 auto; }
  .hero-facts { flex-direction: column; gap: 8px; }
  .pets { grid-template-columns: 1fr; }
  .pet-portrait img { height: 78svh; min-height: 460px; }
  .finish-row { gap: 10px; }
  .finish-row strong { padding-inline: 14px; font-size: 20px; }
  .finish-row span { padding-inline: 14px; font-size: 12px; }
  .studio-panel { border-radius: 26px; }
  .choice-grid.finish-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .choice-grid.finish-choices span { grid-auto-flow: column; justify-content: start; padding-inline: 12px; }
  .artwork-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .panel-head h3 { font-size: 26px; }
  .steps li { grid-template-columns: 56px 1fr; }
  .step-number { font-size: 36px; }
  .footer-top { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
