:root {
  --bg: #f6f8fb;
  --bg-soft: #eef3f8;
  --surface: #ffffff;
  --surface-2: #f9fbfd;
  --text: #14213d;
  --text-strong: #0c1830;
  --muted: #66738a;
  --accent: #2c65ad;
  --accent-strong: #1f4f8d;
  --accent-soft: #dfeaf7;
  --border: #d9e1ea;
  --border-strong: #c9d4e0;
  --shadow: 0 18px 50px rgba(27, 55, 89, .08);
  --shadow-soft: 0 8px 24px rgba(27, 55, 89, .06);
  --header-bg: rgba(246, 248, 251, .86);
  --glass: rgba(255,255,255,.74);
  --hero-glow: rgba(44,101,173,.16);
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Inter", "Segoe UI", Arial, sans-serif;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 11px;
  --shell: 1180px;
}

html.theme-dark {
  --bg: #0d0f12;
  --bg-soft: #111419;
  --surface: #14171c;
  --surface-2: #181b20;
  --text: #e7e7ea;
  --text-strong: #fbf7f8;
  --muted: #a8a9af;
  --accent: #a43a50;
  --accent-strong: #c2546c;
  --accent-soft: rgba(164,58,80,.15);
  --border: #2a2d33;
  --border-strong: #3b3035;
  --shadow: 0 22px 60px rgba(0, 0, 0, .28);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, .2);
  --header-bg: rgba(13, 15, 18, .88);
  --glass: rgba(20,23,28,.72);
  --hero-glow: rgba(164,58,80,.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  transition: background .35s ease, color .35s ease;
}
body.active { overflow: auto !important; }
a { color: var(--accent); text-decoration: none; transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease; }
a:hover { color: var(--accent-strong); text-decoration: none; }
h1,h2,h3,h4,p { margin-top: 0; }
button { font-family: inherit; }
img { max-width: 100%; }

body.lang-en .lang-en, body.lang-ko .lang-ko, body.lang-ja .lang-ja, body.lang-ch .lang-ch { display: inline !important; }
body.lang-en .lang-ko, body.lang-en .lang-ja, body.lang-en .lang-ch,
body.lang-ko .lang-en, body.lang-ko .lang-ja, body.lang-ko .lang-ch,
body.lang-ja .lang-en, body.lang-ja .lang-ko, body.lang-ja .lang-ch,
body.lang-ch .lang-en, body.lang-ch .lang-ko, body.lang-ch .lang-ja { display: none !important; }

.section-shell, .nav-shell, .hero-shell {
  width: min(calc(100% - 48px), var(--shell));
  margin: 0 auto;
}
.site-section { padding: 88px 0; border: 0 !important; background: transparent; }
.background-alt { background: var(--bg-soft) !important; }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  background: var(--header-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
}
.nav-shell { min-height: 70px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; }
.brand { font-family: var(--serif); font-size: 1.42rem; font-weight: 600; color: var(--text-strong); white-space: nowrap; }
.desktop-nav { display: flex; justify-content: center; gap: 28px; }
.desktop-nav a { color: var(--muted); font-size: .9rem; font-weight: 600; position: relative; }
.desktop-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 1px; background: var(--accent); transition: right .2s ease; }
.desktop-nav a:hover { color: var(--text-strong); }
.desktop-nav a:hover::after { right: 0; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-button { width: 40px; height: 40px; border: 1px solid var(--border); background: var(--glass); color: var(--text); border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.icon-button:hover { border-color: var(--accent); color: var(--accent); }
.language-control { position: relative; }
.language-button { width: auto; padding: 0 10px; gap: 7px; font-size: .78rem; font-weight: 700; }
.language-button img, .language-menu img { width: 18px; height: 12px; object-fit: cover; border-radius: 2px; }
.language-menu { display: none; position: absolute; top: calc(100% + 10px); right: 0; margin: 0; padding: 7px; min-width: 150px; list-style: none; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-soft); }
.language-menu.open { display: block; }
.language-menu li { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 9px; cursor: pointer; color: var(--text); font-size: .86rem; }
.language-menu li:hover { background: var(--accent-soft); }
.menu-button { display: none; }
.mobile-nav { display: none; }

.hero-section { min-height: 760px; padding: 150px 0 105px; position: relative; overflow: hidden; background:
  radial-gradient(circle at 77% 32%, var(--hero-glow), transparent 32%),
  linear-gradient(180deg, color-mix(in srgb, var(--surface) 58%, transparent), transparent 76%);
}
.hero-section::before { content: ""; position: absolute; inset: 0; opacity: .36; pointer-events: none; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 72px 72px; mask-image: linear-gradient(to bottom, rgba(0,0,0,.35), transparent 75%); }
.hero-shell { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, .92fr) minmax(470px, 1.08fr); align-items: center; gap: 72px; }
.hero-copy { padding-top: 12px; }
.eyebrow, .section-kicker { color: var(--accent); font-size: .73rem; line-height: 1.2; font-weight: 700; text-transform: uppercase; letter-spacing: .18em; margin-bottom: 18px; }
.hero-copy h1 { font-family: var(--serif); color: var(--text-strong); font-weight: 600; font-size: clamp(4.1rem, 7vw, 6.4rem); line-height: .94; letter-spacing: -.045em; margin: 0 0 28px; text-transform: none; }
.hero-tagline { color: var(--text-strong); font-family: var(--serif); font-weight: 500; font-size: clamp(1.6rem, 2.5vw, 2.25rem); line-height: 1.28; margin-bottom: 13px; max-width: 690px; }
.hero-role { color: var(--muted); font-size: 1.03rem; margin-bottom: 31px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; }
.hero-actions a { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 16px; border: 1px solid var(--border-strong); border-radius: 11px; color: var(--text); background: var(--glass); font-weight: 600; font-size: .86rem; }
.hero-actions a:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--accent); box-shadow: var(--shadow-soft); }
.hero-actions .primary-action { background: var(--accent); border-color: var(--accent); color: #fff; }
.hero-actions .primary-action:hover { color: #fff; background: var(--accent-strong); }
.hero-topics { display: flex; flex-wrap: wrap; gap: 9px 17px; margin-top: 30px; color: var(--muted); font-size: .79rem; }
.hero-topics span { position: relative; padding-left: 12px; }
.hero-topics span::before { content: ""; position: absolute; left: 0; top: .65em; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }

.hero-visual { min-height: 535px; position: relative; color: var(--accent); transform-style: preserve-3d; }
.visual-glow { position: absolute; inset: 12% 8%; border-radius: 50%; background: radial-gradient(circle, var(--hero-glow), transparent 64%); filter: blur(8px); }
.research-orbit { width: 100%; height: 100%; position: absolute; inset: 0; overflow: visible; }
.orbit-lines { opacity: .28; stroke-width: 1; }
.network-links { opacity: .28; }
.face-points { opacity: .78; }
.feature-lines { opacity: .78; }
.network-nodes { opacity: .94; }
.visual-label { position: absolute; display: flex; align-items: center; gap: 8px; padding: 7px 10px; background: var(--glass); border: 1px solid var(--border); border-radius: 999px; box-shadow: var(--shadow-soft); color: var(--text); font-size: .72rem; font-weight: 700; backdrop-filter: blur(12px); white-space: nowrap; }
.visual-label i { color: var(--accent); font-size: 1rem; }
.label-bio { left: 2%; top: 18%; }
.label-cv { right: 2%; top: 22%; }
.label-mm { left: 4%; bottom: 20%; }
.label-privacy { right: 3%; bottom: 30%; }
.label-crypto { right: 11%; bottom: 10%; }
.scroll-cue { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); width: 28px; height: 46px; border: 1px solid var(--border-strong); border-radius: 999px; }
.scroll-cue span { position: absolute; width: 4px; height: 4px; top: 9px; left: 50%; transform: translateX(-50%); border-radius: 50%; background: var(--accent); animation: scroll-dot 1.8s ease infinite; }
@keyframes scroll-dot { 0%{opacity:0; transform:translate(-50%,0)} 25%{opacity:1} 80%{opacity:0; transform:translate(-50%,20px)} 100%{opacity:0} }

.about-grid { display: grid; grid-template-columns: .82fr 1.35fr .78fr; gap: 54px; align-items: start; }
.section-heading-block h2, .section-title-row h2, .contact-section h2 { font-family: var(--serif); color: var(--text-strong); font-size: clamp(2rem, 3vw, 3.1rem); line-height: 1.14; font-weight: 600; letter-spacing: -.025em; margin-bottom: 19px; }
.updated-line { color: var(--muted); font-size: .78rem; }
.about-copy p { color: var(--muted); margin-bottom: 24px; font-size: .96rem; }
.news-card { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-soft); }
.mini-heading { color: var(--text-strong); font-weight: 700; font-size: .88rem; margin-bottom: 14px; }
.news-card ul { list-style: none; padding: 0; margin: 0; }
.news-card li { display: grid; grid-template-columns: auto 1fr; gap: 10px; color: var(--muted); padding: 12px 0; border-top: 1px solid var(--border); font-size: .79rem; line-height: 1.5; }
.news-card li:first-child { border-top: 0; padding-top: 0; }
.news-card strong { color: var(--accent); }

.research-section { padding-top: 96px; }
.section-title-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 410px); align-items: end; gap: 36px; margin-bottom: 38px; }
.section-title-row h2 { margin-bottom: 0; }
.section-note { color: var(--muted); font-size: .88rem; margin: 0 0 6px; }
.research-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.research-card { padding: 30px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); min-height: 295px; box-shadow: var(--shadow-soft); position: relative; overflow: hidden; }
.research-card::after { content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%; right: -76px; bottom: -80px; background: radial-gradient(circle, var(--hero-glow), transparent 68%); }
.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 46px; }
.card-number { font-family: var(--serif); color: var(--accent); font-size: 1rem; }
.research-icon { width: 48px; height: 48px; border: 1px solid var(--border); border-radius: 15px; display: inline-flex; align-items: center; justify-content: center; color: var(--accent); background: var(--accent-soft); font-size: 1.15rem; }
.research-card h3 { color: var(--text-strong); font-family: var(--serif); font-size: 1.42rem; line-height: 1.25; font-weight: 600; margin-bottom: 12px; }
.research-card p { color: var(--muted); font-size: .88rem; max-width: 90%; }
.topic-list, .pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.topic-list span, .pill-row span { padding: 6px 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); color: var(--muted); font-size: .72rem; }

/* Retained legacy sections, fully restyled */
.retained-section { padding: 96px 24px !important; text-align: left !important; }
.retained-section > .heading, .retained-section > h2.heading { display: block !important; width: min(calc(100% - 0px), var(--shell)); margin: 0 auto 12px !important; color: var(--text-strong) !important; font-family: var(--serif); font-size: clamp(2rem, 3vw, 3rem) !important; font-weight: 600 !important; text-align: left !important; }
.retained-section > .heading::after { display: none !important; }
.retained-section .section-icon { display: none; }
.retained-section > .section-subtitle { width: min(100%, var(--shell)); max-width: var(--shell); margin: 0 auto 42px !important; text-align: left; color: var(--muted) !important; font-size: .9rem; }

#publications { background: var(--bg-soft) !important; }
#publications .publication-grid { width: min(100%, var(--shell)); max-width: var(--shell); margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pub-entry { margin: 0 !important; padding: 22px 24px !important; background: var(--surface); border: 1px solid var(--border) !important; border-left: 2px solid var(--accent) !important; border-radius: var(--radius-md); box-shadow: var(--shadow-soft); text-align: left; }
.pub-label { color: var(--accent) !important; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.pub-authors { color: var(--muted); font-size: .8rem; }
.pub-title { display: inline-block; color: var(--text-strong) !important; font-family: var(--serif); font-weight: 600; font-size: 1.02rem; line-height: 1.36; margin: 10px 0 6px; }
.pub-title:hover { color: var(--accent) !important; }
.pub-meta { color: var(--muted) !important; font-size: .75rem !important; }

#projects { background: var(--bg) !important; }
#projects .container { width: min(100%, var(--shell)); padding: 0; }
#projects .row { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.project { position: relative !important; display: grid; grid-template-columns: 155px 1fr; max-width: none !important; min-height: 235px; margin: 0 !important; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-lg) !important; background: var(--surface) !important; box-shadow: var(--shadow-soft) !important; }
.project-image { float: none !important; width: 155px; height: 100%; min-height: 235px; overflow: hidden; background: var(--bg-soft); }
.project-image img { width: 100%; height: 100%; min-height: 235px; object-fit: cover; filter: saturate(.86) contrast(.98); }
.project-info { position: relative !important; inset: auto !important; transform: none !important; margin: 0 !important; padding: 24px !important; }
.project-info h3 { color: var(--text-strong) !important; font-family: var(--serif); font-size: 1.14rem !important; font-weight: 600 !important; line-height: 1.3; margin-bottom: 12px !important; }
.project-info p { color: var(--muted) !important; font-size: .78rem !important; line-height: 1.6; }
.project-info a { font-size: .76rem; font-weight: 700; }

.teaching-section { background: var(--bg-soft); }
.teaching-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.teaching-card { padding: 28px; border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius-lg); display: grid; grid-template-columns: auto 1fr; gap: 20px; box-shadow: var(--shadow-soft); }
.teaching-icon, .method-icon { width: 48px; height: 48px; border-radius: 15px; border: 1px solid var(--border); background: var(--accent-soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.teaching-card h3, .method-card h3 { color: var(--text-strong); font-family: var(--serif); font-size: 1.28rem; font-weight: 600; margin-bottom: 6px; }
.teaching-card p { color: var(--muted); font-size: .82rem; }

#experience { background: var(--bg) !important; }
#experience > .container { width: min(100%, var(--shell)); padding: 0; }
#experience-timeline { width: min(100%, 980px); max-width: none; margin: 0 auto; display: grid; gap: 18px; }
#experience-timeline::before, #experience-timeline::after { display: none !important; }
#experience-timeline > div, .experience-card { position: relative; padding: 28px 30px 28px 190px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-soft); text-align: left; }
.experience-date { position: absolute; left: 28px; top: 30px; width: 132px; color: var(--accent); font-size: .77rem; font-weight: 700; line-height: 1.45; }
#experience-timeline h3 { color: var(--text-strong) !important; font-family: var(--serif); font-size: 1.28rem !important; font-weight: 600 !important; margin: 0 0 3px !important; }
#experience-timeline h4 { color: var(--muted) !important; font-size: .87rem !important; font-weight: 600 !important; margin: 0 0 14px !important; }
#experience-timeline li { color: var(--muted); font-size: .8rem; line-height: 1.6; margin-bottom: 6px; }

#education { background: var(--bg-soft) !important; }
#education .education-block { max-width: 900px; margin: 0 auto 16px; padding: 24px 28px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-soft); overflow: hidden; }
.education-block h3 { color: var(--text-strong) !important; font-family: var(--serif); font-size: 1.2rem; font-weight: 600 !important; }
.education-block .education-date { color: var(--accent) !important; font-size: .78rem; font-weight: 700; }
.education-block h4 { color: var(--muted) !important; font-size: .86rem; margin-top: 5px !important; }
.education-block p, .education-block p span { color: var(--muted) !important; font-size: .8rem; }

.methods-section { padding-top: 96px; }
.methods-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.method-card { padding: 27px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }
.method-card .method-icon { margin-bottom: 22px; }

.contact-section { background: var(--bg) !important; }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: start; }
.contact-section h2 { margin-bottom: 14px; color: var(--text-strong) !important; }
.contact-section p { color: var(--muted); }
.contact-links { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 28px; }
.contact-links a { font-size: .82rem; font-weight: 700; color: var(--text); }
#contact-form { max-width: none !important; margin: 0 !important; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-soft); }
#contact-form input, #contact-form textarea { width: 100%; border: 1px solid var(--border) !important; border-radius: 11px !important; background: var(--surface-2) !important; color: var(--text) !important; padding: 13px 14px !important; margin-bottom: 12px !important; transition: border-color .2s ease, box-shadow .2s ease; }
#contact-form input::placeholder, #contact-form textarea::placeholder { color: var(--muted) !important; opacity: .8; }
#contact-form input:focus, #contact-form textarea:focus { outline: none; border-color: var(--accent) !important; box-shadow: 0 0 0 3px var(--accent-soft); }
#contact-form textarea { min-height: 150px; }
#contact-form button { width: auto !important; border: 0 !important; border-radius: 11px !important; background: var(--accent) !important; color: #fff !important; padding: 11px 20px !important; font-weight: 700; }
#contact-form button:hover { background: var(--accent-strong) !important; }

.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 28px 0 18px; }
.footer-grid { display: grid; grid-template-columns: 1fr auto auto; gap: 24px; align-items: center; }
.footer-grid > div { display: grid; gap: 1px; }
.footer-grid strong { font-family: var(--serif); color: var(--text-strong); font-size: 1rem; }
.footer-grid span, .footer-grid p, .translation-note { color: var(--muted); font-size: .71rem; }
.footer-grid p { margin: 0; }
#to-top { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); cursor: pointer; }
.translation-note { text-align: center; margin: 16px auto 0; padding-top: 15px; border-top: 1px solid var(--border); width: min(calc(100% - 48px), var(--shell)); }

html.theme-dark .project-image img { opacity: .84; filter: saturate(.72) brightness(.8) contrast(1.05); }
html.theme-dark .hero-section::before { opacity: .11; }
html.theme-dark .site-header { box-shadow: 0 1px 0 rgba(255,255,255,.02); }

@media (max-width: 1050px) {
  .desktop-nav { gap: 16px; }
  .desktop-nav a { font-size: .81rem; }
  .hero-shell { grid-template-columns: 1fr 1fr; gap: 36px; }
  .about-grid { grid-template-columns: 1fr 1.4fr; }
  .news-card { grid-column: 1 / -1; }
  #projects .row { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .desktop-nav { display: none; }
  .nav-shell { grid-template-columns: 1fr auto; }
  .menu-button { display: inline-flex; }
  .mobile-nav { position: fixed; top: 70px; left: 18px; right: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); padding: 10px; grid-template-columns: 1fr 1fr; gap: 4px; }
  .mobile-nav.open { display: grid; }
  .mobile-nav a { color: var(--text); padding: 10px 12px; border-radius: 9px; font-size: .84rem; }
  .mobile-nav a:hover { background: var(--accent-soft); color: var(--accent); }
  .hero-section { min-height: auto; padding: 126px 0 90px; }
  .hero-shell { grid-template-columns: 1fr; }
  .hero-copy h1 { font-size: clamp(3.8rem, 12vw, 5.4rem); }
  .hero-visual { min-height: 460px; max-width: 650px; width: 100%; margin: 0 auto; }
  .scroll-cue { display: none; }
  .about-grid, .section-title-row, .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .research-grid, .teaching-grid, .methods-grid { grid-template-columns: 1fr; }
  #publications .publication-grid { grid-template-columns: 1fr; }
  .section-note { max-width: 680px; }
}

@media (max-width: 620px) {
  .section-shell, .nav-shell, .hero-shell { width: min(calc(100% - 30px), var(--shell)); }
  .site-section, .retained-section { padding: 68px 15px !important; }
  .nav-shell { min-height: 64px; }
  .site-header .brand { font-size: 1.2rem; }
  .language-button { padding: 0 8px; }
  .hero-section { padding-top: 108px; }
  .hero-copy h1 { font-size: 3.45rem; }
  .hero-tagline { font-size: 1.46rem; }
  .hero-visual { min-height: 365px; transform: scale(.96); }
  .visual-label { font-size: .62rem; padding: 5px 7px; }
  .hero-topics { display: none; }
  .research-card { min-height: auto; padding: 24px; }
  .card-top { margin-bottom: 28px; }
  .project { grid-template-columns: 1fr; }
  .project-image { width: 100%; height: 180px; min-height: 180px; }
  .project-image img { min-height: 180px; }
  .teaching-card { grid-template-columns: 1fr; }
  #experience-timeline > div, .experience-card { padding: 24px; }
  .experience-date { position: static; width: auto; margin-bottom: 10px; }
  .footer-grid { grid-template-columns: 1fr auto; }
  .footer-grid p { grid-column: 1 / -1; }
  .mobile-nav { top: 64px; grid-template-columns: 1fr; max-height: calc(100vh - 82px); overflow: auto; }
}

/* Neutralize legacy template rules that target element IDs more specifically. */
.site-header { display: block !important; pointer-events: auto !important; height: auto !important; bottom: auto !important; text-align: initial !important; animation: none !important; }
.site-header * { pointer-events: auto; }
#theme-toggle.theme-button { background: var(--glass) !important; border: 1px solid var(--border) !important; color: var(--text) !important; font-size: 1rem !important; }
#theme-toggle.theme-button:hover { color: var(--accent) !important; border-color: var(--accent) !important; }
#lang-menu.language-menu { background: var(--surface) !important; border: 1px solid var(--border) !important; padding: 7px !important; margin: 0 !important; text-align: left !important; }
#lang-menu.language-menu li { color: var(--text) !important; }
#lang-menu.language-menu li:hover { background: var(--accent-soft) !important; }
#lead.hero-section { height: auto !important; min-height: 760px !important; max-height: none !important; padding: 150px 0 105px !important; background: radial-gradient(circle at 77% 32%, var(--hero-glow), transparent 32%), linear-gradient(180deg, color-mix(in srgb, var(--surface) 58%, transparent), transparent 76%) !important; background-position: initial !important; background-size: auto !important; }
#about.about-section { padding: 88px 0 !important; border: 0 !important; text-align: left !important; }
#about .about-copy p { color: var(--muted) !important; margin: 0 0 24px !important; text-align: left !important; }
#contact.contact-section { padding: 88px 0 !important; text-align: left !important; }
#contact.contact-section h2 { margin: 0 0 14px !important; font-weight: 600 !important; }
#contact.contact-section .section-kicker { color: var(--accent) !important; }

@media (max-width: 860px) {
  #lead.hero-section { min-height: auto !important; padding: 126px 0 90px !important; }
}
@media (max-width: 620px) {
  #lead.hero-section { padding: 108px 0 74px !important; }
  #about.about-section, #contact.contact-section { padding: 68px 0 !important; }
}
