/* Titan Trade — Omega design system
   Candy-bright premium collector: gallery-white floor, deep indigo ink,
   sakura / sora / gold accents, dark glass vitrines with holo rims.
   Order: fonts → tokens → base → type → layout → controls → chrome →
   vitrine & cards → sections → pages → forms → motion → responsive. */

/* ---------- fonts (self-hosted, SIL OFL — see /fonts/OFL-NOTICE.txt) ---------- */
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('/fonts/bricolage-grotesque-normal-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('/fonts/bricolage-grotesque-normal-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/fonts/instrument-sans-normal-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/fonts/instrument-sans-normal-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Sans'; font-style: italic; font-weight: 400 700; font-display: swap; src: url('/fonts/instrument-sans-italic-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- tokens ---------- */
:root {
  /* floor & ink (contrast-checked: ink-3 on floor 5.8:1) */
  --floor: #F6F5FA;
  --paper: #FFFFFF;
  --mist: #ECE9F4;
  --rule: #DCD8E8;
  --ink: #16112B;
  --ink-2: #463F5E;
  --ink-3: #625C7A;

  /* candy accents — decorative tints; *-ink variants are the text-safe ones */
  --sakura: #FF3D8A;
  --sakura-ink: #D1145F;   /* white on it 5.3:1 */
  --sakura-wash: #FFF0F6;
  --sora: #2EC5FF;
  --sora-ink: #0A6B94;
  --sora-wash: #EAF8FF;
  --gold: #C9A13B;
  --gold-hi: #E9C46A;
  --gold-wash: #F5EBCB;
  --gold-ink: #5E470C;     /* on gold-wash 7.4:1 */
  --lav: #B9A7FF;

  /* vitrine glass */
  --glass: #0C0B14;
  --glass-2: #1A1730;
  --glass-text: #B9B4CC;

  --font-display: 'Bricolage Grotesque', 'Hiragino Sans', system-ui, sans-serif;
  --font-body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --r-xl: 26px;
  --r-lg: 18px;
  --r-md: 12px;
  --r-sm: 6px;
  --r-pill: 999px;

  --wrap: 1280px;
  --gutter: clamp(18px, 4vw, 56px);
  --section: clamp(80px, 11vw, 152px);
  --header-h: 72px;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --holo: conic-gradient(from var(--holo-angle), var(--sakura), var(--gold-hi), var(--sora), var(--lav), var(--sakura));
}

@property --holo-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--floor); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
main { flex: 1; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 3px; text-decoration-color: var(--sora); }
a:hover { text-decoration-color: var(--sakura); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
p { margin: 0; }
p + p { margin-top: 1em; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--sora-ink); outline-offset: 3px; border-radius: var(--r-sm); }
::selection { background: var(--gold-hi); color: var(--ink); }
[hidden] { display: none !important; }

.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 200;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--r-md); text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* ---------- type ---------- */
h1, h2, h3, h4 {
  margin: 0; font-family: var(--font-display); font-weight: 800;
  line-height: .98; letter-spacing: -0.035em; text-wrap: balance;
  font-variation-settings: 'opsz' 96;
}
h1 { font-size: clamp(2.6rem, 7vw, 6rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); letter-spacing: -0.02em; line-height: 1.12; font-variation-settings: 'opsz' 24; }
h4 { font-size: 1.05rem; letter-spacing: -0.01em; line-height: 1.2; font-weight: 700; font-variation-settings: 'opsz' 18; }
.lede { font-size: clamp(1.08rem, 1.5vw, 1.3rem); line-height: 1.55; color: var(--ink-2); max-width: 36em; }
.muted { color: var(--ink-3); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2);
}
.eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--sakura); flex: none; }
.eyebrow.sora::before { background: var(--sora); }
.eyebrow.gold::before { background: var(--gold); }
.accent { color: var(--sakura-ink); }
.kana { font-family: 'Hiragino Sans', 'Yu Gothic', 'Noto Sans JP', sans-serif; font-weight: 700; letter-spacing: .02em; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- layout ---------- */
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section.tight { padding-block: clamp(48px, 7vw, 96px); }
.section + .section.ruled { border-top: 1px solid var(--rule); }
.section-head {
  display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 12px 28px;
  padding-bottom: 28px; margin-bottom: clamp(32px, 4vw, 52px); border-bottom: 1px solid var(--rule);
}
.section-head .idx { font-family: var(--font-display); font-weight: 600; font-size: .95rem; color: var(--ink-3); letter-spacing: 0; align-self: start; padding-top: .5em; }
.section-head .aside { justify-self: end; }
.section-head p { margin-top: 14px; color: var(--ink-2); max-width: 40em; }
.stack > * + * { margin-top: var(--stack, 18px); }

/* ---------- controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 14px 26px; border-radius: var(--r-pill); border: 0;
  background: var(--sakura-ink); color: #fff; font-weight: 600; font-size: 1rem; line-height: 1;
  text-decoration: none; white-space: nowrap;
  box-shadow: 0 10px 24px -14px rgba(209, 20, 95, .9);
  transition: transform .35s var(--ease-spring), background .2s ease, box-shadow .3s ease, color .2s ease;
}
.btn:hover { background: var(--ink); transform: translateY(-2px); box-shadow: 0 16px 30px -16px rgba(22, 17, 43, .8); }
.btn:active { transform: translateY(0) scale(.98); }
.btn.ink { background: var(--ink); box-shadow: 0 10px 24px -14px rgba(22, 17, 43, .8); }
.btn.ink:hover { background: var(--sakura-ink); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn.lg { min-height: 56px; padding: 18px 32px; font-size: 1.05rem; }
.btn.sm { min-height: 44px; padding: 10px 18px; font-size: .92rem; }
.btn.block { width: 100%; }
.btn[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--gold); }
.btn[aria-pressed="true"]:hover { box-shadow: inset 0 0 0 1.5px var(--sakura-ink); color: var(--sakura-ink); }
.btn svg { width: 18px; height: 18px; flex: none; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-weight: 600; text-decoration: none; color: var(--ink);
}
.link-arrow span { text-decoration: underline; text-decoration-color: var(--sora); text-decoration-thickness: 2px; text-underline-offset: 5px; transition: text-decoration-color .2s; }
.link-arrow:hover span { text-decoration-color: var(--sakura); }
.link-arrow::after { content: '→'; transition: transform .3s var(--ease-out); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60; background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.site-header::after { /* thin candy rule — the one place the full accent run appears */
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, var(--sakura) 0 33.3%, var(--gold-hi) 33.3% 66.6%, var(--sora) 66.6%);
  transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out);
}
.site-header.scrolled::after { transform: scaleX(1); }
.site-header .bar { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-height: 44px; }
.brand .mark {
  width: 38px; height: 38px; border-radius: 11px; background: var(--ink); color: #fff; position: relative; overflow: hidden;
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem;
}
.brand .mark::after { content: ''; position: absolute; right: -40%; bottom: -50%; width: 110%; height: 80%; background: var(--sakura); border-radius: 50%; transform: rotate(-12deg); }
.brand .mark span { position: relative; z-index: 1; }
.brand .name { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; line-height: 1; }
.brand .name small { display: block; font-family: var(--font-body); font-weight: 600; font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); margin-top: 4px; }
.site-nav { display: flex; gap: 2px; margin-left: auto; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: var(--r-pill);
  text-decoration: none; font-weight: 500; color: var(--ink-2); transition: background .2s, color .2s;
}
.site-nav a:hover { background: var(--mist); color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--sakura); border-radius: 0; }
.inq-link {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 8px 0 16px;
  border-radius: var(--r-pill); border: 1.5px solid var(--rule); background: var(--paper);
  text-decoration: none; font-weight: 600; transition: border-color .2s, transform .3s var(--ease-spring);
}
.inq-link:hover { border-color: var(--ink); transform: translateY(-1px); }
.inq-link .count {
  min-width: 30px; height: 30px; padding: 0 8px; border-radius: var(--r-pill); display: grid; place-items: center;
  background: var(--mist); color: var(--ink); font-size: .85rem; font-variant-numeric: tabular-nums;
}
.inq-link.has-items .count { background: var(--sakura-ink); color: #fff; }
.inq-link.bump .count { animation: bump .5s var(--ease-spring); }
.nav-toggle {
  display: none; width: 48px; height: 48px; border-radius: 14px; border: 1.5px solid var(--rule); background: var(--paper);
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s ease, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile overlay nav */
.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 55; background: var(--paper);
  padding: 24px var(--gutter) 40px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px;
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s ease, transform .35s var(--ease-out), visibility 0s linear .35s;
}
.mobile-nav.open { opacity: 1; visibility: visible; transform: none; transition: opacity .25s ease, transform .35s var(--ease-out), visibility 0s; }
.mobile-nav a.primary {
  display: flex; justify-content: space-between; align-items: center; min-height: 60px; padding: 8px 4px;
  border-bottom: 1px solid var(--rule); text-decoration: none;
  font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; letter-spacing: -0.03em;
}
.mobile-nav a.primary::after { content: '→'; font-family: var(--font-body); font-weight: 400; font-size: 1.2rem; color: var(--ink-3); }
.mobile-nav a.primary[aria-current="page"] { color: var(--sakura-ink); }
.mobile-nav .meta { margin-top: auto; padding-top: 28px; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.mobile-nav .meta a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); }
body.nav-open { overflow: hidden; }

/* ---------- vitrine (signature element) ---------- */
.vitrine { position: relative; border-radius: var(--r-lg); isolation: isolate; }
.vitrine .glass {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: inherit;
  background: radial-gradient(120% 70% at 50% 100%, var(--glass-2) 0%, var(--glass) 62%);
}
.vitrine .glass img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; /* never crop the sculpt */
  transition: transform .9s var(--ease-out), opacity .4s ease;
}
.vitrine .glass::after { /* glass sheen + plinth line */
  content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(160deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, .04) 26%, transparent 42%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), inset 0 -1px 0 rgba(233, 196, 106, .35);
}
.vitrine::before, .vitrine::after {
  content: ''; position: absolute; inset: -2px; border-radius: calc(var(--r-lg) + 2px); background: var(--holo);
  opacity: 0; transition: opacity .45s ease; pointer-events: none;
}
.vitrine::before { z-index: -1; }
.vitrine::after { z-index: -2; filter: blur(22px); }
.vitrine.xl { border-radius: var(--r-xl); }
.vitrine.xl::before, .vitrine.xl::after { border-radius: calc(var(--r-xl) + 2px); }
.vitrine.lit::before, .card:hover .vitrine::before, .card:focus-within .vitrine::before { opacity: 1; animation: holo-spin 7s linear infinite; }
.vitrine.lit::after, .card:hover .vitrine::after { opacity: .35; animation: holo-spin 7s linear infinite; }
.card:hover .vitrine .glass img { transform: scale(1.035); }
@keyframes holo-spin { to { --holo-angle: 360deg; } }

/* no official photograph on file — honest, designed empty state */
.vitrine .pending {
  position: absolute; inset: 0; display: grid; place-content: center; gap: 12px; text-align: center; padding: 24px;
  color: var(--glass-text);
}
.vitrine .pending .monogram {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(2.6rem, 6vw, 4.2rem); line-height: 1;
  letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 1.5px var(--gold-hi);
}
.vitrine .pending p { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; max-width: 22ch; margin-inline: auto; }

/* gold collector plaque */
.plaque {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 12px 7px 10px; border-radius: var(--r-sm);
  background: var(--gold-wash); color: var(--gold-ink);
  box-shadow: inset 0 0 0 1px rgba(201, 161, 59, .55), 0 1px 0 rgba(255, 255, 255, .8) inset;
  font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; line-height: 1.2;
}
.plaque::before { content: ''; width: 6px; height: 6px; transform: rotate(45deg); background: var(--gold); flex: none; }
.plaque.on-glass { background: rgba(12, 11, 20, .72); color: var(--gold-hi); box-shadow: inset 0 0 0 1px rgba(233, 196, 106, .5); }
.plaque.on-glass::before { background: var(--gold-hi); }

/* ---------- product cards ---------- */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 264px), 1fr)); gap: clamp(28px, 3vw, 44px) clamp(18px, 2.4vw, 32px); }
.grid-cards.cols-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.card { position: relative; display: flex; flex-direction: column; gap: 16px; }
.card .vitrine .corner { position: absolute; left: 12px; top: 12px; z-index: 2; }
.card .body { display: flex; flex-direction: column; gap: 6px; padding-inline: 2px; }
.card .studio { font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: var(--r-lg); } /* whole card clickable */
.card h3 a:focus-visible { outline: none; }
.card h3 a:focus-visible::after { outline: 3px solid var(--sora-ink); outline-offset: 4px; }
.card .facts { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .9rem; color: var(--ink-2); }
.card .facts span + span::before { content: '·'; margin-right: 12px; color: var(--ink-3); }
.card .actions { position: relative; z-index: 2; display: flex; gap: 8px; margin-top: 6px; }
.card .actions .btn { flex: 1; }
.card-skeleton .glass { background: var(--mist); }
.card-skeleton .line { height: 14px; border-radius: 4px; background: var(--mist); }
.card-skeleton .line.w60 { width: 60%; }
.card-skeleton .line.w40 { width: 40%; }

.empty-state {
  padding: clamp(40px, 6vw, 72px); border: 1.5px dashed var(--rule); border-radius: var(--r-xl); text-align: center;
  display: grid; justify-items: center; gap: 16px; background: var(--paper);
}
.empty-state .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- home: hero ---------- */
.hero { padding-block: clamp(40px, 7vw, 96px) clamp(64px, 9vw, 128px); }
.hero .grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero h1 .line { display: block; }
.hero h1 em { font-style: normal; color: var(--sakura-ink); }
.hero .lede { margin-top: 28px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero .ledger { /* collector ledger: real counts from the API */
  display: flex; flex-wrap: wrap; gap: 0; margin-top: 52px; border-top: 1px solid var(--rule);
}
.hero .ledger div { padding: 18px 28px 0 0; margin-right: 28px; border-right: 1px solid var(--rule); }
.hero .ledger div:last-child { border-right: 0; margin-right: 0; }
.hero .ledger dt { font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.hero .ledger dd { margin: 4px 0 0; font-family: var(--font-display); font-weight: 800; font-size: 2rem; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.hero .stage { position: relative; }
.hero .stage .kana-bg {
  position: absolute; right: -2%; top: -6%; z-index: -1; writing-mode: vertical-rl;
  font-size: clamp(3.5rem, 8vw, 7rem); line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--rule); user-select: none;
}
.hero .stage .vitrine .glass { aspect-ratio: 4 / 5; }
.hero .stage figcaption { margin-top: 18px; display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.hero .stage figcaption a { font-weight: 600; text-decoration: none; }
.hero .stage figcaption a:hover { text-decoration: underline; }
.hero .stage .plaque { position: absolute; left: 16px; bottom: 16px; z-index: 2; }

/* marquee strip of studio names */
.strip { border-block: 1px solid var(--rule); background: var(--paper); overflow: hidden; }
.strip ul { display: flex; gap: 48px; width: max-content; padding: 18px 0; list-style: none; animation: marquee 40s linear infinite; }
.strip li { display: inline-flex; align-items: center; gap: 48px; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; white-space: nowrap; }
.strip li::after { content: '✦'; color: var(--gold); font-size: .9rem; }
.strip:hover ul { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* studio index (editorial list, not cards) */
.studio-index { list-style: none; border-top: 1px solid var(--ink); }
.studio-index li { border-bottom: 1px solid var(--rule); }
.studio-index a {
  display: grid; grid-template-columns: 3.5rem 1fr auto auto; align-items: center; gap: 20px;
  min-height: 88px; padding: 18px 4px; text-decoration: none; position: relative; transition: padding .35s var(--ease-out), background .3s;
}
.studio-index a:hover { padding-inline: 18px; background: var(--paper); }
.studio-index .no { font-family: var(--font-display); font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.studio-index .nm { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 3.2vw, 2.6rem); letter-spacing: -0.035em; line-height: 1; }
.studio-index .ds { color: var(--ink-2); font-size: .95rem; max-width: 34ch; }
.studio-index .ct { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.studio-index .ct::after { content: ' →'; color: var(--sakura-ink); }

/* showroom teaser / split */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 6vw, 96px); align-items: center; }
.room-plan { /* architectural drawing of a gallery room — pure CSS, decorative */
  position: relative; aspect-ratio: 5 / 4; border-radius: var(--r-xl); background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--rule);
  background-image:
    linear-gradient(var(--mist) 1px, transparent 1px),
    linear-gradient(90deg, var(--mist) 1px, transparent 1px);
  background-size: 32px 32px; background-position: -1px -1px; overflow: hidden;
}
.room-plan .wall { position: absolute; inset: 12% 10%; border: 3px solid var(--ink); border-radius: 4px; }
.room-plan .case { position: absolute; width: 16%; aspect-ratio: 1; border-radius: 6px; background: var(--glass); box-shadow: 0 0 0 3px var(--paper), 0 0 0 4.5px var(--gold); }
.room-plan .case.s { background: var(--sakura); box-shadow: 0 0 0 3px var(--paper), 0 0 0 4.5px var(--sakura-ink); }
.room-plan .case.c { background: var(--sora); box-shadow: 0 0 0 3px var(--paper), 0 0 0 4.5px var(--sora-ink); }
.room-plan .door { position: absolute; bottom: calc(12% - 2px); left: 44%; width: 12%; height: 5px; background: var(--paper); }
.room-plan .label { position: absolute; left: 10%; bottom: 4%; font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }

/* steps (inquiry explainer) */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); counter-reset: step; }
.steps li { padding: 28px 28px 0 0; counter-increment: step; }
.steps li + li { padding-left: 28px; border-left: 1px solid var(--rule); }
.steps li::before {
  content: counter(step, decimal-leading-zero); display: block; margin-bottom: 18px;
  font-family: var(--font-display); font-weight: 800; font-size: 3rem; line-height: 1; letter-spacing: -0.04em;
  color: transparent; -webkit-text-stroke: 1.5px var(--ink);
}
.steps li:nth-child(1)::before { -webkit-text-stroke-color: var(--sakura-ink); }
.steps li:nth-child(2)::before { -webkit-text-stroke-color: var(--gold); }
.steps li:nth-child(3)::before { -webkit-text-stroke-color: var(--sora-ink); }
.steps p { margin-top: 10px; color: var(--ink-2); }

.band { background: var(--ink); color: #fff; border-radius: var(--r-xl); padding: clamp(36px, 6vw, 80px); display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; position: relative; overflow: hidden; }
.band::after { content: ''; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: var(--sakura); opacity: .9; }
.band > * { position: relative; z-index: 1; }
.band .lede { color: #D9D5E7; }
.band .btn { background: var(--paper); color: var(--ink); }
.band .btn:hover { background: var(--gold-hi); }

/* ---------- page headers ---------- */
.page-head { padding-block: clamp(40px, 6vw, 88px) clamp(28px, 4vw, 48px); }
.page-head h1 { font-size: clamp(2.4rem, 6vw, 5rem); margin-top: 16px; }
.page-head .lede { margin-top: 20px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: .9rem; color: var(--ink-3); }
.breadcrumb li + li::before { content: '/'; margin-right: 10px; color: var(--rule); }
.breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); }
.breadcrumb [aria-current] { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- collection toolbar ---------- */
.toolbar { display: grid; gap: 18px; padding: 22px; border-radius: var(--r-xl); background: var(--paper); box-shadow: inset 0 0 0 1px var(--rule); margin-bottom: 36px; }
.toolbar .row { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }
.toolbar .search { flex: 1 1 280px; position: relative; }
.toolbar .search input { padding-left: 46px; }
.toolbar .search svg { position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.toolbar .selects { display: flex; flex-wrap: wrap; gap: 12px; }
.toolbar .selects label { display: grid; gap: 4px; font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: var(--r-pill);
  border: 1.5px solid var(--rule); background: var(--paper); font-weight: 500; font-size: .95rem; transition: border-color .2s, background .2s, color .2s;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip .n { font-variant-numeric: tabular-nums; font-size: .82rem; color: var(--ink-3); }
.chip[aria-pressed="true"] .n { color: var(--gold-hi); }
.results-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 28px; }
.results-bar .count { font-weight: 600; }
.btn-text { background: none; border: 0; padding: 0 4px; min-height: 44px; font-weight: 600; text-decoration: underline; text-decoration-color: var(--sora); text-underline-offset: 4px; }
.btn-text:hover { text-decoration-color: var(--sakura); }

/* ---------- product dossier ---------- */
.dossier { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 80px); align-items: start; padding-bottom: var(--section); }
.gallery { position: sticky; top: calc(var(--header-h) + 24px); }
.gallery .vitrine .glass { aspect-ratio: 1 / 1; }
.gallery .thumbs { display: flex; gap: 12px; margin-top: 16px; list-style: none; flex-wrap: wrap; }
.gallery .thumbs button {
  width: 84px; height: 84px; padding: 0; border: 0; border-radius: var(--r-md); overflow: hidden; background: var(--glass);
  box-shadow: 0 0 0 1.5px var(--rule); transition: box-shadow .2s, transform .3s var(--ease-spring);
}
.gallery .thumbs button img { width: 100%; height: 100%; object-fit: contain; }
.gallery .thumbs button:hover { transform: translateY(-2px); }
.gallery .thumbs button[aria-current="true"] { box-shadow: 0 0 0 2.5px var(--sakura-ink); }
.gallery .counter { position: absolute; right: 14px; top: 14px; z-index: 2; color: var(--glass-text); font-size: .8rem; letter-spacing: .1em; font-variant-numeric: tabular-nums; }
.info > .eyebrow { min-height: 44px; text-decoration: none; }
.info > .eyebrow:hover { color: var(--sakura-ink); }
.info h1 { font-size: clamp(2rem, 4.2vw, 3.5rem); margin-top: 14px; }
.info .alt-name { margin-top: 12px; color: var(--ink-2); font-style: italic; }
.info .status { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 24px; }
.avail { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .95rem; }
.avail::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: #1E9E63; box-shadow: 0 0 0 4px rgba(30, 158, 99, .15); }
.avail.out::before { background: var(--ink-3); box-shadow: 0 0 0 4px var(--mist); }
.info .cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 28px; }
.info .cta-note { margin-top: 12px; font-size: .9rem; color: var(--ink-3); }
.info .desc { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--rule); color: var(--ink-2); }
.edition-plaque {
  margin-top: 32px; padding: 20px 22px; border-radius: var(--r-md); background: var(--gold-wash); color: var(--gold-ink);
  box-shadow: inset 0 0 0 1px rgba(201, 161, 59, .6), inset 0 0 0 5px var(--gold-wash), inset 0 0 0 6px rgba(201, 161, 59, .35);
}
.edition-plaque .lbl { font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.edition-plaque .val { margin-top: 6px; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; line-height: 1.3; color: var(--ink); }
.specs { margin: 32px 0 0; display: grid; grid-template-columns: minmax(110px, 30%) 1fr; border-top: 1px solid var(--ink); }
.specs dt, .specs dd { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.specs dt { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); padding-top: 17px; padding-right: 16px; }
.specs dd { font-size: .98rem; }
.source { margin-top: 28px; display: grid; gap: 6px; font-size: .92rem; color: var(--ink-3); }
.source a { color: var(--ink); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }

/* ---------- forms ---------- */
.form { display: grid; gap: 20px; }
.form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label, .field legend { font-weight: 600; font-size: .95rem; }
.field .hint { font-size: .88rem; color: var(--ink-3); }
.field .opt { font-weight: 400; color: var(--ink-3); }
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], select, textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: var(--r-md);
  border: 1.5px solid var(--rule); background: var(--paper); color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
select { appearance: none; padding-right: 42px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2316112B' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
input:hover, select:hover, textarea:hover { border-color: var(--ink-3); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--sora-ink); box-shadow: 0 0 0 4px rgba(46, 197, 255, .3); }
.field[data-invalid] input, .field[data-invalid] textarea, .field[data-invalid] select { border-color: var(--sakura-ink); }
.field .error { color: var(--sakura-ink); font-size: .9rem; font-weight: 600; }
.check { display: flex; gap: 12px; align-items: flex-start; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--sakura-ink); flex: none; }
.form-panel { padding: clamp(24px, 4vw, 44px); background: var(--paper); border-radius: var(--r-xl); box-shadow: inset 0 0 0 1px var(--rule); }
.notice {
  padding: 22px 24px; border-radius: var(--r-lg); background: var(--sora-wash); box-shadow: inset 0 0 0 1px rgba(10, 107, 148, .25);
  display: grid; gap: 12px;
}
.notice.success { background: #EAF7F0; box-shadow: inset 0 0 0 1px rgba(30, 158, 99, .35); }
.notice.warn { background: var(--sakura-wash); box-shadow: inset 0 0 0 1px rgba(209, 20, 95, .3); }
.notice h2, .notice h3 { font-size: 1.3rem; }
.notice .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.notice pre { margin: 0; white-space: pre-wrap; font: inherit; font-size: .9rem; background: var(--paper); padding: 14px; border-radius: var(--r-md); max-height: 260px; overflow: auto; box-shadow: inset 0 0 0 1px var(--rule); }

/* ---------- inquiry list ---------- */
.inq-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 4vw, 64px); align-items: start; padding-bottom: var(--section); }
.inq-list { list-style: none; border-top: 1px solid var(--ink); }
.inq-item { display: grid; grid-template-columns: 96px 1fr auto; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.inq-item .thumb { width: 96px; aspect-ratio: 4 / 5; border-radius: var(--r-md); overflow: hidden; background: var(--glass); position: relative; }
.inq-item .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.inq-item .thumb .pending-mini { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; color: transparent; -webkit-text-stroke: 1px var(--gold-hi); font-size: 1.6rem; }
.inq-item .studio { font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.inq-item h3 { font-size: 1.1rem; margin-top: 4px; }
.inq-item h3 a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.inq-item h3 a:hover { text-decoration: underline; }
.inq-item .ref { font-size: .85rem; color: var(--ink-3); margin-top: 4px; }
.inq-item .gone { color: var(--sakura-ink); font-size: .88rem; font-weight: 600; margin-top: 4px; }
.remove-btn { min-width: 44px; min-height: 44px; border-radius: var(--r-pill); border: 1.5px solid var(--rule); background: var(--paper); padding: 0 14px; font-weight: 600; font-size: .9rem; }
.remove-btn:hover { border-color: var(--sakura-ink); color: var(--sakura-ink); }
.sticky-aside { position: sticky; top: calc(var(--header-h) + 24px); }

/* ---------- prose (legal pages) ---------- */
.prose { max-width: 70ch; padding-bottom: var(--section); }
.prose h1 { display: none; } /* page title is rendered in the page head */
.prose h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: 2em 0 .6em; letter-spacing: -0.025em; line-height: 1.1; }
.prose h3 { margin: 1.6em 0 .5em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1em; color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose strong { color: var(--ink); }

/* ---------- about / showroom ---------- */
.columns-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 80px); }
.principles { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--ink); }
.principles li { display: grid; grid-template-columns: 3rem 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.principles li > span { font-family: var(--font-display); font-weight: 700; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.principles h3 { font-size: 1.2rem; }
.principles p { margin-top: 6px; color: var(--ink-2); }

/* ---------- 404 ---------- */
.lost { text-align: left; }
.lost .code { font-family: var(--font-display); font-weight: 800; font-size: clamp(6rem, 22vw, 15rem); line-height: .85; letter-spacing: -0.06em; color: transparent; -webkit-text-stroke: 2px var(--ink); }
.lost .code span { -webkit-text-stroke-color: var(--sakura-ink); }
.lost nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }

/* ---------- footer ---------- */
.site-footer { margin-top: auto; background: var(--paper); border-top: 1px solid var(--rule); padding-block: clamp(56px, 7vw, 96px) 32px; }
.site-footer .top { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 40px; }
.site-footer .note { margin-top: 18px; color: var(--ink-2); max-width: 32ch; }
.site-footer h2 { font-family: var(--font-body); font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.site-footer ul { list-style: none; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; color: var(--ink); }
.site-footer li a:hover { text-decoration: underline; }
.site-footer .bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .9rem; color: var(--ink-3); }
.site-footer .bottom a { color: var(--ink-2); display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 90; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: #fff; padding: 14px 18px 14px 20px; border-radius: var(--r-pill);
  display: flex; align-items: center; gap: 14px; box-shadow: 0 20px 40px -18px rgba(22, 17, 43, .8);
  transition: opacity .3s ease, transform .4s var(--ease-spring); max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: var(--gold-hi); font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- motion ---------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0s); }
[data-reveal].in { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }
.hero h1 .line { clip-path: inset(0 0 100% 0); transform: translateY(.3em); animation: rise .9s var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * .12s + .1s); }
.hero .stage .vitrine { animation: curtain 1.2s var(--ease-out) .35s both; }
@keyframes rise { to { clip-path: inset(0 0 -10% 0); transform: none; } }
@keyframes curtain { from { clip-path: inset(100% 0 0 0 round var(--r-xl)); } to { clip-path: inset(0 0 0 0 round var(--r-xl)); } }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
@keyframes shimmer { to { background-position: -200% 0; } }
.card-skeleton .glass, .card-skeleton .line { background: linear-gradient(90deg, var(--mist) 0%, var(--paper) 50%, var(--mist) 100%); background-size: 200% 100%; animation: shimmer 1.6s linear infinite; }
.gallery .glass img.swap { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .hero h1 .line { clip-path: none; transform: none; }
  .strip ul { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .vitrine.lit::before, .card:hover .vitrine::before { animation: none; }
  .card:hover .vitrine .glass img { transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .site-footer .top { grid-template-columns: 1fr 1fr; }
  .studio-index a { grid-template-columns: 2.5rem 1fr auto; }
  .studio-index .ds { display: none; }
}
@media (max-width: 960px) {
  .site-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header .inq-link { margin-left: auto; }
  .hero .grid, .split, .dossier, .inq-layout, .columns-2 { grid-template-columns: 1fr; }
  .hero .stage { max-width: 520px; }
  .gallery, .sticky-aside { position: static; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--rule); }
  .band { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section-head { grid-template-columns: 1fr; }
  .section-head .idx { padding-top: 0; }
  .section-head .aside { justify-self: start; }
  .brand .name small { display: none; }
  .inq-link .label { display: none; }
  .inq-link { padding: 0 6px; }
  .info .cta { grid-template-columns: 1fr; }
  .form .row-2 { grid-template-columns: 1fr; }
  .inq-item { grid-template-columns: 72px 1fr; }
  .inq-item .thumb { width: 72px; }
  .inq-item .remove-btn { grid-column: 2; justify-self: start; }
  .specs { grid-template-columns: 1fr; }
  .specs dt { border-bottom: 0; padding-bottom: 0; }
  .site-footer .top { grid-template-columns: 1fr; }
  .hero .ledger div { padding-right: 18px; margin-right: 18px; }
  .gallery .thumbs button { width: 68px; height: 68px; }
}
