/* ============================================================
   BETA DESIGN STUDIO â€” WORLD-CLASS ARCHITECT THEME (LIGHT)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,300;1,9..144,400&family=Inter+Tight:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ---------- TOKENS â€” Salt & Pepper monochrome ---------- */
:root {
  --c-bg:        #ffffff;       /* pure white */
  --c-bg-2:      #d4d4d4;       /* light gray */
  --c-paper:     #fafafa;       /* near-white card */
  --c-white:     #ffffff;
  --c-ink:       #2b2b2b;       /* near-black */
  --c-ink-2:     #2b2b2b;
  --c-mute:      #6f6f6f;       /* muted text */
  --c-mute-2:    #b3b3b3;       /* mid gray */
  --c-line:      #d4d4d4;       /* borders */
  --c-line-2:    #b3b3b3;
  --c-accent:    #2b2b2b;       /* accent = ink (mono) */
  --c-accent-lt: #b3b3b3;       /* lighter mid gray */
  --c-deep:      #2b2b2b;

  --f-display:   'Fraunces', 'Cormorant Garamond', Georgia, serif;
  --f-sans:      'Inter Tight', system-ui, sans-serif;
  --f-mono:      'Space Grotesk', monospace;

  --ease:        cubic-bezier(0.22, 1, 0.36, 1);
  --t:           0.6s var(--ease);
  --tf:          0.25s var(--ease);

  --maxw:        1440px;
  --pad:         clamp(20px, 4vw, 56px);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--f-sans);
  background: var(--c-bg);
  color: var(--c-ink);
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: -0.005em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

/* ---------- BACKGROUND FX (page-wide) ---------- */
body::before {
  /* film grain */
  content: '';
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.18 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/></svg>");
  opacity: 0.45;
  mix-blend-mode: multiply;
}
body::after {
  /* slow drifting neutral gradient orbs (Salt & Pepper) */
  content: '';
  position: fixed; inset: -20% -10% -10% -10%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(40% 35% at 18% 22%, rgba(43,43,43,0.06),   transparent 60%),
    radial-gradient(45% 40% at 85% 78%, rgba(179,179,179,0.18), transparent 60%),
    radial-gradient(35% 30% at 65% 12%, rgba(212,212,212,0.20), transparent 60%);
  filter: blur(40px);
  animation: drift 22s ease-in-out infinite alternate;
}
@keyframes drift {
  0%   { transform: translate3d(0,0,0)   scale(1); }
  50%  { transform: translate3d(-3%,2%,0) scale(1.05); }
  100% { transform: translate3d(2%,-2%,0) scale(0.98); }
}
section, footer, nav, .ticker-wrap, .mega-overlay { position: relative; z-index: 2; }

/* ============================================================
   SCROLL PROGRESS BAR (top of page)
   ============================================================ */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--c-ink);
  z-index: 9998;
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 0.1s linear;
  pointer-events: none;
}

/* ============================================================
   AMBIENT FLOATING SHAPES (page-wide drifting geometry)
   ============================================================ */
.ambient-shapes {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  color: var(--c-ink);
  overflow: hidden;
}
.shape {
  position: absolute;
  opacity: 0.08;
  will-change: transform;
}
.shape-1 { width: 240px; height: 240px; top: 18%;  left: -60px;  animation: floatA 28s ease-in-out infinite alternate; }
.shape-2 { width: 180px; height: 180px; top: 62%;  right: -40px; animation: floatB 32s ease-in-out infinite alternate; }
.shape-3 { width: 200px; height: 200px; top: 38%;  right: 10%;   animation: floatC 36s ease-in-out infinite alternate; opacity: 0.05; }
.shape-4 { width: 280px; height: 280px; top: 80%;  left: 15%;    animation: floatD 40s ease-in-out infinite alternate; opacity: 0.06; }
@keyframes floatA { 0% { transform: translate(0,0) rotate(0); }   100% { transform: translate(60px,80px) rotate(40deg); } }
@keyframes floatB { 0% { transform: translate(0,0) rotate(0); }   100% { transform: translate(-50px,-60px) rotate(-30deg); } }
@keyframes floatC { 0% { transform: translate(0,0) rotate(0); }   100% { transform: translate(40px,-50px) rotate(25deg); } }
@keyframes floatD { 0% { transform: translate(0,0) rotate(0); }   100% { transform: translate(-70px,40px) rotate(-15deg); } }

/* ============================================================
   SIDE SECTION RAIL (right edge â€” current section indicator)
   ============================================================ */
.section-rail {
  position: fixed; right: 24px; top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex; flex-direction: column; align-items: center;
  gap: 14px;
  font-family: var(--f-mono);
  font-size: 9.5px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--c-ink);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.section-rail.visible { opacity: 1; }
.section-rail-num {
  font-size: 13px; font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.1em;
  color: var(--c-mute);
  transition: color 0.3s ease;
}
.section-rail-line {
  width: 1px; height: 56px;
  background: linear-gradient(to bottom, transparent, var(--c-ink), transparent);
}
.section-rail-name {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
}
@media (max-width: 1100px) { .section-rail { display: none; } }

/* ============================================================
   ARCHITECTURAL MARQUEE (between Stats and Certifications)
   ============================================================ */
.arch-marquee {
  position: relative;
  background: var(--c-ink);
  color: var(--c-bg);
  padding: 28px 0;
  overflow: hidden;
  z-index: 2;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.arch-marquee::before, .arch-marquee::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 120px;
  z-index: 2; pointer-events: none;
}
.arch-marquee::before { left: 0;  background: linear-gradient(90deg, var(--c-ink), transparent); }
.arch-marquee::after  { right: 0; background: linear-gradient(270deg, var(--c-ink), transparent); }
.arch-marquee-track {
  display: flex; gap: 80px; align-items: center;
  white-space: nowrap;
  animation: archTicker 45s linear infinite;
  width: max-content;
}
.arch-marquee-item {
  font-family: var(--f-display);
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  font-style: italic;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--c-bg);
  display: inline-flex; align-items: center; gap: 80px;
}
.arch-marquee-item::after {
  content: 'â—†';
  font-size: 0.6em;
  color: var(--c-mute);
  display: inline-block;
}
@keyframes archTicker { to { transform: translateX(-50%); } }

/* ============================================================
   SECTION INDEX BADGE (corner of each section)
   ============================================================ */
section[data-section-num] {
  position: relative;
}
section[data-section-num]::before {
  content: attr(data-section-num) '  ' attr(data-section-name);
  position: absolute; top: 32px; left: var(--pad);
  font-family: var(--f-mono);
  font-size: 9.5px; font-weight: 500;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--c-mute-2);
  z-index: 3;
  pointer-events: none;
  white-space: pre;
}
section[data-section-num]::after {
  content: '';
  position: absolute; top: 36px; left: calc(var(--pad) + 145px);
  width: 60px; height: 1px;
  background: var(--c-mute-2);
  opacity: 0.6;
  z-index: 3;
  pointer-events: none;
}
/* On dark sections, lighter color */
#stats[data-section-num]::before,
#careers[data-section-num]::before { color: rgba(255,255,255,0.45); }
#stats[data-section-num]::after,
#careers[data-section-num]::after  { background: rgba(255,255,255,0.4); }

@media (max-width: 700px) {
  section[data-section-num]::before { font-size: 8px; letter-spacing: 0.3em; top: 24px; }
  section[data-section-num]::after { display: none; }
}

/* ============================================================
   BLUEPRINT GRID (subtle background pattern for select sections)
   ============================================================ */
#about::before, #technology::before, #process::before, #contact::before {
  /* keep section index badges intact, add blueprint behind */
}
#about, #technology, #process {
  background-image:
    linear-gradient(to right, rgba(43,43,43,0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(43,43,43,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: -1px -1px;
}

/* ============================================================
   DOT GRID PATTERN (for certifications + services)
   ============================================================ */
#certifications, #services {
  background-image: radial-gradient(circle, rgba(43,43,43,0.08) 1px, transparent 1.5px);
  background-size: 28px 28px;
}

/* ============================================================
   ENHANCED SECTION DIVIDERS (animated gold thin lines)
   ============================================================ */
.section-divider {
  position: relative;
  height: 80px;
  display: flex; align-items: center; justify-content: center;
}
.section-divider::before {
  content: ''; width: 1px; height: 100%;
  background: linear-gradient(to bottom, transparent, var(--c-line-2), transparent);
}

/* ============================================================
   CERT CARD â€” luxe corner accents
   ============================================================ */
.cert-card { position: relative; }
.cert-card::before, .cert-card::after {
  content: ''; position: absolute;
  width: 14px; height: 14px;
  border: 1px solid var(--c-ink);
  opacity: 0;
  transition: all 0.5s var(--ease);
}
.cert-card::before { top: 12px; left: 12px;  border-right: none; border-bottom: none; transform: translate(8px,8px); }
.cert-card::after  { bottom: 12px; right: 12px; border-left: none;  border-top: none;    transform: translate(-8px,-8px); }
.cert-card:hover::before, .cert-card:hover::after { opacity: 1; transform: translate(0,0); }

/* ============================================================
   SERVICE CARD â€” giant outline numerals as background
   ============================================================ */
.service-card { position: relative; isolation: isolate; }
.service-card::before {
  content: attr(data-num);
  position: absolute; right: -10px; bottom: -50px;
  font-family: var(--f-display);
  font-size: 14rem; font-weight: 300;
  -webkit-text-stroke: 1px rgba(255,255,255,0.15);
  color: transparent;
  line-height: 1;
  letter-spacing: -0.05em;
  z-index: 1;
  pointer-events: none;
  transition: all 0.6s var(--ease);
  font-variation-settings: "opsz" 144;
}
.service-card:hover::before { transform: translate(-8px, -8px) rotate(-3deg); -webkit-text-stroke-color: rgba(255,255,255,0.28); }
.service-content { z-index: 2; }

/* ============================================================
   PORTFOLIO â€” magazine-style number badges
   ============================================================ */
.portfolio-item { position: relative; }
.portfolio-item::before {
  content: attr(data-portfolio-num);
  position: absolute; top: 18px; left: 18px;
  z-index: 5;
  font-family: var(--f-mono);
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--c-bg);
  background: rgba(43,43,43,0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 4px 10px;
  opacity: 0; transform: translateY(-6px);
  transition: all 0.4s var(--ease);
}
.portfolio-item:hover::before { opacity: 1; transform: translateY(0); }

/* ============================================================
   PROCESS â€” vertical progress line (active step indicator)
   ============================================================ */
.process-steps { position: relative; }
.process-steps::before {
  content: ''; position: absolute;
  left: 30px; top: 0; bottom: 0;
  width: 1px;
  background: var(--c-line);
  z-index: 0;
}
.process-step { position: relative; padding-left: 70px !important; }
.process-step .step-num { position: absolute; left: 0; top: 28px; }
.process-step::before {
  content: ''; position: absolute;
  left: 26px; top: 36px;
  width: 9px; height: 9px;
  background: var(--c-bg);
  border: 1px solid var(--c-line-2);
  border-radius: 50%;
  z-index: 1;
  transition: all 0.4s var(--ease);
}
.process-step.active::before {
  background: var(--c-ink);
  border-color: var(--c-ink);
  box-shadow: 0 0 0 5px rgba(43,43,43,0.08);
}

/* ============================================================
   STAT NUMBERS â€” dramatic split-line entry
   ============================================================ */
.stat-item { position: relative; overflow: hidden; }
.stat-number {
  position: relative;
  display: inline-block;
}
.stat-number::after {
  content: '';
  position: absolute; left: 50%; bottom: -8px;
  transform: translateX(-50%) scaleX(0);
  width: 30px; height: 1px;
  background: var(--c-accent-lt);
  transition: transform 1s var(--ease) 0.8s;
  transform-origin: center;
}
.stat-item.visible .stat-number::after { transform: translateX(-50%) scaleX(1); }

/* ============================================================
   ABOUT IMAGE â€” parallax-subtle on scroll (data-driven)
   ============================================================ */
.about-image-main, .tech-image, .process-image {
  will-change: transform;
}

/* ============================================================
   FOUNDER CARD â€” quote mark accent + ribbon
   ============================================================ */
.founder-card { position: relative; }
.founder-card::after {
  content: 'â€œ';
  position: absolute; top: 12px; right: 24px;
  z-index: 5;
  font-family: var(--f-display);
  font-size: 6rem; font-weight: 300;
  color: var(--c-accent-lt);
  line-height: 1;
  opacity: 0; transform: translateY(8px);
  transition: all 0.5s var(--ease);
  pointer-events: none;
}
.founder-card:hover::after { opacity: 0.4; transform: translateY(0); }

/* ============================================================
   TESTIMONIALS â€” quote mark giant decorative
   ============================================================ */
#testimonials::before {
  /* keep section badge */
}
.testimonials-inner::before {
  content: 'â€œ';
  position: absolute; top: -20px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--f-display);
  font-size: 14rem; font-weight: 300;
  color: var(--c-mute-2);
  opacity: 0.18;
  line-height: 1;
  pointer-events: none;
  z-index: 0;
}
.testimonials-inner { position: relative; }
.testimonials-inner > * { position: relative; z-index: 1; }

/* ============================================================
   CONTACT â€” corner architectural marker
   ============================================================ */
.contact-form-wrap { position: relative; overflow: hidden; }
.contact-form-wrap::before {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 60px; height: 60px;
  border-top: 1px solid var(--c-ink);
  border-right: 1px solid var(--c-ink);
  opacity: 0.4;
}
.contact-form-wrap::after {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 60px; height: 60px;
  border-bottom: 1px solid var(--c-ink);
  border-left: 1px solid var(--c-ink);
  opacity: 0.4;
}

/* ============================================================
   SECTION ENTRY â€” fade-up + scale on scroll
   ============================================================ */
section[data-section-num] {
  opacity: 1;
  transition: none;
}

/* ============================================================
   ENHANCED HOVER on portfolio + service + cert
   ============================================================ */
.portfolio-item, .service-card, .cert-card, .founder-card, .job-item, .filter-btn, .btn-outline, .btn-hero {
  cursor: pointer;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }
ul { list-style: none; }
::selection { background: var(--c-ink); color: var(--c-bg); }

/* ---------- CONTAINER ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--f-display);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--c-ink);
  font-variation-settings: "opsz" 144, "SOFT" 0;
}
em { font-style: italic; font-variation-settings: "opsz" 144, "SOFT" 100; color: var(--c-mute); }

.eyebrow, .section-label {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--f-mono);
  font-size: 11px; font-weight: 500; letter-spacing: 0.32em;
  text-transform: uppercase; color: var(--c-accent);
  margin-bottom: 24px;
}
.section-label::before {
  content: ''; width: 36px; height: 1px; background: var(--c-accent);
}
.section-title {
  font-family: var(--f-display);
  font-size: clamp(2.4rem, 5.4vw, 4.6rem);
  font-weight: 300; line-height: 1.02; color: var(--c-ink);
  margin-bottom: 28px;
  letter-spacing: -0.025em;
}
.section-title em { display: inline; }
.section-subtitle {
  font-size: 1.02rem; color: var(--c-mute); max-width: 540px;
  line-height: 1.8; font-weight: 400;
}

/* ---------- PRELOADER ---------- */
#preloader { position: fixed; inset: 0; background: var(--c-ink); z-index: 9999; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 32px; }
.preloader-logo { display: flex; align-items: center; justify-content: center; }
.preloader-logo .brand-logo--stack { align-items: center; text-align: center; }
.preloader-bar-wrap { width: 200px; height: 1px; background: rgba(255,255,255,0.1); overflow: hidden; }
.preloader-bar { height: 100%; background: var(--c-accent); animation: load 1.6s var(--ease) forwards; }
@keyframes load { from { width: 0; } to { width: 100%; } }

/* ---------- CURSOR (disabled in JS but harmless if it fires) ---------- */
.cursor, .cursor-follower { display: none !important; }

/* ============================================================
   NAVBAR
   ============================================================ */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 26px var(--pad);
  transition: all var(--t);
  background: transparent;
}
#navbar.scrolled {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 16px var(--pad);
  border-bottom: 1px solid var(--c-line);
}
.nav-logo { display: inline-flex; align-items: center; color: var(--c-ink); }

/* ---------- BRAND LOGO COMPONENT ---------- */
.brand-logo {
  display: inline-flex; align-items: center; gap: 14px;
  line-height: 1;
}
.brand-logo--stack {
  flex-direction: column; align-items: flex-start; gap: 16px;
}
.brand-mark {
  width: 38px; height: 38px; flex-shrink: 0;
  display: block;
  transition: transform 0.6s var(--ease);
}
.nav-logo:hover .brand-mark,
.footer-logo:hover .brand-mark { transform: rotate(45deg); }
.brand-logo--stack .brand-mark { width: 56px; height: 56px; }
.brand-words { display: flex; flex-direction: column; gap: 4px; }
.brand-name {
  font-family: var(--f-display);
  font-size: 1.25rem; font-weight: 400;
  letter-spacing: -0.015em;
  color: currentColor;
  line-height: 1;
}
.brand-logo--stack .brand-name { font-size: 1.75rem; }
.brand-sub {
  font-family: var(--f-mono);
  font-size: 8.5px; font-weight: 500;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--c-accent);
  line-height: 1;
}
.brand-logo--stack .brand-sub { font-size: 9.5px; letter-spacing: 0.36em; }
.brand-logo--dark  { color: var(--c-ink); --brand-dot: #2b2b2b; }
.brand-logo--light { color: var(--c-bg); --brand-dot: #ffffff; }

/* When an uploaded logo image is used instead of the SVG fallback */
.brand-logo--image { gap: 0; }
.brand-img {
  display: block;
  height: 38px; width: auto; max-width: 220px;
  object-fit: contain;
  transition: opacity var(--tf);
}
.brand-logo--stack .brand-img { height: 64px; max-width: 280px; }
footer .brand-img { height: 42px; }
.preloader-logo .brand-img { height: 72px; }
.nav-menu-btn {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--f-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--c-ink);
  padding: 12px 18px;
  border: 1px solid var(--c-ink);
  transition: all var(--tf);
}
.nav-menu-btn:hover { background: var(--c-ink); color: var(--c-bg); }
.hamburger { width: 18px; display: flex; flex-direction: column; gap: 4px; }
.hamburger span { display: block; height: 1px; background: currentColor; }
.hamburger span:nth-child(2) { width: 70%; }
.hamburger span:nth-child(3) { width: 40%; }

/* ============================================================
   MEGA MENU OVERLAY
   ============================================================ */
.mega-overlay {
  position: fixed; inset: 0;
  display: grid;
  grid-template-columns: 1.3fr repeat(6, 1fr) 1.1fr;
  background: var(--c-paper);
  z-index: 9000;
  transform: translateY(-100%);
  transition: transform 0.85s var(--ease);
  overflow: hidden;
}
.mega-overlay::before {
  /* faint architectural grid lines */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(43,43,43,0.06) 1px, transparent 1px);
  background-size: 80px 100%;
  opacity: 0.5;
}
.mega-overlay.open { transform: translateY(0); }
.mega-preview-col {
  position: relative; overflow: hidden; background: var(--c-ink);
}
.mega-preview-img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.65; transition: all 0.6s var(--ease);
  filter: grayscale(15%) brightness(0.92);
}
.mega-preview-col::after {
  /* subtle vignette + corner accent */
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(43,43,43,0.35) 0%, transparent 40%, rgba(43,43,43,0.45) 100%),
    radial-gradient(circle at 80% 20%, transparent 60%, rgba(43,43,43,0.5) 100%);
  pointer-events: none;
}
.mega-back-btn { position: absolute; bottom: 32px; left: 32px; z-index: 5; }
.mega-back {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.3em;
  color: var(--c-bg); padding: 14px 24px;
  border: 1px solid rgba(255,255,255,0.4);
  transition: all var(--tf);
  position: relative; overflow: hidden;
}
.mega-back:hover { background: var(--c-bg); color: var(--c-ink); }

.mega-col {
  border-right: 1px solid var(--c-line);
  padding: 56px 28px 40px;
  display: flex;
  align-items: flex-start;       /* TEXT AT TOP */
  position: relative;
  transition: background 0.4s var(--ease);
}
.mega-col:hover { background: rgba(43,43,43,0.04); }
.mega-col-inner { width: 100%; }
.mega-nav-label {
  font-family: var(--f-mono);
  font-size: 9px; font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 32px;
  display: flex; align-items: center; gap: 10px;
}
.mega-nav-label::before {
  content: ''; width: 14px; height: 1px; background: var(--c-accent); display: inline-block;
}
.mega-nav-link {
  display: inline-block;
  font-family: var(--f-display);
  font-size: clamp(1.7rem, 2.6vw, 2.6rem);
  font-weight: 300; color: var(--c-ink);
  letter-spacing: -0.025em;
  line-height: 1.02;
  padding: 6px 0;
  position: relative;
  transition: color 0.5s var(--ease), transform 0.5s var(--ease);
  /* SHIMMER EFFECT â€” gradient sweeps across the text from ink â†’ gold on hover */
  background-image: linear-gradient(
    100deg,
    var(--c-ink) 0%,
    var(--c-ink) 30%,
    var(--c-accent-lt) 48%,
    var(--c-accent) 60%,
    var(--c-accent) 100%
  );
  background-size: 240% 100%;
  background-position: 0% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: background-position 1.1s var(--ease), transform 0.5s var(--ease);
}
.mega-nav-link:hover {
  background-position: 100% 0;
  transform: translateX(8px);
}
.mega-nav-link::after {
  content: 'â†—';
  position: absolute; top: 8px; right: -22px;
  font-family: var(--f-sans); font-size: 0.85rem;
  color: var(--c-accent);
  -webkit-text-fill-color: var(--c-accent);
  opacity: 0; transform: translate(-6px, 6px);
  transition: all 0.4s var(--ease);
}
.mega-nav-link:hover::after { opacity: 1; transform: translate(0, 0); }
.mega-nav-sub {
  margin-top: 22px;
  display: flex; flex-direction: column; gap: 10px;
  padding-left: 2px;
  border-left: 1px solid transparent;
  transition: all 0.4s var(--ease);
}
.mega-col:hover .mega-nav-sub { border-left-color: var(--c-line); padding-left: 14px; }
.mega-nav-sub a {
  font-family: var(--f-sans); font-size: 0.88rem;
  color: var(--c-mute); font-weight: 400;
  letter-spacing: -0.005em;
  transition: all var(--tf);
  display: inline-flex; align-items: center; gap: 8px;
  position: relative; width: fit-content;
}
.mega-nav-sub a::before {
  content: ''; width: 0; height: 1px;
  background: var(--c-accent);
  transition: width 0.4s var(--ease);
}
.mega-nav-sub a:hover { color: var(--c-ink); }
.mega-nav-sub a:hover::before { width: 16px; }

.mega-brand-col {
  background: var(--c-ink); color: var(--c-bg);
  padding: 56px 36px;
  display: flex; flex-direction: column;
  justify-content: center;       /* center content vertically */
  align-items: center;           /* center horizontally */
  text-align: center;
  position: relative;
  overflow: hidden;
}
.mega-brand-col::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 80% 20%, rgba(43,43,43,0.18), transparent 50%);
}
.mega-close-btn {
  position: absolute; top: 28px; right: 28px;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--c-bg); font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--tf);
  z-index: 2;
}
.mega-close-btn:hover { background: var(--c-accent); border-color: var(--c-accent); transform: rotate(90deg); }
.mega-brand-logo { margin-top: 0; position: relative; z-index: 2; display: flex; justify-content: center; }
.mega-brand-logo .brand-logo--stack { align-items: center; text-align: center; }
.mega-brand-tag {
  font-family: var(--f-mono); font-size: 10px;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--c-accent-lt); margin-top: 22px;
  position: relative; z-index: 2;
  max-width: 220px; line-height: 1.7;
  text-align: center;
}
.mega-brand-divider { width: 40px; height: 1px; background: rgba(255,255,255,0.25); margin: 32px auto; position: relative; z-index: 2; }
.mega-social-list { display: flex; flex-direction: column; gap: 14px; position: relative; z-index: 2; align-items: center; }
.mega-social-link {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase; color: rgba(255,255,255,0.6);
  transition: all var(--tf);
}
.mega-social-link i { font-size: 1rem; }
.mega-social-link:hover { color: var(--c-accent-lt); letter-spacing: 0.28em; }

/* ============================================================
   HERO â€” CINEMATIC LANDING
   ============================================================ */
#hero, .hero-cinematic {
  position: relative;
  height: 100vh;
  min-height: 760px;
  overflow: hidden;
  background: var(--c-ink);
}

/* â”€â”€ stage (image slides) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.hero-stage { position: absolute; inset: 0; z-index: 1; }
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.4s cubic-bezier(0.77, 0, 0.18, 1), opacity 0.6s ease;
  pointer-events: none;
}
.hero-slide.active {
  opacity: 1;
  clip-path: inset(0 0 0 0);
  pointer-events: auto;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.08);
}
.hero-slide.active .hero-bg {
  animation: heroKenBurns 12s linear forwards;
}
@keyframes heroKenBurns {
  from { transform: scale(1.08) translate3d(0,0,0); }
  to   { transform: scale(1.18) translate3d(-1%,-1%,0); }
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(43,43,43,0.20) 0%, rgba(43,43,43,0.40) 50%, rgba(43,43,43,0.85) 100%),
    linear-gradient(90deg, rgba(43,43,43,0.50) 0%, transparent 40%);
}


/* â”€â”€ canvas (main content layer) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.hero-canvas {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  z-index: 4;
  padding: 120px var(--pad) 180px;
  max-width: var(--maxw);
  margin: 0 auto;
  left: 0; right: 0;
}
.hero-content { position: relative; width: 100%; max-width: 920px; }
.hero-text-slide {
  position: absolute; inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
.hero-text-slide.active {
  opacity: 1;
  pointer-events: auto;
  position: relative;
}

/* â”€â”€ label â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.hero-label {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--f-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.42em; text-transform: uppercase;
  color: var(--c-accent-lt);
  margin-bottom: 36px;
  opacity: 0;
  animation: heroFade 0.9s ease 0.8s forwards;
}
.hero-label-bar {
  display: inline-block; width: 0; height: 1px;
  background: var(--c-accent-lt);
  animation: heroLineGrow 0.9s cubic-bezier(0.77, 0, 0.18, 1) 0.9s forwards;
}
@keyframes heroFade { to { opacity: 1; } }
@keyframes heroLineGrow { to { width: 48px; } }

/* â”€â”€ title with split-letter reveal â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.hero-title {
  font-family: var(--f-display);
  font-size: clamp(2.8rem, 8vw, 7rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: var(--c-bg);
  font-variation-settings: "opsz" 144;
  margin-bottom: 32px;
  max-width: 14ch;
}
.hero-title em { color: var(--c-accent-lt); font-style: italic; font-variation-settings: "opsz" 144, "SOFT" 100; }
.hero-line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.hero-line-inner { display: inline-block; }
.hero-word { display: inline-block; white-space: nowrap; }
.hero-char {
  display: inline-block;
  transform: translateY(108%) rotate(6deg);
  opacity: 0;
  animation: heroCharIn 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--d) + 0.4s);
}
@keyframes heroCharIn {
  to { transform: translateY(0) rotate(0); opacity: 1; }
}

/* â”€â”€ description â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.hero-desc {
  font-size: 1.08rem; line-height: 1.75;
  color: rgba(255,255,255,0.78);
  max-width: 540px;
  margin-bottom: 48px;
  font-weight: 300;
  opacity: 0;
  transform: translateY(20px);
  animation: heroDescIn 1s ease 1.4s forwards;
}
@keyframes heroDescIn { to { opacity: 1; transform: translateY(0); } }

/* â”€â”€ action buttons â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.hero-actions {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  opacity: 0;
  animation: heroFade 0.9s ease 1.7s forwards;
}
.btn-hero {
  position: relative;
  display: inline-flex; align-items: center; gap: 18px;
  font-family: var(--f-mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.32em; text-transform: uppercase;
  padding: 20px 38px;
  background: var(--c-bg); color: var(--c-ink);
  transition: all 0.45s var(--ease);
  overflow: hidden;
  isolation: isolate;
}
.btn-hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, var(--c-accent) 0%, var(--c-accent-lt) 100%);
  transform: translateX(-100%) skewX(-18deg);
  transition: transform 0.55s var(--ease);
  z-index: -1;
}
.btn-hero:hover { color: var(--c-bg); gap: 24px; }
.btn-hero:hover::before { transform: translateX(0) skewX(-18deg); }
.btn-hero-corner {
  position: absolute; width: 10px; height: 10px;
  border: 1px solid var(--c-accent);
  opacity: 0;
  transition: all 0.4s var(--ease);
}
.btn-hero-corner-tl { top: -1px; left: -1px; border-right: none; border-bottom: none; transform: translate(4px,4px); }
.btn-hero-corner-tr { top: -1px; right: -1px; border-left: none; border-bottom: none; transform: translate(-4px,4px); }
.btn-hero-corner-bl { bottom: -1px; left: -1px; border-right: none; border-top: none; transform: translate(4px,-4px); }
.btn-hero-corner-br { bottom: -1px; right: -1px; border-left: none; border-top: none; transform: translate(-4px,-4px); }
.btn-hero:hover .btn-hero-corner { opacity: 1; transform: translate(0,0); }
.btn-hero-arrow svg { display: block; transition: transform 0.4s var(--ease); }
.btn-hero:hover .btn-hero-arrow svg { transform: translateX(4px); }

.btn-hero-ghost {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--f-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  padding: 14px 0;
  position: relative;
  transition: color var(--tf);
}
.btn-hero-ghost::after {
  content: ''; position: absolute; left: 0; bottom: 8px;
  width: 100%; height: 1px; background: rgba(255,255,255,0.25);
  transition: background 0.3s ease;
}
.btn-hero-ghost:hover { color: var(--c-accent-lt); }
.btn-hero-ghost:hover::after { background: var(--c-accent-lt); }
.btn-hero-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--c-accent);
  position: relative;
}
.btn-hero-dot::before {
  content: ''; position: absolute; inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--c-accent);
  animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.6); opacity: 0; }
}

/* â”€â”€ bottom dock â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.hero-dock {
  position: absolute; left: 0; right: 0; bottom: 0;
  z-index: 5;
  padding: 0 var(--pad) 32px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px; align-items: end;
  pointer-events: none;
  opacity: 0;
  animation: heroFade 1s ease 2s forwards;
}
.hero-dock > * { pointer-events: auto; }

/* info card */
.hero-info-card {
  display: flex; align-items: center; gap: 24px;
  padding: 22px 26px;
  background: rgba(43,43,43,0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.08);
  border-left: 2px solid var(--c-bg);
  max-width: 460px;
}
.hero-info-num {
  font-family: var(--f-mono); font-size: 18px; font-weight: 500;
  letter-spacing: 0.1em; color: var(--c-accent-lt);
  display: flex; align-items: center; gap: 12px;
  font-variant-numeric: tabular-nums;
}
.hero-info-sep { opacity: 0.4; font-size: 14px; }
.hero-info-divider { width: 1px; height: 36px; background: rgba(255,255,255,0.12); }
.hero-info-label {
  font-family: var(--f-mono); font-size: 9px;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--c-accent-lt);
  margin-bottom: 4px;
}
.hero-info-title {
  font-family: var(--f-display); font-size: 1.05rem;
  font-weight: 400; color: var(--c-bg);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

/* progress bars */
.hero-progress-wrap {
  display: flex; align-items: center; gap: 12px;
  justify-content: center;
}
.hero-arrow-btn {
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.7);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--tf);
  background: rgba(43,43,43,0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 50%;
}
.hero-arrow-btn:hover { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-bg); }
.hero-progress { display: flex; gap: 6px; align-items: center; }
.hero-prog-bar {
  width: 56px; height: 2px;
  background: rgba(255,255,255,0.15);
  position: relative;
  cursor: pointer;
  border: none;
  padding: 0;
  overflow: hidden;
}
.hero-prog-fill {
  position: absolute; inset: 0;
  background: var(--c-accent-lt);
  transform-origin: left;
  transform: scaleX(0);
}
.hero-prog-bar.active .hero-prog-fill {
  animation: progFill 6s linear forwards;
}
@keyframes progFill { to { transform: scaleX(1); } }

/* scroll hint */
.hero-scroll-hint {
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
  font-family: var(--f-mono); font-size: 9.5px;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.hero-scroll-line {
  width: 1px; height: 56px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.6) 0%, transparent 100%);
  position: relative;
  overflow: hidden;
}
.hero-scroll-line::after {
  content: ''; position: absolute; left: 0; right: 0; height: 18px;
  background: var(--c-accent-lt);
  animation: scrollDrop 2s ease-in-out infinite;
}
@keyframes scrollDrop {
  0%   { top: -18px; }
  100% { top: 100%; }
}

/* â”€â”€ page-load curtain reveal â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.hero-curtain {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: repeat(5, 1fr);
  z-index: 10;
  pointer-events: none;
}
.hero-curtain-panel {
  background: var(--c-ink);
  transform: translateY(0);
  animation: curtainUp 1.2s cubic-bezier(0.77, 0, 0.18, 1) forwards;
}
.hero-curtain-panel:nth-child(1) { animation-delay: 0.1s; }
.hero-curtain-panel:nth-child(2) { animation-delay: 0.2s; }
.hero-curtain-panel:nth-child(3) { animation-delay: 0.3s; }
.hero-curtain-panel:nth-child(4) { animation-delay: 0.4s; }
.hero-curtain-panel:nth-child(5) { animation-delay: 0.5s; }
@keyframes curtainUp {
  from { transform: translateY(0); }
  to   { transform: translateY(-100%); }
}

/* â”€â”€ responsive â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 900px) {
  #hero, .hero-cinematic { min-height: 640px; }
  .hero-canvas { padding: 100px var(--pad) 160px; }
  .hero-dock { grid-template-columns: 1fr; gap: 16px; padding-bottom: 24px; }
  .hero-info-card { max-width: none; padding: 16px 20px; gap: 16px; }
  .hero-info-divider { height: 28px; }
  .hero-info-num { font-size: 15px; }
  .hero-progress-wrap { justify-content: flex-start; }
  .hero-prog-bar { width: 36px; }
  .hero-scroll-hint { display: none; }
  .hero-arrow-btn { width: 34px; height: 34px; }
  .btn-hero { padding: 16px 28px; }
  .hero-actions { gap: 16px; }
}
@media (max-width: 600px) {
  .hero-title { letter-spacing: -0.03em; }
  .hero-info-card { font-size: 0.85rem; }
  .hero-info-title { font-size: 0.92rem; }
  .btn-hero-ghost { padding: 10px 0; }
}

/* ============================================================
   TICKER
   ============================================================ */
.ticker-wrap {
  background: var(--c-ink); color: var(--c-bg);
  padding: 22px 0; overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.ticker-track { display: flex; gap: 64px; animation: ticker 50s linear infinite; white-space: nowrap; }
.ticker-item {
  font-family: var(--f-display); font-size: 1.6rem; font-style: italic;
  color: var(--c-accent-lt); display: flex; align-items: center; gap: 64px;
  font-weight: 300;
}
.ticker-item::after { content: 'âœ¦'; color: var(--c-bg); opacity: 0.4; font-size: 0.8em; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ============================================================
   ABOUT
   ============================================================ */
#about { padding: clamp(80px, 14vh, 160px) 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 100px; align-items: center; }
.about-image-wrap { position: relative; }
.about-image-main { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.about-image-accent {
  position: absolute; bottom: -60px; right: -60px;
  width: 55%; aspect-ratio: 1; object-fit: cover;
  border: 12px solid var(--c-bg);
  z-index: 2;
}
.about-badge {
  position: absolute; top: 32px; left: -32px;
  background: var(--c-accent); color: var(--c-bg);
  padding: 26px 30px; z-index: 3;
  border-radius: 2px;
}
.about-badge strong { display: block; font-family: var(--f-display); font-size: 2.6rem; font-weight: 300; line-height: 1; }
.about-badge span { font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.25em; text-transform: uppercase; opacity: 0.85; display: block; margin-top: 6px; }
.about-text { padding-left: 20px; }
.about-body { font-size: 1.04rem; color: var(--c-mute); line-height: 1.85; margin-bottom: 40px; max-width: 540px; font-weight: 400; }
.about-values { display: flex; flex-direction: column; gap: 28px; margin-bottom: 44px; }
.about-value { display: flex; gap: 22px; align-items: flex-start; }
.about-value-icon {
  width: 52px; height: 52px; flex-shrink: 0;
  border: 1px solid var(--c-line);
  background: var(--c-paper);
  display: flex; align-items: center; justify-content: center;
  color: var(--c-accent); font-size: 1.25rem;
  transition: all var(--tf);
}
.about-value:hover .about-value-icon { background: var(--c-accent); color: var(--c-bg); border-color: var(--c-accent); }
.about-value-text h4 { font-family: var(--f-display); font-size: 1.35rem; color: var(--c-ink); margin-bottom: 6px; font-weight: 400; }
.about-value-text p { font-size: 0.92rem; color: var(--c-mute); line-height: 1.7; max-width: 460px; }

/* ============================================================
   STATS
   ============================================================ */
#stats { padding: clamp(70px, 10vh, 110px) 0; background: var(--c-ink); color: var(--c-bg); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-item { text-align: center; padding: 24px; border-right: 1px solid rgba(255,255,255,0.08); }
.stat-item:last-child { border-right: none; }
.stat-number { font-family: var(--f-display); font-size: clamp(2.8rem, 5vw, 4.5rem); font-weight: 300; color: var(--c-accent-lt); line-height: 1; }
.stat-label { font-family: var(--f-mono); font-size: 10px; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(255,255,255,0.55); margin-top: 16px; }

/* ============================================================
   CERTIFICATIONS
   ============================================================ */
#certifications {
  padding: clamp(90px, 14vh, 150px) 0;
  background: var(--c-bg-2);
  position: relative;
}
#certifications::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 1px; height: 60px; background: var(--c-line-2);
}
.certs-header { text-align: center; max-width: 680px; margin: 0 auto 80px; }
.certs-header .section-label { justify-content: center; margin-left: auto; margin-right: auto; }
.certs-header .section-subtitle { margin: 0 auto; }
.certs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--c-line);
  background: var(--c-line);
}
.cert-card {
  background: var(--c-paper);
  padding: 56px 36px;
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 18px;
  transition: all var(--t);
  position: relative;
}
.cert-card:hover { background: var(--c-paper); transform: translateY(-6px); z-index: 2; box-shadow: 0 30px 60px -20px rgba(43,43,43,0.18); }
.cert-icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-bg); color: var(--c-accent);
  font-size: 1.6rem;
  border-radius: 2px;
  margin-bottom: 6px;
}
.cert-icon i { font-size: 1.6rem !important; line-height: 1; }
.cert-code {
  font-family: var(--f-mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--c-accent);
}
.cert-name {
  font-family: var(--f-display); font-size: 1.45rem;
  font-weight: 400; color: var(--c-ink);
  line-height: 1.15; letter-spacing: -0.015em;
}
.cert-desc { font-size: 0.9rem; color: var(--c-mute); line-height: 1.75; }

/* ============================================================
   TECHNOLOGY
   ============================================================ */
#technology { padding: clamp(90px, 14vh, 150px) 0; background: var(--c-bg); }
.tech-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: center; }
.tech-list { margin-top: 48px; display: flex; flex-direction: column; gap: 0; }
.tech-item {
  display: grid; grid-template-columns: 56px 1fr; gap: 24px;
  padding: 26px 0; align-items: center;
  border-bottom: 1px solid var(--c-line);
  transition: padding var(--tf);
}
.tech-item:first-child { border-top: 1px solid var(--c-line); }
.tech-item:hover { padding-left: 12px; }
.tech-item-icon {
  width: 56px; height: 56px;
  background: var(--c-paper); border: 1px solid var(--c-line);
  display: flex; align-items: center; justify-content: center;
  color: var(--c-accent); font-size: 1.4rem;
  transition: all var(--tf);
  flex-shrink: 0;
}
.tech-item-icon i { font-size: 1.4rem !important; }
.tech-item:hover .tech-item-icon { background: var(--c-ink); color: var(--c-accent-lt); border-color: var(--c-ink); }
.tech-item-name { font-family: var(--f-display); font-size: 1.35rem; color: var(--c-ink); font-weight: 400; margin-bottom: 4px; letter-spacing: -0.01em; }
.tech-item-desc { font-size: 0.9rem; color: var(--c-mute); line-height: 1.65; }
.tech-image-wrap { position: relative; }
.tech-slider { position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--c-ink); }
.tech-slide {
  position: absolute; inset: 0;
  opacity: 0;
  clip-path: inset(0 0 0 100%);
  transition: clip-path 1.2s cubic-bezier(0.77, 0, 0.18, 1), opacity 0.5s ease;
  pointer-events: none;
}
.tech-slide.active {
  opacity: 1;
  clip-path: inset(0 0 0 0);
  pointer-events: auto;
  z-index: 2;
}
.tech-image { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; filter: contrast(1.04) saturate(0.94); }
.tech-slide.active .tech-image { animation: techZoom 8s ease-out forwards; }
@keyframes techZoom {
  from { transform: scale(1.04); }
  to   { transform: scale(1.1); }
}

/* slider controls */
.tech-slider-controls {
  position: absolute; bottom: 18px; right: 18px; z-index: 5;
  display: flex; align-items: center; gap: 16px;
  padding: 10px 16px;
  background: rgba(43,43,43,0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--c-bg);
}
.tech-slider-counter {
  font-family: var(--f-mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.18em; font-variant-numeric: tabular-nums;
  display: flex; align-items: center; gap: 6px;
}
.tech-slider-sep { opacity: 0.4; }
.tech-slider-total { opacity: 0.6; }
.tech-slider-dots { display: flex; gap: 5px; }
.tech-slider-dot {
  width: 22px; height: 2px;
  background: rgba(255,255,255,0.3);
  border: none; padding: 0; cursor: pointer;
  transition: all var(--tf);
}
.tech-slider-dot.active { background: var(--c-bg); }
.tech-slider-dot:hover { background: rgba(255,255,255,0.7); }
.tech-badge {
  position: absolute; top: 24px; left: 24px;
  z-index: 10;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--c-ink);
  padding: 18px 22px;
  text-align: left;
  display: flex; flex-direction: column; gap: 6px;
  min-width: 130px;
  border-left: 2px solid var(--c-ink);
}
.tech-badge strong {
  display: block;
  font-family: var(--f-display);
  font-size: 2rem; font-weight: 400;
  line-height: 1;
  color: var(--c-ink);
  letter-spacing: -0.02em;
}
.tech-badge span {
  font-family: var(--f-mono);
  font-size: 9px; font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase;
  display: block;
  color: var(--c-mute);
  line-height: 1.4;
}

/* ============================================================
   SERVICES
   ============================================================ */
#services { padding: clamp(90px, 14vh, 150px) 0; background: var(--c-paper); }
.services-header { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-bottom: 80px; align-items: end; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.service-card {
  position: relative; aspect-ratio: 3/4; overflow: hidden;
  background: var(--c-ink);
  cursor: pointer;
}
.service-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: grayscale(40%) brightness(0.7);
  transition: all 0.8s var(--ease);
}
.service-card:hover .service-bg { filter: grayscale(0) brightness(0.55); transform: scale(1.06); }
.service-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(43,43,43,0.85) 100%); }
.service-content {
  position: absolute; inset: 0;
  padding: 36px;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: var(--c-bg);
  z-index: 2;
}
.service-number { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.3em; color: var(--c-accent-lt); margin-bottom: 16px; }
.service-title { font-family: var(--f-display); font-size: 1.9rem; font-weight: 400; color: var(--c-bg); margin-bottom: 14px; letter-spacing: -0.015em; }
.service-desc { font-size: 0.9rem; color: rgba(255,255,255,0.78); line-height: 1.7; margin-bottom: 20px; max-height: 0; overflow: hidden; opacity: 0; transition: all 0.5s var(--ease); }
.service-card:hover .service-desc { max-height: 200px; opacity: 1; margin-bottom: 20px; }
.service-features { display: flex; flex-direction: column; gap: 6px; margin-bottom: 22px; max-height: 0; overflow: hidden; opacity: 0; transition: all 0.5s var(--ease); }
.service-card:hover .service-features { max-height: 200px; opacity: 1; }
.service-feature { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.7); padding-left: 14px; position: relative; }
.service-feature::before { content: ''; position: absolute; left: 0; top: 50%; width: 6px; height: 1px; background: var(--c-accent-lt); }
.service-link {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--c-accent-lt);
  padding-bottom: 6px; border-bottom: 1px solid var(--c-accent-lt);
  width: fit-content;
}

/* ============================================================
   PORTFOLIO
   ============================================================ */
#portfolio { padding: clamp(90px, 14vh, 150px) 0; background: var(--c-bg); }
.portfolio-header { display: grid; grid-template-columns: 1fr auto; gap: 40px; margin-bottom: 64px; align-items: end; }
.portfolio-filter { display: flex; gap: 4px; flex-wrap: wrap; }
.filter-btn {
  font-family: var(--f-mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.25em; text-transform: uppercase;
  padding: 12px 22px;
  color: var(--c-mute); background: transparent;
  border: 1px solid var(--c-line);
  transition: all var(--tf);
}
.filter-btn:hover { color: var(--c-ink); border-color: var(--c-ink); }
.filter-btn.active { background: var(--c-ink); color: var(--c-bg); border-color: var(--c-ink); }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.portfolio-item {
  position: relative; overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--c-ink);
  cursor: pointer;
}
.port-img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s var(--ease), filter 0.6s var(--ease);
  filter: grayscale(20%);
}
.portfolio-item:hover .port-img { transform: scale(1.07); filter: grayscale(0); }
.port-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(43,43,43,0) 50%, rgba(43,43,43,0.92) 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 28px;
  opacity: 1;
  transition: all 0.5s var(--ease);
}
.port-info { transform: translateY(20px); transition: transform 0.5s var(--ease); }
.portfolio-item:hover .port-info { transform: translateY(0); }
.port-cat { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--c-accent-lt); margin-bottom: 10px; }
.port-title { font-family: var(--f-display); font-size: 1.45rem; color: var(--c-bg); font-weight: 400; line-height: 1.15; margin-bottom: 8px; letter-spacing: -0.015em; }
.port-meta { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.6); }
.port-arrow {
  position: absolute; top: 24px; right: 24px;
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.92); color: var(--c-ink);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translate(8px,-8px);
  transition: all 0.4s var(--ease);
}
.portfolio-item:hover .port-arrow { opacity: 1; transform: translate(0,0); }
.portfolio-more { text-align: center; margin-top: 60px; }

/* ============================================================
   PROCESS
   ============================================================ */
#process { padding: clamp(90px, 14vh, 150px) 0; background: var(--c-paper); }
.process-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: start; }
.process-steps { display: flex; flex-direction: column; gap: 0; margin-top: 40px; }
.process-step {
  display: grid; grid-template-columns: 90px 1fr; gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--c-line);
  cursor: pointer;
  transition: all var(--tf);
}
.process-step:first-child { border-top: 1px solid var(--c-line); }
.step-num { font-family: var(--f-mono); font-size: 14px; letter-spacing: 0.2em; color: var(--c-accent); padding-top: 4px; }
.step-title { font-family: var(--f-display); font-size: 1.55rem; color: var(--c-ink); font-weight: 400; margin-bottom: 6px; letter-spacing: -0.015em; }
.step-desc { font-size: 0.9rem; color: var(--c-mute); line-height: 1.7; max-height: 0; overflow: hidden; opacity: 0; transition: all 0.4s var(--ease); }
.process-step.active .step-desc { max-height: 200px; opacity: 1; margin-top: 8px; }
.process-step.active .step-num { color: var(--c-ink); }
.process-step.active .step-title { color: var(--c-accent); }
.process-image-wrap { position: sticky; top: 120px; }
.process-image { width: 100%; aspect-ratio: 4/5; object-fit: cover; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
#testimonials { padding: clamp(90px, 14vh, 150px) 0; background: var(--c-bg-2); }
.testimonials-inner { max-width: 880px; margin: 0 auto; text-align: center; }
.testimonials-inner .section-label { justify-content: center; margin-left: auto; margin-right: auto; }
.quote-mark { font-family: var(--f-display); font-size: 6rem; color: var(--c-accent); line-height: 1; margin: 30px 0 10px; font-weight: 300; }
.testimonial-slider { position: relative; min-height: 200px; }
.testimonial-slide { opacity: 0; position: absolute; inset: 0; transition: opacity 0.8s var(--ease); }
.testimonial-slide.active { opacity: 1; position: relative; }
.testimonial-text {
  font-family: var(--f-display); font-style: italic;
  font-size: clamp(1.3rem, 2.4vw, 1.95rem);
  font-weight: 300; line-height: 1.45; color: var(--c-ink-2);
  letter-spacing: -0.01em;
  margin-bottom: 36px;
}
.testimonial-author { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.testimonial-name { font-family: var(--f-display); font-size: 1.15rem; color: var(--c-ink); font-weight: 500; }
.testimonial-role { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--c-accent); }
.test-dots { display: flex; gap: 8px; justify-content: center; margin-top: 36px; }
.test-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-line-2); cursor: pointer; transition: all var(--tf); }
.test-dot.active { background: var(--c-accent); transform: scale(1.4); }

/* ============================================================
   TEAM / FOUNDERS
   ============================================================ */
#team { padding: clamp(90px, 14vh, 150px) 0; background: var(--c-bg); }
.team-header { max-width: 720px; margin-bottom: 72px; }
.founders-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}
.founder-card {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  overflow: hidden;
  transition: all var(--t);
}
.founder-card:hover { transform: translateY(-6px); box-shadow: 0 40px 80px -30px rgba(43,43,43,0.25); }
.founder-photo-wrap { position: relative; overflow: hidden; aspect-ratio: 4/5; background: var(--c-ink); }
.founder-photo {
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
  filter: grayscale(20%);
  transition: all 0.8s var(--ease);
}
.founder-card:hover .founder-photo { filter: grayscale(0); transform: scale(1.05); }
.founder-socials {
  position: absolute; bottom: 24px; right: 24px;
  display: flex; gap: 8px;
  opacity: 0; transform: translateY(8px);
  transition: all 0.4s var(--ease);
}
.founder-card:hover .founder-socials { opacity: 1; transform: translateY(0); }
.founder-socials a {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.95); color: var(--c-ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: all var(--tf);
}
.founder-socials a:hover { background: var(--c-accent); color: var(--c-bg); }
.founder-info { padding: 40px 44px 48px; }
.founder-name { font-family: var(--f-display); font-size: 2rem; color: var(--c-ink); font-weight: 400; letter-spacing: -0.02em; margin-bottom: 8px; line-height: 1.05; }
.founder-pos { font-family: var(--f-mono); font-size: 10px; font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase; color: var(--c-accent); margin-bottom: 24px; }
.founder-bio { font-size: 0.93rem; color: var(--c-mute); line-height: 1.85; }

/* ============================================================
   CAREERS
   ============================================================ */
#careers { padding: clamp(90px, 14vh, 150px) 0; background: var(--c-paper); border-top: 1px solid var(--c-line); }
.careers-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 100px; align-items: start; }
.job-list { display: flex; flex-direction: column; gap: 4px; }
.job-item {
  padding: 28px 32px; background: var(--c-bg);
  border: 1px solid var(--c-line);
  display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center;
  cursor: pointer; transition: all var(--tf);
}
.job-item:hover { border-color: var(--c-accent); background: var(--c-bg-2); transform: translateX(6px); }
.job-title { font-family: var(--f-display); font-size: 1.35rem; color: var(--c-ink); font-weight: 400; margin-bottom: 10px; letter-spacing: -0.015em; }
.job-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.job-tag { font-family: var(--f-mono); font-size: 9px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; padding: 4px 10px; border: 1px solid var(--c-line-2); color: var(--c-mute); }
.job-tag.type { border-color: var(--c-accent); color: var(--c-accent); }
.job-arrow { width: 42px; height: 42px; border: 1px solid var(--c-line); display: flex; align-items: center; justify-content: center; color: var(--c-mute-2); transition: all var(--tf); }
.job-item:hover .job-arrow { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-bg); }

/* ============================================================
   JOB MODAL
   ============================================================ */
.job-modal-overlay { position: fixed; inset: 0; background: rgba(43,43,43,0.55); z-index: 2000; display: none; align-items: flex-start; justify-content: center; padding: 60px 24px; overflow-y: auto; backdrop-filter: blur(6px); }
.job-modal-overlay.open { display: flex; }
.job-modal { background: var(--c-paper); max-width: 720px; width: 100%; padding: 64px; position: relative; max-height: calc(100vh - 120px); overflow-y: auto; }
.modal-close { position: absolute; top: 24px; right: 24px; width: 40px; height: 40px; border: 1px solid var(--c-line); display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--c-mute); transition: all var(--tf); }
.modal-close:hover { border-color: var(--c-accent); color: var(--c-accent); transform: rotate(90deg); }
.modal-section { margin-top: 36px; }
.modal-section h4 { font-family: var(--f-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; color: var(--c-accent); margin-bottom: 16px; }
.modal-list { display: flex; flex-direction: column; gap: 10px; }
.modal-list li { font-size: 0.92rem; color: var(--c-mute); padding-left: 22px; position: relative; line-height: 1.7; }
.modal-list li::before { content: 'â€”'; position: absolute; left: 0; color: var(--c-accent); }

/* ============================================================
   CONTACT
   ============================================================ */
#contact { padding: clamp(90px, 14vh, 150px) 0; background: var(--c-bg); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 100px; }
.contact-details { margin-top: 56px; display: flex; flex-direction: column; gap: 28px; }
.contact-detail { display: flex; gap: 20px; align-items: flex-start; }
.contact-detail-icon { width: 48px; height: 48px; border: 1px solid var(--c-line); background: var(--c-paper); display: flex; align-items: center; justify-content: center; color: var(--c-accent); flex-shrink: 0; }
.contact-detail-label { font-family: var(--f-mono); font-size: 9px; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; color: var(--c-accent); margin-bottom: 6px; }
.contact-detail-value { font-size: 0.95rem; color: var(--c-ink); line-height: 1.5; }
.contact-detail-value a:hover { color: var(--c-accent); }
.contact-socials { display: flex; gap: 8px; margin-top: 44px; }
.social-link { width: 42px; height: 42px; border: 1px solid var(--c-line); display: flex; align-items: center; justify-content: center; color: var(--c-mute); transition: all var(--tf); }
.social-link:hover { border-color: var(--c-accent); color: var(--c-accent); }

.contact-form-wrap { background: var(--c-paper); padding: 48px; border: 1px solid var(--c-line); }

/* ---------- FORM ---------- */
.form-group { margin-bottom: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-label { font-family: var(--f-mono); font-size: 9px; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; color: var(--c-accent); display: block; margin-bottom: 10px; }
.form-input, .form-select, .form-textarea {
  width: 100%; background: var(--c-bg); border: 1px solid var(--c-line);
  color: var(--c-ink); font-family: var(--f-sans); font-size: 0.95rem;
  padding: 14px 18px; outline: none;
  transition: all var(--tf); appearance: none;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--c-mute-2); }
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--c-accent); background: var(--c-white); }
.form-textarea { resize: vertical; min-height: 140px; line-height: 1.7; }
.btn-submit {
  width: 100%; padding: 18px;
  background: var(--c-ink); color: var(--c-bg);
  font-family: var(--f-mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.3em; text-transform: uppercase;
  border: none; cursor: pointer; transition: background var(--tf);
  display: flex; align-items: center; justify-content: center; gap: 14px;
}
.btn-submit:hover { background: var(--c-accent); }
.form-notice { font-size: 0.78rem; color: var(--c-mute-2); margin-top: 16px; text-align: center; letter-spacing: 0.05em; }
.form-success { padding: 20px; background: rgba(43,43,43,0.08); border-left: 3px solid var(--c-accent); color: var(--c-accent); font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; display: none; }
.form-error { padding: 16px; background: rgba(220,50,50,0.06); border-left: 3px solid #c0392b; color: #c0392b; font-size: 0.88rem; display: none; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-outline {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--f-mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase;
  padding: 16px 32px; border: 1px solid var(--c-ink); color: var(--c-ink);
  transition: all var(--tf);
  background: transparent;
}
.btn-outline:hover { background: var(--c-ink); color: var(--c-bg); gap: 20px; }

/* ============================================================
   PROJECT DETAIL MODAL
   ============================================================ */
.project-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(43,43,43,0.78);
  z-index: 2500;
  display: none;
  align-items: flex-start; justify-content: center;
  padding: 40px 20px;
  overflow-y: auto;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.project-modal-overlay.open { display: flex; }
.project-modal {
  background: var(--c-paper);
  max-width: 1080px;
  width: 100%;
  position: relative;
  border-radius: 0;
  overflow: hidden;
  animation: pmIn 0.55s var(--ease);
  margin: auto 0;
}
@keyframes pmIn {
  from { opacity: 0; transform: translateY(40px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.project-modal-close {
  position: absolute; top: 24px; right: 24px;
  width: 46px; height: 46px;
  background: rgba(255,255,255,0.95); color: var(--c-ink);
  border: none;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  z-index: 5;
  transition: all var(--tf);
}
.project-modal-close:hover { background: var(--c-accent); color: var(--c-bg); transform: rotate(90deg); }

.pm-hero {
  position: relative;
  aspect-ratio: 21/9;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--c-ink);
}
.pm-hero img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s var(--ease);
}
.pm-hero:hover img { transform: scale(1.04); }
.pm-hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(43,43,43,0.4) 100%);
  pointer-events: none;
}
.pm-hero-cat {
  position: absolute; top: 28px; left: 28px;
  font-family: var(--f-mono);
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--c-bg);
  background: rgba(43,43,43,0.92);
  padding: 8px 16px;
  z-index: 2;
}

.pm-body { padding: 56px 64px 64px; }
.pm-title {
  font-family: var(--f-display);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--c-ink);
  margin-bottom: 24px;
  max-width: 22ch;
}
.pm-desc {
  font-size: 1.02rem;
  color: var(--c-mute);
  line-height: 1.85;
  max-width: 720px;
  margin-bottom: 44px;
}
.pm-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0;
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  margin-bottom: 56px;
}
.pm-meta-item {
  padding: 24px 24px 24px 0;
  border-right: 1px solid var(--c-line);
}
.pm-meta-item:last-child { border-right: none; }
.pm-meta-label {
  font-family: var(--f-mono);
  font-size: 9px; font-weight: 600;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 8px;
}
.pm-meta-value {
  font-family: var(--f-display);
  font-size: 1.1rem;
  color: var(--c-ink);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.pm-gallery-label {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--c-line);
  padding-bottom: 14px;
}
.pm-gallery-label span {
  font-family: var(--f-mono);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--c-ink);
}
.pm-gallery-label em {
  font-family: var(--f-mono);
  font-size: 10px; font-style: normal;
  color: var(--c-mute);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.pm-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.pm-gal-item {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--c-ink);
}
.pm-gal-item img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(15%);
  transition: all 0.7s var(--ease);
}
.pm-gal-item:hover img { transform: scale(1.07); filter: grayscale(0); }
.pm-gal-zoom {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.6);
  width: 50px; height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  color: var(--c-ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  opacity: 0;
  transition: all 0.35s var(--ease);
  z-index: 2;
}
.pm-gal-item:hover .pm-gal-zoom { opacity: 1; transform: translate(-50%, -50%) scale(1); }

@media (max-width: 900px) {
  .project-modal-overlay { padding: 16px 12px; }
  .pm-body { padding: 36px 28px 44px; }
  .pm-meta { grid-template-columns: 1fr 1fr; }
  .pm-meta-item { border-right: none; border-bottom: 1px solid var(--c-line); padding: 18px 0; }
  .pm-meta-item:nth-child(odd) { border-right: 1px solid var(--c-line); padding-right: 18px; }
  .pm-meta-item:nth-child(even) { padding-left: 18px; }
  .pm-meta-item:last-child { border-bottom: none; }
  .pm-gallery { grid-template-columns: 1fr 1fr; }
  .pm-hero { aspect-ratio: 16/10; }
  .pm-hero-cat { top: 16px; left: 16px; font-size: 9px; padding: 6px 12px; }
  .project-modal-close { top: 14px; right: 14px; width: 40px; height: 40px; }
}
@media (max-width: 500px) {
  .pm-gallery { grid-template-columns: 1fr; }
  .pm-meta { grid-template-columns: 1fr; }
  .pm-meta-item, .pm-meta-item:nth-child(odd), .pm-meta-item:nth-child(even) { border-right: none; padding: 14px 0; }
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox-overlay { position: fixed; inset: 0; background: rgba(43,43,43,0.95); z-index: 3000; display: none; align-items: center; justify-content: center; backdrop-filter: blur(10px); }
.lightbox-overlay.open { display: flex; }
.lightbox-img { max-width: 90vw; max-height: 88vh; object-fit: contain; }
.lightbox-close { position: absolute; top: 28px; right: 28px; width: 48px; height: 48px; border: 1px solid rgba(255,255,255,0.25); display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--c-bg); transition: all var(--tf); }
.lightbox-close:hover { border-color: var(--c-accent); color: var(--c-accent); transform: rotate(90deg); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal-left.visible { opacity: 1; transform: none; }
.reveal-right { opacity: 0; transform: translateX(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal-right.visible { opacity: 1; transform: none; }

/* ============================================================
   BACK TO TOP
   ============================================================ */
#back-top { position: fixed; bottom: 32px; right: 32px; z-index: 500; width: 46px; height: 46px; background: var(--c-ink); display: flex; align-items: center; justify-content: center; color: var(--c-bg); cursor: pointer; opacity: 0; transform: translateY(20px); transition: all var(--tf); border-radius: 50%; }
#back-top.visible { opacity: 1; transform: translateY(0); }
#back-top:hover { background: var(--c-accent); }

/* ============================================================
   FOOTER
   ============================================================ */
footer { background: var(--c-ink); padding: 96px 0 36px; color: var(--c-bg); position: relative; }
footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--c-accent), transparent); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 64px; margin-bottom: 64px; }
.footer-logo { display: inline-flex; margin-bottom: 16px; color: var(--c-bg); }
.footer-tagline { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--c-accent-lt); margin-bottom: 22px; }
.footer-desc { font-size: 0.9rem; color: rgba(255,255,255,0.5); line-height: 1.85; max-width: 320px; }
.footer-col h5 { font-family: var(--f-mono); font-size: 10px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--c-bg); margin-bottom: 22px; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { font-size: 0.9rem; color: rgba(255,255,255,0.5); transition: all var(--tf); }
.footer-links a:hover { color: var(--c-accent-lt); padding-left: 6px; }
.footer-contact-item { display: flex; gap: 14px; margin-bottom: 16px; align-items: flex-start; }
.footer-contact-icon { color: var(--c-accent-lt); flex-shrink: 0; margin-top: 2px; }
.footer-contact-text { font-size: 0.88rem; color: rgba(255,255,255,0.5); line-height: 1.65; }
.footer-contact-text a:hover { color: var(--c-accent-lt); }
.footer-bottom { padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.08); display: flex; justify-content: space-between; align-items: center; }
.footer-copy { font-size: 0.82rem; color: rgba(255,255,255,0.35); }
.footer-copy a { color: var(--c-accent-lt); }
.footer-bottom-links { display: flex; gap: 28px; }
.footer-bottom-links a { font-size: 0.82rem; color: rgba(255,255,255,0.35); transition: color var(--tf); }
.footer-bottom-links a:hover { color: var(--c-accent-lt); }

/* ============================================================
   SUB-PAGE HERO (used by all non-landing pages)
   ============================================================ */
.page-hero {
  position: relative;
  padding: 200px var(--pad) 100px;
  overflow: hidden;
  background: var(--c-paper);
  border-bottom: 1px solid var(--c-line);
}
.page-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: grayscale(15%) contrast(1.05);
  opacity: 0.55;
  animation: heroKenBurns 20s linear forwards;
}
.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0.92) 100%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero-inner { max-width: 920px; }
.page-hero-inner.on-image { position: relative; }
.page-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--f-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.42em; text-transform: uppercase;
  color: var(--c-mute);
  margin-bottom: 28px;
}
.page-hero-bar {
  display: inline-block; width: 48px; height: 1px;
  background: var(--c-ink);
}
.page-hero-title {
  font-family: var(--f-display);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 300; line-height: 1; letter-spacing: -0.035em;
  color: var(--c-ink);
  margin-bottom: 28px;
}
.page-hero-title em { color: var(--c-mute); font-style: italic; }
.page-hero-desc {
  font-size: 1.1rem; line-height: 1.7;
  color: var(--c-mute); max-width: 600px;
  font-weight: 300;
}
@media (max-width: 700px) {
  .page-hero { padding: 140px var(--pad) 64px; }
}

/* ============================================================
   READ MORE â€” landing section CTAs
   ============================================================ */
.read-more-strip {
  display: flex; justify-content: center;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--c-line);
}
.read-more {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--f-mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.32em; text-transform: uppercase;
  padding: 16px 36px;
  background: var(--c-ink); color: var(--c-bg);
  border: 1px solid var(--c-ink);
  transition: all var(--tf);
}
.read-more:hover { background: transparent; color: var(--c-ink); gap: 22px; }
.read-more svg { width: 14px; height: 14px; }

/* ============================================================
   GENERIC PAGE SECTION (sub-pages)
   ============================================================ */
.page-section { padding: clamp(70px, 12vh, 130px) 0; }
.page-section.alt { background: var(--c-bg-2); }
.page-section.dark { background: var(--c-ink); color: var(--c-bg); }
.page-section.dark .section-title { color: var(--c-bg); }
.page-section.dark .section-subtitle { color: rgba(255,255,255,0.65); }
.page-section.dark .section-label { color: var(--c-accent-lt); }
.page-section.dark .section-label::before { background: var(--c-accent-lt); }

/* ============================================================
   POSTS / JOURNAL
   ============================================================ */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.post-card {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  display: flex; flex-direction: column;
  transition: all var(--t);
}
.post-card:hover { transform: translateY(-6px); border-color: var(--c-ink); box-shadow: 0 30px 60px -25px rgba(43,43,43,0.2); }
.post-card-image {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--c-bg-2);
}
.post-card-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s var(--ease);
}
.post-card:hover .post-card-image img { transform: scale(1.06); }
.post-card-body { padding: 28px 28px 32px; flex: 1; display: flex; flex-direction: column; }
.post-card-meta {
  display: flex; gap: 14px; align-items: center;
  font-family: var(--f-mono); font-size: 9px; font-weight: 600;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 16px;
}
.post-card-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--c-line-2); }
.post-card-title {
  font-family: var(--f-display); font-size: 1.45rem;
  font-weight: 400; line-height: 1.2;
  letter-spacing: -0.015em; color: var(--c-ink);
  margin-bottom: 14px;
}
.post-card-excerpt { font-size: 0.92rem; color: var(--c-mute); line-height: 1.7; flex: 1; margin-bottom: 22px; }
.post-card-link {
  font-family: var(--f-mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--c-ink);
  display: inline-flex; align-items: center; gap: 10px;
  padding-bottom: 6px; border-bottom: 1px solid var(--c-ink);
  width: fit-content;
}
.post-card-link:hover { gap: 16px; }

/* Single Post */
.post-single {
  max-width: 780px; margin: 0 auto;
  padding: 80px var(--pad);
}
.post-single-meta {
  display: flex; gap: 14px; align-items: center;
  font-family: var(--f-mono); font-size: 10px;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--c-mute);
  margin-bottom: 28px;
}
.post-single-meta .cat { color: var(--c-ink); font-weight: 600; }
.post-single h1 {
  font-family: var(--f-display);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 300; line-height: 1.05; letter-spacing: -0.03em;
  color: var(--c-ink);
  margin-bottom: 32px;
}
.post-single-cover {
  width: 100%; aspect-ratio: 16/9; object-fit: cover;
  margin-bottom: 56px;
}
.post-content { font-size: 1.05rem; line-height: 1.85; color: var(--c-ink-2); }
.post-content > * { margin-bottom: 24px; }
.post-content h2 { font-family: var(--f-display); font-size: 2.2rem; font-weight: 400; margin: 56px 0 20px; letter-spacing: -0.02em; }
.post-content h3 { font-family: var(--f-display); font-size: 1.6rem; font-weight: 400; margin: 40px 0 14px; }
.post-content p { color: var(--c-mute); }
.post-content blockquote {
  border-left: 3px solid var(--c-ink);
  padding: 8px 0 8px 28px;
  margin: 36px 0;
  font-family: var(--f-display); font-size: 1.5rem;
  font-style: italic; color: var(--c-ink); line-height: 1.4;
}
.post-content ul, .post-content ol { padding-left: 24px; color: var(--c-mute); }
.post-content li { margin-bottom: 8px; }
.post-content img { width: 100%; height: auto; margin: 32px 0; }
.post-content a { color: var(--c-ink); text-decoration: underline; text-decoration-color: var(--c-line-2); text-underline-offset: 4px; }
.post-content a:hover { text-decoration-color: var(--c-ink); }

/* ============================================================
   SERVICES PAGE â€” alternating rows
   ============================================================ */
.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 120px;
}
.service-row:last-child { margin-bottom: 0; }
.service-row:nth-child(even) .service-row-img { order: 1; }
.service-row:nth-child(even) .service-row-text { order: 2; }
.service-row-img { aspect-ratio: 4/5; overflow: hidden; }
.service-row-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.service-row:hover .service-row-img img { transform: scale(1.04); }
.service-row-num {
  font-family: var(--f-display);
  font-size: 5rem; font-weight: 300;
  color: var(--c-mute-2); line-height: 1;
  margin-bottom: 24px;
  letter-spacing: -0.04em;
}
.service-row-title {
  font-family: var(--f-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300; line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--c-ink);
  margin-bottom: 24px;
}
.service-row-desc { font-size: 1.02rem; line-height: 1.85; color: var(--c-mute); margin-bottom: 28px; }
.service-row-features { display: flex; flex-direction: column; gap: 10px; }
.service-row-feature {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--c-line);
  font-size: 0.92rem; color: var(--c-ink);
}
.service-row-feature::before {
  content: '';
  width: 18px; height: 1px; background: var(--c-ink);
  margin-top: 12px; flex-shrink: 0;
}
@media (max-width: 900px) {
  .service-row { grid-template-columns: 1fr; gap: 32px; margin-bottom: 64px; }
  .service-row:nth-child(even) .service-row-img,
  .service-row:nth-child(even) .service-row-text { order: initial; }
}

/* ============================================================
   CONTACT PAGE â€” info grid
   ============================================================ */
.contact-page-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 4px; background: var(--c-line);
  margin-bottom: 80px;
}
.contact-page-card {
  background: var(--c-paper);
  padding: 44px 36px;
  text-align: center;
  transition: background var(--tf);
}
.contact-page-card:hover { background: var(--c-bg); }
.contact-page-icon {
  width: 56px; height: 56px;
  margin: 0 auto 22px;
  border: 1px solid var(--c-line);
  display: flex; align-items: center; justify-content: center;
  color: var(--c-ink); font-size: 1.4rem;
}
.contact-page-label {
  font-family: var(--f-mono); font-size: 9px; font-weight: 600;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--c-mute); margin-bottom: 10px;
}
.contact-page-value {
  font-family: var(--f-display); font-size: 1.15rem;
  color: var(--c-ink); line-height: 1.4;
}
.contact-page-value a:hover { color: var(--c-mute); }
@media (max-width: 800px) { .contact-page-grid { grid-template-columns: 1fr; } }

/* ============================================================
   PORTFOLIO PAGE â€” full grid
   ============================================================ */
.portfolio-page-filter {
  display: flex; gap: 4px; flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 56px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
  .posts-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .about-grid { gap: 70px; }
  .certs-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-grid, .process-grid, .careers-grid, .contact-grid { gap: 64px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(1), .stat-item:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,0.08); }
}
@media (max-width: 900px) {
  :root { --pad: 24px; }
  .about-grid, .tech-grid, .process-grid, .careers-grid, .contact-grid { grid-template-columns: 1fr; gap: 60px; }
  .about-image-accent { display: none; }
  .about-text { padding-left: 0; }
  .services-grid { grid-template-columns: 1fr; }
  .services-header { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr 1fr; }
  .portfolio-header { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 44px; }
  .hero-content { padding-bottom: 14vh; }
  .hero-controls { display: none; }
  .founders-grid { grid-template-columns: 1fr; gap: 32px; }
  .tech-image-wrap { order: -1; max-width: 480px; }
  .tech-badge { top: 16px; left: 16px; padding: 14px 18px; min-width: 110px; }
  .tech-badge strong { font-size: 1.7rem; }
  .tech-badge span { font-size: 8px; }
  /* MEGA MENU MOBILE â€” Brand bar TOP, then 3Ã—2 nav grid filling viewport */
  .mega-overlay {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto 1fr 1fr;
    height: 100vh;
    height: 100dvh;        /* dynamic viewport for iOS/Android */
    overflow: hidden;       /* fits screen â€” no scroll */
    align-content: stretch;
    padding-top: 0;
  }
  .mega-preview-col { display: none; }

  /* Brand bar at the TOP, full width */
  .mega-brand-col {
    grid-column: 1 / -1;
    grid-row: 1;
    padding: 14px 20px;
    flex-direction: row; align-items: center; justify-content: space-between;
    flex-wrap: nowrap; gap: 16px;
    min-height: 68px;
    background: var(--c-ink);
  }
  .mega-brand-col::before { display: none; }
  .mega-brand-logo { margin-top: 0; flex-shrink: 0; }
  .mega-brand-logo .brand-logo--stack { flex-direction: row; align-items: center; gap: 10px; text-align: left; }
  .mega-brand-logo .brand-logo--stack .brand-mark { width: 32px; height: 32px; }
  .mega-brand-logo .brand-logo--stack .brand-name { font-size: 0.95rem; }
  .mega-brand-logo .brand-logo--stack .brand-sub { font-size: 7.5px; letter-spacing: 0.28em; margin-top: 2px; }
  .mega-brand-tag, .mega-brand-divider { display: none; }
  .mega-social-list {
    flex-direction: row; gap: 14px; flex-wrap: nowrap;
    margin-right: 50px;     /* leave room for close button */
  }
  .mega-social-link { font-size: 0; padding: 0; }
  .mega-social-link i { font-size: 1.15rem; color: var(--c-accent-lt); }
  .mega-close-btn { position: absolute; top: 12px; right: 12px; width: 42px; height: 42px; }

  /* Nav cells fill the remaining 2 rows Ã— 3 cols */
  .mega-col {
    padding: 20px 12px;
    border-right: 1px solid var(--c-line);
    border-bottom: 1px solid var(--c-line);
    align-items: flex-start;
    min-height: 0;
    overflow: hidden;
  }
  .mega-col:nth-child(3n+1) { border-left: none; }
  .mega-nav-label {
    font-size: 7.5px; letter-spacing: 0.28em;
    margin-bottom: 12px;
  }
  .mega-nav-label::before { width: 8px; }
  .mega-nav-link {
    font-size: 1.05rem !important;
    padding: 2px 0;
    line-height: 1.1;
  }
  .mega-nav-link::after { display: none; }
  .mega-nav-sub { margin-top: 10px; gap: 5px; }
  .mega-nav-sub a { font-size: 0.7rem; }
  .mega-col:hover .mega-nav-sub { padding-left: 0; border-left-color: transparent; }
  .job-modal { padding: 40px 28px; }
  .contact-form-wrap { padding: 32px 24px; }
}
@media (max-width: 700px) {
  .posts-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  /* Mega menu â€” tighten further on small screens */
  .mega-col { padding: 16px 8px; }
  .mega-nav-label { font-size: 6.5px; letter-spacing: 0.2em; margin-bottom: 8px; }
  .mega-nav-link { font-size: 0.92rem !important; padding: 2px 0; }
  .mega-nav-sub a { font-size: 0.66rem; }
  .mega-nav-sub { margin-top: 6px; gap: 3px; }
  .mega-brand-col { padding: 12px 14px; min-height: 60px; }
  .mega-brand-logo .brand-logo--stack .brand-mark { width: 28px; height: 28px; }
  .mega-brand-logo .brand-logo--stack .brand-name { font-size: 0.88rem; }
  .mega-social-list { gap: 10px; margin-right: 46px; }
  .mega-social-link i { font-size: 1.05rem; }
  .mega-close-btn { width: 38px; height: 38px; top: 10px; right: 10px; }

  .portfolio-grid { grid-template-columns: 1fr; }
  .certs-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .stat-item:last-child { border-bottom: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 14px; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .founder-info { padding: 32px 28px 36px; }
  .founder-name { font-size: 1.7rem; }
  .ticker-item { font-size: 1.2rem; gap: 40px; }
  .ticker-track { gap: 40px; }
  .hero-title { font-size: clamp(2.8rem, 12vw, 4rem); }
  .nav-menu-btn { padding: 10px 14px; font-size: 10px; }
  .nav-logo { font-size: 1.2rem; }
}

/* Root-domain deployment hardening */
html,
body {
  margin: 0 !important;
  padding: 0 !important;
}

#navbar {
  top: 0 !important;
}

#hero,
.hero-cinematic {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body > br:first-child,
body > p:empty:first-child {
  display: none !important;
}
/* Safe mobile fit for cinematic landing: preserve effects, prevent horizontal pan */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

@supports (overflow: clip) {
  html,
  body { overflow-x: clip; }
}

@media (max-width: 900px) {
  :root { --pad: 22px; }

  body {
    touch-action: pan-y;
    overscroll-behavior-x: none;
  }

  .ambient-shapes,
  .section-rail,
  .hero-scroll-hint {
    display: none !important;
  }

  #navbar,
  #hero,
  .hero-cinematic,
  .hero-stage,
  .hero-slide,
  .hero-bg,
  .hero-canvas,
  .hero-content,
  .hero-text-slide,
  .hero-dock,
  .ticker-wrap,
  .arch-marquee,
  .mega-overlay,
  section,
  footer {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  #hero,
  .hero-cinematic {
    height: 100svh !important;
    min-height: 640px !important;
  }

  .hero-canvas {
    padding: 92px var(--pad) 150px !important;
    align-items: center !important;
  }

  .hero-title {
    font-size: clamp(2.1rem, 10vw, 3.35rem) !important;
    line-height: 0.98 !important;
    margin-bottom: 20px !important;
    max-width: 100% !important;
  }

  .hero-word {
    white-space: normal !important;
  }

  .hero-desc {
    font-size: 0.94rem !important;
    line-height: 1.55 !important;
    max-width: min(100%, 370px) !important;
    margin-bottom: 24px !important;
  }

  .hero-actions {
    gap: 12px !important;
    max-width: 100% !important;
  }

  .btn-hero {
    padding: 14px 22px !important;
    font-size: 9px !important;
    letter-spacing: 0.28em !important;
  }

  .btn-hero-ghost {
    font-size: 9px !important;
    letter-spacing: 0.22em !important;
  }

  .hero-dock {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    padding: 0 var(--pad) 22px !important;
  }

  .hero-info-card {
    max-width: 100% !important;
    padding: 12px 14px !important;
    gap: 12px !important;
  }

  .hero-info-num { font-size: 12px !important; }
  .hero-info-title { font-size: 0.78rem !important; line-height: 1.2 !important; }
  .hero-info-label { font-size: 7px !important; }

  .hero-progress-wrap {
    justify-content: flex-start !important;
    gap: 10px !important;
  }

  .hero-prog-bar { width: 34px !important; }

  .service-card::before {
    display: none !important;
  }

  .about-image-accent,
  .about-badge {
    display: none !important;
  }
}

@media (max-width: 420px) {
  #hero,
  .hero-cinematic { min-height: 620px !important; }
  .hero-canvas { padding: 84px var(--pad) 138px !important; }
  .hero-title { font-size: clamp(1.95rem, 10vw, 2.85rem) !important; margin-bottom: 16px !important; }
  .hero-desc { font-size: 0.88rem !important; line-height: 1.48 !important; margin-bottom: 18px !important; }
  .btn-hero { padding: 12px 18px !important; }
}