/* ============================================================
   SouL Codesmith — portfolio
   Mac-like liquid glass over a classy minimal skeleton:
   muted color blooms behind, frosted panels with specular
   edges everywhere, floating pill nav, Inter type system
   with optical sizing + Instrument Serif italic accents.
   ============================================================ */

:root {
  --bg: #0a0a0c;
  --line: rgba(255, 255, 255, 0.10);
  --line-soft: rgba(255, 255, 255, 0.06);

  --text: #f2f2ef;
  --text-dim: #b4b4ae;
  --text-faint: #8b8b84;

  --gold: #d2a75c;
  --gold-soft: rgba(210, 167, 92, 0.14);

  --glass-bg: linear-gradient(150deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.025));
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-blur: 22px;
  --glass-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04),
    0 18px 44px -14px rgba(0, 0, 0, 0.55);

  --font-display: "Manrope", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  --font-serif: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; /* legacy alias */
  --font-mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, monospace;

  --maxw: 1080px;
  --mx: 50%;
  --my: 50%;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

section { scroll-margin-top: 110px; }

::selection { background: rgba(210, 167, 92, 0.3); color: #fff; }

a { color: inherit; }
code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: var(--gold);
  letter-spacing: 0;
}

:focus-visible {
  outline: 1.5px solid var(--gold);
  outline-offset: 3px;
  border-radius: 8px;
}

/* ----------------------------------------------------------
   Ambient background — muted blooms, grid, grain
   The glass panels refract whatever sits behind them,
   so the page needs quiet color drifting underneath.
   ---------------------------------------------------------- */

.bg { position: fixed; inset: 0; z-index: -1; background: var(--bg); overflow: hidden; }

.glow {
  position: absolute;
  left: -18vw; top: -22vh;
  width: 60vw; height: 60vw;
  background: radial-gradient(circle, rgba(236, 236, 233, 0.05), transparent 65%);
}

.grid-lines {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: max(calc(100vw / 6), 160px) 100%;
  opacity: 0.45;
  mask-image: linear-gradient(rgba(0,0,0,.9), rgba(0,0,0,.3) 30%, rgba(0,0,0,.3) 70%, rgba(0,0,0,.9));
  -webkit-mask-image: linear-gradient(rgba(0,0,0,.9), rgba(0,0,0,.3) 30%, rgba(0,0,0,.3) 70%, rgba(0,0,0,.9));
}

#bg-net {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.grain {
  position: absolute;
  inset: -50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.035;
}

/* ----------------------------------------------------------
   Liquid glass material
   Frosted fill + blur + saturation, bright top specular,
   soft inner bottom light, deep drop shadow. The ::before
   highlight tracks the cursor; ::after is the edge sheen.
   ---------------------------------------------------------- */

.glass {
  position: relative;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(170%);
  backdrop-filter: blur(var(--glass-blur)) saturate(170%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 22px;
  overflow: hidden;
}

.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx) var(--my),
              rgba(255, 255, 255, 0.07), transparent 45%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 1;
}
.glass:hover::before { opacity: 1; }

.glass::after {
  content: "";
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  opacity: 0.5;
  pointer-events: none;
  z-index: 1;
  transform: scaleX(0.25);
  transform-origin: 0 50%;
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.glass:hover::after { transform: scaleX(1); }

/* ----------------------------------------------------------
   Nav — floating glass pill
   ---------------------------------------------------------- */

.nav-wrap {
  position: fixed;
  top: 14px;
  left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  pointer-events: none;
}

.nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 9px 12px 9px 16px;
  border-radius: 999px;
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--text);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 10.5px;
  font-weight: 500;
  border-radius: 8px;
}

.nav-links { display: flex; gap: 4px; }

.nav-links a {
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: 7px 12px;
  border-radius: 999px;
  transition: color 0.25s, background 0.25s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.nav-social { display: flex; gap: 8px; }

.nav-social a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--text-dim);
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.nav-social a:hover {
  color: var(--gold);
  border-color: rgba(210, 167, 92, 0.55);
  background: var(--gold-soft);
}

/* ----------------------------------------------------------
   Shared type
   ---------------------------------------------------------- */

.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 110px 28px 30px;
}

.section-no {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--text);
}

.section-title em {
  font-style: normal;
  font-weight: 650;
  color: var(--gold);
}

.section-sub {
  margin-top: 16px;
  max-width: 520px;
  color: var(--text-dim);
  font-size: 15.5px;
  font-weight: 400;
}

.section-head { margin-bottom: 44px; }

.link-arrow {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
  transition: color 0.25s, border-color 0.25s;
}
.link-arrow:hover { color: var(--gold); border-color: var(--gold); }
.link-arrow.gold { color: var(--gold); border-color: rgba(210, 167, 92, 0.4); }
.link-arrow.gold:hover { color: #ecd9b0; border-color: var(--gold); }
.link-arrow.big { font-size: clamp(16px, 2.4vw, 22px); }

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

.hero {
  min-height: 100vh;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 150px 28px 60px;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 64px;
  align-items: center;
  width: 100%;
}

.hero-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 30px;
}

.hero-title {
  font-weight: 800;
  line-height: 1.0;
  margin-bottom: 30px;
}

.hero-title .line-grotesk {
  display: block;
  font-size: clamp(46px, 7.4vw, 92px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.04em;
}

.hero-title .line-serif {
  display: block;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.035em;
  font-size: clamp(40px, 6.2vw, 78px);
  margin-top: 4px;
  color: transparent;
  -webkit-text-stroke: 1.4px rgba(210, 167, 92, 0.9);
}

@supports not (-webkit-text-stroke: 1px black) {
  .hero-title .line-serif { color: var(--gold); }
}

.hero-tagline {
  max-width: 480px;
  color: var(--text-dim);
  font-size: 16.5px;
  margin-bottom: 30px;
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 18px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 38px;
}
.hero-status > * { position: relative; z-index: 2; }
.hero-status a { position: relative; z-index: 2; }
.hero-status a { color: var(--gold); text-decoration: none; border-bottom: 1px solid rgba(210, 167, 92, 0.4); }
.hero-status a:hover { color: #ecd9b0; }

.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  flex: none;
  box-shadow: 0 0 0 0 rgba(210, 167, 92, 0.5);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(210, 167, 92, 0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(210, 167, 92, 0); }
  100% { box-shadow: 0 0 0 0 rgba(210, 167, 92, 0); }
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

.btn-glass {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.05em;
  text-decoration: none;
  color: var(--text);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  backdrop-filter: blur(18px) saturate(170%);
  transition:
    translate 0.45s cubic-bezier(0.34, 1.3, 0.5, 1),
    border-color 0.3s,
    color 0.3s;
}
.btn-glass:hover {
  translate: 0 -3px;
  border-color: rgba(210, 167, 92, 0.55);
  color: var(--gold);
}

/* gradient descent demo */
.hero-demo { padding: 12px 12px 10px; }

#gd-canvas {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 4.2;
  border-radius: 14px;
  background: rgba(8, 8, 11, 0.55);
  cursor: crosshair;
}

.demo-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 6px 2px;
}

.demo-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text);
}
.demo-meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-faint);
}

/* ----------------------------------------------------------
   Work
   ---------------------------------------------------------- */

.work {
  padding: clamp(30px, 5vw, 56px);
  transition: border-color 0.4s, box-shadow 0.4s;
}
.work:hover {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04),
    0 24px 56px -16px rgba(0, 0, 0, 0.65);
}
.work > * { position: relative; z-index: 2; }

.work-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 26px;
}

.work-title {
  font-weight: 800;
  font-size: clamp(38px, 5.6vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-bottom: 22px;
}

.work-desc {
  max-width: 640px;
  color: var(--text-dim);
  font-size: 16px;
  margin-bottom: 20px;
}
.work-desc a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: color 0.25s, border-color 0.25s;
}
.work-desc a:hover { color: var(--gold); border-color: var(--gold); }

.work-note {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-faint);
  margin-bottom: 30px;
}
.work-note code { font-size: 13px; }

/* ----------------------------------------------------------
   Knowledge / learning — glass rows
   ---------------------------------------------------------- */

.know-list {
  list-style: none;
  display: grid;
  gap: 12px;
}

.know-row {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
  gap: 24px;
  align-items: baseline;
  padding: 24px 28px;
  border-radius: 18px;
  transition: border-color 0.3s, background 0.3s;
}
.know-row > * { position: relative; z-index: 2; }
.know-row:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035));
}

.know-name {
  font-size: clamp(18px, 2.3vw, 23px);
  font-weight: 550;
  letter-spacing: -0.02em;
}

.know-desc {
  color: var(--text-dim);
  font-size: 15.5px;
  line-height: 1.65;
}

.learning-note {
  margin-top: 28px;
  padding: 20px 24px;
  border-radius: 16px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.9;
  letter-spacing: 0.02em;
  color: var(--text-faint);
  max-width: 640px;
}

/* ----------------------------------------------------------
   Tools — grouped glass chips
   ---------------------------------------------------------- */

.tools-groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.tool-group-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 18px;
}

.tool-chips { display: flex; flex-wrap: wrap; gap: 10px; }

.tool-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px 8px 11px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--text-dim);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  transition: border-color 0.25s, color 0.25s;
}
.tool-chip > * { position: relative; z-index: 2; }
.tool-chip:hover { border-color: rgba(210, 167, 92, 0.55); color: var(--text); }

.tool-icon {
  width: 15px;
  height: 15px;
  display: inline-flex;
  flex: none;
}
.tool-icon svg { width: 100%; height: 100%; fill: currentColor; }

/* ----------------------------------------------------------
   Micrograd++ explainer — beginner walkthrough + live graph
   ---------------------------------------------------------- */

.explainer {
  margin-top: 20px;
  padding: clamp(28px, 4.5vw, 48px);
}
.explainer > * { position: relative; z-index: 2; }

.explainer-kicker {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.explainer-lede {
  max-width: 720px;
  font-size: clamp(16px, 1.8vw, 18.5px);
  line-height: 1.75;
  color: var(--text-dim);
}
.explainer-lede em { color: var(--text); font-style: italic; }
.explainer-lede strong { color: var(--text); font-weight: 600; }

/* Wikipedia links — quiet dotted underline, gold on hover */
.wiki {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted rgba(210, 167, 92, 0.55);
  transition: color 0.25s, border-color 0.25s;
}
.wiki:hover { color: var(--gold); border-color: var(--gold); }
.tool-chip .wiki { border-bottom-color: transparent; }
.tool-chip .wiki:hover { color: var(--gold); }
.know-name .wiki { font-weight: inherit; font-size: inherit; letter-spacing: inherit; }
.demo-label .wiki { border-bottom-color: rgba(210, 167, 92, 0.4); }

/* the four beginner steps */
.steps {
  list-style: none;
  margin: 26px 0 0;
  border-top: 1px solid var(--line-soft);
}

.step {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
}
.step:last-child { border-bottom: none; }

.step-no {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--gold);
  padding-top: 4px;
}

.step h4 {
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.step p { font-size: 14.5px; color: var(--text-dim); line-height: 1.7; }
.step p em { color: var(--text); font-style: italic; }

.steps-note {
  margin: 22px 0 4px;
  padding: 6px 4px 6px 20px;
  border-left: 2px solid var(--gold);
  max-width: 720px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-dim);
}
.steps-note em { color: var(--text); font-style: italic; }

/* where Micrograd++ fits */
.explainer-where {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
}
.explainer-where h4 {
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.explainer-where p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-dim);
  max-width: 720px;
}

.gd-figure {
  margin: 30px 0 8px;
  padding: 22px 18px 16px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: rgba(6, 6, 9, 0.45);
}

.gd-graph { display: block; width: 100%; height: auto; }

.gd-node {
  fill: rgba(255, 255, 255, 0.045);
  stroke: rgba(255, 255, 255, 0.22);
  stroke-width: 1.2;
}
.gd-op {
  fill: rgba(210, 167, 92, 0.08);
  stroke: rgba(210, 167, 92, 0.55);
  stroke-width: 1.2;
}

.gd-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  fill: var(--text);
  text-anchor: middle;
}
.gd-val {
  font-family: var(--font-mono);
  font-size: 11px;
  fill: var(--text-faint);
  text-anchor: middle;
}
.gd-op-label {
  font-family: var(--font-mono);
  font-size: 15px;
  fill: var(--gold);
  text-anchor: middle;
}
.gd-grad {
  font-family: var(--font-mono);
  font-size: 12px;
  fill: var(--gold);
  text-anchor: middle;
}

.gd-edge-f {
  fill: none;
  stroke: rgba(236, 236, 233, 0.38);
  stroke-width: 1.4;
  stroke-dasharray: 5 6;
  marker-end: url(#arrf);
  animation: dash-f 1.1s linear infinite;
}
.gd-edge-b {
  fill: none;
  stroke: rgba(210, 167, 92, 0.8);
  stroke-width: 1.4;
  stroke-dasharray: 3 7;
  marker-end: url(#arrb);
  animation: dash-b 1.3s linear infinite;
}
@keyframes dash-f { to { stroke-dashoffset: -22; } }
@keyframes dash-b { to { stroke-dashoffset: 22; } }

.gd-legend {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-faint);
}
.lg-swatch {
  display: inline-block;
  width: 26px;
  height: 0;
  border-top: 2px dashed rgba(236, 236, 233, 0.45);
  margin: 0 6px 0 2px;
}
.lg-swatch.lg-b { border-top: 2px dashed var(--gold); }

.gd-caption {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-dim);
  max-width: 640px;
}
.gd-caption strong { color: var(--gold); }

.explainer-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line-soft);
}
.explainer-point h4 {
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.explainer-point p { font-size: 14px; color: var(--text-faint); }

/* ----------------------------------------------------------
   Journal — daily posts
   ---------------------------------------------------------- */

.posts { display: grid; gap: 14px; }

.post { padding: 26px 30px; border-radius: 18px; }
.post > * { position: relative; z-index: 2; }

.post-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 12px;
}

.post-date {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--gold);
}

.post-title {
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 550;
  letter-spacing: -0.02em;
}

.post-body p {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 10px;
}
.post-body p:last-child { margin-bottom: 0; }
.post-body strong { color: var(--text); font-weight: 600; }

.journal-note {
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--text-faint);
}
.journal-note a { color: var(--text-dim); }

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

.contact {
  padding: 20px 26px;
  border-radius: 16px;
  margin-bottom: 24px;
}
.contact > * { position: relative; z-index: 2; }

.contact-line {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
  letter-spacing: 0.01em;
  color: var(--text-dim);
}
.contact-line a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(210, 167, 92, 0.4);
}
.contact-line a:hover { color: #ecd9b0; }

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

.footer { padding-bottom: 44px; }

.footer-inner {
  padding: clamp(34px, 5vw, 54px);
  margin-bottom: 24px;
}
.footer-inner > * { position: relative; z-index: 2; }

.footer-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(38px, 6vw, 66px);
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin-bottom: 36px;
}
.footer-title em {
  font-style: normal;
  font-weight: 750;
  color: var(--gold);
}

/* ----------------------------------------------------------
   GitHub streak — live contribution calendar
   ---------------------------------------------------------- */

.streak {
  padding: 26px 30px 22px;
  margin-bottom: 24px;
}
.streak > * { position: relative; z-index: 2; }

.streak-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 18px;
}

.streak-stats {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--gold);
}

.streak-scroll { overflow-x: auto; padding-bottom: 2px; }

.streak-grid {
  display: flex;
  gap: 4px;
  width: max-content;
}

.streak-week {
  display: grid;
  grid-template-rows: repeat(7, 11px);
  gap: 4px;
}

.streak-cell {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.045);
  transition: transform 0.15s ease;
}
.streak-cell:not(.empty):hover { transform: scale(1.45); }
.streak-cell.empty { background: transparent; }
.streak-cell.l1 { background: rgba(210, 167, 92, 0.28); }
.streak-cell.l2 { background: rgba(210, 167, 92, 0.48); }
.streak-cell.l3 { background: rgba(210, 167, 92, 0.72); }
.streak-cell.l4 {
  background: #d2a75c;
  box-shadow: 0 0 6px rgba(210, 167, 92, 0.45);
}

.streak-months {
  display: flex;
  gap: 4px;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.streak-months span { width: 11px; flex: none; white-space: nowrap; }
.streak-months span.label { width: auto; }

.streak-note {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--text-faint);
}
.streak-note a { color: var(--text-dim); }

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 30px;
  padding: 18px 26px;
  border-radius: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--text-faint);
}
.footer-meta > * { position: relative; z-index: 2; }

/* ----------------------------------------------------------
   Reveal on scroll — liquid condense: blurred and offset,
   settling into sharpness. Uses `translate` (not transform)
   so hover tilt/lift stays free on the same elements.
   ---------------------------------------------------------- */

.reveal {
  opacity: 0;
  translate: 0 22px;
  filter: blur(10px);
  transition:
    opacity 0.75s ease,
    translate 0.75s cubic-bezier(0.34, 1.2, 0.5, 1),
    filter 0.75s ease;
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.visible { opacity: 1; translate: 0 0; filter: blur(0); }

/* ----------------------------------------------------------
   Interaction — lift, tilt, ripple, cursor light
   ---------------------------------------------------------- */

.glass.reveal.visible:hover {
  translate: 0 -4px;
  border-color: rgba(255, 255, 255, 0.2);
}

.tool-chip:hover { translate: 0 -2px; }

.tilt {
  transform: perspective(950px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.18s ease-out, border-color 0.4s, box-shadow 0.4s;
  will-change: transform;
}

.cursor-light {
  position: fixed;
  left: 0; top: 0;
  width: 560px; height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 240, 238, 0.05), transparent 60%);
  pointer-events: none;
  z-index: 40;
  will-change: transform;
}

.ripple {
  position: absolute;
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  transform: translate(-50%, -50%) scale(0.2);
  opacity: 0.9;
  pointer-events: none;
  z-index: 3;
  animation: ripple 0.65s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}
@keyframes ripple {
  to { transform: translate(-50%, -50%) scale(9); opacity: 0; }
}

.nav.scrolled {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 12px 32px -10px rgba(0, 0, 0, 0.55);
}

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

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-demo { max-width: 440px; }
  .know-row { grid-template-columns: 1fr; gap: 8px; }
  .tools-groups { grid-template-columns: 1fr 1fr; gap: 26px; }
  .explainer-points { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 720px) {
  .nav { padding: 8px 10px 8px 14px; }
  .nav-links { display: none; }
  .section { padding: 84px 18px 24px; }
  .hero { padding: 120px 18px 50px; }
  .work { padding: 26px 20px; }
  .know-row { padding: 20px 20px; }
  .tools-groups { grid-template-columns: 1fr; }
  .footer-meta { flex-direction: column; gap: 6px; }
}

/* ----------------------------------------------------------
   Reduced motion
   ---------------------------------------------------------- */

@media (hover: none) {
  .cursor-light { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .status-dot { animation: none; }
  .reveal { opacity: 1; translate: 0 0; filter: none; transition: none; }
  .tilt { transform: none; transition: none; }
  .ripple { display: none; }
  .cursor-light { display: none; }
  .glass::after { transition: none; transform: none; }
  .gd-edge-f, .gd-edge-b { animation: none; }
  .work, .know-row, .tool-chip { transition: none; }
}
