:root {
  --gold: #d4a017;
  --gold-hot: #f7d774;
  --gold-rgb: 212, 160, 23;
  --hot-rgb: 247, 215, 116;
  --stone: #f4efe6;
  --stone-rgb: 244, 239, 230;
  --muted: rgba(244, 239, 230, 0.66);
  --faint: rgba(244, 239, 230, 0.42);
  --bg: #020202;

  /* Planet geometry: one circle, everything else shares its centre. */
  --planet: max(260vw, 1100px);
  --footer-h: 112px;
  --rim: clamp(calc(var(--footer-h) + 40px), 24vh, 260px);
  --safe-b: env(safe-area-inset-bottom, 0px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}

html,
body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--stone);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
}

p,
h1,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: rgba(var(--gold-rgb), 0.35);
  color: var(--stone);
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--gold-hot);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ───────────────────────── Scene ───────────────────────── */

.scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 100%, rgba(var(--gold-rgb), 0.07), transparent 70%),
    linear-gradient(180deg, #070707 0%, #030303 60%, #020202 100%);
}

#particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
}

/* The world is a square the size of the planet whose top edge is the horizon. */
.world {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: calc(100% - var(--rim) - var(--safe-b));
  width: var(--planet);
  height: var(--planet);
  margin-left: calc(var(--planet) / -2);
}

.atmosphere,
.planet,
.rim,
.orbit,
.sweep {
  position: absolute;
  border-radius: 50%;
}

/* Soft glow above the horizon. A circle, so it can never show a hard edge. */
.atmosphere {
  --g: clamp(140px, 22vh, 240px);
  inset: calc(var(--g) * -1);
  background: radial-gradient(
    circle closest-side,
    rgba(var(--hot-rgb), 0) calc(100% - var(--g) - 2px),
    rgba(var(--hot-rgb), 0.34) calc(100% - var(--g)),
    rgba(var(--gold-rgb), 0.16) calc(100% - var(--g) * 0.72),
    rgba(var(--gold-rgb), 0.05) calc(100% - var(--g) * 0.38),
    rgba(var(--gold-rgb), 0) 100%
  );
  -webkit-mask-image: radial-gradient(ellipse 32% 22% at 50% 0%, #000 0%, rgba(0, 0, 0, 0.55) 45%, transparent 100%);
  mask-image: radial-gradient(ellipse 32% 22% at 50% 0%, #000 0%, rgba(0, 0, 0, 0.55) 45%, transparent 100%);
}

.planet {
  inset: 0;
  background:
    radial-gradient(ellipse 22% 5% at 50% 0%, rgba(var(--gold-rgb), 0.13), transparent 100%),
    radial-gradient(ellipse 40% 14% at 50% 0%, rgba(40, 32, 18, 0.55), transparent 100%),
    #030303;
  box-shadow:
    inset 0 2px 3px rgba(var(--hot-rgb), 0.28),
    inset 0 14px 40px rgba(var(--gold-rgb), 0.06),
    0 -1px 4px rgba(var(--hot-rgb), 0.55),
    0 -6px 22px rgba(var(--hot-rgb), 0.16);
}

/* Thin bright horizon line, hottest at the top centre and cooling to the sides. */
.rim,
.sweep {
  inset: 0;
  padding: 1.5px;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box exclude,
    linear-gradient(#000 0 0);
}

.rim {
  background: radial-gradient(
    ellipse 26% 12% at 50% 0%,
    #fff8e1 0%,
    var(--gold-hot) 22%,
    rgba(var(--gold-rgb), 0.75) 55%,
    rgba(var(--gold-rgb), 0.25) 100%
  );
}

/* A highlight that travels along the horizon. The orbit rotates around the
   planet's centre, so the highlight follows the curve at every screen size. */
.orbit {
  inset: 0;
  opacity: 0;
}

.sweep {
  padding: 2px;
  background: conic-gradient(
    from -7deg,
    rgba(255, 250, 232, 0) 0deg,
    rgba(255, 250, 232, 0.95) 7deg,
    rgba(255, 250, 232, 0) 14deg,
    rgba(255, 250, 232, 0) 360deg
  );
}

.flare {
  position: absolute;
  top: 0;
  left: 50%;
  width: 280px;
  height: 36px;
  margin: -18px 0 0 -140px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse closest-side,
    rgba(255, 248, 225, 0.55) 0%,
    rgba(var(--hot-rgb), 0.22) 40%,
    rgba(var(--hot-rgb), 0) 100%
  );
}

.grain {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  opacity: 0.045;
  mix-blend-mode: overlay;
}

.vignette {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: radial-gradient(ellipse 85% 75% at 50% 42%, transparent 45%, rgba(0, 0, 0, 0.5) 100%);
}

/* ───────────────────────── Layout ───────────────────────── */

.header,
.main,
.footer {
  position: relative;
  z-index: 5;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: calc(20px + env(safe-area-inset-top, 0px)) 32px 12px;
}

.logo {
  display: block;
  flex: none;
  line-height: 0;
  border-radius: 6px;
}

.logo img {
  display: block;
  height: 30px;
  width: auto;
}

.contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  height: 38px;
  padding: 0 15px 0 13px;
  color: rgba(var(--stone-rgb), 0.82);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  text-decoration: none;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.contact svg {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--gold);
}

.contact span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact:hover {
  color: var(--stone);
  background: rgba(var(--gold-rgb), 0.08);
  border-color: rgba(var(--gold-rgb), 0.45);
}

.main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 24px calc(var(--rim) - var(--footer-h) + 56px);
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(1080px, 100%);
  min-width: 0;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  margin-bottom: 26px;
  padding: 7px 14px 7px 12px;
  color: var(--gold-hot);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
  background: rgba(var(--gold-rgb), 0.06);
  border: 1px solid rgba(var(--gold-rgb), 0.24);
  border-radius: 999px;
}

.eyebrow .sep {
  color: rgba(var(--gold-rgb), 0.55);
}

.live {
  position: relative;
  flex: none;
  width: 6px;
  height: 6px;
  margin-right: 2px;
  border-radius: 50%;
  background: var(--gold-hot);
  box-shadow: 0 0 8px rgba(var(--hot-rgb), 0.8);
}

.live::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--gold-hot);
  opacity: 0;
}

.headline {
  max-width: min(10.5em, 100%);
  font-family: Sora, system-ui, sans-serif;
  font-size: clamp(2.35rem, min(7vw, 11vh), 5.6rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  text-wrap: balance;
  overflow-wrap: break-word;
  background: linear-gradient(180deg, #fffaf0 0%, var(--stone) 55%, #d9d1c2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nowrap {
  white-space: nowrap;
}

.sub {
  max-width: min(34rem, 100%);
  margin-top: 22px;
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.1875rem);
  line-height: 1.6;
  text-wrap: balance;
}

.stop {
  color: var(--gold);
}

.dot-wrap {
  position: relative;
  display: inline-block;
  width: 0.2em;
  height: 0.2em;
  margin-left: 0.06em;
  vertical-align: baseline;
}

.dot {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0.35em rgba(var(--gold-rgb), 0.45);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
  margin-top: 30px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  color: rgba(var(--stone-rgb), 0.78);
  font-size: 0.8125rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.chip::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
}

/* The footer lives on the planet's surface, below the horizon. */
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: calc(var(--footer-h) + var(--safe-b));
  padding: 8px 16px calc(18px + var(--safe-b));
}

.social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}

.social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: rgba(var(--stone-rgb), 0.55);
  border-radius: 50%;
  transition: color 0.25s ease, background-color 0.25s ease;
}

.social a:hover {
  color: var(--gold-hot);
  background: rgba(var(--gold-rgb), 0.1);
}

.social svg {
  display: block;
  width: 17px;
  height: 17px;
}

.copy {
  color: var(--faint);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

/* ───────────────────────── Motion ───────────────────────── */

@media (prefers-reduced-motion: no-preference) {
  .world {
    animation: world-in 2.2s var(--ease) both;
  }

  .atmosphere {
    animation: breathe 8s ease-in-out 2.2s infinite;
  }

  .orbit {
    animation:
      orbit-in 1.6s ease 1.8s forwards,
      sweep 16s var(--ease-io) 1.8s infinite alternate;
  }

  .fade {
    animation: fade 1s ease 0.2s both;
  }

  .fade-late {
    animation: fade 1.2s ease 1.2s both;
  }

  .rise {
    animation: rise 1s var(--ease) both;
  }

  .d1 { animation-delay: 0.45s; }
  .d2 { animation-delay: 0.6s; }
  .d3 { animation-delay: 0.78s; }
  .d4 { animation-delay: 0.94s; }

  .live::after {
    animation: ping 2.4s ease-out 1.5s infinite;
  }

  .headline .dot {
    animation: dot-pop 0.55s cubic-bezier(0.18, 1.3, 0.4, 1) 1.35s both;
  }

  .headline .dot-wrap::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 100%;
    height: 100%;
    border: 1.5px solid rgba(var(--hot-rgb), 0.85);
    border-radius: 50%;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.4);
    animation: ring 0.8s ease-out 1.45s forwards;
  }
}

@keyframes world-in {
  from {
    opacity: 0;
    transform: translateY(70px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes breathe {
  0%,
  100% { opacity: 1; }
  50% { opacity: 0.82; }
}

@keyframes orbit-in {
  to { opacity: 1; }
}

@keyframes sweep {
  from { transform: rotate(-19deg); }
  to { transform: rotate(19deg); }
}

@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes ping {
  0% { opacity: 0.9; transform: scale(1); }
  70%,
  100% { opacity: 0; transform: scale(3.2); }
}

@keyframes dot-pop {
  0% { opacity: 0; transform: scale(0.2); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes ring {
  0% { opacity: 0.9; transform: translate(-50%, -50%) scale(0.5); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(3); }
}

@media (prefers-reduced-motion: reduce) {
  #particles {
    display: none;
  }

  .orbit {
    opacity: 1;
  }

  .contact,
  .social a {
    transition: none;
  }
}

/* ───────────────────────── Responsive ───────────────────────── */

@media (max-width: 720px) {
  .header {
    padding-right: 16px;
    padding-left: 16px;
  }

  .main {
    padding-right: 16px;
    padding-left: 16px;
  }

  .eyebrow {
    margin-bottom: 22px;
    font-size: 0.6875rem;
  }

  .sub {
    margin-top: 18px;
  }

  .chips {
    margin-top: 26px;
  }
}

@media (max-width: 420px) {
  .logo img {
    height: 26px;
  }

  .contact {
    height: 36px;
    padding: 0 12px 0 11px;
    font-size: 0.75rem;
  }

  .social {
    gap: 0;
  }

  .chip {
    padding: 6px 12px;
    font-size: 0.75rem;
  }
}

@media (max-width: 359px) {
  .contact span {
    display: none;
  }

  .contact {
    width: 38px;
    padding: 0;
    justify-content: center;
  }
}

/* Tall portrait screens: lift the horizon so the hero and planet read as one composition. */
@media (orientation: portrait) and (min-height: 760px) {
  :root {
    --rim: clamp(calc(var(--footer-h) + 40px), 30vh, 380px);
  }

  .main {
    padding-bottom: calc(var(--rim) - var(--footer-h) + 32px);
  }
}

@media (max-height: 640px) {
  :root {
    --footer-h: 100px;
  }

  .eyebrow {
    margin-bottom: 18px;
  }

  .sub {
    margin-top: 14px;
  }

  .chips {
    margin-top: 20px;
  }
}
