:root {
  --pioneer-blue: #1677ff;
  --deep-space: #0a0f1c;
  --void-black: #05080f;
  --steel-gray: #2a3240;
  --light-gray: #d6dbe3;
  --muted: rgba(214, 219, 227, 0.68);
  --line: rgba(214, 219, 227, 0.16);
  --surface: rgba(214, 219, 227, 0.035);
  --font-heading: "Sora", "Noto Sans Thai", system-ui, sans-serif;
  --font-body: "Sora", "Noto Sans Thai", system-ui, sans-serif;
  --font-label: "Space Grotesk", "Sora", "Noto Sans Thai", system-ui, sans-serif;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 88px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--void-black);
  color: var(--light-gray);
  font-family: var(--font-body);
  line-height: 1.55;
}

.hero-copy,
.profile-copy,
.section-heading p,
.focus-copy,
.focus-list,
.contact-copy,
.profile-meta dd {
  overflow-wrap: break-word;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(rgba(214, 219, 227, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(214, 219, 227, 0.022) 1px, transparent 1px),
    var(--void-black);
  background-size: 92px 92px;
}

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

img {
  display: block;
  max-width: 100%;
}

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

h1,
h2,
h3 {
  color: #fff;
  font-family: var(--font-heading);
  letter-spacing: 0;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 18px clamp(20px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 8, 15, 0.86);
  backdrop-filter: blur(18px);
}

.brand img {
  width: min(330px, 48vw);
  height: auto;
}

.nav-links {
  display: flex;
  gap: clamp(22px, 3vw, 40px);
  color: rgba(214, 219, 227, 0.66);
  font-family: var(--font-label);
  font-size: 0.78rem;
  font-weight: 600;
}

.nav-links a:hover {
  color: #fff;
}

.hero {
  position: relative;
  min-height: clamp(680px, 82svh, 920px);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 108px clamp(22px, 6vw, 86px) 64px;
  border-bottom: 1px solid var(--line);
  background: var(--void-black);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(5, 8, 15, 0.96), rgba(5, 8, 15, 0.72) 42%, rgba(5, 8, 15, 0.18) 78%),
    linear-gradient(180deg, rgba(5, 8, 15, 0.16), rgba(5, 8, 15, 0.22) 62%, rgba(5, 8, 15, 0.72));
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--pioneer-blue), transparent);
  opacity: 0.72;
}

.hero-planet {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  opacity: 0.98;
  filter: saturate(1.04) contrast(1.02);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--pioneer-blue);
  font-family: var(--font-label);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  margin-bottom: 10px;
  font-size: clamp(4rem, 13vw, 9.2rem);
  font-weight: 800;
  line-height: 0.9;
}

.hero-kicker {
  margin-bottom: 16px;
  color: var(--pioneer-blue);
  font-family: var(--font-label);
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  font-weight: 700;
}

.hero-copy {
  width: min(720px, 100%);
  margin-bottom: 0;
  color: rgba(214, 219, 227, 0.76);
  font-size: clamp(1.04rem, 2vw, 1.24rem);
  font-weight: 600;
  text-wrap: balance;
}

.section-shell,
.contact-shell {
  width: min(1120px, calc(100% - 44px));
  margin: 0 auto;
}

.profile-section,
.model-section,
.focus-section,
.contact-section {
  padding: clamp(64px, 7vw, 104px) 0;
  border-bottom: 1px solid var(--line);
}

.profile-section {
  padding-top: clamp(56px, 6vw, 84px);
}

.profile-section,
.focus-section {
  background: rgba(10, 15, 28, 0.86);
}

.profile-grid,
.focus-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(34px, 7vw, 90px);
  align-items: start;
}

.profile-grid > *,
.section-heading > *,
.focus-grid > * {
  min-width: 0;
}

.profile-section h2,
.contact-section h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 5vw, 4.1rem);
  line-height: 1.08;
  text-wrap: balance;
}

.section-heading h2,
.focus-section h2 {
  margin-bottom: 0;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: 1.12;
  text-wrap: balance;
}

.profile-section h2 span {
  display: block;
}

.profile-copy {
  padding-left: clamp(28px, 5vw, 64px);
  border-left: 1px solid rgba(214, 219, 227, 0.2);
}

.profile-copy > p,
.section-heading p,
.focus-copy,
.contact-copy {
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.16rem);
}

.profile-copy > p {
  margin-bottom: 16px;
}

.profile-copy > p:last-of-type {
  margin-bottom: 0;
}

.profile-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin: 34px 0 0;
  padding: 0;
  background: var(--line);
  border: 1px solid var(--line);
}

.profile-meta div {
  min-height: 110px;
  padding: 20px;
  background: rgba(5, 8, 15, 0.72);
}

.profile-meta dt {
  margin-bottom: 9px;
  color: rgba(214, 219, 227, 0.68);
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.profile-meta dd {
  margin: 0;
  color: #fff;
  font-weight: 700;
}

.model-section {
  background:
    linear-gradient(135deg, rgba(22, 119, 255, 0.1), transparent 34%),
    #080d18;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 0.75fr);
  grid-template-areas:
    "label copy"
    "title copy";
  row-gap: 12px;
  gap: clamp(28px, 6vw, 76px);
  align-items: start;
  margin-bottom: 30px;
}

.section-heading .eyebrow {
  grid-area: label;
  margin-bottom: 0;
}

.section-heading h2 {
  grid-area: title;
}

.section-heading p {
  grid-area: copy;
  align-self: end;
  margin-bottom: 0;
}

.model-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.model-grid article {
  min-height: 228px;
  padding: clamp(24px, 4vw, 34px);
  background: rgba(5, 8, 15, 0.76);
  min-width: 0;
}

.model-grid span {
  display: block;
  color: var(--pioneer-blue);
  font-family: var(--font-label);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.model-grid h3 {
  margin: 42px 0 10px;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.model-grid p,
.focus-list p {
  margin-bottom: 0;
  color: rgba(214, 219, 227, 0.68);
}

.focus-grid {
  align-items: center;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
}

.focus-image {
  overflow: hidden;
  width: min(320px, 100%);
  aspect-ratio: 190 / 253;
  border: 1px solid var(--line);
}

.focus-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.04);
}

.focus-section h2 {
  margin-bottom: 20px;
}

.focus-copy {
  width: min(760px, 100%);
  margin-bottom: 28px;
}

.focus-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.focus-list p {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.focus-list strong {
  color: #fff;
}

.contact-section {
  position: relative;
  overflow: hidden;
  background: #05080f;
}

.contact-section::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -80px;
  width: min(880px, 86vw);
  height: clamp(180px, 28vw, 360px);
  transform: translateX(-50%);
  background: url("assets/planet-horizon.png") center / cover no-repeat;
  opacity: 0.42;
  pointer-events: none;
}

.contact-shell {
  position: relative;
  text-align: center;
}

.contact-shell img {
  width: min(420px, 78vw);
  height: auto;
  margin: 0 auto 40px;
}

.contact-section h2 {
  width: min(880px, 100%);
  margin: 0 auto 16px;
}

.contact-copy {
  width: min(680px, 100%);
  margin: 0 auto 34px;
}

.contact-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  color: #fff;
  font-family: var(--font-label);
  font-size: 0.92rem;
  font-weight: 700;
}

.contact-meta a,
.contact-meta span {
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid rgba(214, 219, 227, 0.18);
  background: rgba(5, 8, 15, 0.64);
}

.contact-footnote {
  margin: 22px auto 0;
  color: rgba(214, 219, 227, 0.52);
  font-size: 0.9rem;
}

@media (max-width: 1100px) {
  .profile-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .profile-copy {
    padding-left: 0;
    border-left: 0;
  }

  .profile-section h2 {
    width: min(780px, 100%);
  }
}

@media (max-width: 900px) {
  .site-header {
    gap: 12px 20px;
  }

  .nav-links {
    gap: clamp(16px, 3vw, 28px);
    justify-content: flex-end;
  }

  .hero {
    min-height: 78svh;
  }

  .hero-content {
    width: min(640px, 100%);
  }

  .hero-copy {
    width: min(580px, 100%);
  }

  .hero-planet {
    object-position: 62% bottom;
    opacity: 0.9;
  }

  .profile-grid,
  .section-heading,
  .focus-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    grid-template-areas:
      "label"
      "title"
      "copy";
    gap: 12px;
  }

  .profile-copy {
    padding-left: 0;
    border-left: 0;
  }

  .model-grid {
    grid-template-columns: 1fr;
  }

  .model-grid article {
    min-height: 0;
  }

  .model-grid h3 {
    margin-top: 18px;
  }

  .focus-list strong {
    display: block;
    margin-bottom: 4px;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 0;
    flex-wrap: wrap;
    align-items: flex-start;
    padding: 10px 16px 9px;
  }

  section[id] {
    scroll-margin-top: 112px;
  }

  .brand img {
    width: min(220px, 72vw);
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
    gap: 18px;
    overflow-x: auto;
    padding-top: 2px;
    font-size: 0.68rem;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .hero {
    min-height: 70svh;
    align-items: flex-start;
    padding: 128px 20px 44px;
  }

  .hero-content {
    width: min(350px, calc(100vw - 40px));
  }

  .hero h1 {
    font-size: clamp(3.35rem, 16.2vw, 4rem);
  }

  .profile-section h2,
  .section-heading h2,
  .focus-section h2,
  .contact-section h2 {
    font-size: clamp(1.7rem, 7.5vw, 2.15rem);
    line-height: 1.12;
  }

  .hero-planet {
    object-position: 74% bottom;
    opacity: 0.82;
  }

  .hero::before {
    background:
      linear-gradient(90deg, rgba(5, 8, 15, 0.98), rgba(5, 8, 15, 0.86) 54%, rgba(5, 8, 15, 0.32)),
      linear-gradient(180deg, rgba(5, 8, 15, 0.18), rgba(5, 8, 15, 0.38) 54%, rgba(5, 8, 15, 0.78));
  }

  .section-shell,
  .contact-shell {
    width: calc(100% - 36px);
  }

  .profile-section,
  .model-section,
  .focus-section,
  .contact-section {
    padding: 56px 0;
  }

  .profile-meta {
    grid-template-columns: 1fr;
    gap: 0;
    background: transparent;
    border-width: 1px 0 0;
  }

  .profile-meta div {
    min-height: 0;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
  }

  .focus-image {
    width: min(240px, 72vw);
    margin: 0 auto;
  }

  .contact-meta {
    display: grid;
  }

  .contact-section {
    padding-bottom: 72px;
  }

  .contact-section::before {
    bottom: -52px;
    opacity: 0.28;
  }
}
