:root {
  --bg: #090b0c;
  --surface: #101416;
  --surface-2: #151a1c;
  --text: #f4f1e9;
  --muted: #a6b0b3;
  --dim: #727b7e;
  --line: rgba(226, 233, 232, 0.14);
  --line-strong: rgba(226, 233, 232, 0.24);
  --mint: #7bd8c9;
  --gold: #d8b86a;
  --steel: #c5d1d5;
  --orange: #d66b32;
  --ink: #09100f;
  --page: min(1180px, calc(100% - 48px));
  --radius: 8px;
  color-scheme: dark;
  font-family: "Kanit", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  min-width: 320px;
  color: var(--text);
  background:
    linear-gradient(90deg, transparent 0, transparent calc(50% - 1px), rgba(255, 255, 255, 0.018) 50%, transparent calc(50% + 1px)),
    radial-gradient(circle at 78% 12%, rgba(123, 216, 201, 0.11), transparent 32rem),
    radial-gradient(circle at 12% 56%, rgba(216, 184, 106, 0.08), transparent 34rem),
    var(--bg);
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

button {
  color: inherit;
  font: inherit;
}

::selection {
  color: var(--ink);
  background: var(--mint);
}

#orbital-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: 0.42;
  pointer-events: none;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.2;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitchTiles'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}

.grain::after {
  position: absolute;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(rgba(226, 233, 232, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(226, 233, 232, 0.025) 1px, transparent 1px);
  background-size: 80px 80px;
}

.cursor-glow {
  position: fixed;
  left: var(--x, 76vw);
  top: var(--y, 24vh);
  z-index: 0;
  width: 26rem;
  height: 26rem;
  pointer-events: none;
  background: radial-gradient(circle, rgba(123, 216, 201, 0.09), transparent 66%);
  transform: translate(-50%, -50%);
}

.site-header,
main {
  position: relative;
  z-index: 2;
}

.section {
  width: var(--page);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: var(--page);
  min-height: 72px;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 11, 12, 0.76);
  backdrop-filter: blur(20px) saturate(120%);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark span:first-child {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--ink);
  background: var(--gold);
  border-radius: 50%;
  font-size: 0.84rem;
  font-weight: 800;
}

.brand-mark span:last-child {
  color: rgba(244, 241, 233, 0.7);
  font-size: 0.73rem;
  font-weight: 500;
}

.site-nav {
  display: flex;
  gap: clamp(1rem, 2.3vw, 1.9rem);
  color: rgba(244, 241, 233, 0.63);
  font-size: 0.83rem;
}

.site-nav a {
  position: relative;
  padding: 26px 0;
  transition: color 180ms ease;
}

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

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--text);
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  position: relative;
  z-index: 32;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
}

.menu-toggle span {
  position: absolute;
  left: 12px;
  width: 14px;
  height: 1px;
  background: var(--text);
  transition: transform 180ms ease, top 180ms ease;
}

.menu-toggle span:first-child {
  top: 15px;
}

.menu-toggle span:last-child {
  top: 22px;
}

body.nav-open .menu-toggle span:first-child {
  top: 18px;
  transform: rotate(45deg);
}

body.nav-open .menu-toggle span:last-child {
  top: 18px;
  transform: rotate(-45deg);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.72fr);
  gap: clamp(2rem, 7vw, 6rem);
  align-items: center;
  min-height: min(820px, calc(100svh - 72px));
  padding: clamp(50px, 8vh, 86px) 0 72px;
}

.hero-copy {
  position: relative;
  z-index: 3;
}

.eyebrow,
.section-kicker,
.project-meta {
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 500;
  line-height: 1.5;
  text-transform: uppercase;
}

.hero-heading {
  margin-top: 22px;
  font-size: clamp(4.8rem, 10.5vw, 8.9rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.78;
}

.hero-heading span {
  display: block;
  color: var(--text);
  white-space: nowrap;
}

.hero-heading span:last-child {
  color: transparent;
  background: linear-gradient(90deg, var(--steel), var(--mint) 62%, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-role {
  margin-top: 25px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 400;
}

.hero-title {
  max-width: 760px;
  margin-top: 22px;
  color: var(--text);
  font-size: clamp(1.55rem, 2.8vw, 2.55rem);
  font-weight: 500;
  line-height: 1.32;
}

.hero-text {
  max-width: 730px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.86;
}

.hero-philosophy {
  max-width: 650px;
  margin-top: 23px;
  padding-left: 18px;
  color: var(--mint);
  border-left: 1px solid var(--gold);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.7;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.primary-link,
.secondary-link,
.text-link,
.contact-actions a,
.copy-email {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 17px;
  border-radius: 4px;
  font-size: 0.86rem;
  font-weight: 500;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.primary-link {
  color: var(--ink);
  background: var(--mint);
}

.secondary-link,
.contact-actions a,
.copy-email {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.035);
}

.text-link {
  color: var(--gold);
  border: 1px solid transparent;
}

.primary-link:hover,
.secondary-link:hover,
.text-link:hover,
.contact-actions a:hover,
.copy-email:hover {
  transform: translateY(-2px);
}

.portrait-orbit {
  position: relative;
  display: grid;
  min-height: 520px;
  place-items: center;
  perspective: 1200px;
}

.portrait-card {
  position: relative;
  z-index: 3;
  width: min(29vw, 330px);
  padding: 9px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.46);
  transform-style: preserve-3d;
  transition: transform 160ms ease;
  backdrop-filter: blur(16px);
}

.portrait-card::after {
  position: absolute;
  right: -1px;
  bottom: -1px;
  left: -1px;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, var(--gold), var(--mint), transparent);
}

.portrait-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: 2px;
  background: #e7e2db;
}

.signature-badge {
  position: absolute;
  right: -50px;
  top: 30px;
  z-index: 4;
  display: grid;
  gap: 2px;
  padding: 7px 9px;
  border: 1px solid rgba(216, 184, 106, 0.38);
  border-radius: 4px;
  background: rgba(9, 11, 12, 0.82);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
}

.signature-badge span {
  font-size: 0.62rem;
  line-height: 1;
}

.signature-badge strong {
  color: var(--gold);
  font-size: 0.43rem;
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
}

.orbit-ring {
  position: absolute;
  border: 1px solid rgba(197, 209, 213, 0.18);
  border-radius: 50%;
  transform: rotateX(67deg) rotateZ(-18deg);
}

.ring-one {
  width: 470px;
  height: 470px;
  animation: spin 20s linear infinite;
}

.ring-two {
  width: 360px;
  height: 360px;
  border-color: rgba(123, 216, 201, 0.2);
  animation: spin 15s linear infinite reverse;
}

.floating-tag {
  position: absolute;
  z-index: 5;
  min-width: 58px;
  padding: 7px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: rgba(9, 11, 12, 0.76);
  font-size: 0.7rem;
  text-align: center;
  backdrop-filter: blur(14px);
  animation: float 5s ease-in-out infinite;
}

.tag-ai {
  left: 3%;
  top: 24%;
}

.tag-opc {
  right: 0;
  top: 42%;
  animation-delay: -1.6s;
}

.tag-tob {
  left: 9%;
  bottom: 18%;
  animation-delay: -3.1s;
}

.marquee {
  width: 100%;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 14px;
  padding: 14px 0;
  animation: marquee 34s linear infinite;
}

.marquee span {
  color: rgba(244, 241, 233, 0.65);
  font-size: clamp(0.92rem, 1.7vw, 1.35rem);
  font-weight: 500;
}

.marquee span::after {
  margin-left: 18px;
  color: var(--mint);
  content: "•";
}

.profile,
.ecosystem,
.contact {
  padding: 108px 0;
}

.profile-grid,
.ecosystem,
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: clamp(2rem, 7vw, 6rem);
  align-items: start;
}

h2 {
  max-width: 900px;
  font-size: clamp(2.15rem, 5vw, 4.85rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.08;
}

.profile-body {
  display: grid;
  gap: 20px;
  color: var(--muted);
  font-size: 1.04rem;
  font-weight: 300;
  line-height: 1.95;
}

.proof {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  padding-bottom: 64px;
  background: var(--line);
}

.proof-card,
.capability-list article,
.project-card,
.timeline-item {
  border: 1px solid var(--line);
  background: rgba(14, 18, 19, 0.91);
}

.proof-card {
  min-height: 176px;
  padding: 24px;
}

.proof-card strong {
  display: block;
  color: var(--gold);
  font-size: clamp(2.9rem, 6vw, 5.2rem);
  font-weight: 700;
  line-height: 0.95;
}

.proof-card span {
  display: block;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 300;
  line-height: 1.55;
}

.section-heading {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  align-items: start;
  padding: 92px 0 32px;
  border-top: 1px solid var(--line);
}

.capability-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}

.capability-list article {
  position: relative;
  min-height: 292px;
  padding: 25px;
  transition: background 180ms ease;
}

.capability-list article:hover {
  background: #171d1e;
}

.capability-list span {
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 600;
}

.capability-list h3 {
  margin-top: 64px;
  font-size: clamp(1.3rem, 2.2vw, 1.85rem);
  font-weight: 600;
  line-height: 1.25;
}

.capability-list p,
.system-copy p,
.project-card p,
.timeline-item p {
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 300;
  line-height: 1.86;
}

.capability-list p,
.system-copy p {
  margin-top: 15px;
}

.ecosystem {
  align-items: center;
}

.system-orbit {
  position: relative;
  min-height: 470px;
}

.system-core {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 154px;
  height: 154px;
  place-items: center;
  color: var(--ink);
  background: var(--mint);
  border-radius: 50%;
  box-shadow: 0 0 70px rgba(123, 216, 201, 0.15);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.05;
  text-align: center;
  transform: translate(-50%, -50%);
}

.system-orbit::before,
.system-orbit::after {
  position: absolute;
  left: 50%;
  top: 50%;
  content: "";
  border: 1px solid var(--line);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotateX(66deg);
}

.system-orbit::before {
  width: 400px;
  height: 400px;
}

.system-orbit::after {
  width: 286px;
  height: 286px;
  border-color: rgba(216, 184, 106, 0.22);
}

.system-orbit span {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  display: grid;
  width: 106px;
  min-height: 38px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: rgba(9, 11, 12, 0.88);
  font-size: 0.76rem;
  transform:
    translate(-50%, -50%)
    rotate(calc(var(--i) * 60deg))
    translateX(198px)
    rotate(calc(var(--i) * -60deg));
}

.project-stack {
  display: grid;
  gap: 12px;
  padding-bottom: 76px;
}

.project-card {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 4.5rem);
  min-height: 360px;
  padding: clamp(1.5rem, 4vw, 3rem);
  transition: border-color 180ms ease, background 180ms ease;
}

.project-card:hover {
  border-color: rgba(123, 216, 201, 0.38);
  background: #14191a;
}

.project-number {
  color: var(--dim);
  font-size: clamp(3.6rem, 8vw, 6.8rem);
  font-weight: 700;
  line-height: 0.9;
}

.project-content h3 {
  max-width: 880px;
  margin: 11px 0 17px;
  font-size: clamp(1.65rem, 3.4vw, 3.15rem);
  font-weight: 650;
  line-height: 1.12;
}

.project-content p {
  max-width: 880px;
}

.project-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 22px;
}

.project-metrics span {
  padding: 7px 10px;
  color: rgba(244, 241, 233, 0.8);
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.76rem;
}

.event-gallery {
  grid-column: 1 / -1;
  min-width: 0;
  margin-top: 16px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.gallery-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 15px;
}

.gallery-head > div:first-child {
  display: grid;
  gap: 5px;
}

.gallery-label {
  color: var(--gold);
  font-size: 0.64rem;
  font-weight: 500;
  text-transform: uppercase;
}

.gallery-head strong {
  font-size: clamp(1rem, 1.8vw, 1.32rem);
  font-weight: 500;
}

.gallery-controls {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
}

.gallery-count {
  min-width: 70px;
  color: var(--dim);
  font-size: 0.72rem;
  text-align: center;
}

.gallery-count b {
  color: var(--text);
  font-weight: 500;
}

.gallery-prev,
.gallery-next,
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.gallery-prev:hover,
.gallery-next:hover,
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  color: var(--ink);
  border-color: var(--mint);
  background: var(--mint);
}

.gallery-viewport {
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  touch-action: pan-x pan-y;
}

.gallery-viewport::-webkit-scrollbar {
  display: none;
}

.gallery-track {
  display: flex;
  gap: 12px;
  width: max-content;
  padding-right: 18%;
}

.gallery-slide {
  position: relative;
  flex: 0 0 min(76vw, 790px);
  width: min(76vw, 790px);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 0;
  border-radius: 4px;
  background: var(--surface);
  cursor: zoom-in;
  scroll-snap-align: start;
  text-align: left;
}

.gallery-slide::after {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  content: "";
  background: linear-gradient(to top, rgba(0, 0, 0, 0.76), transparent);
  pointer-events: none;
}

.gallery-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-slide:hover img {
  transform: scale(1.025);
}

.gallery-slide span {
  position: absolute;
  right: 16px;
  bottom: 14px;
  left: 16px;
  z-index: 2;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.78rem;
  font-weight: 400;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  width: min(1160px, calc(100% - 42px));
  max-width: none;
  height: min(86svh, 820px);
  max-height: none;
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #070909;
  color: var(--text);
}

.image-lightbox::backdrop {
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(12px);
}

.image-lightbox[open] {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 58px;
  align-items: center;
}

.image-lightbox figure {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 20px 0 16px;
}

.image-lightbox figure img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

.image-lightbox figcaption {
  padding-top: 12px;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
  background: rgba(9, 11, 12, 0.76);
}

.lightbox-prev,
.lightbox-next {
  justify-self: center;
}

.timeline {
  display: grid;
  gap: 1px;
  padding-bottom: 98px;
  background: var(--line);
}

.timeline-item {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 28px;
  gap: 22px;
  width: 100%;
  padding: 22px 24px;
  text-align: left;
  cursor: pointer;
}

.timeline-item::after {
  grid-column: 3;
  grid-row: 1;
  color: var(--gold);
  content: "+";
  font-size: 1.2rem;
  text-align: right;
}

.timeline-item span {
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 500;
}

.timeline-item strong {
  font-size: 1.08rem;
  font-weight: 500;
}

.timeline-item p {
  grid-column: 2;
  max-height: 0;
  overflow: hidden;
  transition: max-height 280ms ease, margin-top 280ms ease;
}

.timeline-item.is-open {
  background: #171c1d;
}

.timeline-item.is-open::after {
  content: "−";
}

.timeline-item.is-open p {
  max-height: 180px;
  margin-top: -4px;
}

.contact {
  padding-bottom: 118px;
  border-top: 1px solid var(--line);
}

.contact-actions {
  justify-content: flex-end;
  margin-top: 0;
}

.copy-email {
  cursor: pointer;
}

.copy-email.is-copied {
  color: var(--ink);
  background: var(--mint);
}

/* Content stays visible without JavaScript. Motion is an enhancement only. */
.reveal {
  opacity: 1;
  transform: none;
}

.motion-ready .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 650ms cubic-bezier(0.22, 1, 0.36, 1), transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

@keyframes spin {
  to {
    transform: rotateX(67deg) rotateZ(342deg);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -10px, 0);
  }
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 920px) {
  :root {
    --page: min(100% - 34px, 1180px);
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: calc(env(safe-area-inset-top) + 61px);
    right: 17px;
    z-index: 31;
    display: grid;
    gap: 0;
    width: min(196px, calc(100vw - 34px));
    padding: 6px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: rgba(12, 15, 16, 0.94);
    box-shadow: 0 20px 52px rgba(0, 0, 0, 0.46);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-7px);
    transition: opacity 180ms ease, transform 180ms ease;
    backdrop-filter: blur(24px);
  }

  body.nav-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    min-height: 36px;
    padding: 9px 10px;
    border-bottom: 1px solid rgba(226, 233, 232, 0.08);
    font-size: 0.8rem;
  }

  .site-nav a::after {
    display: none;
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .hero,
  .profile-grid,
  .ecosystem,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 58px;
  }

  .portrait-orbit {
    min-height: 470px;
  }

  .portrait-card {
    width: min(50vw, 320px);
  }

  .proof,
  .capability-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-heading {
    grid-template-columns: 140px 1fr;
  }

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

  .gallery-slide {
    flex-basis: min(82vw, 720px);
    width: min(82vw, 720px);
  }

  .contact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  :root {
    --page: min(100% - 30px, 1180px);
  }

  html {
    scroll-padding-top: 74px;
  }

  body {
    background:
      radial-gradient(circle at 80% 5%, rgba(123, 216, 201, 0.09), transparent 22rem),
      var(--bg);
  }

  #orbital-canvas {
    opacity: 0.24;
  }

  .cursor-glow {
    display: none;
  }

  .site-header {
    min-height: 58px;
    padding-top: env(safe-area-inset-top);
  }

  .brand-mark span:first-child {
    width: 30px;
    height: 30px;
  }

  .brand-mark span:last-child {
    font-size: 0.68rem;
  }

  .menu-toggle {
    width: 34px;
    height: 34px;
  }

  .menu-toggle span {
    left: 10px;
  }

  .menu-toggle span:first-child {
    top: 13px;
  }

  .menu-toggle span:last-child {
    top: 20px;
  }

  body.nav-open .menu-toggle span:first-child,
  body.nav-open .menu-toggle span:last-child {
    top: 16px;
  }

  .hero {
    gap: 1.5rem;
    padding: 42px 0 56px;
  }

  .eyebrow,
  .section-kicker,
  .project-meta {
    font-size: 0.65rem;
  }

  .hero-heading {
    margin-top: 16px;
    font-size: clamp(3.5rem, 19vw, 5.1rem);
    line-height: 0.82;
  }

  .hero-role {
    margin-top: 20px;
    font-size: 0.76rem;
  }

  .hero-title {
    margin-top: 17px;
    font-size: clamp(1.35rem, 6.5vw, 1.8rem);
    line-height: 1.33;
  }

  .hero-text,
  .profile-body,
  .capability-list p,
  .system-copy p,
  .project-card p,
  .timeline-item p {
    font-size: 0.94rem;
    line-height: 1.82;
  }

  .hero-text {
    margin-top: 16px;
  }

  .hero-philosophy {
    margin-top: 19px;
    padding-left: 15px;
    font-size: 0.96rem;
  }

  .hero-actions,
  .contact-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 23px;
  }

  .primary-link,
  .secondary-link,
  .text-link,
  .contact-actions a,
  .copy-email {
    min-height: 43px;
    padding: 0 12px;
    font-size: 0.79rem;
  }

  .text-link {
    grid-column: 1 / -1;
  }

  .portrait-orbit {
    min-height: 340px;
  }

  .portrait-card {
    width: min(58vw, 226px);
    padding: 7px;
  }

  .signature-badge {
    right: -22px;
    top: 22px;
    padding: 5px 7px;
  }

  .signature-badge span {
    font-size: 0.55rem;
  }

  .signature-badge strong {
    font-size: 0.37rem;
  }

  .ring-one {
    width: 300px;
    height: 300px;
  }

  .ring-two {
    width: 230px;
    height: 230px;
  }

  .floating-tag {
    min-width: 48px;
    padding: 5px 7px;
    font-size: 0.62rem;
  }

  .tag-ai {
    left: 6%;
    top: 27%;
  }

  .tag-opc {
    right: 4%;
    top: 40%;
  }

  .tag-tob {
    left: 11%;
    bottom: 15%;
  }

  .marquee-track {
    padding: 11px 0;
  }

  .profile,
  .ecosystem,
  .contact {
    padding: 70px 0;
  }

  .profile-grid,
  .ecosystem,
  .contact {
    gap: 1.25rem;
  }

  h2 {
    font-size: clamp(1.95rem, 9.6vw, 2.85rem);
    line-height: 1.12;
  }

  .proof,
  .capability-list {
    grid-template-columns: 1fr;
  }

  .proof {
    gap: 1px;
    padding-bottom: 34px;
  }

  .proof-card {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 16px;
    align-items: center;
    min-height: 108px;
    padding: 17px;
  }

  .proof-card strong {
    font-size: 2.8rem;
  }

  .proof-card span {
    margin-top: 0;
  }

  .section-heading {
    display: block;
    padding: 68px 0 22px;
  }

  .section-heading h2 {
    margin-top: 9px;
  }

  .capability-list {
    gap: 1px;
  }

  .capability-list article {
    min-height: 0;
    padding: 21px;
  }

  .capability-list h3 {
    margin-top: 28px;
    font-size: 1.35rem;
  }

  .system-orbit {
    min-height: 336px;
  }

  .system-core {
    width: 116px;
    height: 116px;
    font-size: 0.9rem;
  }

  .system-orbit::before {
    width: 282px;
    height: 282px;
  }

  .system-orbit::after {
    width: 200px;
    height: 200px;
  }

  .system-orbit span {
    width: 76px;
    min-height: 32px;
    font-size: 0.63rem;
    transform:
      translate(-50%, -50%)
      rotate(calc(var(--i) * 60deg))
      translateX(139px)
      rotate(calc(var(--i) * -60deg));
  }

  .project-stack {
    gap: 9px;
    padding-bottom: 52px;
  }

  .project-card {
    grid-template-columns: 1fr;
    gap: 14px;
    min-height: 0;
    padding: 21px;
  }

  .project-number {
    font-size: 3.1rem;
  }

  .project-content h3 {
    margin: 8px 0 13px;
    font-size: clamp(1.4rem, 6.8vw, 1.9rem);
    line-height: 1.2;
  }

  .project-metrics {
    gap: 6px;
    margin-top: 17px;
  }

  .project-metrics span {
    font-size: 0.7rem;
  }

  .event-gallery {
    margin-top: 7px;
    padding-top: 18px;
  }

  .gallery-head {
    align-items: flex-start;
    margin-bottom: 12px;
  }

  .gallery-head strong {
    max-width: 210px;
    font-size: 0.94rem;
    line-height: 1.4;
  }

  .gallery-count {
    min-width: 56px;
  }

  .gallery-prev,
  .gallery-next {
    width: 34px;
    height: 34px;
  }

  .gallery-track {
    gap: 9px;
    padding-right: 10%;
  }

  .gallery-slide {
    flex-basis: calc(100vw - 72px);
    width: calc(100vw - 72px);
    aspect-ratio: 4 / 3;
  }

  .gallery-slide span {
    right: 12px;
    bottom: 11px;
    left: 12px;
    font-size: 0.72rem;
  }

  .image-lightbox {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    height: min(78svh, 650px);
  }

  .image-lightbox[open] {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
  }

  .image-lightbox figure {
    padding: 50px 0 14px;
  }

  .lightbox-prev,
  .lightbox-next {
    width: 32px;
    height: 32px;
  }

  .timeline {
    padding-bottom: 66px;
  }

  .timeline-item {
    grid-template-columns: 1fr 24px;
    gap: 7px 10px;
    padding: 18px;
  }

  .timeline-item span,
  .timeline-item strong,
  .timeline-item p {
    grid-column: 1;
  }

  .timeline-item::after {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .timeline-item strong {
    font-size: 1rem;
    line-height: 1.4;
  }

  .timeline-item.is-open p {
    max-height: 260px;
    margin-top: 5px;
  }

  .contact {
    padding-bottom: calc(env(safe-area-inset-bottom) + 74px);
  }

  .contact-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  .hero-heading {
    font-size: clamp(3.25rem, 18.5vw, 4.4rem);
  }

  .signature-badge {
    right: -12px;
  }

  .ring-one {
    width: 274px;
    height: 274px;
  }

  .ring-two {
    width: 214px;
    height: 214px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }

  .motion-ready .reveal {
    opacity: 1;
    transform: none;
  }
}
