/* ==========================================================================
   Amana Solutions — styles
   Rebrand by editing the tokens in :root; every component reads from them.
   ========================================================================== */

:root {
  /* Color. See brand.html for the full palette and the rules for using it. */
  --canvas: #ede8df;        /* parchment: page background behind the panels */
  --surface: #fdfbf7;       /* cream */
  --surface-alt: #f6f2ea;   /* warm off-white */
  --ink: #1b4332;           /* forest green: dark panels, headings, primary text */
  --ink-2: #2d5a45;         /* lighter green for hover states */
  --ink-3: #15362a;         /* darker green for pressed states */
  --text: #4a5a52;          /* body text, green-gray */
  --muted: #6f665a;         /* warm gray for labels and captions (AA on cream) */
  --line: #e8e4dc;
  --accent: #c4a35a;        /* antique gold: buttons, rules, highlights; never body text */
  --accent-hover: #b8963e;
  --accent-deep: #8a6d2a;   /* gold as text on light surfaces */
  --accent-pale: #f5efe0;   /* gold tint */
  --accent-light: #e8d5a3;  /* gold as text on dark green */
  --sage: #e4efe7;          /* green tint, for cards */
  --sand: #f3ebdd;          /* warm sand tint */
  --olive: #e9ead9;         /* soft olive tint */
  --rose: #f1e6e0;          /* dusty rose tint */
  --danger: #8a3b2e;        /* error text, on rose */

  /* Type */
  --font-display: "Cormorant Garamond", "Amiri", Georgia, serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-arabic: "Amiri", "Noto Naskh Arabic", "Times New Roman", serif;
  --font-arabic-display: "Reem Kufi", "Amiri", sans-serif;

  /* Shape and space */
  --r-lg: 18px;
  --r-md: 12px;
  --gutter: clamp(12px, 2vw, 24px);
  --pad: clamp(20px, 4vw, 52px);
  --stack: 20px;
  --header-offset: 120px;   /* sticky nav height + its top margin + stack gap */
  --shadow-float: 0 24px 60px -20px rgba(27, 67, 50, 0.45);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

::selection { background: var(--accent-pale); color: var(--ink); }

/* ---------- Base ---------- */

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-offset); }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.panel-ink :focus-visible { outline-color: var(--accent); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 12px 18px; border-radius: var(--r-md);
  background: var(--ink); color: var(--surface); text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* ---------- Layout ---------- */

.shell {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px var(--gutter) var(--gutter);
  display: flex;
  flex-direction: column;
  gap: var(--stack);
}

main { display: flex; flex-direction: column; gap: var(--stack); }

.panel {
  position: relative;
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: var(--pad);
}
.panel-alt { background: var(--surface-alt); }
.panel-ink { background: var(--ink); color: var(--surface); }
.panel-accent { background: var(--accent-pale); }

/* ---------- Type ---------- */

.eyebrow {
  font: 500 13px/1.4 var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.panel-ink .eyebrow { color: var(--accent-light); }

/* Headings are set in Cormorant Garamond, a calligraphic serif that sits
   naturally beside the Arabic. Medium weight; the light cuts fade on screen. */
.display-1, .display-2, .display-3, .title {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
}
.display-1 { font-size: clamp(50px, 6.2vw, 80px); line-height: 1.02; letter-spacing: -0.015em; }
.display-2 { font-size: clamp(40px, 5vw, 68px); line-height: 1.04; letter-spacing: -0.015em; }
.display-3 { font-size: clamp(28px, 3vw, 40px); line-height: 1.18; letter-spacing: -0.01em; }
.title { font-size: 25px; line-height: 1.25; letter-spacing: 0; }
.panel-ink .display-1, .panel-ink .display-2, .panel-ink .title { color: var(--surface); }
em, .accent-italic { font-style: italic; font-weight: 500; }
.display-1 em, .display-2 em { color: var(--accent-light); }
.panel:not(.panel-ink) .display-2 em, .panel:not(.panel-ink) .display-3 em { color: var(--accent-deep); }

.lead { font-size: 18px; line-height: 1.6; }

/* Arabic: the name itself, أمانة */
.ar { font-family: var(--font-arabic); font-size: 1.3em; line-height: 1; unicode-bidi: isolate; }
.arabic-word {
  font-family: var(--font-arabic);
  font-size: clamp(72px, 9vw, 120px);
  line-height: 1;
  color: var(--ink);
  text-align: left;
}
.definition .eyebrow { margin-top: 12px; }
.intro-top .definition .display-3 { max-width: 25em; }

.value-word {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(27px, 2.5vw, 32px);
  line-height: 1.18;
  color: var(--ink);
}
.values .stat > div > p + p { margin-top: 8px; font-size: 15px; color: var(--muted); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 28px;
  border: 1.5px solid transparent;
  border-radius: 14px;
  font: 600 15px/1 var(--font-body);
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn .arrow { width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.btn-accent { background: var(--accent); color: var(--ink-3); box-shadow: 0 4px 16px rgba(196, 163, 90, 0.25); }
.btn-accent:hover { background: var(--accent-hover); box-shadow: 0 6px 20px rgba(196, 163, 90, 0.35); }
.btn-ink { background: var(--ink); color: var(--surface); box-shadow: 0 4px 16px rgba(27, 67, 50, 0.18); }
.btn-ink:hover { background: var(--ink-2); box-shadow: 0 6px 20px rgba(27, 67, 50, 0.24); }
.btn-ink:active { background: var(--ink-3); }
.btn-ghost { border-color: rgba(253, 251, 247, 0.35); color: var(--surface); }
.btn-ghost:hover { border-color: var(--accent-light); color: var(--accent-light); background: rgba(253, 251, 247, 0.06); }
.btn-outline { border-color: var(--line); color: var(--text); }
.btn-outline:hover { border-color: var(--ink-2); color: var(--ink); }
.btn-sm { min-height: 48px; padding: 0 22px; }

/* ---------- Header / nav ---------- */
/* A cream bar framed like engraved stationery: a gold hairline border with a
   fainter rule inset inside it. Once the page scrolls it frosts and slims
   (.is-scrolled, set in main.js). */

.site-header { position: sticky; top: 16px; z-index: 50; }

.nav {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 84px;
  padding: 12px 14px 12px 26px;
  border: 1px solid rgba(196, 163, 90, 0.38);
  background: linear-gradient(180deg, #fffdfa 0%, var(--surface) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 12px 32px -22px rgba(27, 67, 50, 0.35);
  transition: min-height 0.35s var(--ease), box-shadow 0.35s;
}
.nav::before {
  content: "";
  position: absolute; inset: 5px;
  border: 1px solid rgba(196, 163, 90, 0.16);
  border-radius: calc(var(--r-lg) - 5px);
  pointer-events: none;
}
.site-header.is-scrolled .nav {
  min-height: 72px;
  background: rgba(253, 251, 247, 0.95);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 18px 40px -20px rgba(27, 67, 50, 0.45);
}

/* Lockup: mark tile | hairline | "Amana" over tracked "SOLUTIONS" */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  text-decoration: none;
  justify-self: start;
}
.brand svg { width: 38px; height: 38px; flex: none; }
.brand-name {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-left: 14px;
  border-left: 1px solid rgba(196, 163, 90, 0.5);
}
.brand-word { font: 600 30px/0.85 var(--font-display); letter-spacing: 0.005em; }
.brand-sub {
  font: 500 9.5px/1 var(--font-body);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.nav-menu { display: contents; }

.nav-links { display: flex; align-items: center; gap: 40px; justify-self: center; }
.nav-links li { position: relative; }
/* A small gold diamond between links */
.nav-links li + li::before {
  content: "";
  position: absolute; left: -20px; top: 50%;
  width: 4px; height: 4px;
  background: var(--accent);
  opacity: 0.75;
  transform: translate(-50%, -50%) rotate(45deg);
}
.nav-links a {
  position: relative;
  display: inline-block;
  padding: 10px 0;
  font: 500 12.5px/1 var(--font-body);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}
/* Gold underline on hover and for the section in view (.is-active, main.js) */
.nav-links a::after {
  content: "";
  position: absolute; left: 0; right: 0.18em; bottom: 2px;
  height: 1px; background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.35s var(--ease);
}
.nav-links a:hover, .nav-links a.is-active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); }

.nav-cta { justify-self: end; }
.btn-nav {
  min-height: 50px;
  padding: 0 20px 0 24px;
  background: var(--ink);
  color: var(--surface);
  box-shadow: 0 8px 20px -10px rgba(27, 67, 50, 0.6);
}
.btn-nav:hover { background: var(--ink-2); }
.btn-nav:active { background: var(--ink-3); }
.btn-nav .arrow { color: var(--accent-light); }

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 48px; height: 48px;
  border: 1px solid rgba(196, 163, 90, 0.45);
  border-radius: var(--r-md);
  background: transparent;
  cursor: pointer;
}
.nav-toggle .bar { width: 18px; height: 1.5px; border-radius: 2px; background: var(--ink); transition: transform 0.25s var(--ease); }
.nav-toggle[aria-expanded="true"] .bar-1 { transform: translateY(3.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar-2 { transform: translateY(-3.25px) rotate(-45deg); }

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 40px;
  min-height: min(720px, calc(100vh - 140px));
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  border-radius: inherit;
  background:
    radial-gradient(55% 65% at 80% 62%, rgba(196, 163, 90, 0.26), transparent 70%),
    radial-gradient(40% 50% at 8% 0%, rgba(64, 145, 108, 0.18), transparent 70%);
}
.not-found { min-height: min(640px, calc(100vh - 32px)); }

.hero-copy { display: flex; flex-direction: column; justify-content: space-between; gap: 48px; padding-block: 4px; }
.hero h1 { margin-top: 22px; }
.hero .lead { margin-top: 24px; max-width: 30em; color: rgba(253, 251, 247, 0.76); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

.proof { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.proof p { font-size: 15px; color: rgba(253, 251, 247, 0.7); }
.proof strong { color: var(--surface); font-weight: 500; }

.avatars { display: flex; }
.avatar {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 3px solid var(--ink);
  font: 600 14px/1 var(--font-body);
  color: var(--ink);
}
.avatars .avatar + .avatar { margin-left: -12px; }
.avatar-count { background: var(--surface); font-size: 13px; }

/* Hero illustration: the mark, large, over the Kufic lattice. The lattice is
   the same unit-grid language as the logo: one-unit strokes and one-unit holes,
   light gold at low opacity on the deeper green. */
.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 460px;
  padding: 40px;
  border-radius: var(--r-md);
  background-color: var(--ink-3);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cg fill='%23e8d5a3' fill-opacity='.14'%3E%3Cpath fill-rule='evenodd' d='M4 4h12v12H4zM8 8h4v4H8z'/%3E%3Cpath d='M20 4h4v12h-4zM28 12h16v4H28zM40 4h4v4h-4zM4 24h4v20H4zM12 40h12v4H12zM28 24h4v20h-4zM36 24h4v4h-4zM36 32h8v12h-8zM40 36h-2v6h2z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 96px 96px;
  background-position: center;
  overflow: hidden;
  isolation: isolate;
}
/* Soft pool of darker green behind the mark so it reads cleanly over the lattice */
.hero-art::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(closest-side at 50% 50%, var(--ink-3) 30%, rgba(21, 54, 42, 0) 100%);
}
.hero-mark { display: grid; justify-items: center; gap: 28px; }
.hero-mark svg { width: min(100%, 320px); filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.35)); }
.hero-mark p { font-size: 14px; letter-spacing: 0.03em; color: rgba(253, 251, 247, 0.7); text-align: center; }
.hero-mark .ar { color: var(--accent-light); }

/* ---------- Intro + stats ---------- */

.intro { display: flex; flex-direction: column; gap: clamp(48px, 8vw, 110px); }
.intro-top { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.intro-top .display-3 { margin-top: 18px; max-width: 21em; }
.sectors { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.chips { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.chip {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 14px;
  color: var(--ink);
}

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.stat {
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  min-height: 190px;
  padding: 24px;
  border-radius: var(--r-lg);
  background: var(--surface);
}
.stat .eyebrow { max-width: 16em; color: var(--text); }
.stat-value { font-family: var(--font-display); font-weight: 500; font-size: clamp(46px, 4.4vw, 62px); line-height: 1; letter-spacing: -0.01em; color: var(--ink); }

/* ---------- Approach ---------- */

.approach { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px clamp(24px, 4vw, 56px); }
.approach-copy { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding-block: 4px; }
.approach-copy h2 { margin-top: 18px; max-width: 11em; }
.approach-copy p { max-width: 32em; }

.steps { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: var(--r-md); background: var(--surface-alt); }
.step { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; padding: 22px; border-radius: var(--r-md); background: var(--surface); }
.step-num {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent-pale); color: var(--ink);
  font: 500 14px/1 var(--font-body); letter-spacing: 0.04em;
}
.step:nth-child(2) .step-num { background: var(--sage); }
.step:nth-child(3) .step-num { background: var(--sand); }
.step .title { margin-bottom: 6px; }
.step p { font-size: 15px; }
.steps-foot { display: flex; justify-content: space-between; gap: 12px; padding: 6px 6px 2px; font-size: 14px; color: var(--muted); }
.steps-foot strong { color: var(--ink); font-weight: 500; }

/* ---------- Section heading (shared) ---------- */

.section-head {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 40px;
  align-items: end;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.section-head h2 { margin-top: 18px; }
.section-head > p { justify-self: end; max-width: 30em; }
.section-head > .btn { justify-self: end; }

/* ---------- What we do: three ways we help ---------- */

.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.mini {
  display: flex; flex-direction: column; gap: 20px;
  padding: 24px;
  border-radius: var(--r-lg);
  background: var(--surface-alt);
  transition: transform 0.25s var(--ease), background-color 0.25s;
}
.mini:hover { transform: translateY(-3px); background: var(--accent-pale); }
.mini-icon {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 13px;
  background: var(--surface); color: var(--ink);
}
.mini-icon svg { width: 22px; height: 22px; }
.mini .title { font-size: 23px; }
.mini p { margin-top: 8px; font-size: 15px; }

/* ---------- Contact ---------- */

.contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px clamp(24px, 5vw, 80px); }
.contact-copy { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.contact-copy h2 { margin-top: 18px; max-width: 11em; }
.contact-copy .lead { margin-top: 20px; max-width: 28em; color: var(--ink-2); }

.contact-form { display: grid; gap: 16px; padding: clamp(20px, 3vw, 32px); border-radius: var(--r-lg); background: var(--surface); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; font-weight: 500; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-alt);
  font: inherit;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.field select {
  appearance: none;
  padding-right: 44px;
  background: var(--surface-alt) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%231b4332' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center / 16px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--ink);
  background-color: var(--surface);
  box-shadow: 0 0 0 4px rgba(196, 163, 90, 0.35);
}
.contact-form .btn { width: 100%; margin-top: 4px; }
.contact-form .btn:disabled { cursor: progress; opacity: 0.75; transform: none; }
.form-note { font-size: 14px; color: var(--muted); }
.form-note.is-success { padding: 12px 14px; border-radius: 10px; background: var(--sage); color: var(--ink); font-size: 15px; }
.form-note.is-error { padding: 12px 14px; border-radius: 10px; background: var(--rose); color: var(--danger); font-size: 15px; }
/* Spam trap for the contact form: kept off screen and out of the tab order */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile:empty { display: none; }

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

.site-footer { display: flex; flex-direction: column; gap: clamp(48px, 7vw, 80px); overflow: hidden; container-type: inline-size; }
.footer-top { display: grid; grid-template-columns: 2fr repeat(2, minmax(0, 1fr)); gap: 40px; }
.site-footer .brand { color: var(--surface); }
.site-footer .brand-name { border-left-color: rgba(232, 213, 163, 0.35); }
.site-footer .brand-sub { color: var(--accent-light); }
.footer-brand p { max-width: 24em; margin: 20px 0 28px; color: rgba(253, 251, 247, 0.65); }
.footer-col .eyebrow { margin-bottom: 18px; }
.footer-col li + li { margin-top: 12px; }
.footer-col a { color: rgba(253, 251, 247, 0.85); text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent-light); }

/* The name in both scripts, sized so the pair spans the footer edge to edge
   (Reem Kufi "أمانة" ≈ 1.50em wide, Cormorant "Amana" ≈ 2.75em wide) */
.wordmark {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.15em;
  margin: 0 -0.02em -0.08em;
  font-size: clamp(56px, 18vw, 240px);
  font-size: 22.5cqi;
  line-height: 0.9;
  background: linear-gradient(180deg, var(--accent-light) 10%, rgba(232, 213, 163, 0.05) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
}
.wordmark [lang="ar"] { font-family: var(--font-arabic-display); }
.wordmark .latin { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.02em; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(253, 251, 247, 0.12);
  font-size: 14px; color: rgba(253, 251, 247, 0.55);
}
.footer-bottom a { color: inherit; text-decoration: none; }
.footer-bottom a:hover { color: var(--surface); }

/* ---------- Scroll reveal (only when JS is running) ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--delay, 0s);
}
.js .reveal.is-in { opacity: 1; transform: none; }

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

@media (max-width: 1100px) {
  .nav-links { gap: 28px; }
  .nav-links li + li::before { left: -14px; }
}

@media (max-width: 960px) {
  :root { --header-offset: 106px; }

  .nav { grid-template-columns: 1fr auto; min-height: 70px; padding: 10px 10px 10px 18px; }
  .site-header.is-scrolled .nav { min-height: 64px; }
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    display: none;
    position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    flex-direction: column;
    gap: 8px;
    padding: 12px 16px 16px;
    border-radius: var(--r-lg);
    border: 1px solid rgba(196, 163, 90, 0.38);
    background: var(--surface);
    box-shadow: var(--shadow-float);
  }
  .nav-menu.is-open { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links li + li::before { display: none; }
  .nav-links a { display: block; padding: 18px 4px; border-bottom: 1px solid var(--line); font-size: 13px; }
  .nav-links a::after { display: none; }
  .nav-cta { margin-top: 8px; }

  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-art { min-height: 300px; padding: 32px; }
  .hero-mark svg { width: min(100%, 220px); }

  .intro-top, .approach, .section-head, .contact { grid-template-columns: 1fr; }
  .sectors { align-items: flex-start; }
  .chips { justify-content: flex-start; }
  .section-head > p, .section-head > .btn { justify-self: start; }

  .service-grid { grid-template-columns: 1fr; }

  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .brand { gap: 12px; }
  .brand svg { width: 34px; height: 34px; }
  .brand-name { padding-left: 12px; }
  .brand-word { font-size: 24px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .stats { grid-template-columns: 1fr; }
  .stat { min-height: 0; gap: 28px; }
  .field-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
}

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