/* ==========================================================================
   Scytronix Ltd
   Design system and layout
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

:root {
  /* Instrument surfaces */
  --ink:        #060B12;
  --ink-2:      #0B131F;
  --ink-3:      #13202E;
  --ink-4:      #1B2B3C;

  /* Reading surfaces */
  --paper:      #F5F6F3;
  --paper-2:    #EAECE7;

  /* Type on paper */
  --text:       #0D141C;
  --text-soft:  #46515E;
  --text-mute:  #78838F;

  /* Type on ink */
  --on-ink:      #E8EEF4;
  --on-ink-soft: #9AAABB;
  --on-ink-mute: #6C7D8F;

  /* Signal colours */
  --signal:      #37C7DB;
  --signal-deep: #17869B;
  --signal-glow: rgba(55, 199, 219, 0.35);

  /* Thermal colours */
  --thermal:     #FF7A2F;
  --thermal-hot: #FFC24D;
  --thermal-deep:#B8410E;

  /* Lines */
  --line:      rgba(13, 20, 28, 0.12);
  --line-soft: rgba(13, 20, 28, 0.07);
  --line-ink:  rgba(232, 238, 244, 0.14);
  --line-ink-soft: rgba(232, 238, 244, 0.07);

  /* Type */
  --display: "Newsreader", Georgia, "Times New Roman", serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Metrics */
  --page: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
  --radius: 3px;
}

/* --------------------------------------------------------------------------
   2. Reset and base
   -------------------------------------------------------------------------- */

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.7;
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; }

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

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0;
}

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--signal); color: var(--ink); }

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

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */

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

.wrap--narrow { max-width: 820px; }

.section { padding-block: clamp(64px, 9vw, 118px); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }

.section--ink {
  background: var(--ink);
  color: var(--on-ink);
}

.section--ink h1,
.section--ink h2,
.section--ink h3 { color: var(--on-ink); }

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

.measure { max-width: 64ch; }

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

/* Eyebrow labels */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--signal-deep);
  flex: none;
}

.section--ink .eyebrow { color: var(--on-ink-mute); }
.section--ink .eyebrow::before { background: var(--signal); }

/* Headings scale */
.h-display {
  font-size: clamp(2.5rem, 6.4vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.h-section {
  font-size: clamp(1.85rem, 3.6vw, 2.8rem);
  letter-spacing: -0.025em;
}

.h-card {
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  letter-spacing: -0.02em;
}

.lede {
  font-size: clamp(1.08rem, 1.7vw, 1.3rem);
  line-height: 1.6;
  color: var(--text-soft);
}

.section--ink .lede { color: var(--on-ink-soft); }

/* --------------------------------------------------------------------------
   4. Buttons and links
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.btn__arrow {
  width: 16px;
  height: 8px;
  flex: none;
  transition: transform 220ms cubic-bezier(0.2, 0.7, 0.3, 1);
}

.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--signal {
  background: var(--signal);
  color: #04141A;
}

.btn--signal:hover { background: #55D6E8; }

.btn--outline {
  border-color: var(--line);
  color: var(--text);
  background: transparent;
}

.btn--outline:hover {
  border-color: var(--text);
  background: rgba(13, 20, 28, 0.04);
}

.section--ink .btn--outline,
.hero .btn--outline,
.page-head .btn--outline,
.closer .btn--outline {
  border-color: var(--line-ink);
  color: var(--on-ink);
}

.section--ink .btn--outline:hover,
.hero .btn--outline:hover,
.page-head .btn--outline:hover,
.closer .btn--outline:hover {
  border-color: var(--signal);
  background: rgba(55, 199, 219, 0.09);
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--signal-deep);
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(23, 134, 155, 0.3);
  transition: border-color 180ms ease, color 180ms ease;
}

.link-more:hover {
  color: var(--text);
  border-bottom-color: var(--text);
}

.section--ink .link-more,
.panel .link-more {
  color: var(--signal);
  border-bottom-color: rgba(55, 199, 219, 0.35);
}

.section--ink .link-more:hover,
.panel .link-more:hover {
  color: var(--on-ink);
  border-bottom-color: var(--on-ink);
}

/* --------------------------------------------------------------------------
   5. Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(6, 11, 18, 0.92);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line-ink-soft);
  color: var(--on-ink);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--on-ink);
}

.brand__mark { width: 30px; height: 30px; flex: none; }

.brand__name {
  font-family: var(--body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.nav { display: flex; align-items: center; gap: 4px; }

.nav__link {
  padding: 9px 14px;
  font-size: 14.5px;
  color: var(--on-ink-soft);
  text-decoration: none;
  border-radius: var(--radius);
  transition: color 160ms ease, background 160ms ease;
}

.nav__link:hover { color: var(--on-ink); background: rgba(232, 238, 244, 0.06); }

.nav__link[aria-current="page"] {
  color: var(--on-ink);
  box-shadow: inset 0 -1px 0 var(--signal);
}

.nav__cta { margin-left: 10px; padding: 10px 18px; font-size: 14px; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line-ink);
  border-radius: var(--radius);
  color: var(--on-ink);
  cursor: pointer;
}

.nav-toggle__bars { display: block; width: 17px; height: 11px; position: relative; }
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform 220ms ease, opacity 160ms ease;
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after { bottom: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(4.75px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-4.75px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }

  .nav {
    position: absolute;
    inset: 68px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px var(--gutter) 22px;
    background: rgba(6, 11, 18, 0.98);
    border-bottom: 1px solid var(--line-ink-soft);
    display: none;
  }

  .nav.is-open { display: flex; }
  .nav__link { padding: 13px 0; font-size: 16px; border-bottom: 1px solid var(--line-ink-soft); border-radius: 0; }
  .nav__link[aria-current="page"] { box-shadow: none; color: var(--signal); }
  .nav__cta { margin: 16px 0 0; justify-content: center; }
}

/* --------------------------------------------------------------------------
   6. Splash (homepage only)
   -------------------------------------------------------------------------- */

.splash {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #02060B;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 100%);
  mask-image: linear-gradient(90deg, #000 0%, #000 100%);
}

.intro-off .splash { display: none !important; }

.splash__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: grab;
}

.splash__canvas:active { cursor: grabbing; }

.splash__ui {
  position: absolute;
  left: 50%;
  bottom: clamp(40px, 9vh, 92px);
  transform: translateX(-50%);
  width: min(560px, calc(100vw - 48px));
  text-align: center;
  transition: opacity 420ms ease, transform 420ms ease;
}

.splash__ui.is-gone {
  opacity: 0;
  transform: translate(-50%, 14px);
  pointer-events: none;
}

.splash__label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(55, 199, 219, 0.85);
  margin: 0 0 16px;
}

.splash__track {
  position: relative;
  height: 44px;
  border: 1px solid rgba(55, 199, 219, 0.22);
  border-radius: 999px;
  background: rgba(6, 20, 28, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.splash__fill {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: 38px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(55, 199, 219, 0.06), rgba(55, 199, 219, 0.22));
  pointer-events: none;
}

.splash__handle {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 38px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: var(--signal);
  color: #02141A;
  display: grid;
  place-items: center;
  cursor: grab;
  box-shadow: 0 0 0 6px rgba(55, 199, 219, 0.12), 0 6px 22px rgba(55, 199, 219, 0.3);
  animation: handlePulse 2.4s ease-in-out infinite;
}

.splash__handle:active { cursor: grabbing; animation: none; }
.splash__handle svg { width: 15px; height: 11px; }

@keyframes handlePulse {
  0%, 100% { box-shadow: 0 0 0 5px rgba(55, 199, 219, 0.1), 0 6px 20px rgba(55, 199, 219, 0.26); }
  50%      { box-shadow: 0 0 0 12px rgba(55, 199, 219, 0), 0 6px 26px rgba(55, 199, 219, 0.42); }
}

.splash__hint {
  margin: 14px 0 0;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: rgba(154, 170, 187, 0.8);
}

.splash__readout {
  position: absolute;
  top: clamp(20px, 4vh, 40px);
  left: var(--gutter);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 2;
  letter-spacing: 0.06em;
  color: rgba(55, 199, 219, 0.62);
  transition: opacity 400ms ease;
}

.splash__readout b {
  font-weight: 400;
  color: rgba(232, 238, 244, 0.9);
  margin-left: 6px;
}

.splash__readout.is-gone { opacity: 0; }

.splash__skip {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(22px, 4vh, 36px);
  padding: 10px 16px;
  background: transparent;
  border: 1px solid rgba(232, 238, 244, 0.18);
  border-radius: var(--radius);
  color: rgba(232, 238, 244, 0.66);
  font-family: var(--body);
  font-size: 13px;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease;
  z-index: 3;
}

.splash__skip:hover { color: var(--on-ink); border-color: rgba(232, 238, 244, 0.5); }

.splash.is-dismissed {
  opacity: 0;
  transition: opacity 340ms ease;
  pointer-events: none;
}

/* Page content rises as the sweep passes */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(16px);
}

.is-revealed .reveal-stagger > * {
  opacity: 1;
  transform: none;
  transition: opacity 620ms ease, transform 620ms cubic-bezier(0.2, 0.7, 0.3, 1);
}

.is-revealed .reveal-stagger > *:nth-child(2) { transition-delay: 90ms; }
.is-revealed .reveal-stagger > *:nth-child(3) { transition-delay: 180ms; }
.is-revealed .reveal-stagger > *:nth-child(4) { transition-delay: 270ms; }

.intro-off .reveal-stagger > * { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  background: var(--ink);
  color: var(--on-ink);
  overflow: hidden;
  padding-block: clamp(74px, 12vw, 148px);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 78% 8%, rgba(55, 199, 219, 0.14), transparent 58%),
    radial-gradient(90% 70% at 8% 100%, rgba(255, 122, 47, 0.08), transparent 62%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(232, 238, 244, 0.05) 0 1px, transparent 1px 78px),
    repeating-linear-gradient(0deg, rgba(232, 238, 244, 0.05) 0 1px, transparent 1px 78px);
  mask-image: radial-gradient(80% 70% at 70% 30%, #000 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(80% 70% at 70% 30%, #000 10%, transparent 75%);
  pointer-events: none;
}

.hero__inner { position: relative; z-index: 2; }

.hero__title {
  font-size: clamp(2.7rem, 7vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  max-width: 14ch;
}

.hero__lede {
  margin-top: 26px;
  max-width: 52ch;
  font-size: clamp(1.08rem, 1.8vw, 1.32rem);
  line-height: 1.6;
  color: var(--on-ink-soft);
}

.hero__actions {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__meta {
  margin-top: clamp(48px, 7vw, 78px);
  padding-top: 24px;
  border-top: 1px solid var(--line-ink-soft);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 5vw, 64px);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-ink-mute);
}

/* --------------------------------------------------------------------------
   8. Service cards
   -------------------------------------------------------------------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: clamp(18px, 2.4vw, 30px);
  margin-top: clamp(36px, 5vw, 58px);
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 3.2vw, 40px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 44px rgba(13, 20, 28, 0.07);
}

.card--rf:hover { border-color: rgba(55, 199, 219, 0.55); }
.card--ir:hover { border-color: rgba(255, 122, 47, 0.5); }

.card__tag {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--signal-deep);
  margin-bottom: 14px;
}

.card--ir .card__tag { color: var(--thermal-deep); }

.card__body { color: var(--text-soft); margin-top: 12px; }

.spec-list {
  list-style: none;
  margin: 26px 0 30px;
  padding: 0;
  border-top: 1px solid var(--line-soft);
}

.spec-list li {
  padding: 11px 0 11px 26px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 15px;
  color: var(--text-soft);
  position: relative;
}

.spec-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 20px;
  width: 7px;
  height: 7px;
  border: 1px solid var(--signal-deep);
  transform: rotate(45deg);
}

.card--ir .spec-list li::before { border-color: var(--thermal-deep); }

.card__foot { margin-top: auto; }

/* --------------------------------------------------------------------------
   9. Skills grid
   -------------------------------------------------------------------------- */

.skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(20px, 3vw, 42px);
  margin-top: clamp(36px, 5vw, 56px);
}

.skill { padding-top: 22px; border-top: 1px solid var(--line-ink); }

.skill__icon {
  width: 54px;
  height: 54px;
  margin-bottom: 20px;
  color: var(--signal);
}

.skill__title {
  font-family: var(--display);
  font-size: 1.28rem;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}

.skill__text {
  font-size: 15px;
  line-height: 1.68;
  color: var(--on-ink-soft);
  margin: 0;
}

/* --------------------------------------------------------------------------
   10. Instrument panel (shared demo shell)
   -------------------------------------------------------------------------- */

.panel {
  background: var(--ink-2);
  border: 1px solid var(--line-ink);
  border-radius: var(--radius);
  color: var(--on-ink);
  overflow: hidden;
}

.panel__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 13px 20px;
  background: rgba(255, 255, 255, 0.025);
  border-bottom: 1px solid var(--line-ink-soft);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--on-ink-mute);
}

.panel__status { display: inline-flex; align-items: center; gap: 8px; color: var(--signal); }

.panel__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 0 var(--signal-glow);
  animation: dotPulse 2.2s ease-out infinite;
}

.panel--ir .panel__status { color: var(--thermal-hot); }
.panel--ir .panel__dot { background: var(--thermal-hot); box-shadow: 0 0 0 0 rgba(255, 194, 77, 0.35); }

@keyframes dotPulse {
  0%   { box-shadow: 0 0 0 0 var(--signal-glow); }
  70%  { box-shadow: 0 0 0 9px rgba(55, 199, 219, 0); }
  100% { box-shadow: 0 0 0 0 rgba(55, 199, 219, 0); }
}

.panel__stage { position: relative; background: #04090F; }
.panel__stage canvas { width: 100%; height: auto; display: block; }

.panel__controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: clamp(18px, 2.6vw, 30px);
  padding: clamp(20px, 2.8vw, 30px);
  border-top: 1px solid var(--line-ink-soft);
}

.control__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.control__label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-ink-mute);
}

.control__value {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--on-ink);
}

.control input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 26px;
  background: transparent;
  cursor: pointer;
}

.control input[type="range"]::-webkit-slider-runnable-track {
  height: 2px;
  background: rgba(232, 238, 244, 0.16);
}

.control input[type="range"]::-moz-range-track {
  height: 2px;
  background: rgba(232, 238, 244, 0.16);
}

.control input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 15px;
  height: 15px;
  margin-top: -6.5px;
  border-radius: 50%;
  background: var(--signal);
  border: 0;
  box-shadow: 0 0 0 4px rgba(55, 199, 219, 0.16);
}

.control input[type="range"]::-moz-range-thumb {
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--signal);
  border: 0;
  box-shadow: 0 0 0 4px rgba(55, 199, 219, 0.16);
}

.panel--ir .control input[type="range"]::-webkit-slider-thumb {
  background: var(--thermal-hot);
  box-shadow: 0 0 0 4px rgba(255, 194, 77, 0.16);
}

.panel--ir .control input[type="range"]::-moz-range-thumb {
  background: var(--thermal-hot);
  box-shadow: 0 0 0 4px rgba(255, 194, 77, 0.16);
}

.control select {
  width: 100%;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-ink);
  border-radius: var(--radius);
  color: var(--on-ink);
  font-family: var(--mono);
  font-size: 13.5px;
  cursor: pointer;
}

.control select option { background: var(--ink-2); color: var(--on-ink); }

.control__check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--on-ink-soft);
  cursor: pointer;
}

.control__check input {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  flex: none;
  border: 1px solid var(--line-ink);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  position: relative;
}

.control__check input:checked {
  background: var(--thermal-hot);
  border-color: var(--thermal-hot);
}

.control__check input:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1.5px;
  width: 4px;
  height: 8px;
  border: solid #2A1704;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.readouts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--line-ink-soft);
  border-top: 1px solid var(--line-ink-soft);
}

.readout { background: var(--ink-2); padding: 18px clamp(18px, 2.4vw, 24px); }

.readout__label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-ink-mute);
  margin: 0 0 8px;
}

.readout__value {
  font-family: var(--mono);
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  color: var(--signal);
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.panel--ir .readout__value { color: var(--thermal-hot); }

.readout__note {
  font-family: var(--body);
  font-size: 12px;
  color: var(--on-ink-mute);
  margin: 5px 0 0;
  letter-spacing: 0;
  text-transform: none;
}

.panel__formula {
  padding: 16px clamp(18px, 2.4vw, 24px);
  border-top: 1px solid var(--line-ink-soft);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.9;
  color: var(--on-ink-mute);
}

.panel__formula b { color: var(--on-ink-soft); font-weight: 400; }

.panel-note {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-mute);
}

.section--ink .panel-note { color: var(--on-ink-mute); }

/* --------------------------------------------------------------------------
   11. Content pages
   -------------------------------------------------------------------------- */

.page-head {
  background: var(--ink);
  color: var(--on-ink);
  padding-block: clamp(56px, 8vw, 104px);
  position: relative;
  overflow: hidden;
}

.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(100% 80% at 85% 10%, rgba(55, 199, 219, 0.13), transparent 60%);
}

.page-head--ir::before { background: radial-gradient(100% 80% at 85% 10%, rgba(255, 122, 47, 0.14), transparent 60%); }

.page-head__inner { position: relative; z-index: 2; }
.page-head .eyebrow { color: var(--on-ink-mute); }
.page-head--ir .eyebrow::before { background: var(--thermal); }

.page-head__title {
  font-size: clamp(2.3rem, 5.4vw, 3.9rem);
  letter-spacing: -0.03em;
  max-width: 18ch;
}

.page-head__lede {
  margin-top: 22px;
  max-width: 58ch;
  font-size: clamp(1.04rem, 1.6vw, 1.22rem);
  color: var(--on-ink-soft);
  line-height: 1.62;
}

.prose { max-width: 68ch; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); margin: 2.2em 0 0.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.3rem; margin: 1.8em 0 0.5em; }
.prose p { color: var(--text-soft); }
.prose strong { color: var(--text); font-weight: 600; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 6vw, 76px);
  align-items: start;
}

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

.fact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 2px solid var(--signal-deep);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 32px);
}

.fact-card__label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 0 0 16px;
}

.fact-list { list-style: none; margin: 0; padding: 0; }

.fact-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 15px;
  color: var(--text-soft);
}

.fact-list li:last-child { border-bottom: 0; }
.fact-list b { display: block; color: var(--text); font-weight: 600; font-size: 14px; }

/* Credibility block */
.trust {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  background: var(--line-ink);
  border: 1px solid var(--line-ink);
  border-radius: var(--radius);
  margin-top: clamp(34px, 4.5vw, 52px);
  overflow: hidden;
}

.trust__cell { background: var(--ink); padding: clamp(26px, 3.2vw, 36px); }

.trust__figure {
  font-family: var(--display);
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  line-height: 1;
  color: var(--signal);
  letter-spacing: -0.03em;
}

.trust__text {
  margin: 14px 0 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--on-ink-soft);
}

/* Quote / attribution */
.attribution {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.section--ink .attribution { border-top-color: var(--line-ink); color: var(--on-ink-mute); }

/* Closing call to action */
.closer {
  background: var(--ink);
  color: var(--on-ink);
  text-align: center;
  padding-block: clamp(70px, 10vw, 130px);
  position: relative;
  overflow: hidden;
}

.closer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 100% at 50% 100%, rgba(255, 122, 47, 0.16), transparent 62%),
    radial-gradient(70% 90% at 50% 0%, rgba(55, 199, 219, 0.1), transparent 60%);
}

.closer__inner { position: relative; z-index: 2; }

.closer__line {
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 auto;
  max-width: 20ch;
}

.closer .btn { margin-top: 36px; }

/* --------------------------------------------------------------------------
   12. Contact
   -------------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(24px, 4vw, 52px);
  margin-top: clamp(30px, 4vw, 48px);
}

.contact-block__label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.contact-block address {
  font-style: normal;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-soft);
}

.contact-block a { color: var(--text); text-decoration-color: var(--line); text-underline-offset: 3px; }
.contact-block a:hover { text-decoration-color: var(--signal-deep); }

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--ink);
  color: var(--on-ink-soft);
  padding-block: clamp(48px, 6vw, 72px) 34px;
  border-top: 1px solid var(--line-ink-soft);
}

.site-footer__top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: clamp(26px, 4vw, 52px);
}

.site-footer__label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--on-ink-mute);
  margin: 0 0 14px;
}

.site-footer address { font-style: normal; font-size: 15px; line-height: 1.8; }
.site-footer a { color: var(--on-ink); text-decoration-color: rgba(232, 238, 244, 0.25); text-underline-offset: 3px; }
.site-footer a:hover { text-decoration-color: var(--signal); }

.site-footer__links { list-style: none; margin: 0; padding: 0; font-size: 15px; line-height: 2; }
.site-footer__links a { text-decoration: none; color: var(--on-ink-soft); }
.site-footer__links a:hover { color: var(--on-ink); }

.site-footer__base {
  margin-top: clamp(38px, 5vw, 58px);
  padding-top: 22px;
  border-top: 1px solid var(--line-ink-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--on-ink-mute);
}

/* --------------------------------------------------------------------------
   14. Motion preferences
   -------------------------------------------------------------------------- */

@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;
  }

  .reveal-stagger > * { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   15. Comparison table
   -------------------------------------------------------------------------- */

.compare-scroll { overflow-x: auto; margin-top: clamp(30px, 4vw, 46px); }

.compare {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  background: var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
}

.compare caption {
  caption-side: top;
  text-align: left;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-ink-mute);
  padding: 16px clamp(18px, 2.4vw, 24px) 0;
}

.compare th, .compare td {
  padding: 14px clamp(14px, 2vw, 20px);
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid var(--line-ink-soft);
  white-space: nowrap;
}

.compare thead th {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-ink-mute);
  font-weight: 400;
  border-bottom: 1px solid var(--line-ink);
}

.compare tbody th {
  font-family: var(--display);
  font-size: 16px;
  color: var(--on-ink);
  font-weight: 400;
  white-space: normal;
}

.compare tbody tr:hover { background: var(--ink-2); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: none; }
.compare tbody tr.is-scyan th { color: var(--signal); }
.compare tbody tr.is-scyan { background: rgba(55, 199, 219, 0.06); }

.compare .yes, .compare .no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 12px;
}

.compare .yes { background: rgba(55, 199, 219, 0.16); color: var(--signal); }
.compare .no { background: rgba(255, 122, 47, 0.12); color: var(--thermal); }

.compare-note {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--on-ink-mute);
  margin: 12px clamp(18px, 2.4vw, 24px) 0 0;
}

/* --------------------------------------------------------------------------
   16. Project timeline
   -------------------------------------------------------------------------- */

.timeline {
  position: relative;
  margin-top: clamp(30px, 4vw, 50px);
  padding-left: 28px;
  border-left: 1px solid var(--line-ink);
}

.timeline__item {
  position: relative;
  padding-bottom: clamp(28px, 3.4vw, 40px);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.timeline__item.is-in { opacity: 1; transform: none; }
.timeline__item:last-child { padding-bottom: 0; }

.timeline__item::before {
  content: "";
  position: absolute;
  left: -32.5px;
  top: 5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink);
  border: 1.5px solid var(--signal);
}

.timeline__date {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--signal);
}

.timeline__funder {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--on-ink-mute);
  margin-left: 10px;
}

.timeline__title {
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--on-ink);
  margin: 6px 0 4px;
}

.timeline__text { color: var(--on-ink-soft); font-size: 14.5px; margin: 0; }

/* --------------------------------------------------------------------------
   17. Team grid
   -------------------------------------------------------------------------- */

.team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(20px, 2.6vw, 30px);
  margin-top: clamp(30px, 4vw, 46px);
}

.team-card {
  padding: clamp(24px, 2.8vw, 32px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.team-card__avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 1.1rem;
  color: var(--signal-deep);
  background: rgba(55, 199, 219, 0.12);
  margin-bottom: 18px;
}

.team-card__name {
  font-family: var(--display);
  font-size: 1.2rem;
  margin: 0 0 2px;
}

.team-card__role {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--signal-deep);
  margin: 0 0 14px;
}

.team-card__bio { color: var(--text-soft); font-size: 14.5px; margin: 0; }

/* --------------------------------------------------------------------------
   18. Spec grid (product capability groups on a paper background)
   -------------------------------------------------------------------------- */

.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(24px, 3vw, 40px);
  margin-top: clamp(30px, 4vw, 46px);
}

.spec-grid__item { padding-top: 18px; border-top: 1px solid var(--line); }

.spec-grid__title {
  font-family: var(--display);
  font-size: 1.08rem;
  margin: 0 0 10px;
}

.spec-grid__list {
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--text-soft);
  font-size: 14px;
}

.spec-grid__list li {
  padding: 6px 0 6px 16px;
  position: relative;
}

.spec-grid__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 5px;
  height: 5px;
  background: var(--signal-deep);
}
