.portfolio {
  --paper: #090a10;
  --ink: #f0f1f7;
  --muted: #a0a3b9;
  --line: #ffffff14;
  --orange: #c6a7ff;
  --green: #89e6cc;
  --accent: #a397ff;
  --gradient: linear-gradient(110deg, #aea5ff 5%, #f4a5ce 55%, #f4c797);
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
.portfolio *, .portfolio *::before, .portfolio *::after { box-sizing: border-box; }
.portfolio p, .portfolio h1, .portfolio h2, .portfolio h3, .portfolio dl { margin: 0; }
.portfolio a, .portfolio button { touch-action: manipulation; }
.portfolio button { color: inherit; }
.portfolio button:disabled { cursor: default; }
.portfolio main { position: relative; margin: 0; max-width: none; }
.portfolio ::selection { background: #9b86f488; color: white; }
.portfolio .section-wrap { width: min(1240px, calc(100% - 112px)); margin-inline: auto; }
.portfolio .section-space { padding-block: 112px; scroll-margin-top: 70px; }
.page-background { position: fixed; inset: 0; overflow: hidden; z-index: -1; pointer-events: none; background: #090a10; }
.page-background::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(#ffffff04 1px, transparent 1px), linear-gradient(90deg, #ffffff04 1px, transparent 1px); background-size: 72px 72px; mask-image: linear-gradient(black, transparent 75%); }
.ambient { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .45; }
.ambient-one { width: 640px; height: 640px; top: -340px; left: -150px; background: #6d51d8; }
.ambient-two { width: 500px; height: 500px; right: -300px; top: 20%; background: #783452; }
.reading-progress { position: fixed; top: 0; height: 2px; left: 0; right: 0; z-index: 100; pointer-events: none; }
.reading-progress i { display: block; width: 100%; height: 100%; background: var(--gradient); transform: scaleX(0); transform-origin: left; }
.skip-link { position: fixed; top: -70px; left: 20px; z-index: 110; padding: 10px 20px; background: var(--accent); color: #090a10; border-radius: 8px; }
.skip-link:focus { top: 10px; }
.portfolio .nav { position: sticky; top: 0; height: 84px; margin: 0; max-width: none; padding: 0 max(40px, calc((100vw - 1240px) / 2)); gap: 35px; border-bottom-color: transparent; z-index: 50; transition: background .3s, height .3s, border-color .3s; }
.portfolio .nav.scrolled, .portfolio .nav.menu-open { height: 72px; background: #0b0b13e8; backdrop-filter: blur(20px); border-bottom-color: var(--line); }
.portfolio .brand { margin-right: auto; font-size: 16px; letter-spacing: 1px; gap: 12px; }
.portfolio .brand-icon { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 12px; background: var(--gradient); color: #161020; font-size: 14px; line-height: 1; letter-spacing: -1px; box-shadow: 0 4px 24px #a48cff22; }
.portfolio .brand-icon img { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; }
.portfolio .brand-icon.has-logo { background: transparent; box-shadow: none; }
.portfolio .brand b { font-weight: 600; }
.portfolio .brand-sub { color: var(--muted); font-size: 8px; letter-spacing: 1.7px; }
.portfolio .nav nav { gap: 26px; }
.portfolio .nav nav a { position: relative; font-size: 12px; color: #b2b3c3; padding-block: 7px; border: 0; transition: color .2s; }
.portfolio .nav nav small { color: var(--accent); font: 9px Consolas, monospace; margin-right: 6px; }
.portfolio .nav nav a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 1px; background: var(--gradient); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.portfolio .nav nav a.active, .portfolio .nav nav a:hover { color: white; }
.portfolio .nav nav a.active::after, .portfolio .nav nav a:hover::after { transform: scaleX(1); }
.portfolio .nav-contact { font-size: 12px; padding: 9px 17px; border-color: #ffffff2a; white-space: nowrap; transition: border-color .2s, background .2s; }
.portfolio .nav-contact:hover { border-color: var(--accent); background: #a397ff15; }
.menu-toggle { display: none; }
.portfolio .hero { padding: 76px 0 55px; min-height: min(850px, calc(100svh - 84px)); display: flex; flex-direction: column; justify-content: center; isolation: isolate; scroll-margin-top: 84px; }
.portfolio .hero::before { content: ''; position: absolute; inset: -30px -20px; background: radial-gradient(400px circle at var(--pointer-x, 75%) var(--pointer-y, 40%), #8c6aff0e, transparent 80%); pointer-events: none; z-index: -1; }
.portfolio .hero-eyebrow { display: flex; width: fit-content; border: 1px solid #ffffff17; background: #ffffff04; padding: 7px 13px; border-radius: 30px; font: 10px Consolas, monospace; letter-spacing: 1.5px; color: #c1bfd3; gap: 9px; }
.portfolio .green-dot { background: #8de2bd; box-shadow: 0 0 12px #8de2bd66; }
.eyebrow-divider { opacity: .35; margin-inline: 3px; }
.portfolio h1 { margin: 31px 0 33px; font-size: clamp(48px, 7.6vw, 106px); font-weight: 750; line-height: 1.22; letter-spacing: -.055em; }
.hero-line { display: block; animation: hero-enter .85s cubic-bezier(.16, 1, .3, 1) both; }
.hero-line:nth-child(2) { animation-delay: .12s; }
.quiet { color: #e2e1ec; }
.gradient-text { background: var(--gradient); background-clip: text; -webkit-background-clip: text; color: transparent; }
.hero-meta { display: grid; grid-template-columns: 1.15fr .85fr; gap: 100px; margin-bottom: 30px; align-items: start; }
.hero-identity { font-size: 14px; color: #e4dfef; margin-bottom: 13px !important; }
.identity-divider { opacity: .3; margin-inline: 10px; }
.portfolio #intro { max-width: 540px; font-size: 14px; line-height: 1.9; color: var(--muted); }
.hero-facts { display: flex; gap: 24px; align-items: flex-start; }
.hero-facts > div { flex: 1; padding: 0 0 12px; border-bottom: 1px solid var(--line); }
.hero-facts dt { font-size: 36px; line-height: 1.1; color: #b5b0ff; letter-spacing: -1px; font-weight: 600; }
.hero-facts dt span { font-size: 12px; font-weight: 400; margin-left: 4px; }
.hero-facts dt b { font-weight: inherit; }
.hero-facts dd { margin: 12px 0 0; font-size: 10px; color: var(--muted); overflow-wrap: anywhere; }
.portfolio [data-copy] { overflow-wrap: anywhere; }
.portfolio :is(.about-detail, .strengths p, .process-card p, .contact-description, #bio) { white-space: pre-line; }
.hero-actions { display: flex; gap: 14px; }
.portfolio .button { display: inline-flex; align-items: center; justify-content: center; gap: 25px; border-radius: 30px; padding: 12px 23px; font-size: 12px; transition: transform .25s, box-shadow .25s, border-color .25s; text-align: center; }
.portfolio .button span { transition: transform .25s; }
.portfolio .button:hover { transform: translateY(-3px); }
.portfolio .button:hover span { transform: translate(2px, -2px); }
.portfolio .button.primary { background: var(--gradient); color: #181321; box-shadow: 0 6px 30px #ad8eff20; }
.portfolio .button.primary:hover { box-shadow: 0 9px 35px #ad8eff40; }
.portfolio .button.secondary { background: #ffffff03; color: #e0ddeb; border: 1px solid #ffffff26; }
.portfolio .button.secondary:hover { border-color: var(--accent); }
.portfolio .hero-bottom { display: flex; justify-content: space-between; align-items: center; margin: 65px 0 0; color: #777c94; font: 8px Consolas, monospace; letter-spacing: 1.7px; }
.hero-bottom a { display: flex; align-items: center; gap: 12px; padding-block: 8px; }
.scroll-line { display: block; width: 52px; height: 1px; background: var(--gradient); }
.hero-orbit { position: absolute; right: -5px; top: 100px; width: 135px; height: 135px; border: 1px solid #a397ff20; border-radius: 50%; display: grid; place-items: center; transform: rotate(-15deg); pointer-events: none; }
.hero-orbit::after { content: ''; position: absolute; inset: 13px; border: 1px dashed #a397ff20; border-radius: 50%; }
.hero-orbit span { font-size: 66px; color: #bb9fe4; font-weight: 200; animation: orbit-turn 45s linear infinite; }
.skill-strip { overflow: hidden; padding: 20px 0; border-block: 1px solid var(--line); background: #ffffff02; }
.skill-track { display: flex; align-items: center; gap: 38px; width: max-content; min-width: 100%; justify-content: center; color: #aaacc2; font: 11px Consolas, monospace; letter-spacing: 2px; padding-inline: 30px; }
.skill-track i { color: var(--accent); font-style: normal; }
.portfolio .section-heading { margin-bottom: 48px; }
.section-index { color: #b3a5f8; font: 10px Consolas, monospace; letter-spacing: 2px; margin-bottom: 17px !important; }
.portfolio h2 { font-size: clamp(30px, 4vw, 53px); font-weight: 650; line-height: 1.35; letter-spacing: -.035em; }
.section-note { color: #8f92a9; font: 9px/1.9 Consolas, monospace; letter-spacing: 1.4px; margin-top: 20px !important; }
.heading-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 25px; }
.heading-row .section-note { text-align: right; }
.portfolio #count { font: 12px/2 Consolas, monospace; color: #c9c2e5; letter-spacing: 0; }
.portfolio .about { display: block; border: 0; }
.about-layout { display: grid; grid-template-columns: .82fr 1.18fr; gap: 48px; align-items: start; }
.portrait-column { min-width: 0; }
.portfolio .portrait-card { position: relative; margin: 0; min-height: 0; padding: 0; border: 1px solid #ffffff24; border-radius: 24px; background: #15171c; overflow: hidden; }
.portrait-display { position: relative; width: 100%; aspect-ratio: 4/5; overflow: hidden; }
.portrait-display img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.portrait-image { transform: scale(var(--portrait-scale, 1)); transform-origin: var(--portrait-origin, 50% 50%); transition: transform .75s cubic-bezier(.16,1,.3,1); }
.portrait-image[src$="/avatar-real-v3.jpg"] { --portrait-scale: 1.95; --portrait-origin: 40% 80%; }
.portrait-card:hover .portrait-image { transform: scale(calc(var(--portrait-scale, 1) + .025)); }
.portrait-card::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(transparent 48%, #090a1050 76%, #090a10dc); }
.portrait-placeholder { position: absolute; inset: 12%; display: grid; place-items: center; border: 1px dashed #a397ff44; border-radius: 18px; color: #b0a2cc; font-size: 13px; }
.identity-caption { position: absolute; bottom: 23px; left: 25px; right: 25px; z-index: 1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; color: #f3f1f7; }
.portfolio .identity-caption #person { font-size: 14px; font-weight: 600; letter-spacing: 0; line-height: 1.7; }
.portfolio .identity-caption #role { font-size: 12px; font-weight: 500; color: #e4e1ed; margin: 0; }
.identity-caption > span { color: #b4a3dd; font-size: 13px; }
.portfolio .about-copy .resume-button { padding: 14px 27px; font-size: 13px; gap: 32px; margin-top: 7px; box-shadow: 0 8px 35px #ad8eff2a; }
.portfolio .about-copy .resume-note { color: #837e99; font-size: 10px; margin-top: 13px; }
.about-career { margin-top: 52px; }
.about-career-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.portfolio .about-career-heading h3 { font-size: 19px; font-weight: 500; }
.about-career-heading > span { color: #85839b; font: 9px Consolas, monospace; letter-spacing: 1px; }
.portfolio .about-copy #bio { font-size: 19px; font-weight: 550; color: #e0dce9; line-height: 1.9; margin-bottom: 25px; }
.portfolio .about-detail { color: #a6a4b9; font-size: 14px; line-height: 1.95; margin-bottom: 30px; }
.skills-card { border: 1px solid #ffffff17; border-radius: 20px; background: linear-gradient(145deg, #ffffff04, #ffffff01); padding: 23px 25px; margin-top: 20px; }
.portfolio .skills-card h3 { color: #a19ab8; font: 12px Consolas, monospace; letter-spacing: 2px; margin-bottom: 20px; }
.portfolio .skills-card .skills { margin: 0; gap: 8px; }
.portfolio .skills-card .skills span { font-size: 13px; padding: 7px 12px; }
.portfolio .about-copy .resume-button { margin-top: 24px; }
.strengths { display: grid; gap: 12px; }
.strengths > div { display: flex; gap: 18px; padding: 17px 20px; border: 1px solid #ffffff11; border-radius: 12px; background: #ffffff03; transition: transform .25s, border-color .25s, background .25s; }
.strengths > div:hover { transform: translateX(5px); border-color: #a397ff55; background: #a397ff08; }
.strengths span { font: 10px/2 Consolas, monospace; color: var(--accent); }
.portfolio .strengths p { margin: 0; font-size: 14px; color: #a8a9bc; }
.portfolio .skills { gap: 8px; margin: 25px 0; }
.portfolio .skills span { border-color: #ffffff18; border-radius: 30px; padding: 6px 12px; color: #b5b2c7; background: #ffffff03; font-size: 10px; transition: color .2s, border-color .2s, transform .2s; }
.portfolio .skills span:hover { border-color: #a397ff88; transform: translateY(-2px); color: #ece7ff; }
.text-link { display: inline-flex; gap: 40px; padding: 8px 0; border-bottom: 1px solid #ac9de955; color: #cec2f4; font-size: 12px; }
.text-link:hover { color: white; }
.portfolio .works { border-top: 1px solid var(--line); }
.portfolio .filter-row { position: relative; top: auto; z-index: 1; margin: 0 0 30px; padding: 15px 0; background: transparent; border-bottom: 1px solid var(--line); gap: 14px; }
.portfolio .filters { gap: 5px; }
.portfolio .filters button { font-size: 13px; padding: 9px 16px; color: #aaacc1; background: transparent; border: 1px solid transparent; transition: color .2s, background .2s, border-color .2s; }
.portfolio .filters button.selected { background: #a99be5; color: #14111e; }
.portfolio .filters button:hover { border-color: #a397ff55; color: #ece6ff; }
.portfolio .filters button.selected:hover { color: #14111e; }
.portfolio .filters sup { font-size: 9px; margin-left: 6px; }
.portfolio .search { gap: 7px; border: 1px solid #ffffff16; background: #ffffff03; border-radius: 30px; padding: 4px 12px; flex-shrink: 0; }
.portfolio .search:focus-within { border-color: #a397ff99; }
.portfolio .search input { width: 140px; color: #e2dfee; font-size: 10px; }
.portfolio .search input::placeholder { color: #888ba3; }
.portfolio .search span { font-size: 21px; }
.portfolio .search kbd { font: 9px Consolas, monospace; padding: 1px 5px; border: 1px solid #ffffff22; border-radius: 3px; color: #7a7d94; }
.portfolio .masonry { columns: 3; column-gap: 22px; min-height: 150px; }
.portfolio .work-card { margin: 0 0 23px; border: 1px solid #ffffff13; border-radius: 18px; background: #101119; overflow: hidden; transition: border-color .3s, box-shadow .3s, transform .3s; animation: card-enter .45s ease both; }
.portfolio .work-card:hover, .portfolio .work-card:focus-visible { border-color: #a397ff77; box-shadow: 0 15px 45px #0007; transform: translateY(-5px); }
.portfolio .work-image { border-radius: 0; background: #171a23; }
.portfolio .work-image img { min-height: 0; transition: transform .7s cubic-bezier(.16,1,.3,1), filter .4s; }
.portfolio .work-card:hover img { transform: scale(1.045); filter: saturate(1.05); }
.work-image::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(120deg, transparent 30%, #ffffff14 50%, transparent 70%); opacity: 0; transform: translateX(-100%); }
.work-card:hover .work-image::after { opacity: 1; transform: translateX(100%); transition: transform .8s, opacity .2s; }
.work-hover { position: absolute; right: 14px; bottom: 14px; background: #11131abf; border: 1px solid #ffffff55; color: white; backdrop-filter: blur(10px); border-radius: 30px; padding: 6px 13px; font-size: 10px; opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s; }
.work-card:hover .work-hover, .work-card:focus-visible .work-hover { opacity: 1; transform: none; }
.portfolio .work-caption { padding: 17px 18px 18px; gap: 12px; }
.portfolio .work-caption h3 { font-size: 13px; color: #e3e1ed; overflow-wrap: anywhere; }
.portfolio .work-caption p { color: #858ba4; font: 8px Consolas, monospace; letter-spacing: 1px; margin-top: 7px; }
.portfolio .arrow { width: 29px; height: 29px; border: 1px solid #ffffff1a; border-radius: 50%; display: grid; place-items: center; font-size: 14px; color: #b4a8d5; flex-shrink: 0; }
.portfolio .work-card.video .work-image { background: radial-gradient(ellipse at 25% 20%, #aa729866, transparent 80%), linear-gradient(150deg, #262344, #141927); aspect-ratio: 16/10; }
.portfolio .video-fallback { color: #d4c5ec; font-size: 40px; padding: 25px; }
.portfolio .play { width: 55px; height: 55px; background: #ffffff12; }
.portfolio .badge { bottom: auto; top: 13px; left: 13px; padding: 4px 10px; font: 8px/1.7 Consolas, monospace; background: #d3b0d4; color: #151320; }
.portfolio .end-note { padding: 65px 0 0; color: #85869d; }
.end-note > span { color: #bca3d7; font-size: 21px; }
.portfolio .end-note p { margin: 15px 0 8px; font-size: 11px; }
.end-note small { font: 8px Consolas, monospace; letter-spacing: 2px; }
.portfolio .empty { padding: 80px 20px; border: 1px dashed #ffffff22; border-radius: 20px; font-size: 13px; }
.experience-section, .process-section { border-top: 1px solid var(--line); }
.career-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.career-heading { grid-column: 1/-1; font-size: 14px; font-weight: 400; color: #a8a3ba; padding: 12px 0 4px; }
.career-card { position: relative; padding: 26px; border: 1px solid #ffffff17; border-radius: 17px; background: linear-gradient(135deg, #ffffff05, #ffffff02); transition: border-color .3s, transform .3s; }
.career-card:hover { border-color: #a397ff66; transform: translateY(-4px); }
.career-date { color: #b3a2e3; font: 11px Consolas, monospace; margin-bottom: 23px !important; }
.portfolio .career-card h3 { font-size: 17px; font-weight: 550; line-height: 1.6; margin-bottom: 12px; }
.career-role { font-size: 12px; color: #c2bbd6; margin-bottom: 19px !important; }
.career-body { color: #9599b0; font-size: 12px; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; }
.career-note { grid-column: 1/-1; white-space: pre-wrap; color: #b5b3c8; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.process-card { position: relative; padding: 26px 24px 50px; min-height: 230px; border: 1px solid #ffffff16; border-radius: 16px; background: #ffffff03; transition: border-color .3s, background .3s; }
.process-card:hover { border-color: #a397ff77; background: #a397ff09; }
.process-card > span { font: 9px Consolas, monospace; color: #a294c2; letter-spacing: 1px; }
.portfolio .process-card h3 { font-size: 21px; font-weight: 500; margin: 27px 0 13px; }
.process-card p { color: #9599ad; font-size: 12px; line-height: 1.9; }
.process-card i { position: absolute; bottom: 20px; right: 24px; color: #9785c5; font: normal 20px Arial; transition: transform .25s; }
.process-card:hover i { transform: translate(4px, -4px); }
.portfolio .contact { border: 0; padding-top: 40px; }
.contact-panel { padding: 62px; border: 1px solid #a397ff2a; border-radius: 25px; background: radial-gradient(ellipse at 90% 0%, #7b4f9c28, transparent 65%), linear-gradient(135deg, #141420, #0e0f17); }
.portfolio .contact h2 { position: relative; font-size: clamp(32px, 4.6vw, 60px); margin: 22px 0; }
.portfolio .contact h2 > .contact-arrow { position: absolute; right: 0; top: -5px; float: none; color: #aa92d2; font-size: 78px; font-weight: 300; }
.contact-description { color: #a5a2b7; font-size: 13px; max-width: 550px; margin-bottom: 32px !important; }
.portfolio #contacts { display: flex; flex-wrap: wrap; gap: 12px 28px; color: #d3ccdf; font-size: 13px; }
.portfolio #contacts a { padding-block: 7px; border-bottom: 1px solid #ffffff28; transition: color .2s, border-color .2s; }
.portfolio #contacts a:hover { color: white; border-color: var(--accent); }
.portfolio #contacts > span { display: flex; align-items: center; color: #85869a; font-size: 11px; }
.copy-button { border: 0; background: transparent; color: #c7b8e4 !important; font-size: 11px; padding: 10px 0; margin-top: 12px; }
.copy-button > span[aria-hidden="true"] { margin-left: 12px; }
.contact-signature { display: block; border-top: 1px solid var(--line); padding-top: 25px; margin-top: 35px; font: 8px Consolas, monospace; letter-spacing: 1.5px; color: #7d7e97; }
.portfolio footer { max-width: 1240px; margin: 0 auto; padding: 26px 0; gap: 20px; font: 9px Consolas, monospace; color: #7e8198; }
.portfolio footer b { color: #b5b1c6; font-weight: 400; margin-right: 8px; }
.portfolio footer a:hover { color: #d3c3f5; }
.to-top { position: fixed; right: 24px; bottom: 24px; z-index: 20; width: 42px; height: 42px; border-radius: 50%; border: 1px solid #a397ff55; background: #171723dd; backdrop-filter: blur(12px); font-size: 20px; transition: background .2s, transform .2s; }
.to-top:hover { transform: translateY(-3px); background: #49405b; }
.portfolio .viewer { background: #090a10; color: #eeedf4; overscroll-behavior: contain; }
.portfolio .viewer-bar { background: #0d0e17f5; border-bottom: 1px solid #ffffff17; padding: 14px 4%; font-size: 12px; min-height: 70px; }
.viewer-bar > div:first-child { min-width: 0; display: flex; align-items: center; gap: 17px; }
.viewer-counter { color: #b6a5e1; font: 10px Consolas, monospace; white-space: nowrap; }
.viewer-controls { display: flex; align-items: center; flex-shrink: 0; }
.portfolio .viewer-bar button { width: 35px; height: 35px; margin-left: 7px; font-size: 13px; }
.portfolio .viewer-bar button:hover { background: #a397ff33; }
.portfolio .viewer-bar #zoom { width: auto; padding: 0 13px; border-radius: 25px; font-size: 10px; }
.portfolio #viewer-media { min-height: 70vh; align-items: flex-start; padding: 24px; overflow: auto; }
.portfolio #viewer-media img { max-width: min(100%, 1300px); cursor: zoom-in; }
.portfolio #viewer-media.zoomed { display: block; text-align: left; }
.portfolio #viewer-media.zoomed img { max-width: none; margin: 0 auto; cursor: zoom-out; }
.portfolio #viewer-media video { align-self: center; width: min(100%, 1300px); max-height: 78vh; }
.external-video { align-self: center; width: min(calc(100% - 24px), 1200px, 125vh); }
.external-video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; }
.external-video a { display: inline-block; margin-top: 12px; padding: 7px 12px; color: #d4c5ec; text-decoration: underline; text-underline-offset: 3px; }
.portfolio #viewer-description { font-size: 13px; line-height: 1.9; color: #a6a1b7; margin-block: 15px; }
.viewer-hint { text-align: center; color: #74768c; font: 9px Consolas, monospace; padding: 15px 20px 35px; }
.viewer-hint > span:last-child { margin-left: 22px; }
.portfolio #toast { background: #e0c5e5; color: #211829; box-shadow: 0 8px 40px #0008; font-size: 12px; }
.motion-ready .reveal { opacity: 0; transform: translateY(20px); transition: opacity .65s ease, transform .65s cubic-bezier(.16,1,.3,1); }
.motion-ready .reveal.is-visible { opacity: 1; transform: none; }
@keyframes hero-enter { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes card-enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes orbit-turn { to { transform: rotate(360deg); } }
@media (min-width: 1600px) { .portfolio .masonry { columns: 3; } }
@media (max-width: 1200px) {
  .portfolio .section-wrap { width: calc(100% - 80px); }
  .portfolio .nav { padding-inline: 40px; gap: 24px; }
  .portfolio .nav nav { gap: 18px; }
  .hero-meta { gap: 55px; }
  .hero-facts { gap: 17px; }
  .hero-orbit { width: 100px; height: 100px; top: 65px; right: 0; }
  .hero-orbit span { font-size: 45px; }
  .about-layout { gap: 40px; }
  .portfolio footer { margin-inline: 40px; }
  .portfolio .filter-row { flex-wrap: wrap; }
}
@media (max-width: 900px) {
  .portfolio .section-space { padding-block: 80px; }
  .portfolio .nav nav { gap: 14px; }
  .portfolio .nav-contact { display: none; }
  .portfolio .hero { padding-top: 65px; min-height: auto; }
  .portfolio h1 { font-size: clamp(47px, 8.4vw, 78px); }
  .hero-orbit { width: 70px; height: 70px; top: 95px; right: 0; opacity: .6; }
  .hero-orbit span { font-size: 32px; }
  .hero-meta { grid-template-columns: 1fr; gap: 28px; }
  .hero-facts { max-width: 460px; gap: 30px; }
  .hero-facts dt { font-size: 30px; }
  .portfolio .masonry { columns: 2; column-gap: 18px; }
  .about-layout { gap: 30px; grid-template-columns: .82fr 1.18fr; }
  .portfolio .about-copy #bio { font-size: 17px; }
  .career-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-panel { padding: 40px; }
}
@media (max-width: 600px) {
  .portfolio .section-wrap { width: calc(100% - 40px); }
  .portfolio .section-space { padding-block: 64px; scroll-margin-top: 55px; }
  .portfolio .nav, .portfolio .nav.scrolled { height: 70px; padding-inline: 20px; margin: 0; }
  .portfolio .brand { font-size: 14px; }
  .portfolio .brand-sub { font-size: 7px; }
  .portfolio .brand-icon { width: 33px; height: 33px; border-radius: 10px; font-size: 12px; }
  .menu-toggle { display: grid; place-items: center; position: relative; width: 38px; height: 38px; border: 1px solid #ffffff20; border-radius: 50%; background: #ffffff04; }
  .menu-toggle i { position: absolute; left: 10px; width: 16px; height: 1px; background: #e0dceb; transition: transform .25s; }
  .menu-toggle i:first-child { top: 14px; }
  .menu-toggle i:last-child { top: 21px; }
  .menu-open .menu-toggle i:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-open .menu-toggle i:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .portfolio .nav nav { display: none; position: absolute; top: 70px; left: 0; right: 0; padding: 12px 25px 22px; background: #10101bee; border-bottom: 1px solid #ffffff22; backdrop-filter: blur(20px); }
  .portfolio .nav.menu-open nav { display: grid; gap: 0; }
  .portfolio .nav nav a { font-size: 15px; padding: 15px 0; border-bottom: 1px solid #ffffff0f; }
  .portfolio .nav nav small { font-size: 10px; margin-right: 16px; }
  .portfolio .hero { padding: 48px 0 28px; min-height: auto; scroll-margin-top: 70px; }
  .portfolio .hero-eyebrow { font-size: 8px; letter-spacing: .8px; padding: 6px 11px; gap: 7px; }
  .portfolio h1 { font-size: clamp(37px, 10.8vw, 64px); margin: 30px 0 26px; line-height: 1.35; letter-spacing: -.06em; }
  .hero-orbit { width: 57px; height: 57px; top: 42px; right: 0; opacity: .45; }
  .hero-orbit span { font-size: 27px; }
  .hero-orbit::after { inset: 7px; }
  .hero-identity { font-size: 12px; }
  .portfolio #intro { font-size: 12px; line-height: 1.9; }
  .hero-meta { gap: 26px; margin-bottom: 25px; }
  .hero-facts { gap: 20px; max-width: 100%; }
  .hero-facts dt { font-size: 29px; }
  .hero-facts dd { font-size: 8px; margin-top: 9px; }
  .hero-facts dt span { font-size: 10px; }
  .hero-actions { gap: 10px; }
  .portfolio .button { font-size: 11px; padding: 11px 18px; gap: 17px; }
  .portfolio .hero-bottom { margin-top: 32px; font-size: 7px; letter-spacing: 1px; }
  .hero-bottom > span { display: none; }
  .skill-strip { padding: 16px 0; }
  .skill-track { justify-content: flex-start; gap: 25px; font-size: 9px; padding-inline: 20px; }
  .portfolio .section-heading { margin-bottom: 31px; }
  .section-index { font-size: 8px; margin-bottom: 15px !important; }
  .portfolio h2 { font-size: 32px; line-height: 1.4; }
  .section-note { font-size: 7px; }
  .heading-row { display: block; }
  .heading-row .section-note { text-align: left; margin-top: 17px !important; }
  .portfolio #count { font-size: 11px; }
  .about-layout { grid-template-columns: 1fr; gap: 28px; }
  .portrait-column { width: 94%; margin-inline: auto; }
  .portfolio .portrait-card { border-radius: 18px; }
  .identity-caption { left: 20px; right: 20px; bottom: 19px; gap: 9px; }
  .portfolio .identity-caption #person { font-size: 13px; }
  .portfolio .identity-caption #role { font-size: 11px; }
  .portfolio .about-copy .resume-button { padding: 13px 23px; font-size: 12px; }
  .portfolio .about-detail { font-size: 13px; margin-bottom: 24px; }
  .skills-card { padding: 21px 20px; border-radius: 16px; }
  .portfolio .skills-card .skills span { font-size: 12px; }
  .strengths > div { padding: 14px 16px; gap: 13px; }
  .portfolio .strengths p { font-size: 13px; }
  .portfolio .skills span { font-size: 10px; }
  .portfolio .filter-row { top: auto; display: block; padding: 12px 0; margin-bottom: 20px; }
  .portfolio .filters { gap: 4px; }
  .portfolio .filters button { font-size: 11px; padding: 8px 11px; }
  .portfolio .filters sup { font-size: 8px; margin-left: 4px; }
  .portfolio .search { width: 100%; margin-top: 10px; padding-block: 3px; }
  .portfolio .search input { width: 100%; font-size: 11px; }
  .portfolio .search kbd { display: none; }
  .portfolio .masonry { columns: 2; column-gap: 11px; }
  .portfolio .work-card { border-radius: 12px; margin-bottom: 13px; }
  .portfolio .work-caption { padding: 12px 11px; gap: 6px; }
  .portfolio .work-caption h3 { font-size: 10px; }
  .portfolio .work-caption p { font-size: 6px; letter-spacing: .3px; margin-top: 6px; }
  .portfolio .arrow { width: 22px; height: 22px; font-size: 11px; }
  .portfolio .badge { top: 9px; left: 9px; font-size: 6px; padding: 3px 7px; }
  .portfolio .video-fallback { font-size: 27px; padding: 15px; }
  .portfolio .play { width: 43px; height: 43px; font-size: 17px; }
  .work-hover { display: none; }
  .portfolio .end-note { padding-top: 38px; }
  .career-grid { grid-template-columns: 1fr; gap: 13px; }
  .about-career { margin-top: 35px; }
  .about-career-heading { display: block; }
  .about-career-heading > span { display: block; margin-top: 8px; font-size: 8px; }
  .career-card { padding: 23px; }
  .career-date { margin-bottom: 17px !important; }
  .process-grid { gap: 11px; }
  .process-card { padding: 21px 17px 40px; min-height: 220px; border-radius: 13px; }
  .process-card > span { font-size: 7px; letter-spacing: .3px; }
  .portfolio .process-card h3 { font-size: 18px; margin-top: 23px; }
  .process-card p { font-size: 11px; }
  .portfolio .contact { padding-top: 15px; }
  .contact-panel { padding: 30px 23px; border-radius: 18px; }
  .portfolio .contact h2 { font-size: 29px; }
  .portfolio .contact h2 > .contact-arrow { display: none; }
  .contact-description { font-size: 12px; margin-bottom: 23px !important; }
  .portfolio #contacts { display: grid; gap: 12px; font-size: 12px; }
  .portfolio #contacts a { width: fit-content; }
  .contact-signature { font-size: 7px; letter-spacing: .8px; line-height: 1.7; }
  .portfolio footer { margin-inline: 20px; padding: 23px 0; font-size: 7px; }
  .portfolio footer > span:nth-child(2) { display: none; }
  .to-top { right: 14px; bottom: 14px; width: 36px; height: 36px; font-size: 18px; }
  .portfolio .viewer-bar { min-height: 64px; padding: 12px; font-size: 10px; gap: 7px; }
  .viewer-bar > div:first-child { display: grid; gap: 3px; }
  .viewer-counter { font-size: 8px; }
  .portfolio .viewer-bar button { width: 31px; height: 31px; font-size: 12px; margin-left: 5px; }
  .portfolio .viewer-bar #zoom { padding: 0 8px; font-size: 8px; }
  .portfolio #viewer-media { padding: 14px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .portfolio *, .portfolio *::before, .portfolio *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .motion-ready .reveal { opacity: 1; transform: none; }
}
