/* ==========================================================================
   Liyu Getaneh Berhanu — Portfolio
   Hand-built design system: warm ivory + roasted-coffee dark mode,
   Ethiopian tibeb borders, Ge'ez accents.
   ========================================================================== */

/* Self-hosted fonts: Fraunces, Inter, JetBrains Mono (SIL OFL) and Noto Serif Ethiopic (SIL OFL) */
/* fraunces italic latin-ext */
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/fraunces-italic-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* fraunces italic latin */
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/fraunces-italic-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* fraunces normal latin-ext */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/fraunces-normal-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* fraunces normal latin */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/fraunces-normal-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* inter normal latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/inter-normal-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* inter normal latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/inter-normal-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* jbmono normal latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/jbmono-normal-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* jbmono normal latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/jbmono-normal-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* geez normal ethiopic */
@font-face {
  font-family: 'Noto Serif Ethiopic';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/geez-normal-ethiopic.woff2") format('woff2');
  unicode-range: U+030E, U+1200-1399, U+2D80-2DDE, U+AB01-AB2E, U+1E7E0-1E7E6, U+1E7E8-1E7EB, U+1E7ED-1E7EE, U+1E7F0-1E7FE;
}

/* ---------- Tokens ---------- */
:root {
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-geez: "Noto Serif Ethiopic", "Abyssinica SIL", "Nyala", "Ebrima", "Kefa", serif;

  --bg: #F7F2E8;
  --bg-2: #EFE7D8;
  --surface: #FFFCF6;
  --surface-2: #F9F3E8;
  --ink: #1C1813;
  --ink-2: #4A4238;
  --muted: #776C5E;
  --line: #E4D9C7;
  --line-2: #D3C4AC;
  --green: #0A7A4C;
  --green-2: #0C8F59;
  --green-soft: #DCEFE3;
  --gold: #D99A0B;
  --gold-ink: #8A5C00;
  --gold-soft: #F8E7B8;
  --red: #C23A2C;
  --red-soft: #F6DCD6;
  --coffee: #5E3A22;
  --accent: var(--green);
  --on-accent: #FFFFFF;
  --btn-bg: #1C1813;
  --btn-ink: #FFFCF6;
  --glass: rgba(247, 242, 232, 0.78);
  --shadow-sm: 0 1px 2px rgba(64, 42, 18, 0.06), 0 1px 1px rgba(64, 42, 18, 0.04);
  --shadow: 0 14px 34px -18px rgba(64, 42, 18, 0.35), 0 2px 6px rgba(64, 42, 18, 0.06);
  --shadow-lg: 0 40px 80px -30px rgba(64, 42, 18, 0.45);
  --grain-opacity: 0.05;
  --tibeb: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='24' viewBox='0 0 64 24'%3E%3Crect width='64' height='2' fill='%230A7A4C'/%3E%3Crect y='4' width='64' height='1' fill='%23D99A0B'/%3E%3Crect y='19' width='64' height='1' fill='%23D99A0B'/%3E%3Crect y='22' width='64' height='2' fill='%23C23A2C'/%3E%3Cpath d='M16 6l6 6-6 6-6-6z' fill='%23C23A2C'/%3E%3Cpath d='M16 9l3 3-3 3-3-3z' fill='%23D99A0B'/%3E%3Cpath d='M48 6l6 6-6 6-6-6z' fill='%230A7A4C'/%3E%3Cpath d='M48 9l3 3-3 3-3-3z' fill='%23D99A0B'/%3E%3Cpath d='M32 8v8M28 12h8M0 8v8M-4 12h8M64 8v8M60 12h8' stroke='%231C1813' stroke-width='1.5'/%3E%3Cpath d='M8 10.5l1.5 1.5-1.5 1.5-1.5-1.5zM24 10.5l1.5 1.5-1.5 1.5-1.5-1.5zM40 10.5l1.5 1.5-1.5 1.5-1.5-1.5zM56 10.5l1.5 1.5-1.5 1.5-1.5-1.5z' fill='%231C1813'/%3E%3C/svg%3E");

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --maxw: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 68px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0F0D0A;
  --bg-2: #15120E;
  --surface: #1A1612;
  --surface-2: #211C16;
  --ink: #F2ECE1;
  --ink-2: #CFC5B5;
  --muted: #9E9383;
  --line: #2D2720;
  --line-2: #3D352B;
  --green: #3CC486;
  --green-2: #5BD69C;
  --green-soft: #12291D;
  --gold: #F2B635;
  --gold-ink: #F2B635;
  --gold-soft: #33280F;
  --red: #F06A5B;
  --red-soft: #33170F;
  --coffee: #D5A172;
  --accent: var(--green);
  --on-accent: #06140D;
  --btn-bg: #F2ECE1;
  --btn-ink: #14110D;
  --glass: rgba(15, 13, 10, 0.72);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.8), 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 40px 90px -30px rgba(0, 0, 0, 0.9);
  --grain-opacity: 0.08;
  --tibeb: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='24' viewBox='0 0 64 24'%3E%3Crect width='64' height='2' fill='%232FB277'/%3E%3Crect y='4' width='64' height='1' fill='%23F2B635'/%3E%3Crect y='19' width='64' height='1' fill='%23F2B635'/%3E%3Crect y='22' width='64' height='2' fill='%23E0513F'/%3E%3Cpath d='M16 6l6 6-6 6-6-6z' fill='%23E0513F'/%3E%3Cpath d='M16 9l3 3-3 3-3-3z' fill='%23F2B635'/%3E%3Cpath d='M48 6l6 6-6 6-6-6z' fill='%232FB277'/%3E%3Cpath d='M48 9l3 3-3 3-3-3z' fill='%23F2B635'/%3E%3Cpath d='M32 8v8M28 12h8M0 8v8M-4 12h8M64 8v8M60 12h8' stroke='%23F2ECE1' stroke-width='1.5'/%3E%3Cpath d='M8 10.5l1.5 1.5-1.5 1.5-1.5-1.5zM24 10.5l1.5 1.5-1.5 1.5-1.5-1.5zM40 10.5l1.5 1.5-1.5 1.5-1.5-1.5zM56 10.5l1.5 1.5-1.5 1.5-1.5-1.5z' fill='%23F2ECE1'/%3E%3C/svg%3E");
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F0D0A;
    --bg-2: #15120E;
    --surface: #1A1612;
    --surface-2: #211C16;
    --ink: #F2ECE1;
    --ink-2: #CFC5B5;
    --muted: #9E9383;
    --line: #2D2720;
    --line-2: #3D352B;
    --green: #3CC486;
    --green-2: #5BD69C;
    --green-soft: #12291D;
    --gold: #F2B635;
    --gold-ink: #F2B635;
    --gold-soft: #33280F;
    --red: #F06A5B;
    --red-soft: #33170F;
    --coffee: #D5A172;
    --accent: var(--green);
    --on-accent: #06140D;
    --btn-bg: #F2ECE1;
    --btn-ink: #14110D;
    --glass: rgba(15, 13, 10, 0.72);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.8), 0 2px 8px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 40px 90px -30px rgba(0, 0, 0, 0.9);
    --grain-opacity: 0.08;
    --tibeb: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='24' viewBox='0 0 64 24'%3E%3Crect width='64' height='2' fill='%232FB277'/%3E%3Crect y='4' width='64' height='1' fill='%23F2B635'/%3E%3Crect y='19' width='64' height='1' fill='%23F2B635'/%3E%3Crect y='22' width='64' height='2' fill='%23E0513F'/%3E%3Cpath d='M16 6l6 6-6 6-6-6z' fill='%23E0513F'/%3E%3Cpath d='M16 9l3 3-3 3-3-3z' fill='%23F2B635'/%3E%3Cpath d='M48 6l6 6-6 6-6-6z' fill='%232FB277'/%3E%3Cpath d='M48 9l3 3-3 3-3-3z' fill='%23F2B635'/%3E%3Cpath d='M32 8v8M28 12h8M0 8v8M-4 12h8M64 8v8M60 12h8' stroke='%23F2ECE1' stroke-width='1.5'/%3E%3Cpath d='M8 10.5l1.5 1.5-1.5 1.5-1.5-1.5zM24 10.5l1.5 1.5-1.5 1.5-1.5-1.5zM40 10.5l1.5 1.5-1.5 1.5-1.5-1.5zM56 10.5l1.5 1.5-1.5 1.5-1.5-1.5z' fill='%23F2ECE1'/%3E%3C/svg%3E");
    color-scheme: dark;
  }
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.3 0 0 0 0 0.2 0 0 0 0 0.1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 560; line-height: 1.08; letter-spacing: -0.015em; font-optical-sizing: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
kbd {
  font-family: var(--font-mono);
  font-size: 0.72em;
  padding: 0.1em 0.45em;
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink-2);
  white-space: nowrap;
}
code { font-family: var(--font-mono); font-size: 0.88em; background: var(--surface-2); border: 1px solid var(--line); padding: 0.08em 0.4em; border-radius: 6px; }
::selection { background: var(--gold-soft); color: var(--ink); }
[hidden] { display: none !important; }
:focus-visible { outline: 2.5px solid var(--green); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
[lang="am"], .geez { font-family: var(--font-geez); letter-spacing: 0; }

.i { width: 1.15em; height: 1.15em; flex-shrink: 0; display: inline-block; vertical-align: -0.2em; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container.narrow { max-width: calc(820px + var(--gutter) * 2); }
.section { padding-block: clamp(72px, 9vw, 128px); position: relative; }
.section.tight { padding-block: clamp(48px, 6vw, 80px); }
.section.alt { background: var(--bg-2); }
.stack > * + * { margin-top: var(--stack, 1rem); }
.grid { display: grid; gap: clamp(16px, 2.2vw, 24px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--btn-bg); color: var(--btn-ink); padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 600; transition: top 0.2s; }
.skip-link:focus { top: 12px; }

/* ---------- Eyebrow / headings ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  margin: 0 0 18px;
}
.eyebrow .num { font-family: var(--font-geez); font-size: 16px; letter-spacing: 0; color: var(--gold-ink); text-transform: none; }
.eyebrow .am { font-family: var(--font-geez); letter-spacing: 0.02em; text-transform: none; font-size: 14px; color: var(--green); }
.eyebrow .sep { width: 18px; height: 1px; background: currentColor; opacity: 0.5; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head h2 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
.section-head .lede { grid-column: 1 / -1; max-width: 62ch; color: var(--ink-2); font-size: 1.1rem; margin: 6px 0 0; }
.section-head .more { white-space: nowrap; }
@media (max-width: 640px) { .section-head { grid-template-columns: 1fr; } }
.lede { font-size: clamp(1.08rem, 1.6vw, 1.22rem); color: var(--ink-2); line-height: 1.6; }
.muted { color: var(--muted); }
.accent-dot { color: var(--gold); }

/* ---------- Tibeb (woven Ethiopian border) ---------- */
.tibeb { height: 24px; background-image: var(--tibeb); background-repeat: repeat-x; background-size: auto 24px; background-position: center; }
.tibeb.slim { height: 16px; background-size: auto 16px; }
.tibeb.anim { animation: tibeb-slide 40s linear infinite; }
@keyframes tibeb-slide { to { background-position: 640px center; } }
.flag-bar { display: inline-block; width: 26px; height: 8px; border-radius: 2px; vertical-align: middle; background: linear-gradient(180deg, var(--green) 0 33.3%, var(--gold) 33.3% 66.6%, var(--red) 66.6% 100%); }

/* ---------- Buttons, chips, tags ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 46px; padding: 0 20px; border-radius: 999px;
  font-weight: 600; font-size: 15.5px; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--btn-bg); color: var(--btn-ink); box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--green); color: var(--on-accent); }
.btn-accent { background: var(--green); color: var(--on-accent); box-shadow: var(--shadow); }
.btn-accent:hover { background: var(--green-2); }
.btn-ghost { border-color: var(--line-2); background: var(--surface); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn .i { width: 18px; height: 18px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--green); text-decoration: none; }
.link-arrow .i { transition: transform 0.2s var(--ease); width: 18px; height: 18px; }
.link-arrow:hover .i { transform: translateX(4px); }
.link-arrow:hover { text-decoration: underline; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px 6px 10px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 13.5px; font-weight: 500; color: var(--ink-2); line-height: 1.3;
}
.chip .i { color: var(--gold-ink); width: 16px; height: 16px; }
.chip b { color: var(--ink); font-weight: 650; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tag { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.02em; padding: 3px 9px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; min-width: 40px; padding: 0 10px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  transition: border-color 0.2s, background-color 0.2s, transform 0.2s;
}
.icon-btn:hover { border-color: var(--line-2); transform: translateY(-1px); }
.icon-btn .i { width: 18px; height: 18px; }
.icon-btn kbd { font-size: 11px; }

.socials { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 22px; }
.socials a { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; }
.socials a:hover { color: var(--green); }
.socials .i { width: 18px; height: 18px; }

/* ---------- Cards ---------- */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 2.4vw, 28px);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
  isolation: isolate;
}
.card.hover:hover, a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-2); }
a.card { text-decoration: none; color: inherit; display: block; }
.spot::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; opacity: 0; transition: opacity 0.3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--gold) 16%, transparent), transparent 55%);
}
.spot:hover::before { opacity: 1; }
.card h3 { font-size: 1.45rem; margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }

/* ---------- Header ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 120; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--green) 0 33.3%, var(--gold) 33.3% 66.6%, var(--red) 66.6% 100%); }
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: var(--glass);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background-color 0.3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; min-width: 0; }
.brand picture, .brand img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.brand picture { position: relative; flex-shrink: 0; }
.brand picture::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 1.5px solid var(--gold); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 17.5px; letter-spacing: -0.01em; white-space: nowrap; }
.brand-sub { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.nav ul { list-style: none; display: flex; gap: 2px; }
.nav a {
  display: block; padding: 8px 12px; border-radius: 10px;
  font-size: 14.5px; font-weight: 500; color: var(--ink-2); text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: inline-block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: inline-block; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
}
.menu-btn { display: none; }
@media (max-width: 1060px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 520px) {
  .brand-sub { display: none; }
  .brand-name { font-size: 16px; }
  .kbd-btn kbd { display: none; }
}
@media (max-width: 380px) { .brand-text { display: none; } }

.mobile-menu {
  position: fixed; inset: 0; z-index: 150;
  background: var(--bg);
  display: flex; flex-direction: column;
  padding: 18px var(--gutter) 28px;
  overflow-y: auto;
}
.mobile-menu-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.mobile-menu ul { list-style: none; display: grid; gap: 4px; margin-top: 8px; }
.mobile-menu li a {
  display: flex; align-items: baseline; gap: 14px; padding: 12px 4px;
  font-family: var(--font-display); font-size: clamp(1.9rem, 8vw, 2.6rem); text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.mobile-menu li a .num { font-family: var(--font-geez); font-size: 1rem; color: var(--gold-ink); min-width: 24px; }
.mobile-menu li a[aria-current="page"] { color: var(--green); }
.mobile-menu .socials { margin-top: 28px; }
.mobile-menu .tibeb { margin-top: auto; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(36px, 5vw, 64px); overflow: hidden; }
.page-hero h1 { font-size: clamp(2.8rem, 7vw, 5.4rem); letter-spacing: -0.025em; }
.page-hero h1 em { font-style: italic; font-weight: 450; color: var(--green); }
.page-hero .lede { max-width: 60ch; margin-top: 20px; }
.page-hero .watermark {
  position: absolute; right: -0.04em; top: 50%; transform: translateY(-46%);
  font-family: var(--font-geez); font-weight: 700; font-size: clamp(7rem, 20vw, 17rem); line-height: 1;
  color: var(--ink); opacity: 0.045; pointer-events: none; user-select: none; white-space: nowrap;
}
.page-hero .hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

/* ---------- Home hero ---------- */
.hero { position: relative; overflow: hidden; min-height: min(calc(100svh - var(--header-h)), 900px); display: flex; align-items: center; padding-block: clamp(40px, 6vw, 72px) clamp(56px, 7vw, 96px); }
.fidel-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(100deg, rgba(0,0,0,.22) 0%, rgba(0,0,0,.3) 38%, #000 62%, #000 100%);
  mask-image: linear-gradient(100deg, rgba(0,0,0,.22) 0%, rgba(0,0,0,.3) 38%, #000 62%, #000 100%); }
@media (max-width: 900px) { .fidel-canvas { -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 34%, rgba(0,0,0,.18) 52%, rgba(0,0,0,.18) 100%); mask-image: linear-gradient(180deg, #000 0%, #000 34%, rgba(0,0,0,.18) 52%, rgba(0,0,0,.18) 100%); } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(640px 420px at 88% 8%, color-mix(in srgb, var(--gold) 18%, transparent), transparent 70%),
    radial-gradient(560px 420px at 0% 100%, color-mix(in srgb, var(--green) 12%, transparent), transparent 70%);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.status { display: inline-flex; align-items: center; gap: 10px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 color-mix(in srgb, var(--green) 60%, transparent); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--green) 55%, transparent); } 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.hero h1 { font-size: clamp(3.1rem, 7.2vw, 5.6rem); line-height: 0.98; letter-spacing: -0.03em; font-weight: 580; position: relative; }
.hero h1 .line { display: block; }
.hero h1 .dot { color: var(--gold); }
.name-mark {
  display: inline-flex; align-items: center; gap: 6px; vertical-align: super;
  font-family: var(--font-sans); font-size: 12px; font-weight: 600; letter-spacing: 0.02em;
  padding: 4px 10px 4px 8px; margin-left: 10px; border-radius: 999px;
  background: var(--green-soft); color: var(--green); border: 1px solid color-mix(in srgb, var(--green) 30%, transparent);
  position: relative; top: -0.9em; white-space: nowrap; cursor: help;
}
.name-mark .geez { font-size: 15px; font-weight: 700; }
.typed { margin: 22px 0 18px; font-size: clamp(1.25rem, 2.3vw, 1.7rem); font-family: var(--font-display); font-weight: 450; color: var(--ink-2); min-height: 1.5em; }
.typed .typed-text { font-style: italic; color: var(--ink); background: linear-gradient(transparent 62%, var(--gold-soft) 62%); padding: 0 2px; }
.typed .caret { display: inline-block; width: 2px; height: 1.05em; background: var(--green); margin-left: 3px; vertical-align: -0.12em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero .lede { max-width: 58ch; }
.hero .chips { margin: 22px 0 28px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.portrait-wrap { position: relative; justify-self: center; width: min(100%, 440px); }
.portrait {
  position: relative; aspect-ratio: 4 / 5; width: 100%;
  border-radius: 999px 999px 26px 26px / 44% 44% 26px 26px;
  overflow: hidden; background: var(--bg-2);
  box-shadow: var(--shadow-lg);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait-frame {
  position: absolute; inset: -12px; pointer-events: none;
  border-radius: 999px 999px 34px 34px / 45% 45% 34px 34px;
  border: 1.5px solid var(--gold);
}
.portrait-frame::after {
  content: ""; position: absolute; inset: -9px;
  border-radius: 999px 999px 40px 40px / 46% 46% 40px 40px;
  border: 1px dashed color-mix(in srgb, var(--gold) 55%, transparent);
}
.portrait-ribbon { position: absolute; left: -26px; right: -26px; bottom: 58px; height: 24px; box-shadow: 0 6px 16px -8px rgba(0,0,0,.4); background-color: var(--surface); transform: rotate(-3deg); }
.float-chip {
  position: absolute; display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  font-size: 13.5px; line-height: 1.25; white-space: nowrap;
  animation: bob 6s ease-in-out infinite;
}
.float-chip .i { color: var(--green); width: 20px; height: 20px; }
.float-chip b { display: block; font-size: 14.5px; }
.float-chip small { color: var(--muted); font-size: 12px; }
.float-chip.one { top: 9%; left: -14%; }
.float-chip.two { bottom: 16%; right: -12%; animation-delay: -3s; }
.float-chip .geez { color: var(--gold-ink); font-weight: 700; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.scroll-cue { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.scroll-cue span { width: 1px; height: 34px; background: linear-gradient(var(--muted), transparent); animation: cue 2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

@media (max-width: 900px) {
  .hero { min-height: 0; }
  .hero-grid { grid-template-columns: 1fr; }
  .portrait-wrap { order: -1; width: min(78%, 340px); margin-top: 10px; }
  .float-chip.one { left: -18%; top: 6%; }
  .float-chip.two { right: -16%; }
  .scroll-cue { display: none; }
}
@media (max-width: 520px) {
  .float-chip { font-size: 12px; padding: 8px 10px; }
  .float-chip b { font-size: 13px; }
  .float-chip.one { left: -12%; }
  .float-chip.two { right: -10%; bottom: 12%; }
  .name-mark { display: none; }
}

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); background: var(--surface); overflow: hidden; position: relative; }
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { list-style: none; display: flex; align-items: center; }
.marquee li { display: flex; align-items: center; gap: 22px; padding: 16px 0 16px 22px; font-family: var(--font-mono); font-size: 13.5px; letter-spacing: 0.04em; color: var(--ink-2); white-space: nowrap; }
.marquee li::after { content: ""; width: 9px; height: 9px; transform: rotate(45deg); background: var(--gold); box-shadow: inset 0 0 0 2px var(--surface), 0 0 0 1px var(--red); }
.marquee li:nth-child(3n+2)::after { background: var(--green); }
.marquee li:nth-child(3n)::after { background: var(--red); box-shadow: inset 0 0 0 2px var(--surface), 0 0 0 1px var(--gold); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.stat { padding: clamp(20px, 2.5vw, 30px); border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat-num { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 600; line-height: 1; letter-spacing: -0.03em; display: flex; align-items: baseline; gap: 2px; }
.stat-num .unit { font-size: 0.55em; color: var(--gold-ink); font-weight: 600; }
.stat p { margin: 12px 0 0; font-size: 14.5px; color: var(--ink-2); line-height: 1.45; }
@media (max-width: 960px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { border-bottom: 1px solid var(--line); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:last-child { grid-column: 1 / -1; border-bottom: 0; }
}

/* ---------- Pillars ---------- */
.pillar .icon-bubble { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; background: var(--green-soft); color: var(--green); }
.pillar:nth-child(2) .icon-bubble { background: var(--gold-soft); color: var(--gold-ink); }
.pillar:nth-child(3) .icon-bubble { background: var(--red-soft); color: var(--red); }
.pillar .icon-bubble .i { width: 24px; height: 24px; }
.pillar p { color: var(--ink-2); }

/* ---------- Project cards ---------- */
.project { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.project .cover { position: relative; height: 190px; border-bottom: 1px solid var(--line); background: var(--surface-2); overflow: hidden; }
.project .cover > svg { width: 100%; height: 100%; }
.project .cover .badge { position: absolute; top: 14px; left: 14px; }
.project .body { padding: clamp(20px, 2.4vw, 28px); display: flex; flex-direction: column; flex: 1; }
.project .meta { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.project h3 { font-size: 1.6rem; }
.project p { color: var(--ink-2); }
.project .metrics { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 6px 0 4px; }
.project .metrics div { display: flex; flex-direction: column; }
.project .metrics b { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.1; }
.project .metrics span { font-size: 12.5px; color: var(--muted); }
.project .tags { margin-top: auto; padding-top: 16px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); box-shadow: var(--shadow-sm); }
.badge .i { width: 14px; height: 14px; color: var(--gold-ink); }
.cover-art .c-green { fill: var(--green); } .cover-art .c-gold { fill: var(--gold); } .cover-art .c-red { fill: var(--red); } .cover-art .c-ink { fill: var(--ink); }
.cover-art .s-green { stroke: var(--green); } .cover-art .s-gold { stroke: var(--gold); } .cover-art .s-red { stroke: var(--red); } .cover-art .s-ink { stroke: var(--ink); } .cover-art .s-line { stroke: var(--line-2); } .cover-art .c-line { fill: var(--line-2); } .cover-art .c-surface { fill: var(--surface); }

/* ---------- Timelines ---------- */
.xp-list { list-style: none; border-top: 1px solid var(--line); }
.xp-list li { border-bottom: 1px solid var(--line); }
.xp-list a { display: grid; grid-template-columns: 170px minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 20px 8px; text-decoration: none; transition: background-color 0.25s, padding 0.25s var(--ease); border-radius: 12px; }
.xp-list a:hover { background: var(--surface); padding-inline: 16px; }
.xp-list .when { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.xp-list .what b { display: block; font-family: var(--font-display); font-size: 1.3rem; font-weight: 560; line-height: 1.2; }
.xp-list .what span { color: var(--ink-2); font-size: 15px; }
.xp-list .go { color: var(--muted); }
.xp-list a:hover .go { color: var(--green); }
@media (max-width: 640px) { .xp-list a { grid-template-columns: 1fr auto; } .xp-list .when { grid-column: 1 / -1; } }

.timeline { position: relative; display: grid; gap: 22px; }
.timeline::before { content: ""; position: absolute; left: 27px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--green), var(--gold), var(--red)); opacity: 0.55; border-radius: 2px; }
.tl-item { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 22px; }
.tl-mark { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 650; font-size: 17px; letter-spacing: -0.02em; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); position: relative; z-index: 1; color: var(--ink); }
.tl-mark.g { background: var(--green); color: var(--on-accent); border-color: transparent; }
.tl-mark.y { background: var(--gold); color: #1C1813; border-color: transparent; }
.tl-mark.r { background: var(--red); color: #fff; border-color: transparent; }
.tl-mark.k { background: var(--btn-bg); color: var(--btn-ink); border-color: transparent; }
.role-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; align-items: baseline; }
.role-head h3 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); }
.role-dates { font-family: var(--font-mono); font-size: 13px; color: var(--muted); white-space: nowrap; }
.role-org { font-weight: 600; margin: 4px 0 2px; }
.role-sub { color: var(--muted); font-size: 14.5px; margin-bottom: 14px; }
.bullets { list-style: none; display: grid; gap: 9px; }
.bullets li { position: relative; padding-left: 22px; color: var(--ink-2); }
.bullets li::before { content: ""; position: absolute; left: 3px; top: 0.62em; width: 7px; height: 7px; transform: rotate(45deg); background: var(--gold); }
.bullets li:nth-child(3n+2)::before { background: var(--green); }
.bullets li:nth-child(3n)::before { background: var(--red); }
.bullets strong { color: var(--ink); font-weight: 650; }
@media (max-width: 640px) {
  .timeline::before { left: 19px; }
  .tl-item { grid-template-columns: 40px minmax(0, 1fr); gap: 14px; }
  .tl-mark { width: 40px; height: 40px; border-radius: 12px; font-size: 13px; }
}

/* ---------- Education ---------- */
.edu-card { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 24px; }
.edu-logo { width: 84px; height: 84px; border-radius: 20px; display: grid; place-items: center; text-align: center; font-family: var(--font-display); font-weight: 650; line-height: 1; letter-spacing: -0.02em; }
.edu-logo.cmu { background: #1C1813; color: #FFFCF6; font-size: 22px; box-shadow: inset 0 -6px 0 var(--red); }
.edu-logo.cmu small { display: block; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.14em; margin-top: 6px; color: var(--gold); font-weight: 500; }
.edu-logo.ssc { background: var(--green); color: #fff; font-size: 20px; box-shadow: inset 0 -6px 0 var(--gold); }
.edu-logo.ssc small { display: block; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.14em; margin-top: 6px; color: #F8E7B8; font-weight: 500; }
.edu-card h3 { font-size: clamp(1.5rem, 2.6vw, 1.95rem); }
.edu-card .deg { font-weight: 600; margin: 6px 0 2px; }
.edu-card .where { color: var(--muted); font-size: 14.5px; margin-bottom: 16px; }
.course-list { list-style: none; display: grid; gap: 2px; margin: 10px 0 18px; }
.course-list li { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 14px; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.course-list li:last-child { border-bottom: 0; }
.course-list code { background: none; border: 0; padding: 0; color: var(--green); font-weight: 600; }
.subhead { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 18px 0 6px; }
@media (max-width: 640px) { .edu-card { grid-template-columns: 1fr; gap: 16px; } .edu-logo { width: 64px; height: 64px; font-size: 17px; border-radius: 16px; } }

.honors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.honor { display: flex; flex-direction: column; gap: 6px; }
.honor .big { font-family: var(--font-display); font-size: 2.1rem; font-weight: 600; line-height: 1; letter-spacing: -0.02em; }
.honor .big small { font-size: 0.5em; color: var(--muted); font-weight: 500; }
.honor h3 { font-size: 1.12rem; font-family: var(--font-sans); font-weight: 650; letter-spacing: 0; line-height: 1.3; margin: 6px 0 0; }
.honor p { font-size: 14.5px; color: var(--ink-2); margin: 0; }
.honor .i-wrap { color: var(--gold-ink); }
@media (max-width: 960px) { .honors { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .honors { grid-template-columns: 1fr; } }

.journey { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; position: relative; margin-top: 10px; }
.journey::before { content: ""; position: absolute; left: 0; right: 0; top: 13px; height: 2px; background: linear-gradient(90deg, var(--green), var(--gold), var(--red)); opacity: 0.6; }
.journey li { position: relative; padding: 42px 16px 0 0; }
.journey li::before { content: ""; position: absolute; top: 6px; left: 0; width: 16px; height: 16px; transform: rotate(45deg); background: var(--surface); border: 2px solid var(--gold); }
.journey li:last-child::before { background: var(--green); border-color: var(--green); }
.journey .yr { font-family: var(--font-mono); font-size: 13px; color: var(--gold-ink); font-weight: 600; }
.journey b { display: block; font-family: var(--font-display); font-size: 1.15rem; font-weight: 560; margin: 4px 0; line-height: 1.25; }
.journey span { font-size: 14px; color: var(--ink-2); }
@media (max-width: 900px) {
  .journey { grid-template-columns: 1fr; gap: 20px; padding-left: 30px; }
  .journey::before { left: 7px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: linear-gradient(var(--green), var(--gold), var(--red)); }
  .journey li { padding: 0; }
  .journey li::before { left: -30px; top: 4px; }
}

/* ---------- Culture ---------- */
.culture-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (max-width: 900px) { .culture-grid { grid-template-columns: 1fr; } }
.facts { list-style: none; display: grid; gap: 14px; margin: 22px 0 28px; }
.facts li { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 14px; align-items: start; }
.facts .i-box { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--green); }
.facts .i-box .i { width: 19px; height: 19px; }
.facts b { display: block; }
.facts span { color: var(--ink-2); font-size: 15px; }

.eth-clock { display: grid; gap: 10px; }
.eth-clock .top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.eth-clock .top .eyebrow { margin: 0; }
.eth-time { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.eth-time .t { font-family: var(--font-display); font-size: clamp(3rem, 7vw, 4.4rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.eth-time .period { font-family: var(--font-geez); font-size: 1.5rem; color: var(--green); font-weight: 700; }
.eth-time .period-en { font-size: 14px; color: var(--muted); }
.eth-date-geez { font-family: var(--font-geez); font-size: 1.35rem; font-weight: 600; color: var(--gold-ink); }
.eth-row { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14.5px; color: var(--ink-2); }
.eth-row b { color: var(--ink); }
.eth-note { font-size: 14px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 12px; margin: 4px 0 0; }
.live-dot { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green); }

/* Boarding pass */
.pass { display: grid; grid-template-columns: minmax(0, 1fr) 150px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; position: relative; transform-style: preserve-3d; transition: transform 0.4s var(--ease); }
.pass::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: linear-gradient(90deg, var(--green) 0 33.3%, var(--gold) 33.3% 66.6%, var(--red) 66.6% 100%); }
.pass-main { padding: 24px 24px 20px; }
.pass-top { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.pass-top .airline { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; }
.pass-top .i { color: var(--green); }
.pass-route { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; margin: 18px 0 16px; }
.pass-route .code { display: block; font-family: var(--font-display); font-size: clamp(2.2rem, 4.5vw, 2.8rem); font-weight: 650; letter-spacing: -0.02em; line-height: 1; }
.pass-route .city { display: block; font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.pass-route .to { text-align: right; }
.pass-path { position: relative; height: 44px; }
.pass-path svg.arc { width: 100%; height: 100%; overflow: visible; }
.pass-path .arc path { fill: none; stroke: var(--line-2); stroke-width: 1.6; stroke-dasharray: 4 5; }
.pass-path .plane { position: absolute; top: 0; left: 0; width: 22px; height: 22px; color: var(--green); offset-path: path("M5 36 Q 100 -8 195 36"); offset-rotate: auto 45deg; animation: fly 6s var(--ease) infinite; }
@keyframes fly { 0% { offset-distance: 0%; opacity: 0; } 10% { opacity: 1; } 85% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
.pass-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 16px; margin: 0; }
.pass-grid dt { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.pass-grid dd { margin: 2px 0 0; font-weight: 650; font-size: 15px; }
.pass-stub { position: relative; border-left: 2px dashed var(--line-2); padding: 24px 18px 20px; display: flex; flex-direction: column; gap: 8px; background: var(--surface-2); }
.pass-stub::before, .pass-stub::after { content: ""; position: absolute; left: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); }
.pass-stub::before { top: -13px; } .pass-stub::after { bottom: -13px; }
.stub-label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.stub-big { font-family: var(--font-display); font-weight: 650; font-size: 1.25rem; }
.barcode { height: 54px; margin-top: auto; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px, var(--ink) 8px 11px, transparent 11px 12px, var(--ink) 12px 13px, transparent 13px 16px); opacity: 0.85; border-radius: 2px; }
.stub-note { font-size: 11.5px; color: var(--muted); line-height: 1.35; }
@media (max-width: 560px) {
  .pass { grid-template-columns: 1fr; }
  .pass-stub { border-left: 0; border-top: 2px dashed var(--line-2); flex-direction: row; flex-wrap: wrap; align-items: center; }
  .pass-stub::before { left: -13px; top: -13px; } .pass-stub::after { left: auto; right: -13px; top: -13px; bottom: auto; }
  .barcode { width: 100%; height: 40px; }
  .pass-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Coffee ceremony */
.buna { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (max-width: 900px) { .buna { grid-template-columns: 1fr; } }
.buna-stage { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 24px 22px; box-shadow: var(--shadow-sm); overflow: hidden; }
.buna-stage::before { content: ""; position: absolute; inset: auto 0 0 0; height: 90px; background: linear-gradient(transparent, color-mix(in srgb, var(--gold) 10%, transparent)); }
.buna-scene { position: relative; display: grid; grid-template-columns: 130px minmax(0, 1fr); align-items: end; gap: 12px; min-height: 210px; }
.jebena { width: 130px; height: 190px; overflow: visible; transform-origin: 70% 80%; transition: transform 0.6s var(--ease); }
.buna[data-pouring="true"] .jebena { transform: rotate(-16deg) translate(6px, -4px); }
.jebena .body { fill: var(--ink); }
.jebena .band { fill: none; stroke: var(--gold); stroke-width: 2.4; }
.jebena .shine { fill: none; stroke: var(--surface); stroke-width: 3; stroke-linecap: round; opacity: 0.25; }
.cups { display: flex; justify-content: space-around; gap: 8px; align-items: flex-end; }
.cup-btn { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 6px 6px; border-radius: 14px; border: 1px solid transparent; transition: background-color 0.25s, border-color 0.25s, transform 0.25s; min-width: 78px; }
.cup-btn:hover { background: var(--surface-2); transform: translateY(-3px); }
.cup-btn[aria-selected="true"] { background: var(--surface-2); border-color: var(--line); }
.cup { width: 58px; height: 52px; overflow: visible; }
.cup .cup-body { fill: var(--surface); stroke: var(--ink); stroke-width: 2; }
.cup .coffee { fill: var(--coffee); transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0.05); transition: transform 1.1s var(--ease) 0.25s; }
.cup-btn.filled .coffee { transform: scaleY(1); }
.cup .saucer { fill: var(--line-2); }
.cup .steam path { fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linecap: round; opacity: 0; }
.cup-btn[aria-selected="true"].filled .steam path { animation: steam 2.6s ease-in-out infinite; }
.cup-btn[aria-selected="true"].filled .steam path:nth-child(2) { animation-delay: 0.8s; }
.cup-btn[aria-selected="true"].filled .steam path:nth-child(3) { animation-delay: 1.6s; }
@keyframes steam { 0% { opacity: 0; transform: translateY(6px); } 40% { opacity: 0.7; } 100% { opacity: 0; transform: translateY(-10px); } }
.cup-am { font-family: var(--font-geez); font-weight: 700; font-size: 1.05rem; line-height: 1.1; }
.cup-en { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.pour { position: absolute; left: 118px; top: 58px; width: 4px; height: 0; border-radius: 4px; background: linear-gradient(var(--coffee), color-mix(in srgb, var(--coffee) 70%, transparent)); opacity: 0; transition: height 0.5s var(--ease), opacity 0.3s; }
.buna[data-pouring="true"] .pour { opacity: 1; height: 120px; }
.buna-caption { margin: 16px 0 0; font-size: 14px; color: var(--muted); text-align: center; position: relative; }
.round { animation: fadeUp 0.6s var(--ease); }
.round .kicker { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-ink); }
.round h3 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin: 8px 0 14px; }
.round h3 .geez { color: var(--green); margin-right: 10px; }
.round p { color: var(--ink-2); font-size: 1.05rem; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Fidel explorer + converter */
.fidel-picker { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 18px; }
.fidel-picker button { font-family: var(--font-geez); font-size: 1.2rem; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); transition: all 0.2s; }
.fidel-picker button:hover { border-color: var(--line-2); transform: translateY(-2px); }
.fidel-picker button[aria-pressed="true"] { background: var(--green); color: var(--on-accent); border-color: transparent; }
.fidel-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.fidel-cell { border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); padding: 12px 4px 10px; text-align: center; animation: fadeUp 0.45s var(--ease) both; }
.fidel-cell .g { display: block; font-family: var(--font-geez); font-size: clamp(1.6rem, 3.4vw, 2.3rem); line-height: 1.2; font-weight: 600; }
.fidel-cell .t { display: block; font-family: var(--font-sans); font-size: 13px; color: var(--muted); margin-top: 4px; }
.my-name { margin: 18px 0 0; font-size: 15px; color: var(--ink-2); }
.my-name .geez { font-size: 1.25rem; color: var(--ink); font-weight: 600; margin-right: 6px; }
.converter { display: grid; gap: 14px; }
.converter label { font-weight: 600; font-size: 15px; }
.converter input[type="date"] { height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--ink); max-width: 260px; }
.converter .out { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; line-height: 1.2; }
.converter .out .geez { display: block; font-size: 1.1rem; color: var(--gold-ink); margin-top: 6px; font-weight: 600; }
.converter .note { font-size: 14px; color: var(--muted); margin: 0; }

.interest { display: flex; gap: 16px; align-items: flex-start; }
.interest .i-box { flex-shrink: 0; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); color: var(--gold-ink); }
.interest h3 { font-size: 1.2rem; margin-bottom: 4px; }
.interest p { font-size: 15px; color: var(--ink-2); margin: 0; }

.about-intro { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .about-intro { grid-template-columns: 1fr; } }
.prose p { font-size: 1.1rem; color: var(--ink-2); line-height: 1.75; }
.prose p:first-child::first-letter { font-family: var(--font-display); float: left; font-size: 4.4em; line-height: 0.82; margin: 0.06em 0.1em 0 0; color: var(--green); font-weight: 600; }
.profile-card { position: sticky; top: calc(var(--header-h) + 24px); }
.profile-card .avatar { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 3px solid var(--surface); box-shadow: 0 0 0 2px var(--gold), var(--shadow); margin-bottom: 18px; }
.kv { display: grid; gap: 0; margin: 0; }
.kv > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.kv > div:last-child { border-bottom: 0; }
.kv dt { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.kv dd { margin: 0; font-size: 15px; font-weight: 500; }

/* ---------- Terminal ---------- */
.terminal { max-width: 880px; margin-inline: auto; border-radius: 18px; overflow: hidden; background: #14110D; color: #EDE6DA; border: 1px solid #2F281F; box-shadow: var(--shadow-lg); font-family: var(--font-mono); font-size: 14.5px; }
.term-bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: #1D1914; border-bottom: 1px solid #2F281F; }
.term-bar .dots { display: flex; gap: 7px; }
.term-bar .dots i { width: 12px; height: 12px; border-radius: 50%; background: #3A332A; }
.term-bar .dots i:nth-child(1) { background: #E0513F; } .term-bar .dots i:nth-child(2) { background: #F2B635; } .term-bar .dots i:nth-child(3) { background: #2FB277; }
.term-title { font-size: 12.5px; color: #A89D8C; }
.term-hint { margin-left: auto; font-size: 12px; color: #7D7364; }
.term-body { height: 340px; overflow-y: auto; padding: 16px 18px 6px; line-height: 1.6; scrollbar-width: thin; scrollbar-color: #3A332A transparent; }
.term-body p { margin: 0 0 4px; white-space: pre-wrap; word-break: break-word; }
.term-body .cmd { color: #F2B635; }
.term-body .cmd::before { content: "liyu@cmu-q:~$ "; color: #5BD69C; }
.term-body .ok { color: #5BD69C; }
.term-body .warn { color: #F06A5B; }
.term-body .dim { color: #8E8472; }
.term-body .am { font-family: var(--font-geez); font-size: 1.15em; color: #F2B635; }
.term-body a { color: #7FD1FF; }
.term-input { display: flex; align-items: center; gap: 10px; padding: 10px 18px 16px; }
.term-input label { color: #5BD69C; white-space: nowrap; }
.term-input input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: #EDE6DA; font-family: var(--font-mono); font-size: 14.5px; caret-color: #F2B635; }
.term-quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 18px; }
.term-quick button { font-family: var(--font-mono); font-size: 12px; padding: 5px 10px; border-radius: 8px; border: 1px solid #3A332A; color: #CFC5B5; background: #1D1914; transition: all 0.2s; }
.term-quick button:hover { border-color: #F2B635; color: #F2B635; }
@media (max-width: 560px) { .term-hint { display: none; } .term-body { height: 300px; font-size: 13px; } }

/* ---------- Contact CTA ---------- */
.cta { position: relative; text-align: center; overflow: hidden; }
.cta h2 { font-size: clamp(2.4rem, 6vw, 4.6rem); max-width: 16ch; margin: 0 auto; letter-spacing: -0.03em; }
.cta h2 em { font-style: italic; font-weight: 450; color: var(--green); }
.cta .lede { max-width: 58ch; margin: 22px auto 30px; }
.cta .btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.cta .geez-bg { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-geez); font-size: clamp(10rem, 30vw, 24rem); font-weight: 700; color: var(--ink); opacity: 0.035; pointer-events: none; user-select: none; line-height: 1; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 0; background: var(--bg-2); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding-block: 56px 36px; }
.footer-name { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 10px; }
.footer-name .dot { color: var(--gold); }
.footer-meta { color: var(--ink-2); font-size: 14.5px; margin-bottom: 8px; }
.eth-today { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); margin-top: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.eth-today .geez { color: var(--gold-ink); font-weight: 600; }
.footer-col h2 { font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer-col ul { list-style: none; display: grid; gap: 9px; }
.footer-col a { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); font-size: 15px; }
.footer-col a:hover { color: var(--green); }
.footer-col a .i { width: 17px; height: 17px; color: var(--muted); }
.footer-col a:hover .i { color: var(--green); }
.footer-col .set-num { font-family: var(--font-mono); font-size: 11px; color: var(--muted); min-width: 22px; }
.footer-col a.hl { font-weight: 650; }
.footer-col a.hl .pill { font-family: var(--font-mono); font-size: 10.5px; padding: 2px 7px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-weight: 600; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-block: 20px 28px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--ink-2); }
@media (max-width: 960px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-about { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Experience page ---------- */
.stats.mini { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.skills-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.skill-group h3 { font-size: 1.15rem; font-family: var(--font-sans); font-weight: 650; letter-spacing: 0; display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.skill-group h3 .i { color: var(--green); }
@media (max-width: 960px) { .skills-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .skills-grid { grid-template-columns: 1fr; } }

/* ---------- Projects page ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter-btn { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-size: 14.5px; font-weight: 600; color: var(--ink-2); transition: all 0.2s; }
.filter-btn:hover { border-color: var(--ink); color: var(--ink); }
.filter-btn[aria-pressed="true"] { background: var(--btn-bg); color: var(--btn-ink); border-color: transparent; }
.filter-btn .count { font-family: var(--font-mono); font-size: 11.5px; opacity: 0.7; margin-left: 4px; }
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 24px); }
@media (max-width: 800px) { .work-grid { grid-template-columns: 1fr; } }
.work { display: flex; flex-direction: column; }
.work.is-hidden { display: none; }
.work .work-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.work .kind { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.kind.eng { background: var(--green-soft); color: var(--green); }
.kind.lead { background: var(--gold-soft); color: var(--gold-ink); }
.kind.comm { background: var(--red-soft); color: var(--red); }
.work .dates { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.work h3 { font-size: 1.55rem; }
.work .role { font-weight: 600; color: var(--ink-2); margin: 6px 0 14px; font-size: 15px; }
.work .bullets { margin-bottom: 4px; }
.work .tags { margin-top: auto; padding-top: 16px; }
.work.feature { grid-column: 1 / -1; }
.work.feature .cover { margin: calc(clamp(20px, 2.4vw, 28px) * -1) calc(clamp(20px, 2.4vw, 28px) * -1) 22px; height: 210px; border-bottom: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; background: var(--surface-2); }
.work.feature .cover > svg { width: 100%; height: 100%; }
.work.feature .feature-body { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 8px 36px; }
.work.feature .feature-body .tags { grid-column: 1 / -1; }
@media (max-width: 800px) { .work.feature .feature-body { grid-template-columns: 1fr; } }

/* ---------- 07-129 hub ---------- */
.notes-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 30px 0 26px; }
.search-box { position: relative; flex: 1 1 320px; max-width: 520px; }
.search-box .i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 18px; height: 18px; }
.search-box input { width: 100%; height: 50px; padding: 0 16px 0 46px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-size: 15.5px; transition: border-color 0.2s, box-shadow 0.2s; }
.search-box input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 18%, transparent); }
.search-status { font-size: 14px; color: var(--muted); }
.set-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 960px) { .set-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .set-grid { grid-template-columns: 1fr; } }
.set-card { display: flex; flex-direction: column; min-height: 230px; }
.set-card.is-hidden { display: none; }
.set-card .set-top { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; }
.set-card .set-no { color: var(--green); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.set-card .set-no .geez { font-size: 1.1rem; color: var(--gold-ink); letter-spacing: 0; }
.set-card .read { color: var(--muted); }
.set-card h3 { font-size: 1.5rem; margin: 16px 0 8px; }
.set-card p { color: var(--ink-2); font-size: 15px; }
.set-card .set-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 13.5px; color: var(--muted); }
.set-card .set-foot .go { color: var(--green); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.set-card .hits { font-family: var(--font-mono); font-size: 11.5px; color: var(--red); }
.notes-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; margin-top: clamp(48px, 6vw, 80px); }
@media (max-width: 1000px) { .notes-layout { grid-template-columns: 1fr; } .notes-toc { display: none; } }
.notes-toc { position: sticky; top: calc(var(--header-h) + 24px); max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; padding-right: 6px; }
.notes-toc .toc-title { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.notes-toc ol { list-style: none; display: grid; gap: 2px; border-left: 2px solid var(--line); }
.notes-toc a { display: block; padding: 7px 12px; margin-left: -2px; border-left: 2px solid transparent; text-decoration: none; font-size: 14px; color: var(--ink-2); line-height: 1.35; transition: all 0.2s; }
.notes-toc a:hover { color: var(--ink); }
.notes-toc a.active { border-left-color: var(--green); color: var(--ink); font-weight: 600; background: linear-gradient(90deg, var(--green-soft), transparent); }
.notes-toc a .n { font-family: var(--font-mono); font-size: 11px; color: var(--muted); margin-right: 6px; }
.note-article { padding-bottom: clamp(48px, 6vw, 72px); margin-bottom: clamp(48px, 6vw, 72px); border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 20px); }
.note-article:last-child { border-bottom: 0; }
.note-head { position: relative; padding: clamp(22px, 3vw, 34px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); margin-bottom: 30px; overflow: hidden; }
.note-head .big-no { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-family: var(--font-geez); font-size: clamp(5rem, 11vw, 8.5rem); line-height: 1; color: var(--gold); opacity: 0.18; font-weight: 700; pointer-events: none; }
.note-head .eyebrow { margin-bottom: 10px; }
.note-head h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); max-width: 18ch; position: relative; }
.note-head .sub { font-family: var(--font-display); font-style: italic; font-size: 1.2rem; color: var(--ink-2); margin: 8px 0 0; position: relative; }
.note-head .note-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; position: relative; }
.note-body { max-width: 74ch; }
.note-body h3 { font-size: clamp(1.35rem, 2.4vw, 1.65rem); margin: 38px 0 12px; scroll-margin-top: calc(var(--header-h) + 20px); display: flex; gap: 12px; align-items: baseline; }
.note-body h3:first-child { margin-top: 0; }
.note-body h3 .qn { font-family: var(--font-mono); font-size: 0.55em; color: var(--green); font-weight: 600; background: var(--green-soft); padding: 3px 8px; border-radius: 8px; flex-shrink: 0; position: relative; top: -0.2em; }
.note-body h3 .anchor { opacity: 0; color: var(--muted); text-decoration: none; font-size: 0.7em; transition: opacity 0.2s; }
.note-body h3:hover .anchor { opacity: 1; }
.note-body h4 { font-family: var(--font-sans); font-size: 1.05rem; font-weight: 700; letter-spacing: 0; margin: 24px 0 10px; }
.note-body p, .note-body li { font-size: 1.04rem; color: var(--ink-2); line-height: 1.75; }
.note-body strong { color: var(--ink); }
.note-body ul, .note-body ol { padding-left: 1.3em; margin: 0 0 1.1em; display: grid; gap: 6px; }
.note-body ul li::marker { color: var(--gold); }
.note-body ol li::marker { color: var(--green); font-family: var(--font-mono); font-size: 0.9em; }
.note-body blockquote { margin: 16px 0 22px; padding: 16px 22px; border-left: 4px solid var(--gold); background: var(--surface); border-radius: 0 14px 14px 0; font-family: var(--font-display); font-style: italic; font-size: 1.2rem; color: var(--ink); }
.callout { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; margin: 18px 0 8px; padding: 16px 18px; border-radius: 14px; background: color-mix(in srgb, var(--gold-soft) 55%, var(--surface)); border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent); font-size: 0.98rem; color: var(--ink-2); line-height: 1.65; }
.callout .i { color: var(--gold-ink); width: 20px; height: 20px; margin-top: 2px; }
.callout strong { color: var(--ink); }
.refs { margin-top: 30px; padding: 20px 22px; border-radius: 16px; border: 1px dashed var(--line-2); }
.refs h4 { margin-top: 0 !important; display: flex; align-items: center; gap: 8px; font-family: var(--font-mono) !important; font-size: 12px !important; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.refs li, .refs p { font-size: 0.93rem !important; line-height: 1.6 !important; word-break: break-word; }
.back-top { display: inline-flex; align-items: center; gap: 6px; margin-top: 26px; font-size: 14px; font-weight: 600; color: var(--green); text-decoration: none; }
mark.hit { background: var(--gold-soft); color: var(--ink); border-radius: 4px; padding: 0 2px; box-shadow: 0 0 0 1px color-mix(in srgb, var(--gold) 50%, transparent); }

/* ---------- 4-year plan ---------- */
.plan-legend { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 24px; }
.legend-btn { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-size: 13.5px; font-weight: 600; color: var(--ink-2); transition: all 0.2s; }
.legend-btn .sw { width: 11px; height: 11px; border-radius: 3px; }
.legend-btn[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.track-toggle { margin-left: auto; }
.plan-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1060px) { .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .plan-grid { grid-template-columns: 1fr; } }
.year { display: grid; gap: 12px; align-content: start; }
.year-title { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; padding: 0 4px; }
.year-title small { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); letter-spacing: 0.08em; font-weight: 500; }
.sem { padding: 16px; border-radius: 16px; }
.sem.now { border-color: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 18%, transparent), var(--shadow-sm); }
.sem-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.sem-head b { display: inline-flex; align-items: center; white-space: nowrap; }
.sem-head b { font-size: 15px; }
.sem-head span { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); }
.now-pill { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: var(--green); color: var(--on-accent); font-weight: 600; margin-left: 6px; }
.course { list-style: none; display: grid; gap: 6px; }
.course li { display: grid; grid-template-columns: 6px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13.5px; line-height: 1.3; transition: opacity 0.3s, transform 0.3s, box-shadow 0.3s; }
.course li .bar { width: 6px; align-self: stretch; border-radius: 3px; }
.course li code { display: block; background: none; border: 0; padding: 0; font-size: 11.5px; color: var(--muted); }
.course li .u { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.plan-grid.filtering .course li { opacity: 0.25; }
.plan-grid.filtering .course li.match { opacity: 1; box-shadow: 0 0 0 2px var(--gold); transform: translateX(2px); }
.cat-cs { background: #0A7A4C; } .cat-math { background: #D99A0B; } .cat-sci { background: #2F6FB3; } .cat-hum { background: #C23A2C; } .cat-soc { background: #8B5CF6; } .cat-core { background: #776C5E; }
:root[data-theme="dark"] .cat-cs { background: #3CC486; }
.pdf-frame { border-radius: 18px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.pdf-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.pdf-bar .name { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-2); min-width: 0; }
.pdf-bar .name .i { color: var(--red); }
.pdf-bar .actions { display: flex; gap: 8px; }
.pdf-frame object, .pdf-frame iframe { display: block; width: 100%; height: min(1150px, 130vh); border: 0; background: #fff; }
.pdf-fallback { padding: 20px; display: grid; gap: 16px; justify-items: center; text-align: center; }
.pdf-fallback img { width: 100%; max-width: 760px; border-radius: 10px; border: 1px solid var(--line); box-shadow: var(--shadow); }
details.official { margin-top: 28px; }
details.official summary { cursor: pointer; font-weight: 600; list-style: none; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); }
details.official summary::-webkit-details-marker { display: none; }
details.official[open] summary { margin-bottom: 18px; }
details.official summary .i { transition: transform 0.2s; }
details.official[open] summary .i { transform: rotate(180deg); }

/* CV page */
.cv-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(20px, 3vw, 36px); align-items: start; }
@media (max-width: 1000px) { .cv-layout { grid-template-columns: 1fr; } }
.cv-side { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 16px; }
.cv-side h3 { font-size: 1.1rem; font-family: var(--font-sans); font-weight: 700; letter-spacing: 0; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.cv-side h3 .i { color: var(--green); }
.cv-side ul { list-style: none; display: grid; gap: 8px; font-size: 14.5px; color: var(--ink-2); }
.cv-side li b { color: var(--ink); display: block; font-size: 14.5px; }

/* ---------- Command palette ---------- */
.palette { position: fixed; inset: 0; z-index: 300; display: grid; place-items: start center; padding: 12vh 16px 16px; }
.palette-backdrop { position: absolute; inset: 0; background: rgba(15, 13, 10, 0.45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: fade 0.2s; }
.palette-panel { position: relative; width: min(620px, 100%); background: var(--surface); border: 1px solid var(--line-2); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; animation: pop 0.22s var(--ease); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(-8px) scale(0.98); } }
.palette-search { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.palette-search .i { color: var(--muted); }
.palette-search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-size: 16px; }
.palette-list { list-style: none; max-height: min(420px, 55vh); overflow-y: auto; padding: 8px; }
.palette-group { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding: 10px 10px 4px; }
.palette-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; cursor: pointer; font-size: 15px; }
.palette-item .i { color: var(--muted); width: 18px; height: 18px; }
.palette-item .hint { margin-left: auto; font-size: 12.5px; color: var(--muted); }
.palette-item[aria-selected="true"] { background: var(--green-soft); color: var(--ink); }
.palette-item[aria-selected="true"] .i { color: var(--green); }
.palette-empty { padding: 22px; text-align: center; color: var(--muted); }
.palette-foot { display: flex; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); background: var(--surface-2); }

/* ---------- Intro splash ---------- */
.intro { position: fixed; inset: 0; z-index: 400; background: #0F0D0A; color: #F2ECE1; display: none; flex-direction: column; justify-content: space-between; overflow: hidden; }
html.intro-pending .intro[hidden] { display: flex !important; }
html.intro-pending body { overflow: hidden; }
.intro .tibeb { --tibeb: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='24' viewBox='0 0 64 24'%3E%3Crect width='64' height='2' fill='%232FB277'/%3E%3Crect y='4' width='64' height='1' fill='%23F2B635'/%3E%3Crect y='19' width='64' height='1' fill='%23F2B635'/%3E%3Crect y='22' width='64' height='2' fill='%23E0513F'/%3E%3Cpath d='M16 6l6 6-6 6-6-6z' fill='%23E0513F'/%3E%3Cpath d='M16 9l3 3-3 3-3-3z' fill='%23F2B635'/%3E%3Cpath d='M48 6l6 6-6 6-6-6z' fill='%232FB277'/%3E%3Cpath d='M48 9l3 3-3 3-3-3z' fill='%23F2B635'/%3E%3Cpath d='M32 8v8M28 12h8M0 8v8M-4 12h8M64 8v8M60 12h8' stroke='%23F2ECE1' stroke-width='1.5'/%3E%3Cpath d='M8 10.5l1.5 1.5-1.5 1.5-1.5-1.5zM24 10.5l1.5 1.5-1.5 1.5-1.5-1.5zM40 10.5l1.5 1.5-1.5 1.5-1.5-1.5zM56 10.5l1.5 1.5-1.5 1.5-1.5-1.5z' fill='%23F2ECE1'/%3E%3C/svg%3E"); height: 28px; background-size: auto 28px; animation: tibeb-slide 14s linear infinite; }
.intro .tibeb.bottom { animation-direction: reverse; }
.intro-center { flex: 1; display: grid; place-content: center; text-align: center; gap: 10px; padding: 24px; }
.intro-geez { font-family: var(--font-geez); font-weight: 700; font-size: clamp(5rem, 18vw, 11rem); line-height: 1; margin: 0; background: linear-gradient(90deg, #3CC486, #F2B635 50%, #F06A5B); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: 0; transform: translateY(20px) scale(0.96); animation: introIn 0.9s var(--ease) 0.15s forwards; }
.intro-sub { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: #A89D8C; margin: 0; opacity: 0; animation: introIn 0.7s var(--ease) 0.7s forwards; }
.intro-name { font-family: var(--font-display); font-size: clamp(1.4rem, 3.6vw, 2.2rem); margin: 18px 0 0; opacity: 0; animation: introIn 0.7s var(--ease) 1.05s forwards; }
.intro-skip { position: absolute; right: 20px; bottom: 52px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: #A89D8C; padding: 8px 14px; border: 1px solid #3A332A; border-radius: 999px; }
.intro-skip:hover { color: #F2ECE1; border-color: #F2B635; }
.intro.leaving { animation: introOut 0.75s var(--ease) forwards; }
@keyframes introIn { to { opacity: 1; transform: none; } }
@keyframes introOut { to { transform: translateY(-100%); } }

/* ---------- Toast, back-to-top, confetti ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); z-index: 350; background: var(--btn-bg); color: var(--btn-ink); padding: 12px 18px; border-radius: 999px; font-size: 14.5px; font-weight: 600; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: all 0.35s var(--ease); display: inline-flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast .geez { font-weight: 700; color: var(--gold); }
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 110; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow); opacity: 0; transform: translateY(12px); pointer-events: none; transition: all 0.3s var(--ease); }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { border-color: var(--green); color: var(--green); }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 360; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .progress, .fidel-canvas, .to-top, .toast, .palette, .intro, .marquee, .scroll-cue, .terminal-section, .notes-toc, .mobile-menu { display: none !important; }
  body::after { display: none; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  body { background: #fff; color: #000; }
  .card { box-shadow: none; }
}

/* ---------- Additions ---------- */
.chips { list-style: none; padding: 0; }
.h2 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
.section-head h2 em, .h2 em { font-style: italic; font-weight: 450; color: var(--green); }
.section-head.center { display: block; text-align: center; }
.section-head.center .lede { margin-inline: auto; }
.pour-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.pour-svg path { fill: none; stroke: var(--coffee); stroke-width: 4.5; stroke-linecap: round; }
html:not(.js) .needs-js { display: none !important; }
var { font-family: var(--font-display); font-style: italic; font-weight: 500; }
.honor .i-wrap .i { width: 22px; height: 22px; }
.cta .btns .btn { min-width: 0; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
.hero-meta .chip { background: var(--surface); }
.note-meta .chip .i { color: var(--green); }
.back-top .i { width: 16px; height: 16px; }
.set-card h3 { transition: color .2s; }
.set-card:hover h3 { color: var(--green); }
.project-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; margin-top: 18px; }
.project-metrics div { display: flex; flex-direction: column; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.project-metrics b { font-family: var(--font-display); font-size: 1.6rem; line-height: 1.1; font-weight: 600; }
.project-metrics span { font-size: 12.5px; color: var(--muted); }
@media (max-width: 560px) {
  .buna-stage { padding: 22px 14px 18px; }
  .buna-scene { grid-template-columns: 74px minmax(0, 1fr); gap: 4px; min-height: 170px; }
  .jebena { width: 74px; height: 110px; }
  .cups { justify-content: space-between; gap: 2px; }
  .cup-btn { min-width: 0; padding: 6px 2px; flex: 1; }
  .cup { width: 44px; height: 40px; }
  .cup-am { font-size: 0.95rem; }
  .cup-en { font-size: 9px; letter-spacing: 0.06em; text-align: center; }
  .pass-route .code { font-size: 2rem; }
}
.search-box input::-webkit-search-cancel-button { cursor: pointer; filter: grayscale(1); opacity: .6; }
/* No-JS fallback: keep navigation usable on small screens */
html:not(.js) .menu-btn { display: none !important; }
@media (max-width: 1060px) {
  html:not(.js) .nav { display: block; overflow-x: auto; max-width: 58vw; }
  html:not(.js) .nav ul { width: max-content; }
}
