/* ============================================================
   ZAFIRO — DESIGN SYSTEM v6
   White base. Navy authority. Sapphire signature.
   DM Serif Display (display) · DM Sans (body) · DM Mono (system)
   Fonts are self-hosted (latin subset, which covers Spanish) and the
   two above-the-fold faces are preloaded from each page <head>.
   ============================================================ */

/* ============ FONTS (SIL OFL, see /fonts) ============ */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url('/fonts/dm-sans-latin-var.woff2') format('woff2-variations'), url('/fonts/dm-sans-latin-var.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Serif Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/dm-serif-display-latin-400.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Serif Display';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/dm-serif-display-latin-400-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/dm-mono-latin-400.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/dm-mono-latin-500.woff2') format('woff2');
}

/* ============ TOKENS ============ */
:root {
  /* Colour */
  --white:        #ffffff;
  --mist:         #f6f7f9;
  --mist-deep:    #eef0f4;
  --ink:          #0e1320;
  --slate:        #55607a;
  --muted:        #656e83; /* 5.1:1 on white, 4.8:1 on mist (WCAG AA) */
  --line:         #e5e8ee;
  --line-dark:    #d3d8e2;
  --navy:         #0c2040;
  --navy-mid:     #16335e;
  --navy-deep:    #081428;
  --sapphire:     #2e63e7;
  --sapphire-soft:#e9effd;

  /* Signature gradient — the sapphire line */
  --sline: linear-gradient(90deg, var(--navy) 0%, var(--sapphire) 55%, rgba(46,99,231,0) 100%);

  /* Type */
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:    'DM Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --text-xs:   0.6875rem;
  --text-sm:   0.8125rem;
  --text-base: 0.9375rem;
  --text-md:   1.0625rem;
  --text-lg:   1.1875rem;

  /* Space */
  --s2: 0.5rem;  --s3: 0.75rem; --s4: 1rem;   --s6: 1.5rem;
  --s8: 2rem;    --s12: 3rem;   --s16: 4rem;  --s20: 5rem;
  --s24: 6rem;   --s32: 8rem;   --s36: 9rem;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 3px rgba(14,19,32,0.05), 0 1px 2px rgba(14,19,32,0.04);
  --shadow-md: 0 6px 24px rgba(14,19,32,0.07), 0 2px 6px rgba(14,19,32,0.04);
  --shadow-lg: 0 18px 50px rgba(12,32,64,0.10), 0 6px 16px rgba(12,32,64,0.05);
  --shadow-xl: 0 32px 90px rgba(12,32,64,0.14), 0 10px 28px rgba(12,32,64,0.06);

  --ease:       cubic-bezier(0.32, 0.72, 0, 1);
  --t-fast:     0.22s var(--ease);
  --t-med:      0.42s var(--ease);
  --t-slow:     0.75s var(--ease);

  --max-width: 1240px;
  --nav-height: 72px;
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--navy); color: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }
input, textarea, select { font-family: inherit; }
:focus-visible { outline: 2px solid var(--sapphire); outline-offset: 3px; border-radius: 2px; }

/* Skip link — visible only on keyboard focus */
.skip-link {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 300;
  transform: translateY(-160%);
  background: var(--navy);
  color: var(--white);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius-sm);
  transition: transform var(--t-fast);
}
.skip-link:focus { transform: translateY(0); }

/* ============ TYPOGRAPHY ============ */
.display-1 {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 6vw, 5rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.display-2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.012em;
  color: var(--ink);
}
.display-3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.125rem);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.008em;
  color: var(--ink);
}
.display-1 em, .display-2 em, .display-3 em { font-style: italic; }

h1, h2, h3, h4 { font-family: var(--font-body); color: var(--ink); }
h3 { font-size: var(--text-lg); font-weight: 600; letter-spacing: -0.012em; line-height: 1.32; }
h4 { font-size: var(--text-base); font-weight: 600; letter-spacing: -0.008em; }

.lead {
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  line-height: 1.68;
  color: var(--slate);
  font-weight: 400;
  letter-spacing: -0.005em;
}
p { color: var(--slate); }
strong { color: var(--ink); font-weight: 600; }

/* Mono system labels — the engineering register */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--sline);
  flex-shrink: 0;
}
.eyebrow--bare::before { display: none; }
.mono {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Signature sapphire hairline */
.sline {
  height: 1px;
  background: var(--sline);
  border: none;
  width: 100%;
}

/* Keyword underline in display copy */
.kw {
  position: relative;
  white-space: nowrap;
}
.kw::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0.04em;
  height: 2px;
  background: var(--sline);
  transform: scaleX(0);
  transform-origin: left;
  animation: kw-draw 1s var(--ease) 0.9s forwards;
}
@keyframes kw-draw { to { transform: scaleX(1); } }

/* ============ LAYOUT ============ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}
.section { padding: clamp(4.5rem, 9vw, 8.5rem) 0; }
.section--mist { background: var(--mist); }
.section--tight { padding: clamp(3rem, 6vw, 5.5rem) 0; }

/* Editorial section header — label left, support right */
.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: var(--s8) var(--s16);
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.sec-head .lead { max-width: 26rem; justify-self: end; padding-bottom: 0.35rem; }
.sec-head--center {
  display: block;
  text-align: center;
  max-width: 46rem;
  margin-left: auto;
  margin-right: auto;
}
.sec-head--center .lead { margin: var(--s4) auto 0; }
.mt-2 { margin-top: var(--s2); } .mt-3 { margin-top: var(--s3); }
.mt-4 { margin-top: var(--s4); } .mt-6 { margin-top: var(--s6); }
.mb-3 { margin-bottom: var(--s3); } .mb-4 { margin-bottom: var(--s4); }
.mb-6 { margin-bottom: var(--s6); }
.text-center { text-align: center; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 0.8rem 1.6rem;
  border-radius: 100px;
  transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  white-space: nowrap;
  position: relative;
}
.btn-lg { padding: 1rem 2rem; font-size: var(--text-base); }
.btn-sm { padding: 0.55rem 1.1rem; font-size: var(--text-sm); }

.btn-primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 1px 2px rgba(12,32,64,0.2), inset 0 1px 0 rgba(255,255,255,0.08);
}
.btn-primary:hover {
  background: var(--navy-mid);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(12,32,64,0.25), inset 0 1px 0 rgba(255,255,255,0.1);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line-dark);
}
.btn-secondary:hover {
  border-color: var(--navy);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.btn-white {
  background: var(--white);
  color: var(--navy);
}
.btn-white:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(0,0,0,0.25); }
.btn-ghost-white {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.28);
}
.btn-ghost-white:hover { border-color: rgba(255,255,255,0.65); background: rgba(255,255,255,0.06); }
.btn-outline { background: transparent; border: 1px solid var(--line-dark); color: var(--ink); }
.btn-outline:hover { border-color: var(--navy); }

.btn .btn-arrow { transition: transform var(--t-fast); display: inline-block; }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* Arrow text link */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--navy);
}
.text-link .btn-arrow { transition: transform var(--t-fast); }
.text-link:hover .btn-arrow { transform: translateX(4px); }

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
  border-bottom: 1px solid transparent;
  background: rgba(255,255,255,0);
}
.nav.scrolled {
  background: rgba(255,255,255,0.82);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line);
}
.nav .container { width: 100%; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s6); }
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
}
.nav-logo .logo-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--sapphire);
  align-self: center;
  transition: transform var(--t-fast);
}
.nav-logo:hover .logo-dot { transform: scale(1.35); }
.nav-links { display: flex; gap: clamp(1.1rem, 2.4vw, 2rem); }
.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--slate);
  position: relative;
  padding: 0.4rem 0;
  transition: color var(--t-fast);
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1.5px;
  background: var(--sline);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-fast);
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-right { display: flex; align-items: center; gap: var(--s4); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  width: 20px; height: 1.5px;
  background: var(--ink);
  transition: transform var(--t-fast), opacity var(--t-fast);
  display: block;
}
.mobile-nav {
  position: fixed;
  top: var(--nav-height); left: 0; right: 0;
  z-index: 99;
  background: rgba(255,255,255,0.97);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  padding: var(--s6) clamp(1.25rem, 4vw, 2.5rem) var(--s8);
  display: none;
  flex-direction: column;
  gap: var(--s4);
}
.mobile-nav.open { display: flex; animation: mnav-in 0.3s var(--ease); }
@keyframes mnav-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.mobile-nav a { font-size: var(--text-md); font-weight: 500; color: var(--ink); }
.mobile-nav .btn { justify-content: center; margin-top: var(--s2); }
.mobile-nav a.btn-primary, .mobile-nav a.btn-primary.active { color: var(--white); }

/* ============ HERO ============ */
.hero {
  padding: calc(var(--nav-height) + clamp(4rem, 9vw, 7.5rem)) 0 clamp(3rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -30%; right: -12%;
  width: 720px; height: 720px;
  background: radial-gradient(circle at center, rgba(46,99,231,0.055) 0%, rgba(46,99,231,0) 62%);
  pointer-events: none;
}
.hero-content { max-width: 56rem; position: relative; }
.hero-headline { margin-top: var(--s6); max-width: 18ch; }
.hero-sub { margin-top: var(--s6); max-width: 34rem; }
.hero-actions { display: flex; gap: var(--s4); margin-top: var(--s8); flex-wrap: wrap; }
.hero-sectors {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  display: flex;
  align-items: center;
  gap: var(--s6);
  flex-wrap: wrap;
}
.hero-sectors .mono { color: var(--muted); white-space: nowrap; }
.hero-sectors .sector-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--line-dark); flex-shrink: 0; }

/* ============ CAPABILITIES ============ */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.cap-card {
  background: var(--white);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  position: relative;
  transition: background var(--t-med);
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  min-height: 230px;
}
.cap-card::after {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 2px;
  background: var(--sline);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-med);
}
.cap-card:hover { background: var(--mist); }
.cap-card:hover::after { transform: scaleX(1); }
.cap-idx { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.14em; color: var(--muted); }
.cap-icon {
  width: 38px; height: 38px;
  color: var(--navy);
  transition: transform var(--t-med), color var(--t-med);
}
.cap-card:hover .cap-icon { transform: translateY(-2px); color: var(--sapphire); }
.cap-card h3 { margin-top: var(--s2); }
/* Cards link to the matching service; headings align across a row. */
a.cap-card { color: inherit; }
a.cap-card:focus-visible { outline: 2px solid var(--sapphire); outline-offset: -2px; border-radius: 0; background: var(--mist); }
a.cap-card:focus-visible::after { transform: scaleX(1); }
a.cap-card:focus-visible .cap-icon { color: var(--sapphire); }
.cap-go {
  position: absolute;
  top: clamp(1.75rem, 3vw, 2.5rem);
  right: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--muted);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity var(--t-fast), transform var(--t-fast), color var(--t-fast);
}
a.cap-card:hover .cap-go, a.cap-card:focus-visible .cap-go { opacity: 1; transform: translateX(0); color: var(--sapphire); }
@media (hover: none) { .cap-go { opacity: 1; transform: none; } }
.cap-card p { font-size: var(--text-sm); line-height: 1.6; }

/* ============ PROCESS ============ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  position: relative;
}
.process-step { position: relative; padding-top: var(--s6); }
.process-step::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--line);
}
.process-step::after {
  content: '';
  position: absolute;
  top: -2.5px; left: 0;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--sapphire);
}
.process-num {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  color: var(--muted);
  display: block;
  margin-bottom: var(--s3);
}
.process-step h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 400; margin-bottom: var(--s3); }
.process-step p { font-size: var(--text-sm); line-height: 1.65; }

/* ============ STANDARDS ============ */
.standards {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.standards-sticky { position: sticky; top: 120px; }
.standard-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s6);
  padding: var(--s6) 0;
  border-bottom: 1px solid var(--line);
}
.standard-row:first-child { padding-top: 0; }
.standard-row:last-child { border-bottom: none; padding-bottom: 0; }
.standard-mark {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  color: var(--sapphire);
  padding-top: 0.3rem;
}
.standard-row h3, .standard-row h4 { margin-bottom: 0.35rem; font-size: var(--text-md); font-weight: 600; }
.standard-row p { font-size: var(--text-sm); line-height: 1.65; }

/* ============ CTA ============ */
.cta {
  position: relative;
  border-top: 1px solid var(--line);
  padding: clamp(4.5rem, 9vw, 7.5rem) 0 clamp(3.5rem, 7vw, 6rem);
  background: var(--white);
}
.cta::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: clamp(10rem, 26vw, 22rem);
  height: 1px;
  background: var(--sline);
}
.cta-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s6);
}
.cta-note {
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.cta-main {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: end;
  margin-top: clamp(1.75rem, 4vw, 3rem);
}
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: var(--navy);
}
.cta-side p {
  color: var(--slate);
  font-size: var(--text-md);
  line-height: 1.7;
  max-width: 26rem;
}
.cta-side .btn { margin-top: var(--s6); }
.cta-routes {
  margin-top: clamp(2.75rem, 6vw, 4.5rem);
  border-top: 1px solid var(--line);
}
.cta-route {
  display: grid;
  grid-template-columns: clamp(6.5rem, 14vw, 11rem) minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s6);
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.cta-route-label {
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.cta-route-value {
  font-size: var(--text-md);
  color: var(--ink);
  font-weight: 500;
  transition: color var(--t-fast);
}
.cta-route-arrow {
  color: var(--muted);
  transition: transform var(--t-fast), color var(--t-fast);
}
.cta-route:hover .cta-route-value,
.cta-route:focus-visible .cta-route-value { color: var(--sapphire); }
.cta-route:hover .cta-route-arrow,
.cta-route:focus-visible .cta-route-arrow { transform: translateX(4px); color: var(--sapphire); }

/* ============ FOOTER ============ */
footer {
  border-top: 1px solid var(--line);
  padding: clamp(3.5rem, 6vw, 5rem) 0 var(--s8);
  background: var(--white);
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: var(--s12) var(--s8);
  margin-bottom: var(--s16);
}
.footer-brand .nav-logo { font-size: 1.375rem; }
.footer-desc {
  margin-top: var(--s4);
  font-size: var(--text-sm);
  max-width: 20rem;
  line-height: 1.65;
}
.footer-col h2 {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--s4);
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col a {
  font-size: var(--text-sm);
  color: var(--slate);
  transition: color var(--t-fast);
  display: inline-block;
  padding: 0.2rem 0;
}
.footer-col a:hover { color: var(--ink); }
.footer-contact-item { font-size: var(--text-sm); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: var(--s6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s4);
  flex-wrap: wrap;
}
.footer-copyright { font-size: var(--text-xs); color: var(--muted); font-family: var(--font-mono); letter-spacing: 0.04em; }
.footer-loc { font-size: var(--text-xs); color: var(--muted); font-family: var(--font-mono); letter-spacing: 0.04em; }

/* ============ PAGE HERO (interior) ============ */
.page-hero {
  padding: calc(var(--nav-height) + clamp(3.5rem, 8vw, 6.5rem)) 0 clamp(2.5rem, 5vw, 4rem);
}
.page-hero .display-1 { max-width: 16ch; margin-top: var(--s6); }
.page-hero .lead { margin-top: var(--s6); max-width: 34rem; }

/* ============ CASE STUDY (work page) ============ */
.cs {
  padding: clamp(4rem, 8vw, 7rem) 0;
  border-top: 1px solid var(--line);
}
.cs:first-of-type { border-top: none; }
.cs-head {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: var(--s8) var(--s16);
  align-items: end;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.cs-head .display-2 { margin-top: var(--s4); }
.cs-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s4) var(--s6);
  justify-self: end;
  width: 100%;
  max-width: 22rem;
}
.cs-meta-item .mono { display: block; margin-bottom: 0.3rem; }
.cs-meta-item span:last-child { font-size: var(--text-sm); color: var(--ink); font-weight: 500; }
.cs-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  background: var(--mist-deep);
}
.cs-media img { width: 100%; }
.cs-media-pair {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: clamp(1rem, 2vw, 1.5rem);
  align-items: start;
}
.cs-media-pair .cs-media:first-child { aspect-ratio: 2.2 / 1; }
.cs-media-pair .cs-media:first-child img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.cs-media-pair .cs-media:last-child { aspect-ratio: 2.2 / 1; display: flex; align-items: center; justify-content: center; background: var(--mist-deep); }
.cs-media-pair .cs-media:last-child img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.cs-media-pair--mobile .cs-media:last-child { aspect-ratio: auto; align-self: start; background: transparent; }
.cs-media-pair--mobile .cs-media:last-child img { width: 100%; height: auto; object-fit: cover; }
.cs-media-stack {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 2vw, 1.5rem);
  align-items: start;
}
.cs-media-stack .cs-media img { display: block; width: 100%; height: auto; }
@media (max-width: 720px) { .cs-media-stack { grid-template-columns: 1fr; } }
.cs-narrative {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem) clamp(2.5rem, 5vw, 5rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
  max-width: 62rem;
}
.cs-block h3 {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: var(--s4);
}
.cs-block h3::before {
  content: '';
  width: 16px; height: 1px;
  background: var(--sline);
}
.cs-block p { font-size: var(--text-base); line-height: 1.75; }
.cs-block p + p { margin-top: var(--s3); }
.cs-outcome {
  grid-column: 1 / -1;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
}
.cs-outcome p { color: var(--ink); font-size: var(--text-md); line-height: 1.7; max-width: 46rem; }
.cs-visit { margin-top: var(--s6); }

/* ============ SERVICES PAGE ============ */
.svc-group { padding: clamp(3.5rem, 7vw, 6rem) 0; border-top: 1px solid var(--line); }
.svc-group:first-of-type { border-top: none; }
.svc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.svc-grid > div:first-child { position: sticky; top: 120px; }
.svc-list { display: flex; flex-direction: column; }
.svc-item {
  padding: var(--s6) 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s6);
}
.svc-item:first-child { padding-top: 0; }
.svc-item:last-child { border-bottom: none; }
.svc-item .mono { padding-top: 0.35rem; color: var(--sapphire); }
.svc-item h3, .svc-item h4 { font-size: var(--text-md); font-weight: 600; margin-bottom: 0.3rem; letter-spacing: -0.008em; }
.svc-item p { font-size: var(--text-sm); line-height: 1.65; }

/* Package tiers */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
  align-items: stretch;
}
.tier-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: clamp(1.5rem, 2.5vw, 2rem);
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: var(--s4);
}
.tier-card--featured {
  background: var(--navy-deep);
  border-color: var(--navy-deep);
  position: relative;
  overflow: hidden;
}
.tier-card--featured::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% -10%, rgba(46,99,231,0.3), transparent 70%);
  pointer-events: none;
}
.tier-card--featured > * { position: relative; }
.tier-card--featured h3, .tier-card--featured .tier-desc { color: var(--white); }
.tier-card--featured .tier-feat li { color: rgba(255,255,255,0.72); }
.tier-card--featured .tier-feat li::before { color: var(--sapphire); }
.tier-card--featured .tier-tag { color: rgba(255,255,255,0.7); }
.tier-tag {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.tier-card h3 { font-family: var(--font-display); font-size: 1.625rem; font-weight: 400; }
.tier-desc { font-size: var(--text-sm); line-height: 1.6; }
.tier-feat { display: flex; flex-direction: column; gap: 0.55rem; margin-top: var(--s2); }
.tier-feat li {
  font-size: var(--text-sm);
  color: var(--slate);
  padding-left: 1.35rem;
  position: relative;
  line-height: 1.55;
}
.tier-feat li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--sapphire);
  font-family: var(--font-mono);
}
.tier-card .btn { margin-top: auto; justify-content: center; }

/* ============ FAQ ============ */
.faq-list { max-width: 46rem; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s6);
  padding: var(--s6) 0;
  cursor: pointer;
  list-style: none;
  font-weight: 500;
  font-size: var(--text-md);
  color: var(--ink);
  transition: color var(--t-fast);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--navy); }
.faq-icon {
  font-family: var(--font-mono);
  color: var(--muted);
  transition: transform var(--t-fast);
  flex-shrink: 0;
}
.faq-item[open] .faq-icon { transform: rotate(45deg); color: var(--sapphire); }
.faq-item p {
  padding: 0 0 var(--s6);
  max-width: 40rem;
  font-size: var(--text-base);
  line-height: 1.7;
}

/* ============ CONTACT ============ */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.contact-methods { display: flex; flex-direction: column; gap: var(--s6); margin-top: var(--s8); }
.contact-method { display: grid; grid-template-columns: auto 1fr; gap: var(--s4); align-items: start; }
.contact-method-icon {
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  background: var(--mist);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  flex-shrink: 0;
}
.contact-method-icon svg { width: 17px; height: 17px; }
.contact-method h3 { font-size: var(--text-sm); font-weight: 600; margin-bottom: 0.15rem; letter-spacing: 0; }
.contact-method a, .contact-method span.val {
  font-size: var(--text-sm);
  color: var(--slate);
  transition: color var(--t-fast);
  display: block;
}
.contact-method a:hover { color: var(--navy); }

.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: clamp(1.5rem, 4vw, 2.75rem);
}
.form-group { margin-bottom: var(--s6); }
.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 0.6rem;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-sm);
  font-size: var(--text-base);
  color: var(--ink);
  background: var(--white);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.form-group input:focus-visible, .form-group textarea:focus-visible, .form-group select:focus-visible {
  outline: none;
  border-color: var(--sapphire);
  box-shadow: 0 0 0 3px rgba(46,99,231,0.18);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-group ::placeholder { color: var(--muted); }
.form-note { font-size: var(--text-xs); color: var(--muted); margin-top: var(--s3); font-family: var(--font-mono); letter-spacing: 0.03em; }
.form-status { font-size: var(--text-sm); margin-top: var(--s3); min-height: 1.2em; }
.form-submit { width: 100%; }
.hidden { display: none; }

/* ============ REVEAL ANIMATIONS ============ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal[data-d="1"] { --reveal-delay: 0.08s; }
.reveal[data-d="2"] { --reveal-delay: 0.16s; }
.reveal[data-d="3"] { --reveal-delay: 0.24s; }
.reveal[data-d="4"] { --reveal-delay: 0.32s; }

/* fade-up alias for legacy pages (privacy/terms) */
.fade-up { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.fade-up.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .fade-up { opacity: 1; transform: none; }
  .kw::after { transform: scaleX(1); animation: none; }
}

/* ============ LEGACY SUPPORT (privacy / terms) ============ */
.legal-content { max-width: 44rem; }
.legal-content h2 { font-size: 1.25rem; font-weight: 600; margin: var(--s8) 0 var(--s3); }
.legal-content p, .legal-content li { font-size: var(--text-base); margin-bottom: var(--s3); color: var(--slate); }
.legal-content ul { list-style: disc; padding-left: 1.25rem; }
.divider { height: 1px; background: var(--line); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s12) var(--s8); }
  .tier-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-right .nav-cta { display: none; }
  .sec-head { grid-template-columns: 1fr; align-items: start; }
  .sec-head .lead { justify-self: start; max-width: 34rem; }
  .standards { grid-template-columns: 1fr; }
  .standards-sticky { position: static; }
  .cs-head { grid-template-columns: 1fr; }
  .cs-meta { justify-self: start; }
  .cs-narrative { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr; }
  .svc-grid > div:first-child { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .cs-media-pair { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: var(--s8); }
}
@media (max-width: 640px) {
  .cap-grid { grid-template-columns: 1fr; }
  .cap-card { min-height: 0; }
  .process-grid { grid-template-columns: 1fr; }
  .tier-grid { grid-template-columns: 1fr; }
  .cs-meta { grid-template-columns: 1fr 1fr; }
  .hero-actions .btn { flex: 1; justify-content: center; }
}

/* Legacy legal-page helpers */
.page-header { padding: calc(var(--nav-height) + clamp(3rem, 7vw, 5.5rem)) 0 clamp(2rem, 4vw, 3rem); }
.page-header-inner { max-width: 44rem; }
.legal-effective-date { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.08em; color: var(--muted); margin-bottom: var(--s8); text-transform: uppercase; }
.fade-up-delay-1 { transition-delay: 0.08s; }
.fade-up-delay-2 { transition-delay: 0.16s; }
.footer-cta-btn { margin-top: var(--s4); }

@media (max-width: 480px) {
  .kw { white-space: normal; }
  .kw::after { display: none; }
}

@media (max-width: 860px) {
  .cta-main { grid-template-columns: 1fr; align-items: start; }
  .cta-side p { max-width: none; }
}
@media (max-width: 640px) {
  .cta-head { flex-direction: column; align-items: flex-start; gap: var(--s3); }
  .cta-route { grid-template-columns: 5.5rem minmax(0, 1fr) auto; gap: var(--s4); }
}

/* ============================================================
   VISUAL COMMUNICATION LAYER (v9)
   Reuses existing tokens only. Frames real project work,
   makes the process scannable, and draws the system once.
   ============================================================ */

/* ---- Browser frame (wraps a real screenshot) ---- */
.browser {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-dark);
  background: var(--white);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.85rem;
  background: var(--mist);
  border-bottom: 1px solid var(--line);
}
.browser-dots { display: flex; gap: 0.4rem; flex-shrink: 0; }
.browser-dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--line-dark); display: block; }
.browser-url {
  flex: 1;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 0.3rem 0.8rem;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.browser > img { display: block; width: 100%; height: auto; }

/* ---- Hero, two-column with product visual ---- */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero-grid .hero-content { max-width: none; }
.hero-visual { position: relative; }
.hero-visual .browser { transform: translateY(0); }
.hero-visual .hero-visual-tag {
  position: absolute;
  left: 1rem; bottom: 1rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(8,20,40,0.82);
  color: rgba(255,255,255,0.92);
  padding: 0.35rem 0.7rem;
  border-radius: 100px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: clamp(2.5rem, 6vw, 3.5rem); }
  .hero-visual { max-width: 30rem; }
}

/* ---- Services: media inside a group ---- */
.svc-grid.svc-grid--media > div:first-child { position: static; }
.svc-media { margin-top: var(--s8); }
.svc-media .browser-url,
.svc-media .case-domain { pointer-events: none; }
.svc-grid--rev { direction: rtl; }
.svc-grid--rev > * { direction: ltr; }
@media (min-width: 861px) {
  .svc-grid--rev { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
}

/* ---- Infrastructure panel ("keeps it working") ---- */
.infra {
  margin-top: var(--s8);
  background: var(--navy-deep);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 1.9rem);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.infra::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 100% 0%, rgba(46,99,231,0.28), transparent 70%);
  pointer-events: none;
}
.infra-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  position: relative;
  margin-bottom: var(--s6);
}
.infra-head .mono { color: rgba(255,255,255,0.68); }
.infra-live {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7fe0a8;
}
.infra-live::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #46d888;
  box-shadow: 0 0 0 0 rgba(70,216,136,0.5);
  animation: infra-pulse 2.4s var(--ease) infinite;
}
@keyframes infra-pulse {
  0% { box-shadow: 0 0 0 0 rgba(70,216,136,0.45); }
  70% { box-shadow: 0 0 0 7px rgba(70,216,136,0); }
  100% { box-shadow: 0 0 0 0 rgba(70,216,136,0); }
}
.infra-list { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem var(--s6); }
.infra-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.9);
}
.infra-list li::before {
  content: '';
  width: 15px; height: 15px;
  flex-shrink: 0;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232e63e7' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/11px no-repeat,
    rgba(46,99,231,0.16);
}
@media (max-width: 420px) { .infra-list { grid-template-columns: 1fr; } }

/* ---- System diagram ("one connected system") ---- */
.sysdiagram {
  max-width: 52rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.sys-node {
  width: 100%;
  max-width: 30rem;
  border-radius: var(--radius-md);
  padding: var(--s4) var(--s6);
  border: 1px solid var(--line);
  background: var(--white);
}
.sys-node .mono { display: block; margin-bottom: 0.2rem; }
.sys-node p { font-size: var(--text-sm); color: var(--slate); margin: 0; }
.sys-node--hub {
  background: var(--navy-deep);
  border-color: var(--navy-deep);
  box-shadow: var(--shadow-lg), 0 0 0 4px rgba(46,99,231,0.12);
  position: relative;
  overflow: hidden;
}
.sys-node--hub::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(46,99,231,0.35), transparent 70%);
}
.sys-node--hub .mono { color: rgba(255,255,255,0.6); position: relative; }
.sys-node--hub strong { color: var(--white); font-size: var(--text-md); position: relative; }
.sys-conn { width: 2px; height: clamp(20px, 3vw, 30px); background: linear-gradient(var(--sapphire), var(--navy)); flex-shrink: 0; }
.sys-systems {
  width: 100%;
  border: 1px dashed var(--line-dark);
  border-radius: var(--radius-md);
  padding: var(--s6) var(--s4) var(--s4);
  background: var(--mist);
  position: relative;
}
.sys-systems-label {
  position: absolute;
  top: -0.62rem; left: 50%;
  transform: translateX(-50%);
  background: var(--mist);
  padding: 0 0.6rem;
  color: var(--muted);
}
.sys-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}
.sys-cap {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 0.5rem 0.9rem;
}
.sys-node--out { background: var(--sapphire-soft); border-color: transparent; }

/* ---- Process: scannable flow ---- */
.flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2.4vw, 2rem);
  position: relative;
}
.flow::before {
  content: '';
  position: absolute;
  top: 21px; left: 10%; right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--navy), var(--sapphire));
  opacity: 0.28;
}
.flow-stage { position: relative; padding-top: calc(44px + var(--s4)); }
.flow-node {
  position: absolute;
  top: 0; left: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--sapphire);
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.flow-name { font-family: var(--font-display); font-size: 1.4rem; font-weight: 400; color: var(--ink); margin-bottom: var(--s2); }
.flow-outcome { font-size: var(--text-sm); line-height: 1.6; color: var(--slate); margin-bottom: var(--s4); }
.flow-deliver {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  padding-top: var(--s3);
  border-top: 1px solid var(--line);
  line-height: 1.5;
}
@media (max-width: 760px) {
  .flow { grid-template-columns: 1fr; gap: 0; }
  .flow::before { display: none; }
  .flow-stage { padding: 0 0 var(--s8) calc(44px + var(--s6)); }
  .flow-stage:last-child { padding-bottom: 0; }
  .flow-stage::before {
    content: '';
    position: absolute;
    left: 21px; top: 44px; bottom: 0;
    width: 2px;
    background: var(--line);
  }
  .flow-stage:last-child::before { display: none; }
}

/* ---- About: product proof strip ---- */
.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
}
.proof-item {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  transition: transform var(--t-med);
}
.proof-item:hover { transform: translateY(-4px); }
.proof-item .browser { transition: box-shadow var(--t-med); }
.proof-item:hover .browser { box-shadow: var(--shadow-xl); }
.proof-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.proof-media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.proof-cap { display: flex; flex-direction: column; gap: 0.2rem; }
.proof-cap .proof-name { font-size: var(--text-sm); font-weight: 600; color: var(--ink); display: inline-flex; align-items: center; gap: 0.4rem; }
.proof-cap .proof-name .btn-arrow { transition: transform var(--t-fast); color: var(--sapphire); }
.proof-item:hover .proof-name .btn-arrow { transform: translateX(3px); }
.proof-cap .proof-role { font-size: var(--text-xs); color: var(--muted); font-family: var(--font-mono); letter-spacing: 0.03em; }
@media (max-width: 760px) {
  .proof-strip { grid-template-columns: 1fr; max-width: 26rem; margin-left: auto; margin-right: auto; }
}


/* ============================================================
   BILINGUAL & EDITORIAL LAYER (v10)
   Language switcher, editorial work/quote patterns, enquiry form.
   ============================================================ */

/* ---- Language switcher: two flagged links, understated ---- */
.lang-switch { display: inline-flex; align-items: center; }
.lang-opt {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 40px;
  padding: 0 0.5rem;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--muted);
  border-radius: var(--radius-sm);
  transition: color var(--t-fast);
  position: relative;
}
.lang-opt + .lang-opt::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 1px; height: 14px;
  transform: translateY(-50%);
  background: var(--line-dark);
}
.lang-opt:hover { color: var(--ink); }
.lang-opt.is-current { color: var(--ink); }
.lang-opt .flag {
  width: 18px; height: 12px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(14,19,32,0.14);
  flex-shrink: 0;
}
.lang-opt:not(.is-current) .flag { opacity: 0.8; }
.lang-opt:hover .flag { opacity: 1; }
.mobile-nav a.active { color: var(--sapphire); }
@media (max-width: 380px) { .lang-opt { padding: 0 0.35rem; gap: 0.3rem; } }

/* ---- Home hero visual caption ---- */
.hw-item { display: flex; flex-direction: column; gap: var(--s3); min-width: 0; }
.hw-cap {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.hw-cap strong { color: var(--ink); font-weight: 500; transition: color var(--t-fast); }
.hw-item:hover .hw-cap strong, .hw-item:focus-visible .hw-cap strong { color: var(--sapphire); }

/* ---- Selected work: one feature, three entries, no boxes ---- */
.work-meta {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.work-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 4rem);
  align-items: center;
}
.wf-media, .wi-media {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--mist-deep);
}
.wf-media img, .wi-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.wi-media { aspect-ratio: 16 / 10; }
.wi-media img { object-position: left top; }
.work-feature:hover .wf-media img, .work-item:hover .wi-media img { transform: scale(1.025); }
.wf-title { margin-top: var(--s3); }
.wf-body p { margin-top: var(--s4); font-size: var(--text-md); line-height: 1.7; max-width: 28rem; }
.work-list {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line-dark);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.work-item { display: flex; flex-direction: column; gap: var(--s3); }
.work-item .work-meta { margin-top: var(--s3); }
.work-item h3 { font-size: var(--text-lg); }
.work-item p { font-size: var(--text-sm); line-height: 1.65; }
.case-link {
  margin-top: auto;
  padding-top: var(--s3);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--navy);
}
.case-link .btn-arrow { transition: transform var(--t-fast); }
.work-feature:hover .case-link .btn-arrow, .work-item:hover .case-link .btn-arrow { transform: translateX(4px); }
@media (max-width: 860px) {
  .work-feature { grid-template-columns: 1fr; }
  .work-list { grid-template-columns: 1fr; gap: var(--s12); }
}
@media (min-width: 561px) and (max-width: 860px) {
  .work-item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); column-gap: var(--s6); align-items: start; }
  .work-item .wi-media { grid-row: 1 / span 5; }
  .work-item .work-meta { margin-top: 0; }
}

/* ---- Testimonials: typography, not boxes ---- */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
}
.quote { display: flex; flex-direction: column; gap: var(--s6); padding-top: var(--s6); border-top: 1px solid var(--line-dark); margin: 0; }
.quote blockquote p {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 1.6vw, 1.3rem);
  line-height: 1.5;
  color: var(--ink);
}
.quote figcaption { margin-top: auto; }
.quote-name { display: block; font-size: var(--text-sm); font-weight: 600; color: var(--ink); }
.quote-role { display: block; font-size: var(--text-xs); color: var(--muted); font-family: var(--font-mono); letter-spacing: 0.04em; margin-top: 0.15rem; }
.quote-note { margin-top: var(--s8); text-align: center; font-size: var(--text-xs); color: var(--muted); font-family: var(--font-mono); letter-spacing: 0.04em; }
@media (max-width: 1024px) { .quote-grid { grid-template-columns: 1fr; max-width: 40rem; margin: 0 auto; } }

/* ---- About: sectors as three editorial columns ---- */
.sectors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.75rem, 4vw, 3.5rem); }
.sector { padding-top: var(--s6); border-top: 1px solid var(--line-dark); }
.sector h3 { margin-top: var(--s3); font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; letter-spacing: -0.01em; }
.sector p { margin-top: var(--s3); font-size: var(--text-sm); line-height: 1.65; }
@media (max-width: 860px) { .sectors { grid-template-columns: 1fr; } }

/* ---- Enquiry form ---- */
.contact-intro h2.eyebrow { font-family: var(--font-mono); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s6); }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-group label .opt { text-transform: none; letter-spacing: 0.02em; color: var(--muted); font-weight: 400; }
.form-group select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2355607a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 16px;
  padding-right: 2.5rem;
}
.form-group [aria-invalid="true"] { border-color: #b42318; }
.form-group [aria-invalid="true"]:focus-visible { box-shadow: 0 0 0 3px rgba(180,35,24,0.15); }
.field-error { display: block; margin-top: 0.45rem; font-size: var(--text-sm); color: #b42318; }
.field-error:empty { display: none; }
.form-privacy { font-size: var(--text-sm); line-height: 1.6; color: var(--slate); margin: 0 0 var(--s6); }
.form-privacy a, .form-status a, .form-success a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
.form-status { font-size: var(--text-sm); line-height: 1.6; margin-top: var(--s4); }
.form-status:empty { display: none; }
.form-status.is-error { color: #b42318; padding: var(--s4); border: 1px solid rgba(180,35,24,0.25); border-radius: var(--radius-sm); background: #fef3f2; }
.form-status.is-error a { color: #7a271a; }
.form-submit[disabled] { opacity: 0.7; cursor: progress; transform: none; }
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-success { padding: var(--s4) 0; }
.form-success h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.15; color: var(--navy); }
.form-success h2:focus { outline: none; }
.form-success p { margin-top: var(--s4); font-size: var(--text-md); }
.form-success .btn { margin-top: var(--s8); }
.cf-turnstile { margin-bottom: var(--s6); }

/* ---- Thank-you & 404 ---- */
.page-hero .hero-actions { margin-top: var(--s8); }

/* ============================================================
   BAR & CAFE GROUP — case study page patterns
   Built entirely on existing design-system tokens; moved here from
   the page <style> block so the next case study can reuse it.
   ============================================================ */
.bcg-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.2vw, 2.35rem);
  line-height: 1.14; letter-spacing: -0.012em;
  color: var(--navy); margin-top: var(--s4); max-width: 18ch;
}
.bcg-tagline em { font-style: italic; color: var(--sapphire); }
.bcg-crumb { display: inline-flex; align-items: center; gap: 0.5rem; }
.bcg-crumb a { color: var(--navy); }
.bcg-crumb a:hover { color: var(--sapphire); }

/* Full-width photographic band with caption */
.bcg-band {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-lg); margin: 0;
}
.bcg-band img { display: block; width: 100%; height: clamp(240px, 40vw, 480px); object-fit: cover; object-position: center 60%; }
.bcg-band figcaption {
  position: absolute; inset: auto 0 0 0; padding: clamp(1rem, 3vw, 1.75rem);
  background: linear-gradient(to top, rgba(8,20,40,0.74), rgba(8,20,40,0));
  color: rgba(255,255,255,0.94);
  font-family: var(--font-mono); font-size: var(--text-xs);
  letter-spacing: 0.08em; text-transform: uppercase;
}

/* Two product frames, side by side */
.bcg-duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2.5vw, 1.75rem); align-items: start; }
.bcg-duo figcaption { margin-top: var(--s4); font-size: var(--text-sm); line-height: 1.6; color: var(--slate); }
.bcg-duo figcaption strong { color: var(--ink); }
@media (max-width: 760px) { .bcg-duo { grid-template-columns: 1fr; gap: var(--s8); } }

/* Five-venue grid — 3 up, then 2 centred; collapses cleanly */
.bcg-venues { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(1rem, 2vw, 1.5rem); }
.bcg-venue {
  grid-column: span 2; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; background: var(--white); display: flex; flex-direction: column;
}
.bcg-venue:nth-child(4) { grid-column: 2 / 4; }
.bcg-venue:nth-child(5) { grid-column: 4 / 6; }
.bcg-venue-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--mist-deep); }
.bcg-venue-media img { width: 100%; height: 100%; object-fit: cover; }
.bcg-venue-body { padding: clamp(1.1rem, 2vw, 1.4rem); display: flex; flex-direction: column; gap: 0.32rem; }
.bcg-venue-loc { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sapphire); }
.bcg-venue-name { font-size: var(--text-md); font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.bcg-venue-desc { font-size: var(--text-sm); line-height: 1.55; color: var(--slate); }
@media (max-width: 900px) {
  .bcg-venues { grid-template-columns: repeat(2, 1fr); }
  .bcg-venue, .bcg-venue:nth-child(4) { grid-column: auto; }
  .bcg-venue:nth-child(5) { grid-column: 1 / -1; }
  .bcg-venue:nth-child(5) .bcg-venue-media { aspect-ratio: 16 / 7; }
}
@media (max-width: 560px) {
  .bcg-venues { grid-template-columns: 1fr; }
  .bcg-venue:nth-child(5) { grid-column: auto; }
  .bcg-venue:nth-child(5) .bcg-venue-media { aspect-ratio: 4 / 3; }
}

/* Shared-core vs per-venue split */
.bcg-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2.5vw, 1.75rem); align-items: stretch; }
@media (max-width: 760px) { .bcg-split { grid-template-columns: 1fr; } }
.bcg-layer { border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2rem); }
.bcg-layer .mono { display: block; margin-bottom: var(--s3); }
.bcg-layer h3 { font-family: var(--font-display); font-size: 1.45rem; font-weight: 400; letter-spacing: -0.01em; }
.bcg-layer ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem var(--s6); margin-top: var(--s6); }
.bcg-layer li { font-size: var(--text-sm); line-height: 1.45; padding-left: 1.35rem; position: relative; }
.bcg-layer li::before { content: ''; position: absolute; left: 0; top: 0.45em; width: 6px; height: 6px; border-radius: 50%; background: var(--sapphire); }
.bcg-layer--core { background: var(--navy-deep); position: relative; overflow: hidden; }
.bcg-layer--core::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 80% 60% at 100% 0%, rgba(46,99,231,0.28), transparent 70%); pointer-events: none; }
.bcg-layer--core > * { position: relative; }
.bcg-layer--core h3 { color: var(--white); }
.bcg-layer--core .mono { color: rgba(255,255,255,0.62); }
.bcg-layer--core li { color: rgba(255,255,255,0.9); }
.bcg-layer--face { background: var(--mist); border: 1px solid var(--line); }
.bcg-layer--face h3 { color: var(--ink); }
@media (max-width: 460px) { .bcg-layer ul { grid-template-columns: 1fr; } }

/* Photography stat row */
.bcg-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 3vw, 2.5rem); }
@media (max-width: 640px) { .bcg-stats { grid-template-columns: 1fr; gap: var(--s8); } }
.bcg-stat { position: relative; padding-top: var(--s6); }
.bcg-stat::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--sline); }
.bcg-stat-num { font-family: var(--font-display); font-size: clamp(2.1rem, 4.4vw, 2.9rem); line-height: 1; color: var(--navy); }
.bcg-stat-num span { font-size: 0.5em; color: var(--sapphire); }
.bcg-stat-label { font-size: var(--text-sm); line-height: 1.55; color: var(--slate); margin-top: var(--s3); }

/* Phones — responsive proof */
.bcg-phones { display: flex; gap: clamp(1rem, 4vw, 2.5rem); justify-content: center; align-items: flex-start; flex-wrap: wrap; }
.bcg-phone { width: min(232px, 44vw); border-radius: 26px; overflow: hidden; border: 1px solid var(--line-dark); box-shadow: var(--shadow-xl); background: var(--ink); }
.bcg-phone img { display: block; width: 100%; height: auto; }

/* Section helper */
.bcg-lead-narrow { max-width: 44rem; }
.bcg-note { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.04em; color: var(--muted); margin-top: var(--s4); }

/* Visually hidden, still announced by screen readers */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---- Budget: currency switch (GBP / EUR) ---- */
.budget-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  margin-bottom: 0.6rem;
}
.form-group .budget-head > label { margin-bottom: 0; }
.currency-switch {
  display: inline-flex;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.currency-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.form-group .currency-switch label {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 32px;
  margin: 0;
  padding: 0 0.7rem;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--slate);
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
}
.form-group .currency-switch label + input + label { border-left: 1px solid var(--line-dark); }
.form-group .currency-switch label:hover { color: var(--ink); background: var(--mist); }
.form-group .currency-switch input:checked + label { background: var(--navy); color: var(--white); }
.currency-switch input:focus-visible + label { outline: 2px solid var(--sapphire); outline-offset: -2px; }
.field-hint { display: block; margin-top: 0.45rem; font-size: var(--text-xs); line-height: 1.5; color: var(--muted); }

/* ---- Hero showcase: a client website running live ----
   Same browser frame as before; the live site is scaled from 1440×900.
   On the homepage the text and the window share the hero equally. */
@media (min-width: 961px) { .hero-grid--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.showcase:hover .hw-cap strong, .showcase:focus-within .hw-cap strong { color: var(--sapphire); }
.showcase { display: flex; flex-direction: column; gap: var(--s3); min-width: 0; }
.showcase-view { position: relative; aspect-ratio: 1440 / 900; overflow: hidden; background: var(--mist-deep); }
.showcase-panel { position: absolute; inset: 0; }
.showcase-panel[hidden] { display: none; }
.showcase-link { display: block; width: 100%; height: 100%; }
.showcase-panel img { display: block; width: 100%; height: 100%; object-fit: cover; }
.showcase-frame {
  position: absolute;
  top: 0; left: 0;
  width: 1440px; height: 900px;
  border: 0;
  transform: scale(var(--showcase-scale, 0.4));
  transform-origin: 0 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}
.showcase-frame.is-loaded { opacity: 1; }
.showcase-cover { position: absolute; inset: 0; z-index: 1; }
.showcase-cover:focus-visible, .showcase-link:focus-visible { outline: 2px solid var(--sapphire); outline-offset: -2px; }
