/* STP Foils — the shade card
   Direction: taste-skill "specimen catalogue" (see ui-pipeline/02-direction.md)
   Brand: STP Red #D41B18 · Charcoal #1E1E1E · Ivory #F7F6F2 · White · Montserrat */

:root {
  /* colour roles */
  --ground: #F7F6F2;      /* brand ivory */
  --field: #ECE9E1;       /* one tone step down */
  --paper: #FFFFFF;
  --ink: #1E1E1E;         /* brand charcoal */
  --ink-soft: #4a4844;
  --accent: #D41B18;      /* STP red */
  --accent-strong: #b3140f;
  --on-dark: #F7F6F2;
  --on-dark-soft: #cfccc4;

  /* five type steps */
  --t-display: clamp(44px, 5.3vw, 84px);
  --t-head: clamp(28px, 3vw, 42px);
  --t-lead: 20px;
  --t-body: 17px;
  --t-small: 14px;

  --margin: clamp(20px, 3vw, 40px);
  --gap-section: clamp(96px, 13vw, 200px);
  --radius: 0;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --ease-soft: cubic-bezier(.22, .61, .36, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-weight: 500;
  font-size: var(--t-body);
  line-height: 1.55;
  color: var(--ink);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.025em; line-height: 1.05; text-wrap: balance; }
h2 { font-size: var(--t-head); }
h3 { font-size: var(--t-lead); letter-spacing: -0.01em; line-height: 1.25; font-weight: 700; }
p { margin: 0; text-wrap: pretty; }
.lead { font-size: var(--t-lead); line-height: 1.45; max-width: 46ch; }
.small { font-size: var(--t-small); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--paper); }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.contact :focus-visible, .back > :focus-visible, .guestlist :focus-visible { outline-color: var(--paper); }

.skip { position: absolute; left: var(--margin); top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 12px 16px; font-size: var(--t-small); text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px;
  padding: 0 26px; border: 0; border-radius: var(--radius);
  background: var(--accent); color: var(--paper);
  font: inherit; font-weight: 700; font-size: var(--t-body); text-decoration: none; cursor: pointer;
  transition: transform 120ms var(--ease-out), background-color 160ms ease, color 160ms ease;
}
.btn:active { transform: scale(0.97); }
.btn-ink { background: var(--ink); }
.btn-paper { background: var(--paper); color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--accent-strong); }
  .btn-ink:hover { background: #000; }
  .btn-paper:hover { background: var(--ground); }
}

/* ---------- bar ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: calc(12px + env(safe-area-inset-top, 0px)) var(--margin) 12px;
  background: var(--ground);
  transition: transform 300ms var(--ease-out);
}
.bar.is-hidden { transform: translateY(-100%); }
.bar:focus-within { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .bar { transition: opacity 200ms ease; }
  .bar.is-hidden { transform: none; opacity: 0; pointer-events: none; }
  .bar:focus-within { opacity: 1; pointer-events: auto; }
}
.mark { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: var(--t-lead); letter-spacing: -0.02em; }
.bar nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.bar nav a { text-decoration: none; font-weight: 600; font-size: var(--t-small); text-underline-offset: 0.3em; text-decoration-thickness: 2px; min-height: 44px; display: inline-flex; align-items: center; }
.bar-action { background: var(--ink); color: var(--paper); padding: 12px 16px; min-height: 44px; display: inline-flex; align-items: center; transition: background-color 160ms ease, transform 120ms var(--ease-out); }
.bar-action:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .bar nav a:not(.bar-action):hover { text-decoration: underline; text-decoration-color: var(--accent); }
  .bar-action:hover { background: var(--accent); }
}

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: 11fr 9fr; min-height: 100svh;
}
.hero-text {
  display: flex; flex-direction: column; justify-content: center; gap: 40px;
  padding: calc(120px + env(safe-area-inset-top, 0px)) var(--margin) 48px;
}
.hero h1 { font-size: var(--t-display); font-weight: 800; letter-spacing: -0.04em; line-height: 0.98; }
.hero h1 span:not(.visually-hidden) { display: block; }
.hero-foot { display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }
.hero-field { background: var(--field); overflow: hidden; display: flex; align-items: center; padding-block: 96px 40px; }
.mosaic {
  list-style: none; margin: 0 0 0 clamp(20px, 3vw, 44px); padding: 0;
  width: auto; flex: 1; margin-right: clamp(20px, 3vw, 44px);
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: auto; gap: 12px;
}
.t { aspect-ratio: 3 / 4; display: grid; place-items: center; overflow: hidden; }
.t img { width: 46%; height: 82%; object-fit: cover; }
.t.big { grid-column: 2 / span 2; grid-row: 1 / span 2; aspect-ratio: auto; }
.t.big img { width: 44%; height: 84%; }
.mosaic li:nth-child(2) { grid-column: 1; grid-row: 1; }
.mosaic li:nth-child(3) { grid-column: 4; grid-row: 1; }
.mosaic li:nth-child(4) { grid-column: 1; grid-row: 2; }
.mosaic li:nth-child(5) { grid-column: 4; grid-row: 2; }
.mosaic li:nth-child(6) { grid-column: 2; grid-row: 3; }
.mosaic li:nth-child(7) { grid-column: 3; grid-row: 3; }

/* fields that rotate through the palette */
.f-white { background: var(--paper); }
.f-paper { background: var(--ground); }
.f-charcoal { background: var(--ink); }
.f-red { background: var(--accent); }
.f-white img, .f-paper img { mix-blend-mode: multiply; }

/* ---------- intro statement ---------- */
.intro { padding: var(--gap-section) var(--margin); display: grid; place-items: center; }
.statement { max-width: 34ch; font-size: clamp(24px, 2.4vw, 34px); font-weight: 600; line-height: 1.18; letter-spacing: -0.02em; text-align: center; text-wrap: balance; }
.thumb { display: inline-block; vertical-align: -0.22em; margin: 0 0.12em; width: 2em; height: 1.1em; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- story ---------- */
.story {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 72px;
  padding: 0 var(--margin) var(--gap-section);
}
.story-photo { grid-column: 1 / -1; margin: 0; aspect-ratio: 21 / 9; overflow: hidden; }
.story-photo img { width: 100%; height: 100%; object-fit: cover; }
.story-text { grid-column: 1 / span 6; display: grid; gap: 28px; align-content: start; }
.story-text p { max-width: 58ch; }
.reasons { grid-column: 8 / -1; }
.reasons h3 { margin-bottom: 24px; }
.reasons dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
.reasons dt { font-weight: 700; margin-bottom: 4px; }
.reasons dd { margin: 0; color: var(--ink-soft); font-size: var(--t-small); line-height: 1.5; }

/* ---------- showcase ---------- */
.showcase { display: grid; grid-template-columns: 1fr 1fr; position: relative; }
.show-title { position: absolute; z-index: 2; top: 40px; left: var(--margin); }
.panel { position: relative; min-height: 92svh; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 40px var(--margin) 32px; }
.panel-hot { background: var(--paper); }
.panel-cold { background: var(--ink); color: var(--on-dark); }
.panel-obj { position: absolute; left: 50%; top: 13%; width: 116%; max-width: none; transform: translateX(-50%); }
.panel-hot .panel-obj { mix-blend-mode: multiply; }
.panel-cold .panel-obj { opacity: .92; }
.panel-foot { position: relative; z-index: 1; margin: auto calc(-1 * var(--margin)) -32px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 24px var(--margin) 32px; }
.panel-foot p { max-width: 36ch; margin-top: 6px; }
.panel-hot .panel-foot { background: var(--paper); }
.panel-cold .panel-foot { background: var(--ink); }
.panel-cold .panel-foot p { color: var(--on-dark-soft); }

/* ---------- catalogue ---------- */
.catalogue { padding: var(--gap-section) var(--margin) 0; }
.cat-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: end; margin-bottom: 24px; }
.cat-head h2 { font-size: var(--t-display); font-weight: 800; letter-spacing: -0.04em; }
.family {
  padding-top: 120px;
  display: grid; grid-template-columns: 5fr 7fr; column-gap: clamp(32px, 6vw, 96px);
  grid-template-areas: "title shades" "note shades" "photo shades";
  grid-template-rows: auto auto 1fr; align-items: start;
}
.fam-title { grid-area: title; }
.fam-note { grid-area: note; }
.fam-photo { grid-area: photo; margin: 8px 0 0; aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper); }
.fam-photo img { width: 100%; height: 100%; object-fit: cover; }
.family .shades { grid-area: shades; }
.fam-title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 16px; }
.fam-title h3 { font-size: var(--t-head); letter-spacing: -0.025em; line-height: 1.05; }
.fam-title span { font-size: var(--t-body); color: var(--ink-soft); }
.fam-note { max-width: 52ch; margin-bottom: 24px; color: var(--ink); }
.shades { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
.shades li { display: grid; grid-template-columns: 96px 1fr; gap: 20px; align-items: center; }
.shades img { width: 96px; height: 136px; object-fit: cover; mix-blend-mode: multiply; }
.shades b { display: block; font-size: var(--t-lead); font-weight: 700; letter-spacing: -0.01em; }
.shades span { display: block; color: var(--ink-soft); font-size: var(--t-small); }

/* ---------- proof maker (live thing) ---------- */
.proofer {
  display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 80px); align-items: start;
  margin: var(--gap-section) 0 0; padding: clamp(56px, 8vw, 112px) var(--margin);
  background: var(--field);
}
.proofer-controls { display: grid; gap: 20px; }
.proofer-controls > p { max-width: 40ch; }
.proof-form { display: grid; gap: 22px; margin-top: 8px; }
.field { display: grid; gap: 8px; }
.field label, .proof-form legend { font-weight: 700; font-size: var(--t-small); padding: 0; }
.proof-form legend { margin-bottom: 8px; }
.proof-form fieldset { border: 0; margin: 0; padding: 0; }
.proof-form input[type="text"] {
  width: 100%; min-height: 56px; padding: 0 18px; border: 1px solid #7d7a73; border-radius: 0; /* taste-skill-ignore: a form field keeps its edge (WCAG 1.4.11) */
  background: var(--paper); color: var(--ink); font: inherit; font-size: var(--t-lead); font-weight: 600;
}
.proof-form input[type="text"]::placeholder { color: #6b6862; opacity: 1; }
.proof-form input[type="text"]:focus { outline: 3px solid var(--accent); outline-offset: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices label { position: relative; cursor: pointer; }
.choices input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choices span {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px 0 8px;
  background: var(--paper); font-size: var(--t-small); font-weight: 600; border: 1px solid #7d7a73; /* taste-skill-ignore: radio controls keep their edge (WCAG 1.4.11) */
  transition: background-color 140ms ease, color 140ms ease, transform 120ms var(--ease-out);
}
.stocks span { padding-left: 14px; }
.choices span img { width: 22px; height: 30px; object-fit: cover; }
.choices input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.choices input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.choices label:active span { transform: scale(0.97); }
.proof-form .btn { justify-self: start; }
.proofer-stage { margin: 0; position: sticky; top: 96px; }
.proofer-stage canvas { display: none; width: 100%; height: auto; aspect-ratio: 3 / 2; background: var(--ink); }
.js .proofer-stage canvas { display: block; }
.js .proof-fallback { display: none; }
.proof-fallback { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.proofer-stage figcaption { margin-top: 14px; font-size: var(--t-small); color: var(--ink-soft); }

/* ---------- process · tiles that grow ---------- */
.process { padding: var(--gap-section) var(--margin) 0; position: relative; }
.process h2 { position: absolute; left: var(--margin); top: var(--gap-section); max-width: 12ch; }
.grow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 2fr 3fr 3fr 4fr; gap: 12px; align-items: end; }
.grow li { display: grid; gap: 10px; align-content: end; }
.grow .tile { overflow: hidden; display: grid; place-items: center; }
.grow li:nth-child(1) .tile { height: 26vh; }
.grow li:nth-child(2) .tile { height: 38vh; }
.grow li:nth-child(3) .tile { height: 50vh; }
.grow li:nth-child(4) .tile { height: 64vh; }
.grow .tile img { width: 100%; height: 100%; object-fit: cover; }
.grow .f-red img, .grow .f-charcoal img { mix-blend-mode: normal; }
.grow h3 { margin-top: 8px; }
.grow p { color: var(--ink-soft); max-width: 34ch; }

/* ---------- guest list ---------- */
.guestlist { margin-top: var(--gap-section); background: var(--accent); height: clamp(560px, 92svh, 860px); overflow: hidden; display: flex; justify-content: center; padding-top: clamp(64px, 9vw, 120px); }
.card {
  width: min(56vw, 760px); aspect-ratio: 5 / 7; flex: none;
  background: var(--paper); padding: 56px; transform: rotate(-1.5deg);
  display: flex; flex-direction: column; align-items: center; gap: 32px; text-align: center;
}
.card h2 { font-size: var(--t-head); }
.card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.names { font-size: var(--t-lead); line-height: 1.75; font-weight: 600; max-width: 34ch; }

/* ---------- contact ---------- */
.contact { background: var(--accent); color: var(--paper); padding: 48px 0 clamp(72px, 9vw, 120px); min-height: 80svh; overflow: hidden; }
.strip { overflow: hidden; }
.strip-toggle { display: block; margin: 0 var(--margin) 12px auto; min-height: 44px; padding: 0 14px; border: 0; background: var(--accent-strong); color: var(--paper); font: inherit; font-size: var(--t-small); font-weight: 600; cursor: pointer; }
.strip-toggle:active { transform: scale(0.97); }
.strip.is-paused .strip-track, .strip:active .strip-track { animation-play-state: paused; }
.strip-track { display: flex; gap: 8px; width: max-content; padding-right: 8px; }
.strip-track img { height: 150px; width: auto; object-fit: cover; }
.contact-body { padding: 72px var(--margin) 0; display: grid; gap: 24px; }
.contact h2 { font-size: var(--t-display); font-weight: 800; letter-spacing: -0.04em; }
.contact .lead { max-width: 48ch; }
.cells { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.cell {
  display: flex; flex-direction: column; justify-content: center; gap: 4px; min-height: 104px; padding: 18px 24px;
  background: var(--accent-strong); color: var(--paper); text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, transform 120ms var(--ease-out);
}
.cell span { font-size: var(--t-small); font-weight: 600; opacity: .85; }
.cell b { font-size: var(--t-lead); font-weight: 700; overflow-wrap: anywhere; }
.cell:active { transform: scale(0.98); }
.cell-ink { background: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .cell:hover { background: var(--paper); color: var(--ink); }
}
.contact .small { opacity: 1; }

/* ---------- footer · back of the card ---------- */
.back { background: var(--accent); padding: 0 var(--margin) calc(48px + env(safe-area-inset-bottom, 0px)); }
.postcard {
  --scallop: 100px;
  max-width: 1240px; margin: 0 auto; background: var(--ground); color: var(--ink);
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px 64px; padding: 88px clamp(28px, 5vw, 72px) 28px;
  -webkit-mask: none;
  mask: radial-gradient(calc(var(--scallop) / 2) at 50% 0, #0000 98%, #000) 50% 0 / var(--scallop) var(--scallop) repeat-x, linear-gradient(#000 0 0) 0 var(--scallop) / 100% 100% no-repeat; /* taste-skill-ignore: mask shape for the scallops, not a visible gradient */
}
.pc-left { display: grid; gap: 16px; align-content: start; }
.pc-left p { max-width: 40ch; }
.pc-right { position: relative; font-style: normal; display: grid; gap: 12px; align-content: start; padding-right: 110px; }
.pc-right a { font-size: var(--t-body); font-weight: 600; text-decoration: none; text-underline-offset: 0.25em; padding-block: 9px; }
@media (hover: hover) and (pointer: fine) { .pc-right a:hover { text-decoration: underline; text-decoration-color: var(--accent); } }
.stamp { position: absolute; top: 0; right: 0; width: 88px; height: 88px; padding: 6px; background: var(--paper); transform: rotate(6deg); }
.imprint { grid-column: 1 / -1; text-align: center; font-size: var(--t-small); color: var(--ink-soft); padding-top: 24px; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* signature: shutter on the hero mosaic, staggered */
  .js .mosaic .t { clip-path: inset(100% 0 0 0); animation: shutter 800ms var(--ease-out) forwards; animation-delay: calc(80ms + var(--i, 0) * 60ms); }
  .js .mosaic .t img { transform: scale(1.12); animation: settle 1100ms var(--ease-out) forwards; animation-delay: calc(80ms + var(--i, 0) * 60ms); }
  @keyframes shutter { to { clip-path: inset(0); } }
  @keyframes settle { to { transform: none; } }

  /* hero copy arrives inside 1.2s, readable from the first frame */
  .js .hero h1, .js .hero-foot { animation: rise 700ms var(--ease-out) both; }
  .js .hero-foot { animation-delay: 140ms; }
  @keyframes rise { from { opacity: 0.001; transform: translateY(18px); } }

  /* one shutter on the story photograph */
  .js .shutter { clip-path: inset(0 0 100% 0); transition: clip-path 900ms var(--ease-out); }
  .js .shutter img { transform: scale(1.12); transition: transform 1200ms var(--ease-out); }
  .js .shutter.is-in { clip-path: inset(0); }
  .js .shutter.is-in img { transform: none; }

  /* section entrances: heading, text, picture */
  /* (phones skip them: a long catalogue that fades in under a thumb is just waiting) */
  @media (min-width: 641px) {
    .js [data-rise] > * { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
    .js [data-rise].is-in > * { opacity: 1; transform: none; }
    .js .family[data-rise] > .shades { opacity: 1; transform: none; transition: none; } /* rows rise on their own */
  }

  /* showcase objects drift with the scroll, off the main thread where supported */
  @supports (animation-timeline: view()) {
    .panel { view-timeline: --panel block; }
    .panel-obj { animation: obj-drift linear both; animation-timeline: --panel; animation-range: cover 0% cover 100%; }
    @keyframes obj-drift { from { transform: translateX(-50%) translateY(-6%); } to { transform: translateX(-50%) translateY(6%); } }
  }

  /* the drifting strip */
  .strip-track { animation: drift 60s linear infinite; }
  @media (hover: hover) and (pointer: fine) { .strip:hover .strip-track { animation-play-state: paused; } }
  @keyframes drift { to { transform: translateX(-50%); } }

}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .strip-track { transform: none !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .story-text, .reasons { grid-column: 1 / -1; }
  .proofer { display: flex; flex-direction: column; gap: 24px; }
  .proofer-controls { display: contents; }
  .proofer-stage { order: 1; position: sticky; top: calc(8px + env(safe-area-inset-top, 0px)); z-index: 2; background: var(--field); padding-bottom: 8px; }
  .proof-form { order: 2; }
}
@media (max-width: 860px) {
  .bar nav a:not(.bar-action):not([href="#catalogue"]) { display: none; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-text { padding-top: calc(104px + env(safe-area-inset-top, 0px)); gap: 28px; }
  .hero h1 { font-size: 10.5vw; max-width: none; }
  .hero-field { padding-block: 32px; }
  .mosaic { width: auto; flex: 1; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-inline: var(--margin); }
  .mosaic li:nth-child(n) { grid-column: auto; grid-row: auto; }
  .t.big { grid-column: auto; grid-row: auto; aspect-ratio: 3 / 4; }
  .t.big img { width: 46%; height: 82%; }
  .mosaic li:nth-child(n+4) { display: none; }
  .statement { text-align: left; font-size: 21px; max-width: none; line-height: 1.3; }
  .statement .thumb:nth-of-type(2) { display: none; }
  .showcase { grid-template-columns: 1fr; }
  .panel { min-height: 78svh; }
  .panel-foot { flex-direction: column; align-items: flex-start; }
  .cat-head { grid-template-columns: 1fr; }
  .shades { grid-template-columns: 1fr; gap: 14px; }
  .shades li { grid-template-columns: 56px 1fr; gap: 16px; }
  .shades img { width: 56px; height: 80px; }
  .family { padding-top: 88px; }
  .fam-photo { aspect-ratio: 3 / 4; }
  .process h2 { position: static; margin-bottom: 40px; }
  .grow { grid-template-columns: 1fr; gap: 28px; }
  .grow li:nth-child(1) .tile { height: 34vw; }
  .grow li:nth-child(2) .tile { height: 46vw; }
  .grow li:nth-child(3) .tile { height: 54vw; }
  .grow li:nth-child(4) .tile { height: 62vw; }
  .card { width: 92vw; padding: 28px; transform: rotate(-1deg); }
  .names { font-size: var(--t-body); }
  .cells { grid-template-columns: 1fr; }
  .cell { min-height: 72px; }
  .postcard { --scallop: 60px; grid-template-columns: 1fr; padding-top: 64px; }
  .reasons dl { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .family { grid-template-columns: 1fr; grid-template-areas: "title" "note" "photo" "shades"; }
  .fam-photo { aspect-ratio: 16 / 9; margin-bottom: 20px; }
  .shades { grid-template-columns: 1fr 1fr; gap: 16px 12px; }
  .shades li { grid-template-columns: 1fr; gap: 8px; align-items: start; }
  .shades img { width: 100%; height: 88px; }
  .shades b { font-size: var(--t-body); }
  .family { padding-top: 112px; }
  .grow li:nth-child(n) .tile { height: 44vw; }
  .story { row-gap: 48px; }
  .story-photo { aspect-ratio: 4 / 3; }
}
@media (max-width: 420px) {
  .pc-right { padding-right: 0; padding-top: 84px; }
  .stamp { width: 64px; height: 64px; }
}
