/* Devhouse · Signal
   Graphite, greys and one flat green. Flat surfaces, 1px lines, no shadows.
   Layout: one column of full-width sections on a 40px grid that the background canvas draws. */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/assets/fonts/geist-mono-var-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #121412;
  --surface: #171a17;
  --line: #272c27;
  --line-strong: #3a413a;
  --muted: #9ea79d;
  --text: #f2f4f0;
  --green: #5dbb2f;
  --ink: #0d100c;

  --sans: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 128px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  color: var(--text);
  font: 400 17px/1.6 var(--sans);
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3, p, figure, blockquote, ol, ul { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
::selection { background: var(--green); color: var(--ink); }

#signal { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; pointer-events: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }

.skip { position: absolute; left: 12px; top: -48px; z-index: 20; background: var(--green); color: var(--ink); padding: 10px 14px; font: 600 14px/1 var(--sans); text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- type helpers ---------- */
.eyebrow, .tag, .meta, .num { font-family: var(--mono); font-weight: 500; text-transform: uppercase; letter-spacing: .08em; }
.eyebrow { font-size: 12.5px; color: var(--green); }
.tag { font-size: 11.5px; color: var(--muted); }
h1, h2 { font-family: var(--sans); font-weight: 800; font-stretch: 118%; text-transform: uppercase; letter-spacing: -.005em; }
h1 { font-size: clamp(34px, 7.4vw, 96px); line-height: .96; }
h2 { font-size: clamp(28px, 4.6vw, 56px); line-height: 1; }
h1 em, h2 em { font-style: normal; color: var(--green); }
h3 { font-weight: 700; font-stretch: 108%; font-size: 18px; line-height: 1.25; letter-spacing: .005em; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 22px; font: 700 13.5px/1 var(--sans); font-stretch: 110%; letter-spacing: .07em; text-transform: uppercase; text-decoration: none; border: 1px solid transparent; border-radius: 2px; transition: background-color .15s, color .15s, border-color .15s; }
.btn-sm { height: 38px; padding: 0 14px; font-size: 12px; }
.btn-solid { background: var(--green); color: var(--ink); }
.btn-solid:hover { background: var(--text); }
.btn-line { border-color: var(--line-strong); color: var(--text); }
.btn-line:hover { border-color: var(--text); }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo svg { width: 20px; height: 24px; fill: var(--green); flex: none; }
.logo span { font-weight: 800; font-stretch: 125%; font-size: 15px; letter-spacing: .05em; text-transform: uppercase; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { font: 500 12.5px/1 var(--sans); font-stretch: 110%; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); text-decoration: none; padding: 8px 0; }
.nav a:hover { color: var(--text); }

/* ---------- hero ---------- */
.hero-in { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(240px, 1fr); gap: 30px 48px; padding-block: clamp(56px, 9vw, 120px) clamp(56px, 8vw, 104px); }
.hero-title { grid-column: 1 / -1; display: grid; gap: 26px; min-width: 0; }
.hero-copy { display: grid; gap: 26px; align-content: start; min-width: 0; }
.lede { font-size: clamp(17px, 1.6vw, 19.5px); line-height: 1.6; color: #b4bcb3; max-width: 60ch; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 6px; }
.meta { font-size: 12px; color: #7d867c; }
.zone { position: relative; min-height: 280px; }

/* ---------- facts ---------- */
.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg); }
.facts-in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.facts-in > div { display: grid; gap: 6px; align-content: start; padding: 26px 24px 26px 0; min-width: 0; }
.facts-in > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.facts b { font-weight: 800; font-stretch: 118%; font-size: clamp(26px, 3vw, 36px); line-height: 1; font-variant-numeric: tabular-nums; }
.facts span { color: var(--muted); font-size: 14.5px; line-height: 1.45; }

/* ---------- sections ---------- */
.section { padding-block: var(--section) 0; }
.sec-head { position: relative; display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 56px); max-width: 900px; }
.sec-lede { color: var(--muted); max-width: 62ch; }
.cards { display: grid; gap: 0; }
.svc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 32px; row-gap: 18px; }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

.svc { display: grid; gap: 12px; align-content: start; padding: 22px 0 34px; border-top: 2px solid var(--green); min-width: 0; }
.svc + .svc { }
.svc p { color: var(--muted); font-size: 15.5px; }

.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.steps li { display: grid; gap: 12px; align-content: start; padding: 26px 24px 8px 0; min-width: 0; }
.steps li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.num { font-size: 13px; color: var(--green); }
.steps h3 { font-size: 22px; font-weight: 800; font-stretch: 118%; text-transform: uppercase; }
.steps p { color: var(--muted); font-size: 15.5px; }

.egg-row { position: relative; height: 40px; }
.egg { position: absolute; display: block; width: calc(var(--len) * 20px); height: 20px; pointer-events: none; }
/* easter-egg anchors: where the hidden words sit (width = letters x 20px) */
.egg-devhouse { --len:8; left:0; bottom:0; }
.egg-agents-at-work { --len:14; right:0; top:4px; }
.egg-human-in-the-loop { --len:17; right:0; top:4px; }
.egg-least-privilege { --len:15; left:0; top:0; }
.egg-we-run-what-we-build { --len:20; right:0; top:4px; }
.egg-since-2014 { --len:10; right:0; top:4px; }
.egg-200-ok { --len:6; right:0; top:0; }
.egg-sudo-hire-devhouse { --len:18; left:0; bottom:-36px; }
.egg-say-hello { --len:9; right:0; top:0; }


.product { display: grid; gap: 14px; align-content: start; padding: 28px; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.product h3 { font-size: clamp(26px, 3vw, 34px); font-weight: 800; font-stretch: 118%; text-transform: uppercase; line-height: 1; }
.product p { color: #b0b8af; }
.ext { font: 500 13px/1 var(--mono); color: var(--green); text-decoration: none; letter-spacing: .02em; justify-self: start; padding-top: 6px; }
a.ext:hover { text-decoration: underline; text-underline-offset: 4px; }

.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 32px; padding: 32px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 16px; }
.feature-brand { display: grid; gap: 14px; align-content: start; }
.feature-brand img { width: 240px; }
.feature-copy { display: grid; gap: 18px; align-content: start; min-width: 0; }
.feature-copy p { color: #b0b8af; max-width: 62ch; }
.feature-stats { display: flex; flex-wrap: wrap; gap: 40px; }
.feature-stats div { display: grid; gap: 4px; }
.feature-stats b { font-weight: 800; font-stretch: 118%; font-size: 28px; line-height: 1; font-variant-numeric: tabular-nums; }
.feature-stats span { color: var(--muted); font-size: 14px; }

.work { border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.job { position: relative; display: grid; gap: 10px; align-content: start; padding: 22px 48px 26px 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; background: var(--bg); min-width: 0; transition: background-color .15s; }
.job:hover { background: var(--surface); }
.job h3 { font-size: 17px; font-weight: 800; font-stretch: 112%; text-transform: uppercase; }
.job p { color: var(--muted); font-size: 15px; }
.job .ext { position: absolute; right: 20px; top: 22px; padding: 0; }


/* crew row in the hero */
.crew { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 4px; }
.crew-faces { display: flex; }
.crew-faces img { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--bg); background: var(--surface); }
.crew-faces img + img { margin-left: -10px; }
.crew p { font-size: 15px; color: var(--muted); max-width: 46ch; line-height: 1.45; }
.crew b { color: var(--text); font-weight: 600; }

.where { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.where li { font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text); border: 1px solid var(--line-strong); padding: 9px 12px; border-radius: 2px; }

/* product care plans */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.plan { display: grid; grid-template-rows: auto 1fr; gap: 20px; padding: 26px; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.plan-main { border-color: var(--green); }
.plan-top { display: grid; gap: 8px; }
.plan h3 { font-size: 22px; font-weight: 800; font-stretch: 118%; text-transform: uppercase; }
.price { display: flex; align-items: baseline; gap: 8px; }
.price b { font-weight: 800; font-stretch: 112%; font-size: 34px; line-height: 1; font-variant-numeric: tabular-nums; color: var(--green); }
.price span { color: var(--muted); font-size: 14px; }
.plan-for { color: var(--muted); font-size: 15px; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; align-content: start; border-top: 1px solid var(--line); padding-top: 18px; }
.plan li { position: relative; padding-left: 20px; font-size: 15px; color: #c8cfc6; }
.plan li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; background: var(--green); }
.plans-note { margin-top: 18px; color: var(--muted); font-size: 15px; max-width: 78ch; }
.plans-note b { color: var(--text); font-weight: 600; }
.egg-rollback-ready { --len: 14; right: 0; top: 4px; }

/* team block */
.team { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 48px; align-items: center; }
.team-copy { position: relative; display: grid; gap: 18px; align-content: start; min-width: 0; }
.team-photo { display: grid; gap: 10px; min-width: 0; }
.team-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border: 1px solid var(--line); background: var(--surface); }
.team-photo figcaption, .cameo figcaption { font: 500 11.5px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* people cameos beside section headings */
.has-cameo { position: relative; }
.cameo { position: absolute; right: max(var(--gutter), env(safe-area-inset-right, 0px)); top: 0; width: 210px; display: grid; gap: 10px; z-index: 1; }
.cameo img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--line); background: var(--surface); transition: border-color .15s; }
.cameo:hover img { border-color: var(--green); }
@media (min-width: 1101px) { .has-cameo .sec-head { max-width: min(900px, calc(100% - 260px)); min-height: 262px; align-content: start; } }

/* contact person */
.contact-person { display: flex; align-items: center; gap: 14px; }
.contact-person img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid var(--green); }
.contact-person p { display: grid; gap: 2px; }
.contact-person b { font-weight: 800; font-stretch: 112%; text-transform: uppercase; font-size: 15px; }
.contact-person span { color: var(--muted); font-size: 14px; }

/* testimonials */
.quote { display: grid; gap: 20px; align-content: space-between; padding: 26px; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.quote blockquote { font-size: 17px; line-height: 1.55; color: #d6dcd4; }
.quote figcaption { display: flex; align-items: center; gap: 12px; }
.quote figcaption > span:last-child { display: grid; gap: 2px; }
.quote figcaption b { font-weight: 700; font-size: 15px; }
.quote figcaption b + span { color: var(--muted); font-size: 14px; }
.face { flex: none; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; filter: grayscale(1) contrast(1.05); border: 1px solid var(--line-strong); }
.quote-lead { margin-bottom: 16px; border-color: var(--line-strong); }
.quote-lead blockquote { font-size: clamp(20px, 2.4vw, 28px); line-height: 1.4; color: var(--text); font-stretch: 100%; max-width: 62ch; }
.quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

.contact { padding-block: calc(var(--section) + 40px) var(--section); }
.contact-in { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(220px, 1fr); gap: 40px; }
.contact-in > div:first-child { display: grid; gap: 22px; align-content: start; min-width: 0; }
.mail { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding-top: 8px; }
.mail a { font: 500 clamp(20px, 3.4vw, 34px)/1.2 var(--mono); color: var(--green); text-decoration: none; word-break: break-all; }
.mail a:hover { text-decoration: underline; text-underline-offset: 6px; }
.copy { font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text); background: transparent; border: 1px solid var(--line-strong); height: 34px; padding: 0 12px; border-radius: 2px; cursor: pointer; }
.copy:hover { border-color: var(--text); }
.zone-contact { min-height: 300px; }

.foot { border-top: 1px solid var(--line); background: var(--bg); }
.foot-in { display: flex; flex-wrap: wrap; gap: 8px 28px; padding-block: 24px 28px; font: 500 12px/1.4 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: #7d867c; }
.found { margin-left: auto; }
.found b { color: var(--green); font-weight: 500; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .nav { gap: 18px; }
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .steps li:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 8px; }
  .cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .cameo { position: static; width: auto; display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
  .cameo img { width: 72px; flex: none; border-radius: 50%; }
}
@media (max-width: 860px) {
  .plans { grid-template-columns: minmax(0, 1fr); }
  .team { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .nav { display: none; }
  .top-in .btn { margin-left: auto; }
  .hero-in, .contact-in { grid-template-columns: minmax(0, 1fr); }
  .zone { display: none; }
  .facts-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts-in > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts-in > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .cards-2 { grid-template-columns: minmax(0, 1fr); }
  .feature { grid-template-columns: minmax(0, 1fr); padding: 24px; }
  .quotes { grid-template-columns: minmax(0, 1fr); }
  .egg-row, .egg { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .quote { padding: 20px; }
  h1 { font-stretch: 108%; }
  h2 { font-stretch: 108%; }
  .svc-grid, .cards-3, .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 8px; }
  .facts-in > div { padding: 20px 14px 20px 0; }
  .facts-in > div:nth-child(2n) { padding-left: 14px; }
  .product { padding: 22px; }
  .found { margin-left: 0; }
}

/* ---------- agent chat ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.agent-line { color: var(--muted); font-size: 15px; max-width: 60ch; }
.agent-line a { color: var(--green); }
.chat-launch { position: fixed; z-index: 30; right: max(20px, env(safe-area-inset-right, 0px)); bottom: max(20px, env(safe-area-inset-bottom, 0px)); display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 18px 0 16px; background: var(--green); color: var(--ink); border: 0; border-radius: 2px; font: 700 13px/1 var(--sans); font-stretch: 110%; letter-spacing: .07em; text-transform: uppercase; cursor: pointer; }
.chat-launch svg { width: 15px; height: 18px; fill: var(--ink); }
.chat-launch:hover { background: var(--text); }
.chat-open .chat-launch { display: none; }
.chat { position: fixed; z-index: 31; right: max(20px, env(safe-area-inset-right, 0px)); bottom: max(20px, env(safe-area-inset-bottom, 0px)); width: min(400px, calc(100vw - 32px)); height: min(600px, calc(100vh - 100px)); display: grid; grid-template-rows: auto 1fr auto auto auto; background: var(--bg); border: 1px solid var(--green); }
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.chat-head div { display: grid; gap: 2px; }
.chat-head b { font-weight: 800; font-stretch: 115%; text-transform: uppercase; font-size: 14px; letter-spacing: .03em; }
.chat-head span { font: 500 11px/1.3 var(--mono); color: var(--muted); letter-spacing: .05em; text-transform: uppercase; }
.chat-close { background: transparent; border: 1px solid var(--line-strong); color: var(--text); width: 32px; height: 32px; font-size: 20px; line-height: 1; cursor: pointer; border-radius: 2px; }
.chat-log { overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.msg { max-width: 88%; padding: 10px 12px; font-size: 15px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg-agent { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); }
.msg-user { align-self: flex-end; background: var(--green); color: var(--ink); }
.msg-note { border-color: var(--line-strong); color: var(--muted); font-size: 14px; }
.msg-typing { color: var(--muted); letter-spacing: .2em; }
.chat-check:empty { display: none; }
.chat-check { padding: 0 16px 8px; }
.chat-form { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); }
.chat-form textarea { flex: 1; min-width: 0; resize: none; max-height: 120px; background: var(--surface); color: var(--text); border: 1px solid var(--line-strong); border-radius: 2px; padding: 9px 10px; font: 400 15px/1.4 var(--sans); }
.chat-form textarea:focus { outline: 2px solid var(--green); outline-offset: 0; border-color: transparent; }
.chat-form .btn { flex: none; height: 40px; }
.chat-form .btn:disabled { opacity: .5; cursor: default; }
.chat-note { padding: 0 16px 12px; font-size: 12px; line-height: 1.45; color: #7d867c; }
.chat-note a { color: var(--muted); }
@media (max-width: 560px) {
  .chat { right: 0; bottom: 0; width: 100vw; height: 100dvh; border: 0; padding-top: env(safe-area-inset-top, 0px); }
  .chat-launch { right: 16px; bottom: 16px; height: 44px; }
  .chat-launch span { font-size: 12px; }
}
