:root {
  color-scheme: light;
  --bg: #f5f5f7;
  --bg-elevated: rgba(255, 255, 255, 0.72);
  --surface: #ffffff;
  --surface-soft: #ececf0;
  --text: #1d1d1f;
  --text-soft: #6e6e73;
  --line: rgba(29, 29, 31, 0.1);
  --blue: #0071e3;
  --blue-bright: #2997ff;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.09);
  --radius-lg: 40px;
  --radius-md: 28px;
  --shell: min(1160px, calc(100vw - 48px));
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #08080a;
  --bg-elevated: rgba(24, 24, 27, 0.7);
  --surface: #151517;
  --surface-soft: #202023;
  --text: #f5f5f7;
  --text-soft: #a1a1a6;
  --line: rgba(255, 255, 255, 0.1);
  --blue: #2997ff;
  --blue-bright: #64b5ff;
  --shadow: 0 35px 100px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.45s ease, color 0.45s ease;
}

body.menu-open {
  overflow: hidden;
}

::selection {
  background: rgba(41, 151, 255, 0.24);
}

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

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

button {
  color: inherit;
  font: inherit;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.page-noise {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.018;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.85'/%3E%3C/svg%3E");
}

.pointer-glow {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle, rgba(41, 151, 255, 0.1), transparent 68%);
  transform: translate3d(calc(var(--pointer-x, -600px) - 50%), calc(var(--pointer-y, -600px) - 50%), 0);
  transition: opacity 0.4s ease;
}

body:hover .pointer-glow {
  opacity: 1;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  background: var(--bg-elevated);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 5px rgba(0, 113, 227, 0.1);
}

.nav-links {
  display: flex;
  gap: 34px;
  font-size: 14px;
  color: var(--text-soft);
}

.nav-links a {
  position: relative;
  padding-block: 8px;
  transition: color 0.25s ease;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-toggle,
.menu-toggle {
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  place-items: center;
  background: transparent;
  cursor: pointer;
  transition: background 0.25s ease;
}

.theme-toggle:hover,
.menu-toggle:hover {
  background: var(--surface-soft);
}

.theme-toggle svg {
  position: absolute;
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  transition: opacity 0.3s ease, transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.moon-icon {
  opacity: 0;
  transform: rotate(-45deg) scale(0.65);
}

html[data-theme="dark"] .sun-icon {
  opacity: 0;
  transform: rotate(45deg) scale(0.65);
}

html[data-theme="dark"] .moon-icon {
  opacity: 1;
  transform: rotate(0) scale(1);
}

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  min-height: 100svh;
  padding-block: 132px 90px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-title {
  max-width: 800px;
  margin: 0;
  font-size: clamp(58px, 7vw, 100px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.hero-intro {
  max-width: 610px;
  margin: 34px 0 0;
  color: var(--text-soft);
  font-size: clamp(17px, 1.65vw, 21px);
  line-height: 1.7;
  letter-spacing: -0.012em;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 42px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  gap: 9px;
  color: #fff;
  background: var(--blue);
  box-shadow: 0 12px 28px rgba(0, 113, 227, 0.2);
}

.button-primary:hover {
  background: var(--blue-bright);
  box-shadow: 0 17px 36px rgba(0, 113, 227, 0.28);
}

.button-primary svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  transition: transform 0.25s ease;
}

.button-primary:hover svg {
  transform: translateX(3px);
}

.button-secondary {
  color: var(--text);
  background: var(--surface-soft);
}

.button-secondary:hover {
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.hero-art {
  position: relative;
  display: grid;
  min-height: 550px;
  place-items: center;
}

.orb-stage {
  position: relative;
  display: grid;
  width: min(38vw, 460px);
  aspect-ratio: 1;
  place-items: center;
  perspective: 1000px;
}

.orb-glow {
  position: absolute;
  width: 82%;
  height: 82%;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 113, 227, 0.42), rgba(142, 68, 255, 0.34), rgba(255, 79, 216, 0.22));
  filter: blur(60px);
  opacity: 0.7;
  animation: glow-breathe 7s ease-in-out infinite;
}

.orb {
  position: relative;
  display: grid;
  width: 66%;
  height: 66%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 38%;
  place-items: center;
  color: #fff;
  background:
    radial-gradient(circle at 25% 17%, rgba(255, 255, 255, 0.92), transparent 19%),
    radial-gradient(circle at 78% 78%, rgba(255, 61, 213, 0.68), transparent 40%),
    linear-gradient(145deg, #40a9ff 3%, #5865f2 43%, #8136d8 72%, #f25aad 100%);
  box-shadow:
    inset -24px -28px 60px rgba(34, 0, 98, 0.28),
    inset 18px 18px 40px rgba(255, 255, 255, 0.22),
    0 38px 70px rgba(67, 68, 180, 0.28);
  transform: rotate(-9deg);
  animation: orb-float 7s ease-in-out infinite;
}

.orb::before,
.orb::after {
  position: absolute;
  border-radius: 50%;
  content: "";
  filter: blur(2px);
}

.orb::before {
  top: -13%;
  right: -18%;
  width: 70%;
  height: 70%;
  background: rgba(255, 255, 255, 0.18);
}

.orb::after {
  bottom: -24%;
  left: -14%;
  width: 85%;
  height: 85%;
  background: rgba(0, 41, 255, 0.18);
}

.orb span {
  position: relative;
  z-index: 2;
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 750;
  letter-spacing: -0.07em;
  text-shadow: 0 6px 20px rgba(26, 0, 80, 0.2);
}

.orb-sheen {
  position: absolute;
  inset: -80%;
  background: linear-gradient(110deg, transparent 43%, rgba(255, 255, 255, 0.2) 49%, transparent 56%);
  animation: sheen 8s ease-in-out infinite;
}

.orbit {
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.orbit::after {
  position: absolute;
  top: 50%;
  left: -5px;
  width: 10px;
  height: 10px;
  border: 3px solid var(--bg);
  border-radius: 50%;
  content: "";
  background: var(--blue);
  box-shadow: 0 0 22px rgba(0, 113, 227, 0.7);
}

.orbit-one {
  width: 86%;
  height: 86%;
  animation: orbit-spin 18s linear infinite;
}

.orbit-two {
  width: 108%;
  height: 108%;
  border-style: dashed;
  opacity: 0.55;
  animation: orbit-spin 28s linear infinite reverse;
}

.orbit-two::after {
  top: auto;
  right: 8%;
  bottom: 12%;
  left: auto;
  width: 7px;
  height: 7px;
  background: #bf5af2;
}

.status-pill {
  position: absolute;
  right: 2%;
  bottom: 9%;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 17px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  color: var(--text-soft);
  background: var(--bg-elevated);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.09);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  font-size: 12px;
  font-weight: 600;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #32d74b;
  box-shadow: 0 0 0 5px rgba(50, 215, 75, 0.12);
}

.scroll-cue {
  position: absolute;
  bottom: 34px;
  left: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.scroll-cue svg {
  width: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  animation: arrow-bounce 2s ease-in-out infinite;
}

.section {
  padding-block: 150px;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(42px, 5.5vw, 72px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.section-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  max-width: none;
  gap: 40px;
}

.section-note {
  max-width: 220px;
  margin: 0 0 7px;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.5;
  text-align: right;
}

.section-note code {
  padding: 2px 6px;
  border-radius: 6px;
  color: var(--text);
  background: var(--surface-soft);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
}

.about {
  position: relative;
  background: var(--surface);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(60px, 9vw, 140px);
  margin-top: 100px;
}

.about-lead {
  margin: 0;
  color: var(--text-soft);
  font-size: clamp(19px, 2.1vw, 27px);
  line-height: 1.65;
  letter-spacing: -0.025em;
}

.principles {
  display: grid;
}

.principle {
  display: grid;
  grid-template-columns: 72px 130px 1fr;
  gap: 22px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.principle:last-child {
  border-bottom: 1px solid var(--line);
}

.principle-number {
  color: var(--blue);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
}

.principle h3 {
  margin: 0;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.principle p {
  margin: 0;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.65;
}

.projects {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  margin-top: 70px;
}

.project-card {
  position: relative;
  display: flex;
  min-height: 590px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  grid-column: span 6;
  flex-direction: column;
  color: #fff;
  background: #111;
  box-shadow: var(--shadow);
  transform: translateZ(0);
}

.project-card:nth-child(3) {
  min-height: 520px;
  grid-column: 3 / span 8;
}

.project-card.theme-blue {
  background: linear-gradient(145deg, #071b31 0%, #0b3a69 58%, #1268bd 100%);
}

.project-card.theme-violet {
  background: linear-gradient(145deg, #1d0f32 0%, #482383 55%, #9e4ecf 100%);
}

.project-card.theme-warm {
  background: linear-gradient(145deg, #28211b 0%, #73503a 54%, #d79b6f 100%);
}

.project-copy {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  padding: 40px 42px;
}

.project-meta {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-card h3 {
  margin: 0;
  font-size: clamp(31px, 3.6vw, 48px);
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.project-description {
  max-width: 370px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 15px;
  line-height: 1.6;
}

.project-arrow {
  display: grid;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  font-size: 19px;
  transition: color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.project-card:hover .project-arrow {
  color: #111;
  background: #fff;
  transform: rotate(45deg);
}

.project-visual {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 310px;
}

.project-visual::after {
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  content: "";
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.16));
}

.visual-space .visual-sphere {
  position: absolute;
  top: 17%;
  left: 50%;
  width: 245px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 27%, #e3f5ff 0, #66bbff 18%, #0d6bbd 48%, #001a34 78%);
  box-shadow: 0 35px 70px rgba(0, 0, 0, 0.45), inset -20px -25px 50px rgba(0, 0, 0, 0.26);
  transform: translateX(-50%);
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.project-card:hover .visual-space .visual-sphere {
  transform: translateX(-50%) translateY(-8px) scale(1.035);
}

.visual-space .visual-ring {
  position: absolute;
  top: 43%;
  left: 50%;
  width: 390px;
  height: 90px;
  border: 2px solid rgba(151, 212, 255, 0.56);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-11deg);
  box-shadow: 0 0 32px rgba(80, 177, 255, 0.24);
}

.visual-lab .visual-window {
  position: absolute;
  top: 10%;
  left: 50%;
  width: 72%;
  height: 82%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 32px 60px rgba(17, 0, 48, 0.34);
  backdrop-filter: blur(18px);
  transform: translateX(-50%) perspective(700px) rotateX(4deg) rotateY(-7deg);
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.project-card:hover .visual-lab .visual-window {
  transform: translateX(-50%) perspective(700px) rotateX(0) rotateY(0) translateY(-8px);
}

.window-bar {
  display: flex;
  gap: 7px;
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.window-bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.48);
}

.window-art {
  position: absolute;
  inset: 58px 20px 20px;
  overflow: hidden;
  border-radius: 16px;
  background:
    radial-gradient(circle at 70% 25%, #ff96e9, transparent 28%),
    radial-gradient(circle at 27% 75%, #6888ff, transparent 33%),
    linear-gradient(145deg, #37236b, #7e3aa9);
}

.window-art::before,
.window-art::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 45%;
}

.window-art::before {
  inset: 17% 20% 26% 13%;
  transform: rotate(24deg);
}

.window-art::after {
  inset: 29% 12% 15% 28%;
  border-style: dashed;
  transform: rotate(-15deg);
}

.visual-notes .note-stack {
  position: absolute;
  top: 8%;
  left: 50%;
  width: 70%;
  height: 84%;
  transform: translateX(-50%);
}

.note-sheet {
  position: absolute;
  inset: 0;
  padding: 42px 36px;
  border-radius: 22px;
  color: #28211b;
  background: #f6eee4;
  box-shadow: 0 30px 60px rgba(40, 23, 10, 0.32);
  transition: transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.note-sheet:nth-child(1) {
  background: #c98f68;
  transform: rotate(-8deg) translate(-25px, 7px);
}

.note-sheet:nth-child(2) {
  background: #e1b58f;
  transform: rotate(7deg) translate(24px, 5px);
}

.note-sheet:nth-child(3) {
  transform: rotate(-1deg);
}

.project-card:hover .note-sheet:nth-child(1) {
  transform: rotate(-11deg) translate(-36px, -2px);
}

.project-card:hover .note-sheet:nth-child(2) {
  transform: rotate(10deg) translate(37px, -4px);
}

.project-card:hover .note-sheet:nth-child(3) {
  transform: rotate(0) translateY(-8px);
}

.note-sheet h4 {
  margin: 0 0 26px;
  font-family: Georgia, "Songti SC", serif;
  font-size: 28px;
  font-weight: 500;
}

.note-line {
  width: 100%;
  height: 1px;
  margin: 16px 0;
  background: rgba(40, 33, 27, 0.18);
}

.note-line.short {
  width: 60%;
}

.quote-section {
  padding-top: 40px;
}

.quote-card {
  position: relative;
  min-height: 500px;
  margin: 0;
  padding: clamp(50px, 8vw, 100px);
  overflow: hidden;
  border-radius: var(--radius-lg);
  color: #fff;
  background:
    radial-gradient(circle at 86% 18%, rgba(100, 181, 255, 0.34), transparent 23%),
    radial-gradient(circle at 16% 92%, rgba(191, 90, 242, 0.24), transparent 28%),
    #080b13;
  box-shadow: var(--shadow);
}

.quote-card::after {
  position: absolute;
  top: -220px;
  right: -170px;
  width: 500px;
  height: 500px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  content: "";
  box-shadow:
    0 0 0 80px rgba(255, 255, 255, 0.025),
    0 0 0 160px rgba(255, 255, 255, 0.018);
}

.quote-mark {
  color: var(--blue-bright);
  font-family: Georgia, serif;
  font-size: 90px;
  line-height: 0.8;
}

.quote-card blockquote {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 38px 0 45px;
  font-size: clamp(40px, 5.4vw, 70px);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.05em;
}

.quote-card figcaption {
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
}

.contact {
  padding-top: 100px;
}

.contact-card {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  align-items: end;
  gap: 80px;
  padding: clamp(50px, 7vw, 90px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.05);
}

.contact-copy h2 {
  margin: 0;
  font-size: clamp(48px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.contact-copy > p:last-child {
  max-width: 510px;
  margin: 28px 0 0;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.7;
}

.contact-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--text);
  font-size: clamp(17px, 2vw, 23px);
  font-weight: 600;
  letter-spacing: -0.025em;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.contact-button:hover {
  color: var(--blue);
  border-color: var(--blue);
}

.contact-arrow {
  transition: transform 0.3s ease;
}

.contact-button:hover .contact-arrow {
  transform: translate(4px, -4px);
}

.footer {
  padding: 36px 0 54px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 12px;
}

.footer-inner p {
  margin: 0;
}

.social-links {
  display: flex;
  gap: 22px;
}

.social-links a {
  transition: color 0.25s ease;
}

.social-links a:hover {
  color: var(--text);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

.hero .reveal:nth-child(2) {
  transition-delay: 0.08s;
}

.hero .reveal:nth-child(3) {
  transition-delay: 0.16s;
}

.hero .reveal:nth-child(4) {
  transition-delay: 0.24s;
}

.hero-art.reveal {
  transition-delay: 0.2s;
}

@keyframes orb-float {
  0%,
  100% {
    transform: rotate(-9deg) translateY(0);
  }
  50% {
    transform: rotate(-5deg) translateY(-18px);
  }
}

@keyframes glow-breathe {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.95);
  }
  50% {
    opacity: 0.82;
    transform: scale(1.08);
  }
}

@keyframes orbit-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes sheen {
  0%,
  23% {
    transform: translateX(-30%) rotate(8deg);
  }
  55%,
  100% {
    transform: translateX(32%) rotate(8deg);
  }
}

@keyframes arrow-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(4px);
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 150px;
  }

  .hero-copy {
    max-width: 790px;
  }

  .hero-art {
    min-height: 570px;
  }

  .orb-stage {
    width: min(76vw, 470px);
  }

  .scroll-cue {
    display: none;
  }

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

  .about-lead {
    max-width: 720px;
  }

  .project-card,
  .project-card:nth-child(3) {
    min-height: 560px;
    grid-column: span 12;
  }

  .project-card:nth-child(3) {
    margin-inline: 0;
  }

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

@media (max-width: 700px) {
  :root {
    --shell: min(100% - 32px, 1160px);
    --radius-lg: 28px;
    --radius-md: 22px;
  }

  .nav {
    height: 64px;
  }

  .menu-toggle {
    position: relative;
    z-index: 12;
    display: grid;
  }

  .menu-toggle span {
    position: absolute;
    width: 17px;
    height: 1px;
    background: currentColor;
    transition: transform 0.3s ease;
  }

  .menu-toggle span:first-child {
    transform: translateY(-3px);
  }

  .menu-toggle span:last-child {
    transform: translateY(3px);
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: rotate(-45deg);
  }

  .nav-links {
    position: fixed;
    inset: 0;
    z-index: 11;
    display: flex;
    visibility: hidden;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 18px;
    padding: 0 11vw;
    opacity: 0;
    background: var(--bg-elevated);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .nav-links.is-open {
    visibility: visible;
    opacity: 1;
  }

  .nav-links a {
    font-size: 42px;
    font-weight: 650;
    letter-spacing: -0.05em;
  }

  .theme-toggle {
    position: relative;
    z-index: 12;
  }

  .hero {
    min-height: auto;
    padding-block: 130px 80px;
  }

  .hero-title {
    font-size: clamp(49px, 15vw, 72px);
  }

  .hero-intro {
    margin-top: 28px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    margin-top: 34px;
  }

  .button {
    width: 100%;
  }

  .hero-art {
    min-height: 420px;
    margin-top: 30px;
  }

  .orb-stage {
    width: min(84vw, 370px);
  }

  .status-pill {
    right: 0;
    bottom: 2%;
  }

  .section {
    padding-block: 100px;
  }

  .section-heading h2 {
    font-size: 42px;
  }

  .section-heading-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-note {
    text-align: left;
  }

  .about-grid {
    gap: 55px;
    margin-top: 60px;
  }

  .principle {
    grid-template-columns: 45px 1fr;
  }

  .principle p {
    grid-column: 2;
  }

  .projects {
    margin-top: 48px;
  }

  .project-card,
  .project-card:nth-child(3) {
    min-height: 520px;
  }

  .project-copy {
    padding: 30px 26px;
  }

  .project-arrow {
    width: 44px;
    height: 44px;
  }

  .project-visual {
    min-height: 270px;
  }

  .visual-space .visual-sphere {
    width: 190px;
  }

  .visual-space .visual-ring {
    width: 300px;
    height: 70px;
  }

  .visual-lab .visual-window,
  .visual-notes .note-stack {
    width: 82%;
  }

  .quote-section {
    padding-top: 0;
  }

  .quote-card {
    min-height: 450px;
    padding: 50px 30px;
  }

  .contact {
    padding-top: 40px;
  }

  .contact-card {
    gap: 52px;
    padding: 50px 28px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column-reverse;
    gap: 22px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
