:root {
  --bg: #f7f2ea;
  --paper: #fffaf2;
  --paper-soft: #f2e8dc;
  --ink: #1b1b1d;
  --muted: #68615c;
  --wine: #7d160c;
  --wine-dark: #4f0d08;
  --gold: #c59a5b;
  --line: rgba(125, 22, 12, .14);
  --shadow: 0 24px 70px rgba(46, 25, 18, .13);
  --radius-lg: 32px;
  --radius-md: 20px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(197, 154, 91, .22), transparent 34rem),
    linear-gradient(180deg, #fffaf2 0%, var(--bg) 42%, #efe3d5 100%);
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

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

button {
  font: inherit;
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--wine);
  color: #fff;
  border-radius: 999px;
  transform: translateY(-160%);
  z-index: 1000;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 250, 242, .78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(125, 22, 12, .10);
  transition: box-shadow .25s ease, background .25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 15px 50px rgba(64, 25, 15, .08);
  background: rgba(255, 250, 242, .94);
}

.nav-wrap {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--wine), var(--wine-dark));
  font-weight: 800;
  letter-spacing: -.03em;
  box-shadow: 0 12px 30px rgba(125, 22, 12, .28);
}

.brand strong {
  display: block;
  font-size: 1rem;
  letter-spacing: -.02em;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: .79rem;
  margin-top: 1px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.primary-nav a {
  padding: 10px 13px;
  border-radius: 999px;
  color: #413733;
  font-size: .92rem;
  transition: background .2s ease, color .2s ease;
}

.primary-nav a:hover {
  background: rgba(125, 22, 12, .08);
  color: var(--wine);
}

.primary-nav .nav-cta {
  color: #fff;
  background: var(--wine);
  margin-left: 6px;
}

.primary-nav .nav-cta:hover {
  color: #fff;
  background: var(--wine-dark);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--wine);
  color: #fff;
  cursor: pointer;
  position: relative;
}

.nav-toggle span {
  position: absolute;
  left: 14px;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 20px;
  transition: transform .2s ease, opacity .2s ease;
}

.nav-toggle span:nth-child(1) {
  top: 16px;
}

.nav-toggle span:nth-child(2) {
  top: 23px;
}

.nav-toggle span:nth-child(3) {
  top: 30px;
}

.nav-toggle em {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  padding: 80px 0 44px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 250, 242, .96) 0%, rgba(255, 250, 242, .76) 48%, rgba(125, 22, 12, .12) 100%),
    url("https://gerasimossiasos.gr/wp-content/uploads/EKPA_logo-1152x648-1.webp") no-repeat right 8% top 16% / min(42vw, 520px);
  opacity: .72;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: 58px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--wine);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 800;
}

.eyebrow::before,
.section-kicker::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--gold);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  letter-spacing: -.055em;
  line-height: .96;
}

h1 {
  font-size: clamp(3.6rem, 8vw, 7.7rem);
  max-width: 780px;
  margin: 22px 0 18px;
  color: #150f0d;
}

h2 {
  font-size: clamp(2.2rem, 4vw, 4.8rem);
  margin-bottom: 18px;
}

h3 {
  letter-spacing: -.025em;
  line-height: 1.18;
  margin-bottom: 12px;
}

.hero-role {
  font-size: clamp(1.24rem, 2vw, 1.85rem);
  color: var(--wine);
  font-weight: 700;
  margin-bottom: 22px;
}

.hero-text {
  max-width: 720px;
  color: #443935;
  font-size: clamp(1.04rem, 1.5vw, 1.22rem);
  margin-bottom: 30px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: var(--wine);
  box-shadow: 0 18px 40px rgba(125, 22, 12, .25);
}

.btn-secondary {
  background: rgba(255, 255, 255, .68);
  color: var(--wine);
  border: 1px solid var(--line);
}

.hero-card {
  background: rgba(255, 250, 242, .78);
  border: 1px solid rgba(125, 22, 12, .13);
  border-radius: 42px;
  padding: 16px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.portrait-wrap {
  overflow: hidden;
  border-radius: 30px;
  aspect-ratio: 4 / 4.9;
  background: var(--paper-soft);
}

.portrait-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 14px;
  background: #fff;
  border-radius: 26px;
  border: 1px solid var(--line);
  overflow: hidden;
}

.hero-stats div {
  padding: 20px 12px;
  text-align: center;
}

.hero-stats div + div {
  border-left: 1px solid var(--line);
}

.hero-stats strong {
  display: block;
  color: var(--wine);
  font-size: clamp(1.3rem, 2vw, 2rem);
  line-height: 1;
}

.hero-stats span {
  display: block;
  color: var(--muted);
  font-size: .84rem;
  margin-top: 6px;
}

.section {
  padding: 92px 0;
}

.intro-strip {
  padding: 72px 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 56px;
  align-items: end;
  padding: 46px;
  border-radius: var(--radius-lg);
  background: #1b1513;
  color: #fff;
  box-shadow: var(--shadow);
}

.intro-grid h2 {
  color: #fff;
  font-size: clamp(2rem, 3.5vw, 3.6rem);
}

.intro-grid p {
  color: rgba(255, 255, 255, .76);
  font-size: 1.08rem;
  margin-bottom: 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(260px, .75fr) minmax(0, 1.25fr);
  gap: 74px;
  align-items: start;
}

.sticky-head {
  position: sticky;
  top: 120px;
}

.section-head p {
  color: var(--muted);
  max-width: 620px;
  margin-bottom: 0;
}

.section-head.center {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 42px;
}

.section-head.center .section-kicker {
  justify-content: center;
}

.timeline {
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: var(--line);
}

.timeline-item {
  position: relative;
  padding-left: 56px;
  padding-bottom: 44px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--paper);
  border: 5px solid var(--wine);
  box-shadow: 0 0 0 8px rgba(125, 22, 12, .08);
}

.timeline-item span {
  color: var(--wine);
  font-weight: 900;
  font-size: .86rem;
}

.timeline-item h3 {
  font-size: clamp(1.3rem, 2vw, 1.9rem);
  margin-top: 8px;
}

.timeline-item p {
  color: var(--muted);
  margin-bottom: 0;
}

.leadership {
  background: rgba(255, 250, 242, .58);
  border-block: 1px solid var(--line);
}

.cards {
  display: grid;
  gap: 18px;
}

.cards.four {
  grid-template-columns: repeat(4, 1fr);
}

.card,
.media-card,
.metric-card {
  background: rgba(255, 250, 242, .78);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: 0 18px 45px rgba(46, 25, 18, .07);
  transition: transform .2s ease, box-shadow .2s ease;
}

.card:hover,
.media-card:hover,
.metric-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 60px rgba(46, 25, 18, .11);
}

.card-number {
  display: inline-flex;
  color: var(--gold);
  font-weight: 900;
  margin-bottom: 38px;
}

.card p,
.media-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.research-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px;
  align-items: stretch;
}

.research-grid .section-head {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 380px;
  padding: 44px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #241815, #5c110b);
  color: #fff;
  box-shadow: var(--shadow);
}

.research-grid .section-head p {
  color: rgba(255, 255, 255, .72);
}

.research-panel {
  display: grid;
  gap: 12px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--paper);
  border: 1px solid var(--line);
}

.pill {
  padding: 16px 18px;
  border-radius: 18px;
  background: #fff;
  color: var(--wine);
  font-weight: 800;
  border: 1px solid var(--line);
}

.metric-card {
  display: flex;
  align-items: center;
  gap: 18px;
}

.metric-card strong {
  color: var(--wine);
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
}

.metric-card span {
  color: var(--muted);
  font-weight: 700;
}

.publication-list {
  display: grid;
  gap: 12px;
}

.publication {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 250, 242, .72);
  border: 1px solid var(--line);
  transition: transform .2s ease, background .2s ease;
}

.publication:hover {
  transform: translateX(6px);
  background: #fff;
}

.publication span {
  color: var(--gold);
  font-weight: 900;
}

.publication strong {
  line-height: 1.25;
}

.publication em {
  color: var(--muted);
  font-style: normal;
  font-size: .92rem;
  text-align: right;
}

.media {
  background: #171110;
  color: #fff;
}

.media .section-head p {
  color: rgba(255, 255, 255, .68);
}

.media-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 44px;
  align-items: start;
}

.media-cards {
  display: grid;
  gap: 16px;
}

.media-card {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .12);
}

.media-card small {
  color: var(--gold);
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.media-card h3 {
  color: #fff;
  margin-top: 12px;
}

.media-card a {
  display: inline-flex;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .45);
  margin-top: 8px;
}

.gallery {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  grid-auto-rows: 220px;
  gap: 16px;
}

.gallery-item {
  padding: 0;
  border: 0;
  border-radius: 28px;
  overflow: hidden;
  background: var(--paper-soft);
  cursor: pointer;
  box-shadow: 0 18px 45px rgba(46, 25, 18, .09);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item.wide {
  grid-row: span 2;
}

.gallery-item.tall {
  grid-column: span 2;
}

.contact {
  padding-top: 56px;
}

.contact-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  padding: 46px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #fffaf2, #f1e2cf);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.contact-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.contact-actions {
  display: grid;
  gap: 10px;
  min-width: 260px;
}

.contact-actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 18px;
  border-radius: 999px;
  background: #fff;
  color: var(--wine);
  border: 1px solid var(--line);
  font-weight: 900;
}

.contact-actions a:last-child {
  color: #fff;
  background: var(--wine);
}

.site-footer {
  padding: 38px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.footer-grid strong {
  color: var(--ink);
}

.footer-grid p {
  margin-bottom: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

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

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(16, 10, 8, .88);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-height: 88vh;
  width: min(100%, 1100px);
  object-fit: contain;
  border-radius: 24px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .35);
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--wine);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 1080px) {
  .primary-nav {
    position: fixed;
    inset: 84px 16px auto 16px;
    display: grid;
    gap: 4px;
    padding: 16px;
    background: rgba(255, 250, 242, .98);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
    transform: translateY(-16px);
    opacity: 0;
    pointer-events: none;
    transition: transform .2s ease, opacity .2s ease;
  }

  .primary-nav a {
    padding: 14px 16px;
  }

  .nav-open .primary-nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle {
    display: block;
  }

  .hero-grid,
  .intro-grid,
  .split,
  .research-grid,
  .media-grid,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .sticky-head {
    position: static;
  }

  .cards.four {
    grid-template-columns: repeat(2, 1fr);
  }

  .research-grid .section-head {
    grid-row: auto;
    min-height: auto;
  }

  .publication {
    grid-template-columns: 70px 1fr;
  }

  .publication em {
    grid-column: 2;
    text-align: left;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .brand small {
    display: none;
  }

  .hero {
    padding-top: 48px;
  }

  .hero-grid {
    gap: 34px;
  }

  .hero-actions,
  .hero-stats,
  .cards.four,
  .gallery {
    grid-template-columns: 1fr;
  }

  .hero-stats div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .section {
    padding: 68px 0;
  }

  .intro-grid,
  .research-grid .section-head,
  .contact-card {
    padding: 28px;
  }

  .timeline-item {
    padding-left: 44px;
  }

  .gallery {
    grid-auto-rows: 260px;
  }

  .gallery-item.wide,
  .gallery-item.tall {
    grid-column: auto;
    grid-row: auto;
  }

  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }
}
