/* ==========================================================================
   Shahnawaz Akhtar — signal / terminal aesthetic
   ========================================================================== */

:root {
  --bg: #030403;
  --bg-2: #0a0e0b;
  --fg: #d9e4d6;
  --fg-dim: #8b978a;
  --fg-faint: #4b564b;
  --green: #9dff7a;
  --green-2: #7be05e;
  --green-dim: #3d6b33;
  --line: rgba(157, 255, 122, 0.14);
  --line-2: rgba(217, 228, 214, 0.08);
  --glow: 0 0 6px rgba(157, 255, 122, 0.5);
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --serif: "Instrument Serif", Georgia, serif;
  --pad: clamp(20px, 5vw, 80px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--mono);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-booting { overflow: hidden; }

::selection { background: var(--green); color: #031003; }

a { color: var(--green); text-decoration: none; }
em { font-style: normal; }
strong { font-weight: 500; color: var(--fg); }

/* ------------------------------------------------------------------ layers */
#gl {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  z-index: 0;
  pointer-events: none;
  mix-blend-mode: screen;
}

.grain {
  position: fixed;
  inset: -50%;
  z-index: 50;
  pointer-events: none;
  opacity: 0.032;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -1%); }
  80% { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

.scanlines {
  position: fixed;
  inset: 0;
  z-index: 49;
  pointer-events: none;
}
.scanlines::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.7) 100%);
}

main { position: relative; z-index: 2; }

/* ------------------------------------------------------------------ DNA letters */
.dna { position: fixed; inset: 0; z-index: 1; pointer-events: none; }
.dna span {
  position: absolute;
  left: 0; top: 0;
  font-size: 11px;
  color: var(--green);
  opacity: 0;
  text-shadow: 0 0 8px rgba(157,255,122,.16);
  will-change: transform, opacity;
}

/* ------------------------------------------------------------------ boot */
#boot {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--pad);
  font-size: 12px;
  color: var(--fg-dim);
}
.boot__log { margin: 0 0 18px; font: inherit; white-space: pre-wrap; line-height: 1.7; }
.boot__log .ok { color: var(--green); }
.boot__bar { height: 1px; background: var(--line-2); position: relative; overflow: hidden; max-width: 420px; }
.boot__bar span { position: absolute; inset: 0; background: var(--green); transform-origin: left; transform: scaleX(0); box-shadow: var(--glow); }

/* ------------------------------------------------------------------ cursor */
#cursor {
  position: fixed;
  left: 0; top: 0;
  z-index: 200;
  pointer-events: none;
  display: none;
  opacity: 0;
  transition: opacity .3s;
}
#cursor.is-on { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  #cursor { display: block; }
  body, a, input, button { cursor: none; }
}
.cursor__block {
  position: absolute;
  width: 9px; height: 17px;
  margin: -8px 0 0 -4px;
  background: var(--green);
  box-shadow: var(--glow);
  animation: blink 1.05s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ------------------------------------------------------------------ topbar */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px var(--pad);
  font-size: 12px;
  letter-spacing: .04em;
  transition: transform .6s var(--ease), background .4s;
}
.topbar.is-hidden { transform: translateY(-110%); }
.topbar.is-scrolled { background: linear-gradient(to bottom, rgba(5,7,6,.85), rgba(5,7,6,0)); }
.topbar__logo { color: var(--fg); font-weight: 500; font-size: 14px; }
.topbar__logo span { color: var(--green); }
.topbar__nav { display: flex; gap: 22px; }
.topbar__nav a { color: var(--fg-dim); transition: color .3s; }
.topbar__nav a:hover, .topbar__nav a.is-active { color: var(--green); }
.topbar__clock { color: var(--fg-dim); display: flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: var(--glow); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .3; } }

.progress { position: fixed; left: 0; right: 0; top: 0; height: 1px; z-index: 61; }
.progress span { display: block; height: 100%; background: var(--green); transform-origin: left; transform: scaleX(0); box-shadow: var(--glow); }

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  padding: 0 var(--pad);
}
.hero__inner {
  position: absolute;
  left: var(--pad);
  top: 22.5vh;
  max-width: 760px;
}
.hero__prompt { margin: 0 0 18px; font-size: clamp(14px, 1.15vw, 18px); color: var(--fg); letter-spacing: .02em; }
.hero__title {
  margin: 0 0 30px;
  font-weight: 400;
  font-size: clamp(30px, 2.6vw, 44px);
  line-height: 1.15;
  color: var(--green);
  text-shadow: 0 0 8px rgba(157,255,122,.16);
  white-space: nowrap;
  letter-spacing: -.005em;
}
.hero__gt { margin-right: .45em; }
.hero__caret { animation: blink 1.05s steps(1) infinite; }
.hero__sub { margin: 0 0 32px; font-size: clamp(14px, 1.15vw, 18px); line-height: 1.5; color: var(--fg); }
.hero__explore { margin: 0; font-size: clamp(14px, 1.15vw, 18px); display: flex; flex-wrap: wrap; gap: 6px 28px; }
.muted-strong { color: var(--fg); }
.hero__explore a { color: var(--green); position: relative; }
.hero__explore a::after, .topbar__nav a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -3px; height: 1px;
  background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease);
}
.topbar__nav a { position: relative; }
.hero__explore a:hover::after, .topbar__nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.hero__meta {
  position: absolute;
  bottom: 52px;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--fg);
}
.hero__meta--left { left: var(--pad); }
.hero__meta--right { right: var(--pad); }
.hero__scroll {
  position: absolute;
  left: 50%; bottom: 44px;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--fg-faint);
}
.hero__scroll i { width: 1px; height: 38px; background: linear-gradient(var(--green), transparent); animation: drip 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* ------------------------------------------------------------------ section scaffolding */
.section { position: relative; padding: clamp(110px, 16vh, 200px) var(--pad); }
.section__head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: clamp(40px, 7vh, 80px);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--fg-dim);
  border-top: 1px solid var(--line-2);
  padding-top: 16px;
}
.section__head--pad { padding-left: var(--pad); padding-right: var(--pad); border-top: 0; margin-bottom: 0; }
.section__idx { color: var(--green); }
.section__cmd { color: var(--fg-dim); }
.section__title {
  margin: 0 0 clamp(50px, 8vh, 90px);
  font-family: var(--mono);
  font-weight: 300;
  font-size: clamp(30px, 3.7vw, 58px);
  line-height: 1.08;
  letter-spacing: -.035em;
  color: var(--fg);
}
.section__title em, .about__statement em, .contact__title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--green);
  letter-spacing: -.01em;
  text-shadow: 0 0 8px rgba(157,255,122,.16);
}
.section__title--sm { font-size: clamp(22px, 2.2vw, 34px); line-height: 1.12; margin-bottom: 40px; }

/* ------------------------------------------------------------------ about */
.about__statement {
  margin: 0 0 clamp(60px, 10vh, 120px);
  font-size: clamp(24px, 2.9vw, 46px);
  line-height: 1.18;
  letter-spacing: -.03em;
  font-weight: 300;
  max-width: 24em;
}
.about__statement .w { display: inline-block; opacity: .12; transition: none; }
.about__statement em .w { font-size: 1.12em; }

/* ------------------------------------------------------------------ research cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); }
.card {
  position: relative;
  background: rgba(5,7,6,.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  min-height: 460px;
  display: flex; flex-direction: column;
  transition: background .5s;
  transform-style: preserve-3d;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(157,255,122,.045), transparent 40%);
  opacity: 0; transition: opacity .4s;
  pointer-events: none;
}
.card:hover::before { opacity: 1; }
.card:hover { background: rgba(10,16,11,.9); }
.card__viz { height: 220px; border-bottom: 1px solid var(--line-2); position: relative; }
.card__viz canvas { width: 100%; height: 100%; display: block; }
.card__body { padding: 26px 24px 30px; }
.card__path { margin: 0 0 14px; font-size: 12px; color: var(--green); }
.card h3 { margin: 0 0 14px; font-weight: 400; font-size: 21px; line-height: 1.2; letter-spacing: -.02em; }
.card p:not(.card__path) { margin: 0; font-size: 13.5px; color: var(--fg-dim); line-height: 1.65; }
.card__corner { position: absolute; top: 14px; right: 16px; font-size: 11px; color: var(--fg-faint); }

.now {
  margin-top: 36px;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  font-size: 13px; color: var(--fg);
  background: rgba(5,7,6,.7);
}
.now__label { color: var(--fg-faint); }
.now__pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: var(--glow); }
.now__pulse::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--green); animation: ring 2s var(--ease) infinite; }
@keyframes ring { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }

/* ------------------------------------------------------------------ trajectory */
.trajectory { position: relative; }
.trajectory__pin {
  height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  gap: 3.2vh;
  overflow: hidden;
  padding-top: 64px;
}
.trajectory__rows { display: flex; flex-direction: column; gap: 3.5vh; }
.trow__label {
  display: flex; align-items: baseline; gap: 12px;
  padding: 0 var(--pad);
  font-size: 12px; letter-spacing: .06em; color: var(--fg-faint);
}
.trow__label b { color: var(--green); font-weight: 400; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.trow__label i { font-style: normal; margin-left: auto; }
.trow__branch { color: var(--fg-faint); }
.trow__viewport { position: relative; width: 100%; }
.trajectory__track {
  position: relative;
  display: flex;
  padding: 30px var(--pad) 0;
  width: max-content;
  will-change: transform;
}
.trajectory__signal { position: absolute; left: 0; top: 0; height: 60px; overflow: visible; }
.trajectory__signal path { fill: none; vector-effect: non-scaling-stroke; }
.sig-bg { stroke: rgba(157,255,122,.16); stroke-width: 1; stroke-dasharray: 2 5; }
.sig-fg { stroke: var(--green); stroke-width: 1.4; filter: drop-shadow(0 0 2px rgba(157,255,122,.8)); }

.tl {
  position: relative;
  width: clamp(250px, 22vw, 340px);
  padding: 26px 36px 0 0;
  flex: none;
  opacity: .3;
  transition: opacity .6s var(--ease);
}
.tl.is-lit { opacity: 1; }
.tl__node {
  position: absolute; top: -6px; left: 0;
  width: 11px; height: 11px;
  border: 1px solid var(--green);
  background: var(--bg);
  transform: rotate(45deg);
  transition: background .4s, box-shadow .4s, transform .5s var(--ease);
}
.tl.is-lit .tl__node { background: var(--green); box-shadow: var(--glow); transform: rotate(225deg); }
.tl__year { margin: 0 0 4px; font-size: clamp(22px, 2vw, 32px); line-height: 1; letter-spacing: -.04em; color: var(--fg); font-weight: 300; }
.tl--major .tl__year, .tl--now .tl__year { color: var(--green); text-shadow: 0 0 8px rgba(157,255,122,.16); }
.tl__hash { margin: 0 0 12px; font-size: 10.5px; color: var(--fg-faint); letter-spacing: .04em; }
.tl h3 { margin: 0 0 4px; font-size: 16px; font-weight: 400; letter-spacing: -.01em; }
.tl__role { margin: 0 0 8px; font-size: 12px; color: var(--green-2); }
.tl__desc { margin: 0; font-size: 12.5px; color: var(--fg-dim); max-width: 28em; line-height: 1.6; }
.tl__cursor { color: var(--green); animation: blink 1.05s steps(1) infinite; margin-left: 2px; }

.trajectory__hint {
  display: flex; justify-content: space-between;
  padding: 0 var(--pad);
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-faint);
}

/* ------------------------------------------------------------------ toolkit */
.toolkit__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(40px, 6vw, 110px); align-items: center; }
.code {
  margin: 0;
  padding: clamp(22px, 3vw, 40px);
  border: 1px solid var(--line-2);
  background: rgba(8,12,9,.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font: 300 clamp(12px, 1vw, 14.5px)/1.85 var(--mono);
  color: var(--fg-dim);
  overflow-x: auto;
  position: relative;
}
.code::before { content: "stack.json"; position: absolute; top: -1px; right: -1px; padding: 4px 10px; font-size: 10px; letter-spacing: .1em; background: var(--green); color: #031003; }
.code .k { color: var(--fg); }
.code .s { color: var(--green); }
.code .b { color: #f2d36b; }
.code .p { color: var(--fg-faint); }

.marquee {
  margin: clamp(80px, 12vh, 140px) calc(var(--pad) * -1) 0;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  overflow: hidden;
  padding: 26px 0;
  background: rgba(5,7,6,.6);
}
.marquee__track { display: flex; gap: 40px; width: max-content; white-space: nowrap; font-size: clamp(22px, 2.6vw, 40px); letter-spacing: -.03em; font-weight: 300; }
.marquee__track span { color: var(--fg); }
.marquee__track span:nth-of-type(even) { font-family: var(--serif); font-style: italic; color: var(--green); letter-spacing: -.01em; }
.marquee__track b { color: var(--green-dim); font-weight: 300; font-size: .4em; align-self: center; }

/* misc */
.blink { animation: blink 1.05s steps(1) infinite; }

/* ------------------------------------------------------------------ contact */
.contact { min-height: 100vh; padding-bottom: 80px; }
.contact__title {
  margin: 0 0 26px;
  font-weight: 300;
  font-size: clamp(34px, 4.6vw, 74px);
  line-height: 1.04;
  letter-spacing: -.045em;
}
.contact__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.contact__title .line > span { display: inline-block; }
.contact__sub { max-width: 34em; color: var(--fg-dim); font-size: clamp(14px, 1.1vw, 17px); margin: 0 0 40px; }
.contact__cta {
  position: relative;
  display: inline-flex; align-items: center; gap: 14px;
  padding: 16px 26px;
  border: 1px solid var(--green);
  color: var(--green);
  font-size: clamp(15px, 1.3vw, 19px);
  background: rgba(157,255,122,.04);
  box-shadow: 0 0 0 0 rgba(157,255,122,.0), inset 0 0 20px rgba(157,255,122,.06);
  overflow: hidden;
  margin-bottom: 80px;
  transition: color .4s var(--ease), box-shadow .5s var(--ease);
}
.contact__cta::before {
  content: ""; position: absolute; inset: 0;
  background: var(--green);
  transform: translateX(-101%);
  transition: transform .6s var(--ease);
  z-index: -1;
}
.contact__cta { isolation: isolate; }
.contact__cta:hover { color: #031003; box-shadow: 0 0 12px rgba(157,255,122,.25); }
.contact__cta:hover::before { transform: translateX(0); }
.contact__cta-ps { opacity: .6; }
.contact__cta-arrow { transition: transform .5s var(--ease); }
.contact__cta:hover .contact__cta-arrow { transform: translate(3px, -3px); }

.term {
  max-width: 820px;
  border: 1px solid var(--line);
  background: rgba(6,9,7,.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.9);
  font-size: 13.5px;
}
.term__bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; border-bottom: 1px solid var(--line-2); color: var(--fg-faint); font-size: 11px; }
.term__bar i { width: 9px; height: 9px; border-radius: 50%; background: #1d261e; border: 1px solid #2c3a2d; }
.term__bar span { margin-left: auto; margin-right: auto; padding-right: 40px; }
.term__body { padding: 18px 18px 4px; max-height: 300px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--green-dim) transparent; }
.term__body p { margin: 0 0 6px; white-space: pre-wrap; word-break: break-word; }
.term__out { color: var(--fg-dim); }
.term__out b { color: var(--green); font-weight: 400; }
.term__out a { border-bottom: 1px dashed var(--green-dim); }
.term__cmd { color: var(--fg); }
.term__cmd span { color: var(--green); }
.term__err { color: #ff8a7a; }
.term__line { display: flex; gap: 10px; align-items: center; padding: 6px 18px 18px; }
.term__ps { color: var(--green); white-space: nowrap; }
.term__line input {
  flex: 1; min-width: 0;
  background: transparent; border: 0; outline: 0;
  color: var(--fg);
  font: inherit;
  caret-color: var(--green);
}

/* ------------------------------------------------------------------ footer */
.footer {
  position: relative;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 26px var(--pad) 34px;
  border-top: 1px solid var(--line-2);
  font-size: 11.5px; color: var(--fg-faint);
  background: rgba(5,7,6,.7);
}
.footer a { color: var(--fg-dim); }
.footer a:hover { color: var(--green); }

/* ------------------------------------------------------------------ initial states (JS animates in) */
.js .reveal-up { opacity: 0; transform: translateY(18px); }
.js .reveal-fade { opacity: 0; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .card { min-height: 0; }
}
@media (max-width: 900px) {
  .topbar__nav { display: none; }
  .toolkit__grid { grid-template-columns: 1fr; }
  .trajectory__pin { height: auto; padding-top: 0; overflow: visible; }
  .section__head--pad { padding-top: 16px; border-top: 1px solid var(--line-2); margin: 0 var(--pad) 40px; padding-left: 0; padding-right: 0; }
  .trajectory__rows { gap: 30px; }
  .trajectory__track { flex-direction: column; width: auto; padding: 24px var(--pad) 0 calc(var(--pad) + 26px); }
  .trajectory__signal { display: none; }
  .trajectory__track::before { content: ""; position: absolute; left: calc(var(--pad) + 5px); top: 24px; bottom: 0; width: 1px; background: linear-gradient(var(--green), rgba(157,255,122,.1)); }
  .tl { width: auto; padding: 0 0 40px; opacity: 1; }
  .tl__node { left: -26px; top: 6px; }
  .trajectory__hint { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 14px; }
  .topbar { padding: 16px var(--pad); }
  .hero__inner { top: 17vh; right: var(--pad); }
  .hero__title { white-space: normal; font-size: 27px; }
  .hero__meta { bottom: 28px; font-size: 10px; }
  .hero__scroll { display: none; }
  .cards { grid-template-columns: 1fr; }
  .card__viz { height: 180px; }
  .term__bar span { padding-right: 0; }
  .term__ps { display: none; }
  .term__line::before { content: "$"; color: var(--green); }
}

@media (prefers-reduced-motion: reduce) {
  .grain, .hero__scroll i, .marquee__track { animation: none !important; }
}

/* ------------------------------------------------------------------ about triad */
.triad {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}
.triad__item {
  position: relative;
  padding: 34px 28px 38px;
  transition: background .5s var(--ease);
}
.triad__item::after {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px;
  background: var(--green); box-shadow: var(--glow);
  transform: scaleX(0); transform-origin: left;
  transition: transform .8s var(--ease);
}
.triad__item:hover { background: rgba(157,255,122,.035); }
.triad__item:hover::after { transform: scaleX(1); }
.triad__idx { margin: 0 0 18px; font-size: 11px; color: var(--fg-faint); letter-spacing: .1em; }
.triad__item h3 { margin: 0 0 14px; font-weight: 400; font-size: clamp(20px, 1.8vw, 28px); letter-spacing: -.03em; color: var(--green); text-shadow: 0 0 8px rgba(157,255,122,.16); }
.triad__item p:last-child { margin: 0; font-size: 13.5px; line-height: 1.7; color: var(--fg-dim); }
.triad__op {
  align-self: center;
  font-size: 26px; color: var(--green-dim);
  padding: 0 6px;
  display: inline-block;
  transition: transform 1s var(--ease), color .4s;
}
.triad:hover .triad__op { transform: rotate(90deg); color: var(--green); }
.about__eq { margin: 34px 0 0; font-size: clamp(15px, 1.3vw, 19px); color: var(--fg); }
.about__eq-sign { color: var(--green); margin-right: 8px; }
.toolkit__note { color: var(--fg-dim); max-width: 30em; margin: -10px 0 0; }
.hint-key { font-weight: 400; color: var(--green); }

@media (max-width: 900px) {
  .triad { grid-template-columns: 1fr; }
  .triad__op { display: none; }
  .triad__item { padding: 22px 0 26px; border-bottom: 1px solid var(--line-2); }
  .triad__item:last-child { border-bottom: 0; }
}

/* ------------------------------------------------------------------ licenses */
.licenses { list-style: none; margin: 34px 0 0; padding: 0; border-top: 1px solid var(--line-2); }
.licenses li {
  display: grid; grid-template-columns: 90px 1fr auto; align-items: center; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--line-2);
  font-size: 14px; color: var(--fg);
}
.licenses__k { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-faint); }
.licenses i { font-style: normal; color: var(--green); }

.hero__passion { color: var(--fg-dim); }

/* ------------------------------------------------------------------ phones (desktop unaffected) */
@media (max-width: 640px) {
  .hero__title { min-height: 2.3em; }                     /* typed phrases wrap to 1–2 lines: keep the layout still */
  .code { font-size: 10.5px; line-height: 1.75; padding: 22px 16px; white-space: pre-wrap; word-break: break-word; }
  .term__line input { font-size: 16px; }                  /* below 16px iOS zooms the page on focus */
  .hero__meta { font-size: 9.5px; letter-spacing: .05em; }
}
@media (max-width: 400px) {
  .hero__meta--right { display: none; }
}
