/* ============================================================
   KARYERA CONSULTING — Design tokens
   Palette:  Ink #10141C / Paper #F3F4F1 / Slate #5B6472
             Brass #C89B3C (primary accent) / Teal #3FC7B4 (systems accent)
   Type:     Space Grotesk (display) / IBM Plex Sans (body) / IBM Plex Mono (labels)
   ============================================================ */

:root{
  --ink:        #10141C;
  --ink-soft:   #1A2030;
  --paper:      #F3F4F1;
  --paper-dim:  #E7E8E3;
  --slate:      #5B6472;
  --slate-soft: #8891A0;
  --brass:      #C89B3C;
  --brass-dim:  #9C7A2E;
  --teal:       #3FC7B4;
  --line:       rgba(16,20,28,0.12);
  --line-dark:  rgba(243,244,241,0.14);

  --font-display: 'Space Grotesk', 'Arial Narrow', sans-serif;
  --font-body:    'IBM Plex Sans', -apple-system, sans-serif;
  --font-mono:    'IBM Plex Mono', 'Courier New', monospace;

  --container: 1180px;
  --radius: 3px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *,*::before,*::after{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body{
  margin:0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration:none; }
ul{ list-style:none; margin:0; padding:0; }
h1,h2,h3,h4{ font-family: var(--font-display); margin:0; font-weight:600; letter-spacing:-0.01em; }
p{ margin:0; }
button{ font-family: inherit; cursor:pointer; }

.container{ max-width: var(--container); margin: 0 auto; padding: 0 32px; }

/* ---------- eyebrow / mono labels ---------- */
.eyebrow{
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-dim);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.eyebrow::before{
  content:"";
  width: 8px; height: 8px;
  background: var(--teal);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(63,199,180,0.18);
  flex-shrink:0;
}
.eyebrow.on-dark{ color: var(--teal); }

/* ---------- header ---------- */
.site-header{
  position: sticky; top:0; z-index: 100;
  background: rgba(243,244,241,0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  height: 76px;
}
.brand{
  display:flex; align-items:center; gap:10px;
  font-family: var(--font-display);
  font-weight:700; font-size: 20px; letter-spacing:-0.01em;
}
.brand .brand-mark{
  width:11px;height:11px;background:var(--ink);border-radius:2px;
  display:inline-block; transform: rotate(45deg);
  position:relative; top:-1px;
}
.brand-logo{
  height: 36px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  border-radius: 4px;
  display: block;
  flex-shrink: 0;
}
.brand small{ font-family: var(--font-mono); font-weight:400; font-size:11px; color:var(--slate-soft); letter-spacing:.08em; }

.nav-links{ display:flex; align-items:center; gap: 40px; }
.nav-links a{
  font-size: 14.5px; font-weight:500; color: var(--ink);
  position:relative; padding: 4px 0;
}
.nav-links a::after{
  content:""; position:absolute; left:0; bottom:0; height:2px; width:0;
  background: var(--brass); transition: width .25s var(--ease);
}
.nav-links a:hover::after, .nav-links a.active::after{ width:100%; }
.nav-links a.active{ color: var(--brass-dim); }

.mobile-only{ display:none !important; }

.nav-cta{
  font-family: var(--font-mono); font-size:13px; font-weight:500;
  padding: 11px 20px; background: var(--ink); color: var(--paper);
  border-radius: var(--radius); border:1px solid var(--ink);
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.nav-cta:hover{ background: var(--brass); border-color: var(--brass); transform: translateY(-1px); }

.nav-toggle{
  display:none; flex-direction:column; justify-content:center; gap:5px; background:none; border:none; padding:8px; cursor:pointer; width:40px; height:40px;
  position: relative; z-index: 1005;
}
.nav-toggle span{ width:24px; height:2px; background: var(--ink); display:block; transition: all .25s var(--ease); transform-origin: center; }
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity:0; transform: scaleX(0); }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn{
  display:inline-flex; align-items:center; gap:8px;
  font-family: var(--font-mono); font-size: 13.5px; font-weight:500;
  padding: 14px 26px; border-radius: var(--radius);
  border: 1px solid transparent; transition: all .22s var(--ease);
  white-space: nowrap;
}
.btn-primary{ background: var(--brass); color: var(--ink); border-color: var(--brass); }
.btn-primary:hover{ background: transparent; color: var(--brass); border-color: var(--brass); transform: translateY(-2px); }
.btn-ghost{ background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover{ border-color: var(--ink); transform: translateY(-2px); }
.btn-ghost.on-dark{ color: var(--paper); border-color: var(--line-dark); }
.btn-ghost.on-dark:hover{ border-color: var(--paper); }
.btn-arrow{ transition: transform .22s var(--ease); }
.btn:hover .btn-arrow{ transform: translateX(3px); }

.hero-ctas{ display:flex; gap:16px; flex-wrap:wrap; }

/* ---------- section rhythm ---------- */
section{ padding: 108px 0; }
.section-head{ max-width: 640px; margin-bottom: 64px; }
.section-head h2{ font-size: clamp(28px, 3.4vw, 42px); line-height:1.15; }
.section-head p{ margin-top:16px; color: var(--slate); font-size: 16.5px; }
.on-dark{ background: var(--ink); color: var(--paper); }
.on-dark .section-head p{ color: var(--slate-soft); }
.dim{ background: var(--paper-dim); }

.reveal{ opacity:0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible{ opacity:1; transform:none; }

/* ---------- hero ---------- */
.hero{
  background: var(--ink); color: var(--paper);
  padding: 88px 0 96px;
  position:relative; overflow:hidden;
}
.hero::before{
  content:"";
  position:absolute; inset:0;
  background-image:
    linear-gradient(var(--line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, black, transparent);
  opacity:.5;
}
.hero-grid{
  position:relative; z-index:1;
  display:grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items:center;
}
.hero h1{
  font-size: clamp(38px, 5vw, 60px); line-height: 1.06; letter-spacing:-0.02em;
  margin-bottom: 22px;
}
.hero h1 em{ font-style:normal; color: var(--brass); }
.hero-sub{ font-size: 18px; color: var(--slate-soft); max-width: 500px; margin-bottom: 36px; }
.hero-stats{ display:flex; gap: 40px; margin-top: 56px; flex-wrap:wrap; }
.hero-stat b{ display:block; font-family: var(--font-display); font-size: 30px; color: var(--paper); }
.hero-stat span{ font-family: var(--font-mono); font-size: 11.5px; color: var(--slate-soft); letter-spacing:.06em; text-transform:uppercase; }

/* console widget — signature element */
.console{
  background: var(--ink-soft); border: 1px solid var(--line-dark);
  border-radius: 6px; overflow:hidden;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6);
}
.console-bar{
  display:flex; align-items:center; gap:8px;
  padding: 12px 16px; border-bottom: 1px solid var(--line-dark);
}
.console-bar span{ width:9px; height:9px; border-radius:50%; background: var(--slate-soft); opacity:.4; }
.console-bar .title{
  margin-left:8px; font-family: var(--font-mono); font-size:11.5px; color: var(--slate-soft); letter-spacing:.04em;
}
.console-body{ padding: 20px 18px; font-family: var(--font-mono); font-size: 13px; }
.console-row{
  display:flex; align-items:center; justify-content:space-between;
  padding: 11px 4px; border-bottom: 1px dashed var(--line-dark);
  opacity:0; animation: rowIn .5s var(--ease) forwards;
}
.console-row:last-child{ border-bottom:none; }
.console-row .label{ display:flex; align-items:center; gap:10px; color: var(--paper); }
.console-row .dot{ width:7px; height:7px; border-radius:50%; background: var(--teal); box-shadow: 0 0 0 3px rgba(63,199,180,0.15); animation: pulse 2.4s ease-in-out infinite; }
.console-row .status{ color: var(--teal); font-size:11.5px; letter-spacing:.04em; }
.console-row:nth-child(1){ animation-delay:.15s } .console-row:nth-child(1) .dot{ animation-delay:0s }
.console-row:nth-child(2){ animation-delay:.35s } .console-row:nth-child(2) .dot{ animation-delay:.3s }
.console-row:nth-child(3){ animation-delay:.55s } .console-row:nth-child(3) .dot{ animation-delay:.6s }
.console-row:nth-child(4){ animation-delay:.75s } .console-row:nth-child(4) .dot{ animation-delay:.9s }
.console-row:nth-child(5){ animation-delay:.95s } .console-row:nth-child(5) .dot{ animation-delay:1.2s }
@keyframes rowIn{ to{ opacity:1; } }
@keyframes pulse{ 0%,100%{ opacity:1; } 50%{ opacity:.35; } }
.console-foot{
  padding: 12px 18px; border-top:1px solid var(--line-dark);
  font-family: var(--font-mono); font-size: 11px; color: var(--slate-soft);
  display:flex; justify-content:space-between;
}

/* ---------- logos / trust strip ---------- */
.trust-strip{ padding: 40px 0; border-bottom:1px solid var(--line); }
.trust-strip .container{ display:flex; align-items:center; gap:40px; flex-wrap:wrap; justify-content:space-between; }
.trust-strip .trust-label{ font-family: var(--font-mono); font-size:12px; color: var(--slate-soft); letter-spacing:.08em; text-transform:uppercase; white-space:nowrap; }
.trust-items{ display:flex; gap:36px; flex-wrap:wrap; }
.trust-items span{ font-family: var(--font-mono); font-size: 13px; color: var(--slate); }

/* ---------- about / value grid ---------- */
.value-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--line); border:1px solid var(--line); }
.value-card{ background: var(--paper); padding: 36px 32px; }
.value-card .num{ font-family: var(--font-mono); font-size:12px; color: var(--brass-dim); margin-bottom:18px; display:block; }
.value-card h3{ font-size:19px; margin-bottom:10px; }
.value-card p{ color: var(--slate); font-size:14.5px; }

.about-split{ display:grid; grid-template-columns: 0.9fr 1.1fr; gap:72px; align-items:start; }
.about-split .lede{ font-size: 21px; line-height:1.5; font-family: var(--font-display); font-weight:500; }
.about-split .body-text p{ color: var(--slate); margin-bottom:18px; font-size:15.5px; }
.about-split .body-text p:last-child{ margin-bottom:0; }

.mv-row{ display:grid; grid-template-columns:1fr 1fr; gap:24px; margin-top:40px; }
.mv-box{ border-left:2px solid var(--brass); padding-left:20px; }
.mv-box h4{ font-family:var(--font-mono); font-size:12px; letter-spacing:.1em; text-transform:uppercase; color:var(--brass-dim); margin-bottom:10px; }
.mv-box p{ font-size:14.5px; color: var(--slate); }

/* ---------- services cards ---------- */
.services-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap:26px; }
.service-card{
  background: var(--paper); border:1px solid var(--line); border-radius: 6px;
  padding: 34px 28px; transition: transform .28s var(--ease), border-color .28s var(--ease), box-shadow .28s var(--ease);
  position:relative;
}
.service-card:hover{ transform: translateY(-6px); border-color: var(--brass); box-shadow: 0 22px 40px -24px rgba(16,20,28,.28); }
.service-card .icon{
  width:44px;height:44px; border-radius:6px; background: var(--ink); color: var(--teal);
  display:flex; align-items:center; justify-content:center; margin-bottom:22px;
}
.service-card .icon svg{ width:22px; height:22px; }
.service-card h3{ font-size:18.5px; margin-bottom:10px; }
.service-card p{ color: var(--slate); font-size:14.5px; margin-bottom:16px; }
.service-card .tags{ display:flex; flex-wrap:wrap; gap:8px; }
.service-card .tags span{ font-family: var(--font-mono); font-size:11px; color: var(--slate); background: var(--paper-dim); padding:4px 9px; border-radius: 20px; }

.service-detail{
  display:grid; grid-template-columns: 60px 1fr; gap:28px;
  padding: 44px 0; border-top:1px solid var(--line);
}
.service-detail:last-child{ border-bottom:1px solid var(--line); }
.service-detail .idx{ font-family: var(--font-mono); font-size:13px; color: var(--brass-dim); padding-top:6px; }
.service-detail h3{ font-size: 24px; margin-bottom:12px; }
.service-detail p{ color: var(--slate); font-size:15.5px; max-width:680px; margin-bottom:18px; }
.service-detail .chip-row{ display:flex; flex-wrap:wrap; gap:8px; }
.service-detail .chip-row span{ font-family:var(--font-mono); font-size:11.5px; padding:5px 11px; border:1px solid var(--line); border-radius:20px; color: var(--slate); }

/* ---------- process ---------- */
.process-list{ counter-reset: step; }
.process-item{
  display:grid; grid-template-columns: 90px 1fr; gap:28px;
  padding: 34px 0; border-top: 1px solid var(--line-dark);
  position:relative;
}
.process-item:last-child{ border-bottom:1px solid var(--line-dark); }
.process-item .step{ font-family: var(--font-mono); font-size: 34px; color: var(--brass); opacity:.85; }
.process-item h4{ font-size: 19px; margin-bottom:8px; color: var(--paper); }
.process-item p{ color: var(--slate-soft); font-size:14.5px; max-width:600px; }

/* ---------- tech marquee ---------- */
.tech-strip{ overflow:hidden; border-top:1px solid var(--line); border-bottom:1px solid var(--line); padding: 30px 0; background: var(--paper-dim); }
.marquee{ display:flex; gap:56px; width:max-content; animation: scroll 26s linear infinite; }
.marquee span{ font-family: var(--font-mono); font-size: 14px; color: var(--slate); white-space:nowrap; display:flex; align-items:center; gap:10px;}
.marquee span::before{ content:"//"; color: var(--brass); }
@keyframes scroll{ from{ transform: translateX(0);} to{ transform: translateX(-50%);} }

/* ---------- portfolio / capability showcase ---------- */
.work-grid{ display:grid; grid-template-columns: repeat(2,1fr); gap:26px; }
.work-card{
  border:1px solid var(--line); border-radius:6px; overflow:hidden; background: var(--paper);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}
.work-card:hover{ transform: translateY(-5px); box-shadow: 0 24px 44px -26px rgba(16,20,28,.3); }
.work-thumb{
  height: 190px; position:relative; overflow:hidden;
  display:flex; align-items:center; justify-content:center;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-soft) 100%);
}
.work-thumb::after{
  content:""; position:absolute; inset:0;
  background-image: linear-gradient(var(--line-dark) 1px, transparent 1px), linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 26px 26px;
}
.work-thumb .glyph{ position:relative; z-index:1; font-family:var(--font-display); font-size:15px; color: var(--teal); letter-spacing:.06em; }
.work-body{ padding: 24px 26px; }
.work-body .kicker{ font-family: var(--font-mono); font-size:11px; color: var(--brass-dim); letter-spacing:.08em; text-transform:uppercase; margin-bottom:8px; }
.work-body h3{ font-size:19px; margin-bottom:10px; }
.work-body p{ color:var(--slate); font-size:14px; margin-bottom:16px; }
.work-body .stack{ display:flex; flex-wrap:wrap; gap:7px; margin-bottom:18px; }
.work-body .stack span{ font-family: var(--font-mono); font-size:11px; background: var(--paper-dim); padding:4px 9px; border-radius:20px; color:var(--slate); }
.work-link{ font-family: var(--font-mono); font-size:13px; color: var(--ink); border-bottom:1px solid var(--brass); padding-bottom:2px; display:inline-flex; align-items:center; gap:6px; }

/* ---------- testimonials ---------- */
.testi-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap:26px; }
.testi-card{ background: var(--ink-soft); border:1px solid var(--line-dark); border-radius:6px; padding: 32px 28px; }
.stars{ color: var(--brass); font-size:15px; letter-spacing:2px; margin-bottom:18px; }
.testi-card p.quote{ color: var(--paper); font-size:15.5px; line-height:1.6; margin-bottom:22px; }
.testi-who{ display:flex; align-items:center; gap:12px; }
.testi-avatar{ width:38px;height:38px;border-radius:50%; background: var(--brass); color:var(--ink); display:flex; align-items:center; justify-content:center; font-family:var(--font-mono); font-weight:600; font-size:13px; }
.testi-who b{ display:block; font-size:14px; color:var(--paper); }
.testi-who span{ font-family: var(--font-mono); font-size:11.5px; color: var(--slate-soft); }

/* ---------- CTA band ---------- */
.cta-band{
  background: var(--brass); color: var(--ink);
  padding: 72px 0; text-align:center;
}
.cta-band h2{ font-size: clamp(26px,3.4vw,38px); margin-bottom:16px; }
.cta-band p{ color: rgba(16,20,28,.72); max-width:560px; margin:0 auto 32px; font-size:16px; }
.cta-band .btn-primary{ background: var(--ink); border-color: var(--ink); color: var(--paper); }
.cta-band .btn-primary:hover{ background: transparent; color: var(--ink); }

/* ---------- contact ---------- */
.contact-grid{ display:grid; grid-template-columns: 1fr 1.2fr; gap:64px; }
.contact-info-list{ margin-top:36px; display:flex; flex-direction:column; gap:22px; }
.info-item{ display:flex; gap:16px; align-items:flex-start; }
.info-item .icon{ width:38px;height:38px;border-radius:6px; background: var(--paper-dim); display:flex; align-items:center; justify-content:center; flex-shrink:0; color: var(--brass-dim); }
.info-item .icon svg{ width:18px; height:18px; }
.info-item h4{ font-size:13.5px; font-family:var(--font-mono); text-transform:uppercase; letter-spacing:.06em; color: var(--slate-soft); margin-bottom:4px; }
.info-item p, .info-item a{ font-size:15px; color: var(--ink); }
.phone-links{ display:flex; flex-wrap:wrap; align-items:center; gap:4px 8px; }
.phone-links .sep{ color: var(--slate-soft); opacity:.7; }
.map-box{
  margin-top:32px; height:240px; border-radius:8px; border:1px solid var(--line);
  background: var(--paper-dim);
  display:flex; align-items:center; justify-content:center;
  font-family: var(--font-mono); font-size:12.5px; color: var(--slate-soft);
  position:relative; overflow:hidden;
}
.map-box iframe{ width:100%; height:100%; border:0; display:block; }
.map-box .map-link-badge{
  position:absolute; bottom:12px; right:12px; z-index:2;
  background: var(--paper); color: var(--ink); padding:6px 14px;
  border:1px solid var(--line); border-radius:20px; font-family: var(--font-mono);
  font-size:12px; text-decoration:none; box-shadow:0 2px 8px rgba(0,0,0,0.1);
  transition: all .2s var(--ease);
}
.map-box .map-link-badge:hover{
  background: var(--ink); color: var(--paper); border-color: var(--ink);
}

.form-card{ background: var(--paper); border:1px solid var(--line); border-radius:8px; padding: 40px; }
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:20px; margin-bottom:20px; }
.field{ display:flex; flex-direction:column; gap:8px; }
.field.full{ grid-column: 1 / -1; }
.field label{ font-family: var(--font-mono); font-size:12px; letter-spacing:.05em; text-transform:uppercase; color: var(--slate); }
.field input, .field select, .field textarea{
  font-family: var(--font-body); font-size:15px; padding:13px 14px;
  border:1px solid var(--line); border-radius: var(--radius); background: var(--paper);
  color: var(--ink); transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus{
  outline:none; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(200,155,60,0.16);
}
.field textarea{ resize: vertical; min-height:120px; }
.field small.hint{ font-family: var(--font-mono); font-size:11px; color: var(--slate-soft); }
.form-note{ font-family: var(--font-mono); font-size:12px; color: var(--slate-soft); margin-top:16px; }
.form-card .btn-primary{ width:100%; justify-content:center; margin-top:6px; }

/* ---------- footer ---------- */
footer{ background: var(--ink); color: var(--slate-soft); padding: 72px 0 0; }
.footer-grid{ display:grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap:48px; padding-bottom:56px; border-bottom:1px solid var(--line-dark); }
.footer-brand .brand{ color: var(--paper); }
.footer-brand .brand-mark{ background: var(--brass); }
.footer-brand p{ margin-top:16px; font-size:14px; max-width:280px; line-height:1.7; }
.footer-col h5{ font-family: var(--font-mono); font-size:12px; letter-spacing:.08em; text-transform:uppercase; color: var(--paper); margin-bottom:18px; }
.footer-col ul{ display:flex; flex-direction:column; gap:12px; }
.footer-col a{ font-size:14px; transition: color .2s; }
.footer-col a:hover{ color: var(--teal); }
.footer-social{ display:flex; gap:12px; margin-top:6px; }
.footer-social a{ width:36px;height:36px; border:1px solid var(--line-dark); border-radius:50%; display:flex; align-items:center; justify-content:center; transition: border-color .2s, color .2s; }
.footer-social a:hover{ border-color: var(--teal); color: var(--teal); }
.footer-bottom{ display:flex; justify-content:space-between; align-items:center; padding: 26px 0; font-size:13px; flex-wrap:wrap; gap:12px; }
.footer-bottom .links{ display:flex; gap:24px; }

/* ---------- page hero (inner pages) ---------- */
.page-hero{ background: var(--ink); color: var(--paper); padding: 64px 0 56px; position:relative; overflow:hidden; }
.page-hero::before{
  content:""; position:absolute; inset:0;
  background-image: linear-gradient(var(--line-dark) 1px, transparent 1px), linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 60% 60% at 80% 20%, black, transparent);
  opacity:.5;
}
.page-hero .container{ position:relative; z-index:1; }
.breadcrumb{ font-family: var(--font-mono); font-size:12.5px; color: var(--slate-soft); margin-bottom:20px; }
.breadcrumb span{ color: var(--brass); }
.page-hero h1{ font-size: clamp(32px,4.4vw,48px); max-width:700px; }
.page-hero .sub{ margin-top:16px; color: var(--slate-soft); max-width:560px; font-size:16.5px; }

/* Helper grid utility classes */
.grid-4{ display:grid; grid-template-columns:repeat(4,1fr); gap:1px; background:var(--line); border:1px solid var(--line); }
.grid-5{ display:grid; grid-template-columns:repeat(5,1fr); gap:1px; background:var(--line); border:1px solid var(--line); }
.grid-2{ display:grid; grid-template-columns:repeat(2,1fr); gap:20px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns:1fr; gap:40px; }
  .about-split{ grid-template-columns:1fr; gap:36px; }
  .value-grid{ grid-template-columns:repeat(2,1fr); }
  .services-grid{ grid-template-columns:repeat(2,1fr); }
  .grid-4{ grid-template-columns:repeat(2,1fr); }
  .grid-5{ grid-template-columns:repeat(3,1fr); }
  .work-grid{ grid-template-columns:1fr; }
  .testi-grid{ grid-template-columns:1fr; }
  .contact-grid{ grid-template-columns:1fr; gap:40px; }
  .footer-grid{ grid-template-columns:1fr 1fr; row-gap:32px; }
}

html.nav-open, body.nav-open{ overflow:hidden !important; touch-action:none; }

@media (max-width: 768px){
  body{ padding-top: 76px !important; }
  
  section{ padding: 64px 0; }
  .container{ padding: 0 20px; }
  
  .site-header{
    position: fixed !important; top:0 !important; left:0 !important; right:0 !important; width:100% !important; height: 76px !important;
    z-index: 10000 !important;
    background: #F3F4F1 !important; background-color: var(--paper) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: 1px solid var(--line) !important;
  }
  .nav{ height: 76px !important; display:flex !important; align-items:center !important; justify-content:space-between !important; }
  .brand{ position:relative !important; z-index:10005 !important; }
  .site-header > .container > .nav-cta{ display:none !important; }
  .nav-toggle{ display:flex !important; position:relative !important; z-index:10005 !important; }
  
  .nav-links{
    position:fixed !important; top:76px !important; left:0 !important; right:0 !important;
    width:100vw !important; height:calc(100vh - 76px) !important; height:calc(100dvh - 76px) !important;
    background: #F3F4F1 !important; background-color: var(--paper) !important;
    flex-direction:column; justify-content:flex-start; align-items:stretch;
    padding: 20px 20px 40px; gap: 12px;
    opacity:0 !important; visibility:hidden; pointer-events:none;
    transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
    z-index:9999 !important;
    overflow-y:auto; -webkit-overflow-scrolling:touch;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  }
  .nav-links.is-open{
    opacity:1 !important; visibility:visible !important; pointer-events:auto !important;
    transform: translateY(0);
  }
  .nav-links a{
    font-size:16px; font-weight:600; color: var(--ink);
    width:100%; padding:14px 20px; border:1px solid var(--line);
    border-radius: 6px; background: #FFFFFF;
    display:flex; align-items:center; justify-content:space-between;
    transition: all .2s var(--ease);
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
  }
  .nav-links a::after{ display:none; }
  .nav-links a.active{
    background: #10141C; color: #F3F4F1; border: 1px solid var(--brass);
  }
  .nav-links a:hover{ border-color: var(--brass); }
  .nav-links .nav-cta.mobile-only{
    display:flex !important; width:100%; justify-content:center;
    margin-top:6px; padding:14px 20px; font-size:14.5px; font-weight:500;
    font-family: var(--font-mono); background: #FFFFFF; color: var(--ink);
    border: 1px solid var(--line); border-radius: 6px;
  }
  
  .hero{ padding: 56px 0 64px; }
  .hero h1 br{ display:none; }
  .hero-stats{ gap:16px; margin-top:36px; display:grid; grid-template-columns:repeat(3,1fr); text-align:center; }
  .hero-stat b{ font-size:24px; }
  .hero-stat span{ font-size:10.5px; }

  .trust-strip .container{ flex-direction:column; align-items:flex-start; gap:16px; }
  .trust-items{ gap:12px 24px; }

  .value-grid, .grid-4, .grid-2{ grid-template-columns:1fr; }
  .services-grid{ grid-template-columns:1fr; }
  .service-detail{ grid-template-columns: 1fr; gap:12px; }
  .process-item{ grid-template-columns:1fr; gap:12px; }
  .process-item .step{ font-size:28px; }

  .form-row{ grid-template-columns:1fr; }
  .form-card{ padding:28px 20px; }

  .footer-grid{ grid-template-columns:1fr; gap:32px; }
  .footer-bottom{ flex-direction:column; align-items:flex-start; gap:16px; }
}

@media (max-width: 480px){
  section{ padding: 48px 0; }
  .container{ padding: 0 16px; }

  .hero h1{ font-size: clamp(26px, 8vw, 36px); }
  .hero-sub{ font-size: 15px; }
  .hero-ctas{ flex-direction:column; width:100%; }
  .hero-ctas .btn{ width:100%; justify-content:center; }
  .hero-stats{ grid-template-columns:1fr; text-align:left; gap:14px; }

  .console{ margin-top: 16px; }
  .console-body{ padding: 14px 12px; font-size: 11.5px; }
  .console-foot{ font-size: 10px; padding: 10px 12px; }

  .grid-5{ grid-template-columns:1fr; }
  .mv-row{ grid-template-columns:1fr; }
  .info-item{ gap:12px; }
  .info-item p, .info-item a{ font-size: 14px; word-break: break-word; }
}

