/* ============================================================
   Solid Co — ASML Direction
   Light, precise, corporate-scientific. Zalando Sans throughout.
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Zalando Sans';
  src: url('assets/fonts/ZalandoSans-Light.woff2') format('woff2'), url('assets/fonts/ZalandoSans-Light.ttf') format('truetype');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Zalando Sans';
  src: url('assets/fonts/ZalandoSans-Regular.woff2') format('woff2'), url('assets/fonts/ZalandoSans-Regular.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Zalando Sans';
  src: url('assets/fonts/ZalandoSans-Medium.woff2') format('woff2'), url('assets/fonts/ZalandoSans-Medium.ttf') format('truetype');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Zalando Sans';
  src: url('assets/fonts/ZalandoSans-SemiBold.woff2') format('woff2'), url('assets/fonts/ZalandoSans-SemiBold.ttf') format('truetype');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Zalando Sans';
  src: url('assets/fonts/ZalandoSans-Bold.woff2') format('woff2'), url('assets/fonts/ZalandoSans-Bold.ttf') format('truetype');
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --white: #FFFFFF;
  --alloy: #E3E3E3;
  --graphite: #181512;
  --mist: #706F6F;
  --ember: #FF9944;
  --voltage: #F14E07;
  --grad: linear-gradient(115deg, var(--ember) 0%, var(--voltage) 100%);
  --radius: 12px;
  --shadow-card: 0 1px 2px rgba(24, 21, 18, 0.05);
  --shadow-lift: 0 16px 40px -12px rgba(24, 21, 18, 0.18);
  --section-pad: clamp(4.5rem, 9vw, 8rem);
  --header-h: 76px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Zalando Sans', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  color: var(--graphite);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  font-size: 1rem;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.container {
  width: min(1200px, 100% - clamp(2.5rem, 6vw, 5rem));
  margin-inline: auto;
}

/* ---------- Typography ---------- */
h1, h2, h3 { font-weight: 300; line-height: 1.12; letter-spacing: -0.015em; }

h1 { font-size: clamp(2.5rem, 5.4vw, 4.25rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.2rem, 1.7vw, 1.45rem); font-weight: 600; letter-spacing: -0.005em; }

.semibold { font-weight: 600; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--voltage);
  margin-bottom: 1.1rem;
}
.eyebrow-light { color: var(--ember); }

.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  font-weight: 300;
  color: var(--mist);
  max-width: 34em;
  margin-top: 1.5rem;
}

.section-head { max-width: 46em; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head .arrow-link { margin-top: 1.1rem; }
.section-intro {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  font-weight: 300;
  color: var(--mist);
  margin-top: 1.25rem;
  max-width: 38em;
}

.section { padding-block: var(--section-pad); }
.band-alloy { background: var(--alloy); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.78em 1.7em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  transition: transform 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out), filter 0.28s;
  will-change: transform;
}
.btn-gradient {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 4px 14px -4px rgba(241, 78, 7, 0.45);
}
.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -6px rgba(241, 78, 7, 0.5);
  filter: saturate(1.08);
}
.btn-gradient:active { transform: translateY(0); }
.btn-lg { padding: 0.95em 2.2em; font-size: 1.02rem; }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--graphite);
  transition: color 0.25s;
}
.arrow-link .arrow {
  display: inline-block;
  transition: transform 0.28s var(--ease-out);
  color: var(--voltage);
}
.arrow-link:hover { color: var(--voltage); }
.arrow-link:hover .arrow { transform: translateX(5px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--alloy);
  box-shadow: 0 6px 24px -18px rgba(24, 21, 18, 0.35);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 2rem;
}
.brand-logo { height: 34px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 2.2rem; }
.main-nav ul { display: flex; gap: 2rem; }
.nav-link {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--graphite);
  position: relative;
  padding-block: 0.4em;
  transition: color 0.25s;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--grad);
  transition: right 0.3s var(--ease-out);
}
.nav-link:hover { color: var(--voltage); }
.nav-link:hover::after { right: 0; }
.nav-link.is-current { color: var(--voltage); }
.nav-link.is-current::after { right: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  align-items: center;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--graphite);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}
.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); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(3.5rem, 8vw, 7rem) clamp(3rem, 7vw, 6rem);
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(24, 21, 18, 0.10) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 75% 90% at 68% 40%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 75% 90% at 68% 40%, #000 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2.4rem;
}
.hero-visual { min-width: 0; }
.hero-illo { width: 100%; height: auto; }

/* hero SVG animation */
.float-slow, .float-slower {
  transform-box: fill-box;
  transform-origin: center;
  animation: floatY 7s ease-in-out infinite;
}
.float-slower { animation-duration: 9s; animation-delay: -2.5s; }

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero-illo .draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: drawOn 1.6s var(--ease-out) forwards;
  animation-delay: 0.25s;
}
.hero-illo .cell:nth-child(2) .draw { animation-delay: 0.45s; }
.hero-illo .cell:nth-child(3) .draw { animation-delay: 0.65s; }

@keyframes drawOn { to { stroke-dashoffset: 0; } }

.flow {
  stroke-dasharray: 5 7;
  animation: flowDash 1.6s linear infinite;
}
.flow-rev { animation-direction: reverse; }

@keyframes flowDash { to { stroke-dashoffset: -12; } }

.pulse-dot {
  transform-box: fill-box;
  transform-origin: center;
  animation: dotPulse 2.4s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.75; }
}
.pulse-ring {
  transform-box: fill-box;
  transform-origin: center;
  fill: none;
  animation: ringPulse 2.4s ease-out infinite;
}
@keyframes ringPulse {
  0% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(2.6); opacity: 0; }
}

.dims, .dim-labels { opacity: 0; animation: fadeIn 0.8s ease forwards 1.6s; }
@keyframes fadeIn { to { opacity: 1; } }

/* ---------- Stats band ---------- */
.stats-band { padding-block: clamp(3.5rem, 6.5vw, 5.5rem); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3.5vw, 3rem);
}
.stat-num {
  font-size: clamp(2.6rem, 4.8vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.stat-label {
  margin-top: 0.6rem;
  font-size: 0.92rem;
  color: var(--mist);
  max-width: 16em;
}
.stats-note {
  margin-top: 2.6rem;
  font-size: 0.78rem;
  color: var(--mist);
  letter-spacing: 0.03em;
}

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--alloy);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 2.4vw, 2.1rem);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: transform 0.32s var(--ease-out), box-shadow 0.32s var(--ease-out), border-color 0.32s;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
  border-color: transparent;
}
.card p { color: var(--mist); font-size: 0.95rem; flex-grow: 1; }
.card .arrow-link { font-size: 0.9rem; }
.card-icon { width: 48px; height: 48px; margin-bottom: 0.35rem; }
.card-icon svg { width: 100%; height: 100%; }

/* ---------- Energy Resilience ---------- */
.resilience-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 4.5vw, 4rem);
  align-items: center;
}
.resilience-cards {
  display: grid;
  gap: 1.25rem;
}
.resilience-visual svg { width: 100%; height: auto; }

/* ---------- Manufacturing tabs ---------- */
.tab-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}
.tab-btn {
  display: flex;
  align-items: baseline;
  gap: 0.7em;
  text-align: left;
  padding: 1.05rem 1.3rem;
  border-radius: var(--radius);
  background: transparent;
  border: 1px solid rgba(24, 21, 18, 0.14);
  color: var(--mist);
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 0.28s, color 0.28s, border-color 0.28s, box-shadow 0.28s, transform 0.28s var(--ease-out);
}
.tab-btn:hover { border-color: var(--mist); color: var(--graphite); transform: translateY(-2px); }
.tab-btn.is-active {
  background: var(--white);
  color: var(--graphite);
  border-color: transparent;
  box-shadow: 0 10px 28px -12px rgba(24, 21, 18, 0.22);
}
.tab-step {
  font-weight: 700;
  font-size: 0.85rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.tab-name { font-weight: 600; }

.tab-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 4.5vw, 4rem);
  align-items: center;
  background: var(--white);
  border-radius: calc(var(--radius) + 4px);
  padding: clamp(1.75rem, 3.5vw, 3.25rem);
  box-shadow: 0 14px 44px -22px rgba(24, 21, 18, 0.24);
}
.tab-panel[hidden] { display: none; }
.tab-panel.is-active { animation: panelIn 0.5s var(--ease-out); }
@keyframes panelIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.panel-copy h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-weight: 600; margin-bottom: 0.9rem; }
.panel-copy p { color: var(--mist); font-weight: 300; }

.check-list { margin-top: 1.4rem; display: grid; gap: 0.65rem; }
.check-list li {
  position: relative;
  padding-left: 1.7em;
  font-size: 0.96rem;
  font-weight: 500;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 0.85em;
  height: 0.45em;
  border-left: 2px solid var(--voltage);
  border-bottom: 2px solid var(--voltage);
  transform: rotate(-45deg);
}

.panel-visual svg { width: 100%; height: auto; }

/* CAD draw-on: triggered when .is-drawing on the panel */
.cad .draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.tab-panel.is-drawing .cad .draw {
  animation: drawOn 1.5s var(--ease-out) forwards;
}
.tab-panel.is-drawing .cad .draw:nth-of-type(2n) { animation-delay: 0.2s; }
.tab-panel.is-drawing .cad .draw:nth-of-type(3n) { animation-delay: 0.4s; }
.cad text { opacity: 0; }
.tab-panel.is-drawing .cad text { animation: fadeIn 0.7s ease forwards 1.3s; }

/* ---------- Markets ---------- */
.markets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.25rem;
}
.market-card h3 { font-size: 1.12rem; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  background: var(--graphite);
  color: #fff;
  padding-block: clamp(5rem, 10vw, 8.5rem);
  overflow: hidden;
  text-align: center;
}
.cta-glow {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse 42% 55% at 18% 110%, rgba(241, 78, 7, 0.32), transparent 70%),
    radial-gradient(ellipse 40% 50% at 85% -10%, rgba(255, 153, 68, 0.22), transparent 70%);
  pointer-events: none;
}
.cta-inner { position: relative; max-width: 52em; }
.cta-band h2 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
.cta-sub {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 300;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  max-width: 36em;
  margin: 1.5rem auto 2.4rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--graphite);
  color: rgba(255, 255, 255, 0.78);
  padding-block: clamp(3.5rem, 6vw, 5rem) 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-logo { height: 40px; width: auto; }
.footer-tag { margin-top: 1.3rem; font-size: 0.92rem; font-weight: 300; line-height: 1.7; }

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 1.1rem;
}
.footer-col ul { display: grid; gap: 0.6rem; }
.footer-col a {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.25s;
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.8rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- Scroll reveals ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
.reveal.d3 { transition-delay: 0.3s; }
.reveal.d4 { transition-delay: 0.4s; }

/* no-js / reduced-motion fallback: everything visible */
.no-observer .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; margin-inline: auto; }
  .resilience-layout { grid-template-columns: 1fr; }
  .resilience-visual { max-width: 480px; margin-inline: auto; }
  .tab-panel { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--alloy);
    box-shadow: 0 24px 40px -24px rgba(24, 21, 18, 0.3);
    padding: 0.5rem 0 1.25rem;
    display: none;
  }
  .main-nav.is-open { display: flex; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul a {
    display: block;
    padding: 0.85rem clamp(1.25rem, 6vw, 2.5rem);
    font-size: 1.05rem;
  }
  .nav-link::after { display: none; }
  .nav-cta { margin: 0.9rem clamp(1.25rem, 6vw, 2.5rem) 0; justify-content: center; }

  .tab-list { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-nav { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .markets-grid { grid-template-columns: 1fr; }
  .footer-nav { grid-template-columns: 1fr; }
  .hero-actions { gap: 1.25rem; }
}

/* ---------- Interior pages ---------- */
.page-hero { padding-block: clamp(3.5rem, 7vw, 6rem) clamp(3rem, 6vw, 5rem); }
.page-hero-inner { position: relative; max-width: 52em; }
.page-hero .lede { max-width: 40em; }
.page-hero .hero-grid-bg {
  mask-image: radial-gradient(ellipse 75% 110% at 30% 15%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 75% 110% at 30% 15%, #000 0%, transparent 70%);
}

.diagram-card {
  background: var(--white);
  border-radius: calc(var(--radius) + 4px);
  padding: clamp(1.75rem, 3.5vw, 3.25rem);
  box-shadow: 0 14px 44px -22px rgba(24, 21, 18, 0.24);
}
.diagram-card svg { width: 100%; height: auto; }
.diagram-card .fig-caption { text-align: right; }

/* ---------- Contact form ---------- */
.contact-split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}
.contact-aside .section-intro { margin-top: 1.25rem; }
.contact-facts { margin-top: 2.2rem; display: grid; gap: 1.1rem; }
.contact-facts li { display: flex; flex-direction: column; gap: 0.2rem; }
.fact-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mist);
}
.fact-value { font-weight: 500; font-size: 0.98rem; }

.form-card {
  position: relative;
  background: var(--white);
  border-radius: calc(var(--radius) + 4px);
  padding: clamp(1.75rem, 3.5vw, 3rem);
  box-shadow: 0 14px 44px -22px rgba(24, 21, 18, 0.24);
}

.chip-fieldset { border: 0; padding: 0; margin: 0 0 1.8rem; }
.chip-fieldset legend { margin-bottom: 0.85rem; }
.chip-group { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip { cursor: pointer; }
.chip input {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.chip-face {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.55em 1em;
  border: 1px solid rgba(24, 21, 18, 0.16);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--mist);
  transition: color 0.22s, border-color 0.22s, background 0.22s, box-shadow 0.22s, transform 0.22s var(--ease-out);
}
.chip-face svg { width: 18px; height: 18px; }
.chip:hover .chip-face { border-color: var(--mist); color: var(--graphite); transform: translateY(-1px); }
.chip input:checked + .chip-face {
  color: #fff;
  background: var(--grad);
  border-color: transparent;
  box-shadow: 0 6px 16px -6px rgba(241, 78, 7, 0.5);
}
.chip input:focus-visible + .chip-face { outline: 2px solid var(--voltage); outline-offset: 2px; }

.routing-readout {
  margin-top: 1rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--mist);
}
.routing-readout .routing-arrow { color: var(--voltage); }
#routingTeam { color: var(--voltage); }

.field { margin-bottom: 1.4rem; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.field-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 0.45rem;
}
.req { color: var(--voltage); margin-left: 0.15em; }
.field input,
.field textarea {
  width: 100%;
  padding: 0.75em 0.95em;
  border: 1px solid rgba(24, 21, 18, 0.16);
  border-radius: 10px;
  background: var(--white);
  font: inherit;
  font-size: 0.98rem;
  color: var(--graphite);
  transition: border-color 0.22s, box-shadow 0.22s;
}
.field textarea { resize: vertical; min-height: 8em; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--voltage);
  box-shadow: 0 0 0 3px rgba(241, 78, 7, 0.14);
}
.field input.is-invalid,
.field textarea.is-invalid { border-color: var(--voltage); }

.form-footer { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.form-response-note { font-size: 0.82rem; color: var(--mist); max-width: 18em; }
.form-error { margin-top: 1rem; font-size: 0.88rem; font-weight: 500; color: var(--voltage); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn[disabled] { opacity: 0.6; pointer-events: none; }

.form-card.is-sent > *:not(.form-success) { visibility: hidden; }
.form-success[hidden] { display: none; }
.form-success {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(1.75rem, 3.5vw, 3rem);
  animation: panelIn 0.5s var(--ease-out);
}
.form-success svg { width: 56px; height: 56px; margin-bottom: 1.2rem; }
.form-success h3 { font-size: 1.5rem; font-weight: 600; }
.form-success p { margin-top: 0.7rem; color: var(--mist); max-width: 30em; }
.form-demo-note { font-size: 0.78rem; letter-spacing: 0.03em; }

@media (max-width: 860px) {
  .contact-split { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
}

/* ---------- Legal pages ---------- */
.legal-body { max-width: 46em; }
.legal-updated {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mist);
  margin-bottom: 2.2rem;
}
.legal-body h2 {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight: 600;
  margin: 2.4rem 0 0.8rem;
}
.legal-body p, .legal-body li {
  color: var(--mist);
  font-size: 0.98rem;
  line-height: 1.75;
}
.legal-body p + p { margin-top: 0.9rem; }
.legal-body ul {
  margin: 0.9rem 0 0.9rem 1.1rem;
  list-style: disc;
  display: grid;
  gap: 0.45rem;
}
.legal-body a { color: var(--voltage); font-weight: 500; }
.legal-body a:hover { text-decoration: underline; }

.mission-statement {
  font-size: clamp(1.7rem, 3.4vw, 2.9rem);
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: -0.015em;
  max-width: 26em;
}

.leader-card {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  background: var(--white);
  border-radius: calc(var(--radius) + 4px);
  padding: clamp(1.75rem, 3.5vw, 3.25rem);
  box-shadow: 0 14px 44px -22px rgba(24, 21, 18, 0.24);
  max-width: 62em;
}
.leader-photo { align-self: stretch; }
.leader-photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}
@media (max-width: 700px) {
  .leader-photo img { aspect-ratio: 1; height: auto; }
}
.leader-info h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 600; }
.leader-title {
  margin-top: 0.3rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.leader-bio { margin-top: 1.2rem; color: var(--mist); font-weight: 300; }
.cred-list {
  margin-top: 1.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--alloy);
  display: grid;
  gap: 0.9rem;
}
.cred-list li { display: flex; flex-direction: column; gap: 0.15rem; }
.cred-degree { font-weight: 600; font-size: 0.95rem; }
.cred-inst {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mist);
}
.linkedin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-top: 1.6rem;
  border: 1px solid var(--alloy);
  border-radius: 10px;
  color: var(--graphite);
  transition: color 0.25s, border-color 0.25s, transform 0.25s var(--ease-out);
}
.linkedin-btn svg { width: 20px; height: 20px; }
.linkedin-btn:hover { color: var(--voltage); border-color: var(--voltage); transform: translateY(-2px); }

@media (max-width: 700px) {
  .leader-card { grid-template-columns: 1fr; }
  .leader-photo { max-width: 340px; }
}

.pillar-step {
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.card .pillar-step { flex-grow: 0; margin-bottom: -0.4rem; }

.trio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.approach-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
.approach-split .section-intro { margin-top: 1.25rem; }
.approach-split .check-list { margin-top: 1.8rem; }
.split-visual svg { width: 100%; height: auto; }
.fig-caption {
  margin-top: 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--mist);
}

/* roll-to-roll line: ambient machine motion */
.rr-spin, .rr-spin-rev {
  transform-box: fill-box;
  transform-origin: center;
  animation: rrSpin 10s linear infinite;
}
.rr-spin-rev { animation-direction: reverse; }
@keyframes rrSpin { to { transform: rotate(360deg); } }

.rr-drip { animation: rrDrip 1.4s ease-in infinite; }
.rr-drip:nth-of-type(2) { animation-delay: 0.7s; }
@keyframes rrDrip {
  0% { transform: translateY(-4px); opacity: 0; }
  25% { opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}

.rr-heat { animation: rrHeat 2.6s ease-in-out infinite; }
.rr-heat:nth-of-type(2) { animation-delay: 0.4s; }
.rr-heat:nth-of-type(3) { animation-delay: 0.8s; }
.rr-heat:nth-of-type(4) { animation-delay: 1.2s; }
@keyframes rrHeat {
  0%, 100% { opacity: 0.35; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-3px); }
}

.rr-beam { animation: rrBeam 1.8s ease-in-out infinite; }
.rr-beam:nth-of-type(2) { animation-delay: 0.3s; }
.rr-beam:nth-of-type(3) { animation-delay: 0.6s; }
@keyframes rrBeam {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .rr-mover { display: none; }
}

/* quiet ambient motion for homepage tab illustrations */
.amb-float {
  transform-box: fill-box;
  transform-origin: center;
  animation: ambFloat 6s ease-in-out infinite;
}
@keyframes ambFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
.amb-pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: ambPulse 2.4s ease-in-out infinite;
}
@keyframes ambPulse {
  0%, 100% { transform: translateX(0); opacity: 1; }
  50% { transform: translateX(5px); opacity: 0.55; }
}

/* standalone CAD drawings (outside tab panels) draw on reveal */
.reveal.in .cad-solo .draw { animation: drawOn 1.5s var(--ease-out) forwards; }
.reveal.in .cad-solo .draw:nth-of-type(2n) { animation-delay: 0.2s; }
.reveal.in .cad-solo .draw:nth-of-type(3n) { animation-delay: 0.4s; }
.reveal.in .cad-solo text { animation: fadeIn 0.7s ease forwards 1.3s; }
.no-observer .cad-solo .draw { stroke-dashoffset: 0; }
.no-observer .cad-solo text { opacity: 1; }

@media (max-width: 860px) {
  .approach-split { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-illo .draw, .cad .draw { stroke-dashoffset: 0; }
  .dims, .dim-labels, .cad text { opacity: 1; }
  .flow { stroke-dasharray: none; }
}
