@font-face { font-family: 'Gilroy'; src: url('../fonts/GIP-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+2713, U+FEFF, U+FFFD; }
@font-face { font-family: 'Gilroy'; src: url('../fonts/GIP-SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+2713, U+FEFF, U+FFFD; }
@font-face { font-family: 'Gilroy'; src: url('../fonts/GIP-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+2713, U+FEFF, U+FFFD; }
@font-face { font-family: 'Gilroy'; src: url('../fonts/GIP-ExtraBold.woff2') format('woff2'); font-weight: 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+2713, U+FEFF, U+FFFD; }
@font-face { font-family: 'Gilroy'; src: url('../fonts/GIP-Regular-cyr.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Gilroy'; src: url('../fonts/GIP-SemiBold-cyr.woff2') format('woff2'); font-weight: 600; font-display: swap; unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Gilroy'; src: url('../fonts/GIP-Bold-cyr.woff2') format('woff2'); font-weight: 700; font-display: swap; unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Gilroy'; src: url('../fonts/GIP-ExtraBold-cyr.woff2') format('woff2'); font-weight: 800; font-display: swap; unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  color-scheme: light;
  --accent: #fbbf24;
  --accent-2: #f59e0b;
  --accent-ink: #23282e;
  --ok: #34d399;
  --err: #ef4444;
  --soft: rgba(251,191,36,.14);
  --wash1: rgba(251,191,36,.20);
  --wash2: rgba(30,58,95,.16);
  --blob1: rgba(251,191,36,.18);
  --blob2: rgba(51,65,85,.10);
  --bg: #fbf9f5;
  --surface: #ffffff;
  --text: #1b1e24;
  --body: #565c66;
  --muted: #667080;
  --accent-text: #8a5a00;
  --line: #e3e6ea;
  --link: #b45309;
  --glass: rgba(255,255,255,.78);
  --shadow: 0 1px 2px rgba(20,22,26,.04), 0 14px 36px -14px rgba(20,22,26,.14);
  --ring: rgba(251,191,36,.35);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --wash1: rgba(251,191,36,.10);
  --wash2: rgba(120,160,210,.09);
  --blob1: rgba(251,191,36,.11);
  --blob2: rgba(120,145,175,.08);
  --bg: #0d0f13;
  --surface: #171a20;
  --text: #f2f4f6;
  --body: #a9b0ba;
  --muted: #949cab;
  --accent-text: #fbbf24;
  --line: #262a32;
  --link: #fbbf24;
  --glass: rgba(15,17,21,.72);
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 16px 40px -16px rgba(0,0,0,.55);
  --ring: rgba(251,191,36,.25);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) {
    color-scheme: dark;
    --wash1: rgba(251,191,36,.10);
    --wash2: rgba(120,160,210,.09);
    --blob1: rgba(251,191,36,.11);
    --blob2: rgba(120,145,175,.08);
    --bg: #0d0f13;
    --surface: #171a20;
    --text: #f2f4f6;
    --body: #a9b0ba;
    --muted: #949cab;
    --accent-text: #fbbf24;
    --line: #262a32;
    --link: #fbbf24;
    --glass: rgba(15,17,21,.72);
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 16px 40px -16px rgba(0,0,0,.55);
    --ring: rgba(251,191,36,.25);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Gilroy', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  background-color: var(--bg);
  color: var(--body);
  transition: background-color .4s ease;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(168deg, var(--wash1) 0%, transparent 42%), linear-gradient(348deg, var(--wash2) 0%, transparent 46%);
}
img { max-width: 100%; }
button { -webkit-tap-highlight-color: transparent; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: #fbbf24; color: #1a1a1a; }
input, textarea, button, select { font-family: inherit; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding-left: clamp(16px, 4vw, 32px); padding-right: clamp(16px, 4vw, 32px); }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 600; padding: 10px 18px; background: var(--accent); color: var(--accent-ink); font-weight: 700; border-radius: 0 0 10px 0; }
.skip-link:focus { left: 0; }
.flex-spacer { flex: 1 0 0; }
.main-shell { position: relative; z-index: 2; padding-top: 64px; display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }

.fx-particles { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.fx-glow { position: fixed; left: 0; top: 0; width: 560px; height: 560px; margin: -280px 0 0 -280px; border-radius: 50%; background: radial-gradient(circle, var(--soft) 0%, rgba(251,191,36,0) 65%); pointer-events: none; z-index: 1; opacity: 0; }
.fx-blob-1 { position: fixed; top: -240px; right: -180px; width: 640px; height: 640px; border-radius: 50%; background: radial-gradient(circle, var(--blob1) 0%, transparent 65%); z-index: 0; pointer-events: none; animation: drift1 16s ease-in-out infinite alternate; }
.fx-blob-2 { position: fixed; bottom: -280px; left: -200px; width: 700px; height: 700px; border-radius: 50%; background: radial-gradient(circle, var(--blob2) 0%, transparent 65%); z-index: 0; pointer-events: none; animation: drift2 20s ease-in-out infinite alternate; }
.progress-track { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 300; background: transparent; }
.progress-bar { height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); box-shadow: 0 0 12px var(--ring); }

.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 200; background: var(--glass); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header, .bottom-nav, .chipbar, .float-chip, .pf-cat, .map-label { background: var(--surface); }
}
.site-header-inner { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand-lines { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 700; font-size: 15px; color: var(--text); }
.brand-role { font-size: 11.5px; color: var(--muted); letter-spacing: .04em; }
.nav-pill { display: flex; gap: 4px; background: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.nav-pill a { padding: 8px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--body); transition: all .25s; }
.nav-pill a:hover { color: var(--text); background: var(--surface); }
.nav-pill a.active { font-weight: 700; background: var(--accent); color: var(--accent-ink); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.btn-square { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; font-size: 15px; transition: all .25s; display: inline-flex; align-items: center; justify-content: center; }
.btn-square:hover { border-color: var(--accent); }
.theme-toggle:hover { transform: rotate(15deg); }
.palette-btn { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 12.5px; cursor: pointer; transition: all .25s; }
.palette-btn:hover { border-color: var(--accent); color: var(--text); }
.key-hint { border: 1px solid var(--line); border-radius: 5px; padding: 2px 6px; font-size: 11px; font-weight: 600; }
.btn-cv { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-size: 13.5px; font-weight: 700; transition: all .25s; box-shadow: 0 6px 16px -6px var(--ring); }
.btn-cv:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -6px var(--ring); color: var(--accent-ink); }

.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 12px; font-weight: 600; font-size: 15px; border: 0; cursor: pointer; transition: all .25s; }
.btn-accent { background: var(--accent); color: var(--accent-ink); font-weight: 700; box-shadow: 0 10px 24px -8px var(--ring); }
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -8px var(--ring); color: var(--accent-ink); }
.btn-outline { background: var(--surface); border: 1px solid var(--line); color: var(--text); }
.btn-outline:hover { border-color: var(--accent); transform: translateY(-2px); color: var(--text); }
.btn-sm { padding: 11px 18px; border-radius: 11px; font-size: 13.5px; font-weight: 700; }
.btn-ink { background: var(--accent-ink); color: var(--accent); font-weight: 700; }
.btn-ink:hover { transform: translateY(-2px); color: var(--accent); }
.btn-ink-ghost { background: rgba(35,40,46,.12); border: 1px solid rgba(35,40,46,.35); color: var(--accent-ink); font-weight: 700; cursor: pointer; }
.btn-ink-ghost:hover { background: rgba(35,40,46,.2); }

.icon-social { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--body); display: inline-flex; align-items: center; justify-content: center; font-size: 16px; transition: all .25s; }
.icon-social:hover { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); transform: translateY(-2px); }

.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--body); }
.pill-soft { background: var(--soft); }
.pill-shadow { box-shadow: var(--shadow); }
.tag { display: inline-flex; padding: 5px 12px; border-radius: 999px; background: var(--soft); color: var(--text); font-size: 12px; font-weight: 700; }
.tag-outline { display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 12px; font-weight: 600; }
.tag-tech { padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); font-size: 11.5px; font-weight: 600; color: var(--body); }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: pulse 2s infinite; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); transition: all .3s ease; }
.card:hover { border-color: var(--accent); transform: translateY(-3px); }
.card-static:hover { transform: none; }
.spot { position: relative; isolation: isolate; }
.spot::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1; opacity: 0; transition: opacity .35s ease; background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), var(--soft), transparent 70%); }
.spot:hover::before { opacity: 1; }

.section { margin-top: clamp(56px, 8vw, 88px); }
.section-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.section-num { font-size: 13px; font-weight: 800; color: var(--accent-text); letter-spacing: .16em; }
.section-title { margin: 0; font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; letter-spacing: -0.02em; color: var(--text); }
.section-label { font-size: 13px; font-weight: 800; color: var(--accent-text); letter-spacing: .16em; }
.gradient-text { color: transparent; background: linear-gradient(120deg, #fbbf24 20%, #f59e0b 80%); -webkit-background-clip: text; background-clip: text; display: inline-block; padding: 0.1em 0.08em; margin: -0.1em -0.08em; }

.hero { overflow-x: clip; padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(32px, 5vw, 64px); display: flex; flex-direction: column-reverse; flex-wrap: nowrap; align-items: center; gap: clamp(28px, 5vw, 64px); }
.hero-copy { flex: 1 1 auto; min-width: 0; width: 100%; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-title { margin: 20px 0 0; font-size: clamp(40px, 6vw, 68px); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; color: var(--text); text-wrap: balance; }
.hero-typing { margin-top: 14px; font-size: clamp(20px, 2.6vw, 28px); font-weight: 600; color: var(--text); min-height: 1.5em; }
.type-caret { display: inline-block; width: 3px; height: 1.1em; background: var(--accent); vertical-align: text-bottom; margin-left: 2px; animation: blink 1s step-end infinite; }
.hero-intro { margin: 18px 0 0; max-width: 60ch; font-size: 16.5px; line-height: 1.65; color: var(--body); text-wrap: pretty; }
.hero-ctas { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-socials { margin-top: 26px; display: flex; gap: 8px; flex-wrap: wrap; }
.btn-touch { display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 13.5px; font-weight: 700; transition: all .25s; }
.btn-touch:hover { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.hero-photo { flex: 0 0 auto; width: min(280px, 74vw); margin: 0 auto; position: relative; overflow: visible; }
.hero-blob { position: absolute; top: -50px; right: -20px; width: 300px; max-width: 100%; height: 300px; border-radius: 50%; background: radial-gradient(circle, var(--soft), transparent 70%); filter: blur(10px); pointer-events: none; }
.photo-stack { position: relative; width: min(280px, 74vw); margin: 0 auto; padding: 10px 0 14px; transform-style: preserve-3d; transition: transform .5s cubic-bezier(.22,.61,.36,1); }
.photo-stage { position: relative; aspect-ratio: 1 / 1; }
.photo-card { position: absolute; inset: 0; border-radius: 22px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .8s cubic-bezier(.22,.61,.36,1), opacity .8s ease, box-shadow .8s ease, z-index 0s; }
.photo-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-card.pos-0 { transform: rotate(0deg) translate(0, 0) scale(1); z-index: 3; opacity: 1; box-shadow: 0 0 0 3px var(--accent), 0 22px 44px -16px var(--ring); }
.photo-card.pos-1 { transform: rotate(6deg) translate(18px, 12px) scale(0.96); z-index: 2; opacity: .92; }
.photo-card.pos-2 { transform: rotate(-6deg) translate(-18px, 12px) scale(0.92); z-index: 1; opacity: .85; }
.float-chip { position: absolute; padding: 10px 16px; border-radius: 14px; background: var(--glass); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid var(--line); box-shadow: var(--shadow); z-index: 4; display: flex; align-items: center; gap: 10px; animation: floaty 3.2s ease-in-out infinite alternate; }
.float-chip i { color: var(--accent); font-size: 16px; }
.float-chip span { font-size: 13px; font-weight: 700; color: var(--text); white-space: nowrap; }
.float-chip-tr { top: -16px; right: -14px; }
.float-chip-bl { bottom: -16px; left: -14px; animation-duration: 3.8s; animation-delay: .6s; }

.stat-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.stat-cell { background: var(--surface); padding: 26px 20px; text-align: center; }
.stat-value { font-size: clamp(30px, 4vw, 42px); font-weight: 800; color: var(--text); letter-spacing: -0.02em; }
.stat-label { font-size: 13px; font-weight: 600; color: var(--muted); margin-top: 4px; letter-spacing: .05em; text-transform: uppercase; }
.fine-print { margin: 10px 0 0; text-align: center; font-size: 12px; color: var(--muted); font-style: italic; }
.fine-print-left { text-align: left; }

.marquee-label { text-align: center; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 30s linear infinite; }
.marquee-track span { font-size: 17px; font-weight: 700; color: var(--body); white-space: nowrap; }
.marquee-track .sep { color: var(--accent); }

.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.grid-cards-lg { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid-cards-md { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-cards-sm { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }

.hl-card { overflow: hidden; display: flex; flex-direction: column; }
.hl-card:hover { transform: translateY(-4px); }
.hl-media { aspect-ratio: 16 / 10; background: var(--soft); }
.hl-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hl-body { padding: 16px 18px 18px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.hl-title { margin: 0; font-size: 15.5px; font-weight: 700; color: var(--text); }
.hl-meta { font-size: 12px; font-weight: 600; color: var(--muted); }
.hl-arrow { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; transition: all .25s; }
.hl-card:hover .hl-arrow, .hl-arrow:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.link-more { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--link); transition: all .25s; }
.link-more:hover { color: var(--accent); transform: translateX(3px); }

.chipbar-wrap { position: sticky; top: 74px; z-index: 150; margin-top: clamp(28px, 4vw, 44px); padding: 0 clamp(12px, 3vw, 32px); display: flex; justify-content: center; pointer-events: none; }
.chipbar { pointer-events: auto; display: flex; gap: 4px; max-width: 100%; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; background: var(--glass); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid var(--line); border-radius: 999px; padding: 5px; box-shadow: var(--shadow); }
.chipbar::-webkit-scrollbar { display: none; }
.chipbar button { flex-shrink: 0; padding: 9px 16px; background: transparent; border: none; border-radius: 999px; color: var(--muted); font-size: 13px; font-weight: 700; cursor: pointer; transition: all .25s; letter-spacing: .01em; white-space: nowrap; }
.chipbar button:hover { color: var(--text); }
.chipbar button.active { background: var(--accent); color: var(--accent-ink); }

.timeline { position: relative; padding-left: clamp(28px, 4vw, 44px); }
.timeline-track { position: absolute; left: 10px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline-rail { position: absolute; left: 10px; top: 8px; width: 2px; height: 0%; background: linear-gradient(180deg, var(--accent), var(--accent-2)); box-shadow: 0 0 10px var(--ring); }
.tl-item { position: relative; margin-bottom: 22px; }
.tl-item:last-child { margin-bottom: 0; }
.tl-dot { position: absolute; left: calc(clamp(28px, 4vw, 44px) * -1 + 2px); top: 24px; width: 18px; height: 18px; box-sizing: border-box; border-radius: 50%; background: var(--surface); border: 4px solid var(--bg); box-shadow: 0 0 0 2px var(--line); }
.tl-item.current .tl-dot { background: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.tl-card { padding: clamp(20px, 3vw, 30px); }
.xp-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.xp-role { margin: 0; font-size: 19px; font-weight: 700; color: var(--text); }
.xp-company { margin-top: 3px; font-size: 15px; font-weight: 600; color: var(--accent-text); }
.xp-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.xp-bullets { margin: 14px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 7px; font-size: 14.5px; line-height: 1.6; color: var(--body); }
.xp-clients { margin-top: 16px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.xp-clients-label { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

.endeavor-card { padding: clamp(20px, 3vw, 30px); }
.endeavor-card.tinted { background: linear-gradient(160deg, var(--soft), var(--surface) 45%); }
.endeavor-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.endeavor-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; font-size: 18px; }
.endeavor-icon.solid { background: var(--accent); color: var(--accent-ink); }
.endeavor-card h3, .consult-card h3 { margin: 16px 0 0; font-size: 19px; font-weight: 700; color: var(--text); }
.endeavor-card .xp-company { margin-top: 3px; }
.endeavor-card p.body-text { margin: 12px 0 0; }
.body-text { font-size: 14.5px; line-height: 1.6; color: var(--body); text-wrap: pretty; }

.consult-card { padding: 24px; }
.consult-meta { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .06em; }
.consult-card h3 { margin: 10px 0 0; font-size: 17px; }
.consult-card .xp-company { margin-top: 2px; font-size: 14px; }
.consult-card p { margin: 10px 0 0; font-size: 14px; line-height: 1.6; color: var(--body); }

.edu-card { margin-top: 32px; padding: clamp(20px, 3vw, 30px); display: flex; gap: 20px; flex-wrap: wrap; align-items: flex-start; }
.edu-card:hover { transform: none; }
.edu-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; font-size: 22px; }
.edu-body { flex: 1; min-width: 240px; }
.edu-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.edu-head h3 { margin: 0; font-size: 19px; font-weight: 700; color: var(--text); }
.edu-quip { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); font-style: italic; }
.edu-badges { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.badge-award { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--accent); color: var(--text); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.badge-award i { color: var(--accent); }

.skill-tabs { margin-top: 24px; display: flex; gap: 8px; flex-wrap: wrap; }
.skill-tabs button, .filter-chip { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--body); font-size: 13px; font-weight: 700; cursor: pointer; transition: all .25s; }
.skill-tabs button:hover, .filter-chip:hover { border-color: var(--accent); transform: translateY(-1px); }
.skill-tabs button.active, .filter-chip.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.skill-cloud { margin-top: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(18px, 3vw, 28px); box-shadow: var(--shadow); display: flex; flex-wrap: wrap; gap: 10px; }
.skill-pill { display: inline-flex; align-items: center; gap: 9px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font-weight: 700; cursor: pointer; transition: all .3s cubic-bezier(.22,.61,.36,1); }
.skill-pill:hover { transform: translateY(-3px); }
.skill-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.skill-pill.hot .dot { background: var(--accent); }
.skill-pill.dim { background: transparent; color: var(--muted); opacity: .4; }
.skill-pill.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); opacity: 1; }
.skill-pill.on .dot { background: var(--accent-ink); }
.skill-detail { margin-top: 12px; min-height: 46px; display: flex; align-items: center; gap: 12px; padding: 0 4px; }
.skill-detail i { color: var(--accent); font-size: 13px; }
.skill-detail p { margin: 0; font-size: 14px; color: var(--body); }

.quote-card { margin: 0; padding: 26px 24px; display: flex; flex-direction: column; gap: 16px; }
.quote-card > i { color: var(--accent); font-size: 18px; }
.quote-card blockquote { margin: 0; font-size: 15px; line-height: 1.7; color: var(--text); text-wrap: pretty; }
.quote-card figcaption { margin-top: auto; display: flex; align-items: center; gap: 12px; }
.quote-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--soft); color: var(--accent-text); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; }
.quote-who { display: flex; flex-direction: column; line-height: 1.3; }
.quote-name { font-size: 14px; font-weight: 700; color: var(--text); }
.quote-role { font-size: 12.5px; color: var(--muted); }

.perf-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.perf-card { padding: 20px; display: flex; align-items: center; gap: 16px; }
.perf-ring { width: 60px; height: 60px; flex-shrink: 0; border-radius: 50%; background: var(--line); display: inline-flex; align-items: center; justify-content: center; }
.perf-ring span { width: 46px; height: 46px; border-radius: 50%; background: var(--surface); display: inline-flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 800; color: var(--text); }
.perf-label { font-size: 13.5px; font-weight: 700; color: var(--text); }
.perf-note { font-size: 12px; color: var(--muted); }

.lang-card { padding: 24px; }
.lang-head { display: flex; justify-content: space-between; align-items: center; }
.lang-head h3 { margin: 0; font-size: 17px; font-weight: 700; color: var(--text); }
.lang-level { font-size: 12px; font-weight: 700; color: var(--accent-text); }
.lang-bars { margin-top: 14px; display: flex; gap: 6px; }
.lang-bars span { flex: 1; height: 6px; border-radius: 3px; background: var(--line); }
.lang-bars span.on { background: var(--accent); }
.lang-note { margin: 10px 0 0; font-size: 13px; color: var(--muted); }

.cta-band { border-radius: 22px; background: linear-gradient(135deg, #fbbf24, #f59e0b); padding: clamp(28px, 5vw, 48px); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; box-shadow: 0 20px 44px -16px var(--ring); }
.cta-band h2 { margin: 0; font-size: clamp(24px, 3vw, 34px); font-weight: 800; color: #23282e; letter-spacing: -0.02em; }
.cta-band p { margin: 8px 0 0; font-size: 15px; color: rgba(35,40,46,.75); font-weight: 600; }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cta-band .btn { padding: 13px 22px; font-size: 14px; }

.site-footer { margin-top: clamp(56px, 8vw, 88px); border-top: 1px solid var(--line); background: var(--surface); }
.site-footer-inner { padding-top: 28px; padding-bottom: 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-note { margin: 0; font-size: 13.5px; color: var(--muted); }
.footer-links { display: flex; gap: 14px; align-items: center; }
.footer-links a { color: var(--muted); font-size: 16px; }
.footer-links a:hover { color: var(--accent); }
.to-top { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); cursor: pointer; transition: all .25s; }
.to-top:hover { border-color: var(--accent); transform: translateY(-2px); }

.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 250; background: var(--glass); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-top: 1px solid var(--line); display: none; padding-bottom: env(safe-area-inset-bottom, 0px); }
.bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 0 8px; color: var(--muted); font-size: 11px; font-weight: 600; }
.bottom-nav a i { font-size: 19px; }
.bottom-nav a.active { color: var(--accent); font-weight: 700; }

.overlay { position: fixed; inset: 0; z-index: 400; background: rgba(10,12,16,.5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); display: flex; align-items: flex-start; justify-content: center; padding: 12vh 16px 0; }
.palette-panel { width: min(560px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.5); overflow: hidden; animation: popin .18s ease; }
.palette-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.palette-head i { color: var(--muted); font-size: 14px; }
.palette-head input { flex: 1; border: none; outline: none; background: transparent; color: var(--text); font-size: 15px; border-radius: 8px; }
.palette-head input:focus { box-shadow: 0 0 0 3px var(--soft); }
.palette-list { max-height: 320px; overflow-y: auto; padding: 8px; overscroll-behavior: contain; }
.palette-row { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; cursor: pointer; width: 100%; border: 0; background: transparent; text-align: left; }
.palette-row.sel { background: var(--soft); }
.palette-ic { width: 30px; height: 30px; border-radius: 8px; background: var(--soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
.palette-label { flex: 1; font-size: 14px; font-weight: 600; color: var(--text); }
.palette-hint { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.palette-foot { padding: 10px 18px; border-top: 1px solid var(--line); display: flex; gap: 16px; font-size: 11.5px; color: var(--muted); }

.toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 500; background: var(--text); color: var(--bg); padding: 12px 20px; border-radius: 12px; font-size: 14px; font-weight: 600; box-shadow: 0 12px 32px rgba(0,0,0,.3); animation: popin .2s ease; display: flex; align-items: center; gap: 10px; }
.toast i { color: var(--ok); }

.page-hero { padding-top: clamp(44px, 7vw, 80px); }
.page-title { margin: 12px 0 0; font-size: clamp(36px, 5.5vw, 62px); font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; color: var(--text); text-wrap: balance; }
.page-intro { margin: 16px 0 0; max-width: 62ch; font-size: 16.5px; line-height: 1.65; color: var(--body); text-wrap: pretty; }

.sub-head { display: flex; align-items: baseline; gap: 12px; }
.sub-head i { color: var(--accent); font-size: 14px; }
.sub-head h2 { margin: 0; font-size: clamp(22px, 2.6vw, 28px); font-weight: 800; letter-spacing: -0.01em; color: var(--text); }
.sub-head .count { font-size: 13px; font-weight: 600; color: var(--muted); }

.pf-grid { margin-top: 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 22px; }
.pf-card { overflow: hidden; border-radius: 20px; display: flex; flex-direction: column; cursor: pointer; }
.pf-card:hover { transform: translateY(-5px); box-shadow: 0 24px 48px -18px var(--ring); }
.pf-media { position: relative; aspect-ratio: 16 / 9; background: var(--soft); }
.pf-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pf-cat { position: absolute; top: 12px; left: 12px; padding: 5px 12px; border-radius: 999px; background: var(--glass); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid var(--line); font-size: 11.5px; font-weight: 700; color: var(--text); pointer-events: none; }
.pf-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pf-title-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.pf-title-row h3 { margin: 0; font-size: 18px; font-weight: 700; color: var(--text); }
.pf-years { font-size: 12.5px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.pf-blurb { margin: 0; font-size: 14px; line-height: 1.6; color: var(--body); flex: 1; text-wrap: pretty; }
.pf-tech { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 4px; }

.search-box { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); max-width: 440px; transition: all .25s; }
.search-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--soft); }
.search-box i { color: var(--muted); font-size: 13px; }
.search-box input { flex: 1; border: none; outline: none; background: transparent; color: var(--text); font-size: 14px; min-width: 0; -webkit-appearance: none; appearance: none; }
.search-box input::-webkit-search-cancel-button { display: none; }
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filter-key { width: 40px; flex-shrink: 0; font-size: 11px; font-weight: 800; letter-spacing: .12em; color: var(--muted); }
.filter-chip { padding: 8px 16px; font-size: 12.5px; }
.filter-chip-sm { padding: 7px 14px; font-size: 12px; }

.archive-year { display: flex; align-items: center; gap: 14px; margin-top: 26px; }
.archive-year .yr { font-size: 16px; font-weight: 800; color: var(--accent); letter-spacing: .03em; }
.archive-year .rule { flex: 1; height: 1px; background: var(--line); }
.archive-year .cnt { font-size: 12px; font-weight: 600; color: var(--muted); }
.archive-row { display: flex; align-items: center; gap: 14px; padding: 13px 12px; border-radius: 12px; border-bottom: 1px solid var(--line); transition: all .2s; cursor: pointer; width: 100%; background: transparent; border-left: 0; border-right: 0; border-top: 0; text-align: left; font: inherit; color: inherit; }
.archive-row:hover { background: var(--soft); transform: translateX(4px); }
.archive-thumb { width: 46px; height: 46px; flex-shrink: 0; border-radius: 10px; overflow: hidden; background: var(--soft); position: relative; }
.archive-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.archive-main { flex: 1; min-width: 0; }
.archive-title { display: block; font-size: 15px; font-weight: 700; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.archive-tech { display: block; font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.archive-cat { flex-shrink: 0; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line); font-size: 11.5px; font-weight: 700; color: var(--body); }
.archive-years { flex-shrink: 0; font-size: 12.5px; font-weight: 700; color: var(--muted); width: 104px; text-align: right; }
.empty-state { padding: 48px 0; text-align: center; }
.empty-state p { margin: 0 0 16px; font-size: 15px; color: var(--body); }

.modal-overlay { position: fixed; inset: 0; z-index: 400; background: rgba(10,12,16,.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: clamp(12px, 3vw, 40px); }
.modal-panel { width: min(860px, 100%); max-height: 92vh; overflow-y: auto; overscroll-behavior: contain; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.5); animation: popin .22s ease; }
.modal-media { position: relative; aspect-ratio: 16 / 8; background: var(--soft); }
.modal-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.modal-close { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 10px; border: none; background: rgba(15,17,21,.55); color: #fff; cursor: pointer; font-size: 14px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: all .2s; }
.modal-close:hover { background: rgba(15,17,21,.8); }
.modal-body { padding: clamp(20px, 3.5vw, 32px); }
.modal-title-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.modal-title-row h2 { margin: 0; font-size: clamp(20px, 2.6vw, 26px); font-weight: 800; letter-spacing: -0.01em; color: var(--text); }
.case-grid { margin-top: 22px; display: grid; gap: 14px; }
.case-row { display: flex; gap: 14px; padding: 16px 18px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); }
.case-row.result { background: var(--soft); border-color: var(--accent); }
.case-ic { width: 34px; height: 34px; flex-shrink: 0; border-radius: 9px; background: var(--soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
.case-row.result .case-ic { background: var(--accent); color: var(--accent-ink); }
.case-label { font-size: 11.5px; font-weight: 800; letter-spacing: .12em; color: var(--muted); }
.case-row p { margin: 5px 0 0; font-size: 14.5px; line-height: 1.65; color: var(--body); }
.case-row.result p { color: var(--text); font-weight: 600; }
.modal-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px clamp(20px, 3.5vw, 32px); border-top: 1px solid var(--line); }
.modal-count { font-size: 12.5px; font-weight: 700; color: var(--muted); }

.contact-strip { margin-top: 26px; border-radius: 16px; }
.contact-strip .stat-cell { text-align: left; padding: 18px 20px; }
.contact-strip .k { font-size: 12px; font-weight: 800; letter-spacing: .1em; color: var(--muted); }
.contact-strip .v { margin-top: 5px; font-size: 17px; font-weight: 800; color: var(--text); }
.contact-cols { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.contact-side { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.map-card { position: relative; border-radius: 20px; border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow); min-height: 260px; flex: 1; background-color: var(--surface); background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 36px 36px; background-position: center; }
.map-fade { position: absolute; inset: 0; background: radial-gradient(circle at 50% 46%, transparent 30%, var(--surface) 95%); }
.map-pin-wrap { position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.map-pin { width: 18px; height: 18px; box-sizing: border-box; border-radius: 50%; background: var(--accent); border: 4px solid var(--surface); box-shadow: 0 0 0 2px var(--accent); animation: pinpulse 2.2s ease-out infinite; }
.map-label { padding: 8px 16px; border-radius: 12px; background: var(--glass); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid var(--line); font-size: 13.5px; font-weight: 700; color: var(--text); box-shadow: var(--shadow); white-space: nowrap; }
.map-foot { position: absolute; bottom: 14px; left: 16px; right: 16px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.map-foot .k { font-size: 11px; font-weight: 800; letter-spacing: .12em; color: var(--muted); display: block; }
.map-foot .v { font-size: 14px; font-weight: 700; color: var(--text); }
.map-foot .right { text-align: right; }
.call-card { padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.call-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.call-info { display: flex; align-items: center; gap: 14px; }
.call-ic { width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px; background: var(--soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; font-size: 17px; }
.call-title { font-size: 15px; font-weight: 700; color: var(--text); }
.call-sub { font-size: 12.5px; color: var(--muted); }
.hr-line { height: 1px; background: var(--line); }
.fits-card { padding: 22px; }
.fits-label { font-size: 12px; font-weight: 800; letter-spacing: .1em; color: var(--muted); }
.fits-list { margin-top: 12px; display: flex; flex-direction: column; gap: 9px; }
.fits-list div { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--body); }
.fits-list i { color: var(--ok); font-size: 12px; }
.form-card { flex: 1 1 440px; min-width: 0; align-self: flex-start; position: sticky; top: 88px; border-radius: 20px; padding: clamp(22px, 3.5vw, 36px); }
.form-card h2 { margin: 0; font-size: 24px; font-weight: 800; color: var(--text); letter-spacing: -0.01em; }
.form-sub { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.form-fields { margin-top: 24px; display: flex; flex-direction: column; gap: 16px; }
.form-2col { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field-label { font-size: 12.5px; font-weight: 700; color: var(--text); letter-spacing: .03em; }
.field input, .field textarea { border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg); font-size: 14.5px; color: var(--text); outline: none; transition: all .25s; width: 100%; }
.field input { height: 50px; padding: 0 16px; }
.field textarea { padding: 14px 16px; resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--soft); }
.form-error { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--err); }
.form-error i { margin-right: 6px; }
.form-submit { align-self: flex-end; }
.form-sent { min-height: 420px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 16px; animation: popin .35s ease; }
.sent-ic { width: 84px; height: 84px; border-radius: 50%; background: var(--soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; font-size: 36px; }
.form-sent h2 { margin: 0; font-size: 26px; font-weight: 800; color: var(--text); }
.form-sent p { margin: 0; font-size: 15px; color: var(--body); max-width: 40ch; }
.hp-field { position: absolute; left: -9999px; top: -9999px; opacity: 0; pointer-events: none; }

.nf-num { font-size: clamp(96px, 18vw, 180px); font-weight: 800; line-height: 1; letter-spacing: -0.04em; color: transparent; background: linear-gradient(120deg, #fbbf24 20%, #f59e0b 80%); -webkit-background-clip: text; background-clip: text; display: inline-block; padding: 0.06em 0.08em; margin: -0.06em -0.08em; animation: floaty 3.4s ease-in-out infinite alternate; }
.nf-title { margin: 10px 0 0; font-size: clamp(26px, 4vw, 40px); font-weight: 800; letter-spacing: -0.02em; color: var(--text); text-wrap: balance; }
.nf-text { margin: 14px auto 0; max-width: 52ch; font-size: 16px; line-height: 1.65; color: var(--body); text-wrap: pretty; }
.terminal-card { margin: 28px auto 0; max-width: 460px; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; box-shadow: var(--shadow); font-family: 'SF Mono', SFMono-Regular, Consolas, 'Liberation Mono', monospace; font-size: 13px; line-height: 2; }
.terminal-card div { color: var(--muted); }
.term-err { color: var(--err); font-weight: 700; }
.term-warn { color: var(--accent); font-weight: 700; }
.term-ok { color: var(--ok); font-weight: 700; }
.term-caret { display: inline-block; width: 8px; height: 15px; background: var(--accent); vertical-align: middle; margin-left: 6px; animation: blink 1s step-end infinite; }
.nf-actions { margin-top: 30px; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

@keyframes blink { 0%, 45% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes floaty { from { transform: translateY(0px); } to { transform: translateY(-10px); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(52,211,153,.6); } 70% { box-shadow: 0 0 0 8px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }
@keyframes popin { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes pinpulse { 0% { box-shadow: 0 0 0 0 var(--ring); } 100% { box-shadow: 0 0 0 22px rgba(251,191,36,0); } }
@keyframes drift1 { from { transform: translate(0, 0) scale(1); } to { transform: translate(-70px, 60px) scale(1.12); } }
@keyframes drift2 { from { transform: translate(0, 0) scale(1); } to { transform: translate(80px, -50px) scale(1.08); } }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.spin { animation: spin .8s linear infinite; }

.reveal { opacity: 0; transform: translateY(26px); }
.reveal.shown { opacity: 1; transform: none; transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1); }
.no-js .reveal, .reveal.instant { opacity: 1; transform: none; transition: none; }

@media (min-width: 520px) {
  .stat-grid, .perf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .stat-grid, .perf-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 820px) {
  .hero { flex-direction: row; }
  .hero-photo { width: min(340px, 34vw); }
  .pf-card.span-2 { grid-column: span 2; }
}
@media (max-width: 819.98px) {
  .nav-pill, .btn-cv, .palette-btn { display: none; }
  .bottom-nav { display: flex; -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--surface); }
  .chipbar { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--surface); }
  .main-shell { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .site-footer-inner { padding-bottom: 96px; }
  .archive-cat, .archive-years { display: none; }
  .form-card { position: static; }
  .toast { bottom: calc(90px + env(safe-area-inset-bottom, 0px)); }
  .field input, .field textarea, .search-box input, .palette-head input { font-size: 16px; }
}
.field input:-webkit-autofill, .field textarea:-webkit-autofill { -webkit-text-fill-color: var(--text); -webkit-box-shadow: 0 0 0 1000px var(--bg) inset; caret-color: var(--text); transition: background-color 9999s ease-out; }
.scroll-locked { position: fixed; left: 0; right: 0; overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .fx-particles, .fx-glow { display: none; }
}

@media print {
  :root, :root[data-theme="dark"], :root:not([data-theme="light"]):not([data-theme="dark"]) { color-scheme: light; --bg: #fff; --surface: #fff; --text: #111; --body: #333; --muted: #555; --accent-text: #8a5a00; --line: #ccc; --soft: transparent; --glass: #fff; --shadow: none; --wash1: transparent; --wash2: transparent; --blob1: transparent; --blob2: transparent; }
  .site-header, .bottom-nav, .chipbar-wrap, .fx-particles, .fx-glow, .fx-blob-1, .fx-blob-2, .progress-track, .cta-band, .to-top, .toast, .print-hide { display: none !important; }
  body { background: #fff !important; color: #333; transition: none !important; }
  body::after { display: none; }
  .main-shell { padding-top: 0; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .card, .tl-card, .skill-cloud { box-shadow: none !important; break-inside: avoid; page-break-inside: avoid; }
  a { color: #333; }
}

[hidden] { display: none !important; }

.u-mt-8 { margin-top: 8px; }
.u-mt-18 { margin-top: 18px; }
.u-mt-20 { margin-top: 20px; }
.u-mt-32 { margin-top: 32px; }
.btn i, .link-more i, .cta-band .btn i { font-size: 13px; }
.icon-social.on-bg { background: var(--bg); }
.pill i.accent { color: var(--accent); font-size: 11px; }
.tag-link { font-weight: 700; }
.tag-link i { margin-right: 6px; font-size: 11px; }
.tag-tech-lg { font-size: 12.5px; padding: 6px 13px; }
.modal-blurb { margin: 14px 0 0; font-size: 15px; line-height: 1.7; }
.lightbox-panel { max-width: min(1100px, 96vw); background: transparent; border: 0; box-shadow: none; overflow: visible; position: relative; }
.lightbox-img { width: 100%; height: auto; max-height: 86vh; object-fit: contain; border-radius: 14px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.6); display: block; }
.lightbox-close { top: -6px; right: -6px; }
.lightbox-foot { border: 0; justify-content: center; gap: 18px; }
.lightbox-count { color: #fff; }
