/* ============================================================
   Julianna Head — Portfolio
   Clean / futuristic / minimal · Apple-inspired
   ============================================================ */

:root {
  /* Palette — clean light / Apple-style */
  --black: #ffffff;         /* page background (light) */
  --ink: #1d1d1f;           /* primary text */
  --ink-2: #f5f5f7;
  --surface: #fbfbfd;
  --line: rgba(0, 0, 0, 0.10);
  --line-strong: rgba(0, 0, 0, 0.18);
  --white: #1d1d1f;         /* primary text alias used across components */
  --grey: #6e6e73;
  --grey-dim: #86868b;
  --bg-2: #f5f5f7;          /* light grey section background */
  --accent: #2b6fff;        /* cool futuristic blue (contrast on white) */
  --accent-2: #7a5cff;      /* soft violet */
  --accent-glow: rgba(43, 111, 255, 0.18);

  /* Type */
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  /* Layout */
  --maxw: 1200px;
  --pad: clamp(20px, 5vw, 80px);
  --nav-h: 64px;
  --radius: 18px;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: clip;
}

body.menu-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--pad);
}

.mono { font-family: var(--font-mono); }

/* Eyebrow label */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
  display: inline-block;
}

/* Section headings */
.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.section-lede {
  color: var(--grey);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  max-width: 56ch;
  margin-top: 22px;
}

.section-head { margin-bottom: clamp(48px, 7vw, 96px); }

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.4s var(--ease);
}
.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo-mark {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(10px, 1.4vw, 13px);
  letter-spacing: 0.02em;
  color: var(--grey);
  text-transform: none;
  white-space: nowrap;
  cursor: default;
  user-select: none;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 38px;
}
.nav__links a {
  font-size: 14px;
  color: var(--grey);
  transition: color 0.25s var(--ease);
  position: relative;
}
.nav__links a:hover { color: var(--white); }
.nav__cta {
  border: 1px solid var(--line-strong);
  padding: 9px 18px;
  border-radius: 999px;
  color: var(--white) !important;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.nav__cta:hover { background: var(--white); color: var(--black) !important; border-color: var(--white); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span {
  width: 22px; height: 1.5px;
  background: var(--white);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(3.25px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { transform: translateY(-3.25px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  padding: 8px var(--pad) 24px;
  transform: translateY(-100%);
  transition: transform 0.45s var(--ease), visibility 0.45s var(--ease);
  z-index: 99;
  visibility: hidden;
  pointer-events: none;
  border-bottom: 1px solid transparent;
}
.mobile-menu.is-open {
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
  border-bottom-color: var(--line);
}
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  letter-spacing: -0.02em;
}
.mobile-menu a:last-of-type { border-bottom: 0; }
.mobile-menu__cta {
  margin-top: 16px;
  padding: 14px 22px !important;
  border: 1px solid var(--line-strong) !important;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 1.35rem !important;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-align: center;
  align-self: flex-start;
}
.mobile-menu__cta:hover {
  background: var(--ink);
  color: var(--black) !important;
  border-color: var(--ink) !important;
}

/* ============================================================
   Hero
   ============================================================ */
@keyframes aurora {
  from { background-position: 50% 50%, 50% 50%; }
  to { background-position: 350% 50%, 350% 50%; }
}

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  padding: var(--nav-h) 0 0;
  overflow: hidden;
  background: #fafafa;
}

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

.hero__aurora-inner {
  --aurora-white: #fff;
  --aurora-black: #000;
  --aurora-transparent: transparent;
  --aurora-blue-500: #3b82f6;
  --aurora-indigo-300: #a5b4fc;
  --aurora-blue-300: #93c5fd;
  --aurora-violet-200: #ddd6fe;
  --aurora-blue-400: #60a5fa;
  --white-gradient: repeating-linear-gradient(
    100deg,
    var(--aurora-white) 0%,
    var(--aurora-white) 7%,
    var(--aurora-transparent) 10%,
    var(--aurora-transparent) 12%,
    var(--aurora-white) 16%
  );
  --dark-gradient: repeating-linear-gradient(
    100deg,
    var(--aurora-black) 0%,
    var(--aurora-black) 7%,
    var(--aurora-transparent) 10%,
    var(--aurora-transparent) 12%,
    var(--aurora-black) 16%
  );
  --aurora: repeating-linear-gradient(
    100deg,
    var(--aurora-blue-500) 10%,
    var(--aurora-indigo-300) 15%,
    var(--aurora-blue-300) 20%,
    var(--aurora-violet-200) 25%,
    var(--aurora-blue-400) 30%
  );

  position: absolute;
  inset: -10px;
  opacity: 0.5;
  filter: blur(10px) invert(1);
  background-image: var(--white-gradient), var(--aurora);
  background-size: 300%, 200%;
  background-position: 50% 50%, 50% 50%;
  will-change: transform;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at 100% 0%, black 10%, transparent 70%);
}

.hero__aurora-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--white-gradient), var(--aurora);
  background-size: 200%, 100%;
  background-position: 50% 50%, 50% 50%;
  background-attachment: fixed;
  mix-blend-mode: difference;
  animation: aurora 60s linear infinite;
}

.hero__main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 var(--pad);
  gap: clamp(20px, 4vh, 36px);
}

.hero__content {
  width: 100%;
  max-width: 36rem;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

@font-face {
  font-family: "ComputerSaysNoHero";
  src: url("fonts/computer-says-no.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

.hero__title {
  font-family: "ComputerSaysNoHero", var(--font-body);
  font-weight: 400;
  font-size: clamp(2rem, 6vw, 3.5rem);
  line-height: 1.15;
  letter-spacing: 0.14em;
  margin: 0;
  color: var(--ink);
  text-transform: uppercase;
}

.hero__scroll {
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 1;
  flex-shrink: 0;
}
.hero__scroll .mono {
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--grey-dim);
}
.hero__scroll-line {
  width: 60px;
  height: 1px;
  background: var(--line-strong);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: "";
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 100%;
  background: var(--accent);
  animation: scrollLine 2.4s var(--ease) infinite;
}
@keyframes scrollLine {
  0% { left: -40%; }
  60%, 100% { left: 100%; }
}

.hero__tagline {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.5vw, 1.125rem);
  font-weight: 400;
  line-height: 1.65;
  color: var(--grey);
  margin: 0;
  max-width: 32ch;
}

/* Buttons */
.btn {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  padding: 15px 28px;
  border-radius: 999px;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-block;
}
.btn--primary { background: var(--white); color: var(--black); }
.btn--primary:hover { transform: translateY(-2px); background: var(--accent); color: var(--white); }
.btn--ghost { border-color: var(--line-strong); color: var(--white); }
.btn--ghost:hover { transform: translateY(-2px); border-color: var(--white); }

/* ============================================================
   Ticker
   ============================================================ */
.hero .ticker {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 100%;
}

.ticker {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  overflow: hidden;
  white-space: nowrap;
  background: var(--bg-2);
}
.ticker__track {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  animation: ticker 38s linear infinite;
  will-change: transform;
}
.ticker__track span {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.8rem);
  font-weight: 500;
  color: var(--grey);
  letter-spacing: -0.01em;
}
.ticker__track i { color: var(--accent); font-style: normal; }
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================================
   Statement
   ============================================================ */
.statement { padding: clamp(90px, 14vw, 200px) 0; }
.statement__text {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 4.4vw, 3.2rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
  max-width: 22ch;
  color: var(--grey-dim);
}
.statement__text strong { color: var(--white); font-weight: 500; }

/* ============================================================
   Work / Cases — scroll-pinned slider (desktop) + swipe (mobile)
   ============================================================ */
.work {
  padding: clamp(70px, 10vw, 140px) 0 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: var(--nav-h);
}

.work__pin-wrap {
  position: relative;
  padding-bottom: clamp(48px, 8vw, 80px);
}

.work__pin {
  padding: 0 0 clamp(24px, 4vw, 40px);
}

.work__pin .section-head {
  margin-bottom: clamp(16px, 2.5vw, 24px);
}

.work.work--scroll-pin {
  padding-bottom: 0;
}

.work.work--scroll-pin .work__pin-wrap {
  padding-bottom: 0;
}

.work.work--scroll-pin .work__pin {
  position: sticky;
  top: var(--nav-h);
  z-index: 3;
  background: var(--black);
  height: calc(100svh - var(--nav-h));
  max-height: calc(100svh - var(--nav-h));
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(16px, 2.5vw, 24px) 0 clamp(16px, 2.5vw, 24px);
  overflow: hidden;
}

.work.work--scroll-pin .work__pin > .container {
  width: 100%;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.work.work--scroll-pin .work__pin .section-head {
  margin-bottom: clamp(12px, 2vw, 18px);
  flex-shrink: 0;
}

.work.work--scroll-pin .work__pin .section-head .eyebrow {
  margin-bottom: 10px;
}

.work.work--scroll-pin .work__pin .section-title {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
}

.work.work--scroll-pin .work__pin .section-lede {
  font-size: clamp(0.88rem, 1.4vw, 0.96rem);
  line-height: 1.5;
  margin-top: 10px;
}

.work.work--scroll-pin .work__controls {
  flex-shrink: 0;
  margin-bottom: clamp(12px, 2vw, 18px);
}

.work.work--scroll-pin .work__carousel {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.work.work--scroll-pin .work__viewport {
  flex: 1;
  min-height: 0;
}

.work.work--scroll-pin .work__progress,
.work.work--scroll-pin .work__hint {
  flex-shrink: 0;
}

.work.work--scroll-pin .case-card {
  max-height: 100%;
  overflow: auto;
}

.work__controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 0;
  margin-bottom: clamp(16px, 2.5vw, 24px);
}

.work__btn {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: #ffffff;
  color: var(--ink);
  font-size: 1.1rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}
.work__btn:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}
.work__btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.work__counter {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--grey-dim);
  min-width: 4.5rem;
  text-align: center;
}
.work__counter #workCurrent { color: var(--accent); }

.work__carousel {
  position: relative;
  scroll-margin-top: calc(var(--nav-h) + 16px);
}

.work__viewport {
  overflow: hidden;
  width: 100%;
  cursor: grab;
  touch-action: pan-y;
  outline: none;
  container-type: inline-size;
  container-name: work-carousel;
  padding-right: 2px;
}
.work__viewport.is-dragging {
  cursor: grabbing;
  user-select: none;
}
.work__track.is-dragging {
  transition: none !important;
  cursor: grabbing;
}
.work__viewport:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(43, 111, 255, 0.35);
  border-radius: var(--radius);
}

.work__track {
  display: flex;
  gap: clamp(16px, 2vw, 24px);
  padding: 4px 0 8px;
  will-change: transform;
  transition: transform 0.55s var(--ease);
}

.work__track-spacer {
  flex: 0 0 0;
  width: 0;
  height: 1px;
  pointer-events: none;
}

.work__hint {
  margin-top: 16px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grey-dim);
}

.work__progress {
  margin: 8px 0 0;
  padding: 0;
}
.work__progress-bar {
  height: 2px;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.55s var(--ease);
}

.case-card {
  flex: 0 0 min(520px, calc(100cqw - 16px));
  max-width: min(520px, calc(100cqw - 16px));
  box-sizing: border-box;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 40px);
  position: relative;
  overflow: hidden;
  opacity: 0.42;
  transform: scale(0.94);
  transition:
    opacity 0.55s var(--ease),
    transform 0.55s var(--ease),
    box-shadow 0.55s var(--ease),
    border-color 0.55s var(--ease);
}
.case-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}
.case-card.is-active {
  opacity: 1;
  transform: scale(1);
  border-color: rgba(43, 111, 255, 0.32);
  box-shadow: 0 28px 56px -28px rgba(43, 111, 255, 0.32);
}
.case-card.is-active::before {
  opacity: 1;
}

.case-card__index {
  display: block;
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.12em;
  margin-bottom: 18px;
}
.case-card__client {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey-dim);
  margin-bottom: 10px;
}
.case-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  letter-spacing: -0.025em;
  line-height: 1.12;
  transition: color 0.3s var(--ease);
}
.case-card.is-active .case-card__title {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.case-card__desc {
  color: var(--grey);
  margin-top: 14px;
  font-size: 0.98rem;
  line-height: 1.65;
}
.case-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.case-card__tags li {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--grey);
  border: 1px solid var(--line);
  padding: 5px 11px;
  border-radius: 999px;
  text-transform: uppercase;
}

/* ============================================================
   Capabilities / Pillars
   ============================================================ */
.capabilities {
  padding: clamp(70px, 10vw, 140px) 0;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
}
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.pillar {
  background: #ffffff;
  padding: clamp(28px, 3vw, 40px);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
  position: relative;
}
.pillar:hover {
  background: #ffffff;
  box-shadow: 0 18px 40px -22px rgba(43, 111, 255, 0.35);
  transform: translateY(-2px);
}
.pillar__num {
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.pillar__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  margin: 16px 0 18px;
}
.pillar__list li {
  color: var(--grey);
  font-size: 0.96rem;
  padding: 7px 0;
  border-top: 1px solid var(--line);
  transition: color 0.25s var(--ease), padding-left 0.25s var(--ease);
}
.pillar__list li:hover { color: var(--white); padding-left: 6px; }

/* Skills constellation — desktop interactive orbit */
.constellation {
  display: none;
  margin-top: clamp(36px, 5vw, 56px);
}
.constellation__stage {
  position: relative;
  width: 100%;
  min-height: clamp(520px, 62vw, 680px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  max-width: 920px;
}
.constellation__backdrop {
  position: absolute;
  inset: 0;
  z-index: 5;
  border: 0;
  background: transparent;
  cursor: default;
  padding: 0;
}
.constellation__orbit-ring {
  position: absolute;
  width: min(72vw, 520px);
  height: min(72vw, 520px);
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  pointer-events: none;
}
.constellation__hub {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}
.constellation__hub-dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 8px var(--accent-glow), 0 12px 32px -12px rgba(43, 111, 255, 0.45);
}
.constellation__hub-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey-dim);
}
.constellation__nodes {
  position: absolute;
  inset: 0;
  z-index: 3;
}
.constellation__node {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 48px;
  height: 48px;
  margin: -24px 0 0 -24px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  background: #ffffff;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    border-color 0.35s var(--ease),
    background 0.35s var(--ease),
    color 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    transform 0.05s linear;
  box-shadow: 0 8px 24px -14px rgba(0, 0, 0, 0.18);
}
.constellation__node:hover {
  border-color: var(--accent);
  box-shadow: 0 14px 32px -16px rgba(43, 111, 255, 0.35);
}
.constellation__node.is-active {
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #ffffff;
  box-shadow: 0 16px 40px -14px rgba(43, 111, 255, 0.45);
}
.constellation__node-label {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--grey);
  pointer-events: none;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.constellation__node.is-active .constellation__node-label {
  color: var(--ink);
  font-weight: 600;
}
.constellation__detail {
  position: absolute;
  left: 50%;
  bottom: clamp(8px, 2vw, 24px);
  transform: translateX(-50%);
  z-index: 10;
  width: min(320px, calc(100% - 32px));
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 28px);
  box-shadow: 0 24px 48px -28px rgba(43, 111, 255, 0.35);
}
.constellation__detail-num {
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.constellation__detail-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  margin: 10px 0 14px;
}
.constellation__detail-list li {
  color: var(--grey);
  font-size: 0.92rem;
  padding: 6px 0;
  border-top: 1px solid var(--line);
}
.constellation__hint {
  text-align: center;
  margin-top: 20px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey-dim);
}

@media (min-width: 861px) {
  .constellation { display: block; }
  .pillars--fallback { display: none; }
}

@media (max-width: 860px) {
  .constellation { display: none !important; }
  .pillars--fallback { display: grid; }
}

/* ============================================================
   About
   ============================================================ */
.about { padding: clamp(70px, 10vw, 140px) 0; border-top: 1px solid var(--line); }
.about__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(40px, 7vw, 100px);
  align-items: start;
}
.about__left .section-title { margin-top: 4px; }
.about__eyebrow {
  text-transform: none;
  letter-spacing: 0.04em;
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  font-weight: 400;
  color: var(--grey-dim);
}
.about__right p {
  color: var(--grey);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  margin-bottom: 24px;
  line-height: 1.7;
}
.about__right p strong { color: var(--white); font-weight: 500; }
.about__stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 5vw, 56px);
  margin-top: 44px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat__num {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}
.stat__label {
  font-size: 13px; color: var(--grey-dim);
  letter-spacing: 0.02em;
}

/* ============================================================
   Contact
   ============================================================ */
.contact {
  padding: clamp(90px, 14vw, 200px) 0;
  border-top: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: "";
  position: absolute;
  bottom: -40%; left: 50%; transform: translateX(-50%);
  width: 90vw; height: 60vw; max-width: 1000px; max-height: 700px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
  filter: blur(60px); opacity: 0.4;
  z-index: 0;
}
.contact__inner { position: relative; z-index: 1; }
.contact__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 11vw, 8rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
  margin-bottom: 30px;
}
.contact__lede {
  color: var(--grey);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  max-width: 50ch;
  margin-bottom: 44px;
}
/* Contact form (message box) */
.contact__form {
  margin-top: 44px;
  max-width: 620px;
}
.hidden-field {
  display: none !important;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}
.field__label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey-dim);
}
.field input,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 14px 16px;
  width: 100%;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--grey-dim); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(43, 111, 255, 0.12);
}
.contact__submit:disabled { opacity: 0.6; cursor: default; }

/* Aurora button */
.aurora-btn {
  position: relative;
  display: inline-block;
  margin-top: 6px;
}
.aurora-btn__glow {
  position: absolute;
  inset: -2px;
  border-radius: 8px;
  background: linear-gradient(to right, #a855f7, #67e8f9, #34d399);
  opacity: 0.35;
  filter: blur(10px);
  transition: opacity 0.3s var(--ease), filter 0.3s var(--ease);
  pointer-events: none;
}
.aurora-btn:hover .aurora-btn__glow {
  opacity: 0.5;
  filter: blur(14px);
}
.aurora-btn__button {
  position: relative;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  padding: 14px 28px;
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.9);
  color: #f1f5f9;
  border: 1px solid #1e293b;
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.12),
    0 8px 10px -6px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: background 0.3s var(--ease);
}
.aurora-btn__button:hover:not(:disabled) {
  background: rgba(2, 6, 23, 0.7);
}
.aurora-btn__button:disabled {
  opacity: 0.6;
  cursor: default;
}

.form-status {
  margin-top: 16px;
  font-size: 0.95rem;
  min-height: 1.2em;
}
.form-status.is-success { color: #1a7f47; }
.form-status.is-error { color: #c0392b; }

.contact__socials {
  display: flex; gap: 28px; margin-top: 48px;
}
.contact__socials a {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--grey);
  text-transform: uppercase;
  transition: color 0.25s var(--ease);
}
.contact__socials a:hover { color: var(--white); }

/* ============================================================
   Footer
   ============================================================ */
.footer { border-top: 1px solid var(--line); padding: 32px 0; }
.footer__inner {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer .mono { font-size: 12px; color: var(--grey-dim); letter-spacing: 0.06em; }
.footer__credit {
  font-size: 11px;
  color: var(--grey-dim);
  letter-spacing: 0.02em;
}
.footer__credit a {
  color: var(--grey);
  transition: color 0.25s var(--ease);
}
.footer__credit a:hover { color: var(--ink); }
.footer__domain { color: var(--grey); }

/* ============================================================
   Reveal animations
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .nav__logo-mark {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    max-width: calc(100vw - 88px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .hero__title {
    font-size: 48px;
    letter-spacing: 0.1em;
  }
  .about__grid { grid-template-columns: 1fr; }
  .work__controls { margin-top: 0; }
}

@media (min-width: 861px) {
  .mobile-menu { display: none; }
}

@media (max-width: 620px) {
  .form-row { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 520px) {
  .hero__main { gap: 16px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .btn { text-align: center; }
  .aurora-btn,
  .aurora-btn__button { width: 100%; }
  .contact__socials { flex-wrap: wrap; gap: 18px; }
  .about__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
  }
  .about__stats .stat:first-child { grid-column: 1 / -1; }
}
