/* AlexPrints — modern print studio: paper, black ink, one vermilion */
:root {
  --paper: #efebe3;
  --paper-2: #e4dfd3;
  --sheet: #f9f7f2;
  --ink: #121110;
  --ink-2: #3b3833;
  --ink-3: #7a746a;
  --rule: rgba(18, 17, 16, .14);
  --rule-strong: rgba(18, 17, 16, .9);
  --red: #d4402a;
  --shadow: 0 1px 2px rgba(30, 24, 14, .06), 0 18px 40px -22px rgba(30, 24, 14, .45);
  --display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --gutter: clamp(16px, 3.4vw, 48px);
  --max: 1440px;
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 300;
  opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .4  0 0 0 0 .36  0 0 0 0 .3  0 0 0 .08 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--red); color: var(--sheet); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* type */
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: .95; letter-spacing: -.015em; margin: 0; }
h1 { font-size: clamp(3rem, 8vw, 7.5rem); }
h2 { font-size: clamp(2.4rem, 5.4vw, 4.8rem); }
h3 { font-size: clamp(1.6rem, 2.2vw, 2rem); line-height: 1.05; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--red); }
p { margin: 0 0 1em; }
.lede { font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.5; color: var(--ink-2); max-width: 34em; }
.eyebrow, .mono { font-family: var(--mono); font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.eyebrow { display: inline-flex; gap: .6em; align-items: center; margin-bottom: 1.2rem; }
.eyebrow b { color: var(--red); font-weight: 400; }
.red { color: var(--red); }

/* registration mark */
.reg { display: inline-block; width: 18px; height: 18px; position: relative; flex: none; }
.reg::before, .reg::after { content: ""; position: absolute; background: currentColor; }
.reg::before { left: 50%; top: 0; bottom: 0; width: 1px; transform: translateX(-50%); }
.reg::after { top: 50%; left: 0; right: 0; height: 1px; transform: translateY(-50%); }
.reg i { position: absolute; inset: 4px; border: 1px solid currentColor; border-radius: 50%; }

.preview-note { background: var(--ink); color: var(--paper); font: 400 .68rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; text-align: center; padding: 8px var(--gutter); }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 1.02rem/1 var(--sans); letter-spacing: -.01em; white-space: nowrap; }
.logo .stamp { width: 30px; height: 30px; background: var(--red); color: var(--sheet); display: grid; place-items: center; font: 400 .62rem/1 var(--mono); border-radius: 2px; transform: rotate(-4deg); transition: transform .4s var(--ease); }
.logo:hover .stamp { transform: rotate(0); }
.logo span { color: var(--ink-3); font-weight: 400; }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a { text-decoration: none; font-size: .9rem; padding: 8px 12px; border-radius: 999px; transition: background .2s, color .2s; }
.nav a:hover { background: var(--paper-2); }
.nav a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.cart-btn { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: var(--paper); border: 0; border-radius: 999px; padding: 9px 10px 9px 16px; font-size: .86rem; transition: background .2s; }
.cart-btn:hover { background: var(--red); }
.cart-count { font-family: var(--mono); font-size: .72rem; background: var(--paper); color: var(--ink); border-radius: 999px; min-width: 22px; height: 22px; display: grid; place-items: center; padding: 0 6px; }
.cart-btn.bump { animation: bump .5s ease; }
@keyframes bump { 40% { transform: scale(1.08); } }
.menu-btn { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; }
.menu-btn span { display: block; width: 22px; height: 1.5px; background: var(--ink); transition: transform .3s; }
.menu-btn span + span { margin-top: 6px; }
.menu-open .menu-btn span:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-open .menu-btn span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--paper); flex-direction: column; align-items: stretch; gap: 0; padding: 16px var(--gutter); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s, visibility .25s; }
  .menu-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav a { font-family: var(--display); font-size: 2.6rem; padding: 12px 0; border-radius: 0; border-bottom: 1px solid var(--rule); }
  .nav a:hover, .nav a[aria-current="page"] { background: none; color: var(--red); }
  .menu-open { overflow: hidden; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--ink); color: var(--paper); border: 1px solid var(--ink); padding: 14px 22px; border-radius: 999px; font-size: .92rem; text-decoration: none; font-weight: 500; transition: background .2s, color .2s, border-color .2s; }
.btn:hover { background: var(--red); border-color: var(--red); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn[disabled] { opacity: .4; pointer-events: none; }
.btn.block { width: 100%; }
.link-arrow { text-decoration: none; font-size: .9rem; display: inline-flex; gap: 8px; align-items: center; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link-arrow::after { content: "\2192"; transition: transform .25s; }
.link-arrow:hover::after { transform: translateX(4px); }

/* sheets */
.sheet { position: relative; background: var(--sheet); box-shadow: var(--shadow); transition: transform .6s var(--ease); }
.sheet svg, .sheet img { width: 100%; height: auto; }
.strip { display: flex; }
.strip img { flex: 1 1 0; min-width: 0; width: 0; }
.canvas-work { box-shadow: 0 1px 1px rgba(0,0,0,.08), 6px 10px 22px -10px rgba(40,32,20,.45); transition: transform .6s var(--ease); }
.fit > .sheet, .fit > .canvas-work { width: min(100%, calc(var(--fit-h, 300px) * var(--r, .8))); flex: none; }

/* sections */
section { padding: clamp(72px, 11vw, 160px) 0; position: relative; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(36px, 5vw, 64px); flex-wrap: wrap; }
.rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }
.dark-band { background: var(--ink); color: var(--paper); }
.dark-band .lede, .dark-band p { color: #bdb6a8; }
.dark-band .eyebrow, .dark-band .mono { color: #8f887a; }
.dark-band .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.dark-band .btn:hover { background: var(--red); color: var(--paper); border-color: var(--red); }
.dark-band .btn.ghost { background: transparent; color: var(--paper); border-color: rgba(239,235,227,.4); }
.dark-band .hero-top { border-color: rgba(239,235,227,.5); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---------- home: press hero ---------- */
.press-hero { padding: clamp(28px, 4vw, 56px) 0 clamp(56px, 8vw, 110px); }
.hero-top { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--rule-strong); padding-top: 14px; margin-bottom: clamp(28px, 5vw, 64px); flex-wrap: wrap; }
.hero-top .eyebrow { margin: 0; }
.hero-title { font-size: clamp(3.6rem, 13vw, 13rem); line-height: .84; letter-spacing: -.035em; }
.hero-title .ln { display: block; overflow: hidden; padding-bottom: .05em; }
.hero-title .ln > span { display: inline-block; transform: translateY(105%); animation: rise-in 1.1s var(--ease) forwards; }
.hero-title .ln:nth-child(2) > span { animation-delay: .12s; }
.hero-title .ln:nth-child(3) > span { animation-delay: .24s; }
.hero-title .ln:nth-child(2) { padding-left: 14vw; }
.hero-title .ln:nth-child(3) { text-align: right; }
@keyframes rise-in { to { transform: none; } }
.hero-sub { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; margin-top: clamp(24px, 4vw, 48px); }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 760px) { .hero-sub { grid-template-columns: 1fr; } .hero-title .ln:nth-child(2) { padding-left: 0; } }

.press { margin: clamp(40px, 6vw, 80px) auto 0; max-width: var(--max); padding: 0 var(--gutter); }
.press-bed { position: relative; background: var(--paper-2); padding: clamp(20px, 5vw, 72px); overflow: hidden; }
.press-bed .corner { position: absolute; color: var(--ink-3); }
.press-bed .corner.tl { top: 12px; left: 12px; } .press-bed .corner.tr { top: 12px; right: 12px; }
.press-bed .corner.bl { bottom: 12px; left: 12px; } .press-bed .corner.br { bottom: 12px; right: 12px; }
.press-sheet { position: relative; background: var(--sheet); box-shadow: var(--shadow); padding: clamp(10px, 2.2vw, 28px); }
.press-print { clip-path: inset(0 100% 0 0); }
.press.go .press-print { animation: pull 2.6s var(--ease) .3s forwards; }
@keyframes pull { to { clip-path: inset(0 0 0 0); } }
.roller { position: absolute; top: -6%; bottom: -6%; width: clamp(26px, 3.2vw, 46px); left: 0; transform: translateX(-120%); border-radius: 999px; pointer-events: none; z-index: 2;
  background: linear-gradient(90deg, #050505 0%, #3a3835 30%, #77736c 46%, #2a2826 62%, #050505 100%); box-shadow: 8px 0 18px rgba(0,0,0,.35); }
.press.go .roller { animation: roll 2.6s var(--ease) .3s forwards; }
@keyframes roll { 0% { left: 0; transform: translateX(-120%); opacity: 1; } 90% { opacity: 1; } 100% { left: 100%; transform: translateX(20%); opacity: 0; } }
.press-meta { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--rule); align-items: center; }
.press-meta a { text-decoration: none; }
.press-meta strong { font-family: var(--display); font-weight: 400; font-size: 1.8rem; line-height: 1; }
@media (max-width: 760px) { .press-meta { grid-template-columns: 1fr 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .press-print { clip-path: none; } .roller { display: none; }
  .hero-title .ln > span { transform: none; animation: none; }
}

/* marquee */
.marquee { border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule-strong); overflow: hidden; padding: 18px 0; }
.marquee-track { display: flex; gap: 40px; width: max-content; animation: slide 50s linear infinite; align-items: center; }
.marquee span { font-family: var(--display); font-size: clamp(1.8rem, 3.4vw, 3rem); white-space: nowrap; line-height: 1; }
.marquee span:nth-child(even) { font-family: var(--mono); font-size: .72rem; color: var(--red); letter-spacing: .06em; text-transform: uppercase; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- matrix: block to print ---------- */
.matrix-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
@media (max-width: 860px) { .matrix-wrap { grid-template-columns: 1fr; } }
.matrix-steps { list-style: none; padding: 0; margin: 32px 0 0; }
.matrix-steps button { width: 100%; text-align: left; background: none; border: 0; border-top: 1px solid rgba(239,235,227,.16); padding: 18px 0; display: grid; grid-template-columns: 44px 1fr; gap: 8px; color: #8f887a; transition: color .3s; }
.matrix-steps li:last-child button { border-bottom: 1px solid rgba(239,235,227,.16); }
.matrix-steps strong { display: block; font-family: var(--display); font-weight: 400; font-size: 1.9rem; line-height: 1.05; }
.matrix-steps .t { display: block; font-size: .92rem; margin-top: 6px; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .5s var(--ease), opacity .4s; }
.matrix-steps button[aria-pressed="true"] { color: var(--paper); }
.matrix-steps button[aria-pressed="true"] .t { max-height: 8em; opacity: 1; color: #bdb6a8; }
.matrix-steps .n { font-family: var(--mono); font-size: .72rem; padding-top: 12px; }
.matrix-steps button[aria-pressed="true"] .n { color: var(--red); }

.matrix { perspective: 1800px; max-width: 520px; width: 100%; justify-self: center; }
.matrix-card { position: relative; aspect-ratio: 3 / 4; transform-style: preserve-3d; transition: transform 1.3s var(--ease); }
.matrix.pulled .matrix-card { transform: rotateY(180deg); }
.matrix .face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; }
.matrix .face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.face.block, .blockview {
  background:
    repeating-linear-gradient(93deg, rgba(90,52,20,0) 0 7px, rgba(90,52,20,.16) 7px 8px, rgba(90,52,20,0) 8px 15px),
    repeating-linear-gradient(88deg, rgba(255,230,190,0) 0 22px, rgba(255,230,190,.14) 22px 26px, rgba(255,230,190,0) 26px 40px),
    linear-gradient(160deg, #d6ab7a, #bb8b5c 55%, #a87a4c);
}
.face.block { box-shadow: inset 0 0 0 1px rgba(0,0,0,.25), inset 0 0 60px rgba(60,30,8,.35); }
.face.block img { mix-blend-mode: multiply; transform: scaleX(-1); }
.face.block .carved { filter: invert(1) contrast(1.4); opacity: .3; }
.face.block .inked { clip-path: inset(0 100% 0 0); filter: contrast(1.3); }
.matrix.inked .face.block .inked { clip-path: inset(0 0 0 0); transition: clip-path 1.6s var(--ease); }
.face.block .gloss { position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.16) 45%, transparent 60%); opacity: 0; transition: opacity 1s .8s; mix-blend-mode: screen; }
.matrix.inked .face.block .gloss { opacity: 1; }
.matrix .roller { top: -3%; bottom: -3%; }
.matrix.inking .roller { animation: roll 1.6s var(--ease) forwards; }
.face.print { transform: rotateY(180deg); background: var(--sheet); padding: 8% 8% 13%; }
.face.print .inner { position: relative; width: 100%; height: 100%; }
.face.print .inner img { object-fit: cover; }
.face.print .pencil { position: absolute; left: 8%; right: 8%; bottom: 4.5%; display: flex; justify-content: space-between; font: italic 400 clamp(.62rem, 1.1vw, .82rem)/1 Georgia, serif; color: #8d877c; }
.matrix-label { display: flex; justify-content: space-between; margin-top: 16px; }

/* ---------- ink cross-sections ---------- */
.xsec-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 28px; }
.xsec-tab { background: none; border: 1px solid var(--rule-strong); border-radius: 999px; padding: 9px 16px; font-size: .88rem; }
.xsec-tab[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.xsec { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (max-width: 900px) { .xsec { grid-template-columns: 1fr; } }
.xsec-fig { background: var(--sheet); border: 1px solid var(--rule); padding: clamp(12px, 2vw, 24px); position: relative; }
.xsec-fig svg { width: 100%; height: auto; }
.xsec-fig .corner { position: absolute; color: var(--ink-3); }
.xsec-fig .corner.tl { top: -9px; left: -9px; } .xsec-fig .corner.br { bottom: -9px; right: -9px; }
.xsec-text h3 { margin-bottom: 14px; font-size: clamp(2rem, 3.4vw, 3rem); }
.xsec-text p { color: var(--ink-2); }
.xsec-text dl { margin: 22px 0 0; border-top: 1px solid var(--rule); }
.xsec-text dl div { display: grid; grid-template-columns: 8em 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: .9rem; }
.xsec-text dt { font-family: var(--mono); font-size: .7rem; text-transform: uppercase; color: var(--ink-3); padding-top: 3px; }
.xsec-text dd { margin: 0; }
.xsec-replay { margin-top: 18px; background: none; border: 0; padding: 0; font-size: .85rem; text-decoration: underline; text-underline-offset: 3px; color: var(--ink-2); }

/* ---------- tools & marks ---------- */
.tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.tool { background: var(--paper); padding: clamp(18px, 2vw, 28px); display: flex; flex-direction: column; gap: 16px; }
.tool .spec { aspect-ratio: 1; overflow: hidden; }
.tool .spec svg { width: 100%; height: 100%; }
.tool h3 { font-size: 1.9rem; }
.tool p { color: var(--ink-2); font-size: .92rem; margin: 0; }
.tool .mono { display: flex; justify-content: space-between; }
.tool .mark { stroke-dasharray: var(--len, 400); stroke-dashoffset: var(--len, 400); }
.tools.drawn .mark { animation: draw 1.4s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .tool .mark { stroke-dashoffset: 0; } }
@media (max-width: 1000px) { .tools { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .tools { grid-template-columns: 1fr; } }

/* ---------- edition fan ---------- */
.edition-wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
@media (max-width: 860px) { .edition-wrap { grid-template-columns: 1fr; } }
.fan { position: relative; height: clamp(320px, 36vw, 460px); }
.fan .s { position: absolute; left: 50%; bottom: 0; width: clamp(150px, 17vw, 230px); aspect-ratio: 3/4; background: var(--sheet); box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 14px 30px -18px rgba(0,0,0,.5);
  transform-origin: 50% 130%; transform: translateX(-50%) rotate(calc((var(--i) - 4.5) * 6.5deg)); transition: transform .5s var(--ease); padding: clamp(10px, 1.2vw, 16px) clamp(10px, 1.2vw, 16px) 8px; display: flex; flex-direction: column; border: 0; }
.fan .s .img { flex: 1; background-size: cover; background-position: center; }
.fan .s .n { font: italic 400 .74rem/1 Georgia, serif; color: #8d877c; margin-top: 9%; display: flex; justify-content: space-between; }
.fan .s:hover, .fan .s:focus-visible { transform: translateX(-50%) rotate(calc((var(--i) - 4.5) * 6.5deg)) translateY(-30px); z-index: 20; }
.edition-terms { margin: 28px 0 0; border-top: 1px solid var(--rule); }
.edition-terms div { display: grid; grid-template-columns: 5.5em 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: .94rem; }
.edition-terms dt { font: italic 400 1.25rem/1.1 var(--display); color: var(--red); }
.edition-terms dd { margin: 0; color: var(--ink-2); }

/* ---------- cards / grid ---------- */
.grid { columns: 3 300px; column-gap: clamp(20px, 2.6vw, 40px); }
.grid.cols-4 { columns: 4 240px; }
.card { break-inside: avoid; margin-bottom: clamp(36px, 5vw, 64px); display: block; text-decoration: none; }
.card-media { position: relative; padding: clamp(18px, 3vw, 36px); background: var(--paper-2); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.card-media > .sheet, .card-media > .canvas-work { width: 100%; }
.card-media.is-painting { padding: clamp(28px, 5vw, 52px); }
.card-media::after { content: "View"; position: absolute; right: 12px; bottom: 12px; font: 400 .68rem/1 var(--mono); text-transform: uppercase; letter-spacing: .04em; background: var(--ink); color: var(--paper); padding: 8px 10px; border-radius: 999px; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }
.card:hover .card-media::after { opacity: 1; transform: none; }
.card:hover .sheet, .card:hover .canvas-work { transform: translateY(-5px) rotate(-.4deg); }
.card-body { display: flex; justify-content: space-between; gap: 16px; margin-top: 14px; align-items: baseline; }
.card-title { font-family: var(--display); font-size: 1.7rem; line-height: 1.05; }
.card-meta { margin-top: 6px; }
.card-price { font-family: var(--mono); font-size: .82rem; white-space: nowrap; }
.tag { font: 400 .66rem/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; padding: 6px 9px; border-radius: 999px; white-space: nowrap; background: var(--sheet); color: var(--ink); }
.tag.sold { background: var(--red); color: var(--sheet); }
.tag.low { background: var(--ink); color: var(--paper); }
.media-tags { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; z-index: 2; }

/* page heads & filters */
.page-head { padding: clamp(28px, 4vw, 56px) 0 clamp(28px, 4vw, 48px); }
.page-head h1 { font-size: clamp(3.4rem, 10vw, 9rem); line-height: .88; letter-spacing: -.03em; }
.page-head .lede { margin-top: 22px; }
.filters { position: sticky; top: var(--header-h); z-index: 20; background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule); margin-bottom: clamp(32px, 5vw, 56px); }
.filters .wrap { display: flex; gap: 12px 28px; align-items: center; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chip { background: none; border: 1px solid var(--rule); border-radius: 999px; padding: 7px 14px; font-size: .84rem; white-space: nowrap; text-decoration: none; display: inline-block; transition: border-color .2s, background .2s, color .2s; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filter-right { display: flex; gap: 16px; align-items: center; margin-left: auto; }
.toggle { display: inline-flex; gap: 8px; align-items: center; font-size: .84rem; cursor: pointer; white-space: nowrap; }
.toggle input { accent-color: var(--red); width: 15px; height: 15px; }
.select { background: transparent; border: 0; border-bottom: 1px solid var(--ink); font: inherit; font-size: .84rem; padding: 4px 20px 4px 0; border-radius: 0; appearance: none; color: var(--ink);
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: right 6px center, right 2px center; background-size: 4px 4px; background-repeat: no-repeat; }
.result-count { white-space: nowrap; }
.technique-note { margin: -24px 0 40px; max-width: 46em; color: var(--ink-2); font-size: .95rem; }
.technique-note:empty { display: none; }
.empty { padding: 80px 0; text-align: center; color: var(--ink-3); }
@media (max-width: 860px) {
  .filters { position: static; }
  .filters .wrap { flex-direction: column; align-items: stretch; gap: 10px; }
  .chips { margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
  .filter-right { margin-left: 0; justify-content: space-between; }
}

/* work detail */
.work { padding-top: clamp(24px, 4vw, 48px); }
.crumbs { margin-bottom: 24px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.work-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(320px, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.viewer { position: sticky; top: calc(var(--header-h) + 20px); }
.stage { background: var(--paper-2); padding: clamp(20px, 5vw, 64px); display: flex; align-items: center; justify-content: center; min-height: min(78vh, 760px); position: relative; overflow: hidden; cursor: zoom-in; --fit-h: calc(min(78vh, 760px) - 96px); }
.stage.wide { min-height: 0; }
.stage .blockview { display: none; }
.stage.block-mode { cursor: default; }
.stage.block-mode > .sheet { display: none; }
.stage.block-mode .blockview { display: block; }
.blockview { position: relative; box-shadow: inset 0 0 0 1px rgba(0,0,0,.25), inset 0 0 50px rgba(60,30,8,.35), var(--shadow); width: min(100%, calc(var(--fit-h) * var(--r))); }
.blockview img { mix-blend-mode: multiply; filter: contrast(1.3); width: 100%; height: auto; }
.blockview .flip { transform: scaleX(-1); }
.loupe { position: absolute; width: 220px; height: 220px; border-radius: 50%; pointer-events: none; overflow: hidden; border: 1px solid rgba(0,0,0,.25); box-shadow: 0 10px 30px -8px rgba(0,0,0,.45), inset 0 0 0 6px rgba(255,255,255,.35); opacity: 0; transform: scale(.85); transition: opacity .2s, transform .2s; background: var(--sheet); z-index: 3; }
.loupe.on { opacity: 1; transform: scale(1); }
.loupe-inner { position: absolute; top: 0; left: 0; transform-origin: 0 0; }
.viewer-tools { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; gap: 12px; flex-wrap: wrap; }
.seg { display: inline-flex; border: 1px solid var(--rule); border-radius: 999px; padding: 3px; }
.seg button { background: none; border: 0; border-radius: 999px; padding: 6px 14px; font-size: .82rem; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.hint { font-size: .8rem; color: var(--ink-3); }
.room { display: none; }
.room.on { display: block; position: absolute; inset: 0; }
.stage.room-mode { cursor: default; padding: 0; background: #e4ddcf; }
.room svg { width: 100%; height: 100%; }
.work-info h1 { font-size: clamp(3rem, 5.4vw, 5rem); line-height: .92; }
.work-info .sub { margin-top: 14px; }
.price-row { display: flex; align-items: baseline; justify-content: space-between; margin: 32px 0 20px; gap: 16px; padding-top: 20px; border-top: 1px solid var(--rule-strong); }
.price { font-family: var(--display); font-size: 2.4rem; line-height: 1; }
.desc { color: var(--ink-2); margin: 28px 0; font-size: 1.02rem; }
.edition { margin: 0 0 24px; }
.edition-head { display: flex; justify-content: space-between; margin-bottom: 10px; }
.tally { display: flex; gap: 4px; height: 34px; align-items: stretch; }
.tally i { flex: 1; max-width: 22px; background: var(--sheet); box-shadow: inset 0 0 0 1px var(--rule-strong); transform-origin: bottom; position: relative; }
.tally i::after { content: ""; position: absolute; inset: 4px 3px 9px; background: var(--ink); }
.tally i.sold { box-shadow: inset 0 0 0 1px var(--rule); background: transparent; }
.tally i.sold::after { background: var(--rule); }
.tally.anim i { animation: rise .5s var(--ease) both; }
@keyframes rise { from { transform: scaleY(0); } }
.options { display: grid; gap: 8px; margin-bottom: 20px; }
.option { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 1px solid var(--rule); border-radius: 12px; padding: 14px 16px; cursor: pointer; font-size: .92rem; transition: border-color .2s; }
.option:hover { border-color: var(--ink-3); }
.option:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.option input { accent-color: var(--red); margin: 0 10px 0 0; }
.option > span:first-child { display: flex; align-items: center; }
.buy-actions { display: grid; gap: 10px; }
.specs { margin: 36px 0 0; border-top: 1px solid var(--rule); }
.specs div { display: grid; grid-template-columns: 9.5em 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: .92rem; }
.specs dt { font-family: var(--mono); font-size: .7rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); padding-top: 3px; }
.specs dd { margin: 0; }
.specs abbr { text-decoration: underline dotted; cursor: help; }
.notes { margin-top: 28px; display: grid; gap: 14px; font-size: .88rem; color: var(--ink-2); }
.notes p { margin: 0; padding-left: 18px; position: relative; }
.notes p::before { content: ""; position: absolute; left: 0; top: .75em; width: 10px; height: 1px; background: var(--red); }
@media (max-width: 900px) {
  .work-grid { grid-template-columns: 1fr; }
  .viewer { position: relative; top: 0; }
  .stage { min-height: 0; aspect-ratio: 1 / 1.05; padding: 28px; --fit-h: calc(100vw - 2 * var(--gutter) - 72px); }
  .stage.wide { aspect-ratio: auto; }
  .loupe { display: none; }
}

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(14,13,12,.97); display: none; overflow: auto; overscroll-behavior: contain; }
.lightbox.on { display: block; }
.lightbox-inner { min-width: 100%; min-height: 100%; display: flex; align-items: center; justify-content: center; padding: 48px 16px; --fit-h: 84vh; }
.lightbox-inner > .sheet, .lightbox-inner > .canvas-work { width: min(92vw, calc(var(--fit-h) * var(--r))); }
.lightbox.zoomed .lightbox-inner > .sheet, .lightbox.zoomed .lightbox-inner > .canvas-work { width: max(240vw, 1800px); max-width: none; }
.lightbox-close { position: fixed; top: 14px; right: 14px; z-index: 2; background: var(--paper); border: 0; border-radius: 999px; padding: 9px 16px; font-size: .84rem; }
.lightbox-hint { position: fixed; bottom: 16px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.6); }

/* cart drawer */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(18,17,16,.4); z-index: 150; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(460px, 100%); z-index: 160; background: var(--paper); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .45s var(--ease); box-shadow: -20px 0 40px -20px rgba(0,0,0,.25); }
.cart-open .drawer { transform: none; }
.cart-open .drawer-backdrop { opacity: 1; visibility: visible; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 20px var(--gutter); border-bottom: 1px solid var(--rule); }
.drawer-head h2 { font-size: 2.2rem; }
.icon-btn { background: none; border: 0; padding: 8px; font-size: .86rem; text-decoration: underline; text-underline-offset: 3px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px var(--gutter); }
.drawer-foot { padding: 20px var(--gutter) 24px; border-top: 1px solid var(--rule); }
.total-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.total-row strong { font-family: var(--display); font-size: 1.9rem; font-weight: 400; }
.small { font-size: .8rem; color: var(--ink-3); margin: 0 0 16px; }
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--rule); align-items: start; }
.line-thumb { background: var(--paper-2); padding: 8px; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; --fit-h: 56px; }
.line-title { font-family: var(--display); font-size: 1.3rem; line-height: 1.1; text-decoration: none; }
.line-meta { font-size: .8rem; color: var(--ink-3); margin-top: 2px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--rule); border-radius: 999px; margin-top: 10px; }
.qty button { background: none; border: 0; width: 30px; height: 30px; }
.qty span { font-family: var(--mono); font-size: .82rem; min-width: 22px; text-align: center; }
.line-right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.line-price { font-family: var(--mono); font-size: .86rem; }
.remove { background: none; border: 0; padding: 0; font-size: .78rem; color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; }
.cart-empty { padding: 48px 0; text-align: center; color: var(--ink-3); }
.cart-empty .link-arrow { color: var(--ink); margin-top: 12px; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 300; transform: translate(-50%, 20px); opacity: 0; transition: opacity .3s, transform .3s; background: var(--ink); color: var(--paper); padding: 12px 18px; font-size: .86rem; border-radius: 999px; display: flex; gap: 16px; align-items: center; max-width: calc(100% - 32px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast button { background: none; border: 0; color: var(--paper); text-decoration: underline; text-underline-offset: 3px; padding: 0; font-size: .86rem; white-space: nowrap; }

/* buying */
.collect { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.collect > div { background: var(--paper); padding: clamp(20px, 2.4vw, 32px); }
.collect h3 { font-size: 1.9rem; margin: 18px 0 10px; }
.collect p { font-size: .92rem; color: var(--ink-2); margin: 0; }
.collect .num { font-family: var(--mono); font-size: .72rem; color: var(--red); }
@media (max-width: 900px) { .collect { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .collect { grid-template-columns: 1fr; } }

/* workshop band */
.workshop { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: end; }
.workshop h2 { font-size: clamp(3rem, 7.5vw, 7rem); line-height: .88; }
@media (max-width: 860px) { .workshop { grid-template-columns: 1fr; } }

/* process page */
.steps { counter-reset: s; display: grid; }
.step { display: grid; grid-template-columns: 80px 1fr 1.2fr; gap: clamp(16px, 4vw, 56px); padding: 36px 0; border-top: 1px solid var(--rule); align-items: start; }
.step::before { counter-increment: s; content: "0" counter(s); font-family: var(--mono); font-size: .78rem; color: var(--red); padding-top: 10px; }
.step h3 { font-size: clamp(2rem, 3.4vw, 3rem); }
.step p { color: var(--ink-2); margin: 0; }
@media (max-width: 720px) { .step { grid-template-columns: 1fr; gap: 10px; } }
.anatomy { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.anatomy-fig { position: relative; }
.anatomy-fig .pin { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: var(--red); color: var(--sheet); font: 500 .72rem/26px var(--mono); text-align: center; border: 0; padding: 0; box-shadow: 0 0 0 4px rgba(212,64,42,.22); transition: transform .2s; }
.anatomy-fig .pin:hover, .anatomy-fig .pin.on { transform: scale(1.18); }
.anatomy-list { list-style: none; margin: 0; padding: 0; counter-reset: a; }
.anatomy-list li { padding: 16px 0; border-top: 1px solid rgba(239,235,227,.14); display: grid; grid-template-columns: 34px 1fr; }
.anatomy-list li::before { counter-increment: a; content: counter(a); font-family: var(--mono); color: var(--red); font-size: .8rem; padding-top: 3px; }
.anatomy-list li.on strong { color: var(--red); }
.anatomy-list strong { font-weight: 500; display: block; }
.anatomy-list span { color: #bdb6a8; font-size: .92rem; }
@media (max-width: 860px) { .anatomy { grid-template-columns: 1fr; } }
.tech-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.tech { display: block; text-decoration: none; background: var(--paper); padding: clamp(18px, 2vw, 28px); transition: background .3s; }
.tech:hover { background: var(--sheet); }
.tech .art { background: var(--paper-2); height: 240px; display: flex; align-items: center; justify-content: center; padding: 24px; margin-bottom: 18px; --fit-h: 190px; }
.tech h3 { font-size: 2.1rem; }
.tech p { color: var(--ink-2); font-size: .94rem; margin: 8px 0 0; }
.tech .mono { display: block; margin-top: 6px; }
.glossary { margin: 0; border-top: 1px solid var(--rule); }
.glossary div { display: grid; grid-template-columns: 9.5em 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.glossary dt { font: italic 400 1.4rem/1.1 var(--display); }
.glossary dd { margin: 0; color: var(--ink-2); }

/* about / forms */
.about-side { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 40px; }
.portrait-img { width: 150px; height: 150px; object-fit: cover; border-radius: 2px; filter: saturate(.85); }
.about-work { display: grid; gap: 12px; text-decoration: none; }
.about-work:hover .sheet { transform: translateY(-4px); }
@media (max-width: 860px) { .about-side { position: static; gap: 0; } .about-work { display: none; } .portrait-img { width: 112px; height: 112px; } }
.cv { list-style: none; padding: 0; margin: 0; }
.cv li { display: grid; grid-template-columns: 5.5em 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--rule); font-size: .94rem; }
.cv li span:first-child { font-family: var(--mono); font-size: .78rem; color: var(--ink-3); padding-top: 2px; }
.form { display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.field label { display: block; font-family: var(--mono); font-size: .7rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.dark-band .field label { color: #8f887a; }
.field input, .field textarea, .field select { width: 100%; background: var(--sheet); border: 1px solid var(--rule); border-radius: 10px; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--ink); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--ink); }
.field textarea { min-height: 110px; resize: vertical; }
.checkout-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.summary { background: var(--paper-2); padding: clamp(20px, 3vw, 32px); position: sticky; top: calc(var(--header-h) + 24px); }
.summary h2 { font-size: 2.2rem; margin-bottom: 8px; }
.summary .line { grid-template-columns: 56px 1fr auto; }
.form-status { padding: 16px; border: 1px solid currentColor; border-radius: 10px; display: none; }
.form-status.on { display: block; }
@media (max-width: 900px) { .checkout-grid { grid-template-columns: 1fr; } .summary { position: static; order: -1; } }

/* footer */
.site-footer { background: var(--ink); color: var(--paper); padding: clamp(56px, 8vw, 110px) 0 28px; }
.footer-cta { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; padding-bottom: clamp(40px, 6vw, 80px); border-bottom: 1px solid rgba(239,235,227,.14); margin-bottom: 40px; }
.footer-big { font-family: var(--display); font-size: clamp(3rem, 9vw, 8.5rem); line-height: .88; letter-spacing: -.03em; margin: 0; }
.footer-big em { color: var(--red); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { font-family: var(--mono); font-weight: 400; font-size: .7rem; letter-spacing: .04em; text-transform: uppercase; color: #8f887a; margin: 0 0 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .92rem; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--red); }
.footer-grid p { color: #bdb6a8; max-width: 26em; }
.footer-bottom { display: flex; justify-content: space-between; margin-top: 56px; gap: 16px; flex-wrap: wrap; color: #8f887a; }
.site-footer .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.site-footer .btn:hover { background: var(--red); color: var(--paper); border-color: var(--red); }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.press-media img, .press-media svg { width: 100%; height: auto; }
.fan .s .img { width: 100%; min-height: 0; }
.press:not(.go) .roller { opacity: 0; }
.blockview img { mix-blend-mode: normal; }
.blockview .flip { mix-blend-mode: multiply; }
@media (max-width: 600px) { .xsec-fig .lbl { display: none; } .xsec-fig .cap { font-size: 22px; } }
