@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;700&display=swap');

:root {
  --bg: #000000;
  --bg-soft: #0a0a0a;
  --panel: rgba(18, 18, 18, 0.76);
  --panel-strong: rgba(28, 28, 28, 0.92);
  --border: rgba(255, 255, 255, 0.12);
  --text: #f5f5f7;
  --muted: #a1a1a6;
  --muted-strong: #d2d2d7;
  --accent: #ffffff;
  --accent-2: #f5f5f7;
  --accent-3: #d2d2d7;
  --shadow: 0 28px 72px rgba(0, 0, 0, 0.42);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --nav-height: 82px;
  --max-width: 1240px;
  --cursor-x: 50vw;
  --cursor-y: 24vh;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Manrope', 'Segoe UI', sans-serif;
  background:
    radial-gradient(circle at 50% -10%, rgba(255, 255, 255, 0.08), transparent 26%),
    linear-gradient(180deg, #0a0a0a 0%, #050505 42%, #000000 100%);
  color: var(--text);
  overflow-x: hidden;
}

body::before,
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}

body::before {
  background:
    radial-gradient(340px circle at var(--cursor-x) var(--cursor-y), rgba(255, 255, 255, 0.08), transparent 72%),
    radial-gradient(520px circle at 20% 15%, rgba(255, 255, 255, 0.04), transparent 70%);
  transition: background 0.14s ease-out;
}

body::after {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(180deg, rgba(255, 255, 255, 0.7), transparent 82%);
  z-index: -3;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.site-shell {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
}

.announcement-strip {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 14px auto 0;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted-strong);
  font-size: 0.92rem;
  text-align: center;
}

.progress-line {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--scroll-progress, 0%);
  height: 3px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.94), rgba(210, 210, 215, 0.94));
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.2);
  z-index: 150;
}

header {
  position: sticky;
  top: 0;
  z-index: 120;
  backdrop-filter: blur(24px);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.58));
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar {
  min-height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo a {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
}

.nav-links,
.footer-links,
.inline-links,
.stats-row,
.meta-row,
.chip-row {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a,
.nav-social a {
  color: rgba(244, 247, 251, 0.82);
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-social a:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.nav-links a.active {
  color: #ffffff;
}

.nav-social {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: none;
  margin: 0;
}

.nav-toggle .bar {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
  transition: transform 0.24s ease, opacity 0.24s ease;
}

body.nav-open .nav-toggle .bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

body.nav-open .nav-toggle .bar:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle .bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

main {
  position: relative;
}

section {
  padding: 92px 0;
}

.hero {
  min-height: calc(100vh - var(--nav-height));
  display: grid;
  align-items: center;
  padding: 72px 0 48px;
}

.hero-grid,
.two-column,
.panel-grid,
.feature-grid,
.spotlight-grid,
.projects-grid,
.skills-grid,
.contact-grid,
.experience-timeline,
.highlights-grid {
  display: grid;
  gap: 24px;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
  align-items: center;
}

.hero-copy.centered {
  max-width: 860px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted-strong);
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.28);
}

.hero-copy h1,
.page-hero h1,
.section-heading h2,
.detail-shell h1 {
  margin: 18px 0;
  line-height: 0.92;
  letter-spacing: -0.05em;
  font-weight: 800;
}

.hero-copy h1,
.page-hero h1 {
  font-size: clamp(3.6rem, 8vw, 7.2rem);
}

.section-heading h2,
.detail-shell h1 {
  font-size: clamp(2.25rem, 4vw, 3.6rem);
}

.lede,
.hero-copy p,
.page-hero p,
.section-heading p,
.detail-shell p,
.panel p,
.contact-copy p,
.contact-info p {
  color: var(--muted);
  line-height: 1.75;
  font-size: 1.02rem;
}

.hero-copy p,
.page-hero p {
  max-width: 58ch;
  font-size: 1.08rem;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-copy,
.section-heading,
.about-container,
.contact-card,
.panel,
.project-item,
.skill-item,
.timeline-card,
.experience-container,
.project-container {
  min-width: 0;
}

.hero-actions,
.chip-row,
.meta-row,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.chip-row {
  margin-top: 28px;
}

.chip {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted-strong);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.92rem;
}

.cta-btn,
.ghost-btn,
.mini-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.cta-btn {
  background: #ffffff;
  color: #000000;
  font-weight: 800;
  box-shadow: 0 16px 36px rgba(255, 255, 255, 0.12);
}

.ghost-btn {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
}

.cta-btn:hover,
.ghost-btn:hover,
.mini-link:hover {
  transform: translateY(-2px);
}

.mini-link {
  padding: 0;
  color: #ffffff;
}

.hero-visual,
.panel,
.timeline-card,
.skill-item,
.project-item,
.contact-card,
.about-container,
.contact-container,
.experience-container,
.project-container,
.experience-meta,
.project-meta {
  position: relative;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(22, 22, 22, 0.88), rgba(10, 10, 10, 0.96));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-visual {
  min-height: 640px;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual::before,
.panel::before,
.timeline-card::before,
.skill-item::before,
.project-item::before,
.contact-card::before,
.about-container::before,
.experience-container::before,
.project-container::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 46%, rgba(255, 255, 255, 0.03) 100%);
  opacity: 1;
  pointer-events: none;
}

.hardware-visual {
  position: relative;
  z-index: 2;
  width: min(82%, 460px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.hardware-visual-hero {
  margin-top: 42px;
}

.board-plane,
.board-glow,
.motor-assembly,
.hero-callout,
.hero-caption,
.hex-chip,
.spotlight-rail {
  position: absolute;
}

.board-plane {
  inset: 46px;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 30%, rgba(255, 255, 255, 0.015) 100%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.008));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    inset 0 -40px 80px rgba(0, 0, 0, 0.14);
}

.board-glow {
  inset: 18%;
  border-radius: 999px;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.12), transparent 62%);
  filter: blur(18px);
  opacity: 0.7;
}

.motor-assembly {
  inset: 50% auto auto 50%;
  width: min(60%, 296px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
}

.motor-ring,
.motor-core,
.motor-spokes span {
  position: absolute;
  border-radius: 999px;
}

.motor-ring {
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.motor-ring-outer {
  background:
    radial-gradient(circle at center, transparent 54%, rgba(255, 255, 255, 0.06) 55%, rgba(255, 255, 255, 0.015) 66%, transparent 67%),
    radial-gradient(circle at center, rgba(255, 255, 255, 0.06), transparent 72%);
  box-shadow:
    inset 0 0 0 14px rgba(255, 255, 255, 0.02),
    0 0 28px rgba(255, 255, 255, 0.06);
}

.motor-ring-mid {
  inset: 17%;
  background: radial-gradient(circle at center, transparent 56%, rgba(255, 255, 255, 0.075) 57%, transparent 68%);
}

.motor-ring-inner {
  inset: 33%;
  border-color: rgba(255, 255, 255, 0.22);
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.08), transparent 72%);
}

.motor-spokes {
  position: absolute;
  inset: 19%;
}

.motor-spokes span {
  top: 50%;
  left: 50%;
  width: 1px;
  height: 42%;
  transform-origin: 50% 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.03));
}

.motor-spokes span:nth-child(1) { transform: translate(-50%, -50%) rotate(0deg); }
.motor-spokes span:nth-child(2) { transform: translate(-50%, -50%) rotate(60deg); }
.motor-spokes span:nth-child(3) { transform: translate(-50%, -50%) rotate(120deg); }
.motor-spokes span:nth-child(4) { transform: translate(-50%, -50%) rotate(180deg); }
.motor-spokes span:nth-child(5) { transform: translate(-50%, -50%) rotate(240deg); }
.motor-spokes span:nth-child(6) { transform: translate(-50%, -50%) rotate(300deg); }

.motor-core {
  inset: 42%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background:
    radial-gradient(circle at 40% 35%, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.035) 62%, rgba(0, 0, 0, 0.12) 100%);
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.12);
}

.motor-readout {
  position: absolute;
  left: 50%;
  bottom: -12%;
  transform: translateX(-50%);
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 12, 12, 0.68);
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-callout strong,
.spotlight-rail-item strong {
  display: block;
  font-size: 0.98rem;
  color: #ffffff;
}

.hero-callout span,
.spotlight-rail-item span {
  display: block;
  margin-top: 4px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.66);
}

.hero-callout {
  max-width: 172px;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(16, 16, 16, 0.62);
  backdrop-filter: blur(16px);
}

.hero-callout-left {
  left: 6%;
  bottom: 16%;
}

.hero-callout-right {
  right: 4%;
  top: 22%;
}

.hex-chip {
  left: 13%;
  top: 18%;
  width: 78px;
  height: 68px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  clip-path: polygon(25% 6%, 75% 6%, 100% 50%, 75% 94%, 25% 94%, 0 50%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(32, 32, 32, 0.9), rgba(14, 14, 14, 0.88));
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

.hero-caption {
  left: 50%;
  bottom: 9%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.86rem;
  letter-spacing: 0.03em;
  text-align: center;
  white-space: nowrap;
}

.orb,
.orb-small,
.hero-arc,
.hero-grid-lines {
  position: absolute;
  pointer-events: none;
}

.orb {
  width: 300px;
  height: 300px;
  top: -70px;
  right: -50px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.08) 45%, transparent 72%);
  filter: blur(20px);
  opacity: 0.36;
}

.orb-small {
  width: 180px;
  height: 180px;
  bottom: 60px;
  left: 24px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 72%);
  filter: blur(14px);
}

.hero-arc {
  inset: 22px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.hero-grid-lines {
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  opacity: 0.25;
}

.floating-card {
  position: absolute;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(20, 20, 20, 0.72);
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
}

.floating-card strong {
  display: block;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.floating-card span {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-weight: 700;
}

.floating-card.top {
  top: 36px;
  left: 28px;
  right: 28px;
}

.floating-card.bottom {
  left: 28px;
  right: 28px;
  bottom: 26px;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.stat {
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat strong {
  display: block;
  font-size: 1.4rem;
}

.stat span {
  color: var(--muted);
  font-size: 0.9rem;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading.centered,
.hero-copy.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  align-items: center;
}

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

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

.panel-grid,
.feature-grid,
.projects-grid,
.skills-grid,
.contact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.panel,
.project-item,
.skill-item,
.contact-card,
.about-container,
.contact-container,
.experience-container,
.project-container {
  padding: 30px;
}

.panel h3,
.project-item h3,
.skill-item h3,
.contact-card h3,
.about-container h2,
.experience-container h2,
.project-container h2 {
  margin: 0 0 12px;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.panel-kicker,
.timeline-date,
.detail-kicker {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--muted-strong);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feature-panel {
  min-height: 340px;
}

.feature-panel.large {
  grid-column: span 2;
  min-height: 440px;
}

.feature-visual {
  height: 220px;
  margin-top: 24px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(12, 12, 12, 0.3));
}

.feature-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

.apple-band {
  background: #ffffff;
  color: #000000;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.apple-band .section-heading h2,
.apple-band .section-heading p,
.apple-band .panel-kicker,
.apple-band .spotlight-copy p,
.apple-band .spotlight-stat span,
.apple-band .spotlight-copy .mini-link {
  color: #1d1d1f;
}

.apple-band .section-heading p,
.apple-band .spotlight-copy p,
.apple-band .spotlight-stat span {
  color: #6e6e73;
}

.apple-band .mini-link {
  color: #0066cc;
}

.apple-band .spotlight-shell {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
}

.spotlight-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 48px;
}

.spotlight-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(2.8rem, 6vw, 5.6rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
}

.spotlight-copy p {
  max-width: 46ch;
  font-size: 1.08rem;
  line-height: 1.7;
}

.spotlight-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

.spotlight-stat {
  min-width: 160px;
}

.spotlight-stat strong {
  display: block;
  font-size: 2rem;
  letter-spacing: -0.04em;
}

.spotlight-frame {
  min-height: 620px;
  border-radius: 36px;
  background: linear-gradient(180deg, #0f0f10 0%, #000000 100%);
  position: relative;
  overflow: hidden;
}

.spotlight-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 14%, rgba(255, 255, 255, 0.2), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 42%);
}

.spotlight-label {
  position: absolute;
  top: 30px;
  left: 30px;
  right: 30px;
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hardware-visual-spotlight {
  width: min(86%, 540px);
  aspect-ratio: 0.92;
  margin: 84px auto 0;
}

.hardware-visual-spotlight .motor-assembly {
  width: min(48%, 252px);
  left: 32%;
  transform: translate(-50%, -50%);
}

.hardware-visual-spotlight .motor-readout {
  bottom: -14%;
}

.hex-chip-spotlight {
  top: 17%;
  left: 10%;
  width: 92px;
  height: 78px;
  font-size: 0.78rem;
}

.spotlight-rail {
  top: 18%;
  right: 6%;
  width: min(44%, 240px);
  display: grid;
  gap: 14px;
}

.spotlight-rail-item {
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 12, 12, 0.64);
  backdrop-filter: blur(18px);
}

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

.timeline-card {
  padding: 28px;
}

.timeline-card h3 {
  margin: 0 0 8px;
  font-size: 1.28rem;
}

.timeline-role {
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 6px;
}

.timeline-card ul,
.detail-shell ul,
.about-container ul,
.project-container ul,
.experience-container ul,
.skill-item ul {
  padding-left: 18px;
  color: var(--muted);
}

.timeline-card li,
.detail-shell li,
.about-container li,
.project-container li,
.experience-container li,
.skill-item li {
  margin-bottom: 10px;
  line-height: 1.7;
}

.page-hero {
  padding-top: 72px;
  padding-bottom: 16px;
}

.detail-shell {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding: 60px 0 100px;
}

.detail-shell .about-container,
.detail-shell .experience-container,
.detail-shell .project-container {
  padding: 42px;
}

.experience-meta,
.project-meta {
  margin: 28px 0 34px;
  padding: 24px;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 28px;
}

.tech-tag {
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted-strong);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.92rem;
}

.contact-grid {
  grid-template-columns: 1.2fr 0.8fr;
}

.contact-card form,
.contact-form {
  display: grid;
  gap: 14px;
}

.form-status {
  margin: 2px 0 0;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted-strong);
  line-height: 1.6;
}

.form-status.is-success {
  border-color: rgba(84, 214, 136, 0.36);
  background: rgba(84, 214, 136, 0.12);
  color: #d9ffe8;
}

.form-status.is-error {
  border-color: rgba(255, 107, 107, 0.34);
  background: rgba(255, 107, 107, 0.12);
  color: #ffd7d7;
}

.cta-btn:disabled,
.ghost-btn:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

input,
textarea {
  width: 100%;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

input::placeholder,
textarea::placeholder {
  color: #7f8ca6;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.06);
}

footer {
  padding: 24px 0 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

[data-tilt] {
  transform-style: preserve-3d;
  transition: transform 0.2s ease;
}

.muted {
  color: var(--muted);
}

.stack {
  display: grid;
  gap: 18px;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

@media (max-width: 1080px) {
  .hero-grid,
  .two-column,
  .contact-grid,
  .experience-timeline,
  .panel-grid,
  .feature-grid,
  .spotlight-grid,
  .projects-grid,
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .feature-panel.large {
    grid-column: auto;
  }

  .hero-visual {
    min-height: 520px;
  }

  .spotlight-frame {
    min-height: 520px;
  }
}

@media (max-width: 860px) {
  :root {
    --nav-height: 74px;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    left: 20px;
    right: 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    border-radius: 24px;
    border: 1px solid var(--border);
    background: rgba(6, 10, 19, 0.94);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }

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

  .nav-social {
    display: none;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .site-shell,
  .detail-shell {
    width: min(calc(100% - 24px), var(--max-width));
  }

  section {
    padding: 70px 0;
  }

  .hero-grid {
    gap: 18px;
  }

  .hero {
    min-height: auto;
    padding-top: 14px;
    padding-bottom: 20px;
  }

  .hero-visual {
    min-height: 330px;
    order: -1;
    border-radius: 26px;
  }

  .hardware-visual {
    width: min(84%, 310px);
  }

  .hardware-visual-hero {
    margin-top: 24px;
  }

  .motor-readout {
    padding: 8px 12px;
    font-size: 0.56rem;
    letter-spacing: 0.1em;
  }

  .hero-callout {
    max-width: 134px;
    padding: 10px 12px;
    border-radius: 16px;
  }

  .hero-callout-right {
    right: 2%;
    top: 24%;
  }

  .hex-chip {
    width: 58px;
    height: 50px;
    font-size: 0.58rem;
  }

  .hero-caption {
    bottom: 11%;
    font-size: 0.7rem;
  }

  .spotlight-rail {
    position: static;
    width: 100%;
    padding: 0 14px 16px;
    margin-top: 18px;
  }

  .spotlight-rail-item {
    padding: 12px 14px;
    border-radius: 16px;
  }

  .hero-copy h1,
  .page-hero h1 {
    font-size: clamp(2.35rem, 11vw, 3.6rem);
    line-height: 0.98;
    letter-spacing: -0.06em;
    max-width: 10ch;
  }

  .hero-copy {
    align-items: center;
    text-align: center;
  }

  .section-heading h2,
  .detail-shell h1 {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }

  .hero-copy p,
  .page-hero p,
  .section-heading p {
    font-size: 0.95rem;
    line-height: 1.58;
  }

  .eyebrow {
    gap: 8px;
    padding: 7px 11px;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    max-width: 100%;
    flex-wrap: wrap;
  }

  .stats-row {
    grid-template-columns: 1fr;
    margin-top: 14px;
    gap: 8px;
  }

  .stat {
    padding: 12px 14px;
    border-radius: 16px;
  }

  .chip-row {
    gap: 8px;
    margin-top: 14px;
    justify-content: center;
  }

  .chip {
    width: 100%;
    justify-content: center;
    text-align: center;
    font-size: 0.82rem;
    padding: 8px 10px;
  }

  .floating-card {
    padding: 10px 12px;
    border-radius: 14px;
  }

  .floating-card.top {
    top: 14px;
    left: 14px;
    right: 14px;
  }

  .floating-card.bottom {
    display: none;
  }

  .orb {
    width: 140px;
    height: 140px;
    top: -28px;
    right: -18px;
  }

  .orb-small {
    width: 88px;
    height: 88px;
    left: 10px;
    bottom: 24px;
  }

  .panel,
  .project-item,
  .skill-item,
  .contact-card,
  .about-container,
  .contact-container,
  .experience-container,
  .project-container,
  .timeline-card {
    padding: 22px;
    border-radius: 24px;
  }

  .detail-shell .about-container,
  .detail-shell .experience-container,
  .detail-shell .project-container {
    padding: 28px 22px;
  }

  .hero-actions,
  .button-row {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .cta-btn,
  .ghost-btn {
    width: 100%;
    min-height: 52px;
  }

  .contact-grid,
  .projects-grid,
  .skills-grid,
  .panel-grid,
  .feature-grid,
  .spotlight-grid,
  .experience-timeline,
  .two-column {
    gap: 16px;
  }

  .feature-visual {
    height: 180px;
    margin-top: 18px;
  }

  .footer-inner,
  .footer-links {
    width: 100%;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 12px 18px;
  }

  .detail-shell {
    padding-top: 32px;
    padding-bottom: 72px;
  }

  .apple-band .spotlight-shell {
    width: calc(100% - 24px);
  }

  .spotlight-copy h2 {
    font-size: clamp(2.4rem, 12vw, 3.8rem);
  }

  .spotlight-copy,
  .spotlight-copy p {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .spotlight-metrics {
    justify-content: center;
  }

  .spotlight-frame {
    min-height: 400px;
    border-radius: 26px;
  }

  .hardware-visual-spotlight {
    width: min(88%, 330px);
    margin-top: 72px;
  }

  .board-plane {
    inset: 44px;
  }

  .hardware-visual-spotlight .motor-assembly {
    width: min(52%, 170px);
    left: 34%;
    top: 38%;
  }

  .hex-chip-spotlight {
    top: 12%;
    left: 8%;
    width: 68px;
    height: 58px;
  }

  .spotlight-label {
    top: 18px;
    left: 18px;
    right: 18px;
    font-size: 0.72rem;
  }

  .announcement-strip {
    width: calc(100% - 24px);
    margin-top: 8px;
    padding: 8px 10px;
    font-size: 0.76rem;
    border-radius: 18px;
  }
}

@media (max-width: 480px) {
  .site-shell,
  .detail-shell {
    width: calc(100% - 16px);
  }

  section {
    padding: 48px 0;
  }

  .navbar {
    gap: 12px;
  }

  .nav-links {
    left: 8px;
    right: 8px;
    top: calc(100% + 6px);
    padding: 16px;
    border-radius: 18px;
  }

  .logo a {
    font-size: 0.92rem;
    letter-spacing: 0.14em;
  }

  .hero-visual {
    min-height: 286px;
  }

  .hardware-visual {
    width: min(86%, 250px);
  }

  .hardware-visual-hero {
    margin-top: 18px;
  }

  .motor-assembly {
    width: min(54%, 170px);
  }

  .board-plane {
    inset: 34px;
  }

  .hero-arc {
    inset: 12px;
  }

  .hero-grid-lines {
    background-size: 56px 56px;
  }

  .floating-card strong {
    font-size: 0.68rem;
  }

  .floating-card span {
    font-size: 0.8rem;
  }

  .hero-callout-right {
    display: none;
  }

  .hero-caption {
    display: none;
  }

  .hero-callout-left {
    left: 8%;
    bottom: 18%;
  }

  .hex-chip {
    top: 16%;
    left: 10%;
    width: 50px;
    height: 44px;
    font-size: 0.5rem;
  }

  .panel,
  .project-item,
  .skill-item,
  .contact-card,
  .about-container,
  .contact-container,
  .experience-container,
  .project-container,
  .timeline-card {
    padding: 18px;
    border-radius: 20px;
  }

  .detail-shell .about-container,
  .detail-shell .experience-container,
  .detail-shell .project-container {
    padding: 22px 18px;
  }

  .stats-row {
    gap: 6px;
  }

  .stat strong {
    font-size: 1.05rem;
  }

  .chip {
    padding: 8px 10px;
  }

  .feature-visual {
    height: 160px;
  }

  .spotlight-frame {
    min-height: 340px;
  }

  .hardware-visual-spotlight {
    margin-top: 68px;
  }

  .spotlight-rail {
    padding: 0 10px 12px;
    gap: 10px;
  }

  .spotlight-rail-item {
    padding: 10px 12px;
  }

  .hero-copy h1,
  .page-hero h1 {
    font-size: clamp(2.05rem, 10.8vw, 3rem);
  }

  .hero-copy p {
    font-size: 0.9rem;
  }
}
