.lat {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.62em;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted);
  margin-left: 0.7em;
  vertical-align: 0.15em;
}

.flow::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: soft-light;
  opacity: 0.55;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 760' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='%23f4f1ea' stroke-width='1.2'%3E%3Cpath d='M-40 130 C150 60 300 200 660 96'/%3E%3Cpath d='M-40 240 C160 150 320 300 660 200'/%3E%3Cpath d='M-40 360 C120 270 340 430 660 320'/%3E%3Cpath d='M-40 480 C180 400 300 560 660 450'/%3E%3Cpath d='M-40 600 C140 520 360 680 660 585'/%3E%3Cpath d='M-40 705 C160 645 330 770 660 690'/%3E%3C/g%3E%3C/svg%3E");
}

.glaze--ember {
  background-color: #33232e;
  background-image:
    radial-gradient(120% 90% at calc(30% + var(--hue)) 24%, rgba(217, 79, 54, 0.5), transparent 52%),
    conic-gradient(from var(--angle) at 58% 42%, rgba(43, 76, 120, 0.4), rgba(217, 79, 54, 0.06), rgba(43, 76, 120, 0.3)),
    linear-gradient(155deg, #3a2733, #1c2436);
  background-blend-mode: screen, overlay, normal;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
}
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: clamp(0.9rem, 2vw, 1.5rem) var(--page-inline);
}
.site-header__brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-1);
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.site-header__brand span { font-weight: 300; }

.nav-desktop {
  display: flex;
  gap: clamp(1.2rem, 2.4vw, 2.8rem);
  align-items: baseline;
}
.nav-desktop a {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 0.5em;
  padding: 0.4em 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.nav-desktop a .index-tab { color: inherit; opacity: 0.55; }
.nav-desktop a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0.05em;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-1) var(--ease-out-quart);
}
.nav-desktop a:hover::after,
.nav-desktop a:focus-visible::after,
.nav-desktop a[aria-current='page']::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 46px; height: 46px;
  padding: 12px;
}
.nav-toggle__bar {
  display: block;
  width: 100%; height: 1.5px;
  background: currentColor;
  transition: transform var(--dur-1) var(--ease-out-quart), opacity var(--dur-1) var(--ease-out-quart);
}
.nav-toggle.is-active .nav-toggle__bar:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
.nav-toggle.is-active .nav-toggle__bar:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: var(--page-inline);
  background: var(--color-deep);
  color: var(--jihaku);
  transform: translateY(-100%);
  transition: transform 0.6s var(--ease-in-out-expo);
  visibility: hidden;
  pointer-events: none;
}
.nav-overlay.is-open { transform: translateY(0); visibility: visible; pointer-events: auto; }
.nav-overlay__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.nav-overlay__inner a {
  display: inline-flex;
  align-items: baseline;
  gap: 0.7em;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--step-2);
  letter-spacing: -0.01em;
}
.nav-overlay__inner a .index-tab { color: color-mix(in srgb, var(--jihaku) 55%, transparent); font-size: 0.5em; }
.nav-overlay__inner a[aria-current='page'] { color: var(--color-accent); }
.nav-overlay__foot {
  margin-top: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  color: color-mix(in srgb, var(--jihaku) 60%, transparent);
}

.works-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  overflow: hidden;
  color: var(--jihaku);
  background-color: var(--color-deep);
  padding-block: clamp(7rem, 16vh, 11rem) var(--space-5);
}
.works-hero__bg {
  position: absolute;
  inset: -12% 0;
  z-index: 0;
}
.works-hero__ghost {
  position: absolute;
  left: clamp(-0.5rem, -1vw, 0rem);
  top: 16%;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(4rem, 17vw, 15rem);
  line-height: 0.8;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  -webkit-text-stroke: 1px color-mix(in srgb, var(--jihaku) 34%, transparent);
  color: transparent;
  pointer-events: none;
}
.works-hero__vlabel {
  position: absolute;
  right: clamp(0.5rem, 1.8vw, 1.4rem);
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  color: color-mix(in srgb, var(--jihaku) 78%, transparent);
}
.works-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  align-self: flex-end;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: var(--space-2);
}
.works-hero__eyebrow { color: color-mix(in srgb, var(--jihaku) 72%, transparent); }
.works-hero__title {
  font-size: clamp(3.4rem, 15vw, 11rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
  margin-block: 0.1em 0.05em;
}
.works-hero__body {
  max-width: 46ch;
  color: color-mix(in srgb, var(--jihaku) 88%, transparent);
  font-size: var(--step-0);
}

.works-hero__marginalia { display: none; }
.works-hero__edgecap { display: none; }

.works-hero__peek {
  position: absolute;
  left: 50%;
  bottom: clamp(1.2rem, 3vh, 2.4rem);
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: color-mix(in srgb, var(--jihaku) 70%, transparent);
}
.works-hero__peek-rule {
  width: 1px; height: clamp(30px, 6vh, 60px);
  background: color-mix(in srgb, var(--jihaku) 50%, transparent);
  animation: peek-pulse 2.4s var(--ease-out-quart) infinite;
  transform-origin: top;
}
@keyframes peek-pulse {
  0%, 100% { transform: scaleY(0.4); opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

.silence--tight { min-height: 22vh; }

.series__head { align-items: end; margin-bottom: var(--space-4); }
.series__head-l { grid-column: 1 / 7; display: flex; flex-direction: column; gap: var(--space-1); }
.series__head-r { grid-column: 8 / 13; align-self: end; color: var(--color-muted); max-width: 44ch; }

.series__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: var(--space-5);
}
.series-card { position: relative; }
.series-card:nth-child(1) { grid-column: 1 / 8; }
.series-card:nth-child(2) { grid-column: 8 / 13; margin-top: var(--space-6); }
.series-card:nth-child(3) { grid-column: 1 / 6; }
.series-card:nth-child(4) { grid-column: 6 / 13; margin-top: var(--space-5); }

.series-card__face {
  position: relative;
  display: block;
  width: 100%;
  border-radius: 2px;
  color: var(--jihaku);
  aspect-ratio: 4 / 5;
  transition: transform var(--dur-2) var(--ease-out-quart);
}
.series-card:nth-child(1) .series-card__face { aspect-ratio: 16 / 11; }
.series-card:nth-child(4) .series-card__face { aspect-ratio: 16 / 10; }
.series-card__face.glaze--ash { color: var(--color-fg); }
.series-card__face:hover { transform: translateY(-4px); }
.series-card__no {
  position: absolute;
  z-index: 2;
  left: 0.28em; top: 0.02em;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--step-4);
  line-height: 0.8;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: color-mix(in srgb, currentColor 88%, transparent);
}
.series-card__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2);
  flex-wrap: wrap;
  padding-top: var(--space-2);
  margin-top: var(--space-2);
  border-top: 1px solid var(--color-hairline);
}
.series-card__title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--step-1);
  letter-spacing: 0.02em;
}
.series-card__lat {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.5em;
  letter-spacing: 0.14em;
  color: var(--color-muted);
  margin-left: 0.7em;
  vertical-align: 0.2em;
}
.series-card__desc { color: var(--color-muted); font-size: var(--step--1); max-width: 30ch; }
.series-card__year {
  position: absolute;
  right: 0.5em; bottom: 0.7em;
  z-index: 2;
  color: color-mix(in srgb, var(--jihaku) 82%, transparent);
}
.series-card:nth-child(3) .series-card__year { color: color-mix(in srgb, var(--color-fg) 60%, transparent); }

.series-story { position: relative; padding-block: var(--space-4); }
.series-story__head {
  position: relative;
  z-index: 4;
  max-width: 60ch;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}
.series-story__vlabel {
  position: absolute;
  right: clamp(0.5rem, 2vw, 2rem);
  top: 0;
  color: var(--color-muted);
}
.series-story h2 { font-size: var(--step-3); }
.series-story__lat {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 0.42em;
  letter-spacing: 0.16em;
  color: var(--color-muted);
  margin-left: 0.8em;
  vertical-align: 0.3em;
}
.series-story__hint { color: var(--color-accent); }

.series-story__track {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.frame {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  color: var(--jihaku);
  width: 100%;
  aspect-ratio: 3 / 2;
}
.frame.glaze--ash { color: var(--color-fg); }
.frame__cap {
  position: absolute;
  z-index: 2;
  left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-2);
  padding: var(--space-2);
}
.frame__cap .index-tab { color: color-mix(in srgb, currentColor 80%, transparent); }
.frame__ttl {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--step-0);
  letter-spacing: 0.04em;
}
.frame--end {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: var(--space-1);
  padding: var(--space-3);
}
.frame--end .frame__end-k {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-2);
  letter-spacing: -0.02em;
}
.frame--end .frame__end-t {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--step-0);
  color: var(--color-accent);
}
.series-story__rule {
  display: block;
  height: 1px;
  width: 100%;
  margin-top: var(--space-3);
  background: linear-gradient(90deg, var(--color-accent), transparent);
}

.series-story.is-hscroll {
  height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-block: 0;
}
.series-story.is-hscroll .series-story__head {
  position: absolute;
  top: clamp(6rem, 15vh, 9rem);
  left: var(--page-inline);
  right: var(--page-inline);
  margin: 0;
}
.series-story.is-hscroll .series-story__track {
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  height: clamp(320px, 56vh, 640px);
  gap: clamp(1rem, 3vw, 2.6rem);
  padding-inline: var(--page-inline);
  margin-bottom: clamp(3rem, 9vh, 6rem);
  will-change: transform;
}
.series-story.is-hscroll .frame {
  flex: 0 0 auto;
  height: 100%;
  width: clamp(260px, 32vw, 440px);
  aspect-ratio: auto;
}
.series-story.is-hscroll .frame--tall { width: clamp(220px, 24vw, 340px); }
.series-story.is-hscroll .frame--end { width: clamp(240px, 26vw, 380px); }
.series-story.is-hscroll .series-story__rule {
  position: absolute;
  left: var(--page-inline);
  right: var(--page-inline);
  bottom: clamp(1.6rem, 5vh, 3rem);
  width: auto;
  margin: 0;
}

.windex__head { align-items: end; margin-bottom: var(--space-3); }
.windex__head-l { grid-column: 1 / 7; display: flex; flex-direction: column; gap: var(--space-1); }
.windex__head-r { grid-column: 8 / 13; align-self: end; color: var(--color-muted); max-width: 42ch; }

.windex__table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.windex__table th {
  text-align: left;
  padding: var(--space-2);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-muted);
  border-bottom: 1px solid var(--color-hairline-strong);
}
.windex__table td {
  padding: clamp(0.9rem, 1.6vw, 1.4rem) var(--space-2);
  border-bottom: 1px solid var(--color-hairline);
  vertical-align: baseline;
  font-size: var(--step-0);
}
.windex__c-no { width: 8%; }
.windex__c-ref { width: 14%; }
.windex__c-year { width: 12%; }
.windex__c-state { width: 18%; }
.windex__title { font-weight: 500; }
.windex__table tbody tr {
  transition: background-color var(--dur-1) var(--ease-out-quart), color var(--dur-1) var(--ease-out-quart);
}
.windex__table tbody tr:hover {
  background: color-mix(in srgb, var(--row-glaze, var(--seiji)) 52%, transparent);
}
.windex__table tbody tr:hover td:first-child { color: var(--color-accent); }
.windex__table tbody tr:hover .index-tab { color: color-mix(in srgb, var(--color-fg) 78%, transparent); }

.site-footer {
  position: relative;
  margin-top: var(--space-6);
  padding-bottom: var(--space-4);
  overflow: hidden;
}
.site-footer__marquee {
  border-top: 1px solid var(--color-hairline);
  border-bottom: 1px solid var(--color-hairline);
  padding-block: var(--space-2);
  color: color-mix(in srgb, var(--color-fg) 30%, transparent);
}
.site-footer__marquee .marquee-sep { color: var(--color-muted); font-size: clamp(1rem, 2vw, 1.6rem); }
.site-footer__marquee .accent { color: var(--color-accent); -webkit-text-stroke: 0; }
.site-footer__inner { padding-top: var(--space-5); }
.site-footer__lead {
  font-size: var(--step-3);
  line-height: 0.98;
  margin-bottom: var(--space-3);
}
.site-footer__body { color: var(--color-muted); max-width: 52ch; }
.site-footer__giant {
  margin-block: var(--space-4) var(--space-3);
  line-height: 0.8;
}
.site-footer__giant .display-word {
  font-size: clamp(4rem, 15vw, 14rem);
  color: color-mix(in srgb, var(--color-fg) 92%, transparent);
  display: block;
}
.site-footer__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2) var(--space-4);
  padding-top: var(--space-3);
}
.site-footer__nav { display: flex; gap: clamp(1rem, 2.4vw, 2.4rem); flex-wrap: wrap; }
.site-footer__nav a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
  padding-bottom: 0.15em;
}
.site-footer__nav a::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-1) var(--ease-out-quart);
}
.site-footer__nav a:hover::after,
.site-footer__nav a:focus-visible::after,
.site-footer__nav a[aria-current='page']::after { transform: scaleX(1); }
.site-footer__nav a[aria-current='page'] { color: var(--color-accent); }
.site-footer__brand { font-family: var(--font-display); font-weight: 500; font-size: var(--step--1); letter-spacing: 0.04em; color: var(--color-muted); }
.site-footer__copy { color: var(--color-muted); }

@media (max-width: 1024px) {
  .series-card:nth-child(1) { grid-column: 1 / 8; }
  .series-card:nth-child(2) { grid-column: 8 / 13; margin-top: var(--space-5); }
  .series-card:nth-child(3) { grid-column: 1 / 7; }
  .series-card:nth-child(4) { grid-column: 7 / 13; }
}

@media (max-width: 720px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: inline-flex; }

  .works-hero { padding-block: clamp(6rem, 14vh, 8rem) var(--space-4); }
  .works-hero__inner { align-items: flex-start; text-align: left; }
  .works-hero__body { max-width: 100%; }
  .works-hero__ghost { top: 12%; font-size: 24vw; }
  .works-hero__vlabel {
    position: static;
    transform: none;
    order: -1;
    margin-bottom: var(--space-2);
    color: color-mix(in srgb, var(--jihaku) 72%, transparent);
  }

  .series__head-l, .series__head-r { grid-column: 1 / -1; }
  .series__grid { grid-template-columns: 1fr; row-gap: var(--space-4); }
  .series-card { grid-column: 1 / -1 !important; margin-top: 0 !important; }
  .series-card__face { aspect-ratio: 4 / 3 !important; }
  .series-card__year {
    position: static;
    color: var(--color-muted) !important;
    margin-top: var(--space-1);
    display: inline-block;
  }

  .series-story__vlabel { position: static; margin-bottom: var(--space-1); }
  .series-story__head { max-width: 100%; }

  .windex__head-l, .windex__head-r { grid-column: 1 / -1; }
  .windex__c-ref, .windex__table td:nth-child(3) { display: none; }
  .windex__c-no { width: 12%; }
  .windex__table td, .windex__table th { padding: var(--space-2) var(--space-1); font-size: var(--step--1); }
  .windex__title { font-size: var(--step-0); }

  .site-footer__meta { flex-direction: column; }
}

@media (max-width: 480px) {
  .works-hero__title { font-size: clamp(3rem, 18vw, 5rem); }
  .site-footer__giant .display-word { font-size: 26vw; }
  .frame__cap { flex-direction: column; align-items: flex-start; gap: 0.3rem; }
}

/* wide screens ─ compose the hero edges so the field reads as designed
   rather than a small hero blown up. Marginalia + edgecap now come in at
   1600px (not 1900px), holding both left corners across all wide displays. */
@media (min-width: 1600px) {
  .works-hero__ghost { font-size: 17vw; top: 12%; }

  .works-hero__edgecap {
    display: block;
    position: absolute;
    z-index: 3;
    left: var(--page-inline);
    top: clamp(6.5rem, 15vh, 9.5rem);
    color: color-mix(in srgb, var(--jihaku) 58%, transparent);
    letter-spacing: 0.1em;
  }
  .works-hero__marginalia {
    display: grid;
    gap: 0.55rem;
    position: absolute;
    z-index: 3;
    left: var(--page-inline);
    bottom: clamp(3rem, 11vh, 7rem);
    font-family: var(--font-mono);
    font-size: var(--step--1);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.08em;
    color: color-mix(in srgb, var(--jihaku) 60%, transparent);
  }
  .works-hero__marginalia li {
    list-style: none;
    padding-left: 1.1em;
    border-left: 1px solid color-mix(in srgb, var(--jihaku) 30%, transparent);
    line-height: 1.5;
  }

  .silence--tight { min-height: 15vh; }
}

@media (min-width: 1900px) {
  .works-hero__bg { inset: -12% calc((100vw - var(--shell-max)) / -2); }
}

@media (prefers-reduced-motion: reduce) {
  .works-hero__peek-rule { animation: none; transform: scaleY(0.7); }
  .series-story.is-hscroll { height: auto; overflow: visible; }
  .series-story.is-hscroll .series-story__head { position: static; }
  .series-story.is-hscroll .series-story__track { flex-direction: column; height: auto; transform: none !important; }
  .series-story.is-hscroll .frame { width: 100%; height: auto; aspect-ratio: 3 / 2; }
}
