:root {
  --bg: #0f0d0c;
  --bg-2: #171412;
  --card: #1b1715;
  --line: #2d2724;
  --text: #f3ece6;
  --muted: #b3a79d;
  --faint: #7d7168;
  --orange: #ff6d0a;
  --orange-soft: #ff8a2e;
  --teal: #7fc8b6;
  --radius: 18px;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 Inter, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: Outfit, Inter, sans-serif; line-height: 1.12; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px max(16px, calc((100% - var(--max)) / 2));
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 18px Outfit, sans-serif; color: var(--orange); letter-spacing: .06em; text-transform: uppercase; }
.brand img { width: 30px; height: auto; }
.nav nav { display: flex; align-items: center; gap: 22px; }
.nav nav a { text-decoration: none; color: var(--muted); font-size: 15px; }
.nav nav a:hover { color: var(--text); }
.nav .nav-cta { color: var(--text); border: 1px solid var(--line); padding: 7px 14px; border-radius: 999px; }
.nav .nav-cta:hover { border-color: var(--orange); }

/* Layout */
.section { max-width: var(--max); margin: 0 auto; padding: 96px 16px 0; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 600; margin-bottom: 14px; }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 18px; }
.eyebrow { color: var(--orange-soft); font: 500 13px Inter, sans-serif; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.accent { color: var(--orange); }

/* Hero */
.hero {
  max-width: var(--max); margin: 0 auto; padding: 88px 16px 40px;
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; align-items: center;
}
.hero h1 { font-size: clamp(42px, 6.6vw, 78px); font-weight: 600; margin-bottom: 24px; }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 580px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-mark { display: flex; justify-content: center; position: relative; }
.hero-mark::before {
  content: ""; position: absolute; inset: 8% 10%;
  background: radial-gradient(circle, rgba(255,109,10,.22), transparent 65%);
  filter: blur(10px);
}
.hero-mark img { position: relative; width: min(360px, 80%); animation: breathe 7s ease-in-out infinite; }
@keyframes breathe { 50% { transform: translateY(-6px) scale(1.01); } }
@media (prefers-reduced-motion: reduce) { .hero-mark img { animation: none; } html { scroll-behavior: auto; } }

.btn { display: inline-block; text-decoration: none; font-weight: 600; font-size: 16px; padding: 13px 22px; border-radius: 999px; transition: transform .15s, background .15s, border-color .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: #140b04; }
.btn-primary:hover { background: var(--orange-soft); }
.btn-ghost { border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--orange); }

/* Proof */
.proof {
  max-width: var(--max); margin: 24px auto 0; padding: 0 16px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px;
}
.stat { background: var(--bg-2); padding: 24px 22px; border-top: 2px solid var(--orange); }
.stat b { display: block; font: 600 38px Outfit, sans-serif; color: var(--text); margin-bottom: 6px; }
.stat span { color: var(--muted); font-size: 14.5px; line-height: 1.5; }

/* Work */
.tag { color: var(--orange-soft); font-size: 13px; font-weight: 500; letter-spacing: .04em; margin: 18px 0 6px; }
.more { display: inline-block; margin-top: 14px; color: var(--orange-soft); font-weight: 500; text-decoration: none; font-size: 15px; }
.more:hover { text-decoration: underline; }
.links-row { display: flex; flex-wrap: wrap; gap: 0 22px; }
.code-note { color: var(--faint); font-size: 13px; font-weight: 400; margin-left: 6px; }
.shot { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #fff; aspect-ratio: 1280 / 860; }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .4s; }
a.shot:hover img { transform: scale(1.02); }
.shot-art { background: #151210; }
.shot-art svg { width: 100%; height: 100%; display: block; }

.feature {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin-bottom: 28px;
}
.feature h3 { font-size: 36px; font-weight: 600; margin-bottom: 12px; }
.feature p:not(.tag) { color: var(--muted); }
.feature .tag { margin-top: 0; }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 22px; display: flex; flex-direction: column; }
.card h3 { font-size: 24px; font-weight: 600; margin-bottom: 8px; }
.card p:not(.tag) { color: var(--muted); font-size: 15.5px; }
.card .more { margin-top: auto; padding-top: 14px; }
/* Last card runs the full row, picture beside the words */
.card-wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); column-gap: 28px; align-items: center; }
.card-wide .shot { grid-row: 1 / span 5; aspect-ratio: 16 / 9; }
.card-wide .tag { margin-top: 0; }
.card-wide .more { margin-top: 0; }

/* Case study */
.case-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.case-col h3, .eval h3 { font-size: 22px; font-weight: 600; margin-bottom: 12px; }
.case-col > p { color: var(--muted); }
.route { width: 100%; margin: 24px 0 8px; background: var(--bg-2); border-radius: 12px; border: 1px solid var(--line); padding: 10px; }
.caption { color: var(--faint); font-size: 13.5px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.ticks li { color: var(--muted); padding-left: 26px; position: relative; font-size: 16px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 10px; height: 10px; border-radius: 50%; background: var(--teal); }
.ticks b { color: var(--text); font-weight: 600; }

.eval { margin-top: 48px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.eval > p { color: var(--muted); margin-bottom: 22px; }
.bars { display: grid; gap: 12px; }
.bar { display: grid; grid-template-columns: 110px 1fr 52px; align-items: center; gap: 14px; font-size: 15px; }
.bar .name { color: var(--muted); }
.bar .val { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.track { height: 14px; background: var(--bg-2); border-radius: 999px; overflow: hidden; }
.fill { display: block; height: 100%; width: var(--v); background: #5d524b; border-radius: 999px; }
.fill-hi { background: linear-gradient(90deg, var(--orange), var(--orange-soft)); }
.note { margin-top: 24px; color: var(--faint); font-size: 14.5px; max-width: 820px; }

/* How */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 48px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.steps li { counter-increment: s; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px 18px; color: var(--muted); font-size: 15px; }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font: 600 14px Outfit, sans-serif; color: var(--orange); margin-bottom: 10px; letter-spacing: .08em; }
.steps b { display: block; color: var(--text); font: 600 18px Outfit, sans-serif; margin-bottom: 6px; }
.principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; border-top: 1px solid var(--line); padding-top: 32px; }
.principles h3, .service-grid h3 { font-size: 19px; font-weight: 600; margin-bottom: 8px; }
.principles p, .service-grid p { color: var(--muted); font-size: 15.5px; }

.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.service-grid > div { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }

/* Show */
.show-inner {
  border-radius: var(--radius); padding: 48px 40px;
  background: radial-gradient(120% 140% at 100% 0%, rgba(255,109,10,.25), transparent 55%), var(--card);
  border: 1px solid var(--line);
}
.show-inner > div { max-width: 620px; }
.show h2 { font-size: clamp(30px, 4vw, 42px); font-weight: 600; margin-bottom: 14px; }
.show p:not(.eyebrow) { color: var(--muted); margin-bottom: 24px; font-size: 18px; }

/* About */
.about-body { max-width: 760px; }
.about-body p { color: var(--muted); font-size: 18px; }
.about-body .links { margin-top: 20px; display: flex; gap: 22px; font-size: 16px; }
.about-body .links a { color: var(--orange-soft); text-decoration: none; }

/* Contact */
.contact { text-align: center; padding-bottom: 96px; display: flex; flex-direction: column; align-items: center; }
.contact img { width: 70px; margin-bottom: 20px; }
.contact h2 { font-size: clamp(32px, 5vw, 52px); font-weight: 600; margin-bottom: 14px; }
.contact p { color: var(--muted); font-size: 18px; margin-bottom: 28px; max-width: 520px; }

.footer {
  border-top: 1px solid var(--line); color: var(--faint); font-size: 13.5px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  padding: 24px max(16px, calc((100% - var(--max)) / 2));
}

/* Responsive */
@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-wide { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .principles, .service-grid, .proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .nav nav a:not(.nav-cta) { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: 48px; }
  .hero-mark { order: -1; }
  .hero-mark img { width: 150px; }
  .feature, .case-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .feature { padding: 18px; }
  .section { padding-top: 72px; }
  .show-inner { padding: 32px 22px; }
}
@media (max-width: 560px) {
  .grid, .steps, .principles, .service-grid, .proof { grid-template-columns: minmax(0, 1fr); }
  .bar { grid-template-columns: 82px minmax(0, 1fr) 44px; gap: 10px; }
  .card-wide { display: flex; align-items: stretch; }
  .card-wide .shot { aspect-ratio: 1280 / 860; }
  .card-wide .tag { margin-top: 18px; }
  .card-wide .more { margin-top: auto; }
  .brand span { font-size: 15px; }
}

/* Try it here */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ask { display: flex; gap: 12px; align-items: stretch; }
.ask textarea {
  flex: 1; min-width: 0; resize: vertical; font: inherit; color: var(--text);
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px;
}
.ask textarea:focus { outline: 2px solid var(--orange); outline-offset: 1px; }
.ask .btn { border: 0; cursor: pointer; white-space: nowrap; }
.ask .btn:disabled { opacity: .6; cursor: wait; transform: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 28px; }
.chip { font: inherit; font-size: 14px; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; cursor: pointer; text-align: left; }
.chip:hover { color: var(--text); border-color: var(--orange); }
.seats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.seat, .synth { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.seat h3, .synth h3 { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.seat h3 span { color: var(--faint); font: 400 13px Inter, sans-serif; margin-left: 6px; }
.seat-text { color: var(--muted); font-size: 15.5px; white-space: pre-line; }
.synth { margin-top: 16px; border-color: color-mix(in srgb, var(--orange) 55%, var(--line)); }
.synth h3 { color: var(--orange-soft); }
.synth .seat-text { color: var(--text); }
.seat.thinking .seat-text, .synth.thinking .seat-text { color: var(--faint); animation: pulse 1.4s ease-in-out infinite; }
.seat.failed .seat-text { color: #e7a07a; }
@keyframes pulse { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .seat.thinking .seat-text, .synth.thinking .seat-text { animation: none; } }
.try .note a { color: var(--orange-soft); }
@media (max-width: 760px) {
  .ask { flex-direction: column; }
  .seats { grid-template-columns: minmax(0, 1fr); }
}
