/* ==================================================================
   LeanFab Laser Engineering — Main Stylesheet
   Base styles, grouped by section. Media queries live in
   responsive.css so this file stays breakpoint-free.
   ================================================================== */

/* ============================================
   ROOT VARIABLES — LeanFab Brand System
   Derived from logo: deep teal + orange accent
   ============================================ */
:root {
  /* Brand colors */
  --teal-50: #e6f7f5;
  --teal-200: #99ddd3;
  --teal-400: #2cb3a0;
  --teal-500: #0d9488;
  --teal-600: #0f766e;
  --teal-700: #0c5e57;
  --teal-900: #073a35;

  --orange-300: #fdba8c;
  --orange-400: #fb923c;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --orange-700: #c2410c;

  /* Neutrals — deep navy base, not pure black */
  --navy-950: #050a0e;
  --navy-900: #070f15;
  --navy-850: #0a141b;
  --navy-800: #0f1a22;
  --navy-700: #16242e;
  --navy-600: #1f3340;
  --navy-border: rgba(255,255,255,0.08);
  --navy-border-strong: rgba(255,255,255,0.14);

  --text-primary: #f3f6f5;
  --text-secondary: #a8b4b8;
  --text-tertiary: #6b7a80;

  /* Type */
  --font-display: 'Sora', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing rhythm */
  --section-pad: clamp(4rem, 8vw, 7rem);
  --container-w: 1240px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--navy-950);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; }

::selection { background: var(--teal-500); color: white; }

/* Visible keyboard focus - accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--orange-400);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 1rem;
  background: var(--orange-500);
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  z-index: 9999;
  transition: top 0.2s var(--ease-out);
}

.skip-link:focus { top: 1rem; }

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

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ============================================
   SCROLL REVEAL SYSTEM
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }

.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.03s; }

.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.09s; }

.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.15s; }

.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.21s; }

.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.27s; }

.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.33s; }

.reveal-stagger.is-visible > *:nth-child(7) { transition-delay: 0.39s; }

.reveal-stagger.is-visible > *:nth-child(8) { transition-delay: 0.45s; }

/* ============================================
   SECTION HEADER PATTERN
   ============================================ */
.section { padding: var(--section-pad) 0; position: relative; }

.section-alt { background: var(--navy-900); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-400);
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: '';
  width: 24px;
  height: 1.5px;
  background: var(--orange-500);
}

.section-head { max-width: 680px; margin-bottom: 3rem; }

.section-head.center { max-width: 620px; margin-left: auto; margin-right: auto; text-align: center; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-title em {
  font-style: normal;
  background: linear-gradient(100deg, var(--orange-400), var(--orange-600));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-sub {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 8px;
  border: none;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s var(--ease-out), background 0.25s var(--ease-out), border-color .25s var(--ease-out);
  white-space: nowrap;
}

a.btn { text-decoration: none; }

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
  color: white;
  box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset, 0 8px 20px -8px rgba(249,115,22,0.5);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset, 0 14px 28px -10px rgba(249,115,22,0.65);
}

.btn-ghost {
  background: rgba(255,255,255,0.03);
  color: var(--text-primary);
  border: 1px solid var(--navy-border-strong);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.25);
  transform: translateY(-2px);
}

.btn-teal {
  background: linear-gradient(135deg, var(--teal-500), var(--teal-700));
  color: white;
  box-shadow: 0 1px 0 rgba(255,255,255,0.12) inset, 0 8px 20px -8px rgba(13,148,136,0.5);
}

.btn-teal:hover { transform: translateY(-2px); }

.btn-block { width: 100%; }

.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none !important; }

.btn-icon {
  width: 18px; height: 18px;
  transition: transform 0.25s var(--ease-out);
}

.btn:hover .btn-icon { transform: translateX(3px); }

/* ============================================
   BADGES / TAGS
   ============================================ */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 5px;
  letter-spacing: 0.02em;
}

.tag-teal { background: rgba(13,148,136,0.12); color: var(--teal-400); border: 1px solid rgba(13,148,136,0.25); }

.tag-orange { background: rgba(249,115,22,0.1); color: var(--orange-400); border: 1px solid rgba(249,115,22,0.25); }

/* Card base */
.card {
  background: var(--navy-800);
  border: 1px solid var(--navy-border);
  border-radius: 14px;
  transition: border-color 0.3s var(--ease-out), transform 0.3s var(--ease-out), background 0.3s var(--ease-out);
}

/* Divider */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--navy-border-strong) 20%, var(--navy-border-strong) 80%, transparent);
}

/* Loading spinner */
.spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Visually hidden but accessible live region */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(5,10,14,0.7);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--navy-border);
  transition: background 0.3s var(--ease-out), border-color 0.3s var(--ease-out), padding 0.3s var(--ease-out);
}

.nav.scrolled {
  background: rgba(5,10,14,0.92);
  border-bottom-color: var(--navy-border-strong);
}

.nav-inner {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 2rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: height 0.3s var(--ease-out);
}

.nav.scrolled .nav-inner { height: 62px; }

.brand { display: flex; align-items: center; gap: 11px; }

.brand-mark {
  width: 38px; height: 38px;
  border-radius: 9px;
  background: linear-gradient(145deg, var(--teal-500), var(--teal-700));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 4px 14px -4px rgba(13,148,136,0.6);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }

.brand-text .name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15.5px;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.brand-text .name span { color: var(--orange-400); }

.brand-text .sub {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  text-transform: uppercase;
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.1rem;
  list-style: none;
}

.nav-links a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1.5px;
  background: var(--orange-500);
  transition: width 0.25s var(--ease-out);
}

.nav-links a:hover { color: var(--text-primary); }

.nav-links a:hover::after { width: 100%; }

.nav-right { display: flex; align-items: center; gap: 14px; }

.nav-cert {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600;
  color: var(--teal-400);
  border: 1px solid rgba(13,148,136,0.3);
  background: rgba(13,148,136,0.08);
  padding: 5px 10px;
  border-radius: 6px;
  letter-spacing: 0.03em;
}

.nav-cert svg { width: 13px; height: 13px; }

.nav-cta { font-size: 13px; padding: 10px 20px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
}

.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }

.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }

.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-panel {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: var(--navy-950);
  z-index: 9999;
  padding: 6rem 2rem 2rem;
  overflow-y: auto;
}

.mobile-panel.open { display: block; animation: fadeIn 0.25s var(--ease-out); }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.mobile-panel ul { list-style: none; display: flex; flex-direction: column; gap: 0; }

.mobile-panel li { border-bottom: 1px solid var(--navy-border); }

.mobile-panel a {
  display: block;
  padding: 1.1rem 0.25rem;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.mobile-panel .btn { margin-top: 1.5rem; }

.mobile-cert { margin-top: 1.25rem; }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 3rem 0 4rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse 55% 60% at 78% 18%, rgba(13,148,136,0.16) 0%, transparent 60%),
    radial-gradient(ellipse 45% 50% at 8% 85%, rgba(249,115,22,0.08) 0%, transparent 60%),
    var(--navy-950);
}

.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 60% 30%, black 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 70% at 60% 30%, black 20%, transparent 75%);
}

#sparkCanvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0.85;
  pointer-events: none;
}

.hero-inner {
  position: relative; z-index: 3;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(13,148,136,0.1);
  border: 1px solid rgba(13,148,136,0.3);
  color: var(--teal-200);
  padding: 6px 14px 6px 10px;
  border-radius: 30px;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 1.75rem;
}

.live-dot {
  width: 7px; height: 7px;
  background: var(--orange-500);
  border-radius: 50%;
  animation: dotPulse 2s infinite;
  flex-shrink: 0;
}

@keyframes dotPulse {
  0%,100% { opacity: 1; box-shadow: 0 0 0 0 rgba(249,115,22,0.5); }
  50% { opacity: 0.6; box-shadow: 0 0 0 5px rgba(249,115,22,0); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.6vw, 56px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.hero h1 .accent {
  background: linear-gradient(100deg, var(--orange-400) 10%, var(--orange-600) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lede {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 540px;
  margin-bottom: 2.25rem;
}

.hero-lede strong { color: var(--text-primary); font-weight: 600; }

.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 2.5rem; }

.hero-trustline {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--text-tertiary);
}

.hero-trustline .item { display: flex; align-items: center; gap: 6px; }

.hero-trustline svg { width: 15px; height: 15px; color: var(--teal-400); flex-shrink: 0; }

/* Hero visual panel: machine readout card */
.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.readout-card {
  background: rgba(15,26,34,0.7);
  backdrop-filter: blur(10px);
  border: 1px solid var(--navy-border-strong);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.6);
}

.readout-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1.1rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--navy-border);
}

.readout-head .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.readout-head .status {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; color: var(--teal-400);
}

.readout-head .status .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal-400); animation: dotPulse 2s infinite; }

.readout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.readout-stat .num {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.readout-stat .num .unit { font-size: 13px; color: var(--orange-400); font-weight: 600; }

.readout-stat .lbl { font-size: 11.5px; color: var(--text-tertiary); margin-top: 2px; }

.material-bars { margin-top: 1.3rem; padding-top: 1.2rem; border-top: 1px solid var(--navy-border); }

.material-bars .mb-title { font-size: 11px; color: var(--text-tertiary); margin-bottom: 10px; font-family: var(--font-mono); letter-spacing: 0.05em; }

.mbar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }

.mbar-row:last-child { margin-bottom: 0; }

.mbar-row .mname { font-size: 12px; color: var(--text-secondary); width: 92px; flex-shrink: 0; }

.mbar-track { flex: 1; height: 6px; background: rgba(255,255,255,0.06); border-radius: 4px; overflow: hidden; }

.mbar-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--teal-500), var(--teal-400)); transform-origin: left; transform: scaleX(0); transition: transform 1.1s var(--ease-out); }

.mbar-row .mval { font-size: 11.5px; color: var(--text-tertiary); width: 48px; text-align: right; font-family: var(--font-mono); flex-shrink: 0; }

.hero-mini-row { display: flex; gap: 14px; }

.mini-card {
  flex: 1;
  background: var(--navy-800);
  border: 1px solid var(--navy-border);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  text-align: center;
}

.mini-card .mc-num { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--orange-400); }

.mini-card .mc-lbl { font-size: 10.5px; color: var(--text-tertiary); margin-top: 2px; }

/* ============================================
   STATS BAR
   ============================================ */
.statbar {
  background: var(--navy-900);
  border-top: 1px solid var(--navy-border);
  border-bottom: 1px solid var(--navy-border);
  padding: 2.25rem 0;
}

.statbar-grid {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.statbar-item { text-align: center; }

.statbar-item .sb-num {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.statbar-item .sb-num .accent-num { color: var(--orange-400); }

.statbar-item .sb-lbl {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 6px;
  font-weight: 500;
}

/* ============================================
   ABOUT
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem 3rem;
  align-items: start;
}

.about-grid > .about-photo {
  grid-column: 1 / -1;
  margin: 0 0 0.5rem;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--navy-border);
  background: var(--navy-900);
  max-height: min(380px, 50vw);
}

.about-grid > .about-photo img {
  display: block;
  width: 100%;
  height: min(380px, 50vw);
  max-height: 380px;
  object-fit: cover;
}

.about-copy p {
  font-size: 15.5px;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 1.1rem;
}

.about-copy p strong { color: var(--text-primary); font-weight: 600; }

.about-pillars {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}

.pillar {
  padding: 1.25rem;
  background: var(--navy-800);
  border: 1px solid var(--navy-border);
  border-radius: 12px;
  transition: border-color 0.3s, transform 0.3s var(--ease-out);
}

.pillar:hover { border-color: rgba(13,148,136,0.35); transform: translateY(-3px); }

.pillar-icon {
  width: 38px; height: 38px;
  border-radius: 9px;
  background: rgba(13,148,136,0.12);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.85rem;
  color: var(--teal-400);
}

.pillar-icon svg { width: 19px; height: 19px; }

.pillar h3 { font-size: 14.5px; font-weight: 700; color: var(--text-primary); margin-bottom: 0.4rem; }

.pillar p { font-size: 12.5px; color: var(--text-tertiary); line-height: 1.6; }

/* Capacity gauge card */
.capacity-card {
  background: var(--navy-800);
  border: 1px solid var(--navy-border);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.capacity-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.capacity-card .cc-sub { font-size: 13px; color: var(--text-tertiary); margin-bottom: 1.75rem; }

.gauge-wrap { display: flex; align-items: center; gap: 1.75rem; margin-bottom: 1rem; }

.gauge-ring { position: relative; width: 130px; height: 130px; flex-shrink: 0; }

.gauge-ring svg { transform: rotate(-90deg); }

.gauge-ring .gauge-bg { fill: none; stroke: var(--navy-700); stroke-width: 10; }

.gauge-ring .gauge-fg {
  fill: none; stroke: url(#gaugeGrad); stroke-width: 10; stroke-linecap: round;
  stroke-dasharray: 345;
  stroke-dashoffset: 345;
  transition: stroke-dashoffset 1.4s var(--ease-out);
}

.gauge-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}

.gauge-center .gc-num { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--text-primary); }

.gauge-center .gc-lbl { font-size: 10px; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.05em; }

.cap-legend { flex: 1; display: flex; flex-direction: column; gap: 0.9rem; }

.cap-legend-row { display: flex; align-items: center; gap: 10px; }

.cap-dot { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }

.cap-legend-row .cl-label { font-size: 13px; color: var(--text-secondary); flex: 1; }

.cap-legend-row .cl-val { font-size: 13px; font-weight: 700; color: var(--text-primary); font-family: var(--font-mono); }

.capacity-note {
  padding-top: 1rem;
  border-top: 1px solid var(--navy-border);
  font-size: 12.5px;
  color: var(--text-tertiary);
  line-height: 1.6;
}

.capacity-note strong { color: var(--teal-400); }

/* ============================================
   SERVICES
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.service-card {
  padding: 1.85rem;
  position: relative;
  overflow: hidden;
}

.service-card-media {
  margin: -1.85rem -1.85rem 1.15rem;
  border-radius: 14px 14px 0 0;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--navy-900);
}

.service-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-card:hover {
  border-color: rgba(249,115,22,0.3);
  transform: translateY(-5px);
}

.service-card .sc-glow {
  position: absolute; top: -40px; right: -40px;
  width: 130px; height: 130px;
  background: radial-gradient(circle, rgba(13,148,136,0.18), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.service-icon {
  width: 46px; height: 46px;
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(13,148,136,0.18), rgba(13,148,136,0.06));
  border: 1px solid rgba(13,148,136,0.25);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--teal-400);
}

.service-icon svg { width: 23px; height: 23px; }

.service-card h3 { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--text-primary); margin-bottom: 0.6rem; }

.service-card p { font-size: 13.5px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 1.25rem; }

.service-specs { display: flex; flex-direction: column; gap: 8px; padding-top: 1.1rem; border-top: 1px solid var(--navy-border); }

.spec-row { display: flex; justify-content: space-between; font-size: 12.5px; }

.spec-row .sk { color: var(--text-tertiary); }

.spec-row .sv { color: var(--text-primary); font-weight: 600; font-family: var(--font-mono); }

/* ============================================
   FACILITIES
   ============================================ */
.fac-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-bottom: 1.25rem; }

.fac-table-card { padding: 1.75rem; }

.fac-table-card h3 {
  font-family: var(--font-display);
  font-size: 15.5px; font-weight: 700;
  display: flex; align-items: center; gap: 9px;
  margin-bottom: 1.2rem;
  color: var(--text-primary);
}

.fac-table-card h3 svg { width: 18px; height: 18px; color: var(--teal-400); }

.fac-table { width: 100%; border-collapse: collapse; }

.fac-table tr { border-bottom: 1px solid var(--navy-border); }

.fac-table tr:last-child { border-bottom: none; }

.fac-table td { padding: 11px 0; font-size: 13px; }

.fac-table td:first-child { color: var(--text-secondary); }

.fac-table td:last-child { color: var(--text-primary); font-weight: 600; text-align: right; font-family: var(--font-mono); font-size: 12.5px; }

.fac-table .new-badge { display: inline-block; margin-left: 6px; font-size: 9.5px; background: rgba(249,115,22,0.15); color: var(--orange-400); padding: 1px 6px; border-radius: 4px; font-weight: 700; letter-spacing: 0.04em; vertical-align: middle; }

.fac-highlight-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }

.highlight-card {
  padding: 1.75rem;
  background: linear-gradient(160deg, rgba(13,148,136,0.08), var(--navy-800) 60%);
  overflow: hidden;
}

.highlight-card-media {
  margin: -1.75rem -1.75rem 1.1rem;
  aspect-ratio: 16 / 9;
  background: var(--navy-900);
  overflow: hidden;
}

.highlight-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.highlight-card .hc-tag { margin-bottom: 0.9rem; }

.highlight-card h4 { font-family: var(--font-display); font-size: 16px; font-weight: 700; margin-bottom: 0.6rem; }

.highlight-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 1rem; }

.feature-list { display: flex; flex-direction: column; gap: 8px; }

.feature-list li { list-style: none; display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; color: var(--text-secondary); }

.feature-list svg { width: 14px; height: 14px; color: var(--teal-400); flex-shrink: 0; margin-top: 2px; }

/* ============================================
   INDUSTRIES
   ============================================ */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.industry-card {
  padding: 1.5rem 1.25rem;
  text-align: left;
}

.industry-card:hover {
  border-color: rgba(13,148,136,0.35);
  transform: translateY(-4px);
  background: rgba(13,148,136,0.04);
}

.industry-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--navy-border-strong);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
  color: var(--orange-400);
}

.industry-icon svg { width: 20px; height: 20px; }

.industry-card h3 { font-size: 14px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }

.industry-card p { font-size: 12px; color: var(--text-tertiary); line-height: 1.5; }

/* ============================================
   CUSTOMERS (NEW SECTION)
   ============================================ */
.cust-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.cust-stat {
  padding: 1.4rem;
  text-align: center;
}

.cust-stat .cs-num { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--orange-400); }

.cust-stat .cs-lbl { font-size: 12px; color: var(--text-tertiary); margin-top: 4px; }

.cust-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }

.cust-group { padding: 1.6rem; }

.cust-group-head { display: flex; align-items: center; gap: 10px; margin-bottom: 1.1rem; }

.cust-group-icon {
  width: 34px; height: 34px; border-radius: 8px;
  background: rgba(13,148,136,0.12); color: var(--teal-400);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

.cust-group-icon svg { width: 17px; height: 17px; }

.cust-group-head h3 { font-size: 14.5px; font-weight: 700; color: var(--text-primary); }

.cust-group-head span { font-size: 11.5px; color: var(--text-tertiary); }

.cust-logo-list { display: flex; flex-direction: column; gap: 0; }

.cust-logo-list .clrow {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--navy-border);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.2s, padding-left 0.25s var(--ease-out);
}

.cust-logo-list .clrow:last-child { border-bottom: none; }

.cust-logo-list .clrow:hover { color: var(--text-primary); padding-left: 6px; }

.cust-logo-list .clrow .cl-mark {
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--orange-500);
  flex-shrink: 0;
}

.cust-banner {
  margin-top: 1.25rem;
  padding: 1.5rem 1.75rem;
  border-radius: 14px;
  background: linear-gradient(120deg, rgba(13,148,136,0.1), rgba(249,115,22,0.06));
  border: 1px solid var(--navy-border-strong);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cust-banner p { font-size: 13.5px; color: var(--text-secondary); max-width: 480px; line-height: 1.6; }

.cust-banner p strong { color: var(--text-primary); }

/* ============================================
   JOURNEY TIMELINE
   ============================================ */
.timeline { position: relative; padding-top: 1rem; }

.timeline-track {
  position: absolute;
  top: 0; bottom: 0; left: 19px;
  width: 2px;
  background: var(--navy-border-strong);
}

.timeline-track-fill {
  position: absolute;
  top: 0; left: 19px;
  width: 2px;
  background: linear-gradient(180deg, var(--orange-500), var(--teal-500));
  height: 0%;
  transition: height 1.2s var(--ease-out);
}

.tl-item {
  position: relative;
  padding-left: 56px;
  padding-bottom: 2.25rem;
}

.tl-item:last-child { padding-bottom: 0; }

.tl-dot {
  position: absolute;
  left: 11px; top: 2px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--navy-900);
  border: 2px solid var(--teal-500);
  z-index: 2;
}

.tl-item.is-latest .tl-dot { border-color: var(--orange-500); box-shadow: 0 0 0 4px rgba(249,115,22,0.15); }

.tl-year {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--orange-400);
  margin-bottom: 4px;
}

.tl-card {
  padding: 1.1rem 1.3rem;
  display: inline-block;
}

.tl-card h4 { font-size: 14.5px; font-weight: 700; color: var(--text-primary); margin-bottom: 3px; }

.tl-card p { font-size: 12.5px; color: var(--text-tertiary); }

/* ============================================
   DIRECTOR'S MESSAGE (NEW SECTION)
   ============================================ */
.director-card {
  position: relative;
  border-radius: 22px;
  background: linear-gradient(155deg, var(--navy-800), var(--navy-900));
  border: 1px solid var(--navy-border-strong);
  padding: 3rem;
  overflow: hidden;
}

.director-card::before {
  content: '';
  position: absolute; top: -100px; right: -100px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(13,148,136,0.14), transparent 70%);
  pointer-events: none;
}

.director-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2.75rem;
  align-items: start;
  position: relative;
  z-index: 1;
}

.director-portrait {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 18px;
  background: linear-gradient(150deg, var(--teal-600), var(--teal-900));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 800;
  color: rgba(255,255,255,0.92);
  border: 1px solid var(--navy-border-strong);
  box-shadow: 0 20px 50px -16px rgba(0,0,0,0.5);
}

.director-quote-mark {
  font-family: var(--font-display);
  font-size: 64px;
  line-height: 1;
  color: var(--orange-500);
  opacity: 0.5;
  margin-bottom: -0.5rem;
}

.director-message p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 1.1rem;
}

.director-message p:first-of-type {
  font-size: 18px;
  color: var(--text-primary);
  font-weight: 500;
  font-family: var(--font-display);
  line-height: 1.6;
}

.director-sig {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--navy-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.director-sig-name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--text-primary);
}

.director-sig-title { font-size: 12.5px; color: var(--teal-400); font-weight: 600; margin-top: 2px; }

.director-sig-script {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--text-tertiary);
  opacity: 0.7;
  transform: rotate(-3deg);
}

/* ============================================
   WHY CHOOSE US
   ============================================ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.why-item {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  align-items: flex-start;
}

.why-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: rgba(249,115,22,0.1);
  border: 1px solid rgba(249,115,22,0.25);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--orange-400);
}

.why-icon svg { width: 21px; height: 21px; }

.why-item h3 { font-size: 14.5px; font-weight: 700; color: var(--text-primary); margin-bottom: 5px; }

.why-item p { font-size: 12.5px; color: var(--text-tertiary); line-height: 1.65; }

/* ============================================
   PROCESS
   ============================================ */
.process-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
}

.process-row::before {
  content: '';
  position: absolute;
  top: 23px; left: 10%; right: 10%;
  height: 1.5px;
  background: repeating-linear-gradient(90deg, var(--navy-border-strong) 0 8px, transparent 8px 14px);
  z-index: 0;
}

.proc-step { text-align: center; padding: 0 0.75rem; position: relative; z-index: 1; }

.proc-num {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--navy-900);
  border: 1.5px solid var(--orange-500);
  color: var(--orange-400);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  margin: 0 auto 1rem;
}

.proc-step h4 { font-size: 13.5px; font-weight: 700; color: var(--text-primary); margin-bottom: 5px; }

.proc-step p { font-size: 11.5px; color: var(--text-tertiary); line-height: 1.55; }

/* ============================================
   GALLERY
   ============================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 200px;
  gap: 10px;
}

.gallery-grid .g-item:first-child { grid-column: span 2; grid-row: span 2; }

.g-item {
  border-radius: 14px;
  border: 1.5px solid var(--navy-border-strong);
  background: var(--navy-800);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s var(--ease-out);
}

.g-item:hover { border-color: rgba(249,115,22,0.45); }

.g-item-photo { padding: 0; }

.gallery-grid button.g-item {
  appearance: none;
  -webkit-appearance: none;
  background: var(--navy-800);
  font: inherit;
  color: inherit;
  cursor: pointer;
  padding: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  text-align: left;
}

.g-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.g-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 14px 10px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.02em;
  background: linear-gradient(transparent, rgba(15, 23, 42, 0.88));
}

.g-placeholder { text-align: center; color: var(--text-tertiary); padding: 1rem; }

.g-placeholder svg { width: 28px; height: 28px; margin: 0 auto 8px; opacity: 0.6; }

.g-placeholder span { font-size: 11.5px; display: block; font-weight: 500; }

.gallery-hint {
  text-align: center;
  font-size: 13px;
  color: var(--text-tertiary);
  margin: 0.65rem 0 0;
  line-height: 1.55;
}

.gallery-actions {
  text-align: center;
  margin-top: 0.7rem;
  margin-bottom: 0;
}

.gallery-open-btn { margin-top: 0; }

/* Tighter space between gallery CTA and contact */
#gallery.section {
  padding-top: var(--section-pad);
  padding-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

#contact.section {
  padding-top: clamp(1.75rem, 3vw, 2.5rem);
  padding-bottom: var(--section-pad);
}

body.gallery-lightbox-open {
  overflow: hidden;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  visibility: hidden;
  pointer-events: none;
}

.gallery-lightbox.is-open,
.gallery-lightbox.gallery-lightbox--closing {
  visibility: visible;
  pointer-events: auto;
}

.gallery-lightbox-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 0.34s var(--ease-out);
}

.gallery-lightbox.is-open .gallery-lightbox-backdrop {
  opacity: 1;
}

.gallery-lightbox-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, calc(-50% + 14px)) scale(0.97);
  z-index: 1;
  width: min(1100px, calc(100vw - 1.5rem));
  max-height: min(90vh, 920px);
  background: var(--navy-900);
  border: 1px solid var(--navy-border-strong);
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.32s var(--ease-out), transform 0.38s var(--ease-out);
}

.gallery-lightbox.is-open .gallery-lightbox-panel {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .gallery-lightbox {
    transition: none;
  }

  .gallery-lightbox-backdrop,
  .gallery-lightbox-panel {
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}

.gallery-lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  padding: 0.95rem 1rem 0.95rem 1.25rem;
  border-bottom: 1px solid var(--navy-border);
  flex-shrink: 0;
}

.gallery-lightbox-toolbar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  margin-left: auto;
}

.gallery-show-all-btn {
  font-size: 13px;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  white-space: nowrap;
}

.gallery-lightbox-header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-display);
}

.gallery-lightbox-close {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 10px;
  background: var(--navy-800);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.gallery-lightbox-close:hover {
  background: var(--navy-700);
  color: var(--text-primary);
}

.gallery-lightbox-scroll {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1rem 1.15rem 1.35rem;
}

.gallery-lightbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 10px;
}

.glb-item {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--navy-border);
  background: var(--navy-800);
  aspect-ratio: 4 / 3;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.glb-item:hover {
  border-color: var(--navy-border-strong);
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.15);
}

.glb-item:focus {
  outline: 2px solid var(--accent, #38bdf8);
  outline-offset: 2px;
}

.glb-item:focus:not(:focus-visible) {
  outline: none;
}

.glb-item:focus-visible {
  outline: 2px solid var(--accent, #38bdf8);
  outline-offset: 2px;
}

.glb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.glb-item.glb-hidden {
  display: none !important;
}

/* Enlarged photo viewer (inside gallery lightbox) */
.gallery-viewer {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.38s var(--ease-out), visibility 0s linear 0.38s;
}

.gallery-viewer.is-active {
  visibility: visible;
  pointer-events: auto;
  opacity: 1;
  transition: opacity 0.38s var(--ease-out), visibility 0s;
}

.gallery-viewer-backdrop {
  position: absolute;
  inset: 0;
  border: none;
  padding: 0;
  margin: 0;
  background: rgba(2, 6, 23, 0.92);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.42s var(--ease-out);
}

.gallery-viewer.is-active .gallery-viewer-backdrop {
  opacity: 1;
}

.gallery-viewer-inner {
  position: relative;
  z-index: 1;
  isolation: isolate;
  width: min(96vw, 1200px);
  max-height: min(92vh, 900px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 2.75rem 3.25rem 1.25rem;
  pointer-events: none;
  opacity: 0;
  transform: translateY(18px) scale(0.96);
  transition: opacity 0.4s var(--ease-out), transform 0.46s var(--ease-out);
  transition-delay: 0s;
}

.gallery-viewer.is-active .gallery-viewer-inner {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: 0.06s;
}

.gallery-viewer-inner > * {
  pointer-events: auto;
}

.gallery-viewer-close {
  position: absolute;
  top: max(0.35rem, calc(env(safe-area-inset-top, 0px) + 0.2rem));
  right: max(0.35rem, calc(env(safe-area-inset-right, 0px) + 0.2rem));
  z-index: 12;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 10px;
  background: rgba(15, 26, 34, 0.92);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition:
    opacity 0.32s var(--ease-out),
    background 0.2s,
    color 0.2s,
    transform 0.22s var(--ease-spring);
  transition-delay: 0s;
}

.gallery-viewer.is-active .gallery-viewer-close {
  opacity: 1;
  transition-delay: 0.1s;
}

.gallery-viewer-close:hover {
  background: var(--navy-700);
  color: var(--text-primary);
}

.gallery-viewer-close:active {
  transform: scale(0.92);
}

.gallery-viewer-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: pan-y pinch-zoom;
  overflow: hidden;
}

.gallery-viewer-frame img {
  max-width: 100%;
  max-height: min(78vh, 760px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  border: 1px solid var(--navy-border);
  background: var(--navy-900);
  transition: opacity 0.18s var(--ease-out), transform 0.22s var(--ease-out);
}

/* Slide-out (current image) before swap */
.gallery-viewer-frame.gvf-x-out-next img {
  opacity: 0;
  transform: translateX(-28px) scale(0.98);
}

.gallery-viewer-frame.gvf-x-out-prev img {
  opacity: 0;
  transform: translateX(28px) scale(0.98);
}

/* Slide-in (new image): step 1 — start position, no transition */
.gallery-viewer-frame.gvf-x-in-next img {
  transition: none !important;
  opacity: 0;
  transform: translateX(32px) scale(0.98);
}

.gallery-viewer-frame.gvf-x-in-prev img {
  transition: none !important;
  opacity: 0;
  transform: translateX(-32px) scale(0.98);
}

/* Step 2 — animate to rest */
.gallery-viewer-frame.gvf-x-in-next.gvf-x-run img,
.gallery-viewer-frame.gvf-x-in-prev.gvf-x-run img {
  transition: opacity 0.2s var(--ease-out), transform 0.26s var(--ease-out) !important;
  opacity: 1;
  transform: none;
}

.gallery-viewer-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(30, 41, 59, 0.92);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  z-index: 8;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  transition:
    opacity 0.34s var(--ease-out),
    background 0.2s,
    transform 0.26s var(--ease-spring);
}

.gallery-viewer.is-active .gallery-viewer-nav {
  opacity: 1;
}

.gallery-viewer.is-active .gallery-viewer-prev {
  transition-delay: 0.08s, 0s, 0s;
}

.gallery-viewer.is-active .gallery-viewer-next {
  transition-delay: 0.12s, 0s, 0s;
}

.gallery-viewer-prev {
  left: 0.15rem;
}

.gallery-viewer-next {
  right: 0.15rem;
}

.gallery-viewer.is-active .gallery-viewer-nav:hover {
  background: var(--navy-600);
  transform: translateY(-50%) scale(1.06);
}

.gallery-viewer.is-active .gallery-viewer-nav:active {
  transform: translateY(-50%) scale(0.94);
  transition-duration: 0.12s;
}

.gallery-viewer-meta {
  position: relative;
  z-index: 4;
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  text-align: center;
  max-width: 100%;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.34s var(--ease-out), transform 0.4s var(--ease-out);
  transition-delay: 0s;
}

.gallery-viewer.is-active .gallery-viewer-meta {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.14s;
}

@media (prefers-reduced-motion: reduce) {
  .gallery-viewer,
  .gallery-viewer-backdrop,
  .gallery-viewer-inner,
  .gallery-viewer-close,
  .gallery-viewer-frame img,
  .gallery-viewer-nav,
  .gallery-viewer-meta {
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .gallery-viewer-inner {
    transform: none !important;
  }

  .gallery-viewer:not(.is-active) .gallery-viewer-backdrop {
    opacity: 0;
  }

  .gallery-viewer-frame.gvf-x-out-next img,
  .gallery-viewer-frame.gvf-x-out-prev img,
  .gallery-viewer-frame.gvf-x-in-next img,
  .gallery-viewer-frame.gvf-x-in-prev img,
  .gallery-viewer-frame.gvf-x-in-next.gvf-x-run img,
  .gallery-viewer-frame.gvf-x-in-prev.gvf-x-run img {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ============================================
   CONTACT
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3rem;
  align-items: start;
}

/* Careers — off the scrolling homepage until “Careers” opens full-page focus */
body:not(.careers-focus-open) #careers {
  display: none !important;
}

/* Careers — full-page focus: nav (sticky) + careers + footer in document order */
body.careers-focus-open {
  overflow-x: hidden;
}

body.careers-focus-open #backToTop,
body.careers-focus-open #galleryLightbox {
  display: none !important;
}

body.careers-focus-open #main-content > *:not(#careers) {
  display: none !important;
}

/* Natural document flow: clear sticky nav + safe area (scrollIntoView uses scroll-margin) */
body.careers-focus-open #careers {
  --careers-nav-clearance: calc(72px + env(safe-area-inset-top, 0px));
  margin: 0;
  max-width: none;
  scroll-margin-top: var(--careers-nav-clearance);
  padding-top: var(--careers-nav-clearance);
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
  background: var(--navy-950);
  animation: careersFocusEnter 0.44s var(--ease-out) both;
}

body.careers-focus-open #careers .container {
  max-width: var(--container-w);
}

body.careers-focus--closing #careers {
  animation: careersFocusExit 0.32s var(--ease-out) both;
}

@keyframes careersFocusEnter {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes careersFocusExit {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(14px) scale(0.99);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.careers-focus-open #careers,
  body.careers-focus--closing #careers {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Careers page */
.careers-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.38fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
  margin-top: 0.5rem;
}

.careers-aside {
  padding: 1.75rem;
  overflow: hidden;
}

.careers-aside-photo {
  margin: -1.75rem -1.75rem 1.25rem;
  border-radius: 14px 14px 0 0;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--navy-900);
}

.careers-aside-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.careers-aside-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.careers-aside-list {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.careers-aside-list li {
  padding-left: 1.1rem;
  position: relative;
}

.careers-aside-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal-500);
}

.careers-aside-note {
  font-size: 12px;
  color: var(--text-tertiary);
  margin: 0;
  font-style: italic;
}

.contact-info h3 {
  font-family: var(--font-display);
  font-size: 21px; font-weight: 700;
  margin-bottom: 0.85rem;
}

.contact-info > p { font-size: 14.5px; color: var(--text-secondary); line-height: 1.75; margin-bottom: 1.75rem; }

.contact-block { margin-bottom: 1.5rem; }

.contact-block-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-tertiary);
  margin-bottom: 0.6rem;
}

.contact-person {
  display: flex;
  gap: 12px;
  padding: 0.9rem;
  border-radius: 10px;
  margin-bottom: 8px;
  background: var(--navy-800);
  border: 1px solid var(--navy-border);
  transition: border-color 0.25s;
}

.contact-person:hover { border-color: rgba(13,148,136,0.3); }

.cp-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--teal-500), var(--teal-700));
  display: flex; align-items: center; justify-content: center;
  font-size: 12.5px; font-weight: 700; color: white;
  flex-shrink: 0;
}

.cp-info .cp-name { font-size: 13.5px; font-weight: 700; color: var(--text-primary); }

.cp-info .cp-role { font-size: 11px; color: var(--text-tertiary); margin-bottom: 4px; }

.cp-info a { font-size: 12px; color: var(--teal-400); display: block; }

.cp-info a:hover { text-decoration: underline; }

.cp-info .cp-phone { color: var(--text-secondary); }

.contact-meta-row {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: var(--text-secondary);
  padding: 10px 0;
  border-bottom: 1px solid var(--navy-border);
}

.contact-meta-row:last-child { border-bottom: none; }

.contact-meta-row svg { width: 16px; height: 16px; color: var(--teal-400); flex-shrink: 0; margin-top: 1px; }

.contact-meta-row a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.contact-meta-row a:hover { color: var(--teal-400); text-decoration: underline; }

/* Form */
.contact-form-card { padding: 2rem; }

.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.field { margin-bottom: 1.1rem; position: relative; }

.field label {
  display: block;
  font-size: 12px; font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.field label .req { color: var(--orange-400); }

.field-group-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.field-group-label .req { color: var(--orange-400); }

.careers-resume-block { margin-bottom: 1.1rem; }

.careers-resume-block .field:last-child { margin-bottom: 0; }

.careers-resume-hint { margin-top: 0; margin-bottom: 1rem; }

.field input, .field select, .field textarea {
  width: 100%;
  background: var(--navy-900);
  border: 1px solid var(--navy-border-strong);
  border-radius: 8px;
  padding: 11px 13px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.field input::placeholder, .field textarea::placeholder { color: var(--text-tertiary); }

.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--teal-500);
  box-shadow: 0 0 0 3px rgba(13,148,136,0.18);
}

.field select option { background: var(--navy-800); }

.field textarea { resize: vertical; min-height: 100px; }

.field input[type="file"] {
  padding: 0.65rem 0.75rem;
  cursor: pointer;
  font-size: 13px;
}

.field-hint {
  font-size: 11.5px;
  color: var(--text-tertiary);
  margin-top: 6px;
  line-height: 1.5;
}

.field.has-error input, .field.has-error select, .field.has-error textarea {
  border-color: #e35353;
  box-shadow: 0 0 0 3px rgba(227,83,83,0.15);
}

.field.has-error input[type="file"] {
  border-color: #e35353;
  box-shadow: 0 0 0 3px rgba(227,83,83,0.15);
}

.field-error {
  display: none;
  align-items: center; gap: 5px;
  font-size: 11.5px;
  color: #f08080;
  margin-top: 6px;
}

.field.has-error .field-error { display: flex; }

.field-error svg { width: 13px; height: 13px; flex-shrink: 0; }

.form-status {
  display: none;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 9px;
  font-size: 13px;
  line-height: 1.55;
  margin-bottom: 1.1rem;
}

.form-status.show { display: flex; }

.form-status svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 1px; }

.form-status.success { background: rgba(13,148,136,0.12); border: 1px solid rgba(13,148,136,0.35); color: var(--teal-200); }

.form-status.error { background: rgba(227,83,83,0.1); border: 1px solid rgba(227,83,83,0.3); color: #f3a9a9; }

.form-submit-row { display: flex; align-items: center; gap: 14px; margin-top: 0.4rem; }

.form-disclaimer { font-size: 11px; color: var(--text-tertiary); margin-top: 0.9rem; line-height: 1.5; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--navy-950);
  border-top: 1px solid var(--navy-border);
  padding-top: 3.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}

.footer-brand .brand { margin-bottom: 1rem; }

.footer-brand a.brand {
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.footer-brand p { font-size: 13px; color: var(--text-tertiary); line-height: 1.7; max-width: 280px; margin-bottom: 1.25rem; }

.footer-cert-badges { display: flex; gap: 8px; flex-wrap: wrap; }

.fcb {
  font-size: 10.5px; font-weight: 600;
  border: 1px solid var(--navy-border-strong);
  color: var(--text-secondary);
  padding: 4px 9px;
  border-radius: 5px;
}

.footer-col h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  margin-bottom: 1.1rem;
  font-weight: 600;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }

.footer-col a { font-size: 13.5px; color: var(--text-secondary); transition: color 0.2s; }

.footer-col a:hover { color: var(--orange-400); }

.footer-contact li { font-size: 13px; color: var(--text-secondary); display: flex; gap: 8px; align-items: flex-start; }

.footer-contact svg { width: 14px; height: 14px; color: var(--teal-400); flex-shrink: 0; margin-top: 3px; }

.footer-bottom {
  border-top: 1px solid var(--navy-border);
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom-left { font-size: 12px; color: var(--text-tertiary); }

.footer-bottom-left strong { color: var(--text-secondary); }

.footer-legal { display: flex; gap: 1.5rem; }

.footer-legal a { font-size: 12px; color: var(--text-tertiary); }

.footer-legal a:hover { color: var(--text-secondary); }

.back-to-top {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--navy-800);
  border: 1px solid var(--navy-border-strong);
  color: var(--text-primary);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out), background 0.2s, visibility 0.3s;
  z-index: 150;
  box-shadow: 0 8px 24px -8px rgba(0,0,0,0.5);
}

.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

.back-to-top:hover { background: var(--teal-600); }

.back-to-top svg { width: 18px; height: 18px; }
