/* ================================================================
   Prof. Dr. Ahmet Buğra Hamşıoğlu — Academic Portfolio
   Editorial · Refined · Academic
   ================================================================ */

:root {
  --ink: #1a1814;
  --ink-soft: #3a342c;
  --ink-mute: #6b6357;
  --paper: #f5f0e6;
  --paper-soft: #ebe4d5;
  --paper-deep: #e0d7c2;
  --accent: #8b1a1a;      /* deep oxblood */
  --accent-soft: #a52a2a;
  --gold: #b8893a;
  --line: #c9bfa8;
  --white: #fdfaf3;

  --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;

  --shadow-soft: 0 1px 2px rgba(26, 24, 20, 0.06), 0 8px 24px rgba(26, 24, 20, 0.08);
  --shadow-deep: 0 4px 12px rgba(26, 24, 20, 0.12), 0 24px 48px rgba(26, 24, 20, 0.16);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  background-image:
    radial-gradient(at 12% 8%, rgba(184, 137, 58, 0.06) 0, transparent 50%),
    radial-gradient(at 88% 92%, rgba(139, 26, 26, 0.05) 0, transparent 50%);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Subtle paper grain */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.09 0 0 0 0 0.07 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
  opacity: 0.55;
  mix-blend-mode: multiply;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 2;
}

a { color: inherit; text-decoration: none; }

/* ====================== HEADER ====================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 240, 230, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: 44px;
  height: 44px;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(26, 24, 20, 0.15));
  transition: transform 0.4s ease;
}

.brand:hover .brand-logo {
  transform: rotate(-4deg) scale(1.05);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: var(--ink);
}

.main-nav {
  display: flex;
  gap: 28px;
}

.main-nav a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.4px;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
  transition: color 0.25s ease;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.main-nav a:hover { color: var(--accent); }
.main-nav a:hover::after { width: 100%; }

.lang-switch {
  margin-left: 8px;
  padding: 6px 12px !important;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.lang-switch::after { display: none !important; }

.lang-switch:hover {
  background: var(--ink);
  color: var(--paper) !important;
  border-color: var(--ink);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
}

/* ====================== HERO ====================== */

.hero {
  padding: 90px 0 70px;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 40px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(184, 137, 58, 0.10) 0%, transparent 60%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 80px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--accent);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--accent);
  margin-bottom: 28px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(56px, 8vw, 104px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -1.5px;
  color: var(--ink);
  margin-bottom: 32px;
}

.display-line { display: block; }
.display-line.italic { font-style: italic; color: var(--accent); font-weight: 400; padding-left: 36px; }

.lead {
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 540px;
  margin-bottom: 36px;
}

.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
}

.meta-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 20px;
  align-items: baseline;
}

.meta-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--ink-mute);
  text-transform: uppercase;
}

.meta-value {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--ink);
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

/* Hero portrait */
.hero-portrait {
  position: relative;
}

.portrait-frame {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: var(--shadow-deep);
  transform: rotate(-1deg);
  transition: transform 0.5s ease;
}

.portrait-frame::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(245, 240, 230, 0.4);
  z-index: 2;
  pointer-events: none;
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(15%) contrast(1.05);
  transition: filter 0.5s ease;
}

.portrait-frame:hover {
  transform: rotate(0deg);
}

.portrait-frame:hover img {
  filter: grayscale(0%) contrast(1);
}

.portrait-stamp {
  position: absolute;
  bottom: -16px;
  right: -16px;
  background: var(--accent);
  color: var(--paper);
  padding: 10px 18px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 1px;
  transform: rotate(3deg);
  box-shadow: var(--shadow-soft);
}

/* ====================== STATS ====================== */

.stats {
  background: var(--ink);
  color: var(--paper);
  padding: 50px 0;
  position: relative;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 40px;
  text-align: center;
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 500;
  line-height: 1;
  color: var(--gold);
  margin-bottom: 8px;
}

.stat span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--paper-deep);
}

/* ====================== SECTIONS ====================== */

.section {
  padding: 100px 0;
  position: relative;
}

.section-alt {
  background: var(--paper-soft);
}

.two-col {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 80px;
  align-items: flex-start;
}

.section-head {
  position: sticky;
  top: 100px;
}

.section-head.center {
  position: static;
  text-align: center;
  margin-bottom: 60px;
}

.section-num {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 14px;
  font-style: italic;
  color: var(--accent);
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.section-num.light { color: var(--gold); }

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -1px;
  color: var(--ink);
  margin-bottom: 12px;
}

.section h2.light { color: var(--paper); }

.section-sub {
  font-size: 16px;
  color: var(--ink-mute);
  max-width: 600px;
  margin: 0 auto;
}

.section-body p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 20px;
  max-width: 720px;
}

.big-quote {
  font-family: var(--font-display);
  font-size: 28px !important;
  font-style: italic;
  line-height: 1.4 !important;
  color: var(--ink) !important;
  padding-left: 24px;
  border-left: 3px solid var(--accent);
  margin-bottom: 36px !important;
}

.section-body h3.sub {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  color: var(--ink);
  margin: 36px 0 20px;
}

.section-body h3.sub.center {
  text-align: center;
  margin-top: 60px;
}

/* ====================== EXPERTISE CALLOUT ====================== */

.expertise-callout {
  margin-top: 36px;
  padding: 32px 36px;
  background: linear-gradient(135deg, var(--white) 0%, var(--paper-soft) 100%);
  border-radius: 2px;
  border-left: 4px solid var(--accent);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.expertise-callout::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(184, 137, 58, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.callout-label {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  padding: 4px 10px;
  background: rgba(184, 137, 58, 0.12);
  border-radius: 2px;
  margin-bottom: 14px;
}

.expertise-callout h3 {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}

.expertise-callout p {
  font-size: 15px !important;
  line-height: 1.75 !important;
  color: var(--ink-soft);
  margin-bottom: 18px !important;
  position: relative;
  z-index: 2;
}

.expertise-callout strong { color: var(--ink); font-weight: 600; }

.expertise-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
  position: relative;
  z-index: 2;
}

.expertise-tags span {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--accent);
  padding: 6px 14px;
  background: var(--white);
  border: 1px solid rgba(139, 26, 26, 0.25);
  border-radius: 100px;
  transition: all 0.25s ease;
}

.expertise-tags span:hover {
  background: var(--accent);
  color: var(--paper);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.expertise-note {
  padding-top: 16px !important;
  border-top: 1px dashed var(--line);
  font-size: 14px !important;
  font-style: italic;
  color: var(--ink-mute) !important;
  margin-bottom: 0 !important;
}

/* ====================== TIMELINE ====================== */

.timeline {
  list-style: none;
  padding-left: 0;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 100px;
  top: 0; bottom: 0;
  width: 1px;
  background: var(--line);
}

.timeline li {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 40px;
  padding-bottom: 40px;
  position: relative;
}

.timeline li::before {
  content: '';
  position: absolute;
  left: 96px;
  top: 8px;
  width: 9px;
  height: 9px;
  background: var(--accent);
  border-radius: 50%;
}

.t-year {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 1px;
  padding-top: 4px;
}

.t-body h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}

.t-school {
  font-size: 14px !important;
  color: var(--ink-mute) !important;
  font-weight: 500;
  margin-bottom: 10px !important;
}

.t-thesis {
  font-size: 15px !important;
  line-height: 1.7 !important;
}

/* ====================== ROLE LIST ====================== */

.role-list {
  list-style: none;
  padding: 0;
}

.role-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink-soft);
}

.role-list li:last-child { border-bottom: none; }

.role-list strong {
  color: var(--ink);
  font-weight: 600;
}

.role-list em {
  font-style: italic;
  color: var(--ink-mute);
  font-size: 13px;
  float: right;
}

/* ====================== TOPICS GRID ====================== */

.topics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.topic {
  background: var(--white);
  padding: 36px 28px;
  border-radius: 2px;
  border: 1px solid var(--line);
  transition: all 0.3s ease;
  position: relative;
}

.topic::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 40px;
  height: 3px;
  background: var(--accent);
}

.topic:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  border-color: var(--accent);
}

.topic h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 14px;
}

.topic p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-mute);
}

/* ====================== PUBLICATIONS ====================== */

.pub-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.pub-tab {
  background: transparent;
  border: 1px solid var(--line);
  padding: 12px 24px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-soft);
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.pub-tab:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.pub-tab.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.pub-panel {
  display: none;
}

.pub-panel.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.pub-list {
  list-style: none;
  counter-reset: pub-counter;
  max-width: 900px;
  margin: 0 auto;
}

.pub-list li {
  counter-increment: pub-counter;
  padding: 24px 0 24px 60px;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.pub-list li::before {
  content: counter(pub-counter, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 24px;
  font-family: var(--font-display);
  font-size: 18px;
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
}

.pub-year {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gold);
  background: rgba(184, 137, 58, 0.12);
  padding: 4px 10px;
  margin-bottom: 10px;
  border-radius: 2px;
}

.pub-list p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.pub-list strong {
  color: var(--ink);
  font-weight: 600;
}

.pub-list em {
  color: var(--ink);
  font-style: italic;
  font-weight: 500;
}

.doi {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
  transition: all 0.25s ease;
}

.doi:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.coauthors {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--ink-mute);
  font-style: italic;
}

.coauthors a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(139, 26, 26, 0.3);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.25s ease;
}

.coauthors a:hover {
  text-decoration-color: var(--accent);
}

.pub-list a[href*="papatya.com"] {
  color: var(--accent);
  border-bottom: 1px dashed rgba(139, 26, 26, 0.4);
  transition: border-color 0.25s ease;
}

.pub-list a[href*="papatya.com"]:hover {
  border-bottom-color: var(--accent);
}

/* ====================== BOOKS ====================== */

.books-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 60px;
}

.book {
  background: var(--white);
  padding: 32px 26px;
  border-radius: 2px;
  border-left: 3px solid var(--accent);
  transition: all 0.3s ease;
  position: relative;
}

.book:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.book-year {
  display: inline-block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  color: var(--gold);
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.book h3 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 14px;
}

.book p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.book em { color: var(--ink); }

.book-meta {
  font-size: 12.5px !important;
  color: var(--ink-mute) !important;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.editor-list {
  list-style: none;
  max-width: 720px;
  margin: 0 auto;
}

.editor-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink-soft);
}

.editor-list strong {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
}

/* ====================== THESES ====================== */

.thesis-list {
  list-style: none;
}

.thesis-list li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.thesis-year {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
}

.thesis-list p {
  font-size: 15px !important;
  line-height: 1.6 !important;
  margin-bottom: 0 !important;
}

.thesis-list strong {
  color: var(--ink);
  font-weight: 600;
}

.thesis-list a {
  color: var(--accent);
  font-size: 12px;
  border-bottom: 1px dashed rgba(139, 26, 26, 0.4);
}

/* ====================== COLLEAGUES ====================== */

.colleagues-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.colleague-card {
  background: var(--white);
  padding: 36px 30px;
  border-radius: 2px;
  border: 1px solid var(--line);
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.colleague-card::before {
  content: '';
  position: absolute;
  top: 0; left: 30px; right: 30px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
}

.colleague-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  border-color: var(--accent);
}

.colleague-card.featured {
  border-color: rgba(139, 26, 26, 0.3);
  background: linear-gradient(135deg, var(--white) 0%, #fbf7ee 100%);
}

.colleague-card.featured::before {
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--gold) 50%, var(--accent) 100%);
}

.colleague-head {
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px dashed var(--line);
}

.colleague-eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.colleague-card h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 10px;
}

.colleague-role {
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-mute);
}

.colleague-role em {
  color: var(--gold);
  font-style: italic;
  font-weight: 500;
}

.colleague-bio {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 20px;
  flex-grow: 1;
}

.colleague-bio em {
  font-style: italic;
  color: var(--ink);
}

.colleague-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.colleague-links a {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--accent);
  padding: 5px 10px;
  border: 1px solid rgba(139, 26, 26, 0.25);
  border-radius: 2px;
  transition: all 0.25s ease;
}

.colleague-links a:hover {
  background: var(--accent);
  color: var(--paper);
  border-color: var(--accent);
}

/* ====================== CONTACT ====================== */

.contact-section {
  background: var(--ink);
  color: var(--paper);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.contact-lead {
  font-size: 17px;
  line-height: 1.7;
  color: var(--paper-deep);
  margin-top: 24px;
  max-width: 480px;
}

.contact-card {
  background: var(--paper);
  color: var(--ink);
  padding: 48px 40px;
  border-radius: 2px;
  box-shadow: var(--shadow-deep);
  position: relative;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: -8px; left: 24px;
  width: 60px; height: 4px;
  background: var(--accent);
}

.contact-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.contact-row:last-of-type { border-bottom: none; }

.contact-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.contact-value {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--ink);
}

.contact-value.mail {
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  display: inline-block;
  transition: color 0.25s ease;
}

.contact-value.mail:hover { color: var(--ink); border-color: var(--ink); }

.contact-btn { margin-top: 24px; width: 100%; justify-content: center; }

/* ====================== FOOTER ====================== */

.site-footer {
  background: #0f0d0a;
  color: var(--paper-deep);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 40px;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--paper);
  margin-bottom: 8px;
}

.footer-tag {
  font-size: 13px;
  color: var(--ink-mute);
  letter-spacing: 0.5px;
}

.footer-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 14px;
  color: var(--paper-deep);
  transition: color 0.25s ease;
}

.footer-links a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(245, 240, 230, 0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 12px;
  color: var(--ink-mute);
}

.footer-credit {
  margin-top: 8px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 0.5px;
}

.footer-credit strong {
  font-style: normal;
  font-weight: 600;
  color: var(--paper);
  letter-spacing: 1px;
}

/* ====================== RESPONSIVE ====================== */

@media (max-width: 968px) {
  .container { padding: 0 24px; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--paper);
    padding: 24px;
    border-bottom: 1px solid var(--line);
    gap: 16px;
  }

  .main-nav.open { display: flex; }

  .nav-toggle { display: flex; }

  .hero { padding: 60px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero h1 { font-size: clamp(48px, 12vw, 80px); }
  .display-line.italic { padding-left: 24px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .stat strong { font-size: 44px; }

  .section { padding: 70px 0; }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .section-head { position: static; }

  .topics-grid { grid-template-columns: 1fr; }
  .books-grid { grid-template-columns: 1fr; }
  .colleagues-grid { grid-template-columns: 1fr; }

  .timeline::before { left: 60px; }
  .timeline li { grid-template-columns: 60px 1fr; gap: 24px; }
  .timeline li::before { left: 56px; }

  .role-list em { float: none; display: block; margin-top: 4px; }

  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-card { padding: 32px 24px; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 480px) {
  .brand-name { display: none; }
  .hero h1 { font-size: 56px; letter-spacing: -1px; }
  .meta-item { grid-template-columns: 1fr; gap: 4px; }
  .pub-list li { padding-left: 0; }
  .pub-list li::before { position: static; display: block; margin-bottom: 6px; }
  .thesis-list li { grid-template-columns: 1fr; gap: 6px; }
  .contact-row { grid-template-columns: 1fr; gap: 4px; }
}

/* ====================== LANGUAGE SWITCHER ====================== */

.lang-switcher {
  display: inline-flex;
  gap: 2px;
  background: var(--paper-soft);
  padding: 3px;
  border-radius: 100px;
  border: 1px solid var(--line);
  margin-left: 18px;
}

.lang-switcher a {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 6px 14px;
  border-radius: 100px;
  color: var(--ink-mute);
  transition: all 0.25s ease;
}

.lang-switcher a.active {
  background: var(--ink);
  color: var(--paper);
}

.lang-switcher a:hover:not(.active) {
  color: var(--ink);
}

/* ====================== HERO PATTERN BACKGROUND ====================== */

.hero::after {
  content: '';
  position: absolute;
  top: 0; right: -100px;
  width: 800px; height: 800px;
  background-image: url("../assets/hero-pattern.svg");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}

.hero-grid { position: relative; z-index: 2; }

@media (max-width: 968px) {
  .lang-switcher { margin: 12px 0 0; }
}
