/* G-Tech Consulting — g-tech.dev
   Plain CSS, no build step. Colors are tokens on :root; light mode overrides them. */

@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-latin-wght.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-latin-wght.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --bg: #0a0d12;
  --bg-alt: #0e1218;
  --surface: #131921;
  --surface-2: #19202a;
  --line: #222b37;
  --line-strong: #2f3a48;
  --text: #e8edf3;
  --text-dim: #a3aebb;
  --text-faint: #7a8696;
  --accent: #ff8a3d;
  --accent-strong: #ffa463;
  --accent-ink: #1a0d03;
  --badge-bg: rgba(255, 138, 61, 0.12);
  --badge-text: #ffb27c;
  --header-bg: rgba(10, 13, 18, 0.78);
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 20px 40px -24px rgba(0, 0, 0, 0.6);

  /* Ironbow: the classic thermal-camera palette. */
  --ironbow: linear-gradient(90deg, #12082c 0%, #3b0f70 18%, #8c1f88 38%, #d8355f 58%, #ff7a2f 76%, #ffc24a 90%, #fff3b0 100%);
  --heat-text: linear-gradient(90deg, #ff6a3d 0%, #ff9b3d 45%, #ffd25e 100%);

  --font-display: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --radius: 14px;
  --radius-sm: 8px;
  --container: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-pad: clamp(72px, 10vw, 128px);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f4ef;
    --bg-alt: #efece5;
    --surface: #ffffff;
    --surface-2: #faf8f4;
    --line: #e2ddd3;
    --line-strong: #cfc8bb;
    --text: #14181e;
    --text-dim: #4a5361;
    --text-faint: #6b7380;
    --accent: #c2410c;
    --accent-strong: #a8370a;
    --accent-ink: #ffffff;
    --badge-bg: rgba(194, 65, 12, 0.09);
    --badge-text: #9a3412;
    --header-bg: rgba(246, 244, 239, 0.82);
    --shadow: 0 1px 2px rgba(20, 24, 30, 0.04), 0 18px 36px -24px rgba(20, 24, 30, 0.25);
    --heat-text: linear-gradient(90deg, #c2410c 0%, #d9480f 50%, #b45309 100%);
  }
}

/* ---------- Reset & base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

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

a { color: inherit; }

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

ul, ol { margin: 0; padding: 0; list-style: none; }

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

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

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.15s;
}
.skip-link:focus { top: 12px; }

.dot {
  display: inline-block;
  width: 4px; height: 4px;
  margin: 0 0.6em;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
  vertical-align: middle;
}

.eyebrow-loc,
.nobr { white-space: nowrap; }

.eyebrow {
  margin: 0 0 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.18s, border-color 0.18s, color 0.18s, transform 0.18s;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover { background: var(--accent-strong); }

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--text-faint); background: var(--surface); }

.btn-small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 14.5px;
}
.btn-small:not(.btn-ghost) {
  background: var(--text);
  color: var(--bg);
}
.btn-small:not(.btn-ghost):hover { background: var(--text-dim); }

.btn-icon { width: 18px; height: 18px; flex: none; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-name {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}
.brand-sub {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.15s, background-color 0.15s;
}
.site-nav a:hover { color: var(--text); background: var(--surface); }
.site-nav a.nav-cta {
  margin-left: 8px;
  border: 1px solid var(--line-strong);
  color: var(--text);
}

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 22px; height: 2px;
  margin: 0 auto;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px var(--gutter) 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -20px rgba(0, 0, 0, 0.5);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 14px; font-size: 17px; border-radius: var(--radius-sm); }
  .site-nav a.nav-cta { margin: 8px 0 0; text-align: center; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(48px, 8vw, 96px) 0 0;
  overflow: hidden;
}
.hero::before {
  /* faint warm glow behind the thermal panel */
  content: "";
  position: absolute;
  top: -10%; right: -15%;
  width: 70vw; height: 70vw;
  max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgba(255, 122, 47, 0.10), rgba(140, 31, 136, 0.06) 55%, transparent 75%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.hero h1 {
  font-size: clamp(40px, 6.2vw, 74px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin-bottom: 26px;
}

.heat-text {
  background: var(--heat-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  max-width: 560px;
  font-size: clamp(17px, 1.6vw, 19.5px);
  line-height: 1.6;
  color: var(--text-dim);
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Thermal panel — always a dark "display", even in light mode. */
.thermal {
  position: relative;
  margin: 0;
  padding: 12px;
  border-radius: 20px;
  background: #07090d;
  border: 1px solid #1d2530;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  color: #c8d1dc;
}

.thermal-canvas {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  background: #0b0716;
  cursor: crosshair;
  touch-action: pan-y;
}

.thermal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: #8793a3;
}
.thermal-bar-top { padding: 2px 4px 10px; }
.thermal-bar-bottom { padding: 12px 4px 2px; }

.rec {
  display: inline-block;
  width: 7px; height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: #ff4d3d;
  box-shadow: 0 0 8px rgba(255, 77, 61, 0.8);
  vertical-align: 1px;
  animation: blink 2s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0.25; } }

.thermal-scale {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: var(--ironbow);
}
.thermal-range {
  display: flex;
  gap: 10px;
  white-space: nowrap;
}
.thermal-range span:first-child::after { content: " –"; }

.thermal-hint {
  position: absolute;
  right: 26px;
  bottom: 50px;
  padding: 4px 9px;
  border-radius: 6px;
  background: rgba(7, 9, 13, 0.72);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #9aa6b4;
  pointer-events: none;
  transition: opacity 0.4s;
}
.thermal.is-touched .thermal-hint { opacity: 0; }

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: clamp(56px, 8vw, 96px) 0 0;
  border-top: 1px solid var(--line);
}
.stat {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 6px;
  padding: 28px 24px 34px 0;
}
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(36px, 4.4vw, 52px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat dt {
  max-width: 220px;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--text-faint);
}

/* ---------- Sections ---------- */

.section { padding: var(--section-pad) 0; }
.section-alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(40px, 6vw, 64px);
}
.section-head h2,
.about-copy h2,
.contact-panel h2 {
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -0.03em;
}
.section-lede {
  margin-top: 20px;
  font-size: 18px;
  color: var(--text-dim);
  max-width: 640px;
}

.subhead {
  margin: clamp(64px, 8vw, 96px) 0 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.subhead-tight { margin-top: 40px; margin-bottom: 16px; }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tags li {
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  background: var(--surface-2);
}

/* ---------- Services ---------- */

.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.service {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.service::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--ironbow);
  opacity: 0;
  transition: opacity 0.25s;
}
.service:hover { border-color: var(--line-strong); }
.service:hover::before { opacity: 1; }

.service-icon {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  margin-bottom: 22px;
  border-radius: 12px;
  background: var(--badge-bg);
  color: var(--accent);
}
.service-icon svg {
  width: 24px; height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service h3 { font-size: 21px; margin-bottom: 12px; }
.service p { color: var(--text-dim); font-size: 16px; margin-bottom: 22px; }
.service .tags { margin-top: auto; }

/* ---------- Feature (ClawArcade) ---------- */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.feature-meta {
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--accent);
}
.feature h3 {
  font-size: clamp(32px, 4vw, 44px);
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}
.feature-copy > p:not(.feature-meta) { color: var(--text-dim); font-size: 17px; }

.feature-list {
  margin: 24px 0 26px;
  display: grid;
  gap: 12px;
}
.feature-list li {
  position: relative;
  padding-left: 26px;
  font-size: 15.5px;
  color: var(--text-dim);
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 2px; top: 0.62em;
  width: 10px; height: 10px;
  border-radius: 3px;
  background: var(--ironbow);
  background-size: 400% 100%;
  background-position: 80% 0;
}
.feature-list li:nth-child(2)::before { background-position: 60% 0; }
.feature-list li:nth-child(3)::before { background-position: 40% 0; }
.feature-list li:nth-child(4)::before { background-position: 20% 0; }

.feature-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

/* Mock chat — always dark, like the stream overlay it imitates. */
.chat {
  border-radius: var(--radius);
  background: #0c0e13;
  border: 1px solid #1f2632;
  color: #d5dce5;
  font-family: var(--font-mono);
  font-size: 13px;
  overflow: hidden;
}
.chat-head {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #1f2632;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #8793a3;
}
.chat-live { text-transform: uppercase; }

.chat-log {
  display: grid;
  gap: 9px;
  padding: 16px;
  line-height: 1.5;
}
.chat-log li { overflow-wrap: anywhere; }
.chat-log b { font-weight: 600; margin-right: 8px; }
.chat-log .u1 { color: #a78bfa; }
.chat-log .u2 { color: #5eead4; }
.chat-log .bot b { color: #ff9b5c; }
.chat-log .bot { color: #e8edf3; }
.chat-log .sys {
  padding-left: 12px;
  border-left: 2px solid #2b3442;
  color: #7f8b9b;
}
.chat-log .sys span {
  display: inline-block;
  min-width: 42px;
  margin-right: 6px;
  color: #ffc24a;
}
.chat-log .win {
  margin-top: 4px;
  padding: 8px 10px;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(255, 122, 47, 0.16), rgba(140, 31, 136, 0.12));
}
.chat-note {
  padding: 10px 16px 14px;
  border-top: 1px solid #1f2632;
  font-size: 11px;
  color: #6b7787;
}

/* Chat playback — JS hides lines while below the fold, then plays them in on view. */
.chat.is-pending .chat-log li { opacity: 0; }
.chat.is-playing .chat-log li {
  opacity: 0;
  transform: translateY(4px);
  animation: chat-in 0.35s ease-out forwards;
}
@keyframes chat-in { to { opacity: 1; transform: none; } }

/* ---------- Project cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.cards-wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-2px); }

.card-kind {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--text-faint);
}
.badge {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--badge-bg);
  color: var(--badge-text);
  font-size: 11px;
}
.card-years { color: var(--text-faint); }

.card h4 { font-size: 20px; margin-bottom: 10px; }
.card h4 a { text-decoration: none; }
/* Whole card is clickable via the heading link. */
.card h4 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card h4 a:hover { color: var(--accent); }
.card h4 a:focus-visible { outline: none; }
.card:has(h4 a:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }

.card p { font-size: 15px; color: var(--text-dim); }
.card .card-tech {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
}

/* ---------- Open source ---------- */

.contribs {
  border-top: 1px solid var(--line);
}
.contribs a {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr) auto;
  gap: 24px;
  align-items: baseline;
  padding: 20px 4px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: background-color 0.15s, padding 0.2s;
}
.contribs a:hover {
  background: var(--surface);
  padding-left: 14px;
  padding-right: 14px;
}
.contrib-repo {
  font-family: var(--font-mono);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text);
  overflow-wrap: anywhere;
}
.contribs a:hover .contrib-repo { color: var(--accent); }
.contrib-desc { color: var(--text-dim); font-size: 16px; }
.contrib-year {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-faint);
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 96px);
  align-items: start;
}
.about-copy h2 { margin-bottom: 26px; }
.about-copy > p:not([class]) { color: var(--text-dim); font-size: 17.5px; }

.certs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.certs li {
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 14px;
  color: var(--text-dim);
}

.certs li.cert-active {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-color: var(--accent);
  color: var(--text);
}
.cert-active span {
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--badge-bg);
  color: var(--badge-text);
  font-family: var(--font-mono);
  font-size: 11.5px;
}
.certs-label {
  margin: 20px 0 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.certs-past li {
  background: transparent;
  color: var(--text-faint);
}

.timeline {
  position: relative;
  margin-top: 8px;
  padding-left: 28px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 5px; top: 8px; bottom: 8px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, #fff3b0, #ffc24a 15%, #ff7a2f 35%, #d8355f 55%, #8c1f88 78%, #3b0f70);
}
.timeline li {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-bottom: 30px;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -28px; top: 5px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 2px solid var(--text-faint);
}
.timeline li:first-child::before { border-color: var(--accent); background: var(--accent); }
.tl-when {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--accent);
}
.tl-what {
  margin-top: 2px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.tl-detail { font-size: 15px; color: var(--text-faint); }

/* ---------- Contact ---------- */

.contact-panel {
  position: relative;
  padding: clamp(36px, 6vw, 72px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.contact-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--ironbow);
}
.contact-panel h2 { max-width: 820px; }
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 36px 0 44px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--text-faint);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}
.footer-inner p { margin: 0; }
.site-footer a { color: var(--text-dim); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }

/* ---------- 404 ---------- */

.error-page {
  min-height: calc(100vh - 68px - 120px);
  display: grid;
  place-items: center;
  padding-block: 80px;
  text-align: center;
}
.error-code {
  font-family: var(--font-display);
  font-size: clamp(96px, 20vw, 200px);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.9;
  margin: 0;
  background: var(--ironbow);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.error-page h1 { font-size: clamp(26px, 4vw, 36px); margin: 18px 0 12px; }
.error-page p:not(.error-code) { color: var(--text-dim); margin-bottom: 28px; }

/* ---------- Scroll reveal (applied only by JS, only below the fold) ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .thermal { max-width: 620px; }
  .feature { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .services { grid-template-columns: 1fr; }
  .service { padding: 26px 22px; }
  .contribs a {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 16px;
  }
  .contrib-desc { grid-column: 1 / -1; grid-row: 2; font-size: 15px; }
  .thermal-hint { display: none; }
}

@media (max-width: 460px) {
  .hero .eyebrow .dot { display: none; }
  .eyebrow-loc { display: block; margin-top: 6px; }
  .stat { padding-right: 12px; }
  .stat + .stat { padding-left: 16px; }
  .stat:nth-child(3) { padding-left: 0; }
  .stat dt { font-size: 13px; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .contact-links .btn { width: 100%; justify-content: center; }
  .feature { padding: 22px 18px; }
}

@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 { opacity: 1; transform: none; }
}
