/* IPCI redesign demo. Identity kept: black, white, IPCI yellow, the wordmark. */
:root {
  --ink: #121211;
  --ink-2: #1c1c1a;
  --ink-3: #2a2a27;
  --film: #070707;
  --paper: #f4f4f0;
  --paper-2: #e8e8e2;
  --wall: #dedcd5;
  --yellow: #fff200;
  --yellow-2: #f2e600;
  --on-yellow: #141300;
  --mute-d: #a9a9a2;   /* on ink, 7.4:1 */
  --mute-l: #53534d;   /* on paper, 7.3:1 */
  --line-d: rgba(244, 244, 240, .14);
  --line-l: rgba(18, 18, 17, .16);

  --f-display: "Anybody", "Arial Narrow", sans-serif;
  --f-mono: "Martian Mono", ui-monospace, monospace;
  --f-body: "Instrument Sans", system-ui, sans-serif;

  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-io: cubic-bezier(.77, 0, .175, 1);

  --gut: 16px;
  --max: 1360px;
  --head: 60px;
  --r: 6px;

  --z-sticky: 20; --z-dock: 30; --z-head: 40; --z-drawer: 60; --z-toast: 80;
}
@media (min-width: 760px) { :root { --gut: 32px; --head: 68px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head) + 16px); }
body {
  margin: 0; background: var(--ink); color: var(--paper);
  font: 400 1rem/1.55 var(--f-body); font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--yellow); color: var(--on-yellow); }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; border-radius: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }

/* Type system */
.display {
  font-family: var(--f-display); font-weight: 800; line-height: .88;
  letter-spacing: -.02em; font-variation-settings: "wdth" 70;
}
.mono {
  font-family: var(--f-mono); font-size: .6875rem; line-height: 1.4;
  letter-spacing: .02em; font-variation-settings: "wdth" 100; font-weight: 500;
}
.h2 {
  font-family: var(--f-display); font-weight: 780; line-height: .92;
  font-size: clamp(2.5rem, 8.4vw, 5.6rem); letter-spacing: -.025em;
  font-variation-settings: "wdth" 62;
}
.lead { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); line-height: 1.5; max-width: 40ch; }

/* Buttons */
.btn {
  --bg: var(--yellow); --fg: var(--on-yellow);
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: 0 1.25rem; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-weight: 600; font-size: .98rem; letter-spacing: -.005em; white-space: nowrap;
  transition: transform .16s var(--ease-out), background-color .2s, color .2s;
}
.btn:hover { --bg: #fff75a; }
.btn:active { transform: scale(.97); }
.btn i { font-size: 1.15em; }
.btn.ghost { --bg: transparent; --fg: currentColor; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn.ghost:hover { --bg: rgba(244,244,240,.08); }
.btn.ink { --bg: var(--ink); --fg: var(--paper); }
.btn.ink:hover { --bg: #000; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.link-u { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }

/* ===== Header ===== */
.top {
  position: sticky; top: 0; z-index: var(--z-head);
  height: var(--head); background: rgba(18,18,17,.92);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line-d);
}
.top .wrap { height: 100%; display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 24px; width: auto; }
@media (min-width: 760px) { .brand img { height: 28px; } }
.nav { display: none; gap: 4px; margin-left: 12px; }
.nav a {
  position: relative; padding: 8px 12px; font-size: .94rem; font-weight: 500; color: var(--mute-d);
  transition: color .2s;
}
.nav a:hover, .nav a[aria-current] { color: var(--paper); }
.nav a[aria-current]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--yellow); }
.top-act { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.icon-btn {
  position: relative; width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 999px; font-size: 1.3rem; transition: background-color .2s, transform .16s var(--ease-out);
}
.icon-btn:hover { background: rgba(244,244,240,.08); }
.icon-btn:active { transform: scale(.94); }
.badge {
  position: absolute; top: 5px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--yellow); color: var(--on-yellow);
  font: 700 .66rem/18px var(--f-mono); text-align: center;
  transform: scale(0); transition: transform .3s var(--ease-out);
}
.badge.on { transform: scale(1); }
.badge.bump { animation: bump .45s var(--ease-out); }
@keyframes bump { 40% { transform: scale(1.35); } }
.top .btn { display: none; min-height: 40px; font-size: .9rem; }
@media (min-width: 980px) {
  .nav { display: flex; }
  .top .btn { display: inline-flex; margin-left: 8px; }
  .menu-btn { display: none !important; }
}

/* Mobile menu */
.menu {
  position: fixed; inset: 0; z-index: var(--z-drawer); background: var(--ink);
  display: flex; flex-direction: column; padding: calc(var(--head) + 12px) var(--gut) 28px;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .5s var(--ease-io), visibility 0s .5s;
}
.menu.open { clip-path: inset(0); visibility: visible; transition: clip-path .55s var(--ease-io); }
.menu-close { position: absolute; top: 8px; right: calc(var(--gut) - 8px); }
.menu-big a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--line-d);
  font-family: var(--f-display); font-weight: 760; font-size: clamp(2.2rem, 11vw, 3.6rem);
  line-height: 1; font-variation-settings: "wdth" 58; letter-spacing: -.02em;
}
.menu-big a span { font-family: var(--f-mono); font-size: .72rem; font-weight: 500; color: var(--mute-d); letter-spacing: 0; }
.menu-small { margin-top: auto; display: grid; gap: 14px; }
.menu-small .row { display: flex; gap: 20px; flex-wrap: wrap; color: var(--mute-d); font-size: .95rem; }

/* ===== Hero ===== */
.hero { position: relative; padding: 20px 0 0; overflow: hidden; }
.hero-grid { display: grid; gap: 28px; }
.hero-grid > * { min-width: 0; }
.hero-left { display: flex; flex-direction: column; gap: 24px; }
.hero-foot { display: grid; gap: 18px; }
.hero .display { font-size: clamp(3.6rem, 15.5vw, 9.4rem); }
.hero .display .row { display: block; }
.hero .display .zoom {
  display: inline-block; color: var(--yellow);
  font-variation-settings: "wdth" var(--w, 50); white-space: nowrap;
}
.hero-sub {
  font-family: var(--f-body); font-weight: 500; font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  line-height: 1.45; letter-spacing: -.005em; max-width: 34ch; color: var(--paper);
}
.hero-sub b { font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }

/* Viewfinder */
.vf { position: relative; }
.vf-frame {
  position: relative; aspect-ratio: 4 / 5; background: var(--paper); overflow: hidden;
  border-radius: 2px; isolation: isolate;
}
@media (max-width: 759px) { .vf-frame { aspect-ratio: 1; } }
.vf-frame img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.vf-frame::after { /* scrim so the readout stays legible */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(7,7,7,.55) 0%, rgba(7,7,7,0) 26%),
    linear-gradient(0deg, rgba(7,7,7,.86) 0%, rgba(7,7,7,.35) 36%, rgba(7,7,7,0) 58%);
}
.vf-corners { position: absolute; inset: 14px; z-index: 2; pointer-events: none; }
.vf-corners i { position: absolute; width: 22px; height: 22px; border: 0 solid rgba(244,244,240,.9); }
.vf-corners i:nth-child(1) { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.vf-corners i:nth-child(2) { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.vf-corners i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
.vf-corners i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }
.vf-focus {
  position: absolute; z-index: 2; left: 50%; top: 42%; width: 64px; height: 44px; translate: -50% -50%;
  border: 1.5px solid rgba(255,242,0,.95); pointer-events: none;
  animation: af 2.4s var(--ease-out) infinite;
}
@keyframes af { 0%, 12% { scale: 1.35; opacity: 0; } 22% { scale: 1; opacity: 1; } 70% { opacity: 1; } 100% { opacity: 0; } }
.vf-top, .vf-bot { position: absolute; left: 30px; right: 30px; z-index: 3; }
.vf-top { top: 28px; display: flex; justify-content: space-between; gap: 12px; }
.vf-rec { display: inline-flex; align-items: center; gap: 8px; color: var(--paper); }
.vf-rec b { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: .15; } }
.vf-days { color: var(--yellow); }
.vf-bot { bottom: 26px; display: grid; gap: 10px; }
.vf-title {
  font-family: var(--f-display); font-weight: 720; line-height: .98; letter-spacing: -.01em;
  font-size: clamp(1.55rem, 3vw, 2.25rem); font-variation-settings: "wdth" 78; max-width: 18ch;
}
.vf-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: rgba(244,244,240,.86); }
.vf-bar { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.vf-ticks { display: flex; gap: 5px; flex: 1; }
.vf-ticks button { flex: 1; height: 18px; position: relative; }
.vf-ticks button::before { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 2px; background: rgba(244,244,240,.3); }
.vf-ticks button::after {
  content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 2px; background: var(--yellow);
  transform: scaleX(0); transform-origin: left;
}
.vf-ticks button.done::after { transform: scaleX(1); }
.vf-ticks button.on::after { animation: tick var(--dur, 5.5s) linear forwards; }
.vf-paused .vf-ticks button.on::after { animation-play-state: paused; }
@keyframes tick { to { transform: scaleX(1); } }
.vf-arrows { display: flex; gap: 6px; }
.vf-arrows button {
  width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center;
  background: rgba(244,244,240,.12); color: var(--paper); font-size: 1.1rem;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background-color .2s, transform .16s var(--ease-out);
}
.vf-arrows button:hover { background: rgba(244,244,240,.24); }
.vf-arrows button:active { transform: scale(.92); }
.vf-link { position: absolute; inset: 0; z-index: 2; }
.vf-caption { margin-top: 12px; display: flex; justify-content: space-between; color: var(--mute-d); gap: 12px; }

@media (min-width: 980px) {
  .hero { padding-top: 32px; }
  .hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; align-items: stretch; min-height: calc(100svh - var(--head) - 150px); }
  .hero-left { justify-content: space-between; padding-bottom: 4px; }
  .hero .display { font-size: clamp(5rem, 9.6vw, 10.4rem); }
  .vf, .vf-frame { height: 100%; }
  .vf-frame { aspect-ratio: auto; min-height: 560px; }
}

/* Proof strip (yellow) */
.strip { background: var(--yellow); color: var(--on-yellow); margin-top: 40px; }
.strip ul { list-style: none; margin: 0 auto; padding-block: 0; display: grid; grid-template-columns: 1fr 1fr; }
.strip li {
  padding: 16px 12px 16px 0; display: flex; gap: 10px; align-items: flex-start;
  font-size: .9rem; line-height: 1.3; font-weight: 500;
}
.strip li i { font-size: 1.3rem; flex-shrink: 0; margin-top: -1px; }
.strip li b { display: block; font-weight: 650; }
@media (max-width: 759px) {
  .strip li:nth-child(n+3) { border-top: 1px solid rgba(20,19,0,.18); }
}
@media (min-width: 760px) {
  .strip ul { grid-template-columns: repeat(4, 1fr); }
  .strip li { padding: 22px 20px 22px 0; }
  .strip li + li { padding-left: 20px; border-left: 1px solid rgba(20,19,0,.18); }
}

/* ===== Catalog / contact sheet ===== */
.sheet { padding: 88px 0 96px; background: var(--ink); position: relative; }
.sheet-head { display: grid; gap: 18px; margin-bottom: 28px; }
.sheet-head .count { color: var(--mute-d); }
@media (min-width: 900px) {
  .sheet-head { grid-template-columns: 1fr auto; align-items: end; }
}
.filters {
  position: sticky; top: var(--head); z-index: var(--z-sticky);
  background: rgba(18,18,17,.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  margin-inline: calc(var(--gut) * -1); padding: 12px var(--gut);
  border-bottom: 1px solid var(--line-d); margin-bottom: 36px;
}
.f-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.f-row::-webkit-scrollbar { display: none; }
.f-row + .f-row { margin-top: 10px; }
.chip {
  flex-shrink: 0; height: 38px; padding: 0 14px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: inset 0 0 0 1px var(--line-d); color: var(--paper); font-size: .9rem; font-weight: 500;
  transition: background-color .2s, color .2s, box-shadow .2s, transform .16s var(--ease-out);
}
.chip:hover { box-shadow: inset 0 0 0 1px rgba(244,244,240,.5); }
.chip:active { transform: scale(.96); }
.chip[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: none; }
.chip.area[aria-pressed="true"] { background: var(--yellow); color: var(--on-yellow); }
.chip small { font-family: var(--f-mono); font-size: .62rem; opacity: .7; }
.f-sep { width: 1px; background: var(--line-d); flex-shrink: 0; margin: 6px 4px; }
.sort { margin-left: auto; position: relative; flex-shrink: 0; }
.sort select {
  height: 38px; border-radius: 999px; background: transparent; border: 0;
  box-shadow: inset 0 0 0 1px var(--line-d); padding: 0 34px 0 14px; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23f4f4f0' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; font-size: .9rem;
}
.sort select option { color: #111; }

.grid {
  display: grid; gap: 44px 20px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}
@media (min-width: 1100px) {
  .grid { grid-template-columns: repeat(4, 1fr); gap: 56px 24px; }
  .grid .frame.big { grid-column: span 2; }
}
.frame { position: relative; transition: opacity .35s var(--ease-out), transform .35s var(--ease-out); }
.frame.hide { display: none; }
.frame > a { display: block; }

/* the film */
.neg {
  position: relative; background: var(--film); padding: 20px 0 32px;
  box-shadow: 0 0 0 1px rgba(244,244,240,.07);
}
.neg::before, .neg::after {
  content: ""; position: absolute; left: 0; right: 0; height: 9px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='9'%3E%3Crect x='3.5' y='1' width='8' height='7' rx='1.5' fill='%233a3a36'/%3E%3C/svg%3E") repeat-x left center;
}
.neg::before { top: 5px; }
.neg::after { bottom: 5px; }
.shot { position: relative; margin-inline: 10px; aspect-ratio: 3 / 2; overflow: hidden; background: var(--paper); border-radius: 1px; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.frame > a:hover .shot img { transform: scale(1.035); }
.edge {
  position: absolute; left: 12px; right: 12px; bottom: 15px; display: flex; justify-content: space-between; gap: 8px;
  font-family: var(--f-mono); font-size: .56rem; letter-spacing: .08em; color: rgba(255,242,0,.72);
  white-space: nowrap; overflow: hidden; font-weight: 500;
}
.frame.big .shot { aspect-ratio: 16 / 9; }

.cap { padding-top: 16px; display: grid; gap: 8px; }
.cap-top { display: flex; gap: 10px; color: var(--mute-d); flex-wrap: wrap; }
.cap h3 {
  font-family: var(--f-display); font-weight: 680; font-size: 1.45rem; line-height: 1.02;
  font-variation-settings: "wdth" 80; letter-spacing: -.01em;
}
.frame.big .cap h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.cap-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: .95rem; color: var(--mute-d); }
.cap-price strong { color: var(--paper); font-weight: 650; font-size: 1.05rem; }
.cap-price s { opacity: .8; }
.cap .note {
  justify-self: start; background: var(--yellow); color: var(--on-yellow);
  padding: 3px 8px; font-family: var(--f-mono); font-size: .64rem; font-weight: 600; letter-spacing: .01em;
}

/* grease pencil loop */
.pencil {
  position: absolute; inset: -13px -11px; width: calc(100% + 22px); height: calc(100% + 26px);
  pointer-events: none; overflow: visible; z-index: 2;
}
.pencil path {
  fill: none; stroke: var(--yellow); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.2s var(--ease-io) .25s;
}
.frame.in .pencil path { stroke-dashoffset: 0; }

.more-wrap { display: flex; justify-content: center; margin-top: 48px; }
.more-wrap:empty { display: none; }
.f-more { display: none; }
@media (max-width: 759px) {
  .f-more { display: inline-flex; margin-left: auto; }
  .f-row2 { display: none; }
  .filters.open .f-row2 { display: flex; }
  .filters { padding-block: 10px; margin-bottom: 28px; }
}
.empty { display: none; padding: 40px 0; color: var(--mute-d); }
.empty.on { display: block; }

/* Loupe */
.loupe {
  position: fixed; z-index: var(--z-toast); width: 168px; height: 168px; border-radius: 50%;
  pointer-events: none; background-repeat: no-repeat; opacity: 0; scale: .8;
  box-shadow: 0 0 0 5px var(--film), 0 0 0 6px rgba(244,244,240,.35), 0 18px 40px rgba(0,0,0,.45);
  transition: opacity .18s var(--ease-out), scale .18s var(--ease-out);
  translate: -50% -50%;
}
.loupe.on { opacity: 1; scale: 1; }

/* Development effect: the print appearing in the tray */
.dev img, img.dev {
  filter: brightness(2.6) contrast(.28) grayscale(1);
  opacity: .92;
}
.dev.shown img, img.dev.shown {
  filter: none; opacity: 1;
  transition: filter 2.2s cubic-bezier(.3,.1,.25,1), opacity 1.2s;
}

/* ===== Quiz (light) ===== */
.light { background: var(--paper); color: var(--ink); }
.quiz { padding: 96px 0; }
.quiz-grid { display: grid; gap: 36px; }
@media (min-width: 980px) { .quiz-grid { grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: start; } }
.quiz .h2 { color: var(--ink); }
.quiz .lead { color: var(--mute-l); margin-top: 18px; }
.meter { margin-top: 36px; max-width: 360px; }
.meter-scale { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: .66rem; color: var(--mute-l); }
.meter-track { position: relative; height: 26px; margin-top: 6px; overflow-x: clip; overflow-y: visible; padding-inline: 2px; }
.meter-track::before {
  content: ""; position: absolute; left: 0; right: 0; top: 12px; height: 2px; background: var(--ink);
  -webkit-mask: linear-gradient(90deg, #000 0 100%); opacity: .2;
}
.meter-track span { position: absolute; top: 6px; width: 1px; height: 14px; background: var(--ink); opacity: .35; }
.meter-run { position: absolute; inset: 0; transform: translateX(calc(var(--pos, 0) * 1%)); transition: transform .9s var(--ease-out); }
.meter-needle { position: absolute; top: 0; left: -1px; width: 3px; height: 26px; background: var(--ink); border-radius: 2px; }
.meter-needle::after { content: ""; position: absolute; left: -4px; top: -7px; width: 11px; height: 7px; background: var(--yellow); box-shadow: inset 0 0 0 1.5px var(--ink); }
.meter-label { margin-top: 10px; font-family: var(--f-mono); font-size: .7rem; color: var(--ink); }

.q-card { position: relative; min-height: 420px; }
.q-step { display: none; }
.q-step.on { display: block; animation: rise .5s var(--ease-out); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.q-step h3 {
  font-family: var(--f-display); font-weight: 720; font-size: clamp(1.9rem, 4.2vw, 2.9rem); line-height: 1;
  font-variation-settings: "wdth" 75; letter-spacing: -.015em; margin-bottom: 22px;
}
.q-opts { display: grid; gap: 10px; }
.q-opt {
  display: flex; align-items: center; gap: 16px; width: 100%; text-align: left;
  padding: 18px 18px; background: #fff; border-radius: var(--r);
  box-shadow: inset 0 0 0 1px var(--line-l);
  transition: box-shadow .2s, transform .16s var(--ease-out), background-color .2s;
}
.q-opt:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.q-opt:active { transform: scale(.985); }
.q-opt .k { width: 44px; height: 44px; border-radius: 50%; background: var(--paper-2); display: grid; place-items: center; font-size: 1.35rem; flex-shrink: 0; transition: background-color .2s; }
.q-opt:hover .k { background: var(--yellow); }
.q-opt b { display: block; font-weight: 600; font-size: 1.05rem; }
.q-opt small { color: var(--mute-l); font-size: .9rem; }
.q-opt .arr { margin-left: auto; font-size: 1.2rem; opacity: .4; transition: transform .2s var(--ease-out), opacity .2s; }
.q-opt:hover .arr { transform: translateX(4px); opacity: 1; }
.q-back { margin-top: 16px; font-size: .9rem; color: var(--mute-l); display: inline-flex; gap: 6px; align-items: center; min-height: 44px; }
.q-back:hover { color: var(--ink); }
.q-res { display: grid; gap: 12px; margin-bottom: 26px; }
.q-hit {
  display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: center;
  background: #fff; border-radius: var(--r); padding: 10px; box-shadow: inset 0 0 0 1px var(--line-l);
  transition: box-shadow .2s;
}
.q-hit:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.q-hit img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; border-radius: 2px; }
.q-hit b { display: block; font-weight: 650; line-height: 1.2; margin-bottom: 4px; }
.q-hit span { font-size: .86rem; color: var(--mute-l); }

/* forms */
.form { display: grid; gap: 14px; }
.form .two { display: grid; gap: 14px; }
@media (min-width: 560px) { .form .two { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-size: .86rem; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: var(--r); border: 0;
  background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(18,18,17,.28);
  transition: box-shadow .2s;
}
.field input::placeholder { color: #6b6b64; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--ink); }
.field .err { color: #a3140b; font-size: .82rem; display: none; }
.field.bad input { box-shadow: inset 0 0 0 2px #a3140b; }
.field.bad .err { display: block; }
.dark-form .field input, .dark-form .field select { background: var(--ink-2); color: var(--paper); box-shadow: inset 0 0 0 1px rgba(244,244,240,.24); }
.dark-form .field input::placeholder { color: #8d8d86; }
.dark-form .field input:focus { box-shadow: inset 0 0 0 2px var(--yellow); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; line-height: 1.4; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ink); flex-shrink: 0; }
.dark-form .check input { accent-color: var(--yellow); }
.ok {
  display: none; padding: 22px; border-radius: var(--r); background: var(--ink); color: var(--paper);
  gap: 8px;
}
.ok.on { display: grid; animation: rise .5s var(--ease-out); }
.ok b { font-family: var(--f-display); font-weight: 720; font-size: 1.6rem; font-variation-settings: "wdth" 80; line-height: 1; }
.ok i { color: var(--yellow); font-size: 1.8rem; }

/* ===== Payment (yellow) ===== */
.pay { background: var(--yellow); color: var(--on-yellow); padding: 96px 0; }
.pay-grid { display: grid; gap: 40px; }
@media (min-width: 980px) { .pay-grid { grid-template-columns: .85fr 1.15fr; gap: 72px; } }
.pay .h2 { color: var(--on-yellow); }
.pay .lead { margin-top: 18px; }
.pay-list { list-style: none; margin: 0; padding: 0; }
.pay-list li { display: grid; grid-template-columns: 52px 1fr; gap: 6px 16px; padding: 20px 0; border-bottom: 1.5px solid rgba(20,19,0,.9); }
.pay-list li:first-child { border-top: 1.5px solid rgba(20,19,0,.9); }
.pay-list i { font-size: 2rem; grid-row: span 2; }
.pay-list b { font-family: var(--f-display); font-weight: 720; font-size: 1.5rem; line-height: 1.05; font-variation-settings: "wdth" 82; }
.pay-list p { font-size: .98rem; line-height: 1.45; max-width: 52ch; }
.pay-methods { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.pay-methods span { padding: 7px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px rgba(20,19,0,.9); font-weight: 600; font-size: .86rem; }

/* ===== Exhibition wall ===== */
.wall { background: var(--wall); color: var(--ink); padding: 96px 0 110px; }
.wall-head { display: grid; gap: 16px; margin-bottom: 56px; }
.wall-head .lead { color: #45453f; }
@media (min-width: 900px) { .wall-head { grid-template-columns: 1fr 1fr; align-items: end; } }
.hang { display: grid; gap: 56px; }
.piece { display: grid; gap: 16px; align-content: start; }
.piece .print { background: #fff; padding: 10px; box-shadow: 0 1px 1px rgba(0,0,0,.08), 0 10px 22px -12px rgba(0,0,0,.35); }
.piece .print img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.label {
  max-width: 300px; background: #fbfbf8; padding: 14px 16px 16px; font-size: .88rem; line-height: 1.45;
  box-shadow: 0 1px 2px rgba(0,0,0,.08);
}
.label .mono { display: block; color: #57574f; margin-bottom: 8px; }
.label b { display: block; font-size: 1rem; line-height: 1.25; margin-bottom: 6px; font-weight: 650; }
@media (min-width: 900px) {
  .hang { grid-template-columns: repeat(12, 1fr); gap: 32px; align-items: start; }
  .piece:nth-child(1) { grid-column: 1 / span 5; }
  .piece:nth-child(2) { grid-column: 7 / span 4; margin-top: 90px; }
  .piece:nth-child(3) { grid-column: 2 / span 4; margin-top: -20px; }
  .piece:nth-child(4) { grid-column: 7 / span 6; margin-top: 40px; }
  .piece:nth-child(2) .print img, .piece:nth-child(3) .print img { aspect-ratio: 4 / 5; }
  .piece { grid-template-columns: 1fr; }
}

/* ===== School / visit ===== */
.school { padding: 96px 0; }
.school-grid { display: grid; gap: 40px; }
@media (min-width: 980px) { .school-grid { grid-template-columns: 1.05fr .95fr; gap: 72px; } }
.school-photos { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; aspect-ratio: 5 / 4; }
.school-photos .dev { overflow: hidden; background: var(--paper); min-height: 0; }
.school-photos img { width: 100%; height: 100%; object-fit: cover; }
.school-photos .dev:first-child { grid-row: span 2; }
.facts { margin-top: 28px; display: grid; gap: 0; }
.facts div { display: grid; grid-template-columns: 26px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line-d); color: var(--mute-d); }
.facts div b { color: var(--paper); font-weight: 600; }
.facts i { color: var(--yellow); font-size: 1.25rem; }
.visit { background: var(--ink-2); padding: 26px; border-radius: 10px; margin-top: 32px; }
.visit h3 { font-family: var(--f-display); font-weight: 720; font-size: 1.9rem; line-height: 1; font-variation-settings: "wdth" 78; margin-bottom: 6px; }
.visit > p { color: var(--mute-d); margin-bottom: 18px; }
.days { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 4px -4px 0; padding: 4px; }
.days::-webkit-scrollbar { display: none; }
.day {
  flex-shrink: 0; width: 66px; padding: 10px 0; border-radius: var(--r); text-align: center;
  box-shadow: inset 0 0 0 1px var(--line-d); transition: background-color .2s, color .2s, transform .16s var(--ease-out);
}
.day:active { transform: scale(.95); }
.day small { display: block; font-family: var(--f-mono); font-size: .6rem; color: var(--mute-d); text-transform: uppercase; }
.day b { display: block; font-family: var(--f-display); font-size: 1.6rem; font-weight: 700; line-height: 1.1; font-variation-settings: "wdth" 70; }
.day[aria-pressed="true"] { background: var(--yellow); color: var(--on-yellow); box-shadow: none; }
.day[aria-pressed="true"] small { color: var(--on-yellow); }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-d); }
.seg button { height: 38px; padding: 0 16px; border-radius: 999px; font-size: .9rem; font-weight: 500; transition: background-color .2s, color .2s; }
.seg button[aria-pressed="true"] { background: var(--paper); color: var(--ink); }

/* ===== News ===== */
.news { padding: 96px 0; }
.news-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 36px; flex-wrap: wrap; }
.news-list { display: grid; gap: 28px; }
@media (min-width: 900px) { .news-list { grid-template-columns: 1.3fr 1fr 1fr; gap: 28px; } }
.post { display: grid; gap: 14px; align-content: start; }
.post .dev { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); }
.post img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.post:hover img { transform: scale(1.03); }
.post .mono { color: var(--mute-l); }
.post h3 { font-size: 1.25rem; line-height: 1.25; font-weight: 600; letter-spacing: -.01em; }
.post:first-child h3 { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.6rem, 2.4vw, 2.1rem); line-height: 1.02; font-variation-settings: "wdth" 78; }

/* ===== Footer ===== */
.foot { background: var(--film); padding: 80px 0 120px; color: var(--mute-d); }
.news-sign { display: grid; gap: 24px; padding-bottom: 56px; border-bottom: 1px solid var(--line-d); }
@media (min-width: 980px) { .news-sign { grid-template-columns: 1.1fr .9fr; align-items: end; } }
.news-sign > * { min-width: 0; }
.news-sign .h2 { color: var(--paper); font-size: clamp(2.3rem, 6.4vw, 4.6rem); }
.news-sign .inline { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 559px) { .news-sign .inline .btn { width: 100%; } }
.news-sign .inline input {
  flex: 1 1 220px; min-width: 0; min-height: 52px; border-radius: 999px; border: 0; padding: 0 20px;
  background: var(--ink-2); color: var(--paper); box-shadow: inset 0 0 0 1px rgba(244,244,240,.22);
}
.news-sign .inline input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--yellow); }
.foot-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 24px; padding: 48px 0; }
@media (min-width: 900px) { .foot-cols { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.foot h4 { color: var(--paper); font-size: .95rem; font-weight: 600; margin-bottom: 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: .92rem; }
.foot a:hover { color: var(--paper); }
.foot .brand img { height: 30px; margin-bottom: 18px; }
.socials { display: flex; gap: 4px; margin-top: 14px; }
.legal { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: .8rem; padding-top: 24px; border-top: 1px solid var(--line-d); }

/* ===== Mobile dock ===== */
.dock {
  position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: var(--z-dock);
  display: flex; gap: 8px; padding: 8px; border-radius: 999px;
  background: rgba(28,28,26,.9); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 0 0 1px rgba(244,244,240,.1), 0 8px 24px rgba(0,0,0,.35);
  transform: translateY(140%); transition: transform .45s var(--ease-out);
}
.dock.on { transform: none; }
.dock .btn { flex: 1; min-height: 46px; font-size: .92rem; padding: 0 12px; }
.dock .wa { width: 46px; min-height: 46px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #06290f; font-size: 1.45rem; }
@media (min-width: 980px) { .dock { display: none; } }

/* ===== Drawer (cart + checkout) ===== */
.scrim {
  position: fixed; inset: 0; z-index: var(--z-drawer); background: rgba(7,7,7,.55);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s;
}
.scrim.on { opacity: 1; visibility: visible; transition: opacity .3s; }
.drawer {
  position: fixed; z-index: calc(var(--z-drawer) + 1); top: 0; right: 0; bottom: 0; width: min(100%, 460px);
  background: var(--paper); color: var(--ink); display: flex; flex-direction: column;
  transform: translateX(104%); transition: transform .45s var(--ease-out);
}
.drawer.on { transform: none; }
@media (max-width: 559px) {
  .drawer { top: auto; height: 92dvh; width: 100%; border-radius: 16px 16px 0 0; transform: translateY(104%); }
}
.dr-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px 14px 22px; border-bottom: 1px solid var(--line-l); }
.dr-head h2 { font-family: var(--f-display); font-weight: 720; font-size: 1.6rem; font-variation-settings: "wdth" 78; line-height: 1; }
.dr-head .icon-btn { margin-left: auto; }
.dr-head .icon-btn:hover { background: var(--paper-2); }
.steps { display: flex; gap: 6px; padding: 14px 22px 0; }
.steps span { flex: 1; font-family: var(--f-mono); font-size: .62rem; color: var(--mute-l); padding-top: 8px; position: relative; }
.steps span::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; border-radius: 2px; background: var(--paper-2); }
.steps span.on { color: var(--ink); }
.steps span.on::before { background: var(--ink); }
.dr-body { flex: 1; overflow-y: auto; padding: 20px 22px; overscroll-behavior: contain; }
.dr-foot { padding: 16px 22px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-l); background: #fbfbf8; }
.dr-sum { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.dr-sum b { font-family: var(--f-display); font-weight: 760; font-size: 1.9rem; font-variation-settings: "wdth" 72; }
.dr-sum small { display: block; color: var(--mute-l); font-size: .82rem; }
.dr-pane { display: none; }
.dr-pane.on { display: block; animation: rise .4s var(--ease-out); }
.item { display: grid; grid-template-columns: 84px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line-l); }
.item img { aspect-ratio: 1; object-fit: cover; border-radius: 3px; }
.item b { display: block; font-weight: 650; line-height: 1.25; }
.item .mono { color: var(--mute-l); display: block; margin: 4px 0 8px; }
.item-plan { display: flex; gap: 6px; flex-wrap: wrap; }
.item-plan button {
  font-size: .8rem; padding: 6px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-l);
  transition: background-color .2s, color .2s;
}
.item-plan button[aria-pressed="true"] { background: var(--ink); color: var(--paper); box-shadow: none; }
.item-rm { font-size: .8rem; color: var(--mute-l); margin-top: 8px; min-height: 32px; }
.item-rm:hover { color: var(--ink); }
.dr-empty { text-align: center; padding: 60px 10px; color: var(--mute-l); display: grid; gap: 14px; justify-items: center; }
.dr-empty i { font-size: 2.6rem; color: var(--ink); }
.perk { margin-top: 18px; padding: 14px 16px; background: #fff; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line-l); display: grid; grid-template-columns: 24px 1fr; gap: 10px; font-size: .88rem; line-height: 1.45; }
.perk i { font-size: 1.25rem; }
.methods { display: grid; gap: 8px; }
.method {
  display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: center;
  padding: 14px 16px; background: #fff; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line-l); cursor: pointer;
  transition: box-shadow .2s;
}
.method:has(input:checked) { box-shadow: inset 0 0 0 2px var(--ink); }
.method input { width: 18px; height: 18px; accent-color: var(--ink); margin: 0; }
.method b { font-weight: 600; font-size: .98rem; }
.method small { display: block; color: var(--mute-l); font-size: .8rem; }
.method .tag { font-family: var(--f-mono); font-size: .6rem; padding: 3px 6px; background: var(--paper-2); border-radius: 3px; }
.method-extra { display: none; padding: 4px 2px 8px; }
.method:has(input:checked) + .method-extra { display: block; }
.done-card { display: grid; gap: 14px; }
.done-card .big { font-family: var(--f-display); font-weight: 780; font-size: 2.6rem; line-height: .95; font-variation-settings: "wdth" 66; }
.ref { background: #fff; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line-l); padding: 6px 16px; }
.ref div { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line-l); }
.ref div:last-child { border: 0; }
.ref span { color: var(--mute-l); }
.ref b { font-family: var(--f-mono); font-weight: 600; letter-spacing: .02em; }
.demo-note { font-size: .78rem; color: var(--mute-l); display: flex; gap: 8px; align-items: flex-start; }

/* ===== Search dialog ===== */
dialog.search {
  width: min(100% - 24px, 680px); max-height: min(80dvh, 640px); margin: 10vh auto auto; padding: 0; border: 0;
  border-radius: 14px; background: var(--paper); color: var(--ink); overflow: hidden;
}
dialog.search[open] { animation: pop .22s var(--ease-out); }
@keyframes pop { from { opacity: 0; transform: scale(.97) translateY(-6px); } }
dialog.search::backdrop { background: rgba(7,7,7,.6); }
.s-in { display: flex; align-items: center; gap: 12px; padding: 0 18px; border-bottom: 1px solid var(--line-l); }
.s-in i { font-size: 1.3rem; }
.s-in input { flex: 1; height: 62px; border: 0; background: transparent; font-size: 1.1rem; outline: none; min-width: 0; }
.s-res { max-height: calc(min(80dvh, 640px) - 64px); overflow-y: auto; padding: 8px; }
.s-res a { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 8px; border-radius: 8px; }
.s-res a:hover, .s-res a.hl { background: #fff; }
.s-res img { aspect-ratio: 3 / 2; object-fit: cover; border-radius: 3px; }
.s-res b { display: block; font-weight: 600; line-height: 1.25; }
.s-res small { color: var(--mute-l); font-size: .82rem; }
.s-res .p { font-weight: 650; font-size: .9rem; }
.s-hint { padding: 14px 10px; color: var(--mute-l); font-size: .9rem; }
kbd { font-family: var(--f-mono); font-size: .66rem; padding: 2px 6px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--line-l); }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 90px; z-index: var(--z-toast); translate: -50% 0;
  background: var(--paper); color: var(--ink); padding: 12px 16px; border-radius: 999px; font-weight: 600; font-size: .92rem;
  display: flex; align-items: center; gap: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.35);
  opacity: 0; transform: translateY(12px); transition: opacity .25s, transform .35s var(--ease-out); pointer-events: none;
}
.toast.on { opacity: 1; transform: none; }
.toast i { color: #1a7f37; font-size: 1.2rem; }
@media (min-width: 980px) { .toast { bottom: 32px; } }

/* Reveal */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .rv { opacity: 1; transform: none; }
  .dev img, img.dev { filter: none; opacity: 1; }
  .vf-focus { display: none; }
}

/* Shutter between pages (cross-document view transitions, progressive) */
html { background: var(--film); }
@view-transition { navigation: auto; }
::view-transition-group(root) { animation-duration: .5s; }
::view-transition-old(root) { animation: shut .26s var(--ease-io) both; }
::view-transition-new(root) { animation: open .42s var(--ease-out) .16s both; }
@keyframes shut { to { clip-path: inset(50% 0 50% 0); } }
@keyframes open { from { clip-path: inset(50% 0 50% 0); } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
