/* Westmoreland Steel & Fabrication — site stylesheet v3 (in-house) */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500;600;700&family=Source+Sans+3:wght@400;600;700&display=swap');

:root {
  --ink: #0e1116;
  --ink-2: #161b22;
  --ink-3: #1f2630;
  --steel: #57606e;
  --line: #dde1e7;
  --bg: #ffffff;
  --bg-2: #f4f5f7;
  --accent: #f26a1b;
  --accent-dark: #d4540e;
  --accent-glow: rgba(242, 106, 27, 0.35);
  --max: 1240px;
  --display: "Oswald", "Bahnschrift", "Arial Narrow", sans-serif;
  --body: "Source Sans 3", "Segoe UI", -apple-system, Roboto, Arial, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0.3px;
  color: var(--ink);
  text-transform: uppercase;
}
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 0.75rem; }
h3 { font-size: 1.45rem; margin-bottom: 0.5rem; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
}
.kicker::before { content: ""; width: 34px; height: 3px; background: var(--accent); }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Top bar */
.topbar {
  background: var(--ink);
  color: #c7ced8;
  font-size: 0.82rem;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 1.6px;
  border-bottom: 1px solid #1d242e;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 40px; flex-wrap: wrap; gap: 4px 24px; }
.topbar span { display: inline-flex; align-items: center; gap: 8px; }
.topbar span::before { content: ""; width: 6px; height: 6px; background: var(--accent); transform: rotate(45deg); flex: none; }
.topbar a { color: #fff; font-weight: 600; letter-spacing: 1.6px; }
.topbar a:hover { color: var(--accent); text-decoration: none; }

/* Header / nav */
header.site {
  background: rgba(14, 17, 22, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: inset 0 -3px 0 var(--accent);
  transition: box-shadow 0.3s ease;
}
header.site.scrolled { box-shadow: inset 0 -3px 0 var(--accent), 0 10px 30px rgba(0,0,0,0.35); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 92px; gap: 14px; max-width: 1340px; }
.brand { display: flex; align-items: center; gap: 14px; color: #fff; font-family: var(--display); flex: none; }
.brand:hover { text-decoration: none; }
.brand img { height: 64px; width: auto; transition: height 0.3s cubic-bezier(0.2, 0.6, 0.2, 1), transform 0.3s ease; }
.brand:hover img { transform: scale(1.03); }
header.site.scrolled .brand img { height: 50px; }
header.site.scrolled .wrap { min-height: 72px; }
.brand .name { font-size: 1.18rem; font-weight: 700; line-height: 1.12; text-transform: uppercase; letter-spacing: 1px; }
nav.main ul { list-style: none; display: flex; gap: 2px; align-items: center; flex-wrap: wrap; }
nav.main a {
  color: #e6e9ee;
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.94rem;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  padding: 8px 9px;
  border-radius: 3px;
  position: relative;
  white-space: nowrap;
}
nav.main a::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 4px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
nav.main a:hover { text-decoration: none; color: #fff; }
nav.main a:hover::after, nav.main a.active::after { transform: scaleX(1); }
nav.main a.active { color: var(--accent); }
nav.main a.cta {
  background: linear-gradient(135deg, #ff8a3d, var(--accent) 55%, var(--accent-dark));
  color: #fff;
  margin-left: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(242,106,27,0.3);
}
nav.main a.cta::after { display: none; }
nav.main a.cta:hover { background: var(--accent-dark); }
#navToggle {
  display: none;
  background: none;
  border: 2px solid #e6e9ee;
  color: #e6e9ee;
  font-size: 1.3rem;
  padding: 4px 12px;
  border-radius: 4px;
  cursor: pointer;
}

/* Hero */
.hero { position: relative; color: #fff; background: var(--ink); overflow: hidden; }
.hero .bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.5;
  animation: heroZoom 18s ease-out forwards;
}
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10,12,16,0.94) 0%, rgba(10,12,16,0.78) 45%, rgba(10,12,16,0.35) 100%);
  z-index: 1;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 42%;
  height: 6px;
  background: var(--accent);
  z-index: 2;
}
.hero .wrap { position: relative; z-index: 2; padding: 130px 28px 120px; }
.hero h1 {
  color: #fff;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 800;
  margin-bottom: 1.1rem;
  max-width: 18ch;
  text-shadow: 0 2px 18px rgba(0,0,0,0.45);
}
.hero p.lead { font-size: 1.22rem; max-width: 56ch; color: #e2e6ec; margin-bottom: 2rem; font-weight: 400; }
.hero .actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 15px 34px;
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 1.05rem;
  border-radius: 12px;
  transition: transform 0.22s cubic-bezier(0.2, 0.6, 0.2, 1), box-shadow 0.22s cubic-bezier(0.2, 0.6, 0.2, 1), background 0.22s ease, filter 0.22s ease;
}
.btn.primary { background: linear-gradient(135deg, #ff8a3d, var(--accent) 55%, var(--accent-dark)); color: #fff; box-shadow: 0 4px 14px rgba(242,106,27,0.25); }
.btn.primary:hover { text-decoration: none; transform: translateY(-3px); box-shadow: 0 14px 30px var(--accent-glow); filter: brightness(1.06); }
.btn.ghost { border: 2px solid #fff; color: #fff; clip-path: none; }
.btn.ghost:hover { background: rgba(255,255,255,0.14); text-decoration: none; transform: translateY(-2px); }
.hero .note { margin-top: 1.4rem; font-size: 0.98rem; color: #ffb27d; font-weight: 600; }

/* Page hero (interior) */
.page-hero {
  background:
    linear-gradient(100deg, rgba(14,17,22,0.97) 30%, rgba(14,17,22,0.82)),
    var(--ink-2);
  color: #fff;
  padding: 72px 0 64px;
  border-bottom: 5px solid var(--accent);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  right: -60px; top: -60px;
  width: 320px; height: 320px;
  background: repeating-linear-gradient(45deg, rgba(242,106,27,0.12) 0 2px, transparent 2px 14px);
  transform: rotate(8deg);
}
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.3rem); font-weight: 800; position: relative; z-index: 1; }
.page-hero p { color: #c8cdd5; max-width: 70ch; margin-top: 10px; font-size: 1.1rem; position: relative; z-index: 1; }

/* Sections */
section.band { padding: 96px 0; }
section.band.alt { background: linear-gradient(180deg, var(--bg-2), #eef0f3); }
.section-head { max-width: 72ch; margin-bottom: 48px; }
.section-head p { color: var(--steel); font-size: 1.05rem; }

/* Stat strip */
.stats { background: var(--ink-2); color: #fff; border-bottom: 1px solid #232a35; }
.stats .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 0; }
.stats .stat { padding: 32px 12px; text-align: center; position: relative; }
.stats .stat + .stat::before {
  content: "";
  position: absolute; left: 0; top: 26%;
  height: 48%; width: 1px;
  background: rgba(255,255,255,0.12);
}
.stats .num { font-size: 2.3rem; font-weight: 700; font-family: var(--display); line-height: 1.05; color: var(--accent); white-space: nowrap; }
.stats .lbl { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1.4px; color: #b7bfca; margin-top: 5px; }

/* Cards */
.grid { display: grid; gap: 28px; }
.grid.c3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.c2 { grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); }
.grid.c4 { grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 22px; }
.grid.c4 .card .body { padding: 22px 20px; }
.grid.c4 .card li { font-size: 0.95rem; margin-bottom: 6px; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 10px rgba(14,17,22,0.04);
  transition: transform 0.3s cubic-bezier(0.2, 0.6, 0.2, 1), box-shadow 0.3s cubic-bezier(0.2, 0.6, 0.2, 1), border-color 0.3s ease;
}
.card:hover { transform: translateY(-7px); box-shadow: 0 22px 48px rgba(14,17,22,0.13); border-color: transparent; }
.card > img { height: 220px; width: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover > img { transform: scale(1.05); }
.card .body { padding: 26px; flex: 1; border-top: 3px solid var(--accent); }
.card ul { margin: 10px 0 0 18px; }
.card li { margin-bottom: 5px; }
.card .body .btn { margin-top: 14px; }
.card.flat { border-top: 4px solid var(--accent); }
.card.flat .body { border-top: 0; }

/* Checklist */
ul.checks { list-style: none; margin-top: 16px; }
ul.checks li { padding-left: 32px; position: relative; margin-bottom: 11px; }
ul.checks li::before {
  content: "";
  position: absolute; left: 0; top: 6px;
  width: 17px; height: 17px;
  background: var(--accent);
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

/* Split layout */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.split img {
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 14px 14px 0 0 var(--bg-2), 14px 14px 0 1px var(--line);
}
section.band.alt .split img { box-shadow: 14px 14px 0 0 #fff, 14px 14px 0 1px var(--line); }

/* Spec tables */
table.spec { width: 100%; border-collapse: collapse; background: #fff; }
table.spec th, table.spec td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.spec th { background: var(--ink-2); color: #fff; text-transform: uppercase; font-family: var(--display); font-size: 0.95rem; letter-spacing: 0.8px; }
table.spec tr:nth-child(even) td { background: var(--bg-2); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.gallery a { display: block; overflow: hidden; border-radius: 14px; border: 1px solid var(--line); }
.gallery img { height: 205px; width: 100%; object-fit: cover; transition: transform 0.3s; }
.gallery a:hover img { transform: scale(1.05); }

/* Lightbox */
#lightbox { position: fixed; inset: 0; background: rgba(8,10,13,0.93); display: none; align-items: center; justify-content: center; z-index: 100; cursor: zoom-out; padding: 4vh 4vw; }
#lightbox.open { display: flex; }
#lightbox img { max-width: 100%; max-height: 92vh; width: auto; border-radius: 4px; }

/* Badge strip (certs & memberships) */
.badge-strip { display: flex; align-items: center; justify-content: center; gap: 48px; flex-wrap: wrap; padding: 8px 0; }
.badge-strip img { height: 92px; width: auto; }
.badge-strip a { display: block; transition: transform 0.2s; }
.badge-strip a:hover { transform: translateY(-3px); }
.badge-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 92px;
  padding: 0 26px;
  border: 2px solid var(--ink-2);
  border-radius: 10px;
  font-family: var(--display);
  color: var(--ink-2);
  line-height: 1.15;
}
.badge-text .t1 { font-size: 1.7rem; font-weight: 700; letter-spacing: 2px; }
.badge-text .t2 { font-size: 0.95rem; font-weight: 600; letter-spacing: 2.5px; }
.badge-text .t3 { font-size: 0.62rem; letter-spacing: 1.8px; color: var(--steel); margin-top: 3px; }

/* Dark gallery wall (projects page) */
.gallery-wall {
  background:
    radial-gradient(circle at 50% 0%, #1c222c 0%, var(--ink) 70%);
  padding: 72px 0;
}
.gallery-wall .section-head { text-align: center; margin-left: auto; margin-right: auto; }
.gallery-wall .section-head h2 { color: #fff; }
.gallery-wall .section-head p { color: #c3cad4; }
.gallery-wall .gallery { gap: 22px; }
.gallery-wall .gallery a {
  border: 1px solid #2a323d;
  border-radius: 12px;
  background: #11151b;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  transition: transform 0.3s cubic-bezier(0.2,0.6,0.2,1), box-shadow 0.3s ease, border-color 0.3s ease;
}
.gallery-wall .gallery a:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 18px 44px rgba(0,0,0,0.55);
}
.gallery-wall .gallery img { height: 260px; }

/* Service tile icons */
.icon-chip {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ff8a3d, var(--accent) 60%, var(--accent-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 6px 16px rgba(242,106,27,0.28);
}
.icon-chip svg { width: 30px; height: 30px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 36px 28px; }
.person { text-align: center; }
.person img {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 14px;
  border: 4px solid #fff;
  box-shadow: 0 8px 24px rgba(14,17,22,0.14);
  transition: transform 0.3s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.person:hover img { transform: scale(1.04); }
.person .name { font-family: var(--display); font-weight: 700; font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.5px; }
.person .role { color: var(--steel); font-size: 0.95rem; margin-top: 2px; }

/* Certification grid (logo + caption, SMF-style) */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 48px; text-align: center; align-items: start; }
.cert-grid .cert img { height: 110px; width: auto; margin: 0 auto 18px; }
.cert-grid .cert h3 { font-size: 1.2rem; margin-bottom: 6px; }
.cert-grid .cert p { color: var(--steel); max-width: 46ch; margin: 0 auto; }

/* CTA band */
.cta-band { background: var(--ink-2); color: #fff; text-align: center; padding: 64px 0; border-top: 4px solid var(--accent); }
.cta-band h2 { color: #fff; }
.cta-band p { color: #c8cdd5; max-width: 62ch; margin: 0 auto 26px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-info .item { margin-bottom: 22px; }
.contact-info .item h3 { margin-bottom: 2px; }
form.quote label { display: block; font-weight: 600; margin: 14px 0 5px; }
form.quote input, form.quote textarea, form.quote select { width: 100%; padding: 12px 13px; border: 1px solid var(--line); border-radius: 5px; font: inherit; background: #fff; }
form.quote input:focus, form.quote textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
form.quote textarea { min-height: 140px; resize: vertical; }
form.quote button { margin-top: 18px; border: 0; cursor: pointer; font: inherit; }
.form-note { font-size: 0.88rem; color: var(--steel); margin-top: 10px; }

/* FAQ */
details.faq { border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; background: #fff; transition: box-shadow 0.25s ease; }
details.faq[open] { box-shadow: 0 12px 30px rgba(14,17,22,0.08); }
details.faq summary { cursor: pointer; font-weight: 700; padding: 16px 18px; list-style: none; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; float: right; color: var(--accent); font-size: 1.35rem; line-height: 1; }
details.faq[open] summary::after { content: "\2013"; }
details.faq .a { padding: 0 18px 16px; color: var(--steel); }

/* Footer */
footer.site { background: var(--ink); color: #aeb6c0; padding: 60px 0 28px; font-size: 0.95rem; }
footer.site .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
footer.site h4 { color: #fff; text-transform: uppercase; font-family: var(--display); font-size: 1.05rem; letter-spacing: 1px; margin-bottom: 12px; }
footer.site a { color: #dfe3e9; }
footer.site ul { list-style: none; }
footer.site li { margin-bottom: 7px; }
footer.site .legal { border-top: 1px solid #232a35; padding-top: 20px; font-size: 0.85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
footer.site .brandline { color: #fff; font-weight: 700; font-family: var(--display); text-transform: uppercase; font-size: 1.15rem; margin-bottom: 10px; }
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--accent);
  color: #fff !important;
  padding: 12px 20px;
  margin-top: 6px;
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-size: 0.95rem;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn-download::before { content: "\2193"; color: var(--accent); font-weight: 800; font-size: 1.1rem; }
.btn-download:hover { background: var(--accent); text-decoration: none; transform: translateY(-2px); }
.btn-download:hover::before { color: #fff; }

/* Header scrolled + reveal animations (used by main.js v2) */
header.site.scrolled { box-shadow: 0 6px 22px rgba(0,0,0,0.4); }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s cubic-bezier(0.2, 0.6, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1080px) {
  nav.main { display: none; width: 100%; }
  nav.main.open { display: block; }
  nav.main ul { flex-direction: column; align-items: stretch; padding: 10px 0; }
  #navToggle { display: block; }
  header.site .wrap { flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
  .split { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  footer.site .cols { grid-template-columns: 1fr; }
  .hero .wrap { padding: 64px 24px; }
  .badge-strip { gap: 28px; }
  .badge-strip img { height: 68px; }
}

/* =========================================================
   v3 VISUAL UPGRADE — 06/13/2026 (home flagship)
   ========================================================= */

/* Hero — cinematic */
.hero { min-height: 90vh; display: flex; align-items: center; }
.hero .wrap { padding-top: 120px; padding-bottom: 120px; width: 100%; }
.hero-grid {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    linear-gradient(rgba(242,106,27,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242,106,27,0.06) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 30% 50%, #000 0%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 80% at 30% 50%, #000 0%, transparent 75%);
}
.kicker.light { color: #ffb27d; }
.kicker.light::before { background: var(--accent); }
.hero-title { overflow: hidden; }
.hero-title span { display: inline-block; animation: heroRise 0.9s cubic-bezier(0.2,0.7,0.2,1) both; }
.hero-title span:nth-child(2) { animation-delay: 0.12s; }
.hero-title .accent-word { color: var(--accent); text-shadow: 0 0 28px var(--accent-glow); }
@keyframes heroRise { from { opacity: 0; transform: translateY(120%); } to { opacity: 1; transform: none; } }
.hero .lead, .hero .actions, .hero .note, .hero-trust { animation: heroFade 0.9s ease 0.35s both; }
@keyframes heroFade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero-trust {
  list-style: none; display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.14);
}
.hero-trust li {
  font-family: var(--display); font-weight: 600; text-transform: uppercase;
  letter-spacing: 1.2px; font-size: 0.82rem; color: #e8ebf0;
  padding: 7px 15px; border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px; background: rgba(255,255,255,0.04);
  display: inline-flex; align-items: center; gap: 8px;
}
.hero-trust li::before { content: ""; width: 7px; height: 7px; background: var(--accent); transform: rotate(45deg); }
.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,0.45);
  border-radius: 14px; z-index: 3; display: block;
}
.scroll-cue span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px;
  background: var(--accent); border-radius: 2px; transform: translateX(-50%);
  animation: scrollDot 1.6s ease-in-out infinite;
}
@keyframes scrollDot { 0% { opacity: 0; transform: translate(-50%,0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translate(-50%,14px); } 100% { opacity: 0; } }
@media (max-width: 640px) { .scroll-cue { display: none; } .hero { min-height: 80vh; } }

/* Capability marquee ticker */
.marquee {
  background: var(--ink); border-top: 1px solid #232a35; border-bottom: 3px solid var(--accent);
  overflow: hidden; white-space: nowrap;
}
.marquee-track {
  display: inline-flex; align-items: center; gap: 0;
  padding: 16px 0; animation: marquee 38s linear infinite; will-change: transform;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span:not(.dot) {
  font-family: var(--display); font-weight: 600; text-transform: uppercase;
  letter-spacing: 2px; font-size: 0.98rem; color: #d6dbe2; padding: 0 26px;
}
.marquee-track .dot { width: 8px; height: 8px; background: var(--accent); transform: rotate(45deg); flex: none; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } .hero-title span, .hero .lead, .hero .actions, .hero .note, .hero-trust { animation: none; } }

/* Stats — polish + animated count */
.stats { background: linear-gradient(180deg, var(--ink-2), #11161d); border-top: 3px solid var(--accent); }
.stats .stat { transition: background 0.3s ease; }
.stats .stat:hover { background: rgba(242,106,27,0.06); }
.stats .num { transition: color 0.3s ease; }

/* How-it-works step numbers */
.steps .step .body { position: relative; padding-top: 30px; }
.step-num {
  position: absolute; top: -26px; left: 24px;
  width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 700; font-size: 1.5rem; color: #fff;
  background: linear-gradient(135deg, #ff8a3d, var(--accent) 60%, var(--accent-dark));
  box-shadow: 0 8px 18px rgba(242,106,27,0.32);
}
.steps .step { overflow: visible; }
.steps .step .body { overflow: visible; }

/* Capability card media — duotone clears to color, caption slides up */
.card-media { position: relative; overflow: hidden; margin: 0; }
.card-media img { height: 220px; width: 100%; object-fit: cover; filter: grayscale(0.55) contrast(1.04); transition: transform 0.5s cubic-bezier(0.2,0.6,0.2,1), filter 0.5s ease; }
.card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,17,22,0) 45%, rgba(14,17,22,0.72)); opacity: 0.9; transition: opacity 0.4s ease; }
.card-media figcaption {
  position: absolute; left: 16px; bottom: 12px; z-index: 2;
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; font-size: 1.02rem; color: #fff;
  transform: translateY(4px); opacity: 0; transition: transform 0.4s ease, opacity 0.4s ease;
}
.card-media::before { content: ""; position: absolute; left: 16px; bottom: 8px; width: 34px; height: 3px; background: var(--accent); z-index: 2; transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease; }
.card:hover .card-media img { transform: scale(1.07); filter: grayscale(0) contrast(1); }
.card:hover .card-media::after { opacity: 0.4; }
.card:hover .card-media figcaption { transform: none; opacity: 1; }
.card:hover .card-media::before { transform: scaleX(1); }
.card .card-media + .body { border-top: 3px solid var(--accent); }

/* Button shine sweep */
.btn { position: relative; overflow: hidden; }
.btn.primary::after {
  content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.38), transparent);
  transform: skewX(-18deg); transition: left 0.6s ease;
}
.btn.primary:hover::after { left: 140%; }

/* Projects band — darker, gallery pops */
.projects-band { background: radial-gradient(circle at 50% -10%, #1b212b 0%, var(--ink) 72%); }
.projects-band .section-head h2 { color: #fff; }
.projects-band .section-head .kicker { color: var(--accent); }
.projects-band .gallery a { border: 1px solid #2a323d; background: #11151b; box-shadow: 0 10px 30px rgba(0,0,0,0.4); transition: transform 0.3s cubic-bezier(0.2,0.6,0.2,1), box-shadow 0.3s ease, border-color 0.3s ease; }
.projects-band .gallery a:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: 0 18px 44px rgba(0,0,0,0.55); }

/* Certifications band — SMF-style, enlarged */
.certs-band { background: linear-gradient(180deg, #fff, var(--bg-2)); padding: 84px 0; border-top: 1px solid var(--line); }
.certs-band .section-head { text-align: center; margin-left: auto; margin-right: auto; margin-bottom: 40px; }
.certs-band .section-head .kicker { justify-content: center; }
.certs-band .cert-grid { gap: 56px 40px; align-items: start; }
.certs-band .cert { padding: 0 6px; }
.certs-band .cert .cert-logo { height: 150px; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.certs-band .cert .cert-logo img { max-height: 150px; width: auto; transition: transform 0.3s ease; }
.certs-band .cert h3 { font-size: 1.18rem; margin-bottom: 8px; }
.certs-band .cert p { color: var(--steel); max-width: 40ch; margin: 0 auto; font-size: 0.98rem; }
.certs-band .cert.clickable { cursor: pointer; }
.certs-band .cert.clickable:hover .cert-logo img { transform: scale(1.05); }
.cert-view-link { display: inline-block; margin-top: 12px; font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; font-size: 0.82rem; color: var(--accent-dark); border: none; background: none; cursor: pointer; }
.cert-view-link::after { content: " \2192"; }
.cert-view-link:hover { color: var(--accent); text-decoration: underline; }
@media (max-width: 640px) { .certs-band .cert .cert-logo, .certs-band .cert .cert-logo img { height: 120px; max-height: 120px; } }

/* Certificate modal (popup-then-download) */
#cert-modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 4vh 4vw; background: rgba(8,10,13,0.86); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
#cert-modal.open { display: flex; animation: modalFade 0.25s ease; }
@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }
.cert-dialog { background: #fff; border-radius: 16px; max-width: 560px; width: 100%; max-height: 92vh; overflow: auto; box-shadow: 0 30px 80px rgba(0,0,0,0.5); border-top: 5px solid var(--accent); }
.cert-dialog .cert-dialog-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.cert-dialog .cert-dialog-head h3 { font-size: 1.15rem; margin: 0; }
.cert-dialog .cert-close { border: none; background: none; font-size: 1.7rem; line-height: 1; color: var(--steel); cursor: pointer; padding: 0 4px; }
.cert-dialog .cert-close:hover { color: var(--ink); }
.cert-dialog .cert-preview { padding: 20px 22px; text-align: center; background: var(--bg-2); }
.cert-dialog .cert-preview img { max-width: 100%; height: auto; border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(14,17,22,0.14); border-radius: 4px; }
.cert-dialog .cert-actions { padding: 18px 22px; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.cert-dialog .cert-actions .btn { padding: 13px 26px; font-size: 0.98rem; border-radius: 10px; }
.cert-dialog .cert-actions .btn.ghost { border: 2px solid var(--ink-2); color: var(--ink-2); }
.cert-dialog .cert-actions .btn.ghost:hover { background: var(--bg-2); }

/* =========================================================
   v3 — interior page consistency (applies to all 7 pages
   via shared classes; no per-page markup needed)
   ========================================================= */

/* Interior hero: blueprint grid + entrance, matching home */
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(242,106,27,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242,106,27,0.07) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 25% 50%, #000 0%, transparent 78%);
          mask-image: radial-gradient(ellipse 80% 90% at 25% 50%, #000 0%, transparent 78%);
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { animation: heroFade 0.7s ease both; }
.page-hero p { animation: heroFade 0.7s ease 0.12s both; }
@media (prefers-reduced-motion: reduce) { .page-hero h1, .page-hero p { animation: none; } }

/* Slightly larger cert logos site-wide (welding/about cert grids) */
.cert-grid .cert img { height: 132px; }
@media (max-width: 640px) { .cert-grid .cert img { height: 104px; } }
