
:root {
  --ink: #171414;
  --black: #080404;
  --black-2: #110b0b;
  --paper: #f3f0ea;
  --paper-2: #faf8f4;
  --grey: #757574;
  --grey-2: #a7a5a1;
  --red: #b01d23;
  --red-dark: #83151a;
  --line: rgba(23,20,20,.16);
  --muted: #6d6864;
  --white: #f8f6f1;
  --max: 1160px;
  --radius: 4px;
  --shadow: 0 18px 42px rgba(8,4,4,.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
img { max-width: 100%; }
code { font-size: .92em; background: rgba(23,20,20,.055); padding: .12em .32em; border-radius: 2px; }

.container { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }
.narrow { width: min(calc(100% - 40px), 820px); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(8,4,4,.96);
  backdrop-filter: blur(12px);
}
.nav-wrap { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--white); text-decoration: none; }
.brand-crest { width: 44px; height: 44px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.03; }
.brand-text strong { font: 650 16px/1.1 Georgia, "Times New Roman", serif; letter-spacing: .015em; }
.brand-text span { margin-top: 5px; color: rgba(255,255,255,.48); font-size: 9px; text-transform: uppercase; letter-spacing: .18em; }
.nav-links { display: flex; gap: 20px; align-items: center; }
.nav-links a { color: rgba(255,255,255,.70); text-decoration: none; font-size: 13px; letter-spacing: .01em; }
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-cta { border: 1px solid rgba(255,255,255,.20); padding: 9px 13px; }
.menu-btn { display: none; color: white; background: none; border: 0; font-size: 24px; padding: 8px; }

.hero, .page-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--black);
}
.hero::before, .page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("identity/v9/calligraphy.png");
  background-repeat: no-repeat;
  background-size: min(820px, 58vw) auto;
  background-position: left -130px center;
  opacity: .42;
}
.hero::after, .page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8,4,4,.52) 0%, rgba(8,4,4,.88) 52%, rgba(8,4,4,.98) 100%),
    linear-gradient(180deg, transparent 85%, rgba(176,29,35,.07));
  pointer-events: none;
}
.hero { padding: 94px 0 82px; min-height: 670px; display:flex; align-items:center; }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.55fr .78fr; gap: 74px; align-items: center; }
.hero-side { display: grid; gap: 22px; }
.crest-stage {
  min-height: 310px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.018);
}
.crest-stage img { width: min(280px, 70%); filter: drop-shadow(0 18px 40px rgba(0,0,0,.2)); }

.eyebrow { color: var(--red); text-transform: uppercase; letter-spacing: .18em; font-weight: 800; font-size: 11px; }
h1, h2, h3, .display { font-family: Georgia, "Times New Roman", serif; font-weight: 600; letter-spacing: -.022em; }
h1 { font-size: clamp(46px, 6vw, 78px); line-height: .99; margin: 14px 0 24px; max-width: 900px; }
.hero-copy { max-width: 775px; color: rgba(255,255,255,.73); font-size: clamp(18px, 2vw, 21px); line-height: 1.52; }
.hero-question {
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  line-height: 1.4;
  margin: 30px 0;
  border-left: 2px solid var(--red);
  padding-left: 22px;
}
.actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 17px; border-radius: 2px;
  font-weight: 760; font-size: 13px; text-decoration: none; border: 1px solid transparent;
}
.btn-primary { background: var(--red); color: white; }
.btn-primary:hover { color: white; background: var(--red-dark); }
.btn-secondary { color: white; border-color: rgba(255,255,255,.24); background: rgba(255,255,255,.025); }
.btn-secondary:hover { color: white; border-color: rgba(255,255,255,.55); }
.hero-card { border-top: 1px solid rgba(255,255,255,.13); border-bottom: 1px solid rgba(255,255,255,.13); padding: 18px 2px; }
.hero-card .label { color: rgba(255,255,255,.43); font-size: 10px; text-transform: uppercase; letter-spacing: .17em; }
.metric { padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.metric:last-child { border-bottom: 0; }
.metric strong { display: block; font-family: Georgia, serif; font-size: 21px; color: white; }
.metric span { color: rgba(255,255,255,.56); font-size: 12.5px; }

.section { padding: 78px 0; }
.section-sm { padding: 52px 0; }
.section-dark { background: var(--black); color: var(--white); }
.section-white { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title { max-width: 780px; margin-bottom: 34px; }
.section-title h2 { margin: 8px 0 12px; font-size: clamp(34px, 4vw, 49px); line-height: 1.06; }
.section-title p { color: var(--muted); font-size: 17px; }
.section-dark .section-title p { color: rgba(255,255,255,.62); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: rgba(255,255,255,.48);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: none;
}
.card h3 { font-size: 24px; margin: 0 0 10px; }
.card p { color: var(--muted); margin: 0 0 14px; }
.card .kicker { color: var(--red); font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .16em; }
.card-dark { background: rgba(255,255,255,.025); border-color: rgba(255,255,255,.11); }
.card-dark p { color: rgba(255,255,255,.61); }
.card-dark h3 { color: white; }
.card-dark code { background: rgba(255,255,255,.08); }

.evidence-number { font: 700 34px/1 Georgia, serif; color: var(--black); margin: 13px 0 8px; }
.evidence-caption { color: var(--muted); font-size: 13px; }
.status-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag { border-radius: 2px; padding: 6px 9px; border: 1px solid var(--line); font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .1em; background: rgba(255,255,255,.35); }
.tag-positive { color: #315d43; }
.tag-open { color: #7a531a; }
.tag-null { color: #5d6062; }

.rule { margin: 30px 0; border-left: 3px solid var(--red); padding: 18px 22px; background: rgba(176,29,35,.045); font: 600 21px/1.42 Georgia, serif; }

.page-hero { padding: 72px 0 56px; }
.page-hero > * { position: relative; z-index: 2; }
.page-hero::before { background-size: 540px auto; background-position: right -80px center; opacity: .26; }
.page-hero::after { background: linear-gradient(90deg, rgba(8,4,4,.96), rgba(8,4,4,.80)); }
.page-hero h1 { font-size: clamp(42px, 5vw, 64px); margin-bottom: 18px; }
.page-hero p { max-width: 790px; color: rgba(255,255,255,.67); font-size: 18px; }

.prose h2 { margin-top: 46px; font-size: 32px; }
.prose h3 { margin-top: 30px; font-size: 23px; }
.prose p, .prose li { color: #47413e; font-size: 16px; }
.prose ul { padding-left: 20px; }
.prose strong { color: var(--ink); }
.prose blockquote { margin: 28px 0; padding: 18px 24px; border-left: 2px solid var(--red); background: rgba(176,29,35,.045); font: 600 20px/1.45 Georgia, serif; }

.callout { border: 1px solid rgba(176,29,35,.23); background: rgba(176,29,35,.035); border-radius: var(--radius); padding: 26px; }
.callout h3 { margin-top: 0; }
.link-list { display: grid; gap: 10px; margin-top: 16px; }
.link-list a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 700; }
.link-list a:last-child { border-bottom: 0; }
.link-list a span { color: var(--muted); font-weight: 500; font-size: 13px; }

.identity-strip {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border: 1px solid var(--line);
  background: var(--paper-2);
}
.identity-panel {
  min-height: 315px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--line);
  overflow: hidden;
}
.identity-panel:last-child { border-right: 0; }
.identity-panel img { max-height: 180px; width: 100%; object-fit: contain; }
.identity-panel.calligraphy-panel img { max-height: 210px; transform: scale(1.22); }
.identity-panel .label { color: var(--red); font-size: 10px; text-transform: uppercase; letter-spacing: .17em; font-weight: 850; }
.identity-panel h3 { margin: 8px 0 0; font-size: 22px; }

.identity-exhibition {
  display: grid;
  gap: 22px;
}
.artifact-grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.artifact-grid-three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.artifact-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.artifact-card-calligraphy {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  min-height: 420px;
}
.artifact-copy {
  padding: 30px;
}
.artifact-copy h3 {
  margin: 8px 0 12px;
  font-size: clamp(24px, 3vw, 34px);
}
.artifact-copy p {
  margin: 0;
  color: var(--muted);
}
.artifact-stage {
  min-height: 280px;
  display: grid;
  place-items: center;
  padding: 34px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.45), rgba(255,255,255,.18)),
    radial-gradient(circle at 50% 20%, rgba(255,255,255,.70), rgba(246,241,235,.96));
  border-top: 1px solid var(--line);
}
.artifact-card-calligraphy .artifact-stage {
  border-top: 0;
  border-left: 1px solid var(--line);
  min-height: 420px;
}
.artifact-stage img {
  max-width: 100%;
  max-height: 280px;
  object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(0,0,0,.08));
}
.artifact-stage-calligraphy img {
  max-height: 350px;
  width: auto;
  filter: none;
}
.artifact-stage-seal img {
  max-height: 110px;
  image-rendering: auto;
}
.artifact-stage-wordmark {
  min-height: 220px;
}
.artifact-stage-wordmark img {
  width: min(92%, 520px);
  max-height: 150px;
  object-fit: contain;
  filter: none;
}

.provenance-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 50px; align-items: start; }
.provenance-grid-light { grid-template-columns: 1.05fr .95fr; }
.provenance-note { display: grid; gap: 18px; }
.provenance-figure {
  border: 1px solid var(--line);
  background: var(--black);
  min-height: 620px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.provenance-figure img { width: 100%; height: 100%; object-fit: contain; }
.composite-stage {
  margin: 16px 0 0;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,.18)), radial-gradient(circle at 50% 20%, rgba(255,255,255,.88), rgba(239,233,226,.95));
  min-height: 380px;
  display: grid;
  place-items: center;
  padding: 18px;
}
.composite-stage img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
}
.origin-table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: 14px; }
.origin-table th, .origin-table td { text-align: left; vertical-align: top; padding: 13px 12px; border-bottom: 1px solid var(--line); }
.origin-table th { width: 34%; font-family: Georgia, serif; font-size: 15px; }
.disclaimer { font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; }
.artifact-details { margin: 22px 0; border: 1px solid var(--line); background: var(--paper-2); }
.artifact-details summary { cursor: pointer; padding: 18px 20px; font-weight: 800; }
.artifact-details .artifact-body { padding: 0 20px 22px; border-top: 1px solid var(--line); }
.artifact-body h3 { margin-top: 26px; }
.kanji-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 18px;
}
.kanji-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.kanji-card .kanji {
  display: block;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif CJK JP", serif;
  font-size: 58px;
  line-height: 1;
  margin-bottom: 18px;
  color: var(--black);
}
.kanji-card h3 {
  margin: 0 0 12px;
  font-size: 24px;
}
.kanji-card p {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
}

.site-footer { padding: 50px 0 26px; background: var(--black); color: rgba(255,255,255,.63); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
.footer-brand { display:flex; gap:18px; align-items:flex-start; }
.footer-seal { width: 58px; flex: 0 0 auto; }
.site-footer h3 { color: white; margin-top: 0; }
.site-footer a { color: rgba(255,255,255,.72); }
.site-footer a:hover { color: white; }
.footer-nav { display: grid; gap: 9px; }
.footer-bottom { margin-top: 38px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; gap: 20px; font-size: 11px; color: rgba(255,255,255,.40); }
.design-credit { margin-top: 14px; font-size: 11px; color: rgba(255,255,255,.42); }
.design-credit a { color: rgba(255,255,255,.60); }

.skip { position: absolute; left: -9999px; top: auto; }
.skip:focus { left: 12px; top: 12px; z-index: 1000; background: white; padding: 8px 12px; }

@media (max-width: 900px) {
  .hero-grid, .grid-3, .footer-grid, .identity-strip, .provenance-grid, .kanji-grid, .artifact-grid-two, .artifact-grid-three, .artifact-card-calligraphy, .provenance-grid-light { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .hero { padding-top: 70px; min-height: auto; }
  .hero-side { max-width: 520px; }
  .crest-stage { min-height: 260px; }
  .identity-panel { border-right:0; border-bottom:1px solid var(--line); min-height:250px; }
  .artifact-card-calligraphy .artifact-stage { border-left:0; border-top:1px solid var(--line); min-height:300px; }
  .artifact-stage-calligraphy img { max-height: 250px; }
  .identity-panel:last-child { border-bottom:0; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 74px; background: var(--black); padding: 16px 20px 24px; flex-direction: column; align-items: flex-start; border-bottom: 1px solid rgba(255,255,255,.12); }
  .nav-links.open { display: flex; }
  .menu-btn { display: block; }
  .provenance-figure { min-height: 520px; }
}
@media (max-width: 560px) {
  .container, .narrow { width: min(calc(100% - 28px), var(--max)); }
  .brand-text span { display:none; }
  .hero { padding: 58px 0 55px; }
  .hero::before { background-size: 760px auto; background-position: -260px center; opacity:.28; }
  h1 { font-size: 45px; }
  .hero-question { font-size: 20px; }
  .section { padding: 58px 0; }
  .card { padding: 21px; }
  .footer-bottom { flex-direction: column; }
  .provenance-figure { min-height: 430px; }
}


/* Identity provenance refinements */
.crest-stage-home { position: relative; padding-bottom: 42px; }
.hero-design-credit {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 14px;
  text-align: center;
  color: rgba(255,255,255,.42);
  text-decoration: none;
  font-size: 10px;
  letter-spacing: .055em;
}
.hero-design-credit:hover { color: rgba(255,255,255,.82); }

.home-identity-grid {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 58px;
  align-items: center;
}
.home-identity-note {
  max-width: 700px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px !important;
}
.home-identity-artifacts {
  position: relative;
  min-height: 430px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255,255,255,.52), rgba(255,255,255,.20)),
    radial-gradient(circle at 50% 25%, #fff, #eee8df 78%);
  overflow: hidden;
}
.home-identity-artifacts figure { margin: 0; position: absolute; display:grid; place-items:center; }
.home-identity-artifacts img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 14px 28px rgba(8,4,4,.06)); }
.home-id-calligraphy { inset: 28px 47% 28px 20px; opacity: .86; }
.home-id-crest { width: 220px; height: 220px; right: 46px; top: 72px; }
.home-id-seal { width: 70px; height: 70px; right: 82px; bottom: 44px; }

@media (max-width: 900px) {
  .home-identity-grid { grid-template-columns: 1fr; gap: 28px; }
  .home-identity-artifacts { min-height: 380px; }
}
@media (max-width: 560px) {
  .home-identity-artifacts { min-height: 330px; }
  .home-id-calligraphy { inset: 24px 43% 24px 10px; }
  .home-id-crest { width: 150px; height: 150px; right: 24px; top: 64px; }
  .home-id-seal { width: 54px; height: 54px; right: 52px; bottom: 34px; }
  .hero-design-credit { font-size: 9px; }
}
