:root{
  --ink:#14181d;
  --steel-900:#1b2229;
  --steel-800:#232c35;
  --steel-700:#31404c;
  --steel-600:#4a5a67;
  --steel-line:#3a4753;
  --paper:#eef1ee;
  --paper-2:#e1e6e1;
  --paper-line:#c7cdc6;
  --torch:#ff5a1f;
  --torch-dim:#c8460f;
  --hazard:#ffc72c;
  --ink-on-paper:#181d21;
  --muted-on-paper:#57625d;
  --muted-on-steel:#a7b3bc;
  --white:#f5f7f5;
  --radius:2px;
}

*{box-sizing:border-box;}
html{ scroll-behavior:smooth; }
@media (prefers-reduced-motion:reduce){ html{ scroll-behavior:auto; } }
html,body{margin:0;padding:0;}
body{
  background:var(--paper);
  color:var(--ink-on-paper);
  font-family:'IBM Plex Sans', ui-sans-serif, system-ui, sans-serif;
  font-size:16px;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
  padding-inline:0;
  overflow-x:hidden;
}
img{max-width:100%;display:block;}
a{color:inherit;}
h1,h2,h3,h4{
  font-family:'Big Shoulders Display', 'Arial Narrow', sans-serif;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:0.01em;
  line-height:0.95;
  margin:0;
  text-wrap:balance;
}
.mono{
  font-family:'IBM Plex Mono', ui-monospace, SFMono-Regular, monospace;
}
.eyebrow{
  font-family:'IBM Plex Mono', monospace;
  font-size:0.78rem;
  font-weight:600;
  letter-spacing:0.16em;
  text-transform:uppercase;
}
.wrap{
  max-width:1180px;
  margin-inline:auto;
  padding-inline:20px;
}
@media (min-width:720px){ .wrap{ padding-inline:40px; } }

.hazard-rule{
  height:10px;
  background:repeating-linear-gradient(135deg, var(--hazard) 0 18px, var(--ink) 18px 36px);
}

/* ---------- HEADER ---------- */
header{
  position:sticky; top:0; z-index:50;
  background:var(--steel-900);
  border-bottom:1px solid var(--steel-line);
}
.nav-row{
  display:flex; align-items:center; justify-content:space-between;
  padding-block:14px;
  gap:16px;
}
.brand{ display:flex; align-items:center; gap:12px; }
.brand img{ height:52px; width:auto; }
.brand--logo-only img{ height:76px; }
@media (max-width:640px){ .brand--logo-only img{ height:60px; } }
.brand-name{
  font-family:'Big Shoulders Display',sans-serif;
  font-weight:800; text-transform:uppercase;
  font-size:1.05rem; line-height:1; color:var(--white);
  letter-spacing:0.02em;
}
.brand-name span{ display:block; font-size:0.62rem; letter-spacing:0.14em; color:var(--muted-on-steel); font-family:'IBM Plex Mono',monospace; text-transform:uppercase; font-weight:600; margin-top:3px;}
nav.links{
  display:none;
  align-items:center; gap:28px;
}
nav.links a{
  color:var(--muted-on-steel);
  text-decoration:none;
  font-size:0.86rem;
  font-weight:500;
  letter-spacing:0.03em;
}
nav.links a:hover{ color:var(--white); }
nav.links a.is-active{ color:var(--torch); }
.call-btn{
  display:flex; align-items:center; gap:8px;
  background:var(--torch);
  color:var(--ink);
  font-family:'IBM Plex Mono',monospace;
  font-weight:600;
  font-size:0.82rem;
  padding:10px 16px;
  text-decoration:none;
  white-space:nowrap;
  border:1px solid var(--torch);
}
.call-btn:hover{ background:var(--hazard); border-color:var(--hazard); }
.burger{
  display:inline-flex; background:none; border:1px solid var(--steel-600); color:var(--white);
  width:40px; height:40px; align-items:center; justify-content:center; cursor:pointer;
}
@media (min-width:900px){
  nav.links{ display:flex; }
  .burger{ display:none; }
}
#mnav{ display:none; }
#mnav:checked ~ .mobile-menu{ display:flex; }
.mobile-menu{
  display:none; flex-direction:column; gap:2px;
  background:var(--steel-800); border-top:1px solid var(--steel-line);
}
.mobile-menu a{
  color:var(--muted-on-steel); text-decoration:none; padding:14px 20px;
  border-bottom:1px solid var(--steel-line); font-size:0.92rem;
}
.mobile-menu a.is-active{ color:var(--torch); }
@media (min-width:900px){ .mobile-menu{ display:none !important; } }

/* ---------- HERO (home) ---------- */
.hero{
  position:relative;
  background:
    linear-gradient(180deg, rgba(20,24,29,0.72), rgba(20,24,29,0.92)),
    url('images/hero.jpg') center/cover no-repeat;
  color:var(--white);
  padding-block:64px 56px;
}
.hero .eyebrow{ color:var(--hazard); }
.hero h1{
  font-size:clamp(2.6rem, 8vw, 5.2rem);
  color:var(--white);
  margin-block:14px 20px;
}
.hero h1 em{ font-style:normal; color:var(--torch); }
.hero p.lede{
  max-width:52ch;
  font-size:1.08rem;
  color:var(--muted-on-steel);
  margin-bottom:32px;
}
.cta-row{ display:flex; flex-wrap:wrap; gap:14px; margin-bottom:48px; }
.btn{
  font-family:'IBM Plex Mono',monospace;
  font-weight:600;
  font-size:0.86rem;
  letter-spacing:0.02em;
  padding:14px 24px;
  text-decoration:none;
  display:inline-flex; align-items:center; gap:10px;
  border:1px solid transparent;
  cursor:pointer;
}
.btn-primary{ background:var(--torch); color:var(--ink); border-color:var(--torch); }
.btn-primary:hover{ background:var(--hazard); border-color:var(--hazard); }
.btn-ghost{ background:transparent; color:var(--white); border-color:var(--steel-600); }
.btn-ghost:hover{ border-color:var(--white); }

.stat-strip{
  display:grid; grid-template-columns:repeat(2,1fr); gap:1px;
  background:var(--steel-line);
  border:1px solid var(--steel-line);
}
@media (min-width:640px){ .stat-strip{ grid-template-columns:repeat(4,1fr); } }
.stat-strip div{
  background:rgba(27,34,41,0.72);
  padding:16px 18px;
}
.stat-strip .num{
  font-family:'IBM Plex Mono',monospace;
  font-weight:600;
  font-size:1.3rem;
  color:var(--hazard);
  font-variant-numeric:tabular-nums;
}
.stat-strip .lbl{
  font-size:0.74rem; color:var(--muted-on-steel); letter-spacing:0.04em; margin-top:4px;
}

/* ---------- INTERIOR PAGE HERO ---------- */
.page-hero{
  position:relative;
  background:
    linear-gradient(180deg, rgba(20,24,29,0.78), rgba(20,24,29,0.94)),
    url('images/hero.jpg') center/cover no-repeat;
  color:var(--white);
  padding-block:44px 40px;
}
.breadcrumb{
  font-family:'IBM Plex Mono',monospace; font-size:0.74rem; letter-spacing:0.04em;
  color:var(--muted-on-steel); margin-bottom:14px;
}
.breadcrumb a{ color:var(--muted-on-steel); text-decoration:none; }
.breadcrumb a:hover{ color:var(--white); }
.breadcrumb .sep{ margin-inline:8px; opacity:0.5; }
.breadcrumb .here{ color:var(--hazard); }
.page-hero .eyebrow{ color:var(--hazard); }
.page-hero h1{
  font-size:clamp(2.1rem, 6vw, 3.6rem);
  color:var(--white);
  margin-block:12px 0;
}
.page-hero p.lede{ max-width:62ch; font-size:1.02rem; color:var(--muted-on-steel); margin-top:16px; }

/* ---------- CLIENTS ---------- */
.clients{ background:var(--ink); padding-block:28px; border-top:1px solid var(--steel-line); }
.clients .eyebrow{ color:var(--muted-on-steel); display:block; margin-bottom:18px; text-align:center;}
.client-marquee{
  overflow:hidden;
  mask-image:linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image:linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.client-track{
  display:flex; align-items:center;
  width:max-content;
  gap:28px;
  animation:client-slide 28s linear infinite;
}
.client-marquee:hover .client-track{ animation-play-state:paused; }
@media (prefers-reduced-motion:reduce){ .client-track{ animation:none; } }
@keyframes client-slide{
  from{ transform:translateX(0); }
  to{ transform:translateX(-50%); }
}
.client-chip{
  background:var(--white);
  border-radius:4px;
  padding:10px 18px;
  display:flex; align-items:center; justify-content:center;
  flex:0 0 auto;
}
.client-chip img{
  height:32px; width:auto; max-width:130px; object-fit:contain;
}

/* ---------- SECTION GENERIC ---------- */
section{ padding-block:64px; }
.section-head{ max-width:56ch; margin-bottom:36px; }
.section-head .eyebrow{ color:var(--torch-dim); display:block; margin-bottom:10px; }
.section-head h2{ font-size:clamp(2rem,5vw,2.9rem); color:var(--ink-on-paper); }
.section-head p{ color:var(--muted-on-paper); margin-top:14px; font-size:1.02rem; }

/* ---------- ABOUT ---------- */
.about{ background:var(--paper); }
.about-grid{ display:grid; gap:36px; grid-template-columns:1fr; }
@media (min-width:900px){ .about-grid{ grid-template-columns:1.15fr 0.85fr; align-items:start; } }
.about-copy{ max-width:68ch; }
.about-copy p{ color:var(--muted-on-paper); margin-bottom:16px; }
.value-panel{
  background:var(--steel-900);
  border:1px solid var(--steel-line);
  border-top:3px solid var(--torch);
  padding:26px 24px;
}
.value-list{ list-style:none; margin:16px 0 0; padding:0; display:flex; flex-direction:column; gap:16px; }
.value-list li{
  color:var(--muted-on-steel);
  font-size:0.92rem;
  line-height:1.5;
  padding-left:22px;
  position:relative;
}
.value-list li::before{
  content:"✓";
  position:absolute; left:0; top:0;
  color:var(--torch);
  font-weight:700;
}
.value-list strong{ color:var(--white); font-weight:600; }

.about-strip{ background:var(--paper-2); }
.about-strip .about-grid-3{ display:grid; grid-template-columns:1fr; gap:1px; background:var(--paper-line); border:1px solid var(--paper-line); }
@media (min-width:780px){ .about-strip .about-grid-3{ grid-template-columns:repeat(3,1fr); } }
.about-strip .a-card{ background:var(--paper); padding:28px 24px; }
.about-strip .a-card .n{ font-family:'IBM Plex Mono',monospace; color:var(--torch-dim); font-size:0.78rem; letter-spacing:0.05em; }
.about-strip .a-card h3{ font-size:1.35rem; margin-block:10px 8px; }
.about-strip .a-card p{ color:var(--muted-on-paper); font-size:0.92rem; }

/* ---------- SERVICES ---------- */
.services{ background:var(--ink); color:var(--white); }
.services .section-head .eyebrow{ color:var(--hazard); }
.services .section-head h2{ color:var(--white); }
.services .section-head p{ color:var(--muted-on-steel); }
.svc-grid{ display:grid; grid-template-columns:1fr; gap:1px; background:var(--steel-line); border:1px solid var(--steel-line);}
@media (min-width:680px){ .svc-grid{ grid-template-columns:1fr 1fr; } }
@media (min-width:1020px){ .svc-grid{ grid-template-columns:repeat(3,1fr); } }
.svc-card{ background:var(--steel-900); padding:28px 26px; display:flex; flex-direction:column; gap:14px; }
.svc-code{ font-family:'IBM Plex Mono',monospace; color:var(--torch); font-size:0.8rem; font-weight:600; letter-spacing:0.05em; }
.svc-card h3{ font-size:1.5rem; color:var(--white); text-transform:none; font-weight:800; }
.svc-card ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:8px; }
.svc-card li{ font-size:0.88rem; color:var(--muted-on-steel); padding-left:16px; position:relative; }
.svc-card li::before{ content:"—"; position:absolute; left:0; color:var(--torch); }
.svc-card p.desc{ color:var(--muted-on-steel); font-size:0.92rem; margin:0; }
.svc-link{
  margin-top:auto; padding-top:10px;
  display:inline-flex; align-items:center; gap:6px;
  font-family:'IBM Plex Mono',monospace; font-size:0.72rem; letter-spacing:0.04em; text-transform:uppercase;
  color:var(--hazard); text-decoration:none; border-top:1px solid var(--steel-line);
  padding-top:14px;
}
.svc-link:hover{ color:var(--white); }
.svc-link::after{ content:"→"; transition:transform .2s ease; }
.svc-link:hover::after{ transform:translateX(3px); }

/* ---------- PROJECTS ---------- */
.projects{ background:var(--paper-2); }
.proj-toolbar{ display:flex; flex-wrap:wrap; gap:10px; margin-bottom:28px; }
.proj-filter{
  font-family:'IBM Plex Mono',monospace; font-size:0.76rem; letter-spacing:0.03em; text-transform:uppercase;
  background:var(--paper); border:1px solid var(--paper-line); color:var(--muted-on-paper);
  padding:9px 16px; cursor:pointer;
}
.proj-filter.is-active{ background:var(--ink-on-paper); color:var(--white); border-color:var(--ink-on-paper); }
.proj-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:3px; }
@media (min-width:680px){ .proj-grid{ grid-template-columns:repeat(3,1fr); } }
.proj-card{ position:relative; aspect-ratio:4/3; overflow:hidden; background:var(--steel-800); }
.proj-card img{ width:100%; height:100%; object-fit:cover; transition:transform .5s ease; }
.proj-card:hover img{ transform:scale(1.06); }
.proj-tag{
  position:absolute; left:0; bottom:0; right:0; top:0;
  background:linear-gradient(0deg, rgba(15,18,22,0.92) 0%, rgba(15,18,22,0.55) 32%, rgba(15,18,22,0) 58%);
  color:var(--white);
  padding:10px 14px 12px;
  display:flex; flex-direction:column; justify-content:space-between;
}
.proj-status{
  align-self:flex-start;
  display:inline-flex; align-items:center; gap:6px;
  font-family:'IBM Plex Mono',monospace; font-size:0.62rem; font-weight:600;
  letter-spacing:0.06em; text-transform:uppercase;
  padding:4px 8px; border-radius:2px;
  background:rgba(20,24,29,0.55); border:1px solid rgba(255,255,255,0.18);
  backdrop-filter:blur(2px);
}
.proj-status::before{ content:""; width:6px; height:6px; border-radius:50%; background:var(--torch); flex:0 0 auto; }
.proj-status.is-ongoing{ border-color:rgba(255,181,44,0.4); }
.proj-status.is-ongoing::before{ background:var(--hazard); }
.proj-body{ display:flex; flex-direction:column; gap:2px; }
.proj-code{ font-family:'IBM Plex Mono',monospace; font-size:0.68rem; color:var(--hazard); letter-spacing:0.05em; }
.proj-name{ font-family:'Big Shoulders Display',sans-serif; font-size:1.05rem; line-height:1.15; font-weight:700; text-transform:uppercase; letter-spacing:0.01em; text-shadow:0 1px 3px rgba(0,0,0,0.5); }
.proj-detail{ font-size:0.74rem; color:var(--muted-on-steel); margin-top:2px; }
.proj-more{ margin-top:28px; text-align:center; }
.proj-note{ margin-top:14px; text-align:center; font-size:0.78rem; color:var(--muted-on-paper); }

/* ---------- CERTIFICATIONS ---------- */
.certs{ background:var(--paper); }
.cert-strip{
  display:grid; grid-template-columns:repeat(2,1fr); gap:16px;
}
@media (min-width:680px){ .cert-strip{ grid-template-columns:repeat(4,1fr); } }
.cert-card{
  background:var(--white);
  border:1px solid var(--paper-line);
  padding:16px;
  display:flex; flex-direction:column; align-items:center; gap:10px;
  width:100%; font:inherit; -webkit-appearance:none; appearance:none;
  cursor:zoom-in; transition:border-color .2s ease, transform .2s ease;
}
.cert-card:hover{ border-color:var(--torch); transform:translateY(-2px); }
.cert-card:focus-visible{ outline:2px solid var(--torch); outline-offset:2px; }
.cert-card img{ height:110px; width:auto; object-fit:contain; }
.cert-card span{ font-family:'IBM Plex Mono',monospace; font-size:0.72rem; color:var(--muted-on-paper); text-align:center; letter-spacing:0.02em;}
.cert-zoom-hint{ font-family:'IBM Plex Mono',monospace; font-size:0.62rem; letter-spacing:0.05em; color:var(--torch); text-transform:uppercase; opacity:0; transition:opacity .2s ease; }
.cert-card:hover .cert-zoom-hint, .cert-card:focus-visible .cert-zoom-hint{ opacity:1; }

.cert-detail-grid{ display:grid; grid-template-columns:1fr; gap:1px; background:var(--paper-line); border:1px solid var(--paper-line); }
@media (min-width:780px){ .cert-detail-grid{ grid-template-columns:1fr 1fr; } }
.cert-detail-card{ background:var(--white); padding:30px 26px; display:flex; gap:20px; }
.cert-detail-card button.cert-thumb{ flex:0 0 auto; width:96px; height:96px; padding:10px; background:var(--paper); border:1px solid var(--paper-line); cursor:zoom-in; display:flex; align-items:center; justify-content:center; }
.cert-detail-card button.cert-thumb img{ max-width:100%; max-height:100%; object-fit:contain; }
.cert-detail-card h3{ font-size:1.25rem; text-transform:none; margin-bottom:6px; }
.cert-detail-card .cert-code{ font-family:'IBM Plex Mono',monospace; color:var(--torch-dim); font-size:0.74rem; letter-spacing:0.05em; display:block; margin-bottom:8px; }
.cert-detail-card p{ color:var(--muted-on-paper); font-size:0.9rem; margin:0; }

/* ---------- CERT LIGHTBOX ---------- */
.cert-lightbox{
  position:fixed; inset:0; z-index:200; display:none;
  align-items:center; justify-content:center;
  background:rgba(12,14,17,0.92); padding:32px;
}
.cert-lightbox.is-open{ display:flex; }
.cert-lightbox-inner{ position:relative; max-width:min(90vw, 720px); max-height:88vh; display:flex; flex-direction:column; align-items:center; gap:14px; }
.cert-lightbox-inner img{ max-width:100%; max-height:72vh; width:auto; height:auto; background:var(--white); padding:20px; box-shadow:0 20px 60px rgba(0,0,0,0.5); }
.cert-lightbox-caption{ color:var(--white); font-family:'IBM Plex Mono',monospace; font-size:0.78rem; letter-spacing:0.03em; text-align:center; }
.cert-lightbox-close{
  position:absolute; top:-18px; right:-18px;
  width:40px; height:40px; border-radius:50%;
  background:var(--torch); color:var(--white); border:none;
  font-size:1.3rem; line-height:1; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
}
@media (max-width:600px){ .cert-lightbox-close{ top:-14px; right:0; } }

/* ---------- TRUST STATS ---------- */
.trust{ background:var(--steel-900); color:var(--white); }
.trust-grid{ display:grid; grid-template-columns:1fr; gap:1px; background:var(--steel-line); border:1px solid var(--steel-line);}
@media (min-width:680px){ .trust-grid{ grid-template-columns:1fr 1fr; } }
.trust-card{ background:var(--steel-900); padding:32px; }
.trust-card .eyebrow{ color:var(--torch); display:block; margin-bottom:10px; }
.trust-card h3{ font-size:1.6rem; color:var(--white); text-transform:none; font-weight:800; margin-bottom:8px; }
.trust-card p{ color:var(--muted-on-steel); font-size:0.92rem; }

/* ---------- CONTACT ---------- */
.contact{ background:var(--paper); }
.contact-grid{ display:grid; grid-template-columns:1fr; gap:32px; }
@media (min-width:900px){ .contact-grid{ grid-template-columns:1fr 1fr; } }
.contact-card{ background:var(--white); border:1px solid var(--paper-line); padding:28px; }
.contact-card h3{ text-transform:none; font-size:1.3rem; margin-bottom:6px;}
.contact-line{ display:flex; gap:12px; padding-block:12px; border-bottom:1px dashed var(--paper-line); font-size:0.94rem;}
.contact-line:last-child{ border-bottom:none; }
.contact-line .k{ font-family:'IBM Plex Mono',monospace; font-size:0.72rem; color:var(--muted-on-paper); min-width:88px; letter-spacing:0.04em; padding-top:2px;}
.contact-line a{ text-decoration:none; }
.contact-line a:hover{ color:var(--torch-dim); }
form.q{ display:flex; flex-direction:column; gap:12px; }
form.q input, form.q textarea{
  font-family:'IBM Plex Sans',sans-serif;
  border:1px solid var(--paper-line);
  background:var(--paper);
  padding:12px 14px; font-size:0.94rem; color:var(--ink-on-paper);
}
form.q label{ font-family:'IBM Plex Mono',monospace; font-size:0.72rem; color:var(--muted-on-paper); letter-spacing:0.04em; margin-bottom:-6px;}
form.q button{
  font-family:'IBM Plex Mono',monospace; font-weight:600; background:var(--torch); color:var(--ink);
  border:none; padding:14px; cursor:pointer; letter-spacing:0.02em; margin-top:6px;
}
form.q button:hover{ background:var(--hazard); }
.social-row{ display:flex; gap:10px; margin-top:4px; }
.social-row a{
  width:38px; height:38px; display:flex; align-items:center; justify-content:center;
  background:var(--ink-on-paper); color:var(--white); text-decoration:none; font-size:0.8rem;
  font-family:'IBM Plex Mono',monospace;
}
.social-row a:hover{ background:var(--torch); }
.map-link{
  display:inline-flex; align-items:center; gap:8px; margin-top:18px;
  font-family:'IBM Plex Mono',monospace; font-size:0.82rem; font-weight:600; letter-spacing:0.02em;
  color:var(--torch-dim); text-decoration:none; border-bottom:1px solid var(--torch-dim); padding-bottom:2px;
}
.map-link:hover{ color:var(--torch); border-color:var(--torch); }

/* ---------- FOOTER ---------- */
footer{ background:var(--ink); color:var(--muted-on-steel); }
.foot-top{ display:grid; grid-template-columns:1fr; gap:32px; padding-block:44px; }
@media (min-width:780px){ .foot-top{ grid-template-columns:1.3fr 1fr 1fr; } }
.foot-brand img{ height:38px; margin-bottom:12px; }
.foot-brand p{ font-size:0.86rem; max-width:38ch; }
.foot-col h4{ text-transform:uppercase; font-family:'IBM Plex Mono',monospace; font-size:0.74rem; letter-spacing:0.08em; color:var(--white); font-weight:600; margin-bottom:14px;}
.foot-col a{ display:block; color:var(--muted-on-steel); text-decoration:none; font-size:0.88rem; margin-bottom:10px; }
.foot-col a:hover{ color:var(--white); }
.foot-bottom{ border-top:1px solid var(--steel-line); padding-block:18px; display:flex; flex-wrap:wrap; gap:12px; justify-content:space-between; font-size:0.76rem; }

/* ---------- ANCHOR OFFSET (sticky header) ---------- */
section[id]{ scroll-margin-top:84px; }

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

/* ---------- SKIP LINK ---------- */
.skip-link{
  position:absolute; left:12px; top:-60px; z-index:300;
  background:var(--torch); color:var(--ink); font-family:'IBM Plex Mono',monospace;
  font-weight:600; font-size:0.82rem; padding:10px 16px; text-decoration:none;
  transition:top .15s ease;
}
.skip-link:focus{ top:12px; }

/* ---------- HEADER SCROLL STATE ---------- */
header{ transition:box-shadow .2s ease; }
header.is-scrolled{ box-shadow:0 6px 18px rgba(0,0,0,0.28); }
header.is-scrolled .nav-row{ padding-block:9px; }
header.is-scrolled .brand img{ height:40px; }
header.is-scrolled .brand--logo-only img{ height:58px; }
@media (max-width:640px){ header.is-scrolled .brand--logo-only img{ height:48px; } }
.nav-row, .brand img{ transition:padding .2s ease, height .2s ease; }

/* ---------- SCROLL REVEAL ---------- */
.reveal{ opacity:0; transform:translateY(18px); transition:opacity .6s ease, transform .6s ease; }
.reveal.is-visible{ opacity:1; transform:translateY(0); }
.reveal-stagger.is-visible > *{ transition-delay:calc(var(--reveal-i, 0) * 70ms); }
@media (prefers-reduced-motion:reduce){
  .reveal{ opacity:1; transform:none; transition:none; }
}

/* ---------- BACK TO TOP ---------- */
.back-to-top{
  position:fixed; right:16px; bottom:82px; z-index:100;
  width:46px; height:46px; display:flex; align-items:center; justify-content:center;
  background:var(--ink-on-paper); color:var(--white); border:1px solid var(--steel-line);
  text-decoration:none; font-size:1.1rem;
  opacity:0; visibility:hidden; transform:translateY(10px);
  transition:opacity .25s ease, transform .25s ease, visibility .25s ease, background .2s ease, bottom .2s ease;
}
.back-to-top.is-visible{ opacity:1; visibility:visible; transform:translateY(0); }
.back-to-top:hover{ background:var(--torch); }
@media (min-width:720px){ .back-to-top{ right:20px; bottom:20px; } }
@media (min-width:900px){ .back-to-top{ right:28px; bottom:28px; } }

/* ---------- STICKY MOBILE CTA ---------- */
.mobile-cta-bar{
  position:fixed; left:0; right:0; bottom:0; z-index:110;
  display:flex; background:var(--steel-900); border-top:1px solid var(--steel-line);
  padding:10px; gap:8px;
  padding-bottom:calc(10px + env(safe-area-inset-bottom));
}
.mobile-cta-bar a{
  flex:1; display:flex; align-items:center; justify-content:center; gap:8px;
  font-family:'IBM Plex Mono',monospace; font-weight:600; font-size:0.84rem;
  text-decoration:none; padding:12px; letter-spacing:0.02em;
}
.mobile-cta-bar .mcta-call{ background:transparent; color:var(--white); border:1px solid var(--steel-600); }
.mobile-cta-bar .mcta-quote{ background:var(--torch); color:var(--ink); }
body{ padding-bottom:66px; }
@media (min-width:720px){
  .mobile-cta-bar{ display:none; }
  body{ padding-bottom:0; }
}

/* ---------- PROJECT LIGHTBOX (reuses .cert-lightbox) ---------- */
.proj-card.is-clickable{ cursor:zoom-in; }
.proj-card:focus-visible{ outline:2px solid var(--torch); outline-offset:-3px; }

/* ---------- FORM VALIDATION / SUCCESS ---------- */
form.q input:invalid.touched, form.q textarea:invalid.touched{ border-color:#c0392b; }
.field-error{ color:#c0392b; font-size:0.76rem; font-family:'IBM Plex Mono',monospace; margin-top:-6px; display:none; }
.field-error.is-visible{ display:block; }
.form-success{
  display:none; align-items:center; gap:10px;
  background:rgba(255,90,31,0.08); border:1px solid var(--torch); color:var(--ink-on-paper);
  padding:14px 16px; font-size:0.9rem; margin-top:4px;
}
.form-success.is-visible{ display:flex; }
.form-success::before{ content:"✓"; color:var(--torch); font-weight:700; }
form.q.is-submitted > *:not(.form-success){ display:none; }

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