/* ==========================================================================
   seljuk.net — Dr. Selçuk Özçelik
   Art direction: "vişne çürüğü" (sour-cherry / burgundy) on pure white.
   ========================================================================== */
:root {
  --wine: #5E1224;
  --wine-deep: #3A0A16;
  --wine-2: #7C1B36;
  --wine-3: #A3284C;
  --wine-soft: #F7EEF1;
  --rose: #E9C9D1;
  --gold: #C8A567;
  --ink: #17121A;
  --muted: #6E6069;
  --line: #EAE0E3;
  --white: #FFFFFF;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --nav-h: 76px;
  --radius: 22px;
  --shadow: 0 30px 80px -30px rgba(58, 10, 22, .45);
}
html.lang-ja { --sans: 'Noto Sans JP', 'Manrope', system-ui, sans-serif; --serif: 'Noto Serif JP', 'Cormorant Garamond', serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.65; font-weight: 400;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.05; margin: 0; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--wine); color: #fff; }
.container { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.hp { position: absolute; left: -9999px; }

/* ---------- Grain / cursor / progress ---------- */
.grain { position: fixed; inset: 0; pointer-events: none; z-index: 9000; opacity: .07; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); background-size: 160px 160px; mix-blend-mode: multiply; transform: translateZ(0); }
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--wine), var(--wine-3), var(--gold)); z-index: 9500; transition: width .1s linear; }
.cursor, .cursor-dot { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9400; border-radius: 50%; transform: translate(-50%, -50%); will-change: transform; }
.cursor { width: 44px; height: 44px; border: 1.5px solid var(--wine); opacity: .55; transition: width .25s var(--ease), height .25s var(--ease), opacity .25s, background .25s; }
.cursor-dot { width: 6px; height: 6px; background: var(--wine); }
body.cursor-hover .cursor { width: 72px; height: 72px; background: rgba(94, 18, 36, .10); opacity: 1; }
@media (hover: none), (max-width: 900px) { .cursor, .cursor-dot { display: none; } }

/* ---------- Preloader ---------- */
.preloader { position: fixed; inset: 0; background: var(--wine); z-index: 10000; display: grid; place-items: center; gap: 22px; grid-auto-rows: max-content; align-content: center; transition: transform 1s var(--ease-out), opacity .6s; }
.preloader.done { transform: translateY(-100%); opacity: 0; pointer-events: none; }
.preloader__mark { font-family: var(--serif); font-style: italic; font-size: clamp(64px, 12vw, 140px); color: #fff; line-height: 1; overflow: hidden; }
.preloader__letter { display: inline-block; animation: rise 1s var(--ease-out) both; }
.preloader__letter:nth-child(2) { animation-delay: .1s; color: var(--rose); }
.preloader__bar { width: 160px; height: 1px; background: rgba(255,255,255,.25); overflow: hidden; }
.preloader__bar i { display: block; height: 100%; width: 100%; background: #fff; transform-origin: left; animation: bar 1.4s var(--ease) both; }
@keyframes rise { from { transform: translateY(110%); } to { transform: translateY(0); } }
@keyframes bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- Nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 800; height: var(--nav-h); transition: background .4s, box-shadow .4s, height .4s, color .3s; color: #fff; }
.nav.solid { background: rgba(255,255,255,.82); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); color: var(--ink); box-shadow: 0 1px 0 var(--line); height: 64px; }
.nav.solid.on-dark { background: rgba(58,10,22,.72); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.08); }
.nav__inner { width: min(1380px, calc(100% - 40px)); margin: 0 auto; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__brand { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.nav__mono { font-family: var(--serif); font-style: italic; font-size: 22px; font-weight: 600; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: var(--wine); transition: background .3s, color .3s; }
.nav.solid:not(.on-dark) .nav__mono { background: var(--wine); color: #fff; }
.nav__logo { width: 40px; height: 40px; border-radius: 12px; box-shadow: 0 6px 16px -8px rgba(0,0,0,.5); }
.nav__logo--dark { display: none; }
.nav.solid:not(.on-dark) .nav__logo--dark { display: block; }
.nav.solid:not(.on-dark) .nav__logo--light { display: none; }
.nav.menu-open .nav__logo--dark { display: none !important; } .nav.menu-open .nav__logo--light { display: block !important; }
.nav__name { font-family: var(--serif); font-size: 20px; font-weight: 600; white-space: nowrap; }
.nav__links { display: flex; gap: 4px; }
.nav__links a { padding: 8px 10px; border-radius: 999px; font-size: 13.5px; font-weight: 500; opacity: .8; transition: opacity .2s, background .2s; position: relative; }
.nav__links a:hover, .nav__links a.active { opacity: 1; background: rgba(127,127,127,.12); }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav__cv { white-space: nowrap; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: currentColor; transition: transform .3s, top .3s; top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

.lang { position: relative; }
.lang__btn { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; border: 1px solid rgba(127,127,127,.35); background: transparent; color: inherit; font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.lang__flag { display: none; }
.lang__menu li > span { display: inline-grid; place-items: center; width: 28px; height: 20px; border-radius: 5px; background: var(--wine-soft); color: var(--wine); font-size: 10px; font-weight: 800; letter-spacing: .06em; }
.lang__menu { position: absolute; right: 0; top: calc(100% + 10px); list-style: none; margin: 0; padding: 6px; background: #fff; color: var(--ink); border-radius: 16px; box-shadow: 0 20px 50px -20px rgba(0,0,0,.35), 0 0 0 1px var(--line); min-width: 170px; opacity: 0; transform: translateY(-6px) scale(.98); pointer-events: none; transition: .25s var(--ease); }
.lang.open .lang__menu { opacity: 1; transform: none; pointer-events: auto; }
.lang__menu li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; font-size: 14px; cursor: pointer; }
.lang__menu li:hover { background: var(--wine-soft); }
.lang__menu li[aria-selected="true"] { color: var(--wine); font-weight: 700; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 15px; border: 1.5px solid transparent; transition: transform .3s var(--ease), background .3s, color .3s, border-color .3s, box-shadow .3s; will-change: transform; }
.btn--sm { padding: 9px 16px; font-size: 13px; }
.btn--light { background: #fff; color: var(--wine); box-shadow: 0 10px 30px -10px rgba(0,0,0,.4); }
.btn--light:hover { background: var(--rose); }
.btn--ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn--wine { background: var(--wine); color: #fff; box-shadow: 0 16px 34px -14px rgba(94,18,36,.6); }
.btn--wine:hover { background: var(--wine-2); }
.btn--outline { border-color: currentColor; }
.btn--outline:hover { background: currentColor; }
.btn--outline:hover { color: #fff; }
.nav.solid:not(.on-dark) .btn--outline:hover { color: #fff; background: var(--wine); border-color: var(--wine); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; background: var(--wine); color: #fff; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--nav-h) + 40px) 0 0; isolation: isolate; }
.hero__mesh { position: absolute; inset: -10%; z-index: -2; opacity: .9; contain: strict; pointer-events: none; }
.hero__mesh i { position: absolute; border-radius: 50%; mix-blend-mode: screen; animation: drift 18s ease-in-out infinite alternate; will-change: transform; filter: blur(40px); transform: translateZ(0); }
.hero__mesh .b1 { width: 55vw; height: 55vw; left: -10%; top: -20%; background: radial-gradient(circle, #9C2A4E 0%, rgba(156,42,78,0) 65%); }
.hero__mesh .b2 { width: 50vw; height: 50vw; right: -12%; top: 10%; background: radial-gradient(circle, #C8A567 0%, rgba(200,165,103,0) 62%); opacity: .55; animation-duration: 24s; animation-delay: -6s; }
.hero__mesh .b3 { width: 45vw; height: 45vw; left: 30%; bottom: -30%; background: radial-gradient(circle, #2B0510 0%, rgba(43,5,16,0) 65%); mix-blend-mode: multiply; animation-duration: 21s; animation-delay: -12s; }
@keyframes drift { from { transform: translate(0,0) scale(1); } to { transform: translate(6vw, -5vh) scale(1.15); } }
.hero__rings { position: absolute; inset: 0; z-index: -1; opacity: .7; background:
  radial-gradient(circle at 78% 42%, transparent 0 22vw, rgba(255,255,255,.05) calc(22vw + 1px) calc(22vw + 2px), transparent calc(22vw + 3px)),
  radial-gradient(circle at 78% 42%, transparent 0 30vw, rgba(255,255,255,.045) calc(30vw + 1px) calc(30vw + 2px), transparent calc(30vw + 3px)),
  radial-gradient(circle at 78% 42%, transparent 0 40vw, rgba(255,255,255,.035) calc(40vw + 1px) calc(40vw + 2px), transparent calc(40vw + 3px));
}
.hero__inner { width: min(1380px, calc(100% - 40px)); margin: 0 auto; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 40px; flex: 1; }
.eyebrow { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; font-weight: 700; opacity: .75; margin-bottom: 26px; }
.hero__name { font-size: clamp(64px, 9.5vw, 156px); line-height: .92; font-weight: 500; letter-spacing: -.03em; }
.hero__name .line { display: block; overflow: hidden; padding: .04em .06em .16em 0; margin-bottom: -.12em; }
.hero__name .word { display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--ease-out); }
.hero__name .word.em { font-style: italic; font-weight: 400; color: var(--rose); }
body.ready .hero__name .word { transform: translateY(0); }
body.ready .hero__name .line:nth-child(2) .word { transition-delay: .1s; }
body.ready .hero__name .line:nth-child(3) .word { transition-delay: .2s; }
.hero__title { font-size: clamp(18px, 1.5vw, 22px); max-width: 560px; margin: 28px 0 32px; opacity: .92; font-weight: 300; line-height: 1.55; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__loc { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; font-size: 14px; opacity: .8; }
.hero__visual { display: flex; justify-content: center; }
.portrait { position: relative; width: min(440px, 80vw); aspect-ratio: 1; border-radius: 34px; transform-style: preserve-3d; }
.portrait img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; filter: grayscale(1) contrast(1.1) brightness(1.02); mix-blend-mode: luminosity; opacity: .96; position: relative; z-index: 2;
  box-shadow: 0 2px 0 rgba(255,255,255,.18) inset, 0 34px 70px -18px rgba(0,0,0,.85), 0 90px 140px -40px rgba(0,0,0,.75); transform: translateZ(30px); }
/* burgundy plate behind the photo */
.portrait::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(135deg, var(--wine-3), var(--wine-deep)); z-index: 1; }
/* offset dark plate + thin gold frame give depth without a ring */
.portrait::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(160deg, #2A0510, #4A0C1C); transform: translate(26px, 26px); z-index: 0; box-shadow: 0 50px 90px -20px rgba(0,0,0,.85), 0 20px 40px -10px rgba(0,0,0,.6); }
.portrait__frame { position: absolute; inset: -14px; border-radius: 42px; border: 1px solid rgba(200,165,103,.55); transform: translate(-10px, -10px); z-index: 0; pointer-events: none; }
.portrait__frame::after { content: ''; position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); top: -5px; right: 40px; box-shadow: 0 0 18px var(--gold); }
.portrait__badge { position: absolute; right: -18px; bottom: 26px; background: #fff; color: var(--wine); border-radius: 18px; padding: 12px 18px; display: grid; line-height: 1.05; transform: translateZ(60px); box-shadow: 0 24px 44px -16px rgba(0,0,0,.6); z-index: 3; }
.portrait__badge span { font-family: var(--serif); font-size: 30px; font-weight: 700; }
.portrait__badge small { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
.hero__stats { width: min(1380px, calc(100% - 40px)); margin: 50px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.15); }
.stat { padding: 26px 18px 26px 0; border-right: 1px solid rgba(255,255,255,.12); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-family: var(--serif); font-size: clamp(36px, 4vw, 56px); font-weight: 500; line-height: 1; }
.stat span { font-size: 13px; opacity: .75; }
.marquee { overflow: hidden; border-top: 1px solid rgba(255,255,255,.12); padding: 14px 0; margin-top: 14px; font-family: var(--serif); font-style: italic; font-size: 22px; white-space: nowrap; opacity: .85; }
.marquee__track { display: inline-flex; gap: 48px; animation: marquee 40s linear infinite; padding-right: 48px; }
.marquee__track span::before { content: '✦'; margin-right: 48px; font-size: 12px; vertical-align: middle; color: var(--gold); }
@keyframes marquee { to { transform: translateX(-50%); } }
.hero__scroll { position: absolute; right: 30px; bottom: 120px; display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; opacity: .7; writing-mode: vertical-rl; }
.hero__scroll i { width: 1px; height: 60px; background: linear-gradient(#fff, transparent); animation: scrollLine 2s ease-in-out infinite; }
@keyframes scrollLine { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 10vw, 140px) 0; position: relative; }
.section--wine { background: var(--wine); color: #fff; }
.section--dark { background: var(--wine-deep); color: #fff; }
.section--tint { background: var(--wine-soft); }
.section__head { display: flex; align-items: baseline; gap: 22px; margin-bottom: 40px; }
.section__head h2 { font-size: clamp(40px, 5.2vw, 72px); font-weight: 500; letter-spacing: -.02em; }
.section__head--sub { margin-top: 80px; }
.section__head--sub h2 { font-size: clamp(30px, 3.4vw, 46px); }
.section__num { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--wine-3); }
.section--wine .section__num, .section--dark .section__num { color: var(--gold); }
.section__intro { font-size: clamp(18px, 1.6vw, 22px); max-width: 640px; margin: -14px 0 44px; font-weight: 300; }
.lead { font-family: var(--serif); font-size: clamp(24px, 2.4vw, 34px); line-height: 1.3; font-weight: 500; color: var(--wine); margin-bottom: 28px; }
.note { font-size: 14px; opacity: .8; margin-top: 18px; }

/* reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.stagger > * { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.stagger.in > * { opacity: 1; transform: none; }
.stagger.in > *:nth-child(2) { transition-delay: .08s; } .stagger.in > *:nth-child(3) { transition-delay: .16s; } .stagger.in > *:nth-child(4) { transition-delay: .24s; } .stagger.in > *:nth-child(5) { transition-delay: .32s; } .stagger.in > *:nth-child(6) { transition-delay: .4s; } .stagger.in > *:nth-child(n+7) { transition-delay: .48s; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1.3fr .7fr; gap: 60px; align-items: start; }
.about__text p:not(.lead) { font-size: 17px; color: #2B2229; }
.about__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 600; transition: .25s; }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--wine); }
.pill:hover { background: var(--wine); color: #fff; border-color: var(--wine); }
.pill:hover .dot { background: var(--gold); }
.about__facts { background: var(--wine-soft); border-radius: var(--radius); padding: 30px; position: sticky; top: 100px; }
.about__facts dl { margin: 0; display: grid; gap: 14px; }
.about__facts dt { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--wine); font-weight: 700; }
.about__facts dd { margin: 2px 0 0; font-size: 15px; }
.about__docs { margin-top: 24px; display: grid; gap: 10px; }
.doc { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #fff; border-radius: 14px; font-size: 14px; font-weight: 600; color: var(--wine); transition: .25s; box-shadow: 0 1px 0 var(--line); }
.doc:hover { transform: translateX(4px); box-shadow: 0 10px 30px -14px rgba(94,18,36,.5); }

/* ---------- Grids / cards ---------- */
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.card { position: relative; border-radius: var(--radius); padding: 30px; background: #fff; color: var(--ink); overflow: hidden; transform-style: preserve-3d; transition: transform .5s var(--ease), box-shadow .5s; box-shadow: 0 1px 0 var(--line); min-height: 220px; }
.card::after { content: ''; position: absolute; inset: 0; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.35), transparent 40%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.card:hover::after { opacity: 1; }
.card:hover { box-shadow: var(--shadow); }
.section--wine .card { background: rgba(255,255,255,.06); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); backdrop-filter: blur(6px); }
.section--wine .card::after { background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.14), transparent 40%); }
.card__idx { font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--gold); margin-bottom: 30px; display: block; }
.card h3 { font-size: 26px; margin-bottom: 12px; font-weight: 600; }
.card p { font-size: 15px; opacity: .85; margin: 0; }
.card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.card .tags span { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; padding: 5px 9px; border-radius: 6px; background: var(--wine-soft); color: var(--wine); }
.card__icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--wine-soft); color: var(--wine); margin-bottom: 22px; }

/* ---------- Timeline (education) ---------- */
.edu { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: start; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 34px; position: relative; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(var(--wine) var(--tl, 0%), var(--line) 0); transition: --tl 1.5s; }
.timeline li { position: relative; padding: 0 0 34px; }
.timeline li::before { content: ''; position: absolute; left: -30px; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: #fff; border: 2px solid var(--wine); box-shadow: 0 0 0 4px #fff; }
.timeline li:first-child::before { background: var(--wine); box-shadow: 0 0 0 4px #fff, 0 0 0 8px var(--rose); }
.timeline .years { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--wine-3); font-weight: 700; }
.timeline h3 { font-size: 28px; margin: 6px 0 2px; }
.timeline .inst { font-size: 15px; color: var(--muted); }
.timeline .extra { display: inline-block; margin-top: 8px; font-size: 12px; padding: 4px 10px; border-radius: 999px; background: var(--wine-soft); color: var(--wine); font-weight: 600; }
.thesis { background: var(--wine); color: #fff; border-radius: var(--radius); padding: 40px; position: sticky; top: 100px; overflow: hidden; }
.thesis::before { content: '“'; position: absolute; right: 20px; top: -30px; font-family: var(--serif); font-size: 220px; line-height: 1; opacity: .12; }
.thesis__label { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.thesis h3 { font-size: clamp(24px, 2.2vw, 30px); margin: 14px 0 12px; font-weight: 500; line-height: 1.2; }
.thesis__en { font-style: italic; opacity: .75; font-size: 15px; font-family: var(--serif); font-size: 18px; }
.thesis__meta { font-size: 13px; opacity: .8; margin: 0; }

/* ---------- Experience ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.filters button { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 13px; font-weight: 600; transition: .25s; }
.filters button.active, .filters button:hover { background: var(--wine); color: #fff; border-color: var(--wine); }
.exp { display: grid; gap: 14px; }
.job { display: grid; grid-template-columns: 200px 1fr auto; gap: 30px; padding: 28px 30px; background: #fff; border-radius: 18px; transition: transform .4s var(--ease), box-shadow .4s, opacity .3s; align-items: start; }
.job:hover { transform: translateX(6px); box-shadow: var(--shadow); }
.job.hide { display: none; }
.job__period { font-size: 13px; color: var(--muted); font-weight: 600; }
.job__period b { display: block; color: var(--wine); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; margin-top: 6px; }
.job h3 { font-size: 24px; margin-bottom: 4px; }
.job__org { font-size: 15px; color: var(--muted); margin-bottom: 12px; }
.job ul { margin: 0; padding-left: 18px; font-size: 14.5px; color: #2B2229; }
.job ul li { margin: 3px 0; }
.job__kind { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; padding: 6px 10px; border-radius: 8px; background: var(--wine-soft); color: var(--wine); white-space: nowrap; }
.job__kind.academic { background: #F1E7D2; color: #7A5A1E; }
.job__kind.industry { background: #E8EEF6; color: #2B4C7E; }

/* ---------- Publications ---------- */
.pubs { display: grid; gap: 0; border-top: 1px solid var(--line); }
.pub { display: grid; grid-template-columns: 110px 1fr auto; gap: 30px; padding: 34px 0; border-bottom: 1px solid var(--line); align-items: start; transition: background .3s; }
.pub:hover { background: linear-gradient(90deg, var(--wine-soft), transparent 60%); }
.pub__year { font-family: var(--serif); font-size: 44px; font-weight: 500; line-height: 1; color: var(--wine); }
.pub__year small { display: block; font-family: var(--sans); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.pub h3 { font-size: 26px; font-weight: 600; line-height: 1.2; margin-bottom: 8px; }
.pub__authors { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.pub__venue { font-size: 15px; color: var(--muted); font-style: italic; margin-bottom: 8px; }
.pub__tag { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--wine-3); font-weight: 700; }
.pub__actions { display: flex; flex-direction: column; gap: 8px; }
.pub__actions .btn { white-space: nowrap; }
.pub__actions .btn--outline { color: var(--wine); }
.pub__actions .btn--outline:hover { background: var(--wine); border-color: var(--wine); }
.pubs__profiles { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }

/* ---------- Courses ---------- */
.table-wrap { overflow-x: auto; border-radius: 18px; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.courses { width: 100%; border-collapse: collapse; min-width: 720px; }
.courses th, .courses td { padding: 16px 20px; text-align: left; font-size: 14.5px; border-bottom: 1px solid rgba(255,255,255,.1); }
.courses th { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.courses tr:last-child td { border-bottom: 0; }
.courses tbody tr { transition: background .25s; }
.courses tbody tr:hover { background: rgba(255,255,255,.06); }
.courses td.code { font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; font-size: 12.5px; opacity: .85; }
.courses td.name { font-family: var(--serif); font-size: 20px; font-weight: 600; }

/* ---------- Skills ---------- */
.skills__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 50px; }
.skills__list { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.skills__list div { display: grid; grid-template-columns: 180px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.skills__list dt { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--wine); font-weight: 700; padding-top: 2px; }
.skills__list dd { margin: 0; font-size: 15.5px; }
.langs h3 { font-size: 28px; margin-bottom: 20px; }
.langs ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.langs li { display: grid; gap: 6px; }
.langs .row { display: flex; justify-content: space-between; font-size: 14px; }
.langs .row b { font-weight: 700; }
.langs .row span { color: var(--muted); font-size: 13px; }
.langs .bar { height: 6px; background: var(--wine-soft); border-radius: 999px; overflow: hidden; }
.langs .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--wine), var(--wine-3)); border-radius: inherit; transition: width 1.4s var(--ease-out); }
.in .langs .bar i, .langs.in .bar i { width: var(--w); }

/* ---------- Instagram ---------- */
.ig { background: rgba(255,255,255,.04); border-radius: 28px; padding: 34px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.ig__head { display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: center; margin-bottom: 30px; }
.ig__avatar { width: 96px; height: 96px; border-radius: 50%; padding: 4px; background: conic-gradient(from 210deg, #f9ce34, #ee2a7b, #6228d7, #f9ce34); display: block; }
.ig__avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid var(--wine-deep); }
.ig__handle { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.ig__handle strong { font-family: var(--serif); font-size: 28px; font-weight: 600; }
.ig__handle a { font-size: 14px; opacity: .7; }
.ig__stats { list-style: none; margin: 8px 0; padding: 0; display: flex; gap: 26px; }
.ig__stats b { font-size: 20px; font-weight: 800; }
.ig__stats span { font-size: 13px; opacity: .7; margin-left: 6px; }
.ig__bio { font-size: 14px; opacity: .85; white-space: pre-line; margin: 0; max-width: 560px; }
.ig__stories { display: flex; gap: 18px; overflow-x: auto; padding: 6px 2px 20px; scrollbar-width: none; }
.ig__stories::-webkit-scrollbar { display: none; }
.story { flex: 0 0 auto; width: 84px; text-align: center; font-size: 11px; opacity: .9; }
.story__ring { width: 76px; height: 76px; margin: 0 auto 8px; border-radius: 50%; padding: 3px; background: conic-gradient(from 210deg, #f9ce34, #ee2a7b, #6228d7, #f9ce34); cursor: pointer; transition: transform .3s var(--ease); }
.story__ring:hover { transform: scale(1.06); }
.story__ring.locked { background: rgba(255,255,255,.18); }
.story__ring img, .story__ring i { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid var(--wine-deep); }
.story__ring i { background: rgba(255,255,255,.08); display: grid; place-items: center; font-style: normal; font-size: 22px; }
.ig__lock { flex: 1; display: flex; align-items: center; gap: 12px; font-size: 13px; opacity: .7; padding-left: 8px; }
.ig__tabs { display: flex; gap: 6px; margin: 6px 0 18px; }
.ig__tabs button { padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); background: transparent; color: #fff; font-size: 13px; font-weight: 600; transition: .25s; }
.ig__tabs button.active, .ig__tabs button:hover { background: #fff; color: var(--wine-deep); border-color: #fff; }
.ig__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.post { position: relative; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: rgba(255,255,255,.06); cursor: pointer; transform: translateY(0); transition: transform .5s var(--ease), box-shadow .5s; }
.post img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out), filter .5s; }
.post:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -20px rgba(0,0,0,.6); }
.post:hover img { transform: scale(1.08); }
.post__type { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; border-radius: 50%; background: rgba(0,0,0,.45); backdrop-filter: blur(6px); display: grid; place-items: center; font-size: 12px; }
.post__overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(58,10,22,.9), transparent 60%); opacity: 0; transition: opacity .4s; padding: 16px; display: flex; flex-direction: column; justify-content: flex-end; font-size: 12px; }
.post:hover .post__overlay { opacity: 1; }
.post__overlay time { font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: 10px; opacity: .8; }
.post__overlay p { margin: 4px 0 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post.wide { grid-column: span 2; grid-row: span 2; }
.ig__status { margin: 18px 0 0; font-size: 12px; opacity: .55; display: flex; gap: 10px; align-items: center; }
.ig__status i { width: 8px; height: 8px; border-radius: 50%; background: #3DDC84; box-shadow: 0 0 10px #3DDC84; }
.ig__status i.seed { background: var(--gold); box-shadow: 0 0 10px var(--gold); }

/* ---------- LinkedIn ---------- */
.li { margin-top: 30px; background: #fff; color: var(--ink); border-radius: 28px; padding: 34px; }
.li__head { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; margin-bottom: 14px; }
.li__logo { width: 52px; height: 52px; border-radius: 12px; background: #0A66C2; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 24px; letter-spacing: -.04em; }
.li__head h3 { font-size: 28px; }
.li__head p { margin: 0; font-size: 14px; color: var(--muted); }
.li__head .btn--ghost { color: var(--ink); border-color: var(--line); }
.li__head .btn--ghost:hover { background: var(--wine-soft); border-color: var(--wine); color: var(--wine); }
.li__headline { font-family: var(--serif); font-size: 22px; color: var(--wine); font-weight: 500; }
.li__stats { list-style: none; padding: 0; margin: 0 0 22px; display: flex; gap: 26px; font-size: 14px; color: var(--muted); }
.li__stats b { color: var(--ink); font-size: 18px; margin-right: 6px; }
.li__posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.lipost { padding: 22px; border-radius: 18px; background: var(--wine-soft); font-size: 14px; display: flex; flex-direction: column; gap: 12px; transition: transform .4s var(--ease); }
.lipost:hover { transform: translateY(-4px); }
.lipost time { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--wine); font-weight: 700; }
.lipost p { margin: 0; flex: 1; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.lipost small { color: var(--muted); font-size: 12px; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact__mail { display: inline-block; font-family: var(--serif); font-size: clamp(30px, 4vw, 54px); color: var(--wine); font-weight: 500; margin: 0 0 30px; position: relative; }
.contact__mail::after { content: ''; position: absolute; left: 0; bottom: 4px; width: 100%; height: 2px; background: var(--wine); transform: scaleX(.2); transform-origin: left; transition: transform .5s var(--ease); }
.contact__mail:hover::after { transform: scaleX(1); }
.contact__list { margin: 0; display: grid; gap: 18px; }
.contact__list dt { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.contact__list dd { margin: 4px 0 0; font-size: 15px; }
.contact__form { background: var(--wine-soft); border-radius: var(--radius); padding: 34px; display: grid; gap: 16px; }
.contact__form label { display: grid; gap: 6px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--wine); }
.contact__form input, .contact__form textarea { font: inherit; font-size: 15px; letter-spacing: 0; text-transform: none; padding: 14px 16px; border-radius: 12px; border: 1px solid transparent; background: #fff; transition: .25s; resize: vertical; }
.contact__form input:focus, .contact__form textarea:focus { outline: none; border-color: var(--wine); box-shadow: 0 0 0 4px rgba(94,18,36,.12); }
.contact__form .btn { justify-self: start; }
.contact__msg { margin: 0; font-size: 14px; min-height: 1.4em; }
.contact__msg.ok { color: #1F7A4D; } .contact__msg.err { color: #A3284C; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #fff; padding: 50px 0; position: relative; }
.footer__inner { display: grid; grid-template-columns: auto 1fr auto; gap: 30px; align-items: center; }
.footer__brand { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 20px; }
.footer__brand img { width: 40px; height: 40px; border-radius: 12px; }
.footer .nav__mono { background: #fff; color: var(--ink); }
.footer__note { font-size: 12.5px; opacity: .6; margin: 0; text-align: center; }
.footer__social { display: flex; gap: 8px; }
.footer__social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.2); font-size: 13px; font-weight: 700; transition: .25s; }
.footer__social a:hover { background: #fff; color: var(--ink); }
.totop { position: fixed; right: 24px; bottom: 24px; width: 46px; height: 46px; border-radius: 50%; background: var(--wine); color: #fff; display: grid; place-items: center; box-shadow: 0 14px 30px -10px rgba(94,18,36,.7); opacity: 0; transform: translateY(20px); transition: .4s var(--ease); z-index: 700; }
.totop.show { opacity: 1; transform: none; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; background: rgba(23,18,26,.92); backdrop-filter: blur(10px); z-index: 9600; display: grid; grid-template-columns: 60px 1fr 60px; align-items: center; opacity: 0; pointer-events: none; transition: opacity .35s; }
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox__fig { margin: 0; display: grid; justify-items: center; gap: 14px; color: #fff; max-height: 92vh; }
.lightbox__media { max-height: 78vh; display: grid; place-items: center; }
.lightbox__media img, .lightbox__media video { max-height: 78vh; max-width: min(90vw, 900px); border-radius: 16px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.8); transform: scale(.96); transition: transform .4s var(--ease-out); }
.lightbox.open .lightbox__media img, .lightbox.open .lightbox__media video { transform: none; }
.lightbox figcaption { font-size: 14px; max-width: 680px; text-align: center; opacity: .85; padding: 0 20px; }
.lightbox figcaption a { color: var(--gold); text-decoration: underline; margin-left: 8px; }
.lightbox__close, .lightbox__nav { background: transparent; border: 0; color: #fff; font-size: 44px; line-height: 1; width: 60px; height: 60px; display: grid; place-items: center; opacity: .7; transition: .2s; }
.lightbox__close { position: absolute; top: 14px; right: 14px; }
.lightbox__close:hover, .lightbox__nav:hover { opacity: 1; transform: scale(1.1); }
.lightbox__nav--prev { justify-self: start; margin-left: 10px; } .lightbox__nav--next { justify-self: end; margin-right: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 1400px) {
  .nav__name { display: none; }
}
@media (max-width: 1100px) {
  .hero__inner { grid-template-columns: 1fr 1fr; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .ig__grid { grid-template-columns: repeat(3, 1fr); }
  .li__posts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav__links { position: fixed; top: 0; right: 0; bottom: 0; width: min(360px, 88vw); background: var(--wine); color: #fff; flex-direction: column; padding: 100px 30px 30px; gap: 8px; transform: translateX(100%); transition: transform .5s var(--ease-out); z-index: -1; box-shadow: -30px 0 60px rgba(0,0,0,.3); }
  .nav__links a { font-family: var(--serif); font-size: 30px; opacity: 1; padding: 6px 0; border-radius: 0; }
  .nav__links.open { transform: none; }
  .nav.menu-open { color: #fff; }
  .nav.menu-open .nav__mono { background: #fff; color: var(--wine); }
  .burger { display: block; }
  .nav__cv { display: none; }
  .hero { padding-top: calc(var(--nav-h) + 20px); min-height: auto; }
  .hero__inner { grid-template-columns: 1fr; gap: 30px; }
  .hero__visual { order: -1; }
  .portrait { width: min(300px, 70vw); }
  .hero__name { font-size: clamp(56px, 16vw, 100px); }
  .hero__stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; }
  .stat { border-bottom: 1px solid rgba(255,255,255,.12); }
  .hero__scroll { display: none; }
  .about, .edu, .skills__grid, .contact { grid-template-columns: 1fr; gap: 34px; }
  .about__facts, .thesis { position: static; }
  .job { grid-template-columns: 1fr; gap: 10px; }
  .job__kind { justify-self: start; }
  .pub { grid-template-columns: 1fr; gap: 10px; }
  .pub__year { font-size: 32px; }
  .pub__actions { flex-direction: row; }
  .skills__list div { grid-template-columns: 1fr; gap: 4px; }
  .ig { padding: 20px; }
  .ig__head { grid-template-columns: auto 1fr; }
  .ig__head .btn { grid-column: 1 / -1; justify-self: start; }
  .ig__grid { grid-template-columns: repeat(2, 1fr); }
  .post.wide { grid-column: span 2; grid-row: span 1; aspect-ratio: 2 / 1; }
  .li { padding: 22px; }
  .li__head { grid-template-columns: auto 1fr; }
  .li__head .btn { grid-column: 1 / -1; justify-self: start; }
  .li__posts { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .lightbox { grid-template-columns: 40px 1fr 40px; }
  .lightbox__nav { width: 40px; }
}
@media (max-width: 560px) {
  .container { width: calc(100% - 32px); }
  .grid--3 { grid-template-columns: 1fr; }
  .section__head { gap: 12px; }
  .hero__stats { grid-template-columns: 1fr 1fr; }
  .ig__stats { gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; transition-duration: .001s !important; scroll-behavior: auto !important; }
  .reveal, .stagger > * { opacity: 1; transform: none; }
  .hero__name .word { transform: none; }
}
