:root {
  color-scheme: dark;
  --background: #111112;
  --foreground: #f8f4ef;
  --muted: #b5aca8;
  --accent: #ff7648;
  --line: #302a2b;
  --mono: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  font-family: Inter, 'Segoe UI', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--foreground); }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.shell { width: min(75rem, calc(100% - 6rem)); margin-inline: auto; }

.masthead, .footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.masthead { min-height: 5.5rem; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; font-size: 1.2rem; font-weight: 750; letter-spacing: -.045em; text-decoration: none; }
.brand-mark { width: 1.85rem; height: 1.85rem; margin-inline-end: .55rem; background: url('/assets/favicon.svg') center / contain no-repeat; }
.brand-period, .hero-period { color: var(--accent); }
.nav-link, .footer a { color: var(--muted); text-decoration: none; }
.nav-link:hover, .footer a:hover { color: var(--foreground); }

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4.5rem);
  padding-block: clamp(3rem, 7vw, 6.25rem);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin: 0 0 1.35rem;
  color: var(--accent);
  font: 500 .875rem/1.4 var(--mono);
  letter-spacing: .14em;
}

.eyebrow span { width: 1.25rem; height: 1px; background: currentColor; }
h1 { margin: 0; font-size: clamp(4.4rem, 9vw, 8.4rem); font-weight: 780; letter-spacing: -.065em; line-height: .93; }
.lede { max-width: 28rem; margin: 1.65rem 0 2rem; color: var(--muted); font-size: clamp(1.05rem, 1.8vw, 1.35rem); line-height: 1.6; }

.button {
  display: inline-flex;
  align-items: center;
  min-height: 3.125rem;
  padding: .75rem 1.2rem;
  border-radius: .5rem;
  background: var(--accent);
  color: #1f100b;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .2s ease;
}

.button:hover { background: #ff986f; }

.scene {
  position: relative;
  isolation: isolate;
  contain: paint;
  aspect-ratio: 1.14;
  overflow: hidden;
  border: 1px solid #392e2d;
  border-radius: .9rem;
  background: radial-gradient(ellipse at 54% 58%, #2b1a17, #1b1516 53%, #151415 86%);
}

.scene-grid, .scene-content { position: absolute; inset: 0; }
.scene-grid {
  background-image: linear-gradient(#f9c6aa16 1px, transparent 1px), linear-gradient(90deg, #f9c6aa16 1px, transparent 1px);
  background-size: 8.333% 9.5%;
  background-position: center;
  mask-image: radial-gradient(ellipse at center, #000 5%, transparent 93%);
}

.scene-content { transform: translate(var(--shift-x, 0px), var(--shift-y, 0px)); transition: transform .55s cubic-bezier(.2,.8,.2,1); }
.reticle, .orbit, .core, .satellite-path { position: absolute; top: 50%; left: 50%; }
.reticle { width: 57%; aspect-ratio: 1; border: 1px solid #f79d6a2b; border-radius: 50%; transform: translate(-50%, -50%); }
.reticle::before, .reticle::after { content: ''; position: absolute; background: #f79d6a19; }
.reticle::before { width: 135%; height: 1px; top: 50%; left: -17.5%; }
.reticle::after { height: 135%; width: 1px; left: 50%; top: -17.5%; }

.orbit, .satellite-path { border-radius: 50%; transform: translate(-50%, -50%) rotate(-28deg); }
.orbit { border: 1px solid #ffa7756b; }
.orbit-outer { width: 86%; height: 34%; border-color: #e3a57d32; }
.orbit-middle, .satellite-path { width: 74%; height: 28%; }
.orbit-inner { width: 63%; height: 22%; border-color: #ffa77545; }

.core {
  width: 26%;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 36% 29%, #ffd0a2 0%, #ffad78 16%, #f67b49 35%, #c84625 59%, #67241b 82%, #331a1b 100%);
  box-shadow: inset .14rem .14rem .6rem #ffd6ab73, 0 0 3rem #ff601e47, 0 0 7rem #ff601e26;
}

.satellite { position: absolute; width: 100%; height: 100%; offset-path: ellipse(50% 50% at 50% 50%); offset-distance: 10%; }
.satellite::after { content: ''; position: absolute; top: 50%; left: 50%; width: .48rem; aspect-ratio: 1; border-radius: 50%; background: #ffb679; box-shadow: 0 0 .95rem #ff7b3d; transform: translate(-50%, -50%); }
.spark { position: absolute; width: .22rem; aspect-ratio: 1; border-radius: 50%; background: #e9a686; }
.spark-one { top: 28%; left: 29%; opacity: .65; }
.spark-two { top: 71%; left: 72%; opacity: .7; }
.spark-three { top: 32%; left: 80%; opacity: .4; }

@media (prefers-reduced-motion: no-preference) {
  .satellite { animation: orbit 13s linear infinite; }
  @keyframes orbit { to { offset-distance: 110%; } }
}

.projects { padding-block: 2.6rem 3.25rem; border-top: 1px solid var(--line); scroll-margin-top: 1rem; }
.projects h2 { margin: 0 0 .9rem; font-size: clamp(1.75rem, 4vw, 2.35rem); letter-spacing: -.05em; }
.empty-state { margin: 0; color: var(--muted); line-height: 1.6; }
.footer { min-height: 5rem; border-top: 1px solid var(--line); color: var(--muted); font: 400 .875rem/1.4 var(--mono); }

@media (max-width: 52rem) {
  .shell { width: calc(100% - 3rem); }
  .hero { grid-template-columns: 1fr; gap: 2.5rem; }
  .scene { width: 100%; max-width: 35rem; }
  .masthead { min-height: 4.5rem; }
}

@media (max-width: 26rem) {
  .shell { width: calc(100% - 2.25rem); }
  h1 { font-size: clamp(3rem, 16vw, 4.4rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .scene-content { transition: none; }
}
