:root {
  --color-bg: #060914;
  --color-bg-soft: #0a1020;
  --color-surface: rgba(12, 21, 38, 0.76);
  --color-surface-strong: rgba(14, 25, 44, 0.92);
  --color-primary: #38f9d7;
  --color-secondary: #67b7ff;
  --color-text: #f8fafc;
  --color-text-muted: #a6b3c6;
  --color-text-subtle: #65738a;
  --color-border: rgba(148, 163, 184, 0.16);
  --color-border-bright: rgba(56, 249, 215, 0.32);
  --color-primary-soft: rgba(56, 249, 215, 0.09);
  --header-height: 72px;
  --font-sans: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  min-width: 0;
  margin: 0;
  color: var(--color-text);
  background:
    radial-gradient(circle at 84% 12%, rgba(30, 111, 137, 0.13), transparent 28rem),
    radial-gradient(circle at 5% 34%, rgba(45, 33, 106, 0.12), transparent 30rem),
    var(--color-bg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  z-index: -2;
  inset: -12px;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(125, 211, 252, 0.3) 0 1px, transparent 1.4px),
    radial-gradient(circle, rgba(56, 249, 215, 0.2) 0 1px, transparent 1.5px);
  background-position: 0 0, 37px 51px;
  background-size: 92px 92px, 137px 137px;
  content: "";
  opacity: 0.3;
  animation: cosmic-drift 36s ease-in-out infinite alternate;
}

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

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 4px;
}

.container {
  width: min(100% - 40px, 1200px);
  margin-inline: auto;
}

#about,
#journey,
#what-i-build,
#projects,
#how-i-work,
#contact {
  scroll-margin-top: 96px;
}

.section {
  position: relative;
  padding-block: 120px;
}

.section::before {
  position: absolute;
  top: 0;
  right: max(20px, calc((100% - 1200px) / 2));
  left: max(20px, calc((100% - 1200px) / 2));
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
  content: "";
}

.section-heading {
  max-width: 880px;
}

.section-heading--compact {
  max-width: 720px;
}

.section-eyebrow {
  margin: 0 0 18px;
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.5;
  letter-spacing: 0.18em;
}

.section-heading h2,
.contact h2 {
  margin: 0;
  color: var(--color-text);
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 720;
  line-height: 1.13;
  letter-spacing: -0.04em;
}

.section-heading h2 > span {
  display: block;
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  height: var(--header-height);
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(6, 9, 20, 0.72);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.site-header.is-scrolled {
  border-bottom-color: rgba(56, 249, 215, 0.14);
  background: rgba(6, 9, 20, 0.9);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 64px, 1200px);
  height: 100%;
  margin-inline: auto;
}

.site-brand {
  color: var(--color-text);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: var(--color-text-muted);
  font-size: 14px;
  font-weight: 550;
}

.desktop-nav a {
  position: relative;
  padding-block: 8px;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: 1px;
  left: 0;
  height: 1px;
  background: var(--color-primary);
  content: "";
  opacity: 0;
  transform: scaleX(0.4);
}

.desktop-nav a[aria-current="true"] {
  color: var(--color-text);
}

.desktop-nav a[aria-current="true"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.menu-button,
.mobile-navigation {
  display: none;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  overflow: clip;
  isolation: isolate;
}

.hero__stars {
  position: absolute;
  z-index: -2;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.7) 0 1px, transparent 1.5px),
    radial-gradient(circle at 78% 24%, rgba(56, 249, 215, 0.55) 0 1px, transparent 1.8px),
    radial-gradient(circle at 65% 74%, rgba(125, 211, 252, 0.5) 0 1px, transparent 1.6px),
    radial-gradient(circle at 30% 82%, rgba(255, 255, 255, 0.48) 0 1px, transparent 1.5px);
  background-size: 310px 310px, 430px 430px, 370px 370px, 510px 510px;
  opacity: 0.52;
  animation: starfield-breathe 20s ease-in-out infinite alternate;
}

.hero__orbit {
  position: absolute;
  z-index: -1;
  top: 14%;
  right: -16%;
  width: 70vw;
  max-width: 980px;
  aspect-ratio: 1;
  border: 1px solid rgba(103, 183, 255, 0.08);
  border-radius: 50%;
  pointer-events: none;
  transform: rotate(-17deg) scaleY(0.36);
}

.hero__glow {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}

.hero__glow--primary {
  top: 6%;
  right: -9%;
  width: min(48vw, 640px);
  aspect-ratio: 1;
  background: rgba(56, 249, 215, 0.1);
  filter: blur(105px);
  animation: hero-glow-cyan 24s ease-in-out infinite alternate;
}

.hero__glow--secondary {
  bottom: -20%;
  left: -12%;
  width: min(42vw, 520px);
  aspect-ratio: 1;
  background: rgba(74, 93, 220, 0.11);
  filter: blur(110px);
  animation: hero-glow-blue 29s ease-in-out infinite alternate;
}

@keyframes cosmic-drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(8px, -6px, 0); }
}

@keyframes starfield-breathe {
  from { opacity: 0.44; }
  to { opacity: 0.56; }
}

@keyframes hero-glow-cyan {
  from { transform: translate3d(0, 0, 0) scale(1); opacity: 0.9; }
  to { transform: translate3d(22px, -16px, 0) scale(1.025); opacity: 1; }
}

@keyframes hero-glow-blue {
  from { transform: translate3d(0, 0, 0) scale(1); opacity: 0.88; }
  to { transform: translate3d(-18px, 20px, 0) scale(1.02); opacity: 0.96; }
}

.hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  align-items: center;
  gap: 52px;
  padding-top: 136px;
  padding-bottom: 82px;
}

.hero__content {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.hero__brand {
  margin: 0 0 28px;
  color: var(--color-primary);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.2em;
}

.hero__identity {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0 0 24px;
  color: var(--color-text-muted);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.08em;
}

.hero__identity span {
  position: relative;
}

.hero__identity span + span::before {
  position: absolute;
  top: 50%;
  left: -14px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-primary);
  content: "";
  transform: translateY(-50%);
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--color-text);
  font-size: clamp(44px, 5.5vw, 76px);
  font-weight: 760;
  line-height: 1.06;
  letter-spacing: -0.055em;
}

.hero__title-line {
  display: block;
}

.hero__title-phrase,
.hero__title-line:nth-child(-n + 2) {
  white-space: nowrap;
}

.hero__description {
  max-width: 700px;
  margin: 30px 0 0;
  color: var(--color-text-muted);
  font-size: clamp(16px, 1.55vw, 19px);
  line-height: 1.85;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding-inline: 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 680;
  line-height: 1.25;
  text-align: center;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.button--primary {
  color: #04100e;
  background: var(--color-primary);
  box-shadow: 0 12px 36px rgba(56, 249, 215, 0.12);
}

.button--secondary {
  border-color: var(--color-border);
  color: var(--color-text);
  background: rgba(9, 16, 31, 0.62);
}

.hero__tags,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero__tags {
  margin-top: 30px;
}

.hero__tags li,
.tag-list li {
  max-width: 100%;
  padding: 5px 11px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-text-muted);
  background: rgba(10, 18, 34, 0.58);
  font-size: 12px;
  line-height: 1.55;
  white-space: normal;
}

.hero__visual {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  aspect-ratio: 1;
}

.globe-canvas {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  aspect-ratio: 1;
  opacity: 0;
}

.globe-canvas.is-ready {
  opacity: 1;
}

.globe-canvas.is-ready + .globe-fallback {
  visibility: hidden;
}

.globe-fallback {
  position: absolute;
  width: min(78%, 430px);
  aspect-ratio: 1;
  border: 1px solid rgba(56, 249, 215, 0.28);
  border-radius: 50%;
  box-shadow: inset 0 0 80px rgba(56, 249, 215, 0.06), 0 0 80px rgba(56, 249, 215, 0.05);
}

.globe-fallback::before,
.globe-fallback::after,
.globe-fallback__ring,
.globe-fallback__axis {
  position: absolute;
  border: 1px solid rgba(103, 183, 255, 0.16);
  border-radius: 50%;
  content: "";
}

.globe-fallback::before {
  inset: 12% -2%;
}

.globe-fallback::after {
  inset: 30% -1%;
}

.globe-fallback__ring {
  inset: -2% 27%;
}

.globe-fallback__ring--vertical {
  inset: -2% 42%;
}

.globe-fallback__axis {
  top: 50%;
  right: -8%;
  left: -8%;
  border-radius: 0;
  transform: rotate(-12deg);
}

.hero__visual-label {
  position: absolute;
  bottom: 5%;
  margin: 0;
  color: var(--color-text-subtle);
  font-size: 10px;
  letter-spacing: 0.22em;
}

.journey__intro {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 0.68fr);
  align-items: start;
  gap: 72px;
}

.journey__heading h2,
.contact h2 {
  font-size: clamp(38px, 4.4vw, 56px);
}

.journey__title-line,
.contact__title-line {
  display: block;
}

.journey__title-phrase,
.contact__title-phrase {
  display: inline-block;
}

.journey__about-copy {
  color: var(--color-text-muted);
  font-size: 16px;
  line-height: 1.82;
}

.journey__about-copy p {
  margin: 0;
}

.journey__about-copy p + p {
  margin-top: 18px;
}

.timeline {
  margin-top: 82px;
}

.timeline__list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline__list::before {
  position: absolute;
  top: 28px;
  right: 4%;
  left: 4%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 249, 215, 0.3), rgba(103, 183, 255, 0.16), transparent);
  content: "";
}

.timeline__item {
  position: relative;
  min-width: 0;
  padding: 56px 24px 26px;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(14, 25, 44, 0.72), rgba(7, 12, 24, 0.72));
}

.timeline__item::before {
  position: absolute;
  z-index: 1;
  top: 22px;
  left: 24px;
  width: 11px;
  height: 11px;
  border: 2px solid var(--color-bg);
  border-radius: 50%;
  background: var(--color-secondary);
  box-shadow: 0 0 0 4px rgba(103, 183, 255, 0.12);
  content: "";
}

.timeline__item--current {
  border-color: var(--color-border-bright);
  background: linear-gradient(145deg, rgba(15, 42, 48, 0.8), rgba(8, 21, 31, 0.82));
  box-shadow: inset 0 1px 0 rgba(56, 249, 215, 0.12);
}

.timeline__item--current::before {
  background: var(--color-primary);
  box-shadow: 0 0 0 5px rgba(56, 249, 215, 0.12), 0 0 22px rgba(56, 249, 215, 0.28);
}

.timeline__year {
  margin: 0 0 12px;
  color: var(--color-secondary);
  font-size: 28px;
  font-weight: 780;
  line-height: 1;
  letter-spacing: -0.03em;
}

.timeline__item--current .timeline__year {
  color: var(--color-primary);
}

.timeline__item h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.45;
}

.timeline__item article > p:last-child {
  margin: 12px 0 0;
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.7;
}

.metrics {
  background: linear-gradient(180deg, rgba(8, 14, 28, 0.3), rgba(10, 19, 34, 0.58), rgba(8, 14, 28, 0.3));
}

.metrics__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 56px 0 0;
}

.metric-card {
  min-width: 0;
  min-height: 180px;
  margin: 0;
  padding: 28px;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  background: rgba(10, 18, 34, 0.7);
}

.metric-card dt {
  color: var(--color-primary);
  font-size: clamp(24px, 2.2vw, 34px);
  font-weight: 760;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.metric-card--primary dt strong {
  font-size: clamp(54px, 5vw, 74px);
  font-weight: 800;
}

.metric-card--primary dt span {
  margin-left: 7px;
  font-size: 20px;
}

.metric-card dd {
  margin: 22px 0 0;
  color: var(--color-text-muted);
  font-size: 15px;
}

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

.build-card,
.project-card,
.work-step,
.contact__panel {
  border: 1px solid var(--color-border);
  background: linear-gradient(145deg, rgba(14, 25, 44, 0.78), rgba(8, 14, 28, 0.78));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.018);
}

.build-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 390px;
  padding: 30px;
  border-radius: 22px;
}

.card-index,
.project-card__meta {
  margin: 0 0 24px;
  color: var(--color-primary);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.5;
  letter-spacing: 0.14em;
}

.build-card h3,
.project-card h3,
.work-step h3 {
  margin: 0;
  color: var(--color-text);
}

.build-card h3 {
  font-size: 24px;
  line-height: 1.35;
}

.build-card > p:not(.card-index) {
  margin: 18px 0 0;
  color: var(--color-text-muted);
  line-height: 1.78;
}

.build-card .tag-list {
  margin-top: auto;
  padding-top: 30px;
}

.projects__list {
  display: grid;
  gap: 22px;
  margin-top: 58px;
}

.project-card {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.82fr);
  gap: 48px;
  min-width: 0;
  padding: 38px;
  border-radius: 24px;
}

.project-card__overview,
.project-card__details,
.project-detail {
  min-width: 0;
}

.project-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.project-card__meta span:first-child {
  padding-right: 16px;
  border-right: 1px solid var(--color-border);
}

.project-card h3 {
  font-size: clamp(27px, 3vw, 38px);
  line-height: 1.24;
  letter-spacing: -0.035em;
}

.project-card__description {
  max-width: 620px;
  margin: 20px 0 0;
  color: var(--color-text-muted);
  line-height: 1.8;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  max-width: 100%;
  margin: 30px 0 0;
  padding-inline: 14px;
  border: 1px solid rgba(56, 249, 215, 0.28);
  border-radius: 999px;
  color: var(--color-primary);
  background: var(--color-primary-soft);
  font-size: 12px;
  font-weight: 720;
}

.project-card__details {
  display: grid;
  align-content: start;
  gap: 30px;
  padding-left: 42px;
  border-left: 1px solid var(--color-border);
}

.project-detail h4 {
  margin: 0 0 16px;
  color: var(--color-text);
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.1em;
}

.capability-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.capability-list--single {
  grid-template-columns: minmax(0, 1fr);
}

.capability-list li {
  position: relative;
  min-width: 0;
  padding-left: 14px;
  color: var(--color-text-muted);
  font-size: 13px;
  line-height: 1.65;
}

.capability-list li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-primary);
  content: "";
}

.work-method__steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 58px 0 0;
  padding: 0;
  list-style: none;
}

.work-step {
  min-width: 0;
  padding: 28px;
  border-radius: 20px;
}

.work-step > p:first-child {
  margin: 0 0 22px;
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.14em;
}

.work-step h3 {
  font-size: 22px;
  line-height: 1.35;
}

.work-step > p:last-child {
  margin: 16px 0 0;
  color: var(--color-text-muted);
  line-height: 1.75;
}

.contact__panel {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.68fr);
  gap: 54px;
  min-width: 0;
  padding: 48px;
  border-radius: 28px;
}

.contact__intro,
.contact__status {
  min-width: 0;
}

.contact h2 {
  max-width: 720px;
}

.contact__intro > p:last-of-type,
.contact__status > p:not(.status-pill):not(.contact__focus-title) {
  margin: 26px 0 0;
  color: var(--color-text-muted);
  line-height: 1.8;
}

.contact__status {
  padding-left: 48px;
  border-left: 1px solid var(--color-border);
}

.contact__status .status-pill {
  margin-top: 0;
}

.contact__focus-title {
  margin: 30px 0 14px;
  color: var(--color-text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  padding-block: 32px;
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-footer__brand {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.site-footer__copy {
  text-align: right;
}

.site-footer__copy p {
  margin: 0;
}

.site-footer__copy p:first-child {
  color: var(--color-text);
  font-size: 13px;
}

.site-footer__copy p:last-child {
  margin-top: 3px;
  color: var(--color-text-subtle);
  font-size: 12px;
}

.timeline__item,
.metric-card,
.build-card,
.project-card,
.work-step {
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background-color 220ms ease,
    box-shadow 220ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .button--primary:hover {
    transform: translateY(-2px);
    background: #55fadd;
    box-shadow: 0 15px 40px rgba(56, 249, 215, 0.18);
  }

  .button--secondary:hover,
  .menu-button:hover {
    transform: translateY(-2px);
    border-color: var(--color-border-bright);
    background: rgba(56, 249, 215, 0.06);
  }

}

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

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 600ms ease var(--reveal-delay, 0ms),
    transform 600ms ease var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (hover: hover) and (pointer: fine) {
  .timeline__item:hover,
  .metric-card:hover,
  .build-card:hover,
  .project-card:hover,
  .work-step:hover {
    transform: translateY(-3px);
    border-color: rgba(56, 249, 215, 0.36);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.16);
  }
}

@media (max-width: 1100px) {
  .hero__layout {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
    gap: 28px;
  }

  .hero h1 {
    font-size: clamp(44px, 6.5vw, 68px);
  }

  .journey__intro {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.75fr);
    gap: 48px;
  }

  .project-card {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.75fr);
    gap: 36px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .hero__layout {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 128px;
  }

  .hero__content {
    max-width: 780px;
  }

  .hero__visual {
    position: absolute;
    z-index: 0;
    right: -110px;
    bottom: -70px;
    width: 440px;
    opacity: 0.42;
  }

  .journey__intro {
    grid-template-columns: minmax(0, 1fr);
  }

  .journey__about-copy {
    max-width: 760px;
  }

  .timeline__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metrics__grid,
  .work-method__steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .build__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-card,
  .contact__panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .project-card__details,
  .contact__status {
    padding-top: 32px;
    padding-left: 0;
    border-top: 1px solid var(--color-border);
    border-left: 0;
  }
}

@media (min-width: 768px) {
  .journey__title-line,
  .contact__title-line {
    white-space: nowrap;
  }
}

@media (max-width: 767px) {
  .container {
    width: min(100% - 40px, 1200px);
  }

  .section {
    padding-block: 82px;
  }

  .section-heading h2,
  .contact h2 {
    font-size: clamp(34px, 10vw, 42px);
    line-height: 1.16;
  }

  .site-nav {
    width: calc(100% - 40px);
  }

  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 82px;
    min-height: 44px;
    margin: 0;
    padding: 6px 10px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    color: var(--color-text-muted);
    background: rgba(9, 16, 31, 0.78);
    font: inherit;
    transition:
      transform 180ms ease,
      border-color 180ms ease,
      background-color 180ms ease;
  }

  .menu-button__icon {
    position: relative;
    display: block;
    flex: 0 0 18px;
    width: 18px;
    height: 14px;
  }

  .menu-button__line {
    position: absolute;
    left: 0;
    width: 18px;
    height: 1px;
    background: currentColor;
  }

  .menu-button__line:first-child { top: 4px; }
  .menu-button__line:last-child { bottom: 4px; }

  .menu-button[aria-expanded="true"] .menu-button__line:first-child {
    top: 6px;
    transform: rotate(45deg);
  }

  .menu-button[aria-expanded="true"] .menu-button__line:last-child {
    top: 6px;
    bottom: auto;
    transform: rotate(-45deg);
  }

  .menu-button__status {
    font-size: 13px;
  }

  .mobile-navigation:not([hidden]) {
    position: absolute;
    z-index: 99;
    top: var(--header-height);
    right: 0;
    left: 0;
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 14px 20px 22px;
    border-bottom: 1px solid var(--color-border);
    background: rgba(6, 9, 20, 0.97);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
  }

  .mobile-navigation a {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 48px;
    color: var(--color-text);
    font-size: 17px;
  }

  .hero__layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
    padding-top: 118px;
    padding-bottom: 58px;
  }

  .hero__brand {
    margin-bottom: 22px;
    font-size: 15px;
  }

  .hero__identity {
    display: grid;
    gap: 3px;
    margin-bottom: 20px;
    font-size: 12px;
  }

  .hero__identity span + span::before {
    display: none;
  }

  .hero h1 {
    font-size: clamp(42px, 13vw, 58px);
    line-height: 1.07;
  }

  .hero__description {
    margin-top: 24px;
    font-size: 16px;
    line-height: 1.8;
  }

  .hero__actions {
    margin-top: 30px;
  }

  .hero__visual {
    width: min(100%, 340px);
    margin-inline: auto;
  }

  .hero__visual-label {
    bottom: 2%;
  }

  .hero__orbit {
    top: auto;
    right: -55%;
    bottom: 6%;
    width: 140vw;
  }

  .hero__glow--primary {
    top: 48%;
    right: -38%;
    width: 420px;
  }

  .hero__glow--secondary {
    bottom: -5%;
    left: -65%;
    width: 380px;
  }

  .journey__intro,
  .timeline__list,
  .build__cards,
  .project-card,
  .work-method__steps,
  .contact__panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .journey__intro {
    gap: 38px;
  }

  .journey__about-copy {
    font-size: 15px;
  }

  .timeline {
    margin-top: 56px;
  }

  .timeline__list {
    gap: 14px;
    padding-left: 22px;
  }

  .timeline__list::before {
    top: 18px;
    bottom: 18px;
    left: 5px;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, transparent, rgba(56, 249, 215, 0.35), transparent);
  }

  .timeline__item {
    padding: 24px;
  }

  .timeline__item::before {
    top: 29px;
    left: -23px;
  }

  .metrics__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 42px;
  }

  .metric-card {
    min-height: 150px;
    padding: 22px;
  }

  .metric-card dt {
    font-size: clamp(20px, 6vw, 26px);
  }

  .metric-card--primary dt strong {
    font-size: clamp(46px, 14vw, 62px);
  }

  .build__cards,
  .projects__list,
  .work-method__steps {
    margin-top: 44px;
  }

  .build-card {
    min-height: 0;
    padding: 26px;
  }

  .build-card .tag-list {
    margin-top: 28px;
    padding-top: 0;
  }

  .project-card {
    gap: 30px;
    padding: 27px;
  }

  .project-card__details,
  .contact__status {
    padding-top: 30px;
    padding-left: 0;
    border-top: 1px solid var(--color-border);
    border-left: 0;
  }

  .capability-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .work-step {
    padding: 26px;
  }

  .contact__panel {
    gap: 32px;
    padding: 28px;
  }

  .site-footer__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .site-footer__copy {
    text-align: left;
  }
}

@media (max-width: 420px) {
  .hero__title-line:nth-child(-n + 2),
  .hero__title-phrase {
    white-space: normal;
  }

  .hero__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .metrics__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

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

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

  .button,
  .menu-button,
  .timeline__item,
  .metric-card,
  .build-card,
  .project-card,
  .work-step {
    transition: none;
  }

  .button:hover,
  .button:active,
  .menu-button:hover,
  .timeline__item:hover,
  .metric-card:hover,
  .build-card:hover,
  .project-card:hover,
  .work-step:hover {
    transform: none;
  }

  body::before,
  .hero__stars,
  .hero__glow--primary,
  .hero__glow--secondary {
    animation: none;
    transform: none;
  }
}

/* 404 page */
.page-404 {
  min-height: 100vh;
  min-height: 100dvh;
}

.not-found {
  display: grid;
  place-items: center;
  width: 100%;
  min-width: 0;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 48px 20px;
}

.not-found__content {
  width: min(100%, 760px);
  min-width: 0;
}

.not-found__brand {
  color: var(--color-primary);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.not-found__eyebrow {
  margin: 54px 0 18px;
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.16em;
}

.not-found__title {
  max-width: 760px;
  margin: 0;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.not-found__title-line {
  display: block;
}

.not-found__description {
  max-width: 620px;
  margin: 26px 0 0;
  color: var(--color-text-muted);
  font-size: clamp(17px, 2vw, 20px);
}

.not-found__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

@media (max-width: 420px) {
  .not-found__title {
    font-size: 36px;
  }

  .not-found__actions {
    align-items: stretch;
    flex-direction: column;
  }
}
