/* Telic Engineering B.V. — site styles
   Brand: navy hero, drawing-sheet body. Exo 2 + JetBrains Mono. */

:root {
  --navy-900: #0b1a2e;
  --navy-800: #0f2138;
  --navy-700: #002853;
  --navy-600: #004570;
  --blue-500: #0095c6;
  --blue-300: #6baddf;
  --blue-200: #a6c8e0;
  --line-dark: #2c4a6b;
  --grey-500: #77828b;
  --paper: #f3f4f5;
  --paper-2: #e9ebee;
  --ink: #0f2138;
  --ink-2: #2c4a6b;
  --white: #ffffff;

  --font-sans: "Exo 2", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", Consolas, "Courier New", monospace;

  --gutter: clamp(20px, 5vw, 72px);
  --measure: 62ch;
  --radius: 4px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue-500); text-decoration: none; }
a:hover { color: var(--navy-600); }
:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 3px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--white); color: var(--ink); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 26, 46, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(166, 200, 224, 0.12);
}
.nav__inner {
  display: flex; align-items: center; gap: 32px;
  padding: 12px var(--gutter);
  max-width: 1440px; margin: 0 auto;
}
.nav__brand img { width: 96px; height: auto; display: block; }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a, .nav__mobile a {
  color: var(--blue-200); font-size: 13px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.nav__links a:hover, .nav__mobile a:hover { color: var(--white); }
.nav__status {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--blue-300); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
}
.nav__status .dot {
  width: 8px; height: 8px; border-radius: 50%; background: #35d07f;
  box-shadow: 0 0 10px #35d07f; display: inline-block;
}
.nav__toggle {
  display: none; background: none; border: 0; padding: 8px; cursor: pointer;
  flex-direction: column; gap: 5px;
}
.nav__toggle span { width: 24px; height: 2px; background: var(--blue-200); display: block; }
.nav__mobile { display: none; flex-direction: column; gap: 4px; padding: 8px var(--gutter) 20px; }
.nav__mobile a { padding: 12px 0; border-top: 1px solid rgba(166, 200, 224, 0.12); font-size: 15px; }
.nav.is-open .nav__mobile { display: flex; }

/* ---------- HERO ---------- */
.hero {
  background:
    radial-gradient(1100px 600px at 78% 28%, rgba(0, 69, 112, 0.55), rgba(11, 26, 46, 0) 70%),
    var(--navy-900);
  color: #e6edf5;
  position: relative;
  overflow: hidden;
}
.hero__inner {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 48px; align-items: center;
  max-width: 1440px; margin: 0 auto;
  padding: clamp(56px, 8vw, 112px) var(--gutter) 0;
}
.hero__copy { display: flex; flex-direction: column; gap: 26px; position: relative; z-index: 1; }
.eyebrow { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--blue-300); }
.hero__title {
  font-size: clamp(40px, 5.6vw, 78px); line-height: 1.02; font-weight: 300;
  letter-spacing: -0.012em; color: #f1f1f2;
}
.hero__title em { font-style: normal; font-weight: 600; color: var(--blue-300); }
.hero__lede { max-width: var(--measure); font-size: clamp(17px, 1.4vw, 19px); font-weight: 300; color: #c3d2e0; line-height: 1.55; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 4px; }
.hero__note { font-size: 14px; color: var(--grey-500); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 26px; border-radius: var(--radius);
  font-weight: 600; font-size: 15px; letter-spacing: 0.01em;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--blue-500); color: var(--white); }
.btn--primary:hover { background: #00a6dc; color: var(--white); }
.btn--ghost { border: 1px solid rgba(166, 200, 224, 0.45); color: #e6edf5; font-weight: 500; }
.btn--ghost:hover { border-color: var(--blue-300); color: var(--white); }

.hero__schematic { margin: 0; min-width: 0; position: relative; }
.turbine { width: 100%; aspect-ratio: 4 / 3; max-width: 100%; position: relative; }
.turbine canvas { display: block; }
.schematic { width: 100%; height: auto; display: block; }
.hero__schematic .schematic--fallback { position: absolute; inset: 0; }
.hero__schematic.is-webgl .schematic--fallback, .turbine.is-webgl + .schematic--fallback { display: none; }
.sch-labels text { font-family: var(--font-mono); font-size: 12px; fill: var(--blue-200); }

@keyframes sch-flow { to { stroke-dashoffset: -400; } }
@keyframes sch-spin { to { transform: rotate(360deg); } }
@keyframes sch-draw { from { stroke-dashoffset: 1400; } to { stroke-dashoffset: 0; } }
.sch-flow { stroke-dasharray: 6 10; animation: sch-flow 8s linear infinite; }
.sch-rotor { transform-origin: 620px 300px; transform-box: view-box; animation: sch-spin 14s linear infinite; }
.sch-casing path:first-child { stroke-dasharray: 1400; animation: sch-draw 2.4s ease-out both; }

.hero__strip {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 1440px; margin: clamp(48px, 6vw, 96px) auto 0;
  padding: 0 var(--gutter);
  border-top: 1px solid rgba(166, 200, 224, 0.18);
}
.stat { padding: 26px 22px; border-right: 1px solid rgba(166, 200, 224, 0.12); display: flex; flex-direction: column; gap: 6px; }
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: 0; }
.stat__value { font-size: clamp(30px, 3vw, 42px); color: #f1f1f2; line-height: 1.05; }
.stat__value--text { font-size: clamp(16px, 1.5vw, 20px); line-height: 1.35; padding-top: 8px; }
.stat__unit { color: var(--blue-300); font-size: 0.55em; }
.stat__label { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--grey-500); }

/* ---------- SHEET BODY ---------- */
.sheet {
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(0, 69, 112, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 69, 112, 0.055) 1px, transparent 1px);
  background-size: 40px 40px;
}
.block {
  max-width: 1440px; margin: 0 auto;
  padding: clamp(56px, 7vw, 104px) var(--gutter);
  border-bottom: 1px solid rgba(0, 69, 112, 0.25);
}
.block__head { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 12px 32px; align-items: baseline; margin-bottom: clamp(32px, 4vw, 56px); }
.sheet-no { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--blue-500); padding-top: 10px; }
.block h2 { font-size: clamp(30px, 3.4vw, 48px); font-weight: 300; letter-spacing: -0.015em; color: var(--ink); }
.block__intro { grid-column: 2; max-width: var(--measure); font-size: 18px; font-weight: 300; color: var(--ink-2); }

/* reveal on scroll (progressive; visible at rest) */
.reveal { opacity: 1; transform: none; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: reveal-in linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 35%;
    }
  }
}
@keyframes reveal-in { from { opacity: 0.25; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* services */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1.5px solid var(--navy-600); }
.service { padding: 28px 28px 32px 0; border-bottom: 0.5px solid rgba(0, 69, 112, 0.4); border-right: 0.5px solid rgba(0, 69, 112, 0.4); display: flex; flex-direction: column; gap: 12px; }
.service:nth-child(3n) { border-right: 0; }
.service:nth-child(n+2) { padding-left: 28px; }
.service:nth-child(3n+1) { padding-left: 0; }
.service h3 { font-size: 22px; font-weight: 500; color: var(--navy-700); }
.service p { font-size: 16px; font-weight: 300; color: var(--ink-2); }

/* platforms spec */
.spec { border-top: 1.5px solid var(--navy-600); }
.spec__row { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; padding: 22px 0; border-bottom: 0.5px solid rgba(0, 69, 112, 0.4); }
.spec__key { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--grey-500); padding-top: 4px; }
.spec__val { font-size: 17px; font-weight: 300; color: var(--ink); line-height: 1.6; }

/* track record */
.table-wrap { overflow-x: auto; border-top: 1.5px solid var(--navy-600); }
.record { width: 100%; border-collapse: collapse; min-width: 760px; }
.record th, .record td { text-align: left; padding: 12px 18px 12px 0; border-bottom: 0.5px solid rgba(0, 69, 112, 0.4); vertical-align: top; font-size: 15px; }
.record th { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--grey-500); font-weight: 500; padding-top: 14px; }
.record td.mono { white-space: nowrap; color: var(--navy-600); font-size: 14px; }
.record tbody tr:hover { background: rgba(0, 149, 198, 0.06); }
.record__note { max-width: 78ch; margin-top: 24px; font-size: 15px; font-weight: 300; color: var(--ink-2); }
.career { margin-top: 40px; display: flex; flex-direction: column; border-top: 1.5px solid var(--navy-600); }
.career__row { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; padding: 14px 0; border-bottom: 0.5px solid rgba(0, 69, 112, 0.4); font-size: 16px; }
.career__row .mono { color: var(--navy-600); font-size: 14px; padding-top: 2px; }

/* how I work */
.how { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1.5px solid var(--navy-600); }
.how__item { padding: 26px 24px 30px 0; border-right: 0.5px solid rgba(0, 69, 112, 0.4); display: flex; flex-direction: column; gap: 10px; }
.how__item:last-child { border-right: 0; }
.how__item:nth-child(n+2) { padding-left: 24px; }
.how__item h3 { font-size: 20px; font-weight: 500; color: var(--navy-700); }
.how__item p { font-size: 15.5px; font-weight: 300; color: var(--ink-2); }

/* tools */
.block--tools { background: var(--navy-700); color: #e6edf5; border-bottom: 0; }
.block--tools .sheet-no { color: var(--blue-300); }
.block--tools h2 { color: var(--white); margin-bottom: 12px; }
.block--tools .block__intro { color: var(--blue-200); }
.tools { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.tools__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border-top: 1px solid rgba(166, 200, 224, 0.25); }
.tools__list li { border-bottom: 1px solid rgba(166, 200, 224, 0.25); }
.tools__list a { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; color: var(--white); font-size: 18px; font-weight: 400; }
.tools__list a::after { content: "→"; color: var(--blue-300); margin-left: 16px; }
.tools__sub { display: block; font-size: 14px; font-weight: 300; color: var(--blue-200); margin-top: 2px; }
.tools__list a { flex-wrap: wrap; }
.tools__list a:hover { color: var(--blue-300); }

/* contact */
.block--contact { border-bottom: 0; }
.contact { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 48px; align-items: start; }
.contact__copy { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.contact__copy h2 { font-size: clamp(30px, 3.4vw, 48px); font-weight: 300; }
.contact__copy p { max-width: 52ch; font-size: 18px; font-weight: 300; color: var(--ink-2); }
.contact__card { font-style: normal; line-height: 1.8; padding: 24px 28px; border: 1px solid var(--navy-600); background: var(--white); font-size: 16px; }
.contact__card strong { font-weight: 600; color: var(--navy-700); }

/* footer title block */
.foot__logo { display: block; width: 110px; height: auto; margin: 0 0 20px; }
.foot { background: var(--paper-2); border-top: 1.5px solid var(--navy-600); padding: 28px var(--gutter) 32px; }
.titleblock { max-width: 1440px; margin: 0 auto; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border: 1px solid var(--navy-600); background: var(--paper); font-size: 12px; color: var(--ink); }
.titleblock > div { padding: 8px 12px; border-right: 1px solid var(--navy-600); display: flex; flex-direction: column; gap: 2px; }
.titleblock > div:last-child { border-right: 0; }
.titleblock span { font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey-500); }
.foot__line { max-width: 1440px; margin: 16px auto 0; font-size: 13px; color: var(--grey-500); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service:nth-child(3n) { border-right: 0.5px solid rgba(0, 69, 112, 0.4); }
  .service:nth-child(2n) { border-right: 0; }
  .service:nth-child(n+2) { padding-left: 28px; }
  .service:nth-child(2n+1) { padding-left: 0; }
  .how { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .how__item:nth-child(2) { border-right: 0; }
  .how__item:nth-child(3) { padding-left: 0; }
}
@media (max-width: 900px) {
  .nav__links, .nav__status { display: none; }
  .nav__toggle { display: flex; margin-left: auto; }
  .hero__inner { grid-template-columns: 1fr; gap: 32px; }
  .hero__schematic { max-width: 100%; }
  .turbine { aspect-ratio: 5 / 4; }
  .hero__strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 20px 16px; }
  .stat:nth-child(odd) { padding-left: 0; }
  .stat:nth-child(even) { border-right: 0; }
  .block__head { grid-template-columns: 1fr; gap: 8px; }
  .block__intro { grid-column: 1; }
  .spec__row, .career__row { grid-template-columns: 1fr; gap: 6px; }
  .tools, .contact { grid-template-columns: 1fr; }
  .titleblock { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .titleblock > div:nth-child(3) { border-right: 0; }
  .titleblock > div:nth-child(-n+3) { border-bottom: 1px solid var(--navy-600); }
}
@media (max-width: 600px) {
  .services, .how { grid-template-columns: 1fr; }
  .service, .how__item { border-right: 0 !important; padding-left: 0 !important; padding-right: 0; }
  .hero__strip { grid-template-columns: 1fr 1fr; }
  .stat__value { font-size: 28px; }
  .stat__value--text { font-size: 15px; }
  .titleblock { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .titleblock > div { border-bottom: 1px solid var(--navy-600); }
  .titleblock > div:nth-child(even) { border-right: 0; }
  .titleblock > div:nth-last-child(-n+2) { border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .sch-flow, .sch-rotor, .sch-casing path:first-child { animation: none; }
  .btn { transition: none; }
}
