:root {
  color-scheme: light;
  --cream: #f6f0e6;
  --cream-deep: #ead9c9;
  --paper: #fffefa;
  --orange: #cf3102;
  --orange-hot: #f07812;
  --orange-soft: #f4a044;
  --ink: #080807;
  --ink-warm: #240c05;
  --muted: rgba(8, 8, 7, 0.64);
  --light: #fffefa;
  --light-soft: rgba(255, 254, 250, 0.72);
  --line-dark: rgba(36, 12, 5, 0.14);
  --line-light: rgba(255, 254, 250, 0.18);
  --gutter: clamp(20px, 5vw, 72px);
  --header: 74px;



  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --duration: 680ms;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 20px);
  background: var(--ink);
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.5;
  text-rendering: geometricPrecision;
}

body.is-menu-open {
  overflow: hidden;
}

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

button,
input,
textarea {
  font: inherit;
}

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

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

.skip-link {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 1000;
  padding: 12px 16px;
  background: var(--light);
  color: var(--ink);
  transform: translateY(-150%);
  transition: transform 220ms ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

.site-shell {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 0 var(--gutter);
  color: var(--light);
  transition: background 220ms ease, border-color 220ms ease, height 220ms ease;
}

.site-shell::before {
  content: "";
  position: absolute;
  inset: 12px var(--gutter);
  z-index: -1;
  border: 1px solid transparent;
  border-radius: 999px;
  background: rgba(8, 8, 7, 0.08);
  transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.site-shell.is-scrolled::before,
.site-shell.is-menu-open::before {
  border-color: rgba(36, 12, 5, 0.12);
  background: rgba(255, 254, 250, 0.86);
  box-shadow: 0 18px 50px rgba(36, 12, 5, 0.12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.site-shell.is-scrolled,
.site-shell.is-menu-open {
  color: var(--ink);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-link img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transition: filter 220ms ease;
}

.site-shell.is-scrolled .brand-link img,
.site-shell.is-menu-open .brand-link img {
  filter: none;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(14px, 2vw, 30px);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.primary-nav a {
  position: relative;
  opacity: 0.78;
  transition: opacity 220ms ease, color 220ms ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  opacity: 1;
  color: var(--orange-hot);
}

.nav-cta {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(255, 254, 250, 0.16);
}

.site-shell.is-scrolled .nav-cta,
.site-shell.is-menu-open .nav-cta {
  background: rgba(207, 49, 2, 0.1);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: auto;
  background: currentColor;
  transition: transform 220ms ease, opacity 220ms ease;
}

.menu-toggle span {
  position: relative;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle span::before {
  top: -6px;
}

.menu-toggle span::after {
  top: 6px;
}

.menu-toggle[aria-expanded="true"] span {
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span::before {
  transform: translateY(6px) rotate(90deg);
}

.menu-toggle[aria-expanded="true"] span::after {
  opacity: 0;
}

.hero-universe {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  align-items: end;
  padding: calc(var(--header) + clamp(52px, 7vw, 96px)) var(--gutter) clamp(48px, 7vw, 84px);
  background:
    radial-gradient(circle at 78% 34%, rgba(240, 120, 18, 0.58), transparent 30%),
    radial-gradient(circle at 18% 82%, rgba(244, 160, 68, 0.3), transparent 34%),
    linear-gradient(132deg, #d09a60 0%, #f07812 33%, #cf3102 72%, #8e1e04 100%);
  color: var(--light);
}

.universe-canvas,
.hero-vignette {
  position: absolute;
  inset: 0;
}

.universe-canvas {
  width: 100%;
  height: 100%;
  opacity: 0.95;
}

.hero-vignette {
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8, 8, 7, 0.58), transparent 46%),
    linear-gradient(0deg, rgba(8, 8, 7, 0.5), transparent 52%);
}

.hero-grid {
  position: relative;
  z-index: 2;
  width: min(1440px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(220px, 0.28fr);
  align-items: end;
  gap: clamp(38px, 7vw, 108px);
}

.kicker,
.stage-label,
.project-index {
  margin: 0;
  color: var(--orange-hot);
  font-family: var(--font-ui);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-universe .kicker {
  color: rgba(255, 242, 189, 0.88);
}

.hero-copy {
  max-width: 980px;
}

.hero-copy h1,
.section-intro h2,
.brief-copy h2 {
  margin: 20px 0 0;
  font-family: var(--font-ui);
  letter-spacing: 0;
  line-height: 0.92;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 11.6ch;
  font-size: 3.4rem;
  overflow-wrap: break-word;
  hyphens: manual;
}

.hero-copy > p:not(.kicker) {
  max-width: 720px;
  margin: 28px 0 0;
  color: var(--light-soft);
  font-size: 1.02rem;
  line-height: 1.65;
}

.action-row,
.brief-controls,
.work-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 220ms ease, background 220ms ease, color 220ms ease, border-color 220ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  border-color: var(--orange-hot);
  background: var(--orange-hot);
  color: var(--ink);
}

.button-secondary {
  border-color: rgba(255, 254, 250, 0.42);
  background: rgba(255, 254, 250, 0.08);
  color: inherit;
}

.story-system .button-secondary,
.featured-work .button-secondary,
.project-brief .button-secondary {
  border-color: rgba(36, 12, 5, 0.24);
  color: var(--ink);
}

.hero-instrument {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}

.hero-instrument span {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line-light);
  color: rgba(255, 254, 250, 0.76);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-instrument span:first-child {
  border-top: 0;
}

.scroll-cue {
  position: absolute;
  right: var(--gutter);
  bottom: 28px;
  z-index: 2;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
  opacity: 0.7;
}

.thesis-band {
  padding: clamp(58px, 7vw, 104px) var(--gutter);
  background: var(--ink);
  color: var(--cream);
}

.thesis-band p {
  width: min(1120px, 100%);
  margin: 0 auto;
  font-size: 2.1rem;
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: 0;
}

.story-system,
.services-lab,
.featured-work,
.project-brief {
  padding: clamp(84px, 10vw, 150px) var(--gutter);
}

.story-system {
  background: var(--paper);
}

.section-intro {
  width: min(1120px, 100%);
  margin: 0 auto clamp(52px, 8vw, 110px);
}

.section-intro h2,
.brief-copy h2 {
  max-width: 880px;
  color: var(--ink);
  font-size: 2.5rem;
}

.story-stage {
  position: relative;
  width: min(1180px, 100%);
  min-height: 540px;
  display: grid;
  grid-template-columns: minmax(260px, 0.86fr) minmax(280px, 0.7fr);
  align-items: center;
  gap: clamp(36px, 7vw, 104px);
  margin: 0 auto;
  border-top: 1px solid var(--line-dark);
}

.story-stage::before {
  content: attr(data-stage);
  position: absolute;
  top: 28px;
  right: 0;
  color: rgba(36, 12, 5, 0.16);
  font-family: var(--font-ui);
  font-size: 3rem;
  font-weight: 600;
}

.story-stage-flip {
  grid-template-columns: minmax(280px, 0.7fr) minmax(260px, 0.86fr);
}

.story-stage-flip .stage-visual {
  order: 2;
}

.story-stage h3,
.service-panel h3 {
  margin: 14px 0 0;
  font-family: var(--font-ui);
  font-size: 2rem;
  line-height: 0.98;
  text-transform: uppercase;
}

.story-stage p:not(.stage-label),
.service-panel p:not(.stage-label),
.brief-copy > p {
  max-width: 560px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
}

.stage-visual {
  position: relative;
  min-height: 380px;
  isolation: isolate;
}

.stage-visual span {
  position: absolute;
  display: block;
  background: linear-gradient(135deg, var(--orange-hot), var(--orange));
  box-shadow: 0 24px 70px rgba(207, 49, 2, 0.16);
}

.visual-fragments span:nth-child(1) { width: 38%; height: 18%; left: 8%; top: 14%; }
.visual-fragments span:nth-child(2) { width: 18%; height: 48%; left: 50%; top: 8%; }
.visual-fragments span:nth-child(3) { width: 24%; height: 24%; left: 24%; top: 44%; border-radius: 50%; }
.visual-fragments span:nth-child(4) { width: 34%; height: 12%; left: 58%; top: 62%; }
.visual-fragments span:nth-child(5) { width: 14%; height: 14%; left: 12%; top: 72%; border-radius: 50%; }
.visual-fragments span:nth-child(6) { width: 28%; height: 20%; left: 40%; top: 78%; }

.visual-create {
  border: 1px solid var(--line-dark);
  background: radial-gradient(circle at 54% 46%, rgba(240, 120, 18, 0.2), transparent 36%);
}

.visual-create span:nth-child(1) { width: 58%; height: 72%; left: 18%; top: 12%; border-radius: 999px 999px 0 0; }
.visual-create span:nth-child(2) { width: 44%; height: 12%; left: 44%; top: 36%; background: var(--ink); }
.visual-create span:nth-child(3) { width: 16%; height: 58%; left: 46%; top: 22%; background: var(--cream); }

.visual-grow {
  background:
    linear-gradient(90deg, rgba(36, 12, 5, 0.1) 1px, transparent 1px),
    linear-gradient(0deg, rgba(36, 12, 5, 0.1) 1px, transparent 1px);
  background-size: 56px 56px;
}

.visual-grow span {
  width: 92px;
  height: 92px;
  border-radius: 50%;
}

.visual-grow span:nth-child(1) { left: 8%; top: 22%; }
.visual-grow span:nth-child(2) { left: 38%; top: 10%; }
.visual-grow span:nth-child(3) { left: 62%; top: 38%; }
.visual-grow span:nth-child(4) { left: 28%; top: 64%; }
.visual-grow span:nth-child(5) { left: 72%; top: 72%; }

.services-lab {
  background: var(--cream-deep);
}

.service-workbench {
  width: min(1280px, 100%);
  min-height: 640px;
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(320px, 0.58fr);
  gap: clamp(30px, 6vw, 86px);
  align-items: center;
  margin: 0 auto;
}

.service-orbit {
  position: relative;
  min-height: 520px;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, rgba(255, 254, 250, 0.7), transparent 30%),
    radial-gradient(circle at center, transparent 42%, rgba(207, 49, 2, 0.2) 43%, transparent 44%);
}

.service-orbit span {
  position: absolute;
  display: block;
  background: linear-gradient(135deg, var(--orange-hot), var(--orange));
  transition: transform 520ms var(--ease), border-radius 520ms var(--ease);
}

[data-orbit-a] { width: 42%; height: 42%; left: 28%; top: 28%; border-radius: 50%; }
[data-orbit-b] { width: 26%; height: 16%; left: 60%; top: 20%; transform: rotate(18deg); }
[data-orbit-c] { width: 18%; height: 44%; left: 16%; top: 42%; transform: rotate(-22deg); }

.service-workbench[data-active-service="web"] [data-orbit-a],
.service-workbench:not([data-active-service]) [data-orbit-a] {
  border-radius: 20px;
}

.service-workbench[data-active-service="branding"] [data-orbit-b] {
  transform: translate(-110px, 130px) rotate(82deg);
}

.service-workbench[data-active-service="ads"] [data-orbit-c] {
  transform: translate(170px, -80px) rotate(34deg);
}

.service-tabs {
  display: grid;
  gap: 8px;
  margin-bottom: 34px;
}

.service-tabs button {
  min-height: 54px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(36, 12, 5, 0.2);
  background: transparent;
  color: rgba(36, 12, 5, 0.52);
  text-align: left;
  font-family: var(--font-ui);
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
}

.service-tabs button[aria-selected="true"] {
  color: var(--ink);
}

.service-panel ul {
  display: grid;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.service-panel li {
  padding-top: 10px;
  border-top: 1px solid rgba(36, 12, 5, 0.16);
  color: rgba(36, 12, 5, 0.7);
}

.text-link {
  position: relative;
  display: inline-flex;
  margin-top: 30px;
  color: var(--orange);
  font-family: var(--font-ui);
  font-weight: 600;
  text-transform: uppercase;
}

.featured-work {
  background: var(--ink);
  color: var(--light);
}

.featured-work .section-intro h2 {
  color: var(--light);
}

.project-showcase {
  width: min(1380px, 100%);
  display: grid;
  gap: clamp(24px, 4vw, 48px);
  margin: 0 auto;
}

.feature-project {
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(280px, 0.38fr);
  align-items: end;
  gap: clamp(24px, 5vw, 78px);
  padding-block: clamp(28px, 4vw, 52px);
  border-top: 1px solid var(--line-light);
}

.feature-project:nth-child(even) {
  grid-template-columns: minmax(280px, 0.38fr) minmax(0, 0.62fr);
}

.feature-project:nth-child(even) .project-media {
  order: 2;
}

.project-media {
  min-height: 480px;
  overflow: hidden;
  background: var(--cream);
}

.project-media img,
.project-media picture {
  width: 100%;
  height: 100%;
}

.project-media img {
  object-fit: cover;
  transition: transform 900ms var(--ease);
}

.feature-project:hover .project-media img {
  transform: scale(1.045);
}

.project-content {
  display: grid;
  gap: 18px;
  align-content: end;
}

.project-content strong {
  font-family: var(--font-ui);
  font-size: 2.4rem;
  line-height: 0.92;
  text-transform: uppercase;
}

.project-content span:not(.project-index) {
  max-width: 430px;
  color: var(--light-soft);
  font-size: 1.05rem;
  line-height: 1.65;
}

.project-content em {
  color: var(--orange-hot);
  font-family: var(--font-ui);
  font-style: normal;
  font-weight: 600;
  text-transform: uppercase;
}

.work-link-row {
  width: min(1380px, 100%);
  margin-inline: auto;
}

.project-brief {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(320px, 0.58fr);
  gap: clamp(34px, 7vw, 110px);
  background: var(--paper);
}

.brief-copy {
  align-self: start;
  position: sticky;
  top: calc(var(--header) + 40px);
}

.direct-contact {
  display: grid;
  gap: 8px;
  margin-top: 30px;
  color: var(--orange);
  font-weight: 600;
}

.brief-form {
  min-height: 620px;
  padding: clamp(24px, 4vw, 54px);
  border: 1px solid var(--line-dark);
  background: var(--cream);
}

.honeypot {
  position: absolute;
  left: -100vw;
}

.brief-progress {
  height: 3px;
  margin-bottom: clamp(28px, 4vw, 52px);
  overflow: hidden;
  background: rgba(36, 12, 5, 0.14);
}

.brief-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0.2);
  transform-origin: left;
  background: var(--orange);
  transition: transform 320ms var(--ease);
}

.brief-step {
  display: none;
  min-height: 340px;
  margin: 0;
  padding: 0;
  border: 0;
}

.brief-step.is-active {
  display: grid;
  align-content: start;
  gap: 14px;
}

.brief-step legend {
  margin-bottom: 28px;
  font-family: var(--font-ui);
  font-size: 2rem;
  font-weight: 600;
  line-height: 0.98;
  text-transform: uppercase;
}

.brief-step label {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid rgba(36, 12, 5, 0.14);
  color: rgba(36, 12, 5, 0.74);
  font-weight: 600;
}

.brief-step input[type="radio"],
.brief-step input[type="checkbox"] {
  accent-color: var(--orange);
}

.field-label {
  min-height: auto !important;
  display: block !important;
  border: 0 !important;
  color: var(--ink) !important;
}

.brief-step textarea,
.brief-step input[type="text"],
.brief-step input[type="email"] {
  width: 100%;
  min-height: 54px;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid rgba(36, 12, 5, 0.24);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
}

.brief-step textarea {
  resize: vertical;
}

.form-status {
  min-height: 28px;
  margin: 14px 0 0;
  color: var(--orange);
  font-weight: 600;
}

.brief-controls {
  margin-top: 26px;
}

.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--duration) var(--ease), transform var(--duration) var(--ease);
}

.js .hero-universe .reveal {
  opacity: 1;
  transform: none;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1023px) {
  .site-shell {
    grid-template-columns: auto 1fr;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .brand-link {
    justify-self: end;
  }

  .primary-nav {
    position: fixed;
    top: var(--header);
    left: var(--gutter);
    right: var(--gutter);
    display: grid;
    gap: 0;
    padding: 18px;
    border: 1px solid rgba(36, 12, 5, 0.12);
    background: rgba(255, 254, 250, 0.94);
    color: var(--ink);
    box-shadow: 0 24px 70px rgba(36, 12, 5, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 220ms ease, visibility 220ms ease, transform 220ms ease;
  }

  .site-shell.is-menu-open .primary-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .primary-nav a {
    min-height: 52px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(36, 12, 5, 0.1);
  }

  .hero-grid,
  .service-workbench,
  .project-brief {
    grid-template-columns: 1fr;
  }

  .hero-instrument {
    max-width: 520px;
  }

  .story-stage,
  .story-stage-flip,
  .feature-project,
  .feature-project:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .story-stage {
    min-height: auto;
    padding-block: 56px;
  }

  .story-stage-flip .stage-visual,
  .feature-project:nth-child(even) .project-media {
    order: 0;
  }

  .service-orbit {
    min-height: 360px;
  }

  .brief-copy {
    position: static;
  }
}

@media (max-width: 680px) {
  :root {
    --header: 66px;
  }

  .site-shell::before {
    inset-inline: 16px;
  }

  .brand-link span {
    display: none;
  }

  .hero-universe {
    align-items: center;
    padding-inline: 20px;
  }

  .hero-copy h1 {
    max-width: 8.9ch;
    font-size: 2.35rem;
    line-height: 0.96;
  }

  .action-row,
  .brief-controls {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .thesis-band p,
  .section-intro h2,
  .brief-copy h2 {
    font-size: 2.2rem;
  }

  .stage-visual {
    min-height: 280px;
  }

  .project-media {
    min-height: 300px;
  }

  .feature-project {
    min-height: auto;
  }

  .brief-form {
    padding: 24px;
  }
}

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