/* ─── Kissakan — dark theme ───────────────────────────────── */
:root {
  --bg:        #0C0807;
  --bg-2:      #140E0C;
  --bg-3:      #1A1210;
  --panel:     #1E1614;
  --panel-2:   #251A17;

  --ivory:     #EDE6D6;
  --ivory-2:   #C9BFA9;
  --muted:     #8A8175;
  --muted-2:   #5A5249;

  --red:       #8E1A15;        /* dark red circle — hinomaru accent */
  --red-2:     #B52E25;
  --red-deep:  #5E1110;

  --tobacco:   #7A5A3F;
  --oat:       #B7A58A;

  --hot:       oklch(62% 0.16 28);   /* warm ember */
  --cold:      oklch(70% 0.08 230);  /* cool steel */

  --rule:      rgba(237, 230, 214, 0.10);
  --rule-2:    rgba(237, 230, 214, 0.05);

  --f-display: "Instrument Serif", "Times New Roman", serif;
  --f-body:    "Inter Tight", "Inter", system-ui, sans-serif;
  --f-mono:    "JetBrains Mono", ui-monospace, monospace;
  --f-jp:      "Shippori Mincho", "Instrument Serif", serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--ivory); }
body {
  font-family: var(--f-body);
  font-feature-settings: "ss01", "ss02", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection { background: var(--red); color: var(--ivory); }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.mono {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 400;
}
.jp {
  font-family: var(--f-jp);
  font-size: 0.45em;
  opacity: 0.55;
  letter-spacing: 0.04em;
  vertical-align: middle;
}

.wrap { max-width: 1440px; margin: 0 auto; padding: 0 48px; }
@media (max-width: 760px) { .wrap { padding: 0 24px; } }

/* ─── Hinomaru — dark red circle motif ─────────────────────── */
.hinomaru {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 32%, var(--red-2) 0%, var(--red) 55%, var(--red-deep) 100%);
  box-shadow: 0 0 18px rgba(142, 26, 21, 0.5);
  flex-shrink: 0;
  vertical-align: middle;
}
.hinomaru.lg { width: 14px; height: 14px; }
.hinomaru.xl { width: 22px; height: 22px; box-shadow: 0 0 28px rgba(181, 46, 37, 0.55); }

/* ─── Nav ─────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 22px 48px;
  display: flex; align-items: center; justify-content: space-between;
  color: var(--ivory);
  background: linear-gradient(180deg, rgba(13,11,10,0.85), rgba(13,11,10,0));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.nav-left, .nav-right { display: flex; align-items: center; gap: 32px; }
.nav-logo {
  font-family: var(--f-display);
  font-size: 22px;
  letter-spacing: -0.02em;
  display: inline-flex; align-items: center; gap: 10px;
}
.nav-logo .jp { font-size: 10px; opacity: 0.45; letter-spacing: 0.1em; }

@media (max-width: 760px) {
  .nav { padding: 18px 24px; }
  .nav-left .mono:nth-child(2), .nav-right .mono:not(.short) { display: none; }
}

/* ─── Hero ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ivory);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 80px;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 48% at 50% 30%, rgba(142, 26, 21, 0.18), transparent 65%),
    radial-gradient(ellipse 60% 40% at 85% 85%, rgba(122, 90, 63, 0.10), transparent 60%),
    linear-gradient(180deg, #0B0908 0%, #17120F 100%);
}
.hero-grain {
  position: absolute; inset: 0;
  opacity: 0.4;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.9' numOctaves='2' seed='5'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.5 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Dark red sun — hinomaru — floating behind title */
.hero-sun {
  position: absolute;
  top: 38%; right: 12%;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 36%, #C13027 0%, #8E1A15 48%, #4a0d0b 100%);
  box-shadow:
    0 0 120px rgba(142, 26, 21, 0.35),
    inset -40px -50px 100px rgba(0, 0, 0, 0.55);
  filter: saturate(1.05);
  transform: translate3d(0,0,0);
  will-change: transform;
}
@media (max-width: 900px) {
  .hero-sun { width: 240px; height: 240px; right: -40px; top: 18%; }
}

.hero-jp-mark {
  position: absolute;
  left: 48px; top: 120px;
  font-family: var(--f-jp);
  font-size: 13px;
  letter-spacing: 0.5em;
  color: var(--muted);
  writing-mode: vertical-rl;
  opacity: 0.7;
}
@media (max-width: 900px) { .hero-jp-mark { display: none; } }

.hero-eyebrow {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp 1s 0.3s ease-out forwards;
}
.hero-eyebrow .line { width: 40px; height: 1px; background: var(--ivory); opacity: 0.28; }

.hero-title {
  position: relative;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(56px, 9.4vw, 168px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  margin-bottom: 56px;
  z-index: 2;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line > span {
  display: block;
  transform: translateY(110%);
  animation: riseIn 1.1s cubic-bezier(.22,.61,.36,1) forwards;
}
.hero-title .line:nth-child(1) > span { animation-delay: 0.5s; }
.hero-title .line:nth-child(2) > span { animation-delay: 0.7s; }
.hero-title em { font-style: italic; color: var(--ivory-2); }
@keyframes riseIn { to { transform: translateY(0); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.hero-foot {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  align-items: end;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
  opacity: 0;
  animation: fadeUp 1s 1.3s ease-out forwards;
}
.hero-foot .col p { font-size: 14px; line-height: 1.55; color: var(--ivory-2); max-width: 34ch; }
.hero-foot .col .label { display: block; margin-bottom: 10px; color: var(--muted); }
.hero-foot .col .big {
  font-family: var(--f-display);
  font-size: 36px;
  line-height: 1;
  letter-spacing: -0.02em;
}
.hero-foot .col .big em { color: var(--red-2); font-style: normal; }

.temp-toggle {
  display: inline-flex;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(237, 230, 214, 0.06);
  border: 1px solid rgba(237, 230, 214, 0.12);
}
.temp-toggle .t {
  padding: 8px 18px;
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  transition: all .45s cubic-bezier(.4,0,.2,1);
}
.temp-toggle .t.active.hot  { background: var(--hot);  color: #fff; }
.temp-toggle .t.active.cold { background: var(--cold); color: #fff; }

@media (max-width: 760px) {
  .hero-foot { grid-template-columns: 1fr; gap: 40px; padding-top: 24px; }
  .hero { padding-bottom: 48px; }
}

/* ─── Ticker ──────────────────────────────────────────────────── */
.ticker {
  background: var(--bg-2);
  color: var(--ivory);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
  white-space: nowrap;
  padding: 22px 0;
}
.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 48px;
  animation: tickerScroll 42s linear infinite;
  padding-left: 48px;
  font-family: var(--f-display);
  font-size: 26px;
  letter-spacing: -0.01em;
}
.ticker-track .dot { color: var(--red); font-size: 16px; }
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─── Section scaffolding ─────────────────────────────────────── */
.section {
  padding: 160px 0;
  position: relative;
  background: var(--bg);
}
.section.tight { padding: 110px 0; }

.eyebrow-row {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 48px;
  color: var(--muted);
}
.eyebrow-row .line { flex: 0 0 40px; height: 1px; background: var(--rule); }

.section-title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(40px, 5.4vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  max-width: 18ch;
}
.section-title em { font-style: italic; color: var(--red-2); }

.lede {
  font-size: 20px;
  line-height: 1.55;
  color: var(--ivory-2);
  max-width: 52ch;
  margin-top: 28px;
}

/* ─── Concept ─────────────────────────────────────── */
.concept-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  align-items: end;
  margin-bottom: 120px;
}
@media (max-width: 900px) {
  .concept-head { grid-template-columns: 1fr; gap: 40px; margin-bottom: 72px; }
}

.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}
.pillar {
  padding: 40px 32px 48px 0;
  border-right: 1px solid var(--rule);
  min-height: 340px;
  display: flex;
  flex-direction: column;
}
.pillar:last-child { border-right: none; padding-right: 0; }
.pillar .num { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--red-2); margin-bottom: 80px; }
.pillar h3 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.pillar h3 .jp { font-size: 11px; color: var(--muted); margin-left: 8px; vertical-align: middle; letter-spacing: 0.1em; }
.pillar p { font-size: 14.5px; line-height: 1.6; color: var(--ivory-2); max-width: 36ch; }

@media (max-width: 1100px) { .pillars { grid-template-columns: 1fr 1fr; } .pillar:nth-child(2) { border-right: none; } .pillar:nth-child(1), .pillar:nth-child(2) { border-bottom: 1px solid var(--rule); } }
@media (max-width: 640px)  { .pillars { grid-template-columns: 1fr; } .pillar { border-right: none; border-bottom: 1px solid var(--rule); padding-right: 0; min-height: unset; } .pillar:last-child { border-bottom: none; } .pillar .num { margin-bottom: 40px; } }

/* ─── Showcase ─────────────────────────────────── */
.showcase {
  background: transparent;
  padding: 180px 0 160px;
  position: relative;
  overflow: hidden;
}
.showcase-sun {
  position: absolute;
  top: 50%; left: -140px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 38%, #A7231C 0%, #7A1512 55%, #3a0908 100%);
  transform: translateY(-50%);
  opacity: 0.35;
  filter: blur(2px);
  pointer-events: none;
}
.showcase-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 96px;
  align-items: center;
  position: relative;
}
.machine {
  aspect-ratio: 3 / 4.4;
  position: relative;
  background: linear-gradient(180deg, #1F1A16 0%, #0F0C0A 100%);
  border: 1px solid var(--rule);
  border-radius: 6px;
  box-shadow:
    0 40px 80px -30px rgba(0,0,0,0.6),
    inset 0 1px 0 rgba(237,230,214,0.06);
  overflow: hidden;
}
.machine::before {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, transparent 0 18px, rgba(237,230,214,0.02) 18px 19px);
}
.machine-label {
  position: absolute;
  top: 20px; left: 20px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.machine-label.r { top: auto; bottom: 20px; right: 20px; left: auto; }
.machine-label .jp { font-size: 7px; letter-spacing: 0.14em; }

/* Dark red brand dot on machine */
.machine-mark {
  position: absolute;
  top: 20px; right: 20px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--red-2) 0%, var(--red) 55%, var(--red-deep) 100%);
  box-shadow: 0 0 16px rgba(142,26,21,0.6);
}

.machine-window {
  position: absolute;
  top: 10%;
  left: 7%; right: 7%;
  height: 52%;
  background: linear-gradient(180deg, #0A0807 0%, #050403 100%);
  border: 1px solid rgba(237,230,214,0.06);
  border-radius: 4px;
  box-shadow: inset 0 2px 12px rgba(0,0,0,0.7);
  display: flex;
  flex-direction: column;
  padding: 12px 12px 12px 28px;
  gap: 6px;
}
/* 3 rows: row 1 = HOT, rows 2-3 = COLD */
.machine-row {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 4px;
  position: relative;
}
.machine-row .row-label {
  position: absolute;
  top: 50%; left: -20px;
  font-family: var(--f-mono);
  font-size: 7px;
  letter-spacing: 0.2em;
  color: var(--muted);
  writing-mode: vertical-rl;
  transform: translateY(-50%);
  white-space: nowrap;
}
.machine-row.hot .row-bar {
  position: absolute;
  left: -6px; top: 0; bottom: 0; width: 2px;
  background: var(--hot);
  box-shadow: 0 0 8px var(--hot);
  border-radius: 1px;
}
.machine-row.cold .row-bar {
  position: absolute;
  left: -6px; top: 0; bottom: 0; width: 2px;
  background: var(--cold);
  box-shadow: 0 0 8px var(--cold);
  border-radius: 1px;
}
.can {
  border-radius: 3px;
  position: relative;
  box-shadow: inset 0 -6px 12px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.06);
}
.can::before {
  content: ""; position: absolute; inset: 12% 22% 16%;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), transparent);
  border-radius: 1px;
}
.can.h1 { background: linear-gradient(180deg, #7E2218, #4F1108); }
.can.h2 { background: linear-gradient(180deg, #8E1A15, #52100D); }
.can.h3 { background: linear-gradient(180deg, #6B2E1F, #3e1811); }
.can.h4 { background: linear-gradient(180deg, #A7231C, #5E1110); }
.can.c1 { background: linear-gradient(180deg, #2A2622, #0E0C0A); }
.can.c2 { background: linear-gradient(180deg, #8A7E6A, #54493c); }
.can.c3 { background: linear-gradient(180deg, #5E1110, #2a0706); }
.can.c4 { background: linear-gradient(180deg, #3A3330, #1a1512); }
.can.c5 { background: linear-gradient(180deg, #7A5A3F, #3e2d1f); }
.can.c6 { background: linear-gradient(180deg, #4a3226, #2a1a13); }
.can.c7 { background: linear-gradient(180deg, #B7A58A, #6a5f4d); }
.can.c8 { background: linear-gradient(180deg, #241B1A, #0a0606); }
.can-temp { display: none; }
.can.hot  .can-temp::before { content: "●"; color: var(--hot);  margin-right: 3px; }
.can.cold .can-temp::before { content: "●"; color: var(--cold); margin-right: 3px; }

.machine-slot {
  position: absolute;
  bottom: 14%;
  left: 10%; right: 10%;
  height: 8%;
  background: linear-gradient(180deg, #0a0807, #000);
  border: 1px solid rgba(237,230,214,0.04);
  border-radius: 4px;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.9);
}
.machine-pad {
  position: absolute;
  bottom: 4%;
  left: 50%;
  transform: translateX(-50%);
  width: 44%;
  height: 6%;
  background: var(--bg-3);
  border-radius: 2px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--rule);
}
.machine-pad span { background: rgba(237,230,214,0.08); border-radius: 1px; }
.machine-pad span:first-child {
  background: radial-gradient(circle, var(--red-2) 30%, var(--red) 80%);
  box-shadow: 0 0 6px rgba(181,46,37,0.8);
}

.showcase-copy h2 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(38px, 4.8vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.028em;
  margin-bottom: 36px;
}
.showcase-copy h2 em { font-style: italic; color: var(--red-2); }
.spec-list { list-style: none; margin-top: 48px; }
.spec-list li {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 24px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}
.spec-list .k { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--red-2); }
.spec-list .v { font-family: var(--f-display); font-size: 22px; letter-spacing: -0.01em; color: var(--ivory); }
.spec-list .u { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--muted); }

/* ─── Machine photo (replaces CSS mockup) ───────── */
.machine-photo {
  position: relative;
  margin: 0;
  padding: 0;
}
.machine-photo-frame {
  position: relative;
  aspect-ratio: 1150 / 1367;
  overflow: visible;
  isolation: isolate;
}
/* Soft red brand glow behind the machine — ties to showcase-sun */
.machine-photo-frame::before {
  content: "";
  position: absolute;
  inset: 6% 8% 14% 8%;
  background: radial-gradient(ellipse at 60% 55%, rgba(181,46,37,0.32), rgba(142,26,21,0.12) 45%, transparent 72%);
  filter: blur(50px);
  z-index: 0;
  pointer-events: none;
}
/* Floor contact shadow under the machine — anchors it to the section */
.machine-photo-frame::after {
  content: "";
  position: absolute;
  left: 8%; right: 8%;
  bottom: -2%;
  height: 9%;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.35) 35%, transparent 70%);
  filter: blur(14px);
  z-index: 0;
  pointer-events: none;
}
.machine-photo-frame img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 24px 40px rgba(0,0,0,0.5)) contrast(1.02);
  transition: transform 1.2s cubic-bezier(.22,.61,.36,1);
}
.machine-photo:hover .machine-photo-frame img { transform: translateY(-4px); }

/* Vignette + grain hidden — no longer needed with cutout */
.mp-vignette, .mp-grain { display: none; }

/* Engineering-blueprint corner ticks */
.mp-corner {
  position: absolute;
  width: 28px; height: 28px;
  z-index: 4;
  pointer-events: none;
}
.mp-corner::before, .mp-corner::after {
  content: "";
  position: absolute;
  background: var(--ivory-2);
  opacity: 0.35;
}
.mp-corner::before { width: 28px; height: 1px; }
.mp-corner::after  { width: 1px;  height: 28px; }
.mp-tl { top: 0; left: 0; }
.mp-tl::before { top: 0; left: 0; }
.mp-tl::after  { top: 0; left: 0; }
.mp-tr { top: 0; right: 0; }
.mp-tr::before { top: 0; right: 0; }
.mp-tr::after  { top: 0; right: 0; }
.mp-bl { bottom: 0; left: 0; }
.mp-bl::before { bottom: 0; left: 0; }
.mp-bl::after  { bottom: 0; left: 0; }
.mp-br { bottom: 0; right: 0; }
.mp-br::before { bottom: 0; right: 0; }
.mp-br::after  { bottom: 0; right: 0; }

/* Mono labels stamped into the corners — make it feel like a spec sheet */
.mp-stamp {
  position: absolute;
  z-index: 5;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ivory-2);
  opacity: 0.45;
  white-space: nowrap;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.mp-stamp .hinomaru { width: 6px; height: 6px; box-shadow: none; }
.mp-stamp-tl { top: 8px; left: 38px; }
.mp-stamp-tr { top: 8px; right: 38px; }
.mp-stamp-bl { bottom: 8px; left: 38px; }
.mp-stamp-br { bottom: 8px; right: 38px; }

.mp-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
}
.mp-caption-r { color: var(--muted-2); }

@media (max-width: 900px) {
  .showcase-grid { grid-template-columns: 1fr; gap: 64px; }
  .machine, .machine-photo { max-width: 420px; margin: 0 auto; }
}

/* ─── Numbers ─────────────────────────────────────── */
.numbers {
  background: var(--bg);
  color: var(--ivory);
  padding: 140px 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--rule);
}
.numbers-sun {
  position: absolute;
  top: -120px; right: -120px;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 38%, #A7231C 0%, #7A1512 55%, #3a0908 100%);
  opacity: 0.25;
  filter: blur(1px);
}
.numbers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 80px;
  border-top: 1px solid var(--rule);
  position: relative;
}
.num-cell { padding: 48px 0 0; }
.num-cell .k { color: var(--muted); margin-bottom: 64px; }
.num-cell .big {
  font-family: var(--f-display);
  font-size: clamp(72px, 9vw, 160px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  color: var(--ivory);
}
.num-cell .big em { font-style: italic; color: var(--red-2); }
.num-cell .big .unit { font-size: 0.42em; color: var(--red-2); letter-spacing: 0; margin-left: 6px; font-style: normal; vertical-align: top; }
.num-cell p { color: var(--ivory-2); font-size: 15px; line-height: 1.6; max-width: 32ch; }

@media (max-width: 900px) { .numbers-grid { grid-template-columns: 1fr; gap: 0; } .num-cell { border-bottom: 1px solid var(--rule); padding-bottom: 48px; } .num-cell:last-child { border-bottom: none; } .num-cell .big { margin-bottom: 16px; } .num-cell .k { margin-bottom: 32px; } }

/* ─── Partners ─────────────────────────────────── */
.partners {
  padding: 160px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--rule);
}
.partners-intro {
  display: grid; grid-template-columns: 1fr 1fr; gap: 96px;
  align-items: end;
  margin-bottom: 96px;
}
.partners-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  border: 1px solid var(--rule);
  background: var(--rule);
}
.partner-card {
  background: var(--bg-2);
  padding: 64px 48px;
  min-height: 440px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: background .5s ease;
}
.partner-card:hover { background: var(--bg-3); }
.partner-card .num {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em;
  color: var(--red-2);
  display: inline-flex; align-items: center; gap: 10px;
}
.partner-card h3 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 42px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 48px 0 20px;
  max-width: 14ch;
  color: var(--ivory);
}
.partner-card p { font-size: 15px; line-height: 1.6; color: var(--ivory-2); max-width: 40ch; }
.partner-card ul { list-style: none; margin-top: 28px; }
.partner-card ul li {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--rule);
  font-size: 14px;
  color: var(--ivory-2);
}
.partner-card ul li::before {
  content: "";
  display: inline-block; width: 6px; height: 6px;
  background: radial-gradient(circle at 35% 35%, var(--red-2), var(--red-deep));
  border-radius: 50%;
  flex-shrink: 0;
}
.partner-card .arrow {
  align-self: flex-start;
  margin-top: 32px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ivory);
}
.partner-card .arrow svg { transition: transform .35s cubic-bezier(.22,.61,.36,1); }
.partner-card:hover .arrow svg { transform: translateX(6px); }

@media (max-width: 900px) { .partners-intro { grid-template-columns: 1fr; gap: 32px; margin-bottom: 48px; } .partners-grid { grid-template-columns: 1fr; } .partner-card { min-height: unset; padding: 48px 32px; } }

/* ─── CTA ─────────────────────────────────── */
.cta {
  background: var(--bg);
  color: var(--ivory);
  padding: 180px 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--rule);
}
.cta-sun {
  position: absolute;
  top: 50%; left: 50%;
  width: 560px; height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 38%, #A7231C 0%, #7A1512 55%, #3a0908 100%);
  transform: translate(-50%, -50%);
  opacity: 0.18;
  filter: blur(3px);
  pointer-events: none;
}
.cta-inner { position: relative; max-width: 900px; margin: 0 auto; text-align: center; z-index: 2; }
.cta-title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(56px, 8vw, 140px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin: 40px 0 32px;
}
.cta-title em { font-style: italic; color: var(--red-2); }
.cta-sub { font-size: 18px; line-height: 1.55; color: var(--ivory-2); max-width: 52ch; margin: 0 auto 56px; }

.cta-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 640px;
  margin: 0 auto;
}
.cta-form .full { grid-column: 1 / -1; }
.cta-field { position: relative; text-align: left; }
.cta-field input, .cta-field select, .cta-field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  padding: 20px 0 14px;
  font-family: var(--f-body);
  font-size: 16px;
  color: var(--ivory);
  outline: none;
  transition: border-color .3s;
}
.cta-field label {
  position: absolute;
  left: 0; top: 24px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  pointer-events: none;
  transition: all .3s cubic-bezier(.22,.61,.36,1);
}
.cta-field input:focus, .cta-field select:focus, .cta-field textarea:focus { border-bottom-color: var(--red-2); }
.cta-field input:focus + label,
.cta-field input:not(:placeholder-shown) + label,
.cta-field select:focus + label,
.cta-field select:valid + label,
.cta-field textarea:focus + label,
.cta-field textarea:not(:placeholder-shown) + label {
  top: 0;
  font-size: 9px;
  color: var(--red-2);
}
.cta-field select { appearance: none; cursor: pointer; color: var(--ivory); }
.cta-field select option { background: var(--bg-2); color: var(--ivory); }
.cta-field.has-arrow::after {
  content: "↓";
  position: absolute;
  right: 0; top: 22px;
  color: var(--muted);
  pointer-events: none;
  font-size: 14px;
}

.submit-btn {
  margin-top: 40px;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 22px 40px;
  background: var(--red);
  color: var(--ivory);
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: all .4s cubic-bezier(.22,.61,.36,1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(237,230,214,0.06), 0 10px 40px -10px rgba(142,26,21,0.6);
}
.submit-btn:hover { background: var(--red-2); transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(237,230,214,0.08), 0 20px 50px -10px rgba(181,46,37,0.7); }
.submit-btn:hover svg { transform: translateX(6px); }
.submit-btn svg { transition: transform .35s; }

.cta-success {
  display: none;
  padding: 48px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg-2);
}
.cta-success.show { display: block; animation: fadeUp .6s ease-out; }
.cta-success .mono { color: var(--red-2); }

@media (max-width: 640px) { .cta-form { grid-template-columns: 1fr; } }

/* ─── Footer ──────────────────────────────────────────────────── */
.foot {
  background: #080706;
  color: var(--muted);
  padding: 56px 0 40px;
  border-top: 1px solid var(--rule);
}
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 72px;
}
.foot .lg {
  font-family: var(--f-display);
  font-size: 46px; color: var(--ivory);
  line-height: 1; margin-bottom: 18px;
  letter-spacing: -0.02em;
  display: inline-flex; align-items: center; gap: 12px;
}
.foot .lg .jp { font-size: 12px; color: var(--muted); letter-spacing: 0.1em; }
.foot h4 { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ivory); margin-bottom: 20px; font-weight: 400; }
.foot ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.foot ul a { color: var(--muted); font-size: 14px; transition: color .2s; }
.foot ul a:hover { color: var(--ivory); }
.foot-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
  font-size: 12px;
  font-family: var(--f-mono);
  letter-spacing: 0.1em;
  color: var(--muted-2);
}
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 40px; } .foot-bottom { flex-direction: column; gap: 12px; align-items: flex-start; } }

/* ─── Scroll reveal ───────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s cubic-bezier(.22,.61,.36,1), transform 1s cubic-bezier(.22,.61,.36,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; }
.reveal.d2 { transition-delay: .2s; }
.reveal.d3 { transition-delay: .3s; }

/* ─── Rolling Hinomaru — scroll-linked ─────────────────────── */
.rolling-sun {
  position: fixed;
  right: 40px;
  bottom: 40px;
  width: 72px; height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 34%, #C13027 0%, #8E1A15 48%, #4a0d0b 100%);
  box-shadow:
    0 0 40px rgba(142, 26, 21, 0.45),
    inset -10px -14px 30px rgba(0,0,0,0.55);
  z-index: 40;
  pointer-events: none;
  transform: translate3d(0, 0, 0) rotate(0deg);
  transition: opacity .4s ease;
  opacity: 0;
}
.rolling-sun.show { opacity: 1; }
.rolling-sun::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 0deg,
      rgba(255,255,255,0.06) 0deg 4deg,
      transparent 4deg 45deg);
  mix-blend-mode: screen;
  opacity: 0.5;
}
.rolling-sun .glyph {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-jp);
  font-size: 18px;
  color: rgba(237, 230, 214, 0.85);
  letter-spacing: 0;
}
@media (max-width: 760px) {
  .rolling-sun { width: 52px; height: 52px; right: 20px; bottom: 20px; }
  .rolling-sun .glyph { font-size: 14px; }
}

/* ─── Tweaks ───────────────────────────────────────────── */
.tweaks-panel {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 100;
  background: var(--bg-2);
  color: var(--ivory);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 18px;
  width: 260px;
  font-family: var(--f-body);
  font-size: 13px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  display: none;
}
.tweaks-panel.show { display: block; }
.tweaks-panel h5 { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red-2); margin-bottom: 14px; display: inline-flex; align-items: center; gap: 8px; }
.tweaks-panel .row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-top: 1px solid var(--rule); }
.tweaks-panel .row:first-of-type { border-top: none; }
.tweaks-panel .row label { font-size: 12px; color: var(--ivory-2); }
.tweaks-panel .seg { display: inline-flex; gap: 2px; padding: 2px; background: rgba(237,230,214,0.06); border-radius: 999px; }
.tweaks-panel .seg button { padding: 5px 10px; border-radius: 999px; font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.tweaks-panel .seg button.on { background: var(--red); color: var(--ivory); }
