:root {
  --font-sans: 'Outfit', system-ui, sans-serif;
  --font-display: 'Syne', 'Outfit', system-ui, sans-serif;
  --bg: #f4f2f5;
  --surface: #ffffff;
  --chrome-well: #ebe7ee;
  --text: #121014;
  --text-muted: #4a4550;
  --text-faint: #7a7380;
  --accent: #e0127a;
  --accent-2: #6b4eff;
  --mint: #5ec4a8;
  --on-accent: #ffffff;
  --border: rgb(18 16 20 / 0.14);
  --border-strong: rgb(18 16 20 / 0.22);
  --pad-x: clamp(1.25rem, 4vw, 3rem);
  --content: 40rem;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.45;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

/* Replay-style atmospheric haze */
.haze {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.55;
  will-change: transform;
}

.blob-a {
  width: min(52vw, 34rem);
  height: min(52vw, 34rem);
  top: -8%;
  left: -6%;
  background: color-mix(in oklab, var(--accent) 55%, transparent);
  animation: orbit-a 80s linear infinite, breathe 16s ease-in-out infinite;
}

.blob-b {
  width: min(48vw, 30rem);
  height: min(48vw, 30rem);
  top: -4%;
  right: -10%;
  background: color-mix(in oklab, var(--accent-2) 48%, transparent);
  animation: orbit-b 90s linear infinite, breathe 18s ease-in-out infinite reverse;
}

.blob-c {
  width: min(42vw, 26rem);
  height: min(42vw, 26rem);
  top: 28%;
  left: 38%;
  background: color-mix(in oklab, var(--mint) 42%, transparent);
  opacity: 0.4;
  animation: orbit-c 70s linear infinite, breathe 14s ease-in-out infinite;
}

@keyframes orbit-a {
  from {
    transform: translate(0, 0) rotate(0deg);
  }
  to {
    transform: translate(8%, 12%) rotate(360deg);
  }
}

@keyframes orbit-b {
  from {
    transform: translate(0, 0) rotate(0deg);
  }
  to {
    transform: translate(-10%, 8%) rotate(-360deg);
  }
}

@keyframes orbit-c {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(-6%, -10%);
  }
}

@keyframes breathe {
  0%,
  100% {
    opacity: 0.45;
    scale: 1;
  }
  50% {
    opacity: 0.65;
    scale: 1.08;
  }
}

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

.top,
main,
footer {
  position: relative;
  z-index: 1;
}

.top {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  margin: 0;
  padding: 0.9rem max(var(--pad-x), calc((100% - var(--content)) / 2));
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2;
}

.mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.06em;
  text-decoration: none;
  color: var(--accent);
}

nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

nav a {
  text-decoration: none;
}

nav a:hover {
  color: var(--text);
}

.nav-cta {
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
}

.nav-cta:hover {
  color: var(--on-accent);
  filter: brightness(1.05);
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: min(68vh, 34rem);
  width: min(100% - 2 * var(--pad-x), var(--content));
  margin: 0 auto;
  padding: clamp(1.75rem, 5vh, 3rem) 0 2.5rem;
  animation: rise-in 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.brand {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 10vw, 3.75rem);
  letter-spacing: -0.06em;
  line-height: 0.95;
  color: var(--accent);
}

.house {
  margin: 0.55rem 0 0;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 500;
}

.eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

h1,
h2 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  line-height: 1.08;
}

h1 {
  margin: 0.95rem auto 0;
  font-size: clamp(1.5rem, 3.8vw, 2.1rem);
  font-weight: 700;
  max-width: 20ch;
}

.lede {
  margin: 0.75rem auto 0;
  max-width: 38ch;
  color: var(--text-muted);
  font-size: 1.02rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1.25rem;
}

.cta {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.7rem 1.15rem;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.cta.ghost {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border-strong);
}

.cta:hover {
  filter: brightness(1.05);
}

.cta:active {
  transform: scale(0.98);
}

.projects,
.studio {
  width: min(100% - 2 * var(--pad-x), var(--content));
  margin: 0 auto;
  padding: 0 0 3rem;
  text-align: center;
}

.projects h2,
.studio h2 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.55rem, 3.5vw, 2.1rem);
  font-weight: 700;
}

.section-lede {
  margin: 0 auto 1.15rem;
  color: var(--text-muted);
  max-width: 42ch;
}

.project-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
}

.project-list > li {
  border-bottom: 1px solid var(--border);
}

.project {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    'meta arrow'
    'blurb arrow';
  gap: 0.2rem 0.85rem;
  align-items: center;
  padding: 0.85rem 0.1rem;
  text-align: left;
  text-decoration: none;
}

.project-meta {
  grid-area: meta;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-start;
  gap: 0.4rem 0.7rem;
}

.project-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.03em;
}

.project-status {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-faint);
}

.project-live .project-status {
  color: var(--accent);
}

.project-blurb {
  grid-area: blurb;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.project-arrow {
  grid-area: arrow;
  font-size: 1.2rem;
  color: var(--accent);
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-live:hover .project-arrow {
  transform: translateX(4px);
}

.project-live:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 0.35rem;
}

.project-soon {
  opacity: 0.72;
}

.project-soon .project-name {
  color: var(--text-muted);
  font-weight: 600;
}

.studio {
  padding-bottom: 2.75rem;
}

.principles {
  display: grid;
  gap: 1.15rem;
  margin-top: 1.15rem;
}

.principles article {
  padding: 0;
  border: 0;
  background: none;
}

.principles h3 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

.principles p {
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 0.94rem;
  max-width: 46ch;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.45rem 1.25rem;
  width: min(100% - 2 * var(--pad-x), var(--content));
  margin: 0 auto;
  padding: 1.15rem 0 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 0.85rem;
}

footer p {
  margin: 0;
}

footer a {
  color: var(--text-muted);
  text-decoration: none;
}

footer a:hover {
  color: var(--accent);
}

/* Legal / support pages */
.page {
  width: min(100% - 2 * var(--pad-x), var(--content));
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
  text-align: left;
  animation: rise-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.page .eyebrow {
  margin-bottom: 0.35rem;
}

.page h1 {
  margin: 0;
  max-width: none;
  font-size: clamp(1.7rem, 4vw, 2.35rem);
}

.page .updated {
  margin: 0.55rem 0 1.5rem;
  color: var(--text-faint);
  font-size: 0.85rem;
}

.page h2 {
  margin: 1.75rem 0 0.45rem;
  font-size: 1.2rem;
  font-weight: 700;
}

.page p,
.page li {
  color: var(--text-muted);
}

.page p {
  margin: 0 0 0.85rem;
}

.page ul {
  margin: 0 0 0.85rem;
  padding-left: 1.15rem;
}

.page li + li {
  margin-top: 0.35rem;
}

.page a:not(.mark):not(.nav-cta):not(.cta) {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.page a:not(.mark):not(.nav-cta):not(.cta):hover {
  filter: brightness(0.92);
}

.contact-block {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: 0.85rem;
  background: color-mix(in oklab, var(--surface) 70%, var(--chrome-well));
  border: 1px solid var(--border);
}

.contact-block p {
  margin: 0;
}

.contact-block p + p {
  margin-top: 0.45rem;
}

.contact-block .contact-label {
  margin-top: 0.85rem;
}

@media (max-width: 800px) {
  nav a:not(.nav-cta) {
    display: none;
  }

  .hero {
    min-height: min(62vh, 28rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .blob {
    animation: none;
  }

  .hero,
  .page {
    animation: none;
  }

  .project-arrow,
  .cta {
    transition: none;
  }
}
