/* Zendex — tokens from the "bold direction" design system v0.2 */
:root {
  --ink: #0B0B0C;
  --grey-900: #17171A;
  --grey-800: #2A2A2E;
  --grey-700: #3A3A3D;
  --grey-500: #6B6B70;
  --grey-400: #A3A3A8;
  --grey-200: #DAD9D4;
  --paper: #F6F5F1;
  --white: #FFFFFF;
  --accent: #FF4F1F;

  --sans: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --serif: 'Instrument Serif', Georgia, serif;

  --radius: 12px;
  --max: 1344px;
  --gutter: 32px;
  --section-y: 112px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; }
img { max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; transition: opacity .15s ease; }
a:hover { opacity: .72; }
input, textarea, button { font: inherit; }
:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; }
.accent-bg :focus-visible, .paper :focus-visible { outline-color: var(--ink); }
section[id] { scroll-margin-top: 24px; }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 12px 20px; background: var(--paper); color: var(--ink);
  border-radius: 999px; font-weight: 600;
}
.skip:focus { top: 16px; }

/* Layout */
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section > .wrap { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.stack-12, .stack-24, .stack-28, .stack-40, .stack-56, .stack-64 { display: flex; flex-direction: column; }
.stack-12 { gap: 12px; } .stack-24 { gap: 24px; } .stack-28 { gap: 28px; }
.stack-40 { gap: 40px; } .stack-56 { gap: 56px; } .stack-64 { gap: 64px; }
.self-start { align-self: flex-start; }
.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: 56px 64px;
  align-items: start;
}

/* Surfaces */
.paper { background: var(--paper); color: var(--ink); }
.accent-bg { background: var(--accent); color: var(--ink); }

/* Type */
.label {
  font-family: var(--mono); font-size: 13px; font-weight: 500; line-height: 1.4;
  letter-spacing: .06em; text-transform: uppercase; color: var(--grey-400);
}
.label-ink { color: var(--ink); }
.label-grey { color: var(--grey-500); }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.03em; }
.accent { color: var(--accent); }
.balance { text-wrap: balance; }
.display { font-size: clamp(64px, 10.6vw, 152px); line-height: .92; letter-spacing: -.055em; font-weight: 600; }
.h1 { font-size: clamp(52px, 7.8vw, 112px); line-height: .95; letter-spacing: -.055em; font-weight: 600; }
.h1-alt { flex: 1 1 520px; font-size: clamp(44px, 6.2vw, 88px); line-height: .98; letter-spacing: -.05em; font-weight: 600; }
.h1-contact { font-size: clamp(56px, 8.4vw, 120px); line-height: .95; letter-spacing: -.055em; font-weight: 600; }
.h2 { max-width: 900px; font-size: clamp(36px, 4.4vw, 64px); line-height: 1.02; letter-spacing: -.045em; font-weight: 600; }
.h2-sm { max-width: 900px; font-size: clamp(34px, 3.4vw, 48px); line-height: 1.1; letter-spacing: -.03em; font-weight: 600; }
.h3 { font-size: 32px; line-height: 1.2; letter-spacing: -.03em; font-weight: 600; }
.h3-lg { font-size: 36px; line-height: 1.15; letter-spacing: -.03em; font-weight: 600; }
.h4 { font-size: 24px; line-height: 1.3; letter-spacing: -.015em; font-weight: 600; }
.lead-xl { flex: 1 1 420px; max-width: 600px; font-size: 22px; line-height: 1.55; color: var(--grey-200); text-wrap: pretty; }
.lead { max-width: 460px; font-size: 18px; line-height: 1.6; color: var(--grey-200); }
.muted-dark { flex: 0 1 380px; font-size: 17px; line-height: 1.6; color: var(--grey-700); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 0 26px; border: 0; border-radius: 999px;
  font-size: 16px; font-weight: 600; line-height: 1.2; cursor: pointer; text-align: center;
  transition: opacity .15s ease, transform .15s ease;
}
.btn:hover { opacity: .88; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-lg { min-height: 60px; padding: 0 30px; font-size: 18px; }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 15px; font-weight: 500; }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-paper { background: var(--paper); color: var(--ink); }
.btn-outline { background: transparent; color: var(--paper); border: 1px solid var(--grey-500); }
.btn-outline:hover { border-color: var(--paper); opacity: 1; }
.text-link { display: inline-flex; align-items: center; min-height: 60px; font-size: 18px; font-weight: 500; border-bottom: 1px solid currentColor; }

/* Header */
.site-header { border-bottom: 1px solid var(--grey-800); position: relative; z-index: 10; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 24px; padding-bottom: 24px; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 36px; font-size: 15px; }
.nav a:not(.btn) { padding: 12px 0; }
.menu-toggle {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  background: transparent; color: var(--paper); border: 1px solid var(--grey-700); border-radius: 999px; cursor: pointer;
}
.menu-toggle .m-close { display: none; }
.menu-toggle[aria-expanded="true"] .m-open { display: none; }
.menu-toggle[aria-expanded="true"] .m-close { display: inline; }

/* Hero */
.hero > .wrap { padding-top: 80px; padding-bottom: 96px; }
.hero-topline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px; }
.status { display: inline-flex; align-items: center; gap: 10px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hero-intro { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px 64px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.promises {
  margin-top: 32px; border-top: 1px solid var(--grey-800);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 0 48px;
}
.promises li { padding-top: 28px; display: flex; flex-direction: column; gap: 8px; }
.promises strong { font-size: 28px; line-height: 1.15; letter-spacing: -.03em; font-weight: 600; }
.promises span { font-size: 15px; line-height: 1.5; color: var(--grey-400); }

/* Marquee band */
.band { background: var(--accent); color: var(--ink); overflow: hidden; border-block: 1px solid var(--ink); }
.band-track { display: flex; width: max-content; animation: zx-marquee 28s linear infinite; }
.band:hover .band-track { animation-play-state: paused; }
.band-group {
  display: flex; align-items: center; gap: 40px; padding: 20px; margin: 0; list-style: none;
  font-size: 24px; font-weight: 600; letter-spacing: -.02em; line-height: 1.3; white-space: nowrap;
}

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 24px; }
.card {
  background: var(--grey-900); border: 1px solid var(--grey-800); border-radius: var(--radius);
  padding: 32px; display: flex; flex-direction: column; gap: 16px;
}
.card > p { color: var(--grey-200); }
.card-num { font-size: 72px; line-height: 1; letter-spacing: -.05em; font-weight: 600; margin-bottom: 16px; }
.ticks { margin-top: 8px; font-size: 15px; color: var(--grey-200); }
.ticks li { padding: 12px 0; border-top: 1px solid var(--grey-800); }

/* Work */
.split-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 64px; }
.projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 48px 32px; align-items: start; }
.project { display: flex; flex-direction: column; gap: 14px; }
.project > p { max-width: 520px; color: var(--grey-700); }
.project-offset { margin-top: clamp(0px, 6.6vw, 96px); }
.project-media {
  position: relative; height: 440px; margin-bottom: 10px; border-radius: var(--radius); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
}
.project-media img { width: 100%; height: 100%; object-fit: cover; }
.media-ink { background: var(--ink); color: var(--grey-400); }
.media-grey { background: var(--grey-200); color: var(--grey-700); }
.tag { position: absolute; top: 20px; left: 20px; padding: 6px 12px; border-radius: 999px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.tag-accent { background: var(--accent); color: var(--ink); }
.tag-ink { background: var(--ink); color: var(--paper); }

/* Process */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 48px 32px; }
.step { display: flex; flex-direction: column; gap: 12px; }
.step > p { color: var(--grey-200); }
.step-num {
  font-size: 120px; line-height: 1; letter-spacing: -.06em; font-weight: 700; margin-bottom: 12px;
  color: transparent; -webkit-text-stroke: 1.5px var(--paper);
}
.step-num-solid { color: var(--accent); -webkit-text-stroke: 0; }
.you-get { margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--grey-800); font-size: 15px; line-height: 1.5; }
.you-get span { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-right: .9em; }

/* Offer */
.offer-body { max-width: 480px; font-size: 18px; line-height: 1.6; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; }
.price-amount { font-size: 64px; line-height: 1; letter-spacing: -.04em; font-weight: 600; }
.offer-list { font-size: 17px; line-height: 1.5; font-weight: 500; }
.offer-list li { padding: 14px 0; border-top: 1px solid var(--ink); }
.offer-list li:last-child { border-bottom: 1px solid var(--ink); }

/* Founders */
.founders { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 40px 32px; }
.founder { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.founder-photo {
  width: 200px; height: 240px; flex: none; border-radius: var(--radius); overflow: hidden;
  background: var(--grey-200); color: var(--grey-700);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
}
.founder-photo img { width: 100%; height: 100%; object-fit: cover; }
.founder-initials { font-family: var(--sans); font-size: 64px; font-weight: 600; letter-spacing: -.04em; text-transform: none; color: var(--ink); }
.founder-text { flex: 1 1 220px; display: flex; flex-direction: column; gap: 10px; }
.founder-text > p:last-child { margin-top: 6px; color: var(--grey-700); }

/* Lab */
.lab { background: var(--grey-900); border-block: 1px solid var(--grey-800); }
.lab-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px 64px; padding-top: 64px; padding-bottom: 64px; }
.lab-intro { flex: 1 1 420px; }
.lab-form { flex: 1 1 380px; max-width: 520px; display: flex; flex-direction: column; gap: 8px; }
.inline-field { display: flex; flex-wrap: wrap; gap: 12px; }
.inline-field .input { flex: 1 1 220px; }

/* Forms */
label { font-size: 14px; color: var(--grey-200); }
.field { display: flex; flex-direction: column; gap: 8px; }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.input {
  min-height: 56px; padding: 0 18px; width: 100%;
  background: var(--grey-900); border: 1px solid var(--grey-500); border-radius: var(--radius);
  font-size: 16px; color: var(--paper); transition: border-color .15s ease;
}
.input-ink { background: var(--ink); }
.input::placeholder { color: #86868B; } /* 5:1 on ink / grey-900 */
.input:hover { border-color: var(--grey-400); }
.input:focus { outline: 2px solid var(--paper); outline-offset: 2px; border-color: var(--paper); }
.input[aria-invalid="true"] { border-color: var(--accent); }
.textarea { padding: 16px 18px; line-height: 1.5; resize: vertical; min-height: 140px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.5em; font-size: 15px; color: var(--grey-200); }
.form-status[data-state="ok"] { color: var(--paper); }
.form-status[data-state="error"] { color: #FF8A66; }

.contact-mail { margin-top: 8px; font-size: 16px; color: var(--grey-200); }
.contact-mail a { color: var(--paper); border-bottom: 1px solid var(--grey-400); }

/* Footer */
.site-footer { border-top: 1px solid var(--grey-800); color: var(--grey-400); }
.site-footer > .wrap { padding-top: 72px; padding-bottom: 40px; }
.footer-top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 48px 64px; }
.footer-brand { flex: 1 1 300px; max-width: 420px; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.footer-brand img { width: 200px; }
.footer-brand p { color: var(--grey-200); }
.footer-cols { flex: 1 1 520px; max-width: 680px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 40px 32px; }
.footer-cols nav { display: flex; flex-direction: column; align-items: flex-start; }
.footer-cols .label { font-size: 12px; margin-bottom: 6px; }
.footer-cols a { display: inline-flex; align-items: center; min-height: 44px; color: var(--paper); }
.footer-bottom { padding-top: 24px; border-top: 1px solid var(--grey-800); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; font-size: 14px; }
.back-top { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--paper); }

/* Motion */
@keyframes zx-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Responsive */
@media (max-width: 900px) {
  :root { --section-y: 88px; }
  .project-offset { margin-top: 0; }
}
@media (max-width: 760px) {
  :root { --gutter: 20px; --section-y: 64px; }
  .header-row { flex-wrap: wrap; padding-top: 16px; padding-bottom: 16px; }
  .menu-toggle { display: inline-flex; }
  .nav {
    display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 0 8px; font-size: 18px;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--grey-800); }
  .nav .btn { margin-top: 16px; min-height: 52px; }
  .hero > .wrap { padding-top: 48px; padding-bottom: 64px; }
  .stack-40 { gap: 32px; }
  .stack-64 { gap: 44px; }
  .lead-xl { font-size: 19px; }
  /* Promise row: a hairline above every item, not just the first */
  .promises { margin-top: 0; border-top: 0; }
  .promises li { padding: 18px 0; border-top: 1px solid var(--grey-800); gap: 4px; }
  .promises strong { font-size: 22px; }
  .band-group { font-size: 20px; padding: 16px; gap: 28px; }
  .card { padding: 24px; gap: 12px; }
  .card-num { font-size: 48px; margin-bottom: 4px; }
  .h3 { font-size: 26px; }
  .h3-lg { font-size: 28px; }
  .project-media { height: 280px; }
  /* Process: numeral in a left column instead of a 120px block above each step */
  .steps { gap: 36px; }
  .step { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 16px; row-gap: 8px; align-items: start; }
  .step > * { grid-column: 2; }
  .step-num { grid-column: 1; grid-row: 1 / span 3; font-size: 52px; margin: 0; -webkit-text-stroke-width: 1.25px; }
  .step-num-solid { -webkit-text-stroke-width: 0; }
  .you-get { margin-top: 4px; }
  .h1 { text-wrap: balance; }
  .price-amount { font-size: 52px; }
  /* Founders: small photo beside the name instead of a big tile above it */
  .founder { flex-wrap: nowrap; gap: 16px; }
  .founder-photo { width: 88px; height: 104px; }
  .founder-initials { font-size: 32px; }
  .founder-text { flex: 1 1 auto; min-width: 0; gap: 6px; }
  .founder-text > p:last-child { margin-top: 4px; }
  .lab-row { padding-top: 48px; padding-bottom: 48px; }
  .inline-field .btn { flex: 1 1 100%; }
  .site-footer > .wrap { padding-top: 56px; }
  .footer-brand img { width: 132px; }
  .btn-lg { width: 100%; }
  .text-link { min-height: 44px; }
  .actions { width: 100%; }
}

/* ---------- Inner pages (About, Services) ---------- */

/* Hairlines, secondary text and the small mono mark follow the surface they sit on */
:root { --rule: var(--grey-800); --soft: var(--grey-200); --mark: var(--accent); }
.paper { --rule: rgba(11, 11, 12, .18); --soft: var(--grey-700); --mark: var(--ink); }
.accent-bg { --rule: var(--ink); --soft: var(--ink); --mark: var(--ink); }

.nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 8px; }
.more-link { align-self: flex-start; min-height: 44px; font-size: 17px; }

/* Page opening */
.page-head > .wrap { padding-top: 88px; padding-bottom: 96px; }
.page-head .h1 { max-width: 15ch; text-wrap: balance; }
.page-head-row { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 40px 64px; }
.page-head-row .lead-xl { flex: 1 1 460px; }
.aside-note { flex: 0 1 420px; padding-top: 20px; border-top: 1px solid var(--rule); font-size: 17px; line-height: 1.6; color: var(--grey-400); }

/* Jump list: the services on the page */
.jump { flex: 0 1 440px; display: flex; flex-direction: column; border-top: 1px solid var(--rule); }
.jump a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px; border-bottom: 1px solid var(--rule); font-size: 20px; font-weight: 500; letter-spacing: -.01em;
}
.jump svg { flex: none; color: var(--accent); }

/* Term rows: a promise on the left, what it means on the right */
.terms { margin: 0; border-top: 1px solid var(--rule); }
.term { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 12px 64px; padding: 32px 0; border-bottom: 1px solid var(--rule); }
.term dt { font-size: 32px; line-height: 1.2; letter-spacing: -.03em; font-weight: 600; text-wrap: balance; }
.term dd { margin: 0; max-width: 60ch; font-size: 18px; line-height: 1.6; color: var(--soft); }

/* Service sections */
.service-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px 64px; align-items: start; }
.service-main { position: sticky; top: 32px; display: flex; flex-direction: column; gap: 24px; }
.service-main > p { max-width: 36ch; font-size: 20px; line-height: 1.55; color: var(--soft); text-wrap: pretty; }
.outcome { padding-top: 16px; border-top: 1px solid var(--rule); font-size: 17px; line-height: 1.5; font-weight: 500; }
.outcome span { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--mark); margin-right: .9em; }
.service-detail { display: flex; flex-direction: column; gap: 48px; }
.fits { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 32px; }
.fit { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 1px solid var(--rule); }
.fit p { color: var(--soft); }
.includes { display: flex; flex-direction: column; gap: 4px; }
.rows { font-size: 17px; color: var(--soft); }
.rows li { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.rows li:first-child { border-top: 1px solid var(--rule); margin-top: 12px; }

/* Closing call to action */
.close > .wrap { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 40px 64px; padding-top: 96px; padding-bottom: 96px; }
.close-text { flex: 1 1 520px; display: flex; flex-direction: column; gap: 20px; }
.close-text p { max-width: 52ch; font-size: 18px; line-height: 1.6; }
.close-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.close-actions p { font-size: 16px; }
.close-actions p a { border-bottom: 1px solid currentColor; }

@media (max-width: 900px) {
  .service-grid { grid-template-columns: minmax(0, 1fr); }
  .service-main { position: static; }
  .service-main > p { max-width: 52ch; }
}
@media (max-width: 760px) {
  .page-head > .wrap { padding-top: 48px; padding-bottom: 64px; }
  .term { grid-template-columns: minmax(0, 1fr); padding: 24px 0; }
  .term dt { font-size: 24px; }
  .term dd { font-size: 17px; }
  .jump a { min-height: 56px; font-size: 18px; }
  .service-main > p { font-size: 18px; }
  .service-detail { gap: 36px; }
  .close > .wrap { padding-top: 64px; padding-bottom: 64px; }
  .close-actions { width: 100%; }
}
