﻿:root {
  --bg: #050a0e;
  --bg-2: #08131a;
  --ink: #f3f8f7;
  --muted: rgba(226, 242, 239, 0.55);
  --faint: rgba(226, 242, 239, 0.28);
  --teal: #59e3d3;
  --teal-dim: rgba(89, 227, 211, 0.16);
  --lime: #d8ff77;
  --line: rgba(197, 236, 230, 0.13);
  --panel: rgba(7, 17, 22, 0.58);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Space Grotesk", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --mono: "SFMono-Regular", Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 70% -10%, rgba(30, 107, 112, 0.14), transparent 60%),
    var(--bg);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }
button { font: inherit; }
::selection { background: var(--teal); color: #041012; }

.shell {
  width: min(1240px, calc(100% - 96px));
  margin: 0 auto;
}

/* ---------- top bar ---------- */
.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  height: 78px;
  padding: 0 46px;
  border-bottom: 1px solid transparent;
  transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
}

.topbar.scrolled {
  background: rgba(4, 10, 14, 0.78);
  border-color: var(--line);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(89, 227, 211, 0.5);
  color: var(--teal);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  transform: rotate(-4deg);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-copy strong {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.015em;
}

.brand-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 17, 22, 0.42);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.nav a {
  position: relative;
  padding: 7px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: color 0.25s, background 0.25s;
}

.nav a:hover { color: var(--ink); }
.nav a.active { color: var(--bg); background: var(--teal); }

.bar-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.bar-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bar-status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px rgba(216, 255, 119, 0.7);
}

.menu-btn {
  display: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.menu-btn span {
  display: block;
  width: 14px;
  height: 1px;
  margin: 4px auto;
  background: currentColor;
  transition: transform 0.25s;
}

.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(2.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-2.5px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 80% 60% at 62% 38%, rgba(21, 92, 97, 0.24), transparent 66%),
    var(--bg);
}

.topography-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.92;
  filter: saturate(0.92) brightness(1.08);
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 10, 14, 0.86) 0%, rgba(5, 10, 14, 0.55) 38%, rgba(5, 10, 14, 0.06) 72%),
    linear-gradient(180deg, rgba(5, 10, 14, 0.5) 0%, transparent 30%, rgba(5, 10, 14, 0.55) 100%);
}

.hero-noise {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.72fr);
  align-items: center;
  gap: clamp(40px, 7vw, 120px);
  min-height: 100svh;
  padding-top: 118px;
  padding-bottom: 84px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 12px rgba(89, 227, 211, 0.9);
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(5rem, 10vw, 9.6rem);
  font-style: italic;
  font-weight: 500;
  line-height: 0.82;
  letter-spacing: -0.055em;
}

.hero h1 em {
  display: block;
  color: var(--teal);
  font-weight: 400;
}

.cn-name {
  margin: 26px 0 0;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.42em;
}

.tagline {
  margin: 22px 0 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1.1rem, 1.6vw, 1.45rem);
  font-weight: 400;
  letter-spacing: -0.025em;
}

.lede {
  max-width: 500px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
}

.btn:hover { transform: translateY(-2px); }

.btn-solid {
  background: var(--teal);
  color: #03100f;
}

.btn-solid:hover { background: var(--lime); }

.btn-line {
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(8, 19, 26, 0.28);
}

.btn-line:hover { border-color: rgba(89, 227, 211, 0.5); }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 30px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-meta span { position: relative; }
.hero-meta span + span::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--faint);
}

/* ---------- ID card ---------- */
.id-card {
  --rx: 0deg;
  --ry: 0deg;
  --mx: 50%;
  --my: 40%;
  justify-self: end;
  width: min(370px, 100%);
  perspective: 1200px;
  transform: translate3d(0, 0, 0);
}

.id-card-inner {
  position: relative;
  min-height: 470px;
  padding: 24px;
  border: 1px solid rgba(180, 236, 228, 0.17);
  border-radius: 18px;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(89, 227, 211, 0.12), transparent 42%),
    linear-gradient(155deg, rgba(19, 40, 45, 0.9), rgba(6, 14, 19, 0.88));
  box-shadow:
    0 40px 80px -36px rgba(0, 0, 0, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  backdrop-filter: blur(20px) saturate(1.2);
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform 0.25s var(--ease), box-shadow 0.3s;
  overflow: hidden;
}

.id-card-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 49.8%, rgba(89, 227, 211, 0.07) 50%, transparent 50.2%),
    linear-gradient(0deg, transparent 49.8%, rgba(89, 227, 211, 0.05) 50%, transparent 50.2%);
  background-size: 46px 46px;
  pointer-events: none;
  mask-image: linear-gradient(180deg, black, transparent 70%);
}

.id-card-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.08) 48%, transparent 58%);
  transform: translateX(-60%);
  pointer-events: none;
  transition: transform 0.6s var(--ease);
}

.id-card:hover .id-card-inner::after { transform: translateX(30%); }

.id-card-top,
.id-card-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.id-card-top {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.id-card-main {
  position: relative;
  z-index: 1;
  padding: 32px 0 24px;
}

.id-kicker {
  margin: 0 0 26px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.7;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.id-card-main h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 3.5rem;
  font-style: italic;
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.id-roman {
  margin: 12px 0 0;
  color: var(--teal);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.25em;
}

.id-role {
  margin: 18px 0 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 12px;
}

.id-fields {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.id-fields > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(197, 236, 230, 0.08);
}

.id-fields span {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.id-fields strong {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-align: right;
}

.id-code {
  position: relative;
  z-index: 1;
  height: 48px;
  margin: 18px 0;
  opacity: 0.5;
  background-image:
    repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(0deg, var(--ink) 0 1px, transparent 1px 6px);
  background-size: 31px 100%, 100% 19px;
  mask-image: linear-gradient(90deg, black 0 62%, transparent 62% 64%, black 64% 100%);
}

.id-card-foot {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
}

.id-status {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
}

.id-status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px rgba(216, 255, 119, 0.8);
}

.scroll-cue {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.scroll-cue i {
  display: block;
  width: 1px;
  height: 22px;
  background: linear-gradient(var(--teal), transparent);
  animation: scrollPulse 2.2s infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.7); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}

/* ---------- sections ---------- */
.section {
  position: relative;
  padding: clamp(90px, 12vw, 160px) 0;
}

.section + .section { border-top: 1px solid rgba(197, 236, 230, 0.07); }

.section-label h2,
.section-head h2,
.play-copy h2,
.contact h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.8rem, 5.2vw, 5rem);
  font-style: italic;
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.section-label h2 em,
.section-head h2 em,
.play-copy h2 em,
.contact h2 em {
  color: var(--teal);
  font-weight: 400;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(50px, 9vw, 140px);
  align-items: start;
}

.about-side {
  max-width: 260px;
  margin-top: clamp(54px, 8vw, 100px);
}

.side-rule {
  display: block;
  width: 42px;
  height: 1px;
  margin-bottom: 16px;
  background: var(--teal);
}

.about-side p {
  margin: 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1.22rem;
  font-style: italic;
  line-height: 1.4;
}

.coords {
  display: block;
  margin-top: 22px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-copy .lead {
  margin-top: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1.1rem, 1.7vw, 1.45rem);
  line-height: 1.55;
  letter-spacing: -0.02em;
}

.about-copy p:not(.lead) {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.85;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 28px;
}

.tag-row span,
.work-tags span {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.about-stats div { display: flex; flex-direction: column; gap: 5px; }
.about-stats strong { font-family: var(--serif); font-size: 1.9rem; font-style: italic; font-weight: 500; }
.about-stats span { color: var(--faint); font-family: var(--mono); font-size: 7.5px; line-height: 1.5; letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- work ---------- */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 48px;
}

.section-note {
  max-width: 240px;
  margin: 0 0 6px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.7;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: right;
}

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

.work-card {
  border: 1px solid var(--line);
  background: rgba(7, 17, 22, 0.45);
  transition: transform 0.35s var(--ease), border-color 0.35s, background 0.35s;
}

.work-card:hover {
  transform: translateY(-6px);
  border-color: rgba(89, 227, 211, 0.35);
  background: rgba(10, 25, 30, 0.62);
}

.work-art {
  position: relative;
  height: 210px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #061016;
}

.art-topo {
  background:
    repeating-radial-gradient(ellipse at 28% 70%, transparent 0 12px, rgba(89, 227, 211, 0.23) 13px 14px, transparent 15px 26px),
    radial-gradient(ellipse at 28% 70%, rgba(89, 227, 211, 0.18), transparent 62%),
    #061016;
}

.art-orbit {
  position: absolute;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(89, 227, 211, 0.32);
  border-radius: 50%;
  right: 12%;
  top: 16%;
  animation: orbit 12s linear infinite;
}
.art-orbit.two { width: 86px; height: 86px; right: 20%; top: 28%; border-color: rgba(216, 255, 119, 0.3); animation-direction: reverse; animation-duration: 8s; }
.art-dot { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--teal); right: 32%; top: 41%; box-shadow: 0 0 14px var(--teal); }
@keyframes orbit { to { transform: rotate(360deg); } }

.art-motion {
  background:
    linear-gradient(120deg, transparent 0 30%, rgba(89, 227, 211, 0.12) 30% 31%, transparent 31%),
    #061016;
}

.art-block {
  position: absolute;
  display: block;
  border: 1px solid rgba(89, 227, 211, 0.25);
  background: rgba(89, 227, 211, 0.06);
  transform: rotate(-8deg);
}
.art-block.b1 { width: 130px; height: 70px; left: 14%; top: 22%; }
.art-block.b2 { width: 90px; height: 120px; right: 18%; top: 20%; border-color: rgba(216, 255, 119, 0.22); }
.art-block.b3 { width: 64px; height: 64px; left: 38%; bottom: 12%; border-radius: 50%; }
.art-line { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: linear-gradient(90deg, transparent, rgba(89, 227, 211, 0.5), transparent); transform: rotate(-8deg); }

.art-signal {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 34px;
  background: radial-gradient(circle at 50% 50%, rgba(89, 227, 211, 0.07), transparent 70%), #061016;
}

.art-signal span {
  border: 1px solid rgba(197, 236, 230, 0.12);
  background: rgba(255, 255, 255, 0.015);
}
.art-signal span.lit {
  background: rgba(89, 227, 211, 0.45);
  border-color: var(--teal);
  box-shadow: 0 0 18px rgba(89, 227, 211, 0.35);
}

.work-body { padding: 22px; }
.work-kicker { display: flex; justify-content: space-between; color: var(--faint); font-family: var(--mono); font-size: 7.5px; letter-spacing: 0.09em; text-transform: uppercase; }
.work-body h3 { margin: 20px 0 8px; font-family: var(--serif); font-size: 1.8rem; font-style: italic; font-weight: 500; line-height: 1; }
.work-body p { margin: 0; color: var(--muted); font-size: 11.5px; line-height: 1.75; }
.work-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }

/* ---------- atlas / weather ---------- */
.atlas {
  background:
    radial-gradient(ellipse 55% 45% at 30% 42%, rgba(21, 87, 92, 0.12), transparent 68%),
    rgba(4, 10, 14, 0.72);
}

.atlas-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: stretch;
}

.globe-panel,
.atlas-panel {
  border: 1px solid var(--line);
  background: rgba(6, 15, 20, 0.62);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.globe-panel { padding: 18px; display: flex; flex-direction: column; }

.globe-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.globe-live { display: flex; align-items: center; gap: 7px; color: var(--teal); }
.globe-live i {
  width: 5px; height: 5px; border-radius: 50%; background: var(--teal);
  box-shadow: 0 0 10px rgba(89, 227, 211, 0.8);
  animation: livePulse 2s infinite;
}
@keyframes livePulse { 50% { opacity: 0.28; } }

.globe-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  margin: 8px auto;
  max-width: 620px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(30, 88, 91, 0.18), transparent 62%),
    #03090c;
}

#globeCanvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
}
#globeCanvas:active { cursor: grabbing; }

.globe-stage::after {
  content: "";
  position: absolute;
  inset: 7%;
  border: 1px solid rgba(89, 227, 211, 0.12);
  border-radius: 50%;
  pointer-events: none;
  box-shadow: 0 0 80px rgba(89, 227, 211, 0.06) inset;
}

.globe-hint {
  position: absolute;
  left: 50%;
  bottom: 12px;
  z-index: 2;
  transform: translateX(-50%);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  pointer-events: none;
  white-space: nowrap;
}

.globe-cities {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.globe-cities button {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.globe-cities button:hover, .globe-cities button.active {
  color: var(--bg); background: var(--teal); border-color: var(--teal);
}

.atlas-panel { padding: 24px; }

.place-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.place-label { color: var(--faint); font-family: var(--mono); font-size: 7.5px; letter-spacing: 0.1em; text-transform: uppercase; }
.place-row h3 { margin: 7px 0 2px; font-family: var(--serif); font-size: clamp(1.7rem, 2.8vw, 2.35rem); font-style: italic; font-weight: 500; line-height: 1; }
.place-row p { margin: 0; color: var(--faint); font-family: var(--mono); font-size: 8px; letter-spacing: 0.04em; }
.weather-time { color: var(--teal); font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; }

.weather-now {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 22px 0;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.weather-icon { flex: none; width: 54px; text-align: center; font-size: 2.4rem; line-height: 1; filter: drop-shadow(0 0 14px rgba(89, 227, 211, 0.22)); }
.weather-temp-wrap { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.weather-temp-wrap strong { font-family: var(--serif); font-size: clamp(2.8rem, 4vw, 4rem); font-style: italic; font-weight: 500; line-height: 0.9; }
.weather-temp-wrap span { color: var(--muted); font-size: 10px; }
.weather-feels { display: flex; flex-direction: column; gap: 2px; align-items: flex-end; }
.weather-feels span { color: var(--faint); font-family: var(--mono); font-size: 7px; letter-spacing: 0.08em; text-transform: uppercase; }
.weather-feels strong { color: var(--ink); font-family: var(--mono); font-size: 12px; font-weight: 400; }

.weather-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.weather-grid div { padding: 9px 0; border-bottom: 1px solid var(--line); }
.weather-grid span { display: block; color: var(--faint); font-family: var(--mono); font-size: 6.5px; letter-spacing: 0.08em; text-transform: uppercase; }
.weather-grid strong { display: block; margin-top: 3px; color: var(--muted); font-family: var(--mono); font-size: 9px; font-weight: 400; white-space: nowrap; }

.forecast { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; margin-top: 16px; }
.forecast div { padding: 8px 6px; border: 1px solid rgba(197, 236, 230, 0.08); text-align: center; }
.forecast span { display: block; color: var(--faint); font-family: var(--mono); font-size: 6.5px; letter-spacing: 0.04em; text-transform: uppercase; }
.forecast i { display: block; margin: 5px 0 3px; font-size: 1rem; font-style: normal; }
.forecast strong { display: block; color: var(--muted); font-family: var(--mono); font-size: 7.5px; font-weight: 400; }

.map-wrap { position: relative; margin-top: 16px; border: 1px solid var(--line); overflow: hidden; }
.world-map { width: 100%; height: 230px; background: #071115; }
.world-map .atlas-earth-overlay { filter: brightness(0.72) saturate(0.82) contrast(1.06); }
.world-map .leaflet-control-zoom a { background: #071115; color: var(--teal); border-color: var(--line); }
.world-map .leaflet-control-attribution { background: rgba(4, 11, 15, 0.7); color: var(--faint); font-size: 7px; }
.world-map .leaflet-control-attribution a { color: var(--teal); }
.map-credit { position: absolute; right: 6px; bottom: 4px; z-index: 500; color: var(--faint); font-family: var(--mono); font-size: 6px; pointer-events: none; opacity: 0.7; }

.weather-status { min-height: 14px; margin-top: 10px; color: var(--faint); font-family: var(--mono); font-size: 7px; letter-spacing: 0.04em; }
.weather-status.error { color: #ff8a78; }

.signal-miss .hero-shine { opacity: 1; }

/* ---------- play ---------- */
.play {
  background:
    radial-gradient(ellipse 55% 55% at 78% 45%, rgba(23, 101, 103, 0.15), transparent 66%),
    rgba(4, 11, 15, 0.6);
}

.play-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: clamp(50px, 8vw, 120px);
}

.play-copy .lead { margin: 22px 0 10px; color: var(--ink); font-family: var(--sans); font-size: 1.2rem; }
.play-copy p:not(.lead) { color: var(--muted); font-size: 13px; line-height: 1.8; max-width: 380px; }

.rules { list-style: none; margin: 30px 0 0; padding: 0; border-top: 1px solid var(--line); }
.rules li { display: flex; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-family: var(--mono); font-size: 8px; letter-spacing: 0.05em; text-transform: uppercase; }
.rules li span { color: var(--teal); }

.play-signature { display: flex; align-items: center; gap: 12px; margin-top: 28px; color: var(--faint); font-family: var(--mono); font-size: 8px; letter-spacing: 0.08em; text-transform: uppercase; }
.play-signature strong { color: var(--ink); font-weight: 400; }
.sig-line { width: 34px; height: 1px; background: var(--teal); }

.game-shell {
  position: relative;
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(7, 17, 22, 0.65);
  box-shadow: 0 30px 70px -36px rgba(0, 0, 0, 0.9);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.game-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 4px 2px 18px; }
.game-stats { display: flex; gap: clamp(18px, 3vw, 38px); }
.game-stats div { display: flex; flex-direction: column; gap: 2px; }
.game-stats span { color: var(--faint); font-family: var(--mono); font-size: 7px; letter-spacing: 0.12em; text-transform: uppercase; }
.game-stats strong { font-family: var(--mono); font-size: 1.25rem; font-weight: 400; line-height: 1; }
.game-stats div:nth-child(3) strong { color: var(--teal); }

.game-start {
  height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(89, 227, 211, 0.35);
  border-radius: 999px;
  background: transparent;
  color: var(--teal);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}
.game-start:hover { background: var(--teal); color: #03100f; }

.signal-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
  aspect-ratio: 1;
  max-height: 480px;
  margin: 0 auto;
}

.signal-cell {
  position: relative;
  border: 1px solid rgba(197, 236, 230, 0.12);
  background: rgba(255, 255, 255, 0.018);
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.14s, border-color 0.14s, box-shadow 0.14s, transform 0.14s;
}

.signal-cell:hover { border-color: rgba(89, 227, 211, 0.28); }

.signal-cell.active {
  border-color: var(--teal);
  background: radial-gradient(circle at 50% 50%, rgba(89, 227, 211, 0.82), rgba(89, 227, 211, 0.22) 64%, transparent 70%);
  box-shadow: 0 0 26px rgba(89, 227, 211, 0.35), inset 0 0 18px rgba(89, 227, 211, 0.24);
  transform: scale(0.97);
}

.signal-cell.hit { animation: cellHit 0.3s var(--ease); }
.signal-cell.miss { border-color: rgba(255, 115, 92, 0.8); background: rgba(255, 90, 70, 0.16); animation: cellMiss 0.3s var(--ease); }

@keyframes cellHit { 50% { background: rgba(216, 255, 119, 0.7); border-color: var(--lime); } }
@keyframes cellMiss { 50% { transform: translateX(2px); } }

.signal-overlay {
  position: absolute;
  inset: 62px 18px 54px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(4, 11, 15, 0.84);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  text-align: center;
  transition: opacity 0.3s, visibility 0.3s;
}
.signal-overlay.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.overlay-kicker { color: var(--teal); font-family: var(--mono); font-size: 8px; letter-spacing: 0.16em; text-transform: uppercase; }
.signal-overlay strong { margin-top: 14px; font-family: var(--serif); font-size: clamp(2.4rem, 4vw, 3.8rem); font-style: italic; font-weight: 500; line-height: 0.95; }
.signal-overlay p { margin: 14px 0 22px; color: var(--muted); font-size: 11px; line-height: 1.8; }
.signal-overlay button { height: 38px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--teal); color: #03100f; font-family: var(--mono); font-size: 8px; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; }
.signal-overlay button:hover { background: var(--lime); }

.game-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 2px 2px; color: var(--faint); font-family: var(--mono); font-size: 7.5px; letter-spacing: 0.05em; }
.game-mono { color: rgba(89, 227, 211, 0.55); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(50px, 9vw, 140px); align-items: start; }

.contact-card { padding: 30px; border: 1px solid var(--line); background: rgba(7, 17, 22, 0.5); }
.contact-lead { margin: 0 0 28px; color: var(--muted); font-size: 13px; line-height: 1.8; max-width: 440px; }

.email {
  display: inline-block;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  font-style: italic;
  line-height: 1.1;
  text-decoration: none;
  border-bottom: 1px solid rgba(89, 227, 211, 0.45);
  overflow-wrap: anywhere;
}
.email:hover { color: var(--teal); }

.copy {
  display: block;
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.copy:hover { color: var(--teal); }

.contact-details { display: grid; gap: 0; margin-top: 32px; border-top: 1px solid var(--line); }
.contact-details div { display: flex; justify-content: space-between; gap: 24px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.contact-details span { color: var(--faint); font-family: var(--mono); font-size: 7.5px; letter-spacing: 0.08em; text-transform: uppercase; }
.contact-details strong { color: var(--muted); font-size: 10px; font-weight: 400; text-align: right; }

.contact-foot { display: flex; justify-content: space-between; gap: 20px; margin-top: 30px; color: var(--faint); font-family: var(--mono); font-size: 8px; letter-spacing: 0.05em; }
.contact-foot a { color: var(--teal); text-decoration: none; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 24px 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; color: var(--faint); font-family: var(--mono); font-size: 8px; letter-spacing: 0.05em; }
.footer a { color: var(--teal); text-decoration: none; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1060px) {
  .shell { width: min(100% - 56px, 980px); }
  .topbar { padding: 0 28px; }
  .bar-status { display: none; }
  .hero-inner { grid-template-columns: 1fr 0.66fr; gap: 40px; }
  .id-card-inner { min-height: 430px; }
  .id-card-main h2 { font-size: 2.9rem; }
  .work-grid { grid-template-columns: 1fr 1fr; }
  .work-card:last-child { grid-column: span 2; }
  .work-card:last-child .work-art { height: 180px; }
}

@media (max-width: 820px) {
  .nav {
    position: fixed;
    top: 78px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 190px;
    padding: 10px;
    border-radius: 14px;
    background: rgba(4, 11, 15, 0.96);
  }
  .nav.open { display: flex; }
  .nav a { padding: 10px 12px; }
  .menu-btn { display: block; }
  .hero { min-height: auto; }
  .hero-inner { grid-template-columns: 1fr; gap: 42px; min-height: auto; padding-top: 140px; padding-bottom: 100px; }
  .hero h1 { font-size: clamp(4.2rem, 16vw, 7rem); }
  .id-card { justify-self: start; width: min(360px, 100%); }
  .id-card-inner { min-height: 410px; }
  .scroll-cue { display: none; }
  .about-grid, .play-grid, .contact-grid { grid-template-columns: 1fr; gap: 42px; }
  .section-head { display: block; }
  .section-note { margin-top: 18px; text-align: left; }
  .work-grid { grid-template-columns: 1fr; }
  .work-card:last-child { grid-column: auto; }
  .work-art { height: 200px; }
  .game-shell { order: 2; }
  .signal-board { max-height: none; }
}

@media (max-width: 520px) {
  .shell { width: calc(100% - 40px); }
  .topbar { height: 68px; padding: 0 20px; }
  .brand-copy small { display: none; }
  .nav { top: 68px; right: 14px; }
  .hero-inner { padding-top: 116px; }
  .hero-meta { gap: 8px 16px; }
  .id-card-inner { padding: 20px; min-height: 390px; }
  .id-card-main { padding: 26px 0 18px; }
  .id-card-main h2 { font-size: 2.7rem; }
  .id-card-foot { left: 20px; right: 20px; bottom: 18px; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .about-stats div:last-child { grid-column: span 2; }
  .section-label h2, .section-head h2, .play-copy h2, .contact h2 { font-size: clamp(2.5rem, 12vw, 3.4rem); }
  .game-shell { padding: 12px; }
  .signal-overlay { inset: 58px 12px 50px; }
  .game-stats { gap: 16px; }
  .game-stats strong { font-size: 1.05rem; }
  .contact-card { padding: 22px; }
  .footer-inner { flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .art-orbit, .scroll-cue i { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .id-card-inner { transition: none; }
}

@media (max-width: 820px) {
  .atlas-grid { grid-template-columns: 1fr; }
  .globe-stage { max-width: 500px; }
  .world-map { height: 210px; }
}

@media (max-width: 520px) {
  .atlas-panel { padding: 18px; }
  .globe-panel { padding: 14px; }
  .weather-grid { grid-template-columns: 1fr 1fr; }
  .forecast { grid-template-columns: repeat(5, 1fr); gap: 3px; }
  .forecast div { padding: 7px 3px; }
  .forecast span { font-size: 5.8px; }
  .weather-now { gap: 10px; }
  .weather-icon { width: 40px; font-size: 1.9rem; }
  .map-wrap .world-map { height: 190px; }
}

.atlas-marker {
  display: grid;
  place-items: center;
}
.atlas-marker span {
  display: block;
  width: 12px;
  height: 12px;
  border: 1px solid #04100f;
  border-radius: 50%;
  background: #59e3d3;
  box-shadow: 0 0 0 5px rgba(89, 227, 211, 0.18), 0 0 18px rgba(89, 227, 211, 0.6);
}
.map-unavailable {
  display: grid;
  place-items: center;
  height: 100%;
  margin: 0;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  text-align: center;
}


.atlas-search {
  position: relative;
  z-index: 12;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  padding: 4px 4px 4px 12px;
  border: 1px solid rgba(89, 227, 211, 0.22);
  background: rgba(4, 12, 16, 0.78);
}

.search-icon {
  flex: none;
  color: var(--teal);
  font-size: 18px;
  line-height: 1;
  transform: translateY(-1px);
}

.atlas-search input {
  flex: 1;
  min-width: 0;
  height: 34px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--body);
  font-size: 12px;
}
.atlas-search input::placeholder { color: var(--faint); }
.atlas-search input::-webkit-search-cancel-button { filter: invert(1) opacity(0.4); }

.atlas-search > button {
  flex: none;
  height: 32px;
  padding: 0 13px;
  border: 0;
  background: var(--teal);
  color: #03100f;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.atlas-search > button:hover { background: var(--lime); }

.search-hint {
  margin: 7px 0 0;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: 0.04em;
  line-height: 1.6;
}

.search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 30;
  max-height: 280px;
  overflow: auto;
  border: 1px solid rgba(89, 227, 211, 0.24);
  background: rgba(4, 12, 16, 0.97);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.search-results[hidden] { display: none; }

.search-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid rgba(197, 236, 230, 0.08);
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.search-result:last-child { border-bottom: 0; }
.search-result:hover, .search-result:focus-visible { background: rgba(89, 227, 211, 0.09); outline: none; }
.search-result strong { display: block; font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: 0.01em; }
.search-result small { display: block; margin-top: 2px; color: var(--faint); font-family: var(--mono); font-size: 7px; letter-spacing: 0.03em; }
.search-result em { flex: none; color: var(--teal); font-family: var(--mono); font-size: 7px; font-style: normal; letter-spacing: 0.04em; }
.search-empty { padding: 14px 12px; color: var(--faint); font-family: var(--mono); font-size: 8px; line-height: 1.6; }

.atlas-search .search-result {
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--body);
}


.atlas-search .search-result {
  background: #071115 !important;
  color: var(--ink) !important;
  height: auto !important;
  min-height: 0 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}
.atlas-search .search-result:hover,
.atlas-search .search-result:focus-visible {
  background: rgba(89, 227, 211, 0.12) !important;
}
.atlas-search .search-result small { color: var(--faint) !important; }

/* ============================================================
   Weather-first theme
   ============================================================ */
body {
  --sky-glow: rgba(21, 92, 97, 0.24);
  --sky-deep: #050a0e;
  background:
    radial-gradient(ellipse 80% 50% at 64% 0%, var(--sky-glow), transparent 62%),
    var(--sky-deep);
}

body[data-weather="clear"][data-day="1"] { --sky-glow: rgba(226, 160, 66, 0.18); --sky-deep: #071015; }
body[data-weather="clear"][data-day="0"] { --sky-glow: rgba(55, 86, 150, 0.2); --sky-deep: #050912; }
body[data-weather="cloud"] { --sky-glow: rgba(80, 128, 138, 0.22); --sky-deep: #060c11; }
body[data-weather="rain"] { --sky-glow: rgba(44, 85, 116, 0.25); --sky-deep: #04090e; }
body[data-weather="snow"] { --sky-glow: rgba(160, 204, 216, 0.2); --sky-deep: #071016; }
body[data-weather="fog"] { --sky-glow: rgba(132, 151, 148, 0.18); --sky-deep: #080d0f; }
body[data-weather="storm"] { --sky-glow: rgba(35, 65, 100, 0.28); --sky-deep: #03070c; }

.hero {
  background:
    radial-gradient(ellipse 90% 70% at 66% 35%, var(--sky-glow), transparent 70%),
    var(--sky-deep);
}

.tagline em {
  color: var(--teal);
  font-family: var(--serif);
  font-size: 0.98em;
  font-weight: 400;
}

.bar-weather {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.bar-weather i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px rgba(216, 255, 119, 0.7);
}
.bar-weather strong { color: var(--ink); font-weight: 400; }
.bar-weather > span:last-child { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Hero weather ID card */
.id-card-inner {
  min-height: 500px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.id-weather {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 22px 0 4px;
}

.id-weather-icon {
  flex: none;
  width: 62px;
  text-align: center;
  font-size: 3.25rem;
  line-height: 1;
  filter: drop-shadow(0 0 18px rgba(89, 227, 211, 0.25));
}

.id-weather-reading { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.id-weather-reading strong {
  font-family: var(--serif);
  font-size: 4.4rem;
  font-style: italic;
  font-weight: 500;
  line-height: 0.85;
  letter-spacing: -0.04em;
}
.id-weather-reading span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.id-place {
  position: relative;
  z-index: 1;
  margin: 10px 0 0;
  color: var(--teal);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.id-person {
  position: relative;
  z-index: 1;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.id-person h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 2.55rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1;
}
.id-person .id-roman { margin-top: 9px; }
.id-person .id-role { margin-top: 10px; }

.id-weather-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 18px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.id-weather-stats div { min-width: 0; }
.id-weather-stats span {
  display: block;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.id-weather-stats strong {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 400;
  white-space: nowrap;
}

.hero-forecast {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 14px;
  padding-bottom: 36px;
}
.hero-forecast div {
  padding: 8px 4px;
  border: 1px solid rgba(197, 236, 230, 0.08);
  text-align: center;
}
.hero-forecast span {
  display: block;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero-forecast i { display: block; margin: 4px 0 2px; font-size: 1rem; font-style: normal; }
.hero-forecast strong { display: block; color: var(--muted); font-family: var(--mono); font-size: 7px; font-weight: 400; }

/* Bigger weather panel */
.atlas-panel { padding: 32px; }
.weather-now { margin: 28px 0; padding: 28px 0; gap: 20px; }
.weather-icon { width: 82px; font-size: 4rem; }
.weather-temp-wrap strong { font-size: clamp(4.8rem, 7vw, 7rem); }
.weather-temp-wrap span { font-size: 12px; }
.weather-feels strong { font-size: 14px; }
.weather-grid { gap: 14px; }
.weather-grid div { padding: 14px 0; }
.weather-grid span { font-size: 7px; }
.weather-grid strong { margin-top: 6px; font-size: 11px; }
.forecast { gap: 8px; margin-top: 20px; }
.forecast div { padding: 14px 8px; }
.forecast span { font-size: 7px; }
.forecast i { margin: 8px 0 5px; font-size: 1.35rem; }
.forecast strong { font-size: 9px; }
.world-map { height: 285px; }
.place-row h3 { font-size: clamp(2.1rem, 3.2vw, 3rem); }
.place-row p { font-size: 9px; }
.weather-time { font-size: 13px; }

@media (max-width: 1060px) {
  .bar-weather { display: none; }
}

@media (max-width: 820px) {
  .id-card-inner { min-height: 475px; }
  .atlas-panel { padding: 24px; }
  .weather-temp-wrap strong { font-size: clamp(4rem, 12vw, 5.4rem); }
  .weather-icon { width: 62px; font-size: 3.1rem; }
  .world-map { height: 240px; }
}

@media (max-width: 520px) {
  .id-weather-reading strong { font-size: 3.8rem; }
  .id-weather-icon { width: 52px; font-size: 2.7rem; }
  .id-person h2 { font-size: 2.2rem; }
  .id-card-inner { min-height: 455px; }
  .atlas-panel { padding: 18px; }
  .weather-now { gap: 12px; }
  .weather-icon { width: 48px; font-size: 2.4rem; }
  .weather-temp-wrap strong { font-size: 4.2rem; }
  .forecast { gap: 4px; }
  .forecast div { padding: 10px 3px; }
  .world-map { height: 210px; }
}

/* Full-width map below the weather panels */
.atlas-map-wide {
  margin-top: 24px;
  padding: 16px;
  border: 1px solid var(--line);
  background: rgba(6, 15, 20, 0.62);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.map-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 2px 12px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.map-head span:first-child { color: var(--teal); }

.atlas-map-wide .map-wrap {
  margin-top: 0;
}
.atlas-map-wide .world-map {
  height: 480px;
}

@media (max-width: 1060px) {
  .atlas-map-wide .world-map { height: 400px; }
}

@media (max-width: 820px) {
  .atlas-map-wide { padding: 12px; }
  .atlas-map-wide .world-map { height: 330px; }
}

@media (max-width: 520px) {
  .atlas-map-wide { padding: 8px; }
  .atlas-map-wide .world-map { height: 280px; }
  .map-head { font-size: 6.5px; }
}

/* Poetic weather statement replaces the oversized name treatment. */
.hero h1.hero-statement {
  max-width: 650px;
  font-size: clamp(2.4rem, 5.6vw, 5.2rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
}
.hero h1.hero-statement em {
  display: block;
  color: var(--teal);
}

/* ============================================================
   Daily tools: weather outfit planner + converter
   ============================================================ */
.daily-tools {
  background:
    radial-gradient(ellipse 50% 50% at 22% 40%, rgba(23, 99, 104, 0.12), transparent 70%),
    rgba(4, 10, 14, 0.45);
}

.tools-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 20px;
  align-items: stretch;
}

.daily-card {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line);
  background: rgba(6, 15, 20, 0.62);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.daily-card::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -110px;
  top: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(89, 227, 211, 0.08), transparent 68%);
  pointer-events: none;
}

.daily-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.daily-kicker {
  margin: 0 0 8px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.daily-head h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 3.2vw, 2.9rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1;
}

.daily-temp {
  flex: none;
  color: var(--teal);
  font-family: var(--serif);
  font-size: 2rem;
  font-style: italic;
  line-height: 1;
}

.daily-lead {
  position: relative;
  z-index: 1;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.outfit-status {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.outfit-icon {
  flex: none;
  width: 54px;
  text-align: center;
  font-size: 2.5rem;
  line-height: 1;
  filter: drop-shadow(0 0 14px rgba(89, 227, 211, 0.2));
}

.outfit-status div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.outfit-status strong { font-family: var(--sans); font-size: 13px; font-weight: 500; }
.outfit-status span { color: var(--faint); font-size: 9px; line-height: 1.5; }

.outfit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.outfit-grid > div { padding: 12px 10px; border: 1px solid rgba(197, 236, 230, 0.08); background: rgba(255, 255, 255, 0.015); }
.outfit-grid span { display: block; color: var(--faint); font-family: var(--mono); font-size: 6.5px; letter-spacing: 0.08em; text-transform: uppercase; }
.outfit-grid strong { display: block; margin-top: 7px; color: var(--ink); font-family: var(--sans); font-size: 12px; font-weight: 500; line-height: 1.2; }
.outfit-grid small { display: block; margin-top: 4px; color: var(--faint); font-size: 8px; line-height: 1.45; }

.outfit-meter {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.outfit-meter i {
  position: relative;
  flex: 1;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #4e8dab, #59e3d3 52%, #e8a33d);
}
.outfit-meter b {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  border: 2px solid #071115;
  border-radius: 50%;
  background: #f8fbf7;
  transform: translate(-50%, -50%);
  transition: left 0.5s var(--ease);
}

/* converter */
.conv-tabs {
  display: flex;
  gap: 4px;
  margin-top: 20px;
  padding: 4px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}
.conv-tabs button {
  flex: 1;
  padding: 7px 6px;
  border: 0;
  background: transparent;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.conv-tabs button:hover { color: var(--ink); }
.conv-tabs button.active { background: var(--teal); color: #03100f; }

.conv-label {
  display: block;
  margin: 20px 0 6px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.conv-input {
  width: 100%;
  height: 48px;
  padding: 0 13px;
  border: 1px solid var(--line);
  outline: 0;
  background: rgba(255, 255, 255, 0.035);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.35rem;
  transition: border-color 0.2s, background 0.2s;
}
.conv-input:focus { border-color: rgba(89, 227, 211, 0.5); background: rgba(255, 255, 255, 0.055); }

.conv-result {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.conv-result span { color: var(--faint); font-family: var(--mono); font-size: 8px; letter-spacing: 0.05em; text-transform: uppercase; }
.conv-arrow { color: var(--teal) !important; }
.conv-result strong { margin-left: auto; color: var(--teal); font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 2.5rem); font-style: italic; font-weight: 500; line-height: 1; }

.conv-hint { margin: 14px 0 0; color: var(--faint); font-family: var(--mono); font-size: 7px; line-height: 1.6; }

@media (max-width: 900px) {
  .tools-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .daily-card { padding: 20px; }
  .outfit-grid { grid-template-columns: 1fr; }
  .outfit-grid > div { padding: 10px; }
  .outfit-status { gap: 10px; }
  .outfit-icon { width: 42px; font-size: 2rem; }
  .conv-tabs button { font-size: 6.3px; }
}

.outfit-icon { font-size: 3.2rem; }
.conv-tabs button { font-size: 8px; color: rgba(226, 242, 239, 0.52); }
.conv-tabs button.active { color: #03100f; }
@media (max-width: 520px) {
  .conv-tabs button { font-size: 7px; }
  .outfit-icon { font-size: 2.6rem; }
}

/* Readability pass for the framed tool cards */
.daily-card { padding: 30px; }
.daily-kicker { font-size: 8.5px; }
.daily-lead { font-size: 13px; line-height: 1.7; }
.daily-temp { font-size: 2.2rem; }

.outfit-status strong { font-size: 15px; }
.outfit-status span { font-size: 11px; }
.outfit-icon { font-size: 3.2rem; }

.outfit-grid > div { padding: 14px 12px; }
.outfit-grid span { font-size: 8.5px; }
.outfit-grid strong { margin-top: 8px; font-size: 14px; }
.outfit-grid small { margin-top: 5px; font-size: 10.5px; line-height: 1.5; }
.outfit-meter { font-size: 7.5px; }

.conv-tabs button { padding: 9px 6px; font-size: 10px; }
.conv-label { margin-top: 22px; font-size: 9px; }
.conv-input { height: 52px; font-size: 1.45rem; }
.conv-result span { font-size: 9.5px; }
.conv-result strong { font-size: clamp(2rem, 3.2vw, 2.8rem); }
.conv-hint { font-size: 9px; line-height: 1.65; }

/* Larger labels inside the weather frames too */
.weather-grid span { font-size: 8px; }
.weather-grid strong { font-size: 12px; }
.forecast span { font-size: 8px; }
.forecast strong { font-size: 10px; }
.hero-forecast span { font-size: 7px; }
.hero-forecast strong { font-size: 8px; }
.id-weather-stats span { font-size: 7px; }
.id-weather-stats strong { font-size: 10px; }

@media (max-width: 520px) {
  .daily-card { padding: 22px; }
  .conv-tabs button { font-size: 8.5px; }
  .outfit-grid span { font-size: 8px; }
  .outfit-grid strong { font-size: 13px; }
  .outfit-grid small { font-size: 10px; }
}

section[id] { scroll-margin-top: 92px; }
