/* ==========================================================================
   PowerWeave — site styles
   Brand colors are defined once in css/theme.css and referenced here through
   variables plus color-mix() / rgba() derivatives. No other color literals.

   Order: tokens → base → surfaces & textures → layout & type → nav →
          shared components → hero → sections → sub-pages → footer →
          thread → motion → responsive
   ========================================================================== */

/* --- 0. Internal tokens ---------------------------------------------------- */
:root {
  --ease: cubic-bezier(.2, .65, .25, 1);

  /* Neutral black / white grain tiles (feTurbulence, 200×200, seamless). */
  --grain-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .35 .35 .35 0 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23g)'/%3E%3C/svg%3E");
  --grain-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 .35 .35 .35 0 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23g)'/%3E%3C/svg%3E");

  /* Floating surfaces, layered after web-prototype-taste-soft: an inset top
     light, a 1px ring, then a far and a near soft shadow that lift the layer
     off the page. Radii stay at --radius to keep the engineering look. */
  --raise-dark:
    inset 0 1px 0 rgba(255, 255, 255, .07),
    0 0 0 1px color-mix(in srgb, var(--c-line) 20%, transparent),
    0 24px 48px -24px rgba(0, 0, 0, .55);
  --raise-light:
    inset 0 1px 0 rgba(255, 255, 255, .7),
    0 0 0 1px color-mix(in srgb, var(--c-deep) 8%, transparent),
    0 30px 60px -30px rgba(36, 18, 58, .3),
    0 12px 24px -16px rgba(36, 18, 58, .12);
}

/* --- 0b. Fonts --------------------------------------------------------------
   Declared in css/fonts.css: self-hosted, SIL Open Font License 1.1, embedded
   as data URIs so they also load from file://. Files, licence texts and
   sources: fonts/. */

/* --- 1. Base --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  background-color: var(--c-deep); /* overscroll matches the fixed header / footer */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  padding-top: var(--nav-h);
  overflow-x: clip;
  /* The padding-top reserves the fixed header's height. Paint that strip in
     the deep tone, so the translucent header has brand colour behind it at the
     top of the page instead of the white body. */
  background: linear-gradient(var(--c-deep), var(--c-deep)) top / 100% var(--nav-h) no-repeat, var(--c-white);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--c-deep);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
  margin: 0;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.03em;
  text-wrap: balance;
}

p, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

button {
  padding: 0;
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

[id] { scroll-margin-top: calc(var(--nav-h) + 20px); }

::selection { background-color: var(--c-accent); color: var(--c-deep); }

:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }
/* Gold alone is faint on light paper, so back it with a primary hairline. */
.sec--light :focus-visible { box-shadow: 0 0 0 1px var(--c-primary); }

.skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  background-color: var(--c-accent);
  color: var(--c-deep);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  transform: translateY(-160%);
}
.skip:focus { transform: none; }

/* --- 2. Surfaces & textures ------------------------------------------------ */
.sec { position: relative; padding-block: var(--sec-pad); }

.sec--dark {
  --fg-2: var(--c-line);
  --label: var(--c-line);
  --hairline: color-mix(in srgb, var(--c-line) 22%, transparent);
  --grain: var(--grain-dark);
  background-color: var(--c-deep);
  color: var(--c-white);
}

.sec--light {
  --fg-2: color-mix(in srgb, var(--c-deep) 76%, transparent);
  --label: var(--c-primary);
  --hairline: color-mix(in srgb, var(--c-deep) 14%, transparent);
  --grain: var(--grain-light);
  color: var(--c-deep);
}

.sec--tint { background-color: var(--c-tint); }
.sec--white { background-color: var(--c-white); }

/* Grain: both pseudo-elements sit at z-index 0, under every .wrap (z-index 1),
   so textures can never cover the logo or any content. */
.sec::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--grain) repeat 0 0 / 200px 200px;
  opacity: .07;
}
.sec--light::after { opacity: .05; }

/* Weave: warp / weft hairlines in --c-line, softened at the edges. */
.sec--weave {
  --weave-soft: color-mix(in srgb, var(--c-line) 9%, transparent);
  --weave-strong: color-mix(in srgb, var(--c-line) 17%, transparent);
}

.sec--weave::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(to right,  var(--weave-strong) 0 1px, transparent 1px 240px),
    repeating-linear-gradient(to bottom, var(--weave-strong) 0 1px, transparent 1px 240px),
    repeating-linear-gradient(to right,  var(--weave-soft) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(to bottom, var(--weave-soft) 0 1px, transparent 1px 48px);
  -webkit-mask-image: var(--weave-mask);
  mask-image: var(--weave-mask);
}

/* --- 3. Layout & type ------------------------------------------------------ */
.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* main is the containing block of the connecting thread. */
main { position: relative; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--label);
}

.lead {
  max-width: 40em;
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--fg-2);
}

.u {
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 34%, transparent);
  text-underline-offset: .22em;
  transition: text-decoration-color .25s;
}
.u:hover, .u:focus-visible { text-decoration-color: var(--c-accent); }

/* --- 4. Navigation (fixed, glass over the page) ---------------------------- */
.site-head {
  --fg-2: var(--c-line);
  --label: var(--c-line);
  --hairline: color-mix(in srgb, var(--c-line) 22%, transparent);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  color: var(--c-white);
  background-color: color-mix(in srgb, var(--c-deep) 82%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: var(--raise-dark);
}

/* Without the glass effect the bar must stay solid, so text keeps its contrast. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-head { background-color: var(--c-deep); }
}

.site-head__bar {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 44px);
  height: var(--nav-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--c-white);
}
.brand__mark { height: 30px; width: auto; max-width: none; }
.brand__name { font-size: 1.0625rem; font-weight: 700; letter-spacing: -.01em; }

.site-nav { margin-left: auto; }
.site-nav ul { display: flex; align-items: center; gap: clamp(20px, 2.8vw, 38px); }

.site-nav a {
  position: relative;
  display: inline-block;
  padding: 6px 2px;
  font-size: .9375rem;
  font-weight: 500;
  letter-spacing: .01em;
  text-decoration: none;
  color: color-mix(in srgb, var(--c-white) 82%, transparent);
  transition: color .25s;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 0;
  height: 1px;
  background-color: var(--c-accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .35s var(--ease);
}
.site-nav a:hover,
.site-nav a:focus-visible { color: var(--c-white); }
.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { color: var(--c-white); }

.site-head__tools { display: flex; align-items: center; gap: 10px; }

/* Without JS the hamburger cannot work: hide it (the plain link list stays
   visible instead of a dead button). */
html:not(.js) .menu-btn { display: none; }

/* Hamburger: three CSS lines, no icon font. */
.menu-btn {
  position: relative;
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  border-radius: var(--radius);
  color: var(--c-white);
}
.menu-btn__bars,
.menu-btn__bars::before,
.menu-btn__bars::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 11px;
  width: 22px;
  height: 2px;
  margin-top: -1px;
  border-radius: 1px;
  background-color: currentColor;
  transition: transform .3s var(--ease), background-color .3s;
}
.menu-btn__bars::before { transform: translateY(-7px); }
.menu-btn__bars::after { transform: translateY(7px); }

/* --- 5. Shared components -------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 30px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .01em;
  text-align: center;
  text-decoration: none;
  transition: transform .3s var(--ease), background-color .3s, border-color .3s, color .3s, box-shadow .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background-color: var(--c-accent);
  color: var(--c-deep);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28); /* machined top light */
}
.btn--primary:hover {
  background-color: color-mix(in srgb, var(--c-accent) 86%, var(--c-white));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .34), 0 14px 28px -14px rgba(0, 0, 0, .55);
}
.sec--light .btn--primary:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .34), 0 14px 28px -14px rgba(0, 0, 0, .28); }

.btn--ghost {
  border-color: color-mix(in srgb, var(--c-line) 55%, transparent);
  color: var(--c-white);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}
.btn--ghost:hover {
  border-color: var(--c-line);
  background-color: color-mix(in srgb, var(--c-line) 12%, transparent);
}

/* Mark + name, with the name set as HTML text. */
.lockup { display: inline-flex; align-items: center; gap: 16px; text-decoration: none; }
.lockup__mark { height: 44px; width: auto; max-width: none; }
/* The company name beside the mark. */
.lockup__name { font-size: 1.25rem; font-weight: 600; letter-spacing: .04em; white-space: nowrap; }

/* Floating panel for light surfaces: a translucent shell around a lit core.
   Used for the contact details and the products note. */
.panel {
  padding: 8px;
  background-color: color-mix(in srgb, var(--c-white) 55%, transparent);
  box-shadow: var(--raise-light);
}
.panel__core {
  padding: clamp(28px, 4vw, 44px);
  background: linear-gradient(180deg, var(--c-white), color-mix(in srgb, var(--c-white) 72%, var(--c-tint)));
  box-shadow: inset 0 1px 0 var(--c-white), inset 0 0 0 1px color-mix(in srgb, var(--c-deep) 8%, transparent);
}

/* --- 6. Hero --------------------------------------------------------------- */
.hero {
  --weave-mask: radial-gradient(ellipse 64% 62% at 50% 44%, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
  display: flex;
  flex-direction: column;
  min-height: min(calc(100vh - var(--nav-h)), 1040px);
  padding-block: clamp(24px, 4vh, 48px) clamp(40px, 6vw, 72px);
  background-image: radial-gradient(ellipse 58% 54% at 50% 40%, color-mix(in srgb, var(--c-primary) 62%, transparent), transparent 72%);
}
@supports (height: 100svh) {
  .hero { min-height: min(calc(100svh - var(--nav-h)), 1040px); }
}

.hero > .wrap { display: flex; flex: 1; flex-direction: column; }

.hero__main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-block: clamp(24px, 4vh, 48px) clamp(40px, 6vw, 72px);
  text-align: center;
}

.hero__brand { display: flex; flex-direction: column; align-items: center; }
.hero__emblem { height: clamp(52px, 5.5vw, 76px); width: auto; max-width: none; }
.hero__name {
  margin-top: 18px;
  font-size: clamp(1.125rem, 1rem + .4vw, 1.3125rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .04em;
}

.hero__title {
  margin-top: clamp(36px, 4.5vw, 56px);
  font-size: var(--fs-h1);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.035em;
  overflow-wrap: break-word;
}
.hero__title span { display: block; }

.hero__actions, .cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}

/* Category strip along the base of the hero, raised off the weave as a glass
   panel. The thread starts at its bottom edge, on the page centre line. */
.hero__strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  background-color: rgba(255, 255, 255, .035);
  box-shadow: var(--raise-dark);
}
.hero__strip li {
  padding: 18px 18px 22px;
  border-left: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--c-line) 84%, transparent);
}
.hero__strip li:first-child { padding-left: 22px; border-left: 0; }

/* Short viewports (laptops, projector mirrors): tighten the hero so the strip
   still lands inside the first screen. Phones keep the roomier spacing. */
@media (min-width: 600px) and (max-height: 899.98px) {
  .hero { padding-block: 16px 32px; }
  .hero__main { padding-block: 16px 40px; }
  .hero__emblem { height: clamp(44px, 5vw, 56px); }
  .hero__name { margin-top: 12px; }
  .hero__title { margin-top: 28px; font-size: min(var(--fs-h1), 10.5vh); }
  .hero__actions { margin-top: 32px; }
  .hero .btn { min-height: 48px; }
  .hero__strip li { padding-block: 14px 16px; }
}

/* --- 7. Section: Solutions (the anchor stays #technology) ------------------- */
/* Zero-size marker: `left` is resolved against the wrap's padding box, so
   this lands `--rail` left of the content column, aligned with the strip. */
.wrap--rail .rail-mark {
  position: absolute;
  top: 0;
  left: var(--gutter);
  width: 0;
  height: 0;
}

.sec-head h2 { margin-top: 22px; font-size: var(--fs-h2); max-width: 15.5em; }
.sec-head .lead { margin-top: 20px; }

.tech-list { margin-top: clamp(48px, 6vw, 80px); }

.tech-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(24px, 4vw, 56px);
  padding-block: clamp(28px, 3.6vw, 48px);
  border-top: 1px solid var(--hairline);
}
.tech-row:last-child { border-bottom: 1px solid var(--hairline); }

.tech-row__num {
  font-family: var(--font-mono);
  font-size: var(--fs-num);
  font-weight: 700;
  line-height: .78;
  letter-spacing: -.08em;
  font-variant-numeric: tabular-nums;
  color: var(--c-primary);
}
.tech-row__body { grid-column: 2; grid-row: 1; max-width: 30rem; }
.tech-row__body h3 {
  font-size: clamp(1.25rem, 1.05rem + .7vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.3;
}
.tech-row__body p { margin-top: 10px; max-width: 34em; color: var(--fg-2); }

/* Even rows mirror: text on the left, number at the far right. */
.tech-row:nth-child(even) .tech-row__num { grid-column: 2; grid-row: 1; justify-self: end; }
.tech-row:nth-child(even) .tech-row__body { grid-column: 1; }

/* --- 8. Section: About ----------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  column-gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.about-intro h2 { margin-top: 22px; font-size: clamp(2rem, 1.4rem + 2vw, 3rem); max-width: 10em; }
.about-copy p { max-width: 36em; font-size: var(--fs-lead); line-height: 1.7; }
.about-sign { display: flex; justify-content: flex-end; margin-top: clamp(32px, 4vw, 48px); }
.about-sign .lockup__mark { height: 52px; }

/* --- 9. Section: Call to action -------------------------------------------- */
.cta {
  --weave-mask: radial-gradient(ellipse 72% 100% at 50% 50%, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
  text-align: center;
  background-image: radial-gradient(ellipse 46% 72% at 50% 50%, color-mix(in srgb, var(--c-primary) 62%, transparent), transparent 72%);
}
.cta__inner { max-width: 880px; margin-inline: auto; }
.cta__title { font-size: var(--fs-cta); font-weight: 800; line-height: 1.05; letter-spacing: -.035em; }
.cta__title span { display: block; }
.cta__sub { margin-top: 22px; font-size: var(--fs-lead); line-height: 1.6; color: var(--fg-2); }

/* --- 10. Sub-pages: page head ---------------------------------------------- */
.page-head {
  --weave-mask: radial-gradient(ellipse 80% 150% at 20% 10%, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
  padding-block: clamp(72px, 12vh, 136px) clamp(64px, 9vw, 112px);
  background-image: radial-gradient(ellipse 50% 110% at 14% 0%, color-mix(in srgb, var(--c-primary) 62%, transparent), transparent 72%);
}
.page-head__tick {
  display: block;
  width: 40px;
  height: 2px;
  margin-bottom: clamp(24px, 3vw, 36px);
  background-color: var(--c-accent);
}
.page-head__title { font-size: var(--fs-page); font-weight: 800; line-height: 1; letter-spacing: -.045em; overflow-wrap: break-word; }
.page-head__sub { margin-top: 22px; max-width: 34em; font-size: var(--fs-lead); line-height: 1.6; color: var(--fg-2); }
.page-head__actions { margin-top: 40px; }

.page-head--tall .eyebrow { margin-bottom: clamp(24px, 3vw, 36px); }

.page-head--tall {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: min(calc(100vh - var(--nav-h)), 760px);
}
@supports (height: 100svh) {
  .page-head--tall { min-height: min(calc(100svh - var(--nav-h)), 760px); }
}

/* --- 11. Products ---------------------------------------------------------- */
/* What is still to come, said once above the category buttons. */
.cat-note { margin-bottom: 22px; font-size: .875rem; line-height: 1.6; color: var(--fg-2); }

/* Product categories: buttons that select one category, so that products can
   later be filed under each of them. Without JS the buttons are hidden and
   every category is listed one under another. */
.cat-tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.cat-tab {
  padding: 12px 18px;
  border: 1px solid color-mix(in srgb, var(--c-deep) 22%, transparent);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: .8125rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-deep);
  transition: color .25s, border-color .25s, background-color .25s;
}
.cat-tab:hover { border-color: var(--c-primary); color: var(--c-primary); }
.cat-tab[aria-selected="true"] { border-color: var(--c-primary); background-color: var(--c-primary); color: var(--c-white); }
html:not(.js) .cat-tabs { display: none; }

.cat-panels { margin-top: 28px; border-bottom: 1px solid var(--hairline); }
.cat-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: clamp(16px, 2.4vw, 28px);
  padding-block: clamp(28px, 4vw, 44px);
  border-top: 1px solid var(--hairline);
}
/* Restarted every time a panel is shown, which fades in the newly chosen category. */
html.js .cat-panel { animation: cat-in .35s var(--ease); }
@keyframes cat-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.cat-panel__num {
  padding-top: calc(var(--fs-name) * .34);
  font-family: var(--font-mono);
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .1em;
  color: var(--c-primary);
}
.cat-panel__name { font-size: var(--fs-name); font-weight: 600; letter-spacing: -.025em; line-height: 1.25; }
.cat-panel__desc { margin-top: 10px; max-width: 40em; color: var(--fg-2); }

.sec--slim { padding-block: clamp(40px, 5vw, 64px); }
/* Closing call to action of the products page. */
.prod-note { display: flex; }

/* --- 12. Contact ----------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  column-gap: clamp(40px, 7vw, 112px);
  row-gap: 48px;
  align-items: start;
}
.contact-mail-label { display: block; margin-top: clamp(40px, 6vw, 72px); }
.contact-mail {
  display: inline-block;
  margin-top: 14px;
  font-size: var(--fs-mail);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.035em;
  text-decoration: none;
  overflow-wrap: anywhere;
  background: linear-gradient(var(--c-accent), var(--c-accent)) no-repeat 0 100% / 0% 2px;
  transition: background-size .4s var(--ease);
}
.contact-mail:hover, .contact-mail:focus-visible { background-size: 100% 2px; }

.contact-intro { font-size: var(--fs-lead); line-height: 1.6; }
.contact-fact { padding-block: 26px; border-top: 1px solid var(--hairline); }
.contact-facts .contact-fact:first-child { margin-top: 32px; }
.contact-fact dt { margin-bottom: 6px; }
.contact-fact dd { font-size: var(--fs-lead); line-height: 1.6; }
.contact-fact dd p { font-size: var(--fs-body); }

/* --- 13. Footer ------------------------------------------------------------ */
.site-foot {
  --weave-mask: linear-gradient(to bottom, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0) 85%);
  padding-block: clamp(48px, 6vw, 72px) 32px;
}
.site-foot__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px 40px;
  padding-bottom: 32px;
}
.site-foot__nav ul { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.site-foot__nav a {
  font-size: .9375rem;
  text-decoration: none;
  color: var(--fg-2);
  transition: color .25s;
}
.site-foot__nav a:hover, .site-foot__nav a:focus-visible { color: var(--c-white); text-decoration: underline; text-decoration-color: var(--c-accent); text-underline-offset: .25em; }

.site-foot__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  font-size: .875rem;
  color: var(--fg-2);
}
.site-foot__bottom a { text-decoration: none; transition: color .25s; }
.site-foot__bottom a:hover, .site-foot__bottom a:focus-visible { color: var(--c-white); text-decoration: underline; text-decoration-color: var(--c-accent); text-underline-offset: .25em; }

/* --- 14. Connecting thread (landing page) ----------------------------------
   Last child of main, z-index 0: paints above every section background and
   texture, but below every .wrap (z-index 1). Its route is computed from
   real layout positions, so it only ever travels through empty gutters. */
.thread {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  display: none;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.thread__ghost {
  fill: none;
  stroke: var(--c-accent);
  stroke-width: 1;
  stroke-linecap: round;
  stroke-dasharray: 2 7;
  opacity: .5;
}
.thread__line {
  fill: none;
  stroke: var(--c-accent);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.thread__node {
  fill: var(--node-bg, transparent);
  stroke: var(--c-accent);
  stroke-width: 1.5;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(.7);
  transition: transform .5s var(--ease), fill .5s;
}
.thread__node.is-on { fill: var(--c-accent); transform: scale(1); }

/* --- 15. Motion ------------------------------------------------------------
   Three effects only: hover lift (see .btn), scroll reveal, thread drawing.
   Start states are gated on html.js, which the inline <head> script adds
   only when JS runs, so content is never hidden without it. */
html.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--d, 0ms);
}
html.js [data-reveal].is-in { opacity: 1; transform: none; }

/* --- 16. Responsive -------------------------------------------------------- */
@media (min-width: 900px) {
  .wrap--rail { padding-left: calc(var(--gutter) + var(--rail)); }
  .thread { display: block; }
}

/* Narrower than the thread rail: the label carries a short gold tick instead. */
@media (max-width: 899.98px) {
  .eyebrow::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 1px;
    margin-right: 12px;
    vertical-align: middle;
    background-color: var(--c-accent);
  }
  .rail-mark { display: none; }

  .hero__strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__strip li { padding: 16px 20px 18px; }
  .hero__strip li:nth-child(odd) { padding-left: 18px; border-left: 0; }
  .hero__strip li:nth-child(n+3) { border-top: 1px solid var(--hairline); }
  /* Five items in two columns: the last one takes the whole final row. */
  .hero__strip li:last-child { grid-column: 1 / -1; }

  .tech-row { grid-template-columns: auto minmax(0, 1fr); column-gap: 20px; }
  .tech-row__num { grid-column: 1; grid-row: 1; margin-top: .1em; }
  .tech-row__body, .tech-row:nth-child(even) .tech-row__body { grid-column: 2; grid-row: 1; max-width: none; }
  .tech-row:nth-child(even) .tech-row__num { grid-column: 1; grid-row: 1; justify-self: start; }

  .about-grid { grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
  .about-intro h2 { max-width: none; }
  .about-sign { justify-content: flex-start; }

  .contact-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Five strip items in three columns: the last one fills the second row. */
@media (min-width: 900px) and (max-width: 1199.98px) {
  .hero__strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero__strip li:nth-child(3n + 1) { padding-left: 22px; border-left: 0; }
  .hero__strip li:nth-child(n + 4) { border-top: 1px solid var(--hairline); }
  .hero__strip li:last-child { grid-column: span 2; }
}

/* The full navigation (four links and the language switch) no longer fits
   below this width, so it folds into the hamburger menu. */
@media (max-width: 679.98px) {
  .menu-btn { display: inline-flex; }
  /* The link list has left the bar, so the controls take over its place at
     the right-hand edge instead of trailing the brand. */
  .site-head__tools { margin-left: auto; }
  .menu-btn[aria-expanded="true"] .menu-btn__bars { background-color: transparent; }
  .menu-btn[aria-expanded="true"] .menu-btn__bars::before { transform: translateY(-7px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] .menu-btn__bars::after { transform: translateY(-7px) rotate(-45deg); }

  html.js .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    padding: 4px var(--gutter) 16px;
    background-color: var(--c-deep);
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear .25s;
  }
  html.js .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  html.js .site-nav li + li { border-top: 1px solid var(--hairline); }
  html.js .site-nav a { display: block; padding: 14px 0; font-size: 1rem; }
  html.js .site-nav a::after { display: none; }
  html.js .site-nav a[aria-current="page"] { padding-left: 14px; border-left: 2px solid var(--c-accent); }
  html.js.menu-open .site-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease);
  }
  /* No JS on a narrow screen: there is no panel to toggle, so let the header
     wrap in normal flow instead of clipping the link list inside a fixed bar. */
  html:not(.js) body { padding-top: 0; }
  html:not(.js) .site-head { position: static; }
  html:not(.js) .site-head__bar { flex-wrap: wrap; height: auto; row-gap: 6px; padding-block: 12px; }
  html:not(.js) .site-nav { flex: 0 0 100%; margin-left: 0; }
  html:not(.js) .site-nav ul { flex-wrap: wrap; gap: 2px 22px; }
}

@media (max-width: 599.98px) {
  :root { --nav-h: 64px; }

  .brand__mark { height: 26px; }
  .lockup__mark, .about-sign .lockup__mark { height: 36px; }
  .lockup__name { font-size: 1.125rem; }

  .hero__main { padding-bottom: 48px; }
  .hero__actions, .cta__actions { flex-direction: column; align-items: stretch; }
  .hero__strip li { padding: 14px 8px 16px 12px; font-size: .65625rem; letter-spacing: .06em; }
  .panel { padding: 6px; }
  .panel__core { padding: 22px 20px; }

  .tech-row__num { font-size: 2.5rem; }
  .tech-row__body p { margin-top: 6px; }

  .page-head { padding-top: 56px; }
  .cat-tab { padding: 10px 12px; font-size: .6875rem; }
  .cat-panel { column-gap: 14px; }
  .prod-note .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js [data-reveal] { opacity: 1; transform: none; transition: none; }
  html.js .cat-panel { animation: none; }
  .btn:hover, .btn:active { transform: none; }
  .thread__node { transform: none; transition: none; }
  *, *::before, *::after { transition-duration: 0s !important; }
}
