@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
:root {
  --bg: #f7f6ee;
  --paper: #ffffff;
  --ink: #1f1f1f;
  --soft: #4a4a45;
  --dark: #1f1f1f;
  --wash: #e7d3ff; /* the one accent: status pill and record header only */
  --focus: #5b2fc7;
  --pad: 20px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body {
  margin: 0; min-height: 100dvh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.55 "Bricolage Grotesque", system-ui, sans-serif;
}
main { flex: 1; }
a { color: inherit; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.wrap { width: 100%; max-width: 70rem; margin-inline: auto; padding-inline: max(var(--pad), env(safe-area-inset-left)) max(var(--pad), env(safe-area-inset-right)); }
.skip { position: absolute; left: -999px; top: 0; background: var(--dark); color: #fff; padding: .75rem 1rem; z-index: 10; }
.skip:focus { left: 0; }

/* header */
.top { border-bottom: 2px solid var(--ink); padding-top: env(safe-area-inset-top); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .5rem; }
.brand { display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; font-size: 1.25rem; letter-spacing: -.04em; text-decoration: none; white-space: nowrap; }
.top nav ul { list-style: none; margin: 0; padding: 0 0 .25rem; display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.top nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-weight: 500; }
.top nav a:hover, .top nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 1.4rem; border-radius: 999px; background: var(--dark); color: #fff; font-weight: 600; text-decoration: none; }
.btn-nav { min-height: 44px; padding: 0 1rem; font-size: .9375rem; }
.btn-light { background: var(--bg); color: var(--ink); }
@media (max-width: 559px) { .btn-nav { display: none; } .top-row { justify-content: flex-start; } }

/* type */
h1, h2, h3 { margin: 0; line-height: 1.02; }
h1 { font-weight: 500; font-size: clamp(2rem, 7.2vw, 3.6rem); letter-spacing: -.035em; text-wrap: balance; }
h2 { font-weight: 600; font-size: clamp(1.6rem, 4.2vw, 2.6rem); letter-spacing: -.04em; }
h3 { font-weight: 700; font-size: 1.25rem; letter-spacing: -.02em; line-height: 1.15; }
.lead { font-size: clamp(1.0625rem, 2.4vw, 1.3rem); max-width: 38rem; margin: 1rem 0 1.5rem; }
p { margin: 0 0 1rem; max-width: 42rem; }
.small { font-size: .9375rem; color: var(--soft); }
.pill { display: inline-block; background: var(--wash); border: 2px solid var(--ink); border-radius: 999px; padding: .2rem .8rem; font-weight: 700; font-size: .875rem; margin-bottom: 1rem; }

/* sections */
.sec { padding-block: 3rem; }
.sec + .sec { border-top: 2px solid var(--ink); }
.sec-white { background: var(--paper); }
.hero { display: grid; gap: 2rem; padding-block: 2.5rem 3rem; align-items: center; }
.hero h1 { margin-bottom: 0; }
@media (min-width: 900px) { .hero { grid-template-columns: 1.1fr .9fr; } .hero.solo { grid-template-columns: 1fr; } }
.page-head { padding-block: 2.5rem 1.5rem; }
.page-head .lead { margin-bottom: 0; }

/* ledger rows */
.rows { list-style: none; margin: 1.5rem 0 0; padding: 0; border-top: 2px solid var(--ink); }
.rows li { display: grid; grid-template-columns: 3rem 1fr; gap: .2rem 1rem; padding: 1.1rem 0; border-bottom: 2px solid var(--ink); }
.rows .n { font-size: 2.1rem; font-weight: 300; letter-spacing: -.06em; line-height: 1; grid-row: span 2; }
.rows p { margin: 0; }
.rows a { text-decoration: none; }
.rows a:hover { text-decoration: underline; }
@media (min-width: 800px) { .rows li { grid-template-columns: 4.5rem 17rem 1fr; align-items: baseline; } .rows .n { grid-row: auto; font-size: 2.8rem; } }

/* detail blocks */
.detail { display: grid; gap: 1.5rem; padding-block: 2.25rem; border-top: 2px solid var(--ink); }
.detail:first-of-type { border-top: 0; }
.detail h2 { font-size: clamp(1.4rem, 3.4vw, 2rem); }
.detail .tag { font-weight: 700; font-size: .875rem; }
.detail ul, .plain ul { margin: 0 0 1rem; padding-left: 1.2rem; max-width: 40rem; }
.detail li, .plain li { margin-bottom: .35rem; }
.detail dt { font-weight: 700; margin-top: .8rem; }
.detail dd { margin: 0; }
@media (min-width: 900px) { .detail { grid-template-columns: 16rem 1fr; gap: 3rem; } }
.flow { list-style: none; margin: 1.5rem 0 0; padding: 0; border-top: 2px solid var(--ink); }
.flow li { padding: .9rem 0; border-bottom: 2px solid var(--ink); max-width: 44rem; }
.flow b { display: block; font-size: 1.25rem; letter-spacing: -.025em; }
.flow span { display: block; font-weight: 700; font-size: .875rem; margin-top: .2rem; }
.plain h2 { margin: 2rem 0 .6rem; font-size: clamp(1.3rem, 3vw, 1.8rem); }
.plain h2:first-child { margin-top: 0; }

/* synthetic specimens */
.spec { margin: 0 0 2rem; background: var(--paper); border: 2px solid var(--ink); border-radius: 10px; padding: 1rem 1.1rem; max-width: 40rem; font-size: .9375rem; }
.spec header { display: flex; justify-content: space-between; gap: .5rem; border-bottom: 2px solid var(--ink); padding-bottom: .5rem; font-weight: 700; }
.spec dl { display: grid; grid-template-columns: auto 1fr; gap: .15rem .8rem; margin: .6rem 0; }
.spec dt { opacity: .7; } .spec dd { margin: 0; font-weight: 600; }
.spec .scroll { overflow-x: auto; }
.spec table { width: 100%; border-collapse: collapse; margin-top: .4rem; min-width: 26rem; }
.spec th, .spec td { border: 1.5px solid var(--ink); padding: .35rem .5rem; text-align: left; vertical-align: top; }
.spec th { background: var(--wash); font-weight: 700; }
.blank { display: inline-block; min-width: 3.2rem; border-bottom: 1.5px solid var(--ink); }
.spec figcaption { margin-top: .6rem; font-weight: 700; border-top: 2px dashed var(--ink); padding-top: .5rem; }
.spec-hero { max-width: 30rem; width: 100%; margin: 0 auto; }

/* closing band, wave, footer */
.close { background: var(--dark); color: #f4f1e8; margin-top: 1rem; }
.close-row { display: grid; gap: 1rem; padding-block: 3rem; }
.close h2 { font-weight: 600; font-size: clamp(1.7rem, 4.6vw, 2.8rem); letter-spacing: -.04em; }
.close p { margin: .6rem 0 0; }
.close .btn { justify-self: start; }
@media (min-width: 900px) { .close-row { grid-template-columns: 1.4fr auto; align-items: center; } }
footer { background: var(--dark); color: #e9e6df; padding: 1.5rem 0 max(1.5rem, env(safe-area-inset-bottom)); font-size: .9375rem; }
.foot { display: grid; gap: 1rem; }
.foot p { margin: 0 0 .35rem; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot a { color: #fff; display: inline-flex; align-items: center; min-height: 44px; }
.foot a:focus-visible { outline-color: #fff; }
@media (min-width: 800px) { .foot { grid-template-columns: 1fr auto; } }

/* tap targets: whole ledger row is the link; standalone links get a 44px box */
.hero > * { min-width: 0; }
.spec-hero .blank { min-width: 1.4rem; }
.spec-hero th, .spec-hero td { padding: .35rem .4rem; }
.rows li { position: relative; }
.rows h3 a::after { content: ""; position: absolute; inset: 0; }
.tap { display: inline-flex; align-items: center; min-height: 44px; }
.scroll-hint { display: none; margin: .4rem 0 0; font-size: .8125rem; color: var(--soft); }
@media (max-width: 700px) { .scroll-hint { display: block; } .spec { font-size: .875rem; } }
.page-head .small { margin-top: .75rem; }
.scroll:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* ===== graphic layer ===== */
:root { --orange: #ff9f6b; --lav: #b88cff; }
.brand .mark { width: 30px; height: 30px; margin-right: .5rem; flex: none; }
.plate { margin: 0; background: var(--bg); border: 2px solid var(--ink); border-radius: 18px; overflow: hidden; }
.plate img { display: block; width: 100%; height: auto; }

/* hero */
.hero-band { position: relative; overflow: hidden; background: var(--bg); }
.hero-band .hero { position: relative; z-index: 1; }
.blob { position: absolute; border-radius: 50%; z-index: 0; }
.blob.b1 { width: 26rem; height: 26rem; background: var(--wash); right: -8rem; top: -9rem; animation: drift 14s ease-in-out infinite alternate; }
.blob.b2 { width: 11rem; height: 11rem; background: var(--orange); left: -4rem; bottom: -3rem; opacity: .55; animation: drift 11s ease-in-out infinite alternate-reverse; }
.plate-hero { background: #fff; box-shadow: 0 1px 0 var(--ink); transform-origin: 50% 60%; }
.float { animation: float 7s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0) rotate(-1.2deg); } 50% { transform: translateY(-10px) rotate(1.2deg); } }
@keyframes drift { to { transform: translate(24px, 18px) scale(1.06); } }
@keyframes riseIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.rise { animation: riseIn .7s cubic-bezier(.2,.7,.2,1) both; }
.r1 { animation-delay: .05s; } .r2 { animation-delay: .15s; } .r3 { animation-delay: .27s; } .r4 { animation-delay: .38s; }
.hero h1 { font-size: clamp(2.1rem, 7.6vw, 4rem); }

/* ticker */
.ticker { background: var(--dark); color: #f4f1e8; overflow: hidden; border-block: 2px solid var(--ink); }
.ticker-track { display: flex; width: max-content; animation: tick 40s linear infinite; }
.ticker ul { display: flex; list-style: none; margin: 0; padding: 0; }
.ticker li { padding: .85rem 1.1rem; font-weight: 600; font-size: 1.05rem; letter-spacing: -.01em; white-space: nowrap; }
.ticker li.dot { padding-inline: 0; color: var(--orange); }
@keyframes tick { to { transform: translateX(-50%); } }

/* offer cards */
.cards { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.card { position: relative; display: flex; flex-direction: column; gap: .5rem; background: var(--paper); border: 2px solid var(--ink); border-radius: 18px; padding: 1rem 1rem 1.25rem; transition: transform .25s cubic-bezier(.2,.7,.2,1), background .25s; }
.card .plate { background: var(--bg); margin-bottom: .5rem; }
.card .plate img { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.card .n { font-weight: 300; font-size: 2.4rem; letter-spacing: -.06em; line-height: 1; }
.card p { margin: 0; }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 18px; }
.card:hover, .card:focus-within { transform: translateY(-6px); }
.card:hover .plate img, .card:focus-within .plate img { transform: scale(1.05) rotate(-1.5deg); }
.card:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.card h3 a:focus-visible { outline: none; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } .card.c5 { grid-column: span 2; } }
@media (min-width: 960px) { .cards { grid-template-columns: repeat(6, 1fr); } .card { grid-column: span 2; } .card.c4, .card.c5 { grid-column: span 3; } .card.c4 .plate img, .card.c5 .plate img { aspect-ratio: 3/2; object-fit: contain; } }

/* steps */
.sec-wash { background: var(--wash); }
.sec-wash.sec { border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.steps { display: grid; gap: 2rem; }
.flow3 { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; counter-reset: s; }
.flow3 li { background: var(--bg); border: 2px solid var(--ink); border-radius: 18px; padding: 1.25rem; position: relative; }
.flow3 .big { display: block; font-size: 3.4rem; font-weight: 300; letter-spacing: -.07em; line-height: .9; margin-bottom: .6rem; }
.flow3 b { display: block; font-size: 1.35rem; letter-spacing: -.03em; margin-bottom: .3rem; }
.flow3 p { margin: 0 0 .6rem; }
.flow3 .tag { font-weight: 700; font-size: .875rem; }
@media (min-width: 900px) { .flow3 { grid-template-columns: repeat(3, 1fr); } .flow3 li:nth-child(2) { margin-top: 1.5rem; } .flow3 li:nth-child(3) { margin-top: 3rem; } }

/* specimen showcase + stamp */
.show { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 900px) { .show { grid-template-columns: 1fr 1fr; } }
.spec { position: relative; }
.stamp { position: absolute; right: 1rem; bottom: 5.2rem; border: 3px solid #d9480f; color: #d9480f; border-radius: 6px; padding: .1rem .6rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: 1.1rem; transform: rotate(-9deg); opacity: .85; animation: stampIn .5s .6s cubic-bezier(.2,1.4,.4,1) both; pointer-events: none; }
@keyframes stampIn { from { opacity: 0; transform: rotate(-9deg) scale(2.2); } to { opacity: .85; transform: rotate(-9deg) scale(1); } }
.plate-bench { margin-top: 1.25rem; max-width: 30rem; }

/* animated waves above the closing band */
.waves { position: relative; height: clamp(34px, 6vw, 64px); background: var(--bg); overflow: hidden; margin-top: 2rem; }
.w { position: absolute; left: 0; bottom: -1px; width: 200%; height: 100%; }
.w-back path { fill: var(--wash); }
.w-front path { fill: var(--dark); }
.w-back { animation: slide 22s linear infinite; }
.w-front { animation: slide 14s linear infinite reverse; }
@keyframes slide { to { transform: translateX(-50%); } }
.close { margin-top: 0; }

/* sub-page art */
.page-art { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 900px) { .page-art { grid-template-columns: 1.3fr .7fr; } }
.detail .plate { background: var(--wash); max-width: 15rem; margin-top: 1rem; }
.detail .plate img { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.detail:hover .plate img { transform: scale(1.05) rotate(-1.5deg); }

/* scroll-driven reveals: pure CSS, content stays visible if unsupported / no JS / reduced motion */
@supports (animation-timeline: view()) {
  .rv { animation: riseIn linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
}

/* phones: compact offer cards, art left, text right */
@media (max-width: 639px) {
  .cards { gap: .9rem; }
  .card { display: grid; grid-template-columns: 96px 1fr; column-gap: 1rem; row-gap: .15rem; align-items: start; padding: .9rem; }
  .card .plate { grid-row: 1 / span 3; margin: 0; border-radius: 12px; }
  .card .n { font-size: 1.5rem; }
  .card h3 { font-size: 1.15rem; }
}
.spec { overflow: clip; }
@keyframes stampIn { from { opacity: 0; transform: rotate(-9deg) scale(1.7); } to { opacity: .85; transform: rotate(-9deg) scale(1); } }
