/* LW Technologies — shared site styles
   Theme: html[data-theme] is set to "light" or "dark" by an inline script in <head>. */

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ibm-plex-sans-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/ibm-plex-sans-500.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/ibm-plex-sans-600.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-500.woff2") format("woff2");
}

/* ---------- Tokens ---------- */

:root {
  color-scheme: light;
  --bg: #f6f6f4;
  --surface: #ffffff;
  --ink: #101215;
  --ink-2: #3b4047;
  --muted: #6a7078;
  --line: #e1e1dd;
  --line-strong: #c4c4bf;
  --accent: #e10600;
  --accent-hover: #b80500;
  --on-accent: #ffffff;
  --btn-bg: #e10600;
  --btn-bg-hover: #b80500;
  --btn-ink: #ffffff;
  --focus: #e10600;
  --success: #1d7a46;
  --danger: #b80500;

  --font-sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 68px;
  --radius: 2px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e1013;
  --surface: #16191d;
  --ink: #f1f2f4;
  --ink-2: #c4c8ce;
  --muted: #8d939b;
  --line: #262a30;
  --line-strong: #3b4048;
  --accent: #ff3b30;
  --accent-hover: #ff6259;
  --on-accent: #0e1013;
  --focus: #ff3b30;
  --success: #4cc283;
  --danger: #ff6259;
}

/* ---------- Base ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Faint paper grain behind the page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: 0.12;
}
:root[data-theme="dark"] body::before {
  filter: invert(1);
  opacity: 0.08;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

p {
  margin: 0;
}

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

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  font-weight: 500;
}
.skip-link:focus {
  top: 12px;
}

.label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0 1.4rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-primary {
  background: var(--btn-bg);
  color: var(--btn-ink);
}
.btn-primary:hover {
  background: var(--btn-bg-hover);
}
.btn-outline {
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-outline:hover {
  border-color: var(--ink);
}
.btn .arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.15s ease;
}
.btn:hover .arrow {
  transform: translateX(3px);
}
.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.link-button {
  border: 0;
  padding: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand img {
  width: 46px;
  height: auto;
}
.logo-on-dark {
  display: none !important;
}
:root[data-theme="dark"] .logo-on-light {
  display: none !important;
}
:root[data-theme="dark"] .logo-on-dark {
  display: block !important;
}

.primary-nav ul {
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.primary-nav a {
  position: relative;
  display: inline-block;
  padding: 0.4rem 0;
  font-size: 0.95rem;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.15s ease;
}
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.primary-nav a:hover,
.primary-nav a[aria-current="true"] {
  color: var(--ink);
}
.primary-nav a:hover::after,
.primary-nav a[aria-current="true"]::after {
  transform: scaleX(1);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.icon-button:hover {
  border-color: var(--line-strong);
}
.icon-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lang-switch {
  position: relative;
}
.lang-trigger {
  width: auto;
  min-width: 52px;
  padding: 0 0.7rem;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.lang-trigger svg {
  width: 12px;
  height: 12px;
  transition: transform 0.15s ease;
}
.lang-switch.open .lang-trigger svg {
  transform: rotate(180deg);
}
.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 140px;
  margin: 0;
  padding: 4px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}
.lang-switch.open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.lang-menu a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0.7rem;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--ink-2);
}
.lang-menu a span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
}
.lang-menu a:hover,
.lang-menu a:focus-visible {
  background: var(--bg);
  color: var(--ink);
  outline-offset: -2px;
}
.lang-menu a.active {
  color: var(--ink);
  font-weight: 500;
}
.lang-menu a.active span {
  color: var(--accent);
}

.menu-toggle {
  display: none;
}
.menu-toggle .icon-close {
  display: none;
}
.menu-open .menu-toggle .icon-open {
  display: none;
}
.menu-open .menu-toggle .icon-close {
  display: block;
}

/* ---------- Sections ---------- */

main > section,
.site-footer {
  border-top: 1px solid var(--line);
}

.section {
  padding: clamp(4rem, 9vw, 7.5rem) 0;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: 2rem clamp(2rem, 4vw, 4rem);
}

.section-index {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
}
.section-index .num {
  color: var(--accent);
}

.section-title {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  max-width: 22ch;
}

.section-lede {
  margin-top: 1.5rem;
  max-width: 62ch;
  font-size: 1.125rem;
  color: var(--ink-2);
}

.subsection {
  margin-top: clamp(3.5rem, 7vw, 5.5rem);
}
.subsection-title {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  max-width: 30ch;
}

/* ---------- Hero ---------- */

.hero {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 0;
  overflow: hidden;
}
.hero .container {
  position: relative;
}

/* Ducted-thruster drawing in the top-right corner (generated by tools/hero-art.py). It bleeds to the
   right edge of the window, fades towards the title and stays faint; hidden on narrow screens. */
.hero-art {
  position: absolute;
  top: -7.5rem;
  right: calc((100% - 100vw) / 2);
  width: min(54vw, 840px);
  height: auto;
  opacity: 0.3;
  pointer-events: none;
}
.hero-art .part { fill: var(--surface); stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; }
.hero-art .part.thin-stroke { stroke-width: 1; }
.hero-art .section { stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; }
.hero-art .hatch { stroke: var(--line-strong); stroke-width: 1; }
.hero-art .outline { fill: none; stroke: var(--ink); stroke-width: 1.3; stroke-linejoin: round; }
.hero-art .ink-fill { fill: var(--ink); }
.hero-art .stream { fill: none; stroke: var(--line-strong); stroke-width: 1; }
.hero-art .particle,
.hero-art .particle-accent { fill: none; stroke-width: 2.5; stroke-linecap: round; }
.hero-art .particle { stroke: var(--ink-2); }
.hero-art .particle-accent { stroke: var(--accent); }
.hero-art .blade-shape { fill: var(--surface); stroke: var(--ink); stroke-width: 1.2; stroke-linejoin: round; }
.hero-art .lam { stroke: var(--line-strong); stroke-width: 1; }
.hero-art .winding { fill: var(--line-strong); stroke: var(--ink-2); stroke-width: 1; }
.hero-art .band-n { fill: var(--ink); }
.hero-art .band-s { fill: var(--line-strong); }
.hero-art .shaft { stroke: var(--ink); stroke-width: 4; stroke-linecap: round; }
.hero-art .board-ring { fill: var(--bg); stroke: var(--ink); stroke-width: 1.5; }
.hero-art .chip-body { fill: var(--ink); }
.hero-art .cable-line { fill: none; stroke: var(--ink-2); stroke-width: 3; stroke-linecap: round; }
.hero-art .pulse-line { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; }

@media (max-width: 1200px) {
  .hero-art {
    top: -5rem;
    width: 60vw;
    opacity: 0.22;
  }
}
@media (max-width: 900px) {
  .hero-art {
    display: none;
  }
}

.hero-eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
  margin-bottom: 1.75rem;
}
.hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
}
.hero h1 {
  font-size: clamp(2.5rem, 6.4vw, 5.25rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  max-width: 15ch;
}
.hero-body {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 2rem clamp(2rem, 5vw, 5rem);
  align-items: end;
  margin-top: clamp(2rem, 4vw, 3rem);
}
.hero-desc {
  max-width: 56ch;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--ink-2);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

.hero-photo {
  margin: clamp(3rem, 6vw, 4.5rem) 0 0;
  border: 1px solid var(--line);
  overflow: hidden;
}
.hero-photo img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}
.hero .facts {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  border-top: 1px solid var(--line);
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid var(--line);
}
.facts li {
  position: relative;
  padding: 1.5rem 1.5rem 2rem;
  background: var(--surface);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.2s ease;
}
.facts li::before {
  content: "";
  position: absolute;
  left: -1px;
  right: -1px;
  top: -1px;
  height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.facts li:hover::before {
  transform: scaleX(1);
}
.fact-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.75rem;
}
.facts .label {
  color: var(--accent);
}
.fact-icon {
  width: 36px;
  height: 36px;
  color: var(--ink);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.facts strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.facts span:last-child {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.92rem;
  color: var(--muted);
}

/* ---------- About ---------- */

.about-body {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 3fr);
  gap: 2rem clamp(2rem, 4vw, 4rem);
  margin-top: 2.5rem;
}
.about-body p {
  font-size: 1.125rem;
  color: var(--ink-2);
  max-width: 62ch;
}
.sector-list {
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.sector-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}
.sector-list li .label {
  font-weight: 400;
}

/* ---------- Services ---------- */

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: 3rem;
}
.service {
  padding-top: 1.5rem;
  border-top: 2px solid var(--ink);
}
.service .label {
  display: block;
  margin-bottom: 2.5rem;
}
.service h3 {
  font-size: 1.35rem;
  margin-bottom: 0.9rem;
}
.service p {
  color: var(--ink-2);
}

.process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.process li {
  position: relative;
  padding: 0 1.5rem 0 0;
}
.process-marker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.process-marker::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line-strong);
}
.process li:last-child .process-marker::after {
  background: linear-gradient(90deg, var(--line-strong), transparent);
}
.process-marker .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
}
.process li:first-child .process-marker .num {
  background: var(--ink);
  color: var(--bg);
}
.process h4 {
  margin: 0 0 0.6rem;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.process p {
  font-size: 0.95rem;
  color: var(--ink-2);
}

/* ---------- Projects ---------- */

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: 3rem;
}
.project {
  display: flex;
  flex-direction: column;
}
.project-media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}
.project-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.project:hover .project-media img {
  transform: scale(1.025);
}
.project-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.1rem;
}
.project-meta .tag {
  color: var(--accent);
}
.project h3 {
  margin-top: 0.6rem;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}
.project p {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: var(--ink-2);
}

/* ---------- FAQ ---------- */

.faq-list {
  margin-top: 2.5rem;
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.4rem 0;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary:hover {
  color: var(--ink-2);
}
.faq-icon {
  position: relative;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1.5px;
  margin-top: -0.75px;
  background: currentColor;
  transition: transform 0.2s ease;
}
.faq-icon::after {
  transform: rotate(90deg);
}
.faq-item[open] .faq-icon::after {
  transform: rotate(0deg);
}
.faq-item p {
  padding: 0 3rem 1.6rem 0;
  max-width: 70ch;
  color: var(--ink-2);
}

/* ---------- Contact (inverted band) ---------- */

.section-invert {
  --bg: #101215;
  --surface: #181b1f;
  --ink: #f1f2f4;
  --ink-2: #c4c8ce;
  --muted: #8d939b;
  --line: #2a2e34;
  --line-strong: #474c54;
  --accent: #ff3b30;
  --accent-hover: #ff6259;
  --on-accent: #101215;
  --focus: #ff3b30;
  --success: #4cc283;
  --danger: #ff6259;
  background: var(--bg);
  color: var(--ink);
  border-top-color: var(--bg) !important;
}
:root[data-theme="dark"] .section-invert {
  --bg: #16191d;
  --surface: #1d2126;
  --line: #2c3036;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 3rem clamp(2rem, 6vw, 6rem);
  margin-top: 1.75rem;
}
.contact-details {
  margin: 2.5rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.contact-details div {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) 3fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-details dt {
  padding-top: 0.2rem;
}
.contact-details dd {
  margin: 0;
}
.contact-details a {
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
}
.contact-details a:hover {
  border-color: var(--ink);
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 1.25rem;
}
.field {
  display: grid;
  gap: 0.5rem;
}
.field-full {
  grid-column: 1 / -1;
}
.field input,
.field textarea {
  width: 100%;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  transition: border-color 0.15s ease;
}
.field input:hover,
.field textarea:hover {
  border-color: var(--muted);
}
.field input:focus,
.field textarea:focus {
  border-color: var(--ink);
  outline: none;
}
.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
}
.field textarea {
  min-height: 160px;
  resize: vertical;
}
.field ::placeholder {
  color: var(--muted);
  opacity: 1;
}
.form-footer {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}
.form-status {
  font-size: 0.95rem;
}
.form-status[data-state="success"] {
  color: var(--success);
}
.form-status[data-state="error"] {
  color: var(--danger);
}
.honeypot {
  display: none;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr));
  gap: 2.5rem 2rem;
}
.footer-brand p {
  margin-top: 1.25rem;
  max-width: 34ch;
  color: var(--muted);
}
.footer-col h2 {
  margin-bottom: 1rem;
}
.footer-col ul {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-col a,
.footer-col .link-button {
  color: var(--ink-2);
  text-decoration: none;
}
.footer-col a:hover,
.footer-col .link-button:hover {
  color: var(--ink);
  text-decoration: underline;
}
.footer-col address {
  font-style: normal;
  color: var(--ink-2);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---------- Consent banner ---------- */

.consent-banner {
  position: fixed;
  left: var(--gutter);
  bottom: var(--gutter);
  z-index: 60;
  display: none;
  max-width: 420px;
  padding: 1.1rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  font-size: 0.9rem;
  color: var(--ink-2);
}
.consent-banner.show {
  display: block;
}
.consent-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.9rem;
}
.consent-actions .btn {
  min-height: 38px;
  padding: 0 1rem;
  font-size: 0.9rem;
}

/* ---------- Legal page ---------- */

.legal {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}
.legal-head {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}
.legal-head h1 {
  margin-top: 1rem;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
}
.legal-head p {
  margin-top: 1rem;
  color: var(--muted);
}
.legal-body {
  max-width: 72ch;
  margin-top: 2.5rem;
}
.legal-body h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
.legal-body p,
.legal-body li {
  color: var(--ink-2);
}
.legal-body p + p {
  margin-top: 0.75rem;
}
.legal-body ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}

/* ---------- Motion ----------
   Hero: CSS-only entrance on load. Sections: site.js adds .reveal to elements off screen and
   .is-visible when they scroll into view, again each time they come back. Nothing is hidden without JavaScript. */

@media (prefers-reduced-motion: no-preference) {
  .hero-eyebrow,
  .hero h1,
  .hero-body,
  .hero .facts {
    animation: rise 1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .hero h1 { animation-delay: 0.08s; }
  .hero-body { animation-delay: 0.18s; }
  .hero .facts { animation-delay: 0.3s; }
  .hero-art {
    animation: rise 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) 0.25s both;
  }

  .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.95s ease, transform 1.05s cubic-bezier(0.2, 0.7, 0.2, 1);
    transition-delay: var(--reveal-delay, 0s);
  }
  .reveal[data-from="above"] {
    transform: translateY(-16px);
  }
  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }

  .process li.reveal .process-marker::after {
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
    transition-delay: calc(var(--reveal-delay, 0s) + 0.25s);
  }
  .process li.reveal.is-visible .process-marker::after {
    transform: scaleX(1);
  }

  /* Rules that draw themselves left to right when their block is revealed.
     The real border is hidden only while .reveal is set, so it stays a plain line otherwise. */
  .service.reveal,
  .about-body.reveal .sector-list,
  .faq-list.reveal,
  .contact-grid.reveal .contact-details {
    border-top-color: transparent;
  }
  .about-body.reveal .sector-list li,
  .faq-list.reveal .faq-item,
  .contact-grid.reveal .contact-details > div {
    border-bottom-color: transparent;
  }
  .service.reveal,
  .about-body.reveal .sector-list,
  .about-body.reveal .sector-list li,
  .faq-list.reveal,
  .faq-list.reveal .faq-item,
  .contact-grid.reveal .contact-details,
  .contact-grid.reveal .contact-details > div {
    position: relative;
  }
  .service.reveal::before,
  .about-body.reveal .sector-list::before,
  .faq-list.reveal::before,
  .contact-grid.reveal .contact-details::before,
  .about-body.reveal .sector-list li::after,
  .faq-list.reveal .faq-item::after,
  .contact-grid.reveal .contact-details > div::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--line);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
    transition-delay: calc(var(--reveal-delay, 0s) + var(--line-delay, 0.2s));
  }
  .service.reveal::before {
    top: -2px;
    height: 2px;
    background: var(--ink);
  }
  .about-body.reveal .sector-list::before,
  .faq-list.reveal::before,
  .contact-grid.reveal .contact-details::before {
    top: -1px;
  }
  .about-body.reveal .sector-list li::after,
  .faq-list.reveal .faq-item::after,
  .contact-grid.reveal .contact-details > div::after {
    bottom: -1px;
  }
  .sector-list li:nth-child(1),
  .faq-item:nth-child(1),
  .contact-details > div:nth-child(1) { --line-delay: 0.3s; }
  .sector-list li:nth-child(2),
  .faq-item:nth-child(2),
  .contact-details > div:nth-child(2) { --line-delay: 0.4s; }
  .sector-list li:nth-child(3),
  .faq-item:nth-child(3) { --line-delay: 0.5s; }
  .sector-list li:nth-child(n + 4),
  .faq-item:nth-child(n + 4) { --line-delay: 0.6s; }

  .service.reveal.is-visible::before,
  .about-body.reveal.is-visible .sector-list::before,
  .faq-list.reveal.is-visible::before,
  .contact-grid.reveal.is-visible .contact-details::before,
  .about-body.reveal.is-visible .sector-list li::after,
  .faq-list.reveal.is-visible .faq-item::after,
  .contact-grid.reveal.is-visible .contact-details > div::after {
    transform: scaleX(1);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .primary-nav ul {
    gap: 1.4rem;
  }
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex;
  }
  .primary-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    padding: 1rem var(--gutter) 2rem;
    background: var(--bg);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.15s ease, visibility 0.15s;
  }
  .menu-open .primary-nav {
    visibility: visible;
    opacity: 1;
  }
  .primary-nav ul {
    flex-direction: column;
    gap: 0;
  }
  .primary-nav li {
    border-bottom: 1px solid var(--line);
  }
  .primary-nav a {
    display: block;
    padding: 1.1rem 0;
    font-size: 1.5rem;
    letter-spacing: -0.01em;
    color: var(--ink);
  }
  .primary-nav a::after {
    display: none;
  }
  .menu-open {
    overflow: hidden;
  }
  /* backdrop-filter would make the header the containing block of the fixed menu */
  .menu-open .site-header {
    background: var(--bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .section-grid,
  .hero-body,
  .about-body,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-actions {
    justify-content: flex-start;
  }
  .service-grid,
  .project-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .process {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    row-gap: 2.5rem;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 60px;
  }
  .brand span {
    display: none;
  }
  .hero-eyebrow .sep {
    display: none;
  }
  .facts,
  .service-grid,
  .project-grid,
  .process,
  .contact-form {
    grid-template-columns: minmax(0, 1fr);
  }
  .facts li {
    padding: 1.25rem 1.25rem 1.5rem;
  }
  .footer-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .consent-banner {
    right: var(--gutter);
    max-width: none;
  }
  .faq-item p {
    padding-right: 0;
  }
}

.footer-bottom-solo {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
