:root {
  --bg: #05060a;
  --bg-2: #0a0c14;
  --ink: #e7ecf5;
  --ink-dim: #9aa3b8;
  --ink-mute: #5b637a;
  --line: rgba(231, 236, 245, 0.08);
  --line-strong: rgba(231, 236, 245, 0.18);
  --cyan: #8fd7ff;
  --violet: #b7b5ff;
  --glow: rgba(143, 215, 255, 0.55);
  --panel: rgba(10, 12, 20, 0.72);
  --panel-edge: rgba(183, 181, 255, 0.14);
  --danger: #ffb3b3;
  --ok: #b9f3d4;
  --radius: 2px;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --display: "Space Grotesk", "Inter Tight", system-ui, sans-serif;
  --sans: "Inter Tight", "Inter", system-ui, -apple-system, "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  height: 100%;
  height: 100dvh;
  letter-spacing: 0.005em;
  overscroll-behavior: none;
  -webkit-text-size-adjust: 100%;
}

canvas { display: block; }

#scene {
  position: fixed;
  inset: 0;
  z-index: 0;
}

#overlay {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

/* Interactive children must opt-in to pointer events. Panel layers handle
   pointer-events themselves (none when closed, auto when open). */
.tweaks, .hotspot-btn, .panel-layer.open, .panel-layer.open .scrim, .panel-layer.open .panel {
  pointer-events: auto;
}
.hud .corner { pointer-events: auto; }

/* ---------- HUD ---------- */
.hud {
  position: fixed;
  inset: 0;
  pointer-events: none;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hud .corner {
  position: absolute;
  color: var(--ink-dim);
  display: flex;
  gap: 14px;
  align-items: center;
}
.hud .tl { top: 28px; left: 32px; }
.hud .tr { top: 28px; right: 32px; }
.hud .bl { bottom: 28px; left: 32px; }
.hud .br { bottom: 28px; right: 32px; flex-direction: column; align-items: flex-end; gap: 6px; }

.hud .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--glow);
  animation: pulse 2.4s infinite ease-in-out;
}
@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.hud .brand {
  color: var(--ink);
  letter-spacing: 0.28em;
  font-weight: 500;
}
.hud .sep { color: var(--ink-mute); }
.hud .hint {
  color: var(--ink-mute);
  font-size: 10.5px;
}

.hud .coord {
  color: var(--ink-mute);
  font-variant-numeric: tabular-nums;
}

/* center tagline */
.tagline {
  position: fixed;
  left: 50%;
  bottom: 92px;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-mute);
  text-align: center;
  pointer-events: none;
  opacity: 0;
  animation: fadeUp 1.2s ease-out 1.8s forwards;
}
.tagline .line {
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--ink-mute);
  vertical-align: middle;
  margin: 0 14px;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

/* scan line / vignette */
.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(120% 80% at 50% 50%, transparent 55%, rgba(0,0,0,0.55) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.25) 0%, transparent 30%, transparent 70%, rgba(0,0,0,0.35) 100%);
  mix-blend-mode: multiply;
}
.grain {
  position: fixed; inset: 0; z-index: 1;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.6'/></svg>");
}

/* ---------- Intro ---------- */
.intro {
  position: fixed; inset: 0; z-index: 10;
  background: var(--bg);
  display: grid; place-items: center;
  transition: opacity 900ms ease, visibility 900ms ease;
}
.intro .mark {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.4em;
  color: var(--ink-dim);
  text-align: center;
}
.intro .progress {
  margin-top: 22px;
  width: 100vw; height: 1px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.intro .progress::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  animation: loader 1.6s ease-in-out infinite;
}
@keyframes loader {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.intro.hidden { opacity: 0 !important; visibility: hidden !important; pointer-events: none; }

/* ---------- Panels ---------- */
.panel-layer {
  position: fixed; inset: 0;
  z-index: 5;
  pointer-events: none;
}
.panel-layer .scrim {
  position: absolute; inset: 0;
  background: radial-gradient(60% 80% at 50% 50%, rgba(5, 6, 10, 0.2), rgba(5, 6, 10, 0.85));
  opacity: 0;
  pointer-events: none;
  transition: opacity 600ms ease;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.panel-layer.open .scrim { opacity: 1; pointer-events: auto; }

.panel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%) scale(0.98);
  width: min(1080px, 84vw);
  max-height: 78vh;
  background: linear-gradient(180deg, rgba(12, 14, 22, 0.86), rgba(8, 10, 16, 0.86));
  border: 1px solid var(--panel-edge);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  color: var(--ink);
  opacity: 0;
  pointer-events: none;
  transition: opacity 500ms ease, transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
}
.panel::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(600px 280px at 10% -10%, rgba(183, 181, 255, 0.12), transparent 60%),
    radial-gradient(500px 260px at 100% 110%, rgba(143, 215, 255, 0.10), transparent 60%);
  pointer-events: none;
}
.panel::after {
  content: "";
  position: absolute; inset: 0;
  border: 1px solid transparent;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), transparent 40%) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.panel-layer.open .panel {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 28px 16px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.panel-head .eyebrow {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--cyan);
  display: flex; align-items: center; gap: 10px;
}
.panel-head .eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 10px var(--glow);
}
.panel-head h2 {
  margin: 6px 0 0;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.005em;
}
.panel-head .close {
  appearance: none;
  background: transparent;
  color: var(--ink-dim);
  border: 1px solid var(--line-strong);
  width: 34px; height: 34px;
  display: grid; place-items: center;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 11px;
  transition: all 200ms ease;
}
.panel-head .close:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.panel-body {
  padding: 20px 28px 28px;
  overflow: auto;
  position: relative;
}

/* ---- Profile panel ---- */
.profile-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 32px;
}
.profile-meta {
  display: flex; flex-direction: column; gap: 18px;
}
.profile-card {
  border: 1px solid var(--line);
  padding: 18px 20px;
}
.profile-card .k {
  font-family: var(--mono);
  font-size: 10.5px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 4px;
}
.profile-card .v {
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: -0.005em;
}
.profile-card.name .v {
  font-size: 26px;
  background: linear-gradient(180deg, #fff, #cfd7ec);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.profile-card .sub {
  font-size: 12px;
  color: var(--ink-dim);
  margin-top: 6px;
  font-family: var(--mono);
  letter-spacing: 0.08em;
}

.kvs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
.kvs .row .k {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--ink-mute);
}
.kvs .row .v { font-size: 13px; color: var(--ink); margin-top: 2px; }

.timeline {
  display: flex; flex-direction: column; gap: 18px;
  border-left: 1px solid var(--line);
  padding-left: 22px;
  margin-left: 2px;
  position: relative;
}
.timeline .item { position: relative; }
.timeline .item::before {
  content: "";
  position: absolute;
  left: -27px; top: 6px;
  width: 8px; height: 8px;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--glow);
  border-radius: 50%;
}
.timeline .year {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.24em;
  color: var(--ink-mute); text-transform: uppercase;
}
.timeline .title {
  font-family: var(--display);
  font-size: 15px; margin-top: 2px; color: var(--ink);
  letter-spacing: -0.002em;
}
.timeline .desc {
  margin-top: 6px; font-size: 12.5px; line-height: 1.7; color: var(--ink-dim);
  max-width: 52ch;
}

/* ---- Portfolio panel ---- */
.pf-controls {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.pf-controls .count {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.24em;
  color: var(--ink-mute); text-transform: uppercase;
}
.pf-controls .nav { display: flex; gap: 8px; }
.pf-nav-btn {
  background: transparent; color: var(--ink-dim);
  border: 1px solid var(--line-strong);
  width: 34px; height: 34px; display: grid; place-items: center;
  font-family: var(--mono); cursor: pointer;
  transition: all 200ms ease;
}
.pf-nav-btn:hover:not(:disabled) { color: var(--ink); border-color: var(--ink); }
.pf-nav-btn:disabled { opacity: 0.35; cursor: not-allowed; }

.pf-track-wrap { overflow: hidden; }
.pf-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 24px) / 3);
  gap: 12px;
  transition: transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.pf-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
  padding: 14px;
  display: flex; flex-direction: column; gap: 12px;
  transition: border-color 300ms ease, transform 400ms ease;
  position: relative;
}
.pf-card:hover { border-color: var(--panel-edge); transform: translateY(-2px); }
.pf-card .cover {
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  background: #070810;
}
.pf-card .cover svg { display: block; width: 100%; height: 100%; }
.pf-card .cover .cover-img { width: 100%; height: 100%; }
.pf-card .cover .cover-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pf-card .period {
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.24em;
  color: var(--cyan); text-transform: uppercase;
}
.pf-card h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400; font-size: 16px;
  letter-spacing: -0.005em;
  line-height: 1.25;
}
.pf-card .role {
  font-size: 11.5px; color: var(--ink-dim);
  font-family: var(--mono); letter-spacing: 0.08em;
}
.pf-card .summary {
  font-size: 12px; line-height: 1.65; color: var(--ink-dim);
}
.pf-card .stack { display: flex; flex-wrap: wrap; gap: 6px; }
.pf-card .chip {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em;
  padding: 3px 8px;
  border: 1px solid var(--line-strong);
  color: var(--ink-dim);
}
.pf-card .link {
  margin-top: auto;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--ink);
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.pf-card .link:hover { color: var(--cyan); }

/* ---- Contact ---- */
.contact-wrap {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
}
.contact-side p {
  color: var(--ink-dim);
  font-size: 13px; line-height: 1.8;
}
.contact-side .channels {
  margin-top: 20px;
  display: flex; flex-direction: column; gap: 10px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em;
}
.contact-side .channels a {
  color: var(--ink); text-decoration: none;
  border-bottom: 1px dashed var(--line-strong);
  padding-bottom: 4px;
}
.contact-side .channels a:hover { color: var(--cyan); border-color: var(--cyan); }

.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field .label {
  font-family: var(--mono);
  font-size: 10.5px; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--ink-dim);
  display: flex; align-items: center; justify-content: space-between;
}
.field .label .req { color: var(--cyan); letter-spacing: 0.08em; }
.field input,
.field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-strong);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  padding: 10px 2px;
  outline: none;
  transition: border-color 250ms ease, box-shadow 250ms ease;
  resize: none;
}
.field textarea { min-height: 110px; }
.field input::placeholder, .field textarea::placeholder {
  color: var(--ink-mute);
}
.field input:focus, .field textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 1px 0 0 var(--cyan);
}
.field.error input, .field.error textarea {
  border-color: var(--danger);
  box-shadow: 0 1px 0 0 var(--danger);
}
.field .err-msg {
  font-family: var(--mono); font-size: 10.5px;
  color: var(--danger); margin-top: 2px; letter-spacing: 0.08em;
  min-height: 14px;
}

.check {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 12.5px; color: var(--ink-dim); line-height: 1.55;
  cursor: pointer; user-select: none;
}
.check input { appearance: none; display: none; }
.check .box {
  width: 16px; height: 16px; flex-shrink: 0;
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  margin-top: 2px;
  transition: all 200ms ease;
}
.check input:checked + .box {
  background: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 12px var(--glow);
}
.check input:checked + .box::after {
  content: "";
  width: 8px; height: 4px;
  border-left: 1.5px solid #050810;
  border-bottom: 1.5px solid #050810;
  transform: translateY(-1px) rotate(-45deg);
}
.check a { color: var(--ink); border-bottom: 1px dashed var(--line-strong); text-decoration: none; }

.submit {
  margin-top: 8px;
  align-self: flex-start;
  appearance: none;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 14px 30px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 300ms ease;
}
.submit:hover:not(:disabled) {
  background: var(--ink);
  color: var(--bg);
  box-shadow: 0 0 30px rgba(231, 236, 245, 0.2);
}
.submit:disabled {
  opacity: 0.4; cursor: not-allowed;
  border-color: var(--line-strong);
  color: var(--ink-mute);
}
.submit.sent {
  background: var(--ok);
  border-color: var(--ok);
  color: #062015;
}

/* ---- Privacy policy ---- */
.policy {
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-dim);
  max-width: 720px;
}
.policy h3 {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
  font-family: var(--mono);
  font-weight: 600;
  margin: 26px 0 8px;
}
.policy h3:first-child { margin-top: 0; }
.policy p { margin: 0 0 10px; }
.policy ul { margin: 4px 0 14px; padding-left: 18px; }
.policy ul li { margin: 2px 0; }
.policy .meta {
  margin-top: 32px;
  padding-top: 14px;
  border-top: 1px solid var(--panel-edge);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  font-family: var(--mono);
  text-transform: uppercase;
}

/* ---- Hotspot labels (DOM overlay above canvas) ---- */
.hotspot-label {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: none;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.55;
  transition: opacity 260ms ease, transform 260ms ease;
  white-space: nowrap;
  padding: 4px 10px;
  background: rgba(10, 12, 20, 0.72);
  border: 1px solid var(--panel-edge);
  backdrop-filter: blur(8px);
}
.hotspot-label.visible {
  opacity: 1;
  transform: translate(-50%, calc(-50% - 2px));
}
.hotspot-label .hint {
  display: block;
  color: var(--ink-mute);
  font-size: 9px;
  letter-spacing: 0.18em;
  margin-top: 2px;
}

/* Invisible but clickable button over each 3D hotspot */
.hotspot-btn {
  position: absolute;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: transparent;
  border: 0;
  cursor: pointer;
  pointer-events: auto;
  padding: 0;
  outline: none;
  transition: background 200ms ease;
}
.hotspot-btn:hover {
  background: radial-gradient(circle, rgba(143,215,255,0.12), transparent 70%);
}
.hotspot-btn:focus-visible {
  outline: 1px solid var(--cyan);
  outline-offset: 2px;
}

/* ---------- Tweaks ---------- */
.tweaks {
  position: fixed; right: 24px; bottom: 24px;
  z-index: 20;
  width: 260px;
  background: rgba(10, 12, 20, 0.82);
  border: 1px solid var(--panel-edge);
  color: var(--ink);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  display: none;
}
.tweaks.visible { display: block; }
.tweaks h4 {
  margin: 0;
  padding: 12px 14px;
  font-size: 10.5px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--ink-dim);
  border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
}
.tweaks h4 .dot-mini {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 8px var(--glow);
}
.tweaks .group { padding: 12px 14px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.tweaks .group:last-child { border-bottom: none; }
.tweaks label { color: var(--ink-dim); text-transform: uppercase; }
.tweaks .swatches { display: flex; gap: 6px; }
.tweaks .swatch {
  width: 22px; height: 22px; border: 1px solid var(--line-strong);
  cursor: pointer; padding: 0;
  transition: border-color 200ms ease;
}
.tweaks .swatch.active { border-color: var(--ink); box-shadow: 0 0 10px rgba(255,255,255,0.3); }
.tweaks input[type=range] {
  width: 100%; accent-color: var(--cyan);
}
.tweaks .row {
  display: flex; justify-content: space-between; color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hud .tl, .hud .tr { top: 16px; }
  .hud .tl { left: 18px; } .hud .tr { right: 18px; }
  .hud .bl { bottom: 18px; left: 18px; }
  .hud .br { bottom: 18px; right: 18px; }
  .panel { width: 92vw; max-height: 86vh; max-height: 86dvh; }
  .panel-body { padding: 16px 18px 22px; }
  .panel-head { padding: 16px 18px 12px; }
  .profile-grid, .contact-wrap { grid-template-columns: 1fr; gap: 20px; }
  .kvs { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  /* Slimmer HUD; hide secondary text so corners don't crowd the logo */
  .hud { font-size: 9.5px; letter-spacing: 0.1em; }
  .hud .corner { gap: 10px; }
  .hud .br { max-width: calc(50vw - 18px); text-align: right; line-height: 1.45; }
  .hud .tl { top: max(14px, env(safe-area-inset-top)); left: max(14px, env(safe-area-inset-left)); }
  .hud .tr { top: max(14px, env(safe-area-inset-top)); right: max(14px, env(safe-area-inset-right)); }
  .hud .bl { bottom: max(14px, env(safe-area-inset-bottom)); left: max(14px, env(safe-area-inset-left)); }
  .hud .br { bottom: max(14px, env(safe-area-inset-bottom)); right: max(14px, env(safe-area-inset-right)); }
  .hud .tl .sep, .hud .tl .sep ~ span,
  .hud .tr .coord, .hud .tr .sep,
  .hud .bl .sep, .hud .bl .hint,
  .hud .br .hint { display: none; }
  .hud .brand { letter-spacing: 0.22em; }

  .tagline { bottom: 72px; font-size: 9px; letter-spacing: 0.24em; padding: 0 20px; }
  .tagline .line { width: 18px; margin: 0 8px; }

  .tweaks { right: 12px; bottom: 12px; width: calc(100% - 24px); }

  /* Portfolio carousel: 1 card per view on phones (JS sets per=1 via inline style) */
  .pf-card .cover { aspect-ratio: 16 / 9; }

  /* Tighter panel chrome and body padding */
  .panel { width: 94vw; max-height: 88vh; max-height: 88dvh; }
  .panel-head { padding: 14px 16px 10px; }
  .panel-head h2 { font-size: 18px; }
  .panel-head .eyebrow { font-size: 10px; letter-spacing: 0.26em; }
  .panel-body { padding: 14px 16px 22px; }

  .kvs { grid-template-columns: 1fr 1fr; gap: 8px 14px; }
  .kvs .row .v { font-size: 12.5px; }
  .profile-card { padding: 14px 16px; }
  .profile-card.name .v { font-size: 22px; }
  .timeline { padding-left: 18px; }
  .timeline .item::before { left: -22px; }
  .timeline .desc { font-size: 12px; }

  .pf-controls { flex-direction: row; }
  .pf-nav-btn { width: 38px; height: 38px; }

  .field input, .field textarea { font-size: 16px; /* avoid iOS autozoom */ }
  .submit { padding: 12px 22px; font-size: 10.5px; letter-spacing: 0.24em; }

  .hotspot-label { font-size: 9px; padding: 3px 8px; }
}
@media (max-height: 560px) {
  /* Landscape phones — prevent tagline from crashing into bottom HUD */
  .tagline { bottom: 40px; }
}
