/* =========================================================
   AiLGa — concept: technical instrument / spec-sheet style
   Dark, light-weight lowercase type, thin rules, signal orange
   ========================================================= */
:root {
  --k: #0b0b0c;          /* black */
  --k2: #141416;
  --k3: #1c1d20;
  --w: #efefef;          /* white */
  --g: #8b8d92;          /* gray */
  --g2: #55575c;
  --rule: rgba(255, 255, 255, 0.14);
  --rule2: rgba(255, 255, 255, 0.07);
  --o: #ff5b1f;          /* signal orange */
  --o-glow: rgba(255, 91, 31, 0.55);
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: "Share Tech Mono", "SFMono-Regular", Menlo, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --gut: clamp(16px, 3vw, 36px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--k); color: var(--w);
  font-family: var(--sans); font-weight: 300; font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
p { margin: 0 0 1em; color: var(--g); }
h1, h2, h3 { font-weight: 300; margin: 0; letter-spacing: -0.02em; line-height: 1.05; }
::selection { background: var(--o); color: #000; }
:focus-visible { outline: 1px solid var(--o); outline-offset: 3px; }
.wrap { padding: 0 var(--gut); max-width: 1440px; margin: 0 auto; }

/* tiny all-caps captions */
.cap { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--g); font-weight: 400; }
.cap-o { color: var(--o); }
.led { font-family: var(--mono); color: var(--o); text-shadow: 0 0 8px var(--o-glow); letter-spacing: 0.04em; }

/* ---------- header: pictogram nav ---------- */
.te-head {
  position: sticky; top: 0; z-index: 50; background: rgba(11, 11, 12, 0.88);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: border-color 0.3s;
}
.te-head.scrolled { border-bottom-color: var(--rule2); }
.te-nav { display: flex; align-items: flex-start; gap: clamp(14px, 2.6vw, 44px); padding-top: 14px; padding-bottom: 12px; }
.te-word { font-size: 17px; line-height: 1.05; font-weight: 400; letter-spacing: -0.01em; margin-right: auto; padding-top: 2px; }
.te-word span { display: block; }
.te-item { display: grid; grid-template-columns: 30px auto; column-gap: 9px; align-items: start; }
.te-item svg { width: 30px; height: 30px; stroke: var(--w); fill: none; stroke-width: 1.2; grid-row: span 2; transition: transform 0.5s var(--ease), stroke 0.2s; }
.te-item:hover svg { transform: rotate(-12deg); stroke: var(--o); }
.te-item b { font-weight: 400; font-size: 17px; line-height: 1.1; }
.te-item a[aria-current="page"] b { color: var(--o); }
.te-sub { display: grid; margin-top: 6px; }
.te-sub a { font-size: 9.5px; line-height: 1.45; color: var(--g); transition: color 0.2s; }
.te-sub a:hover { color: var(--w); }
.te-fine { width: 120px; font-size: 7.5px; line-height: 1.35; color: var(--g); text-transform: uppercase; letter-spacing: 0.04em; }
.te-mark {
  font-weight: 800; font-size: 26px; letter-spacing: -0.04em; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px var(--w); padding-top: 4px;
}
.te-burger { display: none; background: none; border: 1px solid var(--rule); color: var(--w); font: inherit; font-size: 12px; padding: 8px 12px; cursor: pointer; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: calc(100vh - 70px); display: grid; align-content: space-between; padding: clamp(32px, 6vw, 72px) 0 28px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 55% at 70% 55%, rgba(255, 255, 255, 0.07), transparent 70%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.hero h1 { font-size: clamp(44px, 7vw, 108px); font-weight: 300; letter-spacing: -0.045em; line-height: 0.95; margin: 18px 0 28px; }
.hero h1 em { font-style: normal; color: var(--o); }
.hero .lede { font-size: clamp(16px, 1.35vw, 19px); max-width: 520px; color: var(--g); }
.hero .lede strong { color: var(--w); font-weight: 500; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }
.hero-foot { position: relative; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-top: 1px solid var(--rule2); padding-top: 14px; margin-top: 48px; }

/* buttons: hardware keys */
.key {
  --press: 0px;
  display: inline-flex; align-items: center; gap: 12px; padding: 13px 18px;
  font: inherit; font-size: 14px; font-weight: 400; color: #111; background: var(--w);
  border: 0; border-radius: 3px; cursor: pointer;
  box-shadow: 0 3px 0 #9a9a9a, 0 6px 14px rgba(0, 0, 0, 0.5);
  transform: translateY(var(--press)); transition: transform 0.08s, box-shadow 0.08s, background 0.2s;
}
.key:hover { background: #fff; }
.key:active { --press: 3px; box-shadow: 0 0 0 #9a9a9a, 0 2px 6px rgba(0, 0, 0, 0.5); }
.key .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--o); box-shadow: 0 0 8px var(--o-glow); }
.key-dark { background: var(--k3); color: var(--w); box-shadow: 0 3px 0 #000, 0 6px 14px rgba(0, 0, 0, 0.5); outline: 1px solid var(--rule); }
.key-dark:hover { background: #26272b; }

/* ---------- the instrument (CSS device) ---------- */
.device {
  position: relative; aspect-ratio: 1.25; width: 100%; max-width: 640px; justify-self: end;
  transform: perspective(1400px) rotateX(18deg) rotateZ(-7deg);
  transition: transform 1.2s var(--ease);
}
.device:hover { transform: perspective(1400px) rotateX(10deg) rotateZ(-4deg); }
.chassis {
  position: absolute; inset: 0; border-radius: 10px;
  background: linear-gradient(160deg, #d9d9d6 0%, #bcbcb8 55%, #a3a39f 100%);
  box-shadow: 0 2px 0 #e8e8e5 inset, 0 -14px 0 #8a8a86 inset, 0 40px 80px -10px rgba(0, 0, 0, 0.85), 0 0 0 1px #77776f;
  padding: 6% 6% 9%; display: grid; grid-template-rows: auto 1fr auto; gap: 5%;
}
.panel-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.screen {
  flex: 1; background: #120806; border-radius: 3px; padding: 10px 14px; min-height: 58px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6) inset, 0 0 0 2px #2a2a28;
  display: flex; justify-content: space-between; align-items: center; overflow: hidden;
}
.screen .led { font-size: clamp(18px, 2.4vw, 30px); white-space: nowrap; }
.screen .meta { display: grid; gap: 2px; text-align: right; }
.screen .meta i { font-style: normal; font-family: var(--mono); font-size: 9px; color: rgba(255, 91, 31, 0.6); }
.knob {
  width: clamp(38px, 4.4vw, 56px); aspect-ratio: 1; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 35% 30%, #fafaf8, #c9c9c5 60%, #9b9b96);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4), 0 0 0 3px #a6a6a1;
  position: relative; transition: transform 0.6s var(--ease);
}
.knob::after { content: ""; position: absolute; top: 12%; left: 50%; width: 2px; height: 30%; margin-left: -1px; background: #333; border-radius: 2px; }
.pads { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4.5%; }
.pad {
  position: relative; border-radius: 4px; background: linear-gradient(#f3f3f0, #dcdcd8);
  box-shadow: 0 4px 0 #8d8d88, 0 6px 10px rgba(0, 0, 0, 0.3);
  display: grid; align-content: space-between; padding: 8px 9px; min-height: 0; aspect-ratio: 1.35;
  cursor: pointer; color: #2b2b2b; transition: transform 0.08s, box-shadow 0.08s, background 0.2s;
  font-size: clamp(8px, 0.85vw, 11px); line-height: 1.15; text-transform: lowercase;
}
.pad small { font-family: var(--mono); font-size: 0.85em; color: #777; }
.pad:hover, .pad.on { transform: translateY(3px); box-shadow: 0 1px 0 #8d8d88, 0 2px 4px rgba(0, 0, 0, 0.3); }
.pad.on { background: linear-gradient(#ff7a45, #ff5b1f); color: #fff; }
.pad.on small { color: rgba(255, 255, 255, 0.8); }
.pad.dark { background: linear-gradient(#3a3a3a, #262626); color: #e9e9e9; box-shadow: 0 4px 0 #111, 0 6px 10px rgba(0, 0, 0, 0.3); }
.pad.dark small { color: #999; }
.panel-bottom { display: flex; justify-content: space-between; align-items: center; }
.panel-bottom .cap { color: #55554f; font-size: clamp(7px, 0.7vw, 9px); }
.grille { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; width: 38%; }
.grille i { aspect-ratio: 1; border-radius: 50%; background: #8f8f8a; box-shadow: 0 1px 0 #d7d7d3; }

/* ---------- sections ---------- */
.sec { padding: clamp(64px, 9vw, 120px) 0; border-top: 1px solid var(--rule2); }
.sec-head { display: grid; grid-template-columns: 200px 1fr; gap: 24px; margin-bottom: 42px; }
.sec-head h2 { font-size: clamp(32px, 4.6vw, 64px); letter-spacing: -0.035em; }
.sec-head p { max-width: 560px; margin-top: 18px; }

/* spec list */
.spec { border-top: 1px solid var(--rule); }
.spec-row {
  display: grid; grid-template-columns: 200px minmax(0, 1.4fr) minmax(0, 1fr) 140px 24px; gap: 24px; align-items: baseline;
  padding: 16px 0; border-bottom: 1px solid var(--rule); transition: background 0.25s, padding 0.35s var(--ease);
}
.spec-row:hover { background: linear-gradient(90deg, rgba(255, 91, 31, 0.06), transparent 70%); padding-left: 10px; }
.spec-row .led { font-size: 22px; }
.spec-row .name { font-size: clamp(19px, 1.8vw, 26px); color: var(--w); letter-spacing: -0.015em; }
.spec-row .desc { font-size: 13px; color: var(--g); }
.spec-row .arr { color: var(--g2); transition: transform 0.3s var(--ease), color 0.2s; }
.spec-row:hover .arr { transform: translateX(4px); color: var(--o); }
.spec-group { padding: 26px 0 10px; display: flex; justify-content: space-between; }

/* readouts (2/4/8) */
.readouts { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--rule); }
.readout { padding: 28px; border-right: 1px solid var(--rule); display: grid; gap: 14px; }
.readout:last-child { border-right: 0; }
.readout .led { font-size: clamp(56px, 7vw, 96px); line-height: 0.9; }
.readout .led small { font-size: 0.28em; margin-left: 6px; }
.readout h3 { font-size: 22px; }
.meter { display: grid; grid-template-columns: repeat(16, 1fr); gap: 3px; }
.meter i { height: 10px; background: #26272a; transition: background 0.2s; }
.meter i.lit { background: var(--o); box-shadow: 0 0 6px var(--o-glow); }

/* pictogram grid */
.picto { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.picto a { display: grid; gap: 14px; align-content: start; padding: 24px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); transition: background 0.25s; min-height: 240px; }
.picto a:hover { background: var(--k2); }
.picto svg { width: 54px; height: 54px; stroke: var(--w); fill: none; stroke-width: 1; transition: stroke 0.2s, transform 0.5s var(--ease); }
.picto a:hover svg { stroke: var(--o); transform: scale(1.06); }
.picto h3 { font-size: 22px; }
.picto p { font-size: 13px; margin: 0; }

/* principles */
.principles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: 1px solid var(--rule); }
.principles div { padding: 22px 20px 0 0; }
.principles b { display: block; font-weight: 400; font-size: 17px; margin: 10px 0 6px; }
.principles p { font-size: 13px; }

/* founder strip */
.founder { display: grid; grid-template-columns: 220px 1fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.founder .photo { width: 220px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; outline: 1px solid var(--rule); outline-offset: 10px; }
.founder .photo img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; filter: grayscale(1) contrast(1.05); }
.founder blockquote { margin: 0; font-size: clamp(22px, 2.4vw, 32px); line-height: 1.25; letter-spacing: -0.02em; color: var(--w); }
.founder blockquote::before { content: "“"; color: var(--o); }
.founder blockquote::after { content: "”"; color: var(--o); }
.facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.facts li { display: grid; grid-template-columns: 36px 1fr; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--rule); font-size: 14px; color: var(--g); }
.facts li .led { font-size: 15px; }
.facts li b { color: var(--w); font-weight: 400; }

/* outlined stamp + footer */
.stamp { font-weight: 800; letter-spacing: -0.06em; line-height: 0.8; color: transparent; -webkit-text-stroke: 1px var(--w); }
.cta { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
.cta .stamp { font-size: clamp(80px, 16vw, 240px); }
.te-foot { border-top: 1px solid var(--rule2); padding: 36px 0 28px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 24px; margin-bottom: 40px; }
.foot-grid a { display: block; font-size: 13px; color: var(--g); line-height: 1.9; }
.foot-grid a:hover { color: var(--w); }
.foot-legal { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot-legal p { font-size: 10px; color: var(--g2); max-width: 760px; margin: 0; }

/* reveal */
.rv { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0ms); }
.rv.in { opacity: 1; transform: none; }
@keyframes blink { 50% { opacity: 0.25; } }
.blink { animation: blink 1.2s steps(1) infinite; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .te-fine, .te-mark { display: none; }
  .spec-row { grid-template-columns: 110px minmax(0, 1fr) 120px 20px; }
  .spec-row .desc { display: none; }
  .sec-head { grid-template-columns: 1fr; gap: 8px; }
  .principles { grid-template-columns: repeat(3, 1fr); }
  .founder { grid-template-columns: 180px 1fr; }
  .founder .photo { width: 180px; }
  .founder .facts { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .device { justify-self: center; max-width: 520px; }
  .picto { grid-template-columns: 1fr 1fr; }
  .readouts { grid-template-columns: 1fr; }
  .readout { border-right: 0; border-bottom: 1px solid var(--rule); }
  .readout:last-child { border-bottom: 0; }
}
@media (max-width: 820px) {
  .te-burger { display: block; margin-left: auto; }
  .te-nav { align-items: center; flex-wrap: wrap; }
  .te-word { margin-right: 0; }
  .te-items { display: none; width: 100%; }
  .nav-open .te-items { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 16px; padding: 18px 0 8px; border-top: 1px solid var(--rule2); margin-top: 8px; }
}
@media (min-width: 821px) { .te-items { display: contents; } }
@media (max-width: 640px) {
  .spec-row { grid-template-columns: 64px minmax(0, 1fr) 16px; gap: 14px; }
  .spec-row .tier { display: none; }
  .spec-row .led { font-size: 18px; }
  .spec-row .led .full { display: none; }
  .picto { grid-template-columns: 1fr; }
  .picto a { min-height: 0; }
  .principles { grid-template-columns: 1fr 1fr; }
  .founder { grid-template-columns: 1fr; justify-items: start; }
  .cta { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
  .hero { min-height: 0; }
  .pad { font-size: 8px; padding: 5px 6px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
}
@media (min-width: 821px) and (max-width: 1100px) {
  .te-item { grid-template-columns: 24px auto; column-gap: 7px; }
  .te-item svg { width: 24px; height: 24px; }
  .te-item b { font-size: 15px; }
}
