/* ============================================================
   INNER PAGES — Solutions, Integrity, About, Contact, Employee
   Loads after style.css and reuses its tokens.
   ============================================================ */

body.page { background: var(--void); }

/* ============================================================
   PAGE HERO
   ============================================================ */
.page-hero {
  position: relative;
  min-height: clamp(560px, 88svh, 900px);
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 4rem) var(--gut) clamp(3.5rem, 8vh, 6rem);
  overflow: hidden;
  background: var(--steel);
}
.page-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.page-hero-media img {
  width: 100%;
  height: 118%;
  object-fit: cover;
  filter: saturate(0.6) contrast(1.1) brightness(0.42);
}
/* Cold pipe-interior wash + a floor of solid ink so type always holds */
.page-hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7,9,12,0.88) 0%, rgba(7,9,12,0.32) 42%, rgba(7,9,12,0.94) 100%),
    radial-gradient(88% 62% at 74% 30%, rgba(58,160,255,0.16) 0%, transparent 64%),
    radial-gradient(62% 52% at 6% 96%, rgba(255,90,31,0.13) 0%, transparent 68%);
}
.page-hero-inner { position: relative; z-index: 2; width: 100%; max-width: 1180px; }

.page-hero-title {
  font-size: clamp(2.9rem, 9vw, 8.5rem);
  line-height: 0.86;
  letter-spacing: -0.042em;
  font-variation-settings: 'wdth' 116;
  margin: 0 0 1.8rem;
}
.page-hero-title .word { display: block; overflow: hidden; }
.page-hero-title .word b { display: block; font-weight: 900; }
.page-hero-title .accent b {
  background: linear-gradient(96deg, var(--flame) 6%, var(--current) 94%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.page-hero-lede {
  font-size: clamp(1rem, 1.3vw, 1.28rem);
  line-height: 1.65;
  color: var(--haze);
  max-width: 62ch;
}
.page-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  margin-top: 2.4rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--seam);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #74879B;
}
.page-hero-meta strong { color: var(--current); font-weight: 500; }

/* ============================================================
   GENERIC SECTIONS
   ============================================================ */
.section { padding: clamp(5rem, 11vh, 9rem) var(--gut); }
.section-alt { background: var(--steel); }
.section-head { margin-bottom: clamp(2.6rem, 5vh, 4.5rem); max-width: 900px; }
.section-title {
  font-size: clamp(2.1rem, 5vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: -0.032em;
  font-variation-settings: 'wdth' 112;
  text-wrap: balance;
}
.section-lede {
  margin-top: 1.5rem;
  font-size: clamp(1rem, 1.15vw, 1.16rem);
  line-height: 1.72;
  color: var(--haze);
  max-width: 68ch;
}

.prose p {
  font-size: clamp(0.98rem, 1.1vw, 1.12rem);
  line-height: 1.78;
  color: var(--haze);
  max-width: 70ch;
}
.prose p + p { margin-top: 1.3rem; }
.prose strong { color: var(--ice); font-weight: 500; }

/* ============================================================
   ALTERNATING SERVICE BLOCKS  (Solutions)
   ============================================================ */
.service {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
  padding: clamp(3.5rem, 7vh, 6rem) 0;
  border-top: 1px solid var(--seam);
}
.service:last-child { border-bottom: 1px solid var(--seam); }
.service.flip .service-media { order: 2; }
.service-media { position: relative; overflow: hidden; }
.service-media img {
  width: 100%;
  height: clamp(300px, 46vh, 520px);
  object-fit: cover;
  filter: saturate(0.8) contrast(1.05) brightness(0.86);
  transition: transform 1.1s var(--ease), filter 0.7s var(--ease);
}
.service-media:hover img { transform: scale(1.05); filter: saturate(1) brightness(1); }
.service-copy h3 {
  font-size: clamp(1.6rem, 3vw, 2.9rem);
  line-height: 1.02;
  letter-spacing: -0.028em;
  font-variation-settings: 'wdth' 110;
  margin-bottom: 1.2rem;
}
.service-copy p {
  font-size: clamp(0.97rem, 1.08vw, 1.1rem);
  line-height: 1.75;
  color: var(--haze);
  max-width: 56ch;
}

/* ============================================================
   SPEC BLOCKS  (Integrity / NDT)
   ============================================================ */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--seam);
  border: 1px solid var(--seam);
}
.spec {
  background: var(--void);
  padding: clamp(1.8rem, 3vw, 2.6rem);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: background 0.4s var(--ease);
}
.spec:hover { background: #0B1219; }
.spec-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.15rem, 1.8vw, 1.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variation-settings: 'wdth' 108;
}
.spec-basis {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--current);
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--seam);
}
.spec ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.spec li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--haze);
}
.spec li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.68em;
  width: 7px; height: 1px;
  background: var(--flame);
}

/* Checklist — used for dig scope, codes, differentiators */
.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--seam);
}
.check-list.one-col { grid-template-columns: 1fr; }
.check-list li {
  position: relative;
  padding: 1rem 1.2rem 1rem 3.2rem;
  border-bottom: 1px solid var(--seam);
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--haze);
}
.check-list li::before {
  content: counter(list-item, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1.05rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--flame);
}
.check-list li strong { color: var(--ice); font-weight: 500; }

/* Code register — the governing standards, set like a spec sheet */
.code-list { border-top: 1px solid var(--seam); }
.code-row {
  display: grid;
  grid-template-columns: 16rem 1fr;
  gap: 1.5rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--seam);
  align-items: baseline;
  transition: background 0.35s var(--ease);
}
.code-row:hover { background: rgba(58,160,255,0.04); }
.code-id {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--current);
}
.code-desc { font-size: 0.98rem; color: var(--haze); line-height: 1.55; }

/* ============================================================
   VALUE / PILLAR CARDS  (About)
   ============================================================ */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--seam);
  border: 1px solid var(--seam);
}
.pillar {
  background: var(--void);
  padding: clamp(2rem, 3.4vw, 3rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: background 0.4s var(--ease);
}
.pillar:hover { background: #0B1219; }
.pillar-tag {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--flame);
}
.pillar h3 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.1;
  letter-spacing: -0.022em;
  font-variation-settings: 'wdth' 108;
}
.pillar p { font-size: 0.97rem; line-height: 1.7; color: var(--haze); }

/* Stats strip on inner pages */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  border-top: 1px solid var(--seam);
  border-bottom: 1px solid var(--seam);
  padding: clamp(2.4rem, 5vh, 3.6rem) 0;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(3rem, 7vw, 7rem);
  align-items: start;
}
.contact-detail { display: flex; flex-direction: column; gap: 2.2rem; }
.detail-item { display: flex; flex-direction: column; gap: 0.5rem; }
.detail-item dt {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--flame);
}
.detail-item dd {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ice);
}
.detail-item dd a { color: var(--ice); border-bottom: 1px solid var(--seam); transition: border-color 0.3s var(--ease), color 0.3s var(--ease); }
.detail-item dd a:hover { color: var(--current); border-color: var(--current); }
.detail-pending {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: #6F8296;
}

.form-card {
  border: 1px solid var(--seam);
  padding: clamp(1.8rem, 3.4vw, 3rem);
  background: var(--steel);
}
.form-card h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.9rem);
  letter-spacing: -0.022em;
  font-variation-settings: 'wdth' 108;
  margin-bottom: 0.6rem;
}
.form-card .form-intro {
  font-size: 0.97rem;
  color: var(--haze);
  line-height: 1.65;
  margin-bottom: 2rem;
}

/* ============================================================
   EMPLOYEE PAGE
   ============================================================ */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--seam);
  border: 1px solid var(--seam);
}
.resource {
  background: var(--void);
  padding: clamp(1.8rem, 3vw, 2.6rem);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 220px;
  transition: background 0.4s var(--ease);
}
.resource:hover { background: #0B1219; }
.resource-tag {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--current);
}
.resource h3 {
  font-size: clamp(1.1rem, 1.7vw, 1.45rem);
  line-height: 1.15;
  letter-spacing: -0.018em;
  font-variation-settings: 'wdth' 106;
}
.resource p { font-size: 0.94rem; line-height: 1.65; color: var(--haze); }
.resource-state {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6F8296;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.resource-state::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--flame);
  border-radius: 50%;
}

.portal-note {
  margin-top: 2.5rem;
  padding: 1.5rem 1.8rem;
  border-left: 2px solid var(--current);
  background: var(--steel);
  font-size: 0.96rem;
  line-height: 1.7;
  color: var(--haze);
  max-width: 68ch;
}

/* ============================================================
   OVERVIEW VIDEO
   ============================================================ */
.section-video { background: var(--steel); }

.video-frame {
  position: relative;
  max-width: 1180px;
  border: 1px solid var(--seam);
  background: var(--void);
  overflow: hidden;
}
.video-frame video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: var(--void);
}

/* Play affordance sits over the poster and steps aside once playing.
   The video carries a voiceover, so it never autoplays. */
.video-play {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  width: 100%;
  border: 0;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(7,9,12,0.34) 0%, rgba(7,9,12,0.62) 100%);
  transition: opacity 0.45s var(--ease), visibility 0.45s;
}
.video-play[hidden] { display: none; }
.video-frame.is-playing .video-play { opacity: 0; visibility: hidden; pointer-events: none; }

.video-play-icon {
  position: relative;
  width: 78px;
  height: 78px;
  border: 1px solid rgba(234,240,246,0.5);
  border-radius: 50%;
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease), background 0.35s var(--ease);
}
.video-play-icon::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent var(--ice);
  transition: border-left-color 0.35s var(--ease);
}
.video-play:hover .video-play-icon,
.video-play:focus-visible .video-play-icon {
  border-color: var(--flame);
  background: rgba(255,90,31,0.12);
  transform: scale(1.06);
}
.video-play:hover .video-play-icon::before { border-left-color: var(--flame); }

.video-play-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ice);
  text-shadow: 0 1px 14px rgba(0,0,0,0.85);
}
.video-play-label em {
  font-style: normal;
  color: var(--current);
  margin-left: 0.6rem;
}

@media (max-width: 640px) {
  .video-play-icon { width: 60px; height: 60px; }
  .video-play-icon::before { border-width: 9px 0 9px 15px; }
  .video-play-label { font-size: 0.62rem; letter-spacing: 0.18em; }
}

/* ============================================================
   LEGAL PAGES
   ============================================================ */
.legal-hero {
  padding: calc(var(--header-h) + clamp(5rem, 12vh, 9rem)) var(--gut) clamp(3rem, 6vh, 5rem);
  border-bottom: 1px solid var(--seam);
  background: var(--steel);
}
.legal-title {
  font-size: clamp(2.4rem, 6.5vw, 5.5rem);
  line-height: 0.92;
  letter-spacing: -0.038em;
  font-variation-settings: 'wdth' 114;
}
.legal-updated {
  margin-top: 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #74879B;
}
.legal-body { padding: clamp(4rem, 9vh, 7rem) var(--gut); max-width: 900px; }
.legal-body h2 {
  font-size: clamp(1.3rem, 2.3vw, 1.9rem);
  line-height: 1.15;
  letter-spacing: -0.022em;
  font-variation-settings: 'wdth' 108;
  margin: 3rem 0 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--seam);
}
.legal-body h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal-body p,
.legal-body li {
  font-size: 1rem;
  line-height: 1.78;
  color: var(--haze);
}
.legal-body p + p { margin-top: 1.1rem; }
.legal-body ul { margin: 1.1rem 0 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: 0.5rem; }
.legal-body strong { color: var(--ice); font-weight: 500; }

/* Anything the owner still has to supply is marked, not hidden. */
.fill-in {
  display: inline;
  padding: 0.1em 0.45em;
  background: rgba(255,90,31,0.12);
  border-bottom: 1px solid var(--flame);
  font-family: var(--font-mono);
  font-size: 0.86em;
  color: #FFB08C;
}
.legal-callout {
  margin-bottom: 3rem;
  padding: 1.4rem 1.7rem;
  border-left: 2px solid var(--flame);
  background: var(--steel);
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--haze);
}

/* ============================================================
   CTA BAND (shared, inner pages)
   ============================================================ */
.cta-band {
  padding: clamp(5rem, 11vh, 9rem) var(--gut);
  background: var(--steel);
  border-top: 1px solid var(--seam);
}
.cta-inner { max-width: 900px; }
.cta-heading {
  font-size: clamp(2.4rem, 6vw, 5.6rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
  font-variation-settings: 'wdth' 114;
  margin-bottom: 1.5rem;
  text-wrap: balance;
}
.cta-band p {
  font-size: clamp(1rem, 1.15vw, 1.16rem);
  line-height: 1.7;
  color: var(--haze);
  max-width: 52ch;
  margin-bottom: 2.4rem;
}
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .service,
  .spec-grid,
  .pillars,
  .contact-layout,
  .resource-grid,
  .check-list { grid-template-columns: 1fr; }
  .service.flip .service-media { order: 0; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .code-row { grid-template-columns: 1fr; gap: 0.3rem; }
}

@media (max-width: 560px) {
  .stat-strip { grid-template-columns: 1fr; }
  .cta-actions .btn { flex: 1 1 100%; }
}
