/* Google Fonts loaded conditionally via JS cookie consent */

:root {
  --blue:    #1a3a5c;
  --blue2:   #2557a7;
  --blue3:   #4a7fc1;
  --blue4:   #d0e4f7;
  --accent:  #3b82f6;
  --bg:      #ffffff;
  --bg2:     #f4f7fb;
  --bg3:     #e8f0fa;
  --text:    #1a2030;
  --text2:   #4a5568;
  --text3:   #8a9ab8;
  --border:  #d0dcea;
  --serif:   'Source Serif 4', Georgia, serif;
  --sans:    'Source Sans 3', sans-serif;
  --radius:  4px;
  --shadow:  0 4px 24px rgba(26,58,92,0.10);
  --shadow2: 0 8px 48px rgba(26,58,92,0.16);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

html { overflow-x: hidden; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--blue3); border-radius: 3px; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1100;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 56px;
  height: 66px;
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 2px 20px rgba(26,58,92,0.10); }

.nav-logo {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.3px;
  text-decoration: none;
}

.nav-links {
  display: flex; gap: 36px; list-style: none;
}
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
  text-decoration: none;
  letter-spacing: 0.4px;
  transition: color 0.2s;
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 2px;
  background: var(--blue2);
  transform: scaleX(0);
  transition: transform 0.2s;
}
.nav-links a:hover { color: var(--blue2); }
.nav-links a:hover::after { transform: scaleX(1); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  width: 36px; height: 36px;
  background: none; border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

/* Mobile menu */
.nav-mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4,8,16,0.34);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0s linear 0.22s;
  z-index: 1080;
}
.nav-mobile-backdrop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.22s ease, visibility 0s linear 0s;
}
.nav-mobile {
  position: fixed;
  top: 78px;
  right: 56px;
  left: auto;
  width: min(320px, calc(100vw - 32px));
  display: block;
  height: auto;
  background: #ffffff;
  border: 1px solid rgba(208,220,234,0.96);
  border-radius: 14px;
  z-index: 1090;
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
  -webkit-transform: translateY(-10px) scale(0.98);
  transform: translateY(-10px) scale(0.98);
  -webkit-transform-origin: top right;
  transform-origin: top right;
  transition: transform 0.22s ease, opacity 0.22s ease, visibility 0s linear 0.22s;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform;
  box-shadow: 0 20px 48px rgba(4,8,16,0.22);
  overflow: hidden;
  isolation: isolate;
}
.nav-mobile.open {
  visibility: visible;
  pointer-events: auto;
  opacity: 1;
  -webkit-transform: translateY(0) scale(1);
  transform: translateY(0) scale(1);
  transition: transform 0.22s ease, opacity 0.22s ease, visibility 0s linear 0s;
}
.nav-mobile ul {
  list-style: none;
  padding: 8px 0;
}
.nav-mobile ul li a {
  display: block;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text2);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s, color 0.15s;
}
.nav-mobile ul li:last-child a { border-bottom: none; }
.nav-mobile ul li a:hover { background: var(--bg2); color: var(--blue2); }

/* ── HERO ── */
#hero {
  position: relative;
  width: 100%; height: 100vh;
  min-height: 600px;
  background: #040810;
  display: flex;
  align-items: center;
  overflow: hidden;
}

#pcb-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0.30;
  filter: saturate(0.7) brightness(0.85);
  mix-blend-mode: screen;
}

#hero::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(4,8,16,0.92) 0%, rgba(4,8,16,0.60) 55%, rgba(4,8,16,0.22) 100%),
    linear-gradient(to top,   rgba(4,8,16,0.70) 0%, transparent 45%);
  z-index: 5;
  pointer-events: none;
}

.hero-content {
  position: relative; z-index: 10;
  padding: 0 56px;
  max-width: 800px;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--blue3);
  margin-bottom: 22px;
  display: block;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.2s forwards;
}

h1 {
  font-family: var(--serif);
  font-size: clamp(42px, 6vw, 80px);
  font-weight: 300;
  color: #ffffff;
  line-height: 1.0;
  letter-spacing: -0.5px;
  margin-bottom: 26px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.4s forwards;
}
h1 span { font-weight: 600; }

.hero-desc {
  font-size: 18px;
  font-weight: 300;
  color: rgba(255,255,255,0.60);
  line-height: 1.75;
  max-width: 540px;
  margin-bottom: 38px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.6s forwards;
}

.hero-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.8s forwards;
}

.htag {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.70);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 5px 15px;
  border-radius: var(--radius);
  letter-spacing: 0.5px;
  backdrop-filter: blur(4px);
  transition: border-color 0.2s, background 0.2s;
}
.htag:hover {
  border-color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.06);
}

.hero-cta {
  margin-top: 40px;
  opacity: 0;
  animation: fadeUp 0.8s ease 1.0s forwards;
}
.btn {
  display: inline-block;
  padding: 13px 32px;
  background: var(--blue2);
  color: #fff;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(37,87,167,0.35);
}
.btn:hover {
  background: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(37,87,167,0.45);
}
.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  margin-left: 12px;
  box-shadow: none;
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.5);
  box-shadow: none;
}

/* ── SECTIONS ── */
.section {
  padding: 100px 56px;
  max-width: 1160px;
  margin: 0 auto;
}

.section-alt {
  background: var(--bg2);
  padding: 100px 0;
}
.section-alt .inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 56px;
}

.section-dark {
  background: var(--blue);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.section-dark::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(74,127,193,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.section-dark .inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 56px;
  position: relative; z-index: 1;
}

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--blue2);
  margin-bottom: 14px;
  display: block;
}
.eyebrow-light {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--blue3);
  margin-bottom: 14px;
  display: block;
}

h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 20px;
}
h2.light { color: #fff; }

.lead {
  font-size: 18px;
  font-weight: 300;
  color: var(--text2);
  line-height: 1.75;
  max-width: 640px;
  margin-bottom: 56px;
}
.lead.light { color: rgba(255,255,255,0.55); }

/* ── ABOUT ── */
.about-grid {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  gap: 64px;
  align-items: start;
}

.about-photo-meta { display: none; }

.portrait {
  width: 220px;
  height: 280px;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: var(--radius);
  filter: grayscale(8%);
  box-shadow: var(--shadow2);
  transition: transform 0.3s, box-shadow 0.3s;
}
.portrait:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 56px rgba(26,58,92,0.22);
}

.about-body p {
  font-size: 16px;
  color: var(--text2);
  line-height: 1.85;
  margin-bottom: 20px;
}

.about-copy {
  font-size: 16px;
  color: var(--text2);
  line-height: 1.85;
}

.about-copy-spaced {
  margin-top: 16px;
}

.stats {
  display: flex;
  flex-direction: column;
  min-width: 200px;
  border-top: 1px solid var(--border);
}
.stat {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text3);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.stat-val {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--blue);
}

/* ── SKILLS ── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.skill-block {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 28px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.skill-block:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow2);
  border-color: var(--blue3);
}


.skill-block h3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.3px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--blue2);
  display: inline-block;
}

.skill-block ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skill-block li {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 8px;
}
.skill-block li::before {
  content: '';
  width: 4px; height: 4px;
  background: var(--blue3);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── EXPERIENCE ── */
.timeline { display: flex; flex-direction: column; }

.tl-item {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 48px;
  padding: 40px 0;
  border-top: 1px solid var(--border);
  transition: background 0.15s;
}
.tl-item:last-child { border-bottom: 1px solid var(--border); }

.tl-period {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue2);
  display: block;
  margin-bottom: 6px;
  font-family: var(--sans);
}

.tl-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  color: var(--blue2);
  background: var(--bg3);
  border: 1px solid var(--blue4);
  padding: 2px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.tl-role {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.tl-company {
  font-size: 14px;
  font-weight: 500;
  color: var(--blue3);
  margin-bottom: 14px;
}

.tl-desc {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.75;
  margin-bottom: 16px;
  max-width: 580px;
}

.tl-pills { display: flex; flex-wrap: wrap; gap: 6px; }

.pill {
  font-size: 11px;
  font-weight: 600;
  color: var(--blue2);
  background: var(--bg3);
  border: 1px solid var(--blue4);
  padding: 3px 12px;
  border-radius: 20px;
  letter-spacing: 0.3px;
}

/* ── EDUCATION ── */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.edu-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  padding: 32px 28px;
  border-radius: var(--radius);
  transition: background 0.2s, transform 0.2s;
}
.edu-card:hover {
  background: rgba(255,255,255,0.11);
  transform: translateY(-3px);
}

.edu-card-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue3);
  margin-bottom: 14px;
  display: block;
}

.edu-degree {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
  line-height: 1.2;
}

.edu-school {
  font-size: 13px;
  color: rgba(255,255,255,0.50);
  margin-bottom: 8px;
}

.edu-note {
  font-size: 12px;
  color: rgba(255,255,255,0.32);
}

/* ── PUBLICATIONS ── */
.pub-list { display: flex; flex-direction: column; gap: 20px; }
.pub-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.pub-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow2);
  border-color: var(--blue3);
}
.pub-venue {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blue2);
  margin-bottom: 8px;
}
.pub-title {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text);
}
.pub-title a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--blue3);
  transition: color 0.2s, border-color 0.2s;
}
.pub-title a:hover { color: var(--blue2); border-color: var(--blue2); }

/* ── CONTACT ── */
.contact-wrap { max-width: 660px; }

.contact-lead {
  font-size: 16px;
  margin-bottom: 0;
}

.contact-items {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
  margin-top: 44px;
}

.contact-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.contact-row:hover { background: var(--bg2); margin: 0 -16px; padding: 20px 16px; }

.contact-lbl {
  font-size: 11px;
  font-weight: 600;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.contact-val {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--blue);
  font-weight: 600;
}
.contact-val a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
  word-break: break-all;
}
.contact-val a:hover { color: var(--blue2); }

/* ── FOOTER ── */
footer {
  background: #0d1f33;
  padding: 40px 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 3px solid var(--blue2);
}

.footer-name {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
}

.footer-links {
  display: flex; gap: 20px; list-style: none;
}
.footer-links a {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: rgba(255,255,255,0.7); }

.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.25);
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.up { opacity: 1; transform: none; }

/* ── RESPONSIVE ── */
/* ── RESPONSIVE ── */

/* Tablet landscape */
@media (max-width: 1100px) {
  .about-grid { grid-template-columns: 180px 1fr; gap: 40px; }
  .stats { display: none; }
  .skills-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Tablet portrait / large phones */
@media (max-width: 900px) {
  html { scroll-padding-top: 74px; }
  /* Nav */
  nav { padding: 0 20px; height: 60px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-mobile { top: 72px; right: 20px; }

  /* Hero — full-width on mobile, proper padding */
  #hero { min-height: 100svh; align-items: flex-end; padding-bottom: 60px; }
  .hero-content { padding: 0 20px; max-width: 100%; }
  h1 { font-size: clamp(34px, 9vw, 52px); letter-spacing: -0.3px; }
  .hero-desc { font-size: 15px; max-width: 100%; }
  .hero-eyebrow { margin-bottom: 14px; }
  .hero-cta { margin-top: 28px; display: flex; gap: 10px; flex-wrap: wrap; }
  .btn { flex: 1; min-width: 130px; text-align: center; padding: 12px 16px; }
  .btn-ghost { margin-left: 0; }

  /* Sections */
  .section { padding: 64px 20px; }
  .section-alt .inner,
  .section-dark .inner { padding: 64px 20px; }

  /* About */
  .about-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  .about-photo {
    display: flex;
    align-items: center;
    gap: 20px;
  }
  .portrait { width: 100px; height: 126px; flex-shrink: 0; }
  .about-photo-meta { display: flex; }
  .about-photo-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .about-photo-meta .stat {
    display: flex;
    flex-direction: column;
    padding: 6px 0;
    border: none;
    border-bottom: 1px solid var(--border);
  }
  .stats { display: none; }
  .about-body p { font-size: 15px; }

  /* Skills */
  .skills-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .skill-block { padding: 20px 18px; }

  /* Timeline */
  .tl-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 28px 0;
  }
  .tl-left {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .tl-role { font-size: 18px; }
  .tl-desc { max-width: 100%; font-size: 13px; }

  /* Education */
  .edu-grid { grid-template-columns: 1fr; gap: 14px; }
  .edu-card { padding: 22px 20px; }

  /* Contact */
  .contact-wrap { max-width: 100%; }
  .contact-row { padding: 16px 0; }
  .contact-row:hover { background: none; margin: 0; padding: 16px 0; }
  .contact-val { font-size: 15px; }

  /* Footer */
  footer { padding: 24px 20px; flex-direction: column; gap: 14px; text-align: center; }
  .footer-links { justify-content: center; }
  .footer-name { font-size: 13px; }

  /* Cookie banner */
  #cookie-banner { padding: 14px 16px; flex-direction: column; align-items: flex-start; gap: 12px; }
  .cookie-text { font-size: 12px; }
  .cookie-actions { width: 100%; justify-content: flex-end; }

  /* h2 section headings */
  h2 { margin-bottom: 16px; }
  .lead { font-size: 16px; margin-bottom: 36px; }
}

/* Small phones */
@media (max-width: 480px) {
  html { scroll-padding-top: 70px; }
  nav { height: 56px; padding: 0 16px; }
  .nav-mobile {
    top: 64px;
    right: 16px;
    width: calc(100vw - 32px);
  }
  .nav-logo { font-size: 16px; }

  #hero { min-height: 100svh; }
  .hero-content { padding: 0 16px; }
  h1 { font-size: clamp(30px, 10vw, 44px); }
  .hero-tags { gap: 6px; }
  .htag { font-size: 11px; padding: 4px 10px; }

  .section { padding: 52px 16px; }
  .section-alt .inner,
  .section-dark .inner { padding: 52px 16px; }

  .skills-grid { grid-template-columns: 1fr; gap: 10px; }
  .skill-block { padding: 18px 16px; }

  .edu-card { padding: 18px 16px; }
  .edu-degree { font-size: 18px; }

  .cookie-actions { flex-direction: column; }
  .cookie-btn { width: 100%; text-align: center; padding: 10px; }

  .cookie-modal-box { padding: 20px 16px 16px; }
  .cookie-modal-actions { flex-direction: column; }
  .cookie-modal-btn { flex: none; }
}

/* ── COOKIE BANNER ── */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: #0d1f33;
  border-top: 2px solid var(--blue2);
  padding: 18px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1);
  box-shadow: 0 -8px 32px rgba(0,0,0,0.25);
}
#cookie-banner.visible { transform: translateY(0); }

.cookie-text {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
  max-width: 600px;
  flex: 1;
}
.cookie-text a {
  color: var(--blue3);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 9px 20px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  letter-spacing: 0.4px;
  transition: background 0.2s, transform 0.15s;
  font-family: var(--sans);
}
.cookie-btn:hover { transform: translateY(-1px); }
.cookie-btn-accept {
  background: var(--blue2);
  color: #fff;
}
.cookie-btn-accept:hover { background: #1e4a94; }
.cookie-btn-reject {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.15);
}
.cookie-btn-reject:hover { background: rgba(255,255,255,0.14); }
.cookie-btn-settings {
  background: transparent;
  color: rgba(255,255,255,0.45);
  border: 1px solid rgba(255,255,255,0.10);
}
.cookie-btn-settings:hover { color: rgba(255,255,255,0.75); background: rgba(255,255,255,0.06); }

/* Cookie Modal */
#cookie-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(4,8,16,0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
#cookie-modal.open { display: flex; }

.cookie-modal-box {
  background: #fff;
  border-radius: 6px;
  max-width: 520px;
  width: 100%;
  padding: 36px 36px 28px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.3);
  animation: modalIn 0.3s cubic-bezier(0.22,1,0.36,1);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}

.cookie-modal-box h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 10px;
}
.cookie-modal-box > p {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 24px;
}

.cookie-option {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 16px 18px;
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.cookie-option-info { flex: 1; }
.cookie-option-info strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
}
.cookie-option-info span {
  font-size: 12px;
  color: var(--text3);
  line-height: 1.5;
}

/* Toggle switch */
.toggle {
  position: relative;
  width: 42px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  inset: 0;
  background: #d0dcea;
  border-radius: 24px;
  cursor: pointer;
  transition: background 0.2s;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  left: 3px; top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.toggle input:checked + .toggle-slider { background: var(--blue2); }
.toggle input:checked + .toggle-slider::before { transform: translateX(18px); }
.toggle input:disabled + .toggle-slider { background: var(--blue3); cursor: not-allowed; opacity: 0.7; }

.cookie-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.cookie-modal-btn {
  flex: 1;
  padding: 11px 16px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: var(--sans);
  transition: background 0.2s, transform 0.15s;
  min-width: 120px;
}
.cookie-modal-btn:hover { transform: translateY(-1px); }
.cookie-modal-btn-save {
  background: var(--blue2);
  color: #fff;
}
.cookie-modal-btn-save:hover { background: #1e4a94; }
.cookie-modal-btn-all {
  background: var(--bg2);
  color: var(--blue);
  border: 1px solid var(--border);
}
.cookie-modal-btn-all:hover { background: var(--bg3); }

@media (max-width: 600px) {
  #cookie-banner { padding: 16px 20px; }
  .cookie-modal-box { padding: 24px 20px 20px; }
}
