:root {
  --bg: #07111f;
  --bg-elevated: rgba(15, 23, 42, 0.72);
  --card: rgba(12, 19, 35, 0.8);
  --line: rgba(148, 163, 184, 0.2);
  --text: #e5eefc;
  --muted: #99a8c7;
  --accent: #6ee7d8;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  --radius: 24px;
  --radius-sm: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #07111f;
}

body {
  margin: 0;
  min-height: 100dvh;
  min-height: 100vh;
  color: var(--text);
  background-color: var(--bg);
  background:
    radial-gradient(circle at top left, rgba(110, 231, 216, 0.18), transparent 30%),
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.18), transparent 30%),
    linear-gradient(160deg, #020611 0%, #07111f 45%, #0f172a 100%);
  font-family: "Space Grotesk", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), transparent 75%);
}

.page-shell {
  width: min(1120px, calc(100vw - 2rem));
  margin: 0 auto;
  padding:
    calc(1rem + env(safe-area-inset-top, 0px))
    0
    calc(3rem + env(safe-area-inset-bottom, 0px));
}

.hero {
  padding: 0.75rem 0 1.25rem;
}

:is(.panel, .capability-grid article) {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  transition:
    box-shadow 500ms ease,
    border-color 500ms ease;
}

:is(.panel, .capability-grid article):is(:active, .is-glowing) {
  border-color: rgba(110, 231, 216, 0.45);
  box-shadow:
    0 0 0 1px rgba(110, 231, 216, 0.14),
    0 0 34px rgba(110, 231, 216, 0.16),
    var(--shadow);
}

@media (hover: hover) and (pointer: fine) {
  :is(.panel, .capability-grid article):hover {
    border-color: rgba(110, 231, 216, 0.45);
    box-shadow:
      0 0 0 1px rgba(110, 231, 216, 0.14),
      0 0 34px rgba(110, 231, 216, 0.16),
      var(--shadow);
  }

  :is(.panel, .capability-grid article):focus-within {
    border-color: rgba(110, 231, 216, 0.45);
    box-shadow:
      0 0 0 1px rgba(110, 231, 216, 0.14),
      0 0 34px rgba(110, 231, 216, 0.16),
      var(--shadow);
  }
}

.panel {
  padding: clamp(1.5rem, 3vw, 2.4rem);
}

.panel--split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1.35rem;
}

.panel__secondary {
  display: flex;
}

.panel__secondary--end {
  align-self: end;
  align-items: flex-end;
  justify-content: flex-end;
  text-align: right;
}

.hero__meta {
  min-height: 100%;
  flex-direction: column;
  justify-content: flex-end;
}

.hero__identity {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.hero__avatar {
  width: 84px;
  height: 84px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
}

.eyebrow,
.section__label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--accent);
}

.eyebrow {
  font-size: 1.1rem;
}

h1,
h2,
h3,
p,
ul {
  margin-top: 0;
}

h1,
h2 {
  line-height: 0.95;
}

h1 {
  max-width: 9ch;
  margin-bottom: 0;
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-family: "Instrument Serif", serif;
  font-weight: 400;
}

h2 {
  margin-bottom: 1.1rem;
  font-size: clamp(2.3rem, 5vw, 3.8rem);
  font-family: "Instrument Serif", serif;
  font-weight: 400;
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 0.65rem;
}

.lede {
  max-width: 24ch;
  margin-bottom: 0;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.35;
}

.section__intro p:not(.section__label),
.capability-grid p,
.footer {
  color: var(--muted);
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.hero__actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.8rem 1.15rem;
  color: var(--text);
  text-decoration: none;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.hero__actions a:hover,
.hero__actions a:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(110, 231, 216, 0.6);
  background: rgba(110, 231, 216, 0.08);
}

main {
  display: grid;
  gap: 1.5rem;
}

.section__label {
  display: block;
  margin-bottom: 0.95rem;
}

.section__intro p:last-child {
  margin-bottom: 0;
}

.section__aside h2 {
  max-width: none;
  margin-bottom: 0;
  text-wrap: balance;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.capability-grid article {
  padding: 1.25rem;
  min-height: 100%;
  align-self: stretch;
}

.footer {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.95rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    box-shadow 500ms ease,
    border-color 500ms ease,
    opacity 720ms ease,
    transform 720ms ease;
}

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

@media (max-width: 700px) {
  .panel--split,
  .capability-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  #about {
    grid-template-columns: 1fr;
  }

  main {
    gap: 1rem;
  }

  .page-shell {
    width: 100%;
    padding:
      calc(0.35rem + env(safe-area-inset-top, 0px))
      0.5rem
      calc(2rem + env(safe-area-inset-bottom, 0px));
  }

  .hero,
  main,
  .footer {
    padding-left: 0;
    padding-right: 0;
  }

  .panel,
  .footer {
    margin-left: 0;
    margin-right: 0;
  }

  .hero__meta {
    min-height: auto;
  }

  .capability-grid article {
    padding: 1.15rem;
    min-height: auto;
    align-self: start;
  }

  h1 {
    max-width: none;
  }

  .hero {
    padding: 0.25rem 0 0.9rem;
  }

  .hero__identity {
    gap: 0.85rem;
    margin-bottom: 0.9rem;
  }

  .hero__avatar {
    width: 72px;
    height: 72px;
  }

  .lede {
    max-width: none;
  }

  .panel__secondary--end {
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    align-self: auto;
  }

  .hero__actions {
    flex-wrap: nowrap;
    gap: 0.45rem;
    margin-top: 1.1rem;
  }

  .hero__actions a {
    flex: 1 1 0;
    min-width: 0;
    padding: 0.68rem 0.45rem;
    font-size: 0.9rem;
  }

  .panel {
    padding: 1.25rem;
  }

  .section__aside {
    align-self: auto;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
  }

  .section__aside h2 {
    max-width: none;
  }

  .section__label {
    margin-bottom: 0.95rem;
  }

  h2 {
    margin-bottom: 0.95rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

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