/* ==========================================================================
   Globosoft UAE — site.css
   Built to the Globosoft Brand and Build Guide.
   One red (#C02228). One typeface (Poppins). 8px spacing base.
   Compose new pages from these classes. Do not reach for inline styles.
   ========================================================================== */

/* ------------------------------------------------------------ 01. tokens */

:root {
  /* the five colours */
  --red:         #C02228;
  --red-dark:    #8E1117;
  --red-light:   #EF6B71;
  --ink:         #1A1A1A;
  --paper-deep:  #FCE7E7;
  --paper:       #FAF6F6;
  --white:       #FFFFFF;

  /* derived */
  --muted:       #6B6B6B;
  --line:        rgba(26,26,26,.14);
  --line-soft:   rgba(26,26,26,.07);
  --line-light:  rgba(255,255,255,.16);

  /* type */
  --font-display: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body:    "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* layout */
  --pad-x:        clamp(24px, 6vw, 104px);
  --sec-y:        clamp(76px, 9vw, 150px);
  --sec-y-tight:  clamp(56px, 6vw, 96px);
  --sec-y-banner: clamp(56px, 6vw, 90px);
  --gap:          18px;
  --head-gap:     clamp(46px, 6vw, 86px);

  /* motion */
  --ease:  cubic-bezier(.22,.7,.28,1);
  --hover: 180ms;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: inherit;
  margin: 0 0 .55em;
  font-weight: 700;
}

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1.15em; padding-left: 1.15em; }
li { margin-bottom: .4em; }

strong, b { font-weight: 600; }

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus {
  left: 12px; top: 12px; z-index: 300; background: var(--white);
  padding: 10px 18px; border: 1px solid var(--line);
}

/* ------------------------------------------------- 02. sections & grounds */

.section { padding: var(--sec-y) var(--pad-x); }
.section.tight  { padding-top: var(--sec-y-tight); padding-bottom: var(--sec-y-tight); }
.section.banner { padding-top: var(--sec-y-banner); padding-bottom: var(--sec-y-banner); }

.section.white   { background: var(--white);      color: var(--ink); }
.section.paper   { background: var(--paper);      color: var(--ink); }
.section.deep    { background: var(--paper-deep); color: var(--ink); }
.section.dark    { background: var(--ink);        color: rgba(255,255,255,.78); }
.section.crimson { background: var(--red);        color: rgba(255,255,255,.86); }

.section-inner { max-width: 1300px; margin-inline: auto; }

.section.dark h1, .section.dark h2, .section.dark h3, .section.dark h4,
.section.crimson h1, .section.crimson h2, .section.crimson h3, .section.crimson h4 {
  color: var(--white);
}
.section.dark a    { color: var(--red-light); }
.section.crimson a { color: var(--white); }

.section-index, .eyebrow {
  display: block;
  font-size: 11px; font-weight: 700; line-height: 1;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--red); margin-bottom: 20px;
}
.section.dark .section-index, .section.dark .eyebrow { color: var(--red-light); }
.section.crimson .section-index, .section.crimson .eyebrow { color: rgba(255,255,255,.8); }

.section-heading { margin-bottom: var(--head-gap); }
.section-heading h2 {
  font-size: clamp(40px, 5.4vw, 82px);
  letter-spacing: -.04em; line-height: .98;
  font-weight: 800; margin-bottom: 0;
}
.section-heading h2 + .section-intro { margin-top: 26px; }
.section-heading .accent { color: var(--red); }
.section.dark .section-heading .accent,
.section.crimson .section-heading .accent { color: var(--red-light); }

.section-intro {
  max-width: 700px; font-size: clamp(16px, 1.35vw, 21px);
  font-weight: 500; line-height: 1.65; color: var(--muted);
}
.section.dark .section-intro    { color: rgba(255,255,255,.62); }
.section.crimson .section-intro { color: rgba(255,255,255,.82); }

.section-body { margin-top: var(--head-gap); }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.section.dark .rule, .section.crimson .rule { background: var(--line-light); }

/* --------------------------------------------------------- 03. page hero */

.page-hero {
  padding: clamp(56px, 6vw, 90px) var(--pad-x) clamp(48px, 5vw, 78px);
  background: var(--white);
  position: relative; overflow: hidden; isolation: isolate;
}
.page-hero .section-inner { position: relative; z-index: 2; }

/* ---- banner canvas: grid, nodes and cursor glow, injected by site.js ---- */

.banner-fx {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none; overflow: hidden;
}

/* The grid drifts a few pixels against the cursor. Never more than 20px.
   It is deliberately near the threshold of visibility: it should register
   as depth, not as a pattern competing with the headline. */
.banner-grid {
  position: absolute; inset: -30px;
  background-image:
    linear-gradient(to right,  rgba(26,26,26,.10) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(26,26,26,.10) 1px, transparent 1px);
  background-size: 76px 76px;
  will-change: transform;
  -webkit-mask-image: radial-gradient(120% 105% at 72% 0%, #000 42%, transparent 92%);
          mask-image: radial-gradient(120% 105% at 72% 0%, #000 42%, transparent 92%);
}

.banner-nodes { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }

/* Warm wash so the banner is never a flat white plane. */
.banner-wash {
  position: absolute; inset: 0;
  background: radial-gradient(95% 78% at 82% -8%, var(--paper-deep), transparent 66%);
  opacity: 1;
}

/* Follows the cursor. Opacity is raised by the script on pointer entry. */
.banner-glow {
  position: absolute; top: 0; left: 0;
  width: 520px; height: 520px; margin: -260px 0 0 -260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(192,34,40,.20), transparent 70%);
  opacity: 0; will-change: transform, opacity;
  transition: opacity 400ms var(--ease);
}

.section.dark .banner-grid {
  background-image:
    linear-gradient(to right,  var(--line-light) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-light) 1px, transparent 1px);
}

/* A phone banner is narrow and tall, so the same wash reads far stronger.
   Pull it back rather than letting it compete with the headline. */
@media (max-width: 700px) {
  .banner-wash { opacity: .5; }
  .banner-grid { background-size: 54px 54px; }
}

@media (prefers-reduced-motion: reduce) {
  .banner-glow { display: none; }
  .banner-grid { transform: none !important; }
}

.breadcrumb { margin-bottom: 26px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.breadcrumb li { margin: 0; font-size: 11px; font-weight: 600; letter-spacing: .09em;
                 text-transform: uppercase; color: var(--muted); }
.breadcrumb li + li::before { content: '/'; margin-right: 8px; color: var(--line); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--red); }

.page-hero h1 {
  font-size: clamp(34px, 4.2vw, 62px);
  letter-spacing: -.04em; line-height: 1.02;
  font-weight: 800; max-width: 22ch; margin-bottom: 26px;
}
.page-hero h1 .accent { color: var(--red); }

.page-lead, .hero-intro {
  font-size: clamp(16px, 1.35vw, 21px); font-weight: 500;
  line-height: 1.65; color: var(--muted); max-width: 68ch;
}

.page-hero-meta {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); margin: clamp(36px, 4vw, 54px) 0 32px;
}
.page-hero-meta div { padding: 22px 24px; border-right: 1px solid var(--line); }
.page-hero-meta div:last-child { border-right: 0; }
.page-hero-meta strong {
  display: block; font-size: clamp(20px, 2vw, 30px); font-weight: 800;
  letter-spacing: -.02em; line-height: 1.1; color: var(--ink); margin-bottom: 6px;
}
.page-hero-meta span {
  font-size: 9.5px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--muted);
}

/* ------------------------------------------------------ 04. hero (home) */

.hero {
  padding: clamp(56px, 6vw, 90px) var(--pad-x);
  background: var(--white);
  position: relative; overflow: hidden; isolation: isolate;
}
.hero .section-inner { position: relative; z-index: 2; }
.hero h1 {
  font-size: clamp(18px, 1.6vw, 25px); font-weight: 600;
  letter-spacing: -.02em; line-height: 1.3; color: var(--muted);
  max-width: 30ch; margin-bottom: 20px;
}
.hero-display {
  font-size: clamp(40px, 5.4vw, 88px); font-weight: 800;
  letter-spacing: -.04em; line-height: .98; color: var(--ink);
  max-width: 20ch; margin: 0 0 28px;
}
.hero-display .accent { color: var(--red); }

/* ------------------------------------------------------------- 05. grids */

.pillar-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--line);
  border: 1px solid var(--line);
}
.pillar-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.pillar-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.pillar { background: var(--white); padding: clamp(26px, 2.6vw, 38px); }
.pillar-code {
  display: block; font-size: 9.5px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--red); margin-bottom: 18px;
}
.pillar h3 {
  font-size: clamp(20px, 2vw, 30px); font-weight: 700;
  letter-spacing: -.04em; line-height: 1.1; margin-bottom: 14px;
}
.pillar p { font-size: 13.5px; line-height: 1.65; color: var(--muted); }
.pillar ul { margin-top: 14px; padding-left: 0; list-style: none; }
.pillar li {
  font-size: 13.5px; line-height: 1.55; color: var(--muted);
  padding-left: 16px; position: relative; margin-bottom: .5em;
}
.pillar li::before { content: '+'; position: absolute; left: 0; color: var(--red); font-weight: 700; }

.section.dark .pillar-grid { background: var(--line-light); border-color: var(--line-light); }
.section.dark .pillar { background: var(--ink); }
.section.dark .pillar p, .section.dark .pillar li { color: rgba(255,255,255,.62); }
.section.dark .pillar-code { color: var(--red-light); }
.section.paper .pillar { background: var(--paper); }
.section.deep  .pillar { background: var(--paper-deep); }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.dir-card {
  display: block; background: var(--white); border: 1px solid var(--line);
  padding: 28px; color: var(--ink);
  transition: transform var(--hover) var(--ease), border-color var(--hover) var(--ease);
}
.dir-card:hover { transform: translateY(-5px); border-color: var(--red); color: var(--ink); }
.dir-card h3 {
  font-size: clamp(20px, 2vw, 30px); font-weight: 700;
  letter-spacing: -.04em; line-height: 1.1; margin-bottom: 12px;
}
.dir-card p { font-size: 13.5px; line-height: 1.65; color: var(--muted); }
.dc-go {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 18px;
  font-size: 9.5px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--red);
}
.dc-go::after { content: '→'; transition: transform var(--hover) var(--ease); }
.dir-card:hover .dc-go::after { transform: translateX(4px); }
.section.paper .dir-card { background: var(--white); }
.section.dark .dir-card { background: var(--ink); border-color: var(--line-light); color: var(--white); }
.section.dark .dir-card p { color: rgba(255,255,255,.62); }
.section.dark .dir-card:hover { border-color: var(--red-light); }

.split {
  display: grid; grid-template-columns: 1.55fr .95fr;
  gap: clamp(38px, 5vw, 84px); align-items: start;
}

.aside-card {
  position: sticky; top: 96px;
  background: var(--paper); border: 1px solid var(--line); padding: 32px;
}
.aside-card h3 {
  font-size: clamp(20px, 2vw, 30px); font-weight: 700;
  letter-spacing: -.04em; line-height: 1.1; margin-bottom: 16px;
}
.aside-card p { font-size: 13.5px; color: var(--muted); }
.aside-card .actions { margin-top: 22px; }

/* -------------------------------------------------------------- 06. prose */

.prose h2 {
  font-size: clamp(30px, 3.3vw, 50px); font-weight: 800;
  letter-spacing: -.04em; line-height: 1.03; margin: 1.5em 0 .5em;
}
.prose h3 {
  font-size: clamp(20px, 1.9vw, 28px); font-weight: 700;
  letter-spacing: -.04em; line-height: 1.14; margin: 1.5em 0 .5em;
}
.prose > :first-child { margin-top: 0; }
.prose p { font-size: 16px; line-height: 1.78; max-width: 68ch; color: var(--ink); }
.prose ul, .prose ol { max-width: 68ch; }
.prose li { font-size: 16px; line-height: 1.78; }
.prose img { margin: 2em 0; border: 1px solid var(--line); }

/* --------------------------------------------------------- 07. sequences */

.step-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.section.dark .step-list { border-top-color: var(--line-light); }
.step-list > li {
  display: grid; grid-template-columns: 140px 1fr; gap: clamp(20px, 3vw, 48px);
  padding: 30px 0; border-bottom: 1px solid var(--line); margin: 0;
}
.section.dark .step-list > li { border-bottom-color: var(--line-light); }
.step-list .step-no {
  font-size: 9.5px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--muted); padding-top: 6px;
}
.section.dark .step-list .step-no { color: var(--red-light); }
.step-list h3 {
  font-size: clamp(20px, 2vw, 30px); font-weight: 700;
  letter-spacing: -.04em; line-height: 1.1; margin-bottom: 10px;
}
.step-list p { font-size: 13.5px; line-height: 1.7; color: var(--muted); max-width: 68ch; }
.section.dark .step-list p { color: rgba(255,255,255,.62); }

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li {
  position: relative; padding-left: 30px; margin-bottom: .7em;
  font-size: 16px; line-height: 1.7;
}
.checklist li::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  color: var(--red); font-weight: 700;
}
.section.dark .checklist li::before { color: var(--red-light); }
.checklist.cols-2 { column-count: 2; column-gap: 48px; }
.checklist.cols-2 li { break-inside: avoid; }

.row-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.row-list li {
  padding: 22px 0; border-bottom: 1px solid var(--line); margin: 0;
  display: grid; grid-template-columns: 1fr 2fr; gap: clamp(16px, 3vw, 48px);
}
.row-list strong { font-size: 16px; font-weight: 600; letter-spacing: -.02em; }
.row-list span { font-size: 13.5px; color: var(--muted); line-height: 1.7; }
.section.dark .row-list, .section.dark .row-list li { border-color: var(--line-light); }
.section.dark .row-list span { color: rgba(255,255,255,.62); }

/* -------------------------------------------------------- 08. proof bits */

.metric-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); margin-top: var(--head-gap);
}
.section.dark .metric-strip { border-color: var(--line-light); }
.metric-strip div { padding: 30px 26px; border-right: 1px solid var(--line); }
.section.dark .metric-strip div { border-right-color: var(--line-light); }
.metric-strip div:last-child { border-right: 0; }
.metric-strip strong {
  display: block; font-size: clamp(30px, 3.3vw, 50px); font-weight: 800;
  letter-spacing: -.02em; line-height: 1; margin-bottom: 10px;
}
.metric-strip span {
  font-size: 9.5px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--muted);
}
.section.dark .metric-strip span { color: rgba(255,255,255,.55); }

.case-card {
  display: flex; flex-direction: column; background: var(--white);
  border: 1px solid var(--line); padding: 28px; color: var(--ink);
  transition: transform var(--hover) var(--ease), border-color var(--hover) var(--ease);
}
.case-card:hover { transform: translateY(-5px); border-color: var(--red); color: var(--ink); }
.case-flag {
  display: inline-block; align-self: flex-start; margin-bottom: 16px;
  font-size: 9.5px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--red);
  border: 1px solid var(--line); padding: 5px 10px;
}
.case-card h3 {
  font-size: clamp(20px, 2vw, 30px); font-weight: 700;
  letter-spacing: -.04em; line-height: 1.1; margin-bottom: 12px;
}
.case-card p { font-size: 13.5px; line-height: 1.65; color: var(--muted); }
.case-metric {
  margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line-soft);
  font-size: 13.5px; font-weight: 600; color: var(--red);
}

.best-card { background: var(--white); border: 1px solid var(--line); padding: 28px; }
.best-card h3 { font-size: clamp(20px, 2vw, 30px); font-weight: 700;
                letter-spacing: -.04em; line-height: 1.1; margin-bottom: 12px; }
.best-card p { font-size: 13.5px; color: var(--muted); line-height: 1.65; }

.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
            background: var(--line); border: 1px solid var(--line); }
.why-grid > div { background: var(--white); padding: 28px; }
.why-grid strong {
  display: block; font-size: clamp(20px, 2vw, 30px); font-weight: 800;
  letter-spacing: -.02em; line-height: 1.1; margin-bottom: 10px;
}
.why-grid span { font-size: 13.5px; color: var(--muted); line-height: 1.6; display: block; }
.section.paper .why-grid > div { background: var(--paper); }

.gr-block {
  display: flex; align-items: center; gap: 16px;
  border: 1px solid var(--line); padding: 18px 22px; background: var(--white);
}
.gr-block .gr-score { font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.gr-block .gr-meta  { font-size: 11px; font-weight: 600; letter-spacing: .06em;
                      text-transform: uppercase; color: var(--muted); }
.gr-chip {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); padding: 7px 14px;
  font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}

.verify-link { font-size: 13.5px; color: var(--muted); }
.verify-link a { text-decoration: underline; text-underline-offset: 3px; }

.logo-wall { display: flex; flex-wrap: wrap; gap: 1px; background: var(--line);
             border: 1px solid var(--line); }
.logo-wall span {
  flex: 1 1 180px; background: var(--white); padding: 26px 20px; text-align: center;
  font-size: 13.5px; font-weight: 600; letter-spacing: -.02em; color: var(--muted);
}
.section.paper .logo-wall span { background: var(--paper); }

.quote-block {
  border-left: 2px solid var(--red); padding: 6px 0 6px 28px; margin: 2em 0;
  font-size: clamp(20px, 1.9vw, 28px); font-weight: 500;
  letter-spacing: -.03em; line-height: 1.35; color: var(--ink); max-width: 40ch;
}

/* ------------------------------------------------------- 09. answers/FAQ */

.answer-list { list-style: none; padding: 0; margin: 0; }
.answer-list > li { padding: 28px 0; border-bottom: 1px solid var(--line); margin: 0; }
.answer-list h3 {
  font-size: clamp(20px, 1.9vw, 28px); font-weight: 700;
  letter-spacing: -.04em; line-height: 1.14; margin-bottom: 12px;
}
.answer-list p { font-size: 16px; line-height: 1.78; color: var(--muted); max-width: 68ch; }

.faq { border-top: 1px solid var(--line); }
.section.dark .faq { border-top-color: var(--line-light); }
.faq details { border-bottom: 1px solid var(--line); }
.section.dark .faq details { border-bottom-color: var(--line-light); }
.faq summary {
  cursor: pointer; list-style: none; position: relative;
  padding: 26px 56px 26px 0;
  font-size: clamp(16px, 1.4vw, 20px); font-weight: 600;
  letter-spacing: -.03em; line-height: 1.35; color: inherit;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-size: 24px; font-weight: 400; color: var(--red); line-height: 1;
}
.faq details[open] summary::after { content: '–'; }
.faq .faq-a { padding: 0 56px 28px 0; }
.faq .faq-a p { font-size: 16px; line-height: 1.78; color: var(--muted); max-width: 68ch; }
.section.dark .faq .faq-a p { color: rgba(255,255,255,.62); }

.model-table { width: 100%; overflow-x: auto; }
.model-table table { width: 100%; border-collapse: collapse; min-width: 620px; }
.model-table th, .model-table td {
  padding: 18px 20px; text-align: left; border-bottom: 1px solid var(--line);
  font-size: 13.5px; line-height: 1.6; vertical-align: top;
}
.model-table th {
  font-size: 9.5px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--white); background: var(--ink);
}
.model-table td strong { font-weight: 600; }
.model-table tr:last-child td { border-bottom: 0; }

/* ------------------------------------------------------------ 10. action */

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

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 30px; border: 1px solid transparent;
  font-family: var(--font-display); font-size: 13.5px; font-weight: 600;
  letter-spacing: .03em; line-height: 1; cursor: pointer;
  transition: background var(--hover) var(--ease), color var(--hover) var(--ease),
              border-color var(--hover) var(--ease);
}
.button.primary { background: var(--red);   color: var(--white); }
.button.primary:hover { background: var(--red-dark); color: var(--white); }
.button.dark    { background: var(--ink);   color: var(--white); }
.button.dark:hover { background: #000; color: var(--white); }
.button.light   { background: var(--white); color: var(--ink); }
.button.light:hover { background: var(--paper); color: var(--ink); }
.button.outline { background: transparent; color: var(--ink); border-color: var(--line); }
.button.outline:hover { border-color: var(--ink); color: var(--ink); }
.section.dark .button.outline, .section.crimson .button.outline {
  color: var(--white); border-color: var(--line-light);
}
.section.dark .button.outline:hover, .section.crimson .button.outline:hover {
  border-color: var(--white);
}

.text-link {
  font-size: 13.5px; font-weight: 600; letter-spacing: .03em;
  text-decoration: underline; text-underline-offset: 4px;
}

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.chip-row li { margin: 0; }
.chip-row a, .chip-row span {
  display: inline-block; border: 1px solid var(--line); padding: 9px 16px;
  font-size: 13.5px; font-weight: 500; color: var(--ink);
  transition: background var(--hover) var(--ease), color var(--hover) var(--ease),
              border-color var(--hover) var(--ease);
}
.chip-row a:hover { background: var(--red); border-color: var(--red); color: var(--white); }
.section.dark .chip-row a, .section.dark .chip-row span {
  color: var(--white); border-color: var(--line-light);
}

.cta-band { background: var(--red); color: var(--white); padding: var(--sec-y) var(--pad-x); }
.cta-band .section-inner { max-width: 1300px; margin-inline: auto; }
.cta-band h2 {
  font-size: clamp(34px, 5.4vw, 88px); font-weight: 800;
  letter-spacing: -.04em; line-height: .96; color: var(--white);
  max-width: 20ch; margin-bottom: 26px;
}
.cta-band p { font-size: clamp(16px, 1.35vw, 21px); font-weight: 500;
              color: rgba(255,255,255,.86); max-width: 700px; margin-bottom: 34px; }

.growth-band { border: 1px solid var(--line); padding: clamp(28px, 3vw, 44px); background: var(--white); }
.growth-band h3 { font-size: clamp(20px, 2vw, 30px); font-weight: 700;
                  letter-spacing: -.04em; line-height: 1.1; margin-bottom: 14px; }
.growth-band p { font-size: 13.5px; color: var(--muted); line-height: 1.7; max-width: 68ch; }
.section.paper .growth-band { background: var(--white); }

.note {
  background: var(--paper-deep); padding: 22px 26px;
  font-size: 13.5px; line-height: 1.7; color: var(--ink);
}

.stack-group { display: flex; flex-wrap: wrap; gap: 1px; background: var(--line);
               border: 1px solid var(--line); }
.stack-group span {
  flex: 1 1 160px; background: var(--white); padding: 18px 20px;
  font-size: 13.5px; font-weight: 500; color: var(--muted);
}
.section.paper .stack-group span { background: var(--paper); }

/* ------------------------------------------------------------ 11. chrome */

.announcement {
  background: var(--ink); color: rgba(255,255,255,.82);
  padding: 10px var(--pad-x); font-size: 11px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
}
.announcement .section-inner {
  display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.announcement a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }

.site-header {
  position: sticky; top: 0; z-index: 90;
  background: var(--white); border-bottom: 1px solid var(--line);
  padding: 0 var(--pad-x);
}
.site-header .section-inner {
  display: flex; align-items: center; gap: 28px; min-height: 76px;
}

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand:hover { color: inherit; }
.brand-logo { width: auto; height: 28px; flex-shrink: 0; }
.brand--footer { margin-bottom: 22px; }
.brand--footer .brand-logo { height: 26px; }
@media (max-width: 480px) { .brand-logo { height: 23px; } }
.brand-text {
  font-family: var(--font-display); font-size: 22px; font-weight: 800;
  letter-spacing: -.04em; color: var(--ink); line-height: 1;
}
.brand-text .accent { color: var(--red); }
.brand-region {
  font-size: 9.5px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); margin-left: 8px;
}

.primary-nav { margin-left: auto; display: flex; align-items: center; gap: 2px; padding: 0; list-style: none; }
.primary-nav > li { position: relative; margin: 0; }
.primary-nav > li > a {
  display: block; padding: 12px 14px;
  font-size: 13.5px; font-weight: 600; letter-spacing: .03em; color: var(--ink);
}
.primary-nav > li > a:hover { color: var(--red); }
.primary-nav > li.has-menu > a::after { content: ' ⌄'; font-size: 10px; opacity: .5; }

.nav-menu {
  position: absolute; top: 100%; left: 0; min-width: 280px;
  background: var(--white); border: 1px solid var(--line);
  padding: 10px; list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity var(--hover) var(--ease), transform var(--hover) var(--ease), visibility var(--hover);
  box-shadow: 0 20px 50px rgba(26,26,26,.10);
}
.nav-menu.wide { min-width: 580px; column-count: 2; column-gap: 6px; }
.primary-nav > li:hover .nav-menu,
.primary-nav > li:focus-within .nav-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-menu li { margin: 0; break-inside: avoid; }
.nav-menu a {
  display: block; padding: 9px 12px; font-size: 13.5px; font-weight: 500; color: var(--ink);
  transition: background var(--hover) var(--ease), color var(--hover) var(--ease);
}
.nav-menu a:hover { background: var(--paper-deep); color: var(--red); }
.nav-menu .menu-label {
  padding: 12px 12px 5px; font-size: 9.5px; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase; color: var(--muted);
}

.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px;
  border: 1px solid var(--line); background: var(--white); cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-toggle i { display: block; width: 18px; height: 2px; background: var(--ink); }

.expert-band { background: var(--paper-deep); padding: var(--sec-y-banner) var(--pad-x); }
.expert-band .section-inner { max-width: 1300px; margin-inline: auto; }
.expert-band h2 {
  font-size: clamp(34px, 5.4vw, 88px); font-weight: 800;
  letter-spacing: -.04em; line-height: .96; max-width: 20ch; margin-bottom: 24px;
}
.expert-band .accent { color: var(--red); }
.partner-statement {
  font-size: clamp(34px, 5.4vw, 88px); font-weight: 800;
  letter-spacing: -.04em; line-height: .96;
}

.geo-dock { background: var(--ink); color: rgba(255,255,255,.7); padding: var(--sec-y-tight) var(--pad-x); }
.geo-dock .section-inner { max-width: 1300px; margin-inline: auto; }
.geo-dock h2 {
  font-size: clamp(20px, 2vw, 30px); font-weight: 700;
  letter-spacing: -.04em; color: var(--white); margin-bottom: 24px;
}
.geo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-light);
            border: 1px solid var(--line-light); }
.geo-grid > div { background: var(--ink); padding: 22px 24px; }
.geo-grid strong {
  display: block; font-size: 13.5px; font-weight: 600; color: var(--white);
  letter-spacing: -.02em; margin-bottom: 8px;
}
.geo-grid span, .geo-grid a { font-size: 11px; line-height: 1.7; color: rgba(255,255,255,.6); display: block; }
.geo-grid a:hover { color: var(--red-light); }
.dc-go.light { color: var(--red-light); }

.site-footer { background: var(--ink); color: rgba(255,255,255,.62); padding: var(--sec-y-tight) var(--pad-x) 0; }
.site-footer .section-inner { max-width: 1300px; margin-inline: auto; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 34px; }
.footer-grid .footer-label {
  font-size: 9.5px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--white); margin-bottom: 18px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .6em; }
.footer-grid a, .footer-grid p, .footer-grid span {
  font-size: 13.5px; color: rgba(255,255,255,.62); line-height: 1.7;
}
.footer-grid a:hover { color: var(--white); }
.footer-bottom {
  margin-top: var(--sec-y-tight); border-top: 1px solid var(--line-light);
  padding: 26px 0; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: rgba(255,255,255,.5);
}
.footer-bottom a { color: rgba(255,255,255,.7); }

/* ---- floating action rail, right edge -------------------------------- */

.float-rail {
  position: fixed; z-index: 95;
  right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
}

.float-btn {
  display: flex; align-items: center; gap: 0;
  height: 56px; padding: 0; border: 0; border-radius: 999px;
  cursor: pointer; color: #fff; text-decoration: none;
  font-family: var(--font-display); font-size: 13.5px; font-weight: 600;
  letter-spacing: .03em; line-height: 1;
  box-shadow: 0 10px 30px rgba(26,26,26,.22);
  transition: transform var(--hover) var(--ease), background var(--hover) var(--ease);
}
.float-btn:hover { transform: translateY(-2px); color: #fff; }

.float-btn__icon {
  width: 56px; height: 56px; flex: 0 0 56px;
  display: grid; place-items: center;
}
.float-btn__icon svg { width: 26px; height: 26px; display: block; }

/* The label is collapsed to nothing and opens on hover or keyboard focus,
   so the rail stays out of the way until someone reaches for it. */
.float-btn__label {
  max-width: 0; overflow: hidden; white-space: nowrap;
  opacity: 0;
  transition: max-width 260ms var(--ease), opacity var(--hover) var(--ease),
              padding var(--hover) var(--ease);
}
.float-btn:hover .float-btn__label,
.float-btn:focus-visible .float-btn__label {
  max-width: 190px; opacity: 1; padding-right: 22px;
}

.float-btn--enquiry { background: var(--red); }
.float-btn--enquiry:hover { background: var(--red-dark); }
.float-btn--wa { background: #25D366; color: #fff; }
.float-btn--wa:hover { background: #1DB954; color: #fff; }

@media (max-width: 640px) {
  .float-rail { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); gap: 10px; }
  .float-btn { height: 50px; }
  .float-btn__icon { width: 50px; height: 50px; flex-basis: 50px; }
  .float-btn__icon svg { width: 23px; height: 23px; }
  /* No hover on touch, so never reserve room for the label. */
  .float-btn__label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .float-btn, .float-btn__label { transition: none; }
}

/* A modal is open: get the rail out of the way. */
body.modal-open .float-rail { opacity: 0; pointer-events: none; }

/* modals */
[data-lead-modal], [data-exit-modal] {
  position: fixed; inset: 0; z-index: 200; display: none;
  background: rgba(26,26,26,.6); padding: 24px;
  align-items: center; justify-content: center;
}
[data-lead-modal].open, [data-exit-modal].open { display: flex; }
.modal-card {
  background: var(--white); max-width: 520px; width: 100%; padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--line); max-height: 90vh; overflow-y: auto;
}
.modal-card h3 { font-size: clamp(30px, 3.3vw, 50px); font-weight: 800;
                 letter-spacing: -.04em; line-height: 1.03; margin-bottom: 16px; }
.modal-card p { font-size: 13.5px; color: var(--muted); }
.modal-close {
  float: right; border: 0; background: none; font-size: 26px; line-height: 1;
  cursor: pointer; color: var(--muted); padding: 0 0 10px 10px;
}

/* forms */
.field { margin-bottom: 16px; }
.field label {
  display: block; font-size: 9.5px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border: 1px solid var(--line);
  font-family: var(--font-body); font-size: 16px; color: var(--ink);
  background: var(--white);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--red);
}
.field textarea { min-height: 120px; resize: vertical; }

.wa-form { margin-top: 24px; }
.wa-form .actions { margin-top: 22px; }
.wa-error {
  margin: 0 0 14px; padding: 12px 16px;
  background: var(--paper-deep); color: var(--red-dark);
  font-size: 13.5px; font-weight: 500;
}
.wa-note { margin: 16px 0 0; font-size: 11px; line-height: 1.6; color: var(--muted); }
.wa-note a { text-decoration: underline; text-underline-offset: 3px; }

/* Honeypot. Off-screen rather than display:none, which some bots skip. */
.hp {
  position: absolute !important; left: -9999px !important;
  width: 1px; height: 1px; overflow: hidden;
}

button[disabled] { opacity: .6; cursor: wait; }

/* --------------------------------------------------- enquiry prompt ----
   Two panels: the argument on ink, the form on white. Used by both the
   one-time prompt and the exit prompt. */

.modal-card--enquiry {
  max-width: 1080px; padding: 0;
  border-top: 4px solid var(--red);
  /* Never the `overflow` shorthand here: it would override the inherited
     overflow-y: auto and strand the send button on short screens. */
  overflow-x: hidden;
  overflow-y: auto;
  /* The close button is absolute; without this it escapes to the overlay
     and lands in the corner of the viewport instead of the card. */
  position: relative;
}
/* Desktop: the card holds its height and each panel scrolls inside it, so
   the close control and the send button are both always reachable.
   Mobile: the panels are stacked, so the card scrolls as one instead. */
@media (min-width: 901px) {
  .modal-card--enquiry { overflow: hidden; }
  .enquiry__aside,
  .enquiry__main { max-height: calc(90vh - 4px); overflow-y: auto; }
}

.enquiry { display: grid; grid-template-columns: 0.84fr 1.16fr; }

.enquiry__aside {
  background: var(--ink); color: rgba(255,255,255,.66);
  padding: clamp(30px, 3.2vw, 50px);
}
.enquiry__aside .section-index { color: var(--red-light); }
.enquiry__aside h3 {
  color: var(--white);
  font-size: clamp(28px, 2.9vw, 44px); font-weight: 800;
  letter-spacing: -.04em; line-height: 1.03; margin-bottom: 20px;
}
.enquiry__aside > p { font-size: 15px; line-height: 1.65; }

.enquiry__points { margin-top: 34px; border-top: 1px solid var(--line-light); }
.enquiry__points > div { padding: 20px 0; border-bottom: 1px solid var(--line-light); }
.enquiry__points strong {
  display: block; color: var(--white); font-size: 15px;
  font-weight: 600; letter-spacing: -.02em; margin-bottom: 7px;
}
.enquiry__points p { font-size: 13.5px; line-height: 1.6; margin: 0; }

.enquiry__talk { margin-top: 30px; font-size: 13.5px; }
.enquiry__talk a {
  color: var(--white); font-weight: 600;
  text-decoration: underline; text-underline-offset: 5px;
  text-decoration-thickness: 2px; text-decoration-color: var(--red);
}

.enquiry__main { background: var(--white); padding: clamp(30px, 3.2vw, 50px); position: relative; }

.enquiry__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px 32px;
}
.enquiry__grid .field--full { grid-column: 1 / -1; }

/* Underlined fields, so the form reads as a line of enquiry not a stack
   of boxes. */
.field--line { margin-bottom: 26px; }
.field--line label {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--ink); margin-bottom: 10px;
}
.field--line label .req { color: var(--red); }
.field--line input,
.field--line textarea {
  width: 100%; padding: 10px 0; background: transparent;
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  font-family: var(--font-body); font-size: 16px; color: var(--ink);
  transition: border-color var(--hover) var(--ease);
}
.field--line textarea { min-height: 96px; resize: vertical; }
.field--line input::placeholder,
.field--line textarea::placeholder { color: #A3A3A3; }
.field--line input:focus,
.field--line textarea:focus {
  outline: none; border-bottom-color: var(--red); border-bottom-width: 2px;
  padding-bottom: 9px;
}

.enquiry__legend {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--ink); margin: 6px 0 16px;
}
.enquiry__checks {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px;
  border: 0; padding: 0; margin: 0 0 26px;
}
.enquiry__check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.enquiry__check input {
  appearance: none; -webkit-appearance: none;
  width: 19px; height: 19px; margin: 1px 0 0; flex-shrink: 0;
  border: 1px solid #C4C4C4; background: var(--white);
  cursor: pointer; transition: border-color var(--hover) var(--ease),
                               background var(--hover) var(--ease);
}
.enquiry__check input:checked {
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat;
  border-color: var(--red);
}
.enquiry__check input:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.enquiry__check span { font-size: 15px; line-height: 1.4; color: var(--ink-2, #2B333D); }
.enquiry__check:hover input { border-color: var(--red); }

.enquiry__send {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 18px 34px; border: 0; background: var(--red); color: var(--white);
  font-family: var(--font-display); font-size: 13.5px; font-weight: 600;
  letter-spacing: .09em; text-transform: uppercase; cursor: pointer;
  transition: background var(--hover) var(--ease);
}
.enquiry__send:hover { background: var(--red-dark); }
.enquiry__send::after { content: '→'; font-size: 16px; }

.modal-card--enquiry .modal-close {
  position: absolute; top: 14px; right: 18px; z-index: 3;
  float: none; padding: 6px; line-height: 1;
}

.enquiry__foot { margin: 18px 0 0; font-size: 11px; line-height: 1.6; color: var(--muted); }

@media (max-width: 900px) {
  .enquiry { grid-template-columns: 1fr; }
  .enquiry__grid { grid-template-columns: 1fr; gap: 0; }
  .enquiry__checks { grid-template-columns: 1fr; }
  .enquiry__aside h3 { font-size: clamp(24px, 6vw, 32px); }
}
@media (max-width: 640px) {
  /* Keep the promise, drop the detail, so the form is reachable. */
  .enquiry__points, .enquiry__aside > p { display: none; }
  .enquiry__aside { padding-bottom: 26px; }
  .enquiry__talk { margin-top: 18px; }
}

/* ------------------------------------------------------- 12. breakpoints */

@media (max-width: 1300px) {
  .primary-nav {
    display: none; position: fixed; inset: 76px 0 auto; flex-direction: column;
    align-items: stretch; gap: 0; background: var(--white);
    border-bottom: 1px solid var(--line); padding: 14px var(--pad-x) 30px;
    max-height: calc(100vh - 76px); overflow-y: auto;
  }
  .primary-nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .nav-menu, .nav-menu.wide {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-left: 1px solid var(--line);
    margin: 0 0 8px 14px; padding: 0 0 0 8px; column-count: 1; display: none;
  }
  .primary-nav > li.open .nav-menu { display: block; }
  .aside-card { position: static; }
}

@media (max-width: 1120px) {
  .pillar-grid, .pillar-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .card-grid, .card-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .metric-strip, .page-hero-meta { grid-template-columns: repeat(2, 1fr); }
  .metric-strip div:nth-child(2), .page-hero-meta div:nth-child(2) { border-right: 0; }
  .metric-strip div:nth-child(-n+2), .page-hero-meta div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .geo-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .step-list > li { grid-template-columns: 1fr; gap: 10px; }
  .row-list li { grid-template-columns: 1fr; gap: 8px; }
  .checklist.cols-2 { column-count: 1; }
}

@media (max-width: 640px) {
  .pillar-grid, .pillar-grid.cols-2, .pillar-grid.cols-4,
  .card-grid, .card-grid.cols-2, .card-grid.cols-4,
  .why-grid, .metric-strip, .page-hero-meta, .geo-grid,
  .footer-grid { grid-template-columns: 1fr; }
  .metric-strip div, .page-hero-meta div, .geo-grid > div {
    border-right: 0; border-bottom: 1px solid var(--line);
  }
  .section.dark .metric-strip div, .geo-grid > div { border-bottom-color: var(--line-light); }
  .metric-strip div:last-child, .page-hero-meta div:last-child, .geo-grid > div:last-child {
    border-bottom: 0;
  }
  .announcement .section-inner { justify-content: center; text-align: center; }
}

/* ---------------------------------------------------------- 13. motion */

.js [data-reveal] { opacity: 0; transform: translateY(14px); }
.js [data-reveal].in {
  opacity: 1; transform: none;
  transition: opacity 620ms var(--ease), transform 620ms var(--ease);
}
.js [data-reveal-card] { opacity: 0; transform: translateY(22px); }
.js [data-reveal-card].in {
  opacity: 1; transform: none;
  transition: opacity 620ms var(--ease), transform 620ms var(--ease);
}
.js [data-hero-rise] { opacity: 0; transform: translateY(14px); }
.js [data-hero-rise].in {
  opacity: 1; transform: none;
  transition: opacity 560ms var(--ease), transform 560ms var(--ease);
}

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

/* ------------------------------------------------------------ 14. print */

@media print {
  .announcement, .site-header, .wa-float, .cta-band, .geo-dock,
  [data-lead-modal], [data-exit-modal] { display: none !important; }
  body { font-size: 12pt; }
}
