/* ==========================================================================
   Royal Infra Projects — Design System
   Palette:  Grid Navy #0E2148 · Royal Gold #C89B3E · Cloud White #F5F7FA
             Charcoal Ink #12151C · Steel Blue #3E6690 · Line Gray #DCE1E8
   Type:     Fraunces (display) · IBM Plex Sans (body) · IBM Plex Mono (data)
   ========================================================================== */

:root{
  /* --- color tokens --- */
  --navy:        #0E2148;
  --navy-deep:   #081530;
  --navy-soft:   #1B3B6F;
  --gold:        #C89B3E;
  --gold-bright: #E4B94F;
  --gold-dim:    #8C6C28;
  --ink:         #12151C;
  --ink-soft:    #4A5162;
  --steel:       #3E6690;
  --cloud:       #F5F7FA;
  --cloud-dim:   #ECEFF4;
  --white:       #FFFFFF;
  --line:        #DCE1E8;
  --line-dark:   rgba(255,255,255,0.14);
  --success:     #3E7C5A;

  /* --- type --- */
  --font-display: 'Fraunces', ui-serif, Georgia, serif;
  --font-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* --- scale --- */
  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.9rem);
  --step-0:  clamp(1rem, 0.95rem + 0.2vw, 1.1rem);
  --step-1:  clamp(1.22rem, 1.1rem + 0.5vw, 1.4rem);
  --step-2:  clamp(1.5rem, 1.3rem + 0.9vw, 1.9rem);
  --step-3:  clamp(1.9rem, 1.5rem + 1.6vw, 2.6rem);
  --step-4:  clamp(2.4rem, 1.8rem + 2.6vw, 3.6rem);
  --step-5:  clamp(3rem, 2.1rem + 4vw, 5rem);

  /* --- layout --- */
  --container: 1240px;
  --container-narrow: 860px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(14,33,72,0.06);
  --shadow: 0 12px 32px -8px rgba(14,33,72,0.18);
  --shadow-lg: 0 30px 70px -20px rgba(8,21,48,0.35);
  --ease: cubic-bezier(.22,.85,.34,1);
  --dur: 0.7s;
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; overflow-x: hidden; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
body{ margin:0; }
img, video, svg{ display:block; max-width:100%; }
a{ color:inherit; text-decoration:none; }
ul, ol{ margin:0; padding:0; list-style:none; }
button, input, textarea, select{ font: inherit; color: inherit; }
button{ background:none; border:none; cursor:pointer; }
h1,h2,h3,h4,h5,p,figure{ margin:0; }

body{
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

:focus-visible{
  outline: 2.5px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

h1,h2,h3,h4{
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.eyebrow{
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dim);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::before{
  content: '';
  width: 1.6em;
  height: 1.5px;
  background: var(--gold);
  display: inline-block;
}
.eyebrow.on-dark{ color: var(--gold-bright); }

/* ==========================================================================
   Layout
   ========================================================================== */
.container{
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container-narrow{
  width: 100%;
  max-width: var(--container-narrow);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section{ padding-block: clamp(3.5rem, 7vw, 7rem); }
.section-tight{ padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.section.on-navy{ background: var(--navy); color: rgba(255,255,255,0.86); }
.section.on-navy h2, .section.on-navy h3{ color: var(--white); }
.section.on-cloud{ background: var(--cloud); }

.grid{ display:grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
.grid-2{ grid-template-columns: repeat(2, 1fr); }
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-4{ grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px){
  .grid-3, .grid-4{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px){
  .grid-2, .grid-3, .grid-4{ grid-template-columns: 1fr; }
}

.stack{ display:flex; flex-direction:column; }
.cluster{ display:flex; flex-wrap:wrap; align-items:center; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:0.55em;
  padding: 0.95em 1.7em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--step--1);
  letter-spacing: 0.02em;
  border-radius: 999px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease), border-color .35s var(--ease);
  white-space: nowrap;
}
.btn-gold{
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: var(--navy-deep);
  box-shadow: 0 10px 24px -8px rgba(200,155,62,0.55);
}
.btn-gold:hover{ transform: translateY(-2px); box-shadow: 0 16px 32px -10px rgba(200,155,62,0.65); }
.btn-outline{
  border: 1.5px solid rgba(255,255,255,0.4);
  color: var(--white);
}
.btn-outline:hover{ border-color: var(--gold); color: var(--gold-bright); transform: translateY(-2px); }
.btn-outline-navy{
  border: 1.5px solid var(--navy);
  color: var(--navy);
}
.btn-outline-navy:hover{ background: var(--navy); color: var(--white); transform: translateY(-2px); }
.btn-sm{ padding: 0.7em 1.3em; font-size: var(--step--1); }
.btn-block{ width:100%; }

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header{
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s ease, background .3s ease;
}
.site-header.is-scrolled{ box-shadow: 0 4px 24px rgba(14,33,72,0.08); }
.nav-inner{
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display:flex;
  align-items:center;
  justify-content:space-between;
  height: 84px;
}
.brand{ display:flex; align-items:center; }
.brand img{ height: 46px; width:auto; display:block; }
.nav-links{
  display:flex;
  align-items:center;
  gap: clamp(1rem, 2vw, 2.1rem);
}
.nav-links a{
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 0.3em 0;
}
.nav-links a::after{
  content:'';
  position:absolute; left:0; bottom:-2px;
  width:0; height:2px;
  background: var(--gold);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover{ color: var(--navy); }
.nav-links a:hover::after, .nav-links a.active::after{ width:100%; }
.nav-links a.active{ color: var(--navy); font-weight:600; }
.nav-cta{ display:flex; align-items:center; gap:0.9rem; }

.nav-toggle{
  display:none;
  flex-direction:column;
  gap:5px;
  padding: 8px;
}
.nav-toggle span{ width:24px; height:2px; background:var(--navy); transition: all .3s var(--ease); }
.nav-toggle.is-open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2){ opacity:0; }
.nav-toggle.is-open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px){
  .nav-links{
    position: fixed;
    top: 84px; left: 0; right: 0; bottom: 0;
    width: 100vw;
    height: calc(100vh - 84px);
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem var(--gutter);
    gap: 1.4rem;
    /* Exactly its own width to the right — parking it further out would widen
       the document and create a horizontal scrollbar. */
    transform: translateX(100%);
    transition: transform 0.4s var(--ease), visibility 0s 0.4s;
    overflow-y: auto;
    z-index: 199;
    visibility: hidden;
  }
  .nav-links.is-open{ transform: translateX(0); transition: transform 0.4s var(--ease); visibility: visible; }
  .nav-links a{ font-size: 1.15rem; }
  .nav-toggle{ display:flex; }
  .nav-cta .btn span.btn-label-full{ display:none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero{
  position: relative;
  min-height: 92vh;
  display:flex;
  align-items:flex-end;
  overflow:hidden;
  background: var(--navy-deep);
  color: var(--white);
}
.hero-media{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero-scrim{
  position:absolute; inset:0;
  background:
    linear-gradient(180deg, rgba(8,21,48,0.55) 0%, rgba(8,21,48,0.55) 35%, rgba(8,21,48,0.92) 100%),
    linear-gradient(100deg, rgba(8,21,48,0.75) 0%, rgba(8,21,48,0.25) 55%);
}
.hero-trace{
  position:absolute; inset:0;
  width:100%; height:100%;
  pointer-events:none;
  opacity: 0.9;
}
.hero-trace path{
  fill:none;
  stroke: var(--gold);
  stroke-width: 1.4;
  stroke-linecap: square;
  stroke-linejoin: miter;
  filter: drop-shadow(0 0 5px rgba(228,185,79,0.45));
}
/* The main HT bus reads heavier than the feeders tapped off it.
   Declared after .trace-path so it wins at equal specificity. */
.hero-trace .trace-path{ opacity: 0.55; }
.hero-trace .trace-bus{ stroke-width: 2.6; opacity: 0.85; }
.hero-trace circle{ fill: var(--gold-bright); filter: drop-shadow(0 0 6px rgba(228,185,79,0.8)); }
.hero-inner{
  position:relative;
  z-index:2;
  width:100%;
  max-width: var(--container);
  margin-inline:auto;
  padding: 8rem var(--gutter) 4rem;
}
.hero-tag{
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-bright);
  display:flex; align-items:center; gap:0.7em;
  margin-bottom: 1.4rem;
}
.hero-tag::before{ content:''; width: 34px; height:1.5px; background: var(--gold); }
.hero h1{
  color: var(--white);
  font-size: var(--step-5);
  font-weight: 500;
  max-width: 18ch;
  margin-bottom: 1.6rem;
  line-height: 1.06;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
/* The descriptive half of the tagline sits a step down so the brand line leads. */
.hero h1 em{
  display: block;
  margin-top: 0.35em;
  font-style: italic;
  color: var(--gold-bright);
  font-weight: 400;
  font-size: 0.5em;
  line-height: 1.2;
  letter-spacing: 0.005em;
  max-width: 26ch;
}
.hero-lede{
  max-width: 54ch;
  font-size: var(--step-0);
  line-height: 1.65;
  color: rgba(255,255,255,0.82);
  margin-bottom: 2.4rem;
  font-weight: 300;
}
.hero-actions{ display:flex; gap:1rem; flex-wrap:wrap; margin-bottom: 3.5rem; }
.hero-meta{
  display:flex;
  flex-wrap:wrap;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.18);
}
.hero-meta-item{ display:flex; flex-direction:column; gap:0.35rem; flex:1 1 220px; max-width:300px; }
.hero-meta-item .num{ font-family: var(--font-display); font-size: var(--step-1); color:var(--gold-bright); font-weight:500; letter-spacing:-0.01em; }
.hero-meta-item .label{ font-size: var(--step--1); line-height:1.5; color: rgba(255,255,255,0.68); }

.scroll-cue{
  position:absolute; right: var(--gutter); bottom: 2rem; z-index:2;
  display:flex; flex-direction:column; align-items:center; gap:0.6rem;
  color: rgba(255,255,255,0.55);
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing:0.2em; text-transform:uppercase;
}
.scroll-cue .line{ width:1px; height:38px; background: linear-gradient(var(--gold), transparent); animation: scrollpulse 2.2s ease-in-out infinite; }
@keyframes scrollpulse{ 0%,100%{ transform: scaleY(0.6); opacity:0.4; } 50%{ transform: scaleY(1); opacity:1; } }

/* ==========================================================================
   Page hero (interior pages, shorter)
   ========================================================================== */
.page-hero{
  position:relative;
  background: var(--navy);
  color: var(--white);
  overflow:hidden;
  padding: clamp(6.5rem,14vw,9rem) 0 clamp(3.5rem,6vw,5rem);
}
.page-hero::before{
  content:'';
  position:absolute; inset:0;
  background: radial-gradient(ellipse 60% 60% at 85% 0%, rgba(200,155,62,0.22), transparent 60%);
}
.page-hero .container{ position:relative; z-index:1; }
.page-hero h1{ color:var(--white); font-size: var(--step-4); font-weight:500; max-width: 20ch; }
.page-hero .lede{ max-width:56ch; color: rgba(255,255,255,0.78); font-size: var(--step-1); margin-top:1.2rem; font-weight:300; }
.breadcrumb{ font-family: var(--font-mono); font-size: 0.78rem; color: rgba(255,255,255,0.55); letter-spacing:0.05em; margin-bottom:1.5rem; }
.breadcrumb a:hover{ color: var(--gold-bright); }

/* ==========================================================================
   Momentum strip (qualitative growth pillars, no fabricated stats)
   ========================================================================== */
.momentum{
  background: var(--navy-deep);
  color: var(--white);
  position:relative;
}
.momentum-rail{
  display:flex;
  gap: 0;
  border-top: 1px solid var(--line-dark);
}
.momentum-item{
  flex:1;
  padding: 2.6rem clamp(1.2rem,2.5vw,2rem);
  border-right: 1px solid var(--line-dark);
  position:relative;
}
.momentum-item:last-child{ border-right:none; }
.momentum-item .mk{ font-family:var(--font-mono); color:var(--gold-bright); font-size:0.78rem; letter-spacing:0.12em; text-transform:uppercase; }
.momentum-item h3{ color:var(--white); font-size: var(--step-1); margin-top:0.6rem; font-weight:500; }
.momentum-item p{ color: rgba(255,255,255,0.65); font-size: var(--step--1); margin-top:0.5rem; }
@media (max-width: 900px){
  .momentum-rail{ flex-wrap:wrap; }
  .momentum-item{ flex: 1 1 50%; border-bottom:1px solid var(--line-dark); }
}
@media (max-width: 560px){ .momentum-item{ flex: 1 1 100%; } }

/* ==========================================================================
   Section headers
   ========================================================================== */
.section-head{ max-width: 60ch; margin-bottom: clamp(2.2rem, 4vw, 3.2rem); }
.section-head h2{ font-size: var(--step-3); font-weight:500; margin-top:0.7rem; }
.section-head p{ font-size: var(--step-1); color: var(--ink-soft); margin-top:1rem; font-weight:300; }
.section-head.center{ margin-inline:auto; text-align:center; }
.section-head.split{ display:flex; justify-content:space-between; align-items:flex-end; gap:2rem; max-width:none; }
@media (max-width: 700px){ .section-head.split{ flex-direction:column; align-items:flex-start; } }

/* ==========================================================================
   Cards
   ========================================================================== */
.card{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
}
.card:hover{ transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }

.service-card{ position:relative; overflow:hidden; }
.service-card .idx{ font-family: var(--font-mono); color: var(--gold-dim); font-size:0.8rem; letter-spacing:0.1em; }
.service-card h3{ font-size: var(--step-1); margin-top:0.9rem; font-weight:600; color:var(--navy); }
.service-card ul{ margin-top:1.1rem; display:flex; flex-direction:column; gap:0.55rem; }
.service-card li{ font-size: var(--step--1); color:var(--ink-soft); display:flex; gap:0.6em; align-items:flex-start; }
.service-card li::before{ content:''; width:5px; height:5px; border-radius:50%; background:var(--gold); margin-top:0.6em; flex-shrink:0; }

.project-card{ border-radius: var(--radius-lg); overflow:hidden; border:1px solid var(--line); background:var(--white); }
.project-card figure{ position:relative; aspect-ratio: 4/3; overflow:hidden; background:var(--cloud-dim); }
.project-card img{ width:100%; height:100%; object-fit:cover; transition: transform .8s var(--ease); }
.project-card:hover img{ transform: scale(1.07); }
.project-card .tag{
  position:absolute; top:1rem; left:1rem;
  background: rgba(8,21,48,0.75); backdrop-filter:blur(4px);
  color: var(--gold-bright); font-family:var(--font-mono); font-size:0.72rem;
  letter-spacing:0.08em; text-transform:uppercase;
  padding: 0.4em 0.8em; border-radius: 999px;
}
.project-card .body{ padding: 1.5rem 1.6rem 1.8rem; }
.project-card h3{ font-size: var(--step-1); font-weight:600; }
.project-card p{ color: var(--ink-soft); font-size: var(--step--1); margin-top:0.5rem; }
.project-card .meta{ display:flex; gap:1.2rem; margin-top:1rem; padding-top:1rem; border-top:1px solid var(--line); font-family:var(--font-mono); font-size:0.75rem; color:var(--steel); flex-wrap:wrap; }

/* Certificate plate — the scan speaks for itself, no caption needed. */
.cert-plate{
  border-radius: var(--radius);
  overflow:hidden;
  border:1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  cursor: zoom-in;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.cert-plate:hover{ transform: translateY(-4px); box-shadow: var(--shadow); }
.cert-plate img{ width:100%; height:auto; display:block; }

.cert-card{ text-align:center; padding: 2.4rem 1.8rem; }
.cert-card .cert-thumb{ border-radius: var(--radius-sm); overflow:hidden; border:1px solid var(--line); box-shadow: var(--shadow-sm); margin-bottom:1.5rem; cursor:zoom-in; }
.cert-card h3{ font-size: var(--step-1); }
.cert-card .cert-code{ font-family: var(--font-mono); font-size:0.78rem; color:var(--steel); margin-top:0.6rem; }
.cert-card .cert-dates{ font-size:0.8rem; color:var(--ink-soft); margin-top:0.9rem; line-height:1.7; }

.team-card{ text-align:left; }
.team-card figure{ aspect-ratio: 3/4; border-radius: var(--radius); overflow:hidden; margin-bottom:1.4rem; background: var(--cloud-dim); }
.team-card img{ width:100%; height:100%; object-fit:cover; }
.team-card .avatar-mono{
  width:100%; height:100%;
  display:flex; align-items:center; justify-content:center;
  background: linear-gradient(155deg, var(--navy), var(--navy-soft));
  color: var(--gold-bright);
  font-family: var(--font-display); font-size: 3.4rem; font-weight:500;
}
.team-card h3{ font-size: var(--step-1); }
.team-card .role{ color: var(--gold-dim); font-family:var(--font-mono); font-size:0.78rem; letter-spacing:0.06em; text-transform:uppercase; margin-top:0.35rem; }
.team-card p{ color: var(--ink-soft); font-size: var(--step--1); margin-top:0.9rem; }

.team-card.compact{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  background: var(--white);
}
.team-card.compact figure{ display:none; }
.team-card.compact .avatar-circle{
  width: 76px; height: 76px; border-radius: 50%;
  background: linear-gradient(155deg, var(--navy), var(--navy-soft));
  color: var(--gold-bright);
  display:flex; align-items:center; justify-content:center;
  font-family: var(--font-display); font-size: 1.5rem; font-weight:500;
  flex-shrink:0;
}
.team-card.compact .head-row{ display:flex; align-items:center; gap:1.1rem; margin-bottom:1.3rem; }

.partner-card{
  display:flex; align-items:center; justify-content:center;
  text-align:center; padding: 1.8rem 1.2rem;
  min-height: 108px;
  font-family: var(--font-display); font-weight:500; font-size: var(--step-0);
  color: var(--navy);
}

/* ==========================================================================
   Service icon
   ========================================================================== */
.icon-box{
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(155deg, #FFF8EA, #FBEFD2);
  color: var(--gold-dim);
  display:flex; align-items:center; justify-content:center;
  margin-bottom: 1.2rem;
  flex-shrink:0;
}
.icon-box svg{ width:30px; height:30px; }
.on-navy .icon-box{ background: rgba(200,155,62,0.14); color: var(--gold-bright); }
.service-card.feature{ display:flex; gap:1.4rem; align-items:flex-start; }
.service-card.feature .icon-box{ margin-bottom:0; }

.service-card.media-card{ padding:0; overflow:hidden; }
.service-card.media-card figure{ aspect-ratio:16/10; overflow:hidden; background:var(--cloud-dim); }
.service-card.media-card img{ width:100%; height:100%; object-fit:cover; transition: transform .8s var(--ease); }
.service-card.media-card:hover img{ transform: scale(1.06); }
.service-card.media-card .mc-body{ padding: 1.6rem 1.7rem 1.9rem; }
.service-card.media-card .icon-box{ width:44px; height:44px; margin-bottom:0.9rem; }
.service-card.media-card .icon-box svg{ width:22px; height:22px; }

/* ==========================================================================
   Company profile — stat band, project entries, execution flow
   ========================================================================== */
.stat-band{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat-tile{ background: var(--navy); padding: clamp(1.2rem, 2.5vw, 1.7rem); }
.stat-num{
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 500;
  line-height: 1;
  color: var(--gold-bright);
  letter-spacing: -0.02em;
}
.stat-num span{ font-size: 0.46em; letter-spacing: 0.01em; margin-left: 0.1em; }
.stat-tile p{
  margin-top: 0.7rem;
  font-size: var(--step--1);
  line-height: 1.5;
  color: rgba(255,255,255,0.72);
}

.pf-projects{ display:flex; flex-direction:column; gap: clamp(1.4rem, 3vw, 2.2rem); }
.pf-project{
  display:grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(1.2rem, 3vw, 2.2rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  align-items: stretch;
}
.pf-media{ position:relative; min-height: 200px; background: var(--cloud-dim); }
.pf-media img{ width:100%; height:100%; object-fit:cover; display:block; }
.pf-index{
  position:absolute; top: 0.9rem; left: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--navy);
  background: var(--gold-bright);
  padding: 0.3em 0.7em;
  border-radius: 3px;
}
.pf-body{ padding: clamp(1.3rem, 2.5vw, 1.9rem) clamp(1.3rem, 2.5vw, 1.9rem) clamp(1.3rem, 2.5vw, 1.9rem) 0; }
.pf-body h3{ font-size: var(--step-1); line-height:1.25; color: var(--navy); }
.pf-partner{
  font-size: var(--step--1);
  color: var(--navy);
  margin-top: 0.6rem;
  font-weight: 500;
}
.pf-partner span{
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
  display:block;
  margin-bottom: 0.2rem;
  font-weight: 400;
}
.pf-summary{ color: var(--ink-soft); font-size: var(--step--1); line-height:1.65; margin-top: 0.8rem; }
.pf-scope{ list-style:none; display:flex; flex-wrap:wrap; gap: 0.4rem; margin-top: 1rem; }
.pf-scope li{
  font-size: 0.74rem;
  color: var(--ink-soft);
  background: var(--cloud);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 0.32em 0.75em;
  line-height: 1.4;
}
@media (max-width: 820px){
  .pf-project{ grid-template-columns: 1fr; }
  .pf-media{ aspect-ratio: 16/9; min-height:0; }
  .pf-body{ padding: 0 clamp(1.2rem,4vw,1.6rem) clamp(1.4rem,4vw,1.8rem); }
}

/* Eight stages laid out 4x2 so the grid never leaves an orphan cell. */
.pf-flow{
  list-style:none;
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow:hidden;
}
@media (max-width: 900px){ .pf-flow{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px){ .pf-flow{ grid-template-columns: 1fr; } }
.pf-step{ background: var(--white); padding: clamp(1.1rem, 2vw, 1.5rem); }
.pf-step-n{
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--gold);
}
.pf-step h4{ font-size: var(--step-0); color: var(--navy); margin-top: 0.5rem; }
.pf-step p{ font-size: var(--step--1); color: var(--ink-soft); line-height:1.55; margin-top: 0.45rem; }

/* ==========================================================================
   Leadership cards — circular portrait above a self-contained bio panel
   ========================================================================== */
/* One person per full-width row: portrait sits above its own bio panel, and the
   proportions stay identical from mobile through desktop. */
.leader-grid{
  display:flex;
  flex-direction: column;
  gap: clamp(2.5rem, 5vw, 3.5rem);
  max-width: 760px;
  margin-inline: auto;
}
.leader-card{ display:flex; flex-direction:column; align-items:center; }
.leader-photo{
  width: 190px;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow:hidden;
  border: 6px solid var(--white);
  box-shadow: 0 10px 30px rgba(14,33,72,0.18);
  background: var(--navy);
  /* Overlaps the panel below so the two read as one unit. */
  position: relative;
  z-index: 2;
  margin-bottom: -95px;
}
.leader-photo img{ width:100%; height:100%; object-fit:cover; display:block; }
.leader-initials{
  width:100%; height:100%;
  display:flex; align-items:center; justify-content:center;
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--gold-bright);
  background: linear-gradient(155deg, var(--navy), var(--navy-soft));
}
.leader-body{
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: calc(95px + 1.8rem) clamp(1.4rem, 4vw, 2.2rem) clamp(1.8rem, 3vw, 2.2rem);
  text-align:center;
  width:100%;
  flex:1;
  display:flex; flex-direction:column;
}
.leader-body h3{ font-size: var(--step-1); color: var(--white); }
.leader-body .leader-role{
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-top: 0.45rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.16);
}
.leader-body p:last-child{
  margin-top: 1.1rem;
  font-size: var(--step--1);
  line-height: 1.7;
  color: rgba(255,255,255,0.78);
  text-align: left;
}

/* Named contact card — portrait beside the role it belongs to. */
.contact-person{ display:flex; gap:1.2rem; align-items:flex-start; }
.contact-person img{
  width: 96px; height: 96px; flex:0 0 auto;
  border-radius: var(--radius-sm);
  object-fit: cover;
}
@media (max-width: 420px){
  .contact-person{ flex-direction:column; }
  .contact-person img{ width:110px; height:110px; }
}

/* ==========================================================================
   Project rows — one project per full-width row, media alternating sides
   ========================================================================== */
.project-rows{ display:flex; flex-direction:column; gap: clamp(3rem, 6vw, 5.5rem); }
.project-row{
  display:grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.8rem, 4vw, 3.5rem);
  align-items:center;
}
.project-row:nth-child(even) .pr-media{ order: 2; }
.pr-media{
  border-radius: var(--radius-lg);
  overflow:hidden;
  box-shadow: var(--shadow);
  background: var(--cloud-dim);
}
.pr-media img{ width:100%; height:100%; object-fit:cover; aspect-ratio: 4/3; display:block; }
.pr-tag{
  display:inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  padding: 0.4em 0.85em;
  border:1px solid var(--line);
  border-radius: 100px;
  margin-bottom: 1rem;
}
.pr-body h3{ font-size: var(--step-2); line-height:1.2; }
.pr-lead{ color: var(--ink-soft); margin-top: 0.9rem; font-size: var(--step--1); line-height:1.7; }
.pr-specs{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 0.9rem 1.4rem;
  margin: 1.5rem 0;
  padding: 1.2rem 0;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.pr-specs dt{
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 0.3rem;
}
.pr-specs dd{ font-size: var(--step--1); color: var(--navy); font-weight:500; line-height:1.4; }
@media (max-width: 900px){
  .project-row{ grid-template-columns: 1fr; }
  .project-row:nth-child(even) .pr-media{ order: 0; }
}
@media (max-width: 460px){
  .pr-specs{ grid-template-columns: 1fr; }
}

/* ==========================================================================
   Tick list — commitment / differentiator bullets
   ========================================================================== */
.tick-list{ list-style:none; display:flex; flex-direction:column; gap:0.75rem; }
.tick-list li{
  position:relative;
  padding-left: 1.9rem;
  font-size: var(--step--1);
  line-height: 1.6;
  color: var(--ink-soft);
}
.tick-list li strong{ color: var(--navy); font-weight:600; }
.tick-list li::before{
  content:'';
  position:absolute; left:0; top:0.45em;
  width: 11px; height: 6px;
  border-left: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
}
.on-navy .tick-list li{ color: rgba(255,255,255,0.78); }
.on-navy .tick-list li strong{ color: var(--white); }

/* ==========================================================================
   Capability mosaic — asymmetric photo grid, lead tile spans 2x2
   ========================================================================== */
.mosaic{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  gap: clamp(0.7rem, 1.2vw, 1.1rem);
}
.mosaic-item{
  position:relative;
  overflow:hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  background: var(--navy-deep);
  box-shadow: var(--shadow-sm);
}
.mosaic-lead{ grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.mosaic-item img{
  width:100%; height:100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.mosaic-item:hover img{ transform: scale(1.05); }
.mosaic-item figcaption{
  position:absolute; inset:auto 0 0 0;
  padding: clamp(1rem, 2vw, 1.6rem);
  background: linear-gradient(transparent, rgba(9,17,38,0.55) 38%, rgba(9,17,38,0.92));
  color: var(--white);
}
.mosaic-item .mk{
  display:block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 0.35rem;
}
.mosaic-item figcaption p{
  font-size: var(--step--1);
  line-height:1.45;
  color: rgba(255,255,255,0.82);
  /* Body copy stays out of the way until the tile is engaged. */
  max-height:0; opacity:0; overflow:hidden;
  transition: max-height .45s var(--ease), opacity .35s ease, margin-top .45s var(--ease);
}
.mosaic-item:hover figcaption p,
.mosaic-item:focus-within figcaption p{ max-height:6em; opacity:1; margin-top:0.15rem; }
.mosaic-lead figcaption p{ max-height:6em; opacity:1; font-size: var(--step-0); }
@media (max-width: 820px){
  .mosaic{ grid-template-columns: repeat(2, 1fr); }
  .mosaic-lead{ grid-column: span 2; grid-row: auto; aspect-ratio: 16 / 10; }
  .mosaic-item figcaption p{ max-height:6em; opacity:1; }
}
@media (max-width: 520px){
  .mosaic{ grid-template-columns: 1fr; }
  .mosaic-lead{ grid-column: span 1; }
}

/* ==========================================================================
   Partner logo marquee
   ========================================================================== */
.marquee{
  overflow:hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track{
  display:flex;
  align-items:center;
  width:max-content;
  gap: clamp(1.4rem, 3vw, 2.4rem);
  animation: marquee-scroll 46s linear infinite;
}
.marquee:hover .marquee-track{ animation-play-state: paused; }
@keyframes marquee-scroll{ from{ transform:translateX(0); } to{ transform:translateX(-50%); } }
/* Every logo is pre-composited onto an identical 440x180 canvas, so a fixed
   box here makes the reel advance at a perfectly even visual rhythm. */
.marquee-item{
  flex: 0 0 auto;
  width: clamp(150px, 15vw, 200px);
  aspect-ratio: 440 / 180;
  display:flex; align-items:center; justify-content:center;
  opacity: 0.9;
  transition: opacity .35s ease, transform .35s ease;
}
.marquee-item:hover{ opacity: 1; transform: translateY(-3px); }
.marquee-item img{ width:100%; height:100%; object-fit:contain; }
@media (prefers-reduced-motion: reduce){ .marquee-track{ animation: none; } .marquee{ overflow-x:auto; } }

/* ==========================================================================
   Pillars (Quality / Cost / Safety / System)
   ========================================================================== */
.pillar{ padding: 2.2rem 0; border-top:1px solid var(--line); }
.pillar:first-child{ border-top:none; }
.pillar-row{ display:flex; gap: 2rem; align-items:baseline; }
.pillar .pk{ font-family: var(--font-mono); color: var(--gold-dim); font-size:0.85rem; flex-shrink:0; width: 3.5ch; }
.pillar h3{ font-size: var(--step-1); flex-shrink:0; width: 9ch; }
.pillar p{ color: var(--ink-soft); font-size: var(--step--1); }
@media (max-width: 700px){
  .pillar-row{ flex-wrap:wrap; }
  .pillar h3{ width:auto; }
}

/* ==========================================================================
   Timeline (About page story)
   ========================================================================== */
.timeline{ position:relative; padding-left: 2.2rem; border-left: 1.5px solid var(--line); }
.timeline-item{ position:relative; padding-bottom: 2.6rem; }
.timeline-item:last-child{ padding-bottom:0; }
.timeline-item::before{
  content:''; position:absolute; left:-2.2rem; top:0.3rem;
  width:11px; height:11px; border-radius:50%;
  background: var(--gold); box-shadow: 0 0 0 4px rgba(200,155,62,0.18);
}
.timeline-item .when{ font-family:var(--font-mono); color:var(--steel); font-size:0.78rem; letter-spacing:0.06em; text-transform:uppercase; }
.timeline-item h3{ font-size: var(--step-1); margin-top:0.4rem; }
.timeline-item p{ color: var(--ink-soft); margin-top:0.5rem; max-width:60ch; }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band{
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-soft) 100%);
  color:var(--white); border-radius: var(--radius-lg);
  padding: clamp(2.5rem,5vw,4rem);
  display:flex; align-items:center; justify-content:space-between; gap:2rem; flex-wrap:wrap;
  position:relative; overflow:hidden;
}
.cta-band h2{ color:var(--white); font-size: var(--step-3); max-width:18ch; font-weight:500; }
.cta-band p{ color:rgba(255,255,255,0.72); margin-top:0.8rem; max-width:46ch; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer{ background: var(--navy-deep); color: rgba(255,255,255,0.7); }
.footer-top{ padding: clamp(3rem,6vw,5rem) 0 3rem; border-bottom:1px solid var(--line-dark); }
.footer-grid{ display:grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 2.5rem; }
@media (max-width: 900px){ .footer-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .footer-grid{ grid-template-columns: 1fr; } }
.footer-brand img{ height:44px; width:auto; display:block; margin-bottom:1.2rem; }
.footer-brand p{ max-width:34ch; font-size: var(--step--1); }
.footer-col h4{ color:var(--white); font-family:var(--font-mono); font-size:0.78rem; letter-spacing:0.1em; text-transform:uppercase; margin-bottom:1.1rem; }
.footer-col ul{ display:flex; flex-direction:column; gap:0.7rem; }
.footer-col a{ font-size: var(--step--1); transition: color .3s ease; }
.footer-col a:hover{ color: var(--gold-bright); }
.footer-bottom{ padding: 1.6rem 0; display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:1rem; font-size:0.82rem; }
.footer-bottom .legal{ color: rgba(255,255,255,0.45); }
.social-row{ display:flex; gap:0.8rem; }
.social-row a{ width:38px; height:38px; border-radius:50%; border:1px solid var(--line-dark); display:flex; align-items:center; justify-content:center; transition: all .3s ease; }
.social-row a:hover{ border-color: var(--gold); background: rgba(200,155,62,0.12); }

/* ==========================================================================
   WhatsApp float
   ========================================================================== */
.whatsapp-float{
  position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 340;
  width: 58px; height:58px; border-radius:50%;
  background: #25D366; color:#fff;
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 10px 26px -6px rgba(37,211,102,0.6);
  transition: transform .35s var(--ease);
}
.whatsapp-float:hover{ transform: scale(1.08); }
.whatsapp-float svg{ width:28px; height:28px; }
.whatsapp-pulse{
  position:absolute; inset:0; border-radius:50%;
  border: 2px solid #25D366;
  animation: wapulse 2.4s ease-out infinite;
}
@keyframes wapulse{ 0%{ transform:scale(1); opacity:0.7; } 100%{ transform:scale(1.7); opacity:0; } }

/* ==========================================================================
   Chatbot widget
   ========================================================================== */
.chat-launcher{
  position: fixed; left: 1.5rem; bottom: 1.5rem; z-index: 340;
  width: 58px; height:58px; border-radius:50%;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: var(--navy-deep);
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 10px 26px -6px rgba(200,155,62,0.6);
  transition: transform .35s var(--ease);
}
.chat-launcher:hover{ transform: scale(1.08); }
.chat-launcher svg{ width:26px; height:26px; }

.chat-panel{
  position: fixed; left: 1.5rem; bottom: 5.6rem; z-index: 350;
  width: min(360px, calc(100vw - 3rem));
  max-height: min(70vh, 560px);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display:flex; flex-direction:column;
  overflow:hidden;
  opacity:0; transform: translateY(16px) scale(0.98);
  pointer-events:none;
  transition: all .35s var(--ease);
  border: 1px solid var(--line);
}
.chat-panel.is-open{ opacity:1; transform:translateY(0) scale(1); pointer-events:auto; }
.chat-head{ background: var(--navy); color:var(--white); padding: 1.1rem 1.3rem; display:flex; align-items:center; gap:0.8rem; }
.chat-head .dot{ width:9px; height:9px; border-radius:50%; background:#3ECF8E; box-shadow: 0 0 0 3px rgba(62,207,142,0.25); }
.chat-head strong{ display:block; font-size:0.92rem; }
.chat-head span{ display:block; font-size:0.74rem; color: rgba(255,255,255,0.6); }
.chat-close{ margin-left:auto; opacity:0.7; }
.chat-close:hover{ opacity:1; }
.chat-body{ flex:1; overflow-y:auto; padding: 1.1rem; display:flex; flex-direction:column; gap:0.8rem; background: var(--cloud); }
.chat-msg{ max-width: 86%; padding: 0.7em 0.95em; border-radius: 14px; font-size:0.88rem; line-height:1.5; }
.chat-msg.bot{ background: var(--white); border:1px solid var(--line); align-self:flex-start; border-bottom-left-radius:4px; }
.chat-msg.user{ background: var(--navy); color:var(--white); align-self:flex-end; border-bottom-right-radius:4px; }
.chat-msg.typing{ display:flex; gap:5px; align-items:center; padding:0.9em 1.1em; }
.chat-msg.typing span{ width:6px; height:6px; border-radius:50%; background:var(--gold-dim); opacity:0.5; animation: typingdot 1.2s ease-in-out infinite; }
.chat-msg.typing span:nth-child(2){ animation-delay:0.18s; }
.chat-msg.typing span:nth-child(3){ animation-delay:0.36s; }
@keyframes typingdot{ 0%,60%,100%{ opacity:0.35; transform:translateY(0); } 30%{ opacity:1; transform:translateY(-3px); } }
.chat-msg.bot .cursor{ display:inline-block; width:2px; height:1em; background:var(--navy); margin-left:2px; vertical-align:-2px; animation: caretblink 0.9s steps(1) infinite; }
@keyframes caretblink{ 50%{ opacity:0; } }
.chat-quick{ display:flex; flex-wrap:wrap; gap:0.5rem; padding: 0 1.1rem 1rem; background:var(--cloud); }
.chat-quick button{
  font-size:0.78rem; padding:0.5em 0.9em; border-radius:999px;
  border:1px solid var(--line); background:var(--white); color:var(--navy);
  transition: all .25s ease;
}
.chat-quick button:hover{ border-color:var(--gold); background: #FFF8EA; }
.chat-foot{ padding: 0.8rem; border-top:1px solid var(--line); display:flex; gap:0.6rem; background:var(--white); }
.chat-foot input{ flex:1; border:1px solid var(--line); border-radius:999px; padding:0.65em 1em; font-size:0.86rem; }
.chat-foot input:focus{ outline:none; border-color:var(--gold); }
.chat-foot button{ width:40px; height:40px; border-radius:50%; background:var(--navy); color:var(--white); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.chat-foot button:hover{ background: var(--gold); color:var(--navy-deep); }

/* ==========================================================================
   Forms
   ========================================================================== */
.form-field{ display:flex; flex-direction:column; gap:0.5rem; margin-bottom:1.3rem; }
.form-field label{ font-size:0.85rem; font-weight:600; color:var(--navy); }
.form-field input, .form-field textarea, .form-field select{
  border:1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 0.85em 1em; background:var(--white); font-size:0.95rem;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus{
  outline:none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(200,155,62,0.15);
}
.form-note{ font-size:0.78rem; color:var(--ink-soft); margin-top:0.5rem; }
.form-status{ font-size:0.88rem; margin-top:1rem; padding:0.8em 1em; border-radius: var(--radius-sm); display:none; }
.form-status.show{ display:block; }
.form-status.ok{ background:#E9F6EF; color:var(--success); }
.form-status.err{ background:#FBEAEA; color:#A6362C; }

/* ==========================================================================
   Reveal / scroll animation utilities
   ========================================================================== */
.reveal{ opacity:0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in-view{ opacity:1; transform:none; }
.reveal-stagger > *{ opacity:0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal-stagger.in-view > *{ opacity:1; transform:none; }
.reveal-stagger.in-view > *:nth-child(1){ transition-delay: 0.02s; }
.reveal-stagger.in-view > *:nth-child(2){ transition-delay: 0.10s; }
.reveal-stagger.in-view > *:nth-child(3){ transition-delay: 0.18s; }
.reveal-stagger.in-view > *:nth-child(4){ transition-delay: 0.26s; }
.reveal-stagger.in-view > *:nth-child(5){ transition-delay: 0.34s; }
.reveal-stagger.in-view > *:nth-child(6){ transition-delay: 0.42s; }
.reveal-stagger.in-view > *:nth-child(7){ transition-delay: 0.50s; }
.reveal-stagger.in-view > *:nth-child(8){ transition-delay: 0.58s; }

/* ==========================================================================
   Misc utility
   ========================================================================== */
.divider-trace{ width:100%; height:32px; opacity:0.5; }
.divider-trace path{ fill:none; stroke:var(--line); stroke-width:1.5; }
.divider-trace circle{ fill:var(--gold); }
.text-gold{ color: var(--gold-dim); }
.badge-line{ display:inline-flex; align-items:center; gap:0.6rem; font-family:var(--font-mono); font-size:0.78rem; color:var(--steel); }
.badge-line .dot{ width:6px; height:6px; border-radius:50%; background:var(--gold); }
.skip-link{
  position:absolute; left:-999px; top:auto;
  background:var(--navy); color:var(--white); padding:0.8em 1.2em; z-index:999; border-radius: 0 0 8px 0;
}
.skip-link:focus{ left:0; top:0; }
.map-embed{ border-radius: var(--radius-lg); overflow:hidden; border:1px solid var(--line); filter: grayscale(0.15); }
.map-embed iframe{ width:100%; height:100%; min-height:340px; border:0; }

.lightbox{
  position:fixed; inset:0; z-index:500; background:rgba(8,15,30,0.9);
  display:flex; align-items:center; justify-content:center; padding:2rem;
  opacity:0; pointer-events:none; transition: opacity .3s ease;
}
.lightbox.is-open{ opacity:1; pointer-events:auto; }
.lightbox img{ max-width:min(900px,92vw); max-height:88vh; border-radius:8px; box-shadow: var(--shadow-lg); }
.lightbox-close{ position:absolute; top:1.5rem; right:1.5rem; color:#fff; font-size:2rem; line-height:1; }

/* ==========================================================================
   Brochure / one-pager
   ========================================================================== */
.glance-strip{ display:flex; flex-wrap:wrap; gap:0.7rem; }
.glance-chip{
  font-family:var(--font-mono); font-size:0.78rem; color:var(--navy);
  background:var(--cloud); border:1px solid var(--line); border-radius:999px;
  padding:0.55em 1.1em; display:inline-flex; align-items:center; gap:0.5em;
}
.glance-chip .dot{ width:6px; height:6px; border-radius:50%; background:var(--gold); }
.mini-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:0.9rem; }
@media (max-width:700px){ .mini-grid{ grid-template-columns:repeat(2,1fr); } }
.mini-service{ border:1px solid var(--line); border-radius:var(--radius-sm); padding:1.1rem; display:flex; gap:0.7rem; align-items:flex-start; min-width:0; }
.mini-service .icon-box{ width:36px; height:36px; margin-bottom:0; }
.mini-service .icon-box svg{ width:18px; height:18px; }
.mini-service h4{ font-size:0.92rem; color:var(--navy); font-weight:600; min-width:0; overflow-wrap:break-word; }
.print-bar{ display:flex; justify-content:flex-end; padding:0.9rem var(--gutter); background:var(--cloud); border-bottom:1px solid var(--line); }

/* ==========================================================================
   Print — turns the company profile into a branded, shareable A4 catalogue.
   Screen-only chrome is dropped, brand colour is forced to render, and every
   component gets explicit break rules so nothing splits across a page.
   ========================================================================== */
.print-cover{ display:none; }
.print-contact{ display:none; }

@media print{
  /* Zero page margin so colour bands run edge to edge; each section supplies
     its own inset instead, which keeps the sheet fully occupied. */
  @page{
    size: A4;
    margin: 0;
  }
  @page cover{ margin: 0; }

  *, *::before, *::after{
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  html, body{ background:#fff !important; }
  body{ font-size: 9.6pt; line-height: 1.5; color: #12151C; }

  /* --- drop screen-only chrome --- */
  .site-header, .site-footer, .whatsapp-float, .chat-launcher, .chat-panel,
  .lightbox, .print-bar, .scroll-cue, .btn, .breadcrumb, .marquee{
    display: none !important;
  }
  .hero-trace{ display:none !important; }
  *{ animation: none !important; transition: none !important; }

  /* Reveal-on-scroll must never leave printed content invisible. */
  .reveal, .reveal-stagger > *{ opacity:1 !important; transform:none !important; }

  a[href]{ color: inherit; text-decoration: none; }

  /* --- cover page --- */
  .print-cover{
    display: flex !important;
    flex-direction: column;
    page: cover;
    break-after: page;
    height: 297mm;
    width: 210mm;
    padding: 16mm 15mm 12mm;
    background: linear-gradient(160deg, #0E2148 0%, #081530 100%) !important;
    color: #fff;
    box-sizing: border-box;
  }
  .pc-top{ display:flex; align-items:center; justify-content:space-between; }
  .pc-logo{ height: 20mm; width:auto; }
  .pc-eyebrow{
    font-family: var(--font-mono); font-size: 8pt; letter-spacing: 0.16em;
    text-transform: uppercase; color: #E4B94F;
  }
  .pc-mid{ margin-top: 16mm; }
  .pc-title{
    font-family: var(--font-display); font-size: 27pt; line-height: 1.12;
    color:#fff; font-weight: 600; letter-spacing:-0.01em;
  }
  .pc-title em{ color:#E4B94F; font-style: italic; font-weight: 400; }
  .pc-tag{
    margin-top: 6mm; font-size: 10.5pt; line-height:1.5;
    color: rgba(255,255,255,0.82); max-width: 62%;
  }
  .pc-hero{
    margin-top: auto; border-radius: 3mm; overflow:hidden; height: 78mm;
  }
  .pc-hero img{ width:100%; height:100%; object-fit:cover; }
  .pc-stats{
    display:grid; grid-template-columns: repeat(4,1fr); gap: 4mm;
    margin-top: 8mm; padding-top: 6mm;
    border-top: 0.4mm solid rgba(255,255,255,0.28);
  }
  .pc-stats strong{
    display:block; font-family: var(--font-display); font-size: 15pt; color:#E4B94F;
  }
  .pc-stats span{ font-size: 7.6pt; color: rgba(255,255,255,0.7); line-height:1.35; }
  .pc-foot{
    margin-top: 8mm; display:flex; justify-content:space-between;
    font-size: 7.8pt; color: rgba(255,255,255,0.62);
  }

  /* --- section rhythm --- */
  /* Page margin is 0, so the inset lives here and colour reaches the paper edge. */
  .section, .section-tight{ padding: 9mm 13mm !important; }
  .container, .container-narrow{ max-width:none !important; padding-inline:0 !important; }

  /* Dark bands keep their colour; the cover already set colour-adjust. */
  .on-navy{ background: #0E2148 !important; color:#fff !important; border-radius: 0; }
  .on-navy h2, .on-navy h3, .on-navy h4, .on-navy strong{ color:#fff !important; }
  .on-cloud{ background:#F5F7FA !important; border-radius: 0; }

  .page-hero{
    background: #0E2148 !important; color:#fff !important;
    padding: 13mm !important; border-radius: 0; break-after: avoid;
  }
  .page-hero h1{ color:#fff !important; font-size: 20pt; }
  .page-hero .lede{ color: rgba(255,255,255,0.82) !important; font-size: 10pt; }

  h1{ font-size: 20pt; } h2{ font-size: 15pt; } h3{ font-size: 11.5pt; } h4{ font-size: 10pt; }
  h1, h2, h3, h4{ break-after: avoid; }
  /* Keeps an eyebrow+heading block from being stranded at the foot of a page
     with its content starting on the next one. */
  .section-head{ break-inside: avoid; break-after: avoid; }
  p, li{ orphans: 3; widows: 3; }

  /* --- component break control --- */
  .stat-band{ break-inside: avoid; }
  .stat-tile{ background:#0E2148 !important; padding: 5mm !important; }
  .stat-num{ font-size: 15pt !important; color:#E4B94F !important; }
  .stat-tile p{ color: rgba(255,255,255,0.75) !important; font-size: 7.8pt !important; }

  /* Stack media over body and let the cell collapse to the image, otherwise the
     grid column stretches and leaves a grey band under the photo. */
  .pf-project{
    break-inside: avoid; page-break-inside: avoid;
    border:0.3mm solid #DCE1E8; margin-bottom: 5mm;
    grid-template-columns: 1fr !important;
  }
  /* The <=820px breakpoint puts aspect-ratio:16/9 on .pf-media; in print that
     makes the box taller than the image and leaves a dead band underneath. */
  .pf-media{
    min-height:0; height:auto; background:none !important;
    aspect-ratio: auto !important;
    display:block;
  }
  .pf-media img{ height: 50mm; width:100%; object-fit:cover; display:block; }
  .pf-body{ padding: 5mm !important; }
  .pf-scope li{ font-size: 7.2pt; padding: 0.9mm 2mm; }
  .pf-flow{ break-inside: avoid; }
  .pf-step{ padding: 4mm !important; }
  .pf-step p{ font-size: 7.8pt; }

  .leader-grid{ max-width:none; gap: 8mm; }
  .leader-card{ break-inside: avoid; page-break-inside: avoid; }
  .leader-photo{ width: 34mm; height: 34mm; margin-bottom: -17mm; }
  .leader-body{ background:#0E2148 !important; padding: calc(17mm + 5mm) 6mm 6mm !important; }
  .leader-body p:last-child{ color: rgba(255,255,255,0.8) !important; font-size: 8.6pt; }

  .card, .cert-plate, .mini-service, .tick-list li{ break-inside: avoid; }

  /* The three ISO certificates must stay on one row, side by side. */
  .grid-3{ grid-template-columns: repeat(3, 1fr) !important; }
  .grid-4{ grid-template-columns: repeat(4, 1fr) !important; }
  .grid-2{ grid-template-columns: repeat(2, 1fr) !important; }
  .cert-plate{ padding: 3mm !important; }
  .cert-plate img{ width:100%; height:auto; max-height:none; display:block; }
  .grid{ gap: 4mm !important; }
  figure, img{ break-inside: avoid; }
  img{ max-width:100% !important; }

  /* Major sections start clean rather than dangling two lines onto a page. */
  .pf-projects{ break-before: auto; }
  section.on-navy, section.on-cloud{ break-inside: auto; }

  /* Keep compact banded sections whole. Splitting them strands the heading on
     one page and drops the content onto the next without its background. */
  section:has(.cert-plate),
  section:has(.stat-band),
  section:has(.pf-flow),
  section:has(.print-contact){ break-inside: avoid; }

  .screen-only{ display:none !important; }

  /* --- print back cover --- */
  .print-contact{
    display:block !important;
    break-inside: avoid;
    margin-top: 8mm;
    padding: 9mm;
    background:#081530 !important;
    border-radius: 2mm;
    text-align:center;
    color:#fff;
  }
  .pcx-logo{ height: 16mm; width:auto; margin: 0 auto 6mm; }
  .pcx-grid{
    display:grid; grid-template-columns: repeat(3,1fr); gap: 5mm;
    padding: 5mm 0; margin-bottom: 4mm;
    border-top: 0.3mm solid rgba(255,255,255,0.22);
    border-bottom: 0.3mm solid rgba(255,255,255,0.22);
  }
  .pcx-grid span{
    display:block; font-family: var(--font-mono); font-size: 7pt;
    letter-spacing: 0.14em; text-transform: uppercase;
    color:#E4B94F; margin-bottom: 1.5mm;
  }
  .pcx-grid strong{ font-size: 9.5pt; color:#fff; font-weight:500; }
  .pcx-addr{ font-size: 8.6pt; color: rgba(255,255,255,0.8); line-height:1.6; }
  .pcx-iso{
    margin-top: 4mm; font-family: var(--font-mono); font-size: 7pt;
    letter-spacing: 0.08em; color: rgba(255,255,255,0.55);
  }
}
