:root {
  --bg: #0a0a0b;
  --bg-2: #101012;
  --ink: #f1efec;
  --ink-dim: #8d8f94;
  --ink-faint: #57585c;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --accent: #b3241f;
  --accent-dim: #7a221f;
  --metal-a: #d8dade;
  --metal-b: #6c6e73;
  --haze-teal: #12302f;
  --haze-amber: #6b4f22;
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  margin: 0;
  position: fixed;
  inset: 0;
  width: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.stage {
  position: relative;
  height: 100%;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 48px 20px;
  background: radial-gradient(
      ellipse 140% 120% at 50% 50%,
      transparent 55%,
      rgba(0, 0, 0, 0.4) 100%
    ),
    radial-gradient(
      ellipse 900px 600px at 50% -10%,
      #16171a 0%,
      transparent 60%
    ),
    radial-gradient(
      720px 620px at 88% 8%,
      rgba(107, 79, 34, 0.16),
      transparent 62%
    ),
    radial-gradient(
      640px 680px at 4% 78%,
      rgba(18, 48, 47, 0.3),
      transparent 60%
    ),
    var(--bg);
}

/* cursor-reactive ambient glow, warmed to echo the reference photo's amber/teal light */
.glow {
  position: absolute;
  inset: -20%;
  pointer-events: none;
  background: radial-gradient(
      460px 460px at var(--gx, 55%) var(--gy, 28%),
      rgba(179, 36, 31, 0.09),
      transparent 60%
    ),
    radial-gradient(
      600px 600px at var(--gx, 55%) var(--gy, 28%),
      rgba(150, 110, 50, 0.05),
      transparent 65%
    );
  transition: background-position 0.1s linear;
  z-index: 0;
}

/* subtle film grain so flat dark areas don't look dead */
.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 34px 24px 26px;
}

/* HUD-style corner marks — a quiet nod to instrument framing */
.corner {
  position: absolute;
  width: 16px;
  height: 16px;
  pointer-events: none;
}
.corner.tl {
  top: 0;
  left: 0;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}
.corner.tr {
  top: 0;
  right: 0;
  border-top: 1px solid var(--line-strong);
  border-right: 1px solid var(--line-strong);
}
.corner.bl {
  bottom: 0;
  left: 0;
  border-bottom: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}
.corner.br {
  bottom: 0;
  right: 0;
  border-bottom: 1px solid var(--line-strong);
  border-right: 1px solid var(--line-strong);
}

/* photo mark with slow rotating ring, like an instrument bezel */
.mark {
  position: relative;
  width: 108px;
  height: 108px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mark svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.mark-photo {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 50%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 10px 24px -8px rgba(0, 0, 0, 0.65);
  filter: saturate(1.02) contrast(1.02);
}

.mark-ring {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 1;
}

.mark-tick {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 6 344;
  transform-origin: 60px 60px;
  animation: sweep 7s linear infinite;
}

@keyframes sweep {
  to {
    transform: rotate(360deg);
  }
}

.name {
  margin: 0 0 8px;
  font-size: clamp(28px, 6vw, 34px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.1;
  background: linear-gradient(
    120deg,
    var(--metal-a) 0%,
    var(--ink) 30%,
    var(--metal-b) 55%,
    var(--ink) 80%,
    var(--metal-a) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tagline {
  margin: 0 0 40px;
  font-size: 15px;
  font-weight: 400;
  color: var(--ink-dim);
  letter-spacing: 0.005em;
}

.links {
  width: 100%;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 6px;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: padding-left 0.25s cubic-bezier(0.2, 0.7, 0.3, 1),
    background-color 0.25s ease;
}

.row:hover,
.row:focus-visible {
  padding-left: 12px;
  background: linear-gradient(90deg, rgba(179, 36, 31, 0.06), transparent 70%);
}

.row:focus-visible {
  outline: 1px solid var(--line-strong);
  outline-offset: -1px;
}

.row-icon {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-dim);
  transition: color 0.25s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.row-icon svg {
  width: 22px;
  height: 22px;
}

.row:hover .row-icon,
.row:focus-visible .row-icon {
  color: var(--ink);
  background: radial-gradient(
    circle,
    rgba(179, 36, 31, 0.2),
    rgba(179, 36, 31, 0) 72%
  );
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.row-text {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}

.row-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.003em;
}

.row-sub {
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-faint);
}

.row-go {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--ink-faint);
  transform: translateX(-4px);
  opacity: 0;
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.3, 1), opacity 0.25s ease,
    color 0.25s ease;
}

.row-go svg {
  width: 100%;
  height: 100%;
}

.row:hover .row-go,
.row:focus-visible .row-go {
  opacity: 1;
  transform: translateX(0);
  color: var(--accent);
}

.foot {
  margin-top: 36px;
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
}

/* page is scroll-locked, so compact the layout on short viewports instead of clipping */
@media (max-height: 720px) {
  .stage {
    padding: 24px 20px;
  }
  .mark {
    width: 92px;
    height: 92px;
    margin-bottom: 20px;
  }
  .mark-photo {
    width: 76px;
    height: 76px;
  }
  .tagline {
    margin-bottom: 26px;
  }
  .row {
    padding: 13px 6px;
  }
  .foot {
    margin-top: 24px;
  }
  .panel {
    padding: 26px 22px 20px;
  }
}

@media (max-height: 600px) {
  .mark {
    width: 72px;
    height: 72px;
    margin-bottom: 14px;
  }
  .mark-photo {
    width: 60px;
    height: 60px;
  }
  .name {
    font-size: 24px;
  }
  .tagline {
    font-size: 14px;
    margin-bottom: 18px;
  }
  .row {
    padding: 10px 6px;
    gap: 12px;
  }
  .row-icon {
    width: 28px;
    height: 28px;
  }
  .row-icon svg {
    width: 19px;
    height: 19px;
  }
  .row-sub {
    font-size: 12px;
  }
  .foot {
    margin-top: 16px;
  }
  .panel {
    padding: 20px 20px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mark-tick {
    animation: none;
  }
  .row,
  .row-go {
    transition: none;
  }
}

@media (max-width: 380px) {
  .panel {
    max-width: 100%;
  }
}
