/* =========================================================
   TRELLIS APEX — Systems Schematic Design Language
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@600;700;800;900&family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root{
  /* --- color tokens --- */
  --navy-900:#071D36;
  --navy-800:#0A2A4D;
  --navy-700:#123A63;
  --navy-600:#1B4A79;
  --gold-500:#F2B705;
  --gold-400:#FFCE33;
  --paper-050:#F7F8F4;
  --paper-100:#ECEEE7;
  --ink-900:#0F161D;
  --steel-500:#5B6B7A;
  --steel-300:#93A2AE;
  --line-dark:rgba(255,255,255,.16);
  --line-light:rgba(10,42,77,.16);
  --danger:#B4381F;

  /* --- type --- */
  --f-display:'Big Shoulders Display', sans-serif;
  --f-body:'IBM Plex Sans', sans-serif;
  --f-mono:'IBM Plex Mono', monospace;

  --radius:2px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--paper-100);
  color:var(--ink-900);
  font-family:var(--f-body);
  font-size:16px;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}

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

h1,h2,h3,h4{
  font-family:var(--f-display);
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.01em;
  margin:0 0 .4em;
  line-height:.98;
}

p{ margin:0 0 1em; color:var(--steel-500); }
p:last-child{ margin-bottom:0; }

.eyebrow{
  font-family:var(--f-mono);
  font-size:.72rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--gold-500);
  display:flex;
  align-items:center;
  gap:.6em;
  margin-bottom:.9em;
}
.eyebrow::before{
  content:"";
  width:20px;
  height:1px;
  background:var(--gold-500);
  display:inline-block;
}

/* focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible{
  outline:2px solid var(--gold-500);
  outline-offset:2px;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; scroll-behavior:auto !important; }
}

/* =========================================================
   SHEET FRAME — every page is a "drawing sheet"
   ========================================================= */
.sheet{
  position:relative;
  border:1px solid var(--line-light);
  margin:10px;
}
.sheet::before,.sheet::after,
.reg-tl,.reg-tr,.reg-bl,.reg-br{ pointer-events:none; }

.reg{
  position:fixed;
  z-index:40;
  font-family:var(--f-mono);
  font-size:.62rem;
  letter-spacing:.08em;
  color:var(--steel-500);
  mix-blend-mode:normal;
  pointer-events:none;
  opacity:.85;
}
.reg span{ color:var(--navy-800); font-weight:600; }
.reg-tl{ top:10px; left:16px; }
.reg-tr{ top:10px; right:16px; text-align:right; }
.reg-bl{ bottom:10px; left:16px; }
.reg-br{ bottom:10px; right:16px; text-align:right; }

.reg::before{ content:"+"; margin-right:4px; }
.reg-tr::before,.reg-br::before{ content:""; }
.reg-tr::after,.reg-br::after{ content:"+"; margin-left:4px; }

/* =========================================================
   NAV
   ========================================================= */
.nav{
  position:sticky;
  top:0;
  z-index:30;
  background:var(--navy-900);
  color:#fff;
  border-bottom:1px solid var(--line-dark);
}
.nav-inner{
  max-width:1240px;
  margin:0 auto;
  padding:16px 28px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  color:#fff;
  font-family:var(--f-display);
  font-weight:800;
  font-size:1.15rem;
  letter-spacing:.02em;
  white-space:nowrap;
}
.brand-mark{
  width:46px;height:46px;
  flex:none;
  display:flex;align-items:center;justify-content:center;
  overflow:hidden;
  border:1px solid var(--line-dark);
  background:var(--navy-800);
}
.brand-mark img{
  width:100%;height:100%;
  object-fit:cover;
  display:block;
}
.nav-links{
  display:flex;
  gap:6px;
  align-items:center;
  list-style:none;
  margin:0;padding:0;
  font-family:var(--f-mono);
  font-size:.78rem;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.nav-links a{
  text-decoration:none;
  color:var(--steel-300);
  padding:10px 12px;
  display:block;
  position:relative;
  transition:color .2s ease;
}
.nav-links a:hover{ color:#fff; }
.nav-links a.active{ color:#fff; }
.nav-links a.active::after{
  content:"";
  position:absolute;
  left:12px;right:12px;bottom:4px;
  height:2px;
  background:var(--gold-500);
}
.nav-cta{
  font-family:var(--f-mono) !important;
  background:var(--gold-500) !important;
  color:var(--navy-900) !important;
  padding:10px 16px !important;
  font-weight:600;
}
.nav-cta:hover{ background:var(--gold-400) !important; }

.nav-toggle{
  display:none;
  background:none;border:1px solid var(--line-dark);
  color:#fff;
  width:40px;height:40px;
  align-items:center;justify-content:center;
  cursor:pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after{
  content:"";
  display:block;
  width:18px;height:2px;
  background:#fff;
  position:relative;
  transition:transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before{ position:absolute; top:-6px; }
.nav-toggle span::after{ position:absolute; top:6px; }

@media (max-width:860px){
  .nav-toggle{ display:flex; }
  .nav-links{
    position:absolute;
    top:100%; left:0; right:0;
    background:var(--navy-900);
    flex-direction:column;
    align-items:stretch;
    border-top:1px solid var(--line-dark);
    max-height:0;
    overflow:hidden;
    transition:max-height .25s ease;
  }
  .nav-links.open{ max-height:420px; }
  .nav-links a{ padding:14px 24px; border-bottom:1px solid var(--line-dark); }
  .nav-cta{ margin:12px 24px; text-align:center; }
}

/* =========================================================
   LAYOUT PRIMITIVES
   ========================================================= */
.wrap{ max-width:1240px; margin:0 auto; padding:0 28px; }
section{ padding:96px 0; position:relative; }
.on-dark{ background:var(--navy-900); color:#fff; }
.on-dark p{ color:var(--steel-300); }
.on-navy{ background:var(--navy-800); color:#fff; }
.on-navy p{ color:var(--steel-300); }
.on-paper{ background:var(--paper-050); }
.divider{ border:none; border-top:1px solid var(--line-light); margin:0; }
.on-dark + .on-dark, .on-navy + .on-dark{ border-top:1px solid var(--line-dark); }

.grid-bg{
  background-image:
    linear-gradient(var(--line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size:44px 44px;
}
.on-paper.grid-bg, .grid-bg-light{
  background-image:
    linear-gradient(var(--line-light) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-light) 1px, transparent 1px);
  background-size:44px 44px;
}

.tag-plate{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family:var(--f-mono);
  font-size:.68rem;
  letter-spacing:.1em;
  border:1px solid currentColor;
  padding:5px 10px;
  color:var(--gold-500);
}

.section-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:32px;
  margin-bottom:56px;
  flex-wrap:wrap;
}
.section-head h2{ font-size:clamp(2rem,4vw,3rem); margin:0; }
.section-head .note{
  max-width:340px;
  font-family:var(--f-mono);
  font-size:.82rem;
  color:var(--steel-500);
  line-height:1.6;
}
.on-dark .section-head .note, .on-navy .section-head .note{ color:var(--steel-300); }

/* buttons */
.btn{
  font-family:var(--f-mono);
  font-size:.78rem;
  letter-spacing:.06em;
  text-transform:uppercase;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:14px 22px;
  border:1px solid var(--navy-800);
  color:var(--navy-800);
  background:transparent;
  cursor:pointer;
  transition:background .18s ease,color .18s ease,border-color .18s ease;
}
.btn:hover{ background:var(--navy-800); color:#fff; }
.btn-solid{ background:var(--gold-500); border-color:var(--gold-500); color:var(--navy-900); font-weight:600; }
.btn-solid:hover{ background:var(--gold-400); border-color:var(--gold-400); color:var(--navy-900); }
.btn-light{ border-color:rgba(255,255,255,.5); color:#fff; }
.btn-light:hover{ background:#fff; color:var(--navy-900); }
.btn-arrow{ transition:transform .18s ease; }
.btn:hover .btn-arrow{ transform:translateX(4px); }

/* =========================================================
   HERO
   ========================================================= */
.hero{
  position:relative;
  padding-top:0;
  padding-bottom:0;
  color:#fff;
  overflow:hidden;
}
.hero-logo{
  min-height:88vh;
  display:flex;
  align-items:center;
  background:url('../assets/logo.jpg') center 32%/cover no-repeat;
}
.hero-scrim{
  position:absolute;
  inset:0;
  background:
    linear-gradient(100deg, rgba(7,29,54,.96) 0%, rgba(7,29,54,.92) 32%, rgba(7,29,54,.55) 62%, rgba(7,29,54,.28) 100%),
    linear-gradient(0deg, rgba(7,29,54,.5), rgba(7,29,54,0) 40%);
}
.hero-content{
  position:relative;
  z-index:2;
  max-width:620px;
  padding:120px 28px 96px;
}
.hero h1{
  font-size:clamp(2.6rem,6vw,4.6rem);
  color:#fff;
}
.hero h1 em{
  font-style:normal;
  color:var(--gold-500);
}
.hero-lede{
  font-size:1.05rem;
  max-width:480px;
  color:var(--steel-300) !important;
}
.hero-actions{ display:flex; gap:14px; margin-top:32px; flex-wrap:wrap; }
.hero-meta{
  display:flex;
  gap:28px;
  margin-top:48px;
  font-family:var(--f-mono);
  font-size:.72rem;
  color:var(--steel-300);
  flex-wrap:wrap;
}
.hero-meta div{ border-left:1px solid var(--line-dark); padding-left:14px; }
.hero-meta b{ display:block; color:#fff; font-size:.95rem; font-family:var(--f-body); font-weight:600; }

@media (max-width:700px){
  .hero-logo{ background-position:60% 28%; min-height:76vh; }
  .hero-content{ padding:96px 22px 72px; }
}

/* schematic diagram (relocated System Map section) */
.schematic-wrap{
  max-width:520px;
  margin:0 auto;
  text-align:center;
}

/* schematic diagram */
.schematic{
  position:relative;
  aspect-ratio:1/1;
  max-width:520px;
  margin:0 auto;
}
.schematic svg{ width:100%; height:100%; overflow:visible; }
.node-line{ stroke:var(--steel-500); stroke-width:1; fill:none; opacity:.6; }
.node-dot-outer{ fill:none; stroke:var(--steel-300); stroke-width:1; opacity:.5; }
.node{ cursor:pointer; }
.node circle.node-dot{ fill:var(--navy-700); stroke:var(--gold-500); stroke-width:1.4; transition:fill .2s ease, r .2s ease; }
.node:hover circle.node-dot, .node.active circle.node-dot{ fill:var(--gold-500); }
.node text{ font-family:var(--f-mono); font-size:9.5px; fill:var(--steel-300); letter-spacing:.04em; text-transform:uppercase; }
.node:hover text, .node.active text{ fill:#fff; }
.core circle{ fill:var(--navy-800); stroke:var(--gold-500); stroke-width:1.6; }
.core text{ fill:#fff; font-family:var(--f-mono); font-size:9px; }
.pulse{ animation:pulse 2.6s ease-in-out infinite; }
@keyframes pulse{
  0%,100%{ opacity:.35; }
  50%{ opacity:.85; }
}

#node-detail{
  margin-top:20px;
  font-family:var(--f-mono);
  font-size:.78rem;
  color:var(--steel-300);
  min-height:38px;
  border-top:1px dashed var(--line-dark);
  padding-top:14px;
}
#node-detail b{ color:var(--gold-500); }

/* sequential "systems coming online" reveal */
.schematic .core{
  opacity:0;
  transform:scale(.5);
  transform-origin:200px 200px;
  transform-box:fill-box;
}
.schematic.play .core{
  animation:ta-core-in .5s cubic-bezier(.34,1.56,.64,1) forwards;
}
.schematic .node-dot-outer:not(.pulse){ opacity:0; }
.schematic.play .node-dot-outer:not(.pulse){ animation:ta-fade-in .6s ease forwards; animation-delay:.15s; }

.schematic .node-line{
  stroke-dasharray:230;
  stroke-dashoffset:230;
}
.schematic.play .node-line{ animation:ta-draw-line .5s ease forwards; }

.schematic .node{
  opacity:0;
  transform:scale(.35);
  transform-origin:center;
  transform-box:fill-box;
}
.schematic.play .node{ animation:ta-node-in .4s cubic-bezier(.34,1.56,.64,1) forwards; }

@keyframes ta-core-in{ to{ opacity:1; transform:scale(1); } }
@keyframes ta-fade-in{ to{ opacity:.5; } }
@keyframes ta-draw-line{ to{ stroke-dashoffset:0; } }
@keyframes ta-node-in{ to{ opacity:1; transform:scale(1); } }

/* =========================================================
   CARDS / GRIDS
   ========================================================= */
.card-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:1px;
  background:var(--line-light);
  border:1px solid var(--line-light);
}
.on-dark .card-grid, .on-navy .card-grid{ background:var(--line-dark); border-color:var(--line-dark); }

.card{
  background:var(--paper-050);
  padding:32px 28px;
  position:relative;
}
.on-dark .card, .on-navy .card{ background:var(--navy-800); }
.card .code{
  font-family:var(--f-mono);
  font-size:.68rem;
  color:var(--gold-500);
  letter-spacing:.1em;
  margin-bottom:14px;
  display:block;
}
.card h3{ font-size:1.25rem; margin-bottom:.5em; }
.card p{ font-size:.92rem; }

/* reveal on scroll */
.reveal{ opacity:0; transform:translateY(18px); transition:opacity .6s ease, transform .6s ease; }
.reveal.in{ opacity:1; transform:none; }

/* =========================================================
   SERVICES PAGE — accordion systems
   ========================================================= */
.system{
  border-bottom:1px solid var(--line-light);
}
.system-head{
  display:grid;
  grid-template-columns:90px 1fr 160px 24px;
  align-items:center;
  gap:20px;
  padding:26px 0;
  cursor:pointer;
  background:none;
  border:none;
  width:100%;
  text-align:left;
  font:inherit;
  color:inherit;
}
.system-code{
  font-family:var(--f-mono);
  font-size:.85rem;
  color:var(--gold-500);
  font-weight:600;
}
.system-head h3{
  margin:0;
  font-size:clamp(1.2rem,2.4vw,1.7rem);
}
.system-tag{
  font-family:var(--f-mono);
  font-size:.66rem;
  letter-spacing:.08em;
  color:var(--steel-500);
  text-transform:uppercase;
  text-align:right;
}
.system-plus{
  width:20px;height:20px;
  position:relative;
  flex:none;
}
.system-plus::before,.system-plus::after{
  content:"";
  position:absolute;
  background:var(--navy-800);
  transition:transform .25s ease, opacity .25s ease;
}
.system-plus::before{ top:9px;left:0;right:0;height:1.6px; }
.system-plus::after{ left:9px;top:0;bottom:0;width:1.6px; }
.system.open .system-plus::after{ transform:rotate(90deg); opacity:0; }

.system-body{
  max-height:0;
  overflow:hidden;
  transition:max-height .35s ease;
}
.system.open .system-body{ max-height:900px; }
.system-media{
  grid-column:1/-1;
  width:100%;
  height:220px;
  overflow:hidden;
  margin-bottom:6px;
  background:var(--navy-800);
  position:relative;
}
.system-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  filter:saturate(.92) contrast(1.02);
  cursor:zoom-in;
}
.system-media .credit{
  position:absolute;
  bottom:6px;
  right:8px;
  font-family:var(--f-mono);
  font-size:.6rem;
  letter-spacing:.04em;
  color:rgba(255,255,255,.75);
  background:rgba(7,29,54,.55);
  padding:2px 6px;
}
.system-media.img-error{ display:none; }
@media (max-width:700px){
  .system-media{ height:170px; }
}
.system-body-inner{
  padding:0 0 34px 110px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:28px;
}
.system-body-inner p{ grid-column:1/-1; max-width:640px; }
.system-body ul{
  margin:0; padding:0;
  list-style:none;
  display:grid;
  gap:10px;
}
.system-body li{
  font-size:.92rem;
  padding-left:18px;
  position:relative;
  color:var(--ink-900);
}
.system-body li::before{
  content:"";
  position:absolute;
  left:0; top:.55em;
  width:7px;height:1.4px;
  background:var(--gold-500);
}
@media (max-width:700px){
  .system-head{ grid-template-columns:50px 1fr 24px; }
  .system-tag{ display:none; }
  .system-body-inner{ padding-left:50px; grid-template-columns:1fr; }
}

/* =========================================================
   STATS / VALUES
   ========================================================= */
.values-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:1px;
  background:var(--line-dark);
}
@media (max-width:900px){ .values-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:520px){ .values-grid{ grid-template-columns:1fr; } }
.value-item{
  background:var(--navy-900);
  padding:34px 26px;
}
.value-item .idx{ font-family:var(--f-mono); color:var(--gold-500); font-size:.75rem; display:block; margin-bottom:16px; }
.value-item h3{ font-size:1.15rem; margin-bottom:8px; }
.value-item p{ font-size:.88rem; }

.sector-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
}
@media (max-width:800px){ .sector-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:520px){ .sector-grid{ grid-template-columns:1fr; } }
.sector{
  border:1px solid var(--line-light);
  padding:20px 18px;
  font-family:var(--f-mono);
  font-size:.82rem;
  display:flex;
  align-items:center;
  gap:12px;
}
.sector::before{ content:"—"; color:var(--gold-500); }

/* why partner */
.reason-list{ display:grid; gap:1px; background:var(--line-light); border:1px solid var(--line-light); }
.reason{
  background:var(--paper-050);
  padding:26px 28px;
  display:grid;
  grid-template-columns:56px 1fr;
  gap:20px;
  align-items:start;
}
.reason .num{ font-family:var(--f-mono); color:var(--gold-500); font-size:1.1rem; }
.reason h3{ font-size:1.05rem; margin-bottom:6px; }
.reason p{ font-size:.92rem; }

/* =========================================================
   PROCESS TIMELINE
   ========================================================= */
.timeline{
  position:relative;
  display:flex;
  gap:0;
  margin-top:8px;
}
.timeline::before{
  content:"";
  position:absolute;
  top:22px;
  left:10%;
  right:10%;
  height:1px;
  background:var(--line-dark);
  z-index:0;
}
.timeline-step{
  flex:1;
  position:relative;
  z-index:1;
  text-align:center;
  padding:0 14px;
}
.timeline-num{
  display:flex;
  align-items:center;
  justify-content:center;
  width:44px;height:44px;
  margin:0 auto 20px;
  border:1px solid var(--gold-500);
  border-radius:50%;
  background:var(--navy-900);
  color:var(--gold-500);
  font-family:var(--f-mono);
  font-weight:600;
  font-size:.92rem;
  transition:background .25s ease, color .25s ease, transform .25s ease;
}
.timeline-step:hover .timeline-num{ background:var(--gold-500); color:var(--navy-900); transform:scale(1.1); }
.timeline-step h3{ font-size:.98rem; margin-bottom:8px; color:#fff; }
.timeline-step p{ font-size:.82rem; }
@media (max-width:900px){
  .timeline{ flex-direction:column; gap:30px; }
  .timeline::before{ display:none; }
  .timeline-step{ text-align:left; padding:0 0 0 60px; }
  .timeline-num{ position:absolute; left:0; top:0; margin:0; }
}

/* =========================================================
   FAQ ACCORDION
   ========================================================= */
.faq-list{
  border-top:1px solid var(--line-light);
}
.faq-item{
  border-bottom:1px solid var(--line-light);
}
.faq-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  width:100%;
  padding:22px 4px;
  background:none;
  border:none;
  cursor:pointer;
  text-align:left;
  font:inherit;
  color:inherit;
}
.faq-head h3{
  margin:0;
  font-size:1.02rem;
  text-transform:none;
  font-family:var(--f-body);
  font-weight:600;
  letter-spacing:0;
}
.faq-body{
  max-height:0;
  overflow:hidden;
  transition:max-height .3s ease;
}
.faq-item.open .faq-body{ max-height:220px; }
.faq-item.open .system-plus::after{ transform:rotate(90deg); opacity:0; }
.faq-body-inner{ padding:0 4px 26px; max-width:680px; }
.faq-body-inner p{ font-size:.92rem; }

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

.field{ margin-bottom:20px; }
.field label{
  display:block;
  font-family:var(--f-mono);
  font-size:.7rem;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--steel-300);
  margin-bottom:8px;
}
.field input, .field select, .field textarea{
  width:100%;
  background:transparent;
  border:none;
  border-bottom:1px solid var(--line-dark);
  color:#fff;
  font-family:var(--f-body);
  font-size:1rem;
  padding:10px 2px;
  transition:border-color .2s ease;
}
.field textarea{ resize:vertical; min-height:96px; }
.field input:focus, .field select:focus, .field textarea:focus{
  border-color:var(--gold-500);
  outline:none;
}
.field select option{ color:#000; }
.field-row{ display:grid; grid-template-columns:1fr 1fr; gap:20px; }
@media (max-width:520px){ .field-row{ grid-template-columns:1fr; } }

.form-status{
  font-family:var(--f-mono);
  font-size:.8rem;
  margin-top:18px;
  min-height:20px;
  color:var(--gold-500);
}

.info-row{
  display:flex;
  gap:18px;
  padding:20px 0;
  border-bottom:1px solid var(--line-light);
}
.info-row .k{
  font-family:var(--f-mono);
  font-size:.68rem;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--steel-500);
  width:130px;
  flex:none;
  padding-top:2px;
}
.info-row .v{ font-size:.98rem; }
.info-row .v a{ text-decoration:none; border-bottom:1px solid var(--line-light); }

/* coordinate readout easter-egg */
#coord-readout{
  position:fixed;
  bottom:14px;
  right:14px;
  font-family:var(--f-mono);
  font-size:.66rem;
  color:var(--steel-500);
  background:var(--paper-050);
  border:1px solid var(--line-light);
  padding:5px 9px;
  z-index:50;
  pointer-events:none;
  display:none;
}
@media (min-width:1000px){ #coord-readout{ display:block; } }

/* =========================================================
   IMAGE LIGHTBOX
   ========================================================= */
.lightbox{
  position:fixed;
  inset:0;
  z-index:60;
  background:rgba(7,29,54,.92);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:32px;
  opacity:0;
  pointer-events:none;
  transition:opacity .2s ease;
}
.lightbox.open{ opacity:1; pointer-events:auto; }
.lightbox img{
  max-width:min(1000px, 92vw);
  max-height:86vh;
  width:auto;
  border:1px solid var(--line-dark);
  box-shadow:0 20px 60px rgba(0,0,0,.5);
}
.lightbox-caption{
  position:absolute;
  bottom:28px;
  left:0; right:0;
  text-align:center;
  font-family:var(--f-mono);
  font-size:.78rem;
  letter-spacing:.06em;
  color:var(--steel-300);
  text-transform:uppercase;
}
.lightbox-close{
  position:absolute;
  top:22px; right:26px;
  width:40px;height:40px;
  border:1px solid var(--line-dark);
  background:transparent;
  color:#fff;
  font-family:var(--f-mono);
  font-size:1rem;
  cursor:pointer;
  display:flex;align-items:center;justify-content:center;
}
.lightbox-close:hover{ background:var(--gold-500); color:var(--navy-900); border-color:var(--gold-500); }

/* =========================================================
   MOBILE STICKY CTA
   ========================================================= */
.mobile-cta{ display:none; }
@media (max-width:700px){
  body.has-mobile-cta{ padding-bottom:78px; }
  .mobile-cta{
    display:flex;
    position:fixed;
    left:0; right:0; bottom:0;
    z-index:35;
    padding:12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background:var(--navy-900);
    border-top:1px solid var(--line-dark);
    box-shadow:0 -6px 18px rgba(0,0,0,.25);
  }
  .mobile-cta a{ flex:1; justify-content:center; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.foot{
  background:var(--navy-900);
  color:var(--steel-300);
  padding:64px 0 24px;
}
.foot-grid{
  display:grid;
  grid-template-columns:1.4fr 1fr 1fr 1fr;
  gap:32px;
  padding-bottom:40px;
  border-bottom:1px solid var(--line-dark);
}
@media (max-width:800px){ .foot-grid{ grid-template-columns:1fr 1fr; } }
.foot-brand{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:16px;
}
.foot-brand img{
  width:40px;height:40px;
  object-fit:cover;
  border:1px solid var(--line-dark);
  flex:none;
}
.foot-brand span{
  font-family:var(--f-display);
  font-weight:800;
  font-size:1.05rem;
  letter-spacing:.02em;
  color:#fff;
  text-transform:uppercase;
}
.foot h4{
  font-family:var(--f-mono);
  font-size:.7rem;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:#fff;
  margin-bottom:16px;
}
.foot ul{ list-style:none; margin:0; padding:0; display:grid; gap:10px; }
.foot a{ text-decoration:none; font-size:.88rem; color:var(--steel-300); }
.foot a:hover{ color:var(--gold-500); }
.foot-bottom{
  display:flex;
  justify-content:space-between;
  padding-top:22px;
  font-family:var(--f-mono);
  font-size:.7rem;
  flex-wrap:wrap;
  gap:10px;
}

/* page hero (interior pages) */
.page-hero{
  padding:64px 0 56px;
  color:#fff;
}
.page-hero h1{ font-size:clamp(2.2rem,5vw,3.4rem); color:#fff; }
.page-hero .hero-lede{ max-width:600px; }
.crumb{
  font-family:var(--f-mono);
  font-size:.7rem;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--steel-300);
  margin-bottom:18px;
}
.crumb span{ color:var(--gold-500); }
