:root {
  --ink: #11110f;
  --paper: #f4f0e8;
  --muted: #777168;
  --line: rgba(17, 17, 15, 0.16);
  --coral: #ff5d47;
  --cyan: #24d7d4;
  --lime: #b5f255;
  --blue: #3057ff;
  --violet: #8161ff;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

#flow-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: 0.72;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(17, 17, 15, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 17, 15, 0.025) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

main,
.site-header {
  position: relative;
  z-index: 2;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  mix-blend-mode: difference;
  color: #fff;
  z-index: 20;
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 26px;
  height: 26px;
  border: 2px solid currentColor;
  border-radius: 50%;
  position: relative;
}

.brand-mark::after {
  position: absolute;
  inset: 5px -6px 5px 6px;
  content: "";
  border: 2px solid currentColor;
  border-radius: 50%;
}

.nav-links {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.82);
}

.nav-links a {
  padding: 8px 0;
}

.hero {
  min-height: 100svh;
  position: relative;
  display: grid;
  align-items: end;
  padding: clamp(88px, 12vw, 160px) clamp(18px, 4vw, 56px) clamp(28px, 6vw, 72px);
  isolation: isolate;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 18%, rgba(181, 242, 85, 0.46), transparent 26%),
    radial-gradient(circle at 18% 72%, rgba(36, 215, 212, 0.34), transparent 30%),
    #131318;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.15);
  filter: saturate(1.08) contrast(1.02);
}

.hero-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 72% 12%, rgba(181, 242, 85, 0.45), transparent 24%),
    linear-gradient(to bottom, rgba(17, 17, 15, 0.08), rgba(17, 17, 15, 0.76));
}

.liquid-rings {
  position: absolute;
  inset: 0;
  filter: blur(0.2px);
  pointer-events: none;
}

.liquid-rings span {
  position: absolute;
  width: 34vw;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 42% 58% 54% 46% / 56% 42% 58% 44%;
}

.liquid-rings span:nth-child(1) {
  left: 8%;
  top: 18%;
}

.liquid-rings span:nth-child(2) {
  right: -6%;
  top: 28%;
  width: 48vw;
}

.liquid-rings span:nth-child(3) {
  left: 46%;
  bottom: -12%;
  width: 30vw;
}

.hero-copy {
  width: min(1180px, 100%);
  color: #fff;
}

.eyebrow,
.intro-kicker {
  margin: 0 0 18px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero h1 {
  margin: 0;
  max-width: 1120px;
  font-size: clamp(4rem, 11vw, 10.5rem);
  line-height: 0.84;
  letter-spacing: 0;
  text-transform: uppercase;
}

.contact h2 {
  margin: 0;
  max-width: 980px;
  font-size: clamp(4.2rem, 15vw, 13rem);
  line-height: 0.84;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-bottom {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(22px, 5vw, 48px);
}

.hero-bottom p {
  max-width: 520px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  line-height: 1.6;
}

.primary-link,
.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 22px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(14px);
  font-weight: 800;
  white-space: nowrap;
}

.marquee-band {
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  padding: 18px 0;
}

.marquee-track {
  display: flex;
  gap: 36px;
  width: max-content;
  font-size: clamp(1.2rem, 3.2vw, 2.4rem);
  font-weight: 900;
  text-transform: uppercase;
  will-change: transform;
}

.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 36px;
}

.marquee-track span::after {
  display: inline-block;
  width: 12px;
  height: 12px;
  content: "";
  background: var(--lime);
  border-radius: 50%;
}

.section-pad {
  padding: clamp(76px, 12vw, 148px) clamp(18px, 4vw, 56px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(120px, 0.28fr) minmax(0, 1fr);
  gap: clamp(28px, 7vw, 92px);
}

.large-copy {
  max-width: 980px;
  margin: 0;
  font-size: clamp(2.3rem, 6.2vw, 6.6rem);
  line-height: 0.98;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(32px, 6vw, 78px);
}

.section-heading h2,
.horizontal-intro h2 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2.6rem, 8vw, 8rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.orbit-gallery {
  min-height: 650px;
  position: relative;
}

.work-card {
  position: absolute;
  width: min(360px, 82vw);
  min-height: 310px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffaf1;
  box-shadow: 0 28px 70px rgba(17, 17, 15, 0.12);
  overflow: hidden;
}

.work-card:nth-child(1) {
  left: 0;
  top: 130px;
  transform: rotate(-7deg);
}

.work-card:nth-child(2) {
  left: 25%;
  top: 0;
  transform: rotate(4deg);
}

.work-card:nth-child(3) {
  left: 50%;
  top: 190px;
  transform: rotate(-3deg);
}

.work-card:nth-child(4) {
  right: 0;
  top: 74px;
  transform: rotate(7deg);
}

.image-card {
  color: #fff;
  background:
    linear-gradient(to bottom, rgba(17, 17, 15, 0.15), rgba(17, 17, 15, 0.86)),
    url("https://images.unsplash.com/photo-1618005182384-a83a8bd57fbe?auto=format&fit=crop&w=900&q=82")
      center / cover;
}

.accent-card {
  background:
    radial-gradient(circle at 18% 8%, var(--lime), transparent 25%),
    linear-gradient(135deg, #ff775f, #f4f0e8 64%);
}

.dark-card {
  color: #fff;
  background:
    radial-gradient(circle at 80% 16%, var(--cyan), transparent 24%),
    linear-gradient(145deg, #171717, #322f3d);
}

.card-index {
  font-weight: 900;
  color: var(--coral);
}

.work-card h3,
.panel h3 {
  margin: auto 0 14px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.work-card p,
.panel p,
.step p {
  margin: 0;
  color: currentColor;
  opacity: 0.72;
  line-height: 1.6;
}

.horizontal-section {
  min-height: 100svh;
  background: var(--ink);
  color: var(--paper);
}

.pin-wrap {
  min-height: 100svh;
  display: flex;
  align-items: center;
  gap: clamp(28px, 6vw, 80px);
  padding: clamp(70px, 9vw, 120px) clamp(18px, 4vw, 56px);
  overflow: hidden;
}

.horizontal-intro {
  min-width: min(470px, 84vw);
}

.horizontal-track {
  display: flex;
  gap: 18px;
  will-change: transform;
}

.panel {
  flex: 0 0 min(430px, 82vw);
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border: 1px solid rgba(244, 240, 232, 0.2);
  border-radius: var(--radius);
}

.panel span {
  color: rgba(244, 240, 232, 0.66);
  font-weight: 900;
}

.panel-a {
  background: linear-gradient(135deg, #f4f0e8, #24d7d4);
  color: var(--ink);
}

.panel-b {
  background: linear-gradient(135deg, #3057ff, #11110f);
}

.panel-c {
  background: linear-gradient(135deg, #ff5d47, #ffe66f);
  color: var(--ink);
}

.panel-d {
  background: linear-gradient(135deg, #b5f255, #11110f);
}

.process-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.74fr);
  align-items: center;
  gap: clamp(30px, 6vw, 86px);
}

.process-visual {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffaf1;
  overflow: hidden;
}

.process-visual svg {
  width: 100%;
  height: auto;
  display: block;
}

.flow-path {
  stroke: var(--ink);
  stroke-width: 3;
  stroke-linecap: round;
  opacity: 0.75;
}

.orb {
  fill: var(--coral);
}

.orb-two {
  fill: var(--cyan);
}

.orb-three {
  fill: var(--lime);
}

.steps {
  display: grid;
  gap: 14px;
}

.step {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.step:last-child {
  border-bottom: 1px solid var(--line);
}

.step span {
  display: block;
  margin-bottom: 10px;
  color: var(--blue);
  font-weight: 900;
  text-transform: uppercase;
}

.contact {
  min-height: 78svh;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(76px, 12vw, 148px) clamp(18px, 4vw, 56px);
  background:
    radial-gradient(circle at 82% 16%, rgba(255, 93, 71, 0.5), transparent 24%),
    radial-gradient(circle at 28% 72%, rgba(36, 215, 212, 0.48), transparent 28%),
    #11110f;
  color: var(--paper);
  overflow: hidden;
}

.contact-button {
  color: var(--paper);
  background: rgba(244, 240, 232, 0.08);
}

.split-char,
.split-word,
.split-line {
  display: inline-block;
}

.split-word {
  white-space: nowrap;
}

.split-line {
  overflow: hidden;
}

@media (max-width: 920px) {
  .site-header {
    align-items: flex-start;
  }

  .nav-links {
    display: none;
  }

  .hero-bottom,
  .section-heading,
  .contact {
    align-items: flex-start;
    flex-direction: column;
  }

  .intro,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .orbit-gallery {
    min-height: auto;
    display: grid;
    gap: 16px;
  }

  .work-card,
  .work-card:nth-child(n) {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    transform: none;
    width: 100%;
    min-height: 300px;
  }

  .pin-wrap {
    display: block;
  }

  .horizontal-intro {
    margin-bottom: 28px;
  }

  .horizontal-track {
    width: max-content;
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: 92svh;
  }

  .hero h1,
  .contact h2 {
    font-size: clamp(3.2rem, 16vw, 5.2rem);
  }

  .large-copy {
    font-size: clamp(2.2rem, 12vw, 4.6rem);
  }

  .panel {
    min-height: 420px;
  }

  .primary-link,
  .contact-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
