/* Digital Developments Agency
   Ink neutral ramp, one cyan accent taken from the logo, Geist + Geist Mono.
   Spacing on a 4px grid. One easing curve. */

:root {
  --bg-deep: #07080d;
  --bg: #0b0d14;
  --card: #11141c;
  --raised: #1a1e28;
  --raised-2: #222736;
  --line: rgba(238, 240, 245, 0.08);
  --line-strong: rgba(238, 240, 245, 0.14);
  --text: #eef0f5;
  --text-2: #a3a9b8;
  --text-3: #7a8296;
  --accent: #3cc8f5;
  --accent-ink: #04202b;
  --positive: #4cc38a;

  --font: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --fast: 160ms;
  --mid: 200ms;
  --slow: 420ms;

  --container: 1200px;
  --gutter: 32px;
  --header-h: 64px;
  --r-sm: 6px;
  --r-control: 10px;
  --r-card: 16px;
  --r-panel: 20px;
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3 { font-weight: 500; }
h1 { font-size: 56px; line-height: 1.06; letter-spacing: -0.03em; text-wrap: balance; }
h2 { font-size: 40px; line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
h3, .h3 { font-size: 18px; line-height: 1.35; font-weight: 500; letter-spacing: 0; }

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  padding: 8px 16px; border-radius: var(--r-control);
  background: var(--text); color: var(--bg); font-size: 14px; font-weight: 500;
  transition: top var(--fast) var(--ease);
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Buttons and links ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 20px;
  border-radius: var(--r-control); border: 1px solid transparent;
  font-size: 15px; font-weight: 500; line-height: 1; white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--fast) var(--ease), border-color var(--fast) var(--ease), color var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn .icon { transition: transform var(--fast) var(--ease); }
.btn:hover .icon { transform: translateX(2px); }
.btn-primary {
  background: var(--text); color: var(--bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn-primary:hover { background: #ffffff; }
.btn-secondary { background: var(--raised); border-color: var(--line); color: var(--text); }
.btn-secondary:hover { background: var(--raised-2); border-color: var(--line-strong); }
.btn-ghost { color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--raised); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 500; color: var(--text);
  transition: color var(--fast) var(--ease);
}
.text-link .icon { color: var(--text-3); transition: transform var(--fast) var(--ease), color var(--fast) var(--ease); }
.text-link:hover { color: var(--accent); }
.text-link:hover .icon { transform: translateX(2px); color: var(--accent); }

.inline-link {
  color: var(--text);
  text-decoration: underline; text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--fast) var(--ease), color var(--fast) var(--ease);
}
.inline-link:hover { color: var(--accent); text-decoration-color: var(--accent); }

.eyebrow {
  font-size: 14px; line-height: 20px; color: var(--accent);
  margin-bottom: 16px;
}
.lead { font-size: 19px; line-height: 30px; color: var(--text-2); max-width: 36rem; }
.lead-sm { font-size: 16px; line-height: 26px; color: var(--text-2); }
.body-text { font-size: 16px; line-height: 26px; color: var(--text-2); margin-top: 16px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 13, 20, 0.86);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--mid) var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex; align-items: center; gap: 32px;
  height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand-name { font-size: 16px; font-weight: 500; letter-spacing: -0.01em; }

.main-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-list > li > a {
  display: inline-flex; align-items: center; height: 36px; padding: 0 12px;
  border-radius: 8px; font-size: 14px; color: var(--text-2);
  transition: color var(--fast) var(--ease), background-color var(--fast) var(--ease);
}
.nav-list > li > a:hover { color: var(--text); background: var(--raised); }
.nav-list > li > a[aria-current='page'] { color: var(--text); }

.has-menu { position: relative; display: flex; align-items: center; }
.has-menu > a { padding-right: 4px !important; }
.menu-button {
  display: inline-grid; place-items: center; width: 24px; height: 36px;
  padding: 0; border: 0; background: none; color: var(--text-3); cursor: pointer;
  border-radius: 6px;
}
.menu-button .icon { transition: transform var(--mid) var(--ease); }
.has-menu.is-open .menu-button .icon,
.has-menu:hover .menu-button .icon { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 8px); left: -16px;
  width: 400px; padding: 8px;
  background: var(--card); border: 1px solid var(--line-strong);
  border-radius: var(--r-card);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity var(--mid) var(--ease), transform var(--mid) var(--ease), visibility 0s linear var(--mid);
}
.dropdown::before { content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.has-menu:hover .dropdown,
.has-menu:focus-within .dropdown,
.has-menu.is-open .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
  transition: opacity var(--mid) var(--ease), transform var(--mid) var(--ease), visibility 0s;
}
.has-menu.is-closed .dropdown { opacity: 0; visibility: hidden; }

.menu-item {
  display: flex; gap: 12px; padding: 12px; border-radius: 8px;
  transition: background-color var(--fast) var(--ease);
}
.menu-item:hover, .menu-item[aria-current='page'] { background: var(--raised); }
.menu-icon {
  display: grid; place-items: center; flex-shrink: 0;
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--raised); border: 1px solid var(--line); color: var(--text-2);
}
.menu-item:hover .menu-icon { color: var(--accent); }
.menu-title { display: block; font-size: 14px; font-weight: 500; line-height: 20px; }
.menu-desc { display: block; font-size: 13px; line-height: 18px; color: var(--text-3); margin-top: 2px; }

.nav-toggle {
  display: none; margin-left: auto;
  width: 40px; height: 40px; padding: 0; place-items: center;
  border: 1px solid var(--line); border-radius: var(--r-control);
  background: var(--raised); cursor: pointer;
}
.nav-toggle .nav-toggle-open { display: grid; place-items: center; }
.nav-toggle .nav-toggle-close { display: none; place-items: center; }
.nav-toggle[aria-expanded='true'] .nav-toggle-open { display: none; }
.nav-toggle[aria-expanded='true'] .nav-toggle-close { display: grid; }

.mobile-nav { display: none; }

/* ---------- Hero ---------- */

.hero { padding: 96px 0 80px; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 64px; align-items: center;
}
.hero-copy h1 { max-width: 13ch; }
.hero-copy .lead { margin-top: 24px; }
.hero-copy .actions { margin-top: 40px; }

/* Hero product view: one browser window showing a client site */
.hero-visual { position: relative; margin: 0; }

.window {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 32px 64px rgba(0, 0, 0, 0.45);
}
.window-bar {
  display: flex; align-items: center; gap: 12px;
  height: 36px; padding: 0 12px;
  border-bottom: 1px solid var(--line);
  background: #151821;
}
.window-dots { display: flex; gap: 6px; }
.window-dots i { width: 10px; height: 10px; border-radius: 50%; background: #2a2f3c; }
.window-url {
  display: inline-flex; align-items: center; gap: 6px;
  margin-inline: auto; padding: 0 12px; height: 22px; border-radius: 6px;
  background: #0f1117; font-family: var(--mono); font-size: 12px; color: var(--text-2);
}
.window-url .icon { color: var(--text-3); }
.window-spacer { width: 42px; }

/* The client site is light, so it reads as someone else's product */
.mock-site { background: #fbfaf7; color: #1c1d22; padding: 16px 24px 24px; }
.mock-nav {
  display: flex; align-items: center; gap: 20px;
  padding-bottom: 16px; border-bottom: 1px solid #ecebe6; font-size: 12px;
}
.mock-logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13px; }
.mock-logo-mark { width: 16px; height: 16px; border-radius: 4px; background: #1f5f5b; }
.mock-links { display: flex; gap: 16px; color: #5c5f68; margin-left: auto; }
.mock-cta { padding: 6px 12px; border-radius: 6px; background: #1f5f5b; color: #fff; font-weight: 500; }

.mock-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; align-items: center; }
.mock-eyebrow { font-size: 11px; color: #1f5f5b; font-weight: 500; }
.mock-title { font-size: 26px; line-height: 1.1; letter-spacing: -0.02em; font-weight: 500; margin-top: 8px; }
.mock-text { font-size: 12px; line-height: 18px; color: #5c5f68; margin-top: 12px; }
.mock-actions { display: flex; gap: 8px; margin-top: 16px; }
.mock-btn, .mock-btn-ghost {
  display: inline-flex; align-items: center; height: 28px; padding: 0 12px;
  border-radius: 6px; font-size: 11px; font-weight: 500;
}
.mock-btn { background: #1c1d22; color: #fff; }
.mock-btn-ghost { border: 1px solid #dcdad3; color: #1c1d22; }
.mock-reviews { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 11px; color: #5c5f68; }
.stars { color: #c98a14; letter-spacing: 1px; }

.mock-photo { position: relative; border-radius: 10px; overflow: hidden; }
.mock-photo img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }
.mock-slot {
  position: absolute; left: 10px; bottom: 10px;
  display: flex; flex-direction: column; gap: 2px;
  padding: 8px 12px; border-radius: 8px;
  background: #ffffff; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.mock-slot-label { font-size: 11px; color: #7a7d86; }
.mock-slot-time { font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }

.mock-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  margin-top: 24px; border-top: 1px solid #ecebe6;
}
.mock-cards div { display: flex; flex-direction: column; gap: 2px; padding: 12px 0 0; }
.mock-cards div + div { padding-left: 16px; border-left: 1px solid #ecebe6; margin-top: 12px; padding-top: 0; }
.mock-cards div:first-child { margin-top: 12px; padding-top: 0; }
.mock-card-title { font-size: 12px; font-weight: 500; }
.mock-card-text { font-size: 11px; color: #7a7d86; }

/* Signature: the deploy line under the window */
.deploy-line {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  margin-top: 16px; padding-left: 4px;
  font-family: var(--mono); font-size: 12px; color: var(--text-2);
  font-variant-numeric: tabular-nums;
}
.deploy-line .sep { color: var(--text-3); }
.live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--positive);
  box-shadow: 0 0 0 3px rgba(76, 195, 138, 0.16);
}

/* ---------- Service strip ---------- */

.strip { border-block: 1px solid var(--line); background: var(--bg-deep); }
.strip-list { display: grid; grid-template-columns: repeat(5, 1fr); }
.strip-list li + li { border-left: 1px solid var(--line); }
.strip-item {
  display: flex; align-items: center; gap: 12px;
  height: 80px; padding: 0 24px;
  font-size: 15px; color: var(--text-2);
  transition: color var(--fast) var(--ease), background-color var(--fast) var(--ease);
}
.strip-item .icon { color: var(--text-3); flex-shrink: 0; transition: color var(--fast) var(--ease); }
.strip-item:hover { color: var(--text); background: var(--card); }
.strip-item:hover .icon { color: var(--accent); }

/* ---------- Hero backdrop: the brand cover, ghosted behind the hero ---------- */

.hero { position: relative; isolation: isolate; }
.hero-backdrop { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.hero-backdrop img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 40%;
  opacity: 0.75;
  filter: blur(36px) saturate(1.15);
  transform: scale(1.15);
}
/* Darken the text side and fade the bottom edge into the page */
.hero-backdrop::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 13, 20, 0.92) 0%, rgba(11, 13, 20, 0.78) 36%, rgba(11, 13, 20, 0.35) 70%, rgba(11, 13, 20, 0.2) 100%),
    linear-gradient(180deg, rgba(11, 13, 20, 0.5) 0%, rgba(11, 13, 20, 0) 30%, rgba(11, 13, 20, 0) 70%, var(--bg) 100%);
}

.footer-logo { display: inline-block; border-radius: 50%; }
.footer-logo img { width: 120px; height: 120px; border-radius: 50%; }
.notfound-logo { width: 96px; height: 96px; border-radius: 50%; margin-bottom: 32px; }

/* ---------- Sections ---------- */

.section { padding: 112px 0; }
.section-tight { padding: 48px 0 112px; }
.section-raised { background: var(--bg-deep); border-block: 1px solid var(--line); }

.section-head { max-width: 720px; margin-bottom: 64px; }
.section-head-row {
  max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
}
.section-lead { font-size: 18px; line-height: 28px; color: var(--text-2); margin-top: 16px; max-width: 36rem; }

/* Service rows */
.service-rows { display: flex; flex-direction: column; gap: 96px; }
.service-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.service-row.is-flipped .service-row-media { order: 2; }
.service-row-media, .split-media, .page-hero-media {
  border-radius: var(--r-panel); overflow: hidden;
  border: 1px solid var(--line); background: var(--card);
}
.service-row-media img, .split-media img, .page-hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.service-row-copy .eyebrow { color: var(--text-3); margin-bottom: 12px; }
.service-row-copy h3 { font-size: 32px; line-height: 1.15; letter-spacing: -0.02em; }
.service-row-copy .lead-sm { margin-top: 16px; }
.service-row-copy .text-link { margin-top: 32px; }

.ticks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; margin-top: 24px; }
.ticks li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 22px; color: var(--text); }
.ticks .icon { flex-shrink: 0; margin-top: 3px; color: var(--accent); }
.ticks-lg { grid-template-columns: 1fr; gap: 16px; margin-top: 32px; }

/* Work */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.work-card {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden;
  transition: border-color var(--fast) var(--ease);
}
.work-card:hover { border-color: var(--line-strong); }
.work-media { overflow: hidden; }
.work-media img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; }
.work-body { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.work-type { font-size: 13px; color: var(--text-3); }
.work-body h3, .work-body .h3 { margin-top: 8px; }
.work-body p:not(.work-type):not(.work-tag) { margin-top: 8px; font-size: 15px; line-height: 24px; color: var(--text-2); }
.work-tag {
  align-self: flex-start; margin-top: auto; padding-top: 20px;
  font-size: 12px; color: var(--text-3);
}

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.split-text { align-items: start; }
.split-text h2 { max-width: 14ch; }
.split-text .body-text:first-child { margin-top: 0; }

/* Steps */
.steps { display: flex; flex-direction: column; margin-top: 40px; }
.step { display: flex; gap: 20px; padding: 20px 0; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step-num { font-size: 13px; color: var(--accent); padding-top: 2px; min-width: 24px; }
.step p { margin-top: 4px; font-size: 15px; line-height: 24px; color: var(--text-2); }
.steps-row { flex-direction: row; gap: 24px; margin-top: 0; }
.steps-row .step {
  flex: 1; flex-direction: column; gap: 16px;
  padding: 24px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--card);
}
.steps-row .step:last-child { border-bottom: 1px solid var(--line); }

/* Promises */
.promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.promise { display: flex; gap: 16px; padding: 32px; background: var(--bg-deep); }
.promise p, .promise-list p { margin-top: 6px; font-size: 15px; line-height: 24px; color: var(--text-2); }
.promise-icon {
  display: grid; place-items: center; flex-shrink: 0;
  width: 40px; height: 40px; border-radius: var(--r-control);
  background: var(--raised); border: 1px solid var(--line); color: var(--text-2);
}

.promise-list { display: flex; flex-direction: column; gap: 24px; margin-top: 32px; }
.promise-list li { display: flex; gap: 16px; }

/* FAQ */
.faq-layout { display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px; align-items: start; }
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 20px 0; cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font-size: 17px; transition: color var(--fast) var(--ease); }
.faq-item summary:hover h3 { color: var(--accent); }
.faq-chevron { flex-shrink: 0; color: var(--text-3); transition: transform var(--mid) var(--ease); }
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-item p { padding: 0 48px 24px 0; font-size: 15px; line-height: 25px; color: var(--text-2); }

/* CTA: a dark panel on a white strip, so it reads apart from the footer */
.cta-section { padding: 96px 0; }
.section-light + .cta-section { padding-top: 0; }
.cta-panel {
  --line: rgba(238, 240, 245, 0.08);
  --line-strong: rgba(238, 240, 245, 0.16);
  --text: #eef0f5;
  --text-2: #a3a9b8;
  --text-3: #7a8296;
  --raised: #1a1e28;
  --bg: #0b0d14;
  --accent: #3cc8f5;
  color-scheme: dark;
  padding: 56px;
  border-radius: var(--r-panel);
  background: #0b0d14;
  color: var(--text);
}
.cta-panel .btn-primary:hover { background: #ffffff; }
.cta-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 48px;
}
.cta-inner p { margin-top: 12px; font-size: 18px; line-height: 28px; color: var(--text-2); max-width: 34rem; }
.cta-inner .actions { flex-shrink: 0; }

/* ---------- Inner pages ---------- */

.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--text-3); margin-bottom: 24px; }
.breadcrumbs li + li::before { content: '/'; margin-right: 8px; color: var(--text-3); opacity: 0.6; }
.breadcrumbs a { transition: color var(--fast) var(--ease); }
.breadcrumbs a:hover { color: var(--text); }
.breadcrumbs [aria-current] { color: var(--text-2); }

.page-hero { padding: 80px 0 96px; }
.page-hero-short { padding: 80px 0 48px; }
.page-hero-short h1 { max-width: 18ch; }
.page-hero-short .lead { margin-top: 24px; }
.page-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.page-hero-copy h1 { font-size: 52px; }
.page-hero-copy .lead { margin-top: 24px; }
.page-hero-copy .actions { margin-top: 40px; }

.deliverables { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.deliverable {
  padding: 24px; border-radius: var(--r-card);
  background: var(--card); border: 1px solid var(--line);
}
.deliverable h3 { display: flex; align-items: center; gap: 10px; }
.deliverable h3 .icon { color: var(--accent); flex-shrink: 0; }
.deliverable p { margin-top: 8px; padding-left: 26px; font-size: 15px; line-height: 24px; color: var(--text-2); }

.stack-heading { margin-top: 40px; font-size: 15px; color: var(--text-2); font-weight: 400; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chips li {
  padding: 6px 12px; border-radius: 8px;
  background: var(--raised); border: 1px solid var(--line);
  font-size: 13px; line-height: 20px; color: var(--text-2);
}
.chips-sm li { padding: 4px 10px; font-size: 12px; }

.related { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.related-card {
  display: flex; flex-direction: column; gap: 8px; height: 100%;
  padding: 24px; border-radius: var(--r-card);
  background: var(--card); border: 1px solid var(--line);
  transition: border-color var(--fast) var(--ease), background-color var(--fast) var(--ease);
}
.related-card:hover { border-color: var(--line-strong); background: var(--raised); }
.related-icon { color: var(--text-3); margin-bottom: 8px; transition: color var(--fast) var(--ease); }
.related-card:hover .related-icon { color: var(--accent); }
.related-title { font-size: 16px; font-weight: 500; }
.related-text { font-size: 14px; line-height: 22px; color: var(--text-2); }

/* Light sections: the same components on white. Redefining the tokens
   flips every child (text, cards, chips, buttons, borders) automatically. */
.section-light {
  --bg-deep: #f5f7fa;
  --bg: #ffffff;
  --card: #f7f8fa;
  --raised: #eef1f5;
  --raised-2: #e4e8ee;
  --line: rgba(17, 24, 39, 0.08);
  --line-strong: rgba(17, 24, 39, 0.14);
  --text: #111827;
  --text-2: #4b5565;
  --text-3: #6b7487;
  --accent: #0a7ea8;
  --positive: #16a34a;
  color-scheme: light;
  background: var(--bg);
  color: var(--text);
}
.section-light.section-tight { padding-top: 80px; }
.section-light .btn-primary { box-shadow: 0 1px 2px rgba(17, 24, 39, 0.12); }
.section-light .btn-primary:hover { background: #1f2937; }
.section-light .deliverable,
.section-light .work-card,
.section-light .steps-row .step,
.section-light .related-card,
.section-light .service-card-link,
.section-light .value,
.section-light .contact-form { background: var(--bg); box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04); }
.section-light .work-card:hover,
.section-light .related-card:hover,
.section-light .service-card-link:hover { box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06); }
.section-light .service-row-media,
.section-light .split-media,
.section-light .contact-photo { box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06); }
.section-light .field input,
.section-light .field select,
.section-light .field textarea { background-color: var(--bg-deep); }
.section-light .field input:hover,
.section-light .field select:hover,
.section-light .field textarea:hover { border-color: rgba(17, 24, 39, 0.24); }
.section-light .field input:focus,
.section-light .field select:focus,
.section-light .field textarea:focus { background-color: #ffffff; }
.section-light .field-error,
.section-light .form-status.is-error { color: #dc2626; }
.section-light .field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7487' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

/* Services overview cards */
.service-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.service-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
.service-card-link {
  display: flex; flex-direction: column; height: 100%;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden;
  transition: border-color var(--fast) var(--ease);
}
.service-card-link:hover { border-color: var(--line-strong); }
.service-card-link:hover .text-link { color: var(--accent); }
.service-card-link:hover .text-link .icon { color: var(--accent); transform: translateX(2px); }
.service-card-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.service-card:last-child:nth-child(odd) .service-card-link { display: grid; grid-template-columns: 1fr 1fr; }
.service-card:last-child:nth-child(odd) .service-card-media img { height: 100%; aspect-ratio: auto; }
.service-card-body { display: flex; flex-direction: column; flex: 1; padding: 32px; }
.service-card-icon {
  display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: var(--r-control); background: var(--raised); border: 1px solid var(--line); color: var(--text-2);
}
.service-card-body h2 { margin-top: 20px; font-size: 26px; line-height: 1.2; letter-spacing: -0.01em; }
.service-card-body > p { margin-top: 8px; font-size: 16px; line-height: 25px; color: var(--text-2); }
.service-card-body .chips { margin-top: 20px; }
.service-card-body .text-link { margin-top: auto; padding-top: 28px; }

/* About */
.gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px; }
.gallery figure { border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--line); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main { grid-row: 1 / 3; }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value {
  padding: 32px; border-radius: var(--r-card); background: var(--card); border: 1px solid var(--line);
}
.value h3 { margin-top: 16px; font-size: 20px; }
.value p { margin-top: 8px; font-size: 15px; line-height: 24px; color: var(--text-2); }

.brand-badge { display: grid; place-items: center; }
.brand-badge img { width: min(440px, 100%); border-radius: 50%; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 64px; align-items: start; }
.contact-form {
  padding: 32px; border-radius: var(--r-panel);
  background: var(--card); border: 1px solid var(--line);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field label { font-size: 14px; font-weight: 500; color: var(--text); }
.optional { font-weight: 400; color: var(--text-3); margin-left: 4px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 44px; padding: 10px 12px;
  border-radius: var(--r-control); border: 1px solid var(--line-strong);
  background: var(--bg); color: var(--text); font-size: 15px;
  transition: border-color var(--fast) var(--ease), background-color var(--fast) var(--ease);
}
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237a8296' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(238, 240, 245, 0.22); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background-color: var(--bg-deep); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #e5484d; }
.field-error { font-size: 13px; color: #f2777a; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 8px; }
.form-note { font-size: 13px; line-height: 20px; color: var(--text-3); max-width: 28rem; }
.form-status { margin-top: 16px; font-size: 15px; }
.form-status:empty { display: none; }
.form-status.is-success { color: var(--positive); }
.form-status.is-error { color: #f2777a; }
.contact-form.is-sending button[type='submit'] { opacity: 0.6; pointer-events: none; }

.contact-photo { border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--line); margin-bottom: 32px; }
.contact-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.next-steps { display: flex; flex-direction: column; gap: 20px; margin-top: 20px; }
.next-steps li { display: flex; gap: 16px; }
.next-steps h3 { font-size: 15px; }
.next-steps p { margin-top: 2px; font-size: 14px; line-height: 22px; color: var(--text-2); }
.contact-details { display: flex; flex-direction: column; gap: 16px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.contact-details li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.contact-details .icon { color: var(--text-3); margin-top: 3px; flex-shrink: 0; }
.contact-details div { display: flex; flex-direction: column; }
.detail-label { font-size: 13px; color: var(--text-3); }

/* Prose */
.prose { max-width: 720px; }
.prose h2 { font-size: 22px; line-height: 1.3; letter-spacing: -0.01em; margin-top: 40px; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-top: 12px; font-size: 16px; line-height: 27px; color: var(--text-2); }

.notfound { padding: 128px 0; min-height: 60vh; }
.notfound .actions { margin-top: 40px; }

/* ---------- Footer ---------- */

.site-footer { padding: 80px 0 32px; background: var(--bg-deep); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 48px; }
.footer-brand p { margin-top: 16px; font-size: 14px; line-height: 22px; color: var(--text-2); max-width: 22rem; }
.footer-heading { font-size: 14px; font-weight: 500; line-height: 20px; letter-spacing: 0; margin-bottom: 16px; }
.site-footer nav li + li, .footer-contact li + li { margin-top: 10px; }
.site-footer nav a, .footer-contact a, .footer-contact span {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--text-2); transition: color var(--fast) var(--ease);
}
.footer-contact .icon { color: var(--text-3); flex-shrink: 0; }
.site-footer a:hover { color: var(--text); }
.footer-social { display: flex; gap: 16px; margin-top: 20px; font-size: 14px; color: var(--text-2); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--text-3);
}
.footer-bottom .mono { font-size: 12px; }

/* ---------- Entrance ---------- */

.js [data-reveal] { opacity: 0; transform: translateY(8px); transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

.hero-copy > *, .hero-visual { animation: rise 500ms var(--ease) both; }
.hero-copy > *:nth-child(2) { animation-delay: 40ms; }
.hero-copy > *:nth-child(3) { animation-delay: 80ms; }
.hero-copy > *:nth-child(4) { animation-delay: 120ms; }
.hero-visual { animation-delay: 160ms; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Narrow screens: the hero stacks, so darken the top (text) and let the glow sit behind the preview */
@media (max-width: 1180px) {
  .hero-backdrop img { object-position: 70% 72%; }
  .hero-backdrop::after {
    background: linear-gradient(180deg, rgba(11, 13, 20, 0.94) 0%, rgba(11, 13, 20, 0.9) 42%, rgba(11, 13, 20, 0.45) 72%, var(--bg) 100%);
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-copy h1 { max-width: 16ch; }
  .hero-visual { max-width: 720px; }
  .strip-item { padding: 0 16px; font-size: 14px; }
  .related { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  :root { --gutter: 24px; }
  h1 { font-size: 44px; }
  h2 { font-size: 34px; }
  .page-hero-copy h1 { font-size: 42px; }
  .main-nav, .header-cta { display: none; }
  .nav-toggle { display: grid; }

  .mobile-nav {
    display: block; position: fixed; inset: var(--header-h) 0 0 0;
    background: var(--bg); overflow-y: auto;
    padding: 16px 0 32px;
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity var(--mid) var(--ease), transform var(--mid) var(--ease), visibility 0s linear var(--mid);
  }
  .mobile-nav.is-open {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity var(--mid) var(--ease), transform var(--mid) var(--ease), visibility 0s;
  }
  .mobile-label { font-size: 13px; color: var(--text-3); margin: 8px 0 8px; }
  .mobile-services a, .mobile-links a {
    display: flex; align-items: center; gap: 12px; height: 48px;
    font-size: 17px; color: var(--text);
  }
  .mobile-services .icon { color: var(--text-3); }
  .mobile-services a[aria-current], .mobile-links a[aria-current] { color: var(--accent); }
  .mobile-links { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); margin-bottom: 24px; }
  body.nav-open { overflow: hidden; }
  .site-header:has(.mobile-nav.is-open) { background: var(--bg); }

  .section { padding: 88px 0; }
  .section-head { margin-bottom: 48px; }
  .strip-list { grid-template-columns: repeat(3, 1fr); }
  .strip-list li:nth-child(4) { border-left: 0; }
  .strip-list li:nth-child(n + 4) { border-top: 1px solid var(--line); }
  .strip-item { height: 64px; }

  .service-row, .split, .page-hero-grid, .faq-layout, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .service-row.is-flipped .service-row-media { order: 0; }
  .service-rows { gap: 72px; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .promises { grid-template-columns: repeat(2, 1fr); }
  .deliverables { grid-template-columns: repeat(2, 1fr); }
  .steps-row { flex-wrap: wrap; }
  .steps-row .step { flex: 1 1 calc(50% - 12px); }
  .values { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .service-cards { grid-template-columns: 1fr; }
  .service-card:last-child:nth-child(odd) .service-card-link { display: flex; }
  .service-card:last-child:nth-child(odd) .service-card-media img { aspect-ratio: 16 / 9; height: auto; }
  .split-text h2 { max-width: none; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; --header-h: 60px; }
  body { font-size: 15px; }
  h1, .page-hero-copy h1 { font-size: 38px; line-height: 1.08; letter-spacing: -0.025em; }
  h2 { font-size: 28px; line-height: 1.18; }
  .lead { font-size: 17px; line-height: 27px; }
  .section-lead, .cta-inner p { font-size: 16px; line-height: 26px; }

  .hero { padding: 48px 0 64px; }
  .hero-copy .actions, .page-hero-copy .actions { margin-top: 32px; }
  .actions .btn { flex: 1 1 auto; }
  .window { border-radius: 12px; }
  .mock-site { padding: 12px 16px 16px; }
  .mock-links, .mock-btn-ghost, .mock-cards, .deploy-extra { display: none; }
  .mock-cta { margin-left: auto; }
  .mock-hero { grid-template-columns: 1fr; margin-top: 16px; gap: 16px; }
  .mock-title { font-size: 22px; }
  .mock-photo img { aspect-ratio: 16 / 9; }

  .strip-list { grid-template-columns: 1fr 1fr; }
  .strip-list li { border-left: 0 !important; border-top: 1px solid var(--line); }
  .strip-list li:nth-child(-n + 2) { border-top: 0; }
  .strip-list li:nth-child(even) { border-left: 1px solid var(--line) !important; }
  .strip-list li:last-child { grid-column: 1 / -1; border-left: 0 !important; }
  .strip-item { height: 56px; padding: 0 12px; gap: 10px; font-size: 14px; }

  .section { padding: 64px 0; }
  .section-tight { padding: 32px 0 64px; }
  .section-light.section-tight { padding-top: 56px; }
  .footer-logo img { width: 96px; height: 96px; }
  .section-head { margin-bottom: 40px; }
  .section-head-row { flex-direction: column; align-items: flex-start; }
  .page-hero { padding: 40px 0 64px; }
  .page-hero-short { padding: 40px 0 24px; }
  .service-rows { gap: 56px; }
  .service-row-copy h3 { font-size: 26px; }
  .ticks { grid-template-columns: 1fr; }
  .work-grid, .promises, .deliverables, .related, .footer-grid { grid-template-columns: 1fr; }
  .promise { padding: 24px; }
  .steps-row .step { flex: 1 1 100%; }
  .faq-item p { padding-right: 0; }
  .cta-section { padding: 64px 0; }
  .cta-panel { padding: 32px 24px; }
  .cta-inner .actions { width: 100%; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .gallery-main { grid-row: auto; grid-column: 1 / -1; }
  .contact-form { padding: 20px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-foot .btn { width: 100%; }
  .service-card-body { padding: 24px; }
  .footer-grid { gap: 40px; }
  .site-footer { padding-top: 56px; }
}
