@font-face {
  font-family: "DM Serif Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/dm-serif-display-regular.woff2") format("woff2");
}

@font-face {
  font-family: "DM Serif Display";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/dm-serif-display-italic.woff2") format("woff2");
}

:root {
  --ink: #f4f5f7;
  --muted: #d7dbe1;
  --blue: #0096fd;
  --deep-blue: #0b3958;
  --night: #030712;
  --design-width: 1390px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

:where([id]) {
  scroll-margin-top: 92px;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--night);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.landing {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 77% 47%, rgba(18, 32, 46, 0.2) 0, rgba(7, 14, 25, 0.1) 24%, transparent 47%),
    radial-gradient(circle at 20% 55%, rgba(11, 18, 29, 0.11), transparent 40%),
    linear-gradient(112deg, #070a13 0%, #01040d 48%, #02050e 100%);
}

.scene {
  position: relative;
  z-index: 2;
  width: min(100%, var(--design-width));
  height: 933px;
  min-height: min(933px, 100svh);
  margin-inline: auto;
}

.star-field,
.aurora,
.dot-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.star-field {
  z-index: 1;
  width: 100%;
  height: 100%;
  transition: filter 620ms ease, opacity 620ms ease;
  will-change: filter;
}

.stars-reduced .star-field {
  opacity: 0.68;
  filter: saturate(0.84) brightness(0.86);
}

.aurora {
  z-index: 0;
  opacity: 0.75;
  background:
    radial-gradient(ellipse at 68% 54%, rgba(27, 68, 99, 0.08), transparent 30%),
    linear-gradient(133deg, transparent 18%, rgba(12, 27, 42, 0.05) 51%, transparent 79%);
}

.dot-grid {
  z-index: 1;
  inset: auto;
  background-image: radial-gradient(circle, rgba(151, 177, 205, 0.38) 1px, transparent 1.25px);
  background-size: 12px 12px;
}

.dot-grid--left {
  top: 2px;
  left: -2px;
  width: 307px;
  height: 302px;
  opacity: 0.74;
  -webkit-mask-image: radial-gradient(ellipse at 8% 8%, #000 0, rgba(0, 0, 0, 0.92) 29%, transparent 72%);
  mask-image: radial-gradient(ellipse at 8% 8%, #000 0, rgba(0, 0, 0, 0.92) 29%, transparent 72%);
}

.dot-grid--right {
  right: -17px;
  bottom: -16px;
  width: 259px;
  height: 410px;
  opacity: 0.54;
  -webkit-mask-image: radial-gradient(ellipse at 100% 100%, #000 0, rgba(0, 0, 0, 0.9) 31%, transparent 76%);
  mask-image: radial-gradient(ellipse at 100% 100%, #000 0, rgba(0, 0, 0, 0.9) 31%, transparent 76%);
}

.site-header {
  position: absolute;
  z-index: 8;
  top: 61px;
  left: 64px;
  right: 73px;
  display: flex;
  align-items: center;
}

.wordmark {
  display: inline-block;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 40px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -2.2px;
  transform: scaleX(1.38);
  transform-origin: left center;
}

.primary-nav {
  position: absolute;
  top: 5px;
  left: 362px;
  display: flex;
  align-items: center;
  gap: 55px;
  margin: 0;
  padding-top: 2px;
}

.primary-nav a {
  position: relative;
  padding: 9px 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 24px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.6px;
  text-transform: uppercase;
}

.primary-nav a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.motion-toggle {
  position: absolute;
  top: 1px;
  right: 0;
  width: 34px;
  height: 34px;
  margin: 0;
  padding: 0;
  cursor: pointer;
  border: 1px solid rgba(0, 150, 253, 0.5);
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 18px rgba(0, 150, 253, 0.1);
}

.motion-toggle span {
  position: absolute;
  top: 10px;
  left: 11px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d8d9d9;
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
  transition: transform 200ms ease;
}

.motion-toggle:hover span,
.motion-toggle:focus-visible span {
  transform: scale(1.18);
}

.motion-toggle:focus-visible,
.button:focus-visible,
.wordmark:focus-visible,
.primary-nav a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

.hero {
  position: relative;
  height: 100%;
}

.hero-copy {
  position: absolute;
  z-index: 7;
  top: 197px;
  left: 64px;
  width: 690px;
}

.at-mark {
  height: 52px;
  font-size: 27px;
  font-weight: 400;
  line-height: 1;
}

.eyebrow {
  margin: 14px 0 8px;
  font-size: 21px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 2.9px;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: "DM Serif Display", Georgia, "Times New Roman", serif;
  font-size: 94px;
  font-weight: 400;
  line-height: 0.895;
  letter-spacing: -0.6px;
}

h1 span,
h1 em {
  display: block;
  white-space: nowrap;
}

h1 span {
  margin-left: 3px;
}

h1 span:first-child {
  letter-spacing: 0;
  transform: scaleX(1.02);
  transform-origin: left center;
}

h1 span:nth-child(3) {
  letter-spacing: -0.25px;
}

h1 em {
  margin-top: -2px;
  color: var(--blue);
  font-family: "DM Serif Display", Georgia, "Times New Roman", serif;
  font-size: 92px;
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0;
  transform: translate(-3px, -2px);
}

.intro {
  margin: 36px 0 0;
  color: #e1e4e9;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.72;
  letter-spacing: 0.65px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 19px;
  margin-top: 29px;
  margin-left: 5px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 26px;
  color: rgba(238, 247, 255, 0.9);
  border: 1px solid rgba(135, 177, 211, 0.3);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(20, 35, 52, 0.84), rgba(8, 19, 32, 0.82));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.07), 0 8px 24px rgba(0, 0, 0, 0.18);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.025em;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, translate 160ms ease-out;
}

.button:hover,
.button:focus-visible {
  color: #fff;
  border-color: rgba(112, 208, 252, 0.72);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.1), 0 12px 28px rgba(0, 0, 0, 0.24);
  transform: translateY(-1px);
}

.button--filled {
  color: #fff;
  border-color: rgba(73, 179, 255, 0.76);
  background: linear-gradient(135deg, #078ff0, #0566ce);
  box-shadow: 0 10px 28px rgba(0, 111, 220, 0.24), inset 0 1px rgba(255, 255, 255, 0.2);
}

.button--filled:hover,
.button--filled:focus-visible {
  background: linear-gradient(135deg, #149cf8, #0871dd);
  box-shadow: 0 12px 32px rgba(0, 127, 238, 0.3), inset 0 1px rgba(255, 255, 255, 0.22);
}

.button--outline {
  background: linear-gradient(180deg, rgba(20, 35, 52, 0.7), rgba(5, 14, 25, 0.72));
}

.button-arrow {
  font-size: 14px;
  line-height: 1;
}

.button:active {
  transform: translateY(0) scale(0.985);
}

.portrait-composition {
  --portrait-fit-scale: 1;
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
  transform: scale(var(--portrait-fit-scale));
  transform-origin: 50% 0;
}

.portrait-orbit {
  position: absolute;
  z-index: 0;
  top: 142px;
  left: 746px;
  width: 618px;
  height: 618px;
  border: 1px solid rgba(105, 176, 229, 0.9);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(11, 30, 48, 0.08) 45%, rgba(7, 34, 53, 0.13) 68%, transparent 72%);
  box-shadow:
    0 0 16px rgba(44, 144, 206, 0.24),
    inset 0 0 18px rgba(70, 172, 234, 0.08);
}

.portrait-orbit-runner {
  position: absolute;
  z-index: 2;
  inset: -1px;
  border-radius: inherit;
  animation: portrait-orbit-turn 28s linear infinite;
}

.portrait-orbit-runner::before {
  position: absolute;
  top: -1px;
  left: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  content: "";
  background: #b9dff8;
  box-shadow: 0 0 8px #87cfff;
  transform: translateX(-50%);
}

@keyframes portrait-orbit-turn {
  to { rotate: 1turn; }
}

@media (prefers-reduced-motion: reduce) {
  .portrait-orbit-runner {
    animation: none;
  }
}

.portrait {
  position: absolute;
  z-index: 1;
  top: 98px;
  left: 614px;
  display: block;
  width: 882px;
  height: 882px;
  max-width: none;
  filter: grayscale(79%) contrast(1.04) brightness(0.945);
  user-select: none;
}

.home-body {
  background: #030712;
}

.home-body #main-content {
  min-width: 0;
}

.home-about {
  position: relative;
  overflow: hidden;
  scroll-margin-top: 0;
  isolation: isolate;
}

.home-about::before {
  position: absolute;
}

.home-about .inner-shell {
  width: min(calc(100% - 88px), 1262px);
}

.home-about-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  align-items: end;
  gap: clamp(56px, 8vw, 118px);
  padding: 132px 0 100px;
}

.home-about-title {
  margin: 0;
  font-family: "DM Serif Display", Georgia, "Times New Roman", serif;
  font-size: clamp(66px, 7.1vw, 102px);
  font-weight: 400;
  line-height: 0.91;
  letter-spacing: -0.035em;
}

.home-about-title em {
  display: block;
  color: var(--blue);
  font-style: italic;
}

.home-about-summary {
  padding-bottom: 5px;
}

.home-about-summary p {
  margin: 0;
  color: rgba(230, 241, 255, 0.76);
  font-size: 17px;
  line-height: 1.78;
}

.home-about-summary .page-button {
  margin-top: 30px;
}

.home-about .metric {
  min-width: 0;
}

.home-about .metric strong {
  font-size: clamp(20px, 2vw, 27px);
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.home-about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 42px;
}

@media (max-width: 1180px) {
  .scene {
    height: max(820px, 100svh);
  }

  .site-header {
    left: 44px;
    right: 44px;
  }

  .primary-nav {
    position: static;
    gap: 34px;
    margin-left: auto;
    margin-right: auto;
  }

  .motion-toggle {
    position: relative;
    top: auto;
    right: auto;
    margin-left: auto;
  }

  .hero-copy {
    left: 44px;
    transform: scale(0.88);
    transform-origin: top left;
  }

  .portrait {
    left: calc(50% - 80px);
  }

  .portrait-orbit {
    left: calc(50% + 50px);
  }

  .home-about-intro {
    gap: 54px;
  }
}

/* Keep the fixed desktop composition inside shorter laptop displays. */
@media (min-width: 801px) and (max-height: 860px) {
  .home-body .portrait-composition {
    --portrait-fit-scale: 0.86;
  }

  .home-body .scene {
    height: 100svh;
    min-height: 720px;
  }

  .home-body .hero-copy {
    top: clamp(142px, 18.5svh, 160px);
    transform: scale(0.88);
    transform-origin: top left;
  }
}

@media (min-width: 801px) and (max-height: 720px) {
  .home-body .portrait-composition {
    --portrait-fit-scale: 0.78;
  }

  .home-body .hero-copy {
    top: 112px;
    transform: scale(0.76);
  }
}

@media (max-width: 800px) {
  .landing {
    min-height: 100svh;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .scene {
    height: auto;
    min-height: 100svh;
  }

  .site-header {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    height: 108px;
    margin: 0 24px;
  }

  .wordmark {
    font-size: 35px;
  }

  .primary-nav {
    position: absolute;
    top: 75px;
    left: 0;
    display: grid;
    grid-template-columns: repeat(4, auto);
    width: calc(100vw - 48px);
    justify-content: space-between;
    gap: 0;
    margin: 0;
  }

  .primary-nav a {
    font-size: clamp(10px, 3vw, 14px);
    letter-spacing: 0;
  }

  .motion-toggle {
    margin-left: auto;
  }

  .hero {
    min-height: 1000px;
  }

  .hero-copy {
    top: 62px;
    left: 24px;
    width: calc(100vw - 48px);
    transform: none;
  }

  .at-mark {
    height: 42px;
    font-size: 23px;
  }

  .eyebrow {
    margin-top: 6px;
    font-size: clamp(12px, 3.8vw, 17px);
    letter-spacing: 2.1px;
  }

  h1 {
    font-size: clamp(42px, 11.8vw, 62px);
    line-height: 0.98;
    letter-spacing: -1.25px;
  }

  h1 span,
  h1 em {
    white-space: normal;
  }

  h1 em {
    font-size: 1.08em;
  }

  .intro {
    margin-top: 28px;
    max-width: 470px;
    font-size: clamp(14px, 3.65vw, 16px);
    line-height: 1.65;
  }

  .intro br {
    display: none;
  }

  .hero-actions {
    margin-top: 24px;
    margin-left: 0;
  }

  .portrait-composition {
    top: 520px;
    height: 550px;
    overflow: hidden;
  }

  .portrait {
    top: 0;
    left: 50%;
    width: min(720px, 165vw);
    height: min(720px, 165vw);
    opacity: 0.86;
    transform: translateX(-42%);
  }

  .portrait-orbit {
    top: 38px;
    left: 50%;
    width: 430px;
    height: 430px;
    transform: translateX(-34%);
  }

  .dot-grid--right {
    bottom: 0;
  }

  .home-about .inner-shell {
    width: calc(100% - 48px);
  }

  .home-about-intro {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 92px 0 72px;
  }

  .home-about-summary {
    max-width: 650px;
    padding-bottom: 0;
  }
}

@media (max-width: 420px) {
  .hero {
    min-height: 1000px;
  }

  .hero-copy {
    top: 62px;
  }

  .primary-nav a {
    font-size: 11px;
  }

  .hero-actions {
    gap: 10px;
  }

  .portrait-composition {
    top: 520px;
  }

  .home-about-title {
    font-size: 55px;
  }

  .home-about-summary p {
    font-size: 15px;
    line-height: 1.72;
  }
}
