/* ---------- Tokens ---------- */
:root {
  --bg: #f7f7fb;
  --surface: #ffffff;
  --text: #17172b;
  --muted: #55566b;
  --faint: #9a9bb0;
  --border: #e6e6ef;
  --accent: #4f5bd5;
  --accent-2: #8b5cf6;
  /* Project hues, validated with the dataviz palette checker (light + dark). */
  --c1: #4f5bd5;
  --c2: #0e9f8e;
  --c3: #c86a14;
  --c4: #d6336c;
  --c: var(--accent);
  --shadow: 0 1px 2px rgba(23, 23, 43, .04), 0 8px 24px rgba(23, 23, 43, .06);
  --shadow-lg: 0 2px 6px rgba(23, 23, 43, .06), 0 18px 48px rgba(23, 23, 43, .10);
  --radius: 18px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans", "Microsoft YaHei", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d0d14;
    --surface: #161621;
    --text: #f1f1f7;
    --muted: #a6a7bb;
    --faint: #6e6f86;
    --border: #262636;
    --accent: #7b83f0;
    --accent-2: #a78bfa;
    --c1: #7b83f0;
    --c2: #1a9e8e;
    --c3: #d4732f;
    --c4: #e0619c;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, .35), 0 18px 48px rgba(0, 0, 0, .4);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d0d14;
  --surface: #161621;
  --text: #f1f1f7;
  --muted: #a6a7bb;
  --faint: #6e6f86;
  --border: #262636;
  --accent: #7b83f0;
  --accent-2: #a78bfa;
  --c1: #7b83f0;
  --c2: #1a9e8e;
  --c3: #d4732f;
  --c4: #e0619c;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, .35), 0 18px 48px rgba(0, 0, 0, .4);
  color-scheme: dark;
}
:lang(zh) { --font: "Inter", system-ui, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif; }
:lang(ja) { --font: "Inter", system-ui, "Hiragino Sans", "Yu Gothic UI", "Meiryo", "Noto Sans JP", sans-serif; }

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0; }
ul, ol { padding-left: 1.2em; margin: 0; }
p { margin: 0; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
main { position: relative; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}
.nav-inner { display: flex; align-items: center; gap: 20px; height: 62px; }
.brand { font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 10px; }
.brand::before {
  content: ""; width: 22px; height: 22px; border-radius: 7px;
  background: conic-gradient(from 200deg, var(--c1), var(--c2), var(--c3), var(--c4), var(--c1));
}
.brand:hover { text-decoration: none; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: 14px; position: relative; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0); transition: transform .25s ease;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links a:hover::after { transform: scaleX(1); }
.lang-switch { display: flex; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; font-size: 13px; background: var(--surface); }
.lang-switch a { padding: 6px 10px; color: var(--muted); }
.lang-switch a + a { border-left: 1px solid var(--border); }
.lang-switch a:hover { text-decoration: none; color: var(--text); }
.lang-switch a[aria-current="page"] { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); font-weight: 600; }
.theme-toggle {
  border: 1px solid var(--border); background: var(--surface); color: var(--muted);
  width: 34px; height: 34px; border-radius: 10px; cursor: pointer;
  display: grid; place-items: center; transition: color .2s, transform .3s;
}
.theme-toggle:hover { color: var(--accent); transform: rotate(-20deg); }

/* ---------- Hero ---------- */
.hero-bg {
  position: absolute; inset: -80px 0 auto; height: 900px; overflow: hidden; pointer-events: none; z-index: 0;
  -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent);
}
.hero-bg span {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .45;
  animation: drift 18s ease-in-out infinite alternate;
}
.hero-bg span:nth-child(1) { width: 460px; height: 460px; background: var(--c1); top: 40px; left: -120px; }
.hero-bg span:nth-child(2) { width: 380px; height: 380px; background: var(--c4); top: 120px; right: -80px; animation-delay: -6s; opacity: .3; }
.hero-bg span:nth-child(3) { width: 340px; height: 340px; background: var(--c2); top: 420px; left: 38%; animation-delay: -12s; opacity: .25; }
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.08); }
  100% { transform: translate(-30px, 30px) scale(.95); }
}
.hero { position: relative; z-index: 1; padding: 80px 16px 48px; }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12.5px; color: var(--accent);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 20px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border));
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c2) 25%, transparent); animation: blink 2.4s ease-in-out infinite; }
@keyframes blink { 50% { box-shadow: 0 0 0 8px transparent; } }
.hero h1 {
  font-size: clamp(40px, 6.4vw, 64px); letter-spacing: -.025em; font-weight: 700;
  background: linear-gradient(110deg, var(--text) 30%, var(--accent) 60%, var(--c4) 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: 4px;
}
.cjk { font-weight: 500; font-size: .5em; margin-left: .3em; -webkit-text-fill-color: var(--faint); }
.lead { max-width: 620px; margin-top: 18px; font-size: 17.5px; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  font-weight: 500; font-size: 15px; box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--faint); }
.btn.primary { background: linear-gradient(120deg, var(--accent), var(--accent-2)); border-color: transparent; color: #fff; }
.btn.primary::after { content: "→"; transition: transform .2s; }
.btn.primary:hover::after { transform: translateX(3px); }

/* Hero orbit illustration */
.hero-visual { position: relative; }
.hero-visual svg { width: 100%; max-width: 420px; height: auto; display: block; margin: 0 auto; overflow: visible; }
.orbit-ring { fill: none; stroke: var(--border); stroke-width: 1.5; stroke-dasharray: 3 7; }
.orbit { transform-box: view-box; transform-origin: 200px 200px; animation: spin linear infinite; }
.orbit.o1 { animation-duration: 36s; }
.orbit.o2 { animation-duration: 54s; animation-direction: reverse; }
.orbit.o3 { animation-duration: 80s; }
.orbit .sat { transform-box: fill-box; transform-origin: center; animation: spin linear infinite reverse; }
.orbit.o1 .sat { animation-duration: 36s; }
.orbit.o2 .sat { animation-duration: 54s; animation-direction: normal; }
.orbit.o3 .sat { animation-duration: 80s; }
@keyframes spin { to { transform: rotate(360deg); } }
.sat circle.halo { opacity: .18; }
.sat text { font: 600 13px var(--mono); fill: #fff; text-anchor: middle; dominant-baseline: central; }
.core-text { font: 700 22px var(--font); fill: #fff; text-anchor: middle; dominant-baseline: central; letter-spacing: .02em; }
.core-sub { font: 500 10px var(--mono); fill: rgba(255, 255, 255, .8); text-anchor: middle; }
.core-pulse { transform-box: fill-box; transform-origin: center; animation: pulse 3.2s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .5; } 100% { transform: scale(1.9); opacity: 0; } }
.spark { fill: var(--faint); }

/* Stats */
.stats {
  list-style: none; padding: 0; margin-top: 56px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.stats li {
  position: relative; overflow: hidden;
  background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(8px);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 20px 18px;
  box-shadow: var(--shadow);
}
.stats li::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--c); }
.stats li:nth-child(1) { --c: var(--c1); }
.stats li:nth-child(2) { --c: var(--c2); }
.stats li:nth-child(3) { --c: var(--c3); }
.stats li:nth-child(4) { --c: var(--c4); }
.stats strong { display: block; font-size: 32px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stats span { font-size: 13px; color: var(--muted); }

/* ---------- Sections ---------- */
.section { position: relative; z-index: 1; padding: 64px 16px; }
.section-title { font-size: 30px; letter-spacing: -.015em; display: inline-block; position: relative; }
.section-title::after {
  content: ""; display: block; height: 4px; width: 48px; margin-top: 10px; border-radius: 4px;
  background: linear-gradient(90deg, var(--c1), var(--c4));
}
.section-sub { color: var(--muted); margin-top: 12px; max-width: 720px; }
.sub-title { font-size: 19px; margin: 48px 0 16px; }

/* ---------- Case studies ---------- */
.case {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; margin-top: 30px; box-shadow: var(--shadow);
  transition: box-shadow .3s, transform .3s;
}
.case:hover { box-shadow: var(--shadow-lg); }
.case::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 4px;
  background: linear-gradient(90deg, var(--c), color-mix(in srgb, var(--c) 30%, transparent));
}
.case::after {
  content: ""; position: absolute; width: 360px; height: 360px; right: -140px; top: -180px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--c) 16%, transparent), transparent 70%);
  pointer-events: none;
}
.case:nth-of-type(1) { --c: var(--c1); }
.case:nth-of-type(2) { --c: var(--c2); }
.case:nth-of-type(3) { --c: var(--c3); }
.case:nth-of-type(4) { --c: var(--c4); }
.case-head { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.case-meta { font-family: var(--mono); font-size: 12px; color: color-mix(in srgb, var(--c) 75%, var(--text)); margin-bottom: 6px; }
.case h3 { font-size: 22px; letter-spacing: -.01em; }
.case-summary { position: relative; z-index: 1; margin-top: 14px; font-size: 17px; }
.case-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; margin-top: 22px; }
.case h4 {
  font-size: 12.5px; text-transform: uppercase; letter-spacing: .07em; margin: 22px 0 8px;
  color: color-mix(in srgb, var(--c) 70%, var(--text));
  display: flex; align-items: center; gap: 8px;
}
.case h4::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--c); }
:lang(zh) .case h4, :lang(ja) .case h4 { letter-spacing: .03em; }
.case-grid > div > h4:first-child { margin-top: 0; }
.case li { margin: 5px 0; }
.case li::marker { color: color-mix(in srgb, var(--c) 60%, var(--faint)); }
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; position: relative; padding-left: 34px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center;
  font: 600 12px var(--mono); color: #fff; background: var(--c);
}
.results b, .steps b { font-weight: 600; }
.results.inline { margin-top: 18px; position: relative; z-index: 1; }
.delta {
  font-family: var(--mono); font-size: 13px; font-weight: 600; padding: 1px 8px; border-radius: 999px;
  color: color-mix(in srgb, var(--c) 70%, var(--text)); background: color-mix(in srgb, var(--c) 14%, transparent);
}
.tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li {
  font-family: var(--mono); font-size: 12px; padding: 3px 10px; margin: 0;
  background: color-mix(in srgb, var(--c) 12%, transparent);
  color: color-mix(in srgb, var(--c) 72%, var(--text));
  border: 1px solid color-mix(in srgb, var(--c) 22%, transparent);
  border-radius: 999px;
}

/* Gain chart (single series, direct-labeled) */
.gain-chart { margin-top: 16px; padding: 16px; border-radius: 14px; background: color-mix(in srgb, var(--c) 6%, var(--bg)); border: 1px solid var(--border); }
.gain-chart > p { font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.gain { display: grid; grid-template-columns: minmax(0, 1fr) 1.2fr 44px; align-items: center; gap: 10px; font-size: 13px; padding: 4px 0; }
.gain span { color: var(--muted); }
.gain i { display: block; height: 10px; border-radius: 0 4px 4px 0; background: var(--c); width: calc(var(--v) / var(--max, 10) * 100%); transform-origin: left; }
.gain b { font: 600 13px var(--mono); text-align: right; }

/* ---------- Diagrams ---------- */
.diagram { position: relative; z-index: 1; margin: 26px 0 0; overflow-x: auto; padding: 14px; border-radius: 14px; background: color-mix(in srgb, var(--c) 4%, var(--bg)); border: 1px solid var(--border); }
.diagram svg { width: 100%; min-width: 640px; height: auto; display: block; }
.d-node rect { fill: var(--surface); stroke: var(--border); stroke-width: 1.5; }
.d-node.accent rect { fill: color-mix(in srgb, var(--c) 14%, var(--surface)); stroke: var(--c); }
.d-step { font: 600 15px var(--font); fill: var(--text); text-anchor: middle; }
.d-sub { font: 12px var(--mono); fill: var(--muted); text-anchor: middle; }
.d-edge { fill: none; stroke: var(--faint); stroke-width: 1.5; }
.d-edge.loop { stroke: var(--c); }
.d-edge.faint { stroke-dasharray: 4 4; }
.d-pulse { fill: none; stroke: var(--c); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 10 400; animation: flow 2.6s linear infinite; pointer-events: none; }
@keyframes flow { from { stroke-dashoffset: 410; } to { stroke-dashoffset: 0; } }
.d-arrowhead { fill: var(--faint); }
.d-lane { font: 600 11px var(--mono); fill: color-mix(in srgb, var(--c) 70%, var(--faint)); text-transform: uppercase; letter-spacing: .06em; }
.diagram figcaption { font-size: 13px; color: var(--muted); margin-top: 10px; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.card {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px;
  box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--c); }
.card:nth-child(1) { --c: var(--c2); }
.card:nth-child(2) { --c: var(--c1); }
.card:nth-child(3) { --c: var(--c4); }
.card:nth-child(4) { --c: var(--c3); }
.card .case-meta { color: color-mix(in srgb, var(--c) 75%, var(--text)); }
.card h4 { font-size: 16.5px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14px; }
.mini-metrics { list-style: none; padding: 0; margin-top: 14px; border-top: 1px solid var(--border); }
.mini-metrics li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 9px 0; font-size: 13px; border-bottom: 1px solid var(--border); }
.mini-metrics span { color: var(--muted); }
.mini-metrics b { font-family: var(--mono); font-weight: 600; white-space: nowrap; }
/* Before → after bar: gray = before, project hue = gain. Values stay in the text label. */
.mbar { flex-basis: 100%; position: relative; height: 8px; border-radius: 4px; background: color-mix(in srgb, var(--border) 60%, transparent); overflow: hidden; }
.mbar i, .mbar s { position: absolute; top: 0; bottom: 0; }
.mbar i { left: 0; background: color-mix(in srgb, var(--faint) 55%, transparent); }
.mbar s { background: var(--c); border-radius: 0 4px 4px 0; margin-left: 2px; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; padding: 0; margin-top: 22px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: linear-gradient(var(--c1), var(--c2), var(--c3), var(--c4)); }
.timeline li { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 12px 0 12px 24px; position: relative; }
.timeline li::before {
  content: ""; position: absolute; left: -5px; top: 19px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--surface); border: 3px solid var(--c1);
}
.timeline li:nth-child(2)::before { border-color: var(--c2); }
.timeline li:nth-child(3)::before { border-color: var(--c3); }
.timeline li:nth-child(4)::before { border-color: var(--c4); }
.timeline li:nth-child(5)::before { border-color: var(--accent-2); }
.timeline li:first-child::before { box-shadow: 0 0 0 5px color-mix(in srgb, var(--c1) 25%, transparent); }
.timeline time { font-family: var(--mono); font-size: 13px; color: var(--muted); padding-top: 2px; }
.timeline b { display: block; }
.timeline span { color: var(--muted); font-size: 14px; }
.plain li { margin: 6px 0; }

/* ---------- Skills ---------- */
.skills { margin-top: 22px; display: grid; gap: 12px; }
.skill-row {
  display: grid; grid-template-columns: 200px 1fr; gap: 8px 16px; padding: 18px 20px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  border-left: 4px solid var(--c);
}
.skill-row:nth-child(1) { --c: var(--c1); }
.skill-row:nth-child(2) { --c: var(--c2); }
.skill-row:nth-child(3) { --c: var(--c3); }
.skill-row:nth-child(4) { --c: var(--c4); }
.skill-row:nth-child(5) { --c: var(--accent-2); }
.skill-row h4 { font-size: 15px; padding-top: 2px; }
.skill-row > a { grid-column: 2; font-size: 13px; color: color-mix(in srgb, var(--c) 75%, var(--text)); }

/* ---------- Contact ---------- */
.contact {
  margin: 24px auto 64px; padding: 48px 32px; border-radius: 24px; text-align: center; max-width: 1048px;
  background:
    radial-gradient(circle at 15% 20%, color-mix(in srgb, var(--c1) 30%, transparent), transparent 50%),
    radial-gradient(circle at 85% 80%, color-mix(in srgb, var(--c4) 26%, transparent), transparent 50%),
    var(--surface);
  border: 1px solid var(--border); box-shadow: var(--shadow);
}
.contact .section-title::after { margin-left: auto; margin-right: auto; }
.contact p { color: var(--muted); margin-top: 12px; }
.contact-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }
.contact-links a {
  display: inline-block; padding: 10px 20px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface); color: var(--text); transition: transform .2s, border-color .2s, color .2s;
}
.contact-links a:hover { text-decoration: none; border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.footer { padding: 28px 16px 48px; color: var(--faint); font-size: 13px; text-align: center; }

/* ---------- Scroll reveal (classes added by main.js) ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.reveal .gain i, .reveal .mbar i, .reveal .mbar s { transform: scaleX(0); transform-origin: left; transition: transform 1s cubic-bezier(.2, .7, .2, 1) .3s; }
.reveal.in .gain i, .reveal.in .mbar i, .reveal.in .mbar s { transform: scaleX(1); }
.reveal .d-node { opacity: 0; transition: opacity .5s ease; transition-delay: calc(var(--i, 0) * 70ms + .2s); }
.reveal.in .d-node { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .d-pulse { display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 8px; }
  .hero-visual svg { max-width: 300px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: 1fr; gap: 0; }
  .case-grid > div + div > h4:first-child { margin-top: 22px; }
  .cards { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .nav-links { display: none; }
  .lang-switch { margin-left: auto; }
  .hero { padding-top: 48px; }
  .case { padding: 22px 18px; }
  .timeline li { grid-template-columns: 1fr; gap: 2px; }
  .skill-row { grid-template-columns: 1fr; }
  .skill-row > a { grid-column: 1; }
  .gain { grid-template-columns: 1fr 44px; }
  .gain i { grid-column: 1 / -1; grid-row: 2; }
  .contact { margin: 16px; padding: 36px 20px; }
}
