/* The Bright Box — site proposal. Direction: "the page is the object" (the flat print sheet).
   Brand inks kept: lemon yellow, black, paper white. One face: Erode. */
:root {
  --yellow: #faf700;
  --paper: #ffffff;
  --paper-2: #f1f1ec;
  --ink: #111111;
  --soft: #474747;
  --black: #111111;
  --on-black: #ffffff;
  --line-dot: #111111;

  --font: "Erode", Georgia, "Times New Roman", serif;
  --hat-font: "ArvoHat", "Arvo", Georgia, serif;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-sub: clamp(1.875rem, 1.3rem + 1.6vw, 2.75rem);
  --step-display: clamp(2.5rem, 0.6rem + 4.6vw, 5rem);

  --margin: clamp(1rem, 2.2vw, 2rem);
  --gutter: clamp(1rem, 2vw, 2rem);
  --section: clamp(7.5rem, 12vw, 12rem);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
  --t-reveal: 800ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: var(--step-body); line-height: 1.5; font-kerning: normal; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
img, video, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
:target { scroll-margin-top: 2rem; }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.on-black :focus-visible { outline-color: var(--yellow); }

h1, h2, h3 { font-family: var(--font); font-weight: 500; text-wrap: balance; letter-spacing: -0.025em; line-height: 0.98; }
h2 { font-size: var(--step-head); }
h3 { font-size: var(--step-lead); line-height: 1.15; letter-spacing: -0.01em; font-weight: 600; }
p { max-width: 62ch; text-wrap: pretty; }
.lead { font-size: var(--step-lead); line-height: 1.32; }
.small { font-size: var(--step-small); line-height: 1.45; }
.soft { color: var(--soft); }
.nums { font-variant-numeric: tabular-nums lining-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { padding-inline: var(--margin); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }

/* ---------- controls ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 0.6em; min-height: 3.25rem; padding: 0 1.5rem; background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 600; white-space: nowrap; border-radius: 0; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease; }
.button:active { transform: scale(0.97); }
.button.is-yellow { background: var(--yellow); color: var(--ink); }
.button.is-paper { background: var(--paper); color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: #333; }
  .button.is-yellow:hover { background: var(--paper); }
  .button.is-paper:hover { background: var(--yellow); }
}
.link { text-decoration: underline; text-decoration-thickness: 0.08em; text-underline-offset: 0.22em; transition: text-decoration-color var(--t-hover) ease, color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) { .link:hover { text-decoration-color: transparent; } }
.field { width: 100%; min-height: 3.25rem; padding: 0.7rem 0.9rem; background: var(--paper-2); border: 0; border-radius: 0; font-size: max(1rem, var(--step-body)); }
.field:focus { background: #e9e9e2; }

/* ---------- top bar ---------- */
.top { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: var(--gutter); padding-block: 1rem; }
.top .brand img { width: auto; height: 64px; }
.top nav ul { display: flex; gap: clamp(1rem, 2.4vw, 2.4rem); }
.top nav a { text-decoration: none; font-weight: 500; }
.top nav a:hover { text-decoration: underline; text-underline-offset: 0.22em; }
.top-links-phone { display: none; }

/* ---------- hero: the print sheet on the brand yellow ---------- */
.hero { background: var(--yellow); padding-bottom: clamp(3rem, 6vw, 6rem); }
.hero-grid { position: relative; align-items: start; padding-top: clamp(0.5rem, 1.2vw, 1.25rem); }
.hero .seals { grid-column: 1 / 3; padding-top: clamp(16rem, 27vw, 24rem); }
.seals li { font-size: var(--step-lead); line-height: 1.2; font-weight: 500; letter-spacing: -0.01em; }
.seals li + li { margin-top: 1.4rem; }
.sheet { grid-column: 3 / 11; position: relative; background: var(--paper); padding: clamp(1.25rem, 3.9vw, 3.5rem); text-align: center; display: flex; flex-direction: column; }
.sheet h1 { font-size: var(--step-display); max-width: 14ch; margin-inline: auto; }
.sheet .sub { margin: 1.1rem auto 0; max-width: 50ch; }
.preview { margin: clamp(1rem, 2vw, 1.5rem) auto 0; width: min(100%, 46rem); }
.preview canvas, .preview img { width: 100%; height: auto; }
.preview [data-hat-view="flat"] canvas { touch-action: none; }
.view-toggle { display: none; }
.fold-figure { position: absolute; left: calc(100% + var(--gutter)); top: clamp(14rem, 22vw, 20rem); width: calc((100% - 7 * var(--gutter)) / 4 + var(--gutter)); }
.fold-figure canvas, .fold-figure img { width: 100%; height: auto; }
.fold-figure figcaption { margin-top: 0.75rem; text-align: left; }
.controls { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.25rem var(--gutter); margin-top: clamp(1.5rem, 3vw, 2.5rem); text-align: left; }
.controls > * { grid-column: 1 / -1; }
.control-label { display: block; font-weight: 600; margin-bottom: 0.5rem; }
.words { grid-column: 1 / 4; }
.photo-box { grid-column: 4 / 7; }
.photo-box .row { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: center; }
.file-button { position: relative; overflow: hidden; }
.file-button input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-button:focus-within { outline: 3px solid var(--ink); outline-offset: 3px; }
.zoom { width: 9rem; accent-color: var(--ink); }
.themes { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 0.5rem; }
.themes button { display: grid; gap: 0.3rem; justify-items: center; padding: 0.55rem 0.2rem 0.4rem; background: var(--paper-2); transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.themes button img { width: 100%; height: auto; transition: transform var(--t-ui) var(--ease-out); }
.themes button span { font-size: var(--step-small); line-height: 1.1; }
.themes button[aria-pressed="true"] { background: var(--yellow); }
.themes button:active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) { .themes button:hover img { transform: translateY(-3px) rotate(-2deg); } }
.order-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; padding: 1.25rem 1.25rem; background: var(--paper-2); }
.order-row p { font-size: var(--step-body); }
.job { padding-top: 2.5rem; font-size: var(--step-small); color: var(--soft); text-align: center; }
.note-shrunk { color: var(--ink); font-size: var(--step-small); margin-top: 0.4rem; }
.note-shrunk[data-hat-out] { display: block; }
.note-shrunk[hidden] { display: none; }
.count { display: block; margin-top: 0.4rem; color: var(--soft); }
.count.is-full { color: var(--ink); font-weight: 600; }
.preview-note { margin: 0.75rem auto 0; max-width: 46rem; text-align: center; color: var(--ink); }
.sep { display: inline-block; margin: 0 0.6em 0 0.4em; } /* Erode draws the middle dot right of centre */
img.is-broken { background: var(--paper-2); }

/* ---------- showcase: frame run, one lifted (the ten themes, photographed) ---------- */
.themes-run { padding-block: clamp(4.5rem, 8vw, 8rem) 0; }
.themes-run .grid { align-items: end; }
.run-intro { grid-column: 1 / 4; align-self: start; }
.run-intro h2 { font-size: var(--step-head); }
.run-intro .link { display: inline-block; margin-top: 1.25rem; font-weight: 600; }
.lifted { grid-column: 4 / 8; }
.lifted img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--paper-2); }
@media (prefers-reduced-motion: no-preference) { .lifted img.is-swapping { animation: swap 520ms var(--ease-out); } }
.cap-row { display: flex; justify-content: space-between; gap: 1rem; margin-top: 0.6rem; }
.run-side { grid-column: 8 / 13; align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; gap: 2.5rem; }
.notes p + p { margin-top: 1rem; }
.run { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px 6px; }
.frame { text-align: left; transition: transform var(--t-ui) var(--ease-out); }
.frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--paper-2); }
.frame .cap { display: block; padding: 0.35rem 0.4rem; font-size: var(--step-small); transition: background-color var(--t-hover) ease; }
.frame.is-lifted .cap { background: var(--yellow); }
.frame:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .frame:not(.is-lifted):hover { transform: translateY(-4px); } }
@keyframes swap { from { opacity: 0.2; transform: scale(0.985); } to { opacity: 1; transform: none; } }

/* ---------- features: the price list sheet ---------- */
.prices { margin-top: var(--section); background: var(--black); color: var(--on-black); padding-block: clamp(5rem, 9vw, 9rem); }
.prices .grid { align-items: center; }
.price-sheet { grid-column: 2 / 7; background: var(--paper); color: var(--ink); padding: clamp(2rem, 4vw, 3.5rem) clamp(1.25rem, 3.5vw, 3rem); --z: 14px;
  clip-path: polygon(0 var(--z), 4% 0, 8% var(--z), 12% 0, 16% var(--z), 20% 0, 24% var(--z), 28% 0, 32% var(--z), 36% 0, 40% var(--z), 44% 0, 48% var(--z), 52% 0, 56% var(--z), 60% 0, 64% var(--z), 68% 0, 72% var(--z), 76% 0, 80% var(--z), 84% 0, 88% var(--z), 92% 0, 96% var(--z), 100% 0,
    100% calc(100% - var(--z)), 96% 100%, 92% calc(100% - var(--z)), 88% 100%, 84% calc(100% - var(--z)), 80% 100%, 76% calc(100% - var(--z)), 72% 100%, 68% calc(100% - var(--z)), 64% 100%, 60% calc(100% - var(--z)), 56% 100%, 52% calc(100% - var(--z)), 48% 100%, 44% calc(100% - var(--z)), 40% 100%, 36% calc(100% - var(--z)), 32% 100%, 28% calc(100% - var(--z)), 24% 100%, 20% calc(100% - var(--z)), 16% 100%, 12% calc(100% - var(--z)), 8% 100%, 4% calc(100% - var(--z)), 0 100%); }
.price-sheet h2 { text-align: center; margin-bottom: 2.5rem; }
.price-group + .price-group { margin-top: 2.75rem; }
.price-group h3 { font-size: var(--step-lead); margin-bottom: 1rem; }
.price-group li { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 0.6rem; }
.price-group li + li { margin-top: 1.1rem; }
.price-group .name { order: 1; font-weight: 500; }
.price-group .dots { order: 2; align-self: end; margin-bottom: 0.4em; border-bottom: 4px dotted var(--ink); }
.price-group .val { order: 3; font-weight: 600; white-space: nowrap; }
.price-group .desc { grid-column: 1 / -1; order: 4; color: var(--soft); max-width: 40ch; margin-top: 0.15rem; }
.price-photo { grid-column: 8 / 13; }
.price-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.price-photo figcaption { margin-top: 0.75rem; }
.price-photo .button { margin-top: 1.5rem; }

/* ---------- how it works: drag row of moments ---------- */
.how { padding-top: var(--section); overflow: clip; }
.how-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.how-head h2 { font-size: var(--step-head); }
.how-buttons { display: flex; gap: 8px; }
.how-buttons button { width: 48px; height: 48px; background: var(--ink); color: var(--paper); display: grid; place-items: center; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease; }
.how-buttons button:active { transform: scale(0.94); }
.how-buttons button:disabled { background: var(--paper-2); color: var(--soft); cursor: default; }
.how-bar { margin-top: 1.5rem; height: 6px; background: var(--paper-2); }
.how-bar span { display: block; height: 100%; width: 20%; background: var(--ink); transform-origin: left; transition: width 200ms linear; }
.how .moments { display: flex; gap: 32px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--margin); padding: 2.5rem var(--margin) 0.5rem; margin-inline: calc(var(--margin) * -1); scrollbar-width: none; cursor: grab; }
.moments::-webkit-scrollbar { display: none; }
.moment { flex: 0 0 280px; scroll-snap-align: start; display: flex; flex-direction: column; }
.moment h3 { font-size: var(--step-body); font-weight: 700; letter-spacing: 0; }
.moment p { margin-top: 0.5rem; color: var(--soft); min-height: 4.5em; line-height: 1.45; }
.moment .gap { flex: 0 0 auto; height: var(--g, 96px); }
.moment img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--paper-2); }

/* ---------- gallery: best sellers, photo with its tag ---------- */
.best { padding-top: var(--section); }
.best h2 { font-size: var(--step-head); margin-bottom: 2.5rem; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 12px; }
.tile { display: block; text-decoration: none; }
.tile .pic { overflow: clip; }
.tile img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 700ms var(--ease-soft); }
@media (hover: hover) and (pointer: fine) { .tile:hover img { transform: scale(1.04); } }
.tile:active { transform: scale(0.99); }
.tag { padding: 12px; min-height: 88px; font-size: var(--step-small); line-height: 1.35; display: grid; gap: 4px; }
.tag .r1 { display: flex; justify-content: space-between; gap: 0.5rem; font-weight: 600; }
.tag .r2 { display: flex; justify-content: space-between; gap: 0.5rem; }
.tag.t1 { background: var(--yellow); color: var(--ink); }
.tag.t2 { background: var(--ink); color: var(--paper); }
.tag.t3 { background: var(--paper-2); color: var(--ink); }
.tag.t4 { background: #2b2b2b; color: var(--yellow); }

/* ---------- list: the catalogue as a menu with photo bullets ---------- */
.catalog { padding-top: var(--section); }
.catalog > h2 { font-size: var(--step-head); max-width: 18ch; }
.catalog .intro { margin-top: 1.25rem; }
.cat-jump { display: none; }
.cat { margin-top: 6rem; }
.cat-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 2.5rem; }
.cat-head a { font-weight: 600; white-space: nowrap; }
.cat-head h3 { font-size: var(--step-sub); font-weight: 500; letter-spacing: -0.02em; line-height: 1; }
.cat-items { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 64px; }
.item { display: grid; grid-template-columns: 64px 1fr; gap: 0 20px; text-decoration: none; }
.item img { width: 64px; height: 64px; object-fit: cover; grid-row: span 2; transition: transform var(--t-ui) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .item:hover img { transform: rotate(-4deg) scale(1.06); } .item:hover .nm { text-decoration: underline; text-underline-offset: 0.2em; } }
.item .top-line { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-weight: 600; }
.item .top-line .nums { white-space: nowrap; }
.item .d { color: var(--soft); max-width: 40ch; margin-top: 0.25rem; line-height: 1.45; }

/* ---------- business: the reply card ---------- */
.biz { margin-top: var(--section); background: var(--black); color: var(--on-black); position: relative; overflow: clip; padding-top: clamp(3rem, 6vw, 5rem); }
.biz .grid { align-items: end; }
.biz-text { grid-column: 1 / 6; padding-bottom: 4rem; }
.biz-text p { font-size: var(--step-lead); line-height: 1.32; }
.biz-pics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin-top: 2.5rem; max-width: 34rem; }
.biz-pics img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.reply { grid-column: 7 / 13; background: var(--paper); color: var(--ink); padding: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 4vw, 3rem) clamp(5rem, 8vw, 7rem); transform: rotate(2deg) translateY(60px); transform-origin: 70% 100%; display: flex; flex-direction: column; justify-content: center; text-align: center; align-items: center; }
.reply h2 { font-size: var(--step-sub); }
.reply p { margin-top: 1rem; max-width: 40ch; }
.reply ul { margin-top: 1rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem 1.25rem; }
.reply .button { width: 100%; margin-top: 1.75rem; min-height: 3.5rem; }

/* ---------- footer: the back of the card (curtain) ---------- */
.page { position: relative; z-index: 1; background: var(--paper); }
.foot { position: relative; z-index: 0; background: var(--yellow); padding: 7rem var(--margin) 2rem; }
.postcard { position: relative; width: min(100%, 76rem); margin-inline: auto; background: var(--paper); padding: 4.5rem clamp(1.25rem, 4vw, 3.5rem) 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem var(--gutter); }
.postcard::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: calc(min(100vw - 2 * var(--margin), 76rem) / 24); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 50' preserveAspectRatio='none'%3E%3Ccircle cx='50' cy='50' r='50' fill='%23fff'/%3E%3C/svg%3E") left bottom / calc(100% / 12) 100% repeat-x; }
.postcard h2 { font-size: var(--step-sub); }
.postcard .msg p { margin-top: 1rem; }
.postcard .addr { position: relative; padding-top: 7.5rem; }

.postcard .addr li + li { margin-top: 0.75rem; }
.stamp { position: absolute; top: 0; right: 0; width: 88px; background: var(--paper); padding: 6px; transform: rotate(3deg); outline: 0; }
.stamp img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.imprint { grid-column: 1 / -1; text-align: center; font-size: var(--step-small); color: var(--soft); margin-top: 2rem; }
.imprint + .imprint { margin-top: 0; }
.wordmark { display: block; width: min(100%, 76rem); margin: 2.5rem auto 0; }
.wordmark img { width: min(56%, 34rem); height: auto; margin-inline: auto; }

/* ---------- product page ---------- */
.pdp-hero { background: var(--yellow); padding-bottom: var(--section); }
.pdp .sheet { min-height: 0; }
.pdp-grid { align-items: start; }
.pdp-sheet { grid-column: 1 / 9; }
.pdp-side { grid-column: 9 / 13; background: var(--paper); padding: clamp(1.25rem, 3vw, 2.5rem); position: sticky; top: 1rem; }
.pdp-side .order-title { font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.01em; }
.pdp-side .price { font-size: var(--step-head); line-height: 1; margin-top: 1rem; letter-spacing: -0.02em; }
.opt { margin-top: 1.75rem; border: 0; padding: 0; min-width: 0; }
.opt legend { font-weight: 600; margin-bottom: 0.6rem; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 0.9rem; background: var(--paper-2); font-variant-numeric: tabular-nums; transition: background-color var(--t-hover) ease; }
.chips input:checked + span { background: var(--ink); color: var(--paper); }
.chips input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.minis { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; max-width: 30rem; }
.minis button { background: var(--paper-2); aspect-ratio: 1; display: grid; place-items: center; padding: 6px; transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out); font-size: var(--step-small); }
.minis button img { max-height: 100%; width: auto; }
.minis button[aria-pressed="true"] { background: var(--yellow); }
.minis button:active { transform: scale(0.95); }
.summary { margin-top: 2rem; padding: 1.25rem; background: var(--paper-2); font-size: var(--step-small); }
.summary dl { display: grid; grid-template-columns: auto 1fr; gap: 0.3rem 1rem; }
.summary dt { color: var(--soft); }
.add { width: 100%; margin-top: 1.25rem; min-height: 3.5rem; }
.pdp-details { padding-top: var(--section); }
.pdp-details .grid { row-gap: 4rem; }
.detail-col { grid-column: span 4; }
.detail-col h2 { font-size: var(--step-sub); margin-bottom: 1.25rem; }
.detail-col ul { padding-left: 1.1em; }
.detail-col li + li { margin-top: 0.4rem; }
.real-hats { padding-top: var(--section); }
.real-hats h2 { margin-bottom: 2.5rem; }
.hat-wall { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.hat-wall figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.hat-wall figcaption { margin-top: 0.5rem; display: flex; justify-content: space-between; font-size: var(--step-small); }
.faq { padding-top: var(--section); }
.faq .grid > h2 { grid-column: 1 / 5; }
.faq dl { grid-column: 6 / 13; }
.faq dt { font-size: var(--step-lead); font-weight: 600; line-height: 1.25; }
.faq dd { margin-top: 0.6rem; }
.faq dd + dt { margin-top: 2.25rem; }
.checkout-note { padding: 1.25rem; background: var(--yellow); margin-top: 1rem; }

/* product page: the preview always offers flat and folded */
.pdp .preview { width: 100%; }
.pdp .view-toggle { display: flex; justify-content: center; gap: 6px; margin-top: 1.25rem; }
.pdp .view-toggle button { min-height: 2.75rem; padding: 0 1rem; background: var(--paper-2); font-weight: 600; transition: background-color var(--t-hover) ease; }
.pdp .view-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.pdp .preview .fold-figure { position: static; width: min(52%, 19rem); margin: 0 auto; }
.pdp .fold-figure figcaption { text-align: center; }
.pdp .preview[data-mode="flat"] .fold-figure { display: none; }
.pdp .preview[data-mode="folded"] > [data-hat-view="flat"] { display: none; }
.pdp-hero .top-links-phone { padding-bottom: 1rem; }
.pdp-themes { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.pdp-side .themes button span { font-size: 0.8125rem; }
.pdp-details ul, .pdp-details ol { margin: 0; }
.pdp-details li { line-height: 1.45; }

/* ---------- motion (content stays visible without script) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-rise] { opacity: 0; transform: translateY(22px); animation: rise var(--t-reveal) var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 80ms + 100ms); }
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 480ms var(--ease-out), transform 720ms var(--ease-out); transition-delay: calc(min(var(--i, 0), 5) * 70ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .sheet[data-print] { clip-path: inset(0 -100vw 100% -100vw); animation: print 1100ms var(--ease-in-out) 80ms forwards; }
  .js [data-hat-view].is-live canvas { animation: ink-in 500ms var(--ease-out); }
  .fold-figure canvas { animation: sway 6s var(--ease-soft) infinite alternate; transform-origin: 50% 100%; }
.price-photo img { animation: drift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
  .foot > * { animation: curtain linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes print { to { clip-path: inset(-2rem -100vw -2rem -100vw); } }
@keyframes ink-in { from { opacity: 0.4; } to { opacity: 1; } }
@keyframes sway { from { transform: rotate(-1.6deg); } to { transform: rotate(1.6deg); } }
@keyframes curtain { from { transform: translateY(-6.5rem); } to { transform: none; } }
@keyframes drift { from { transform: scale(1.08) translateY(-2%); } to { transform: scale(1) translateY(2%); } }

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
  .hero .seals { grid-column: 1 / -1; order: 2; padding-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; }
  .seals li + li { margin-top: 0; }
  .sheet { grid-column: 1 / -1; min-height: 0; }
  .fold-figure { position: static; width: min(62%, 17rem); margin: 0 auto; }
  .fold-figure figcaption { text-align: center; }
  .view-toggle { display: flex; justify-content: center; gap: 6px; margin-top: 1.25rem; }
  .view-toggle button { min-height: 2.75rem; padding: 0 1rem; background: var(--paper-2); font-weight: 600; transition: background-color var(--t-hover) ease; }
  .view-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
  .preview[data-mode="flat"] .fold-figure { display: none; }
  .preview[data-mode="folded"] > [data-hat-view="flat"] { display: none; }
  .run-intro { grid-column: 1 / -1; margin-bottom: 2rem; }
  .lifted { grid-column: 1 / 7; }
  .run-side { grid-column: 7 / 13; }
  .run { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .price-sheet { grid-column: 1 / 8; }
  .price-photo { grid-column: 8 / 13; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .biz-text { grid-column: 1 / -1; padding-bottom: 2.5rem; }
  .reply { grid-column: 2 / 12; transform: rotate(1deg) translateY(60px); }
  .pdp-sheet, .pdp-side { grid-column: 1 / -1; }
  .pdp-side { position: static; margin-top: var(--gutter); }
  .detail-col { grid-column: span 4; }
  .hat-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .faq .grid > h2, .faq dl { grid-column: 1 / -1; }
  .faq dl { margin-top: 2rem; }
}

/* ---------- phone ---------- */
@media (max-width: 700px) {
  :root { --margin: 1rem; }
  .top .brand img { height: 48px; }
  .top nav { display: none; }
  .top-links-phone { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; padding-bottom: 0.5rem; }
  .top-links-phone a { text-decoration: none; font-weight: 500; }
  .hero-grid { padding-top: 1rem; }
  .sheet { padding: 1.5rem 1.25rem 1.25rem; }
  .sheet h1 { font-size: clamp(2.25rem, 10.4vw, 3rem); }
  .controls { grid-template-columns: 1fr; }
  .words, .photo-box { grid-column: 1 / -1; }
  .themes { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .themes button span { display: none; }
  .order-row { flex-direction: column; align-items: stretch; }
  .order-row .button { width: 100%; }
  .seals li { font-size: var(--step-body); }
  .lifted, .run-side { grid-column: 1 / -1; }
  .run-side { margin-top: 2rem; gap: 1.25rem; }
  .run { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px 4px; }
  .frame .cap { padding: 0.3rem 0.2rem; font-size: 0.8125rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .prices .grid { row-gap: 3rem; }
  .price-sheet, .price-photo { grid-column: 1 / -1; }
  .price-sheet { padding: 2.25rem 1.25rem; }
  .how-buttons { display: none; }
  .moments { gap: 16px; }
  .moment { flex-basis: 72vw; }
  .moment .gap { height: calc(var(--g, 96px) * 0.4); }
  .tiles { gap: 20px 8px; }
  .tag .r2 { display: none; }
  .tag { min-height: 0; }
  .cat-jump { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; position: sticky; top: 0; z-index: 2; background: var(--paper); padding: 0.75rem var(--margin); margin: 2rem calc(var(--margin) * -1) 0; }
  .cat-jump a { font-weight: 600; text-decoration: none; white-space: nowrap; }
  .cat { margin-top: 4rem; }
  .cat-head { flex-wrap: wrap; gap: 0.75rem 1rem; }
  .cat-head h3 { flex-basis: 100%; }
  .cat-items { grid-template-columns: 1fr; gap: 28px; }
  .cat-items .item:nth-child(n+4) { display: none; }
  .item { grid-template-columns: 52px 1fr; gap: 0 14px; }
  .item img { width: 52px; height: 52px; }
  .biz-pics { grid-template-columns: repeat(2, 1fr); }
  .reply { grid-column: 1 / -1; width: 92%; margin-inline: auto; transform: rotate(1deg) translateY(48px); padding-bottom: 4.5rem; }
  .foot { padding-top: 5rem; }
  .postcard { grid-template-columns: 1fr; padding-top: 3.5rem; }
  .postcard::before { height: calc((100vw - 2 * var(--margin)) / 12); background-size: calc(100% / 6) 100%; }
  .postcard .addr { padding-top: 0; }
  .postcard .addr { position: static; }
  .stamp { top: 1.5rem; right: 1.25rem; width: 64px; }
  .postcard .msg h2 { padding-right: 76px; }
  .detail-col { grid-column: 1 / -1; }
  .hat-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .minis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
