/* ============================================================================
   InfraTech LLC — Sections
   hero · capabilities · process · stats · global band · CTA · inner pages
   ========================================================================== */

/* ========================================================================
   HERO
   ===================================================================== */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding-top: var(--header-h); }
.hero__inner {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter);
  width: 100%; align-items: center;
  padding-block: clamp(2rem, 5vw, 4rem);
}
.hero__head { grid-column: 1 / 8; display: flex; flex-direction: column; gap: var(--sp-5); }
.hero__media { grid-column: 8 / 13; }

.hero__title { display: flex; flex-direction: column; }
.hero__line { overflow: hidden; display: block; }
.hero__line > span {
  display: block;
  font-family: var(--font-display); font-weight: 800;
  font-size: var(--fs-h1); line-height: 1.05; white-space: normal;
  letter-spacing: var(--track-mega); color: var(--pure);
  transform: translateY(110%);
}
.hero__line--accent > span { color: var(--filament); }
/* load animation (JS removes .preload to play; CSS provides the keyframe) */
.is-ready .hero__line > span { animation: lineUp .9s var(--ease-out) forwards; }
.is-ready .hero__line:nth-child(2) > span { animation-delay: .09s; }
.is-ready .hero__line:nth-child(3) > span { animation-delay: .18s; }
@keyframes lineUp { to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .hero__line > span { transform: none; animation: none; }
}

.hero__lead { color: var(--ink-bright); font-size: var(--fs-lead); line-height: 1.5; max-width: 48ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--sp-4); align-items: center; }

/* hero media panel */
.hero__panel {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-sm);
  overflow: hidden; border: 1px solid var(--line); background: var(--graphite);
  box-shadow: var(--shadow-pop);
}
.hero__panel img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.95) contrast(1.05); }
/* duotone wash to seat the photo into the palette */
.hero__panel::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8,9,12,.1), rgba(8,9,12,.55)),
    radial-gradient(120% 90% at 80% 10%, var(--filament-soft), transparent 55%);
  mix-blend-mode: normal;
}
/* one-shot scan line */
.hero__scan {
  position: absolute; left: 0; right: 0; top: 0; height: 1px; z-index: 4;
  background: linear-gradient(90deg, transparent, var(--filament), transparent);
  box-shadow: 0 0 14px 1px var(--filament-glow);
  opacity: .9;
}
.is-ready .hero__scan { animation: scan 2.6s var(--ease-inout) .5s 1 forwards; }
@keyframes scan { 0% { top: 0; opacity: 0; } 12% { opacity: .9; } 88% { opacity: .9; } 100% { top: 100%; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hero__scan { display: none; } }

.hero__panel-label {
  position: absolute; left: 14px; bottom: 14px; z-index: 5;
  font-family: var(--font-mono); font-size: var(--fs-mono); letter-spacing: var(--track-mono);
  text-transform: uppercase; color: var(--ink-bright);
  background: rgba(8,9,12,.55); padding: .45em .7em; border: 1px solid var(--line); border-radius: var(--r-xs);
}
.hero__panel-label .tick { color: var(--filament); }

/* coordinate HUD top-right of panel */
.hero__hud {
  position: absolute; right: 14px; top: 14px; z-index: 5; text-align: right;
  font-family: var(--font-mono); font-size: var(--fs-mono); letter-spacing: .08em;
  color: var(--mist); line-height: 1.5;
}
.hero__hud b { color: var(--filament); font-weight: 500; font-variant-numeric: tabular-nums; }

/* hero footer dimension row — spread evenly across the full width */
.hero__foot {
  grid-column: 1 / -1; margin-top: clamp(1.5rem, 4vw, 3rem);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline;
  gap: clamp(1.2rem, 2.5vw, 2rem) clamp(2rem, 6vw, 5rem);
  padding-top: var(--sp-5); border-top: 1px solid var(--line);
}
.hero__metric { display: flex; align-items: baseline; gap: .55em; }
.hero__metric b {
  font-family: var(--font-display); font-weight: 800; color: var(--pure);
  font-size: clamp(1.3rem, 1rem + 1.2vw, 1.9rem); letter-spacing: -.02em; font-variant-numeric: tabular-nums;
}
.hero__metric b .u { color: var(--filament); }
.hero__metric span { font-family: var(--font-mono); font-size: var(--fs-mono); letter-spacing: var(--track-mono); text-transform: uppercase; color: var(--mist); max-width: 18ch; }

@media (max-width: 980px) {
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 2rem); padding-bottom: 2rem; }
  .hero__head { grid-column: 1 / -1; }
  .hero__media { grid-column: 1 / -1; max-width: 460px; }
  .hero__panel { aspect-ratio: 16 / 11; }
}

/* ========================================================================
   GENERIC SECTION HEADER ROW (eyebrow+title left, intro right)
   ===================================================================== */
.head-row {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter);
  align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.head-row__title { grid-column: 1 / 8; display: flex; flex-direction: column; gap: var(--sp-4); }
.head-row__title h2 { max-width: 16ch; }
.head-row__aside { grid-column: 8 / 13; display: flex; flex-direction: column; gap: var(--sp-4); align-items: flex-start; }
.head-row__aside p { color: var(--ink); max-width: 44ch; }
@media (max-width: 860px) {
  .head-row__title, .head-row__aside { grid-column: 1 / -1; }
  .head-row { gap: var(--sp-5); }
}

/* ========================================================================
   CAPABILITIES GRID
   ===================================================================== */
.cap-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gutter); }
.cap-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 820px) { .cap-grid, .cap-grid--3 { grid-template-columns: 1fr; } }
@media (min-width: 560px) and (max-width: 820px) { .cap-grid--3 { grid-template-columns: repeat(2, 1fr); } }

/* ========================================================================
   PROCESS / HOW IT WORKS
   ===================================================================== */
.process__media {
  position: relative; border-radius: var(--r-sm); overflow: hidden;
  border: 1px solid var(--line); aspect-ratio: 16 / 8; background: var(--graphite);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.process__media video { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9) contrast(1.05); }
.process__media::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgba(8,9,12,.25), rgba(8,9,12,.5)), radial-gradient(100% 100% at 50% 100%, var(--filament-soft), transparent 60%);
}
.process__play {
  position: absolute; left: 50%; top: 50%; z-index: 4; transform: translate(-50%,-50%);
  width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--filament-line); background: rgba(8,9,12,.5); color: var(--filament);
  transition: transform var(--dur) var(--ease-out), background var(--dur);
}
.process__play:hover { transform: translate(-50%,-50%) scale(1.08); background: var(--filament-soft); }
.process__play svg { width: 22px; height: 22px; }
.process__play.is-playing { opacity: 0; pointer-events: none; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); position: relative; counter-reset: step; }
.step { position: relative; display: flex; flex-direction: column; gap: var(--sp-3); padding-top: var(--sp-5); }
.step::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--line); }
.step::after {            /* node tick on the rule */
  content: ""; position: absolute; top: -3px; left: 0; width: 7px; height: 7px;
  background: var(--filament); border-radius: 50%;
}
.step__num { font-family: var(--font-mono); font-size: var(--fs-mono); letter-spacing: .1em; color: var(--filament); }
.step h4 { font-size: var(--fs-h4); }
.step p { color: var(--ink); font-size: var(--fs-small); }
@media (max-width: 880px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .steps { grid-template-columns: 1fr; } }

/* ========================================================================
   STATS BAND
   ===================================================================== */
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); }
@media (max-width: 820px) { .stats-band { grid-template-columns: repeat(2, 1fr); gap: var(--sp-7) var(--gutter); } }
@media (max-width: 380px) { .stats-band { grid-template-columns: 1fr; } }

/* ========================================================================
   GLOBAL / COMPLIANCE BAND
   ===================================================================== */
.global {
  position: relative; border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--line); background: var(--graphite);
  padding: clamp(2.5rem, 6vw, 5.5rem);
  display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); align-items: center;
}
.global__bg { position: absolute; inset: 0; z-index: 0; opacity: .5; }
.global__bg img { width: 100%; height: 100%; object-fit: cover; }
.global::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, var(--graphite) 30%, rgba(12,15,20,.4) 100%);
}
.global__content { position: relative; z-index: 2; grid-column: 1 / 8; display: flex; flex-direction: column; gap: var(--sp-5); }
.global__badges { position: relative; z-index: 2; grid-column: 8 / 13; display: flex; flex-wrap: wrap; gap: .7rem; align-content: center; }
.std {
  font-family: var(--font-mono); font-size: var(--fs-small); letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-bright);
  padding: .7em 1em; border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  background: rgba(8,9,12,.4); display: inline-flex; align-items: center; gap: .6em;
}
.std .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--blueprint); }
@media (max-width: 860px) {
  .global__content, .global__badges { grid-column: 1 / -1; }
  .global::before { background: linear-gradient(180deg, var(--graphite) 40%, rgba(12,15,20,.55)); }
}

/* ========================================================================
   CTA BAND
   ===================================================================== */
.cta { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; gap: var(--sp-6); }
.cta__title { font-size: var(--fs-h2); max-width: 18ch; }
.cta__title--break { max-width: none; }
.cta__actions { display: flex; flex-wrap: wrap; gap: var(--sp-4); justify-content: center; }
.cta__glow { position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 60% at 50% 40%, var(--filament-soft), transparent 70%); pointer-events: none; }

/* ========================================================================
   INNER-PAGE HERO (about / services / why / contact)
   ===================================================================== */
.page-hero { position: relative; padding-top: calc(var(--header-h) + clamp(3rem, 8vw, 7rem)); padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.page-hero__inner { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); align-items: end; }
.page-hero__head { grid-column: 1 / 9; display: flex; flex-direction: column; gap: var(--sp-5); }
.page-hero__head h1 { font-size: var(--fs-h1); }
.page-hero__aside { grid-column: 9 / 13; display: flex; flex-direction: column; gap: var(--sp-4); align-items: flex-start; }
.breadcrumb { font-family: var(--font-mono); font-size: var(--fs-mono); letter-spacing: var(--track-mono); text-transform: uppercase; color: var(--mist); display: flex; gap: .6em; align-items: center; }
.breadcrumb a:hover { color: var(--filament); }
.breadcrumb .sep { color: var(--filament); }
@media (max-width: 860px) { .page-hero__head, .page-hero__aside { grid-column: 1 / -1; } }

/* centered, stacked variant (About): title above, intro centered below */
.page-hero--stacked .page-hero__inner { grid-template-columns: 1fr; justify-items: center; align-items: center; text-align: center; gap: var(--sp-6); }
.page-hero--stacked .page-hero__head { grid-column: 1 / -1; align-items: center; }
.page-hero--stacked .page-hero__aside { grid-column: 1 / -1; align-items: center; max-width: 60ch; }

/* ========================================================================
   PROSE / NARRATIVE BLOCKS (about, why)
   ===================================================================== */
.prose-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); }
.prose-grid__label { grid-column: 1 / 4; }
.prose-grid__body { grid-column: 4 / 11; display: flex; flex-direction: column; gap: var(--sp-5); }
.prose-grid__body p { color: var(--ink); max-width: 60ch; }
.prose-grid__body p.lead { color: var(--ink-bright); }
@media (max-width: 860px) {
  .prose-grid__label { grid-column: 1 / -1; }
  .prose-grid__body { grid-column: 1 / -1; }
}

/* bullet list with filament ticks */
.tick-list { display: flex; flex-direction: column; gap: var(--sp-4); }
.tick-list li { position: relative; padding-left: 1.8em; color: var(--ink); max-width: 60ch; }
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 1px; background: var(--filament);
}
.tick-list li strong { display: block; color: var(--pure); font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; margin-bottom: .15em; letter-spacing: -.01em; }

/* two-column feature list (Why page "What makes us different") */
.feature-cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-7) var(--sp-8); }
@media (max-width: 760px) { .feature-cols { grid-template-columns: 1fr; gap: var(--sp-6); } }
.feature { display: flex; flex-direction: column; gap: .5rem; position: relative; padding-top: var(--sp-4); border-top: 1px solid var(--line); }
.feature__idx { font-family: var(--font-mono); font-size: var(--fs-mono); letter-spacing: .1em; color: var(--filament); }
.feature h4 { font-size: var(--fs-h4); }
.feature p { color: var(--ink); font-size: var(--fs-small); }

/* ========================================================================
   SERVICES — document / report rows
   ===================================================================== */
.doc-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.doc {
  display: grid; grid-template-columns: auto 1fr auto; gap: var(--gutter); align-items: center;
  padding-block: clamp(1.4rem, 3vw, 2.2rem); border-bottom: 1px solid var(--line);
  position: relative; transition: background var(--dur) var(--ease-out);
}
.doc::before { content: ""; position: absolute; left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter)); top: 0; bottom: 0; z-index: -1; background: var(--filament-soft); opacity: 0; transition: opacity var(--dur); }
.doc:hover::before { opacity: 1; }
.doc__idx { font-family: var(--font-mono); font-size: var(--fs-index); letter-spacing: .1em; color: var(--filament); }
.doc__main { display: flex; flex-direction: column; gap: .4rem; }
.doc__main h3 { font-size: var(--fs-h3); transition: color var(--dur); }
.doc:hover .doc__main h3 { color: var(--filament-bright); }
.doc__main p { color: var(--mist); font-size: var(--fs-small); font-family: var(--font-mono); letter-spacing: .04em; }
.doc__action { display: flex; align-items: center; gap: var(--sp-4); }
.doc__dl {
  display: inline-flex; align-items: center; gap: .6em; white-space: nowrap;
  font-family: var(--font-mono); font-size: var(--fs-small); text-transform: uppercase; letter-spacing: .04em;
  color: var(--ink-bright); padding: .7em 1.1em; border: 1px solid var(--edge); border-radius: var(--r-sm);
  transition: border-color var(--dur-fast), color var(--dur-fast), background var(--dur-fast);
}
.doc__dl:hover { border-color: var(--filament-line); color: var(--filament); background: var(--filament-soft); }
.doc__dl svg { width: 1.05em; height: 1.05em; }
@media (max-width: 680px) {
  .doc { grid-template-columns: auto 1fr; }
  .doc__action { grid-column: 1 / -1; }
}

/* ========================================================================
   CONTACT LAYOUT
   ===================================================================== */
.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.contact-form-shell {
  background: var(--steel); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: clamp(1.6rem, 4vw, 3rem); position: relative; overflow: hidden;
}
.contact-aside { display: flex; flex-direction: column; gap: var(--sp-7); position: sticky; top: calc(var(--header-h) + 1.5rem); }
.contact-aside__block { display: flex; flex-direction: column; gap: var(--sp-3); }
.contact-aside__block h4 { font-size: var(--fs-h4); }
.contact-aside__big {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.2rem, 1rem + 1vw, 1.6rem);
  letter-spacing: -.01em; color: var(--filament); word-break: break-word;
}
.contact-aside__big:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact-aside p { color: var(--ink); font-size: var(--fs-small); }
@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-aside { position: static; }
}

/* ========================================================================
   404
   ===================================================================== */
.error-page { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: var(--header-h) var(--gutter) var(--gutter); }
.error-page__code {
  font-family: var(--font-display); font-weight: 900; line-height: .85;
  font-size: clamp(6rem, 28vw, 18rem); letter-spacing: -.04em; color: transparent;
  -webkit-text-stroke: 1px var(--filament-line); margin-bottom: var(--sp-5);
}
.error-page__inner { display: flex; flex-direction: column; align-items: center; gap: var(--sp-5); }

/* ========================================================================
   FOUNDER  (About — "About the Founder")
   ===================================================================== */
.founder { display: grid; grid-template-columns: minmax(250px, 5fr) 7fr; gap: var(--sp-7) var(--sp-8); align-items: start; }
@media (max-width: 860px) { .founder { grid-template-columns: 1fr; gap: var(--sp-6); } }
.founder__media { display: flex; flex-direction: column; gap: var(--sp-4); position: sticky; top: calc(var(--header-h) + 1.2rem); }
@media (max-width: 860px) { .founder__media { position: static; } }
.founder__photo { position: relative; border: 1px solid var(--line-strong); border-radius: var(--r-md); overflow: hidden; background: var(--graphite); aspect-ratio: 4 / 5; }
.founder__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.founder__id { display: flex; flex-direction: column; gap: .3rem; }
.founder__name { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h4); color: var(--pure); letter-spacing: -.01em; }
.founder__role { color: var(--ink-bright); font-size: var(--fs-small); }
.founder__langs { font-family: var(--font-mono); font-size: var(--fs-mono); letter-spacing: .04em; color: var(--mist); margin-top: .15rem; }
.founder__id .link-arrow { margin-top: .4rem; }
.founder__body { display: flex; flex-direction: column; gap: var(--sp-6); }
.founder__sub { display: flex; flex-direction: column; gap: var(--sp-3); }
.founder__badges { display: flex; flex-wrap: wrap; gap: .6rem; }

/* ========================================================================
   COMPANIES STRIP  (About — "Companies I have worked with")
   ===================================================================== */
.companies { display: flex; flex-direction: column; gap: var(--sp-4); }
.companies__names { display: flex; flex-wrap: wrap; gap: .6rem; }
.companies__names .std { color: var(--ink-bright); }
.companies__refs { display: flex; flex-direction: column; gap: .3rem; margin-top: .3rem; }
.companies__refs p { color: var(--mist); font-size: var(--fs-small); max-width: 74ch; }

/* service cards (Services) — prose description, not a downloadable doc */
.doc--svc .doc__main p { font-family: var(--font-body); text-transform: none; letter-spacing: 0; color: var(--ink); font-size: var(--fs-body); max-width: 66ch; }
.doc--svc:hover::before { opacity: 0; }
.doc--svc:hover .doc__main h3 { color: var(--pure); }

/* header brand lockup with business tagline */
.brand-lockup { display: flex; flex-direction: column; gap: 3px; }
.brand-tagline { font-family: var(--font-mono); font-size: 10px; letter-spacing: .03em; color: var(--mist); white-space: nowrap; line-height: 1; }
@media (max-width: 820px) { .brand-tagline { display: none; } }

/* footer reach line */
.footer__reach { color: var(--mist); font-size: var(--fs-small); margin-top: .45rem; }

/* contact form prompt */
.form__prompt { color: var(--ink-bright); font-size: 1.05rem; line-height: 1.5; margin-bottom: var(--sp-6); max-width: 52ch; position: relative; z-index: 2; }

/* center the About (stacked page-hero) buttons on mobile */
@media (max-width: 860px) {
  .page-hero--stacked .hero__cta { align-self: stretch; justify-content: center; }
}
