:root {
  --black: #050505;
  --ink: #f4f1ea;
  --muted: #c2bdb4;
  --quiet: #8f8a83;
  --orange: #ff5a1f;
  --panel: #121212;
  --panel-2: #1b1b1b;
  --line: rgba(255, 255, 255, 0.14);
  --display: "Clash Display", "Satoshi", "Segoe UI", sans-serif;
  --text: "Satoshi", "Segoe UI", sans-serif;
  --pad: clamp(20px, 3vw, 48px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--black);
  color: var(--ink);
  font-family: var(--text);
  font-size: 18px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

button, input, textarea { font: inherit; color: inherit; }

button { cursor: pointer; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--orange); color: #1a0c06; }

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 80;
  background: var(--ink);
  color: var(--black);
  padding: 8px 12px;
}

.skip:focus { top: 12px; }

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px var(--pad);
  color: var(--ink);
}

.nav.solid { background: var(--black); }

.nav.invert {
  background: var(--orange);
  color: #16120f;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: var(--display);
}

.logo-mark {
  width: 42px;
  height: 42px;
  display: block;
  flex: none;
}

.mark-ring { stroke: #f4f1ea; }

.mark-bar { fill: var(--orange); }

.nav.invert .mark-ring { stroke: #16120f; }

.nav.invert .mark-bar { fill: #16120f; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 500;
  color: #ddd8d0;
}

.nav.invert .nav-links a,
.nav.invert .logo { color: #16120f; }

.nav-links a.nav-cta { color: var(--orange); }

.nav.invert .nav-links a.nav-cta { color: #16120f; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: inherit;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 500;
  padding: 8px 0;
}

.hero-pin { height: 88vh; }

.hero {
  position: sticky;
  top: 0;
  height: 76svh;
  min-height: 520px;
  display: grid;
  place-items: center;
  background: var(--black);
  overflow: hidden;
}

.hero-mark {
  position: absolute;
  left: 36px;
  top: 30%;
  width: 2px;
  height: 96px;
  background: var(--orange);
  transform-origin: top center;
  animation: draw 1.05s var(--ease) 0.15s both;
}

.hero-copy {
  text-align: center;
  padding: 0 var(--pad);
  max-width: 1200px;
}

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(3.4rem, 8.4vw, 7.5rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
}

.line { display: block; overflow: hidden; }

.line-in {
  display: block;
  transform: translateY(110%);
  animation: line-up 1.05s var(--ease) forwards;
}

.line:nth-child(2) .line-in { animation-delay: 0.12s; }

.hero-sub {
  margin: 28px auto 0;
  max-width: 38ch;
  color: var(--muted);
  font-size: 1.05rem;
  opacity: 0;
  animation: fade-up 0.9s var(--ease) 0.42s forwards;
}

.hero-cta {
  display: inline-block;
  margin-top: 36px;
  color: var(--orange);
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 6px;
  opacity: 0;
  animation: fade-up 0.9s var(--ease) 0.56s forwards;
}

.hero-cta:hover { text-decoration-thickness: 2px; }

.studio {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  height: 100svh;
  min-height: 640px;
  background: var(--black);
  overflow: hidden;
}

.studio-photo {
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.studio-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 45%;
  transform: scale(1.12);
}

.studio-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 8vh, 96px) clamp(28px, 4vw, 72px);
}

.kicker {
  margin: 0 0 18px;
  color: var(--orange);
  font-family: var(--display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.studio h2,
.method h2,
.close h2,
.work h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.96;
}

.studio h2 {
  font-size: clamp(2.5rem, 4vw, 4.3rem);
  max-width: 11ch;
}

.studio-copy > p,
.work-copy > p,
.close-copy > p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 38ch;
}

.studio-copy > p { margin: 24px 0 0; }

.text-link {
  display: inline-block;
  margin-top: 28px;
  width: fit-content;
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 500;
}

.text-link:hover { color: var(--orange); }

.services {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  background: var(--black);
  padding: 84px 0 0;
}

.services-label {
  margin: 0;
  padding: 8px 28px 16px;
  color: var(--muted);
  font-family: var(--display);
  font-size: 16px;
  font-weight: 500;
}

.slices {
  display: flex;
  align-items: stretch;
}

.slice {
  flex: 1 1 0;
  min-width: 0;
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px 22px 0;
  background: #101010;
  color: var(--ink);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transition: flex-grow 0.7s var(--ease), background-color 0.45s ease, color 0.45s ease;
}

.slice:last-child { border-right: 0; }

.slice.is-open {
  flex-grow: 1.45;
  background: var(--orange);
  color: #16120f;
}

.slice-hit {
  display: grid;
  gap: 8px;
  padding: 0;
  background: none;
  border: 0;
  color: inherit;
  text-align: left;
}

.num {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 500;
}

.slice-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.45rem, 8.4cqi, 2.7rem);
  line-height: 0.88;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  white-space: nowrap;
}

.slice.is-open .slice-title {
  font-size: clamp(2.8rem, 13cqi, 5rem);
}

.slice-desc {
  margin: 0;
  max-width: 24ch;
  font-size: 15px;
  line-height: 1.4;
}

.slice:not(.is-open) .slice-desc {
  height: 0;
  margin: 0;
  overflow: hidden;
  opacity: 0;
}

.mini {
  margin-top: 28px;
  background: #161616;
  color: var(--ink);
  padding: 16px 16px 18px;
}

.mini-k {
  display: block;
  color: #b7b2aa;
  font-size: 12px;
  margin-bottom: 4px;
}

.mini-stats,
.kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.kpis { grid-template-columns: repeat(3, 1fr); }

.mini strong,
.kpi-num {
  display: block;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.8rem;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.mini-note,
.rows,
.conns,
.bars { margin: 10px 0 0; padding: 0; list-style: none; }

.mini-note { color: #b7b2aa; font-size: 13px; }

.bars li,
.rows li,
.conns li {
  display: grid;
  gap: 4px;
  padding: 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
}

.bars li { grid-template-columns: 1fr auto; }

.track {
  grid-column: 1 / -1;
  height: 4px;
  background: #2c2c2c;
  display: block;
}

.track i {
  display: block;
  height: 100%;
  width: var(--w);
  background: var(--orange);
}

.rows li,
.conns li {
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
}

.chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 88px;
  margin-top: 16px;
}

.chart span {
  flex: 1;
  height: var(--h);
  background: var(--orange);
}

@container (max-width: 340px) {
  .kpis { grid-template-columns: 1fr; gap: 8px; }
  .kpi-num, .mini strong { font-size: 1.45rem; }
  .rows li { grid-template-columns: 1fr auto; }
  .rows li span:nth-child(2) { display: none; }
}

.method {
  position: relative;
  z-index: 1;
  background-color: #0c0c0c;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 88px 88px;
  padding: 76px var(--pad) 56px;
}

.method h2 {
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  max-width: 16ch;
}

.steps {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
}

.step {
  display: grid;
  grid-template-columns: 150px minmax(160px, 0.8fr) 1.3fr;
  gap: 20px;
  align-items: baseline;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.step-num {
  font-family: var(--display);
  font-weight: 500;
  font-size: 3rem;
  letter-spacing: -0.04em;
  line-height: 0.9;
}

.step-focus .step-num {
  font-size: clamp(4.2rem, 7vw, 6rem);
  color: var(--orange);
}

.step h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.6rem, 2vw, 2.1rem);
  letter-spacing: -0.03em;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.method-end {
  display: flex;
  justify-content: flex-end;
  margin-top: 28px;
}

.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: var(--ink);
  background: transparent;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 500;
}

.ghost:hover { background: var(--ink); color: var(--black); }

.work {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(240px, 32%) 1fr;
  gap: 28px;
  padding: 80px var(--pad) 48px;
  background: var(--black);
}

.work-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 28px;
  padding-bottom: 12px;
}

.work h2 { font-size: clamp(2rem, 3vw, 3rem); max-width: 14ch; }

.note {
  margin-top: 12px;
  color: var(--quiet);
  font-size: 14px;
}

.stage {
  position: relative;
  min-height: 580px;
}

.win { position: absolute; }

.win-back { top: 0; right: 0; width: min(100%, 760px); z-index: 1; }

.win-mid { top: 32%; left: 0; width: min(46%, 380px); z-index: 2; }

.win-front { right: 2%; bottom: 0; width: min(48%, 420px); z-index: 3; }

.win-move {
  background: #121212;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 18px 16px;
}

.win-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.win h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
}

.win-sub { margin: 4px 0 0; color: var(--muted); font-size: 13px; }

.tag {
  color: var(--orange);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.flow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.flow span {
  display: grid;
  gap: 2px;
  min-width: 118px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 13px;
}

.flow b { font-weight: 500; }

.flow em {
  font-style: normal;
  color: var(--quiet);
  font-size: 12px;
}

.flow .hot {
  border-color: var(--orange);
  color: var(--orange);
}

.flow .hot em { color: var(--orange); }

.sheet {
  width: 100%;
  margin-top: 16px;
  border-collapse: collapse;
  font-size: 13px;
}

.sheet th,
.sheet td {
  text-align: left;
  padding: 8px 8px 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 400;
}

.sheet th { color: var(--quiet); }

.code {
  color: var(--orange);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.scope { margin: 12px 0; color: var(--muted); font-size: 14px; }

.progress {
  height: 6px;
  background: #2a2a2a;
  margin: 8px 0 4px;
}

.progress i {
  display: block;
  height: 100%;
  width: 62%;
  background: var(--orange);
}

.checks { list-style: none; margin: 12px 0 0; padding: 0; font-size: 14px; }

.checks li { padding: 5px 0 5px 18px; position: relative; }

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.checks .done::before { background: var(--orange); border-color: var(--orange); }

.fields { display: grid; gap: 10px; margin-top: 14px; }

.fields div {
  display: grid;
  gap: 2px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
}

.fields span { color: var(--quiet); font-size: 12px; }

.fake-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}

.fake-actions span {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 13px;
}

.fake-actions .go {
  background: var(--orange);
  border-color: var(--orange);
  color: #1a0c06;
}

.close {
  position: relative;
  z-index: 1;
  background: var(--orange);
  color: #16120f;
  min-height: 0;
}

.close-layout {
  min-height: 68svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 28px;
  padding: 72px var(--pad) 24px;
}

.close.is-open .close-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
  grid-template-rows: 1fr auto auto;
  align-items: end;
}

.close.is-open .close-copy { grid-column: 1; grid-row: 2; }
.close.is-open .form { grid-column: 2; grid-row: 2; }
.close.is-open .foot { grid-column: 1 / -1; grid-row: 3; }

.close h2 {
  font-size: clamp(3rem, 6.4vw, 6rem);
  max-width: 12ch;
  color: #16120f;
}

.close-copy > p { color: #2a160e; margin: 18px 0 0; }

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 28px;
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: #111;
  color: #f4f1ea;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 500;
}

.pill:hover { transform: translateY(-1px); }

.pill:active { transform: translateY(1px); }

.pill:disabled { opacity: 0.65; cursor: wait; }

.js .close:not(.is-open) .form { display: none; }

.form {
  background: #0c0c0c;
  color: var(--ink);
  padding: 22px 22px 20px;
  display: grid;
  gap: 14px;
}

.form-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.form-head p { margin: 0; font-family: var(--display); font-size: 1.4rem; letter-spacing: -0.03em; }

.linkish {
  background: none;
  border: 0;
  color: var(--muted);
  font-family: var(--display);
  font-size: 14px;
  font-weight: 500;
  padding: 0;
}

.form label { display: grid; gap: 4px; color: #c8c3bb; font-size: 14px; }

.form input,
.form textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 0;
  background: transparent;
  padding: 8px 0 10px;
}

.form textarea { min-height: 96px; resize: vertical; }

.form input:focus-visible,
.form textarea:focus-visible {
  outline: none;
  border-bottom-color: var(--orange);
}

.form .pill { background: var(--orange); color: #1a0c06; justify-self: start; }

.form-status { margin: 0; min-height: 1.2em; color: var(--muted); font-size: 14px; }

.form-thanks {
  margin: 0;
  font-family: var(--display);
  font-size: 1.8rem;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0;
  padding-top: 28px;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 500;
  color: #2a160e;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
}

.js [data-reveal].in {
  animation: rise 0.9s var(--ease) forwards;
  animation-delay: var(--d, 0ms);
}

@keyframes line-up { to { transform: translateY(0); } }

@keyframes draw { from { transform: scaleY(0); } to { transform: scaleY(1); } }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@keyframes rise {
  to { opacity: 1; transform: none; }
}

@media (max-width: 980px) {
  .studio,
  .work,
  .close.is-open .close-layout { grid-template-columns: 1fr; }

  .close.is-open .close-layout { grid-template-rows: 1fr auto auto auto; }
  .close.is-open .close-copy { grid-column: 1; grid-row: 2; }
  .close.is-open .form { grid-column: 1; grid-row: 3; }
  .close.is-open .foot { grid-column: 1; grid-row: 4; }

  .studio {
    height: auto;
    overflow: visible;
  }

  .studio-photo { height: 68vh; min-height: 420px; }

  .slices {
    display: flex;
    flex-direction: column;
    overflow: visible;
    min-height: 0;
  }

  .slice,
  .slice.is-open {
    flex: none;
    width: 100%;
    min-height: 0;
    overflow: visible;
  }

  .slice:not(.is-open) .slice-desc {
    height: auto;
    opacity: 1;
  }

  .slice-title,
  .slice.is-open .slice-title {
    font-size: clamp(2.4rem, 12vw, 3.5rem);
    white-space: normal;
  }

  .step {
    grid-template-columns: auto 1fr;
    column-gap: 16px;
  }

  .step-focus .step-num { font-size: 3.2rem; }

  .step p { grid-column: 2; }

  .stage {
    min-height: 0;
    display: grid;
    gap: 16px;
  }

  .win { position: relative; width: auto; top: auto; right: auto; bottom: auto; left: auto; }
}

@media (max-width: 800px) {
  .nav-toggle { display: inline-flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 4px var(--pad) 16px;
    background: var(--black);
  }

  .nav.invert .nav-links { background: var(--orange); }

  .nav-links.is-open { display: flex; }

  .nav-links a { width: 100%; padding: 14px 0; }

  .hero-pin { height: auto; }

  .hero { position: relative; }

  .hero-mark { left: 20px; }

  .method-end { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .hero-pin { height: auto; }

  .hero { position: relative; }

  .hero-mark,
  .line-in,
  .hero-sub,
  .hero-cta,
  .js [data-reveal],
  .js [data-reveal].in {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }

  .studio-photo img { transform: none; }

  .slice { transition: none; }
}
