/* Fonts */

@font-face {
  font-family: "Montserrat";
  src: url("../font/Montserrat-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../font/Montserrat-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../font/Montserrat-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("../font/Lora-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("../font/Lora-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* Montserrat and Lora have no Greek glyphs; these faces fill in Greek only (they must come last) */
@font-face {
  font-family: "Montserrat";
  src: url("../font/Manrope-Greek.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: "Lora";
  src: url("../font/Literata-Greek.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: "Lora";
  src: url("../font/Literata-Italic-Greek.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

/* Tokens */

:root {
  --blue: #4e93e6;
  --violet: #864be3;
  --accent: #5b6fe4;
  --gradient: linear-gradient(135deg, var(--blue), var(--violet));

  --bg: #ffffff;
  --bg-alt: #f5f6fb;
  --surface: #ffffff;
  --ink: #1b2032;
  --muted: #5d6579;
  --border: #e3e6f0;
  --track: #e8ebf5;
  --shadow: 0 1px 2px rgb(27 32 50 / 0.04), 0 8px 24px rgb(27 32 50 / 0.06);
  --shadow-lg: 0 2px 4px rgb(27 32 50 / 0.05), 0 18px 40px rgb(27 32 50 / 0.1);

  --font-sans: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Lora", Georgia, "Times New Roman", serif;

  --radius: 16px;
  --radius-sm: 10px;
  --container: 1120px;
  --header-h: 72px;

  color-scheme: light;
}

:root[data-theme="dark"] {
  --blue: #6aa8ff;
  --violet: #b18cff;
  --accent: #a990ff;
  --bg: #0b0b10;
  --bg-alt: #111118;
  --surface: #17171f;
  --ink: #ececf3;
  --muted: #9f9fb2;
  --border: #26262f;
  --track: #2a2a35;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 8px 24px rgb(0 0 0 / 0.3);
  --shadow-lg: 0 2px 4px rgb(0 0 0 / 0.4), 0 18px 40px rgb(0 0 0 / 0.45);
  color-scheme: dark;
}

.i18n-pending body {
  opacity: 0;
}

/* Base */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

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

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
}

p,
ul,
ol,
dl,
dd {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.2em;
}

.icon .fill,
symbol .fill {
  fill: currentColor;
  stroke: none;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.5rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font: 600 0.9rem/1 var(--font-sans);
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s, opacity 0.2s;
}

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

.btn:disabled {
  opacity: 0.6;
  cursor: progress;
  transform: none;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 8px 20px rgb(91 111 228 / 0.3);
}

.btn-primary:hover {
  box-shadow: 0 12px 28px rgb(91 111 228 / 0.4);
}

.btn-light {
  background: #fff;
  color: #3d3a8f;
  box-shadow: 0 10px 30px rgb(20 10 60 / 0.25);
}

.btn-ghost {
  border-color: rgb(255 255 255 / 0.6);
  color: #fff;
}

.btn-ghost:hover {
  background: rgb(255 255 255 / 0.12);
}

/* Header */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  color: #fff;
  transition: background-color 0.3s, box-shadow 0.3s, color 0.3s;
}

.site-header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--border);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
}

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

.brand {
  color: inherit;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand span {
  color: var(--violet);
}

.site-header:not(.is-scrolled) .brand span {
  color: #fff;
  opacity: 0.7;
}

.brand:hover {
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  color: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0.85;
  transition: opacity 0.2s, background-color 0.2s;
}

.nav-links a:hover,
.nav-links a[aria-current="true"] {
  opacity: 1;
  text-decoration: none;
  background: rgb(255 255 255 / 0.14);
}

.site-header.is-scrolled .nav-links a:hover,
.site-header.is-scrolled .nav-links a[aria-current="true"] {
  background: var(--bg-alt);
  color: var(--accent);
}

.nav-links .nav-cta {
  margin-left: 0.5rem;
  border: 2px solid currentColor;
  opacity: 1;
}

.nav-tools {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.75rem;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: inherit;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.icon-btn:hover {
  background: rgb(255 255 255 / 0.14);
}

.site-header.is-scrolled .icon-btn:hover {
  background: var(--bg-alt);
}

.theme-toggle .icon-sun,
[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

.lang-switch {
  display: flex;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 600;
}

.lang-switch span {
  opacity: 0.4;
}

.lang-switch button {
  padding: 0.4rem 0.45rem;
  border: 0;
  border-radius: 6px;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: 0.04em;
  opacity: 0.6;
  cursor: pointer;
  transition: opacity 0.2s;
}

.lang-switch button:hover,
.lang-switch button[aria-pressed="true"] {
  opacity: 1;
}

.lang-switch button[aria-pressed="true"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.site-header.is-scrolled .lang-switch button[aria-pressed="true"] {
  color: var(--accent);
}

.nav-links {
  margin-left: auto;
}

.nav-toggle {
  display: none;
  font-size: 1.4rem;
}

.nav-toggle .icon-close,
.nav-toggle[aria-expanded="true"] .icon-open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

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

  .nav-tools {
    margin-left: auto;
  }

  .nav-links {
    position: absolute;
    top: var(--header-h);
    left: 1rem;
    right: 1rem;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--ink);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  }

  .nav-links.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-links a {
    width: 100%;
    padding: 0.75rem 1rem;
  }

  .nav-links a:hover,
  .nav-links a[aria-current="true"] {
    background: var(--bg-alt);
    color: var(--accent);
  }

  .nav-links .nav-cta {
    justify-content: center;
    margin: 0.5rem 0 0;
    border: 0;
    background: var(--gradient);
    color: #fff;
  }
}

/* Hero */

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + 2rem) 0 5rem;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(135deg, #3f7fdc 0%, #6a5ae0 55%, #8a4ae0 100%);
  color: #fff;
  text-align: center;
}

[data-theme="dark"] .hero {
  background: linear-gradient(135deg, #141a3d 0%, #211a4a 55%, #33185a 100%);
}

[data-theme="dark"] .blob {
  opacity: 0.35;
}

[data-theme="dark"] .btn-light {
  background: var(--ink);
  color: #241d4f;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgb(255 255 255 / 0.14) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}

.blob {
  position: absolute;
  width: 46vmax;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  will-change: transform;
}

.blob-1 {
  top: -18vmax;
  left: -12vmax;
  background: #5fb2ff;
  animation: float-1 18s ease-in-out infinite alternate;
}

.blob-2 {
  right: -16vmax;
  bottom: -20vmax;
  background: #b06bff;
  animation: float-2 22s ease-in-out infinite alternate;
}

.blob-3 {
  top: 30%;
  left: 40%;
  width: 26vmax;
  background: #ff8ac9;
  opacity: 0.25;
  animation: float-3 26s ease-in-out infinite alternate;
}

@keyframes float-1 {
  to {
    transform: translate(14vmax, 10vmax) scale(1.1);
  }
}

@keyframes float-2 {
  to {
    transform: translate(-12vmax, -8vmax) scale(1.15);
  }
}

@keyframes float-3 {
  to {
    transform: translate(-18vmax, 6vmax) scale(0.85);
  }
}

.hero-eyebrow {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  opacity: 0.85;
}

.hero-title {
  margin-top: 0.35rem;
  font-size: clamp(2.6rem, 8vw, 5.25rem);
  letter-spacing: -0.035em;
  text-shadow: 0 6px 30px rgb(20 10 60 / 0.25);
}

.hero-subtitle {
  margin-top: 0.75rem;
  font-size: clamp(0.8rem, 2.4vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.9;
}

.hero-lead {
  max-width: 36rem;
  margin: 1.5rem auto 0;
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  line-height: 1.65;
  opacity: 0.92;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 2.25rem;
}

.social {
  display: flex;
  gap: 0.6rem;
}

.social a {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  color: inherit;
  transition: transform 0.2s, background-color 0.2s;
}

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

.hero-social {
  justify-content: center;
  margin-top: 2.25rem;
}

.hero-social a {
  background: rgb(255 255 255 / 0.14);
  border: 1px solid rgb(255 255 255 / 0.25);
}

.hero-social a:hover {
  background: rgb(255 255 255 / 0.26);
}

.scroll-cue {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-left: -1.375rem;
  border: 1px solid rgb(255 255 255 / 0.4);
  border-radius: 50%;
  color: #fff;
  animation: nudge 2.2s ease-in-out infinite;
}

@keyframes nudge {
  50% {
    transform: translateY(6px);
  }
}

/* Sections */

.section {
  padding: clamp(4.5rem, 10vw, 7.5rem) 0;
}

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

.section-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.section-head h2 {
  font-size: clamp(2rem, 5vw, 2.9rem);
  letter-spacing: -0.03em;
}

.section-kicker {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
}

.sub-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.sub-title .icon {
  width: 2.25rem;
  height: 2.25rem;
  padding: 0.5rem;
  border-radius: 10px;
  background: var(--gradient);
  color: #fff;
}

.lead {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  line-height: 1.5;
  color: var(--ink);
}

/* About */

.about-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.about-text {
  display: grid;
  gap: 1.1rem;
  color: var(--muted);
}

.info-card {
  display: grid;
  gap: 1.25rem;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.info-card dt {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.info-card dt .icon {
  color: var(--accent);
}

.info-card dd {
  margin-top: 0.15rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* Resume */

.resume-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: clamp(3.5rem, 7vw, 5rem);
}

.timeline {
  position: relative;
  display: grid;
  gap: 1rem;
  padding-left: 1.75rem;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  bottom: 0.5rem;
  left: 0.4rem;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(var(--blue), var(--violet) 70%, transparent);
  opacity: 0.4;
}

.timeline-item {
  position: relative;
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}

.timeline-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 1.6rem;
  left: calc(-1.75rem + 0.4rem - 5px);
  width: 12px;
  height: 12px;
  border: 3px solid var(--bg-alt);
  border-radius: 50%;
  background: var(--accent);
  box-sizing: content-box;
  transform: translateX(-2px);
}

.timeline-item h4 {
  margin-top: 0.6rem;
  font-size: 1.05rem;
}

.timeline-item .org {
  margin-top: 0.15rem;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
}

.timeline-item p:last-child {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: var(--track);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.badge-current {
  background: var(--gradient);
  color: #fff;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 1rem;
}

.card {
  padding: 1.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.card-date {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card h4 {
  margin-top: 0.4rem;
  font-size: 1rem;
}

.card p {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.resume-cta {
  margin-top: 3rem;
  text-align: center;
}

/* Skills */

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 4rem);
}

.skills-grid + .skills-grid {
  margin-top: clamp(3rem, 6vw, 4rem);
}

.meters {
  display: grid;
  gap: 1.3rem;
}

.meter {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.meter-label {
  flex: 1 1 0;
  min-width: 0;
}

.meter-value {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.meter::after {
  content: "";
  flex-basis: 100%;
  height: 8px;
  border-radius: 999px;
  background: var(--gradient) 0 0 / var(--value) 100% no-repeat, var(--track);
}

.languages {
  display: grid;
  gap: 1rem;
}

.languages li {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.15rem 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.lang-name {
  font-weight: 600;
}

.lang-level {
  grid-column: 1;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.dots {
  --size: 10px;
  --gap: 6px;
  --step: calc(var(--size) + var(--gap));
  position: relative;
  grid-row: 1 / span 2;
  grid-column: 2;
  width: calc(5 * var(--step));
  height: var(--size);
  background: radial-gradient(circle closest-side, var(--track) 96%, transparent) 0 0 / var(--step) 100% repeat-x;
}

.dots::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--n) * var(--step));
  background: radial-gradient(circle closest-side, var(--accent) 96%, transparent) 0 0 / var(--step) 100% repeat-x;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tags li {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.875rem;
  font-weight: 600;
}

.tags-accent li {
  border-color: transparent;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-info .lead {
  font-size: clamp(1.15rem, 2vw, 1.3rem);
}

.contact-list {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.contact-list small {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--accent);
}

.contact-form {
  display: grid;
  gap: 1.1rem;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label {
  font-size: 0.85rem;
  font-weight: 600;
}

.optional {
  color: var(--muted);
  font-weight: 400;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.5 var(--font-sans);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field textarea {
  resize: vertical;
  min-height: 9rem;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}

.field [aria-invalid="true"] {
  border-color: #d64561;
}

.hp {
  position: absolute;
  left: -9999px;
}

.g-recaptcha {
  min-height: 78px;
}

.form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.form-status {
  font-size: 0.9rem;
  font-weight: 600;
}

.form-status.is-success {
  color: #1f9d6b;
}

.form-status.is-error {
  color: #d64561;
}

/* Footer */

.site-footer {
  padding: 2.5rem 0;
  background: #0b0e1a;
  color: #b9bfd3;
  font-size: 0.85rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.site-footer .brand {
  color: #fff;
  font-size: 1.5rem;
}

.site-footer .social a {
  background: rgb(255 255 255 / 0.06);
}

.site-footer .social a:hover {
  background: rgb(255 255 255 / 0.14);
  color: #fff;
}

/* Scroll reveal */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.js .reveal .meter::after {
  background-size: 0 100%;
  transition: background-size 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s;
}

.js .reveal.is-visible .meter::after {
  background-size: var(--value) 100%;
}

/* Responsive */

@media (max-width: 900px) {
  .about-grid,
  .resume-grid,
  .skills-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
    justify-content: center;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .site-header,
  .hero-bg,
  .scroll-cue,
  .hero-actions,
  .contact-form,
  .site-footer {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 1rem 0;
    background: none;
    color: #000;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
