/* Vorion public site.
   Dark throughout: sections alternate between two shades of "ink"; one violet accent with a mint highlight.
   Boxes have square corners; only buttons and small round markers are rounded.
   Headings and the logo use Syne, body text uses Inter (both self-hosted in /fonts). */

@font-face {
  font-family: "Syne";
  src: url("/fonts/syne-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --ink: #0b0c14;
  --ink-2: #12131f;
  --ink-3: #1b1d2e;
  --paper: #f5f4ef;
  --paper-2: #ffffff;
  --accent: #7c6cff;
  --accent-strong: #5b49f0;
  --mint: #3ee0c5;
  --font-display: "Syne", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius: 0px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }
img { display: block; height: auto; }
a { color: inherit; }
h1, h2, h3, h4, .stat dd, .step-num, .quote blockquote { font-variant-numeric: lining-nums; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pre-line { white-space: pre-line; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: calc(820px + var(--gutter) * 2); }

/* ---------- themes ---------- */

.theme-dark {
  --bg: var(--ink);
  --fg: #f5f4ef;
  --muted: #a4a7ba;
  --line: rgba(255, 255, 255, 0.1);
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --eyebrow: var(--mint);
}

/* Stored per section as "Light"; on this all-dark site it is the raised, slightly lighter shade. */
.theme-light {
  --bg: var(--ink-2);
  --fg: #f5f4ef;
  --muted: #a4a7ba;
  --line: rgba(255, 255, 255, 0.1);
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --eyebrow: var(--mint);
}

/* ---------- header ---------- */

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  color: #f5f4ef;
  transition: background-color .25s ease, border-color .25s ease, backdrop-filter .25s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled, .site-header.is-open {
  background: rgba(11, 12, 20, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; color: inherit; text-decoration: none; }
.logo { height: 22px; width: auto; display: block; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-link { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 999px; font-size: 15px; font-weight: 500; text-decoration: none; color: #d6d7e2; transition: color .2s, background-color .2s; }
.nav-link:hover, .nav-link.is-active { color: #fff; }
.nav-link.is-active { background: rgba(255, 255, 255, 0.08); }
.chev { width: 12px; height: 12px; transition: transform .2s; }
.dropdown {
  position: absolute; top: 100%; left: 50%; min-width: 280px; padding-top: 10px;
  transform: translate(-50%, 6px); opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s;
}
.dropdown ul { background: var(--ink-2); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 0; padding: 8px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); }
.dropdown a { display: block; padding: 10px 14px; border-radius: 0; font-size: 15px; color: #d6d7e2; text-decoration: none; }
.dropdown a:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.has-dropdown:hover .chev, .has-dropdown:focus-within .chev { transform: rotate(180deg); }

.nav-backdrop { display: none; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; color: inherit; cursor: pointer; position: relative; }
.nav-toggle-bar { position: absolute; left: 11px; right: 11px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s, top .25s; }
.nav-toggle-bar:nth-of-type(2) { top: 17px; }
.nav-toggle-bar:nth-of-type(3) { top: 26px; }
.is-open .nav-toggle-bar:nth-of-type(2) { top: 21px; transform: rotate(45deg); }
.is-open .nav-toggle-bar:nth-of-type(3) { top: 21px; transform: rotate(-45deg); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--font-body); font-size: 16px; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn-small { padding: 11px 20px; font-size: 15px; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 30px -10px rgba(124, 108, 255, 0.7); }
.btn-primary:hover { background: var(--accent-strong); transform: translateY(-2px); }
.btn-ghost { border-color: var(--line, rgba(255, 255, 255, 0.2)); color: var(--fg, #fff); }
.btn-ghost:hover { border-color: currentColor; transform: translateY(-2px); }
.arrow { display: inline-block; transition: transform .2s ease; }
.btn:hover .arrow, a:hover > .arrow, .card-link:hover .arrow, a:hover .card-link .arrow { transform: translateX(4px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* ---------- sections ---------- */

.section { position: relative; background: var(--bg); color: var(--fg); padding: clamp(72px, 10vw, 128px) 0; overflow: hidden; }
.section.is-first { padding-top: calc(var(--header-h) + clamp(56px, 8vw, 104px)); }
.section.is-first.theme-light { padding-top: calc(var(--header-h) + clamp(48px, 7vw, 88px)); }
.section-tight-top { padding-top: 0; }
/* Two light (or two dark) sections in a row share one block of space instead of doubling it. */
.theme-light + .theme-light, .theme-dark + .theme-dark { padding-top: 0; }
.theme-dark.section-hero + .theme-dark { padding-top: 0; }

.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--eyebrow); margin: 0 0 18px; }
.section-title { font-size: clamp(32px, 4.4vw, 54px); }
.section-intro { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-intro.is-centered { margin-inline: auto; text-align: center; }
.section-lead { margin-top: 20px; font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); }
.intro-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-bottom: clamp(40px, 5vw, 64px); }
.intro-row .section-intro { margin-bottom: 0; }
.intro-row .btn-row { margin-top: 0; }
.intro-row .btn-primary { background: transparent; color: var(--fg); border-color: var(--line); box-shadow: none; }
.intro-row .btn-primary:hover { border-color: var(--fg); background: transparent; }
.empty { color: var(--muted); }

.prose > :last-child { margin-bottom: 0; }
.prose a { color: var(--eyebrow); text-underline-offset: 3px; }
.prose h2, .prose h3 { margin: 1.8em 0 .6em; font-size: 1.35em; }
.prose h2 { font-size: 1.6em; }
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: .4em; }
.prose-large { font-size: clamp(17px, 1.4vw, 19px); }
.lead { font-size: clamp(20px, 2vw, 24px); line-height: 1.5; font-weight: 500; margin-bottom: 1.4em; }

/* ---------- hero ---------- */

.section-hero { padding-bottom: clamp(72px, 9vw, 120px); }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 20%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 70% 20%, #000 10%, transparent 75%);
}
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; will-change: transform; }
.orb-1 { width: 620px; height: 620px; right: -160px; top: -220px; background: radial-gradient(circle, var(--accent) 0%, transparent 65%); animation: drift 18s ease-in-out infinite alternate; }
.orb-2 { width: 460px; height: 460px; right: 22%; top: 30%; background: radial-gradient(circle, var(--mint) 0%, transparent 65%); opacity: .22; animation: drift 24s ease-in-out infinite alternate-reverse; }
.orb-project { background: radial-gradient(circle, var(--project, var(--accent)) 0%, transparent 65%); }
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-70px, 50px, 0) scale(1.12); } }

.hero-inner { position: relative; display: grid; gap: 48px; align-items: center; }
.hero-inner:has(.hero-media) { grid-template-columns: 1.1fr .9fr; }
.hero-copy { max-width: 900px; }
.hero-title { font-size: clamp(40px, 6.6vw, 88px); line-height: 1.02; letter-spacing: -0.035em; }
.hero-title-small { font-size: clamp(34px, 4.6vw, 60px); }
.section-hero-small { padding-bottom: clamp(48px, 6vw, 80px); }
.hero-lead { max-width: 660px; margin-top: 28px; font-size: clamp(18px, 1.7vw, 21px); color: var(--muted); }
.hero-media img { border-radius: var(--radius); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; font-size: 14px; color: var(--muted); margin-bottom: 26px; }
.breadcrumb a { text-decoration: none; color: var(--fg); }
.breadcrumb a:hover { color: var(--mint); }

/* ---------- stats ---------- */

.section-stats { padding: 0 0 clamp(64px, 8vw, 104px); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; border-top: 1px solid var(--line); }
.stat { display: flex; flex-direction: column; padding: 32px 24px 0 0; }
.stat dd { order: -1; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat dd { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(44px, 5.2vw, 72px); line-height: 1; letter-spacing: -0.03em; background: linear-gradient(120deg, #fff 30%, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat dt { margin-top: 12px; font-size: 15px; color: var(--muted); max-width: 22ch; }

/* ---------- cards ---------- */

.cards, .expertise-grid { display: grid; gap: 20px; }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.expertise-grid { grid-template-columns: repeat(4, 1fr); }

.card, .expertise-card {
  position: relative; display: flex; flex-direction: column; padding: 30px 28px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  color: inherit; text-decoration: none;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease, background-color .25s ease;
}
.card h3, .expertise-card h3 { font-size: 22px; margin: 22px 0 10px; }
.card p, .expertise-card p { font-size: 15.5px; color: var(--muted); margin: 0; }
.expertise-card:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: 0 24px 50px -24px rgba(91, 73, 240, 0.45); background: var(--surface-hover); }
.card-icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 0; background: rgba(124, 108, 255, 0.16); color: #b3a9ff; flex: none; }
.icon { width: 24px; height: 24px; }
.card-link { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 22px; font-size: 15px; font-weight: 600; color: var(--eyebrow); text-decoration: none; }
.card-link.stretched::after { content: ""; position: absolute; inset: 0; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.tag-list li { font-size: 12.5px; padding: 4px 10px; border-radius: 0; border: 1px solid var(--line); color: var(--muted); }
.tag-list-spaced { margin-top: 24px; }

/* ---------- quote ---------- */

.section-quote { text-align: center; }
.section-quote::before { content: ""; position: absolute; left: 50%; top: 50%; width: 760px; height: 420px; transform: translate(-50%, -50%); background: radial-gradient(ellipse, rgba(124, 108, 255, 0.22), transparent 70%); pointer-events: none; }
.theme-dark + .section-quote.theme-dark { padding-top: clamp(72px, 10vw, 128px); border-top: 1px solid var(--line); }
.quote { position: relative; margin: 0; }
.quote-mark { width: 44px; height: 33px; color: var(--accent); margin: 0 auto 28px; display: block; }
.quote blockquote { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(26px, 3.6vw, 46px); line-height: 1.2; letter-spacing: -0.02em; text-wrap: balance; }
.quote figcaption { margin-top: 32px; display: flex; flex-direction: column; gap: 4px; font-size: 15px; color: var(--muted); }
.quote figcaption strong { color: var(--fg); font-size: 17px; }

/* ---------- steps ---------- */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; border-top: 1px solid var(--line); }
.step { padding: 32px 28px 0 0; }
.step + .step { padding-left: 28px; border-left: 1px solid var(--line); }
.step-num { font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: .1em; color: var(--eyebrow); }
.step h3 { font-size: 26px; margin: 18px 0 12px; }
.step p { font-size: 15.5px; color: var(--muted); margin: 0; }

/* ---------- projects ---------- */

.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.project-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 0; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.project-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--project) 60%, transparent); }
.project-visual {
  position: relative; display: flex; align-items: flex-end; justify-content: center; aspect-ratio: 16 / 9; padding: 9% 9% 0; overflow: hidden; text-decoration: none;
  background:
    radial-gradient(circle at 85% 0%, color-mix(in srgb, var(--project) 55%, #fff) 0%, transparent 55%),
    linear-gradient(135deg, var(--project), color-mix(in srgb, var(--project) 55%, #0b0c14));
}
.project-visual.is-static { border-radius: var(--radius); }
.project-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.project-window { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: var(--ink); border: 1px solid rgba(255, 255, 255, 0.14); border-bottom: 0; border-radius: 0; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35); transition: transform .35s ease; }
.project-card:hover .project-window { transform: translateY(-8px); }
.dots { position: absolute; top: 14px; left: 16px; display: flex; gap: 6px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.22); }
.project-wordmark { font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 3.4vw, 44px); letter-spacing: -0.03em; color: #fff; }
.project-body { display: flex; flex-direction: column; flex: 1; padding: 28px 30px 30px; }
.project-body h3 { font-size: 30px; margin: 10px 0 10px; }
.project-body h3 a { text-decoration: none; }
.project-body > p { color: var(--muted); margin: 0; }
.project-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.status { display: inline-flex; align-items: center; gap: 7px; color: var(--fg); }
.status i { width: 8px; height: 8px; border-radius: 50%; background: #23c483; box-shadow: 0 0 0 4px rgba(35, 196, 131, 0.18); }
.project-links { display: flex; gap: 24px; margin-top: auto; }
.card-link.is-external { color: var(--muted); }
.card-link.is-external:hover { color: var(--fg); }

/* ---------- articles ---------- */

.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.article-card { display: flex; flex-direction: column; padding: 32px 32px 8px 0; }
.article-card:nth-child(3n+2), .article-card:nth-child(3n+3) { padding-left: 32px; border-left: 1px solid var(--line); }
.article-card:nth-child(n+4) { border-top: 1px solid var(--line); }
.article-cover { display: block; margin-bottom: 22px; border-radius: 0; overflow: hidden; aspect-ratio: 16 / 9; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--muted); margin: 0 0 14px; }
.article-meta span { font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--eyebrow); }
.article-card h3 { font-size: 24px; line-height: 1.2; margin-bottom: 12px; }
.article-card h3 a { text-decoration: none; }
.article-card h3 a:hover { color: #b3a9ff; }
.article-card > p:not(.article-meta) { font-size: 15.5px; color: var(--muted); }
.article-card .card-link { padding-top: 8px; }
.text-image { border-radius: var(--radius); margin: 0 0 36px; width: 100%; }

/* ---------- expertise and service pages ---------- */

.split { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.split > .prose:first-child { grid-column: 1; }
.container.split:has(> .prose:first-child) { grid-template-columns: 1.2fr .8fr; }
.big-icon { display: inline-flex; align-items: center; justify-content: center; width: 112px; height: 112px; border-radius: 0; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-strong)); box-shadow: 0 30px 60px -24px rgba(91, 73, 240, 0.7); }
.big-icon .icon { width: 52px; height: 52px; }
.service-list { border-top: 1px solid var(--line); }
.service-row { display: grid; grid-template-columns: minmax(220px, 1fr) 2fr auto; gap: 32px; align-items: center; padding: 28px 8px; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding .25s ease, background-color .25s ease; }
.service-row h3 { font-size: 24px; }
.service-row p { margin: 0; color: var(--muted); }
.service-row .arrow { font-size: 22px; color: #b3a9ff; }
.service-row:hover { background: var(--surface-hover); padding-inline: 24px; }
.highlight-box { background: var(--ink); border: 1px solid var(--line); color: #f5f4ef; padding: 36px 32px; border-radius: 0; position: sticky; top: calc(var(--header-h) + 24px); }
.highlight-box h2 { font-size: 26px; margin-bottom: 22px; }
.check-list { margin-bottom: 30px; }
.check-list li { position: relative; padding: 13px 0 13px 34px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 16px; }
.check-list li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 16px; height: 9px; border-left: 2px solid var(--mint); border-bottom: 2px solid var(--mint); transform: rotate(-45deg) scale(.75); }
.chip-links { display: flex; flex-wrap: wrap; gap: 14px; }
.chip-link { display: inline-flex; align-items: center; gap: 14px; padding: 10px 24px 10px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 0; font-family: var(--font-display); font-weight: 600; font-size: 18px; text-decoration: none; transition: border-color .2s, transform .2s; }
.chip-link .card-icon { width: 42px; height: 42px; }
.chip-link:hover { border-color: var(--accent); transform: translateY(-3px); }

/* ---------- call to action ---------- */

.section-cta { padding: clamp(56px, 7vw, 96px) 0; }
.theme-dark + .section-cta.theme-dark { padding-top: 0; }
.cta {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap;
  padding: clamp(36px, 6vw, 72px); border-radius: 0; overflow: hidden; color: #fff;
  background: radial-gradient(circle at 100% 0%, rgba(62, 224, 197, 0.35), transparent 45%), linear-gradient(120deg, var(--accent-strong), #7c6cff 60%, #9d7bff);
}
.cta .eyebrow { color: rgba(255, 255, 255, 0.8); }
.cta-title { font-size: clamp(30px, 4.2vw, 52px); max-width: 16ch; }
.cta .prose { margin-top: 16px; max-width: 520px; color: rgba(255, 255, 255, 0.86); }
.cta .btn-row { margin-top: 0; }
.cta .btn-primary { background: #fff; color: var(--ink); box-shadow: none; }
.cta .btn-primary:hover { background: var(--ink); color: #fff; }

/* ---------- contact ---------- */

.contact-grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.contact-form-wrap .section-title { font-size: clamp(28px, 3.2vw, 40px); }
.form { margin-top: 32px; display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; font: inherit; font-weight: 400; font-size: 16px; color: #f5f4ef; color-scheme: dark;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 0; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 150px; }
.field select option { background: var(--ink-2); color: #f5f4ef; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(124, 108, 255, 0.18); }
.form .btn { justify-self: start; }
.form-note { font-size: 13.5px; color: var(--muted); margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { margin-top: 28px; padding: 18px 22px; border-radius: 0; font-weight: 500; }
.form .notice { margin-top: 0; }
.notice ul { list-style: disc; padding-left: 1.2em; }
.notice-success { background: rgba(35, 196, 131, 0.12); color: #8fe8c2; border: 1px solid rgba(35, 196, 131, 0.45); }
.notice-error { background: rgba(255, 92, 92, 0.12); color: #ffb3b3; border: 1px solid rgba(255, 92, 92, 0.45); }
.contact-details { background: var(--ink); border: 1px solid var(--line); color: #f5f4ef; padding: 36px 32px; border-radius: 0; }
.contact-details h2 { font-size: 24px; margin-bottom: 20px; }
.contact-details dl { margin: 0; }
.contact-details dl > div { padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.contact-details dt { font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--mint); margin-bottom: 4px; }
.contact-details dd { margin: 0; }
.contact-details a { text-decoration: none; }
.contact-details a:hover { text-decoration: underline; }

/* ---------- footer ---------- */

.site-footer { background: var(--ink); color: #a4a7ba; border-top: 1px solid rgba(255, 255, 255, 0.08); padding-top: clamp(56px, 7vw, 88px); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 48px; padding-bottom: 56px; }
.footer-brand .brand { color: #f5f4ef; margin-bottom: 20px; }
.footer-brand .logo { height: 26px; }
.footer-brand p { max-width: 36ch; }
.footer-title { font-family: var(--font-body); font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #f5f4ef; margin-bottom: 18px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a, .footer-social a { text-decoration: none; transition: color .2s; }
.footer-links a:hover, .footer-social a:hover { color: #fff; }
.footer-social { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 8px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; padding-bottom: 32px; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 13.5px; }

.draft-banner { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 150; background: #ffcf5c; color: #3d2c00; padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orb { animation: none; }
  .btn, .arrow, .card, .expertise-card, .project-card, .project-window { transition: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
  .expertise-grid, .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(odd) { padding-left: 0; border-left: 0; }
  .step:nth-child(n+3) { margin-top: 32px; border-top: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  :root { --header-h: 76px; }
  .logo { height: 28px; }
  .nav-toggle { display: block; width: 52px; height: 52px; margin-right: -8px; }
  .nav-toggle-bar { left: 12px; right: 12px; height: 2.5px; }
  .nav-toggle-bar:nth-of-type(2) { top: 20px; }
  .nav-toggle-bar:nth-of-type(3) { top: 30px; }
  .is-open .nav-toggle-bar:nth-of-type(2), .is-open .nav-toggle-bar:nth-of-type(3) { top: 25px; }
  /* The menu drops down under the header. It is positioned against the header (absolute, not fixed),
     because the header's backdrop-filter would otherwise squash a fixed menu into the header's height. */
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100vh - var(--header-h)); max-height: calc(100dvh - var(--header-h));
    flex-direction: column; align-items: stretch; gap: 28px; padding: 12px var(--gutter) 32px;
    background: var(--ink); border-bottom: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    overflow-y: auto; overscroll-behavior: contain; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s;
  }
  .is-open .site-nav { opacity: 1; visibility: visible; transform: none; }
  .nav-backdrop { display: block; position: fixed; inset: 0; z-index: 99; background: rgba(5, 6, 12, 0.6); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
  .nav-backdrop.is-visible { opacity: 1; visibility: visible; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-link { display: flex; min-height: 64px; padding: 16px 4px; font-family: var(--font-display); font-size: 28px; font-weight: 600; border-radius: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); justify-content: space-between; }
  .nav-link.is-active { background: transparent; color: var(--mint); }
  .dropdown { position: static; transform: none; opacity: 1; visibility: visible; min-width: 0; padding: 0; }
  .dropdown ul { background: transparent; border: 0; box-shadow: none; padding: 8px 0 12px; display: grid; grid-template-columns: 1fr 1fr; }
  .dropdown a { padding: 12px 4px; font-size: 17px; color: #a4a7ba; }
  .chev { display: none; }
  .site-nav > .btn { align-self: stretch; justify-content: center; padding: 17px 24px; font-size: 17px; }
  .cards-3, .article-grid { grid-template-columns: 1fr; }
  .article-card, .article-card:nth-child(3n+2), .article-card:nth-child(3n+3) { padding: 28px 0 8px; border-left: 0; }
  .article-card + .article-card { border-top: 1px solid var(--line); }
  .project-grid, .split, .container.split:has(> .prose:first-child), .contact-grid, .hero-inner:has(.hero-media) { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(odd) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { margin-top: 32px; border-top: 1px solid var(--line); }
  .service-row { grid-template-columns: 1fr auto; gap: 8px 20px; }
  .service-row p { grid-column: 1; grid-row: 2; }
  .service-row .arrow { grid-row: 1 / span 2; grid-column: 2; }
  .highlight-box { position: static; }
  .big-icon { width: 80px; height: 80px; }
  .big-icon .icon { width: 38px; height: 38px; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .expertise-grid, .cards-4, .cards-2, .steps, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 28px 0 0; border-left: 0; }
  .step + .step { margin-top: 28px; border-top: 1px solid var(--line); }
  .dropdown ul { grid-template-columns: 1fr; }
  .btn-row .btn { width: 100%; }
  .cta .btn-row { width: 100%; }
  .footer-grid { gap: 36px; }
}
