/* ═══════════════════════════════════════════════════
   STRINGLINE GROUP LTD — Main Stylesheet
   Mobile-first · SEO-optimised · Apple/Android safe
   ═══════════════════════════════════════════════════ */

/* ─── TOKENS ─── */
:root {
  --navy:    #061B46;
  --city:    #071225;
  --ink:     #0A1020;
  --red:     #D71920;
  --paper:   #FCFAF6;
  --stone:   #E8E3DA;
  --silver:  #CBD2DD;
  --grey:    #69717E;
  --green:   #52665A;
  --gold:    #B79A5B;
  --line:    rgba(7,18,37,.1);
  --safe-t:  env(safe-area-inset-top,    0px);
  --safe-b:  env(safe-area-inset-bottom, 0px);
  --safe-l:  env(safe-area-inset-left,   0px);
  --safe-r:  env(safe-area-inset-right,  0px);
  --touch:   48px;
  --gap:     clamp(20px,5vw,40px);
}

/* ─── RESET ─── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
}
h1, h2, h3, h4 {
  font-family: 'DM Serif Display', Georgia, serif;
  letter-spacing: -.02em;
  color: var(--city);
  font-weight: 400;
  line-height: 1.05;
}
a {
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}
img { max-width: 100%; display: block; }
button {
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  font-family: inherit;
}
input, textarea, select {
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
  font-family: inherit;
}
ul { list-style: none; }

/* ─── ACCESSIBILITY ─── */
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ─── LAYOUT ─── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--gap);
}
.section { padding: clamp(64px,8vw,104px) 0; }
.dark-section { background: var(--city); }
.dark-section h1, .dark-section h2, .dark-section h3, .dark-section h4 { color: #fff; }
.dark-section p, .dark-section .section-intro { color: rgba(255,255,255,.68); }
.dark-section .eyebrow { color: rgba(215,25,32,.85); }

/* ─── UTILS ─── */
.eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .3em;
  color: var(--red);
  margin-bottom: 18px;
  display: block;
}
.section-header { margin-bottom: clamp(40px,5vw,64px); }
.section-title {
  font-size: clamp(30px,4vw,58px);
  max-width: 760px;
  margin-top: 14px;
}
.section-intro {
  font-size: clamp(15px,1.8vw,17px);
  color: #596170;
  max-width: 680px;
  margin-top: 18px;
  line-height: 1.75;
}
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ─── TOPBAR ─── */
.topbar {
  height: 34px;
  background: var(--city);
  color: rgba(255,255,255,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  gap: 18px;
  padding: 0 var(--gap);
  white-space: nowrap;
  overflow: hidden;
}
.topbar .sep { color: rgba(255,255,255,.22); }
@media (max-width: 600px) { .topbar .hide-xs { display: none; } }

/* ─── HEADER ─── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(252,250,246,.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
  padding-left: var(--safe-l);
  padding-right: var(--safe-r);
}
header.scrolled { box-shadow: 0 4px 40px rgba(7,18,37,.09); }
.nav-inner {
  height: 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ─── BRAND ─── */
.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  cursor: pointer;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-logo { height: 34px; width: auto; object-fit: contain; display: block; }
.brand-payoff {
  font-family: 'Space Mono', monospace;
  font-size: 7px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--red);
  line-height: 1;
}

/* ─── DESKTOP NAV ─── */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
}
.nav-links a {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  padding: 0 14px;
  height: var(--touch);
  display: flex;
  align-items: center;
  color: #3A4459;
  text-transform: uppercase;
  transition: color .2s;
  position: relative;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--red); }
.nav-links a.active { color: var(--red); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 14px; right: 14px;
  height: 2px;
  background: var(--red);
}
.nav-cta {
  margin-left: 12px;
  background: var(--city);
  color: #fff;
  padding: 0 20px;
  height: 42px;
  display: flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  border: none;
  transition: background .2s;
  white-space: nowrap;
  cursor: pointer;
}
.nav-cta:hover { background: var(--red); }

/* ─── HAMBURGER ─── */
.hamburger {
  display: none; /* hidden on desktop — shown via media query below */
  background: none;
  border: none;
  padding: 8px;
  width: var(--touch);
  height: var(--touch);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--city);
  transition: all .3s ease;
  border-radius: 1px;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── MOBILE NAV DRAWER ─── */
.mobile-nav {
  display: none; /* toggled via JS adding .open */
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--city);
  flex-direction: column;
  padding: calc(20px + var(--safe-t)) var(--gap) calc(20px + var(--safe-b));
  overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 36px;
}
.mobile-nav-logo { height: 28px; width: auto; filter: brightness(0) invert(1); }
.mobile-nav-close {
  background: none;
  border: none;
  color: rgba(255,255,255,.7);
  font-size: 26px;
  width: var(--touch);
  height: var(--touch);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.mobile-nav a {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(18px,7vw,20px);
  color: #fff;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
  display: block;
  transition: color .2s;
}
.mobile-nav a:active, .mobile-nav a:hover { color: var(--red); }
.mobile-nav-cta {
  margin-top: 28px;
  background: var(--red);
  color: #fff;
  border: none;
  padding: 16px 24px;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  width: 100%;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 clamp(18px,3vw,26px);
  height: var(--touch);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all .2s;
  text-decoration: none;
}
.btn-primary { background: var(--city); color: #fff; }
.btn-primary:hover { background: var(--red); }
.btn-ghost {
  background: transparent;
  border: 1.5px solid rgba(7,18,37,.2);
  color: var(--city);
}
.btn-ghost:hover { border-color: var(--red); color: var(--red); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--city); }

/* ─── TAGS ─── */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.tag {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  border: 1px solid rgba(7,18,37,.14);
  padding: 8px 12px;
  color: #4A5468;
  background: rgba(255,255,255,.5);
}

/* ─── HERO (HOME) ─── */
.hero {
  padding: clamp(72px,10vw,120px) 0 clamp(60px,8vw,100px);
  position: relative;
  overflow: hidden;
  background: var(--paper);
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(7, 18, 37, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 18, 37, 0.018) 1px, transparent 1px);
  background-size: 96px 96px;
}
.hero-stripe {
  position: absolute; top: 0; right: 0;
  width: 46%; height: 100%;
  background: linear-gradient(135deg,#f0ece4,#e8e2d8);
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 0% 100%);
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px,6vw,80px);
  align-items: center;
}
.hero-label {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-label::before { content: ''; width: 26px; height: 1px; background: var(--red); }
.hero h1 {
  font-size: clamp(40px,6vw,84px);
  line-height: .96;
  margin-bottom: 24px;
  color: var(--city);
}
.hero h1 em { font-style: italic; color: var(--red); }
.hero-desc { font-size: clamp(15px,1.8vw,18px); color: #4D5665; max-width: 520px; line-height: 1.7; margin-bottom: 12px; }
.hero-sub { font-size: 14px; color: #7a8394; max-width: 500px; line-height: 1.75; }
.hero-actions { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ─── HERO VISUAL PANEL ─── */
.hero-visual { position: relative; z-index: 1; }
.hero-visual-card {
  background: #fff;
  border: 1px solid rgba(7,18,37,.1);
  box-shadow: 0 32px 80px rgba(7,18,37,.13);
  overflow: hidden;
}
.hero-img-area {
  height: clamp(200px,26vw,300px);
  background: var(--city);
  position: relative;
  overflow: hidden;
}
.hero-img-area svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-img-label {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; pointer-events: none;
}
.hero-img-label strong {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(14px,2.2vw,20px);
  color: rgba(255,255,255,.88);
  display: block;
}
.hero-img-label span {
  font-family: 'Space Mono', monospace;
  font-size: 8px;
  letter-spacing: .28em;
  color: var(--red);
  text-transform: uppercase;
  margin-top: 8px;
  display: block;
}
.metrics-row {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  border-top: 1px solid var(--line);
}
.metric {
  padding: clamp(14px,2vw,20px);
  border-right: 1px solid var(--line);
  text-align: center;
}
.metric:last-child { border-right: none; }
.metric strong {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(16px,2.2vw,20px);
  display: block;
}
.metric span {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--grey);
}

/* ─── STATS STRIP ─── */
.stats-strip {
  background: var(--city);
  padding: clamp(40px,6vw,54px) 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
}
.stat-item {
  padding: 0 clamp(16px,3vw,36px);
  border-right: 1px solid rgba(255,255,255,.1);
  text-align: center;
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(34px,5vw,52px);
  color: #fff;
  display: block;
  line-height: 1;
}
.stat-num em { color: var(--red); font-style: normal; }
.stat-label {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin-top: 8px;
  display: block;
}

/* ─── SERVICE GRID (HOME PREVIEW) ─── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 2px;
  background: rgba(7,18,37,.08);
  margin-top: 4px;
}
.svc-card {
  background: var(--paper);
  padding: clamp(24px,3vw,34px) clamp(20px,3vw,30px);
  min-height: 220px;
  cursor: pointer;
  transition: background .2s;
  position: relative;
  text-decoration: none;
  display: block;
  color: var(--ink);
}
.svc-card:hover { background: #fff; }
.svc-card:hover .svc-arrow { opacity: 1; transform: translateX(0); }
.svc-num {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--red);
  margin-bottom: 22px;
  display: block;
}
.svc-card h3 { font-size: clamp(17px,2.2vw,21px); line-height: 1.18; margin-bottom: 10px; }
.svc-card p { font-size: 13px; color: #5C6573; line-height: 1.65; }
.svc-arrow {
  position: absolute; bottom: 22px; right: 22px;
  font-size: 18px; color: var(--red);
  opacity: 0; transform: translateX(-8px);
  transition: all .3s;
}

/* ─── INFO GRID (2-col cards) ─── */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 3px;
  background: rgba(7,18,37,.06);
  margin-top: 3px;
}
.info-card { background: #fff; padding: clamp(22px,3vw,30px); }
.info-card strong {
  font-family: 'DM Serif Display', serif;
  font-size: 19px;
  display: block;
  margin-bottom: 8px;
  font-weight: 400;
}
.info-card p { font-size: 14px; color: #5C6573; line-height: 1.7; }
.dark-section .info-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09); }
.dark-section .info-card strong { color: #fff; }
.dark-section .info-card p { color: rgba(255,255,255,.65); }

/* ─── PAGE HERO (inner pages) ─── */
.page-hero {
  padding: clamp(72px,8vw,100px) 0 clamp(56px,6vw,80px);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: relative;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(7,18,37,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7,18,37,.025) 1px, transparent 1px);
  background-size: 48px 48px;
}
.page-hero-accent {
  position: absolute; top: 0; right: 0;
  width: 36%; height: 100%;
  background: linear-gradient(135deg,#f2ede5,#e6dfd3);
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
  z-index: 0;
}
.page-hero-inner { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(34px,6vw,76px); max-width: 860px; margin-top: 14px; }
.page-hero .lead {
  font-size: clamp(15px,1.9vw,18px);
  color: #4D5665; max-width: 640px;
  margin-top: 20px; line-height: 1.75;
}

/* ─── SERVICE DETAIL ─── */
.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px,6vw,80px);
  align-items: start;
}
.sdl-list { margin-top: 32px; }
.sdl-item {
  display: grid;
  grid-template-columns: 3px 1fr;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.sdl-item:first-child { padding-top: 0; }
.sdl-item:last-child { border-bottom: none; }
.sdl-bar { background: var(--red); }
.sdl-text strong {
  display: block;
  font-family: 'DM Serif Display', serif;
  font-size: 17px;
  font-weight: 400;
  margin-bottom: 6px;
  color: var(--city);
}
.sdl-text span { font-size: 14px; color: #5C6573; line-height: 1.7; }
.dark-section .sdl-item { border-bottom-color: rgba(255,255,255,.1); }
.dark-section .sdl-text strong { color: #fff; }
.dark-section .sdl-text span { color: rgba(255,255,255,.6); }

.svc-highlight {
  background: var(--city);
  padding: clamp(26px,4vw,38px);
  color: #fff;
}
.svc-highlight h3 { color: #fff; font-size: clamp(18px,2.8vw,24px); margin-bottom: 14px; }
.svc-highlight p { color: rgba(255,255,255,.72); font-size: 15px; line-height: 1.75; }

.svc-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.svc-tag {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: .16em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,.2);
  padding: 6px 11px;
  color: rgba(255,255,255,.7);
}

.svc-panel {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  padding: clamp(26px,4vw,38px);
}
.svc-panel h3 { color: #fff; font-size: clamp(18px,2.8vw,24px); margin-bottom: 14px; }
.svc-panel p { color: rgba(255,255,255,.7); font-size: 15px; line-height: 1.8; margin-bottom: 14px; }
.svc-panel p:last-of-type { margin-bottom: 0; }

/* ─── ABOUT ─── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px,6vw,80px);
  align-items: start;
}
.about-text p { font-size: clamp(14px,1.7vw,16px); color: #4D5665; line-height: 1.8; margin-bottom: 18px; }
.about-text p:last-child { margin-bottom: 0; }
.about-values { margin-top: 40px; }
.value-row { display: flex; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.value-row:last-child { border-bottom: none; }
.value-num {
  font-family: 'Space Mono', monospace;
  font-size: 10px; letter-spacing: .2em;
  color: var(--red); min-width: 30px; padding-top: 3px; flex-shrink: 0;
}
.value-row h4 { font-size: 19px; margin-bottom: 6px; }
.value-row p { font-size: 14px; color: #5C6573; line-height: 1.7; }
.about-panel {
  background: var(--city);
  padding: clamp(28px,4vw,44px);
  color: #fff;
}
.about-panel h3 { color: #fff; font-size: clamp(20px,3vw,26px); margin-bottom: 20px; }
.about-stat { padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.about-stat:last-child { border-bottom: none; }
.about-stat strong {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(28px,4.5vw,38px);
  color: #fff; display: block; line-height: 1;
}
.about-stat em { color: var(--red); font-style: normal; }
.about-stat span {
  font-family: 'Space Mono', monospace;
  font-size: 9px; letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  display: block; margin-top: 5px;
}
.about-quote { margin-top: 24px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); }
.about-quote blockquote {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(14px,1.8vw,16px);
  color: rgba(255,255,255,.8);
  line-height: 1.65;
  font-style: italic;
}

/* ─── METHOD ─── */
.method-steps { margin-top: 56px; }
.mstep {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: clamp(20px,4vw,40px);
  padding: clamp(32px,5vw,44px) 0;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
}
.mstep:first-child { padding-top: 0; }
.mstep:last-child { border-bottom: none; }
.mstep-num {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(36px,5vw,52px);
  color: var(--red);
  line-height: 1;
  opacity: .3;
  flex-shrink: 0;
}
.mstep-body h3 { font-size: clamp(20px,3vw,28px); margin-bottom: 12px; }
.mstep-body p { font-size: 15px; color: #5C6573; line-height: 1.8; max-width: 680px; }
.mstep-body ul { margin-top: 18px; }
.mstep-body li {
  font-size: 14px; color: #4D5665;
  padding: 8px 0;
  border-bottom: 1px solid rgba(7,18,37,.06);
  display: flex; gap: 12px; align-items: flex-start;
}
.mstep-body li:last-child { border-bottom: none; }
.mstep-body li::before {
  content: '—';
  color: var(--red);
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ─── DIGITAL ─── */
.digital-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px,6vw,80px);
  align-items: start;
}
.digital-text p { font-size: clamp(14px,1.7vw,16px); color: #4D5665; line-height: 1.8; margin-bottom: 16px; }
.digital-text p:last-child { margin-bottom: 0; }
.tech-stack { background: var(--city); padding: clamp(26px,4vw,38px); }
.tech-stack h3 { color: #fff; font-size: clamp(18px,2.8vw,22px); margin-bottom: 20px; }
.tech-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  gap: 12px;
}
.tech-item:last-child { border-bottom: none; }
.tech-item strong { font-size: 13px; color: rgba(255,255,255,.85); }
.tech-item span {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  color: rgba(255,255,255,.45);
  letter-spacing: .12em;
  text-align: right;
}
.digital-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  background: rgba(7,18,37,.07);
  margin-top: 3px;
}
.dfeat { background: #fff; padding: clamp(20px,3vw,28px); }
.dark-section .dfeat { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09); }
.dfeat .dicon {
  font-family: 'Space Mono', monospace;
  font-size: 10px; letter-spacing: .2em;
  color: var(--red); margin-bottom: 14px; display: block;
}
.dfeat h4 { font-size: 18px; margin-bottom: 10px; }
.dfeat p { font-size: 13px; color: #5C6573; line-height: 1.7; }
.dark-section .dfeat h4 { color: #fff; }
.dark-section .dfeat p { color: rgba(255,255,255,.6); }

/* ─── CONTACT ─── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px,6vw,80px);
}
.contact-info h3 { font-size: clamp(22px,3vw,28px); margin-bottom: 18px; }
.contact-info > p { font-size: 15px; color: #596170; line-height: 1.8; margin-bottom: 18px; }
.contact-item {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.contact-item:first-of-type { border-top: 1px solid var(--line); }
.ci-label {
  font-family: 'Space Mono', monospace;
  font-size: 9px; letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--grey);
  min-width: 72px; padding-top: 2px; flex-shrink: 0;
}
.ci-val { font-size: 15px; color: var(--city); word-break: break-word; }
.ci-val a { color: var(--red); }

.contact-form {
  background: #fff;
  border: 1px solid rgba(7,18,37,.1);
  padding: clamp(24px,5vw,44px);
  box-shadow: 0 24px 70px rgba(7,18,37,.08);
}
.contact-form h3 { font-size: clamp(20px,3vw,24px); margin-bottom: 24px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 9px; letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 8px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid rgba(7,18,37,.14);
  background: var(--paper);
  font-size: 16px; /* prevents iOS zoom */
  color: var(--ink);
  outline: none;
  transition: border-color .2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--red); }
.form-group textarea { height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-submit {
  width: 100%;
  background: var(--city);
  color: #fff;
  padding: 15px;
  font-family: 'Space Mono', monospace;
  font-size: 11px; letter-spacing: .2em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background .2s;
  min-height: var(--touch);
}
.form-submit:hover { background: var(--red); }
.form-note { font-size: 12px; color: var(--grey); text-align: center; margin-top: 12px; }

/* ─── CTA SECTION ─── */
.cta-section { text-align: center; }
.cta-section .section-title { margin: 14px auto 26px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ─── FOOTER ─── */
footer {
  background: var(--city);
  color: rgba(255,255,255,.55);
  padding: clamp(48px,6vw,60px) 0 clamp(28px,4vw,36px);
  padding-bottom: calc(clamp(28px,4vw,36px) + var(--safe-b));
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3,1fr);
  gap: clamp(36px,5vw,56px);
  margin-bottom: clamp(40px,5vw,56px);
}
.footer-logo-img { height: 24px; width: auto; filter: brightness(0) invert(1); opacity: .7; margin-bottom: 8px; }
.footer-payoff {
  font-family: 'Space Mono', monospace;
  font-size: 8px; letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(215,25,32,.7);
  margin-bottom: 12px;
 }
.footer-brand p { font-size: 13px; line-height: 1.7; max-width: 260px; }
.footer-col h4 {
  font-family: 'Space Mono', monospace;
  font-size: 9px; letter-spacing: .26em;
  text-transform: uppercase;
  color: rgba(255,255,255,.32);
  margin-bottom: 16px;
}
.footer-col a {
  display: flex;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,.58);
  padding: 6px 0;
  min-height: 36px;
  transition: color .2s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-family: 'Space Mono', monospace;
  font-size: 9px; letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.28);
}

/* ══════════════════════════════════════
   RESPONSIVE — TABLET ≤960px
══════════════════════════════════════ */
@media (max-width: 960px) {
  /* Show hamburger */
  .hamburger { display: flex; }
  .nav-links, .nav-cta { display: none; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-stripe { display: none; }
  .hero-visual { order: -1; }

  .services-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-top: 1px solid rgba(255,255,255,.08); }

  .service-grid,
  .about-grid,
  .digital-grid,
  .contact-grid { grid-template-columns: 1fr; }

  .info-grid,
  .digital-features { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .mstep { grid-template-columns: 52px 1fr; gap: 20px; }
  .form-row { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════
   RESPONSIVE — MOBILE ≤600px
══════════════════════════════════════ */
@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,.08);
    padding: 20px 0;
  }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero h1 { font-size: clamp(36px,11vw,52px); }
  .mstep { grid-template-columns: 1fr; }
  .mstep-num { display: none; }
  .svc-card { min-height: auto; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .cta-actions { flex-direction: column; align-items: center; }
  .cta-actions .btn { width: 100%; max-width: 320px; justify-content: center; }
  .digital-features { grid-template-columns: 1fr; }
}

/* ── DARK MODE ── */
@media (prefers-color-scheme: dark) {
  :root { --paper: #0F1623; --ink: #E8E3DA; --line: rgba(232,227,218,.1); }
  body { background: #0F1623; color: #E8E3DA; }
  header { background: rgba(15,22,35,.95); }
  .hero, .page-hero { background: #0F1623; }
  .hero-stripe, .page-hero-accent { background: linear-gradient(135deg,#171f2e,#121824); }
  .svc-card { background: #141c28; }
  .svc-card:hover { background: #1b2436; }
  .svc-card h3, .value-row h4 { color: #E8E3DA; }
  .svc-card p, .value-row p, .sdl-text span, .dfeat p,
  .about-text p, .mstep-body p, .mstep-body li,
  .contact-info > p, .section-intro { color: #8A93A0; }
  .hero-visual-card, .contact-form { background: #141c28; border-color: rgba(232,227,218,.1); }
  .info-card { background: #141c28; }
  .info-card strong, .mstep-body h3, .dfeat h4 { color: #E8E3DA; }
  .info-card p { color: #8A93A0; }
  .tag { background: rgba(255,255,255,.05); border-color: rgba(232,227,218,.12); color: #A0ABBE; }
  .form-group input, .form-group textarea, .form-group select {
    background: #0F1623; border-color: rgba(232,227,218,.14); color: #E8E3DA;
  }
  .nav-links a { color: #A0ABBE; }
  .brand-payoff { color: rgba(215,25,32,.7); }
  .ci-val { color: #E8E3DA; }
  .section-title, .page-hero h1 { color: #E8E3DA; }
}


/* ─── PREMIUM SCROLLING TOPBAR ─── */
.topbar {
  justify-content: flex-start;
  position: relative;
  padding: 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.topbar-track {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-width: max-content;
  padding-left: 100%;
  animation: stringlineTopbar 36s linear infinite;
  will-change: transform;
}
.topbar:hover .topbar-track { animation-play-state: paused; }
@keyframes stringlineTopbar {
  from { transform: translate3d(0,0,0); }
  to { transform: translate3d(-50%,0,0); }
}
@media (prefers-reduced-motion: reduce) {
  .topbar-track { animation: none; padding-left: var(--gap); }
}
@media (max-width: 600px) {
  .topbar { font-size: 9px; }
  .topbar-track { animation-duration: 28s; }
}

/* ─── COOKIE CONSENT + PRIVACY PREFERENCES ─── */
.cookie-consent,
.privacy-modal__panel {
  font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}
.cookie-consent {
  position: fixed;
  left: max(18px, var(--safe-l));
  right: max(18px, var(--safe-r));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 400;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
  background: rgba(7,18,37,.96);
  color: #fff;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 24px 80px rgba(0,0,0,.28);
  padding: 18px;
  border-radius: 18px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.cookie-consent[hidden], .privacy-modal[hidden] { display: none !important; }
.cookie-consent__text strong { display: block; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.cookie-consent__text p { margin: 0; color: rgba(255,255,255,.68); font-size: 13px; line-height: 1.55; max-width: 760px; }
.cookie-consent__actions, .privacy-modal__actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.cookie-btn {
  appearance: none;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  min-height: 42px;
  padding: 0 16px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.cookie-btn:hover { transform: translateY(-1px); }
.cookie-btn--primary { background: var(--red); border-color: var(--red); color: #fff; }
.cookie-btn--ghost { background: transparent; color: rgba(255,255,255,.78); }
.privacy-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(7,18,37,.58);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.privacy-open { overflow: hidden; }
.privacy-modal__panel {
  position: relative;
  width: min(640px, 100%);
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(24px,4vw,38px);
  box-shadow: 0 30px 100px rgba(0,0,0,.3);
}
.privacy-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}
.privacy-modal h2 { margin: 10px 0 12px; font-size: clamp(28px,4vw,42px); letter-spacing: -.035em; }
.privacy-modal p { color: #596170; line-height: 1.65; font-size: 14px; }
.privacy-option {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.privacy-option strong { display: block; font-size: 14px; color: var(--ink); }
.privacy-option p { margin: 4px 0 0; font-size: 13px; }
.privacy-status { font-family: 'Space Mono', monospace; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.privacy-option--toggle { cursor: pointer; }
.privacy-option--toggle input { position: absolute; opacity: 0; pointer-events: none; }
.privacy-switch {
  width: 52px;
  height: 30px;
  border-radius: 999px;
  background: #D7DDE7;
  position: relative;
  transition: background .2s;
}
.privacy-switch::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  top: 3px;
  left: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
  transition: transform .2s;
}
.privacy-option--toggle input:checked + .privacy-switch { background: var(--red); }
.privacy-option--toggle input:checked + .privacy-switch::after { transform: translateX(22px); }
.footer-privacy-link {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-privacy-link:hover { color: rgba(255,255,255,.72); }
@media (max-width: 760px) {
  .cookie-consent { grid-template-columns: 1fr; }
  .cookie-consent__actions, .privacy-modal__actions { justify-content: flex-start; }
  .cookie-btn { width: 100%; justify-content: center; }
  .privacy-option { grid-template-columns: 1fr; }
}
@media (prefers-color-scheme: dark) {
  .privacy-modal p { color: #8A93A0; }
  .privacy-switch { background: #333d4e; }
}


/* ─── ANIMATED STATS STRIP ─── */
.stats-animated {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.stats-animated::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,255,255,.08), transparent 42%),
    linear-gradient(90deg, transparent, rgba(255,255,255,.035), transparent);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .9s ease, transform .9s ease;
  z-index: -1;
}
.stats-line {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(760px, 84vw);
  height: 1px;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  background: linear-gradient(90deg, transparent, rgba(160,24,32,.92), transparent);
  opacity: .95;
}
.stats-animated.is-visible::before {
  opacity: 1;
  transform: translateY(0);
}
.stats-animated.is-visible .stats-line {
  animation: statsLineReveal 1.15s cubic-bezier(.22,.61,.36,1) forwards;
}
.stats-animated .stat-item {
  opacity: 0;
  transform: translateY(18px);
}
.stats-animated.is-visible .stat-item {
  animation: statCardIn .78s cubic-bezier(.22,.61,.36,1) forwards;
}
.stats-animated.is-visible .stat-item:nth-child(1) { animation-delay: .08s; }
.stats-animated.is-visible .stat-item:nth-child(2) { animation-delay: .18s; }
.stats-animated.is-visible .stat-item:nth-child(3) { animation-delay: .28s; }
.stats-animated.is-visible .stat-item:nth-child(4) { animation-delay: .38s; }
.stat-counter, .stat-prefix, .stat-suffix {
  display: inline-block;
}
.stats-animated.is-visible .stat-num {
  animation: statNumPulse .9s ease both;
}
@keyframes statCardIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes statsLineReveal {
  0% { transform: translateX(-50%) scaleX(0); opacity: 0; }
  35% { opacity: 1; }
  100% { transform: translateX(-50%) scaleX(1); opacity: .95; }
}
@keyframes statNumPulse {
  0% { letter-spacing: -.03em; filter: blur(2px); }
  100% { letter-spacing: 0; filter: blur(0); }
}
@media (prefers-reduced-motion: reduce) {
  .stats-animated .stat-item,
  .stats-animated::before,
  .stats-line {
    opacity: 1;
    transform: none;
    animation: none !important;
    transition: none !important;
  }
}
@media (max-width: 760px) {
  .stats-grid {
    grid-template-columns: repeat(2,1fr);
    row-gap: 28px;
  }
  .stats-grid .stat-item:nth-child(2) { border-right: none; }
  .stats-grid .stat-item:nth-child(3),
  .stats-grid .stat-item:nth-child(4) { padding-top: 4px; }
}

/* ─── CONTACT FORM: FUNCTIONAL STATES ─── */
.form-hp { position: absolute !important; left: -9999px !important; opacity: 0 !important; height: 0 !important; width: 0 !important; pointer-events: none !important; }
.form-consent { display: flex; gap: 10px; align-items: flex-start; margin: -2px 0 18px; font-size: 12px; line-height: 1.6; color: #596170; }
.form-consent input { margin-top: 3px; accent-color: var(--red); }
.form-status { min-height: 18px; margin: 10px 0 0; font-size: 12px; line-height: 1.6; text-align: center; }
.form-status.is-error { color: #B42318; }
.form-status.is-success { color: #52665A; }
.form-status.is-sending { color: var(--red); }
.form-note a { color: var(--red); text-decoration: none; border-bottom: 1px solid rgba(162,44,37,.28); }
.form-submit:disabled { cursor: wait; opacity: .72; }
@media (prefers-color-scheme: dark) {
  .form-consent { color: #AAB2BE; }
  .form-status.is-error { color: #FFB4AB; }
  .form-status.is-success { color: #A8D5BA; }
}

/* ─── CONTACT FORM: VISIBLE PRIVACY CHECKBOX FIX ─── */
.form-consent {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  padding: 13px 14px;
  margin: 2px 0 20px;
  border: 1px solid rgba(7,18,37,.12);
  background: rgba(7,18,37,.025);
  color: #3F4754;
}
.form-consent input[type="checkbox"] {
  -webkit-appearance: auto;
  appearance: auto;
  position: relative;
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin: 2px 0 0;
  border: 1.5px solid rgba(7,18,37,.42);
  background: #fff;
  accent-color: var(--red);
  cursor: pointer;
  opacity: 1;
  visibility: visible;
}
.form-consent span {
  display: block;
  font-size: 12px;
  line-height: 1.55;
}
.form-consent:hover {
  border-color: rgba(162,44,37,.28);
  background: rgba(162,44,37,.035);
}
.form-consent input[type="checkbox"]:focus-visible {
  outline: 2px solid rgba(162,44,37,.42);
  outline-offset: 3px;
}
@media (prefers-color-scheme: dark) {
  .form-consent {
    border-color: rgba(232,227,218,.18);
    background: rgba(255,255,255,.045);
    color: #E1E6EC;
  }
  .form-consent input[type="checkbox"] {
    border-color: rgba(232,227,218,.58);
    background: #fff;
  }
}
