*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #0b1d35;
  --navy-mid:   #14304f;
  --blue:       #2a6496;
  --blue-l:     #4a8bb5;
  --blue-pale:  #daeaf5;
  --blue-ghost: #edf5fb;
  --gd:         #3d4f5e;
  --gm:         #7a8e9e;
  --gl:         #b8c8d4;
  --gg:         #e8eef3;
  --white:      #ffffff;
  --paper:      #f4f7fa;
  --line:       rgba(42,100,150,0.13);
  --serif: Georgia, 'Times New Roman', serif;
  --mono:  'Courier New', Courier, monospace;
  --sans:  -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--paper); color: var(--navy); line-height: 1.7; overflow-x: hidden; }

/* ── NAV ── */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 1rem 2rem; display: flex; justify-content: space-between; align-items: center; transition: background .3s, box-shadow .3s; }
.nav.on { background: rgba(11,29,53,.97); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.nav-logo { font-family: var(--serif); font-size: 1rem; color: rgba(255,255,255,.85); text-decoration: none; }
.nav ul { display: flex; gap: 1.8rem; list-style: none; }
.nav ul a { font-family: var(--mono); font-size: .63rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.38); text-decoration: none; transition: color .2s; }
.nav ul a:hover { color: rgba(255,255,255,.9); }

/* ── HERO ── */
.hero { position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; background: var(--navy); overflow: hidden; padding: 7rem 2rem 6rem; }
.hero-bg { position: absolute; inset: 0; background: radial-gradient(ellipse 70% 80% at 68% 45%, rgba(30,66,104,.75) 0%, transparent 65%), radial-gradient(ellipse 45% 55% at 12% 22%, rgba(42,100,150,.3) 0%, transparent 55%); }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px); background-size: 55px 55px; }
.hero-topo { position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='700'%3E%3Cg fill='none' stroke='rgba(74,139,181,0.09)' stroke-width='1'%3E%3Cellipse cx='630' cy='340' rx='85' ry='52'/%3E%3Cellipse cx='630' cy='340' rx='150' ry='93'/%3E%3Cellipse cx='630' cy='340' rx='220' ry='138'/%3E%3Cellipse cx='630' cy='340' rx='298' ry='186'/%3E%3Cellipse cx='630' cy='340' rx='382' ry='240'/%3E%3Cellipse cx='630' cy='340' rx='468' ry='294'/%3E%3Cellipse cx='630' cy='340' rx='558' ry='352'/%3E%3C/g%3E%3C/svg%3E"); background-size: cover; background-position: right center; }
.hero-in { position: relative; max-width: 1080px; margin: 0 auto; width: 100%; }

.h-label { font-family: var(--mono); font-size: .67rem; letter-spacing: .2em; text-transform: uppercase; color: var(--blue-l); margin-bottom: 1.8rem; opacity: 0; animation: fu .7s .1s forwards; }
.h-name { font-family: var(--serif); font-weight: normal; font-size: clamp(2.8rem, 7vw, 5.8rem); line-height: 1.02; color: #fff; letter-spacing: -.01em; opacity: 0; animation: fu .8s .25s forwards; }
.h-name em { font-style: italic; color: rgba(255,255,255,.38); }
.h-rule { width: 44px; height: 1px; background: var(--blue-l); margin: 2.2rem 0; opacity: 0; animation: fu .7s .4s forwards; }
.h-role-main { font-size: 1.7rem; }
.h-role { font-size: 1.1rem; color: rgba(255,255,255,.57); line-height: 1.95; opacity: 0; animation: fu .7s .5s forwards; }
.h-role strong { color: rgba(255,255,255,.92); font-weight: 600; }

.h-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2.2rem; opacity: 0; animation: fu .7s .65s forwards; }
.h-tag { font-family: var(--mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; padding: .34rem .8rem; border: 1px solid rgba(74,139,181,.28); border-radius: 2px; color: rgba(255,255,255,.37); background: rgba(42,100,150,.07); transition: all .2s; }
.h-tag:hover { border-color: var(--blue-l); color: var(--blue-l); }

.h-links { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 2.7rem; opacity: 0; animation: fu .7s .8s forwards; }
.h-link { font-size: .75rem; font-weight: 600; letter-spacing: .04em; padding: .5rem 1.2rem; border-radius: 2px; text-decoration: none; transition: all .2s; }
.h-link.p { background: var(--blue); color: #fff; border: 1px solid var(--blue); }
.h-link.p:hover { background: var(--blue-l); border-color: var(--blue-l); }
.h-link.g { background: transparent; color: rgba(255,255,255,.52); border: 1px solid rgba(255,255,255,.14); }
.h-link.g:hover { color: #fff; border-color: rgba(255,255,255,.44); }

.h-scroll { position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: .5rem; opacity: 0; animation: fi 1s 1.5s forwards; cursor: pointer; }
.h-scroll span { font-family: var(--mono); font-size: .59rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.22); }
.scl { width: 1px; height: 36px; background: linear-gradient(to bottom, rgba(74,139,181,.5), transparent); animation: pulse 2s ease-in-out infinite; }

/* ── SECTIONS ── */
.sec { padding: 6rem 2rem; }
.sec-in { max-width: 1080px; margin: 0 auto; }
.sec-lbl { font-family: var(--mono); font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; color: var(--blue); margin-bottom: .6rem; }
.sec-ttl { font-family: var(--serif); font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: normal; line-height: 1.2; color: var(--navy); margin-bottom: 3rem; }

/* ── ABOUT ── */
.about-grid { display: grid; grid-template-columns: 200px 1fr; gap: 4rem; align-items: start; }
.about-side { position: sticky; top: 7rem; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.portrait-circle { width: 180px; height: 180px; border-radius: 50%; overflow: hidden; border: 3px solid rgba(42,100,150,0.2); box-shadow: 0 8px 28px rgba(11,29,53,0.16); flex-shrink: 0; }
.portrait-circle img { width: 100%; height: 100%; object-fit: cover; object-position: center top; filter: grayscale(15%); transition: filter .4s; }
.portrait-circle:hover img { filter: grayscale(0%); }
.about-txt p { font-size: .96rem; color: var(--gd); margin-bottom: 1.4rem; line-height: 1.9; }
.about-txt p:first-of-type { font-family: var(--serif); font-size: 1.18rem; color: var(--navy); line-height: 1.75; }

/* ── DEGREES ── */
.sec-dark { background: var(--navy); }
.sec-dark .sec-lbl { color: var(--blue-l); }
.sec-dark .sec-ttl { color: #fff; }
.deg-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; border: 1px solid rgba(255,255,255,.06); border-radius: 3px; overflow: hidden; background: rgba(255,255,255,.04); }
.deg-card { padding: 2.2rem; background: rgba(255,255,255,.025); border-right: 1px solid rgba(255,255,255,.05); transition: background .25s; }
.deg-card:last-child { border-right: none; }
.deg-card:hover { background: rgba(255,255,255,.07); }
.deg-yr { font-family: var(--serif); font-size: 2.4rem; font-weight: normal; color: var(--blue-l); opacity: .7; line-height: 1; margin-bottom: .8rem; }
.deg-ttl { font-size: .87rem; font-weight: 600; color: rgba(255,255,255,.88); margin-bottom: .4rem; line-height: 1.45; }
.deg-sub { font-family: var(--mono); font-size: .7rem; color: rgba(255,255,255,.32); letter-spacing: .03em; line-height: 1.6; }

/* ── CAREER ── */
.career-list { border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.career-row { display: grid; grid-template-columns: 130px 1fr; gap: 1.8rem; align-items: center; padding: 1.4rem 1.8rem; background: #fff; border-bottom: 1px solid var(--line); transition: background .18s; }
.career-row:last-child { border-bottom: none; }
.career-row:hover { background: var(--blue-ghost); }
.career-period { font-family: var(--mono); font-size: .68rem; color: var(--gm); letter-spacing: .05em; line-height: 1.5; }
.career-role { font-weight: 600; font-size: .9rem; color: var(--navy); line-height: 1.4; margin-bottom: .2rem; }
.career-inst { font-size: .8rem; color: var(--gm); font-style: italic; }
.career-badge { display: inline-block; margin-top: .35rem; font-family: var(--mono); font-size: .59rem; text-transform: uppercase; letter-spacing: .1em; background: var(--blue-pale); color: var(--blue); padding: .15rem .44rem; border-radius: 2px; }

/* ── PROJECTS ── */
.sec-wh { background: #fff; }
.proj-list { border: 1px solid rgba(255,255,255,.07); border-radius: 3px; overflow: hidden; }
.proj-row { display: grid; grid-template-columns: 110px 1fr 22px; gap: 1.8rem; align-items: center; padding: 1.6rem 1.8rem; background: rgba(255,255,255,.025); border-bottom: 1px solid rgba(255,255,255,.07); transition: background .18s; }
.proj-row:last-child { border-bottom: none; }
.proj-row:hover { background: rgba(255,255,255,.07); }
.proj-per { font-family: var(--mono); font-size: .67rem; color: rgba(255,255,255,.32); letter-spacing: .05em; line-height: 1.5; }
.proj-bdg { display: inline-block; margin-top: .3rem; font-family: var(--mono); font-size: .59rem; text-transform: uppercase; letter-spacing: .1em; background: rgba(42,100,150,.4); color: var(--blue-l); border: 1px solid rgba(74,139,181,.25); padding: .15rem .44rem; border-radius: 2px; }
.proj-bdg.r { background: rgba(255,255,255,.06); color: rgba(255,255,255,.45); border: 1px solid rgba(255,255,255,.12); }
.proj-ttl { font-weight: 600; font-size: .9rem; color: rgba(255,255,255,.88); line-height: 1.45; margin-bottom: .25rem; transition: color .2s; }
.proj-fn { font-size: .76rem; color: rgba(255,255,255,.35); font-style: italic; }
.proj-arr { color: rgba(255,255,255,.2); font-size: 1rem; opacity: .4; transition: all .18s; justify-self: end; }
.proj-row:hover .proj-arr { opacity: 1; transform: translateX(3px); color: var(--blue-l); }

/* ── PUBLICATIONS ── */
.pub { display: grid; grid-template-columns: 40px 1fr; gap: 1.4rem; align-items: start; padding: 1.8rem 0; border-bottom: 1px solid rgba(255,255,255,.07); text-decoration: none; color: inherit; transition: padding-left .2s; }
.pub:first-child { border-top: 1px solid rgba(255,255,255,.07); }
.pub:hover { padding-left: .4rem; }
.pub-n { font-family: var(--serif); font-size: 1.3rem; color: rgba(255,255,255,.18); line-height: 1.2; padding-top: .1rem; }
.pub-t { font-weight: 600; font-size: .9rem; color: rgba(255,255,255,.88); line-height: 1.5; margin-bottom: .33rem; transition: color .2s; }
.pub:hover .pub-t { color: var(--blue-l); }
.pub-m { font-size: .77rem; color: rgba(255,255,255,.35); font-style: normal; line-height: 1.65; }
.pub-m br + * { font-style: normal; }
.pub-y { display: inline-block; font-style: normal; font-family: var(--mono); font-size: .61rem; letter-spacing: .08em; background: rgba(42,100,150,.4); color: var(--blue-l); border: 1px solid rgba(74,139,181,.25); padding: .09rem .42rem; border-radius: 2px; margin-left: .35rem; vertical-align: middle; }

/* ── CONTACT ── */
.sec-contact { background: var(--navy-mid); }
.sec-contact .sec-lbl { color: var(--blue-l); }
.con-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4.5rem; align-items: center; }
.con-ttl { font-family: var(--serif); font-size: clamp(1.7rem, 3.3vw, 2.5rem); font-weight: normal; line-height: 1.3; color: #fff; }
.con-ttl em { font-style: italic; color: var(--blue-l); }
.con-intro { font-size: .86rem; color: rgba(255,255,255,.38); margin-top: 1.1rem; line-height: 1.85; }
.con-items { display: flex; flex-direction: column; gap: 1.5rem; }
.con-item { display: flex; gap: .9rem; align-items: flex-start; }
.c-ico { width: 32px; height: 32px; flex-shrink: 0; background: rgba(42,100,150,.28); border: 1px solid rgba(74,139,181,.18); border-radius: 2px; display: flex; align-items: center; justify-content: center; }
.c-ico svg { width: 14px; height: 14px; stroke: var(--blue-l); fill: none; stroke-width: 1.5; }
.c-lbl { font-family: var(--mono); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.26); margin-bottom: .2rem; }
.c-val { font-size: .83rem; color: rgba(255,255,255,.66); line-height: 1.7; }
.c-val a { color: var(--blue-l); text-decoration: none; }
.c-val a:hover { color: #fff; }

/* ── FOOTER ── */
footer { background: var(--navy); border-top: 1px solid rgba(255,255,255,.05); padding: 1.8rem; text-align: center; }
footer p { font-family: var(--mono); font-size: .61rem; letter-spacing: .1em; color: rgba(255,255,255,.2); }

/* ── ANIMATIONS ── */
@keyframes fu { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fi { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.rv { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.rv.on { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-side { position: static; flex-direction: row; justify-content: flex-start; }
  .deg-grid { grid-template-columns: 1fr; }
  .proj-row { grid-template-columns: 1fr; gap: .4rem; }
  .proj-arr { display: none; }
  .con-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .nav ul { display: none; }
  .career-row { grid-template-columns: 1fr; gap: .3rem; }
}
