/* ============================================================================
   EMEC — Electromechanical Engineering & Contracting Co.
   Design system: "Control Room" — cool graphite · steel · one energized orange.
   Part of SEC Group. Static site, no build. Shared font: Metropolis (family DNA).
   Signature: orange "current line" routing between sections + engineering ticks.
   ============================================================================ */

/* ---- Fonts ---------------------------------------------------------------- */
@font-face{font-family:Metropolis;src:url(../fonts/Metropolis-Light.woff2) format("woff2");font-weight:300;font-style:normal;font-display:swap}
@font-face{font-family:Metropolis;src:url(../fonts/Metropolis-Regular.woff2) format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:Metropolis;src:url(../fonts/Metropolis-Medium.woff2) format("woff2");font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:Metropolis;src:url(../fonts/Metropolis-SemiBold.woff2) format("woff2");font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:Metropolis;src:url(../fonts/Metropolis-Bold.woff2) format("woff2");font-weight:700;font-style:normal;font-display:swap}
/* One family — Metropolis — carried from Light (300) to Bold (700). Strength comes
   from weight + scale + tight tracking (matched to SEC Interiors), not a second face. */

/* ---- Tokens --------------------------------------------------------------- */
:root{
  /* ground */
  --graphite:#0E1214;        /* page ground, cool near-black */
  --graphite-2:#131A1E;      /* alternating sections / raised */
  --graphite-3:#1A2328;      /* cards, inset panels */
  --graphite-4:#222D33;      /* hover raise */
  /* neutral / line (SEC family steel-grey DNA) */
  --steel:#8A9196;
  --steel-dim:#5C656B;
  --line:rgba(138,145,150,.16);
  --line-soft:rgba(138,145,150,.09);
  --grid:rgba(138,145,150,.055);
  /* text */
  --ice:#E8ECEE;             /* primary text on dark */
  --ice-2:#AEB7BC;           /* secondary */
  --ice-3:#7E888D;           /* tertiary / captions */
  /* accent — the single energized orange */
  --orange:#E8711F;
  --orange-bright:#FF8A33;
  --orange-deep:#BF560F;
  --orange-glow:rgba(232,113,31,.5);
  --orange-wash:rgba(232,113,31,.09);

  --font-display:"Metropolis",system-ui,-apple-system,Segoe UI,sans-serif;
  --font-body:"Metropolis",system-ui,-apple-system,Segoe UI,sans-serif;
  --font-label:"Metropolis",system-ui,-apple-system,Segoe UI,sans-serif;

  --container:min(1280px,92vw);
  --gutter:clamp(1.25rem,4vw,2rem);
  --section-y:clamp(4.5rem,9vw,8.5rem);
  --radius:3px;              /* precision, not softness */

  --ease:cubic-bezier(.22,1,.36,1);
  --ease-io:cubic-bezier(.65,0,.35,1);
}

/* ---- Reset ---------------------------------------------------------------- */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
body{
  font-family:var(--font-body);
  font-weight:400;
  font-size:1.0625rem;
  line-height:1.65;
  color:var(--ice-2);
  background:var(--graphite);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  overflow-x:hidden;
  /* iOS footer-gap gate: full-height flex column, dvh wins over vh */
  min-height:100vh;
  min-height:100dvh;
  display:flex;
  flex-direction:column;
}
main{flex:1 0 auto}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;background:none;border:none;cursor:pointer}
ul{list-style:none}
:focus-visible{outline:2px solid var(--orange);outline-offset:3px;border-radius:2px}
::selection{background:var(--orange);color:#0A0D0F}

/* ---- Typography ----------------------------------------------------------- */
h1,h2,h3,h4{font-family:var(--font-display);color:var(--ice);font-weight:600;line-height:1.02;letter-spacing:-.02em}
.display{font-size:clamp(2.9rem,7.6vw,6.8rem);font-weight:700;letter-spacing:-.035em;line-height:.96;text-wrap:balance}
.h2{font-size:clamp(2rem,4.4vw,3.6rem);font-weight:700;letter-spacing:-.025em;line-height:1.02;text-wrap:balance}
.h3{font-size:clamp(1.3rem,2vw,1.65rem);font-weight:600;letter-spacing:-.015em;color:var(--ice)}
.lead{font-size:clamp(1.1rem,1.7vw,1.35rem);line-height:1.6;color:var(--ice-2);font-weight:300}
strong,b{font-weight:600;color:var(--ice)}
.text-orange{color:var(--orange)}

/* mono technical label / eyebrow */
.label{
  font-family:var(--font-label);font-size:.72rem;font-weight:500;
  letter-spacing:.18em;text-transform:uppercase;color:var(--steel);
  display:inline-flex;align-items:center;gap:.6em;
}
.label::before{content:"";width:1.6em;height:1px;background:var(--orange);flex:none}
.label--plain::before{display:none}
.mono{font-family:var(--font-label);font-variant-numeric:tabular-nums}

/* ---- Layout helpers ------------------------------------------------------- */
.wrap{width:var(--container);margin-inline:auto}
.section{padding-block:var(--section-y);position:relative}
.section--alt{background:var(--graphite-2)}
.section--line{border-top:1px solid var(--line)}
.grid{display:grid;gap:clamp(1.5rem,3vw,2.75rem)}
.cols-2{grid-template-columns:repeat(2,1fr)}
.cols-3{grid-template-columns:repeat(3,1fr)}
.cols-4{grid-template-columns:repeat(4,1fr)}
@media (max-width:900px){.cols-3,.cols-4{grid-template-columns:repeat(2,1fr)}}
@media (max-width:620px){.cols-2,.cols-3,.cols-4{grid-template-columns:1fr}}

/* blueprint grid background (subtle, technical) */
.blueprint{
  background-image:
    linear-gradient(var(--grid) 1px,transparent 1px),
    linear-gradient(90deg,var(--grid) 1px,transparent 1px);
  background-size:clamp(44px,5vw,64px) clamp(44px,5vw,64px);
}

/* engineering corner-ticks — frames a block like a drawing viewport */
.framed{position:relative}
.framed::before,.framed::after{
  content:"";position:absolute;width:18px;height:18px;pointer-events:none;
  border:1px solid var(--steel-dim);
}
.framed::before{top:0;left:0;border-right:0;border-bottom:0}
.framed::after{bottom:0;right:0;border-left:0;border-top:0}

/* section index tag (EMEC — 02 · Disciplines) */
.sec-index{
  font-family:var(--font-label);font-size:.7rem;letter-spacing:.2em;text-transform:uppercase;
  color:var(--ice-3);display:flex;align-items:center;gap:.7em;margin-bottom:1.5rem;
}
.sec-index b{color:var(--orange);font-weight:600}
.sec-index::after{content:"";flex:1;height:1px;background:var(--line);max-width:120px}

/* ---- Buttons -------------------------------------------------------------- */
.btn{
  display:inline-flex;align-items:center;gap:.7em;position:relative;
  font-family:var(--font-label);font-size:.78rem;font-weight:500;letter-spacing:.14em;text-transform:uppercase;
  padding:.95em 1.5em;border-radius:var(--radius);transition:all .4s var(--ease);
  color:#0B0E10;background:var(--orange);
}
.btn .arw{transition:transform .4s var(--ease)}
.btn:hover{background:var(--orange-bright)}
.btn:hover .arw{transform:translateX(5px)}
.btn--ghost{background:transparent;color:var(--ice);border:1px solid var(--line)}
.btn--ghost:hover{background:transparent;border-color:var(--orange);color:var(--orange)}
.link-arrow{
  font-family:var(--font-label);font-size:.78rem;font-weight:500;letter-spacing:.12em;text-transform:uppercase;
  color:var(--ice);display:inline-flex;align-items:center;gap:.6em;transition:color .3s var(--ease);
}
.link-arrow .arw{color:var(--orange);transition:transform .4s var(--ease)}
.link-arrow:hover{color:var(--orange)}
.link-arrow:hover .arw{transform:translateX(5px)}

/* ---- Header --------------------------------------------------------------- */
.hdr{
  position:fixed;top:0;left:0;right:0;z-index:100;
  display:flex;align-items:center;justify-content:space-between;
  padding:1.05rem var(--gutter);
  transition:background .4s var(--ease),padding .4s var(--ease);
  border-bottom:1px solid transparent;
}
.hdr.scrolled{background:rgba(14,18,20,.82);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-bottom-color:var(--line);padding-block:.8rem}
body.menu-open .hdr{background:var(--graphite);border-bottom-color:transparent}
.hdr__logo{display:inline-flex;align-items:center;z-index:120}
.hdr__logo img{height:30px;width:auto;display:block}
.hdr__actions{display:flex;align-items:center;gap:1.1rem;z-index:120}

/* burger — orange pill, bars morph to X */
.burger{
  position:relative;width:52px;height:40px;border-radius:999px;
  display:inline-grid;place-items:center;background:var(--orange);color:#0B0E10;
  transition:background .3s var(--ease);
}
.burger:hover{background:var(--orange-bright)}
.burger .bars{position:relative;width:20px;height:12px}
.burger .bars span{position:absolute;left:0;right:0;height:2px;background:currentColor;border-radius:2px;
  transition:transform .35s var(--ease),top .35s var(--ease),opacity .2s var(--ease)}
.burger .bars span:nth-child(1){top:0}
.burger .bars span:nth-child(2){top:5px}
.burger .bars span:nth-child(3){top:10px}
.menu-open .burger .bars span:nth-child(1){top:5px;transform:rotate(45deg)}
.menu-open .burger .bars span:nth-child(2){opacity:0}
.menu-open .burger .bars span:nth-child(3){top:5px;transform:rotate(-45deg)}

/* ---- Overlay menu --------------------------------------------------------- */
.menu-overlay{
  position:fixed;inset:0;z-index:99;background:var(--graphite);
  display:grid;align-content:center;
  padding:calc(var(--gutter) + 4.5rem) var(--gutter) var(--gutter);
  opacity:0;pointer-events:none;transform:translateY(-3%);
  transition:opacity .35s var(--ease),transform .5s var(--ease);
  overflow-y:auto;
}
.menu-overlay::before{content:"";position:absolute;inset:0;pointer-events:none;
  background-image:linear-gradient(var(--grid) 1px,transparent 1px),linear-gradient(90deg,var(--grid) 1px,transparent 1px);
  background-size:clamp(44px,5vw,64px) clamp(44px,5vw,64px)}
.menu-overlay.is-open{opacity:1;pointer-events:auto;transform:none}
.menu-inner{
  position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,300px);
  gap:clamp(2rem,5vw,5rem);width:var(--container);margin:0 auto;align-items:center;
}
@media (max-width:860px){
  .menu-overlay{align-content:start;padding-top:5rem;padding-bottom:0;overflow:hidden}
  .menu-inner{grid-template-columns:1fr;gap:2rem;max-height:calc(100dvh - 5rem);overflow-y:auto;padding:1.4rem 0 2.5rem;align-items:start}
}
.menu-nav{list-style:none}
.menu-nav li{border-top:1px solid var(--line);overflow:hidden;
  opacity:0;transform:translate3d(0,24px,0);
  transition:opacity .5s var(--ease),transform .5s var(--ease)}
.menu-nav li:last-child{border-bottom:1px solid var(--line)}
.menu-overlay.is-open .menu-nav li{opacity:1;transform:none}
.menu-overlay.is-open .menu-nav li:nth-child(1){transition-delay:.10s}
.menu-overlay.is-open .menu-nav li:nth-child(2){transition-delay:.15s}
.menu-overlay.is-open .menu-nav li:nth-child(3){transition-delay:.20s}
.menu-overlay.is-open .menu-nav li:nth-child(4){transition-delay:.25s}
.menu-overlay.is-open .menu-nav li:nth-child(5){transition-delay:.30s}
.menu-overlay.is-open .menu-nav li:nth-child(6){transition-delay:.35s}
@media (prefers-reduced-motion:reduce){.menu-nav li{opacity:1;transform:none;transition:none}}
.menu-nav a{
  display:flex;align-items:baseline;justify-content:space-between;gap:1.5rem;
  padding:clamp(.7rem,1.6vw,1.15rem) 0;
  font-family:var(--font-display);font-size:clamp(2rem,6.2vw,4.6rem);font-weight:700;
  letter-spacing:-.035em;line-height:1;color:var(--ice);
  transition:color .3s var(--ease),transform .35s var(--ease);
}
.menu-nav a .num{font-family:var(--font-label);font-size:.78rem;font-weight:500;letter-spacing:.2em;color:var(--ice-3);transition:color .3s var(--ease);align-self:center}
.menu-nav a:hover,.menu-nav a:focus-visible{color:var(--orange);transform:translateX(10px)}
.menu-nav a:hover .num,.menu-nav a:focus-visible .num{color:var(--orange)}
.menu-nav a[aria-current=page],.menu-nav a[aria-current=page] .num{color:var(--orange)}
.menu-overlay:focus,.menu-overlay:focus-visible{outline:none}

.menu-aside{display:grid;gap:1.5rem;align-self:center}
@media (max-width:860px){.menu-aside{align-self:start}}
.menu-aside .col h4{font-family:var(--font-label);font-size:.64rem;font-weight:600;letter-spacing:.18em;text-transform:uppercase;color:var(--ice-3);margin-bottom:.65rem}
.menu-aside .col a,.menu-aside .col p{display:block;font-size:.92rem;color:var(--ice-2);line-height:1.6;transition:color .3s var(--ease)}
.menu-aside .col a:hover{color:var(--orange)}
.menu-aside .menu-cta{justify-self:start;margin-top:.3rem}

/* header social icons (SECi pattern) */
.icon-btn{
  width:40px;height:40px;display:inline-grid;place-items:center;border-radius:999px;
  color:var(--ice-2);transition:background .3s var(--ease),color .3s var(--ease);
}
.icon-btn:hover{background:rgba(232,113,31,.12);color:var(--orange)}
.icon-btn svg{width:18px;height:18px}
@media (max-width:560px){.hdr__actions .icon-btn{display:none}}

/* ---- Floating brochure button + pulsating go-to-top ----------------------- */
.brochure-cta{
  position:fixed;right:clamp(14px,3vw,28px);bottom:clamp(14px,3vw,28px);z-index:70;
  display:inline-flex;align-items:center;gap:.55rem;padding:.72rem 1.15rem;border-radius:999px;
  background:var(--orange);color:#0B0E10;font-family:var(--font-label);font-weight:600;font-size:.82rem;
  letter-spacing:.02em;line-height:1;box-shadow:0 8px 24px rgba(0,0,0,.4);
  transition:transform .2s var(--ease),box-shadow .2s var(--ease),background .2s var(--ease);
}
.brochure-cta svg{width:17px;height:17px;flex:0 0 auto}
.brochure-cta:hover{background:var(--orange-bright);color:#0B0E10;transform:translateY(-2px);box-shadow:0 12px 30px rgba(0,0,0,.5)}
@media (max-width:560px){.brochure-cta{padding:.6rem .85rem;font-size:.74rem}.brochure-cta svg{width:15px;height:15px}.brochure-cta span{display:none}}
@media (prefers-reduced-motion:reduce){.brochure-cta{transition:none}.brochure-cta:hover{transform:none}}

.to-top{
  position:fixed;right:clamp(14px,3vw,28px);bottom:calc(clamp(14px,3vw,28px) + 3.9rem);z-index:71;
  width:44px;height:44px;display:grid;place-items:center;border-radius:999px;
  background:var(--orange);color:#0B0E10;box-shadow:0 8px 24px rgba(0,0,0,.4);
  opacity:0;visibility:hidden;transform:translateY(8px);
  transition:opacity .3s var(--ease),transform .3s var(--ease),background .2s var(--ease);
}
.to-top svg{width:20px;height:20px}
.to-top:hover{background:var(--orange-bright)}
.to-top.is-visible{opacity:1;visibility:visible;animation:toTopBreathe 2s ease-in-out infinite}
@keyframes toTopBreathe{0%,100%{transform:scale(1)}50%{transform:scale(1.12)}}
.to-top.is-visible::after{
  content:"";position:absolute;inset:0;border-radius:inherit;z-index:-1;pointer-events:none;
  box-shadow:0 0 0 2px var(--orange);animation:toTopPing 2s ease-out infinite;
}
@keyframes toTopPing{0%{transform:scale(1);opacity:.75}100%{transform:scale(2.1);opacity:0}}
@media (max-width:560px){.to-top{width:40px;height:40px;bottom:calc(clamp(14px,3vw,28px) + 3.4rem)}}
@media (prefers-reduced-motion:reduce){.to-top{transition:none}.to-top.is-visible{animation:none}.to-top.is-visible::after{animation:none;display:none}}

/* ---- Hero ----------------------------------------------------------------- */
.hero{position:relative;min-height:100vh;min-height:100svh;display:flex;align-items:flex-end;overflow:hidden}
.hero__media{position:absolute;inset:0;z-index:0}
.hero__media img{width:100%;height:100%;object-fit:cover;filter:grayscale(.28) contrast(1.06) brightness(.62)}
.hero__media::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(14,18,20,.72) 0%,rgba(14,18,20,.42) 32%,rgba(14,18,20,.78) 78%,var(--graphite) 100%),
             linear-gradient(90deg,rgba(14,18,20,.7),transparent 60%);
}
.hero__grid{position:absolute;inset:0;z-index:1;opacity:.6}
.hero__inner{position:relative;z-index:3;width:var(--container);margin-inline:auto;padding-bottom:clamp(3rem,7vw,6rem);padding-top:8rem}
.hero__eyebrow{margin-bottom:1.6rem}
.hero h1{max-width:16ch}
.hero__sub{max-width:46ch;margin-top:1.6rem}
.hero__meta{
  display:flex;flex-wrap:wrap;gap:2.5rem;margin-top:2.6rem;padding-top:1.8rem;border-top:1px solid var(--line);
}
.hero__meta .stat b{display:block;font-family:var(--font-display);font-weight:700;font-size:clamp(1.8rem,3vw,2.6rem);color:var(--ice);letter-spacing:-.03em}
.hero__meta .stat span{font-family:var(--font-label);font-size:.68rem;letter-spacing:.18em;text-transform:uppercase;color:var(--ice-3)}
.hero__cta{display:flex;flex-wrap:wrap;gap:1rem;margin-top:2.4rem}
.hero__tag{
  position:absolute;right:var(--gutter);top:40%;z-index:3;text-align:right;
  font-family:var(--font-label);font-size:.68rem;letter-spacing:.15em;text-transform:uppercase;color:var(--ice-3);
  line-height:2;border-right:1px solid var(--orange);padding-right:1rem;
}
.hero__tag b{color:var(--steel);font-weight:400}
@media (max-width:880px){.hero__tag{display:none}}

/* scroll cue */
.scrollcue{position:absolute;left:50%;bottom:1.4rem;z-index:3;transform:translateX(-50%);
  font-family:var(--font-label);font-size:.62rem;letter-spacing:.3em;text-transform:uppercase;color:var(--ice-3);
  display:flex;flex-direction:column;align-items:center;gap:.6rem}
.scrollcue::after{content:"";width:1px;height:38px;background:linear-gradient(var(--orange),transparent);animation:cue 2.4s var(--ease-io) infinite}
@keyframes cue{0%{transform:scaleY(0);transform-origin:top}45%{transform:scaleY(1);transform-origin:top}55%{transform:scaleY(1);transform-origin:bottom}100%{transform:scaleY(0);transform-origin:bottom}}

/* ---- Current line (signature) --------------------------------------------- */
/* a thin orange vertical conductor with a travelling node, between sections */
.current{position:relative;height:clamp(60px,9vw,120px);display:flex;justify-content:center}
.current::before{content:"";width:1px;height:100%;background:linear-gradient(var(--line),var(--orange),var(--line))}
.current::after{content:"";position:absolute;top:0;width:5px;height:5px;border-radius:50%;background:var(--orange);
  box-shadow:0 0 10px 2px var(--orange-glow);animation:flow 3.4s var(--ease-io) infinite}
@keyframes flow{0%{top:-2%;opacity:0}12%{opacity:1}88%{opacity:1}100%{top:100%;opacity:0}}
@media (prefers-reduced-motion:reduce){.current::after,.scrollcue::after{animation:none}}

/* ---- Intro / split ------------------------------------------------------- */
.split{display:grid;grid-template-columns:1fr 1fr;gap:clamp(2rem,5vw,5rem);align-items:center}
.split--text-first{grid-template-columns:5fr 6fr}
@media (max-width:860px){.split,.split--text-first{grid-template-columns:1fr}}
.kicker-num{font-family:var(--font-label);font-size:.72rem;letter-spacing:.2em;color:var(--orange)}

/* figure with annotation (drawing-set caption) */
.figure{position:relative;overflow:hidden;border-radius:var(--radius);background:var(--graphite-3)}
.figure img{width:100%;height:100%;object-fit:cover;transition:transform .9s var(--ease);filter:grayscale(.15) contrast(1.04)}
.figure.tall img{aspect-ratio:3/4}
.figure.wide img{aspect-ratio:16/10}
.figure.sq img{aspect-ratio:1/1}
.annot{
  font-family:var(--font-label);font-size:.68rem;letter-spacing:.14em;text-transform:uppercase;color:var(--ice-3);
  margin-top:.75rem;display:flex;gap:.6em;align-items:baseline;
}
.annot b{color:var(--steel);font-weight:500}
.annot .dot{color:var(--orange)}

/* ---- Discipline cards ----------------------------------------------------- */
.disc{
  position:relative;padding:2rem 1.8rem 2.2rem;background:var(--graphite-3);
  border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;
  transition:border-color .45s var(--ease),transform .45s var(--ease),background .45s var(--ease);
}
.disc::before{content:"";position:absolute;left:0;top:0;height:2px;width:0;background:var(--orange);transition:width .5s var(--ease)}
.disc:hover{border-color:var(--line);transform:translateY(-4px);background:var(--graphite-4)}
.disc:hover::before{width:100%}
.disc__no{font-family:var(--font-label);font-size:.7rem;letter-spacing:.2em;color:var(--ice-3)}
.disc__icon{width:40px;height:40px;margin:1.2rem 0 1.4rem;color:var(--orange)}
.disc__icon svg{width:100%;height:100%;stroke:currentColor;fill:none;stroke-width:1.4}
.disc h3{margin-bottom:.6rem}
.disc p{font-size:.95rem;color:var(--ice-2);line-height:1.6}
.disc__list{margin-top:1.1rem;display:flex;flex-wrap:wrap;gap:.4rem}
.disc__list span{font-family:var(--font-label);font-size:.64rem;letter-spacing:.08em;text-transform:uppercase;color:var(--steel);border:1px solid var(--line);border-radius:99px;padding:.3em .7em}

/* ---- Stats band ----------------------------------------------------------- */
.stats{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:760px){.stats{grid-template-columns:repeat(2,1fr)}}
.stat-cell{background:var(--graphite);padding:clamp(1.6rem,3vw,2.6rem);position:relative}
.stat-cell b{display:block;font-family:var(--font-display);font-weight:700;font-size:clamp(2.4rem,5vw,3.8rem);color:var(--ice);letter-spacing:-.03em;line-height:.95}
.stat-cell b .u{color:var(--orange);font-size:.5em;margin-left:.1em}
.stat-cell>span{display:block;margin-top:.8rem;font-family:var(--font-label);font-size:.68rem;letter-spacing:.15em;text-transform:uppercase;color:var(--ice-3)}

/* ---- Project cover cards -------------------------------------------------- */
.pcard{position:relative;display:block;overflow:hidden;border-radius:var(--radius);background:var(--graphite-3);border:1px solid var(--line)}
.pcard__img{aspect-ratio:4/3;overflow:hidden}
.pcard__img img{width:100%;height:100%;object-fit:cover;filter:grayscale(.2) contrast(1.05) brightness(.92);transition:transform .9s var(--ease),filter .6s var(--ease)}
.pcard:hover .pcard__img img{transform:scale(1.05);filter:grayscale(0) contrast(1.05) brightness(1)}
.pcard__body{padding:1.3rem 1.4rem 1.5rem;position:relative}
.pcard__body::before{content:"";position:absolute;left:0;top:0;width:0;height:1px;background:var(--orange);transition:width .5s var(--ease)}
.pcard:hover .pcard__body::before{width:100%}
.pcard__cat{font-family:var(--font-label);font-size:.64rem;letter-spacing:.18em;text-transform:uppercase;color:var(--orange)}
.pcard h3{margin:.55rem 0 .5rem;font-size:1.2rem}
.pcard__meta{font-family:var(--font-label);font-size:.68rem;letter-spacing:.06em;color:var(--ice-3);text-transform:uppercase}
.pcard__scope{margin-top:.9rem;font-size:.9rem;color:var(--ice-2);line-height:1.55}

/* big featured project (asymmetric) */
.feature{display:grid;grid-template-columns:7fr 5fr;gap:clamp(2rem,4vw,4rem);align-items:center}
@media (max-width:860px){.feature{grid-template-columns:1fr}}
.feature__data{display:grid;grid-template-columns:1fr 1fr;gap:1.4rem 1rem;margin:2rem 0;border-top:1px solid var(--line);padding-top:1.6rem}
.feature__data .f{min-width:0}
.feature__data dt{font-family:var(--font-label);font-size:.64rem;letter-spacing:.16em;text-transform:uppercase;color:var(--ice-3);margin-bottom:.35rem}
.feature__data dd{font-family:var(--font-label);font-size:.95rem;color:var(--ice)}

/* ---- Project schedule (datasheet — the 42 rows) --------------------------- */
.schedule{width:100%;border-collapse:collapse;font-family:var(--font-label);font-size:.82rem}
.sched-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:var(--radius)}
.schedule thead th{
  text-align:left;font-weight:500;font-size:.64rem;letter-spacing:.16em;text-transform:uppercase;color:var(--ice-3);
  padding:1rem 1.1rem;border-bottom:1px solid var(--line);background:var(--graphite-2);white-space:nowrap;
}
.schedule tbody td{padding:1rem 1.1rem;border-bottom:1px solid var(--line-soft);color:var(--ice-2);vertical-align:top}
.schedule tbody tr{transition:background .25s var(--ease)}
.schedule tbody tr:hover{background:var(--orange-wash)}
.schedule .c-no{color:var(--steel-dim);width:3ch}
.schedule .c-proj{color:var(--ice);font-weight:500;white-space:nowrap}
.schedule .c-scope{color:var(--ice-3);max-width:34ch;font-family:var(--font-body);font-size:.9rem;letter-spacing:0}
.schedule .c-val{color:var(--ice);text-align:right;white-space:nowrap}
.schedule .c-stat{white-space:nowrap}
.tag-status{font-size:.62rem;letter-spacing:.1em;text-transform:uppercase;padding:.25em .6em;border-radius:99px;border:1px solid var(--line)}
.tag-status.done{color:#9FD9A8;border-color:rgba(159,217,168,.3)}
.tag-status.prog{color:var(--orange-bright);border-color:rgba(255,138,51,.35)}
@media (max-width:760px){.schedule .c-scope,.schedule .hide-sm{display:none}}

/* filter chips */
.filters{display:flex;flex-wrap:wrap;gap:.6rem;margin-bottom:2rem}
.chip{
  font-family:var(--font-label);font-size:.7rem;letter-spacing:.12em;text-transform:uppercase;color:var(--ice-2);
  padding:.55em 1.05em;border:1px solid var(--line);border-radius:99px;transition:all .3s var(--ease);
}
.chip:hover{border-color:var(--steel)}
.chip[aria-pressed=true]{background:var(--orange);color:#0B0E10;border-color:var(--orange)}
.chip .n{opacity:.6;margin-left:.4em}

/* ---- Page hero (inner pages) --------------------------------------------- */
.phero{position:relative;padding:clamp(9rem,16vw,13rem) 0 clamp(3rem,6vw,5rem);overflow:hidden}
.phero.has-media{min-height:62svh;display:flex;align-items:flex-end}
.phero__media{position:absolute;inset:0;z-index:0}
.phero__media img{width:100%;height:100%;object-fit:cover;filter:grayscale(.3) contrast(1.05) brightness(.5)}
.phero__media::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(14,18,20,.6),rgba(14,18,20,.4) 40%,var(--graphite))}
.phero__grid{position:absolute;inset:0;z-index:1;opacity:.5}
.phero .wrap{position:relative;z-index:2}
.phero h1{max-width:18ch;margin-top:1.3rem}
.phero__sub{max-width:52ch;margin-top:1.4rem}

/* ---- Lists / process ------------------------------------------------------ */
.process{counter-reset:step;display:grid;gap:0}
.process__step{display:grid;grid-template-columns:auto 1fr;gap:1.6rem;padding:1.8rem 0;border-top:1px solid var(--line);align-items:start}
.process__step:last-child{border-bottom:1px solid var(--line)}
.process__step .n{font-family:var(--font-label);font-size:.8rem;color:var(--orange);padding-top:.4rem}
.process__step h3{margin-bottom:.4rem}
.process__step p{font-size:.95rem;color:var(--ice-2);max-width:60ch}

/* definition list of facts */
.facts{display:grid;grid-template-columns:repeat(2,1fr);gap:1.6rem 2rem}
@media (max-width:620px){.facts{grid-template-columns:1fr}}
.facts dt{font-family:var(--font-label);font-size:.64rem;letter-spacing:.16em;text-transform:uppercase;color:var(--ice-3);margin-bottom:.4rem}
.facts dd{color:var(--ice);font-size:1.02rem}
.facts dd a:hover{color:var(--orange)}

/* family tree */
.family{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:var(--line);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;margin-top:2rem}
@media (max-width:760px){.family{grid-template-columns:repeat(2,1fr)}}
@media (max-width:440px){.family{grid-template-columns:1fr}}
.family__cell{background:var(--graphite);padding:1.6rem 1.4rem;transition:background .3s var(--ease)}
.family__cell.is-emec{background:var(--graphite-3);position:relative}
.family__cell.is-emec::after{content:"";position:absolute;inset:0;border:1px solid var(--orange);pointer-events:none}
.family__cell h4{font-family:var(--font-label);font-size:.78rem;font-weight:600;letter-spacing:.06em;color:var(--ice);margin-bottom:.4rem}
.family__cell.is-emec h4{color:var(--orange)}
.family__cell p{font-size:.82rem;color:var(--ice-3);line-height:1.5}

/* ISO certs */
.certs{display:flex;flex-wrap:wrap;gap:1rem}
.cert{display:flex;align-items:center;gap:.8rem;border:1px solid var(--line);border-radius:var(--radius);padding:.9rem 1.2rem}
.cert .code{font-family:var(--font-label);font-size:.92rem;color:var(--ice);font-weight:500}
.cert .cat{font-family:var(--font-label);font-size:.62rem;letter-spacing:.12em;text-transform:uppercase;color:var(--ice-3);display:block}
.cert .seal{width:8px;height:8px;border-radius:50%;background:var(--orange);box-shadow:0 0 8px var(--orange-glow);flex:none}

/* ---- CTA band ------------------------------------------------------------- */
.cta-band{position:relative;overflow:hidden;background:var(--graphite-2);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.cta-band .wrap{padding-block:clamp(3.5rem,7vw,6rem);display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:2rem}
.cta-band h2{max-width:20ch}

/* ---- Forms ---------------------------------------------------------------- */
.field{margin-bottom:1.4rem}
.field label{display:block;font-family:var(--font-label);font-size:.66rem;letter-spacing:.16em;text-transform:uppercase;color:var(--ice-3);margin-bottom:.55rem}
.field input,.field select,.field textarea{
  width:100%;font-family:var(--font-body);font-size:1rem;color:var(--ice);
  background:var(--graphite-3);border:1px solid var(--line);border-radius:var(--radius);padding:.85em 1em;transition:border-color .3s var(--ease);
}
.field textarea{resize:vertical;min-height:130px}
.field input:focus,.field select:focus,.field textarea:focus{outline:none;border-color:var(--orange)}
.field select{appearance:none;background-image:linear-gradient(45deg,transparent 50%,var(--steel) 50%),linear-gradient(135deg,var(--steel) 50%,transparent 50%);background-position:calc(100% - 20px) 55%,calc(100% - 14px) 55%;background-size:6px 6px,6px 6px;background-repeat:no-repeat}

/* ---- Footer --------------------------------------------------------------- */
.ftr{background:#0A0D0F;border-top:1px solid var(--line);padding:clamp(3.5rem,6vw,5rem) 0 2rem}
.ftr__top{display:grid;grid-template-columns:1.4fr 1fr 1fr 1.2fr;gap:2.5rem}
@media (max-width:860px){.ftr__top{grid-template-columns:1fr 1fr}}
@media (max-width:520px){.ftr__top{grid-template-columns:1fr}}
.ftr__brand img{height:34px;margin-bottom:1.2rem}
.ftr__brand p{font-size:.9rem;color:var(--ice-3);max-width:34ch}
.ftr__col h5{font-family:var(--font-label);font-size:.66rem;letter-spacing:.18em;text-transform:uppercase;color:var(--ice-3);margin-bottom:1.1rem}
.ftr__col a,.ftr__col p{display:block;font-size:.92rem;color:var(--ice-2);margin-bottom:.7rem;transition:color .3s var(--ease)}
.ftr__col a:hover{color:var(--orange)}
.ftr__bottom{display:flex;flex-wrap:wrap;justify-content:space-between;gap:1rem;margin-top:3rem;padding-top:1.8rem;border-top:1px solid var(--line)}
.ftr__bottom p,.ftr__bottom a{font-family:var(--font-label);font-size:.68rem;letter-spacing:.08em;color:var(--ice-3)}
.ftr__bottom a:hover{color:var(--orange)}

/* ---- Motion reveal (JS adds .fx on <html>; fallback shows everything) ----- */
.rv{opacity:1;transform:none}
html.fx .rv{opacity:0;transform:translateY(24px);transition:opacity .9s var(--ease),transform .9s var(--ease)}
html.fx .rv.in{opacity:1;transform:none}
html.fx .rv[data-d="1"]{transition-delay:.08s}
html.fx .rv[data-d="2"]{transition-delay:.16s}
html.fx .rv[data-d="3"]{transition-delay:.24s}
@media (prefers-reduced-motion:reduce){html.fx .rv{opacity:1!important;transform:none!important;transition:none!important}}

/* ---- Utilities ------------------------------------------------------------ */
.mt-s{margin-top:1rem}.mt-m{margin-top:2rem}.mt-l{margin-top:3rem}
.max-60{max-width:60ch}.max-48{max-width:48ch}
.center{text-align:center}
.eyebrow-row{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;margin-bottom:2.5rem}
.divider{height:1px;background:var(--line);border:0}
.skip{position:absolute;left:-999px}.skip:focus{left:1rem;top:1rem;z-index:200;background:var(--orange);color:#0B0E10;padding:.6em 1em;border-radius:var(--radius)}

/* ---- Lightbox (JS-created) ------------------------------------------------ */
.lb{position:fixed;inset:0;z-index:300;background:rgba(8,11,12,.94);backdrop-filter:blur(6px);
  display:none;align-items:center;justify-content:center;padding:clamp(1rem,5vw,4rem)}
.lb.on{display:flex}
.lb img{max-width:92vw;max-height:88vh;object-fit:contain;border:1px solid var(--line)}
.lb__x{position:absolute;top:1.2rem;right:1.4rem;font-size:2rem;line-height:1;color:var(--ice-2);width:44px;height:44px}
.lb__x:hover{color:var(--orange)}
.lb__nav{position:absolute;top:50%;transform:translateY(-50%);font-size:2.4rem;color:var(--ice-2);width:54px;height:54px}
.lb__nav:hover{color:var(--orange)}
.lb__prev{left:.6rem}.lb__next{right:.6rem}
