/* =========================================================================
   BigData Services Limited — Design System
   Palette:  Void #0B0D10 · Steel #16191D · Iron #2A2E34 · Ash #9AA1AB
             Paper #EEF1F4 · Arc Cyan #3FE0D6 · Ember #FF7A3D
   Type:     Big Shoulders Display (headlines) · IBM Plex Sans (body)
             IBM Plex Mono (labels / data / eyebrows)
   Brand is deliberately single-theme (dark, industrial) — colors are
   painted explicitly so the page holds on any host ground.
   ========================================================================= */

:root{
  --void:      #0B0D10;
  --void-2:    #0E1114;
  --steel:     #15181C;
  --steel-2:   #1B1F24;
  --iron:      #2A2E34;
  --iron-2:    #383D45;
  --ash:       #9AA1AB;
  --ash-dim:   #6B7178;
  --paper:     #EEF1F4;
  --white:     #FFFFFF;
  --cyan:      #3FE0D6;
  --cyan-dim:  #245B57;
  --cyan-glow: rgba(63,224,214,0.18);
  --ember:     #FF7A3D;
  --ember-dim: #6B3A22;
  --ember-glow:rgba(255,122,61,0.16);

  --bg:        var(--void);
  --surface:   var(--steel);
  --surface-2: var(--steel-2);
  --border:    var(--iron);
  --border-2:  var(--iron-2);
  --text:      var(--paper);
  --text-dim:  var(--ash);
  --text-faint:var(--ash-dim);
  --accent:    var(--cyan);
  --accent-2:  var(--ember);

  --font-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --font-body: "IBM Plex Sans", -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4.5rem;
  --space-8: 6.5rem;

  --radius: 3px;
  --max: 1180px;

  color-scheme: dark;
}

*, *::before, *::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img{ max-width: 100%; display: block; }

a{ color: inherit; text-decoration: none; }

h1,h2,h3,h4{
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.98;
  margin: 0;
  text-wrap: balance;
  color: var(--white);
  position: relative;
  /* embossed glow: a soft light catch on top and a wide cyan halo give
     bold headline type a raised, lit look. This uses filter: drop-shadow
     rather than text-shadow deliberately — text-shadow's blur layers,
     combined with the transparent fill background-clip:text needs below,
     rasterize incorrectly in Chromium and silently wash the type out to
     a dim gray (confirmed by isolated testing); drop-shadow shades the
     element's actual rendered pixels instead, so it composites correctly
     on top of the clipped gradient fill. */
  filter:
    drop-shadow(0 1px 0 rgba(255,255,255,0.25))
    drop-shadow(0 0 14px rgba(63,224,214,0.45))
    drop-shadow(0 0 30px rgba(63,224,214,0.22));
  /* a bright band sweeps right-to-left through the type on a loop */
  background-image: linear-gradient(100deg,
    var(--white) 0%, var(--white) 42%,
    #F4FFFE 48%, var(--cyan) 50%, #F4FFFE 52%,
    var(--white) 58%, var(--white) 100%);
  background-size: 300% 100%;
  background-repeat: no-repeat;
  background-position: 0% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: header-sparkle 6s ease-in-out infinite;
}
/* background-position percentages are relative to (background-size -
   element-size), so with a 300%-wide background the full in-bounds
   sweep runs from 0% to 100% — going outside that range (as an earlier
   version of this rule did) pushes the gradient off its own painted
   area and the text renders as good as blank. 0%->100% keeps the sweep
   fully inside the tile and reads as the highlight moving right to left
   across the type. */
@keyframes header-sparkle{
  0%   { background-position: 0% 0; }
  55%  { background-position: 100% 0; }
  100% { background-position: 100% 0; }
}
@supports not ((background-clip: text) or (-webkit-background-clip: text)){
  h1,h2,h3,h4{ background: none; color: var(--white); animation: none; }
}
@media (prefers-reduced-motion: reduce){
  h1,h2,h3,h4{ animation: none; background-position: 0% 0; }
}

p{ margin: 0; }

ul{ margin: 0; padding: 0; list-style: none; }

/* thin fixed progress bar showing scroll position through the page */
.scroll-progress{
  position: fixed; top: 0; left: 0; right: 0; height: 3px;
  z-index: 100; background: transparent; pointer-events: none;
}
.scroll-progress-bar{
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--cyan-dim), var(--accent));
  box-shadow: 0 0 12px var(--cyan-glow);
  transition: width 0.1s linear;
}
@media (prefers-reduced-motion: reduce){ .scroll-progress-bar{ transition: none; } }

/* subtle background texture: grid + grain, applied to body via layered
   pseudo element so it never interferes with content stacking */
.texture-grid{
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 90%);
}

.container{
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--space-4);
  position: relative;
  z-index: 1;
}

@media (min-width: 640px){
  .container{ padding-inline: var(--space-6); }
}

.section{ padding-block: var(--space-7); position: relative; z-index: 1; }
.section-tight{ padding-block: var(--space-6); }
@media (max-width: 640px){
  .section{ padding-block: var(--space-6); }
}

.section-alt{ background: var(--void-2); }

/* ---- eyebrow / labels ---------------------------------------------- */
.eyebrow{
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}
.eyebrow::before{
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}
.eyebrow.ember{ color: var(--accent-2); }
.eyebrow.ember::before{ background: var(--accent-2); }

/* ---- type scale ------------------------------------------------------ */
.display-1{ font-size: clamp(2.6rem, 6vw, 5rem); }
.display-2{ font-size: clamp(2rem, 4.2vw, 3.4rem); }
.display-3{ font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.display-4{ font-size: clamp(1.15rem, 1.6vw, 1.4rem); }

.lede{
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--text-dim);
  max-width: 62ch;
  line-height: 1.65;
}
.body-text{ color: var(--text-dim); max-width: 65ch; line-height: 1.75; }
.body-text strong{ color: var(--text); font-weight: 600; }

.stat-num{
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* ---- buttons ----------------------------------------------------------*/
.btn{
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:focus-visible{ outline: 2px solid var(--accent); outline-offset: 2px; }
.btn-primary{ background: var(--accent); color: var(--void); }
.btn-primary:hover{ background: #5CE9E0; transform: translateY(-2px); box-shadow: 0 10px 28px rgba(63,224,214,0.28); }
.btn-outline{ background: var(--surface); color: var(--text); }
.btn-outline:hover{ background: var(--surface-2); color: var(--accent); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,0.35); }
.btn-arrow{ transition: transform 0.15s ease; }
.btn:hover .btn-arrow{ transform: translateX(3px); }

.btn-row{ display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* ---- nav ----------------------------------------------------------- */
.nav{
  position: sticky; top: 0; z-index: 50;
  /* solid, not translucent+blurred: backdrop-filter on this ancestor would
     create a CSS containing block for the position:fixed mobile menu
     below, breaking its full-viewport stretch */
  background: var(--void);
}
.nav-row{
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand{ display: flex; align-items: center; gap: 0.6rem; }
.brand-mark{
  width: 30px; height: 30px; flex: none;
  display: grid; place-items: center;
  position: relative;
}
.brand-mark::before, .brand-mark::after{
  content: ""; position: absolute; background: var(--accent);
  box-shadow: 0 0 10px var(--cyan-glow);
}
.brand-mark::before{ width: 16px; height: 2px; }
.brand-mark::after{ width: 2px; height: 16px; }
.brand-name{
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  color: var(--white);
}
.brand-name span{ color: var(--accent); }

.nav-links{ display: flex; align-items: center; gap: var(--space-5); }
.nav-links a{
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding-block: 0.4rem;
  transition: color 0.15s ease, text-shadow 0.15s ease;
}
.nav-links a:hover, .nav-links a.active{ color: var(--accent); text-shadow: 0 0 12px var(--cyan-glow); }

.nav-cta{ display: flex; align-items: center; gap: var(--space-4); }

.nav-toggle{
  display: none;
  background: var(--surface); border: none; color: var(--text);
  width: 42px; height: 42px; border-radius: var(--radius);
  align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle svg{ width: 18px; height: 18px; }

.cta-mobile{ display: none; }

@media (max-width: 900px){
  .nav-links{
    position: fixed; inset: 72px 0 0 0;
    background: var(--void);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-5) var(--space-4);
    gap: var(--space-4);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    overflow-y: auto;
  }
  .nav-links.open{ opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-links a{ font-size: 0.95rem; width: 100%; }
  .nav-links .cta-mobile{ display: inline-flex; margin-top: var(--space-2); width: auto; }
  .nav-cta .btn-outline{ display: none; }
  .nav-toggle{ display: inline-flex; }
}

/* below ~540px even the single primary button + toggle no longer fits
   beside the brand — move the CTA into the mobile menu only */
@media (max-width: 540px){
  .nav-cta .cta-desktop{ display: none; }
}

/* ---- hero ------------------------------------------------------------ */
.hero{
  position: relative;
  padding-block: var(--space-8);
  overflow: hidden;
  background: var(--void);
}
@media (max-width: 640px){ .hero{ padding-block: var(--space-7) var(--space-8); } }
.hero-canvas{
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0;
  opacity: 0.85;
}
.hero-vignette{
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  /* scrim is heaviest behind the headline column (left side) so text stays
     legible, and opens up toward the right/top so the photo itself reads
     clearly as a photo rather than disappearing into the background */
  background: linear-gradient(100deg, var(--void) 0%, rgba(11,13,16,0.86) 20%, rgba(11,13,16,0.4) 42%, rgba(11,13,16,0.08) 62%, rgba(11,13,16,0.22) 100%),
              linear-gradient(180deg, rgba(11,13,16,0.05) 0%, rgba(11,13,16,0.1) 55%, rgba(11,13,16,0.55) 100%);
}
@media (max-width: 780px){
  .hero-vignette{
    /* on narrow screens the headline stacks full-width, so darken the
       whole lower two-thirds instead of just a left column */
    background: linear-gradient(180deg, rgba(11,13,16,0.35) 0%, rgba(11,13,16,0.55) 28%, rgba(11,13,16,0.88) 62%, var(--void) 100%);
  }
}
.hero-inner{ position: relative; z-index: 2; will-change: transform, opacity; }
.hero-slides{ will-change: transform; }

.scroll-cue{
  position: absolute; left: 50%; bottom: var(--space-5); z-index: 2;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  color: var(--text-faint); text-decoration: none;
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
}
.scroll-cue-line{
  width: 1px; height: 34px; background: linear-gradient(180deg, var(--accent), transparent);
  animation: scroll-cue-move 1.8s ease-in-out infinite;
}
@keyframes scroll-cue-move{
  0%   { transform: scaleY(0.3); transform-origin: top; opacity: 0.4; }
  50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(0.3); transform-origin: bottom; opacity: 0.4; }
}
@media (max-width: 640px){ .scroll-cue{ display: none; } }
@media (prefers-reduced-motion: reduce){ .scroll-cue-line{ animation: none; opacity: 0.6; } }

.hero-frame{ padding-left: 0; }

.hero h1{ margin-bottom: var(--space-4); }
.hero-meta{
  display: flex; flex-wrap: wrap; gap: var(--space-6);
  margin-top: var(--space-6);
  padding-top: var(--space-5);
}
.hero-meta div{ font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-faint); }
.hero-meta strong{ display: block; color: var(--text); font-size: 1.4rem; font-family: var(--font-mono); margin-top: 0.2rem; }

.small-hero{ padding-block: var(--space-7) var(--space-6); position: relative; overflow: hidden; }
.small-hero .display-1{ font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.small-hero .hero-inner{ position: relative; z-index: 2; }

/* photographs get one consistent treatment (grayscale + brand-tinted
   overlay) so images pulled from different sources read as one brand
   rather than a mismatched stock-photo grab-bag */
.hero-photo{
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
  filter: grayscale(25%) contrast(1.05) brightness(0.7);
}
/* rotating hero slideshow: stacked photos crossfade via opacity, so the
   layout never reflows and nothing depends on JS to show a first image */
.hero-slides{ position: absolute; inset: 0; z-index: 0; }
.hero-slides .hero-photo{ opacity: 0; transition: opacity 1.6s ease; }
.hero-slides .hero-photo.is-active{ opacity: 1; }
@media (prefers-reduced-motion: reduce){
  .hero-slides .hero-photo{ transition: none; }
}
.small-hero .hero-photo{ filter: grayscale(25%) contrast(1.05) brightness(0.6); }
.small-hero .hero-vignette{
  background: linear-gradient(180deg, rgba(11,13,16,0.2) 0%, rgba(11,13,16,0.45) 55%, var(--void) 96%),
              linear-gradient(115deg, var(--cyan-glow) 0%, transparent 45%);
}

/* ---- full-bleed photo stat band ---------------------------------------*/
.stat-band{
  position: relative; overflow: hidden;
  padding-block: var(--space-8);
}
.stat-band-photo{
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(30%) contrast(1.05) brightness(0.5); z-index: 0;
}
.stat-band-overlay{
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, var(--void) 0%, rgba(11,13,16,0.6) 26%, rgba(11,13,16,0.6) 74%, var(--void) 100%);
}
.stat-band-inner{ position: relative; z-index: 2; text-align: center; }
.stat-band-inner .eyebrow{ justify-content: center; }
.stat-band-row{
  display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-7);
  margin-top: var(--space-6);
}
.stat-band-item{ display: flex; flex-direction: column; align-items: center; gap: 0.4rem; min-width: 160px; }
.stat-band-item strong{
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 4rem); color: var(--white); line-height: 1;
}
.stat-band-item span{
  font-family: var(--font-mono); font-size: 0.78rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-dim);
}

/* ---- panels / cards ---------------------------------------------------*/
.panel{
  position: relative;
  background: var(--surface);
  padding: var(--space-5);
  border-radius: var(--radius);
  transition: transform 0.3s cubic-bezier(.16,.84,.44,1), box-shadow 0.3s ease, background 0.3s ease;
}
.panel:hover{
  transform: translateY(-4px);
  background: var(--surface-2);
  box-shadow: 0 18px 40px rgba(0,0,0,0.4), 0 0 28px var(--cyan-glow);
}

.panel-tight{ padding: var(--space-4); }

.grid{ display: grid; gap: var(--space-4); }
.grid-2{ grid-template-columns: repeat(2, 1fr); }
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-4{ grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px){ .grid-3, .grid-4{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px){ .grid-2, .grid-3, .grid-4{ grid-template-columns: 1fr; } }

.card{
  background: var(--surface);
  border-radius: var(--radius);
  padding: var(--space-5);
  display: flex; flex-direction: column; gap: var(--space-3);
  transition: transform 0.3s cubic-bezier(.16,.84,.44,1), background 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}
.card:hover{
  background: var(--surface-2);
  transform: translateY(-6px);
  box-shadow: 0 20px 44px rgba(0,0,0,0.42), 0 0 32px var(--cyan-glow);
}
.card:hover .icon-badge{ filter: drop-shadow(0 0 14px var(--cyan-glow)); }
.card-index{ font-family: var(--font-mono); color: var(--accent); font-size: 0.85rem; }
.card h3{ font-size: 1.35rem; text-transform: none; letter-spacing: 0; }
.card p{ color: var(--text-dim); font-size: 0.95rem; line-height: 1.6; }
.card-link{
  margin-top: auto; font-family: var(--font-mono); font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent);
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.card a.card-full{ position: absolute; inset: 0; border-radius: var(--radius); }
.card.linkable{ position: relative; }

.tag-list{ display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag{
  font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--text-dim);
  background: var(--surface-2); border-radius: 999px;
  padding: 0.3rem 0.7rem;
}

.list-check{ display: flex; flex-direction: column; gap: var(--space-3); }
.list-check li{ display: flex; gap: var(--space-3); align-items: flex-start; color: var(--text-dim); line-height: 1.6; }
.list-check li::before{
  content: ""; width: 7px; height: 7px; margin-top: 0.55rem; flex: none;
  background: var(--accent);
}
.list-check.ember li::before{ background: var(--accent-2); }

.divider{ height: 0; border: none; margin: var(--space-4) 0; }

.eyebrow-row{ display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; }

/* ---- process / methodology steps (genuinely sequential -> numbered) --*/
.steps{ display: grid; gap: var(--space-4); }
.step{
  display: grid; grid-template-columns: 90px 1fr; gap: var(--space-5);
  padding-block: var(--space-4);
  align-items: start;
}
.step-num{ font-family: var(--font-mono); color: var(--accent); font-size: 1.6rem; }
.step h4{ text-transform: none; letter-spacing: 0; font-size: 1.1rem; margin-bottom: 0.3rem; }
.step p{ color: var(--text-dim); font-size: 0.95rem; }
@media (max-width: 560px){ .step{ grid-template-columns: 44px 1fr; } .step-num{ font-size: 1.15rem; } }

/* ---- quote / positioning ---------------------------------------------*/
.statement{
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  line-height: 1.15;
  color: var(--white);
  padding-left: 0;
}
.statement em{ font-style: normal; color: var(--accent); }

/* ---- CTA band ---------------------------------------------------------*/
.cta-band{
  background: var(--void-2);
  position: relative;
}
.cta-band .container{ display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); flex-wrap: wrap; }

/* ---- footer ------------------------------------------------------------*/
.footer{ padding-block: var(--space-6); background: var(--void-2); }
.footer-grid{ display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--space-5); }
@media (max-width: 760px){ .footer-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px){ .footer-grid{ grid-template-columns: 1fr; } }
.footer h5{
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em;
  font-size: 0.75rem; color: var(--text-faint); margin-bottom: var(--space-3);
}
.footer ul{ display: flex; flex-direction: column; gap: 0.6rem; }
.footer a{ color: var(--text-dim); font-size: 0.9rem; }
.footer a:hover{ color: var(--accent); }
.footer-bottom{
  margin-top: var(--space-6); padding-top: var(--space-4);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-2);
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-faint);
}
.footer-brand p{ color: var(--text-dim); font-size: 0.9rem; margin-top: var(--space-3); max-width: 34ch; }

/* ---- breadcrumb / service page header ---------------------------------*/
.breadcrumb{ font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-faint); display: flex; gap: 0.5rem; align-items: center; margin-bottom: var(--space-4); }
.breadcrumb a{ color: var(--text-dim); }
.breadcrumb a:hover{ color: var(--accent); }

/* ---- content visibility --------------------------------------------
   Every section is visible at rest, independent of JS — this is the
   default and it never changes. The animated reveal below is opt-in:
   it only applies once script.js has confirmed it's running and added
   html.js-ready, and only to elements not yet marked .is-visible by the
   IntersectionObserver there. So a slow, failed, or disabled script (or
   a print/PDF export, or a full-page capture taken before JS runs)
   always leaves every section fully visible — nothing ever depends on
   the observer firing to become readable. */
.reveal{ opacity: 1; transform: none; }
html.js-ready .reveal{
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(.16,.84,.44,1), transform 0.7s cubic-bezier(.16,.84,.44,1);
}
html.js-ready .reveal.is-visible{
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce){
  html.js-ready .reveal{ opacity: 1; transform: none; transition: none; }
}

/* ---- misc ---------------------------------------------------------------*/
.kicker-line{ display:flex; align-items:center; gap: var(--space-3); color: var(--text-faint); font-family: var(--font-mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; }
.kicker-line .line{ display: none; }

.two-col{ display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); align-items: start; }
.two-col > *{ min-width: 0; } /* grid items default to min-width:auto, which lets a wide child (e.g. a <select>) blow out the column */
@media (max-width: 820px){ .two-col{ grid-template-columns: 1fr; } }

.grid > *{ min-width: 0; }
.form-field select{ max-width: 100%; }

.icon-badge{
  width: 46px; height: 46px;
  display: grid; place-items: center; color: var(--accent);
  flex: none;
  filter: drop-shadow(0 0 8px var(--cyan-glow));
}
.icon-badge svg{ width: 22px; height: 22px; }

.industry-card{ display: flex; flex-direction: column; padding: 0; overflow: hidden; border-radius: 0; }
.industry-card .tag{ align-self: flex-start; }
/* flush mosaic layout: no lift-on-hover (it would tear a gap in the
   edge-to-edge grid) — glow in place instead */
.industry-card:hover{ transform: none; position: relative; z-index: 2; box-shadow: inset 0 0 0 2px var(--cyan-dim), 0 0 36px var(--cyan-glow); }
.industry-photo{ position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.industry-photo img{
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(35%) contrast(1.08) brightness(0.72);
  transition: transform 0.4s ease, filter 0.4s ease;
}
.industry-card:hover .industry-photo img{ transform: scale(1.04); filter: grayscale(15%) contrast(1.08) brightness(0.8); }
.industry-photo::after{
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,13,16,0) 35%, var(--steel) 100%),
              linear-gradient(150deg, var(--cyan-glow) 0%, transparent 50%);
}
.industry-photo .icon-badge{
  position: absolute; top: var(--space-3); left: var(--space-3); z-index: 2;
  background: rgba(11,13,16,0.55);
}
.industry-body{ padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-3); flex: 1; }

/* full-bleed grid of photo+text cards (e.g. the Industries page), touching
   edge-to-edge with no gap so the photography reads as one continuous
   band rather than isolated boxes */
.card-grid-flush{
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
}
@media (max-width: 900px){ .card-grid-flush{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){ .card-grid-flush{ grid-template-columns: 1fr; } }

/* breaks an element out of .container to span the full viewport width,
   for photography that should bleed edge-to-edge rather than sit boxed
   inside the page's readable column */
.full-bleed{ width: 100vw; margin-left: calc(50% - 50vw); position: relative; z-index: 1; }

/* edge-to-edge photo mosaic used for the Industries preview on the homepage */
.tile-grid{
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
}
@media (max-width: 900px){ .tile-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px){ .tile-grid{ grid-template-columns: 1fr; } }

.industry-tile{
  position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden;
  text-decoration: none;
  transition: box-shadow 0.3s ease, z-index 0s;
}
.industry-tile img{
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(30%) contrast(1.06) brightness(0.58);
  transition: transform 0.45s ease, filter 0.45s ease;
}
.industry-tile::after{
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,13,16,0) 30%, var(--void) 92%);
}
.industry-tile-label{
  position: absolute; left: var(--space-4); right: var(--space-4); bottom: var(--space-4); z-index: 2;
  color: var(--white); font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.01em;
  font-size: 1.1rem; font-weight: 700; line-height: 1.15;
}
.industry-tile:hover{
  z-index: 2;
  box-shadow: inset 0 0 0 2px var(--cyan-dim), 0 0 32px var(--cyan-glow);
}
.industry-tile:hover img{ transform: scale(1.08); filter: grayscale(10%) contrast(1.1) brightness(0.7); }

/* full-bleed photo used inside an otherwise padded panel (e.g. About page) */
.panel-photo{
  aspect-ratio: 16 / 10; overflow: hidden;
  position: relative; margin-bottom: var(--space-4);
}
.panel-photo img{ width: 100%; height: 100%; object-fit: cover; filter: grayscale(35%) contrast(1.05) brightness(0.75); }
.panel-photo::after{
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, var(--cyan-glow) 0%, transparent 55%);
}

.contact-info dt{ font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-faint); margin-top: var(--space-4); }
.contact-info dt:first-child{ margin-top: 0; }
.contact-info dd{ margin: 0.3rem 0 0; font-size: 1.05rem; color: var(--text); }

.form-field{ display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: var(--space-4); }
.form-field label{ font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-faint); }
.form-field input, .form-field textarea, .form-field select{
  background: var(--surface); border: none; color: var(--text);
  padding: 0.75rem 0.9rem; font-family: var(--font-body); font-size: 0.95rem; border-radius: var(--radius);
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus{
  outline: none; background: var(--surface-2); box-shadow: 0 0 0 2px var(--cyan-dim), 0 0 16px var(--cyan-glow);
}
.form-field textarea{ resize: vertical; min-height: 110px; }
