/*
  MorningTokyo.com Premium Domain Landing Page
  Files:
  - index.html
  - style.css
  - script.js
*/

:root {
  --ink: #090816;
  --ink-2: #141326;
  --paper: #fff7ec;
  --paper-2: #fffdf8;
  --white: #ffffff;
  --muted: #6d6874;
  --line: rgba(9, 8, 22, 0.14);
  --red: #e73d4a;
  --red-2: #ff6b76;
  --gold: #d8aa4c;
  --pink: #f4a6b8;
  --violet: #6d5dfc;
  --cyan: #74d6ff;
  --shadow: 0 32px 90px rgba(9, 8, 22, 0.18);
  --soft-shadow: 0 16px 44px rgba(9, 8, 22, 0.09);
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.night {
  --paper: #070711;
  --paper-2: #111121;
  --white: #17172a;
  --muted: #b8b4c7;
  --line: rgba(255, 255, 255, 0.14);
  color: #fff7ec;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--sans);
  background:
    radial-gradient(circle at 12% 0%, rgba(231, 61, 74, 0.20), transparent 32%),
    radial-gradient(circle at 82% 5%, rgba(116, 214, 255, 0.18), transparent 30%),
    linear-gradient(180deg, var(--paper-2), var(--paper));
  overflow-x: hidden;
}

body.night {
  background:
    radial-gradient(circle at 12% 0%, rgba(231, 61, 74, 0.22), transparent 34%),
    radial-gradient(circle at 82% 5%, rgba(116, 214, 255, 0.16), transparent 32%),
    linear-gradient(180deg, #070711, #030307);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.cursor-glow {
  position: fixed;
  width: 280px;
  height: 280px;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(231,61,74,0.14), transparent 68%);
  transform: translate(-50%, -50%);
  z-index: 0;
  opacity: 0.75;
}

.scroll-progress {
  position: fixed;
  left: 0;
  top: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--cyan));
  z-index: 9999;
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background:
    radial-gradient(circle at center, rgba(231,61,74,0.18), transparent 35%),
    var(--ink);
  color: white;
  display: grid;
  place-items: center;
  transition: opacity 0.65s ease, visibility 0.65s ease;
}

.preloader.hide {
  opacity: 0;
  visibility: hidden;
}

.preloader-inner {
  width: 230px;
  height: 230px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  position: relative;
  animation: preloaderPulse 1.7s ease-in-out infinite;
}

.preloader-inner::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  border: 1px solid rgba(231,61,74,0.38);
}

.preloader-inner span {
  display: block;
  font-size: 54px;
  font-weight: 900;
  color: var(--red-2);
  line-height: 1;
}

.preloader-inner strong {
  display: block;
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: -0.04em;
  margin-top: 6px;
}

.preloader-inner small {
  display: block;
  color: rgba(255,255,255,0.62);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.14em;
  max-width: 130px;
  margin: 9px auto 0;
}

@keyframes preloaderPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.035); }
}

.site-shell {
  max-width: 1540px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  z-index: 1;
  background: rgba(255, 253, 248, 0.78);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

body.night .site-shell {
  background: rgba(14, 14, 28, 0.82);
}

.topbar {
  min-height: 46px;
  padding: 0 34px;
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) auto;
  gap: 24px;
  align-items: center;
  color: white;
  background: var(--ink);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.topbar-left,
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.13em;
}

.topbar-left span:last-child {
  color: var(--gold);
}

.topbar-actions button {
  border: 0;
  background: transparent;
  color: white;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.13em;
  transition: color 0.25s ease;
}

.topbar-actions button:hover {
  color: var(--red-2);
}

.ticker {
  overflow: hidden;
  white-space: nowrap;
  font-size: 12px;
}

.ticker-track {
  display: inline-block;
  animation: ticker 30s linear infinite;
}

.ticker-track b {
  color: var(--red-2);
  margin-left: 16px;
  margin-right: 8px;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.masthead {
  padding: 32px 34px 28px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 28px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(rgba(255,255,255,0.42), rgba(255,255,255,0.05)),
    repeating-linear-gradient(90deg, transparent 0 36px, rgba(231,61,74,0.035) 37px 38px);
}

body.night .masthead {
  background:
    linear-gradient(rgba(255,255,255,0.035), rgba(255,255,255,0.01)),
    repeating-linear-gradient(90deg, transparent 0 36px, rgba(255,255,255,0.026) 37px 38px);
}

.seal-card {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.60);
  padding: 16px;
  box-shadow: var(--soft-shadow);
}

body.night .seal-card {
  background: rgba(255,255,255,0.05);
}

.seal-card.right {
  text-align: right;
}

.seal-card span {
  display: block;
  color: var(--red);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.16em;
  font-weight: 900;
  margin-bottom: 7px;
}

.seal-card strong {
  display: block;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.brand {
  text-align: center;
}

.brand p {
  color: var(--red);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.34em;
  font-weight: 900;
  margin-bottom: 8px;
}

.brand h1 {
  font-family: var(--serif);
  font-size: clamp(46px, 8vw, 116px);
  line-height: 0.9;
  letter-spacing: -0.08em;
  white-space: nowrap;
}

.jp-line {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.17em;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 120;
  min-height: 56px;
  display: flex;
  justify-content: center;
  border-bottom: 1px solid var(--line);
  background: rgba(255,253,248,0.78);
  backdrop-filter: blur(20px);
}

body.night .nav {
  background: rgba(10,10,20,0.86);
}

.menu-button {
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
}

.nav-links a,
.menu-button {
  padding: 19px 18px;
  border: 0;
  background: transparent;
  color: inherit;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.12em;
  font-weight: 900;
  transition: 0.24s ease;
}

.nav-links a:hover,
.menu-button:hover {
  background: var(--ink);
  color: white;
}

.accent-link {
  color: var(--red) !important;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(340px, 0.82fr);
  gap: 28px;
  padding: 34px;
  border-bottom: 1px solid var(--line);
}

.hero-main {
  position: relative;
  min-height: 720px;
  padding: 34px;
  overflow: hidden;
  color: white;
  background:
    linear-gradient(135deg, rgba(9,8,22,0.86), rgba(9,8,22,0.24)),
    url("https://images.unsplash.com/photo-1540959733332-eab4deabeeaf?auto=format&fit=crop&w=1800&q=80") center/cover;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  isolation: isolate;
}

.hero-main::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255,255,255,0.28);
  pointer-events: none;
  z-index: -1;
}

.skyline {
  position: absolute;
  inset: auto 0 0 0;
  height: 270px;
  z-index: -1;
  overflow: hidden;
  opacity: 0.82;
}

.sun {
  position: absolute;
  right: 13%;
  bottom: 84px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255,255,255,0.9) 0 2px, transparent 3px),
    radial-gradient(circle, var(--red-2), rgba(231,61,74,0.18) 64%);
  box-shadow: 0 0 70px rgba(231,61,74,0.55);
}

.tower {
  position: absolute;
  left: 22%;
  bottom: 0;
  width: 16px;
  height: 245px;
  background: linear-gradient(var(--red-2), rgba(255,255,255,0.85));
  clip-path: polygon(45% 0, 55% 0, 100% 100%, 0 100%);
}

.tower::before {
  content: "";
  position: absolute;
  left: -46px;
  top: 58px;
  width: 108px;
  height: 2px;
  background: rgba(255,255,255,0.58);
  transform: rotate(25deg);
  box-shadow: 0 44px 0 rgba(255,255,255,0.45), 0 88px 0 rgba(255,255,255,0.32);
}

.building {
  position: absolute;
  bottom: 0;
  background: rgba(4,4,9,0.78);
  border-top: 1px solid rgba(255,255,255,0.18);
}

.b1 { left: 5%; width: 105px; height: 110px; }
.b2 { left: 35%; width: 150px; height: 86px; }
.b3 { right: 32%; width: 90px; height: 135px; }
.b4 { right: 6%; width: 170px; height: 100px; }

.building::after {
  content: "";
  position: absolute;
  inset: 16px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,0.22) 0 5px, transparent 6px 18px);
  opacity: 0.45;
}

.rail {
  position: absolute;
  left: -4%;
  right: -4%;
  bottom: 36px;
  height: 5px;
  background: rgba(255,255,255,0.74);
  transform: rotate(-2deg);
  box-shadow: 0 11px 0 rgba(255,255,255,0.28);
}

.hero-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(231,61,74,0.96);
  color: white;
  padding: 10px 13px;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.13em;
  font-weight: 900;
}

.live-badge i {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: white;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.72); }
  70% { box-shadow: 0 0 0 13px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

.hero-top > span {
  color: rgba(255,255,255,0.76);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.13em;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--red-2);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 14px;
}

.kicker::before {
  content: "";
  width: 36px;
  height: 1px;
  background: currentColor;
}

.hero-copy h2 {
  max-width: 900px;
  font-family: var(--serif);
  font-size: clamp(54px, 7.2vw, 118px);
  line-height: 0.84;
  letter-spacing: -0.078em;
  margin-bottom: 22px;
}

.hero-copy p {
  max-width: 720px;
  color: rgba(255,255,255,0.86);
  font-size: clamp(17px, 1.5vw, 23px);
  line-height: 1.58;
  margin-bottom: 25px;
}

.hero-actions,
.footer-actions,
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  min-height: 52px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: white;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.12em;
  font-weight: 900;
  transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0,0,0,0.22);
}

.btn.primary {
  background: linear-gradient(135deg, var(--red), var(--gold));
  border-color: transparent;
  color: white;
}

.btn.glass {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.42);
  color: white;
}

.btn.outline {
  background: transparent;
  border-color: rgba(255,255,255,0.36);
  color: white;
}

.btn.dark-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

body.night .btn.dark-outline {
  color: white;
}

.hero-panel {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 24px;
}

.acquisition-card {
  padding: 28px;
  color: white;
  background:
    radial-gradient(circle at top right, rgba(231,61,74,0.28), transparent 36%),
    var(--ink);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.mini-label {
  display: inline-flex;
  padding: 6px 9px;
  background: rgba(231,61,74,0.15);
  color: var(--red-2);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.15em;
  font-weight: 900;
  margin-bottom: 15px;
}

.acquisition-card h3 {
  font-family: var(--serif);
  font-size: 43px;
  line-height: 0.98;
  letter-spacing: -0.048em;
  margin-bottom: 14px;
}

.acquisition-card p {
  color: rgba(255,255,255,0.72);
  line-height: 1.65;
  margin-bottom: 22px;
}

.acq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 22px;
}

.acq-grid div {
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.06);
  padding: 14px;
}

.acq-grid small {
  display: block;
  color: var(--red-2);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.14em;
  font-weight: 900;
  margin-bottom: 7px;
}

.acq-grid strong {
  font-family: var(--serif);
  font-size: 24px;
}

.edition-card {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.7);
  box-shadow: var(--soft-shadow);
}

body.night .edition-card {
  background: rgba(255,255,255,0.05);
}

.edition-heading {
  padding: 17px 18px;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.edition-heading h3 {
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: -0.035em;
}

.edition-heading span {
  color: var(--red);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.14em;
  font-weight: 900;
}

.desk-item {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
  transition: 0.24s ease;
}

.desk-item:last-child {
  border-bottom: 0;
}

.desk-item:hover {
  transform: translateX(5px);
  background: rgba(255,255,255,0.64);
}

body.night .desk-item:hover {
  background: rgba(255,255,255,0.06);
}

.desk-number {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(231,61,74,0.12);
  color: var(--red);
  font-family: var(--serif);
  font-size: 22px;
}

.desk-item h4 {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: 7px;
}

.desk-item p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.signal {
  padding: 23px;
  border-right: 1px solid var(--line);
}

.signal:last-child {
  border-right: 0;
}

.signal span {
  display: block;
  color: var(--red);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.14em;
  font-weight: 900;
  margin-bottom: 7px;
}

.signal strong {
  display: block;
  font-family: var(--serif);
  font-size: 34px;
  letter-spacing: -0.045em;
  margin-bottom: 7px;
}

.signal p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.intelligence-board {
  padding: 44px 34px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 30px;
  border-bottom: 1px solid var(--line);
}

.board-copy,
.board-metrics,
.offer-copy,
.offer-form {
  background: rgba(255,255,255,0.72);
  border: 1px solid var(--line);
  box-shadow: var(--soft-shadow);
}

body.night .board-copy,
body.night .board-metrics,
body.night .offer-copy {
  background: rgba(255,255,255,0.05);
}

.board-copy {
  padding: 34px;
}

.board-copy h2,
.section-heading h2,
.map-copy h2,
.auction-copy h2,
.offer-copy h2 {
  font-family: var(--serif);
  font-size: clamp(42px, 5.7vw, 84px);
  line-height: 0.92;
  letter-spacing: -0.066em;
  margin-bottom: 18px;
}

.board-copy > p,
.section-heading p,
.map-copy p,
.auction-copy p,
.offer-copy p {
  color: var(--muted);
  max-width: 790px;
  font-size: 17px;
  line-height: 1.75;
}

.score-area {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  align-items: center;
  margin-top: 30px;
}

.score-meter {
  width: 210px;
  height: 210px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle, rgba(231,61,74,0.13), rgba(116,214,255,0.04)),
    conic-gradient(var(--red) 0deg, var(--gold) 338deg, rgba(0,0,0,0.08) 338deg);
}

.score-meter strong {
  display: block;
  font-family: var(--serif);
  font-size: 66px;
  line-height: 0.85;
  letter-spacing: -0.065em;
}

.score-meter span {
  display: block;
  color: var(--red);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.15em;
  font-weight: 900;
  margin-top: 10px;
}

.score-details h3 {
  font-family: var(--serif);
  font-size: 32px;
  letter-spacing: -0.04em;
  margin-bottom: 11px;
}

.score-details ul {
  list-style: none;
}

.score-details li {
  color: var(--muted);
  line-height: 1.75;
}

.score-details li::before {
  content: "✓";
  color: var(--red);
  font-weight: 900;
  margin-right: 8px;
}

.board-metrics {
  padding: 22px;
  display: grid;
  gap: 14px;
}

.metric {
  min-height: 122px;
  padding: 22px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.62), rgba(255,255,255,0.17));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

body.night .metric {
  background: rgba(255,255,255,0.04);
}

.metric span {
  color: var(--red);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.14em;
  font-weight: 900;
}

.metric strong {
  font-family: var(--serif);
  font-size: 31px;
  line-height: 1;
  letter-spacing: -0.045em;
}

.verticals {
  padding: 46px 34px;
  border-bottom: 1px solid var(--line);
}

.section-heading {
  max-width: 900px;
  margin-bottom: 25px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 25px;
}

.filter {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.58);
  color: inherit;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.12em;
  font-weight: 900;
  transition: 0.24s ease;
}

body.night .filter {
  background: rgba(255,255,255,0.05);
}

.filter.active,
.filter:hover {
  background: var(--ink);
  color: white;
}

.vertical-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.vertical-card {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.72);
  box-shadow: var(--soft-shadow);
  overflow: hidden;
  transition: opacity 0.24s ease, transform 0.24s ease, box-shadow 0.24s ease;
}

body.night .vertical-card {
  background: rgba(255,255,255,0.05);
}

.vertical-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow);
}

.vertical-card.hidden {
  opacity: 0;
  transform: scale(0.96);
  pointer-events: none;
  position: absolute;
}

.card-visual {
  height: 210px;
  background: #ddd center/cover;
  position: relative;
}

.card-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(9,8,22,0.48));
}

.v-news { background-image: url("https://images.unsplash.com/photo-1493976040374-85c8e12f0c0e?auto=format&fit=crop&w=900&q=80"); }
.v-travel { background-image: url("https://images.unsplash.com/photo-1524413840807-0c3cb6fa808d?auto=format&fit=crop&w=900&q=80"); }
.v-food { background-image: url("https://images.unsplash.com/photo-1553621042-f6e147245754?auto=format&fit=crop&w=900&q=80"); }
.v-business { background-image: url("https://images.unsplash.com/photo-1542051841857-5f90071e7989?auto=format&fit=crop&w=900&q=80"); }
.v-luxury { background-image: url("https://images.unsplash.com/photo-1503899036084-c55cdd92da26?auto=format&fit=crop&w=900&q=80"); }
.v-neighborhood { background-image: url("https://images.unsplash.com/photo-1554797589-7241bb691973?auto=format&fit=crop&w=900&q=80"); }

.card-content {
  padding: 20px;
}

.card-content span {
  display: inline-flex;
  padding: 6px 9px;
  background: rgba(231,61,74,0.12);
  color: var(--red);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.14em;
  font-weight: 900;
  margin-bottom: 12px;
}

.card-content h3 {
  font-family: var(--serif);
  font-size: 29px;
  line-height: 1.02;
  letter-spacing: -0.045em;
  margin-bottom: 10px;
}

.card-content p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.tokyo-map {
  padding: 46px 34px;
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 30px;
  align-items: stretch;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(9,8,22,0.94), rgba(9,8,22,0.82)),
    url("https://images.unsplash.com/photo-1503899036084-c55cdd92da26?auto=format&fit=crop&w=1800&q=80") center/cover;
  color: white;
}

.map-copy {
  padding: 34px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
}

.map-copy p {
  color: rgba(255,255,255,0.72);
}

.district-board {
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  padding: 22px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.district {
  min-height: 52px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.07);
  color: white;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.12em;
  font-weight: 900;
  transition: 0.24s ease;
}

.district.active,
.district:hover {
  background: linear-gradient(135deg, var(--red), var(--gold));
  border-color: transparent;
}

.district-display {
  grid-column: 1 / -1;
  margin-top: 6px;
  padding: 34px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  background:
    radial-gradient(circle at top right, rgba(231,61,74,0.18), transparent 38%),
    rgba(0,0,0,0.22);
}

.district-display span {
  color: var(--red-2);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.16em;
  font-weight: 900;
  margin-bottom: 12px;
}

.district-display h3 {
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.06em;
  margin-bottom: 14px;
}

.district-display p {
  color: rgba(255,255,255,0.72);
  font-size: 17px;
  line-height: 1.65;
  max-width: 720px;
}

.auction-room {
  padding: 46px 34px;
  border-bottom: 1px solid var(--line);
}

.auction-copy {
  max-width: 900px;
  margin-bottom: 25px;
}

.auction-panels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.auction-panel {
  min-height: 260px;
  padding: 24px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.72);
  box-shadow: var(--soft-shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

body.night .auction-panel {
  background: rgba(255,255,255,0.05);
}

.auction-panel span {
  font-family: var(--serif);
  font-size: 44px;
  color: var(--red);
}

.auction-panel h3 {
  font-family: var(--serif);
  font-size: 31px;
  line-height: 1;
  letter-spacing: -0.045em;
  margin-top: auto;
  margin-bottom: 10px;
}

.auction-panel p {
  color: var(--muted);
  line-height: 1.6;
}

.offer {
  padding: 46px 34px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  border-bottom: 1px solid var(--line);
}

.offer-copy,
.offer-form {
  padding: 34px;
}

.included-list {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.included-list div {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.5);
  padding: 16px;
}

body.night .included-list div {
  background: rgba(255,255,255,0.04);
}

.included-list strong {
  display: block;
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.03em;
  margin-bottom: 5px;
}

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

.offer-form {
  background: var(--ink);
  color: white;
}

.offer-form h3 {
  font-family: var(--serif);
  font-size: 42px;
  letter-spacing: -0.045em;
  margin-bottom: 8px;
}

.offer-form p {
  color: rgba(255,255,255,0.68);
  margin-bottom: 22px;
  line-height: 1.6;
}

.form-grid {
  display: grid;
  gap: 13px;
}

.form-grid input,
.form-grid textarea,
.form-grid select {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  color: white;
  padding: 15px 16px;
  outline: none;
  transition: 0.2s ease;
}

.form-grid select option {
  color: #111;
}

.form-grid input::placeholder,
.form-grid textarea::placeholder {
  color: rgba(255,255,255,0.48);
}

.form-grid input:focus,
.form-grid textarea:focus,
.form-grid select:focus {
  border-color: var(--red-2);
  background: rgba(255,255,255,0.12);
}

.form-grid textarea {
  min-height: 130px;
  resize: vertical;
}

.footer {
  padding: 30px 34px;
  background: var(--ink);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.footer h2 {
  font-family: var(--serif);
  font-size: 42px;
  letter-spacing: -0.055em;
  margin-bottom: 7px;
}

.footer p {
  color: rgba(255,255,255,0.62);
}

.floating-offer {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 500;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(0,0,0,0.18);
  background: linear-gradient(135deg, var(--red), var(--gold));
  color: white;
  box-shadow: var(--shadow);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.13em;
  font-weight: 900;
  display: none;
}

.modal,
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: none;
  place-items: center;
  padding: 22px;
  background: rgba(0,0,0,0.68);
  backdrop-filter: blur(12px);
}

.modal.show,
.search-modal.show {
  display: grid;
}

.modal-card,
.search-card {
  width: min(640px, 100%);
  background: var(--paper-2);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 34px;
  position: relative;
}

body.night .modal-card,
body.night .search-card {
  background: #141426;
  color: #fff7ec;
}

.close-modal {
  position: absolute;
  right: 14px;
  top: 12px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  background: transparent;
  color: inherit;
  font-size: 25px;
  line-height: 1;
}

.modal-card h2 {
  font-family: var(--serif);
  font-size: clamp(38px, 6vw, 64px);
  line-height: 0.92;
  letter-spacing: -0.065em;
  margin-bottom: 12px;
}

.modal-card p {
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 24px;
}

.search-card input {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.72);
  color: inherit;
  padding: 16px;
  margin-top: 12px;
  outline: none;
}

body.night .search-card input {
  background: rgba(255,255,255,0.08);
}

.search-results {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.search-result {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.45);
  padding: 12px;
}

body.night .search-result {
  background: rgba(255,255,255,0.06);
}

.search-result strong {
  display: block;
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}

.search-result span {
  color: var(--muted);
  font-size: 13px;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 980;
  max-width: 390px;
  background: var(--ink);
  color: white;
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: var(--shadow);
  padding: 16px 18px;
  line-height: 1.45;
  transform: translateY(120px);
  opacity: 0;
  transition: 0.35s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1180px) {
  .hero,
  .intelligence-board,
  .tokyo-map,
  .offer {
    grid-template-columns: 1fr;
  }

  .vertical-grid,
  .auction-panels {
    grid-template-columns: 1fr 1fr;
  }

  .signal-strip {
    grid-template-columns: 1fr 1fr;
  }

  .signal:nth-child(2) {
    border-right: 0;
  }
}

@media (max-width: 860px) {
  .topbar {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px 18px;
  }

  .topbar-left,
  .topbar-actions {
    justify-content: space-between;
  }

  .masthead {
    grid-template-columns: 1fr;
    padding: 22px 18px;
  }

  .seal-card.right {
    text-align: left;
  }

  .brand h1 {
    white-space: normal;
    font-size: 49px;
  }

  .nav {
    justify-content: stretch;
    min-height: auto;
  }

  .menu-button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 18px;
  }

  .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 55px;
    background: var(--paper-2);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--soft-shadow);
  }

  body.night .nav-links {
    background: #101020;
  }

  .nav-links.open {
    display: grid;
  }

  .nav-links a {
    border-top: 1px solid var(--line);
  }

  .hero,
  .intelligence-board,
  .verticals,
  .tokyo-map,
  .auction-room,
  .offer,
  .footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-main {
    min-height: 620px;
    padding: 24px;
  }

  .hero-top {
    flex-direction: column;
  }

  .score-area {
    grid-template-columns: 1fr;
  }

  .score-meter {
    margin: 0 auto;
  }

  .district-board {
    grid-template-columns: 1fr 1fr;
  }

  .district-display {
    padding: 24px;
  }

  .vertical-grid,
  .auction-panels,
  .signal-strip {
    grid-template-columns: 1fr;
  }

  .signal {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .signal:last-child {
    border-bottom: 0;
  }

  .footer {
    display: grid;
  }

  .floating-offer {
    display: inline-flex;
    align-items: center;
  }
}

@media (max-width: 540px) {
  .hero-copy h2 {
    font-size: 50px;
  }

  .board-copy h2,
  .section-heading h2,
  .map-copy h2,
  .auction-copy h2,
  .offer-copy h2 {
    font-size: 42px;
  }

  .acq-grid,
  .district-board {
    grid-template-columns: 1fr;
  }

  .desk-item {
    grid-template-columns: 1fr;
  }

  .cursor-glow {
    display: none;
  }

  .modal-card,
  .search-card {
    padding: 26px 20px;
  }
}
