:root {
  --bg: #eee8dc;
  --surface: #faf7f0;
  --panel: #e4dccd;
  --panel-2: #d8d0c1;
  --text: #18201d;
  --muted: #666c65;
  --line: rgba(24, 32, 29, 0.16);
  --accent: #a95533;
  --accent-2: #c6954d;
  --deep: #1f3b34;
  --shadow: 0 26px 70px rgba(48, 38, 28, 0.16);
  --radius: 22px;
  --max: 1240px;
}

html[data-theme="dark"] {
  --bg: #141916;
  --surface: #1c221e;
  --panel: #242b26;
  --panel-2: #30372f;
  --text: #f1eadf;
  --muted: #aaa99f;
  --line: rgba(241, 234, 223, 0.14);
  --accent: #d1855e;
  --accent-2: #d1ad68;
  --deep: #d1ad68;
  --shadow: 0 26px 70px rgba(0, 0, 0, 0.3);
}

* { box-sizing: border-box; }
html { max-width: 100%; overflow-x: clip; scroll-behavior: smooth; }
body {
  width: 100%;
  margin: 0;
  overflow-x: clip;
  color: var(--text);
  background:
    radial-gradient(circle at 78% 8%, color-mix(in srgb, var(--accent-2) 10%, transparent), transparent 30rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button, select { color: inherit; font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
::selection { color: #fffaf1; background: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -5rem; left: 1rem; z-index: 999; padding: .7rem 1rem; color: #fffaf1; background: var(--accent); border-radius: 999px; }
.skip-link:focus { top: 1rem; }
.progress { position: fixed; top: 0; left: 0; z-index: 120; width: 0; height: 3px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: 72px;
  padding: 0 clamp(1rem, 4vw, 4rem);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(18px);
}
.wordmark { display: flex; align-items: center; gap: .65rem; font-weight: 750; letter-spacing: -.02em; }
.mark { position: relative; display: block; width: 38px; height: 48px; overflow: hidden; flex: 0 0 auto; }
.mark img { position: absolute; left: 50%; bottom: -5px; width: 54px; max-width: none; transform: translateX(-50%); filter: drop-shadow(0 4px 5px rgba(31, 26, 21, .18)); }
nav { display: flex; gap: 1.6rem; color: var(--muted); font-size: .86rem; }
nav a { transition: color .2s ease; }
nav a:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: .5rem; }
select, .icon-button { height: 38px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.header-actions select { padding: 0 .75rem; appearance: none; text-align: center; }
.icon-button { display: grid; place-items: center; width: 38px; font-size: 1rem; }

.hero {
  --hero-copy-x: 0px;
  --hero-media-x: 0px;
  --hero-media-rotate: 0deg;
  --hero-opacity: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(320px, .72fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 6rem);
  min-height: calc(100vh - 72px);
  max-width: var(--max);
  margin: auto;
  padding: clamp(3.5rem, 7vw, 6.5rem) clamp(1rem, 3vw, 2rem);
  overflow: clip;
}
.hero-copy { min-width: 0; opacity: var(--hero-opacity); transform: translate3d(var(--hero-copy-x), 0, 0); will-change: transform, opacity; }
.overline { margin: 0 0 1.2rem; color: var(--accent); font-size: .72rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.hero-title { margin: .2rem 0 2.2rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(4.7rem, 9vw, 8.6rem); font-weight: 400; letter-spacing: -.075em; line-height: .76; }
.hero-title span, .hero-title em { display: block; animation: title-in .9s cubic-bezier(.2, .7, .2, 1) both; }
.hero-title em { margin-left: .25em; color: var(--accent); font-weight: 400; animation-delay: .08s; }
@keyframes title-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hero-text { max-width: 690px; margin: 0; color: var(--muted); font-size: clamp(1.04rem, 1.45vw, 1.25rem); }
.hero-buttons { display: flex; flex-wrap: wrap; gap: .75rem; margin: 2rem 0 1.5rem; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 2rem; min-width: 205px; padding: .86rem 1rem; border: 1px solid var(--line); border-radius: 999px; font-size: .88rem; font-weight: 750; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button-primary { color: #fffaf1; background: var(--accent); border-color: var(--accent); }
.button-secondary { background: var(--surface); }
.button:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(35, 31, 25, .1); }
.hero-meta { display: flex; flex-wrap: wrap; gap: .5rem; }
.hero-meta span { padding: .35rem .68rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; font-size: .74rem; background: color-mix(in srgb, var(--surface) 72%, transparent); }

.hero-media { position: relative; display: grid; place-items: end center; min-height: 560px; }
.portrait-sticker { position: relative; z-index: 1; width: min(100%, 430px); margin: 0; opacity: var(--hero-opacity); transform: translate3d(var(--hero-media-x), 0, 0) rotate(var(--hero-media-rotate)); transform-origin: 50% 75%; will-change: transform, opacity; }
.portrait-sticker img { width: 100%; height: auto; -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 83%, rgba(0, 0, 0, .88) 90%, transparent 100%); mask-image: linear-gradient(to bottom, #000 0%, #000 83%, rgba(0, 0, 0, .88) 90%, transparent 100%); -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; filter: drop-shadow(1px 0 0 var(--surface)) drop-shadow(-1px 0 0 var(--surface)) drop-shadow(0 1px 0 var(--surface)) drop-shadow(0 -1px 0 var(--surface)) drop-shadow(0 24px 24px rgba(48, 38, 28, .16)); animation: portrait-in .95s cubic-bezier(.2, .75, .2, 1) both; }
@keyframes portrait-in { from { opacity: 0; transform: translateX(44px) rotate(3deg) scale(.96); } to { opacity: 1; transform: none; } }

.section-shell { max-width: var(--max); margin: auto; padding: clamp(4rem, 7vw, 7rem) clamp(1rem, 3vw, 2rem); border-top: 1px solid var(--line); }
.section-label { display: flex; align-items: center; gap: .65rem; margin-bottom: 2rem; color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.section-label span { color: var(--accent); }
.section-label p { margin: 0; }
.compact-intro { padding-top: 4.5rem; }
.intro-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 5rem); }
.intro-grid h2, .section-title-row h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.05em; line-height: .98; }
.intro-grid h2 { font-size: clamp(2.5rem, 4.6vw, 4.8rem); }
.intro-text { color: var(--muted); font-size: 1.02rem; }
.intro-text p:first-child { margin-top: 0; }
.section-title-row { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2.2rem; }
.section-title-row h2 { max-width: 790px; font-size: clamp(2.7rem, 5vw, 5.2rem); }
.section-title-row a { color: var(--accent); font-size: .84rem; font-weight: 700; }
.project-list { display: grid; gap: 1rem; }
.project { display: grid; grid-template-columns: minmax(260px, .7fr) 1.3fr auto; min-height: 290px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .25s ease, box-shadow .25s ease; }
.project:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.project-visual { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 290px; padding: 1.5rem; overflow: hidden; color: #fffaf1; background: var(--deep); border-right: 1px solid var(--line); }
.project-visual::after { position: absolute; top: -34%; right: -28%; width: 270px; height: 270px; content: ""; border: 1px solid rgba(255, 255, 255, .28); border-radius: 50%; }
.project-visual strong { position: relative; z-index: 1; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3.3rem, 6vw, 6.5rem); font-weight: 400; letter-spacing: -.06em; line-height: .8; }
.project-visual small { position: relative; z-index: 1; margin-top: 1rem; color: rgba(255, 250, 241, .66); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; }
.visual-index { position: absolute; top: 1rem; left: 1rem; font-size: .7rem; letter-spacing: .1em; }
.ocr-flow { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(118px, 1fr) auto 64px; align-items: center; gap: .65rem; width: 100%; }
.ocr-document { position: relative; padding: .8rem .75rem .7rem; overflow: hidden; color: #262a25; background: #fffdf6; border: 1px solid rgba(255, 255, 255, .55); border-radius: 10px; box-shadow: 0 14px 28px rgba(0, 0, 0, .16); transform: rotate(-2deg); }
.ocr-document::after { position: absolute; top: 0; right: 0; width: 0; height: 0; content: ""; border-top: 18px solid rgba(31, 71, 61, .16); border-left: 18px solid transparent; }
.ocr-document-head, .ocr-document-row { display: flex; align-items: center; justify-content: space-between; gap: .45rem; }
.ocr-document-head { padding-bottom: .45rem; margin-bottom: .28rem; border-bottom: 1px solid rgba(38, 42, 37, .14); font-size: .55rem; text-transform: uppercase; }
.ocr-document-head b { color: var(--accent); }
.ocr-document-row { padding: .22rem 0; color: rgba(38, 42, 37, .58); font-size: .5rem; }
.ocr-document-row b { overflow: hidden; color: #262a25; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.ocr-scan-line { position: absolute; right: .5rem; left: .5rem; top: 48%; height: 2px; background: #90d033; box-shadow: 0 0 10px rgba(144, 208, 51, .85); animation: scan-document 2.8s ease-in-out infinite; }
@keyframes scan-document { 0%, 100% { transform: translateY(-42px); opacity: .15; } 45%, 55% { opacity: 1; } 50% { transform: translateY(42px); } }
.ocr-transfer { display: grid; justify-items: center; gap: .15rem; color: rgba(255, 250, 241, .76); font-size: .5rem; font-style: normal; font-weight: 800; letter-spacing: .08em; }
.ocr-transfer i { color: #90d033; font-size: 1rem; font-style: normal; }
.datev-mark { display: grid; width: 64px; height: 74px; padding: .55rem; place-items: center; background: #fff; border-radius: 12px; box-shadow: 0 14px 28px rgba(0, 0, 0, .15); }
.datev-mark img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.visual-shop { color: #211d18; background: var(--accent-2); }
.visual-shop small { color: rgba(33, 29, 24, .62); }
.visual-shop::after { border-color: rgba(33, 29, 24, .25); }
.shop-flow { position: relative; z-index: 1; display: grid; grid-template-columns: 58px minmax(82px, 1fr) 58px; align-items: center; gap: .5rem; }
.shop-node { display: grid; width: 58px; height: 58px; overflow: hidden; place-items: center; background: rgba(255, 255, 255, .94); border: 1px solid rgba(33, 29, 24, .13); border-radius: 14px; box-shadow: 0 12px 24px rgba(33, 29, 24, .12); }
.shop-node img { display: block; max-width: 72%; max-height: 72%; object-fit: contain; }
.shop-node-libri img { max-width: 50%; }
.shop-node-tiktok { background: #050505; }
.shop-node-tiktok img { max-width: 84%; max-height: 84%; }
.shop-pipeline { position: relative; height: 72px; }
.pipeline-line { position: absolute; top: 50%; right: 0; left: 0; height: 2px; background: rgba(33, 29, 24, .28); }
.pipeline-line::after { position: absolute; top: -4px; right: 0; width: 8px; height: 8px; content: ""; border-top: 2px solid rgba(33, 29, 24, .52); border-right: 2px solid rgba(33, 29, 24, .52); transform: rotate(45deg); }
.book-packet { position: absolute; top: 50%; display: grid; width: 28px; height: 34px; place-items: center; color: #fffaf1; background: var(--deep); border: 1px solid rgba(255, 255, 255, .35); border-radius: 5px 8px 8px 5px; box-shadow: 0 7px 14px rgba(33, 29, 24, .14); font-size: .48rem; font-weight: 800; transform: translateY(-50%); }
.book-packet::after { position: absolute; top: 4px; bottom: 4px; left: 4px; width: 1px; content: ""; background: rgba(255, 255, 255, .45); }
.packet-one { left: 4%; transform: translateY(-56%) rotate(-7deg); }
.packet-two { left: 37%; z-index: 1; background: var(--accent); transform: translateY(-46%) rotate(4deg); }
.packet-three { right: 4%; background: #243478; transform: translateY(-58%) rotate(7deg); }
.shop-legend { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: .35rem; margin-top: 1rem; color: rgba(33, 29, 24, .7); font-size: .47rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.shop-legend i { color: var(--accent); font-size: .7rem; font-style: normal; }
.visual-radar { background: var(--accent); }
.visual-radar::after { display: none; }
.radar-map { position: relative; z-index: 1; height: 154px; overflow: hidden; background: rgba(255, 250, 241, .1); border: 1px solid rgba(255, 250, 241, .22); border-radius: 14px; }
.map-road { position: absolute; display: block; height: 1px; background: rgba(255, 250, 241, .34); transform-origin: left center; }
.road-one { top: 24%; left: -8%; width: 126%; transform: rotate(20deg); }
.road-two { top: 77%; left: -4%; width: 122%; transform: rotate(-17deg); }
.road-three { top: 9%; left: 61%; width: 92%; transform: rotate(72deg); }
.map-pin { position: absolute; z-index: 2; width: 13px; height: 13px; background: #fffaf1; border: 3px solid var(--deep); border-radius: 50% 50% 50% 0; box-shadow: 0 4px 8px rgba(40, 19, 11, .18); transform: rotate(-45deg); }
.map-pin i { position: absolute; top: 2px; left: 2px; width: 3px; height: 3px; background: var(--accent); border-radius: 50%; }
.pin-one { top: 23%; left: 20%; }
.pin-two { top: 67%; left: 39%; }
.pin-three { top: 18%; right: 18%; }
.radar-ring { position: absolute; z-index: 1; top: 50%; left: 50%; border: 1px solid rgba(255, 250, 241, .4); border-radius: 50%; transform: translate(-50%, -50%); }
.ring-one { width: 76px; height: 76px; }
.ring-two { width: 126px; height: 126px; }
.radar-sweep { position: absolute; z-index: 1; top: 50%; left: 50%; width: 58px; height: 58px; background: conic-gradient(from 0deg, rgba(255, 250, 241, .42), transparent 31%); border-radius: 100% 0 0; transform-origin: left top; animation: radar-turn 4.5s linear infinite; }
@keyframes radar-turn { to { transform: rotate(360deg); } }
.radar-center { position: absolute; z-index: 2; top: 50%; left: 50%; width: 8px; height: 8px; background: #fffaf1; border-radius: 50%; box-shadow: 0 0 0 5px rgba(255, 250, 241, .14); transform: translate(-50%, -50%); }
.match-card { position: absolute; z-index: 3; right: .65rem; bottom: .65rem; display: grid; grid-template-columns: auto 1fr; column-gap: .45rem; min-width: 118px; padding: .48rem .58rem; color: #29231d; background: rgba(255, 250, 241, .94); border-radius: 9px; box-shadow: 0 10px 20px rgba(40, 19, 11, .18); }
.match-card b { grid-row: 1 / span 2; align-self: center; color: var(--accent); font-family: Georgia, "Times New Roman", serif; font-size: 1.25rem; }
.match-card > span { font-size: .48rem; font-weight: 800; }
.match-card small { margin: 0; color: rgba(41, 35, 29, .58); font-size: .4rem; letter-spacing: .04em; text-transform: uppercase; }
.project-copy { min-width: 0; align-self: center; padding: clamp(1.5rem, 3vw, 2.5rem); }
.project-tech { margin: 0; color: var(--muted); font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.project h3 { margin: .55rem 0 1rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 3.4vw, 3.6rem); font-weight: 400; letter-spacing: -.05em; line-height: .95; }
.project-copy > p:last-of-type { max-width: 620px; margin-bottom: 1.3rem; color: var(--muted); }
.project ul { display: flex; flex-wrap: wrap; gap: .45rem; padding: 0; margin: 0; list-style: none; }
.project li { padding: .3rem .56rem; border: 1px solid var(--line); border-radius: 99px; font-size: .66rem; }
.project-link { padding: 1.4rem; color: var(--accent); font-size: 1.3rem; }

.experience-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.featured-experience, .experience-list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.featured-experience { min-width: 0; padding: clamp(1.5rem, 3vw, 2.5rem); background: linear-gradient(145deg, color-mix(in srgb, var(--accent-2) 18%, var(--surface)), var(--surface) 58%); }
.experience-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; color: var(--muted); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; }
.featured-experience h2 { margin: 4rem 0 .7rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.6rem, 4.5vw, 4.8rem); font-weight: 400; letter-spacing: -.06em; line-height: .9; }
.featured-experience h3 { margin: 0 0 1rem; font-size: 1rem; }
.featured-experience p { max-width: 650px; color: var(--muted); }
.featured-experience h2, .featured-experience h3, .featured-experience p { overflow-wrap: anywhere; }
.bookstore-photo { position: relative; display: block; height: 142px; margin-top: 1.6rem; overflow: hidden; border-radius: 14px; }
.bookstore-photo::after { position: absolute; inset: auto 0 0; height: 55%; content: ""; background: linear-gradient(to top, rgba(22, 31, 27, .78), transparent); }
.bookstore-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 57%; filter: saturate(.82) contrast(.96); transition: transform .45s ease; }
.bookstore-photo:hover img { transform: scale(1.025); }
.bookstore-photo span { position: absolute; z-index: 1; right: .85rem; bottom: .7rem; left: .85rem; color: #fff; font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.bookstore-experience h2 { margin-top: 1.5rem; }
.experience-tags { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 2rem; }
.experience-tags span { padding: .35rem .6rem; border: 1px solid var(--line); border-radius: 99px; font-size: .66rem; }
.bookstore-community { margin-top: 1.6rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.bookstore-community-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .65rem; color: var(--accent); font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.community-brand-link { display: flex; align-items: center; gap: .55rem; }
.community-brand-link > span:last-child { padding-bottom: .1rem; border-bottom: 1px solid currentColor; }
.featured-experience .bookstore-community p { margin: 0; font-size: .82rem; }
.blink-experience { color: #fffaf1; background: var(--deep); }
.feature-brand-mark { display: flex; align-items: center; justify-content: center; width: 168px; height: 68px; margin-top: 2.6rem; overflow: hidden; background: #fff; border: 1px solid rgba(255, 250, 241, .24); border-radius: 13px; }
.brand-mark-blink img { width: 168px; max-width: none; height: 168px; object-fit: contain; }
.blink-experience h2 { margin-top: 1.25rem; }
.blink-experience .experience-top, .blink-experience p { color: rgba(255, 250, 241, .72); }
.blink-experience .experience-tags span { border-color: rgba(255, 250, 241, .24); }
html[data-theme="dark"] .blink-experience { color: #171b18; }
html[data-theme="dark"] .blink-experience .experience-top, html[data-theme="dark"] .blink-experience p { color: rgba(23, 27, 24, .7); }
html[data-theme="dark"] .blink-experience .experience-tags span { border-color: rgba(23, 27, 24, .2); }
.experience-list { display: grid; grid-template-columns: 1fr 1fr; margin-top: 1rem; padding: .35rem 1.2rem; }
.experience-list article { display: grid; grid-template-columns: 145px minmax(0, 1fr); gap: 1rem; padding: 1.15rem 1.2rem 1.15rem 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.experience-list article > div { min-width: 0; }
.experience-list article:nth-child(even) { padding-right: 0; padding-left: 1.2rem; border-right: 0; }
.experience-list article:nth-last-child(-n + 2) { border-bottom: 0; }
.experience-list article > span { color: var(--muted); font-size: .63rem; letter-spacing: .03em; }
.experience-list article > span span { color: inherit; }
.experience-list h3 { margin: 0 0 .2rem; font-family: Georgia, "Times New Roman", serif; font-size: 1.04rem; font-weight: 400; }
.experience-list p { min-width: 0; margin: 0; overflow-wrap: anywhere; color: var(--muted); font-size: .78rem; }
.experience-company { display: flex; align-items: center; gap: .65rem; margin-top: .55rem; }
.brand-mark { flex: 0 0 auto; display: grid; width: 42px; height: 42px; overflow: hidden; place-items: center; background: #fff; border: 1px solid var(--line); border-radius: 11px; }
.brand-mark img { display: block; max-width: 78%; max-height: 78%; object-fit: contain; }
.brand-mark-hi { width: 34px; height: 34px; border-radius: 50%; }
.brand-mark-hi img { width: 42px; max-width: none; height: 42px; max-height: none; object-fit: contain; }
.brand-mark-symbol img { max-width: 68%; max-height: 68%; }
.brand-mark-wide { width: 72px; }
.brand-mark-wide img { max-width: 84%; }

.education-skills { display: grid; grid-template-columns: 1.03fr .97fr; gap: 1rem; }
.education-card, .skills-card { padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.education-items article { display: grid; grid-template-columns: 110px 1fr; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.education-items span { color: var(--accent); font-size: .66rem; }
.education-items h3 { margin: 0 0 .1rem; font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.education-items p { margin: 0; color: var(--muted); font-size: .8rem; }
.education-items .education-note { margin-top: .35rem; color: var(--accent); }
.skill-lines p { display: flex; justify-content: space-between; gap: 1rem; padding: .82rem 0; margin: 0; border-top: 1px solid var(--line); }
.skill-lines span { color: var(--muted); font-size: .72rem; }
.skill-lines strong { max-width: 72%; text-align: right; font-size: .8rem; }
.language-list { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: 1.2rem; }
.language-list div { padding: .8rem; background: var(--panel); border-radius: 13px; }
.language-list span, .language-list strong { display: block; }
.language-list span { font-size: .76rem; }
.language-list strong { margin-top: .2rem; color: var(--muted); font-size: .63rem; }

.contact { padding-bottom: 4rem; }
.contact-panel { display: grid; grid-template-columns: .8fr 1.2fr; align-items: end; gap: 2rem; padding: clamp(1.6rem, 4vw, 3.2rem); color: #fffaf1; background: #1f3b34; border-radius: 30px; }
html[data-theme="dark"] .contact-panel { color: #171b18; background: var(--accent-2); }
.contact-panel .overline { color: var(--accent-2); }
html[data-theme="dark"] .contact-panel .overline { color: #5c391f; }
.contact-panel h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.7rem, 5vw, 5.5rem); font-weight: 400; letter-spacing: -.06em; line-height: .9; }
.contact-mail { grid-column: 2; display: flex; align-items: center; justify-content: space-between; padding: .7rem 0; border-bottom: 1px solid currentColor; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.25rem, 2.5vw, 2.5rem); }
.contact-links { grid-column: 2; display: flex; flex-wrap: wrap; gap: 1rem; font-size: .76rem; }
.contact-links button { padding: 0; color: inherit; background: none; border: 0; }
footer { display: flex; justify-content: space-between; gap: 1rem; max-width: var(--max); margin: auto; padding: 1.2rem clamp(1rem, 3vw, 2rem) 2.5rem; color: var(--muted); font-size: .7rem; }
.toast { position: fixed; bottom: 1.5rem; left: 50%; z-index: 200; padding: .7rem 1rem; color: var(--bg); background: var(--text); border-radius: 999px; opacity: 0; pointer-events: none; transform: translate(-50%, 20px); transition: .25s; font-size: .78rem; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 1020px) {
  nav { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 4.5rem; }
  .hero-media { width: min(100%, 520px); min-height: 500px; }
  .intro-grid, .experience-grid, .education-skills { grid-template-columns: 1fr; }
  .project { grid-template-columns: 280px 1fr; }
  .project-link { display: none; }
}

@media (max-width: 720px) {
  .site-header { height: 62px; padding: 0 .8rem; }
  .wordmark > span:last-child { display: none; }
  .hero { padding: 3.2rem 1rem 1.5rem; }
  .hero .overline { font-size: .63rem; letter-spacing: .1em; }
  .hero-title { margin-bottom: 1.6rem; font-size: clamp(3.6rem, 17vw, 4.9rem); }
  .hero-title em { margin-left: 0; }
  .hero-buttons { display: grid; }
  .button { width: 100%; }
  .hero-media { width: 100%; min-height: 300px; }
  .portrait-sticker { width: min(72vw, 280px); }
  .compact-intro { padding-top: 3rem; }
  .section-title-row { align-items: start; flex-direction: column; }
  .project { grid-template-columns: 1fr; }
  .project-visual { min-height: 225px; border-right: 0; border-bottom: 1px solid var(--line); }
  .project-copy { padding: 1.35rem; }
  .experience-list { grid-template-columns: 1fr; }
  .experience-list article, .experience-list article:nth-child(even), .education-items article { grid-template-columns: 1fr; padding: 1.15rem 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .experience-list article:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .experience-list article:last-child { border-bottom: 0; }
  .experience-company { align-items: flex-start; }
  .bookstore-community-top { align-items: flex-start; flex-direction: column; }
  .bookstore-photo { height: 128px; margin-top: 1.2rem; }
  .bookstore-experience h2 { margin-top: 1.35rem; }
  .blink-experience h2 { margin-top: 1.25rem; }
  .language-list { grid-template-columns: 1fr 1fr; }
  .contact-panel { grid-template-columns: 1fr; border-radius: 24px; }
  .contact-mail, .contact-links { grid-column: 1; }
  .contact-mail { font-size: 1.18rem; }
  footer { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-title span, .hero-title em { animation: none; }
  .portrait-sticker img { animation: none; }
  .ocr-scan-line, .radar-sweep { animation: none; }
  .hero-copy, .portrait-sticker { opacity: 1 !important; transform: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
