/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding-top: var(--header-h);
  overflow: hidden;
}

.hero-inner {
  flex: 1;
  width: 100%;
  max-width: var(--wide);
  margin: 0 auto;
  padding: clamp(1.5rem, 4vh, 3rem) var(--gutter) 1.5rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(0, 0.8fr);
  grid-template-areas: "title copy exhibit";
  align-items: center;
  gap: 2rem clamp(2rem, 5vw, 5rem);
}

.hero-title {
  grid-area: title;
  position: relative;
  margin: 0;
  align-self: stretch;
  display: flex;
  align-items: center;
}

.hero-vertical {
  display: block;
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: min(12.5vw, 23svh);
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.js .hero-vertical { animation: ink-in 1.6s var(--ease-io) both; }

.hero-seal {
  position: absolute;
  right: -1.9rem;
  bottom: 12%;
  display: grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  padding: 0.25rem;
  background: var(--cinnabar);
  color: var(--paper);
  font-family: var(--font-serif);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.1em;
  text-align: center;
  border-radius: 3px;
  box-shadow: inset 0 0 0 2px var(--cinnabar), inset 0 0 0 3px rgba(242, 237, 228, 0.55);
  transform: rotate(-4deg);
}

.js .hero-seal { animation: stamp 0.7s var(--ease) 1.25s both; }

.hero-copy { grid-area: copy; max-width: 32rem; }

.hero-en {
  margin: 0 0 2rem;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--mute);
}

.hero-en em { color: var(--cinnabar); }

.hero-statement {
  margin: 0 0 1.6rem;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.7rem, 3.1vw, 2.75rem);
  line-height: 1.5;
  letter-spacing: 0.12em;
}

.hero-lead {
  margin: 0 0 2.4rem;
  color: var(--ink-2);
  max-width: 27rem;
}

.js .hero-copy > * { animation: rise 1.1s var(--ease) both; }
.js .hero-copy > :nth-child(2) { animation-delay: 0.12s; }
.js .hero-copy > :nth-child(3) { animation-delay: 0.24s; }
.js .hero-copy > :nth-child(4) { animation-delay: 0.36s; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

.hero-exhibit {
  grid-area: exhibit;
  position: relative;
  display: block;
  justify-self: end;
  width: 100%;
  max-width: 30rem;
}

/* A pale sun disk behind the garment, like a seal-paper moon. */
.hero-exhibit::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 44%;
  width: 92%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--paper-2);
  transform: translate(-50%, -50%);
}

.js .hero-exhibit::before { animation: disk 1.6s var(--ease) 0.2s both; }
.js .hero-exhibit .exhibit-media { animation: plate-in 1.5s var(--ease-io) 0.35s both; }

.hero-meta {
  width: 100%;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 1rem var(--gutter) 1.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  color: var(--mute);
  border-top: 1px solid var(--line);
}

.hero-scroll { display: inline-flex; align-items: center; gap: 0.8rem; text-transform: uppercase; }

.hero-scroll i {
  position: relative;
  width: 3.5rem;
  height: 1px;
  background: var(--line-strong);
  overflow: hidden;
}

.hero-scroll i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--cinnabar);
  animation: scroll-line 2.4s var(--ease-io) infinite;
}

@keyframes ink-in {
  from { clip-path: inset(0 0 100% 0); opacity: 0.2; }
  to { clip-path: inset(0 0 0 0); opacity: 1; }
}

@keyframes stamp {
  0% { opacity: 0; transform: rotate(-4deg) scale(1.8); }
  70% { opacity: 1; transform: rotate(-4deg) scale(0.94); }
  100% { opacity: 1; transform: rotate(-4deg) scale(1); }
}

@keyframes disk {
  from { transform: translate(-50%, -50%) scale(0.6); opacity: 0; }
  to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

@keyframes scroll-line {
  0% { transform: translateX(-100%); }
  60%, 100% { transform: translateX(100%); }
}

/* ---------- Exhibit (garment photographed on white) ---------- */

.exhibit-media {
  display: block;
  overflow: hidden;
}

/* Product photos sit on off-white studio paper. Lifting them to white and
   multiplying the wrapper (not the img — the wrapper's clip/overflow would
   isolate it) lets the garment rest on the rice-paper ground. */
.exhibit-media,
.work-card-media { mix-blend-mode: multiply; }

.exhibit-media img {
  width: 100%;
  aspect-ratio: 620 / 670;
  object-fit: cover;
  filter: brightness(1.05) contrast(1.04);
  transition: transform 1.2s var(--ease);
}

a:hover > .exhibit-media img { transform: scale(1.04); }

.exhibit-cap {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.15rem 1rem;
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}

.exhibit-no {
  grid-row: span 2;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--cinnabar);
}

.exhibit-name {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.14em;
}

.exhibit-tags {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--mute);
}

/* ---------- Marquee ---------- */

.marquee {
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  padding: 1.15rem 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 2.4rem;
  padding-right: 2.4rem;
  animation: marquee 48s linear infinite;
}

.marquee:hover .marquee-track { animation-play-state: paused; }

.marquee span {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  letter-spacing: 0.2em;
  white-space: nowrap;
}

.marquee span:nth-of-type(3n+2) {
  font-family: var(--font-display);
  font-style: italic;
  letter-spacing: 0.06em;
  color: var(--bronze);
}

.marquee b { font-weight: 400; font-size: 0.8rem; color: var(--cinnabar); }

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- Manifesto ---------- */

.manifesto-text {
  margin: 0 0 clamp(2.5rem, 6vw, 5rem);
  max-width: 22em;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.9rem, 5vw, 4.4rem);
  line-height: 1.45;
  letter-spacing: 0.08em;
}

.manifesto-text .ch {
  color: rgba(18, 16, 14, 0.14);
  transition: color 0.4s ease;
}

.manifesto-text .ch.is-on { color: var(--ink); }
.manifesto-text .ch.is-accent.is-on { color: var(--cinnabar); }

.manifesto-foot {
  display: grid;
  grid-template-columns: minmax(0, 36rem) auto;
  justify-content: end;
  align-items: end;
  gap: 1.5rem 3rem;
  margin-left: auto;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.manifesto-foot p { margin: 0; color: var(--mute); font-size: 0.95rem; }

/* ---------- Heritage ---------- */

.heritage { padding-top: 0; }

.heritage-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  grid-template-areas:
    "copy media"
    "facts media";
  gap: 3rem clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.heritage-copy { grid-area: copy; }
.heritage-copy .display { margin-bottom: 1.8rem; }

.heritage-media { grid-area: media; margin: 0; overflow: hidden; }

.heritage-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: 50% 100%;
}

.heritage-media figcaption {
  margin-top: 0.8rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--mute);
}

.facts {
  grid-area: facts;
  align-self: end;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  border-top: 1px solid var(--line-strong);
}

.facts div { padding: 1.4rem 1rem 0 0; }

.facts dt {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 500;
  line-height: 1;
  color: var(--ink);
}

.facts sup { font-size: 0.5em; color: var(--cinnabar); }

.facts dd {
  margin: 0.6rem 0 0;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--mute);
}

/* ---------- Index lists (atelier / masters) ---------- */

.split-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem 2rem;
  flex-wrap: wrap;
}

.split-head .chapter-no { margin: 0; order: 2; }

.atelier { background: var(--paper-2); }

.index-list,
.roster {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
}

.index-row {
  position: relative;
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 1rem 2rem;
  padding: clamp(1.6rem, 3vw, 2.6rem) 0;
  border-bottom: 1px solid var(--line-strong);
  cursor: default;
}

.index-row::before,
.roster-row::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: 50% 100%;
  transition: transform 0.55s var(--ease-io);
}

.index-row > *,
.roster-row > * { position: relative; z-index: 1; transition: color 0.4s ease, transform 0.55s var(--ease); }

.index-no {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--cinnabar);
}

.index-title {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2.2rem, 5.6vw, 4.8rem);
  line-height: 1.1;
  letter-spacing: 0.14em;
}

.index-title em {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.32em;
  letter-spacing: 0.08em;
  color: var(--mute);
}

.index-body { margin: 0; max-width: 28rem; color: var(--ink-2); }

.index-thumb { display: none; }

@media (hover: hover) and (pointer: fine) {
  .index-row:hover::before,
  .roster-row:hover::before { transform: scaleY(1); }
  .index-row:hover > *,
  .roster-row:hover > * { color: var(--paper); }
  .index-row:hover .index-title { transform: translateX(1.2rem); }
  .index-row:hover .index-title em,
  .roster-row:hover .roster-role { color: var(--bronze); }
  .index-row:hover .index-no,
  .roster-row:hover .index-no { color: var(--cinnabar); }
}

.roster-row {
  position: relative;
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr) auto 2rem;
  align-items: center;
  gap: 1rem 2rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line-strong);
}

.roster-thumb { display: none; }

.roster-name {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  letter-spacing: 0.2em;
}

.roster-role {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  color: var(--mute);
}

.roster-arrow { font-family: var(--font-display); font-size: 1.3rem; }
.roster-row:hover .roster-arrow { transform: translateX(-0.6rem); }

/* ---------- Collection rail ---------- */

.rail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.rail-controls { display: flex; align-items: center; gap: 0.7rem; }

.rail-count {
  margin-right: 0.8rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  color: var(--mute);
}

.rail-count b { font-weight: 500; color: var(--ink); }

.rail-btn {
  width: 3.1rem;
  height: 3.1rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  font-family: var(--font-display);
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

.rail-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.rail-btn:disabled { opacity: 0.3; pointer-events: none; }

.rail {
  display: flex;
  gap: clamp(1rem, 2.4vw, 2rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--wide)) / 2 + var(--gutter)));
  padding: 0 max(var(--gutter), calc((100vw - var(--wide)) / 2 + var(--gutter))) 0.5rem;
  scrollbar-width: none;
  cursor: grab;
  overscroll-behavior-x: contain;
}

.rail::-webkit-scrollbar { display: none; }
.rail.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.rail.is-dragging a { pointer-events: none; }

.rail-card {
  flex: 0 0 clamp(15rem, 26vw, 22rem);
  scroll-snap-align: start;
  user-select: none;
}


.rail-more {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  aspect-ratio: 620 / 670;
  align-self: flex-start;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  letter-spacing: 0.2em;
  transition: background 0.4s ease, color 0.4s ease;
}

.rail-more em {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: var(--mute);
}

.rail-more:hover { background: var(--ink); color: var(--paper); }

.rail-progress {
  position: relative;
  height: 1px;
  margin-top: 2.4rem;
  background: var(--line);
}

.rail-progress span {
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0.15));
  transition: transform 0.2s linear;
}

/* ---------- Craft teaser ---------- */

.craft-teaser { padding-top: 0; }

.teaser-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 3rem clamp(2rem, 6vw, 6rem);
  align-items: center;
}

.teaser-copy .display { margin-bottom: 1.6rem; }
.teaser-copy .lede { margin-bottom: 2rem; }

.teaser-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.teaser-compare figure { margin: 0; overflow: hidden; }
.teaser-compare figure:last-child { margin-top: 4rem; }

.teaser-compare img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.teaser-compare figcaption {
  display: flex;
  gap: 0.7rem;
  align-items: baseline;
  margin-top: 0.7rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--mute);
}

.teaser-compare figcaption span {
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  color: var(--bronze);
}

.teaser-compare figure:last-child figcaption span { color: var(--cinnabar); }

/* ---------- Invite ---------- */

.invite {
  padding: clamp(5rem, 12vw, 9rem) var(--gutter);
  background: var(--cinnabar-deep);
  color: var(--paper);
  text-align: center;
}

.invite-inner { max-width: 44rem; margin: 0 auto; }
.invite .kicker { color: rgba(242, 237, 228, 0.6); }

.invite h2 {
  margin: 0 0 1.6rem;
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(3rem, 9vw, 7.5rem);
  line-height: 1.08;
  letter-spacing: 0.1em;
}

.invite p { margin: 0 auto 2.4rem; max-width: 30rem; color: rgba(242, 237, 228, 0.75); }
.invite .hero-actions { justify-content: center; }
.invite .btn-light::before { background: var(--ink); }
.invite .btn-light:hover { color: var(--paper); border-color: var(--ink); }

/* ---------- Shared card grid (channel & list pages) ---------- */

.lookbook-feature,
.work-card {
  display: block;
  position: relative;
  color: inherit;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem clamp(1rem, 2.4vw, 2rem);
}

.work-card-media {
  overflow: hidden;
  aspect-ratio: 620 / 670;
}

.work-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1.05) contrast(1.04);
  transition: transform 1.1s var(--ease);
}

.work-card:hover img { transform: scale(1.04); }

.work-card h3 {
  margin: 1rem 0 0.2rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-serif);
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  transition: color 0.3s ease;
}

.work-card:hover h3 { color: var(--cinnabar); }

.work-card-tags {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--mute);
}

.work-card time {
  display: block;
  color: var(--mute);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
}

.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.news-list li { border-bottom: 1px solid var(--line); }

.news-list a {
  display: grid;
  grid-template-columns: 8.5rem 1fr auto;
  gap: 1.4rem;
  padding: 1.35rem 0.1rem;
  align-items: baseline;
  transition: padding 0.35s var(--ease);
}

.news-list a:hover { padding-left: 0.7rem; }
.news-list time { font-size: 0.78rem; letter-spacing: 0.14em; color: var(--mute); }
.news-list .news-title { font-family: var(--font-serif); letter-spacing: 0.04em; }
.news-list .news-more { font-size: 0.7rem; letter-spacing: 0.2em; color: var(--cinnabar); }

@media (prefers-reduced-motion: reduce) {
  .marquee-track,
  .hero-scroll i::after { animation: none; }
  .js .hero-vertical,
  .js .hero-seal,
  .js .hero-copy > *,
  .js .hero-exhibit::before,
  .js .hero-exhibit .exhibit-media { animation: none; }
  .manifesto-text .ch { color: var(--ink); }
}

@media (max-width: 1100px) {
  .hero-inner {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "title exhibit"
      "copy copy";
    align-items: end;
  }
  .hero-vertical { font-size: min(17vw, 12rem); }
  .hero-exhibit { max-width: 24rem; }
  .hero-copy { max-width: 40rem; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .heritage-grid {
    grid-template-columns: 1fr;
    grid-template-areas: "copy" "media" "facts";
  }
  .teaser-grid { grid-template-columns: 1fr; }
  .index-row { grid-template-columns: 2.6rem 1fr; }
  .index-body { grid-column: 2; }
  .index-thumb {
    display: block;
    grid-column: 2;
    width: 100%;
    max-width: 22rem;
    aspect-ratio: 3 / 2;
    object-fit: cover;
  }
  .manifesto-foot { grid-template-columns: 1fr; justify-items: start; }
}

@media (max-width: 640px) {
  .hero-inner { gap: 1.5rem 1.2rem; padding-top: 1rem; }
  .hero-seal { right: -1.2rem; width: 2.6rem; height: 2.6rem; font-size: 0.64rem; }
  .hero-meta span:first-child { display: none; }
  .hero-meta { justify-content: flex-end; }
  .card-grid { grid-template-columns: 1fr 1fr; gap: 2rem 0.9rem; }
  .facts { grid-template-columns: 1fr; }
  .facts div { display: flex; align-items: baseline; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
  .facts dd { margin: 0; }
  .roster-row { grid-template-columns: 2.6rem 3.4rem minmax(0, 1fr); }
  .roster-thumb {
    display: block;
    width: 3.4rem;
    aspect-ratio: 3 / 4;
    object-fit: cover;
  }
  .roster-row > .index-no,
  .roster-thumb { grid-row: span 2; }
  .roster-name { align-self: end; }
  .roster-role { grid-column: 3; align-self: start; margin-top: -0.8rem; }
  .roster-arrow { display: none; }
  .rail-count { display: none; }
  .rail-card { flex-basis: 72vw; }
  .teaser-compare figure:last-child { margin-top: 2rem; }
}
