/* ==========================================================================
   NTemOnline — ntemonline.com
   Hand-written CSS. No build step, no preprocessor, no framework.
   Theme: white base + brand red accent, near-black text.
   Mobile-first: base styles target ~375px, then 560 / 768 / 1024 / 1280 up.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* surfaces */
  --bg:            #ffffff;
  --bg-alt:        #f6f7f9;   /* alternating section band */
  --bg-deep:       #0f1420;   /* code card + other intentionally dark blocks */
  --surface:       #ffffff;   /* cards */
  --surface-2:     #fbfcfd;
  --line:          #e3e7ee;
  --line-strong:   #ccd3de;
  --line-soft:     rgba(15, 20, 32, .10);

  /* ink — all AA or better on --bg and --bg-alt */
  --text:          #0f1420;   /* 18.1:1 on white */
  --text-muted:    #4a5568;   /*  8.0:1 on white */
  --text-dim:      #667085;   /*  5.3:1 on white */
  --text-invert:   #ffffff;

  /* brand — sampled from images/logo.png */
  --brand-red:     #ed3237;   /* the logo red, exact. 4.11:1 on white, so it is
                                 used only for large display text, fills and
                                 borders — never body-size text. */
  --primary:       #d52d32;   /* same hue at 90%: 4.94:1 white / 4.61:1 band (AA) */
  --primary-dark:  #af2529;   /* hover + red text on tinted fills */
  --primary-soft:  #fdeced;   /* red-tinted plates */
  --primary-line:  #f8c9cb;
  --primary-ink:   #ffffff;   /* text on red fills */
  --ink-accent:    #111111;   /* matches the logo badge black */
  --warn:          #b45309;
  --ok:            #067a5b;

  /* Lightest stop is --primary (#d52d32) so white button labels stay at 4.94:1
     (AA) across the whole gradient. Do not lighten the first stop past that —
     the raw logo red #ed3237 drops white text to 4.11:1 and fails. */
  --grad: linear-gradient(135deg, #d52d32 0%, #c62a2f 55%, #af2529 100%);

  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(15, 20, 32, .06), 0 2px 8px rgba(15, 20, 32, .05);
  --shadow:    0 10px 30px -12px rgba(15, 20, 32, .18), 0 2px 8px rgba(15, 20, 32, .05);
  --shadow-lg: 0 24px 60px -22px rgba(15, 20, 32, .28), 0 4px 14px rgba(15, 20, 32, .06);
  --shadow-red: 0 10px 26px -12px rgba(237, 50, 55, .5);

  --ff-head: "Space Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ff-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ff-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --header-h: 68px;
  --gutter: 20px;
  --section-y: 72px;
  --maxw: 1200px;
}

/* ---------- 2. Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

img, svg { max-width: 100%; }
img { height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--ff-head);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  color: var(--text);
}
h1 { font-size: clamp(2.05rem, 6.4vw, 3.9rem); }
h2 { font-size: clamp(1.65rem, 4.4vw, 2.6rem); }
h3 { font-size: 1.12rem; letter-spacing: -.01em; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

ul, ol { margin: 0; padding: 0; list-style: none; }

code, pre { font-family: var(--ff-mono); font-size: .88em; }
code { background: var(--primary-soft); color: var(--primary-dark); padding: .12em .4em; border-radius: 5px; }

strong { color: var(--text); font-weight: 600; }

/* focus visibility — required, never removed */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--primary); color: var(--primary-ink);
  padding: 10px 16px; border-radius: 0 0 8px 8px; font-weight: 600;
  transition: top .18s ease;
}
.skip-link:focus { top: 0; color: var(--primary-ink); }

/* icon sprite host — never rendered, only referenced by <use> */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 1.25em; height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* ---------- 3. Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container-narrow { max-width: 820px; }

.section { padding-block: var(--section-y); position: relative; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }

.section-head { max-width: 720px; margin-bottom: 40px; }
.section-sub { color: var(--text-muted); font-size: 1.02rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-head);
  font-size: .78rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(6, 122, 91, .16);
}

.badge {
  display: inline-block;
  font-family: var(--ff-head); font-size: .7rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 6px;
  margin-right: 8px; vertical-align: 2px;
}
.badge-warn { background: #fff5e6; color: var(--warn); border: 1px solid #f2d5a8; }

.grid { display: grid; gap: 18px; }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--ff-head); font-weight: 600; font-size: .95rem;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease, color .16s ease;
}
.btn-lg { padding: 14px 26px; font-size: 1rem; }

.btn-primary { background: var(--grad); color: var(--primary-ink); box-shadow: var(--shadow-red); }
.btn-primary:hover { color: var(--primary-ink); transform: translateY(-2px); box-shadow: 0 16px 34px -14px rgba(237, 50, 55, .62); }
.btn-primary .icon { stroke-width: 2.1; }

.btn-ghost { background: #fff; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { color: var(--primary); background: #fff; border-color: var(--primary); transform: translateY(-2px); }

/* ---------- 5. Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-stuck {
  background: rgba(255, 255, 255, .96);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  min-height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}

.logo { display: inline-flex; align-items: center; gap: 11px; color: var(--text); }
.logo:hover { color: var(--text); }
.logo-mark {
  display: block;
  width: 38px; height: 38px;
  flex: none;
  border-radius: 50%;
}
.logo-text {
  font-family: var(--ff-head); font-weight: 700; font-size: 1.15rem; letter-spacing: -.02em;
}
.logo-text span { color: var(--primary); }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--text); cursor: pointer;
}
.nav-toggle-bars { display: block; width: 20px; height: 14px; position: relative; }
.nav-toggle-bars span {
  position: absolute; left: 0; height: 2px; width: 100%; border-radius: 2px;
  background: currentColor; transition: transform .22s ease, opacity .18s ease, top .22s ease;
}
.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 6px; }
.nav-toggle-bars span:nth-child(3) { top: 12px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* mobile drawer */
.nav {
  position: fixed; inset: var(--header-h) 0 auto 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 18px var(--gutter) 26px;
  display: grid; gap: 6px;
  transform: translateY(-14px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
  box-shadow: var(--shadow);
}
.nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }

.nav-list { display: grid; gap: 2px; }
.nav-list a {
  display: block; padding: 12px 12px;
  border-radius: 10px;
  color: var(--text-muted);
  font-family: var(--ff-head); font-weight: 500;
}
.nav-list a:hover, .nav-list a.is-active { color: var(--primary); background: var(--primary-soft); }

.nav-cta { margin-top: 10px; }

/* ---------- 6. Hero ---------- */
.hero { position: relative; padding-block: 56px 64px; overflow: hidden; }
.hero-glow {
  position: absolute; inset: -30% -20% auto -20%; height: 780px; z-index: 0;
  background:
    radial-gradient(42% 45% at 20% 30%, rgba(237, 50, 55, .15) 0%, transparent 70%),
    radial-gradient(38% 40% at 84% 16%, rgba(237, 50, 55, .09) 0%, transparent 72%),
    radial-gradient(50% 50% at 55% 80%, rgba(27, 36, 52, .06) 0%, transparent 75%);
  filter: blur(18px);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(15, 20, 32, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 20, 32, .05) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(70% 60% at 50% 35%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 35%, #000 0%, transparent 78%);
}
.hero-inner { position: relative; z-index: 1; display: grid; gap: 44px; }

.hero h1 { margin-bottom: 18px; }
.hero h1 .hl { color: var(--brand-red); } /* large text only — see --brand-red note */
.hero .lede { font-size: 1.05rem; color: var(--text-muted); max-width: 620px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.hero-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 14px; margin: 34px 0 0;
  padding-top: 24px; border-top: 1px solid var(--line);
}
.hero-stats dt { font-family: var(--ff-head); font-size: 1.28rem; font-weight: 700; color: var(--text); }
.hero-stats dd { margin: 2px 0 0; font-size: .88rem; color: var(--text-dim); }

/* hero code visual — intentionally dark against the white page */
.hero-visual { position: relative; }
.code-card {
  background: linear-gradient(180deg, #182136, var(--bg-deep));
  border: 1px solid #263047;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.code-card-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid #263047;
  background: rgba(255, 255, 255, .04);
}
.code-card-bar span { width: 10px; height: 10px; border-radius: 50%; background: #334155; }
.code-card-bar span:nth-child(1) { background: #f87171; }
.code-card-bar span:nth-child(2) { background: #fbbf24; }
.code-card-bar span:nth-child(3) { background: #34d399; }
.code-card-bar em {
  margin-left: auto; font-style: normal;
  font-family: var(--ff-mono); font-size: .74rem; color: #94a3b8;
}
pre.code {
  margin: 0; padding: 18px 16px 22px;
  overflow-x: auto;
  font-size: .78rem; line-height: 1.75;
  color: #dbe3f4;
  tab-size: 2;
}
pre.code code { background: none; padding: 0; color: inherit; }
.c-key  { color: #ff8f8f; }
.c-fn   { color: #7dd3fc; }
.c-type { color: #fcd34d; }
.c-num  { color: #fca5a5; }
.c-com  { color: #8494ad; font-style: italic; }

.float-chip {
  display: none;
  align-items: center; gap: 8px;
  position: absolute;
  padding: 9px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: .8rem; font-weight: 500; color: var(--text);
  box-shadow: var(--shadow);
}
.float-chip .icon { width: 1.05em; height: 1.05em; color: var(--primary); stroke-width: 2.2; }
/* Chips straddle the card's corners so they never cover the code itself. */
.chip-1 { top: -20px; left: -22px; }
.chip-2 { bottom: -20px; right: -18px; }

/* ---------- 7. Premium solutions (ready-to-launch products) ---------- */
.solutions-intro {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  margin-top: 18px;
}
.solutions-intro .pill-note {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: var(--radius-pill);
  background: var(--primary-soft); border: 1px solid var(--primary-line);
  color: var(--primary-dark); font-size: .86rem; font-weight: 500;
}
.solutions-intro .pill-note .icon { width: 17px; height: 17px; stroke-width: 2; }

.grid-solutions { gap: 20px; }

.solution-card {
  position: relative;
  display: flex; flex-direction: column;
  padding: 26px 22px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.solution-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: var(--grad);
}
.solution-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--primary-line); }

.solution-top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.solution-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; flex: none;
  border-radius: 15px;
  background: var(--grad);
  color: var(--primary-ink);
  box-shadow: var(--shadow-red);
}
.solution-icon .icon { width: 26px; height: 26px; stroke-width: 1.8; }
.solution-card h3 { margin: 0; font-size: 1.24rem; }
.solution-kind {
  display: block; margin-top: 2px;
  font-family: var(--ff-head); font-size: .72rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim);
}
.solution-card > p { color: var(--text-muted); font-size: .96rem; }

.solution-features { display: grid; gap: 9px; margin: 16px 0 18px; }
.solution-features li {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: .92rem; color: var(--text-muted);
}
.solution-features .icon { width: 17px; height: 17px; margin-top: 3px; color: var(--primary); stroke-width: 2.4; }

.solution-foot {
  margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
}
.solution-meta {
  font-family: var(--ff-mono); font-size: .74rem; letter-spacing: .02em;
  color: var(--text-dim); text-transform: uppercase;
}
.solution-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--ff-head); font-weight: 600; font-size: .9rem; color: var(--primary);
}
.solution-link .icon { width: 17px; height: 17px; stroke-width: 2.2; transition: transform .16s ease; }
.solution-link:hover .icon { transform: translateX(3px); }

.solutions-foot {
  margin-top: 22px; padding: 20px 22px;
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--text-muted); font-size: .94rem;
}
.solutions-foot strong { color: var(--text); }

/* ---------- 8. Cards / services ---------- */
.card {
  position: relative;
  padding: 24px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--primary-line); box-shadow: var(--shadow); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-muted); font-size: .94rem; margin: 0; }

.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-bottom: 16px;
  border-radius: 13px;
  background: var(--primary-soft);
  border: 1px solid var(--primary-line);
  color: var(--primary);
}
.card-icon .icon { width: 22px; height: 22px; }

.care-strip {
  display: grid; gap: 16px; align-items: center;
  margin-top: 22px; padding: 24px 22px;
  background: var(--ink-accent);
  border: 1px solid var(--ink-accent);
  border-radius: var(--radius);
}
.care-strip h3 { margin-bottom: 6px; color: #fff; }
.care-strip p { color: #c3cbdb; font-size: .94rem; margin: 0; }
.care-icon {
  display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center;
  border-radius: 12px; background: rgba(255, 255, 255, .12); color: #ff9095;
  border: 1px solid rgba(255, 255, 255, .18);
}
.care-icon .icon { width: 22px; height: 22px; }
.care-strip .btn { justify-self: start; }
.care-strip .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.care-strip .btn-ghost:hover { background: #fff; color: var(--ink-accent); border-color: #fff; }

/* ---------- 9. Why us ---------- */
.why-item {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.why-item:hover { border-color: var(--primary-line); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.why-item h3 { margin-bottom: 8px; }
.why-item p { color: var(--text-muted); font-size: .94rem; margin: 0; }
.why-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; margin-bottom: 14px;
  border-radius: var(--radius-pill);
  background: var(--primary-soft);
  border: 1px solid var(--primary-line);
  color: var(--primary);
}
.why-icon .icon { width: 20px; height: 20px; }

/* ---------- 10. Process timeline ---------- */
.timeline { position: relative; display: grid; gap: 18px; }
.timeline::before {
  content: ""; position: absolute; left: 19px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(180deg, var(--primary), var(--primary-line), transparent);
}
.timeline-item { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 16px; }
.timeline-num {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--primary);
  font-family: var(--ff-head); font-size: .82rem; font-weight: 700; color: var(--primary);
  position: relative; z-index: 1;
}
.timeline-body {
  padding: 20px 20px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.timeline-body h3 { margin-bottom: 8px; }
.timeline-body p { color: var(--text-muted); font-size: .94rem; }
.timeline-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; margin-bottom: 12px;
  border-radius: 11px; background: var(--primary-soft); color: var(--primary);
  border: 1px solid var(--primary-line);
}
.timeline-icon .icon { width: 19px; height: 19px; }
.timeline-meta {
  margin: 12px 0 0; padding-top: 12px; border-top: 1px dashed var(--line-soft);
  font-family: var(--ff-mono); font-size: .76rem; color: var(--text-dim) !important;
  text-transform: uppercase; letter-spacing: .04em;
}

/* ---------- 11. Tech stack ---------- */
.stack-strip { display: flex; flex-wrap: wrap; gap: 10px; }
.stack-strip li {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 15px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-family: var(--ff-head); font-size: .86rem; font-weight: 500; color: var(--text);
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.stack-strip li:hover { border-color: var(--primary-line); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.stack-dot {
  width: 10px; height: 10px; border-radius: 3px;
  background: var(--c, var(--primary));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c, var(--primary)) 18%, transparent);
}

/* ---------- 12. Portfolio ---------- */
.work-card {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.work-card:hover { transform: translateY(-4px); border-color: var(--primary-line); box-shadow: var(--shadow); }
.work-thumb { padding: 14px; }
.work-thumb svg { display: block; width: 100%; height: auto; }
.work-thumb-1 { background: linear-gradient(135deg, #c62a2f, #6d1518); }
.work-thumb-2 { background: linear-gradient(135deg, #191919, #5e1417); }
.work-thumb-3 { background: linear-gradient(135deg, #ed3237, #8c1c20); }
.work-thumb-4 { background: linear-gradient(135deg, #262626, #c62a2f); }
.work-body { padding: 20px 20px 22px; }
.work-kind {
  font-family: var(--ff-head); font-size: .74rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--primary);
  margin-bottom: 8px;
}
.work-card h3 { margin-bottom: 8px; font-size: 1.22rem; }
.work-result { color: var(--text-muted); font-size: .94rem; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.tags li {
  padding: 4px 10px; border-radius: 6px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  font-family: var(--ff-mono); font-size: .72rem; color: var(--text-muted);
}
.work-note { margin-top: 26px; color: var(--text-dim); font-size: .94rem; }

/* ---------- 13. Testimonials ---------- */
.quote-card {
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  padding: 26px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.quote-card::before {
  content: "“";
  position: absolute; top: 4px; right: 18px;
  font-family: var(--ff-head); font-size: 4.6rem; line-height: 1;
  color: var(--primary-soft);
}
.quote-card blockquote { margin: 0; position: relative; }
.quote-card blockquote p { color: var(--text); font-size: 1.02rem; }
.quote-meta { display: flex; align-items: center; gap: 12px; }
.quote-meta span:last-child { display: grid; }
.quote-meta strong { font-family: var(--ff-head); font-size: .95rem; }
.quote-meta em { font-style: normal; font-size: .82rem; color: var(--text-dim); }
.avatar {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--grad); color: var(--primary-ink);
  font-family: var(--ff-head); font-weight: 700; font-size: .85rem;
  flex: none;
}

/* ---------- 14. FAQ ---------- */
.faq-list { display: grid; gap: 12px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color .2s ease;
}
.faq-item[open] { border-color: var(--primary-line); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 18px 20px;
  cursor: pointer;
  font-family: var(--ff-head); font-weight: 600; font-size: 1.02rem; color: var(--text);
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--primary); }
.faq-chev { width: 20px; height: 20px; color: var(--primary); transition: transform .22s ease; }
.faq-item[open] .faq-chev { transform: rotate(180deg); }
.faq-answer { padding: 0 20px 20px; color: var(--text-muted); font-size: .96rem; }
.faq-answer p:first-child { margin-top: 0; }

/* ---------- 15. CTA banner ---------- */
.cta-banner {
  position: relative;
  padding-block: 56px;
  background: var(--ink-accent);
  overflow: hidden;
}
.cta-banner::before {
  content: ""; position: absolute; inset: auto -10% -60% -10%; height: 340px;
  background: radial-gradient(50% 60% at 50% 50%, rgba(237, 50, 55, .5), transparent 70%);
  filter: blur(20px); pointer-events: none;
}
.cta-inner { position: relative; display: grid; gap: 24px; align-items: center; }
.cta-inner h2 { margin-bottom: 10px; color: #fff; }
.cta-inner p { color: #c3cbdb; max-width: 520px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-banner .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }
.cta-banner .btn-ghost:hover { background: #fff; color: var(--ink-accent); border-color: #fff; }

/* ---------- 16. Contact ---------- */
.contact-grid { display: grid; gap: 36px; }

.contact-list { display: grid; gap: 16px; margin-top: 28px; }
.contact-list li { display: flex; align-items: flex-start; gap: 13px; }
.contact-list strong { display: block; font-family: var(--ff-head); font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim); font-weight: 700; }
.contact-list a, .contact-list span:not(.contact-icon) { color: var(--text); font-size: .98rem; }
.contact-list a:hover { color: var(--primary); }
.contact-list em { font-style: normal; color: var(--text-dim); font-size: .85rem; }
.contact-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; flex: none;
  border-radius: 12px;
  background: var(--primary-soft);
  border: 1px solid var(--primary-line);
  color: var(--primary);
}
.contact-icon .icon { width: 20px; height: 20px; }

.socials { display: flex; gap: 10px; margin-top: 26px; }
.socials a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line-strong);
  color: var(--text-muted);
  transition: color .18s ease, border-color .18s ease, transform .18s ease, background .18s ease;
}
.socials a:hover { color: var(--primary-ink); background: var(--primary); border-color: var(--primary); transform: translateY(-2px); }

/* form */
.form-wrap {
  padding: 24px 20px 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.contact-form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label {
  font-family: var(--ff-head); font-size: .86rem; font-weight: 600; color: var(--text);
}
.req { color: var(--primary); }
.optional { color: var(--text-dim); font-weight: 400; }

.field input, .field textarea, .field select {
  width: 100%;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--ff-body); font-size: .96rem;
  transition: border-color .16s ease, box-shadow .16s ease;
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 128px; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: #98a2b3; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: #aab4c4; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(213, 45, 50, .17);
}
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }

.select-wrap { position: relative; }
.select-wrap select { padding-right: 42px; cursor: pointer; }
.select-chev {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--text-dim); pointer-events: none;
}

.hint { margin: 0; font-size: .8rem; color: var(--text-dim); }
.error { margin: 0; font-size: .82rem; color: var(--primary-dark); min-height: 0; }
.error:empty { display: none; }
.field.has-error input, .field.has-error textarea, .field.has-error select {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(213, 45, 50, .15);
}

/* honeypot: off-screen rather than display:none so bots still fill it */
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.btn-submit { width: 100%; margin-top: 4px; position: relative; }
.btn-submit[disabled] { opacity: .8; cursor: progress; transform: none; }
.spinner { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: spin .7s linear infinite; }
.btn-submit.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-status { margin: 0; font-size: .92rem; padding: 12px 14px; border-radius: var(--radius-sm); display: none; }
.form-status.is-success { display: block; background: #e7f6f1; border: 1px solid #a7ddcd; color: #05614a; }
.form-status.is-error   { display: block; background: var(--primary-soft); border: 1px solid var(--primary-line); color: #971f22; }
.form-fineprint { margin: 0; font-size: .8rem; color: var(--text-dim); }

/* ---------- 17. Footer ---------- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding-top: 52px; }
.footer-grid { display: grid; gap: 34px; padding-bottom: 40px; }
.footer-brand .logo-mark { width: 44px; height: 44px; }
.footer-brand .logo-text { font-size: 1.24rem; }
.footer-brand p { color: var(--text-muted); font-size: .94rem; margin-top: 14px; max-width: 360px; }
.footer-col h2 {
  font-size: .82rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 14px;
}
.footer-col ul { display: grid; gap: 9px; }
.footer-col a { color: var(--text-muted); font-size: .94rem; }
.footer-col a:hover { color: var(--primary); }
/* the CTA is an <a> inside .footer-col, so it needs to win back the button colour */
.footer-col a.btn-primary, .footer-col a.btn-primary:hover { color: var(--primary-ink); font-size: .95rem; }
.footer-cta p { color: var(--text-muted); font-size: .94rem; }
.footer-cta .btn { margin-top: 6px; }
.footer-contact { margin-top: 14px; }
.footer-contact a { font-family: var(--ff-head); font-weight: 600; }

.footer-bottom {
  display: grid; gap: 6px;
  padding-block: 20px;
  border-top: 1px solid var(--line);
}
.footer-bottom p { margin: 0; font-size: .84rem; color: var(--text-dim); }

/* ---------- 18. Back to top ---------- */
.to-top {
  position: fixed; right: 16px; bottom: 16px; z-index: 90;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: #fff; border: 1px solid var(--line-strong); color: var(--text);
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s, border-color .2s ease, color .2s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { color: var(--primary); border-color: var(--primary); }
.to-top .icon { transform: rotate(180deg); }

/* ---------- 19. Scroll reveal ---------- */
/* Only hidden when JS is present (html.js is set by the inline head script),
   so a no-JS visitor always sees every section. */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; will-change: opacity, transform; }
html.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 20. Breakpoints ---------- */
@media (min-width: 560px) {
  :root { --gutter: 24px; }
  .grid-services, .grid-why, .grid-work, .grid-quotes, .grid-solutions { grid-template-columns: repeat(2, 1fr); }
  .care-strip { grid-template-columns: auto 1fr auto; }
  .footer-bottom { grid-template-columns: 1fr auto; align-items: center; }
  .btn-submit { width: auto; justify-self: start; padding-inline: 34px; }
}

@media (min-width: 768px) {
  :root { --section-y: 96px; --gutter: 32px; }
  .hero { padding-block: 72px 88px; }
  .hero-stats { gap: 24px; }
  .form-wrap { padding: 32px 30px 34px; }
  .timeline { grid-template-columns: repeat(2, 1fr); gap: 22px 26px; }
  .timeline::before { display: none; }
  .cta-inner { grid-template-columns: 1.35fr auto; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  pre.code { font-size: .82rem; }
  .solution-card { padding: 30px 26px 26px; }
}

@media (min-width: 1024px) {
  :root { --header-h: 76px; }

  /* full desktop nav — drawer styles reset */
  .nav-toggle { display: none; }
  .nav {
    position: static; inset: auto;
    display: flex; align-items: center; gap: 22px;
    background: none; border: none; box-shadow: none; padding: 0;
    max-height: none; overflow: visible;
    opacity: 1; visibility: visible; transform: none; pointer-events: auto;
  }
  .nav-list { display: flex; align-items: center; gap: 2px; }
  .nav-list a { padding: 8px 10px; font-size: .9rem; border-radius: 8px; }
  .nav-cta { margin-top: 0; padding: 10px 18px; font-size: .9rem; }

  .hero-inner { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 56px; }
  .float-chip { display: inline-flex; }
  .grid-services { grid-template-columns: repeat(3, 1fr); }
  .grid-why { grid-template-columns: repeat(3, 1fr); }
  .grid-work { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .grid-quotes { grid-template-columns: repeat(3, 1fr); }
  .timeline { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: start; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr .9fr 1fr; gap: 30px; }
  .footer-brand { grid-column: auto; }
  .to-top { right: 26px; bottom: 26px; }
}

@media (min-width: 1280px) {
  .grid { gap: 22px; }
  .grid-services { grid-template-columns: repeat(4, 1fr); }
  .hero .lede { font-size: 1.12rem; }
}

/* ---------- 21. Motion / print / high contrast ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html.js .reveal { opacity: 1; transform: none; }
}

@media (prefers-contrast: more) {
  :root { --text-muted: #33405a; --text-dim: #414d63; --line: #b9c1cf; --line-strong: #8d97a8; }
}

@media print {
  .site-header, .to-top, .hero-glow, .form-wrap, .socials { display: none !important; }
  body { background: #fff; color: #000; }
  .section, .hero { padding-block: 12px; }
  .cta-banner, .care-strip { background: #fff !important; border: 1px solid #ccc; }
  .cta-inner h2, .care-strip h3 { color: #000; }
  .cta-inner p, .care-strip p { color: #333; }
  h1, h2, h3 { color: #000; }
  a { color: #000; text-decoration: underline; }
  .solution-card, .card, .why-item, .timeline-body, .work-card, .quote-card, .faq-item { box-shadow: none; }
}
