/* =========================================================
   BMEC Technologies - site styles
   Dark-first, orange accent, engineering design language.
   ========================================================= */

@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/inter-latin-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg:        #080808;
  --bg-2:      #0d0d0e;
  --bg-3:      #131315;
  --line:      #232326;
  --ink:       #f4f4f5;
  --ink-soft:  #b9b9bd;
  --ink-mute:  #87878d;
  --accent:    #ff6600;
  --accent-2:  #ff5722;
  --accent-glow: rgba(255, 102, 0, .5);

  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 14px;
  --card-pad: 26px 28px;   /* standard info-card padding (sanity-checked globally) */
  --mono: "Inter", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip; /* clip (not hidden) so it doesn't become a scroll container and break position:fixed on mobile (cookie banner) */
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: .8rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.1rem;
  display: inline-flex; align-items: center; gap: .6em;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px; background: var(--accent); opacity: .8;
}
.section-title {
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 0 0 1rem;
}
.section-sub { color: var(--ink-soft); max-width: 56ch; margin: 0; font-size: 1.05rem; }
.lead { font-size: 1.18rem; color: var(--ink-soft); }
.muted { color: var(--ink-mute); }
.small { font-size: .9rem; }
.accent { color: var(--accent); }

section { position: relative; }
.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }

/* dotted background texture, applied to several sections */
.dot-bg::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(currentColor 1px, transparent 1.4px);
  background-size: 38px 38px; color: var(--accent); opacity: .045;
}

/* ---------- Buttons ---------- */
.btn {
  --pad: 15px 26px;
  display: inline-flex; align-items: center; gap: .55em;
  padding: var(--pad);
  border-radius: 999px;
  font-weight: 600; font-size: .98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease),
              box-shadow .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
  will-change: transform;
}
.btn-sm { --pad: 11px 20px; font-size: .9rem; }
.btn-primary {
  background: var(--accent); color: #0a0a0a;
  box-shadow: 0 8px 30px -10px var(--accent-glow);
}
.btn-primary:hover { background: #ff7d29; transform: translateY(-2px); box-shadow: 0 14px 38px -10px var(--accent-glow); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: rgba(255,255,255,.015); }
.btn-ghost:hover { border-color: var(--accent); color: var(--ink); transform: translateY(-2px); }

/* =========================================================
   HEADER / NAV
   ========================================================= */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(8,8,8,.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line);
}
.nav-inner {
  max-width: var(--maxw); margin-inline: auto;
  padding: 16px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display: inline-flex; color: var(--ink); }
.brand-logo { width: 116px; height: 28px; color: var(--ink); display: block; }
.brand:hover .brand-logo { color: var(--accent); transition: color .3s; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav > a {
  padding: 9px 15px; font-size: .94rem; color: var(--ink-soft);
  border-radius: 999px; transition: color .2s, background .2s;
  position: relative;
}
.nav > a:not(.nav-cta):hover { color: var(--ink); }
.nav > a.active:not(.nav-cta) { color: var(--accent); }
.nav-cta {
  margin-left: 8px; background: var(--accent); color: #0a0a0a !important;
  font-weight: 600; padding: 10px 18px;
  box-shadow: 0 6px 22px -10px var(--accent-glow);
}
.nav-cta:hover { background: #ff7d29; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px;
  align-items: center; justify-content: center;
  background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
}
.nav-toggle span { width: 18px; height: 2px; background: var(--ink); transition: transform .3s var(--ease), opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile[hidden] { display: none; }
.nav-mobile {
  display: flex; flex-direction: column; gap: 2px;
  padding: 8px var(--gutter) 22px;
  background: rgba(10,10,11,.96); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-mobile a { padding: 14px 6px; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile .nav-cta { margin-top: 14px; border-radius: 999px; text-align: center; color: #0a0a0a !important; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding: 140px 0 90px;
  overflow: hidden;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.hero-photo {
  position: absolute; inset: 0; z-index: 0;
  background: url("../assets/img/hero-bg.jpg") center/cover no-repeat;
  opacity: .26;
  -webkit-mask-image: radial-gradient(120% 90% at 75% 35%, #000 0%, transparent 70%);
  mask-image: radial-gradient(120% 90% at 75% 35%, #000 0%, transparent 70%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    radial-gradient(60% 60% at 50% 40%, rgba(255,102,0,.10), transparent 60%),
    linear-gradient(180deg, rgba(8,8,8,.4) 0%, rgba(8,8,8,.2) 40%, var(--bg) 100%);
}
.hero-grid {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(100% 100% at 50% 0%, #000, transparent 75%);
  mask-image: radial-gradient(100% 100% at 50% 0%, #000, transparent 75%);
}
.hero-inner { position: relative; z-index: 3; width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.hero-title {
  font-size: clamp(2.5rem, 7vw, 5.2rem);
  line-height: 1.02; letter-spacing: -0.035em; font-weight: 800;
  margin: 0 0 1.4rem; max-width: 16ch;
}
.hero-lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--ink-soft); max-width: 54ch; margin: 0 0 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 2.6rem; }
.hero-disciplines {
  list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px;
  font-family: var(--mono); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-mute);
}
.hero-disciplines li { display: flex; align-items: center; gap: 26px; }
.hero-disciplines li:not(:last-child)::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: .6; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 3;
  width: 26px; height: 42px; border: 1.5px solid rgba(255,255,255,.25); border-radius: 14px;
  display: flex; justify-content: center; padding-top: 8px;
}
.scroll-cue span { width: 3px; height: 8px; border-radius: 3px; background: var(--accent); animation: cue 1.6s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(-4px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* =========================================================
   CLIENTS MARQUEE
   ========================================================= */
.clients { padding: 46px 0; border-block: 1px solid var(--line); background: var(--bg-2); }
.clients-label {
  text-align: center; font-family: var(--mono); font-size: .82rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-mute); margin: 0 var(--gutter) 30px;
}
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track {
  display: flex; gap: 56px; width: max-content;
  animation: marquee 48s linear infinite;
  font-size: 1.25rem; font-weight: 600; color: var(--ink-soft); white-space: nowrap;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { opacity: .55; transition: opacity .3s, color .3s; }
.marquee-track span:hover { opacity: 1; color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================
   INTRO
   ========================================================= */
.intro { padding: clamp(70px, 11vw, 130px) 0; }
.intro-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.intro-copy .lead { margin: 0 0 1.2rem; }
.intro-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.intro-points li {
  padding: var(--card-pad); color: var(--ink-soft); border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--bg-2);
  transition: border-color .3s, transform .3s, background .3s;
}
.intro-points li:hover { border-color: rgba(255,102,0,.45); transform: translateX(6px); background: var(--bg-3); }
.intro-points strong { color: var(--ink); display: block; margin-bottom: 3px; }

/* =========================================================
   CAPABILITIES
   ========================================================= */
.capabilities { padding: clamp(70px, 11vw, 130px) 0; background: var(--bg-2); }
.capabilities.dot-bg::before { opacity: .05; }
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cap-card {
  position: relative; padding: 34px 30px 32px;
  background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.005));
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
  transition: transform .4s var(--ease), border-color .4s, box-shadow .4s;
}
.cap-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 80% at 50% -10%, rgba(255,102,0,.14), transparent 60%);
  opacity: 0; transition: opacity .4s;
}
.cap-card:hover { transform: translateY(-6px); border-color: rgba(255,102,0,.4); box-shadow: 0 26px 60px -30px rgba(0,0,0,.9); }
.cap-card:hover::after { opacity: 1; }
.cap-card[data-accent] { border-color: rgba(255,102,0,.3); }
.cap-icon {
  width: 52px; height: 52px; border-radius: 12px; margin-bottom: 22px;
  display: grid; place-items: center; color: var(--accent);
  background: rgba(255,102,0,.08); border: 1px solid rgba(255,102,0,.22);
}
.cap-icon svg { width: 26px; height: 26px; }
.cap-card h3 { font-size: 1.5rem; margin: 0 0 .35rem; letter-spacing: -0.02em; }
.cap-tag { font-family: var(--mono); font-size: .78rem; letter-spacing: .06em; color: var(--accent); margin: 0 0 1rem; text-transform: uppercase; }
.cap-card p:not(.cap-tag):not(.cap-regs) { color: var(--ink-soft); margin: 0 0 1.2rem; font-size: .98rem; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  font-size: .8rem; padding: 5px 12px; border-radius: 999px;
  background: rgba(255,255,255,.04); border: 1px solid var(--line); color: var(--ink-soft);
}
.cap-regs { font-family: var(--mono); font-size: .78rem; letter-spacing: .08em; color: var(--ink-mute); margin: 1.2rem 0 0; }
.cap-cta {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  background: linear-gradient(150deg, rgba(255,102,0,.14), rgba(255,87,34,.04));
  border-color: rgba(255,102,0,.3);
}
.cap-cta h3 { font-size: 1.4rem; }
.cap-cta p { margin-bottom: 1.4rem; }

/* engineering corner bracket */
.cap-bracket { position: absolute; top: 14px; right: 14px; width: 22px; height: 22px; pointer-events: none; opacity: .55; }
.cap-bracket::before, .cap-bracket::after { content: ""; position: absolute; background: var(--accent); }
.cap-bracket::before { top: 0; right: 0; width: 14px; height: 1.5px; }
.cap-bracket::after { top: 0; right: 0; width: 1.5px; height: 14px; }

/* =========================================================
   PROCESS / TIMELINE
   ========================================================= */
.process { padding: clamp(70px, 11vw, 130px) 0; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: phase; }
.phase {
  position: relative; padding: 30px 26px 28px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2);
  transition: transform .4s var(--ease), border-color .4s, background .4s;
  overflow: hidden;
}
.phase-rail { position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(var(--accent), var(--accent-2)); transform: scaleY(0); transform-origin: top; transition: transform .6s var(--ease); }
.phase.in .phase-rail { transform: scaleY(1); }
.phase:hover { transform: translateY(-5px); border-color: rgba(255,102,0,.4); background: var(--bg-3); }
.phase-num { font-family: var(--mono); font-size: 2.4rem; font-weight: 700; color: rgba(255,255,255,.1); line-height: 1; display: block; margin-bottom: .4rem; transition: color .4s; }
.phase:hover .phase-num { color: rgba(255,102,0,.55); }
.phase h3 { font-size: 1.3rem; margin: 0 0 .5rem; letter-spacing: -0.02em; }
.phase p { color: var(--ink-soft); margin: 0; font-size: .96rem; }

/* =========================================================
   WORK / CASE STUDIES
   ========================================================= */
.work { padding: clamp(70px, 11vw, 130px) 0; background: var(--bg-2); }
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.work-card {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--bg-3);
  transition: transform .4s var(--ease), border-color .4s, box-shadow .4s;
}
.work-card:hover { transform: translateY(-6px); border-color: rgba(255,102,0,.42); box-shadow: 0 30px 70px -34px rgba(0,0,0,.95); }
.work-lg { grid-column: span 2; display: grid; grid-template-columns: 1.15fr 1fr; }
.work-media { overflow: hidden; position: relative; aspect-ratio: 7 / 5; }
.work-lg .work-media { aspect-ratio: auto; height: 100%; min-height: 320px; }
.work-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.work-card:hover .work-media img { transform: scale(1.05); }
.work-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(8,8,8,.55)); }
.work-body { padding: 26px 28px 30px; }
.work-lg .work-body { display: flex; flex-direction: column; justify-content: center; }
.work-tag { font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.work-body h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); margin: .5rem 0 .6rem; letter-spacing: -0.02em; }
.work-body p { color: var(--ink-soft); margin: 0 0 1rem; font-size: .98rem; }
.work-meta { font-family: var(--mono); font-size: .8rem; color: var(--ink-mute); display: inline-flex; align-items: center; gap: .5em; }
.work-meta::before { content: ""; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }

/* =========================================================
   WHY / STATS
   ========================================================= */
.why { padding: clamp(70px, 11vw, 130px) 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 22px; }
.stat {
  padding: 34px 28px; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.02), transparent);
  transition: border-color .4s, transform .4s;
}
.stat:hover { border-color: rgba(255,102,0,.4); transform: translateY(-4px); }
.stat-num { font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; display: block; color: var(--accent); font-variant-numeric: tabular-nums; }
.stat-label { color: var(--ink-soft); font-size: .96rem; margin-top: .6rem; display: block; }
.why-band {
  margin-top: 6px; padding: clamp(34px, 5vw, 56px);
  border: 1px solid rgba(255,102,0,.28); border-radius: var(--radius);
  background:
    radial-gradient(80% 140% at 100% 0%, rgba(255,102,0,.12), transparent 55%),
    var(--bg-2);
}
.why-band-text { display: grid; grid-template-columns: 1.1fr 1.2fr; gap: clamp(24px, 5vw, 60px); align-items: center; }
.why-band h3 { font-size: clamp(1.4rem, 2.8vw, 2rem); line-height: 1.22; margin: 0; font-weight: 600; letter-spacing: -0.02em; }
.why-band p { color: var(--ink-soft); margin: 0; }

/* =========================================================
   TEAM
   ========================================================= */
.team { padding: clamp(70px, 11vw, 130px) 0; background: var(--bg-2); }
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 760px; }
.team-card {
  display: flex; gap: 22px; align-items: center; padding: 18px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-3);
  transition: border-color .4s, transform .4s;
}
.team-card:hover { border-color: rgba(255,102,0,.4); transform: translateY(-4px); }
.team-photo { width: 116px; height: 116px; border-radius: 12px; overflow: hidden; flex: none; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-info h3 { margin: 0 0 .15rem; font-size: 1.3rem; letter-spacing: -0.02em; }
.team-role { font-family: var(--mono); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin: 0 0 .5rem; }
.team-qual { color: var(--ink-soft); font-size: .92rem; margin: 0; }

/* =========================================================
   CAREERS
   ========================================================= */
.careers { padding: clamp(80px, 12vw, 150px) 0; background-size: cover; background-position: center; background-attachment: fixed; border-block: 1px solid var(--line); }
.careers-inner { max-width: 720px; }
.careers .lead { margin-bottom: 1.8rem; }
.careers .btn { margin-bottom: .8rem; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact { padding: clamp(70px, 11vw, 130px) 0; }
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(36px, 6vw, 70px); align-items: center; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.6rem; }
.contact-card {
  position: relative; padding: 36px 34px; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255,102,0,.08), rgba(255,255,255,.01));
}
.contact-card dl { margin: 0; display: grid; gap: 20px; }
.contact-card dt { font-family: var(--mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 4px; }
.contact-card dd { margin: 0; font-size: 1.05rem; color: var(--ink); }
.contact-card a { color: var(--accent); transition: opacity .2s; }
.contact-card a:hover { opacity: .75; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 56px 0 30px; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.footer-brand { max-width: 380px; }
.footer-brand .brand-logo { width: 130px; height: 32px; color: var(--ink); margin-bottom: 16px; }
.footer-tagline { font-family: var(--mono); font-size: .82rem; letter-spacing: .1em; color: var(--accent); margin: 0 0 .6rem; }
.footer-nav { display: grid; grid-template-columns: repeat(2, auto); gap: 10px 48px; align-content: start; }
.footer-nav a { color: var(--ink-soft); transition: color .2s; }
.footer-nav a:hover { color: var(--accent); }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; color: var(--ink-mute); font-size: .88rem; }
.footer-base p { margin: 0; }

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: .06s; }
.reveal:nth-child(3) { transition-delay: .12s; }
.reveal:nth-child(4) { transition-delay: .18s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track, .scroll-cue span { animation: none; }
  .careers { background-attachment: scroll; }
  .work-card:hover .work-media img { transform: none; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .intro-grid { grid-template-columns: 1fr; }
  .why-band-text { grid-template-columns: 1fr; }
  .work-lg { grid-template-columns: 1fr; }
  .work-lg .work-media { min-height: 260px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .cap-grid, .timeline, .stats, .work-grid, .team-grid { grid-template-columns: 1fr; }
  .work-lg { grid-column: span 1; }
  .hero { padding-top: 120px; min-height: auto; }
  .hero-disciplines { gap: 8px 16px; }
  .hero-disciplines li { gap: 16px; }
  .footer-inner { flex-direction: column; }
  .careers { background-attachment: scroll; }
}

/* =========================================================
   MULTI-PAGE ADDITIONS
   ========================================================= */

/* work card as full link */
.work-link { display: contents; color: inherit; }
.work-card .work-more { display: inline-flex; align-items: center; gap: .4em; margin-top: 14px; color: var(--accent); font-family: var(--mono); font-size: .82rem; letter-spacing: .04em; opacity: .85; }
.work-card:hover .work-more { opacity: 1; }
.work-all { margin-top: 34px; text-align: center; }

/* ---- sub-hero (inner page header) ---- */
.subhero { position: relative; padding: clamp(120px, 16vw, 180px) 0 clamp(40px, 6vw, 70px); overflow: hidden; border-bottom: 1px solid var(--line); }
.subhero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 80% at 80% 0%, rgba(255,102,0,.12), transparent 60%); pointer-events: none; }
/* inner-page hero photo (darkened via inline gradient on the section) */
.subhero.has-bg { background-size: cover; background-position: center; background-repeat: no-repeat; }
.subhero.has-bg::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 -60px 70px -40px var(--bg); }
.subhero .hero-grid { opacity: .4; }
.subhero-inner { position: relative; z-index: 2; }
.subhero.has-media .subhero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.subhero-title { font-size: clamp(2.1rem, 5.2vw, 3.8rem); line-height: 1.04; letter-spacing: -0.03em; font-weight: 800; margin: 0 0 1.1rem; }
.subhero-copy .lead { max-width: 56ch; margin: 0; }
.subhero-media { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); position: relative; aspect-ratio: 7/5; }
.subhero-media::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 80px rgba(0,0,0,.5); }
.subhero-media img { width: 100%; height: 100%; object-fit: cover; }

/* About hero: two founder portraits side by side, the second staggered down.
   Flex-based (no absolute positioning) so it can never overflow the hero. */
.founders-hero { display: flex; gap: 16px; align-items: flex-start; }
.founder-card { flex: 1 1 0; min-width: 0; position: relative; margin: 0; border-radius: 16px;
  overflow: hidden; border: 1px solid var(--line); background: var(--bg-3);
  box-shadow: 0 30px 60px -32px rgba(0,0,0,.92); transition: transform .35s var(--ease), border-color .35s; }
.founder-card:hover { border-color: rgba(255,102,0,.45); }
.founder-card img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; display: block; }
.founder-card::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent 70%); opacity: .8; }
.founder-card figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 18px;
  display: flex; flex-direction: column; gap: 1px;
  background: linear-gradient(transparent, rgba(8,8,8,.92)); }
.founder-card figcaption span { font-weight: 600; font-size: 1rem; letter-spacing: -0.01em; }
.founder-card figcaption em { font-style: normal; font-family: var(--mono); font-size: .68rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.founder-card--2 { margin-top: 48px; }
.founders-hero:hover .founder-card { transform: translateY(-5px); }
@media (max-width: 760px) {
  .founders-hero { gap: 12px; }
  .founder-card--2 { margin-top: 0; }
  .founders-hero:hover .founder-card { transform: none; }
}

/* ---- breadcrumb ---- */
.breadcrumb { padding-top: 96px; padding-bottom: 0; font-family: var(--mono); font-size: .8rem; letter-spacing: .04em; color: var(--ink-mute); display: flex; gap: .6em; align-items: center; flex-wrap: wrap; }
.breadcrumb a { color: var(--ink-mute); transition: color .2s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span:last-child { color: var(--ink-soft); }
.bc-sep { opacity: .5; }

/* ---- capabilities detail rows ---- */
.caplist { padding: clamp(50px, 8vw, 90px) 0; }
.caprow { display: grid; grid-template-columns: 1fr clamp(280px, 34%, 420px); gap: clamp(28px, 5vw, 64px); padding: clamp(36px, 6vw, 64px) 0; border-bottom: 1px solid var(--line); align-items: start; }
.caprow:last-child { border-bottom: none; }
.caprow-body { grid-column: 1; grid-row: 1; }
.caprow-media { grid-column: 2; grid-row: 1; }
.caprow-flip { grid-template-columns: clamp(280px, 34%, 420px) 1fr; }
.caprow-flip .caprow-body { grid-column: 2; grid-row: 1; }
.caprow-flip .caprow-media { grid-column: 1; grid-row: 1; }
@media (max-width: 760px) {
  .caprow, .caprow-flip { grid-template-columns: 1fr; }
  .caprow-body, .caprow-flip .caprow-body, .caprow-media, .caprow-flip .caprow-media { grid-column: 1; grid-row: auto; }
  .caprow-media { order: -1; max-width: 460px; }
  .caprow-icon .cap-icon { width: 60px; height: 60px; }
}
.caprow-head { display: flex; align-items: center; gap: 18px; margin-bottom: 1.1rem; }
.caprow-icon { flex: none; }
.caprow-icon .cap-icon { width: 72px; height: 72px; border-radius: 16px; }
.caprow-icon .cap-icon svg { width: 34px; height: 34px; }
.caprow-body h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); margin: 0; letter-spacing: -0.025em; }
.caprow-body .caprow-head .cap-tag { margin: .25rem 0 0; }
.caprow-body .lead { margin: 0 0 1.4rem; max-width: 58ch; }
.caprow-media { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 1; background: var(--bg-2); }
.caprow-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.caprow:hover .caprow-media img { transform: scale(1.04); }
.caprow-media::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--accent), transparent 70%); z-index: 1; }
.caprow-media::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 70px rgba(0,0,0,.45); pointer-events: none; }

/* ---- case study ---- */
.case-facts { padding: 28px 0; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.facts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin: 0 0 18px; }
.fact dt { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 5px; }
.fact dd { margin: 0; font-weight: 600; font-size: 1.02rem; color: var(--ink); }
.case-tags .chips { gap: 8px; }
.case-body { padding: clamp(50px, 8vw, 90px) 0; }
.case-grid { display: grid; grid-template-columns: 1.6fr .9fr; gap: clamp(36px, 6vw, 70px); align-items: start; }
.case-block { margin-bottom: 40px; }
.case-block h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); letter-spacing: -0.02em; margin: 0 0 1rem; }
.case-block p { color: var(--ink-soft); margin: 0 0 1rem; font-size: 1.06rem; }
.case-quote { margin: 0 0 40px; padding: 26px 30px; border-left: 3px solid var(--accent); background: var(--bg-2); border-radius: 0 12px 12px 0; }
.case-quote p { margin: 0; font-size: 1.2rem; font-style: italic; color: var(--ink); line-height: 1.5; }
.approach { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.approach li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.approach .ap-num { font-family: var(--mono); font-size: 1.1rem; font-weight: 700; color: var(--accent); }
.approach h3 { margin: 0 0 .35rem; font-size: 1.15rem; letter-spacing: -0.015em; }
.approach p { margin: 0; color: var(--ink-soft); }
.case-side { position: sticky; top: 96px; }
.case-outcomes { padding: 30px 28px; border: 1px solid rgba(255,102,0,.28); border-radius: var(--radius); background: radial-gradient(120% 90% at 100% 0%, rgba(255,102,0,.1), transparent 55%), var(--bg-2); }
.case-outcomes h2 { font-size: 1.2rem; margin: 0 0 1rem; }
.outcomes { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 12px; }
.outcomes li { position: relative; padding-left: 26px; color: var(--ink-soft); font-size: .98rem; }
.outcomes li::before { content: ""; position: absolute; left: 0; top: .55em; width: 9px; height: 9px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); }
.nextwork { padding: clamp(50px, 8vw, 90px) 0; background: var(--bg-2); border-top: 1px solid var(--line); }
.nextcase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.nextcase { display: flex; flex-direction: column; gap: 4px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-3); transition: border-color .3s, transform .3s; }
.nextcase:hover { border-color: rgba(255,102,0,.45); transform: translateY(-4px); }
.nextcase span { font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-mute); }
.nextcase strong { font-size: 1.3rem; letter-spacing: -0.02em; }
.nextcase em { font-style: normal; color: var(--accent); font-family: var(--mono); font-size: .82rem; margin-top: 6px; }

/* ---- why grid (about / careers) ---- */
.why-us { padding: clamp(60px, 9vw, 110px) 0; background: var(--bg-2); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.why-card { padding: var(--card-pad); border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-3); transition: border-color .3s, transform .3s; }
.why-card:hover { border-color: rgba(255,102,0,.4); transform: translateY(-4px); }
.why-card h3 { margin: 0 0 .5rem; font-size: 1.15rem; letter-spacing: -0.015em; }
.why-card p { margin: 0; color: var(--ink-soft); font-size: .98rem; }
.about-story { padding: clamp(60px, 9vw, 110px) 0; }
.industries { padding: clamp(50px, 8vw, 90px) 0; }
.chips-lg { gap: 10px; }
.chips-lg li { font-size: .95rem; padding: 9px 18px; }
.team-link { display: inline-block; margin-top: 8px; color: var(--accent); font-family: var(--mono); font-size: .8rem; }
.team-grid { gap: 16px; }

/* careers hero */
.careers-hero { position: relative; padding: clamp(130px, 18vw, 200px) 0 clamp(50px, 8vw, 90px); background-size: cover; background-position: center; border-bottom: 1px solid var(--line); }
.careers-hero .subhero-copy .btn { margin-top: clamp(24px, 3.5vw, 34px); }
.apply { padding: clamp(60px, 9vw, 100px) 0; }
.apply-inner { max-width: 640px; }
.apply a:not(.btn) { color: var(--accent); }

/* ---- video band ---- */
.videoband { position: relative; min-height: clamp(340px, 52vw, 560px); display: flex; align-items: center; overflow: hidden; border-block: 1px solid var(--line); }
.videoband-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.videoband-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(8,8,8,.92) 0%, rgba(8,8,8,.78) 45%, rgba(8,8,8,.5) 100%), radial-gradient(60% 100% at 0% 50%, rgba(255,102,0,.12), transparent 60%); }
.videoband-inner { position: relative; z-index: 2; max-width: 680px; padding-block: 40px; }
.videoband-inner .lead { color: var(--ink-soft); }
.videoband-cap { font-family: var(--mono); font-size: .76rem; letter-spacing: .06em; color: var(--ink-mute); margin-top: 1rem; }

/* ---- connect / social ---- */
.connect { padding: clamp(60px, 9vw, 110px) 0; background: var(--bg-2); }
.connect-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.connect-card { display: flex; flex-direction: column; gap: 6px; padding: var(--card-pad); border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-3); transition: border-color .3s, transform .3s, background .3s; }
.connect-card:hover { border-color: rgba(255,102,0,.45); transform: translateY(-5px); }
.connect-ico { width: 26px; height: 26px; fill: var(--accent); margin-bottom: 2px; }
.connect-net { font-family: var(--mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.connect-name { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; }
.connect-sub { color: var(--ink-soft); font-size: .95rem; flex: 1; }
.connect-go { color: var(--accent); font-family: var(--mono); font-size: .84rem; margin-top: 10px; }

/* ---- CTA band ---- */
.ctaband { padding: clamp(60px, 9vw, 110px) 0; }
.ctaband-inner { display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(28px, 5vw, 60px); align-items: center; padding: clamp(36px, 5vw, 60px); border: 1px solid rgba(255,102,0,.3); border-radius: var(--radius); background: radial-gradient(90% 130% at 100% 0%, rgba(255,102,0,.14), transparent 55%), var(--bg-2); }
.ctaband-inner .section-title { margin-bottom: .6rem; }
.ctaband-inner .lead { margin: 0; }
.ctaband-actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.ctaband-actions .btn { width: 100%; justify-content: center; }

/* footer social row */
.footer-social { display: flex; gap: 18px; margin-top: 14px; }
.footer-social a { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-soft); font-family: var(--mono); font-size: .82rem; letter-spacing: .05em; transition: color .2s; }
.footer-social a:hover { color: var(--accent); }
.footer-social .social-ico { width: 16px; height: 16px; }

/* monochrome social glyph (inherits link colour via currentColor) */
.social-ico { fill: currentColor; flex: none; }

/* ---- cookie consent banner (analytics, see ANALYTICS.md) ---- */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 760px; margin: 0 auto;
  display: flex; align-items: center; gap: 14px 22px; flex-wrap: wrap; justify-content: space-between;
  padding: 16px 20px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 22px 54px -22px rgba(0,0,0,.85); }
.consent[hidden] { display: none; }
.consent-text { margin: 0; font-size: .9rem; line-height: 1.45; color: var(--ink-soft); flex: 1 1 320px; }
.consent-actions { display: flex; gap: 10px; flex-shrink: 0; }
.consent .btn { padding: 9px 20px; font-size: .85rem; }
.cookie-prefs { background: none; border: none; padding: 0; font: inherit; color: var(--ink-mute); cursor: pointer; text-decoration: underline; }
.cookie-prefs:hover { color: var(--accent); }
@media (max-width: 560px) { .consent { flex-direction: column; align-items: stretch; } .consent-text { flex: 0 1 auto; } .consent-actions { justify-content: flex-end; } }

/* Reduced motion: video is paused by JS and shows its poster frame (see main.js) */

@media (max-width: 980px) {
  .subhero.has-media .subhero-inner { grid-template-columns: 1fr; }
  .subhero-media { max-width: 560px; }
  .case-grid { grid-template-columns: 1fr; }
  .case-side { position: static; }
  .facts { grid-template-columns: repeat(3, 1fr); }
  .why-grid, .connect-grid, .nextcase-grid { grid-template-columns: 1fr 1fr; }
  .ctaband-inner { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .why-grid, .connect-grid, .nextcase-grid { grid-template-columns: 1fr; }
  .approach li { grid-template-columns: 1fr; gap: 6px; }
}

/* =========================================================
   ITERATION 2: client logos, press, work-card links, flow
   ========================================================= */

/* ---- client logo wall ---- */
.clientwall { padding: clamp(46px, 7vw, 70px) 0; border-block: 1px solid var(--line); background: var(--bg-2); }
.clientwall .clients-label { margin-bottom: 30px; }
.clientwall-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 14px; }
/* Dark tiles, monochrome by default, full colour on hover. The logos span the
   full brightness range, so a white-mono resting state keeps every one visible
   on the dark tile, and hover reveals the real brand colour. */
.client-logo { display: grid; place-items: center; aspect-ratio: 16 / 9; padding: 18px 22px; background: var(--bg-3); border-radius: 12px; border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.client-logo:hover { transform: translateY(-4px); border-color: rgba(255,102,0,.45); box-shadow: 0 16px 34px -18px rgba(0,0,0,.85); }
.client-logo img { max-height: 48px; max-width: 100%; width: auto; object-fit: contain; filter: grayscale(1) brightness(0) invert(1); opacity: .62; transition: filter .35s var(--ease), opacity .35s var(--ease); }
.client-logo:hover img { filter: none; opacity: 1; }
.client-logo--text .client-wordmark { font-weight: 700; font-size: .92rem; color: var(--ink-soft); text-align: center; letter-spacing: -0.01em; transition: color .3s; }
.client-logo--text:hover .client-wordmark { color: var(--accent); }

/* ---- press / milestones ---- */
.press { padding: clamp(60px, 9vw, 110px) 0; }
.press-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.press-card { display: flex; flex-direction: column; gap: 8px; padding: var(--card-pad); border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); transition: border-color .3s, transform .3s, background .3s; }
.press-card:hover { border-color: rgba(255,102,0,.45); transform: translateY(-5px); background: var(--bg-3); }
.press-meta { font-family: var(--mono); font-size: .74rem; letter-spacing: .04em; color: var(--ink-mute); }
.press-tag { color: var(--accent); }
.press-client { font-family: var(--mono); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.press-card h3 { margin: .15rem 0 .3rem; font-size: 1.22rem; letter-spacing: -0.02em; line-height: 1.2; }
.press-card p { margin: 0; color: var(--ink-soft); font-size: .95rem; flex: 1; }
.press-go { margin-top: 8px; color: var(--accent); font-family: var(--mono); font-size: .82rem; }

/* ---- work card links (restructured: no nested anchors) ---- */
.work-media-link { display: block; color: inherit; }
.work-title-link { color: inherit; transition: color .25s; }
.work-title-link:hover { color: var(--accent); }
.work-foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 16px; }
.work-card .work-more { margin-top: 0; }
.work-live { font-family: var(--mono); font-size: .82rem; color: var(--ink-soft); border-bottom: 1px dashed rgba(255,255,255,.25); padding-bottom: 1px; transition: color .25s, border-color .25s; }
.work-live:hover { color: var(--accent); border-color: var(--accent); }

/* =========================================================
   HOW WE WORK - scroll-driven flow
   ========================================================= */
.flow { list-style: none; margin: 8px 0 0; padding: 0; position: relative; }
.flow-spine { position: absolute; top: 10px; bottom: 10px; left: 50%; width: 2px; transform: translateX(-50%); background: var(--line); border-radius: 2px; overflow: hidden; }
.flow-spine-fill { position: absolute; inset: 0; transform-origin: top; transform: scaleY(var(--p, 0)); background: linear-gradient(180deg, var(--accent), var(--accent-2)); transition: transform .1s linear; }
.flow-step { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; padding: 22px 0; }
.flow-marker { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; width: 56px; height: 56px; border-radius: 50%; background: var(--bg); border: 1px solid rgba(255,102,0,.4); display: grid; place-items: center; box-shadow: 0 0 0 6px var(--bg); }
.flow-num { font-family: var(--mono); font-weight: 700; font-size: 1.05rem; color: var(--accent); }
.flow-dot { display: none; }
.flow-card { grid-column: 1; margin-right: 56px; padding: 26px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.004)); transition: border-color .3s, transform .3s; }
.flow-step:nth-of-type(even) .flow-card { grid-column: 2; margin-right: 0; margin-left: 56px; }
.flow-card:hover { border-color: rgba(255,102,0,.4); transform: translateY(-3px); }
.flow-kicker { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); }
.flow-card h3 { font-size: 1.4rem; margin: .25rem 0 .5rem; letter-spacing: -0.02em; }
.flow-card p { color: var(--ink-soft); margin: 0; font-size: .97rem; }

/* Modern scroll-driven entrance (progressive enhancement).
   Resting state is fully visible, so browsers without scroll-driven
   animation support (and reduced-motion users) see the finished layout. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .flow-card {
      opacity: 0;
      animation: flow-card-in linear both;
      animation-timeline: view();
      animation-range: entry 2% entry 46%;
    }
    .flow-step:nth-of-type(odd) .flow-card { --from: -44px; }
    .flow-step:nth-of-type(even) .flow-card { --from: 44px; }
    .flow-marker {
      animation: flow-mark-in linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 36%;
    }
    @keyframes flow-card-in {
      from { opacity: 0; transform: translateX(var(--from, 0)) translateY(14px); }
      to   { opacity: 1; transform: none; }
    }
    @keyframes flow-mark-in {
      from { opacity: 0; transform: translate(-50%, -50%) scale(.25); }
      to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    }
  }
}

@media (max-width: 760px) {
  .clientwall-grid { grid-template-columns: repeat(2, 1fr); }
  .press-grid { grid-template-columns: 1fr; }
  .flow-spine { left: 21px; }
  .flow-step { grid-template-columns: 1fr; }
  .flow-marker { left: 21px; width: 44px; height: 44px; }
  .flow-num { font-size: .9rem; }
  .flow-card, .flow-step:nth-of-type(even) .flow-card { grid-column: 1; margin: 0 0 0 60px; }
  .flow-step:nth-of-type(odd) .flow-card, .flow-step:nth-of-type(even) .flow-card { --from: 30px; }
}
@media (min-width: 761px) and (max-width: 980px) {
  .clientwall-grid { grid-template-columns: repeat(4, 1fr); }
  .press-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================
   ITERATION 3: 3D process, equipment, tools, case story links
   ========================================================= */

/* ---- case study: see-the-story social links ---- */
.case-story { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.case-story-label { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); display: block; margin-bottom: 10px; }
.case-story-links { display: flex; gap: 10px; flex-wrap: wrap; }
.story-link { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: .82rem; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-soft); transition: border-color .25s, color .25s, background .25s; }
.story-link .social-ico { width: 14px; height: 14px; }
.story-link:hover { border-color: var(--accent); color: var(--accent); background: rgba(255,102,0,.08); }

/* =========================================================
   3D PROCESS EXPERIENCE
   ========================================================= */
.process3d { padding: 0; position: relative; }
.process3d .p3d-scroll { display: none; }       /* fallback by default */
.process3d.is-3d .p3d-scroll { display: block; }
.process3d.is-3d .flow-fallback { display: none; }
.flow-fallback { padding: clamp(70px, 11vw, 130px) 0; }

.p3d-scroll { height: 580vh; position: relative; }
.p3d-stage { position: sticky; top: 0; height: 100vh; overflow: hidden; background: var(--bg); }
.p3d-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.p3d-vignette { position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(120% 95% at 50% 38%, transparent 52%, rgba(8,8,8,.55) 82%, rgba(8,8,8,.92));
}
.p3d-overlay { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.p3d-overlay .container { display: flex; flex-direction: column; height: 100%; padding-block: clamp(90px, 13vh, 150px) clamp(40px, 8vh, 90px); }
.p3d-bottom { margin-top: auto; }
.p3d-bottom .p3d-case { margin: 0 0 18px; }
.p3d-bottom .p3d-dots { margin-top: 0; }
.p3d-overlay a, .p3d-dots { pointer-events: auto; }
.p3d-head { max-width: 640px; transition: opacity .35s var(--ease); will-change: opacity; }
.p3d-head .section-title { margin: 0; }
.p3d-hint { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); margin: 16px 0 0; display: inline-flex; align-items: center; gap: 8px; }
.p3d-hint::after { content: ""; width: 1px; height: 22px; background: linear-gradient(var(--accent), transparent); display: inline-block; }

.p3d-phase { margin-top: auto; display: flex; gap: clamp(16px, 3vw, 30px); align-items: flex-start; }
.p3d-num { font-family: var(--mono); font-weight: 700; font-size: clamp(2.6rem, 7vw, 5rem); line-height: .9; color: var(--accent); text-shadow: 0 0 30px rgba(255,102,0,.4); }
.p3d-title { font-size: clamp(1.7rem, 4vw, 2.8rem); letter-spacing: -0.025em; margin: 0 0 .5rem; }
.p3d-desc { color: var(--ink-soft); margin: 0; font-size: clamp(1rem, 1.4vw, 1.15rem); max-width: 50ch; }
.p3d-phase-text { padding-top: .4rem; }

.p3d-dots { list-style: none; display: flex; gap: 8px; margin: 26px 0 0; padding: 0; flex-wrap: wrap; }
.p3d-dot { display: flex; align-items: center; gap: 9px; opacity: .45; transition: opacity .3s; }
.p3d-dot span { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-family: var(--mono); font-size: .72rem; color: var(--ink-soft); transition: all .3s; }
.p3d-dot em { font-style: normal; font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); }
.p3d-dot.is-active { opacity: 1; }
.p3d-dot.is-active span { border-color: var(--accent); color: var(--accent); background: rgba(255,102,0,.14); box-shadow: 0 0 18px -4px var(--accent-glow); }
.p3d-dot.is-active em { color: var(--ink); }
@media (max-width: 1100px) { .p3d-dot em { display: none; } }

/* =========================================================
   EQUIPMENT / KIT
   ========================================================= */
.kit { padding: clamp(60px, 9vw, 110px) 0; background: var(--bg-2); border-top: 1px solid var(--line); }
.kit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.kit-card { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-3); transition: transform .35s var(--ease), border-color .35s; }
.kit-card:hover { transform: translateY(-5px); border-color: rgba(255,102,0,.4); }
.kit-media { aspect-ratio: 4 / 3; overflow: hidden; background: #f3f3f4; position: relative; }
.kit-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.kit-card:hover .kit-media img { transform: scale(1.05); }
.kit-media::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 -40px 50px -30px rgba(8,8,8,.5); }
.kit-card figcaption { display: flex; flex-direction: column; gap: 3px; padding: 16px 18px 18px; }
.kit-name { font-weight: 600; font-size: 1rem; letter-spacing: -0.01em; }
.kit-spec { font-family: var(--mono); font-size: .74rem; letter-spacing: .04em; color: var(--accent); }

/* =========================================================
   TOOLS & STANDARDS
   ========================================================= */
.tools { padding: clamp(60px, 9vw, 110px) 0; }
.tool-block { margin-top: 30px; }
.tool-cat { font-family: var(--mono); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); margin: 0 0 16px; }
.tool-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; }
.tool-grid--standards { grid-template-columns: repeat(6, 1fr); max-width: 760px; }
.tool-tile { display: grid; place-items: center; aspect-ratio: 1 / 1; padding: 16px; background: #f4f4f5; border-radius: 12px; border: 1px solid rgba(255,255,255,.06); transition: transform .3s var(--ease), box-shadow .3s; }
.tool-tile:hover { transform: translateY(-4px); box-shadow: 0 14px 30px -16px rgba(0,0,0,.85); }
.tool-tile img { max-width: 100%; max-height: 46px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .82; transition: filter .3s, opacity .3s; }
.tool-tile:hover img { filter: none; opacity: 1; }
.tool-tile--text { background: var(--bg-3); border-color: var(--line); }
.tool-tile--text span { font-weight: 700; font-size: .8rem; color: var(--ink-soft); text-align: center; }

@media (max-width: 980px) {
  .kit-grid { grid-template-columns: repeat(2, 1fr); }
  .tool-grid { grid-template-columns: repeat(5, 1fr); }
  .tool-grid--standards { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .kit-grid { grid-template-columns: 1fr 1fr; }
  .tool-grid { grid-template-columns: repeat(3, 1fr); }
}

/* =========================================================
   ITERATION 4: cross-links, kit redesign, 3D skip/case/dots
   ========================================================= */

/* ---- capability -> work cross-links ---- */
.cap-related { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.caprow .cap-related { max-width: 62ch; }
.cap-related-label { display: block; font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 8px; }
.cap-related-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.cap-related-links a { font-size: .88rem; color: var(--ink-soft); border-bottom: 1px solid rgba(255,255,255,.18); padding-bottom: 1px; transition: color .2s, border-color .2s; }
.cap-related-links a:hover { color: var(--accent); border-color: var(--accent); }

/* ---- equipment cards: redesigned so the section reads as intentional ----
   Products sit, whole and centred, on a soft light panel inside a dark brand
   card with an orange accent - instead of bare white tiles. */
.kit-card { position: relative; margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-3); transition: transform .35s var(--ease), border-color .35s, box-shadow .35s; }
.kit-card:hover { transform: translateY(-5px); border-color: rgba(255,102,0,.45); box-shadow: 0 22px 50px -28px rgba(0,0,0,.9); }
.kit-card::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, var(--accent), transparent 70%); opacity: .5; transition: opacity .35s; }
.kit-card:hover::after { opacity: 1; }
.kit-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-2); position: relative; }
.kit-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.kit-media::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 -44px 54px -32px rgba(8,8,8,.75); pointer-events: none; }
.kit-card:hover .kit-media img { transform: scale(1.06); }
.kit-card figcaption { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px 20px; border-top: 1px solid var(--line); }
.kit-name { font-weight: 600; font-size: 1.02rem; letter-spacing: -0.01em; }
.kit-spec { font-family: var(--mono); font-size: .74rem; letter-spacing: .03em; color: var(--accent); }

/* =========================================================
   3D PROCESS: skip control, phase case link, clickable dots
   ========================================================= */
/* Skip sits right next to the "scroll to travel" hint and reads as a clear
   orange action - most visitors will want to skip, so make it obvious. */
.p3d-foot { display: flex; align-items: center; gap: 16px 20px; flex-wrap: wrap; margin-top: 20px; }
.p3d-skip {
  pointer-events: auto; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600;
  color: var(--accent); background: rgba(255,102,0,.12);
  border: 1px solid var(--accent); border-radius: 999px; padding: 12px 22px;
  box-shadow: 0 6px 22px -12px var(--accent-glow);
  transition: background .25s, color .25s, transform .2s, box-shadow .25s;
}
.p3d-skip:hover { background: var(--accent); color: #0a0a0a; transform: translateY(-2px); box-shadow: 0 12px 30px -10px var(--accent-glow); }
.p3d-skip span { font-size: 1rem; }

.p3d-case { display: inline-flex; align-items: center; margin-top: 16px; pointer-events: auto;
  font-family: var(--mono); font-size: .82rem; letter-spacing: .02em; color: var(--accent);
  border-bottom: 1px solid transparent; padding-bottom: 1px; transition: border-color .2s, opacity .2s; }
.p3d-case:hover { border-color: var(--accent); }

.p3d-dot button { display: flex; align-items: center; gap: 9px; background: none; border: none; padding: 0; margin: 0; cursor: pointer; font: inherit; color: inherit; }
.p3d-dot:hover { opacity: .9; }
.p3d-dot:hover span { border-color: rgba(255,102,0,.5); }

/* ---- related case link inside the static fallback flow cards ---- */
.flow-case { display: inline-flex; align-items: center; margin-top: 14px; font-family: var(--mono); font-size: .82rem; color: var(--accent); border-bottom: 1px solid transparent; padding-bottom: 1px; transition: border-color .2s; }
.flow-case:hover { border-color: var(--accent); }

/* =========================================================
   ITERATION 5: specialist network / manufacturing partners
   ========================================================= */
.partners { padding: clamp(60px, 9vw, 110px) 0; background: var(--bg-2); border-top: 1px solid var(--line); }
.partners-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.partner-cat { padding: var(--card-pad); border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-3); transition: border-color .3s, transform .3s; }
.partner-cat:hover { border-color: rgba(255,102,0,.4); transform: translateY(-4px); }
.partner-cat-title { display: flex; align-items: center; gap: 10px; margin: 0 0 16px;
  font-size: 1.05rem; letter-spacing: -0.01em; }
.partner-cat-title::before { content: ""; width: 8px; height: 8px; background: var(--accent);
  border-radius: 2px; transform: rotate(45deg); flex: none; }
.partner-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.partner-list li { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.partner-list li:last-child { border-bottom: none; padding-bottom: 0; }
.partner { display: flex; align-items: center; gap: 12px; color: inherit; }
.partner-logo { flex: none; width: 42px; height: 28px; display: grid; place-items: center; }
.partner-logo img { max-width: 100%; max-height: 26px; width: auto; object-fit: contain;
  filter: brightness(0) invert(1); opacity: .58; transition: opacity .25s; }
.partner:hover .partner-logo img { opacity: 1; }
.partner-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.partner-name { font-weight: 600; font-size: .98rem; color: var(--ink); transition: color .2s; }
.partner:hover .partner-name { color: var(--accent); }
.partner-spec { font-size: .84rem; color: var(--ink-mute); }

@media (max-width: 980px) { .partners-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .partners-grid { grid-template-columns: 1fr; } }

/* =========================================================
   ITERATION 5: per-capability tool icons + topic links
   ========================================================= */

/* capability icon + title now link to the capability's section */
.cap-iconlink { display: inline-block; line-height: 0; border-radius: 12px; }
.cap-iconlink:hover .cap-icon { border-color: rgba(255,102,0,.55); background: rgba(255,102,0,.14); }
.cap-link { color: inherit; transition: color .2s; }
.cap-link:hover { color: var(--accent); }
.caprow-body h2 .cap-link:hover { color: var(--accent); }

/* little tool / standard icons inside each capability (light chips, dark card) */
.cap-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.cap-tool { width: 34px; height: 34px; border-radius: 8px; background: #f1f1f3; display: grid; place-items: center; padding: 6px; transition: transform .2s var(--ease), box-shadow .2s; }
.cap-tool:hover { transform: translateY(-3px); box-shadow: 0 8px 18px -10px rgba(0,0,0,.8); }
.cap-tool img { max-width: 100%; max-height: 22px; width: auto; height: auto; object-fit: contain; display: block; }
.caprow .cap-tools { margin-top: 20px; }
.caprow .cap-tool { width: 40px; height: 40px; border-radius: 9px; padding: 7px; }
.caprow .cap-tool img { max-height: 26px; }
/* land below the fixed header when jumped to from a capability card */
.caprow { scroll-margin-top: 90px; }
