:root {
  --bg: hsl(228 18% 7%);
  --surface: hsl(228 16% 11%);
  --fg: hsl(40 22% 92%);
  --muted: hsl(38 9% 66%);
  --border: hsl(228 12% 22%);
  --accent: hsl(8 72% 52%);
  --accent-on: hsl(228 25% 8%);
  --font-display: "Piazzolla", Georgia, serif;
  --font-body: "Onest", "Helvetica Neue", sans-serif;
  --radius: 0px;
  --space-section: 96px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.022) 0 1px,
      transparent 1px 96px
    );
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; }

a { color: inherit; }

img { max-width: 100%; display: block; }

/* ---------- header ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.top-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
}

.seal {
  width: 13px;
  height: 13px;
  background: var(--accent);
  align-self: center;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.04em;
}

.brand-sub {
  color: var(--muted);
  font-size: 13px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  text-decoration: none;
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav a:hover { color: var(--fg); }

.nav-cta {
  color: var(--accent) !important;
  border: 1px solid var(--accent);
  padding: 8px 16px;
}

.nav-cta:hover {
  background: var(--accent);
  color: var(--accent-on) !important;
}

/* ---------- hero ---------- */

.hero-kicker {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}

.hero {
  padding: 72px 0 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 64px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(38px, 5.2vw, 62px);
  margin-bottom: 26px;
}

.lead {
  color: var(--muted);
  font-size: 17px;
  max-width: 46ch;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-on);
  text-decoration: none;
  padding: 14px 26px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid var(--accent);
  transition: background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  background: transparent;
  color: var(--accent);
}

.btn-ghost {
  display: inline-block;
  border: 1px solid var(--border);
  color: var(--fg);
  text-decoration: none;
  padding: 14px 26px;
  font-size: 15px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-note {
  color: var(--muted);
  font-size: 14px;
}

.hero-art { display: flex; justify-content: flex-end; }

.plate {
  margin: 0;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 10px;
}

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

.plate-hero {
  width: min(420px, 100%);
}

.plate-hero img { aspect-ratio: 4 / 5; }

.plate figcaption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
  font-family: var(--font-display);
}

/* ---------- metrics ---------- */

.metrics {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.metric {
  padding: 34px 20px;
  border-right: 1px solid var(--border);
}

.metric:first-child { padding-left: 0; }
.metric:last-child { border-right: 0; }

.metric b {
  display: block;
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  margin-bottom: 8px;
}

.metric span {
  color: var(--muted);
  font-size: 14px;
}

/* ---------- sections ---------- */

.series { padding: var(--space-section) 0; }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.6fr) minmax(0, 1fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 56px;
}

.section-head h2 { font-size: clamp(30px, 4vw, 44px); }

.section-head p {
  color: var(--muted);
  max-width: 52ch;
}

.plates {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.plate-row {
  display: grid;
  grid-template-columns: 64px 190px minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  padding: 30px 0;
  border-top: 1px solid var(--border);
}

.plate-row:last-child { border-bottom: 1px solid var(--border); }

.plate-no {
  font-family: var(--font-display);
  font-size: 34px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.plate-row .plate { padding: 0; border: 0; background: none; }
.plate-row .plate img { aspect-ratio: 4 / 5; }

.plate-meta h3 {
  font-size: 26px;
  margin-bottom: 10px;
}

.plate-meta p {
  color: var(--muted);
  max-width: 60ch;
  margin-bottom: 14px;
}

.plate-tech {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--fg);
  opacity: 0.75;
}

/* ---------- feed ---------- */

.feed { padding: var(--space-section) 0; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 48px;
}

.chip {
  border: 1px solid var(--border);
  background: none;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 15px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.chip:hover { color: var(--fg); border-color: var(--muted); }

.chip[aria-pressed="true"] {
  border-color: var(--accent);
  color: var(--accent);
}

.feed-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 780px;
}

.entry {
  padding-bottom: 56px;
  margin-bottom: 56px;
  border-bottom: 1px solid var(--border);
}

.entry:last-child { border-bottom: 0; margin-bottom: 0; }

.entry[hidden] { display: none; }

.entry-art {
  margin: 0 0 22px;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 10px;
}

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

.entry-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--muted);
}

.entry-meta time {
  letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
}

.tag {
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  padding: 2px 10px;
  font-size: 12px;
}

.thought {
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.62;
  max-width: 62ch;
}

.thought b { font-weight: 600; color: var(--fg); }

.entry-thought {
  padding: 40px 0;
}

.entry-thought .mark {
  display: block;
  color: var(--accent);
  font-size: 22px;
  line-height: 1;
  margin-bottom: 16px;
}

.entry-thought .thought {
  font-size: 24px;
  line-height: 1.5;
  max-width: 54ch;
}

.entry-thought .entry-meta { margin: 18px 0 0; }

.feed-more {
  max-width: 780px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.feed-more p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 14px;
}

/* ---------- archive ---------- */

.archive {
  padding: var(--space-section) 0;
  border-top: 1px solid var(--border);
}

.series-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.series-card {
  display: block;
  text-decoration: none;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 10px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.series-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

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

.series-card b {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  margin: 14px 4px 4px;
}

.series-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin: 0 4px 6px;
}


/* ---------- skills ---------- */

.skills {
  padding: var(--space-section) 0;
  border-top: 1px solid var(--border);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.skill-card {
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 10px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.skill-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.skill-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
}

.skill-card b {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  margin: 14px 4px 4px;
}

.skill-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin: 0 4px 6px;
}

/* ---------- how ---------- */

.how {
  padding: var(--space-section) 0;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.how-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: 64px;
}

.how-text h2 {
  font-size: clamp(30px, 4vw, 44px);
  margin-bottom: 20px;
}

.how-lead {
  color: var(--muted);
  max-width: 38ch;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.steps li {
  padding: 26px 0;
  border-bottom: 1px solid var(--border);
}

.steps li:first-child { padding-top: 0; }
.steps li:last-child { border-bottom: 0; }

.steps b {
  display: block;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  margin-bottom: 8px;
}

.steps p {
  color: var(--muted);
  max-width: 56ch;
}

/* ---------- cta ---------- */

.cta {
  padding: var(--space-section) 0;
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("img/1934_0.jpg") center 40% / cover no-repeat;
  opacity: 0.07;
  filter: grayscale(1);
  pointer-events: none;
}

.cta-in {
  max-width: 720px;
  position: relative;
}

.cta h2 {
  font-size: clamp(30px, 4.4vw, 46px);
  margin-bottom: 18px;
}

.cta p { color: var(--muted); }

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 32px 0 18px;
}

.cta-note { font-size: 14px; }

/* ---------- footer ---------- */

.foot {
  border-top: 1px solid var(--border);
  padding: 44px 0;
}

.foot-in {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.foot b {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.04em;
}

.foot p {
  color: var(--muted);
  font-size: 14px;
  max-width: 44ch;
  margin-top: 8px;
}

.foot-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.foot-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  transition: color 0.2s ease;
}

.foot-links a:hover { color: var(--accent); }

/* ---------- motion ---------- */

.fade {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade { opacity: 1; transform: none; transition: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .wrap { padding: 0 22px; }

  .hero-grid,
  .section-head,
  .how-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .hero { padding: 48px 0 56px; }
  .hero-art { justify-content: flex-start; }
  .plate-hero { width: min(340px, 100%); }

  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .metric { border-bottom: 1px solid var(--border); padding: 26px 18px; }
  .metric:nth-child(2n) { border-right: 0; }
  .metric:nth-last-child(-n + 2) { border-bottom: 0; }
  .metric:first-child { padding-left: 18px; }

  .plate-row {
    grid-template-columns: 48px 128px minmax(0, 1fr);
    gap: 20px;
  }

  .plate-no { font-size: 26px; }
  .plate-meta h3 { font-size: 21px; }

  .series-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .skills-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .nav a:not(.nav-cta) { display: none; }
}

@media (max-width: 560px) {
  :root { --space-section: 64px; }

  .brand-sub { display: none; }

  .plate-row {
    grid-template-columns: 40px minmax(0, 1fr);
    grid-template-areas:
      "no meta"
      "img img";
    gap: 16px;
  }
  .plate-no { grid-area: no; align-self: start; }
  .plate-row .plate { grid-area: img; width: 130px; }
  .plate-meta { grid-area: meta; }

  .metric b { font-size: 32px; }

  .series-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .series-card b { font-size: 16px; margin: 10px 2px 2px; }
  .series-card span { font-size: 11px; margin: 0 2px 4px; }
  .skills-grid { grid-template-columns: 1fr; gap: 14px; }
  .skill-card b { font-size: 16px; margin: 10px 2px 2px; }
  .skill-card span { font-size: 11px; margin: 0 2px 4px; }

  .entry { padding-bottom: 40px; margin-bottom: 40px; }
  .thought { font-size: 17px; }
  .entry-thought .thought { font-size: 20px; }
  .entry-art { padding: 8px; }
}

/* ---------- goddess ---------- */

.goddess { padding: var(--space-section) 0; }

.goddess-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 64px;
}

.goddess-plate {
  margin: 0;
  position: relative;
}

.goddess-plate img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--border);
  display: block;
}

.goddess-plate figcaption {
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.goddess-note {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 48px;
  align-items: start;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

.goddess-sketch { margin: 0; }

.goddess-sketch img {
  width: 100%;
  display: block;
  border: 1px solid var(--border);
}

.goddess-sketch figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

.goddess-note h3 {
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 16px;
}

.goddess-note p {
  color: var(--muted);
  max-width: 56ch;
  margin-bottom: 16px;
}

.swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 1px solid var(--border);
  vertical-align: -2px;
  margin: 0 2px;
}

.goddess-cta { margin-top: 28px; }

@media (max-width: 900px) {
  .goddess-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .goddess-note { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}

@media (max-width: 560px) {
  .goddess-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}

/* ---------- artbook v2 ---------- */
.artbook-clips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 28px 0 44px;
}
.artbook-clip { margin: 0; }
.artbook-clip video {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(232, 182, 76, 0.18);
  background: #0b0d12;
}
.artbook-clip figcaption {
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 720px) {
  .artbook-clips { grid-template-columns: minmax(0, 1fr); }
}
