/* ==========================================================================
   Mehmed Kerem Uludag — v3 "Editorial Warmth"
   Warm cream / maroon / blue · Fraunces display + Inter body · light + dark
   ========================================================================== */

/* --- Tokens: light (default) --------------------------------------------- */
:root {
  --bg:            #f4efe6;
  --bg-elev:       #fbf8f2;
  --bg-sunken:     #ece4d6;
  --border:        #e4ddcd;
  --border-strong: #d6ccb8;

  --ink:           #2a2622;
  --ink-soft:      #574f45;
  --ink-muted:     #8a8072;

  --brand:         #6b3535;   /* maroon — editorial / brand accent */
  --brand-bright:  #8a4646;
  --accent:        #35709f;   /* blue — interactive / links */
  --accent-strong: #285884;
  --accent-soft:   rgba(53, 112, 159, 0.10);
  --brand-soft:    rgba(107, 53, 53, 0.08);

  --header-bg:     #5f3232;
  --header-ink:    #f3e7e7;
  --header-ink-dim: rgba(243, 231, 231, 0.72);

  --shadow-sm: 0 1px 2px rgba(60, 40, 30, 0.06);
  --shadow-md: 0 6px 20px rgba(70, 45, 35, 0.10);
  --shadow-lg: 0 18px 48px rgba(60, 38, 30, 0.16);
  --overlay:   rgba(28, 20, 16, 0.72);

  --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* fluid type scale */
  --step--1: clamp(0.80rem, 0.77rem + 0.14vw, 0.88rem);
  --step-0:  clamp(1.00rem, 0.96rem + 0.18vw, 1.10rem);
  --step-1:  clamp(1.20rem, 1.12rem + 0.36vw, 1.42rem);
  --step-2:  clamp(1.44rem, 1.30rem + 0.66vw, 1.84rem);
  --step-3:  clamp(1.73rem, 1.50rem + 1.10vw, 2.44rem);
  --step-4:  clamp(2.07rem, 1.70rem + 1.80vw, 3.30rem);
  --step-5:  clamp(2.49rem, 1.90rem + 2.90vw, 4.40rem);

  --space-xs: 0.375rem;
  --space-sm: 0.625rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.25rem;
  --space-2xl: 3.5rem;
  --space-3xl: 5.5rem;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 999px;

  --container: 1080px;
  --measure: 760px;

  --t-fast: 0.16s ease;
  --t-base: 0.26s ease;
  --t-slow: 0.5s cubic-bezier(0.22, 1, 0.36, 1);

  --focus: 0 0 0 3px var(--accent-soft), 0 0 0 1px var(--accent);
}

/* --- Tokens: dark (warm espresso) ---------------------------------------- */
[data-theme="dark"] {
  --bg:            #1b1714;
  --bg-elev:       #241e19;
  --bg-sunken:     #151109;
  --border:        #382f27;
  --border-strong: #4a3f34;

  --ink:           #f0e8db;
  --ink-soft:      #c6bba7;
  --ink-muted:     #93897a;

  --brand:         #d79a9a;
  --brand-bright:  #e9b3b3;
  --accent:        #79b0e0;
  --accent-strong: #9ac8ef;
  --accent-soft:   rgba(121, 176, 224, 0.16);
  --brand-soft:    rgba(215, 154, 154, 0.12);

  --header-bg:     #241717;
  --header-ink:    #f0dede;
  --header-ink-dim: rgba(240, 222, 222, 0.66);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 6px 22px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.6);
  --overlay:   rgba(8, 5, 3, 0.82);
}

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

html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: 68px;
  transition: background var(--t-base), color var(--t-base);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }

/* --- Typography ---------------------------------------------------------- */
h1, h2, h3, .hero__name, .slide__title {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); line-height: 1.2; }
p { max-width: var(--measure); }

.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: var(--space-sm);
}
[data-theme="dark"] .eyebrow { color: var(--brand-bright); }

.lead {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: var(--measure);
  margin-bottom: var(--space-xl);
}

/* --- Layout -------------------------------------------------------------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--space-2xl) clamp(1.1rem, 5vw, 2rem) var(--space-3xl);
}
main { min-height: 60vh; }
.section { max-width: var(--container); margin: 0 auto; padding: 0 clamp(1.1rem, 5vw, 2rem); }
.section + .section { margin-top: var(--space-3xl); }
.section__head, .page-head { margin-bottom: var(--space-lg); }
.page-head { margin-bottom: var(--space-lg); }
.page-head--sub { margin-top: var(--space-3xl); }
.page-head--split { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-lg); flex-wrap: wrap; }
.section__more { margin-top: var(--space-lg); }

.skip-link {
  position: fixed; top: -60px; left: 12px; z-index: 2000;
  background: var(--accent); color: #fff; padding: 0.6rem 1rem;
  border-radius: var(--radius-sm); transition: top var(--t-fast);
}
.skip-link:focus { top: 12px; color: #fff; }

.link-arrow {
  font-weight: 600; font-size: var(--step--1); letter-spacing: 0.02em;
  display: inline-flex; align-items: center; gap: 0.4em;
}
.link-arrow span { transition: transform var(--t-fast); }
.link-arrow:hover span { transform: translateX(4px); }

/* --- Header / nav -------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; height: 68px; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(1.1rem, 5vw, 2rem);
  background: var(--header-bg); color: var(--header-ink);
  box-shadow: var(--shadow-sm);
}
.header-left { display: flex; align-items: center; gap: 0.7rem; }
.header-link { display: flex; align-items: center; color: var(--header-ink); }
.header-link:hover { color: var(--header-ink); }
.logo { width: 42px; height: 42px; border-radius: var(--radius-full); transition: transform var(--t-base); }
.header-link:hover .logo { transform: rotate(-8deg) scale(1.05); }
.name { font-family: var(--font-serif); font-weight: 600; font-size: 1.15rem; letter-spacing: -0.01em; }

.header-right { display: flex; align-items: center; gap: 0.35rem; }
.header-right .theme-toggle { margin-left: 0.3rem; }
.navbar { list-style: none; display: flex; align-items: center; gap: 0.15rem; }
.navbar a {
  color: var(--header-ink-dim); font-size: 0.94rem; font-weight: 500;
  padding: 0.45rem 0.7rem; border-radius: var(--radius-sm);
  transition: color var(--t-fast), background var(--t-fast);
}
.navbar a:hover { color: var(--header-ink); background: rgba(255,255,255,0.10); }
.navbar a.active { color: var(--header-ink); background: rgba(255,255,255,0.14); }

.theme-toggle, .menu-toggle {
  background: transparent; border: 0; cursor: pointer; color: var(--header-ink);
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  transition: background var(--t-fast);
}
.theme-toggle:hover, .menu-toggle:hover { background: rgba(255,255,255,0.12); }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="dark"]  .icon-moon { display: none; }

.menu-toggle { display: none; flex-direction: column; gap: 5px; }
.menu-toggle span { width: 22px; height: 2px; background: var(--header-ink); border-radius: 2px; transition: transform var(--t-base), opacity var(--t-base); }
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav-overlay { position: fixed; inset: 0; background: var(--overlay); opacity: 0; visibility: hidden; z-index: 998; transition: opacity var(--t-base), visibility var(--t-base); }
.mobile-nav-overlay.visible { opacity: 1; visibility: visible; }

/* --- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--font-sans); font-size: 0.95rem; font-weight: 600;
  padding: 0.6rem 1.05rem; border-radius: var(--radius-sm);
  background: var(--accent); color: #fff; border: 1px solid transparent;
  cursor: pointer; transition: transform var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
  box-shadow: var(--shadow-sm);
}
.btn:hover { background: var(--accent-strong); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn img { display: inline-block; }
.btn--sm { padding: 0.4rem 0.8rem; font-size: 0.85rem; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--border-strong); box-shadow: none; }
.btn--ghost:hover { background: var(--bg-sunken); color: var(--ink); border-color: var(--accent); }
.btn--email { background: transparent; color: var(--brand); border-color: var(--brand); box-shadow: none; font-variant-numeric: tabular-nums; }
.btn--email:hover { background: var(--brand-soft); color: var(--brand); }
[data-theme="dark"] .btn--email { color: var(--brand-bright); border-color: var(--brand-bright); }

/* --- Cards --------------------------------------------------------------- */
.card {
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }

/* --- Hero ---------------------------------------------------------------- */
.hero {
  max-width: var(--container); margin: 0 auto;
  padding: clamp(2rem, 6vw, 4.5rem) clamp(1.1rem, 5vw, 2rem) var(--space-2xl);
  display: grid; grid-template-columns: 1.35fr 0.9fr; gap: clamp(1.5rem, 5vw, 3.5rem);
  align-items: center;
}
.hero__name { font-size: var(--step-5); font-weight: 600; letter-spacing: -0.03em; margin-bottom: var(--space-md); }
.hero__name::after { content: ""; display: block; width: 72px; height: 4px; margin-top: var(--space-md); border-radius: 2px; background: linear-gradient(90deg, var(--brand), var(--accent)); }
.hero__lead { font-size: var(--step-1); line-height: 1.4; color: var(--ink-soft); font-weight: 500; margin-bottom: var(--space-lg); max-width: 34ch; }
.hero__body p { color: var(--ink-soft); margin-bottom: var(--space-md); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: var(--space-lg); }
.hero__portrait img {
  width: 100%; max-width: 340px; margin-left: auto; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius-lg); border: 1px solid var(--border);
  box-shadow: var(--shadow-lg); transform: rotate(1.5deg); transition: transform var(--t-slow);
}
.hero__portrait img:hover { transform: rotate(0deg) scale(1.01); }

/* --- Snapshot strip ------------------------------------------------------ */
.strip { max-width: var(--container); margin: 0 auto; padding: 0 clamp(1.1rem, 5vw, 2rem); }
.strip__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: var(--space-md); }
.strip__head .eyebrow { margin-bottom: 0; }
.strip__rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(190px, 1fr);
  gap: var(--space-md); overflow-x: auto; padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.strip__item { scroll-snap-align: start; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.strip__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform var(--t-slow), filter var(--t-base); }
.strip__item:hover img { transform: scale(1.05); }

/* --- News ---------------------------------------------------------------- */
.news { position: relative; }
.news__list { list-style: none; position: relative; padding-left: 1.4rem; overflow: hidden; max-height: 22rem; transition: max-height var(--t-slow); }
.news.is-open .news__list { max-height: 200rem; }
.news__list::before { content: ""; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 2px; background: var(--border-strong); }
.news__item { position: relative; padding: 0 0 var(--space-md) 0.4rem; }
.news__item::before { content: ""; position: absolute; left: -1.4rem; top: 0.55rem; width: 9px; height: 9px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px var(--bg); }
.news__date { display: block; font-size: var(--step--1); font-weight: 700; color: var(--brand); letter-spacing: 0.02em; }
[data-theme="dark"] .news__date { color: var(--brand-bright); }
.news__text { color: var(--ink-soft); }
.news__fade { position: absolute; left: 0; right: 0; bottom: 2.6rem; height: 5rem; background: linear-gradient(transparent, var(--bg)); pointer-events: none; transition: opacity var(--t-base); }
.news.is-open .news__fade { opacity: 0; }
.news #news-toggle, .news__toggle { margin-top: var(--space-md); }

/* --- Publications -------------------------------------------------------- */
.pub-list { list-style: none; display: flex; flex-direction: column; gap: var(--space-lg); }
.pub-list--numbered { counter-reset: pub; }
.pub { display: grid; grid-template-columns: 190px 1fr; gap: var(--space-lg); padding: var(--space-lg); align-items: center; }
.pub--text, .pub:not(:has(.pub__media)) { grid-template-columns: 1fr; }
.pub__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.pub__cite { color: var(--ink-soft); max-width: none; }
.pub__cite strong { color: var(--ink); }
.pub-list--numbered .pub__body { position: relative; }
.pub-list--numbered .pub { counter-increment: pub; }
.pub-list--numbered .pub__cite::before { content: "[" counter(pub) "]  "; color: var(--accent); font-weight: 700; font-family: var(--font-sans); }
.pub__note { display: inline-block; margin-top: var(--space-sm); font-size: var(--step--1); font-weight: 600; color: var(--brand); background: var(--brand-soft); padding: 0.2rem 0.6rem; border-radius: var(--radius-full); }
[data-theme="dark"] .pub__note { color: var(--brand-bright); }
.pub__body .btn { margin-top: var(--space-md); }

/* --- Projects ------------------------------------------------------------ */
.project-grid { display: grid; gap: var(--space-lg); }
.project { display: grid; grid-template-columns: 220px 1fr; gap: var(--space-lg); padding: var(--space-lg); align-items: start; }
.project__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg-sunken); }
.project__title { font-size: var(--step-1); margin-bottom: 0.2rem; }
.project__meta { font-size: var(--step--1); color: var(--ink-muted); font-weight: 500; }
.project__badge { display: inline-block; margin-top: var(--space-sm); font-size: var(--step--1); font-weight: 600; color: var(--brand); background: var(--brand-soft); padding: 0.25rem 0.7rem; border-radius: var(--radius-full); }
[data-theme="dark"] .project__badge { color: var(--brand-bright); }
.project__desc { margin-top: var(--space-sm); color: var(--ink-soft); max-width: none; }

/* --- Slideshow (activities) ---------------------------------------------- */
.slideshow { position: relative; background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.slide { display: none; grid-template-columns: 1fr 1fr; gap: var(--space-xl); padding: clamp(1.5rem, 4vw, 2.75rem) clamp(3rem, 5vw, 4rem); min-height: 24rem; align-items: center; }
.slide.is-active { display: grid; animation: fadeUp var(--t-slow); }
.slide__title { margin-bottom: var(--space-md); color: var(--brand); }
[data-theme="dark"] .slide__title { color: var(--brand-bright); }
.slide__text p { color: var(--ink-soft); margin-bottom: var(--space-sm); }
.slide__media { display: grid; gap: 0.6rem; }
.slide__media img { width: 100%; height: 100%; max-height: 20rem; object-fit: cover; border-radius: var(--radius-md); }
.slide__media--count-2, .slide__media--count-4, .slide__media--count-6 { grid-template-columns: 1fr 1fr; }
.slide__media--count-6 img, .slide__media--count-4 img { max-height: 9.5rem; }
.slide-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); background: var(--bg-elev); color: var(--ink); cursor: pointer; box-shadow: var(--shadow-md); font-size: 1.1rem; transition: background var(--t-fast), color var(--t-fast); }
.slide-nav:hover { background: var(--accent); color: #fff; }
.slide-nav--prev { left: 12px; } .slide-nav--next { right: 12px; }
.slide-dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: var(--space-lg); }
.slide-dots .dot { width: 9px; height: 9px; border-radius: 50%; border: 0; background: var(--border-strong); cursor: pointer; transition: background var(--t-fast), transform var(--t-fast); }
.slide-dots .dot.active { background: var(--accent); transform: scale(1.3); }

/* --- Tabs / disclosure / figure (honors) --------------------------------- */
.tab-buttons { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: var(--space-xl); }
.tab-btn { font-family: var(--font-sans); font-size: 0.95rem; font-weight: 600; padding: 0.55rem 1.1rem; border-radius: var(--radius-full); border: 1px solid var(--border-strong); background: transparent; color: var(--ink-soft); cursor: pointer; transition: all var(--t-fast); }
.tab-btn:hover { border-color: var(--accent); color: var(--ink); }
.tab-btn.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.tab-panel { animation: fadeUp var(--t-slow); }
.tab-panel[hidden] { display: none; }
.figure { margin: var(--space-lg) 0; }
.figure img { width: 100%; border-radius: var(--radius-md); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.figure.js-zoom, .figure img.js-zoom { cursor: zoom-in; }
.figure figcaption, .caption { margin-top: var(--space-sm); font-size: var(--step--1); color: var(--ink-muted); text-align: center; }
.disclosure { border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg-elev); margin-top: var(--space-lg); overflow: hidden; }
.disclosure > summary { cursor: pointer; padding: var(--space-md) var(--space-lg); font-weight: 600; color: var(--brand); list-style: none; display: flex; align-items: center; gap: 0.6rem; }
[data-theme="dark"] .disclosure > summary { color: var(--brand-bright); }
.disclosure > summary::before { content: "▶"; font-size: 0.7em; transition: transform var(--t-fast); }
.disclosure[open] > summary::before { transform: rotate(90deg); }
.disclosure__body { padding: 0 var(--space-lg) var(--space-lg); }
.disclosure__body h3 { font-size: var(--step-0); margin-top: var(--space-md); }
.disclosure__body p { color: var(--ink-soft); }

/* --- Prose --------------------------------------------------------------- */
.prose { padding: var(--space-lg); }
.prose h2 { font-size: var(--step-2); margin-bottom: var(--space-md); }
.prose h3 { margin: var(--space-lg) 0 var(--space-sm); }
.prose p { color: var(--ink-soft); margin-bottom: var(--space-md); }
.prose ul, .prose ol { color: var(--ink-soft); padding-left: 1.3rem; margin-bottom: var(--space-md); }
.prose li { margin-bottom: 0.35rem; }
.ref-list li { margin-bottom: 0.6rem; }

/* --- Gallery + lightbox -------------------------------------------------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--space-lg); }
.gallery-card { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform var(--t-base), box-shadow var(--t-base); }
.gallery-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.gallery-card__btn { display: block; border: 0; padding: 0; cursor: zoom-in; background: none; width: 100%; }
.gallery-card__btn img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform var(--t-slow); }
.gallery-card:hover .gallery-card__btn img { transform: scale(1.04); }
.gallery-card__cap { padding: var(--space-md); font-size: 0.95rem; color: var(--ink-soft); display: flex; flex-direction: column; gap: 0.25rem; }
.gallery-card__meta { font-size: var(--step--1); color: var(--ink-muted); }

.lightbox { position: fixed; inset: 0; z-index: 2000; background: var(--overlay); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; padding: 5vw; animation: fadeIn var(--t-base); }
.lightbox[hidden] { display: none; }
.lightbox__img { max-width: 92vw; max-height: 82vh; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); }
.lightbox__caption { color: #f4efe6; font-size: 0.95rem; text-align: center; }
.lightbox__close { position: absolute; top: 18px; right: 24px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,0.12); color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; transition: background var(--t-fast); }
.lightbox__close:hover { background: rgba(255,255,255,0.24); }

/* --- Resume -------------------------------------------------------------- */
.resume-section { margin-top: var(--space-2xl); }
.resume-section__title { font-size: var(--step-2); padding-bottom: var(--space-sm); margin-bottom: var(--space-lg); border-bottom: 2px solid var(--border-strong); position: relative; }
.resume-section__title::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 60px; height: 2px; background: var(--brand); }
.entry { padding-left: var(--space-lg); border-left: 2px solid var(--border); margin-bottom: var(--space-lg); }
.entry__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.entry__role { font-size: var(--step-1); }
.entry__date { font-size: var(--step--1); color: var(--ink-muted); font-weight: 600; white-space: nowrap; }
.entry__org { color: var(--brand); font-weight: 600; margin: 0.15rem 0 0.4rem; }
[data-theme="dark"] .entry__org { color: var(--brand-bright); }
.entry__points { list-style: none; display: flex; flex-direction: column; gap: 0.3rem; }
.entry__points li { position: relative; padding-left: 1.1rem; color: var(--ink-soft); }
.entry__points li::before { content: "›"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.resume-cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2xl); }
.skills { display: flex; flex-direction: column; gap: var(--space-sm); }
.skills__row { display: grid; grid-template-columns: 8.5rem 1fr; gap: var(--space-md); }
.skills dt { font-weight: 700; color: var(--ink); }
.skills dd { color: var(--ink-soft); }
.award-list { list-style: none; display: flex; flex-direction: column; gap: var(--space-sm); }
.award-list li { position: relative; padding-left: 1.2rem; color: var(--ink-soft); }
.award-list li::before { content: "★"; position: absolute; left: 0; color: var(--brand); }
[data-theme="dark"] .award-list li::before { color: var(--brand-bright); }

/* --- Footer -------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--border); text-align: center; padding: var(--space-xl) 1rem; color: var(--ink-muted); font-size: var(--step--1); }

/* --- Motion -------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--t-slow), transform var(--t-slow); }
.reveal.is-visible { opacity: 1; transform: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: var(--space-xl); }
  .hero__portrait { order: -1; }
  .hero__portrait img { max-width: 240px; margin: 0 auto; }
  .hero__name::after { margin-left: 0; }
  .resume-cols { grid-template-columns: 1fr; gap: var(--space-xl); }
}
@media (max-width: 768px) {
  body { padding-top: 60px; }
  .site-header { height: 60px; }
  .menu-toggle { display: flex; }
  #main-nav {
    position: fixed; top: 0; right: -300px; width: 280px; height: 100vh;
    background: var(--header-bg); box-shadow: var(--shadow-lg);
    padding: 84px var(--space-lg) var(--space-lg); z-index: 999;
    transition: right var(--t-base);
  }
  #main-nav.open { right: 0; }
  .navbar { flex-direction: column; align-items: stretch; gap: 0.25rem; }
  .navbar a { padding: 0.7rem 0.9rem; }
  .pub, .project, .slide { grid-template-columns: 1fr; }
  .pub__media, .project__media { max-width: 320px; }
  .slide__media { order: -1; }
  .entry__head { flex-direction: column; gap: 0.15rem; }
}
@media (max-width: 480px) {
  .container { padding-top: var(--space-xl); }
  .hero__actions { gap: 0.45rem; }
  .gallery-grid { grid-template-columns: 1fr; }
}
