/* Pratyaksh Bansal - portfolio
   Shape system: cards 16px, media 10px, buttons, tags and chips fully rounded.
   One accent (emerald) in both themes. Theme follows the system unless the visitor picks one. */

@font-face {
  font-family: "Geist";
  src: url("/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f3f4f1;
  --bg-2: #e9ebe7;
  --surface: #fbfbfa;
  --ink: #15171a;
  --ink-2: #393e43;
  --muted: #5f656b;
  --line: #d9dcd7;
  --accent: #0e7a5c;
  --accent-ink: #f4fbf8;
  --accent-soft: #dceee6;
  --shadow: 0 1px 2px rgb(22 40 32 / .06), 0 22px 44px -22px rgb(22 40 32 / .32);
  --radius: 16px;
  --radius-media: 10px;
  --wrap: 1180px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1011;
    --bg-2: #181b1d;
    --surface: #15181a;
    --ink: #eceeec;
    --ink-2: #c4c9c6;
    --muted: #949b98;
    --line: #272b2e;
    --accent: #45c493;
    --accent-ink: #06130d;
    --accent-soft: #14302a;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 22px 44px -22px rgb(0 0 0 / .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1011;
  --bg-2: #181b1d;
  --surface: #15181a;
  --ink: #eceeec;
  --ink-2: #c4c9c6;
  --muted: #949b98;
  --line: #272b2e;
  --accent: #45c493;
  --accent-ink: #06130d;
  --accent-soft: #14302a;
  --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 22px 44px -22px rgb(0 0 0 / .7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }
.ic { width: 1.1em; height: 1.1em; flex: none; }
.bi { width: 1em; height: 1em; flex: none; }
.sentinel { position: absolute; top: 0; height: 1px; width: 1px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 30;
  padding: 10px 14px; border-radius: 999px; background: var(--ink); color: var(--bg); text-decoration: none;
}
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 550; font-size: 16px; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s, border-color .2s, box-shadow .2s;
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn .ic { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 22px -12px color-mix(in srgb, var(--accent) 80%, transparent); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 86%, var(--ink)); }
.btn-ghost { border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-2); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; gap: 8px; }
.btn-sm .ic { width: 16px; height: 16px; }

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-in { height: 64px; display: flex; align-items: center; gap: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -0.01em; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: var(--ink); color: var(--bg); font-size: 12px; font-weight: 700; letter-spacing: .02em;
}
.nav nav { margin-left: auto; display: flex; gap: 2px; }
.nav nav a { padding: 8px 11px; border-radius: 999px; text-decoration: none; color: var(--ink-2); font: 500 14px/1.2 "Geist Mono", ui-monospace, monospace; text-transform: lowercase; transition: background-color .2s, color .2s; }
.nav nav a:hover { background: var(--bg-2); color: var(--ink); }
.theme {
  flex: none; width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer;
  transition: border-color .2s, transform .2s var(--ease);
}
.theme:hover { border-color: var(--ink-2); }
.theme:active { transform: scale(.94); }
.theme .ic { width: 18px; height: 18px; grid-area: 1 / 1; }
.theme .i-sun { display: none; }
:root[data-theme="dark"] .theme .i-sun { display: block; }
:root[data-theme="dark"] .theme .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme .i-moon { display: none; }
}

/* Hero: blueprint dot grid behind the band, pitch on the left, terminal profile on the right */
.hero-band { position: relative; isolation: isolate; }
.hero-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(circle, color-mix(in srgb, var(--ink) 16%, transparent) 1px, transparent 1.4px);
  background-size: 22px 22px;
  background-position: -11px -11px;
  -webkit-mask-image: linear-gradient(to bottom, #000 65%, transparent);
  mask-image: linear-gradient(to bottom, #000 65%, transparent);
}
.hero {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 40px; align-items: center;
  padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(44px, 6vw, 80px);
}
.hero-copy { grid-column: 1 / span 7; }
.term { grid-column: 8 / span 5; }
.who { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.who img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px var(--line); }
.avail {
  display: inline-flex; align-items: center; gap: 9px; font: 500 13px/1.35 "Geist Mono", ui-monospace, monospace;
  color: var(--accent); background: var(--accent-soft); padding: 7px 12px; border-radius: 999px;
}
.dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
h1 { display: flex; flex-direction: column; gap: 12px; }
h1 .name { font-size: clamp(2.7rem, 6.2vw, 4.8rem); line-height: 1; letter-spacing: -0.045em; font-weight: 640; }
h1 .role { font: 500 clamp(1.1rem, 2vw, 1.55rem)/1.2 "Geist Mono", ui-monospace, monospace; letter-spacing: -0.02em; color: var(--accent); }
h1 .role::before { content: "> "; color: var(--muted); }
.lede { margin-top: 24px; font-size: clamp(1.06rem, 1.4vw, 1.2rem); color: var(--ink-2); max-width: 46ch; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Terminal-style profile: real details, phone and email are live links. Dark in both themes, like a code block. */
.term {
  --t-bg: #111416; --t-bar: #1a1e21; --t-ink: #e3e8e5; --t-dim: #8b9792; --t-key: #7fb8a3; --t-acc: #45c493;
  background: var(--t-bg); color: var(--t-ink); border-radius: var(--radius); overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--t-bg) 80%, var(--line)); box-shadow: var(--shadow);
  font: 400 14px/1.65 "Geist Mono", ui-monospace, monospace;
}
.term-bar {
  display: flex; justify-content: space-between; gap: 12px; padding: 9px 16px;
  background: var(--t-bar); color: var(--t-dim); font-size: 12px; border-bottom: 1px solid rgb(255 255 255 / .06);
}
.term-body { padding: 16px 18px 18px; }
.term .cmd { color: var(--t-ink); }
.term .cmd + .out, .term .cmd + .yml { margin-bottom: 10px; }
.term .ps { color: var(--t-acc); margin-right: 4px; }
.term .out { color: var(--t-ink); font-weight: 600; }
.yml { display: grid; gap: 1px; }
.yml div { display: grid; grid-template-columns: 11.5ch minmax(0, 1fr); gap: 8px; }
.yml dt { color: var(--t-key); }
.yml dd { color: var(--t-ink); overflow-wrap: anywhere; }
.yml dd.ok { color: var(--t-acc); }
.yml dd a { color: var(--t-acc); text-decoration: none; border-bottom: 1px dashed color-mix(in srgb, var(--t-acc) 50%, transparent); }
.yml dd a:hover { border-bottom-style: solid; }
.cursor { display: inline-block; width: 9px; height: 1.05em; vertical-align: -2px; background: var(--t-acc); }

/* Tools band */
.tools { padding-top: 8px; }
.tools-label { color: var(--muted); font-size: 15px; padding-top: 28px; border-top: 1px solid var(--line); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chips li {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 500;
}
.chips .bi, .chips .ic { width: 16px; height: 16px; color: var(--ink-2); }

/* Sections */
.section { padding-top: clamp(80px, 10vw, 128px); }
.section h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); letter-spacing: -0.035em; line-height: 1.08; }
.intro { margin-top: 14px; color: var(--ink-2); max-width: 62ch; font-size: 1.06rem; }

/* Infrastructure: header with meta, layered stack diagram, capability cards */
.infra-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px; align-items: end; }
.infra-head > div { grid-column: span 7; }
.meta { grid-column: span 5; display: grid; gap: 12px; padding: 20px 22px; border-radius: var(--radius); background: var(--bg-2); }
.meta div { display: grid; gap: 2px; }
.meta dt { font: 500 12px/1.3 "Geist Mono", ui-monospace, monospace; color: var(--accent); }
.meta dd { font-weight: 550; }

.stack { margin: 36px 0 0; padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.stack figcaption { font: 500 13px/1.4 "Geist Mono", ui-monospace, monospace; color: var(--muted); margin-bottom: 14px; }
.stack ol { list-style: none; display: grid; gap: 6px; }
.stack li {
  display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 16px; align-items: center;
  padding: 11px 16px; border-radius: var(--radius-media); background: var(--bg-2);
  border-left: 3px solid color-mix(in srgb, var(--accent) var(--w, 100%), var(--line));
}
.stack li:nth-child(1) { --w: 35%; }
.stack li:nth-child(2) { --w: 45%; }
.stack li:nth-child(3) { --w: 55%; }
.stack li:nth-child(4) { --w: 65%; }
.stack li:nth-child(5) { --w: 75%; }
.stack li:nth-child(6) { --w: 88%; }
.stack li:nth-child(7) { --w: 100%; }
.layer { font: 600 13px/1.3 "Geist Mono", ui-monospace, monospace; color: var(--ink); }
.tools { color: var(--ink-2); font-size: .95rem; line-height: 1.45; }

.infra { margin-top: 20px; }
.caps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cap.wide { grid-column: span 2; }
.cap {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 24px 20px;
}
.cap-ic { width: 44px; height: 44px; border-radius: var(--radius-media); display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.cap-ic .ic { width: 22px; height: 22px; }
.kicker { font: 500 12px/1.3 "Geist Mono", ui-monospace, monospace; color: var(--accent); margin-bottom: 4px; }
.cap h3 { font-size: 1.15rem; line-height: 1.3; }
.cap ul:not(.tags) { margin-top: 10px; padding-left: 18px; display: grid; gap: 6px; color: var(--ink-2); font-size: .97rem; line-height: 1.5; }
.cap ul:not(.tags) li::marker { color: var(--accent); }
.cap .tags { padding: 0; margin-top: 14px; }

/* Experience */
.exp { margin-top: 40px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px; align-items: start; }
.timeline { grid-column: span 7; list-style: none; border-left: 1px solid var(--line); }
.timeline > li { position: relative; padding: 0 0 38px 28px; }
.timeline > li:last-child { padding-bottom: 4px; }
.timeline > li::before {
  content: ""; position: absolute; left: -5px; top: 6px; width: 9px; height: 9px; border-radius: 3px;
  background: var(--bg); border: 1px solid var(--muted);
}
.timeline > li.now::before { background: var(--accent); border-color: var(--accent); }
.timeline time { font: 500 13px/1 "Geist Mono", ui-monospace, monospace; color: var(--muted); }
.timeline h3 { margin-top: 10px; font-size: 1.2rem; }
.timeline .org { margin-top: 2px; color: var(--ink-2); }
.points { margin-top: 10px; padding-left: 18px; display: grid; gap: 6px; color: var(--muted); font-size: .97rem; line-height: 1.5; max-width: 60ch; }
.points li::marker { color: var(--accent); }
.skills {
  grid-column: span 5; display: grid; gap: 18px; position: sticky; top: 96px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
}
.skills h3 { font-size: .98rem; }
.skills p { margin-top: 4px; color: var(--muted); font-size: .95rem; line-height: 1.5; }

/* Client websites */
.work-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.tile {
  grid-column: span 12; display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.urlbar {
  display: flex; align-items: center; height: 30px; padding: 0 12px; border-radius: var(--radius-media) var(--radius-media) 0 0;
  background: var(--bg-2); color: var(--ink-2); font: 500 12px/1 "Geist Mono", ui-monospace, monospace; border-bottom: 1px solid var(--line);
}
.urlbar { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; line-height: 30px; }
.urlbar .host { color: var(--muted); }
.tile figure { margin: 0; height: clamp(200px, 24vw, 300px); border-radius: 0 0 var(--radius-media) var(--radius-media); overflow: hidden; background: var(--bg-2); }
.tile img { width: 100%; height: 100%; object-fit: cover; object-position: left top; transform-origin: left top; transition: transform .9s var(--ease); }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--ink) 16%, var(--line)); }
.tile:hover img { transform: scale(1.025); }
.tile-meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 16px 8px 0; }
.tile h3 { font-size: 1.2rem; }
.tile p { margin-top: 4px; color: var(--muted); font-size: .97rem; line-height: 1.5; max-width: 52ch; }
.go {
  flex: none; width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--line);
  display: grid; place-items: center; transition: background-color .25s, color .25s, border-color .25s;
}
.go .ic { width: 18px; height: 18px; }
.tile:hover .go { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.tags { list-style: none; margin-top: 14px; padding: 0 8px 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font: 500 12px/1 "Geist Mono", ui-monospace, monospace; color: var(--ink-2); background: var(--bg-2); border-radius: 999px; padding: 7px 10px; }

.note {
  margin-top: 28px; display: flex; gap: 14px; align-items: flex-start; max-width: 840px;
  padding: 18px 20px; border-radius: var(--radius); background: var(--bg-2); color: var(--ink-2); font-size: .97rem;
}
.note .ic { width: 22px; height: 22px; margin-top: 2px; color: var(--accent); }
.note strong { color: var(--ink); }

/* Products and apps */
.feature {
  margin-top: 40px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px;
}
.feature-shot { grid-column: span 7; margin: 0; border-radius: var(--radius-media); overflow: hidden; background: var(--bg-2); }
.feature-shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; }
.feature-copy { grid-column: span 5; padding: 14px 24px 14px 0; }
.feature-copy .tags { padding: 0; }
.status { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.status span { background: var(--accent-soft); color: var(--accent); font-weight: 600; padding: 4px 11px; border-radius: 999px; font-size: 13px; }
.feature h3 { margin-top: 16px; font-size: clamp(1.7rem, 2.6vw, 2.2rem); letter-spacing: -0.03em; }
.feature .desc { margin-top: 10px; color: var(--ink-2); }
.feature .btn { margin-top: 24px; }

/* 5 cells: a wide P/OS + Resource Brain row, then three small tools */
.apps-grid { margin-top: 20px; display: grid; gap: 20px; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.app {
  grid-column: span 2; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 10px;
}
.app-pos { grid-column: span 4; }
.app figure { margin: 0; border-radius: var(--radius-media); overflow: hidden; aspect-ratio: 16 / 10; background: var(--bg-2); }
.app figure img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.app-pos figure, .app-rb figure { aspect-ratio: auto; height: clamp(200px, 22vw, 290px); }
.app .copy { padding: 14px 8px 4px; }
.app .copy .tags { padding: 0 0 4px; }
.app h3 { font-size: 1.12rem; }
.app p { margin-top: 4px; color: var(--muted); font-size: .95rem; line-height: 1.5; }
.link { margin-top: 14px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--accent); text-decoration: none; }
.link .ic { width: 18px; height: 18px; transition: translate .25s var(--ease); }
.link:hover .ic { translate: 2px -2px; }
.panel { display: grid; place-items: center; aspect-ratio: 16 / 10; border-radius: var(--radius-media); }
.panel-dm { background: var(--accent-soft); color: var(--accent); }
.panel-dm .ic { width: 64px; height: 64px; }
.panel-nf { background: #141414; }
.panel-nf img { width: 76px; height: 76px; object-fit: contain; }

/* Automation */
.auto { margin-top: 40px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.auto-group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 26px 12px; }
.auto-group h3 { font-size: 1rem; color: var(--muted); font-weight: 550; letter-spacing: 0; }
.auto-group ul { list-style: none; margin-top: 10px; }
.auto-group li { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 14px; padding: 12px 0; }
.auto-ic { width: 42px; height: 42px; border-radius: var(--radius-media); display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.auto-ic .ic { width: 22px; height: 22px; }
.auto-group b { display: block; font-weight: 600; line-height: 1.4; }
.auto-group span:not(.auto-ic) { display: block; margin-top: 2px; color: var(--muted); font-size: .95rem; line-height: 1.5; }

/* Contact */
.contact { padding-bottom: clamp(80px, 10vw, 128px); }
.contact h2 { font-size: clamp(2.3rem, 5vw, 3.8rem); letter-spacing: -0.04em; }
.contact > p:not(.mail) { margin-top: 16px; color: var(--ink-2); max-width: 52ch; font-size: 1.1rem; }
.mail { margin-top: 18px; font: 500 15px/1.4 "Geist Mono", ui-monospace, monospace; color: var(--muted); }

.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding: 26px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px;
}

/* Motion: hero entrance on load, sections rise in as they scroll into view.
   Scroll reveal is pure CSS (view timelines), so content is never hidden if a browser lacks support. */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise .9s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 90ms); }
  .term { animation: rise 1s var(--ease) .25s backwards; }
  .cursor { animation: blink 1.1s steps(1) infinite; }
  .dot { animation: ping 2.4s ease-out infinite; }
  @supports (animation-timeline: view()) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 5% entry 55%; }
  }
}
@keyframes rise { from { opacity: 0; translate: 0 16px; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes reveal { from { opacity: 0; translate: 0 28px; } to { opacity: 1; translate: 0 0; } }
@keyframes ping {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); }
  70%, 100% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 0%, transparent); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tile, .tile img, .btn, .link .ic { transition: none; }
}

/* Responsive */
@media (min-width: 860px) {
  .tile.w7 { grid-column: span 7; }
  .tile.w5 { grid-column: span 5; }
}
@media (max-width: 1060px) {
  .nav-cta { display: none; }
}
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; row-gap: 36px; }
  .hero-copy, .term { grid-column: auto; }
  .term { max-width: 580px; }
  .infra-head { grid-template-columns: 1fr; gap: 24px; }
  .infra-head > div, .meta { grid-column: auto; }
  .caps { grid-template-columns: 1fr; }
  .cap.wide { grid-column: auto; }
  .apps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app { grid-column: span 1; }
  .app-pos { grid-column: span 2; }
  .app-pos figure, .app-rb figure { height: auto; aspect-ratio: 16 / 10; }
}
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; gap: 8px; }
  .feature-shot, .feature-copy { grid-column: auto; }
  .feature-copy { padding: 10px 10px 14px; }
  .auto { grid-template-columns: 1fr; }
  .exp { grid-template-columns: 1fr; }
  .timeline, .skills { grid-column: auto; }
  .skills { position: static; }
}
@media (max-width: 760px) {
  .nav nav { display: none; }
  .theme { margin-left: auto; }
}
@media (max-width: 640px) {
  .apps-grid { grid-template-columns: 1fr; }
  .app, .app-pos { grid-column: auto; }
  .btn { height: 46px; padding: 0 18px; }
  .term { font-size: 13px; }
  .yml div { grid-template-columns: 1fr; gap: 0; }
  .yml div + div { margin-top: 4px; }
  .stack li { grid-template-columns: 1fr; gap: 4px; }
  .cap { grid-template-columns: 1fr; gap: 12px; padding: 20px 18px 16px; }
  .auto-group { padding: 20px 18px 8px; }
  .skills { padding: 20px; }
}

/* 404 */
.notfound { min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; padding-block: 64px; }
.notfound .kicker { margin-bottom: 18px; overflow-wrap: anywhere; }
