/* ===================================================
   series a labs — design tokens
=================================================== */
:root {
  --cream: #f4f1eb;
  --cream-line: #ddd8cc;
  --ink: #0a0a0a;
  --ink-soft: #4a4a48;
  --orange: #f95822;
  --dark-bg: #121212;
  --dark-line: #333331;
  --dark-muted: #a8a8a5;
  --navy: #24353e;

  --font-display: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

  --max-width: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

section[id], [id="contact"] { scroll-margin-top: 76px; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
}

h1 { font-size: 66px; }
h2 { font-size: 46px; }

p { margin: 0; font-weight: 400; }

.orange { color: var(--orange); }
.orange-text { color: var(--orange); }
.underline { text-decoration: underline; text-underline-offset: 3px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.section-sub {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-top: 16px;
}

.no-wrap {
  white-space: nowrap;
}

.section-sub.no-wrap {
  max-width: none;
}

/* ===================================================
   Buttons
=================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 22px;
  border-radius: 3px;
  white-space: nowrap;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn:hover { transform: translateY(-1px); opacity: 0.92; }
.btn .arrow { font-size: 15px; line-height: 1; }

.btn-orange {
  background: var(--orange);
  color: var(--ink);
}

.site-header .btn-orange { color: var(--cream); }

.btn-dark {
  background: var(--ink);
  color: var(--cream);
}

/* ===================================================
   Header
=================================================== */
.site-header {
  border-bottom: 1px solid var(--cream-line);
  position: sticky;
  top: 0;
  background: var(--cream);
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.logo-mark { width: 20px; height: 20px; }


/* ===================================================
   Hero
=================================================== */
.hero {
  padding: 88px 0 96px;
  border-bottom: 1px solid var(--cream-line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero-copy h1 {
  line-height: 1.05;
  margin-bottom: 22px;
}

.hero-copy .lede {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 32px;
}

.hero-art {
  width: 100%;
  height: auto;
  display: block;
}

/* ===================================================
   Generic section spacing
=================================================== */
.section { padding: 96px 0; }

/* ===================================================
   What we do — cards
=================================================== */
.what-we-do h2 { margin-bottom: 6px; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 48px;
  border: 1px solid var(--cream-line);
  border-radius: 2px;
}

.card {
  padding: 36px 32px;
  border-left: 1px solid var(--cream-line);
}
.card:first-child { border-left: none; }

.card-icon {
  width: 55px;
  height: auto;
  margin-bottom: 22px;
}

.card h3 {
  font-size: 21px;
  margin-bottom: 10px;
}

.card-tagline {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 10px;
}

.card-body {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 34px;
}

.card-index {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-soft);
}

.card-index .index-line {
  flex: 1;
  height: 1px;
  background: var(--cream-line);
}

.card-index .arrow {
  color: var(--orange);
  font-weight: 700;
}

/* ===================================================
   How we work — dark section
=================================================== */
.how-we-work {
  background: var(--dark-bg);
  color: var(--cream);
}

.on-dark { color: var(--cream); }
.on-dark-muted {
  color: var(--dark-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  line-height: 1.6;
}

.how-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 64px;
}


.how-callout {
  text-align: left;
  flex-shrink: 0;
}

.how-callout .on-dark-muted {
  text-transform: uppercase;
  margin-bottom: 10px;
}

.how-callout .mini-arrow {
  width: 16px;
  height: 16px;
  margin-left: 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

.step-number {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--orange);
  border: 1px solid var(--orange);
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  flex-shrink: 0;
}

.step-line {
  position: relative;
  flex: 1;
  height: 1px;
  margin-right: 5px;
  background: repeating-linear-gradient(
    to right,
    var(--orange) 0,
    var(--orange) 6px,
    transparent 6px,
    transparent 11px
  );
}

.step-line::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-top: 1.5px solid var(--orange);
  border-right: 1.5px solid var(--orange);
  transform: translateY(-50%) rotate(45deg);
}

.step-line.short {
  background: var(--orange);
  margin-right: 0;
}

.step-line.short::after { display: none; }

.step h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.step p { font-size: 14px; max-width: 32ch; }

.how-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 80px;
  gap: 24px;
}

.plus-caption {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.7;
}

.plus-caption .plus {
  color: var(--orange);
  margin-right: 4px;
}

.plus-note {
  display: flex;
  align-items: center;
  gap: 18px;
}

.plus-note .plus-big {
  color: var(--dark-muted);
  font-size: 34px;
  font-weight: 300;
  line-height: 1;
}

.plus-note p {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.7;
}

.plus-grid {
  display: grid;
  grid-template-columns: repeat(5, 16px);
  grid-template-rows: repeat(2, 16px);
  gap: 8px;
  color: var(--orange);
  opacity: 0.5;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1;
}

.plus-grid span { text-align: center; }

/* ===================================================
   Who it's for
=================================================== */
.who-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: end;
  margin-top: 8px;
}

.who-its-for h2 {
  line-height: 1.15;
  margin-bottom: 4px;
}

.who-its-for .section-sub + .section-sub { margin-top: 18px; }

.who-visual {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 22px;
}

.who-boxes {
  display: flex;
  align-items: center;
  gap: 14px;
}

.who-box {
  border: 1px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: 18px 20px;
  line-height: 1.6;
  min-width: 108px;
}

.who-boxes .who-arrow {
  width: 36px;
  height: auto;
  flex-shrink: 0;
}

.who-visual .plus-note {
  align-self: flex-start;
  text-align: left;
}

.plus-note-light .plus-big { color: var(--ink-soft); }
.plus-note-light p { color: var(--ink-soft); }

/* ===================================================
   CTA band
=================================================== */
.cta {
  background: var(--orange);
  background-image:
    linear-gradient(to right, rgba(0,0,0,0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,0,0,0.06) 1px, transparent 1px);
  background-size: 34px 34px;
  color: var(--ink);
  position: relative;
  overflow: hidden;
}

.cta-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  padding-top: 68px;
  padding-bottom: 68px;
}

.cta-corner-arrow {
  position: absolute;
  top: 40px;
  right: 32px;
  width: 26px;
  height: 26px;
}

.cta-cross {
  position: absolute;
  bottom: 24px;
  width: 22px;
  height: 22px;
}

.cta-cross-left { left: 32px; }
.cta-cross-right { right: 32px; }

.cta-cross::before,
.cta-cross::after {
  content: "";
  position: absolute;
  background: rgba(10, 10, 10, 0.55);
}

.cta-cross::before {
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
}

.cta-cross::after {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
}

.cta-copy h2 {
  margin-bottom: 14px;
}

.on-cta-muted {
  font-size: 16px;
  color: rgba(10,10,10,0.72);
  margin-bottom: 28px;
}

.cta-list {
  list-style: none;
  margin: 0;
  padding: 0 0 0 18px;
  border-left: 1px solid rgba(10,10,10,0.35);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 2;
  align-self: center;
}

/* ===================================================
   Contact modal
=================================================== */
.contact-modal {
  border: none;
  padding: 0;
  background: transparent;
  max-width: none;
}

.contact-modal::backdrop {
  background: rgba(10, 10, 10, 0.55);
}

.modal-inner {
  position: relative;
  width: min(460px, calc(100vw - 40px));
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  background: var(--cream);
  border: 1px solid var(--ink);
  border-radius: 3px;
  padding: 36px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: var(--ink-soft);
  cursor: pointer;
}

.modal-close:hover { color: var(--ink); }

.modal-title {
  font-size: 24px;
  margin-bottom: 22px;
}

.field {
  display: block;
  margin-bottom: 16px;
}

.field-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.field input,
.field textarea {
  width: 100%;
  padding: 11px 12px;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--ink);
  background: #fdfcf9;
  border: 1px solid var(--ink);
  border-radius: 2px;
}

.field textarea { resize: vertical; }

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--orange);
  outline-offset: -1px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.form-error {
  color: #b3300f;
  font-size: 14px;
  margin-bottom: 14px;
}

.btn-submit { width: 100%; justify-content: center; }
.btn-submit:disabled { opacity: 0.6; cursor: default; }

.form-success { padding: 12px 0; }
.form-success .mini-arrow { width: 26px; height: 26px; margin-bottom: 16px; }
.form-success h3 { font-size: 22px; margin-bottom: 8px; }
.form-success p { color: var(--ink-soft); font-size: 15px; }

/* ===================================================
   Footer
=================================================== */
.site-footer { padding: 40px 0; }

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-tagline,
.footer-copyright {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ===================================================
   Responsive
=================================================== */
@media (max-width: 980px) {
  .no-wrap { white-space: normal; }
  .section-sub.no-wrap { max-width: 46ch; }
}

@media (max-width: 900px) {
  .hero-grid,
  .who-grid { grid-template-columns: 1fr; }
  .who-visual { align-items: flex-start; }
  .cards { grid-template-columns: 1fr; }
  .card { border-left: none; border-top: 1px solid var(--cream-line); }
  .card:first-child { border-top: none; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .how-heading-row { flex-direction: column; }
  .how-callout { text-align: left; }
  .how-callout .mini-arrow { margin-left: 0; }
  .how-footer-row { flex-direction: column; align-items: flex-start; gap: 32px; }
  .cta-inner { grid-template-columns: 1fr; }
  .cta-list { border-left: none; padding-left: 0; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 640px) {
  .hero-copy h1 { font-size: 38px; }
  .what-we-do h2,
  .how-we-work h2,
  .who-its-for h2 { font-size: 30px; }
  .cta-copy h2 { font-size: 26px; }
}
