:root {
  --ink: #f3f8fa;
  --muted: #9cb2bf;
  --navy: #061a2b;
  --deep: #020d18;
  --panel: #09243a;
  --line: rgba(204, 238, 241, 0.16);
  --aqua: #9df2e6;
  --aqua-strong: #c4fff6;
  --blue: #8bcfff;
  --warm: #efa689;
  --sans: "Manrope", "Noto Sans SC", sans-serif;
  --mono: "DM Mono", "Noto Sans SC", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; overflow-x: hidden; color: var(--ink); background: radial-gradient(circle at 86% 7%, rgba(30, 118, 143, .17), transparent 29rem), radial-gradient(circle at 0 43%, rgba(25, 97, 131, .13), transparent 27rem), linear-gradient(135deg, #061a2b, #031320 54%, #061825); font-family: var(--sans); }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }

.page-noise { position: fixed; z-index: -2; inset: 0; opacity: .15; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.87' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E"); mix-blend-mode: soft-light; }
.ambient { position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; filter: blur(10px); }.ambient-a { width: 48vw; height: 48vw; top: 48rem; right: -25vw; background: radial-gradient(circle, rgba(34, 133, 157, .13), transparent 70%); }.ambient-b { width: 52vw; height: 52vw; top: 149rem; left: -34vw; background: radial-gradient(circle, rgba(51, 104, 173, .16), transparent 70%); }

.site-header, main, .site-footer { width: min(1360px, calc(100% - 64px)); margin: 0 auto; }
.site-header { height: 82px; display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 8; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 18px; font-weight: 800; letter-spacing: -.7px; }.brand b { color: var(--aqua); }.brand-mark { width: 21px; height: 21px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }.brand-mark i { border-radius: 50px; background: var(--aqua); }.brand-mark i:nth-child(1) { opacity: .37; }.brand-mark i:nth-child(2) { opacity: .68; }
.main-nav { display: flex; gap: 31px; margin-left: 88px; }.main-nav a { position: relative; color: #b8cdd6; font-size: 13px; font-weight: 700; }.main-nav a::after { content: ""; width: 0; height: 1px; position: absolute; bottom: -12px; left: 0; background: var(--aqua); transition: width .2s ease; }.main-nav a:hover, .main-nav a.is-active { color: #fff; }.main-nav a:hover::after, .main-nav a.is-active::after { width: 100%; }
.admin-trigger { padding: 10px 15px; color: #d4f7f2; border: 1px solid rgba(180, 235, 231, .26); border-radius: 50px; background: rgba(136, 214, 212, .08); font-size: 12px; font-weight: 700; transition: .2s ease; }.admin-trigger i { width: 7px; height: 7px; display: inline-block; margin-right: 7px; border-radius: 50%; background: var(--aqua); box-shadow: 0 0 0 4px rgba(157, 242, 230, .1); }.admin-trigger:hover { color: #062331; border-color: var(--aqua); background: var(--aqua); transform: translateY(-1px); }

.hero { min-height: 790px; padding: 102px 0 85px; display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; gap: 42px; }.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0; color: #87a3b2; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; }.eyebrow > span { width: 24px; height: 1px; background: var(--aqua); }.hero h1 { margin: 22px 0 0; font-size: clamp(64px, 7.2vw, 104px); line-height: .88; letter-spacing: -.09em; }.hero h1 span, .hero h1 em { display: block; }.hero h1 em { margin-top: 8px; color: var(--aqua); font-size: .42em; font-style: normal; font-weight: 500; letter-spacing: .09em; }.hero-role { margin: 27px 0 0; color: #e0eef2; font-size: 17px; font-weight: 700; letter-spacing: -.03em; }.hero-intro { max-width: 485px; margin: 15px 0 0; color: #a9bdc8; font-size: 15px; line-height: 1.92; }.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 34px; }.button { min-height: 47px; display: inline-flex; align-items: center; justify-content: center; gap: 20px; padding: 0 19px; border: 1px solid transparent; border-radius: 2px; font-size: 13px; font-weight: 800; transition: transform .2s ease, border .2s ease, background .2s ease; }.button:hover { transform: translateY(-2px); }.button-primary { color: #062735; background: var(--aqua); }.button-primary:hover { background: var(--aqua-strong); }.button-secondary { color: #d5e3e8; border-color: rgba(204,237,240,.34); background: rgba(255,255,255,.025); }.button-secondary:hover { border-color: var(--aqua); background: rgba(157,242,230,.09); }.hero-status { display: flex; align-items: center; gap: 9px; margin: 34px 0 0; color: #7193a1; font-family: var(--mono); font-size: 10px; letter-spacing: .06em; }.hero-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--aqua); box-shadow: 0 0 13px rgba(157,242,230,.8); }

.archive-visual { height: 555px; position: relative; display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(199,239,240,.13); background: linear-gradient(145deg, rgba(52,138,153,.13), rgba(7,26,44,.25) 58%, rgba(48,90,151,.09)); isolation: isolate; }.archive-visual::before, .archive-visual::after { content: ""; position: absolute; z-index: -1; inset: 12%; border: 1px solid rgba(160,226,229,.1); border-radius: 50%; }.archive-visual::after { inset: 22%; border-color: rgba(160,226,229,.14); }.visual-grid { width: 640px; aspect-ratio: 1; position: absolute; z-index: -2; border-radius: 50%; opacity: .67; background: repeating-linear-gradient(0deg, transparent 0 31px, rgba(147,241,240,.13) 32px 33px), repeating-linear-gradient(90deg, transparent 0 31px, rgba(147,241,240,.13) 32px 33px), radial-gradient(circle at 40% 30%, rgba(157,242,230,.25), rgba(34,122,147,.12) 50%, transparent 70%); transform: perspective(520px) rotateX(66deg) rotateZ(-22deg); }.visual-orbit { position: absolute; z-index: -1; border: 1px solid rgba(151,240,234,.26); border-radius: 50%; }.orbit-one { width: 430px; height: 170px; transform: rotate(-29deg); }.orbit-two { width: 720px; height: 270px; opacity: .62; transform: rotate(48deg); }.visual-label { position: absolute; margin: 0; color: rgba(194,233,235,.6); font-family: var(--mono); font-size: 9px; letter-spacing: .12em; }.label-top { top: 23px; left: 24px; }.label-right { right: 23px; bottom: 24px; writing-mode: vertical-rl; }.archive-card { width: min(330px, 70%); min-height: 346px; position: relative; padding: 22px; border: 1px solid rgba(202,255,250,.39); background: linear-gradient(135deg, rgba(182,255,246,.2), rgba(69,144,163,.14) 56%, rgba(13,31,54,.35)); box-shadow: 24px 25px 65px rgba(0,0,0,.28), inset 0 1px rgba(255,255,255,.22); backdrop-filter: blur(9px); }.archive-card::after { content: ""; width: 42%; aspect-ratio: 1; position: absolute; top: 7%; right: -10%; border: 1px solid rgba(201,255,249,.26); border-radius: 50%; }.archive-topline, .archive-bottom { display: flex; align-items: center; justify-content: space-between; color: #c9e4e6; font-family: var(--mono); font-size: 9px; letter-spacing: .08em; }.archive-topline span:last-child { color: var(--aqua); }.archive-topline i { width: 5px; height: 5px; display: inline-block; margin-right: 4px; border-radius: 50%; background: var(--aqua); }.archive-card strong { display: inline-block; margin-top: 50px; color: #effffc; font-family: var(--mono); font-size: clamp(70px, 7vw, 96px); letter-spacing: -.15em; }.archive-subtitle { display: inline-block; margin-left: 13px; color: #d8f4f2; font-family: var(--mono); font-size: 9px; line-height: 1.55; letter-spacing: .07em; }.archive-rule { width: 100%; height: 1px; margin: 20px 0 13px; background: rgba(215,255,251,.34); }.archive-card p { margin: 0; color: #d5eeee; font-size: 13px; line-height: 1.7; }.archive-bottom { position: absolute; right: 22px; bottom: 20px; left: 22px; color: rgba(221,255,251,.57); }.visual-chip { position: absolute; padding: 7px 9px; color: #bfe5e2; border: 1px solid rgba(199,255,248,.21); background: rgba(6,35,52,.45); font-family: var(--mono); font-size: 8px; letter-spacing: .1em; }.chip-a { bottom: 13%; left: 5%; }.chip-b { top: 20%; right: 8%; }

.skill-strip { min-height: 145px; display: grid; grid-template-columns: .43fr 1.57fr; gap: 40px; align-items: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }.skill-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }.skill-item { min-width: 0; padding-left: 15px; border-left: 1px solid rgba(157,242,230,.38); }.skill-item strong, .skill-item span { display: block; }.skill-item strong { font-size: 15px; letter-spacing: -.03em; }.skill-item span { overflow: hidden; margin-top: 5px; color: #809da9; font-size: 10px; white-space: nowrap; text-overflow: ellipsis; }

.projects-section, .writing-section { padding: 111px 0; }.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 48px; }.section-heading h2, .research-title-block h2, .about-heading h2 { margin: 21px 0 0; font-size: clamp(45px, 5vw, 68px); line-height: 1.05; letter-spacing: -.07em; }.section-heading > p { max-width: 390px; margin: 0 0 5px; color: #a7bbc5; font-size: 14px; line-height: 1.85; }.section-rule { display: flex; justify-content: space-between; margin: 64px 0 19px; padding-bottom: 15px; color: #88a2af; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 9px; letter-spacing: .1em; }.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }.project-card { min-height: 420px; display: flex; flex-direction: column; overflow: hidden; border: 1px solid rgba(203,234,239,.16); background: linear-gradient(150deg, rgba(30,72,93,.27), rgba(4,24,40,.38)); transition: transform .23s ease, border-color .23s ease, box-shadow .23s ease; }.project-card:hover { border-color: rgba(157,242,230,.5); box-shadow: 0 24px 46px rgba(0,0,0,.2); transform: translateY(-7px); }.project-cover { height: 184px; position: relative; overflow: hidden; background: #12384d; }.project-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }.project-card:hover .project-cover img { transform: scale(1.05); }.cover-art { height: 100%; position: relative; overflow: hidden; background: radial-gradient(circle at 72% 31%, rgba(157,242,230,.7) 0 2px, transparent 3px), radial-gradient(circle at 68% 38%, rgba(157,242,230,.25), transparent 26%), linear-gradient(135deg, #0b263d, #1b5e6e 47%, #103a52); }.cover-art::before, .cover-art::after { content: ""; width: 85%; height: 72%; position: absolute; bottom: -52%; left: -9%; border: 1px solid rgba(182,243,239,.45); border-radius: 50%; transform: rotate(-27deg); }.cover-art::after { width: 100%; bottom: -61%; left: 20%; opacity: .5; }.cover-art i { width: 5px; height: 5px; position: absolute; border-radius: 50%; background: var(--aqua); box-shadow: 0 0 12px var(--aqua); }.cover-art i:nth-child(1) { top: 31%; left: 27%; }.cover-art i:nth-child(2) { top: 51%; left: 57%; opacity: .6; }.cover-art i:nth-child(3) { top: 21%; left: 75%; opacity: .8; }.project-number, .project-type { position: absolute; z-index: 1; top: 14px; font-family: var(--mono); font-size: 9px; letter-spacing: .08em; }.project-number { left: 15px; color: #d7fffb; }.project-type { right: 14px; padding: 4px 6px; color: #07343e; background: var(--aqua); }.project-body { flex: 1; display: flex; flex-direction: column; padding: 21px 20px 19px; }.project-meta { display: flex; align-items: center; justify-content: space-between; color: #87a3b2; font-family: var(--mono); font-size: 9px; letter-spacing: .07em; }.project-body h3 { margin: 16px 0 9px; font-size: 21px; line-height: 1.25; letter-spacing: -.04em; }.project-summary { display: -webkit-box; margin: 0; overflow: hidden; color: #a4bac7; font-size: 13px; line-height: 1.72; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }.project-footer { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 21px; }.project-tags, .article-tags { display: flex; flex-wrap: wrap; gap: 5px; }.project-tags span, .article-tags span { padding: 4px 6px; color: #b3ced0; border: 1px solid rgba(170,225,219,.18); font-family: var(--mono); font-size: 8px; letter-spacing: .04em; }.project-link { flex: none; color: var(--aqua); font-size: 12px; font-weight: 700; white-space: nowrap; }.project-link:hover { text-decoration: underline; }
.empty-state { max-width: 650px; margin: 0 auto; padding: 54px 20px 20px; text-align: center; }.empty-symbol { width: 50px; height: 50px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin: 0 auto 24px; transform: skewY(-18deg); }.empty-symbol i { background: linear-gradient(180deg, var(--aqua), #398dac); }.empty-state .eyebrow { justify-content: center; }.empty-state h3 { margin: 18px 0 10px; font-size: 25px; letter-spacing: -.06em; }.empty-state > p:not(.eyebrow) { margin: 0; color: #9db3bf; font-size: 13px; }

.research-section { min-height: 510px; padding: 92px 0 108px; display: grid; grid-template-columns: .31fr 1.09fr .86fr; gap: 36px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }.research-marker, .about-index { padding-top: 8px; color: var(--aqua); font-family: var(--mono); font-size: 11px; letter-spacing: .12em; }.research-copy { padding-top: 36px; color: #b0c3cb; font-size: 14px; line-height: 1.95; }.research-copy p { margin: 0; }.principle-list { margin-top: 31px; padding-top: 20px; display: grid; gap: 11px; border-top: 1px solid rgba(198,235,238,.14); }.principle-list span { color: #c4d8dd; font-size: 12px; }.principle-list b { display: inline-block; width: 27px; color: var(--aqua); font-family: var(--mono); font-size: 9px; font-weight: 400; }

.writing-section { padding-bottom: 117px; }.article-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 62px; }.article-card { min-height: 258px; display: flex; flex-direction: column; padding: 24px; border: 1px solid rgba(203,234,239,.16); background: linear-gradient(150deg, rgba(30,72,93,.19), rgba(4,24,40,.26)); transition: .22s ease; }.article-card:hover { border-color: rgba(157,242,230,.42); transform: translateY(-4px); }.article-top, .article-footer { display: flex; align-items: center; justify-content: space-between; }.article-top { color: #83a1af; font-family: var(--mono); font-size: 9px; letter-spacing: .08em; }.article-index { color: var(--aqua); }.article-card h3 { margin: 34px 0 10px; font-size: 22px; letter-spacing: -.05em; }.article-excerpt { display: -webkit-box; margin: 0; overflow: hidden; color: #a4bac7; font-size: 13px; line-height: 1.75; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }.article-footer { margin-top: auto; padding-top: 22px; }.article-read { padding: 0; color: var(--aqua); border: 0; background: none; font-size: 12px; font-weight: 700; }.article-read:hover { text-decoration: underline; }.article-empty { padding-top: 55px; }

.about-section { min-height: 480px; padding: 90px 0 105px; display: grid; grid-template-columns: .3fr 1.1fr .86fr; gap: 36px; border-top: 1px solid var(--line); }.about-copy { padding-top: 34px; color: #b0c1ca; font-size: 14px; line-height: 1.95; }.about-copy > p { margin: 0 0 30px; }.contact-list { display: grid; gap: 12px; margin: 0; }.contact-list div { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 12px; }.contact-list dt { color: #72929f; font-family: var(--mono); font-size: 9px; letter-spacing: .09em; }.contact-list dd { margin: 0; color: #d0e1e4; font-size: 12px; overflow-wrap: anywhere; }.contact-list a:hover { color: var(--aqua); text-decoration: underline; }

.site-footer { min-height: 104px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #829aa8; border-top: 1px solid var(--line); }.site-footer .brand { color: #d9e8eb; font-size: 16px; }.site-footer p { margin: 0; font-family: var(--mono); font-size: 9px; letter-spacing: .09em; }.back-top { padding: 0; color: #b1c9d0; border: 0; background: transparent; font-size: 12px; font-weight: 700; }.back-top span { margin-left: 8px; color: var(--aqua); }

.admin-dialog, .article-dialog { width: min(1160px, calc(100% - 40px)); max-height: min(850px, calc(100% - 42px)); padding: 0; overflow: hidden; color: var(--ink); border: 1px solid rgba(191,240,238,.22); background: #071c2e; box-shadow: 0 35px 100px rgba(0,0,0,.64); }.admin-dialog::backdrop, .article-dialog::backdrop { background: rgba(1,10,18,.82); backdrop-filter: blur(9px); }.admin-dialog-content { min-height: 610px; }.login-panel { min-height: 610px; display: grid; grid-template-columns: .85fr 1.15fr; }.login-aside { padding: 52px 44px; display: flex; flex-direction: column; justify-content: space-between; background: radial-gradient(circle at 23% 15%, rgba(58,137,152,.22), transparent 12rem), linear-gradient(165deg, #0c2c46, #061727); border-right: 1px solid var(--line); }.login-aside h2 { margin: 18px 0 12px; font-size: 40px; line-height: 1.05; letter-spacing: -.08em; }.login-aside p:not(.eyebrow) { margin: 0; color: #9eb9c5; font-size: 13px; line-height: 1.8; }.login-aside-footer { padding-top: 20px; color: #87a3ae; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 10px; line-height: 1.7; }.login-form-wrap { width: min(395px, calc(100% - 64px)); align-self: center; justify-self: center; }.login-form-wrap h3 { margin: 0; font-size: 27px; letter-spacing: -.06em; }.login-form-wrap > p { margin: 9px 0 28px; color: #94afba; font-size: 13px; line-height: 1.7; }.field { display: block; margin-top: 15px; }.field > span, .field-label { display: block; margin-bottom: 8px; color: #b6cbd2; font-size: 12px; font-weight: 700; }.field b { color: var(--aqua); }.field input, .field textarea { width: 100%; padding: 11px 12px; outline: none; color: #e5f4f6; border: 1px solid rgba(192,233,237,.18); background: rgba(10,39,58,.45); font-size: 13px; transition: .16s ease; }.field input:focus, .field textarea:focus { border-color: rgba(157,242,230,.7); background: rgba(15,54,73,.6); }.field textarea { min-height: 86px; resize: vertical; }.form-message { min-height: 20px; margin: 12px 0 0; color: #f5b49b; font-size: 11px; }.form-message.success { color: var(--aqua); }.login-form-wrap .button { width: 100%; margin-top: 8px; }.dialog-close { width: 34px; height: 34px; display: grid; place-items: center; color: #c9dce0; border: 1px solid rgba(194,234,235,.21); background: transparent; font-size: 25px; font-weight: 300; line-height: 1; }.dialog-close:hover { color: #06202e; background: var(--aqua); }

.admin-shell { min-height: 650px; display: grid; grid-template-columns: 228px minmax(0, 1fr); }.admin-side { padding: 27px 18px; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: linear-gradient(165deg, #0a2941, #061726); }.admin-side .brand { padding: 0 8px; }.admin-nav { display: grid; gap: 5px; margin-top: 48px; }.admin-nav button { padding: 11px 10px; display: flex; align-items: center; gap: 10px; color: #98b0bb; border: 0; background: transparent; text-align: left; font-size: 12px; font-weight: 700; }.admin-nav button::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #496d7c; }.admin-nav button:hover, .admin-nav button.active { color: #e9f7f6; background: rgba(157,242,230,.08); }.admin-nav button.active::before { background: var(--aqua); box-shadow: 0 0 10px rgba(157,242,230,.55); }.admin-side-bottom { margin-top: auto; }.admin-side-bottom button { width: 100%; padding: 9px; color: #91abb6; border: 1px solid rgba(195,234,237,.17); background: transparent; font-size: 11px; }.admin-side-bottom button:hover { color: var(--warm); border-color: rgba(239,166,137,.55); }.admin-main { max-height: min(850px, calc(100vh - 42px)); padding: 30px 34px 38px; overflow-y: auto; }.admin-topline { display: flex; align-items: start; justify-content: space-between; gap: 20px; }.admin-kicker { color: #84a1ae; font-family: var(--mono); font-size: 9px; letter-spacing: .12em; }.admin-topline h2 { margin: 6px 0 0; font-size: 25px; letter-spacing: -.06em; }.admin-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; margin: 26px 0 27px; }.admin-stat { padding: 15px; border: 1px solid rgba(190,232,236,.15); background: rgba(18,55,72,.31); }.admin-stat strong, .admin-stat span { display: block; }.admin-stat strong { color: var(--aqua); font-family: var(--mono); font-size: 25px; font-weight: 500; }.admin-stat span { margin-top: 6px; color: #89a4b0; font-size: 10px; }.admin-section { margin-top: 25px; padding-top: 23px; border-top: 1px solid var(--line); }.admin-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; }.admin-section-heading h3 { margin: 0; font-size: 16px; }.admin-section-heading p { margin: 4px 0 0; color: #87a1ad; font-size: 11px; }.mini-button { padding: 7px 9px; color: #d2e9e8; border: 1px solid rgba(186,230,232,.25); background: rgba(157,242,230,.06); font-size: 11px; font-weight: 700; }.mini-button:hover { color: #062533; border-color: var(--aqua); background: var(--aqua); }.mini-button.danger:hover { color: #421b13; border-color: var(--warm); background: var(--warm); }.admin-table { display: grid; gap: 1px; margin-top: 15px; border: 1px solid rgba(193,233,236,.14); background: rgba(193,233,236,.14); }.admin-row { min-height: 57px; display: grid; grid-template-columns: minmax(0, 1fr) 85px 144px; gap: 12px; align-items: center; padding: 10px 12px; background: #082238; }.admin-row h4 { overflow: hidden; margin: 0; font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }.admin-row p { margin: 4px 0 0; color: #7996a4; font-family: var(--mono); font-size: 9px; }.status-pill { justify-self: start; padding: 4px 6px; color: #b5e9e4; border: 1px solid rgba(157,242,230,.25); font-family: var(--mono); font-size: 8px; letter-spacing: .07em; }.status-pill.draft { color: #b3bbc2; border-color: rgba(179,187,194,.22); }.row-actions { display: flex; justify-content: end; gap: 6px; }.row-actions button { padding: 5px 7px; color: #a7c2ca; border: 1px solid rgba(188,228,233,.17); background: transparent; font-size: 10px; }.row-actions button:hover { color: #061c2d; border-color: var(--aqua); background: var(--aqua); }.row-actions .delete:hover { color: #3a1711; border-color: var(--warm); background: var(--warm); }
.editor { margin-top: 18px; padding: 19px; border: 1px solid rgba(188,231,233,.18); background: rgba(12,44,62,.45); }.editor[hidden] { display: none; }.editor-title { display: flex; align-items: center; justify-content: space-between; margin: 0 0 16px; font-size: 14px; }.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }.form-grid.wide-first { grid-template-columns: 1.3fr .7fr; }.form-hint { display: block; margin-top: 6px; color: #7893a1; font-size: 10px; }.cover-control { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px; border: 1px dashed rgba(184,231,233,.23); }.cover-control p { margin: 0; color: #a7bec7; font-size: 11px; }.cover-control small { color: #73919f; }.file-label { min-width: 136px; display: flex; align-items: center; justify-content: space-between; gap: 7px; padding: 8px 9px; color: #cce6e6; border: 1px solid rgba(185,233,231,.28); background: rgba(157,242,230,.07); font-size: 10px; cursor: pointer; }.file-label:hover { background: rgba(157,242,230,.14); }.file-label input { width: 1px; height: 1px; position: absolute; opacity: 0; pointer-events: none; }.check-field { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; color: #bed1d8; font-size: 12px; font-weight: 700; cursor: pointer; }.check-field input { width: 1px; height: 1px; position: absolute; opacity: 0; }.check-field span { width: 31px; height: 18px; position: relative; border-radius: 999px; background: #25475b; }.check-field span::after { content: ""; width: 12px; height: 12px; position: absolute; top: 3px; left: 3px; border-radius: 50%; background: #a6bbc4; transition: .15s ease; }.check-field input:checked + span { background: rgba(122,235,220,.45); }.check-field input:checked + span::after { background: var(--aqua); transform: translateX(13px); }.editor-actions { display: flex; justify-content: end; gap: 8px; margin-top: 18px; }.editor-actions .button { min-height: 40px; padding: 0 14px; font-size: 11px; }.skills-editor { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 9px; }.skill-line { display: grid; grid-template-columns: .7fr 1.3fr; gap: 6px; }.site-editor .field { margin-top: 13px; }

.article-dialog { width: min(720px, calc(100% - 34px)); }.article-dialog article { max-height: min(820px, calc(100vh - 34px)); padding: 34px; overflow-y: auto; }.article-dialog-close { float: right; }.article-dialog .article-date { color: #88a4b0; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; }.article-dialog h2 { clear: both; margin: 30px 0 15px; font-size: clamp(28px, 5vw, 42px); line-height: 1.15; letter-spacing: -.07em; }.article-dialog .article-content { margin-top: 27px; padding-top: 25px; color: #b8cad1; border-top: 1px solid var(--line); font-size: 14px; line-height: 2; white-space: pre-wrap; }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }.reveal.shown { opacity: 1; transform: translateY(0); }
@media (max-width: 920px) { .site-header, main, .site-footer { width: min(100% - 44px, 700px); }.main-nav { display: none; }.hero { min-height: auto; padding: 77px 0 75px; grid-template-columns: 1fr; gap: 55px; }.archive-visual { height: 470px; }.skill-strip { grid-template-columns: 1fr; gap: 24px; padding: 25px 0; }.skill-list { grid-template-columns: repeat(2, 1fr); }.section-heading { display: block; }.section-heading > p { margin-top: 23px; }.project-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }.research-section, .about-section { grid-template-columns: .18fr 1fr; }.research-copy, .about-copy { grid-column: 2; padding-top: 0; }.article-list { grid-template-columns: 1fr; }.login-panel { grid-template-columns: 1fr; }.login-aside { min-height: 220px; padding: 29px; border-right: 0; border-bottom: 1px solid var(--line); }.login-aside-footer { display: none; }.login-aside h2 { margin: 11px 0 7px; font-size: 31px; }.login-form-wrap { width: min(100% - 50px, 430px); padding: 42px 0; }.admin-shell { grid-template-columns: 1fr; }.admin-side { min-height: auto; padding: 17px; border-right: 0; border-bottom: 1px solid var(--line); }.admin-nav { display: flex; margin-top: 17px; overflow-x: auto; }.admin-nav button { flex: 1; white-space: nowrap; }.admin-side-bottom { display: none; }.admin-main { max-height: min(850px, calc(100vh - 42px)); } }
@media (max-width: 570px) { .site-header, main, .site-footer { width: calc(100% - 32px); }.site-header { height: 70px; }.brand { font-size: 16px; }.admin-trigger { padding: 8px 10px; font-size: 10px; }.admin-trigger i { width: 6px; height: 6px; margin-right: 5px; }.hero { padding-top: 59px; }.hero h1 { font-size: clamp(54px, 16vw, 75px); }.hero-intro { font-size: 13px; }.archive-visual { height: 356px; }.archive-card { min-height: 260px; padding: 17px; }.archive-card strong { margin-top: 35px; }.archive-bottom { right: 17px; bottom: 15px; left: 17px; }.label-right, .chip-a { display: none; }.chip-b { right: 4%; }.visual-grid { width: 450px; }.orbit-two { width: 500px; }.skill-list { gap: 17px 8px; }.skill-item { padding-left: 10px; }.projects-section, .writing-section { padding: 75px 0; }.section-rule { margin-top: 45px; font-size: 8px; }.project-grid { grid-template-columns: 1fr; }.project-card { min-height: 385px; }.research-section, .about-section { min-height: auto; padding: 70px 0; grid-template-columns: 1fr; gap: 16px; }.research-copy, .about-copy { grid-column: 1; padding-top: 6px; }.article-list { margin-top: 45px; }.article-card { min-height: 235px; }.site-footer { min-height: 126px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 10px; }.admin-dialog { width: calc(100% - 18px); max-height: calc(100% - 18px); }.login-form-wrap { width: calc(100% - 38px); }.admin-main { padding: 23px 17px 28px; }.admin-summary { grid-template-columns: 1fr; }.admin-row { grid-template-columns: 1fr auto; }.admin-row > .status-pill { grid-column: 1; }.row-actions { grid-column: 2; grid-row: 1 / span 2; align-self: center; flex-wrap: wrap; }.form-grid, .form-grid.wide-first { grid-template-columns: 1fr; }.cover-control { align-items: start; flex-direction: column; }.file-label { width: 100%; }.skills-editor { grid-template-columns: 1fr; }.editor-actions { justify-content: stretch; }.editor-actions .button { flex: 1; }.article-dialog article { padding: 24px 19px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }

/* --------------------------------------------------------------------------
   Warm editorial re-theme — keeps the application structure and interactions
   intact while changing the visual system from dark dashboard to soft nature.
   -------------------------------------------------------------------------- */
:root {
  --ink: #31443a;
  --muted: #718276;
  --navy: #fffaf3;
  --deep: #f6eee1;
  --panel: #fffdf9;
  --line: rgba(66, 91, 73, .16);
  --aqua: #5f8a70;
  --aqua-strong: #426e58;
  --blue: #769da7;
  --warm: #d88968;
}

body {
  color: var(--ink);
  background:
    radial-gradient(circle at 95% 30%, rgba(250, 207, 163, .22), transparent 30rem),
    radial-gradient(circle at 6% 67%, rgba(166, 202, 183, .18), transparent 27rem),
    #fbf7f0;
}

.page-noise { opacity: .055; mix-blend-mode: multiply; }
.ambient { filter: blur(20px); }
.ambient-a { background: radial-gradient(circle, rgba(245, 187, 138, .18), transparent 70%); }
.ambient-b { background: radial-gradient(circle, rgba(142, 187, 164, .18), transparent 70%); }

.site-header {
  width: min(1400px, calc(100% - 48px));
  height: 78px;
  position: sticky;
  top: 0;
  margin-top: 0;
  color: #34473b;
  border: 0;
  border-bottom: 1px solid rgba(61, 82, 67, .1);
  background: rgba(255, 251, 245, .84);
  backdrop-filter: blur(18px);
}

main, .site-footer { width: min(1400px, calc(100% - 48px)); }
.brand { color: #31443a; letter-spacing: -.55px; }
.brand b, .brand-dot { color: #d88968; }
.brand-mark i { background: #5f8a70; }
.main-nav a { color: #718276; font-size: 12px; }
.main-nav a:hover, .main-nav a.is-active { color: #31443a; }
.main-nav a::after { background: #d88968; }
.admin-trigger { color: #fffdf8; border-color: #5f8a70; background: #5f8a70; box-shadow: 0 7px 17px rgba(65, 105, 81, .14); }
.admin-trigger i { background: #e8f3dd; box-shadow: 0 0 0 4px rgba(232, 243, 221, .18); }
.admin-trigger:hover { color: #fffdf8; border-color: #426e58; background: #426e58; }

.hero {
  min-height: 710px;
  margin-top: 24px;
  padding: 76px clamp(32px, 6.6vw, 100px);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 28px;
  background:
    linear-gradient(90deg, rgba(255, 251, 244, .91) 0%, rgba(255, 248, 239, .69) 47%, rgba(255, 248, 239, .12) 84%),
    linear-gradient(0deg, rgba(34, 59, 43, .17), transparent 46%),
    url("/assets/hero-landscape.jpg") center center / cover no-repeat;
  box-shadow: 0 20px 50px rgba(97, 92, 76, .12);
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,.3), transparent 52%); pointer-events: none; }
.hero-copy, .archive-visual { position: relative; z-index: 1; }
.eyebrow { color: #6c8573; }
.eyebrow > span { background: #d88968; }
.hero h1 { color: #31463a; font-size: clamp(62px, 7.2vw, 106px); text-shadow: 0 2px 18px rgba(255,255,255,.42); }
.hero h1 em { color: #d88968; }
.hero-role { color: #3e5a49; }
.hero-intro { max-width: 470px; color: #5d7064; font-size: 15px; }
.button-primary { color: #fffdf8; background: #5f8a70; box-shadow: 0 9px 19px rgba(65,105,81,.15); }
.button-primary:hover { background: #426e58; }
.button-secondary { color: #405d4a; border-color: rgba(76, 111, 87, .43); background: rgba(255, 255, 255, .36); backdrop-filter: blur(5px); }
.button-secondary:hover { color: #31543e; border-color: #5f8a70; background: rgba(255, 255, 255, .72); }
.hero-status { color: #687c6e; }
.hero-status i { background: #d88968; box-shadow: 0 0 12px rgba(216,137,104,.55); }
.photo-credit { position: absolute; z-index: 2; right: 23px; bottom: 18px; color: rgba(255,255,255,.84); font-family: var(--mono); font-size: 8px; letter-spacing: .08em; text-shadow: 0 1px 3px rgba(24,42,29,.7); }
.photo-credit:hover { color: white; text-decoration: underline; }

.archive-visual {
  height: 450px;
  border: 1px solid rgba(255,255,255,.67);
  background: linear-gradient(145deg, rgba(255,255,255,.48), rgba(246, 240, 222, .23));
  box-shadow: 0 18px 38px rgba(39, 64, 46, .12), inset 0 1px rgba(255,255,255,.8);
  backdrop-filter: blur(9px);
}
.archive-visual::before, .archive-visual::after { border-color: rgba(74, 111, 87, .18); }
.visual-grid { opacity: .29; background: repeating-linear-gradient(0deg, transparent 0 31px, rgba(88,139,107,.24) 32px 33px), repeating-linear-gradient(90deg, transparent 0 31px, rgba(88,139,107,.21) 32px 33px), radial-gradient(circle at 40% 30%, rgba(246, 196, 157, .48), rgba(105, 153, 124, .2) 50%, transparent 70%); }
.visual-orbit { border-color: rgba(85, 126, 97, .28); }
.visual-label { color: rgba(49, 77, 60, .6); }
.archive-card { min-height: 306px; border-color: rgba(255,255,255,.88); background: linear-gradient(135deg, rgba(255,255,255,.79), rgba(246,232,210,.56)); box-shadow: 17px 20px 46px rgba(62,80,63,.14), inset 0 1px rgba(255,255,255,.8); }
.archive-card::after { border-color: rgba(92, 134, 104, .26); }
.archive-topline, .archive-bottom { color: #58745f; }
.archive-topline span:last-child { color: #5b876c; }
.archive-topline i { background: #d88968; }
.archive-card strong { margin-top: 38px; color: #3c5b49; }
.archive-subtitle { color: #52725c; }
.archive-rule { background: rgba(76, 111, 87, .26); }
.archive-card p { color: #55725e; }
.visual-chip { color: #486852; border-color: rgba(78, 116, 88, .22); background: rgba(255,255,255,.48); backdrop-filter: blur(7px); }

.skill-strip { min-height: 140px; margin: 28px 0 0; padding: 0 26px; border: 1px solid rgba(73, 97, 78, .1); border-radius: 18px; background: rgba(255,255,255,.62); box-shadow: 0 11px 28px rgba(106,95,76,.05); }
.skill-item { border-left-color: rgba(216,137,104,.62); }.skill-item strong { color: #3c5747; }.skill-item span { color: #798d7d; }

.projects-section, .writing-section { padding: 106px 0; }
.section-heading h2, .research-title-block h2, .about-heading h2 { color: #344b3c; }
.section-heading > p { color: #708176; }
.section-rule { color: #84958a; border-bottom-color: rgba(75,100,80,.14); }
.project-card { border-color: rgba(76, 103, 82, .12); background: rgba(255, 254, 249, .78); box-shadow: 0 10px 28px rgba(98,92,73,.06); }
.project-card:hover { border-color: rgba(95,138,112,.55); box-shadow: 0 23px 42px rgba(77,92,71,.14); }
.project-cover { background: #dfe9d9; }
.cover-art { background: radial-gradient(circle at 72% 31%, rgba(255, 244, 201, .9) 0 2px, transparent 3px), radial-gradient(circle at 68% 38%, rgba(255,255,255,.6), transparent 26%), linear-gradient(135deg, #9fb9a0, #d8b18f 50%, #7b9c85); }
.cover-art::before, .cover-art::after { border-color: rgba(255,255,255,.58); }
.cover-art i { background: #fff8dc; box-shadow: 0 0 12px #fff3c1; }
.project-number { color: #f9fff7; text-shadow: 0 1px 3px rgba(38,65,45,.45); }.project-type { color: #fffdf8; background: #648a70; }
.project-meta { color: #84968a; }.project-body h3 { color: #3b5142; }.project-summary { color: #738276; }.project-tags span, .article-tags span { color: #617568; border-color: rgba(100,139,112,.21); background: #f8f4ea; }.project-link, .article-read { color: #56816a; }
.empty-state h3 { color: #3a5343; }.empty-state > p:not(.eyebrow) { color: #7d9082; }.empty-symbol i { background: linear-gradient(180deg, #d88968, #e8c07e); }

.research-section { min-height: 465px; padding: 86px 52px; border: 0; border-radius: 24px; background: linear-gradient(112deg, rgba(240, 208, 181, .63), rgba(255,248,238,.82)); box-shadow: 0 18px 42px rgba(126,96,68,.08); }
.research-marker, .about-index { color: #d88968; }.research-copy { color: #687b6c; }.principle-list { border-top-color: rgba(99,121,100,.18); }.principle-list span { color: #58705d; }.principle-list b { color: #d88968; }

.writing-section { padding-bottom: 107px; }.article-card { border-color: rgba(76,103,82,.12); background: linear-gradient(145deg, rgba(255,255,255,.89), rgba(247,239,226,.66)); box-shadow: 0 10px 26px rgba(94,83,67,.05); }.article-card:hover { border-color: rgba(95,138,112,.48); box-shadow: 0 18px 34px rgba(94,83,67,.1); }.article-top { color: #87988a; }.article-index { color: #d88968; }.article-card h3 { color: #3b5342; }.article-excerpt { color: #738276; }

.about-section { min-height: 455px; padding: 94px 52px; margin-bottom: 30px; border: 1px solid rgba(82,105,86,.1); border-radius: 24px; background: rgba(255,255,255,.55); }.about-copy { color: #687b6c; }.contact-list dt { color: #8a9b8d; }.contact-list dd { color: #486351; }.contact-list a:hover { color: #d88968; }
.site-footer { color: #849389; border-top-color: rgba(75,100,80,.14); }.site-footer .brand { color: #425c4a; }.back-top { color: #55725e; }.back-top span { color: #d88968; }

.admin-dialog, .article-dialog { color: #344b3c; border-color: rgba(85,112,91,.2); background: #fffaf3; box-shadow: 0 35px 100px rgba(65,66,50,.28); }.admin-dialog::backdrop, .article-dialog::backdrop { background: rgba(61,81,61,.42); }.login-aside { color: #fffdf7; background: linear-gradient(145deg, #6c967a, #496e5a); border-right-color: rgba(255,255,255,.25); }.login-aside h2 { color: #fffdf7; }.login-aside p:not(.eyebrow) { color: #e7f0df; }.login-aside .eyebrow { color: #edf6e8; }.login-aside .eyebrow > span { background: #f3c698; }.login-aside-footer { color: #e5f1df; border-top-color: rgba(255,255,255,.22); }.login-form-wrap h3 { color: #3c5544; }.login-form-wrap > p { color: #728477; }.field > span, .field-label { color: #5f7465; }.field input, .field textarea { color: #3f5547; border-color: rgba(92,121,99,.2); background: #fffefa; }.field input:focus, .field textarea:focus { border-color: #7ca488; background: white; }.form-message { color: #c67257; }.form-message.success { color: #5b876c; }.dialog-close { color: #69806f; border-color: rgba(91,120,98,.25); }.dialog-close:hover { color: white; background: #5f8a70; }
.admin-side { background: linear-gradient(165deg, #6a9277, #496d5a); border-right-color: rgba(255,255,255,.18); }.admin-side .brand { color: #fffdf7; }.admin-side .brand-mark i { background: #f1c18e; }.admin-nav button { color: #e0ecdf; }.admin-nav button::before { background: rgba(255,255,255,.38); }.admin-nav button:hover, .admin-nav button.active { color: white; background: rgba(255,255,255,.13); }.admin-nav button.active::before { background: #f1c18e; box-shadow: 0 0 10px rgba(241,193,142,.6); }.admin-side-bottom button { color: #f1f7eb; border-color: rgba(255,255,255,.28); }.admin-side-bottom button:hover { color: #fffaf2; border-color: #f1c18e; }.admin-main { background: #fffaf3; }.admin-kicker { color: #839587; }.admin-topline h2 { color: #3c5544; }.admin-stat { border-color: rgba(97,126,103,.14); background: #f7f1e7; }.admin-stat strong { color: #5f8a70; }.admin-stat span { color: #7e8f82; }.admin-section { border-top-color: rgba(89,116,94,.14); }.admin-section-heading h3 { color: #46604e; }.admin-section-heading p { color: #829285; }.mini-button { color: #52705a; border-color: rgba(95,138,112,.3); background: rgba(110,155,123,.06); }.mini-button:hover { color: white; border-color: #5f8a70; background: #5f8a70; }.admin-table { border-color: rgba(97,126,103,.14); background: rgba(97,126,103,.14); }.admin-row { background: #fffefa; }.admin-row h4 { color: #3e5747; }.admin-row p { color: #829487; }.status-pill { color: #4f795f; border-color: rgba(95,138,112,.3); }.status-pill.draft { color: #8c928b; border-color: rgba(140,146,139,.3); }.row-actions button { color: #68806e; border-color: rgba(102,132,109,.22); }.row-actions button:hover { color: white; border-color: #5f8a70; background: #5f8a70; }.editor { border-color: rgba(96,125,102,.18); background: #f8f2e8; }.cover-control { border-color: rgba(105,137,111,.25); }.cover-control p { color: #657969; }.cover-control small { color: #8a9a8d; }.file-label { color: #52705a; border-color: rgba(95,138,112,.33); background: rgba(95,138,112,.06); }.file-label:hover { background: rgba(95,138,112,.14); }.check-field { color: #5c7161; }.check-field span { background: #ccd8ca; }.check-field input:checked + span { background: #9ac19f; }.check-field input:checked + span::after { background: #557d63; }
.article-dialog article { background: #fffaf3; }.article-dialog .article-date { color: #819287; }.article-dialog h2 { color: #3d5545; }.article-dialog .article-content { color: #607567; border-top-color: rgba(89,116,94,.15); }

@media (max-width: 920px) {
  .site-header, main, .site-footer { width: min(100% - 36px, 700px); }
  .hero { min-height: 680px; padding: 62px 42px; background-position: 57% center; }
  .archive-visual { height: 410px; }
  .research-section, .about-section { padding: 62px 34px; }
}

@media (max-width: 570px) {
  .site-header, main, .site-footer { width: calc(100% - 24px); }
  .site-header { width: 100%; padding: 0 14px; }
  .hero { min-height: 650px; margin-top: 12px; padding: 48px 24px 35px; border-radius: 20px; background: linear-gradient(180deg, rgba(255,251,244,.94) 0%, rgba(255,248,239,.72) 48%, rgba(255,248,239,.25) 100%), url("/assets/hero-landscape.jpg") 57% center / cover no-repeat; }
  .hero h1 { font-size: clamp(54px, 16vw, 73px); }.hero-role { font-size: 15px; }.archive-visual { height: 280px; margin-top: 8px; }.archive-card { min-height: 220px; }.archive-card strong { margin-top: 26px; }.archive-subtitle { font-size: 7px; }.visual-label, .visual-chip { display: none; }.photo-credit { right: 13px; bottom: 12px; font-size: 7px; }.skill-strip { margin-top: 18px; padding: 23px 14px; border-radius: 15px; }.research-section, .about-section { padding: 48px 25px; border-radius: 18px; }.about-section { margin-bottom: 20px; }
}

/* --------------------------------------------------------------------------
   Immersive profile hero: layered scenery, centered nickname and glass card.
   This layer is intentionally appended after the warm theme to preserve the
   admin workspace while giving the public homepage a distinct profile mode.
   -------------------------------------------------------------------------- */
.main-nav:not(.profile-nav) { display: none; }

.site-header {
  width: min(100% - 40px, 1510px);
  height: 74px;
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 40;
  margin: 0;
  padding: 0 22px;
  color: #f7f4ee;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.16);
  border-radius: 0 0 16px 16px;
  background: rgba(23, 25, 25, .3);
  box-shadow: 0 8px 32px rgba(0,0,0,.08);
  transform: translateX(-50%);
  transition: background .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled { background: rgba(27, 28, 27, .74); box-shadow: 0 10px 30px rgba(0,0,0,.17); }
.site-header .brand, .site-header .brand b { color: #f8f4ed; }
.site-header .brand b { color: #e7b194; }
.site-header .brand-mark i { background: #e7d5c5; }
.profile-nav { display: flex; margin: 0; gap: clamp(22px, 3vw, 45px); }
.profile-nav a { color: rgba(255,252,247,.78); font-size: 14px; text-shadow: 0 1px 4px rgba(0,0,0,.32); }
.profile-nav a:hover, .profile-nav a.is-active { color: white; }
.profile-nav a::after { background: #e9c0a4; }
.admin-trigger { color: #fffaf4; border-color: rgba(255,255,255,.18); background: rgba(14,16,16,.44); box-shadow: none; }
.admin-trigger i { background: #e9c0a4; box-shadow: 0 0 0 4px rgba(233,192,164,.14); }
.admin-trigger:hover { color: #2b241f; border-color: #f5e6d8; background: #f5e6d8; }

.hero {
  --pointer-x: 0px;
  --pointer-y: 0px;
  --scroll-shift: 0px;
  min-height: 1100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 48px;
  margin-top: 0;
  padding: 150px 58px 110px;
  overflow: hidden;
  border: 0;
  border-radius: 0 0 30px 30px;
  background:
    radial-gradient(ellipse at 50% 17%, rgba(160,126,127,.46), transparent 39%),
    linear-gradient(180deg, rgba(39,34,33,.38), rgba(20,22,20,.56) 62%, rgba(3,4,3,.94)),
    url("/assets/hero-landscape.jpg") center 55% / cover no-repeat;
  box-shadow: none;
  isolation: isolate;
}
.hero::before {
  z-index: 1;
  background: linear-gradient(180deg, rgba(18,17,16,.12) 0%, rgba(16,16,14,.04) 42%, rgba(0,0,0,.59) 100%);
}
.hero::after {
  content: "";
  position: absolute;
  z-index: 2;
  right: -9%;
  bottom: -22%;
  left: -9%;
  height: 42%;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 18% 48%, #111911 0 12%, transparent 12.7%),
    radial-gradient(ellipse at 34% 61%, #101810 0 16%, transparent 16.7%),
    radial-gradient(ellipse at 58% 51%, #111a10 0 17%, transparent 17.7%),
    radial-gradient(ellipse at 77% 60%, #0b120b 0 18%, transparent 18.7%),
    linear-gradient(180deg, transparent, #060806 67%);
  filter: drop-shadow(0 -18px 28px rgba(0,0,0,.16));
  transform: translate3d(calc(var(--pointer-x) * -.13), calc(var(--scroll-shift) * -.22), 0) scale(1.06);
}
.hero-depth { position: absolute; z-index: 0; inset: 0; pointer-events: none; will-change: transform; }
.hero-depth-far {
  inset: -8%;
  opacity: .22;
  background: url("/assets/hero-landscape.jpg") center 24% / cover no-repeat;
  filter: blur(8px) saturate(.78);
  transform: translate3d(calc(var(--pointer-x) * -.10), calc(var(--pointer-y) * -.06 + var(--scroll-shift) * -.12), 0) scale(1.08);
}
.hero-depth-mid {
  inset: auto -8% -2%;
  height: 45%;
  opacity: .68;
  background:
    linear-gradient(180deg, transparent, rgba(5,9,5,.63)),
    repeating-linear-gradient(104deg, transparent 0 27px, rgba(43,64,36,.2) 28px 30px),
    radial-gradient(ellipse at 24% 84%, rgba(23,35,20,.84) 0 20%, transparent 20.5%),
    radial-gradient(ellipse at 52% 92%, rgba(20,31,18,.88) 0 23%, transparent 23.5%),
    radial-gradient(ellipse at 81% 85%, rgba(19,30,18,.87) 0 21%, transparent 21.5%);
  transform: translate3d(calc(var(--pointer-x) * .22), calc(var(--pointer-y) * .08 + var(--scroll-shift) * -.34), 0) scale(1.07);
}
.hero-depth-foreground {
  z-index: 3;
  inset: auto -14% -13%;
  height: 27%;
  opacity: .91;
  background:
    radial-gradient(ellipse at 7% 43%, #090d08 0 18%, transparent 18.6%),
    radial-gradient(ellipse at 22% 59%, #080c08 0 21%, transparent 21.6%),
    radial-gradient(ellipse at 47% 57%, #090d08 0 22%, transparent 22.6%),
    radial-gradient(ellipse at 72% 47%, #080c07 0 22%, transparent 22.6%),
    radial-gradient(ellipse at 92% 62%, #070b07 0 23%, transparent 23.6%);
  filter: blur(.4px);
  transform: translate3d(calc(var(--pointer-x) * .42), calc(var(--pointer-y) * .16 + var(--scroll-shift) * -.58), 0) scale(1.07);
}
.hero-copy { z-index: 5; width: min(100%, 1020px); position: relative; text-align: center; }
.hero-copy .eyebrow { justify-content: center; color: rgba(255,246,239,.76); text-shadow: 0 1px 6px rgba(0,0,0,.37); }
.hero-copy .eyebrow > span { background: #e3b098; }
.hero h1 { margin: 20px 0 0; color: #f7f1e9; font-size: clamp(62px, 9.7vw, 138px); line-height: .86; letter-spacing: -.09em; text-shadow: 0 10px 34px rgba(0,0,0,.24); }
.hero h1 span { display: block; }
.hero h1 em { display: none; }
.hero h1::after { content: "Profile"; display: block; margin-top: 20px; color: #f1ddd0; font-size: .23em; font-style: normal; font-weight: 500; letter-spacing: .08em; text-shadow: none; }
.hero-role, .hero-intro { display: none; }
.hero-copy::after { content: "记录真实的成长、实践与持续探索。"; display: block; margin: 20px auto 0; color: rgba(255,248,242,.76); font-size: 16px; letter-spacing: .01em; text-shadow: 0 1px 7px rgba(0,0,0,.4); }
.hero-actions { justify-content: center; margin-top: 29px; }
.hero .button-primary { color: #332b28; background: #f5eee8; box-shadow: 0 10px 25px rgba(0,0,0,.17); }
.hero .button-primary:hover { background: #fffaf5; }
.hero .button-secondary { color: #fff8f1; border-color: rgba(255,255,255,.62); background: rgba(255,255,255,.06); }
.hero .button-secondary:hover { color: #312d28; background: rgba(255,255,255,.9); }
.hero-status { display: none; }

.archive-visual {
  z-index: 5;
  width: min(100%, 1040px);
  height: 426px;
  display: block;
  overflow: hidden;
  border: 4px solid rgba(9,12,11,.92);
  border-radius: 25px;
  background:
    linear-gradient(108deg, rgba(5,10,12,.76), rgba(108,143,148,.32) 31%, rgba(181,242,250,.64) 72%, rgba(67,202,244,.72)),
    url("/assets/hero-landscape.jpg") center 58% / cover no-repeat;
  box-shadow: 0 28px 58px rgba(0,0,0,.43), inset 0 1px rgba(255,255,255,.42);
  backdrop-filter: none;
  transform: translate3d(calc(var(--pointer-x) * .09), calc(var(--pointer-y) * .06 + var(--scroll-shift) * -.09), 0);
  transition: transform .18s ease-out;
}
.archive-visual::before { z-index: 1; inset: 0; border: 0; border-radius: 0; background: linear-gradient(90deg, rgba(5,9,10,.6), transparent 46%); }
.archive-visual::after { z-index: 1; inset: auto 0 0; height: 44%; border: 0; border-radius: 0; background: linear-gradient(0deg, rgba(4,7,5,.69), transparent); }
.visual-grid, .visual-orbit, .visual-label, .visual-chip { z-index: 2; }
.visual-grid { width: 700px; opacity: .16; }
.visual-orbit { border-color: rgba(255,255,255,.3); }.visual-label { color: rgba(255,255,255,.59); }.visual-chip { color: #eef9f8; border-color: rgba(255,255,255,.28); background: rgba(4,12,15,.35); }
.profile-rail { width: 227px; position: absolute; z-index: 6; inset: 0 auto 0 0; padding: 88px 22px 35px 28px; background: linear-gradient(90deg, rgba(2,6,7,.74), rgba(20,38,41,.32)); }
.profile-rail::before { content: ""; width: 72px; height: 13px; position: absolute; top: 39px; left: 30px; border-radius: 999px; background: rgba(255,255,255,.2); }
.profile-rail::after { content: ""; width: 52%; height: 124%; position: absolute; z-index: -1; top: -12%; right: -4%; background: linear-gradient(135deg, rgba(219,255,245,.49), rgba(192,248,242,.05)); clip-path: polygon(0 0, 100% 0, 56% 100%, 0 100%); }
.profile-rail a { display: flex; align-items: center; gap: 12px; padding: 11px 9px; color: rgba(255,255,255,.78); border-radius: 10px; font-size: 14px; font-weight: 700; transition: background .18s ease, color .18s ease; }
.profile-rail a:hover { color: white; background: rgba(255,255,255,.12); }.profile-rail i { width: 14px; height: 14px; border: 1px solid rgba(255,255,255,.66); border-radius: 3px; }
.archive-card { width: min(500px, calc(100% - 310px)); min-height: 292px; position: absolute; z-index: 6; top: 50%; right: clamp(38px, 9vw, 130px); padding: 0; border: 1px solid rgba(255,255,255,.66); background: rgba(192, 229, 239, .2); box-shadow: 0 16px 40px rgba(0,0,0,.16); transform: translateY(-43%); backdrop-filter: blur(15px); }
.archive-card::after { width: 46%; top: 8%; right: -8%; border-color: rgba(255,255,255,.35); }.archive-card > :not(.profile-card-content) { display: none; }
.profile-card-content { min-height: 292px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px 42px 25px; color: white; text-align: center; }
.profile-avatar { width: 52px; height: 52px; display: grid; place-items: center; border: 2px solid rgba(255,255,255,.68); border-radius: 50%; background: radial-gradient(circle at 30% 25%, #fff8d8, #eab39a 49%, #6d8aa1); box-shadow: 0 4px 14px rgba(0,0,0,.2); }
.profile-avatar span { color: rgba(44,51,57,.87); font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: -.08em; }
.profile-card-content h2 { margin: 18px 0 0; color: #fffdf9; font-size: 28px; letter-spacing: -.05em; }.profile-page-label { margin: 3px 0 0; color: rgba(255,255,255,.7); font-size: 14px; }.profile-card-role, .profile-card-path { display: none; }.profile-card-content::after { content: "Go · Python · ENSO"; order: 2; margin-top: 17px; color: rgba(255,255,255,.82); font-family: var(--mono); font-size: 10px; letter-spacing: .08em; }.profile-contact { width: min(100%, 298px); order: 3; margin-top: 22px; padding: 12px; color: #252829; border-radius: 999px; background: rgba(255,255,255,.9); font-size: 13px; font-weight: 800; transition: transform .18s ease, background .18s ease; }.profile-contact:hover { background: white; transform: translateY(-2px); }
.photo-credit { z-index: 7; right: 31px; bottom: 24px; }

.skill-strip { margin-top: 48px; }
.experience-section, .competition-section, .hobbies-section { margin: 72px 0; position: relative; border-radius: 24px; }
.experience-section { min-height: 330px; padding: 68px 62px; display: grid; grid-template-columns: .25fr 1.12fr .88fr; gap: 32px; color: #ecedea; overflow: hidden; background: linear-gradient(120deg, rgba(32,45,34,.95), rgba(84,107,87,.88)), url("/assets/hero-landscape.jpg") center / cover; box-shadow: 0 18px 44px rgba(47,59,47,.13); }
.experience-section::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(13,19,14,.38), transparent); }.experience-section > * { position: relative; z-index: 1; }.experience-index { padding-top: 7px; color: #f0b89a; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; }.experience-section h2, .competition-section h2, .hobbies-section h2 { margin: 19px 0 0; font-size: clamp(40px, 4.4vw, 60px); line-height: 1.08; letter-spacing: -.07em; }.experience-section .eyebrow { color: #d8e5d7; }.experience-section .eyebrow > span { background: #f0b89a; }.experience-copy { align-self: center; color: rgba(255,255,255,.8); font-size: 14px; line-height: 1.9; }.experience-copy p { margin: 0; }.experience-copy span { display: inline-block; margin-top: 21px; color: #f2c4aa; font-family: var(--mono); font-size: 10px; letter-spacing: .06em; }
.competition-section { min-height: 380px; padding: 66px; display: grid; grid-template-columns: 1fr .8fr; align-items: center; gap: 55px; overflow: hidden; color: #f4eee8; background: radial-gradient(circle at 79% 19%, rgba(172,207,209,.44), transparent 22%), linear-gradient(128deg, #57484a, #22292a); }.competition-section::before { content: ""; width: 68%; height: 160%; position: absolute; top: -32%; right: -12%; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; transform: rotate(-26deg); }.competition-copy { position: relative; z-index: 1; max-width: 600px; }.competition-copy .eyebrow { color: #e6d9ce; }.competition-copy .eyebrow > span { background: #aee3de; }.competition-copy h2 { color: #fff9f1; }.competition-copy > p:last-child { margin: 19px 0 0; color: rgba(255,248,241,.75); font-size: 14px; line-height: 1.9; }.competition-card { min-height: 235px; position: relative; z-index: 1; padding: 24px; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.1); box-shadow: inset 0 1px rgba(255,255,255,.18); backdrop-filter: blur(8px); }.competition-card span { color: #bde7e4; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; }.competition-card strong { display: block; margin-top: 47px; color: #fffaf2; font-family: var(--mono); font-size: clamp(45px, 5vw, 68px); font-weight: 500; letter-spacing: -.13em; }.competition-card p { margin: 20px 0 0; color: rgba(255,255,255,.77); font-size: 12px; line-height: 1.7; }
.hobbies-section { min-height: 260px; padding: 63px 66px; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 50px; border: 1px solid rgba(90,110,94,.14); background: linear-gradient(135deg, rgba(255,255,255,.84), rgba(245,229,212,.75)); box-shadow: 0 16px 36px rgba(89,77,59,.07); }.hobbies-section .hobbies-title { color: #3c5342; }.hobbies-section > p { margin: 0; color: #708076; font-size: 15px; line-height: 1.95; }

@media (max-width: 920px) {
  .site-header { width: 100%; padding: 0 20px; border-radius: 0; }.profile-nav { gap: 22px; }.hero { min-height: 1000px; padding: 138px 32px 86px; }.archive-visual { height: 400px; }.profile-rail { width: 185px; padding-left: 20px; }.archive-card { width: min(460px, calc(100% - 243px)); right: 25px; }.experience-section { padding: 52px 38px; grid-template-columns: .18fr 1fr; }.experience-copy { grid-column: 2; }.competition-section, .hobbies-section { padding: 52px 38px; }
}

@media (max-width: 640px) {
  .site-header { justify-content: flex-start; gap: 18px; overflow-x: auto; scrollbar-width: none; }.site-header::-webkit-scrollbar { display: none; }.site-header .brand { flex: none; }.profile-nav { flex: none; display: flex; gap: 21px; }.profile-nav a { font-size: 12px; }.admin-trigger { flex: none; font-size: 10px; }.hero { min-height: 930px; gap: 35px; padding: 125px 16px 70px; border-radius: 0 0 22px 22px; background-position: 54% center; }.hero h1 { font-size: clamp(52px, 15vw, 74px); }.hero-copy::after { max-width: 260px; font-size: 13px; line-height: 1.7; }.archive-visual { width: 100%; height: 445px; border-width: 3px; border-radius: 19px; }.profile-rail { width: 100%; height: 52px; inset: 0 0 auto; display: flex; align-items: center; gap: 2px; padding: 8px 5px; overflow-x: auto; background: rgba(2,6,7,.67); }.profile-rail::before, .profile-rail::after { display: none; }.profile-rail a { flex: none; gap: 5px; padding: 7px 8px; font-size: 11px; }.profile-rail i { width: 10px; height: 10px; }.archive-card { width: calc(100% - 34px); min-height: 310px; top: 56%; right: 17px; transform: translateY(-42%); }.profile-card-content { min-height: 310px; }.profile-card-path { font-size: 8px; }.photo-credit { right: 20px; bottom: 12px; }.experience-section, .competition-section, .hobbies-section { margin: 38px 0; padding: 42px 25px; border-radius: 18px; }.experience-section { min-height: 345px; grid-template-columns: 1fr; gap: 15px; }.experience-copy { grid-column: 1; }.competition-section, .hobbies-section { grid-template-columns: 1fr; gap: 28px; }.competition-section { min-height: 500px; }.competition-card { min-height: 190px; }.hobbies-section { min-height: 280px; }.hero-depth-foreground { bottom: -7%; }
}

/* Scroll-driven competition poker stack. JavaScript writes the transform
   variables as the user moves through this full-screen section. */
.competition-section.has-competition-stack {
  height: var(--competition-scroll-height, 250vh);
  min-height: 0;
  padding: 0;
  overflow: visible;
  background: #070909;
}
.competition-section.has-competition-stack::before { width: 80%; height: 120%; top: -14%; right: -32%; opacity: .7; }
.has-competition-stack .competition-copy {
  width: min(1260px, calc(100% - 80px));
  position: absolute;
  z-index: 25;
  top: 105px;
  left: 50%;
  color: #f6f1eb;
  pointer-events: none;
  transform: translateX(-50%);
}
.has-competition-stack .competition-copy .eyebrow { color: rgba(244,242,237,.62); }.has-competition-stack .competition-copy .eyebrow > span { background: #d2ede8; }.has-competition-stack .competition-copy h2 { color: #faf6f0; font-size: clamp(34px, 4vw, 58px); }.has-competition-stack .competition-copy > p:last-child { max-width: 520px; color: rgba(246,242,235,.62); font-size: 13px; }
.has-competition-stack .competition-card {
  width: 100%;
  height: 100vh;
  min-height: 720px;
  margin: 0;
  display: block;
  position: sticky;
  top: 0;
  overflow: hidden;
}
.has-competition-stack .competition-stack { width: min(1260px, calc(100% - 80px)); height: 100%; position: relative; margin: 0 auto; }
.has-competition-stack .competition-float-card {
  width: 100%;
  min-height: 470px;
  position: absolute;
  top: 0;
  left: 0;
  margin: 0;
  opacity: var(--stack-opacity, 0);
  transform: translate3d(0, var(--stack-y, 88vh), 0) scale(var(--stack-scale, .9));
  transform-origin: center bottom;
  will-change: transform, opacity;
  transition: box-shadow .2s ease;
}
.has-competition-stack .competition-card-image { min-height: 470px; }.has-competition-stack .competition-image-placeholder { min-height: 470px; }.has-competition-stack .competition-card-copy { padding-top: 116px; }.competition-tag { display: inline-flex; order: 1; margin-top: 21px; padding: 7px 10px; color: #d9f1ed; border: 1px solid rgba(203,240,235,.3); border-radius: 999px; background: rgba(174,219,216,.08); font-family: var(--mono); font-size: 9px; letter-spacing: .08em; }.competition-details { order: 2; }

@media (max-width: 640px) {
  .competition-section.has-competition-stack { height: var(--competition-scroll-height, 270vh); }.has-competition-stack .competition-copy { width: calc(100% - 40px); top: 88px; }.has-competition-stack .competition-copy h2 { font-size: 35px; }.has-competition-stack .competition-copy > p:last-child { max-width: 300px; font-size: 11px; }.has-competition-stack .competition-card { min-height: 680px; }.has-competition-stack .competition-stack { width: calc(100% - 30px); }.has-competition-stack .competition-float-card { min-height: 530px; top: 0; }.has-competition-stack .competition-card-image, .has-competition-stack .competition-image-placeholder { min-height: 224px; }.has-competition-stack .competition-card-copy { padding-top: 26px; }.competition-tag { margin-top: 15px; }
}

/* Editable profile copy, contact overlay and stacked competition records. */
.hero-copy::after { display: none; }
.hero-subtitle { max-width: 650px; margin: 22px auto 0; color: rgba(255,248,242,.82); font-size: 15px; line-height: 1.82; text-shadow: 0 1px 7px rgba(0,0,0,.4); }

.competition-section { min-height: 0; display: block; padding: 78px clamp(26px, 6vw, 94px) 92px; background: radial-gradient(circle at 82% 8%, rgba(105,142,145,.22), transparent 22%), linear-gradient(145deg, #121615, #191b1b 66%, #0d100e); }
.competition-section::before { width: 60%; height: 180%; top: -46%; right: -18%; border-color: rgba(255,255,255,.1); }
.competition-copy { max-width: 650px; }.competition-copy > p:last-child { max-width: 620px; }
.competition-card { min-height: 0; margin-top: 47px; padding: 0; border: 0; background: transparent; box-shadow: none; backdrop-filter: none; }
.competition-stack { display: grid; gap: 26px; }
.competition-float-card { min-height: 410px; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); overflow: hidden; position: sticky; top: calc(92px + var(--stack-index) * 20px); z-index: calc(4 + var(--stack-index)); margin-bottom: 28px; border: 1px solid rgba(255,255,255,.18); border-radius: 25px; background: linear-gradient(105deg, rgba(18,24,25,.97), rgba(28,29,29,.96)); box-shadow: 0 25px 45px rgba(0,0,0,.32), inset 0 1px rgba(255,255,255,.08); }
.competition-float-card::before { content: ""; height: 1px; position: absolute; z-index: 1; top: 0; right: 0; left: 0; background: linear-gradient(90deg, transparent, rgba(201,239,235,.4), transparent); }
.competition-card-image { min-height: 100%; position: relative; overflow: hidden; background: #202728; }.competition-card-image > img { width: 100%; height: 100%; display: block; object-fit: cover; filter: saturate(.84) brightness(.83); transition: transform .45s ease, filter .45s ease; }.competition-float-card:hover .competition-card-image > img { filter: saturate(1) brightness(.96); transform: scale(1.035); }.competition-card-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 44%, rgba(17,20,20,.55)), linear-gradient(0deg, rgba(0,0,0,.42), transparent 42%); pointer-events: none; }
.competition-image-placeholder { width: 100%; height: 100%; min-height: 410px; display: flex; flex-direction: column; justify-content: end; padding: 35px; color: rgba(255,255,255,.78); background: radial-gradient(circle at 68% 26%, rgba(127,214,220,.63), transparent 5px), linear-gradient(148deg, #314b4d, #75999c 54%, #283c3b); }.competition-image-placeholder::before { content: ""; width: 125%; aspect-ratio: 1; position: absolute; top: -40%; left: -12%; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; }.competition-image-placeholder span { position: relative; z-index: 1; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; }.competition-image-placeholder b { position: relative; z-index: 1; margin-top: 9px; color: #f6f1e9; font-family: var(--mono); font-size: 62px; font-weight: 500; letter-spacing: -.12em; }
.competition-record { position: absolute; z-index: 2; top: 22px; left: 22px; padding: 7px 9px; color: #e8f5f2; border: 1px solid rgba(255,255,255,.31); border-radius: 999px; background: rgba(8,11,11,.4); font-family: var(--mono); font-size: 9px; letter-spacing: .08em; backdrop-filter: blur(6px); }.competition-card-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(31px, 5vw, 75px); }.competition-card-copy::before { content: ""; width: 38px; height: 1px; margin-bottom: 20px; background: #c2e8e2; }.competition-subtitle { margin: 0; color: #b6ddda; font-family: var(--mono); font-size: 10px; letter-spacing: .09em; }.competition-card-copy h3 { max-width: 560px; margin: 19px 0 0; color: #fff9f0; font-size: clamp(31px, 3.6vw, 57px); line-height: 1.13; letter-spacing: -.075em; }.competition-summary { max-width: 570px; margin: 22px 0 0; color: rgba(255,249,241,.79); font-size: 14px; line-height: 1.88; }.competition-details { max-width: 570px; margin: 15px 0 0; color: rgba(212,226,220,.59); font-size: 12px; line-height: 1.8; }.competition-empty-card { min-height: 268px; padding: 40px; display: flex; flex-direction: column; justify-content: center; border: 1px dashed rgba(255,255,255,.28); border-radius: 22px; color: #f2ede4; background: rgba(255,255,255,.04); }.competition-empty-card span { color: #b9e1dd; font-family: var(--mono); font-size: 10px; letter-spacing: .13em; }.competition-empty-card strong { margin-top: 18px; font-size: 40px; letter-spacing: -.06em; }.competition-empty-card p { max-width: 420px; margin: 12px 0 0; color: rgba(255,255,255,.65); font-size: 13px; line-height: 1.8; }

.contact-dialog { width: min(500px, calc(100% - 34px)); padding: 0; overflow: hidden; color: #faf6ef; border: 1px solid rgba(255,255,255,.25); border-radius: 22px; background: linear-gradient(145deg, #242825, #42453f); box-shadow: 0 30px 90px rgba(0,0,0,.45); }.contact-dialog::backdrop { background: rgba(5,8,6,.67); backdrop-filter: blur(10px); }.contact-dialog > div { min-height: 325px; padding: 36px; position: relative; overflow: hidden; }.contact-dialog > div::after { content: ""; width: 280px; height: 280px; position: absolute; z-index: 0; top: -130px; right: -90px; border: 1px solid rgba(196,231,220,.24); border-radius: 50%; box-shadow: 0 0 0 35px rgba(196,231,220,.04), 0 0 0 70px rgba(196,231,220,.025); }.contact-dialog .dialog-close, .contact-dialog .eyebrow, .contact-dialog h2, .contact-dialog p, .contact-email { position: relative; z-index: 1; }.contact-dialog .eyebrow { color: #c1dcd2; }.contact-dialog .eyebrow > span { background: #ecb99d; }.contact-dialog h2 { margin: 20px 0 10px; color: #fff9f2; font-size: 42px; letter-spacing: -.07em; }.contact-dialog p:not(.eyebrow) { max-width: 330px; margin: 0; color: rgba(255,249,241,.71); font-size: 14px; line-height: 1.8; }.contact-email { margin-top: 26px; display: inline-flex; align-items: center; gap: 14px; padding: 13px 16px; color: #26332c; border-radius: 10px; background: #f7f0e7; font-family: var(--mono); font-size: 13px; font-weight: 700; }.contact-email:hover { background: white; }.contact-email.is-empty { color: rgba(255,249,241,.65); background: rgba(255,255,255,.08); }

@media (max-width: 640px) {
  .hero-subtitle { max-width: 284px; margin-top: 17px; font-size: 12px; line-height: 1.8; }.competition-section { padding: 52px 20px 65px; }.competition-card { margin-top: 34px; }.competition-stack { gap: 16px; }.competition-float-card { min-height: 530px; grid-template-columns: 1fr; top: calc(66px + var(--stack-index) * 13px); border-radius: 18px; }.competition-card-image { min-height: 220px; }.competition-image-placeholder { min-height: 220px; }.competition-card-copy { min-height: 300px; padding: 27px; }.competition-card-copy h3 { font-size: 31px; }.competition-summary { margin-top: 15px; font-size: 12px; }.competition-details { font-size: 11px; }.competition-record { top: 14px; left: 14px; }.contact-dialog > div { min-height: 300px; padding: 28px 23px; }.contact-dialog h2 { font-size: 36px; }
}

/* The stage has both class names; this late, more-specific selector ensures
   the sticky viewport frame wins over the ordinary competition card styles. */
.has-competition-stack .competition-card.competition-stack {
  width: min(1260px, calc(100% - 80px));
  height: 100vh;
  min-height: 720px;
  margin: 0 auto;
  padding: 0;
  display: block;
  position: sticky;
  top: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}
@media (max-width: 640px) {
  .has-competition-stack .competition-card.competition-stack { width: calc(100% - 30px); min-height: 680px; }
}

/* Refined competition stack: pinned left title, centred cards, tight deck. */
.has-competition-stack .competition-copy {
  width: auto;
  max-width: 360px;
  top: 92px;
  left: max(34px, calc((100vw - 1260px) / 2 + 20px));
  z-index: 31;
  transform: none;
  transition: opacity .24s ease, transform .3s ease;
}
.has-competition-stack .competition-copy.is-pinned { position: fixed; }
.has-competition-stack .competition-copy .eyebrow { margin-bottom: 0; }.has-competition-stack .competition-copy h2 { margin-top: 10px; font-size: clamp(36px, 3.7vw, 52px); letter-spacing: -.08em; }.has-competition-stack .competition-copy > p:last-child { display: none; }
.has-competition-stack .competition-card.competition-stack { overflow: visible; }
.has-competition-stack .competition-float-card {
  top: calc(50% + 72px);
  border-color: rgba(255,255,255,.17);
  background: linear-gradient(110deg, rgba(20,24,24,.985), rgba(17,20,20,.96) 58%, rgba(29,30,30,.94));
  box-shadow: 0 34px 70px rgba(0,0,0,.42), 0 0 0 1px rgba(190,225,221,.04) inset;
  transform: translate3d(var(--stack-x, 0px), calc(-50% + var(--stack-y, 88vh)), 0) rotate(var(--stack-rotate, 0deg)) scale(var(--stack-scale, .9));
  filter: brightness(var(--stack-brightness, 1));
  backface-visibility: hidden;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.has-competition-stack .competition-float-card::after { content: ""; position: absolute; z-index: 3; inset: 0; pointer-events: none; border-radius: inherit; background: linear-gradient(130deg, rgba(189,227,223,.10), transparent 28%, transparent 70%, rgba(247,213,197,.07)); opacity: .8; }
.has-competition-stack .competition-card-image::after { background: linear-gradient(90deg, transparent 38%, rgba(12,14,14,.62)), linear-gradient(0deg, rgba(0,0,0,.43), transparent 46%); }
.has-competition-stack .competition-card-copy { position: relative; z-index: 4; }.has-competition-stack .competition-card-copy h3 { text-wrap: balance; }.has-competition-stack .competition-tag { border-color: rgba(221,243,238,.38); background: linear-gradient(110deg, rgba(179,220,216,.14), rgba(255,255,255,.04)); box-shadow: 0 8px 18px rgba(0,0,0,.12); }

@media (max-width: 640px) {
  .has-competition-stack .competition-copy { top: 78px; left: 23px; max-width: 210px; }.has-competition-stack .competition-copy h2 { font-size: 32px; }.has-competition-stack .competition-float-card { top: calc(54% + 42px); }.has-competition-stack .competition-card.competition-stack { overflow: visible; }
}

/* Public-page visual system: independently moving distant, middle and
   foreground layers, inspired by the observed public reference behaviour. */
.hero {
  --hero-light-x: 50%;
  --hero-light-y: 25%;
  --hero-progress: 0;
  background:
    radial-gradient(ellipse at 50% 3%, rgba(165,130,133,.6), transparent 42%),
    linear-gradient(180deg, #887477 0%, #7d696d 28%, #4d4b43 56%, #141610 79%, #020302 100%);
}
.hero::before {
  z-index: 1;
  opacity: 1;
  background:
    radial-gradient(ellipse 39% 27% at var(--hero-light-x) var(--hero-light-y), rgba(244,223,206,.28), rgba(221,182,175,.12) 40%, transparent 74%),
    linear-gradient(180deg, rgba(25,24,24,.12), transparent 35%, rgba(0,0,0,.08) 65%, rgba(0,0,0,.5) 100%);
  will-change: background;
}
.hero::after {
  z-index: 3;
  height: 36%;
  opacity: .92;
  background:
    linear-gradient(180deg, transparent 0%, rgba(0,0,0,.08) 22%, #050705 84%),
    radial-gradient(ellipse at 4% 63%, #0a0e09 0 18%, transparent 18.5%),
    radial-gradient(ellipse at 25% 58%, #091008 0 21%, transparent 21.5%),
    radial-gradient(ellipse at 52% 67%, #081008 0 24%, transparent 24.5%),
    radial-gradient(ellipse at 78% 54%, #070d07 0 24%, transparent 24.5%),
    radial-gradient(ellipse at 98% 68%, #050a05 0 21%, transparent 21.5%);
  transform: translate3d(calc(var(--pointer-x) * .16), calc(var(--scroll-shift) * -.48), 0) scale(calc(1.03 + var(--hero-progress) * .025));
  will-change: transform;
}
.hero-depth-far {
  inset: -7%;
  z-index: 0;
  opacity: .55;
  background:
    linear-gradient(180deg, rgba(152,120,123,.17), rgba(53,62,49,.08) 59%, rgba(0,0,0,.25)),
    url("/assets/hero-landscape.jpg") center 40% / cover no-repeat;
  filter: saturate(.62) brightness(.84);
  transform: translate3d(calc(var(--pointer-x) * -.06), calc(var(--pointer-y) * -.03 + var(--scroll-shift) * -.04), 0) scale(1.045);
  will-change: transform;
}
.hero-depth-mid {
  inset: -5% -6% -2%;
  z-index: 1;
  height: 74%;
  opacity: .43;
  background:
    linear-gradient(180deg, transparent 25%, rgba(19,28,20,.05) 54%, rgba(4,8,5,.48) 100%),
    url("/assets/hero-landscape.jpg") center 72% / 114% auto no-repeat;
  filter: saturate(.62) contrast(1.08) brightness(.66);
  mask-image: linear-gradient(180deg, transparent 0%, black 26%, black 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, black 26%, black 100%);
  transform: translate3d(calc(var(--pointer-x) * .09), calc(var(--pointer-y) * .05 + var(--scroll-shift) * -.15), 0) scale(1.06);
  will-change: transform;
}
.hero-depth-foreground {
  inset: auto -9% -15%;
  z-index: 2;
  height: 48%;
  opacity: .62;
  background:
    linear-gradient(180deg, transparent 0%, rgba(2,5,2,.38) 46%, #030503 96%),
    url("/assets/hero-landscape.jpg") center bottom / 124% auto no-repeat;
  filter: saturate(.6) contrast(1.2) brightness(.39);
  mask-image: linear-gradient(180deg, transparent, black 33%);
  -webkit-mask-image: linear-gradient(180deg, transparent, black 33%);
  transform: translate3d(calc(var(--pointer-x) * .18), calc(var(--pointer-y) * .09 + var(--scroll-shift) * -.31), 0) scale(1.1);
  will-change: transform;
}
.hero-copy { text-shadow: 0 5px 26px rgba(0,0,0,.31); }.archive-visual { background: linear-gradient(112deg, rgba(6,12,13,.72), rgba(123,157,161,.32) 42%, rgba(151,221,242,.65)); box-shadow: 0 34px 70px rgba(0,0,0,.46), inset 0 1px rgba(255,255,255,.42); }.archive-visual::before { background: linear-gradient(90deg, rgba(1,4,5,.67), transparent 52%); }.archive-card { background: linear-gradient(130deg, rgba(204,245,244,.19), rgba(74,144,165,.18) 54%, rgba(10,25,37,.35)); box-shadow: 0 22px 48px rgba(0,0,0,.22), inset 0 1px rgba(255,255,255,.25); }

.reveal { opacity: 0; filter: blur(8px); transform: translate3d(0, 26px, 0) scale(.986); transition: opacity .72s cubic-bezier(.16,.8,.24,1), transform .72s cubic-bezier(.16,.8,.24,1), filter .72s ease; transition-delay: var(--reveal-delay, 0ms); }.reveal.shown { opacity: 1; filter: blur(0); transform: translate3d(0,0,0) scale(1); }

@media (max-width: 640px) {
  .hero-depth-far { opacity: .43; background-position: 56% 40%; }.hero-depth-mid { opacity: .34; background-position: 60% 70%; }.hero-depth-foreground { opacity: .56; background-size: 155% auto; }.hero::before { background: radial-gradient(ellipse 66% 24% at var(--hero-light-x) var(--hero-light-y), rgba(244,223,206,.25), transparent 75%), linear-gradient(180deg, rgba(25,24,24,.15), transparent 35%, rgba(0,0,0,.56) 100%); }
}

/* Final mobile pass: the warm visual theme is declared after the original
   responsive rules, so keep the handset layout overrides at the end. */
@media (max-width: 640px) {
  html, body { width: 100%; min-width: 0; overflow-x: hidden; }
  .site-header, main, .site-footer { width: calc(100% - 20px); }

  .site-header {
    height: 60px;
    padding: 0 8px;
    gap: 8px;
    overflow: hidden;
    border-radius: 0 0 14px 14px;
  }
  .site-header .brand { flex: none; gap: 5px; font-size: 13px; }
  .site-header .brand-mark { width: 16px; height: 16px; gap: 2px; }
  .profile-nav {
    min-width: 0;
    flex: 1;
    gap: 9px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .profile-nav::-webkit-scrollbar { display: none; }
  .profile-nav a { flex: none; padding: 6px 0; font-size: 10px; white-space: nowrap; }
  .profile-nav a::after { bottom: -3px; }
  .admin-trigger { flex: none; padding: 7px 8px; font-size: 9px; white-space: nowrap; }
  .admin-trigger i { display: none; }

  main { width: calc(100% - 20px); }
  .hero {
    min-height: 0;
    margin-top: 12px;
    padding: 76px 14px 38px;
    gap: 28px;
    border-radius: 20px;
  }
  .hero-copy { width: 100%; }
  .hero h1 { margin-top: 15px; font-size: clamp(50px, 17vw, 72px); }
  .hero h1::after { margin-top: 14px; font-size: .22em; }
  .hero-subtitle { max-width: 300px; margin-top: 15px; font-size: 12px; line-height: 1.8; }
  .hero-actions { gap: 8px; margin-top: 22px; }
  .hero .button { min-height: 42px; padding: 0 14px; font-size: 11px; gap: 10px; }

  .archive-visual {
    width: 100%;
    height: 390px;
    border-width: 2px;
    border-radius: 18px;
  }
  .profile-rail { height: 46px; padding: 6px 4px; gap: 0; }
  .profile-rail a { gap: 4px; padding: 6px 7px; font-size: 10px; }
  .profile-rail i { width: 9px; height: 9px; }
  .archive-card { width: calc(100% - 26px); min-height: 270px; top: 56%; right: 13px; transform: translateY(-43%); }
  .profile-card-content { min-height: 270px; padding: 24px 18px 20px; }
  .profile-avatar { width: 46px; height: 46px; }
  .profile-card-content h2 { margin-top: 13px; font-size: 24px; }
  .profile-card-content::after { margin-top: 14px; font-size: 9px; }
  .profile-contact { max-width: 250px; margin-top: 18px; padding: 11px; font-size: 12px; }
  .photo-credit { right: 14px; bottom: 10px; font-size: 8px; }

  .skill-strip { margin-top: 25px; padding: 18px 8px; gap: 17px; }
  .skill-list { gap: 14px 8px; }
  .skill-item { padding-left: 8px; }
  .skill-item strong { font-size: 13px; }
  .skill-item span { font-size: 9px; }

  .projects-section, .writing-section { padding: 55px 0; }
  .section-heading h2, .research-title-block h2, .about-heading h2 { font-size: 40px; }
  .section-heading > p { margin-top: 15px; font-size: 12px; line-height: 1.75; }
  .section-rule { margin: 35px 0 15px; }
  .project-grid { gap: 12px; }
  .project-card { min-height: 365px; }
  .project-cover { height: 160px; }
  .project-body { padding: 17px 16px 16px; }
  .project-body h3 { margin-top: 13px; font-size: 19px; }
  .project-summary { font-size: 12px; }

  .experience-section, .competition-section, .hobbies-section {
    margin: 28px 0;
    padding: 32px 18px;
    border-radius: 16px;
  }
  .experience-section { min-height: 0; gap: 13px; }
  .experience-section h2, .competition-section h2, .hobbies-section h2 { margin-top: 14px; font-size: 35px; }
  .experience-copy, .hobbies-section > p { font-size: 12px; line-height: 1.8; }
  .competition-section { min-height: 0; }

  .research-section, .about-section {
    min-height: 0;
    padding: 54px 18px;
    grid-template-columns: 1fr;
    gap: 14px;
    border-radius: 16px;
  }
  .research-copy, .about-copy { grid-column: 1; padding-top: 5px; font-size: 12px; line-height: 1.85; }
  .principle-list { margin-top: 22px; padding-top: 16px; }
  .principle-list span { font-size: 11px; }
  .article-list { gap: 12px; margin-top: 34px; }
  .article-card { min-height: 220px; padding: 19px; }
  .article-card h3 { margin-top: 25px; font-size: 20px; }
  .article-excerpt { font-size: 12px; }
  .contact-list div { grid-template-columns: 66px minmax(0, 1fr); gap: 8px; }
  .site-footer { min-height: 112px; }

  .has-competition-stack .competition-copy { top: 70px; left: 18px; max-width: 200px; }
  .has-competition-stack .competition-copy h2 { font-size: 30px; }
  .has-competition-stack .competition-card.competition-stack { width: calc(100% - 18px); min-height: 620px; }
  .has-competition-stack .competition-float-card { top: calc(50% + 34px); min-height: 500px; border-radius: 16px; }
  .has-competition-stack .competition-card-image, .has-competition-stack .competition-image-placeholder { min-height: 205px; }
  .has-competition-stack .competition-card-copy { min-height: 295px; padding: 24px; }
  .has-competition-stack .competition-card-copy h3 { font-size: 28px; }
}

@media (max-width: 380px) {
  .site-header, main, .site-footer { width: calc(100% - 14px); }
  .site-header { padding: 0 5px; gap: 5px; }
  .site-header .brand { font-size: 12px; }
  .profile-nav { gap: 7px; }
  .profile-nav a { font-size: 9px; }
  .admin-trigger { padding: 6px 6px; font-size: 8px; }
  .hero { padding-right: 10px; padding-left: 10px; }
  .archive-visual { height: 360px; }
  .archive-card { width: calc(100% - 18px); right: 9px; }
}
