/* meetsos.gr — modern portfolio */
:root {
  --bg: #0a0b0f;
  --bg-elevated: #1c2230;
  --bg-card: #161922;
  --bg-tag: #232a3a;
  --border: rgba(255, 255, 255, 0.14);
  --text: #ffffff;
  /* ≥7:1 on --bg / --bg-card (WCAG AAA για κανονικό κείμενο) */
  --text-secondary: #d8dee9;
  --text-muted: #c5cdd9;
  --accent: #5eead4;
  --accent-text: #d4faf5;
  --accent-strong: #2dd4bf;
  --accent-bg: #0d9488;
  --accent-on-bg: #f0fdfa;
  --accent-dim: rgba(45, 212, 191, 0.15);
  --accent-glow: rgba(45, 212, 191, 0.15);
  --link: #b2f5ea;
  --link-hover: #ecfdf5;
  --danger: #fecaca;
  --success: #d9f99d;
  --font: "DM Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --radius: 14px;
  --radius-sm: 8px;
  --header-h: 72px;
  --container: min(1240px, calc(100% - 2.5rem));
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 17px;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

/* Anchor στην πραγματική κορυφή — όχι στο fixed header */
.page-top-anchor {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  scroll-margin-top: 0;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--link-hover); }

.container { width: var(--container); margin-inline: auto; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 1rem;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: var(--accent-strong);
  color: var(--bg);
  border-radius: var(--radius-sm);
}
.skip-link:focus { left: 1rem; }

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s;
}

.site-header.is-scrolled {
  background: rgba(10, 11, 15, 0.92);
  backdrop-filter: blur(12px);
  border-color: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  font-weight: 600;
}
.logo:hover { color: var(--text); }
.logo-mark {
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--accent-on-bg);
  background: var(--accent-bg);
  padding: 0.25rem 0.45rem;
  border-radius: 6px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.site-nav a {
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 500;
}
.site-nav a:hover,
.site-nav a.is-active { color: var(--text); }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.4rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-card);
}

.lang-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.35rem;
  border-radius: 6px;
  line-height: 0;
  opacity: 0.55;
  transition: opacity 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}

.lang-flag:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.lang-flag.is-active {
  opacity: 1;
  box-shadow: 0 0 0 2px var(--accent-dim);
  background: rgba(45, 212, 191, 0.12);
}

.lang-flag .flag-svg {
  display: block;
  width: 26px;
  height: auto;
  border-radius: 3px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.nav-cta {
  padding: 0.5rem 1rem !important;
  background: var(--accent-bg) !important;
  color: #000000 !important;
  border-radius: 999px;
  border: 1px solid #14b8a6 !important;
}
.nav-cta:hover {
  background: #5eead4 !important;
  color: #000000 !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  padding: var(--header-h) 0 4rem;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 70%;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(40px);
  z-index: 0;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin: 0 0 1rem;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}

.hero-subline {
  color: var(--text-secondary);
  max-width: 32ch;
  margin: 0 0 2rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, color 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--accent-strong);
  color: #042f2e;
}
.btn-primary:hover { background: #5eead4; color: #042f2e; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.35); color: var(--text); }
.btn-full { width: 100%; }

.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: 0 24px 48px rgba(0,0,0,0.35);
}

.code-window {
  background: #0d0f14;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 1.25rem;
}
.code-dots {
  display: flex;
  gap: 6px;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--border);
}
.code-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3f4558;
}
.code-dots span:nth-child(1) { background: #f87171; }
.code-dots span:nth-child(2) { background: #fbbf24; }
.code-dots span:nth-child(3) { background: #4ade80; }

.code-window pre {
  margin: 0;
  padding: 1rem 1.1rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.65;
  overflow-x: auto;
}
.tok-keyword { color: #e9d5ff; }
.tok-prop { color: #bfdbfe; }
.tok-string { color: #bbf7d0; }
.tok-number { color: #fde68a; }

.hero-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  text-align: center;
}
.hero-stats strong {
  display: block;
  font-size: 1.35rem;
  color: var(--accent-text);
}
.hero-stats span {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

/* Sections */
.section {
  padding: 5rem 0;
}
.section-alt {
  background: linear-gradient(180deg, transparent, rgba(18, 20, 28, 0.6) 20%, transparent);
}

.section-header {
  max-width: 42rem;
  margin-bottom: 3rem;
}
.section-header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}
.section-lead {
  color: var(--text-secondary);
  margin: 0;
  font-size: 1.05rem;
}

/* About */
.about-intro {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem 2.5rem;
  align-items: center;
  margin-bottom: 3rem;
}

.about-photo {
  margin: 0;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 3px solid var(--accent-bg);
  box-shadow: 0 0 0 4px var(--accent-dim);
  background: #ffffff;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}

.about-intro-text .eyebrow {
  margin-bottom: 0.75rem;
}

.about-intro-text h2 {
  font-size: clamp(1.75rem, 3.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

.about-intro-text .section-lead {
  margin: 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  align-items: start;
}

.meta-list { margin: 0; }
.meta-list > div { margin-bottom: 1.5rem; }
.meta-list dt {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}
.meta-list dd { margin: 0; }

.meta-email-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.meta-email-icon {
  display: inline-flex;
  flex-shrink: 0;
  color: var(--accent-text);
}

.meta-email-icon svg {
  display: block;
  width: 18px;
  height: 18px;
}

.lang-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.lang-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border);
}
.muted { color: var(--text-secondary); font-size: 0.9rem; }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
}
.skill-card h3 {
  margin: 0 0 0.85rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent-text);
}

.tag-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.tag-list li {
  font-size: 0.8rem;
  padding: 0.3rem 0.65rem;
  background: var(--bg-tag);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
}
.tag-list--compact li { font-size: 0.8125rem; }

/* Timeline */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), transparent);
  opacity: 0.35;
}

.timeline-item {
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 1.75rem;
}
.timeline-marker {
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  transition: border-color 0.25s var(--ease);
}
.timeline-card:hover { border-color: rgba(94, 234, 212, 0.25); }

.timeline-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}
.timeline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.timeline-meta time::before {
  content: "·";
  margin-right: 0.5rem;
  opacity: 0.5;
}
.timeline-card p { margin: 0 0 0.85rem; color: var(--text-secondary); font-size: 0.95rem; }

/* Education cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}

.edu-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.edu-period {
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--accent-text);
  margin: 0 0 0.5rem;
}
.edu-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  line-height: 1.35;
}
.edu-school { color: var(--text-secondary); margin: 0 0 0.75rem; font-size: 0.9rem; }
.edu-grade, .edu-thesis { font-size: 0.875rem; color: var(--text-secondary); margin: 0 0 0.75rem; }

.edu-grade-note {
  font-size: 0.75rem;
  font-style: italic;
  font-weight: 400;
  color: var(--text-muted);
}
.edu-thesis a { word-break: break-word; }

/* Portfolio */
.portfolio-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.85rem;
}

.portfolio-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), background 0.25s;
}
.portfolio-card:hover {
  color: var(--text);
  border-color: rgba(94, 234, 212, 0.35);
  transform: translateY(-2px);
  background: var(--bg-elevated);
}

.portfolio-name {
  flex: 1;
  font-weight: 600;
  font-size: 0.95rem;
}
.portfolio-arrow {
  color: var(--accent-text);
  opacity: 1;
  flex-shrink: 0;
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.2s var(--ease), color 0.2s var(--ease);
}
.portfolio-card:hover .portfolio-arrow {
  color: var(--link-hover);
  transform: translate(2px, -2px);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.contact-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
}

.contact-motto {
  font-family: var(--mono);
  font-size: clamp(0.8rem, 1.8vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin: 0;
  white-space: nowrap;
}

.contact-photo {
  margin: 0;
  width: min(320px, 80vw);
  height: min(320px, 80vw);
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 3px solid var(--accent-bg);
  box-shadow: 0 0 0 6px var(--accent-dim);
  background: #ffffff;
}

.contact-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}

.contact-social {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.contact-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  transition: color 0.2s var(--ease);
}

.contact-social-link:hover {
  color: var(--link-hover);
}

.contact-social-icon {
  display: inline-flex;
  flex-shrink: 0;
  color: var(--accent-text);
}

.contact-social-icon svg {
  display: block;
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-secondary);
}
.field input,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(94, 234, 212, 0.5);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.field textarea { resize: vertical; min-height: 120px; }

.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

.form-notice {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  margin: 0 0 1rem;
  font-size: 0.9rem;
}
.form-notice--success {
  background: #14532d;
  color: var(--success);
  border: 1px solid #166534;
}
.form-notice--error {
  background: #450a0a;
  color: var(--danger);
  border: 1px solid #7f1d1d;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  margin-top: 2rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.25rem;
}
.footer-start {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.footer-copy { margin: 0; color: var(--text-secondary); font-size: 0.875rem; }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: center;
}
.footer-legal a,
.footer-legal-btn {
  color: var(--text-secondary);
  font-size: 0.8125rem;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.2s var(--ease);
}
.footer-legal a:hover,
.footer-legal-btn:hover {
  color: var(--link-hover);
}
.footer-social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.25rem;
}
.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  transition: color 0.2s var(--ease);
}

.footer-social-link:hover { color: var(--link-hover); }

.footer-social-icon {
  display: inline-flex;
  color: var(--accent-text);
}

.footer-social-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

/* Legal pages */
.legal-main {
  padding-top: 2rem;
  padding-bottom: 3rem;
}
.legal-page-header {
  margin-bottom: 2.5rem;
  max-width: 52rem;
}
.legal-page-header h1 {
  margin: 0.35rem 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
}
.legal-updated {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.legal-section {
  margin-bottom: 2rem;
  max-width: 52rem;
}
.legal-section h2 {
  font-size: 1.125rem;
  margin: 0 0 0.75rem;
  color: var(--accent-text);
}
.legal-section p,
.legal-section li {
  color: var(--text-secondary);
  line-height: 1.65;
}
.legal-section ul {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}
.legal-section li + li {
  margin-top: 0.35rem;
}
.legal-back {
  margin: 2.5rem 0 0;
}
.site-nav--legal {
  display: flex;
  align-items: center;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  inset: auto 0 0;
  z-index: 200;
  padding: 0.65rem 0;
  background: rgba(10, 11, 15, 0.96);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(12px);
  transform: translateY(100%);
  transition: transform 0.35s var(--ease);
}
.cookie-banner.is-visible {
  transform: translateY(0);
}
.cookie-banner:not(.is-visible) {
  pointer-events: none;
}
.cookie-banner-inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.cookie-banner-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.8125rem;
  line-height: 1.4;
}
.cookie-banner-title {
  flex-shrink: 0;
  font-weight: 600;
  font-size: inherit;
  color: var(--text);
}
.cookie-banner-title::after {
  content: "—";
  margin-left: 0.5rem;
  font-weight: 400;
  color: var(--text-muted);
}
.cookie-banner-desc {
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
}
.cookie-banner-desc a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}
.cookie-banner-accept {
  flex-shrink: 0;
  padding: 0.45rem 1.1rem;
  font-size: 0.8125rem;
}
@media (max-width: 720px) {
  .cookie-banner-line {
    white-space: normal;
    flex-wrap: wrap;
    font-size: 0.75rem;
  }
  .cookie-banner-title::after {
    display: none;
  }
  .cookie-banner-inner {
    flex-wrap: wrap;
    row-gap: 0.5rem;
  }
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--delay, 0s);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .hero-aside { order: -1; }

  .hero-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-subline {
    max-width: 36ch;
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .about-intro {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
  }

  .about-photo {
    margin-inline: auto;
  }

  .contact-visual {
    order: -1;
  }
}

@media (max-width: 480px) {
  .contact-motto {
    white-space: normal;
    font-size: 0.78rem;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem;
    background: rgba(10, 11, 15, 0.98);
    border-bottom: 1px solid var(--border);
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.35s;
  }
  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .site-nav a {
    padding: 0.85rem 0.5rem;
    border-bottom: 1px solid var(--border);
  }
  .lang-switch { text-align: center; }
  .nav-cta { text-align: center; margin-top: 0.5rem; }

  .hero-stats { grid-template-columns: 1fr; gap: 0.5rem; }
  .hero-stats li { display: flex; justify-content: space-between; align-items: baseline; }
}

/* Visually hidden — accessible to screen readers only */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .portfolio-card:hover { transform: none; }
}
