:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --bg-elevated: rgba(255, 255, 255, 0.58);
  --surface: rgba(255, 255, 255, 0.36);
  --text: #0b0b0b;
  --muted: rgba(11, 11, 11, 0.6);
  --line: rgba(11, 11, 11, 0.12);
  --shadow: 0 20px 60px rgba(11, 11, 11, 0.08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --max-width: 1280px;
  --font-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f10;
    --bg-elevated: rgba(255, 255, 255, 0.05);
    --surface: rgba(255, 255, 255, 0.03);
    --text: #f5f5f2;
    --muted: rgba(245, 245, 242, 0.68);
    --line: rgba(255, 255, 255, 0.12);
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font-sans);
  background-color: var(--bg);
  background: var(--bg);
  color: var(--text);
}

.page-shell {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding: max(16px, env(safe-area-inset-top)) 0 max(60px, env(safe-area-inset-bottom));
}

.topbar {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 36px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow,
.spot-item span {
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-elevated);
  color: var(--muted);
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease,
    border-color 180ms ease;
}

.social-link:hover {
  color: var(--text);
  border-color: currentColor;
  transform: translateY(-1px);
}

.social-link svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.hero {
  display: block;
}

.hero-copy,
.panel,
.spotlight,
.experience,
.capabilities {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.glass-tile {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.glass-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    180px circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, 0.18),
    rgba(255, 255, 255, 0.05) 26%,
    transparent 58%
  );
  opacity: 0;
  transition: opacity 140ms ease;
  z-index: 0;
}

@media (prefers-color-scheme: dark) {
  .glass-tile::before {
    background: radial-gradient(
      180px circle at var(--mx, 50%) var(--my, 50%),
      rgba(255, 255, 255, 0.14),
      rgba(255, 255, 255, 0.04) 26%,
      transparent 58%
    );
  }
}

.glass-tile::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.22),
    rgba(255, 255, 255, 0.03) 24%,
    transparent 60%
  );
  opacity: 0.22;
  transition: opacity 140ms ease;
  z-index: 0;
}

.glass-tile.is-hovered::before {
  opacity: 1;
}

.glass-tile.is-hovered::after {
  opacity: 0.3;
}

.glass-tile > * {
  position: relative;
  z-index: 1;
}

.hero-copy {
  border-radius: 40px;
  padding: 64px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 82vh;
}

.eyebrow,
.spot-item span {
  font-size: 0.72rem;
  color: var(--muted);
}

.type-line {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin: 26px 0 22px;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  color: var(--muted);
}

.hero-portrait {
  margin-top: 8px;
}

.portrait-frame {
  width: min(24vw, 184px);
  aspect-ratio: 0.82;
  padding: 8px;
  border-radius: 32px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 50%),
    var(--bg-elevated);
  box-shadow: var(--shadow);
}

.portrait-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 24px;
  filter: saturate(0.92) contrast(1.03) brightness(1.01);
}

.type-prefix {
  white-space: nowrap;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.typed-text {
  min-width: 16ch;
  color: var(--text);
  position: relative;
  font-size: clamp(2.2rem, 7vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  font-weight: 700;
}

.typed-text.is-final {
  animation: finale-glow 1.4s ease forwards;
}

.typed-text.is-final::after {
  animation: none;
  opacity: 0;
}

.typed-text::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 1.1em;
  margin-left: 8px;
  vertical-align: -0.15em;
  background: currentColor;
  animation: blink 0.9s steps(1) infinite;
}

.hero-description,
.panel p,
.spotlight p,
.spot-item p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--muted);
}

.hero-description {
  max-width: 56ch;
  margin: 0;
  text-wrap: pretty;
}

.slogan-band {
  margin-top: 24px;
  padding: 36px 40px;
  border: 1px solid var(--line);
  border-radius: 36px;
  background:
    radial-gradient(circle at top right, rgba(127, 127, 127, 0.14), transparent 28%),
    var(--bg-elevated);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
  text-align: center;
  justify-items: center;
}

.slogan-label {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.slogan-band h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4.4vw, 3.3rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.slogan-copy {
  margin: 0 auto;
  max-width: none;
  color: var(--muted);
  line-height: 1.75;
  white-space: nowrap;
}

.grid-section {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.panel {
  border-radius: var(--radius-lg);
  padding: 28px;
}

.panel h3,
.spotlight h2 {
  margin: 10px 0 14px;
  font-size: clamp(1.4rem, 2vw, 2rem);
  letter-spacing: -0.04em;
}

.panel ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.9;
}

.spotlight {
  margin-top: 24px;
  border-radius: 36px;
  padding: 36px;
  display: block;
}

.spotlight-summary {
  max-width: none;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.7;
  text-wrap: balance;
}

.spotlight-summary strong {
  color: var(--text);
  font-size: 1.08em;
  font-weight: 700;
}

.experience,
.capabilities {
  margin-top: 24px;
  border-radius: 36px;
  padding: 36px;
}

.section-heading {
  display: grid;
  gap: 6px;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: reveal-up 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.reveal:nth-child(2) {
  animation-delay: 0.08s;
}

.reveal:nth-child(3) {
  animation-delay: 0.16s;
}

.reveal:nth-child(4) {
  animation-delay: 0.24s;
}

.reveal:nth-child(5) {
  animation-delay: 0.32s;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes reveal-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes finale-glow {
  0% {
    text-shadow: 0 0 0 rgba(255, 255, 255, 0);
    transform: scale(1);
    letter-spacing: -0.05em;
  }
  30% {
    text-shadow: 0 0 18px rgba(255, 255, 255, 0.24);
    transform: scale(1.025);
  }
  70% {
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.18);
  }
  100% {
    text-shadow: 0 0 0 rgba(255, 255, 255, 0);
    transform: scale(1);
    letter-spacing: -0.04em;
  }
}

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

  .hero-copy {
    padding: 38px 28px;
    min-height: auto;
  }

  .portrait-frame {
    width: min(40vw, 184px);
  }

  .experience,
  .capabilities,
  .spotlight {
    padding: 28px;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(calc(100% - 20px), var(--max-width));
    padding-top: 16px;
  }

  .topbar {
    margin-bottom: 18px;
  }

  .hero-copy,
  .spotlight,
  .panel {
    padding: 24px 20px;
  }

  .type-line {
    align-items: center;
    gap: 6px;
  }

  .hero-copy {
    text-align: left;
    align-items: flex-start;
  }

  .type-line {
    justify-content: flex-start;
    align-items: flex-start;
  }

  .portrait-frame {
    width: min(54vw, 176px);
  }

  .slogan-band {
    text-align: left;
    border-radius: 28px;
    padding: 18px;
  }

  .slogan-copy {
    margin: 0;
    white-space: normal;
  }

}

@media (hover: none), (pointer: coarse) {
  .glass-tile::before {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .typed-text::after {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
