/* ============================================================
   Chauhan Fabrication — Global stylesheet
   ============================================================ */

:root {
  --ink:      #0d1b2a;
  --ink-2:    #1b263b;
  --steel: #293343;
  /* --steel:    #3a4a63; */
  --accent:   #fca311;
  --accent-2: #e08f02;
  --white: #fff;
  --paper:    #f6f4ef;
  --paper-2:  #ecead9;
  --line:     rgba(13, 27, 42, 1.10);
  --line-detail:     rgba(13, 27, 42, 1.10);
  --line-d:   rgba(246, 244, 239, 1.12);
  --muted:    #6b7280;

  --f-display: 'Space Grotesk', system-ui, sans-serif;
  --f-body:    'Manrope', system-ui, sans-serif;
  --f-mono:    'JetBrains Mono', ui-monospace, monospace;

  --ease: cubic-bezier(.2, .7, .3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; background: var(--paper); color: var(--ink); font-family: var(--f-body); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

/* ---- Type ---- */
.display       { font-family: var(--f-display); font-weight: 600; letter-spacing: -0.025em; line-height: 0.95; }
.display-thin  { font-family: var(--f-display); font-weight: 300; letter-spacing: -0.025em; line-height: 0.95; }
.eyebrow       { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); }
.meta          { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; }

.container { max-width: 1440px; margin: 0 auto; padding: 0 56px; }
@media (max-width: 768px) { .container { padding: 0 24px; } }

/* ============================================================
   OPENING LOADER
   ============================================================ */
.loader {
  position: fixed; inset: 0; z-index: 100;
  background: #0a0d12; color: var(--paper);
  display: grid; place-items: center;
  overflow: hidden;
  transition: opacity 0.6s ease, visibility 0.6s;
}
.loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(246,244,239,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246,244,239,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: loader-grid-pulse 1.6s ease-in-out infinite;
}
@keyframes loader-grid-pulse {
  0%,100% { opacity: 0.4; } 50% { opacity: 0.9; }
}
.loader-content { position: relative; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.loader-mark {
  width: 260px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.loader-mark svg { width: 100%; height: 100%; }
.loader-mark img { width: 100%; height: auto; display: block; }
.loader-mark .pc {
  opacity: 0;
  animation: loader-piece 0.8s var(--ease) forwards;
  transform-origin: center;
}
.loader-mark .pc:nth-child(1) { animation-delay: 0.0s; }
.loader-mark .pc:nth-child(2) { animation-delay: 0.45s; }
@keyframes loader-piece {
  0%   { opacity: 0; transform: translateY(-18px) scale(0.93); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.loader-word {
  font-family: var(--f-display); font-weight: 600; letter-spacing: -0.02em;
  font-size: 30px; line-height: 1.1; text-align: center;
  opacity: 0; animation: loader-word 0.6s 0.6s var(--ease) forwards;
}
.loader-word .thin { font-weight: 300; }
.loader-word .sub {
  display: block; margin-top: 10px;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--accent); font-weight: 400;
}
@keyframes loader-word { to { opacity: 1; } }
.loader-bar {
  width: 240px; height: 2px; background: rgba(246,244,239, 0.12); overflow: hidden;
  opacity: 0; animation: loader-word 0.4s 0.8s ease forwards;
}
.loader-bar::after {
  content: ''; display: block; height: 100%; width: 100%;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  animation: loader-fill 1.4s 0.8s var(--ease) forwards;
}
@keyframes loader-fill { to { transform: scaleX(1); } }
.loader-meta {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase;
  color: rgba(246,244,239, 0.5);
  opacity: 0; animation: loader-word 0.4s 0.6s ease forwards;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 244, 239, 0.85);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav.dark {
  background: rgba(13, 27, 42, 0.85);
  border-bottom: 1px solid var(--line-d);
  color: var(--paper);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 0px; }
.brand-text { font-family: var(--f-display); font-weight: 600; font-size: 18px; letter-spacing: -0.01em; line-height: 1; }
.brand-text .sub { display: block; font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.22em; font-weight: 400; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.brand-text span{ color: var(--accent);}
.nav.dark .brand-text .sub { color: rgba(246,244,239,0.5); }
.nav-links { display: flex; top: 0px; align-items: center; gap: 32px; }
.nav-links a { font-size: 14px; font-weight: 500; position: relative; padding: 8px 0; }
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-cta {
  background: var(--ink); color: var(--paper);
  padding: 12px 22px; font-size: 13px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 10px;
  transition: background 0.2s, color 0.2s;
  border: none; cursor: pointer;
}
.nav.dark .nav-cta { background: var(--accent); color: var(--ink); }
.nav-cta:hover { background: var(--accent); color: var(--ink); }
.nav.dark .nav-cta:hover { background: var(--paper); }
.nav-cta .arr { transition: transform 0.2s; }
.nav-cta:hover .arr { transform: translateX(3px); }

.nav-toggle {
  display: none; width: 44px; height: 44px;
  border: 1px solid var(--ink); background: transparent; cursor: pointer;
  position: relative;
}
.nav.dark .nav-toggle { border-color: rgba(246,244,239,0.4); }
.nav-toggle span {
  position: absolute; left: 10px; right: 10px; height: 1.5px;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 26px; }
.nav-toggle.open span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* Mobile menu */
@media (max-width: 960px) {
  .nav-links {
    position: fixed; top: 0px; left: 0; right: 0;
    background: var(--paper);
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: 24px; border-bottom: 1px solid var(--line);
    transform: translateY(-110%); transition: transform 0.4s var(--ease);
  }
  .nav.dark .nav-links { background: var(--ink); border-bottom-color: var(--line-d); }
  .nav-links.open { transform: translateY(0); top: 76px }
  .nav-links a { width: 100%; padding: 18px 0; font-size: 20px; font-family: var(--f-display); border-bottom: 1px solid var(--line); }
  .nav.dark .nav-links a { border-bottom-color: var(--line-d); }
  .nav-toggle { display: block; }
  .nav-cta { padding: 10px 16px; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 26px; font-size: 14px; font-weight: 500;
  transition: all 0.25s; cursor: pointer; border: none; font-family: inherit;
}
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { background: var(--paper); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--accent); color: var(--ink); }
.btn-ghost-dark { background: transparent; color: var(--paper); border: 1px solid rgba(246,244,239,0.3); }
.btn-ghost-dark:hover { border-color: var(--paper); background: rgba(246,244,239,0.06); }
.btn-ghost-light { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost-light:hover { border-color: var(--ink); background: rgba(13,27,42,0.04); }
.btn .arr { transition: transform 0.2s; }
.btn:hover .arr { transform: translateX(4px); }

/* ============================================================
   PAGE HERO BANNER (internal pages)
   ============================================================ */
.page-hero {
  position: relative;
  min-height: 540px; padding: 120px 0 80px;
  color: var(--paper);
  overflow: hidden;
  display: flex; align-items: flex-end;
}
.page-hero-bg { position: absolute; inset: 0; z-index: 0; }
.page-hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(135deg, rgba(13,27,42,0.85) 0%, rgba(13,27,42,0.6) 100%);
}
.page-hero-grain {
  position: absolute; inset: 0; z-index: 1;
  background-image:
    linear-gradient(rgba(246,244,239,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246,244,239,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
}
.page-hero-content {
  position: relative; z-index: 2; width: 100%;
}
.crumb {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  color: rgba(246,244,239,0.6); margin-bottom: 32px;
  opacity: 0; transform: translateY(12px); animation: rise 0.7s 0.1s var(--ease) forwards;
}
.crumb a:hover { color: var(--accent); }
.crumb .sep { opacity: 0.5; }
.crumb .now { color: var(--accent); }
.page-hero h1 {
  font-family: var(--f-display); font-weight: 600; letter-spacing: -0.025em; line-height: 0.95;
  font-size: clamp(48px, 5vw, 112px); margin: 0; max-width: 18ch;
  opacity: 0; transform: translateY(20px); animation: rise 0.9s 0.25s var(--ease) forwards;
}
.page-hero .lede {
  margin-top: 28px; max-width: 56ch; font-size: clamp(15px, 1.15vw, 18px);
  color: rgba(246,244,239,0.75); line-height: 1.55;
  opacity: 0; transform: translateY(20px); animation: rise 0.9s 0.4s var(--ease) forwards;
}
@keyframes rise { to { opacity: 1; transform: none; } }

.page-hero-meta {
  position: absolute; top: 40px; right: 56px; z-index: 2;
  text-align: right; color: rgba(246,244,239,0.5);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
}
.page-hero-meta .k { color: var(--accent); margin-bottom: 6px; }
@media (max-width: 768px) { .page-hero-meta { display: none; } }

/* Banner background photos — each page-hero variant pulls a relevant Unsplash photo.
   .page-hero-overlay sits on top to keep type legible. */
.page-hero-bg {
  background-size: cover; background-position: center;
  background-color: #0d1b2a;
  animation: hero-bg-zoom 18s ease-out forwards;
}
@keyframes hero-bg-zoom {
  from { transform: scale(1.0); }
  to   { transform: scale(1.08); }
}
.page-hero.h-about    .page-hero-bg { background-image: url('https://images.unsplash.com/photo-1581094794329-c8112a89af12?auto=format&fit=crop&w=2000&q=80'); }
.page-hero.h-services .page-hero-bg { background-image: url('https://images.unsplash.com/photo-1486325212027-8081e485255e?auto=format&fit=crop&w=2000&q=80'); }
.page-hero.h-projects .page-hero-bg { background-image: url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?auto=format&fit=crop&w=2000&q=80'); }
.page-hero.h-products .page-hero-bg { background-image: url('https://images.unsplash.com/photo-1487958449943-2429e8be8625?auto=format&fit=crop&w=2000&q=80'); }
.page-hero.h-cert     .page-hero-bg { background-image: url('https://images.unsplash.com/photo-1565008447742-97f6f38c985c?auto=format&fit=crop&w=2000&q=80'); }
.page-hero.h-contact  .page-hero-bg { background-image: url('https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&w=2000&q=80'); }
.page-hero.h-privacy  .page-hero-bg { background-image: url('https://images.unsplash.com/photo-1503387762-592deb58ef4e?auto=format&fit=crop&w=2000&q=80'); }

/* ============================================================
   PRIVACY / LEGAL PAGES
   ============================================================ */
.legal-grid {
  display: grid; grid-template-columns: 260px 1fr; gap: 80px; align-items: start;
}
@media (max-width: 900px) { .legal-grid { grid-template-columns: 1fr; gap: 40px; } }

.legal-toc {
  position: sticky; top: 100px;
  display: flex; flex-direction: column; gap: 4px;
}
@media (max-width: 900px) { .legal-toc { position: static; } }
.legal-toc .lbl { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.legal-toc a {
  text-decoration: none; color: var(--ink-2);
  font-size: 14px; padding: 12px 0;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: baseline; gap: 12px;
  transition: color 0.25s, padding-left 0.25s;
}
.legal-toc a span { font-family: var(--f-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.14em; min-width: 28px; }
.legal-toc a:hover, .legal-toc a.current { color: var(--accent); padding-left: 6px; }
.legal-toc a.current span { color: var(--accent); }

.legal-body { max-width: 780px; }
.legal-body section { padding: 56px 0; border-top: 1px solid var(--line); }
.legal-body section:first-child { padding-top: 0; border-top: 0; }
.legal-body h2 {
  font-family: var(--f-display); font-weight: 600; letter-spacing: -0.02em;
  font-size: clamp(28px, 3.4vw, 44px); line-height: 1; margin: 0 0 24px;
  display: flex; align-items: baseline; gap: 18px;
}
.legal-body h2 .n {
  font-family: var(--f-mono); font-size: 13px; color: var(--accent);
  letter-spacing: 0.18em; font-weight: 500;
}
.legal-body h3 {
  font-family: var(--f-display); font-weight: 500; letter-spacing: -0.01em;
  font-size: 22px; margin: 32px 0 12px;
}
.legal-body p {
  font-size: 16.5px; line-height: 1.65; color: var(--ink-2);
  margin: 0 0 16px; max-width: 64ch;
}
.legal-body p strong { color: var(--ink); font-weight: 600; }
.legal-body p a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal-body ul { list-style: none; padding: 0; margin: 14px 0 24px; display: flex; flex-direction: column; gap: 0; }
.legal-body ul li {
  font-size: 15.5px; line-height: 1.6; color: var(--ink-2);
  display: flex; gap: 16px; align-items: flex-start;
  padding: 14px 0; border-bottom: 1px solid var(--line);
  max-width: 64ch;
}
.legal-body ul li::before {
  content: ''; flex-shrink: 0; width: 8px; height: 8px; background: var(--accent);
  margin-top: 8px;
}
.legal-body ul li b {
  color: var(--ink); font-weight: 600; display: block;
  font-family: var(--f-display); font-size: 17px; letter-spacing: -0.01em;
  margin-bottom: 2px;
}

/* Security pillars callout (3-col grid) */
.pillars {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); margin: 32px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
@media (max-width: 700px) { .pillars { grid-template-columns: 1fr; } }
.pillar { background: var(--paper); padding: 28px 24px; }
.pillar .ko { font-family: var(--f-mono); font-size: 10px; color: var(--accent); letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 10px; }
.pillar h4 { font-family: var(--f-display); font-size: 22px; font-weight: 500; letter-spacing: -0.01em; margin: 0 0 6px; }
.pillar p { font-size: 13.5px; color: var(--ink-2); line-height: 1.5; margin: 0; max-width: none; }

/* CTA card inside legal body */
.legal-cta {
  background: var(--ink); color: var(--paper);
  padding: 56px; margin-top: 64px;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center;
  position: relative; overflow: hidden;
}
.legal-cta::before {
  content: ''; position: absolute; right: -120px; bottom: -120px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(252,163,17, 0.18) 0%, transparent 60%);
  pointer-events: none;
}
@media (max-width: 700px) { .legal-cta { grid-template-columns: 1fr; padding: 36px; } }
.legal-cta h3 { font-family: var(--f-display); font-weight: 600; letter-spacing: -0.02em; font-size: clamp(24px, 3vw, 36px); line-height: 1.05; margin: 0; color: var(--paper); }
.legal-cta p { color: rgba(246,244,239, 0.7); font-size: 15px; line-height: 1.55; margin: 12px 0 0; max-width: 50ch; }
.legal-cta .actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; position: relative; z-index: 1; }
@media (max-width: 700px) { .legal-cta .actions { justify-content: flex-start; } }
.legal-cta .actions .btn { padding: 14px 22px; }

/* ============================================================
   SECTIONS / COMMON
   ============================================================ */
section { padding: 60px 0; position: relative; }
@media (max-width: 768px) { section { padding: 80px 0; } }
section.tight { padding: 80px 0; }

.section-head {
  display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px;
  margin-bottom: 80px; align-items: end;
}
@media (max-width: 900px) { .section-head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 48px; } }
.section-head h2 { font-size: clamp(36px, 4.6vw, 72px); margin: 16px 0 0; max-width: 18ch; }
.section-head p  { font-size: 17px; color: var(--ink-2); line-height: 1.55; opacity: 0.78; max-width: 52ch; margin: 0; }
.section-head.dark h2 { color: var(--paper); }
.section-head.dark p { color: rgba(246,244,239, 0.65); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s var(--ease); }
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0.0s; opacity: 1; transform: none; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 0.08s; opacity: 1; transform: none; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 0.16s; opacity: 1; transform: none; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 0.24s; opacity: 1; transform: none; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 0.32s; opacity: 1; transform: none; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 0.40s; opacity: 1; transform: none; }
.reveal-stagger.in > *:nth-child(n+7) { transition-delay: 0.46s; opacity: 1; transform: none; }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  background: var(--ink); color: var(--paper);
  border-top: 1px solid var(--line-d);
  border-bottom: 1px solid var(--line-d);
  overflow: hidden; height: 64px; display: flex; align-items: center;
}
.marquee-track {
  display: flex; gap: 56px; animation: scroll 40s linear infinite;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  white-space: nowrap;
}
.marquee-track span:nth-child(even) { color: var(--accent); }
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   PLACEHOLDERS (use until real assets exist)
   ============================================================ */
.ph-image {
  position: relative; overflow: hidden; background: var(--paper-2);
}
.ph-image::after {
  content: attr(data-label);
  position: absolute; top: 16px; left: 16px;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(13,27,42, 0.35);
}
.ph-image.dark::after { color: rgba(246,244,239, 0.35); }
.ph-image .stripes {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, #d8d3c2 0 16px, #ecead9 16px 32px);
}
.ph-image.dark .stripes {
  background: repeating-linear-gradient(135deg, #0d1b2a 0 16px, #14223a 16px 32px);
}
.ph-image.grad-a .stripes { background: linear-gradient(135deg, #243349 0%, #0d1b2a 100%); }
.ph-image.grad-b .stripes { background: linear-gradient(160deg, #2a3a55 0%, #1b263b 100%); }
.ph-image.grad-c .stripes { background: linear-gradient(120deg, #3a4a63 0%, #0d1b2a 100%); }
.ph-image.grad-d .stripes { background: linear-gradient(135deg, #1b263b 0%, #14223a 100%); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: #06090f; color: #fff; padding: 96px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 56px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h4 { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); margin: 0 0 24px; font-weight: 500; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 12px; font-size: 14px; opacity: 0.75; }
.footer li a { color: var(--white) }
.footer li a:hover { opacity: 1; color: var(--accent); }
.footer-brand p { color: var(--white); font-size: 14px; line-height: 1.6; max-width: 36ch; margin: 20px 0 28px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 40px; height: 40px; border: 1px solid rgb(255, 255, 255);
  display: grid; place-items: center; transition: all 0.2s;
}
.footer-links ul li a { color: var(--white); font-weight: 600;}
.footer-social a:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.footer-bottom {
  border-top: 1px solid rgba(246,244,239); margin-top: 64px; padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(246,244,239); flex-wrap: wrap; gap: 16px;
}

/* ============================================================
   HOME — HERO SLIDER
   ============================================================ */
.hero {
  position: relative;
  height: calc(100vh - 76px); min-height: 720px;
  background: var(--ink); color: var(--paper);
  overflow: hidden;
}
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.9s ease; }
.hero-slide.active { opacity: 1; }
.hero-video-placeholder {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #0d1b2a 0%, #1b263b 60%, #2a3a55 100%);
}
.hero-video-placeholder::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(252, 163, 17, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(252, 163, 17, 0.05) 1px, transparent 1px);
  background-size: 80px 80px;
}
.hero-slide[data-i="1"] .hero-video-placeholder {
  background:
    linear-gradient(135deg, rgba(13,27,42,0.85), rgba(13,27,42,0.6)),
    repeating-linear-gradient(0deg, #1b263b 0 60px, #243349 60px 62px, #1b263b 62px 240px),
    #0d1b2a;
}
.hero-slide[data-i="2"] .hero-video-placeholder {
  background:
    linear-gradient(135deg, rgba(13,27,42,0.8), rgba(13,27,42,0.5)),
    repeating-linear-gradient(60deg, #0d1b2a 0 90px, #14223a 90px 180px);
}
.hero-slide[data-i="3"] .hero-video-placeholder {
  background:
    linear-gradient(135deg, rgba(13,27,42,0.85), rgba(13,27,42,0.7)),
    radial-gradient(ellipse at 70% 40%, #2a3a55 0%, #0d1b2a 70%);
}
.hero-placeholder-label {
  position: absolute; bottom: 24px; left: 24px;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase; color: rgba(246,244,239, 0.35);
}
.hero-grain {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 60%, transparent 0%, rgba(0,0,0,0.45) 100%);
  pointer-events: none;
}
.hero-content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 56px;
  max-width: 1440px; margin: 0 auto; left: 0; right: 0;
}
@media (max-width: 768px) { .hero-content { padding: 24px; } }

.hero-slide.active .hero-eyebrow,
.hero-slide.active .hero-title,
.hero-slide.active .hero-sub,
.hero-slide.active .hero-ctas { animation: rise 0.9s var(--ease) forwards; }
.hero-slide.active .hero-title { animation-delay: 0.1s; }
.hero-slide.active .hero-sub   { animation-delay: 0.25s; }
.hero-slide.active .hero-ctas  { animation-delay: 0.4s; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--accent); margin-bottom: 28px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  opacity: 0; transform: translateY(20px);
}
.hero-eyebrow::before { content: ''; width: 40px; height: 1px; background: var(--accent); }
.hero-title  { font-family: var(--f-display); font-weight: 600; letter-spacing: -0.025em; line-height: 0.95;
                font-size: clamp(40px, 4.5vw, 112px); max-width: 18ch; margin: 0; opacity: 0; transform: translateY(20px); }
.hero-sub    { font-size: clamp(15px, 1.2vw, 18px); margin: 28px 0 0; max-width: 56ch; color: rgba(246,244,239, 0.75); line-height: 1.55; opacity: 0; transform: translateY(20px); }
.hero-ctas   { display: flex; gap: 16px; margin-top: 40px; flex-wrap: wrap; opacity: 0; transform: translateY(20px); }

.hero-meta {
  position: absolute; right: 56px; top: 56px;
  text-align: right; color: rgba(246,244,239, 0.5);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
}
.hero-meta .now { color: var(--accent); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.hero-meta .now::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
@media (max-width: 768px) { .hero-meta { display: none; } }

.hero-dots { position: absolute; right: 56px; bottom: 56px; display: flex; gap: 10px; z-index: 4; }
.hero-dots button {
  width: 36px; height: 2px; background: rgba(246,244,239,0.25);
  border: none; cursor: pointer; padding: 0; transition: background 0.25s;
}
.hero-dots button.active { background: var(--accent); }
@media (max-width: 768px) { .hero-dots { right: 24px; bottom: 24px; } }

.hero-bracket {
  position: absolute; width: 32px; height: 32px;
  border: 1px solid var(--accent); z-index: 2;
}
.hero-bracket.tl { top: 56px; left: 56px; border-right: 0; border-bottom: 0; }

/* ============================================================
   HOME — ABOUT BLOCK
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; align-items: center; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 48px; } }
.about-img { aspect-ratio: 4/5; position: relative; }
.about-img::before { content: ''; position: absolute; inset: -16px 16px 16px -16px; border: 1px solid var(--ink); z-index: -1; }
.about-stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px;
  margin-top: 48px; padding-top: 32px; border-top: 2px solid var(--dark);
}
.about-stat .n { font-family: var(--f-display); font-size: 56px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.about-stat .n sup { color: var(--accent); font-size: 0.45em; vertical-align: super; margin-left: 4px; }
.about-stat .l { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-top: 12px; }
.lede { font-size: 22px; line-height: 1.45; margin: 24px 0 0; max-width: 38ch; }
.body { color: var(--ink-2); opacity: 0.78; margin-top: 20px; line-height: 1.65; max-width: 52ch; }

/* ============================================================
   SERVICES GRID
   ============================================================ */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
@media (max-width: 900px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services-grid { grid-template-columns: 1fr; } }
.service {
  padding: 40px 32px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--paper); position: relative; min-height: 320px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: background 0.3s, color 0.3s; cursor: pointer;
}
.service:hover { background: var(--ink); color: var(--paper); }
.service:hover .service-num { color: var(--accent); }
.service:hover .service-arrow { background: var(--accent); color: var(--ink); transform: translate(4px, -4px); }
.service:hover .service-icon path,
.service:hover .service-icon line,
.service:hover .service-icon rect[stroke],
.service:hover .service-icon circle[stroke] { stroke: var(--paper); }
.service-top { display: flex; align-items: flex-start; justify-content: space-between; }
.service-num { font-size: 22px; color: var(--accent); transition: color 0.3s; line-height: 1; }
.service-icon { width: 52px; height: 52px; flex-shrink: 0; }
.service h3 { font-family: var(--f-display); font-size: 26px; font-weight: 500; letter-spacing: -0.015em; margin: 32px 0 12px; }
.service p { font-size: 14px; line-height: 1.55; opacity: 0.7; margin: 0; }
.service-arrow {
  position: absolute; bottom: 32px; right: 32px;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--paper-2); color: var(--ink);
  display: grid; place-items: center;
  transition: all 0.25s;
}

/* ============================================================
   WHY US (dark grid)
   ============================================================ */
.why-head { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; margin-bottom: 80px; }
.why-head-text .eyebrow { color: var(--accent); }
.why-head-text h2 { color: var(--paper); font-size: clamp(32px, 4vw, 60px); margin: 16px 0 24px; }
.why-head-text p { font-size: 17px; color: rgba(246,244,239,0.65); line-height: 1.6; margin: 0; max-width: 44ch; }
.why-head-img { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.why-head-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 900px) { .why-head { grid-template-columns: 1fr; gap: 32px; margin-bottom: 48px; } .why-head-img { aspect-ratio: 16/9; } }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(246,244,239,0.12); border: 1px solid rgba(246,244,239,0.12); }
@media (max-width: 900px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .why-grid { grid-template-columns: 1fr; } }
.why-cell { background: var(--ink); padding: 40px 32px; min-height: 240px; }
.why-cell .num { color: var(--accent); margin-bottom: 28px; display: flex; align-items: center; }
.why-cell .num svg { width: 28px; height: 28px; stroke: var(--accent); }
.why-cell h3 { font-family: var(--f-display); font-size: 22px; font-weight: 500; margin: 0 0 12px; letter-spacing: -0.01em; color: var(--paper); }
.why-cell p  { font-size: 14px; line-height: 1.55; color: rgba(246,244,239,0.65); margin: 0; }

/* ============================================================
   PROJECTS GRID
   ============================================================ */
.projects-grid {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px;
}
.pcard {
  position: relative; overflow: hidden;
  background: var(--paper-2); aspect-ratio: 4/3; cursor: pointer;
}
.pcard.feature { grid-column: span 7; aspect-ratio: auto; min-height: 540px; }
.pcard.normal  { grid-column: span 5; }
.pcard.half    { grid-column: span 6; aspect-ratio: 16/10; }
.pcard.third   { grid-column: span 4; aspect-ratio: 4/5; }
@media (max-width: 900px) {
  .pcard.feature, .pcard.normal, .pcard.half, .pcard.third { grid-column: span 12; min-height: 320px; aspect-ratio: auto; }
}
.pcard-img { position: absolute; inset: 0; transition: transform 0.6s var(--ease); }
.pcard:hover .pcard-img { transform: scale(1.05); }
.pcard-img.a { background: linear-gradient(135deg, #243349 0%, #0d1b2a 100%); }
.pcard-img.b { background: linear-gradient(160deg, #2a3a55 0%, #1b263b 100%); }
.pcard-img.c { background: linear-gradient(120deg, #3a4a63 0%, #0d1b2a 100%); }
.pcard-img.d { background: linear-gradient(135deg, #1b263b 0%, #14223a 100%); }
.pcard-img.e { background: linear-gradient(150deg, #14223a 0%, #2a3a55 100%); }
.pcard-img.f { background: linear-gradient(120deg, #0d1b2a 0%, #3a4a63 100%); }
.pcard-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(transparent 40%, rgba(13,27,42,0.85) 100%);
}
.pcard-img::before {
  content: 'PHOTO'; position: absolute; top: 24px; left: 24px;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.2em;
  color: rgba(246,244,239, 0.35); z-index: 1;
}
.pcard-meta { position: absolute; bottom: 28px; left: 28px; right: 28px; color: var(--paper); z-index: 2; }
.pcard-meta .tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
}
.pcard-meta h3 { font-family: var(--f-display); font-size: 26px; font-weight: 500; margin: 0; letter-spacing: -0.015em; }
.pcard-meta .loc { font-size: 13px; opacity: 0.65; margin-top: 6px; }
.pcard.feature .pcard-meta h3 { font-size: 40px; }
.pcard-arrow {
  position: absolute; top: 24px; right: 24px; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(246,244,239, 0.12); color: var(--paper);
  display: grid; place-items: center;
  backdrop-filter: blur(8px);
  transition: all 0.25s;
}
.pcard:hover .pcard-arrow { background: var(--accent); color: var(--ink); transform: translate(4px, -4px); }

/* Filters */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 40px; }
.filter { padding: 10px 18px; border: 1px solid var(--line); font-size: 13px; cursor: pointer; transition: all 0.2s; background: transparent; }
.filter.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filter:not(.active):hover { border-color: var(--ink); }

/* ============================================================
   PRODUCTS GALLERY
   ============================================================ */
.products-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
@media (max-width: 900px) { .products-strip { grid-template-columns: repeat(2, 1fr); } }
.product { position: relative; aspect-ratio: 3/4; background: var(--paper); overflow: hidden; cursor: pointer; }
.product-img { position: absolute; inset: 0; transition: transform 0.6s var(--ease); }
.product:hover .product-img { transform: scale(1.06); }
.product-img.p1 { background: linear-gradient(155deg, #d8d3c2 0%, #ecead9 100%); }
.product-img.p2 { background: linear-gradient(155deg, #b8b29f 0%, #d8d3c2 100%); }
.product-img.p3 { background: linear-gradient(155deg, #0d1b2a 0%, #1b263b 100%); }
.product-img.p4 { background: linear-gradient(155deg, #243349 0%, #fca311 200%); }
.product-img.p5 { background: linear-gradient(155deg, #ecead9 0%, #d8d3c2 100%); }
.product-img.p6 { background: linear-gradient(155deg, #3a4a63 0%, #1b263b 100%); }
.product-img.p7 { background: linear-gradient(155deg, #b8b29f 0%, #6b6458 100%); }
.product-img.p8 { background: linear-gradient(155deg, #fca311 0%, #e08f02 100%); }
.product-img::before {
  content: 'PRODUCT'; position: absolute; top: 16px; left: 16px;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.2em;
  color: rgba(13,27,42, 0.35); z-index: 1;
}
.product-img.p3::before, .product-img.p4::before, .product-img.p6::before { color: rgba(246,244,239, 0.35); }
.product-label {
  position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 2;
  padding: 14px 16px; background: var(--paper); display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font-size: 13px;
}
.product-label.dark { background: var(--ink); color: var(--paper); }
.product-label.dark .c { color: var(--accent); }
.product-label .n { font-weight: 600; }
.product-label .c { color: var(--muted); font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }

/* ============================================================
   CLIENT LOGOS GRID
   ============================================================ */
.client-row {
  display: grid; grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
@media (max-width: 900px) { .client-row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .client-row { grid-template-columns: repeat(2, 1fr); } }
.client {
  aspect-ratio: 5/3;
  display: grid; place-items: center;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-family: var(--f-display); font-weight: 500; font-size: 18px;
  color: var(--steel); letter-spacing: -0.01em;
  transition: all 0.3s;
}
.client:hover { background: var(--ink); color: var(--paper); }

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta { background: var(--ink); color: var(--paper); position: relative; overflow: hidden; }
.cta::before {
  content: ''; position: absolute; right: -200px; top: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(252,163,17, 0.18) 0%, transparent 60%);
}
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 96px; align-items: end; position: relative; }
@media (max-width: 900px) { .cta-grid { grid-template-columns: 1fr; gap: 48px; } }
.cta h2 { font-size: clamp(48px, 2vw, 96px); margin: 24px 0 0; max-width: 14ch; color: var(--paper); }
.cta h2 .accent { color: var(--accent); }
.cta .contact-block { border-top: 1px solid rgba(246,244,239,0.15); padding-top: 32px; }
.cta .contact-block + .contact-block { margin-top: 32px; }
.cta .contact-block .meta { color: var(--accent); margin-bottom: 12px; }
.cta .contact-block .v { font-family: var(--f-display); font-size: 26px; font-weight: 400; letter-spacing: -0.015em; line-height: 1.2; }
.cta .contact-block .desc { font-size: 14px; color: rgba(246,244,239, 0.6); margin-top: 8px; line-height: 1.5; }
.cta-btn {
  display: inline-flex; align-items: center; gap: 14px;
  background: var(--accent); color: var(--ink);
  padding: 22px 32px; font-size: 16px; font-weight: 500;
  margin-top: 40px; transition: all 0.2s; border: none; cursor: pointer; font-family: inherit;
}
.cta-btn:hover { background: var(--paper); }
.cta-btn .arr { transition: transform 0.2s; }
.cta-btn:hover .arr { transform: translateX(4px); }

/* ============================================================
   SERVICES PAGE — detailed sections
   ============================================================ */
.svc-row {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px;
  align-items: center; padding: 100px 0;
  border-bottom: 1px solid var(--line);
}
.svc-row.reverse { grid-template-columns: 1fr 1.1fr; }
.svc-row.reverse .svc-text { order: 2; }
.svc-row.reverse .svc-img  { order: 1; }
@media (max-width: 900px) {
  .svc-row, .svc-row.reverse { grid-template-columns: 1fr; gap: 40px; padding: 60px 0; }
  .svc-row.reverse .svc-text { order: 1; }
  .svc-row.reverse .svc-img  { order: 2; }
}
.svc-num { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.22em; color: var(--accent); }
.svc-row h2 { font-family: var(--f-display); font-weight: 600; letter-spacing: -0.025em; font-size: clamp(36px, 4.4vw, 64px); line-height: 1; margin: 16px 0 24px; }
.svc-row p.body { margin-top: 8px; max-width: 52ch; }
.svc-img { aspect-ratio: 5/4; position: relative; }
.svc-img::before { content: ''; position: absolute; inset: -14px 14px 14px -14px; border: 1px solid var(--ink); z-index: -1; opacity: 0.4; }
.svc-bullets { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 32px; }
@media (max-width: 600px) { .svc-bullets { grid-template-columns: 1fr; } }
.svc-bullets li { display: flex; gap: 14px; font-size: 14px; line-height: 1.5; color: var(--ink-2); align-items: baseline; }
.svc-bullets li::before {
  content: ''; flex-shrink: 0; width: 6px; height: 6px; background: var(--accent); margin-top: 6px;
}
.svc-stats { display: flex; gap: 40px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.svc-stats .n { font-family: var(--f-display); font-size: 36px; font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.svc-stats .l { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }

.svc-anchor-list {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  margin-top: 56px;
}
@media (max-width: 900px) { .svc-anchor-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .svc-anchor-list { grid-template-columns: 1fr; } }
.svc-anchor {
  background: var(--paper); padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  transition: background 0.2s, color 0.2s; cursor: pointer;
}
.svc-anchor:hover { background: var(--ink); color: var(--paper); }
.svc-anchor:hover .svc-anchor-num { color: var(--accent); }
.svc-anchor-num { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.18em; color: var(--muted); transition: color 0.2s; }
.svc-anchor-title { font-family: var(--f-display); font-size: 16px; font-weight: 500; letter-spacing: -0.01em; }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.story-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; }
@media (max-width: 900px) { .story-grid { grid-template-columns: 1fr; gap: 40px; } }
.story-grid h2 { margin: 0; font-family: var(--f-display); font-weight: 600; letter-spacing: -0.025em; font-size: clamp(40px, 5vw, 72px); line-height: 0.95; }

.timeline { position: relative; padding-left: 32px; border-left: 1px solid var(--line); margin-top: 56px; }
.timeline-item { padding: 0 0 56px 32px; position: relative; }
.timeline-item::before {
  content: ''; position: absolute; left: -36px; top: 6px;
  width: 8px; height: 8px; background: var(--accent);
}
.timeline-year { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.18em; color: var(--accent); margin-bottom: 12px; }
.timeline-item h3 { font-family: var(--f-display); font-weight: 500; font-size: 24px; letter-spacing: -0.01em; margin: 0 0 8px; }
.timeline-item p { color: var(--ink-2); opacity: 0.78; margin: 0; line-height: 1.6; max-width: 56ch; }

.values-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
@media (max-width: 768px) { .values-grid { grid-template-columns: 1fr; gap: 24px; } }
.value {
  padding: 40px; background: var(--paper); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 16px;
}
.value .k { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.18em; color: var(--accent); }
.value h3 { font-family: var(--f-display); font-weight: 500; font-size: 28px; letter-spacing: -0.015em; margin: 0; }
.value p { color: var(--ink-2); opacity: 0.78; margin: 0; line-height: 1.6; }

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .team-grid { grid-template-columns: 1fr; } }
.member { display: flex; flex-direction: column; }
.member-img { aspect-ratio: 4/5; position: relative; margin-bottom: 16px; overflow: hidden; }
.member-img .stripes { position: absolute; inset: 0; background: repeating-linear-gradient(135deg, #d8d3c2 0 16px, #ecead9 16px 32px); transition: transform 0.6s var(--ease); }
.member:hover .member-img .stripes { transform: scale(1.05); }
.member h4 { font-family: var(--f-display); font-weight: 500; font-size: 18px; letter-spacing: -0.01em; margin: 0; }
.member .role { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }

/* ============================================================
   CERTIFICATIONS
   ============================================================ */
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .cert-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cert-grid { grid-template-columns: 1fr; } }
.cert {
  background: var(--paper); border: 1px solid var(--line); padding: 32px;
  display: flex; flex-direction: column; gap: 16px;
  transition: all 0.3s; cursor: pointer;
}
.cert:hover { border-color: var(--ink); transform: translateY(-4px); box-shadow: 0 12px 32px rgba(13,27,42, 0.08); }
.cert-stamp {
  width: 80px; height: 80px; border: 2px solid var(--ink); display: grid; place-items: center;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.18em; text-align: center; line-height: 1.3;
  color: var(--ink); border-radius: 50%;
}
.cert-stamp.accent { border-color: var(--accent); color: var(--accent); }
.cert h3 { font-family: var(--f-display); font-weight: 500; font-size: 22px; letter-spacing: -0.01em; margin: 0; }
.cert .body { margin: 0; font-size: 14px; }
.cert .ref { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.16em; color: var(--muted); margin-top: auto; padding-top: 16px; border-top: 1px dashed var(--line); }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 48px; } }

.contact-info .block { padding: 28px 0; border-bottom: 1px solid var(--line); }
.contact-info .block:first-child { padding-top: 0; }
.contact-info .block .k { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.18em; color: var(--accent); margin-bottom: 14px; text-transform: uppercase; }
.contact-info .block .v { font-family: var(--f-display); font-size: 22px; font-weight: 400; letter-spacing: -0.01em; line-height: 1.3; }
.contact-info .block .desc { color: var(--muted); font-size: 14px; margin-top: 8px; line-height: 1.55; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.form .full { grid-column: span 2; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
}
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea {
  padding: 14px 0; border: 0; border-bottom: 1px solid var(--line);
  background: transparent; font-family: var(--f-body); font-size: 16px; color: var(--ink);
  transition: border-color 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-bottom-color: var(--ink);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-actions { grid-column: span 2; display: flex; justify-content: space-between; align-items: center; margin-top: 16px; flex-wrap: wrap; gap: 16px; }
.form-note { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* Map placeholder */
.map {
  margin-top: 56px; aspect-ratio: 21/9; position: relative;
  background: var(--paper-2); overflow: hidden;
  border: 1px solid var(--line);
}
.map-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(13,27,42,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13,27,42,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
}
.map-roads {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, transparent 25%, rgba(13,27,42,0.08) 25%, rgba(13,27,42,0.08) 26%, transparent 26%),
    linear-gradient(0deg, transparent 60%, rgba(13,27,42,0.08) 60%, rgba(13,27,42,0.08) 61%, transparent 61%),
    linear-gradient(135deg, transparent 38%, rgba(252,163,17,0.4) 38%, rgba(252,163,17,0.4) 38.5%, transparent 38.5%);
}
.map-pin {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -100%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.map-pin-dot {
  width: 20px; height: 20px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 rgba(252,163,17, 0.5);
  animation: pin-pulse 2s infinite;
}
@keyframes pin-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(252,163,17, 0.6); }
  100% { box-shadow: 0 0 0 24px rgba(252,163,17, 0); }
}
.map-pin-label {
  background: var(--ink); color: var(--paper);
  padding: 8px 14px; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
}

/* ============================================================
   IMAGE SUPPORT — drop real photos into placeholders
   ============================================================ */
.ph-image img,
.pcard-img img,
.member-img img,
.hero-img,
.svc-img img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.ph-image:has(img)::after,
.pcard-img:has(img)::before { display: none; }
.ph-image:has(img) .stripes,
.member-img:has(img) .stripes { display: none; }
.pcard:hover .pcard-img img { transform: scale(1.05); transition: transform 0.6s var(--ease); }
.member:hover .member-img img { transform: scale(1.05); transition: transform 0.6s var(--ease); }
.svc-img img { transition: transform 0.8s var(--ease); }
.svc-row:hover .svc-img img { transform: scale(1.04); }

/* Hero slide image + video variants */
.hero-img,
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.hero-video { z-index: 1; opacity: 0; transition: opacity 0.8s ease; pointer-events: none; }
.hero-video.ready { opacity: 1; }

.hero-slide:has(.hero-img) .hero-video-placeholder,
.hero-slide:has(.hero-video) .hero-video-placeholder { display: none; }
.hero-slide .hero-grain {
  background: linear-gradient(135deg, rgba(13,27,42,0.78) 0%, rgba(13,27,42,0.42) 40%, rgba(13,27,42,0.85) 100%);
  z-index: 2;
}

/* Subtle Ken-Burns drift on the still image (under the video) */
.hero-slide.active .hero-img {
  animation: ken-burns 14s ease-out forwards;
}
@keyframes ken-burns {
  from { transform: scale(1.0) translate(0, 0); }
  to   { transform: scale(1.08) translate(-1%, -1%); }
}

/* Push hero content above video layer */
.hero-content, .hero-meta, .hero-dots, .hero-bracket { z-index: 3; }

/* ============================================================
   HORIZONTAL SERVICES LIST (home page — additional treatment)
   Big rows that grow a thumbnail on hover.
   ============================================================ */
.svc-list { display: flex; flex-direction: column; }
.svc-row-x {
  display: grid;
  grid-template-columns: 80px 1fr 1.4fr 320px 48px;
  gap: 40px;
  align-items: center;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  transition: padding 0.5s cubic-bezier(.7,0,.2,1);
}
.svc-row-x:last-child { border-bottom: 1px solid var(--line); }
.svc-row-x .idx {
  font-size: 22px; color: var(--accent);
  font-weight: 500; line-height: 1;
}
.svc-row-x h3 {
  font-family: var(--f-display); font-size: 42px; font-weight: 600;
  letter-spacing: -0.02em; line-height: 1; margin: 0;
  transition: color 0.4s;
}
.svc-row-x p {
  font-size: 14px; color: var(--ink-2); line-height: 1.55;
  margin: 0; max-width: 48ch; opacity: 0.78;
}
.svc-row-x .thumb {
  width: 320px; height: 0; overflow: hidden;
  transition: height 0.55s cubic-bezier(.7,0,.2,1);
  background: var(--paper-2);
  justify-self: end;
}
.svc-row-x .thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.06);
  transition: transform 0.8s ease;
}
.svc-row-x .arrow {
  width: 44px; height: 44px; border: 1px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.35s, color 0.35s, transform 0.4s, border-color 0.35s;
  justify-self: end;
  flex-shrink: 0;
}
.svc-row-x .arrow svg { width: 14px; height: 14px; }
.svc-row-x:hover { padding: 48px 0; }
.svc-row-x:hover h3 { color: var(--accent); }
.svc-row-x:hover .thumb { height: 200px; }
.svc-row-x:hover .thumb img { transform: scale(1); }
.svc-row-x:hover .arrow {
  background: var(--accent); color: var(--ink);
  border-color: var(--accent); transform: rotate(-45deg);
}
@media (max-width: 900px) {
  .svc-row-x { grid-template-columns: 40px 1fr 32px; gap: 14px; padding: 24px 0; }
  .svc-row-x:hover { padding: 28px 0; }
  .svc-row-x p, .svc-row-x .thumb { display: none; }
  .svc-row-x h3 { font-size: 28px; }
}
.proj-list { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.proj-list .pcard { aspect-ratio: 4/3; }
.proj-list .pcard.span-7 { grid-column: span 7; aspect-ratio: 16/10; }
.proj-list .pcard.span-5 { grid-column: span 5; aspect-ratio: 16/10; }
.proj-list .pcard.span-4 { grid-column: span 4; }
.proj-list .pcard.span-6 { grid-column: span 6; }
.proj-list .pcard.span-8 { grid-column: span 8; }
@media (max-width: 900px) {
  .proj-list .pcard { grid-column: span 12 !important; aspect-ratio: 16/10; }
}


/* ============================================================
   3D BUILD STUDIO (services page)
   ============================================================ */
/* ────────── 3D BUILD STUDIO — page-specific ────────── */
  .build3d-section {
    position: relative;
    background: var(--ink);
    color: var(--paper);
    padding: 120px 0 140px;
    overflow: hidden;
  }
  .build3d-grid {
    position: absolute; inset: 0; pointer-events: none;
    background-image:
      linear-gradient(rgba(246,244,239,0.04) 1px, transparent 1px),
      linear-gradient(90deg, rgba(246,244,239,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 30%, transparent 85%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 30%, transparent 85%);
  }
  .build3d-section .container { position: relative; z-index: 1; }

  .b3d-stage {
    position: relative;
    height: 780px;
    display: grid;
    grid-template-columns: 1fr 640px 1fr;
    align-items: center;
    gap: 40px;
    perspective: 2400px;
  }
  .b3d-callouts { display: flex; flex-direction: column; gap: 36px; position: relative; z-index: 3; }
  .b3d-callouts.right { align-items: flex-end; text-align: right; }

  .b3d-callout { position: relative; max-width: 240px; }
  .b3d-callout .ko {
    font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.18em;
    color: var(--accent); text-transform: uppercase; margin-bottom: 8px;
  }
  .b3d-callout h4 {
    font-family: var(--f-display); font-size: 26px; font-weight: 500;
    letter-spacing: -0.015em; line-height: 1; margin: 0 0 10px; color: var(--paper);
  }
  .b3d-callout p { font-size: 13px; line-height: 1.55; color: rgba(246,244,239,0.7); margin: 0; }
  .b3d-callout .line {
    position: absolute; top: 14px; height: 1px; width: 70px;
    background: linear-gradient(90deg, var(--accent), transparent);
  }
  .b3d-callouts.left  .b3d-callout .line { right: -82px; }
  .b3d-callouts.right .b3d-callout .line { left:  -82px; background: linear-gradient(-90deg, var(--accent), transparent); }
  .b3d-callout .line::before {
    content: ''; position: absolute; width: 7px; height: 7px;
    background: var(--accent); top: -3px;
  }
  .b3d-callouts.left  .b3d-callout .line::before { right: -3px; }
  .b3d-callouts.right .b3d-callout .line::before { left:  -3px; }

  .b3d-wrap {
    position: relative; height: 720px;
    display: flex; align-items: center; justify-content: center;
    transform-style: preserve-3d;
    cursor: grab;
  }
  .b3d-wrap:active { cursor: grabbing; }

  .b3d {
    position: relative; width: 300px; height: 640px;
    transform-style: preserve-3d;
    transform: rotateX(-8deg) rotateY(-20deg);
    transition: transform 0.08s linear;
  }
  .b3d .face {
    position: absolute; background: #1a1f27; overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(246,244,239, 0.14);
    backface-visibility: hidden;
    width: 300px; height: 640px;
  }
  .b3d .face img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; z-index: 0;
    filter: contrast(1.05) saturate(0.92) brightness(0.96);
  }
  .b3d .face::after {
    content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(180deg, rgba(13,27,42,0) 55%, rgba(13,27,42,0.55));
  }
  .b3d .face::before {
    content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 2;
    background-image:
      linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 50px 50px;
  }
  .b3d .front { transform: translateZ(150px); }
  .b3d .right { transform: rotateY(90deg)  translateZ(150px); }
  .b3d .back  { transform: rotateY(180deg) translateZ(150px); }
  .b3d .left  { transform: rotateY(-90deg) translateZ(150px); }
  .b3d .top {
    width: 300px; height: 300px;
    background: linear-gradient(135deg, #2a313b 0%, #14181f 100%);
    transform: rotateX(90deg) translateZ(320px);
    box-shadow: inset 0 0 0 1px rgba(246,244,239, 0.16);
  }
  .b3d .top::after {
    content: ''; position: absolute; inset: 20px;
    background:
      linear-gradient(90deg, rgba(246,244,239, 0.18) 1px, transparent 1px) 0 0 / 40px 40px,
      linear-gradient(rgba(246,244,239, 0.18) 1px, transparent 1px) 0 0 / 40px 40px,
      radial-gradient(circle at 50% 50%, var(--accent) 0%, transparent 50%);
    opacity: 0.55;
  }
  .b3d .bottom {
    width: 300px; height: 300px; background: #0a0d12;
    transform: rotateX(-90deg) translateZ(320px);
  }

  .b3d-shadow {
    position: absolute; bottom: 30px; left: 50%;
    width: 360px; height: 80px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse, rgba(0,0,0, 0.7) 0%, transparent 70%);
    filter: blur(12px);
    pointer-events: none;
  }

  .b3d-axis {
    position: absolute; left: 50%; transform: translateX(-50%);
    width: 380px; height: 14px;
    display: flex; justify-content: space-between; align-items: center;
    font-family: var(--f-mono); font-size: 9px; color: rgba(246,244,239, 0.45);
    letter-spacing: 0.2em; pointer-events: none;
  }
  .b3d-axis.top { top: 30px; }
  .b3d-axis.bot { bottom: 30px; }
  .b3d-axis span {
    flex: 1; text-align: center;
    border-left: 1px solid rgba(246,244,239, 0.18); padding: 3px 0;
  }
  .b3d-axis span:first-child { border-left: none; }

  .b3d-scroll-cue {
    position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%);
    font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.18em;
    color: rgba(246,244,239, 0.5); text-transform: uppercase;
    display: flex; align-items: center; gap: 14px;
    white-space: nowrap;
  }
  .b3d-scroll-cue .ind {
    width: 120px; height: 2px; background: rgba(246,244,239, 0.15);
    position: relative; overflow: hidden;
  }
  .b3d-scroll-cue .ind b {
    position: absolute; left: 0; top: 0; height: 100%;
    background: var(--accent); width: 0;
    transition: width 0.2s;
  }

  .b3d-legend {
    margin-top: 80px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
    border-top: 1px solid rgba(246,244,239, 0.14); padding-top: 36px;
  }
  .b3d-legend .it { display: flex; gap: 16px; align-items: flex-start; }
  .b3d-legend .sw {
    width: 36px; height: 36px; flex-shrink: 0;
    border: 1px solid rgba(246,244,239, 0.18);
  }
  .b3d-legend h5 {
    font-family: var(--f-display); font-size: 18px; font-weight: 500;
    letter-spacing: -0.01em; line-height: 1; margin: 0 0 6px; color: var(--paper);
  }
  .b3d-legend p { font-size: 12.5px; color: rgba(246,244,239, 0.6); line-height: 1.45; margin: 0; }

  /* Section header */
  .b3d-head {
    display: flex; justify-content: space-between; align-items: flex-end;
    margin-bottom: 56px; gap: 60px;
  }
  .b3d-head h2 {
    font-family: var(--f-display); font-weight: 600; letter-spacing: -0.025em;
    font-size: clamp(40px, 5.5vw, 88px); line-height: 0.95; margin: 12px 0 0;
    color: var(--paper); max-width: 18ch;
  }
  .b3d-head p {
    max-width: 38ch; font-size: 16px; line-height: 1.55;
    color: rgba(246,244,239, 0.72); margin: 0;
  }

  /* Responsive */
  @media (max-width: 960px) {
    .b3d-stage { grid-template-columns: 1fr; height: auto; gap: 32px; }
    .b3d-callouts.left, .b3d-callouts.right {
      flex-direction: row; flex-wrap: wrap; text-align: left; align-items: flex-start;
    }
    .b3d-callouts.right { justify-content: flex-start; }
    .b3d-callout .line { display: none; }
    .b3d-legend { grid-template-columns: 1fr 1fr; }
    .b3d-head { flex-direction: column; align-items: flex-start; gap: 24px; margin-bottom: 40px; }
    .b3d-wrap { height: 600px; }
  }
