:root {
  --bg: #eceef3;
  --bg-soft: #f8fafc;
  --ink: #1e214b;
  --muted: #414464;
  --line: rgba(30, 33, 75, 0.16);
  --card: rgba(248, 250, 252, 0.78);
  --accent: #0098c7;
  --accent-dark: #006189;
  --deep: #414464;
  --deep-2: #1e214b;
  --steel: #a6a8b4;
  --shadow: 0 24px 80px rgba(30, 33, 75, 0.13);
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 999px;
  --max: 1180px;
  --anchor-offset: 104px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 0;
}

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 12% 8%, rgba(0, 152, 199, 0.18), transparent 32rem),
    radial-gradient(circle at 86% 16%, rgba(0, 97, 137, 0.18), transparent 28rem),
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 42%, #d8dce5 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

::selection {
  color: #fff;
  background: var(--accent);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  color: #fff;
  background: var(--ink);
  border-radius: 0 0 1rem 1rem;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

.top-anchor {
  display: block;
  height: 0;
  scroll-margin-top: 0;
  overflow: hidden;
}

.cursor-light {
  position: fixed;
  inset: auto;
  left: var(--x, 50%);
  top: var(--y, 50%);
  width: 28rem;
  height: 28rem;
  pointer-events: none;
  z-index: -1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(0, 152, 199, 0.16), transparent 64%);
  filter: blur(4px);
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 50;
  width: min(calc(100% - 32px), var(--max));
  margin: 16px auto 0;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(248, 250, 252, 0.72);
  backdrop-filter: blur(22px);
  box-shadow: 0 10px 36px rgba(30, 33, 75, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ink), var(--deep));
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text {
  font-size: 0.96rem;
  font-weight: 750;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  padding: 12px 15px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
  border-radius: var(--radius-sm);
  transition: color 0.2s ease, background 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
  background: rgba(30, 33, 75, 0.07);
  outline: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: #fff;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.section {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  padding: 46px 0;
  scroll-margin-top: var(--anchor-offset);
}

main {
  scroll-margin-top: var(--anchor-offset);
}

.hero {
  min-height: calc(100vh - 82px);
  display: grid;
  align-items: center;
  padding-top: 46px;
  scroll-margin-top: 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.72fr);
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}

.hero-copy {
  min-width: 0;
}

.hero-copy h1 {
  margin-bottom: 28px;
  max-width: 760px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 850px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 5.8vw, 5.2rem);
  line-height: 0.94;
  letter-spacing: -0.055em;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2.1rem, 4.4vw, 4.8rem);
  line-height: 0.96;
  letter-spacing: -0.065em;
  text-wrap: balance;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
  line-height: 1.14;
  letter-spacing: -0.035em;
}

p {
  color: var(--muted);
  line-height: 1.72;
}

.hero-lead {
  max-width: 660px;
  margin-bottom: 36px;
  font-size: clamp(1.06rem, 2vw, 1.3rem);
}

.hero-actions,
.contact-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  font-weight: 780;
  font: inherit;
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover,
.contact-link:hover {
  transform: translateY(-2px);
}

.button:focus-visible,
.contact-link:focus-visible {
  outline: 3px solid rgba(0, 152, 199, 0.35);
  outline-offset: 3px;
}

.primary {
  color: #fff;
  background: var(--ink);
  box-shadow: 0 14px 30px rgba(30, 33, 75, 0.22);
}

.primary:hover {
  box-shadow: 0 18px 42px rgba(30, 33, 75, 0.26);
}

.secondary {
  color: var(--ink);
  border: 1px solid var(--line);
  background: rgba(248, 250, 252, 0.68);
}

.secondary:hover {
  background: var(--bg-soft);
}

.telegram-button {
  color: #fff;
  background: #26a5e4;
  box-shadow: 0 14px 30px rgba(38, 165, 228, 0.22);
}

.telegram-button:hover {
  background: #168acd;
  box-shadow: 0 18px 42px rgba(38, 165, 228, 0.28);
}

.setka-button {
  color: #fff;
  background: linear-gradient(135deg, #6100ff, #a647ff);
  box-shadow: 0 14px 30px rgba(97, 0, 255, 0.24);
}

.setka-button:hover {
  background: linear-gradient(135deg, #5200d9, #9637ee);
  box-shadow: 0 18px 42px rgba(97, 0, 255, 0.3);
}

.setka-button:focus-visible {
  outline-color: rgba(166, 71, 255, 0.45);
}

.floating-contact {
  position: fixed;
  right: clamp(18px, 3vw, 34px);
  bottom: clamp(18px, 3vw, 34px);
  z-index: 60;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: linear-gradient(145deg, var(--ink), var(--accent-dark));
  box-shadow: 0 18px 42px rgba(30, 33, 75, 0.28);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px) scale(0.94);
  transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-contact.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.floating-contact:hover {
  transform: translateY(-3px) scale(1);
  box-shadow: 0 22px 52px rgba(30, 33, 75, 0.34);
}

.floating-contact:focus-visible {
  outline: 3px solid rgba(0, 152, 199, 0.35);
  outline-offset: 4px;
}

.floating-contact img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.hero-card {
  position: relative;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 38px;
  color: #fff;
  background:
    radial-gradient(circle at 20% 10%, rgba(0, 152, 199, 0.28), transparent 26rem),
    linear-gradient(145deg, var(--ink), var(--accent-dark));
  box-shadow: var(--shadow);
  isolation: isolate;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 14px;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
}

.portrait-wrap {
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.06);
}

.portrait-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.96) contrast(1.02);
}

.profile-card-content {
  padding: 20px 10px 8px;
}

.profile-card-content h2 {
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: #fff;
}

.profile-card-content p:last-child {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 42px;
}

.section-heading.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 24px;
}

.glass-card,
.service-card,
.impact-card,
.project-card,
.timeline-item,
.skill-group,
.education-card,
.contact-card {
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: 0 18px 60px rgba(30, 33, 75, 0.07);
  backdrop-filter: blur(18px);
}

.profile-statement {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.profile-statement::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent), rgba(0, 97, 137, 0.18));
}

.profile-statement--quote {
  height: 100%;
  min-height: 310px;
  justify-content: center;
  gap: 0;
  padding: clamp(28px, 4vw, 46px);
  background:
    radial-gradient(circle at 16% 12%, rgba(0, 152, 199, 0.16), transparent 12rem),
    linear-gradient(135deg, rgba(248, 250, 252, 0.88), rgba(236, 238, 243, 0.72)),
    var(--card);
}

.profile-statement--quote::after {
  content: "“";
  position: absolute;
  top: clamp(18px, 2.5vw, 34px);
  right: clamp(24px, 4vw, 46px);
  color: rgba(0, 97, 137, 0.12);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(5.5rem, 9vw, 9rem);
  font-weight: 700;
  line-height: 0.7;
  pointer-events: none;
}

.statement-kicker {
  position: absolute;
  top: clamp(28px, 4vw, 46px);
  left: clamp(28px, 4vw, 46px);
  z-index: 1;
  display: inline-flex;
  width: fit-content;
  min-height: 34px;
  align-items: center;
  margin-bottom: 20px;
  padding: 7px 11px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(0, 97, 137, 0.16);
  border-radius: var(--radius-sm);
  background: rgba(0, 152, 199, 0.07);
}

.statement-title {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0;
  padding-top: 16px;
  color: var(--deep-2);
  font-size: clamp(1.8rem, 2.5vw, 2.55rem);
  font-weight: 850;
  line-height: 1.03;
  letter-spacing: -0.045em;
}

.statement-title::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 86px;
  height: 3px;
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, var(--accent), rgba(0, 97, 137, 0.18));
}

.service-grid {
  display: grid;
  gap: 18px;
}

.service-card {
  position: relative;
  padding: 26px;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.2s ease, background 0.2s ease;
}

.service-card:hover,
.skill-group:hover,
.education-card:not(.languages):hover {
  transform: translateY(-4px);
  background: var(--bg-soft);
}

.education-card.languages:hover {
  transform: translateY(-4px);
}

.service-index {
  display: inline-flex;
  margin-bottom: 26px;
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.service-card p:last-child,
.timeline-body p:last-child,
.education-card p:last-child {
  margin-bottom: 0;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.impact-card {
  min-height: 210px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  border-radius: var(--radius-md);
}

.impact-card strong {
  color: var(--deep);
  font-size: clamp(2.1rem, 3.6vw, 3.25rem);
  line-height: 0.9;
  letter-spacing: -0.055em;
  white-space: nowrap;
}

.impact-card span {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.48;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  transition: transform 0.2s ease, background 0.2s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  background: var(--bg-soft);
}

.project-media {
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  padding: 26px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.project-media--eleni {
  background:
    radial-gradient(circle at 24% 18%, rgba(233, 233, 233, 0.34), transparent 9rem),
    radial-gradient(circle at 76% 76%, rgba(190, 165, 131, 0.32), transparent 11rem),
    linear-gradient(135deg, #2c2b29, #796d5d);
}

.project-media--eleni img {
  max-width: 82%;
  max-height: 118px;
}

.project-media--checkpoint {
  padding: 0;
  background: #030817;
}

.project-media--checkpoint img {
  object-fit: contain;
  transform: scale(1.12);
}

.project-media--gamehub {
  position: relative;
  padding: 0;
  background:
    radial-gradient(circle at 12% 14%, rgba(202, 255, 0, 0.62), transparent 8rem),
    radial-gradient(circle at 84% 72%, rgba(255, 108, 44, 0.45), transparent 9rem),
    linear-gradient(135deg, #232323 0%, #10151c 68%, #07090d 100%);
}

.project-media--gamehub::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 38px 38px;
  opacity: 0.28;
}

.gamehub-preview {
  position: relative;
  z-index: 1;
  width: min(72%, 300px);
  min-height: min(62%, 300px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  padding: 30px;
  border-radius: 26px;
  background: rgba(35, 35, 35, 0.72);
  box-shadow: 0 24px 54px rgba(7, 9, 13, 0.32);
  transform: scale(1.2);
  transform-origin: center;
}

.gamehub-preview__main {
  width: 100%;
  height: auto;
  max-height: 74px;
}

.gamehub-preview__partners {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: end;
}

.gamehub-preview__partners img {
  width: 100%;
  height: auto;
  max-height: 54px;
  object-fit: contain;
}

.project-media--prodvizhenie {
  position: relative;
  padding: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.22), transparent 8rem),
    linear-gradient(135deg, #404fdb 0%, #2d38b9 100%);
}

.project-media--prodvizhenie::before {
  content: "";
  position: absolute;
  inset: -12% -18% auto auto;
  width: 88%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 47% 53% 42% 58%;
  box-shadow:
    0 0 0 16px rgba(255, 255, 255, 0.06),
    0 0 0 32px rgba(255, 255, 255, 0.045),
    0 0 0 48px rgba(255, 255, 255, 0.032);
}

.prodvizhenie-preview {
  position: relative;
  z-index: 1;
  width: min(84%, 300px);
  min-height: min(58%, 240px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  color: #fff;
}

.prodvizhenie-logo {
  display: grid;
  gap: 2px;
  color: #fff;
  font-size: clamp(1.45rem, 1.8vw, 2rem);
  font-weight: 920;
  line-height: 0.92;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.prodvizhenie-logo__line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.prodvizhenie-dots {
  display: inline-flex;
  gap: 6px;
}

.prodvizhenie-dots i {
  width: 0.64em;
  height: 0.64em;
  display: block;
  border-radius: 50%;
  background: #fff;
}

.project-content {
  flex: 1;
  min-height: 286px;
  padding: 26px;
  display: flex;
  flex-direction: column;
}

.project-kicker {
  margin-bottom: 12px;
  color: var(--accent-dark);
  font-size: 0.76rem;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-content h3 {
  margin-bottom: 14px;
  line-height: 1.14;
}

.project-content p {
  min-height: 118px;
  color: var(--muted);
}

.project-link {
  width: fit-content;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 760;
  border-radius: var(--radius-sm);
  background: var(--ink);
  transition: transform 0.2s ease, background 0.2s ease;
}

.project-link:hover,
.project-link:focus-visible {
  background: var(--accent-dark);
  outline: none;
  transform: translateY(-2px);
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(24px, 4vw, 42px);
  border-radius: var(--radius-lg);
}

.timeline-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.timeline-meta span {
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.timeline-meta strong {
  font-size: 1rem;
  line-height: 1.4;
}

.timeline-body h3 {
  font-size: clamp(1.35rem, 2.6vw, 2.1rem);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.skill-group {
  padding: clamp(24px, 4vw, 34px);
  border-radius: var(--radius-lg);
  transition: transform 0.2s ease, background 0.2s ease;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tags span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 13px;
  color: var(--deep-2);
  font-size: 0.92rem;
  font-weight: 650;
  border: 1px solid rgba(0, 97, 137, 0.16);
  border-radius: var(--radius-sm);
  background: rgba(0, 97, 137, 0.06);
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.education-card {
  min-height: 230px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: var(--radius-md);
  transition: transform 0.2s ease, background 0.2s ease;
}

.education-card span {
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.education-card h3 {
  margin: auto 0 14px;
}

.languages {
  color: #fff;
  background:
    radial-gradient(circle at 20% 20%, rgba(0, 152, 199, 0.36), transparent 14rem),
    linear-gradient(140deg, var(--deep), var(--ink));
}

.languages span,
.languages h3,
.languages p {
  color: #fff;
}

.languages h3 {
  margin: 22px 0 18px;
  letter-spacing: 0.02em;
  word-spacing: 0.24em;
}

.languages p {
  opacity: 0.72;
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: 32px;
  padding: clamp(28px, 5vw, 54px);
  border-radius: 38px;
  color: #fff;
  background:
    radial-gradient(circle at 86% 20%, rgba(0, 152, 199, 0.34), transparent 22rem),
    linear-gradient(135deg, var(--ink), var(--accent-dark));
  overflow: hidden;
}

.contact-card h2 {
  margin-bottom: 20px;
  color: #fff;
}

.contact-heading-line {
  display: block;
  margin-top: 0.18em;
  white-space: nowrap;
}

.contact-actions {
  align-content: start;
  justify-content: flex-end;
}

.contact-link {
  width: 100%;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  color: #fff;
  font: inherit;
  font-weight: 780;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.contact-link:hover {
  background: rgba(255, 255, 255, 0.16);
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 48px);
  background: rgba(30, 33, 75, 0.38);
  backdrop-filter: blur(12px);
}

.contact-modal[hidden] {
  display: none;
}

.contact-modal__dialog.contact-card {
  position: relative;
  width: min(90vw, 920px);
  aspect-ratio: 3 / 2;
  max-height: calc(100vh - 48px);
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.72fr);
  align-items: center;
  justify-items: center;
  gap: clamp(28px, 4vw, 52px);
  padding: clamp(44px, 5vw, 64px);
  overflow: auto;
}

.contact-modal__dialog > div:first-child {
  width: 100%;
  max-width: 560px;
  justify-self: center;
}

.contact-modal__dialog .contact-actions {
  width: min(100%, 330px);
  flex-direction: column;
  align-self: center;
  align-items: stretch;
  justify-content: center;
  justify-self: center;
  margin-top: 0;
  transform: none;
}

.contact-modal__dialog .contact-link {
  width: 100%;
  min-height: 54px;
}

.contact-modal__dialog h2 {
  max-width: none;
  margin-bottom: 0;
  font-size: clamp(2.35rem, 3.35vw, 3.35rem);
  line-height: 1.03;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1060px) {
  .hero-grid,
  .profile-layout,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .hero-card {
    max-width: 560px;
  }

  .impact-grid,
  .education-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (min-width: 761px) and (max-width: 1060px) {
  .section {
    width: min(calc(100% - 40px), 900px);
    padding: 36px 0;
  }

  .section-heading {
    max-width: 760px;
    margin-inline: auto;
    margin-bottom: 32px;
    text-align: center;
  }

  .hero {
    min-height: auto;
    padding-top: 54px;
    padding-bottom: 56px;
  }

  .hero-grid {
    width: min(100%, 760px);
    margin-inline: auto;
    justify-items: center;
    gap: 34px;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-copy h1 {
    max-width: 720px;
    margin-inline: auto;
  }

  .hero-lead {
    max-width: 640px;
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-card {
    width: min(100%, 560px);
    justify-self: center;
  }

  .impact-card:last-child {
    grid-column: 1 / -1;
    width: calc((100% - 14px) / 2);
    justify-self: center;
  }

  .floating-contact {
    width: 88px;
    height: 88px;
    right: 30px;
    bottom: 30px;
  }

  .floating-contact img {
    width: 50px;
    height: 50px;
  }

  .contact-modal__dialog.contact-card {
    width: min(90vw, 820px);
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.76fr);
    align-items: center;
    gap: 32px;
    padding: 48px 52px;
  }

  .contact-modal__dialog > div:first-child {
    max-width: 430px;
  }

  .contact-modal__dialog .contact-actions {
    width: min(100%, 300px);
  }

  .contact-modal__dialog h2 {
    max-width: none;
    font-size: clamp(2.05rem, 4vw, 2.65rem);
  }
}

@media (min-width: 901px) and (max-width: 1060px) {
  .hero-grid {
    width: min(100%, 720px);
  }

  .hero-card {
    width: min(100%, 540px);
    left: 8px;
  }
}

@media (min-width: 1061px) and (max-width: 1180px) {
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1061px) and (max-width: 1599px) and (max-height: 920px) {
  :root {
    --anchor-offset: 112px;
  }

  .section {
    padding: 28px 0;
  }

  .section-heading {
    max-width: 780px;
    margin-bottom: 24px;
  }

  h1 {
    font-size: clamp(2.9rem, 5vw, 4.6rem);
  }

  h2 {
    max-width: 780px;
    font-size: clamp(2rem, 3.8vw, 3.45rem);
    line-height: 1;
  }

  h3 {
    font-size: 1.12rem;
  }

  p {
    font-size: 0.94rem;
    line-height: 1.5;
  }

  .hero {
    min-height: auto;
    padding-top: 24px;
    padding-bottom: 28px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.52fr);
    gap: clamp(28px, 4vw, 56px);
  }

  .hero-copy h1 {
    max-width: 700px;
    margin-bottom: 18px;
  }

  .hero-lead {
    max-width: 620px;
    margin-bottom: 22px;
    font-size: clamp(1rem, 1.55vw, 1.1rem);
    line-height: 1.5;
  }

  .button {
    min-height: 46px;
    padding: 0 18px;
    font-size: 0.94rem;
  }

  .hero-card {
    max-width: 420px;
    justify-self: end;
    padding: 14px;
    border-radius: 30px;
  }

  .hero-card::after {
    inset: 10px;
    border-radius: 22px;
  }

  .portrait-wrap {
    border-radius: 22px;
  }

  .profile-card-content {
    padding: 14px 8px 6px;
  }

  .profile-card-content h2 {
    margin-bottom: 8px;
    font-size: clamp(1.75rem, 3vw, 2.45rem);
  }

  .profile-card-content p:last-child {
    font-size: 0.9rem;
    line-height: 1.38;
  }

  .profile-layout {
    gap: 18px;
  }

  .profile-statement {
    padding: 22px;
  }

  .profile-statement p {
    font-size: 0.94rem;
    line-height: 1.48;
  }

  .service-grid {
    gap: 12px;
  }

  .service-card {
    padding: 18px 20px;
  }

  .service-index {
    margin-bottom: 12px;
    font-size: 0.72rem;
  }

  .impact-card {
    min-height: 170px;
    padding: 18px;
  }

  .impact-card strong {
    font-size: clamp(2.2rem, 3vw, 2.9rem);
  }

  .impact-card span {
    font-size: 0.82rem;
    line-height: 1.36;
  }

  .projects-grid {
    gap: 14px;
  }

  .project-media {
    padding: 20px;
  }

  .project-media--eleni img {
    max-height: 88px;
  }

  .project-content {
    min-height: 210px;
    padding: 20px;
  }

  .project-content h3 {
    margin-bottom: 10px;
    font-size: 1.14rem;
  }

  .project-content p {
    min-height: 90px;
    font-size: 0.84rem;
    line-height: 1.42;
  }

  .project-link {
    min-height: 38px;
    padding: 0 14px;
    font-size: 0.84rem;
  }

  .timeline {
    gap: 10px;
  }

  .timeline-item {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 22px;
    padding: 16px 20px;
  }

  .timeline-meta {
    gap: 5px;
  }

  .timeline-meta span {
    font-size: 0.68rem;
  }

  .timeline-meta strong {
    font-size: 0.86rem;
    line-height: 1.28;
  }

  .timeline-body h3 {
    margin-bottom: 8px;
    font-size: clamp(1.18rem, 1.9vw, 1.55rem);
  }

  .timeline-body p {
    margin-bottom: 0.42rem;
    font-size: 0.83rem;
    line-height: 1.36;
  }

  .skills-grid,
  .education-grid {
    gap: 14px;
  }

  .skill-group,
  .education-card {
    padding: 20px;
  }

  .tags {
    gap: 8px;
  }

  .tags span {
    min-height: 32px;
    padding: 7px 10px;
    font-size: 0.8rem;
  }
}

@media (min-width: 1600px) {
  :root {
    --max: 1500px;
    --anchor-offset: 142px;
  }

  .site-header {
    top: 22px;
    margin-top: 22px;
    padding: 16px 18px;
    gap: 22px;
    background: rgba(248, 250, 252, 0.8);
    box-shadow: 0 14px 46px rgba(30, 33, 75, 0.1);
  }

  .brand {
    gap: 16px;
  }

  .brand-mark {
    width: 62px;
    height: 62px;
  }

  .brand-text {
    font-size: 1.22rem;
    line-height: 1;
    font-weight: 820;
  }

  .site-nav {
    gap: 10px;
  }

  .site-nav a {
    padding: 19px 25px;
    font-size: 1.12rem;
    font-weight: 740;
    line-height: 1;
  }

  .section {
    padding: 30px 0;
  }

  .profile-section,
  .impact-section,
  .projects-section,
  .experience-section,
  .skills-section,
  .education-section {
    min-height: calc(100vh - 142px);
    display: grid;
    align-content: center;
  }

  .section-heading {
    max-width: 1220px;
    margin-bottom: 28px;
  }

  .section-heading.center {
    max-width: 1160px;
  }

  .hero {
    min-height: auto;
    align-items: start;
    padding-top: clamp(56px, 6vh, 96px);
    padding-bottom: clamp(64px, 7vh, 120px);
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(440px, 0.62fr);
    gap: clamp(72px, 6vw, 120px);
  }

  h1 {
    font-size: clamp(5.35rem, 4.85vw, 6.35rem);
  }

  h2 {
    max-width: 1220px;
    font-size: clamp(3.35rem, 3.15vw, 4.55rem);
    line-height: 1;
    letter-spacing: -0.055em;
  }

  h3 {
    font-size: 1.35rem;
  }

  p {
    font-size: 1.03rem;
    line-height: 1.62;
  }

  .hero-copy h1 {
    max-width: 940px;
  }

  .hero-lead {
    max-width: 820px;
    font-size: 1.38rem;
  }

  .button {
    min-height: 62px;
    padding: 0 30px;
    font-size: 1.06rem;
  }

  .floating-contact {
    width: 92px;
    height: 92px;
    right: 40px;
    bottom: 40px;
  }

  .floating-contact img {
    width: 54px;
    height: 54px;
  }

  .hero-card {
    max-width: 570px;
    justify-self: end;
    padding: 22px;
  }

  .profile-card-content h2 {
    font-size: clamp(2.75rem, 2.6vw, 3.5rem);
  }

  .profile-card-content p:last-child {
    font-size: 1.08rem;
  }

  .profile-layout {
    gap: 28px;
  }

  .profile-statement {
    padding: 34px;
  }

  .profile-statement p {
    font-size: 1.12rem;
    line-height: 1.62;
  }

  .service-grid {
    gap: 16px;
  }

  .service-card {
    padding: 24px 28px;
  }

  .service-index {
    margin-bottom: 18px;
  }

  .impact-grid {
    gap: 16px;
  }

  .impact-card {
    min-height: 230px;
    padding: 26px;
  }

  .impact-card strong {
    font-size: clamp(3rem, 2.45vw, 4rem);
  }

  .impact-card span {
    font-size: 1rem;
  }

  .projects-grid {
    gap: 20px;
  }

  .project-media {
    padding: 30px;
  }

  .project-media--eleni img {
    max-height: 132px;
  }

  .project-content {
    min-height: 270px;
    padding: 30px;
  }

  .timeline {
    gap: 14px;
  }

  .timeline-item {
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 38px;
    padding: 26px 34px;
  }

  .timeline-body h3 {
    font-size: clamp(1.75rem, 1.8vw, 2.15rem);
  }

  .timeline-body p {
    margin-bottom: 0.72rem;
    line-height: 1.52;
  }

  .skills-grid {
    gap: 20px;
  }

  .skill-group {
    padding: 32px;
  }

  .tags span {
    min-height: 42px;
    padding: 9px 15px;
    font-size: 0.98rem;
  }

  .education-grid {
    gap: 20px;
  }

  .education-card {
    min-height: 250px;
    padding: 28px;
  }

  .contact-modal__dialog.contact-card {
    width: min(82vw, 1120px);
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
    gap: 76px;
    padding: 82px;
  }

  .contact-modal__dialog > div:first-child {
    max-width: 610px;
  }

  .contact-modal__dialog .contact-actions {
    width: min(100%, 390px);
  }

  .contact-modal__dialog .contact-link {
    min-height: 60px;
    font-size: 1.08rem;
  }

  .contact-modal__dialog h2 {
    max-width: none;
    font-size: 3.9rem;
  }
}

@media (min-width: 2200px) and (max-width: 3199px) {
  :root {
    --max: 2120px;
    --anchor-offset: 196px;
  }

  .site-header {
    top: 30px;
    margin-top: 30px;
    padding: 24px 28px;
    gap: 34px;
    background: rgba(248, 250, 252, 0.82);
    box-shadow: 0 18px 56px rgba(30, 33, 75, 0.1);
  }

  .brand {
    gap: 22px;
  }

  .brand-mark {
    width: 86px;
    height: 86px;
  }

  .brand-text {
    font-size: 1.72rem;
    line-height: 1;
    font-weight: 820;
  }

  .site-nav {
    gap: 16px;
  }

  .site-nav a {
    padding: 26px 36px;
    font-size: 1.5rem;
    font-weight: 740;
    line-height: 1;
  }

  .section {
    padding: 54px 0;
  }

  .profile-section,
  .impact-section,
  .projects-section,
  .experience-section,
  .skills-section,
  .education-section {
    min-height: calc(100vh - 196px);
    display: grid;
    align-content: center;
  }

  .section-heading {
    max-width: 1540px;
    margin-bottom: 48px;
  }

  .section-heading.center {
    max-width: 1480px;
  }

  h1 {
    max-width: 1320px;
    font-size: 8.25rem;
    line-height: 0.92;
  }

  h2 {
    max-width: 1540px;
    font-size: 5.6rem;
    line-height: 0.98;
    letter-spacing: -0.055em;
  }

  h3 {
    font-size: 1.7rem;
  }

  p {
    font-size: 1.18rem;
    line-height: 1.58;
  }

  .hero {
    min-height: calc(100vh - 176px);
    padding-top: 86px;
    padding-bottom: 88px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(640px, 0.6fr);
    gap: 150px;
  }

  .hero-copy h1 {
    max-width: 1260px;
    margin-bottom: 38px;
  }

  .hero-lead {
    max-width: 1000px;
    margin-bottom: 46px;
    font-size: 1.7rem;
    line-height: 1.48;
  }

  .hero-actions {
    gap: 16px;
  }

  .button {
    min-height: 74px;
    padding: 0 38px;
    font-size: 1.18rem;
  }

  .floating-contact {
    width: 116px;
    height: 116px;
    right: 56px;
    bottom: 56px;
  }

  .floating-contact img {
    width: 68px;
    height: 68px;
  }

  .hero-card {
    max-width: 760px;
    padding: 28px;
    border-radius: 52px;
  }

  .hero-card::after {
    inset: 18px;
    border-radius: 38px;
  }

  .portrait-wrap {
    border-radius: 38px;
  }

  .profile-card-content {
    padding: 34px 16px 14px;
  }

  .profile-card-content h2 {
    font-size: 4.25rem;
  }

  .profile-card-content p:last-child {
    font-size: 1.3rem;
    line-height: 1.42;
  }

  .profile-layout {
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
    gap: 40px;
  }

  .profile-statement {
    padding: 52px;
  }

  .profile-statement p {
    font-size: 1.32rem;
    line-height: 1.58;
  }

  .service-grid {
    gap: 24px;
  }

  .service-card {
    padding: 38px 44px;
  }

  .service-index {
    margin-bottom: 24px;
    font-size: 0.9rem;
  }

  .impact-grid {
    gap: 24px;
  }

  .impact-card {
    min-height: 430px;
    padding: 38px;
  }

  .impact-card strong {
    font-size: 5.2rem;
  }

  .impact-card span {
    font-size: 1.2rem;
    line-height: 1.42;
  }

  .projects-grid {
    gap: 28px;
  }

  .project-media {
    padding: 46px;
  }

  .project-media--eleni img {
    max-height: 190px;
  }

  .project-content {
    min-height: 360px;
    padding: 46px;
  }

  .project-content h3 {
    margin-bottom: 22px;
    font-size: 2.15rem;
  }

  .project-link {
    min-height: 56px;
    padding: 0 24px;
    font-size: 1.08rem;
  }

  .timeline {
    gap: 24px;
  }

  .timeline-item {
    grid-template-columns: 400px minmax(0, 1fr);
    gap: 64px;
    padding: 40px 54px;
  }

  .timeline-meta span {
    font-size: 0.94rem;
  }

  .timeline-meta strong {
    font-size: 1.22rem;
  }

  .timeline-body h3 {
    font-size: 2.55rem;
  }

  .timeline-body p {
    margin-bottom: 0.86rem;
    font-size: 1.16rem;
    line-height: 1.48;
  }

  .skills-grid {
    gap: 28px;
  }

  .skill-group {
    padding: 58px;
  }

  .tags {
    gap: 14px;
  }

  .tags span {
    min-height: 58px;
    padding: 13px 22px;
    font-size: 1.16rem;
  }

  .education-grid {
    gap: 28px;
  }

  .education-card {
    min-height: 430px;
    padding: 42px;
  }

  .education-card span {
    font-size: 0.94rem;
  }

  .education-card h3 {
    font-size: 1.78rem;
  }

  .languages h3 {
    margin: 34px 0 24px;
  }

  .contact-modal__dialog.contact-card {
    width: min(78vw, 1240px);
    grid-template-columns: minmax(0, 1fr) minmax(380px, 0.74fr);
    gap: 82px;
    padding: 82px;
  }

  .contact-modal__dialog > div:first-child {
    max-width: 640px;
  }

  .contact-modal__dialog .contact-actions {
    width: min(100%, 410px);
  }

  .contact-modal__dialog .contact-link {
    min-height: 60px;
    font-size: 1.08rem;
  }

  .contact-modal__dialog h2 {
    max-width: none;
    font-size: 4.05rem;
  }
}

@media (min-width: 3200px) {
  :root {
    --max: 3040px;
    --anchor-offset: 276px;
  }

  .site-header {
    top: 44px;
    margin-top: 44px;
    padding: 36px 44px;
    gap: 56px;
    background: rgba(248, 250, 252, 0.84);
    box-shadow: 0 26px 86px rgba(30, 33, 75, 0.11);
  }

  .brand {
    gap: 34px;
  }

  .brand-mark {
    width: 132px;
    height: 132px;
  }

  .brand-text {
    font-size: 2.48rem;
    line-height: 1;
    font-weight: 820;
  }

  .site-nav {
    gap: 28px;
  }

  .site-nav a {
    padding: 38px 56px;
    font-size: 2.25rem;
    font-weight: 740;
    line-height: 1;
  }

  .section {
    padding: 86px 0;
  }

  .profile-section,
  .impact-section,
  .projects-section,
  .experience-section,
  .skills-section,
  .education-section {
    min-height: calc(100vh - 276px);
    display: grid;
    align-content: center;
  }

  .section-heading {
    max-width: 2260px;
    margin-bottom: 72px;
  }

  .section-heading.center {
    max-width: 2120px;
  }

  h1 {
    max-width: 1900px;
    font-size: 12.6rem;
    line-height: 0.9;
  }

  h2 {
    max-width: 2260px;
    font-size: 8.2rem;
    line-height: 0.98;
    letter-spacing: -0.055em;
  }

  h3 {
    font-size: 2.28rem;
  }

  p {
    font-size: 1.48rem;
    line-height: 1.56;
  }

  .hero {
    min-height: calc(100vh - 248px);
    padding-top: 132px;
    padding-bottom: 130px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(880px, 0.58fr);
    gap: 230px;
  }

  .hero-copy h1 {
    max-width: 1820px;
    margin-bottom: 58px;
  }

  .hero-lead {
    max-width: 1440px;
    margin-bottom: 70px;
    font-size: 2.2rem;
    line-height: 1.48;
  }

  .hero-actions {
    gap: 24px;
  }

  .button {
    min-height: 94px;
    padding: 0 54px;
    font-size: 1.48rem;
  }

  .floating-contact {
    width: 154px;
    height: 154px;
    right: 82px;
    bottom: 82px;
  }

  .floating-contact img {
    width: 92px;
    height: 92px;
  }

  .hero-card {
    max-width: 1030px;
    padding: 38px;
    border-radius: 66px;
  }

  .hero-card::after {
    inset: 24px;
    border-radius: 48px;
  }

  .portrait-wrap {
    border-radius: 48px;
  }

  .profile-card-content {
    padding: 48px 20px 20px;
  }

  .profile-card-content h2 {
    font-size: 5.9rem;
  }

  .profile-card-content p:last-child {
    font-size: 1.72rem;
    line-height: 1.42;
  }

  .profile-layout {
    grid-template-columns: minmax(0, 0.76fr) minmax(0, 1.24fr);
    gap: 58px;
  }

  .profile-statement {
    padding: 78px;
  }

  .profile-statement p {
    font-size: 1.72rem;
    line-height: 1.56;
  }

  .service-grid {
    gap: 34px;
  }

  .service-card {
    padding: 56px 64px;
  }

  .service-index {
    margin-bottom: 34px;
    font-size: 1.1rem;
  }

  .impact-grid {
    gap: 42px;
  }

  .impact-card {
    min-height: 760px;
    padding: 76px 58px;
    align-items: center;
    justify-content: center;
    gap: 86px;
    text-align: center;
  }

  .impact-card strong {
    width: 100%;
    font-size: 7.4rem;
    text-align: center;
  }

  .impact-card span {
    max-width: 480px;
    font-size: 1.58rem;
    line-height: 1.44;
    text-align: center;
  }

  .projects-grid {
    gap: 42px;
  }

  .project-media {
    padding: 68px;
  }

  .project-media--eleni img {
    max-height: 270px;
  }

  .project-content {
    min-height: 520px;
    padding: 68px;
  }

  .project-content h3 {
    margin-bottom: 30px;
    font-size: 3.3rem;
  }

  .project-content p {
    font-size: 1.48rem;
    line-height: 1.56;
  }

  .project-link {
    min-height: 78px;
    padding: 0 34px;
    font-size: 1.34rem;
  }

  .timeline {
    gap: 34px;
  }

  .timeline-item {
    grid-template-columns: 570px minmax(0, 1fr);
    gap: 88px;
    padding: 58px 76px;
  }

  .timeline-meta span {
    font-size: 1.12rem;
  }

  .timeline-meta strong {
    font-size: 1.55rem;
  }

  .timeline-body h3 {
    font-size: 3.55rem;
  }

  .timeline-body p {
    margin-bottom: 1.08rem;
    font-size: 1.45rem;
    line-height: 1.5;
  }

  .skills-grid {
    gap: 42px;
  }

  .skill-group {
    min-height: 390px;
    padding: 92px 108px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 38px;
    text-align: center;
  }

  .skill-group h3 {
    margin: 0;
    font-size: 2.72rem;
  }

  .tags {
    justify-content: center;
    gap: 20px;
  }

  .tags span {
    min-height: 86px;
    padding: 20px 34px;
    justify-content: center;
    text-align: center;
    font-size: 1.54rem;
  }

  .education-grid {
    gap: 44px;
  }

  .education-card {
    min-height: 760px;
    padding: 72px 66px;
    align-items: center;
    justify-content: center;
    gap: 44px;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 32px 90px rgba(30, 33, 75, 0.11);
  }

  .education-card::before {
    content: "";
    width: 112px;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), var(--accent-dark));
    box-shadow: 0 18px 42px rgba(0, 152, 199, 0.26);
  }

  .education-card span {
    font-size: 1.24rem;
    letter-spacing: 0.16em;
  }

  .education-card h3 {
    max-width: 560px;
    margin: 0;
    font-size: 3.15rem;
    line-height: 1.05;
  }

  .education-card p {
    max-width: 540px;
    font-size: 1.5rem;
    line-height: 1.46;
  }

  .languages::before {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.12);
  }

  .languages h3 {
    margin: 0;
    font-size: 3.45rem;
    line-height: 1;
  }

  .languages p {
    font-size: 1.48rem;
    line-height: 1.62;
    opacity: 0.86;
  }

  .contact-modal__dialog.contact-card {
    width: min(76vw, 1460px);
    grid-template-columns: minmax(0, 1fr) minmax(470px, 0.74fr);
    gap: 100px;
    padding: 110px;
  }

  .contact-modal__dialog > div:first-child {
    max-width: 780px;
  }

  .contact-modal__dialog .contact-actions {
    width: min(100%, 500px);
  }

  .contact-modal__dialog h2 {
    max-width: none;
    font-size: 4.95rem;
  }

  .contact-modal__dialog .contact-link {
    min-height: 78px;
    font-size: 1.34rem;
  }
}

@media (min-width: 3200px) and (max-height: 1700px) {
  :root {
    --max: 2640px;
    --anchor-offset: 210px;
  }

  .site-header {
    top: 34px;
    margin-top: 34px;
    padding: 28px 34px;
    gap: 42px;
  }

  .brand {
    gap: 26px;
  }

  .brand-mark {
    width: 96px;
    height: 96px;
  }

  .brand-text {
    font-size: 1.88rem;
  }

  .site-nav {
    gap: 18px;
  }

  .site-nav a {
    padding: 28px 40px;
    font-size: 1.68rem;
  }

  .section {
    padding: 54px 0;
  }

  .profile-section,
  .impact-section,
  .projects-section,
  .experience-section,
  .skills-section,
  .education-section {
    min-height: calc(100vh - 210px);
  }

  .section-heading {
    max-width: 1760px;
    margin-bottom: 50px;
  }

  .section-heading.center {
    max-width: 1660px;
  }

  h1 {
    max-width: 1420px;
    font-size: 9.1rem;
    line-height: 0.9;
  }

  h2 {
    max-width: 1760px;
    font-size: 6rem;
    line-height: 0.98;
  }

  h3 {
    font-size: 1.86rem;
  }

  p {
    font-size: 1.24rem;
    line-height: 1.52;
  }

  .hero {
    min-height: calc(100vh - 190px);
    padding-top: 78px;
    padding-bottom: 82px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(690px, 0.58fr);
    gap: 168px;
  }

  .hero-copy h1 {
    max-width: 1360px;
    margin-bottom: 40px;
  }

  .hero-lead {
    max-width: 1040px;
    margin-bottom: 48px;
    font-size: 1.72rem;
    line-height: 1.46;
  }

  .button {
    min-height: 76px;
    padding: 0 40px;
    font-size: 1.18rem;
  }

  .floating-contact {
    width: 116px;
    height: 116px;
    right: 58px;
    bottom: 58px;
  }

  .floating-contact img {
    width: 68px;
    height: 68px;
  }

  .hero-card {
    max-width: 790px;
    padding: 28px;
    border-radius: 52px;
  }

  .hero-card::after {
    inset: 18px;
    border-radius: 38px;
  }

  .portrait-wrap {
    border-radius: 38px;
  }

  .profile-card-content {
    padding: 36px 16px 14px;
  }

  .profile-card-content h2 {
    font-size: 4.25rem;
  }

  .profile-card-content p:last-child {
    font-size: 1.3rem;
  }

  .profile-layout {
    grid-template-columns: minmax(0, 0.76fr) minmax(0, 1.24fr);
    gap: 42px;
  }

  .profile-statement {
    padding: 54px;
  }

  .profile-statement p {
    font-size: 1.3rem;
  }

  .service-card {
    padding: 38px 46px;
  }

  .impact-grid {
    gap: 26px;
  }

  .impact-card {
    min-height: 430px;
    padding: 42px;
    gap: 42px;
  }

  .impact-card strong {
    font-size: 5.35rem;
  }

  .impact-card span {
    max-width: 380px;
    font-size: 1.1rem;
  }

  .projects-grid {
    gap: 28px;
  }

  .project-media {
    padding: 48px;
  }

  .project-media--eleni img {
    max-height: 190px;
  }

  .project-content {
    min-height: 360px;
    padding: 46px;
  }

  .project-content h3 {
    margin-bottom: 22px;
    font-size: 2.15rem;
  }

  .project-content p {
    font-size: 1.18rem;
    line-height: 1.5;
  }

  .project-link {
    min-height: 56px;
    padding: 0 24px;
    font-size: 1.08rem;
  }

  .timeline {
    gap: 28px;
  }

  .timeline-item {
    grid-template-columns: 500px minmax(0, 1fr);
    gap: 72px;
    padding: 46px 60px;
  }

  .timeline-body h3 {
    font-size: 3rem;
  }

  .timeline-body p {
    font-size: 1.22rem;
    line-height: 1.46;
  }

  .skills-grid {
    gap: 28px;
  }

  .skill-group {
    min-height: 320px;
    padding: 66px;
    gap: 28px;
  }

  .skill-group h3 {
    font-size: 2.15rem;
  }

  .tags span {
    min-height: 60px;
    padding: 14px 24px;
    font-size: 1.12rem;
  }

  .education-grid {
    gap: 28px;
  }

  .education-card {
    min-height: 430px;
    padding: 46px;
    gap: 28px;
  }

  .education-card::before {
    width: 88px;
    height: 6px;
  }

  .education-card span {
    font-size: 0.98rem;
  }

  .education-card h3 {
    font-size: 2.05rem;
  }

  .education-card p {
    font-size: 1.12rem;
  }

  .languages h3 {
    font-size: 2.5rem;
  }

  .contact-modal__dialog.contact-card {
    width: min(78vw, 1240px);
    grid-template-columns: minmax(0, 1fr) minmax(380px, 0.74fr);
    gap: 78px;
    padding: 82px;
  }

  .contact-modal__dialog > div:first-child {
    max-width: 640px;
  }

  .contact-modal__dialog .contact-actions {
    width: min(100%, 410px);
  }

  .contact-modal__dialog h2 {
    max-width: none;
    font-size: 4.05rem;
  }
}

@media (max-width: 900px) {
  :root {
    --anchor-offset: 92px;
  }

  .site-header {
    top: 12px;
    width: min(calc(100% - 32px), var(--max));
    margin-top: 12px;
    padding: 8px;
  }

  .brand-text {
    max-width: min(190px, calc(100vw - 164px));
  }

  .nav-toggle {
    display: block;
  }

  .floating-contact {
    width: 64px;
    height: 64px;
    right: 20px;
    bottom: 20px;
  }

  .floating-contact img {
    width: 36px;
    height: 36px;
  }

  .site-nav {
    position: fixed;
    left: 16px;
    right: 16px;
    top: 76px;
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: rgba(248, 250, 252, 0.96);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav-open .site-nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 15px;
  }
}

@media (max-width: 760px) {
  .section {
    width: min(calc(100% - 32px), var(--max));
    padding: 35px 0;
    scroll-margin-top: var(--anchor-offset);
  }

  .floating-contact {
    width: 52px;
    height: 52px;
    right: 14px;
    bottom: max(14px, env(safe-area-inset-bottom));
  }

  .floating-contact img {
    width: 30px;
    height: 30px;
  }

  .hero {
    padding-top: 36px;
    scroll-margin-top: 86px;
  }

  h1 {
    font-size: clamp(2.55rem, 11vw, 4.2rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
    overflow-wrap: break-word;
  }

  h2 {
    font-size: clamp(1.95rem, 9vw, 2.9rem);
    line-height: 1.04;
    letter-spacing: -0.04em;
    overflow-wrap: break-word;
  }

  h3 {
    letter-spacing: -0.025em;
  }

  p {
    line-height: 1.64;
  }

  .section-heading {
    margin-bottom: 24px;
  }

  .hero-copy h1 {
    margin-bottom: 22px;
  }

  .hero-lead {
    margin-bottom: 28px;
    font-size: 1rem;
  }

  .hero-actions .button {
    width: 100%;
  }

  .button {
    min-height: 50px;
    padding: 0 18px;
    font-size: 0.96rem;
  }

  .hero-card {
    order: -1;
    padding: 14px;
    border-radius: 30px;
  }

  .hero-card::after {
    inset: 10px;
    border-radius: 24px;
  }

  .portrait-wrap {
    border-radius: 22px;
  }

  .profile-card-content {
    padding: 18px 8px 6px;
  }

  .profile-card-content h2 {
    font-size: clamp(1.75rem, 9vw, 2.5rem);
  }

  .profile-statement,
  .service-card,
  .project-content,
  .skill-group,
  .education-card {
    padding: 22px;
  }

  .impact-grid,
  .projects-grid,
  .skills-grid,
  .education-grid {
    grid-template-columns: 1fr;
  }

  .project-card--checkpoint {
    width: 100%;
  }

  .project-media {
    padding: 22px;
  }

  .project-media--eleni img {
    max-height: 106px;
  }

  .project-content {
    min-height: auto;
  }

  .project-content p {
    min-height: auto;
  }

  .impact-card {
    min-height: 170px;
    padding: 20px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px;
  }

  .contact-card {
    gap: 24px;
    padding: 24px 18px;
    border-radius: 30px;
  }

  .contact-modal {
    align-items: center;
    padding: 14px;
  }

  .contact-modal__dialog.contact-card {
    width: 100%;
    aspect-ratio: auto;
    max-height: calc(100vh - 28px);
    grid-template-columns: 1fr;
    align-items: start;
    gap: 24px;
    padding: 30px 20px 24px;
  }

  .contact-modal__dialog h2 {
    font-size: clamp(1.78rem, 7.1vw, 2.28rem);
    line-height: 1.05;
  }

  .contact-modal__dialog .contact-actions {
    align-self: stretch;
    margin-top: 0;
    transform: none;
  }

  .contact-card h2 {
    margin-bottom: 0;
  }

  .contact-link {
    width: 100%;
  }

}

@media (max-width: 380px) {
  .site-header {
    width: min(calc(100% - 24px), var(--max));
  }

  .floating-contact {
    width: 48px;
    height: 48px;
    right: 12px;
  }

  .floating-contact img {
    width: 28px;
    height: 28px;
  }

  .site-nav {
    left: 12px;
    right: 12px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .nav-toggle {
    width: 42px;
    height: 42px;
  }

  .brand-text {
    font-size: 0.9rem;
    max-width: calc(100vw - 156px);
  }

  .section {
    width: min(calc(100% - 24px), var(--max));
  }

  h1 {
    font-size: clamp(2.35rem, 11vw, 3.2rem);
  }

  .impact-card strong {
    font-size: clamp(2rem, 12vw, 2.7rem);
  }

  .profile-statement,
  .service-card,
  .project-content,
  .skill-group,
  .education-card,
  .timeline-item {
    padding: 20px;
  }

  .contact-card {
    padding: 22px 16px;
  }

  .contact-modal__dialog.contact-card {
    padding: 26px 16px 22px;
  }

  .contact-heading-line {
    font-size: 0.92em;
  }

}

.projects-section {
  padding-bottom: clamp(70px, 5.5vw, 88px);
}

.projects-section .section-heading {
  max-width: min(100%, 980px);
}

@media (min-width: 1600px) {
  .projects-section .section-heading {
    max-width: min(100%, 1280px);
  }

  .projects-section {
    padding-bottom: clamp(76px, 4vh, 104px);
  }
}

@media (max-width: 1060px) {
  .projects-section .section-heading {
    max-width: 100%;
  }

  .projects-section {
    padding-bottom: 72px;
  }
}

@media (max-width: 760px) {
  .projects-section {
    padding-bottom: 58px;
  }
}

@media (min-width: 1181px) and (max-width: 1599px) and (max-height: 800px) {
  .projects-section .projects-grid {
    width: min(100%, 1040px);
    margin-inline: auto;
    gap: 12px;
  }

  .projects-section .project-content {
    min-height: 190px;
    padding: 16px;
  }

  .projects-section .project-kicker {
    margin-bottom: 8px;
    font-size: 0.68rem;
  }

  .projects-section .project-content h3 {
    margin-bottom: 8px;
    font-size: 1rem;
  }

  .projects-section .project-content p {
    min-height: 70px;
    font-size: 0.76rem;
    line-height: 1.34;
  }

  .projects-section .project-link {
    min-height: 34px;
    padding: 0 12px;
    font-size: 0.76rem;
  }
}

@media (min-width: 1600px) and (max-width: 2199px) and (max-height: 1000px) {
  .projects-section .projects-grid {
    width: min(100%, 1320px);
    margin-inline: auto;
    gap: 16px;
  }

  .projects-section .project-content {
    min-height: 220px;
    padding: 20px;
  }

  .projects-section .project-kicker {
    margin-bottom: 10px;
    font-size: 0.72rem;
  }

  .projects-section .project-content h3 {
    margin-bottom: 10px;
    font-size: 1.14rem;
  }

  .projects-section .project-content p {
    min-height: 86px;
    font-size: 0.84rem;
    line-height: 1.42;
  }

  .projects-section .project-link {
    min-height: 38px;
    padding: 0 14px;
    font-size: 0.84rem;
  }
}

@media (min-width: 1061px) {
  .projects-section {
    scroll-margin-top: calc(var(--anchor-offset) - clamp(28px, 2.2vw, 80px));
  }
}

.profile-statement .statement-title {
  max-width: 560px;
  margin: 0;
  font-size: clamp(1.8rem, 2.5vw, 2.55rem);
  line-height: 1.03;
}

@media (min-width: 1061px) and (max-width: 1599px) and (max-height: 920px) {
  .profile-statement--quote {
    min-height: 220px;
    padding: 22px;
  }

  .statement-kicker {
    top: 22px;
    left: 22px;
    min-height: 30px;
    margin-bottom: 12px;
    padding: 6px 10px;
    font-size: 0.7rem;
  }

  .profile-statement .statement-title {
    font-size: clamp(1.45rem, 2vw, 2.05rem);
    padding-top: 12px;
  }

}

@media (min-width: 1600px) {
  .profile-statement--quote {
    min-height: 350px;
  }

  .profile-statement .statement-title {
    max-width: 660px;
    font-size: clamp(2.1rem, 2.2vw, 3rem);
  }

}

@media (max-width: 760px) {
  .profile-statement--quote {
    height: auto;
    min-height: auto;
    justify-content: flex-start;
  }

  .statement-kicker {
    position: relative;
    top: auto;
    left: auto;
    margin-bottom: 18px;
  }

  .profile-statement .statement-title {
    max-width: 100%;
    font-size: clamp(1.55rem, 8vw, 2.1rem);
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
