/* Core Infosoft — site styles
   Palette: ink navy + engineering teal on cool white.
   Type: Bricolage Grotesque (display), Source Sans 3 (body), JetBrains Mono (labels). */

:root {
  /* Brand: Core Navy #040F4F and Core Amber #F4A01C, taken from the logo. */
  --ink: #040F4F;
  --ink-2: #0B1A66;
  --ink-deep: #020A36;       /* footer, a step darker than navy sections */
  --ink-line: #1F2E78;
  --ink-fg: #F2F4FB;
  --ink-muted: #AAB4D8;
  --paper: #ffffff;
  --mist: #F4F6FB;
  --line: #DCE1EE;
  --fg: #040F4F;
  --muted: #4E5878;
  --accent: #F4A01C;          /* fills: buttons, bars, rules, icons on navy */
  --accent-dark: #E08E0B;     /* button hover */
  --accent-soft: #FEF3DF;     /* hover backgrounds */
  --accent-text: #A35F00;     /* amber text on light backgrounds (5:1) */
  --accent-display: #B86B00;  /* large amber headline text (4:1) */
  --on-accent: #040F4F;       /* text on amber */
  --accent-on-ink: #F4A01C;   /* amber on navy (8:1) */
  --ph-bg: #fff4d6;
  --ph-line: #d9a400;
  --ok: #1a7f45;
  --err: #b42318;

  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1200px;
  --radius: 10px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--fg);
  font: 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.1; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 3px; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--ink-fg); padding: 10px 16px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }

.container { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow { font: 500 .78rem/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--accent-text); }
.muted { color: var(--muted); }

/* Placeholder content: remove the "ph" class once real content is in place. */
.ph { background: var(--ph-bg); outline: 1px dashed var(--ph-line); outline-offset: 2px; border-radius: 3px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: 700 1rem/1 var(--body); text-decoration: none;
  padding: 14px 22px; border-radius: 7px; border: 1.5px solid var(--accent);
  background: var(--accent); color: var(--on-accent); cursor: pointer; transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn.ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--fg); }
.btn.sm { padding: 10px 16px; font-size: .95rem; }
.btn.on-ink { background: var(--ink); border-color: var(--ink); color: var(--ink-fg); }
.btn.on-ink:hover { background: var(--ink-2); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { font-weight: 700; color: var(--accent-text); text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.logo { display: inline-flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.logo img { height: 56px; width: auto; }
.site-footer .logo img { height: 60px; }
@media (max-width: 600px) { .site-header .logo img { height: 46px; } }
.nav { display: flex; align-items: center; gap: 28px; }
.nav > ul { list-style: none; display: flex; gap: 26px; align-items: center; }
.nav a { text-decoration: none; font-weight: 600; color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }
.nav a.btn, .nav a.btn:hover { color: var(--on-accent); }
.has-sub { position: relative; }
.has-sub .sub {
  list-style: none; position: absolute; top: calc(100% + 14px); left: -18px; min-width: 280px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 14px 40px rgba(4,15,79,.12); padding: 8px; display: none;
}
.has-sub .sub::before { content: ""; position: absolute; top: -16px; left: 0; right: 0; height: 16px; }
.has-sub:hover .sub, .has-sub:focus-within .sub { display: block; }
.sub a { display: block; padding: 10px 12px; border-radius: 6px; color: var(--fg); font-weight: 600; }
.sub a span { display: block; font-weight: 400; font-size: .88rem; color: var(--muted); }
.sub a:hover { background: var(--mist); }
.nav-toggle {
  display: none; align-items: center; gap: 8px; background: none; border: 1px solid var(--line);
  border-radius: 7px; padding: 9px 14px; font: 600 .95rem var(--body); color: var(--fg); cursor: pointer;
}
.nav-toggle .bars { width: 18px; height: 12px; position: relative; }
.nav-toggle .bars::before, .nav-toggle .bars::after, .nav-toggle .bars span {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 2px;
}
.nav-toggle .bars::before { top: 0; } .nav-toggle .bars span { top: 5px; } .nav-toggle .bars::after { bottom: 0; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: calc(var(--header-h) + env(safe-area-inset-top, 0px)) 0 0 0;
    background: var(--paper); flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px var(--gutter) 32px; overflow-y: auto; display: none;
  }
  .nav.open { display: flex; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav > ul > li { border-bottom: 1px solid var(--line); }
  .nav > ul > li > a { display: block; padding: 16px 0; font-size: 1.1rem; color: var(--fg); }
  .nav a[aria-current="page"] { box-shadow: none; color: var(--accent-text); }
  .has-sub .sub { display: block; position: static; box-shadow: none; border: 0; padding: 0 0 12px; min-width: 0; }
  .has-sub .sub::before { display: none; }
  .sub a span { display: none; }
  .nav .btn { margin-top: 20px; justify-content: center; }
  body.nav-open { overflow: hidden; }
}

/* Sections */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section.mist { background: var(--mist); }
.section.ink { background: var(--ink); color: var(--ink-fg); }
.section.ink .muted { color: var(--ink-muted); }
.section.ink .eyebrow, .section.ink .link-arrow { color: var(--accent-on-ink); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px 48px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; letter-spacing: -.01em; max-width: 22ch; }
.section-head p { max-width: 46ch; color: var(--muted); }
.section-head .eyebrow { display: block; margin-bottom: 12px; }

/* Highlighted words in page titles */
.page-hero h1 em { font-style: normal; color: var(--accent-display); }

/* Service grid */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.svc-card { background: var(--paper); padding: clamp(22px, 2.6vw, 32px); text-decoration: none; display: flex; flex-direction: column; gap: 12px; min-width: 0; transition: background .15s; }
.svc-card:hover { background: var(--accent-soft); }
.svc-card .icon { width: 40px; height: 40px; color: var(--accent-text); }
.svc-card h3 { font-size: 1.25rem; font-weight: 700; }
.svc-card p { color: var(--muted); font-size: .98rem; }
.svc-card .more { margin-top: auto; padding-top: 6px; font: 500 .8rem var(--mono); color: var(--accent-text); }
.svc-card .tags { font: .8rem var(--mono); color: var(--muted); }

/* Steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.4vw, 28px); counter-reset: step; }
.steps li { border-top: 2px solid currentColor; padding-top: 16px; min-width: 0; counter-increment: step; }
.steps li::before { content: "Step " counter(step); font: 500 .76rem var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--accent-text); }
.section.ink .steps li::before { color: var(--accent-on-ink); }
.steps h3 { font-size: 1.2rem; margin: 8px 0 6px; }
.steps p { color: var(--muted); font-size: .98rem; }
.section.ink .steps p { color: var(--ink-muted); }

/* Client logos (shown in full colour) */
.logo-wall img { display: block; height: auto; max-width: 100%; }
/* Clients page: logos orbiting the Core Infosoft mark */
/* The rotating layer is square, so its corners would stick out while turning: clip them. */
.client-orbit-section { overflow: hidden; }
.client-orbit { position: relative; width: min(600px, 100%); aspect-ratio: 1; margin-inline: auto; container-type: inline-size; }
.orbit-ring { position: absolute; inset: 11%; border: 2px dashed var(--line); border-radius: 50%; }
.orbit-core { position: absolute; inset: 37%; display: grid; place-items: center; background: var(--ink); border-radius: 50%;
  box-shadow: 0 0 0 12px var(--accent-soft), 0 24px 50px -20px rgba(4,15,79,.55); }
.orbit-core img { width: 56%; height: auto; }
.orbit-spin { list-style: none; position: absolute; inset: 0; animation: orbit-spin 60s linear infinite; }
.orbit-spin li { position: absolute; left: 50%; top: 50%; width: 20%; aspect-ratio: 1; margin: -10% 0 0 -10%;
  display: grid; place-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 50%;
  box-shadow: 0 12px 26px -16px rgba(4,15,79,.45);
  transform: rotate(var(--a)) translate(min(234px, 36vw)) rotate(calc(-1 * var(--a)));
  transform: rotate(var(--a)) translate(39cqw) rotate(calc(-1 * var(--a))); }
.client-orbit .orbit-spin li img { width: auto; height: auto; max-width: 72%; max-height: 56%; animation: orbit-spin 60s linear infinite reverse; }
.client-orbit:hover .orbit-spin, .client-orbit:hover .orbit-spin li img,
.client-orbit.is-paused .orbit-spin, .client-orbit.is-paused .orbit-spin li img { animation-play-state: paused; }
@keyframes orbit-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .orbit-spin, .client-orbit .orbit-spin li img { animation: none; }
}

/* Two-col split */
.split { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.split > * { min-width: 0; }
.split h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 800; }
.split .intro { color: var(--muted); margin-top: 14px; max-width: 40ch; }
.prose p + p { margin-top: 16px; }
.prose p { max-width: 64ch; }

.list-rows { list-style: none; border-top: 1px solid var(--line); }
.list-rows li { display: grid; grid-template-columns: minmax(0, 14rem) 1fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.list-rows b { font: 700 1.05rem var(--display); }
.list-rows span { color: var(--muted); }

.cards-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { border: 1px solid var(--line); border-radius: 12px; padding: 26px; background: var(--paper); min-width: 0; }
.card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.card p { color: var(--muted); }
.card .eyebrow { display: block; margin-bottom: 10px; }

/* Page hero (inner pages) */
.crumbs { padding-top: 22px; font-size: .9rem; color: var(--muted); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--fg); }
.page-hero { padding-block: clamp(28px, 4vw, 48px) clamp(48px, 7vw, 80px); }
.page-hero .container.grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.page-hero h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.05; margin-top: 14px; max-width: 18ch; }
.page-hero .lede { font-size: 1.15rem; color: var(--muted); max-width: 56ch; margin-top: 20px; }
.page-hero .btn-row { margin-top: 28px; }

.facts-box { border: 1px solid var(--line); border-radius: 12px; background: var(--mist); padding: 6px 22px; min-width: 0; }
.facts-box div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 18px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: .97rem; }
.facts-box dd { min-width: 0; overflow-wrap: anywhere; }
.facts-box div:last-child { border-bottom: 0; }
.facts-box dt { color: var(--muted); }
.facts-box dd { margin: 0; font-weight: 600; text-align: right; }

/* Stack */
.stack-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.stack-groups h3 { font: 500 .78rem var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.tags li { font: 500 .85rem var(--mono); border: 1px solid var(--line); background: var(--paper); padding: 7px 12px; border-radius: 6px; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { font: 700 1.1rem var(--display); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent-text); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); margin-top: 12px; max-width: 64ch; }

/* CTA band */
.cta-band { background: var(--accent); color: var(--on-accent); }
.cta-band .container { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-block: clamp(40px, 6vw, 64px); }
.cta-band h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 800; max-width: 26ch; }
.cta-band p { margin-top: 8px; opacity: .9; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.contact-grid > * { min-width: 0; }
.contact-list { margin: 28px 0 0; display: grid; gap: 18px; }
.contact-list dt { font: 500 .76rem var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.contact-list dd { margin: 4px 0 0; font-size: 1.05rem; }
.section:not(.ink) .contact-list dt { color: var(--muted); }
.form { display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .95rem; }
.field label small { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  font: 400 1rem var(--body); padding: 12px 14px; border-radius: 7px; border: 1px solid var(--line);
  background: var(--paper); color: var(--fg); width: 100%;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--fg); }
.field .err { color: var(--err); font-size: .88rem; min-height: 0; }
.field.invalid input, .field.invalid textarea { border-color: var(--err); }
.section.ink .field input, .section.ink .field select, .section.ink .field textarea { background: var(--ink-2); border-color: var(--ink-line); color: var(--ink-fg); }
.section.ink .field label small { color: var(--ink-muted); }
.section.ink .field .err { color: #f4857a; }
.form-status { font-weight: 600; min-height: 1.4em; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--err); }
.section.ink .form-status.ok { color: var(--accent-on-ink); }
.section.ink .form-status.err { color: #f4857a; }
.form-note { font-size: .88rem; color: var(--muted); }
.section.ink .form-note { color: var(--ink-muted); }
.hp { position: absolute; left: -9999px; }

/* Careers: job listings */
.jobs { display: grid; gap: 20px; }
.job { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: clamp(22px, 3vw, 32px); min-width: 0; scroll-margin-top: calc(var(--header-h) + 16px); }
.job-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px 24px; flex-wrap: wrap; }
.job-head > div { min-width: 0; }
.job h3 { font-size: clamp(1.25rem, 2.4vw, 1.5rem); }
.job-meta { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.job-meta li { font: 500 .8rem var(--mono); background: var(--accent-soft); color: var(--fg); padding: 5px 10px; border-radius: 5px; }
.job-summary { color: var(--muted); margin-top: 16px; max-width: 70ch; }
.job-more { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.job-more summary { font-weight: 700; cursor: pointer; color: var(--accent-text); list-style: none; display: inline-flex; gap: 8px; align-items: center; }
.job-more summary::-webkit-details-marker { display: none; }
.job-more summary::after { content: "+"; font-size: 1.2rem; line-height: 1; }
.job-more[open] summary::after { content: "\2212"; }
.job-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 18px; }
.job-cols > div { min-width: 0; }
.job-cols h4 { font: 700 1rem var(--display); margin: 0 0 10px; }
.job-cols h4 + ul + h4, .job-cols ul + h4 { margin-top: 20px; }
.job-cols ul { padding-left: 1.2em; display: grid; gap: 6px; color: var(--muted); }
#apply { scroll-margin-top: var(--header-h); }

/* Form: file upload and consent checkbox */
.field input[type="file"] { padding: 10px; background: var(--paper); cursor: pointer; }
.field input[type="file"]::file-selector-button { font: 600 .9rem var(--body); margin-right: 12px; padding: 8px 14px; border-radius: 6px; border: 1px solid var(--line); background: var(--mist); color: var(--fg); cursor: pointer; }
.field.check { grid-template-columns: auto 1fr; align-items: start; column-gap: 12px; }
.field.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--fg); }
.field.check label { font-weight: 400; }
.field.check .err { grid-column: 1 / -1; }
.field.invalid select { border-color: var(--err); }

@media (max-width: 760px) {
  .job-cols { grid-template-columns: 1fr; gap: 8px; }
  .job-head .btn { width: 100%; justify-content: center; }
}

/* Homepage */
.home-hero { background: var(--ink); color: var(--ink-fg); position: relative; overflow: hidden; }
.home-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 85% 20%, rgba(244,160,28,.14), transparent 45%),
              radial-gradient(circle at 10% 110%, rgba(255,255,255,.06), transparent 40%); }
.home-hero > .container { position: relative; }
.home-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center;
  padding-block: clamp(48px, 7vw, 96px) clamp(36px, 5vw, 64px); }
.home-hero-copy { min-width: 0; }
.home-hero .eyebrow { color: var(--accent-on-ink); }
.home-hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.03; margin-top: 18px; color: #fff; }
.home-hero h1 em { font-style: normal; color: var(--accent); }
.home-hero .lede { font-size: 1.18rem; color: var(--ink-muted); max-width: 50ch; margin-top: 22px; }
.home-hero .btn-row { margin-top: 32px; }
.home-hero .btn.ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.home-hero .btn.ghost:hover { border-color: #fff; }
.home-hero :focus-visible { outline-color: var(--accent); }

.home-process { background: var(--paper); color: var(--fg); border-radius: 16px; padding: clamp(22px, 3vw, 32px); min-width: 0;
  box-shadow: 0 30px 70px -30px rgba(0,0,0,.55); }
.home-process-title { font: 500 .8rem/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--accent-text); }
.home-process ol { list-style: none; margin-top: 18px; display: grid; }
.home-process li { position: relative; display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding-bottom: 18px; }
.home-process li:last-child { padding-bottom: 0; }
.home-process li:not(:last-child)::after { content: ""; position: absolute; left: 16px; top: 36px; bottom: 2px; width: 2px; background: var(--line); }
.home-process .n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent);
  font: 700 .95rem var(--display); }
.home-process li div { min-width: 0; padding-top: 5px; }
.home-process li b { display: block; font: 700 1.05rem var(--display); }
.home-process li span:not(.n) { display: block; color: var(--muted); font-size: .95rem; margin-top: 2px; }
.home-process-note { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .92rem; color: var(--muted); }

.home-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; border-top: 1px solid var(--ink-line); }
.home-stats > div { padding: 26px 24px; border-left: 1px solid var(--ink-line); min-width: 0; }
.home-stats > div:first-child { border-left: 0; padding-left: 0; }
.home-stats dt { font: 800 clamp(1.7rem, 3vw, 2.2rem)/1 var(--display); color: #fff; font-variant-numeric: tabular-nums; }
.home-stats dd { margin: 8px 0 0; color: var(--ink-muted); font-size: .95rem; }

.home-trusted { border-bottom: 1px solid var(--line); }
.home-trusted .container { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px 24px; padding-block: 24px; }
.home-trusted .eyebrow { color: var(--muted); }
.home-trusted ul { list-style: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px clamp(28px, 4vw, 48px); }
.home-trusted li { display: flex; align-items: center; }

.home-svc { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.home-svc a { display: grid; grid-template-columns: 52px 1fr auto; gap: 18px; align-items: start; text-decoration: none; color: var(--fg);
  border: 1px solid var(--line); border-radius: 14px; padding: 22px; background: var(--paper); min-width: 0;
  transition: border-color .15s, box-shadow .15s, transform .15s; }
.home-svc a:hover { border-color: var(--accent); box-shadow: 0 14px 34px -20px rgba(4,15,79,.35); transform: translateY(-2px); }
.home-svc .ico { width: 52px; height: 52px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-text); display: grid; place-items: center; }
.home-svc .ico svg { width: 30px; height: 30px; }
.home-svc a > div { min-width: 0; }
.home-svc h3 { font-size: 1.2rem; }
.home-svc p { color: var(--muted); font-size: .97rem; margin-top: 6px; }
.home-svc .tags { display: block; margin-top: 10px; font: .8rem var(--mono); color: var(--muted); }
.home-svc .go { font-size: 1.3rem; color: var(--accent-text); transition: transform .15s; }
.home-svc a:hover .go { transform: translateX(4px); }

.home-why { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.home-why-intro { min-width: 0; }
.home-why-intro h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 800; margin-top: 12px; }
.home-why-intro p { color: var(--muted); margin-top: 14px; max-width: 40ch; }
.home-why-intro .btn { margin-top: 24px; }
.home-why-cards { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; min-width: 0; }
.home-why-cards li { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 24px; min-width: 0; }
.home-why-cards svg { width: 34px; height: 34px; color: var(--accent-text); }
.home-why-cards h3 { font-size: 1.15rem; margin-top: 14px; }
.home-why-cards p { color: var(--muted); margin-top: 6px; font-size: .97rem; }

.home-ind { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.home-ind a { display: block; text-decoration: none; color: var(--fg); border: 1px solid var(--line); border-top: 3px solid var(--accent);
  border-radius: 12px; padding: 22px; background: var(--paper); min-width: 0; transition: background .15s; }
.home-ind a:hover { background: var(--accent-soft); }
.home-ind h3 { font-size: 1.12rem; }
.home-ind p { color: var(--muted); font-size: .95rem; margin-top: 8px; }


.home-contact { padding-block: clamp(56px, 8vw, 104px); background: var(--mist); }
.home-contact-card { display: grid; grid-template-columns: .9fr 1.1fr; border-radius: 18px; overflow: hidden; border: 1px solid var(--line);
  box-shadow: 0 30px 70px -40px rgba(4,15,79,.45); background: var(--paper); }
.home-contact-card > * { min-width: 0; }
.home-contact-info { background: var(--ink); color: var(--ink-fg); padding: clamp(28px, 4vw, 48px); }
.home-contact-info .eyebrow { color: var(--accent-on-ink); }
.home-contact-info h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 800; margin-top: 12px; color: #fff; }
.home-contact-info > p { color: var(--ink-muted); margin-top: 14px; max-width: 40ch; }
.home-contact-info .contact-list dt { color: var(--ink-muted); }
.home-contact-info address { font-style: normal; }
.home-contact-info .link-arrow { color: var(--accent-on-ink); display: inline-block; margin-top: 6px; }
.home-contact-card .form { padding: clamp(28px, 4vw, 48px); }

@media (max-width: 960px) {
  .home-hero-grid, .home-why, .home-contact-card { grid-template-columns: 1fr; }
  .home-stats { grid-template-columns: 1fr 1fr; }
  .home-stats > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .home-stats > div:nth-child(n+3) { border-top: 1px solid var(--ink-line); }
  .home-svc, .home-ind { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .home-svc, .home-ind, .home-why-cards { grid-template-columns: 1fr; }
  .home-svc a { grid-template-columns: 44px 1fr; padding: 18px; }
  .home-svc .ico { width: 44px; height: 44px; }
  .home-svc .go { display: none; }
  .home-stats > div { padding: 20px 14px; }
  .home-stats > div:nth-child(odd) { padding-left: 0; }
  .home-trusted ul { gap: 18px 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-svc a:hover, .home-svc a:hover .go { transform: none; }
}

/* Footer */
.site-footer { background: var(--ink-deep); color: var(--ink-fg); padding-top: clamp(48px, 6vw, 72px); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 36px; padding-bottom: 48px; }
.footer-grid > * { min-width: 0; }
.site-footer .logo { color: var(--ink-fg); }
.site-footer .about { color: var(--ink-muted); margin-top: 14px; max-width: 34ch; }
.site-footer h2 { font: 500 .76rem var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 14px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; color: var(--ink-fg); }
.site-footer a:hover { color: var(--accent-on-ink); }
.footer-base { border-top: 1px solid var(--ink-line); padding-block: 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--ink-muted); font-size: .9rem; }
.site-footer .ph { color: var(--fg); }

/* Responsive */
@media (max-width: 960px) {
  .page-hero .container.grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .svc-grid, .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stack-groups { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .svc-grid, .cards-2, .cards-3, .steps, .form .row { grid-template-columns: 1fr; }
  .list-rows li { grid-template-columns: 1fr; gap: 4px; }
  .footer-grid { grid-template-columns: 1fr; }
  .site-header .container > .btn { display: none; }
}
