/* ============================================================
   Maximilian Freaxen — Webseite
   Stylesheet
   ============================================================ */

/* ---- Self-hosted fonts ---- */

@font-face {
  font-family: 'Geist';
  src: url('fonts/Geist-Variable.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Geist Mono';
  src: url('fonts/GeistMono-Variable.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Instrument Serif';
  src: url('fonts/InstrumentSerif-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Instrument Serif';
  src: url('fonts/InstrumentSerif-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* ---- Design tokens ---- */

:root {
  --bg: #0a1729;
  --bg-elevated: #0f1f37;
  --bg-deeper: #07101e;
  --surface: #142844;
  --ink: #eef2f8;
  --ink-soft: #b4c0d4;
  --ink-muted: #6b7a93;
  --line: rgba(180, 192, 212, 0.12);
  --line-strong: rgba(180, 192, 212, 0.22);
  --accent: #7dd3fc;
  --accent-warm: #fbbf24;
  --accent-glow: rgba(125, 211, 252, 0.15);

  --sans: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'Geist Mono', ui-monospace, monospace;
  --serif-accent: 'Instrument Serif', 'Times New Roman', serif;
}

/* ---- Reset & base ---- */

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: overlay;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2.5rem;
  position: relative;
  z-index: 1;
}

/* ---- Navigation ---- */

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  background: rgba(10, 23, 41, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

nav.scrolled {
  border-bottom-color: var(--line);
  background: rgba(7, 16, 30, 0.85);
}

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

.logo {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent-glow);
}

.nav-links {
  display: flex;
  gap: 2.25rem;
  list-style: none;
  font-size: 0.85rem;
  font-weight: 400;
}

.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}

.nav-links a:hover { color: var(--ink); }

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-links a:hover::after { width: 100%; }

/* ---- Hero ---- */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 4rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 5rem;
  align-items: center;
}

.hero-meta {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 2.5rem;
}

.hero-meta::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--accent);
}

.hero h1 {
  font-family: var(--sans);
  font-size: clamp(2.75rem, 6.5vw, 5.5rem);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.04em;
  margin-bottom: 2.5rem;
  color: var(--ink);
}

.hero h1 em {
  font-family: var(--serif-accent);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.hero-lede {
  max-width: 580px;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 3rem;
  font-weight: 300;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
  max-width: 720px;
}

.stat-num {
  font-family: var(--sans);
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.stat-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.hero-portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 420px;
  justify-self: end;
  width: 100%;
}

.hero-portrait::before {
  content: '';
  position: absolute;
  inset: 1.5rem -1.5rem -1.5rem 1.5rem;
  border: 1px solid var(--line-strong);
  z-index: 0;
}

.portrait-frame {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--bg-elevated);
  overflow: hidden;
  z-index: 1;
  border: 1px solid var(--line);
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.portrait-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
  color: var(--ink-muted);
  text-align: center;
  padding: 2rem;
  background:
    repeating-linear-gradient(
      135deg,
      transparent 0,
      transparent 18px,
      rgba(180, 192, 212, 0.04) 18px,
      rgba(180, 192, 212, 0.04) 19px
    );
}

.portrait-placeholder svg { opacity: 0.5; }

.portrait-placeholder span {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ---- Section primitives ---- */

section {
  padding: 7rem 0;
  position: relative;
}

.section-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.section-title {
  font-family: var(--sans);
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: 4rem;
  max-width: 800px;
  color: var(--ink);
}

.section-title em {
  font-family: var(--serif-accent);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: -0.02em;
}

/* ---- About ---- */

.about-section {
  background: var(--bg-elevated);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  align-items: start;
}

.about-aside { position: sticky; top: 6rem; }

.about-aside .section-label { margin-bottom: 1rem; }

.about-aside h2 {
  font-family: var(--sans);
  font-size: clamp(2rem, 3.5vw, 2.5rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.about-aside h2 em {
  font-family: var(--serif-accent);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.about-body {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink-soft);
  font-weight: 300;
}

.about-body p { margin-bottom: 1.5rem; }
.about-body p:last-child { margin-bottom: 0; }

.about-body strong {
  color: var(--ink);
  font-weight: 500;
}

.about-body .first-line::first-letter {
  font-family: var(--serif-accent);
  font-size: 4rem;
  line-height: 0.85;
  float: left;
  padding: 0.35rem 0.75rem 0 0;
  color: var(--accent);
  font-weight: 400;
}

/* ---- Services ---- */

.services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.service-number {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--accent);
  margin-bottom: 1.25rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.service h3 {
  font-family: var(--sans);
  font-size: 1.875rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
  line-height: 1.1;
  color: var(--ink);
}

.service p {
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
  font-size: 1.0625rem;
  font-weight: 300;
}

.service-list {
  list-style: none;
  margin-top: 1.5rem;
}

.service-list li {
  padding: 0.875rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--ink-soft);
  display: flex;
  gap: 1rem;
  align-items: baseline;
  font-weight: 400;
}

.service-list li::before {
  content: '→';
  color: var(--accent);
  font-weight: 400;
  font-size: 0.85rem;
}

/* ---- Expertise ---- */

.expertise-section {
  background: var(--bg-elevated);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.expertise-cat {
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  align-items: baseline;
}

.expertise-cat:nth-child(odd) {
  padding-right: 3rem;
  border-right: 1px solid var(--line);
}

.expertise-cat:nth-child(even) {
  padding-left: 3rem;
}

.expertise-cat h4 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1.125rem;
  color: var(--ink);
  letter-spacing: -0.015em;
}

.expertise-cat p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.55;
  font-weight: 300;
}

/* ---- CV ---- */

.section-intro {
  font-size: 1.0625rem;
  color: var(--ink-soft);
  max-width: 720px;
  margin-bottom: 3.5rem;
  margin-top: -2rem;
  line-height: 1.65;
  font-weight: 300;
}

.cv-list { border-top: 1px solid var(--line); }

.cv-entry {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 3rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s ease;
}

.cv-entry:hover { background: rgba(125, 211, 252, 0.025); }

.cv-year {
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0.02em;
  line-height: 1.2;
  padding-top: 0.35rem;
}

.cv-role {
  font-family: var(--sans);
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
  line-height: 1.25;
  color: var(--ink);
}

.cv-company {
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin-bottom: 1rem;
  font-weight: 400;
}

.cv-desc {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 720px;
  font-weight: 300;
}

/* ---- Projects ---- */

.projects-section {
  background: var(--bg-elevated);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.projects-columns {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 4rem;
}

.projects-column-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--accent);
  margin-bottom: 0.5rem;
}

.projects-column-header h3 {
  font-family: var(--sans);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.projects-column-header h3 em {
  font-family: var(--serif-accent);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.projects-column-header .count {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.project-entry {
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}

.project-entry:last-child { border-bottom: none; }

.project-meta-line {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 0.75rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.project-meta-line .dot {
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-glow);
}

.project-title {
  font-family: var(--sans);
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  margin-bottom: 0.4rem;
  line-height: 1.2;
  color: var(--ink);
}

.project-role {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 1rem;
  font-weight: 300;
}

.project-desc {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  font-weight: 300;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.project-tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  border-radius: 2px;
}

.project-entry.minor .project-title { font-size: 1.125rem; }
.project-entry.minor .project-desc { font-size: 0.9rem; }

/* ---- Values ---- */

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.value {
  padding: 3rem 2rem 3rem 0;
  position: relative;
}

.value:not(:last-child) {
  border-right: 1px solid var(--line);
  padding-right: 2.5rem;
}

.value:not(:first-child) { padding-left: 2.5rem; }

.value-num {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.value h4 {
  font-family: var(--sans);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  line-height: 1.2;
  color: var(--ink);
}

.value p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.6;
  font-weight: 300;
}

/* ---- Contact ---- */

.contact-section {
  background: var(--bg-deeper);
  color: var(--ink);
  border-top: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: start;
  position: relative;
  z-index: 1;
}

.contact-intro h2 {
  font-family: var(--sans);
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: 2rem;
  color: var(--ink);
}

.contact-intro h2 em {
  font-family: var(--serif-accent);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.contact-intro p {
  color: var(--ink-soft);
  font-size: 1.0625rem;
  line-height: 1.65;
  margin-bottom: 2.5rem;
  max-width: 440px;
  font-weight: 300;
}

.contact-info {
  border-top: 1px solid var(--line);
  padding-top: 2rem;
}

.contact-info-item {
  padding: 0.75rem 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
  font-weight: 300;
}

.contact-info-item strong {
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 400;
  margin-bottom: 0.25rem;
}

/* ---- Form ---- */

.contact-form {
  display: grid;
  gap: 1.75rem;
  padding: 2.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 4px;
}

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

.field {
  display: flex;
  flex-direction: column;
}

.field label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.75rem;
  font-weight: 400;
}

.field input,
.field select,
.field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-strong);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  padding: 0.5rem 0 0.875rem;
  transition: border-color 0.3s ease;
  width: 100%;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink-muted);
  opacity: 0.6;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
}

.field select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='none' stroke='%237dd3fc' stroke-width='1' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  padding-right: 1.5rem;
}

.field select option {
  background: var(--bg-elevated);
  color: var(--ink);
}

.field textarea {
  resize: vertical;
  min-height: 100px;
  font-family: var(--sans);
}

.submit-btn {
  margin-top: 1rem;
  background: var(--accent);
  color: var(--bg-deeper);
  border: none;
  padding: 1.125rem 2.5rem;
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  font-weight: 600;
  cursor: pointer;
  justify-self: start;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 2px;
}

.submit-btn:hover {
  background: #a5e3fd;
  box-shadow: 0 0 24px var(--accent-glow);
}

.submit-btn::after {
  content: '→';
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.submit-btn:hover::after { transform: translateX(4px); }

/* Honeypot-Feld: für Menschen unsichtbar, aber im DOM vorhanden */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  padding: 0.9rem 1.1rem;
  border-radius: 4px;
  font-size: 0.9rem;
  line-height: 1.5;
  border: 1px solid var(--line-strong);
  color: var(--ink-soft);
}

.form-status.status-success {
  border-color: var(--accent);
  color: var(--ink);
  background: rgba(125, 211, 252, 0.08);
}

.form-status.status-error,
.form-status.status-invalid,
.form-status.status-ratelimit {
  border-color: rgba(252, 165, 165, 0.6);
  color: #fecaca;
  background: rgba(252, 165, 165, 0.08);
}

.consent-note {
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--ink-muted);
  margin-top: 0.5rem;
  font-weight: 300;
}

/* ---- Legal pages (Impressum / Datenschutz) ---- */

.legal-page {
  padding-top: 9rem;
  padding-bottom: 5rem;
}

.legal-meta {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  margin-bottom: 3rem;
}

.legal-content { max-width: 780px; }

.legal-content h2 {
  font-family: var(--sans);
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 3rem 0 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.legal-content h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.legal-content h3 {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
  margin: 1.75rem 0 0.75rem;
}

.legal-content p {
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.75;
  margin-bottom: 1rem;
  font-weight: 300;
}

.legal-content ul {
  margin: 0 0 1.25rem 1.25rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.75;
  font-weight: 300;
}

.legal-content li { margin-bottom: 0.4rem; }

.legal-content a { color: var(--accent); }

.legal-content strong {
  color: var(--ink);
  font-weight: 500;
}

/* ---- Footer ---- */

footer {
  background: var(--bg-deeper);
  color: var(--ink-muted);
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

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

footer a {
  color: var(--ink-soft);
  text-decoration: none;
}

footer a:hover { color: var(--accent); }

/* ---- Utilities ---- */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

::selection {
  background: var(--accent);
  color: var(--bg-deeper);
}

/* ---- Responsive ---- */

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .hero-portrait { justify-self: start; max-width: 360px; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-aside { position: static; }
  .projects-columns { grid-template-columns: 1fr; gap: 3.5rem; }
}

@media (max-width: 900px) {
  .container { padding: 0 1.5rem; }
  .nav-links { display: none; }
  .hero { padding: 7rem 0 3rem; }
  .hero-stats { grid-template-columns: 1fr; gap: 1.5rem; }
  .services { grid-template-columns: 1fr; gap: 3rem; }
  .expertise-grid { grid-template-columns: 1fr; }
  .expertise-cat,
  .expertise-cat:nth-child(odd),
  .expertise-cat:nth-child(even) {
    grid-template-columns: 1fr;
    padding: 1.5rem 0;
    border-right: none;
  }
  .cv-entry { grid-template-columns: 1fr; gap: 0.75rem; }
  .values { grid-template-columns: 1fr; }
  .value,
  .value:not(:last-child),
  .value:not(:first-child) {
    padding: 2rem 0;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .value:last-child { border-bottom: none; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 1.5rem; }
  section { padding: 5rem 0; }
}
