/* ==========================================================================
   AGNI KAI TATTOO — Japanese Traditional Web Experience
   ========================================================================== */

/* ---------- Fonts (self-hosted) ---------- */
@font-face { font-family: "Dela Gothic One"; font-weight: 400; font-display: swap;
  src: url("../assets/fonts/dela-gothic-one-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "Dela Gothic One"; font-weight: 400; font-display: swap;
  src: url("../assets/fonts/dela-gothic-one-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+A720-A7FF; }
@font-face { font-family: "Dela Gothic One"; font-weight: 400; font-display: swap;
  src: url("../assets/fonts/dela-gothic-one-400-kanji.woff2") format("woff2");
  unicode-range: U+3000-30FF, U+4E00-9FFF, U+FF00-FFEF; }

@font-face { font-family: "Shippori Mincho B1"; font-weight: 500; font-display: swap;
  src: url("../assets/fonts/shippori-mincho-b1-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+FEFF, U+FFFD; }
@font-face { font-family: "Shippori Mincho B1"; font-weight: 800; font-display: swap;
  src: url("../assets/fonts/shippori-mincho-b1-800-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+FEFF, U+FFFD; }
@font-face { font-family: "Shippori Mincho B1"; font-weight: 500 800; font-display: swap;
  src: url("../assets/fonts/shippori-mincho-b1-800-kanji.woff2") format("woff2");
  unicode-range: U+3000-30FF, U+4E00-9FFF, U+FF00-FFEF; }

@font-face { font-family: "Zen Kaku Gothic New"; font-weight: 400; font-display: swap;
  src: url("../assets/fonts/zen-kaku-gothic-new-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+FEFF, U+FFFD; }
@font-face { font-family: "Zen Kaku Gothic New"; font-weight: 400; font-display: swap;
  src: url("../assets/fonts/zen-kaku-gothic-new-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+1E00-1E9F, U+A720-A7FF; }
@font-face { font-family: "Zen Kaku Gothic New"; font-weight: 500; font-display: swap;
  src: url("../assets/fonts/zen-kaku-gothic-new-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+FEFF, U+FFFD; }
@font-face { font-family: "Zen Kaku Gothic New"; font-weight: 700; font-display: swap;
  src: url("../assets/fonts/zen-kaku-gothic-new-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+FEFF, U+FFFD; }

/* ---------- Tokens ---------- */
:root {
  --ink: #151515;
  --ink-2: #1e1d1b;
  --bone: #E9E1D0;
  --paper: #EFE8DA;
  --red: #B52D27;
  --red-deep: #8f221d;
  --red-on-ink: #CC3C34;         /* vermilion lifted for ink grounds: 3.3:1 large text */
  --stone: #77736B;
  --green: #344638;
  --gold: #B69A65;

  --text: var(--ink);
  --text-soft: #4a4740;          /* secondary text on bone: 7.6:1 */
  --text-on-ink: var(--bone);
  --text-on-ink-soft: #b3ab9b;   /* secondary text on ink: 8.1:1 */
  --rule: var(--ink);
  --focus: var(--red);

  --f-display: "Dela Gothic One", "Arial Black", sans-serif;
  --f-kanji: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --f-body: "Zen Kaku Gothic New", "Hiragino Sans", "Segoe UI", sans-serif;

  --rail: 4.75rem;
  --pad: clamp(1.125rem, 2.2vw, 2.25rem);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-ink: cubic-bezier(.7, 0, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 4rem; }
@media (min-width: 1100px) { html { scroll-padding-top: 0; } }
body {
  margin: 0;
  background: var(--bone);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--f-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--red);
  accent-color: var(--red);
  overflow-x: clip;
}
/* washi grain over everything */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 90;
  opacity: .22;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .08 0 0 0 0 .07 0 0 0 0 .06 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--red); color: var(--bone); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.tile--ink, .tile--red, .tile--green, .hero, .rail, .footer, .plate { --focus: var(--gold); }
html { scrollbar-color: var(--ink) var(--bone); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bone); }
::-webkit-scrollbar-thumb { background: var(--ink); border: 2px solid var(--bone); }

.sprite { position: absolute; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 200; background: var(--red); color: var(--bone); padding: .75rem 1rem; font-weight: 700; }
.skip:focus { top: 1rem; }

/* ---------- Scramble ---------- */
.scr { display: inline-grid; }
.scr > * { grid-area: 1 / 1; }
.scr__ghost { visibility: hidden; }
.scr__live { white-space: pre-wrap; }
.scr__live .g { color: var(--red); }
.hero .scr__live .g, .tile--ink .scr__live .g { color: var(--gold); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 1.25rem;
  min-height: 3.5rem; padding: .9rem 1.4rem;
  border: 0; border-radius: 0;
  font: 400 .95rem/1 var(--f-display); letter-spacing: .04em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: background-color .35s var(--ease-out), transform .35s var(--ease-out);
}
.btn--red { background: var(--red); color: var(--bone); }
.btn--red:hover { background: var(--red-deep); }
.btn--red:hover .icon { transform: translateX(4px); }
.btn .icon { transition: transform .35s var(--ease-out); }
.btn:active { transform: translateY(1px); }
.btn--block { width: 100%; justify-content: center; }
.link-arrow { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: .3rem; }
.link-arrow:hover .icon { transform: translateX(4px); }
.link-arrow .icon { transition: transform .3s var(--ease-out); }

/* ==========================================================================
   RAIL (navigation)
   ========================================================================== */
.rail {
  position: fixed; z-index: 80;
  top: 0; right: 0; bottom: 0; width: var(--rail);
  display: flex; flex-direction: column; align-items: stretch;
  background: var(--ink); color: var(--bone);
  border-left: 1px solid #2c2b28;
}
.rail__mark { display: grid; place-items: center; gap: .1rem; padding: 1.1rem 0 1rem; text-decoration: none; border-bottom: 1px solid #2c2b28; }
.rail__fire { font: 800 1.9rem/1 var(--f-kanji); color: var(--red-on-ink); }
.rail__ak { font: .8rem/1 var(--f-display); letter-spacing: .12em; }
.rail__toggle { display: none; }
.rail__nav { flex: 1; display: flex; }
.rail__nav ul { flex: 1; display: flex; flex-direction: column; }
.rail__nav li { flex: 1; display: flex; border-bottom: 1px solid #2c2b28; }
.rail__nav a {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: .75rem;
  writing-mode: vertical-rl; text-decoration: none;
  font: 700 .72rem/1 var(--f-body); letter-spacing: .22em; text-transform: uppercase;
  color: var(--text-on-ink-soft);
  transition: color .3s, background-color .3s;
}
.rail__nav a i { font: 800 1rem/1 var(--f-kanji); font-style: normal; letter-spacing: .1em; color: var(--stone); transition: color .3s; }
.rail__nav a:hover, .rail__nav a[aria-current="true"] { color: var(--bone); }
.rail__nav a:hover i, .rail__nav a[aria-current="true"] i { color: var(--red-on-ink); }
.rail__nav a[aria-current="true"] { background: #222120; }
.rail__book { flex: 1.3 !important; border-bottom: 0 !important; }
.rail__book a { background: var(--red); color: var(--bone); }
.rail__book a i { color: var(--bone); }
.rail__book a:hover { background: var(--red-deep); }
.rail__book a:hover i, .rail__book a[aria-current="true"] i { color: var(--bone); }
.rail__book a[aria-current="true"] { background: var(--red-deep); }

main, .footer { margin-right: var(--rail); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto 1fr auto;
  column-gap: 1rem;
  min-height: 100svh;
  padding: var(--pad);
  background: var(--ink); color: var(--text-on-ink);
}
.hero__strip {
  grid-column: 1 / 9; grid-row: 1;
  display: flex; flex-wrap: wrap; gap: .5rem 2.25rem;
  padding-bottom: 1rem; border-bottom: 1px solid #34322e;
  font: 700 .72rem/1.3 var(--f-body); letter-spacing: .2em; text-transform: uppercase;
  color: var(--text-on-ink-soft);
  position: relative; z-index: 4;
}
.hero__logo {
  grid-column: 1 / 10; grid-row: 2; align-self: center;
  position: relative; z-index: 4;
  font: 400 clamp(3.4rem, 10.4vw, 10.5rem)/.84 var(--f-display);
  letter-spacing: -.035em; text-transform: uppercase;
  margin: clamp(1.5rem, 4vh, 3rem) 0;
}
.hero__logo-line { display: block; }
.hero__logo-line--b { color: transparent; -webkit-text-stroke: 2px var(--bone); padding-left: .55em; }
.hero__logo-line--b .scr__live { color: transparent; }
.hero__sub {
  display: block; margin-top: 1.4rem;
  font: 700 clamp(.78rem, 1vw, .95rem)/1.2 var(--f-body); letter-spacing: .42em;
  color: var(--gold); -webkit-text-stroke: 0;
}
.hero__kanji {
  position: absolute; z-index: 1;
  right: calc(33.3% + 1rem); top: 50%; transform: translateY(-50%);
  writing-mode: vertical-rl;
  font: 800 clamp(5rem, 13vw, 13rem)/1 var(--f-kanji);
  color: transparent; -webkit-text-stroke: 1px #4a4740;
  user-select: none;
}
.hero__plate {
  grid-column: 9 / 13; grid-row: 1 / 4;
  position: relative; z-index: 2;
  margin: calc(var(--pad) * -1) calc(var(--pad) * -1) calc(var(--pad) * -1) 0;
  background: #5c5852; overflow: hidden;
}
.hero__plate img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero__plate figcaption {
  position: absolute; left: 0; bottom: 0;
  padding: .6rem .9rem; background: var(--ink);
  font: 700 .7rem/1 var(--f-body); letter-spacing: .2em; text-transform: uppercase;
}
.hero__sun {
  position: absolute; z-index: 3;
  width: clamp(9rem, 19vw, 19rem); aspect-ratio: 1; border-radius: 50%;
  background: var(--red);
  right: calc(33.3% - clamp(4.5rem, 9.5vw, 9.5rem));
  top: clamp(5rem, 15vh, 9rem);
}
.hero__koi {
  position: absolute; z-index: 3; pointer-events: none;
  height: 76%; width: auto; max-width: none;
  right: calc(33.3% - 11vw); top: 1%;
}
.hero__copy {
  grid-column: 1 / 9; grid-row: 3;
  position: relative; z-index: 4;
  display: grid; grid-template-columns: auto auto; justify-content: start; align-items: end; gap: 1.25rem 2.5rem;
  padding-top: 1.5rem; border-top: 1px solid #34322e;
}
.hero__headline {
  grid-column: 1 / -1;
  font: 400 clamp(1.9rem, 4.2vw, 4.4rem)/.95 var(--f-display); letter-spacing: -.02em;
}
.hero__headline em { font-style: normal; color: var(--red-on-ink); }
.hero__values { font: 500 1.05rem/1.4 var(--f-body); color: var(--text-on-ink-soft); max-width: 22rem; }
.hero__values span { display: block; margin-top: .35rem; font: 800 1rem/1.4 var(--f-kanji); letter-spacing: .25em; color: var(--gold); }

/* hero entrance (one orchestrated moment) */
.js .hero__sun { animation: sun-rise 1.6s var(--ease-out) .15s both; }
.js .hero__plate img { animation: ink-wipe 1.4s var(--ease-ink) .1s both; }
.js .hero__koi { animation: koi-in 2.4s var(--ease-out) .45s both; }
.js .hero__kanji { animation: fade-in 2s ease .8s both; }
@keyframes sun-rise { from { transform: translateY(30%) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes ink-wipe { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
@keyframes koi-in { from { transform: translate3d(-4%, 14%, 0) rotate(-4deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ==========================================================================
   SHEET (ruled masonry grid)
   ========================================================================== */
.sheet {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
  border-bottom: 1px solid var(--rule);
}
.tile { position: relative; background: var(--bone); padding: var(--pad); min-width: 0; }
.tile--ink { background: var(--ink); color: var(--text-on-ink); }
.tile--red { background: var(--red); color: var(--bone); }
.tile--green { background: var(--green); color: var(--bone); }
.tile--title h2 {
  font: 400 clamp(2.4rem, 5.4vw, 5.75rem)/.9 var(--f-display);
  letter-spacing: -.03em; text-transform: uppercase;
  text-wrap: balance;
}
.tile--title p { margin-top: 1.5rem; max-width: 34rem; color: var(--text-soft); }
.tile--ink h2 + p, .tile--ink p { color: var(--text-on-ink-soft); }

.vkanji { writing-mode: vertical-rl; font: 800 clamp(4rem, 7vw, 7.5rem)/1 var(--f-kanji); letter-spacing: .05em; }
.vkanji--stone { color: var(--stone); }

/* plate = photo tile */
.plate { padding: 0; overflow: hidden; background: var(--ink); margin: 0; }
.plate img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out), clip-path 1.2s var(--ease-ink); }
.plate:hover img { transform: scale(1.04); }
.plate figcaption {
  position: absolute; left: 0; bottom: 0; z-index: 1;
  display: flex; align-items: baseline; gap: .55rem;
  padding: .55rem .85rem .6rem;
  background: var(--ink); color: var(--bone);
  font: 800 .95rem/1 var(--f-kanji);
  transition: background-color .4s var(--ease-out), padding .4s var(--ease-out);
}
.plate figcaption b { font: 400 .85rem/1 var(--f-display); letter-spacing: .06em; text-transform: uppercase; }
.plate figcaption span { font: 700 .66rem/1 var(--f-body); letter-spacing: .18em; text-transform: uppercase; color: var(--text-on-ink-soft); }
.plate:hover figcaption { background: var(--red); padding-right: 1.4rem; }
.plate:hover figcaption span { color: var(--bone); }

/* scroll reveal: ink wipe from the top, content visible without JS */
.js [data-reveal] img { clip-path: inset(0 0 100% 0); }
.js [data-reveal].is-in img { clip-path: inset(0); }

/* ---------- THE ART ---------- */
.art { grid-auto-rows: clamp(6rem, 7.8vw, 9rem); background: #6b675f; }
.art__title  { grid-column: 1 / 6;  grid-row: 1 / 5; display: flex; flex-direction: column; justify-content: space-between; }
.art__back   { grid-column: 6 / 10; grid-row: 1 / 6; }
.art__koi    { grid-column: 10 / 13; grid-row: 1 / 4; }
.art__kanji  { grid-column: 1 / 3;  grid-row: 5 / 7; display: grid; place-items: center; overflow: hidden; }
.art__hannya { grid-column: 3 / 6;  grid-row: 5 / 8; }
.art__snake  { grid-column: 10 / 13; grid-row: 4 / 8; }
.art__tiger  { grid-column: 6 / 10; grid-row: 6 / 9; }
.art__quote  { grid-column: 1 / 3;  grid-row: 7 / 10; margin: 0; display: flex; align-items: flex-end; }
.art__peony  { grid-column: 3 / 6;  grid-row: 8 / 10; }
.art__dragon { grid-column: 6 / 10; grid-row: 9 / 12; }
.art__sleeve { grid-column: 10 / 13; grid-row: 8 / 12; }
.art__wave   { grid-column: 1 / 6;  grid-row: 10 / 12; }
.art__kanji { padding: .75rem; }
.art__kanji .vkanji { font-size: clamp(2.6rem, 4.4vw, 4.9rem); white-space: nowrap; }
.art__quote p { font: 800 clamp(1.05rem, 1.55vw, 1.5rem)/1.35 var(--f-kanji); color: var(--bone); text-wrap: balance; }
.art__quote .q { color: var(--red-on-ink); }
.art__back img { object-position: 50% 20%; }
.art__snake img, .art__sleeve img { object-position: 50% 25%; }

/* ---------- FLASH ---------- */
.flash { background-color: var(--rule); }
.flash__title { grid-column: 1 / 8; display: flex; align-items: flex-end; padding-top: clamp(3rem, 8vw, 7rem); }
.flash__intro { grid-column: 8 / 13; display: flex; align-items: flex-end; }
.flash__intro p { max-width: 30rem; color: var(--text-soft); }
.kanji-inline { display: block; margin-top: 1rem; font: 800 1.6rem/1 var(--f-kanji); letter-spacing: .3em; color: var(--red); }

.card { grid-column: span 3; grid-row: span 2; padding: 0; display: grid; grid-template-rows: subgrid; row-gap: 0; background: var(--paper); }
.card--s4 { grid-column: span 4; }
.card--s5 { grid-column: span 5; }
.card__img { position: relative; overflow: hidden; min-height: clamp(17rem, 27vw, 26rem); border-bottom: 1px solid var(--rule); background: var(--paper); }
.card__img img { position: absolute; inset: 0; }
.card__img img { width: 100%; height: 100%; object-fit: contain; padding: clamp(.75rem, 1.4vw, 1.4rem); transition: transform 1s var(--ease-out); }
.card:hover .card__img img { transform: scale(1.03) rotate(-.6deg); }
.card__body { flex: 1; display: flex; flex-direction: column; gap: .4rem; padding: 1.1rem 1.2rem 1.2rem; }
.card__meta { display: flex; justify-content: flex-start; gap: .8rem; font: 700 .72rem/1.2 var(--f-body); letter-spacing: .18em; text-transform: uppercase; color: var(--text-soft); }
.card__meta span:first-child { color: var(--red); }
.card h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; font: 400 clamp(1.2rem, 1.6vw, 1.55rem)/1.05 var(--f-display); text-transform: uppercase; letter-spacing: -.01em; }
.card h3 span { font: 800 1.5rem/1 var(--f-kanji); color: var(--red); }
.card__size { font-size: .9rem; color: var(--text-soft); margin-bottom: .75rem; }
.card__cta {
  margin-top: auto; align-self: stretch;
  display: flex; align-items: center; justify-content: space-between;
  min-height: 2.9rem; padding: .7rem .9rem;
  background: transparent; border: 1px solid var(--ink); border-radius: 0;
  font: 700 .74rem/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase;
  cursor: pointer;
  transition: background-color .3s var(--ease-out), color .3s var(--ease-out);
}
.card__cta::after { content: ""; width: 1.4rem; height: 1px; background: currentColor; transition: width .3s var(--ease-out); }
.card__cta:hover { background: var(--ink); color: var(--bone); }
.card__cta:hover::after { width: 2.2rem; background: var(--red); }

.flash__note { grid-column: span 6; grid-row: span 2; display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem; }
.flash__note p:not(.flash__note-k) { max-width: 26rem; font: 800 clamp(1.15rem, 1.7vw, 1.55rem)/1.4 var(--f-kanji); }
.flash__note-k { position: absolute; right: var(--pad); top: 50%; transform: translateY(-50%); font: 800 clamp(5rem, 9vw, 9rem)/1 var(--f-kanji); color: #48604c; }
.flash__note .link-arrow { align-self: flex-start; }

/* ---------- ARTISTS ---------- */
.artists__title { grid-column: 1 / 3; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; }
.artists__title h2 { writing-mode: vertical-rl; transform: rotate(180deg); align-self: flex-start; font-size: clamp(2.4rem, 4.6vw, 5rem); }
.artist { grid-column: span 3; padding: 0; display: flex; flex-direction: column; }
.artist:nth-of-type(1) { grid-column: span 4; }
.artist__img { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--ink); border-bottom: 1px solid var(--rule); }
.artist:nth-of-type(1) .artist__img { aspect-ratio: 5 / 5.2; }
.artist__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out), clip-path 1.2s var(--ease-ink); filter: grayscale(.35); }
.artist:hover .artist__img img { transform: scale(1.04); filter: none; }
.artist__body { flex: 1; display: flex; flex-direction: column; gap: .75rem; padding: 1.25rem var(--pad) var(--pad); }
.artist h3 { font: 400 clamp(1.4rem, 2.1vw, 2rem)/1 var(--f-display); letter-spacing: -.01em; }
.artist__role { font: 700 .72rem/1.3 var(--f-body); letter-spacing: .2em; text-transform: uppercase; color: var(--red); }
.artist__body > p:not(.artist__role) { color: var(--text-soft); font-size: .98rem; max-width: 34ch; }
.artist__links { margin-top: auto; padding-top: .75rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.artist__links a {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; padding: .55rem .85rem;
  border: 1px solid var(--ink); text-decoration: none;
  font: 700 .74rem/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase;
  transition: background-color .3s, color .3s;
}
.artist__links a:hover { background: var(--ink); color: var(--bone); }
.artist__links a.artist__ig { text-transform: none; letter-spacing: .02em; font-size: .86rem; }

/* ---------- ABOUT ---------- */
.about__photo { grid-column: 1 / 8; grid-row: 1 / 3; min-height: clamp(22rem, 40vw, 40rem); }
.about__title { grid-column: 8 / 13; grid-row: 1; }
.about__title h2 { font: 400 clamp(2.2rem, 4.3vw, 4.6rem)/.92 var(--f-display); letter-spacing: -.03em; text-wrap: balance; }
.about__title p { margin-top: 1.5rem; max-width: 34rem; }
.principle { display: flex; flex-direction: column; gap: .6rem; }
.principle--1 { grid-column: 8 / 13; grid-row: 2; }
.principle--2 { grid-column: 1 / 5; grid-row: 3; }
.principle--3 { grid-column: 5 / 9; grid-row: 3; }
.principle__k { font: 800 clamp(2.6rem, 4vw, 4rem)/1 var(--f-kanji); color: var(--red); letter-spacing: .08em; }
.principle h3 { font: 400 1.35rem/1.1 var(--f-display); text-transform: uppercase; }
.principle p { color: var(--text-soft); max-width: 36ch; }
.about__sun { grid-column: 9 / 13; grid-row: 3; display: grid; place-items: center; overflow: hidden; min-height: 14rem; }
.about__sun::before { content: ""; position: absolute; width: 70%; max-width: 15rem; aspect-ratio: 1; border-radius: 50%; background: var(--bone); }
.about__fire { position: relative; font: 800 clamp(4rem, 6vw, 6.5rem)/1 var(--f-kanji); color: var(--red); }

/* ---------- BOOK ---------- */
.book__title { grid-column: 1 / 6; display: flex; flex-direction: column; gap: 2rem; padding-top: clamp(3rem, 8vw, 7rem); }
.book__steps { counter-reset: s; display: grid; gap: 1.1rem; max-width: 28rem; }
.book__steps li { counter-increment: s; display: grid; grid-template-columns: 2.5rem 1fr; gap: .25rem; color: var(--text-soft); }
.book__steps li::before { content: counter(s); font: 400 1.3rem/1.2 var(--f-display); color: var(--red); }
.book__steps b { color: var(--ink); font-weight: 700; }
.book__kanji { margin-top: auto; font: 800 clamp(5rem, 9vw, 9.5rem)/.9 var(--f-kanji); color: transparent; -webkit-text-stroke: 1.5px var(--ink); }

.form { grid-column: 6 / 13; display: grid; gap: 1.6rem; padding: clamp(1.5rem, 3vw, 3rem); }
.form__row--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.field { display: grid; gap: .55rem; min-width: 0; border: 0; padding: 0; margin: 0; }
.field label, .field legend, .upload__label {
  font: 700 .72rem/1.2 var(--f-body); letter-spacing: .2em; text-transform: uppercase; color: var(--text-on-ink-soft); padding: 0;
}
.field legend { margin-bottom: .7rem; }
.upload__label small { letter-spacing: .05em; text-transform: none; font-weight: 400; }
.field input[type="text"], .field select, .field textarea {
  width: 100%; min-height: 3.1rem;
  padding: .7rem .1rem;
  background: transparent; color: var(--bone);
  border: 0; border-bottom: 1px solid #5a564f; border-radius: 0;
  font-size: 1.05rem;
  transition: border-color .3s;
}
.field textarea { resize: vertical; min-height: 7rem; line-height: 1.55; }
.field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23B69A65' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .2rem center; background-size: .8rem; padding-right: 1.6rem; }
.field select option { background: var(--ink); color: var(--bone); }
.field ::placeholder { color: #8f887c; }
.field input:hover, .field select:hover, .field textarea:hover { border-bottom-color: var(--stone); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-bottom: 2px solid var(--gold); }
.field [aria-invalid="true"] { border-bottom-color: #e0625a !important; }
.field__error { font-size: .86rem; color: #f08a82; }

.chips__set, .sizes__set { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips label, .sizes label { position: relative; cursor: pointer; }
.chips input, .sizes input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span, .sizes span {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; padding: .5rem .95rem;
  border: 1px solid #5a564f; color: var(--bone);
  font: 500 .95rem/1 var(--f-body);
  transition: background-color .25s, border-color .25s, color .25s;
}
.chips span i { font: 800 1rem/1 var(--f-kanji); font-style: normal; color: var(--gold); }
.chips label:hover span, .sizes label:hover span { border-color: var(--bone); }
.chips input:checked + span, .sizes input:checked + span { background: var(--red); border-color: var(--red); }
.chips input:checked + span i { color: var(--bone); }
.chips input:focus-visible + span, .sizes input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.sizes__set { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.sizes span { flex-direction: column; align-items: flex-start; gap: .35rem; width: 100%; height: 100%; padding: .8rem .9rem; font-size: .82rem; color: var(--text-on-ink-soft); }
.sizes span b { font: 400 1.3rem/1 var(--f-display); color: var(--bone); }
.sizes input:checked + span { color: var(--bone); }
.chips[aria-invalid="true"] span, .sizes[aria-invalid="true"] span { border-color: #e0625a; }

.upload__drop {
  display: flex; align-items: center; gap: .75rem; min-height: 3.4rem; padding: .8rem 1rem;
  border: 1px dashed #6a665e; cursor: pointer; position: relative;
  font-weight: 500; color: var(--bone) !important; letter-spacing: .04em !important; text-transform: none !important; font-size: .98rem !important;
  transition: border-color .25s, background-color .25s;
}
.upload__drop:hover { border-color: var(--gold); background: #1d1c1a; }
.upload__drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.upload__drop:focus-within { outline: 2px solid var(--gold); outline-offset: 2px; }
.upload__preview { display: flex; align-items: center; gap: 1rem; margin-top: .3rem; }
.upload__preview[hidden] { display: none; }
.upload__preview img { width: 4.5rem; height: 4.5rem; object-fit: cover; border: 1px solid #5a564f; }
.upload__preview figcaption { flex: 1; min-width: 0; font-size: .88rem; color: var(--text-on-ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload__clear { background: none; border: 0; color: var(--gold); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; padding: .5rem; min-height: 2.75rem; }
.upload__note { font-size: .85rem; color: var(--text-on-ink-soft); max-width: 52ch; }
.form__submit { display: grid; gap: .8rem; padding-top: .5rem; }
.form__status { min-height: 1.4em; font-size: .92rem; color: var(--text-on-ink-soft); }
.form__status a:not(.btn) { color: var(--gold); }
.form__wa { margin-top: .8rem; background: var(--gold); color: var(--ink); }
.form__wa:hover { background: var(--bone); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { position: relative; overflow: hidden; background: var(--ink); color: var(--text-on-ink); padding: clamp(3rem, 7vw, 6rem) var(--pad) var(--pad); }
.footer__logo { position: relative; z-index: 1; font: 400 clamp(3.6rem, 13.5vw, 14rem)/.82 var(--f-display); letter-spacing: -.04em; }
.footer__sun { position: absolute; right: 8%; top: clamp(2rem, 5vw, 5rem); width: clamp(8rem, 20vw, 20rem); aspect-ratio: 1; border-radius: 50%; background: var(--red); }
.footer__grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: clamp(2.5rem, 5vw, 4.5rem); background: #34322e; border: 1px solid #34322e; }
.footer__col { background: var(--ink); padding: 1.4rem 1.2rem 1.6rem; display: grid; align-content: start; gap: .9rem; }
.footer__h { font: 700 .7rem/1 var(--f-body); letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.footer__col ul { display: grid; gap: .25rem; }
.footer__col a { display: inline-flex; align-items: center; gap: .6rem; min-height: 2.5rem; text-decoration: none; }
.footer__col a:hover { color: var(--gold); }
.footer__addr { align-items: flex-start !important; }
.footer__addr .icon { margin-top: .5rem; }
.footer__hours { display: grid; gap: .45rem; }
.footer__hours div { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px dotted #3c3a36; padding-bottom: .4rem; }
.footer__hours dt { color: var(--text-on-ink-soft); }
.footer__hours dd { font-variant-numeric: tabular-nums; }
.footer__note { font-size: .86rem; color: var(--text-on-ink-soft); }
.footer__base { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; font-size: .8rem; color: var(--text-on-ink-soft); }
.footer__base span[aria-hidden] { font: 800 .9rem/1.5 var(--f-kanji); letter-spacing: .3em; color: var(--stone); }
.footer__base a { color: var(--bone); }

/* ---------- Custom cursor (pointer: fine only, native cursor stays) ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 85; pointer-events: none; width: 4.5rem; height: 4.5rem; margin: -2.25rem 0 0 -2.25rem; border-radius: 50%; background: var(--red); color: var(--bone); display: grid; place-items: center; font: 800 .9rem/1 var(--f-kanji); letter-spacing: .1em; transform: translate3d(-200px, -200px, 0) scale(0); transition: transform .45s var(--ease-out); opacity: .94; display: none; }
@media (hover: hover) and (pointer: fine) { .cursor { display: grid; } }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1099px) {
  :root { --rail: 0px; }
  main { padding-top: 3.75rem; }
  .rail {
    left: 0; bottom: auto; width: auto; height: 3.75rem;
    flex-direction: row; align-items: center; justify-content: space-between;
    border-left: 0; border-bottom: 1px solid #2c2b28;
  }
  .rail__mark { display: flex; gap: .6rem; padding: 0 1.1rem; border: 0; height: 100%; }
  .rail__fire { font-size: 1.5rem; }
  .rail__ak { font-size: .95rem; }
  .rail__toggle {
    display: inline-flex; align-items: center; gap: .9rem; height: 100%; padding: 0 1.1rem;
    background: none; border: 0; border-left: 1px solid #2c2b28; cursor: pointer;
    font: 700 .74rem/1 var(--f-body); letter-spacing: .2em; text-transform: uppercase;
  }
  .rail__toggle-bars { position: relative; width: 1.4rem; height: 2px; background: currentColor; transition: background-color .3s; }
  .rail__toggle-bars::before, .rail__toggle-bars::after { content: ""; position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; transition: transform .35s var(--ease-out); }
  .rail__toggle-bars::before { transform: translateY(-6px); }
  .rail__toggle-bars::after { transform: translateY(6px); }
  .rail__toggle[aria-expanded="true"] .rail__toggle-bars { background: transparent; }
  .rail__toggle[aria-expanded="true"] .rail__toggle-bars::before { transform: rotate(45deg); }
  .rail__toggle[aria-expanded="true"] .rail__toggle-bars::after { transform: rotate(-45deg); }
  .rail__nav {
    position: fixed; inset: 3.75rem 0 0 0; z-index: 79;
    background: var(--ink); visibility: hidden; opacity: 0;
    clip-path: inset(0 0 100% 0);
    transition: clip-path .6s var(--ease-ink), opacity .3s, visibility 0s .6s;
  }
  .rail.is-open .rail__nav { visibility: visible; opacity: 1; clip-path: inset(0); transition: clip-path .6s var(--ease-ink), opacity .2s, visibility 0s; }
  .rail__nav ul { border-top: 1px solid #2c2b28; }
  .rail__nav li { flex: 1; }
  .rail__book { flex: 1 !important; }
  .rail__nav a { writing-mode: horizontal-tb; justify-content: space-between; padding: 0 1.4rem; font: 400 clamp(1.8rem, 7vw, 3rem)/1 var(--f-display); letter-spacing: -.01em; color: var(--bone); }
  .rail__nav a i { font-size: clamp(1.4rem, 5vw, 2rem); }

  .hero { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: auto auto auto auto; min-height: auto; padding-bottom: 0; }
  .hero__strip { grid-column: 1 / -1; }
  .hero__logo { grid-column: 1 / -1; grid-row: 2; font-size: clamp(3.2rem, 15.5vw, 8.5rem); margin: 2rem 0 1.5rem; }
  .hero__plate { grid-column: 3 / -1; grid-row: 3; margin: 0 calc(var(--pad) * -1) 0 0; aspect-ratio: 4 / 5; }
  .hero__copy { grid-column: 1 / -1; grid-row: 4; border-top: 0; padding: 2rem 0 var(--pad); grid-template-columns: 1fr; }
  .hero__kanji { right: auto; left: var(--pad); top: auto; bottom: 32%; transform: none; font-size: clamp(4.5rem, 18vw, 9rem); z-index: 3; }
  .hero__sun { right: auto; left: 22%; top: auto; bottom: 46%; width: clamp(8rem, 30vw, 15rem); }
  .hero__koi { height: 37%; right: auto; left: 0; top: 30%; }

  .sheet { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .art { grid-auto-rows: clamp(5rem, 13vw, 8rem); }
  .art__title  { grid-column: 1 / 7; grid-row: 1 / 3; }
  .art__back   { grid-column: 1 / 4; grid-row: 3 / 8; }
  .art__koi    { grid-column: 4 / 7; grid-row: 3 / 6; }
  .art__kanji  { grid-column: 4 / 5; grid-row: 6 / 8; }
  .art__hannya { grid-column: 5 / 7; grid-row: 6 / 9; }
  .art__tiger  { grid-column: 1 / 5; grid-row: 8 / 11; }
  .art__quote  { grid-column: 5 / 7; grid-row: 9 / 11; }
  .art__snake  { grid-column: 1 / 3; grid-row: 11 / 15; }
  .art__peony  { grid-column: 3 / 7; grid-row: 11 / 13; }
  .art__wave   { grid-column: 3 / 7; grid-row: 13 / 15; }
  .art__dragon { grid-column: 1 / 4; grid-row: 15 / 19; }
  .art__sleeve { grid-column: 4 / 7; grid-row: 15 / 19; }
  .art__kanji .vkanji { font-size: clamp(3rem, 9vw, 6rem); }

  .flash__title, .flash__intro { grid-column: 1 / -1; }
  .flash__intro { padding-top: 1.25rem; }
  .flash__title { padding-bottom: 1rem; }
  .card, .card--s4, .card--s5 { grid-column: span 3; }
  .card__img { min-height: clamp(16rem, 44vw, 22rem); }
  .flash__note { grid-column: span 6; }

  .artists__title { grid-column: 1 / -1; flex-direction: row; align-items: center; }
  .artists__title h2 { writing-mode: horizontal-tb; transform: none; }
  .artists__title .vkanji { writing-mode: horizontal-tb; font-size: clamp(2.5rem, 8vw, 4.5rem); }
  .artist, .artist:nth-of-type(1) { grid-column: span 3; }
  .artist:nth-of-type(1) .artist__img { aspect-ratio: 4 / 5; }
  .artist:nth-of-type(3) { grid-column: 1 / -1; flex-direction: row; }
  .artist:nth-of-type(3) .artist__img { flex: 0 0 50%; border-bottom: 0; border-right: 1px solid var(--rule); }

  .about__photo { grid-column: 1 / -1; grid-row: auto; min-height: 0; aspect-ratio: 4 / 3; }
  .about__title { grid-column: 1 / -1; grid-row: auto; }
  .principle { grid-column: span 3 !important; grid-row: auto !important; }
  .about__sun { grid-column: span 3; grid-row: auto; }

  .book__title, .form { grid-column: 1 / -1; }
  .book__kanji { display: none; }

  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 699px) {
  body { font-size: 1rem; }
  .hero__strip { gap: .35rem 1.25rem; font-size: .7rem; letter-spacing: .14em; }
  .hero__strip span:last-child { display: none; }
  .hero__logo-line--b { padding-left: 0; -webkit-text-stroke-width: 1.5px; }
  .hero__sub { letter-spacing: .24em; }
  .hero__plate { grid-column: 2 / -1; }
  .hero__sun { left: 4%; bottom: 52%; }
  .hero__koi { height: 30%; left: -10%; top: 34%; }
  .hero__logo { margin: 1.25rem 0 1rem; }
  .hero__plate { aspect-ratio: 5 / 4; }
  .hero__copy { padding-top: 1.25rem; gap: 1rem; }
  .hero__kanji { display: none; }

  .sheet { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .art { grid-auto-rows: auto; grid-auto-flow: dense; }
  .art > * { grid-column: auto !important; grid-row: auto !important; }
  .art__title, .art__back, .art__tiger, .art__wave, .art__dragon, .art__peony { grid-column: 1 / -1 !important; }
  .art__peony { aspect-ratio: 4 / 3 !important; }
  .art .plate { aspect-ratio: 3 / 4; }
  .art__tiger, .art__wave { aspect-ratio: 4 / 3 !important; }
  .art__back { aspect-ratio: 4 / 5 !important; }
  .art__kanji { min-height: 12rem; }
  .art__quote { min-height: 12rem; }
  .art__quote p { font-size: 1.05rem; }
  .plate figcaption { font-size: .8rem; padding: .45rem .6rem; gap: .4rem; }
  .plate figcaption span { display: none; }

  .card, .card--s4, .card--s5 { grid-column: span 1; }
  .card__body { padding: .85rem .8rem 1rem; }
  .card__img { min-height: 11.5rem; }
  .card h3 { font-size: 1.05rem; flex-direction: column; gap: .3rem; }
  .card h3 span { font-size: 1.2rem; }
  .card__meta span:last-child { display: none; }
  .card__cta { font-size: .7rem; letter-spacing: .08em; padding: .6rem; }
  .card__cta::after { display: none; }
  .flash__note { grid-column: 1 / -1; }
  .flash__note { padding-bottom: 5.5rem; }
  .flash__note-k { top: auto; bottom: .75rem; transform: none; font-size: 4.25rem; }

  .artist, .artist:nth-of-type(1), .artist:nth-of-type(3) { grid-column: 1 / -1; flex-direction: column; }
  .artist:nth-of-type(3) .artist__img { border-right: 0; border-bottom: 1px solid var(--rule); }
  .artist__img { aspect-ratio: 5 / 4 !important; }
  .artist__img img { object-position: 50% 8%; }

  .principle, .about__sun { grid-column: 1 / -1 !important; }
  .about__sun { min-height: 10rem; }

  .form__row--2 { grid-template-columns: 1fr; }
  .sizes__set { grid-template-columns: 1fr 1fr; }

  .footer__grid { grid-template-columns: 1fr; }
  .footer__sun { right: -10%; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-reveal] img { clip-path: none; }
  .cursor { display: none !important; }
}

.footer__top { display: inline-flex; align-items: center; gap: .4rem; }
.icon--up { transform: rotate(-90deg); width: 1em; height: 1em; }
