/* yousefkamel.site, as a code editor (2026-10-22): a title bar with tabs, a file explorer beside the page, editor panes
   with file names, code-coloured labels and a status bar. Dark by default; a matching light theme. */

/* ---------- Tokens ---------- */
:root {
  --bg: #0d1117;
  --panel: #11161d;
  --pane: #0f141b;
  --bar: #0a0e13;
  --line: #1f2731;
  --line-2: #2a3440;
  --ink: #e6edf3;
  --ink-2: #b4bfcb;
  --muted: #7d8a97;
  --faint: #56616d;
  --accent: #7aa2f7;
  --accent-soft: rgba(122, 162, 247, 0.12);
  --green: #9ece6a;
  --orange: #e0af68;
  --purple: #bb9af7;
  --cyan: #7dcfff;
  --red: #f7768e;
  --live: #9ece6a;
  --wip: #e0af68;
  --radius: 10px;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --top: 86px; /* the title bar and the tabs */
  --side: 248px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #fbfbfa;
    --panel: #f3f4f2;
    --pane: #ffffff;
    --bar: #eceeeb;
    --line: #e1e3df;
    --line-2: #d2d5d0;
    --ink: #11161d;
    --ink-2: #3b4450;
    --muted: #66717d;
    --faint: #96a0aa;
    --accent: #2f5bd8;
    --accent-soft: rgba(47, 91, 216, 0.09);
    --green: #3f7d1c;
    --orange: #a45c00;
    --purple: #7a42c8;
    --cyan: #0a6e9c;
    --red: #c2284a;
    --live: #2f8a3a;
    --wip: #a45c00;
    color-scheme: light;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-bottom: 28px; /* the status bar */
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.01em; line-height: 1.2; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
strong { color: var(--ink); font-weight: 600; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--accent); color: var(--bg); padding: 8px 12px; border-radius: 6px; font-family: var(--mono); }
.skip:focus { left: 8px; }

/* code tokens */
.tok-com { color: var(--muted); font-style: italic; }
.tok-str { color: var(--green); }
.tok-fn { color: var(--accent); }
.tok-key { color: var(--purple); }
.tok-dir { color: var(--cyan); }
.tok-dim { color: var(--faint); }

/* ---------- The window: title bar and tabs ---------- */
.titlebar {
  position: sticky; top: 0; z-index: 50;
  background: var(--bar);
  border-bottom: 1px solid var(--line);
}
.titlebar-inner {
  height: 44px; display: flex; align-items: center; gap: 14px;
  padding: 0 16px;
}
.lights { display: inline-flex; gap: 7px; flex: none; }
.lights i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }
.brand { font-family: var(--mono); font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-path { color: var(--green); font-weight: 600; }
.brand-dim { color: var(--accent); }
.titlebar-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.icon-link { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 6px; color: var(--muted); }
.icon-link:hover { color: var(--ink); background: var(--line); }

.tabs {
  display: flex; overflow-x: auto; scrollbar-width: none;
  background: var(--panel); border-top: 1px solid var(--line);
  height: 41px;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  padding: 0 16px; font-family: var(--mono); font-size: 12.5px; color: var(--muted);
  border-right: 1px solid var(--line); border-top: 2px solid transparent;
  transition: color .15s, background .15s;
}
.tab:hover { color: var(--ink); background: var(--pane); }
.tab.active { color: var(--ink); background: var(--bg); border-top-color: var(--accent); }

/* file-type badges, as an editor shows them */
.ft { font-family: var(--mono); font-size: 9.5px; font-weight: 700; letter-spacing: 0.02em; min-width: 16px; text-align: center; }
.ft-md { color: var(--cyan); }
.ft-ts { color: var(--accent); }
.ft-json { color: var(--orange); }
.ft-dir { color: var(--muted); font-size: 11px; }
.ft-yml { color: var(--purple); font-size: 13px; }
.ft-sh { color: var(--green); font-size: 12px; }
.ft-pdf { color: var(--red); font-size: 8.5px; }

/* ---------- Explorer + editor ---------- */
.workbench { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: calc(100vh - var(--top)); }
.explorer {
  position: sticky; top: var(--top); align-self: start;
  height: calc(100vh - var(--top) - 28px); overflow: auto;
  background: var(--panel); border-right: 1px solid var(--line);
  padding: 14px 0; display: flex; flex-direction: column;
  font-family: var(--mono); font-size: 12.5px;
}
.explorer-head { padding: 0 16px 8px; color: var(--muted); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; }
.explorer-root { padding: 2px 16px 4px; color: var(--ink-2); font-weight: 600; }
.tree a {
  display: flex; align-items: center; gap: 8px; padding: 3px 16px 3px 26px;
  color: var(--ink-2); border-left: 2px solid transparent;
}
.tree .tree-sub a { padding-left: 44px; color: var(--muted); }
.tree .tree-sub2 a { padding-left: 60px; }
.tree a:hover { background: var(--line); color: var(--ink); }
.tree a.active { background: var(--accent-soft); color: var(--ink); border-left-color: var(--accent); }
.explorer-foot { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.status-line { padding: 0 16px; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }

.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); display: inline-block; box-shadow: 0 0 0 3px color-mix(in srgb, var(--live) 22%, transparent); flex: none; }

.editor { min-width: 0; padding: 0 clamp(18px, 4vw, 56px) 40px; max-width: 1180px; }

/* ---------- Hero: the terminal ---------- */
.hero { padding: 44px 0 56px; }
.term {
  background: var(--pane); border: 1px solid var(--line-2); border-radius: var(--radius);
  overflow: hidden; max-width: 720px; margin-bottom: 36px;
  box-shadow: 0 20px 60px -30px rgba(0, 0, 0, 0.6);
}
.term-bar { display: flex; align-items: center; gap: 12px; padding: 9px 14px; background: var(--bar); border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.term-body { margin: 0; padding: 16px 18px 18px; font-family: var(--mono); font-size: 13.5px; line-height: 1.75; color: var(--ink-2); white-space: normal; min-height: 214px; }
.term-body .line { display: block; white-space: pre-wrap; }
.term-body .line.hidden { display: none; }
.term-body .out { color: var(--ink-2); padding-left: 2px; }
.prompt { color: var(--green); font-weight: 600; }
.prompt::after { content: " ❯"; color: var(--accent); }
.cmd { color: var(--ink); }
.cursor { display: inline-block; width: 8px; height: 16px; vertical-align: -3px; background: var(--ink); animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); border: 1px solid var(--line-2); background: var(--panel); padding: 5px 12px; border-radius: 999px; margin-bottom: 22px; }
.hero-title { font-family: var(--mono); font-size: clamp(30px, 4.6vw, 52px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 20px; }
.accent { color: var(--accent); }
.hero-lede { max-width: 640px; color: var(--ink-2); font-size: 17px; margin-bottom: 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 13px; font-weight: 500;
  padding: 9px 15px; border-radius: 7px;
  border: 1px solid var(--line-2); background: var(--panel); color: var(--ink);
  transition: border-color .15s, background .15s, transform .15s;
}
.btn:hover { border-color: var(--accent); background: var(--accent-soft); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.btn-primary .tok-dim { color: color-mix(in srgb, var(--bg) 60%, transparent); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, white); color: var(--bg); }
.btn-sm { padding: 6px 11px; font-size: 12px; }
.titlebar .btn-sm { background: transparent; gap: 0; }

/* ---------- Sections ---------- */
.section { padding: 56px 0 24px; border-top: 1px solid var(--line); }
.section-head { margin-bottom: 30px; max-width: 760px; }
.kicker { font-family: var(--mono); font-size: 13px; margin-bottom: 10px; display: flex; align-items: baseline; gap: 14px; }
.kicker .ln { color: var(--faint); font-size: 12px; min-width: 18px; text-align: right; }
.section h2 { font-family: var(--mono); font-size: clamp(24px, 3vw, 34px); font-weight: 700; letter-spacing: -0.02em; }
.section-lede { margin-top: 14px; color: var(--ink-2); font-size: 16.5px; }

/* ---------- Panes: every card is an editor pane with its file name ---------- */
.pane {
  position: relative;
  background: var(--pane); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 52px 26px 26px; margin-bottom: 22px;
}
.pane::before {
  content: attr(data-file);
  position: absolute; inset: 0 0 auto 0; height: 34px;
  display: flex; align-items: center; padding: 0 14px 0 34px;
  font-family: var(--mono); font-size: 11.5px; color: var(--muted);
  background: var(--panel); border-bottom: 1px solid var(--line);
  border-radius: var(--radius) var(--radius) 0 0;
}
.pane::after { content: ""; position: absolute; top: 13px; left: 14px; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); opacity: .7; }

.feature-label { font-family: var(--mono); font-size: 12px; color: var(--purple); margin-bottom: 6px; }
.pane h3 { font-family: var(--mono); font-size: 21px; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.01em; }
.case-head { max-width: 820px; margin-bottom: 22px; }
.case-lede { color: var(--ink-2); }
.case p, .role p, .feature-body p { color: var(--ink-2); }
.case p + p, .feature-body p + p { margin-top: 12px; }
.small { font-size: 13.5px; margin-top: 14px; color: var(--muted) !important; }

.tag {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 12px;
  font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.04em;
  padding: 3px 9px; border-radius: 5px; border: 1px solid currentColor;
}
.tag::before { content: "●"; font-size: 8px; }
.tag-live { color: var(--live); background: color-mix(in srgb, var(--live) 10%, transparent); }
.tag-wip { color: var(--wip); background: color-mix(in srgb, var(--wip) 10%, transparent); }

/* the CRM data flow, as a pipeline */
.flow { display: grid; grid-template-columns: 1.1fr 24px 1fr 24px 1fr 24px 1fr; align-items: stretch; gap: 0; margin: 0 0 24px; padding: 18px; background: var(--panel); border: 1px dashed var(--line-2); border-radius: 8px; }
.flow-col { display: flex; flex-direction: column; gap: 8px; }
.flow-title { font-family: var(--mono); font-size: 11px; color: var(--muted); text-transform: lowercase; }
.flow-title::before { content: "./"; color: var(--faint); }
.flow-sources { display: flex; flex-wrap: wrap; gap: 5px; }
.flow-sources li { font-family: var(--mono); font-size: 11.5px; padding: 3px 8px; border-radius: 5px; background: var(--pane); border: 1px solid var(--line); color: var(--ink-2); }
.flow-node { flex: 1; background: var(--pane); border: 1px solid var(--line); border-radius: 7px; padding: 10px 12px; }
.flow-node b { display: block; font-family: var(--mono); font-size: 12.5px; color: var(--ink); margin-bottom: 4px; }
.flow-node span { font-size: 12.5px; color: var(--muted); line-height: 1.4; display: block; }
.flow-node-accent { border-color: var(--accent); background: var(--accent-soft); }
.flow-arrow { align-self: center; height: 2px; background: linear-gradient(90deg, var(--line-2), var(--accent)); position: relative; margin: 0 4px; }
.flow-arrow::after { content: "›"; position: absolute; right: -4px; top: -11px; color: var(--accent); font-family: var(--mono); font-size: 16px; }

.case-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.point { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; }
.point h4 { font-family: var(--mono); font-size: 13px; color: var(--ink); margin-bottom: 6px; }
.point h4::before { content: "fn "; color: var(--purple); font-weight: 400; }
.point p { font-size: 14px; }

/* chips, as tokens */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-family: var(--mono); font-size: 11.5px; padding: 3px 9px; border-radius: 5px; color: var(--cyan); background: color-mix(in srgb, var(--cyan) 8%, transparent); border: 1px solid color-mix(in srgb, var(--cyan) 22%, transparent); }
.chips-lg li { font-size: 12.5px; padding: 5px 11px; }

.bullets { display: grid; gap: 7px; margin: 12px 0 16px; }
.bullets li { position: relative; padding-left: 20px; color: var(--ink-2); }
.bullets li::before { content: "→"; position: absolute; left: 0; color: var(--accent); font-family: var(--mono); }

.case-media { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.demo-video figcaption, .feature-video figcaption { font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin-top: 8px; }
.demo-video figcaption::before, .feature-video figcaption::before { content: "// "; color: var(--faint); }
figure { margin: 0; }
video { width: 100%; display: block; border-radius: 7px; border: 1px solid var(--line); background: #000; cursor: zoom-in; }

.case-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.case-pair .pane { margin-bottom: 22px; }
.steps { counter-reset: s; display: grid; gap: 6px; margin: 14px 0 6px; }
.steps li { counter-increment: s; display: flex; gap: 12px; align-items: center; font-family: var(--mono); font-size: 13px; color: var(--ink-2); padding: 7px 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; }
.steps li::before { content: counter(s, decimal-leading-zero); color: var(--orange); font-size: 11.5px; }
.practices { display: grid; gap: 14px; margin-top: 12px; }
.practices b { font-family: var(--mono); font-size: 13px; color: var(--ink); display: block; margin-bottom: 3px; }
.practices b::before { content: "✓ "; color: var(--green); }
.practices p { font-size: 14.5px; }

/* ---------- Experience ---------- */
.role { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 26px; }
.role-meta { font-family: var(--mono); font-size: 12.5px; }
.role-dates { color: var(--orange) !important; margin-bottom: 4px; }
.role-loc { color: var(--muted) !important; margin-bottom: 12px; }
.role-org { font-family: var(--mono); font-size: 13px; color: var(--accent) !important; margin-bottom: 8px; }
.link-arrow { display: inline-flex; gap: 6px; font-family: var(--mono); font-size: 12.5px; color: var(--accent); margin-top: 6px; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Projects ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 30px; align-items: start; }
.feature-flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.feature-visuals { display: grid; gap: 18px; position: sticky; top: calc(var(--top) + 18px); }
.feature-visual img { border-radius: 8px; border: 1px solid var(--line); width: 100%; height: auto; }
.feature-thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.thumb { display: block; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--panel); transition: border-color .15s; }
.thumb:hover { border-color: var(--accent); }
.thumb-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.thumb-img img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.feature-thumbs-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.thumb-tall .thumb-img { aspect-ratio: 9 / 14; }
.thumb-tall .thumb-img img { object-position: top center; }
.thumb-email .thumb-img { background: #efe8dd; aspect-ratio: 3 / 4; }
.thumb-email .thumb-img img { object-fit: contain; object-position: top center; }
.feature-visual figcaption { font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin-top: 8px; }
.feature-visual figcaption::before { content: "// "; color: var(--faint); }
.thumb-label { display: block; font-family: var(--mono); font-size: 11.5px; color: var(--muted); padding: 7px 10px; }
.md-h { font-family: var(--mono); font-size: 15px; color: var(--ink); margin: 26px 0 10px; }
.md-h .tok-com { font-style: normal; margin-right: 6px; color: var(--purple); }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0; }
.metrics li { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; }
.metrics b { display: block; font-family: var(--mono); font-size: 22px; color: var(--green); }
.metrics span { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.feature-body .chips { margin-top: 18px; }
.feature-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.feature-note { font-size: 13px !important; color: var(--muted) !important; margin-top: 14px; }

/* the full-screen button on each video */
.video-wrap { position: relative; }
.fs-btn {
  position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 11.5px; padding: 5px 9px; border-radius: 6px; cursor: pointer;
  color: #e6edf3; background: rgba(10, 14, 19, 0.78); border: 1px solid rgba(255, 255, 255, 0.14);
  opacity: 0; transition: opacity .15s;
}
.video-wrap:hover .fs-btn, .fs-btn:focus-visible { opacity: 1; }
@media (hover: none) { .fs-btn { opacity: 1; } }

/* ---------- Blockcraft: the /crew demo, playable in the page ---------- */
.crew-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; align-items: start; margin-bottom: 20px; }
.crew-head p { color: var(--ink-2); }
.crew-prompt { font-family: var(--mono); font-size: 13.5px; background: var(--panel); border: 1px solid var(--line); border-radius: 7px; padding: 8px 12px; margin: 4px 0 14px; display: inline-block; }
.crew-prompt .prompt::after { content: ""; }
.crew-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; }
.play-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 9px; border: 1px solid var(--line-2); overflow: hidden; background: radial-gradient(ellipse at 50% 30%, #1d3b5c 0%, #0b1420 70%); }
.play-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.play-start { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 16px; width: 100%; border: 0; cursor: pointer; background: transparent; color: #e6edf3; font-family: var(--mono); text-align: left; padding: 24px; }
.play-start b { display: block; font-size: 20px; margin-bottom: 4px; }
.play-start .muted-line { display: block; font-size: 12px; color: #9fb0c2; max-width: 420px; }
.play-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: var(--bg); font-size: 24px; flex: none; transition: transform .15s; }
.play-start:hover .play-icon { transform: scale(1.08); }
.crew-steps li { align-items: flex-start; font-family: var(--sans); font-size: 14px; line-height: 1.55; }
.crew-steps li b { font-family: var(--mono); font-size: 13px; color: var(--ink); }
@media (max-width: 900px) { .crew-head { grid-template-columns: minmax(0, 1fr); } }
/* Blockcraft sits inside the yAI pane, across both columns */
.feature-sub { border-top: 1px dashed var(--line-2); padding-top: 26px; margin-top: 6px; }

/* ---------- Renellence additions ---------- */
.metrics-wide { grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 0 0 20px; }
.case code, .feature-body code { font-family: var(--mono); font-size: 0.88em; color: var(--orange); }
.steps-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature-visual a { display: block; }
@media (max-width: 1080px) { .metrics-wide { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .steps-row { grid-template-columns: minmax(0, 1fr); } .metrics-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Skills + education ---------- */
.skills { display: grid; gap: 18px; }
.skill-group h3 { font-family: var(--mono); font-size: 14px !important; font-weight: 600; margin-bottom: 10px !important; color: var(--ink-2); }
.edu { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: center; }
.edu-mark { width: 52px; height: 52px; border-radius: 10px; display: grid; place-items: center; font-family: var(--mono); font-weight: 700; color: var(--bg); background: var(--orange); }
.edu h3 { margin-bottom: 4px !important; }
.edu p { color: var(--ink-2); }
.edu-gpa { text-align: right; font-family: var(--mono); }
.edu-gpa b { display: block; font-size: 28px; color: var(--green); line-height: 1; }
.edu-gpa span { font-size: 11px; color: var(--muted); }

/* ---------- Contact ---------- */
.contact { padding-bottom: 40px; }
.contact-title { margin-bottom: 12px; }
.contact-lede { color: var(--ink-2); max-width: 620px; font-size: 16.5px; margin-bottom: 24px; }
.contact-email {
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-family: var(--mono); font-size: clamp(15px, 2.4vw, 22px); color: var(--ink);
  padding: 14px 18px; border-radius: 9px; background: var(--pane); border: 1px solid var(--line-2);
  transition: border-color .15s;
}
.contact-email:hover { border-color: var(--accent); }
.contact-email .prompt::after { content: ""; }
.contact-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 22px; font-family: var(--mono); font-size: 13px; }
.contact-links a { color: var(--accent); }
.contact-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-note { margin-top: 36px; font-family: var(--mono); font-size: 12px; color: var(--faint); }

/* ---------- Status bar ---------- */
.statusbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; height: 28px;
  display: flex; align-items: center; gap: 2px; padding: 0 8px;
  background: var(--accent); color: var(--bg);
  font-family: var(--mono); font-size: 11.5px;
}
.sb-item { display: inline-flex; align-items: center; gap: 7px; padding: 0 9px; height: 100%; white-space: nowrap; }
.sb-item .dot { width: 7px; height: 7px; background: var(--bg); box-shadow: none; }
.sb-branch { background: color-mix(in srgb, var(--bg) 18%, transparent); }
.sb-spacer { flex: 1; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .cursor { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Narrower screens ---------- */
@media (max-width: 1080px) {
  .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature, .feature-flip, .case-media { grid-template-columns: minmax(0, 1fr); }
  .feature-visuals { position: static; }
}
@media (max-width: 900px) {
  .workbench { grid-template-columns: minmax(0, 1fr); }
  .explorer { display: none; }
  .flow { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .flow-arrow { width: 2px; height: 16px; justify-self: center; background: linear-gradient(180deg, var(--line-2), var(--accent)); margin: 0; }
  .flow-arrow::after { content: "⌄"; right: -5px; top: 2px; }
  .case-pair { grid-template-columns: minmax(0, 1fr); gap: 0; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .titlebar-inner { padding: 0 12px; gap: 10px; }
  .lights { display: none; }
  .titlebar .btn-sm { display: none; }
  .editor { padding: 0 16px 32px; }
  .hero { padding: 26px 0 40px; }
  .term-body { font-size: 12px; padding: 14px; min-height: 0; }
  .pane { padding: 48px 16px 18px; }
  .case-grid { grid-template-columns: minmax(0, 1fr); }
  .role { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .edu { grid-template-columns: auto minmax(0, 1fr); }
  .edu-gpa { grid-column: 1 / -1; text-align: left; }
  .metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .metrics b { font-size: 18px; }
  .feature-thumbs { grid-template-columns: minmax(0, 1fr); }
  .sb-hide { display: none; }
}

@media (max-width: 560px) { .feature-thumbs-3 { grid-template-columns: 1fr 1fr; } }
