@font-face {
  font-family: "SphereFez Space";
  src: url("SphereFez-8MAzJ.ttf") format("truetype");
  font-display: swap;
}

:root {
  color-scheme: light;
  --background: #fdfcff;
  --foreground: #272936;
  --muted: #696b78;
  --teal: #4ecdc4;
  --lavender: #d8b2f2;
  --surface: rgba(255, 255, 255, .76);
  --border: rgba(104, 100, 123, .15);
  --shadow: rgba(69, 66, 92, .12);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --background: #20212b;
  --foreground: #faf8ff;
  --muted: #b8b7c3;
  --surface: rgba(40, 41, 54, .76);
  --border: rgba(255, 255, 255, .12);
  --shadow: rgba(0, 0, 0, .4);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { width: 100%; min-height: 100%; }
html { background: var(--background); }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: "SphereFez Space", ui-sans-serif, system-ui, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
button, a { font: inherit; }
a { color: inherit; }

.hero {
  position: relative;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  padding: 5rem 1rem;
  background:
    radial-gradient(circle at 12% 18%, rgba(216, 178, 242, .12), transparent 26%),
    radial-gradient(circle at 88% 76%, rgba(78, 205, 196, .12), transparent 28%),
    var(--background);
  transition: background-color .25s, color .25s;
}

.aurora {
  position: absolute;
  inset: 0;
  z-index: -3;
  background: linear-gradient(135deg, rgba(216, 178, 242, .1), transparent 42%, rgba(78, 205, 196, .1));
}

.galaxy-field {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, .9));
}
.meteor-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.shooting-star {
  --meteor-color: 30, 34, 43;
  position: absolute;
  inset: -5%;
  display: block;
  width: 110%;
  height: 110%;
  overflow: visible;
  opacity: 0;
  transform: translateY(var(--meteor-start-y, 0)) rotate(var(--meteor-angle, 0deg));
  transform-origin: center;
}
.shooting-star path {
  fill: none;
  stroke: rgb(var(--meteor-color));
  stroke-width: .48;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 1px rgba(var(--meteor-color), .3));
  stroke-dasharray: 1;
  stroke-dashoffset: -1;
}
[data-theme="dark"] .shooting-star { --meteor-color: 255, 255, 255; }
@keyframes shoot-across {
  0% { opacity: 0; }
  10% { opacity: .9; }
  55% { opacity: .75; }
  100% { opacity: 0; }
}
@keyframes draw-shooting-star {
  0% { stroke-dashoffset: 1; }
  45%, 100% { stroke-dashoffset: 0; }
}
.stars { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.star {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  background: radial-gradient(circle, #fff 0%, #fff 20%, var(--star-color) 38%, rgba(255,255,255,.9) 58%, transparent 82%);
  filter: blur(.7px);
  animation: float-star var(--duration) ease-in-out var(--delay) infinite;
}
@keyframes float-star {
  0% { opacity: 0; transform: translateY(15px) scale(.8); }
  18%, 75% { opacity: .72; }
  50% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-95px) scale(.8); }
}

.theme-toggle {
  position: fixed;
  top: max(1.5rem, env(safe-area-inset-top));
  right: max(1.5rem, env(safe-area-inset-right));
  z-index: 20;
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  place-items: center;
  color: var(--foreground);
  border: 1px solid var(--border);
  border-radius: .5rem;
  background: var(--surface);
  box-shadow: 0 7px 20px var(--shadow);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: transform .2s, background-color .25s, border-color .25s;
}
.theme-toggle:hover { transform: translateY(-2px); }
.theme-toggle:focus-visible, a:focus-visible { outline: 3px solid rgba(78, 205, 196, .65); outline-offset: 3px; }
.theme-toggle svg { position: absolute; width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: opacity .2s, transform .3s; }
.theme-toggle .sun { opacity: 0; transform: rotate(-50deg) scale(.5); }
[data-theme="dark"] .theme-toggle .moon { opacity: 0; transform: rotate(50deg) scale(.5); }
[data-theme="dark"] .theme-toggle .sun { opacity: 1; transform: rotate(0) scale(1); }

.intro {
  position: relative;
  z-index: 5;
  width: min(56rem, 100%);
  text-align: center;
  animation: intro-in .7s cubic-bezier(.21, .47, .32, .98) both;
}
@keyframes intro-in { from { opacity: 0; transform: translateY(24px); } }
h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(2.2rem, 6.24vw, 4.4rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: .025em;
  white-space: nowrap;
  background: linear-gradient(90deg, var(--teal), var(--lavender), var(--teal), var(--lavender));
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  animation: gradient-shift 5s linear infinite;
}
@keyframes gradient-shift { to { background-position: 200% center; } }
.role {
  margin: .5rem 0 0;
  color: var(--muted);
  font-size: clamp(1.725rem, 4.5vw, 2.25rem);
  line-height: 1.45;
  letter-spacing: .04em;
}
.role a { text-decoration: none; }
.role a:hover { color: var(--foreground); }
.role.accent { color: var(--teal); font-weight: 600; }
.role.photographer { font-size: clamp(1.438rem, 3.75vw, 1.875rem); }
.role a::after {
  content: "";
  display: block;
  width: 0;
  height: 1px;
  margin: .1rem auto 0;
  background: currentColor;
  transition: width .2s;
}
.role a:hover::after { width: 10rem; }

.socials {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.125rem;
  margin-top: 2rem;
}
.socials a {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: .5rem;
  background: var(--surface);
  box-shadow: 0 5px 18px var(--shadow);
  backdrop-filter: blur(10px);
  transition: color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.socials a:hover { color: var(--teal); border-color: rgba(78, 205, 196, .55); transform: translateY(-4px) scale(1.05); box-shadow: 0 10px 25px var(--shadow); }
.socials svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.socials .fill { fill: currentColor; stroke: none; }

.orbit-stage {
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  width: min(360vw, 248rem);
  aspect-ratio: 1.75;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 1;
}
.particle-field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 9px rgba(255, 255, 255, .82));
}

@media (max-width: 700px) {
  .hero { padding: 4.5rem 1rem 3rem; }
  .theme-toggle { top: max(1rem, env(safe-area-inset-top)); right: max(1rem, env(safe-area-inset-right)); }
  .orbit-stage { width: 400vw; aspect-ratio: 1 / 1.15; opacity: .5; }
  h1 { font-size: clamp(1.65rem, 8vw, 3.11rem); }
  .role { font-size: clamp(1.15rem, 5.5vw, 1.875rem); }
  .role.photographer { font-size: clamp(1rem, 4.7vw, 1.563rem); }
}

@media (max-width: 430px) {
  .intro { width: calc(100vw - 2rem); }
  h1 { font-size: clamp(1.55rem, 7.4vw, 2.05rem); letter-spacing: 0; padding-inline: .15em; }
  .role { font-size: clamp(1.1rem, 5.1vw, 1.4rem); letter-spacing: .02em; }
  .role.photographer { font-size: clamp(.95rem, 4.35vw, 1.2rem); letter-spacing: .015em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .star { opacity: .35; }
  .galaxy-field, .particle-field { filter: none; }
  .shooting-star { animation-duration: .5s !important; }
  .shooting-star path { animation-duration: .5s !important; }
}
