:root {
  --bg: #090812;
  --paper: #f6ede2;
  --ink: #f8f4ef;
  --muted: rgba(248, 244, 239, 0.66);
  --line: rgba(248, 244, 239, 0.12);
  --hot-pink: #ff4fb2;
  --citrus: #ffd052;
  --teal: #5ff2d6;
  --violet: #6b63ff;
  --coral: #ff7a5c;
  --shadow: 0 40px 120px rgba(0, 0, 0, 0.36);
  --shell-width: min(1820px, calc(100vw - 96px));
  --content-width: min(1700px, calc(100vw - 96px));
  --subpage-width: min(1080px, calc(100vw - 96px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 79, 178, 0.24), transparent 22%),
    radial-gradient(circle at 80% 14%, rgba(95, 242, 214, 0.22), transparent 20%),
    radial-gradient(circle at 82% 78%, rgba(255, 208, 82, 0.2), transparent 24%),
    linear-gradient(180deg, #090812 0%, #111126 40%, #140f1d 100%);
  font-family: "Space Grotesk", sans-serif;
}

body.home-page {
  min-height: 100svh;
}

body.subpage-body {
  background:
    radial-gradient(circle at 14% 16%, rgba(255, 79, 178, 0.18), transparent 20%),
    radial-gradient(circle at 82% 18%, rgba(95, 242, 214, 0.18), transparent 24%),
    linear-gradient(180deg, #090812 0%, #100d1e 100%);
}

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

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 4px 4px, 4px 4px;
  mix-blend-mode: soft-light;
}

.cursor-glow,
.aurora {
  position: fixed;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(70px);
}

.cursor-glow {
  width: 240px;
  height: 240px;
  left: 0;
  top: 0;
  z-index: 0;
  background: radial-gradient(circle, rgba(255, 208, 82, 0.22), rgba(255, 208, 82, 0));
  transform: translate(-50%, -50%);
  transition: transform 120ms linear;
}

.aurora {
  z-index: 0;
  opacity: 0.75;
  animation: drift 18s ease-in-out infinite alternate;
}

.aurora-a {
  width: 380px;
  height: 380px;
  top: 8%;
  left: 6%;
  background: rgba(255, 79, 178, 0.26);
}

.aurora-b {
  width: 420px;
  height: 420px;
  top: 20%;
  right: 8%;
  background: rgba(95, 242, 214, 0.18);
  animation-duration: 24s;
}

.aurora-c {
  width: 420px;
  height: 420px;
  bottom: 8%;
  left: 42%;
  background: rgba(107, 99, 255, 0.18);
  animation-duration: 28s;
}

.topbar,
.homepage-main,
.subpage-main,
.footer {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  width: var(--shell-width);
  margin: 0 auto;
  padding: 26px 0 0;
}

.wordmark {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.topnav,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 0.94rem;
}

.topnav a:hover,
.footer-links a:hover,
.footer-email:hover {
  color: white;
}

.homepage-main {
  width: var(--content-width);
  min-height: calc(100svh - 86px);
  margin: 0 auto;
  padding: 10px 0 22px;
  display: flex;
}

.hero-single {
  width: 100%;
  min-height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(400px, 0.82fr);
  grid-template-rows: 1fr auto;
  gap: clamp(28px, 3vw, 72px);
  align-items: center;
  padding: 42px 0 14px;
}

.hero-copy,
.hero-aside {
  align-self: center;
}

.kicker,
.aside-label,
.footer-label {
  margin: 0 0 14px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
}

.hero-single h1,
.subpage-main h1 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  line-height: 0.9;
}

.hero-single h1 {
  max-width: 11ch;
  font-size: clamp(4.6rem, 7.2vw, 10.6rem);
  text-wrap: balance;
}

.hero-single h1 span {
  display: block;
}

.hero-name {
  color: var(--paper);
}

.hero-role {
  max-width: 11ch;
  color: var(--citrus);
  font-size: 0.8em;
  line-height: 0.92;
  margin-top: 0.1em;
}

.hero-text,
.hero-rotator,
.aside-note,
.aside-meta,
.service-stack p,
.copy-flow p,
.contact-stack p,
.footer-note {
  font-family: "Cormorant Garamond", serif;
  line-height: 1.48;
}

.hero-text,
.hero-rotator {
  max-width: 40rem;
  font-size: clamp(1.18rem, 1.35vw, 1.52rem);
}

.hero-text {
  margin: 24px 0 0;
  color: var(--paper);
  max-width: 36rem;
}

.hero-rotator {
  margin: 10px 0 0;
  color: var(--muted);
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.pill:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.4);
}

.pill-primary {
  background: linear-gradient(135deg, var(--hot-pink), var(--coral));
  color: white;
  border-color: transparent;
  box-shadow: 0 14px 34px rgba(255, 79, 178, 0.28);
}

.pill-ghost {
  background: rgba(255, 255, 255, 0.04);
}

.hero-aside {
  width: min(100%, 35rem);
  justify-self: end;
  display: grid;
  gap: 28px;
}

.aside-panel {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.address-display,
.big-mail,
.footer-email {
  display: inline-block;
  line-height: 1;
  color: var(--teal);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.address-display {
  margin: 0;
  font-size: clamp(1.1rem, 1.52vw, 1.92rem);
  white-space: nowrap;
}

.aside-note {
  max-width: 24rem;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.14rem;
}

.aside-meta {
  margin: 12px 0 0;
  color: var(--paper);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.82;
}

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

.service-stack article {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.service-index {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--hot-pink);
  font-size: 0.88rem;
  letter-spacing: 0.18em;
}

.service-stack h2 {
  margin: 0;
  font-size: 1.46rem;
  font-weight: 500;
}

.service-stack p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.hero-footer {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding-top: 8px;
}

.footer-note {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.subpage-main {
  width: var(--subpage-width);
  margin: 0 auto;
  padding: 90px 0 80px;
}

.subpage-main h1 {
  font-size: clamp(3.2rem, 7vw, 6.8rem);
}

.copy-flow,
.contact-stack {
  max-width: 720px;
  margin-top: 26px;
}

.copy-flow p,
.contact-stack p {
  margin: 0 0 18px;
  color: var(--paper);
  font-size: 1.24rem;
}

.big-mail {
  margin-bottom: 18px;
  font-size: clamp(1.4rem, 3vw, 2.5rem);
}

.footer {
  width: var(--subpage-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  padding: 0 0 40px;
  color: var(--muted);
}

.footer-email {
  font-size: clamp(1.4rem, 3vw, 2.5rem);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 720ms ease, transform 720ms ease;
}

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

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(30px, -20px, 0) scale(1.08);
  }
}

@media (min-width: 1700px) {
  .hero-single {
    grid-template-columns: minmax(0, 1.42fr) minmax(430px, 0.74fr);
  }

  .hero-single h1 {
    max-width: 12ch;
    font-size: clamp(5rem, 6.9vw, 11rem);
  }

  .hero-text,
  .hero-rotator {
    max-width: 42rem;
    font-size: 1.5rem;
  }
}

@media (max-width: 1100px) {
  .homepage-main {
    min-height: auto;
  }

  .hero-single {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    min-height: auto;
    padding-top: 28px;
  }

  .hero-aside {
    width: 100%;
    justify-self: stretch;
  }

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

@media (max-width: 720px) {
  :root {
    --shell-width: calc(100vw - 36px);
    --content-width: calc(100vw - 36px);
    --subpage-width: calc(100vw - 36px);
  }

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

  .hero-single h1 {
    max-width: 100%;
    font-size: clamp(3.2rem, 16vw, 5.3rem);
  }

  .hero-role {
    max-width: 100%;
  }

  .hero-text,
  .hero-rotator,
  .aside-note,
  .aside-meta,
  .service-stack p,
  .copy-flow p,
  .contact-stack p,
  .footer-note {
    font-size: 1.05rem;
  }

  .address-display,
  .big-mail,
  .footer-email {
    white-space: normal;
    font-size: 1.4rem;
  }
}
