/* Montserrat (lokal eingebunden, keine Verbindung zu Google) */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/montserrat-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/montserrat-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #000;
  --bg-elev: #0b0b0b;
  --surface: #121212;
  --surface-2: #181818;
  --border: #242424;
  --border-strong: #3a3a3a;
  --text: #fff;
  --text-muted: #a1a1a1;
  --text-dim: #6b6b6b;
  --gray-light: #c0c0c0;
  --gray: #808080;
  --radius: 16px;
  --radius-sm: 10px;
  --container: 1180px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1rem; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }

::selection { background: #fff; color: #000; }

:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: #fff; color: #000; padding: .6rem 1rem; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background-color .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(0, 0, 0, .78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--border);
}
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: .02em; }
.brand-logo { width: 52px; height: auto; }
.brand-name { font-size: 1.02rem; white-space: nowrap; }
.brand-name small { display: block; font-size: .68rem; font-weight: 500; color: var(--text-muted); letter-spacing: .14em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative; padding: 8px 12px; font-size: .88rem; font-weight: 500; color: var(--text-muted);
  border-radius: 8px; transition: color .2s;
}
.nav a:hover, .nav a.is-active { color: var(--text); }
.nav a.is-active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: #fff; border-radius: 2px;
}
.nav .btn { margin-left: 10px; color: #000; }
.nav .btn:hover { color: #000; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--border-strong); background: transparent;
  border-radius: 10px; cursor: pointer; position: relative;
}
.nav-toggle span {
  position: absolute; left: 11px; right: 11px; height: 2px; background: #fff; border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.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); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .85rem 1.5rem; border-radius: 999px; font-weight: 600; font-size: .95rem; line-height: 1;
  border: 1px solid #fff; background: #fff; color: #000; cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); background: var(--gray-light); border-color: var(--gray-light); }
.btn-outline { background: transparent; color: #fff; border-color: var(--border-strong); }
.btn-outline:hover { background: #fff; color: #000; border-color: #fff; }
.btn-sm { padding: .6rem 1.1rem; font-size: .85rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; overflow: hidden;
  padding: calc(var(--header-h) + 40px) 0 80px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 80%);
}
.hero::after {
  content: ""; position: absolute; width: 900px; height: 900px; right: -300px; top: -250px; pointer-events: none;
  background: radial-gradient(circle, rgba(255,255,255,.08), transparent 60%);
}
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem; font-size: .78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .18em; color: var(--text-muted);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }

.status {
  display: inline-flex; align-items: center; gap: .55rem; padding: .4rem .9rem; margin-bottom: 1.6rem;
  border: 1px solid var(--border-strong); border-radius: 999px; font-size: .8rem; color: var(--text-muted);
  background: rgba(255,255,255,.03);
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 rgba(255,255,255,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }

.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.6rem); font-weight: 800; letter-spacing: -0.035em; margin-bottom: 1.4rem; }
.hero h1 .muted { color: var(--gray); }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--text-muted); max-width: 34rem; margin-bottom: 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual img { width: min(440px, 100%); filter: drop-shadow(0 0 60px rgba(255,255,255,.08)); }

.scroll-hint {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: .7rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--text-dim);
}
.scroll-hint::after { content: ""; width: 1px; height: 40px; background: linear-gradient(#fff, transparent); animation: scrollLine 2s infinite; }
@keyframes scrollLine { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (max-height: 860px) { .scroll-hint { display: none; } }

/* ---------- Stats ---------- */
.stats { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-elev); }
.stats .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 40px 24px; text-align: center; border-right: 1px solid var(--border); }
.stat:last-child { border-right: 0; }
.stat-value { display: block; font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.stat-label { display: block; margin-top: .4rem; font-size: .85rem; color: var(--text-muted); }

/* ---------- Sections ---------- */
.section { padding: 120px 0; position: relative; }
.section-alt { background: var(--bg-elev); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; }
.section-title { font-size: clamp(2rem, 4vw, 3rem); margin: .8rem 0 1rem; }
.section-sub { color: var(--text-muted); font-size: 1.08rem; margin: 0; }

/* ---------- Über mich ---------- */
.about { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: start; }
.about-text p { color: var(--text-muted); font-size: 1.05rem; }
.about-text p strong { color: var(--text); font-weight: 600; }
.about-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px;
  position: sticky; top: calc(var(--header-h) + 24px);
}
.about-card h3 { font-size: 1.1rem; margin-bottom: 1.2rem; }
.facts-list { list-style: none; margin: 0; padding: 0; }
.facts-list li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); font-size: .95rem; }
.facts-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.facts-list i { width: 20px; color: var(--gray-light); margin-top: 5px; text-align: center; }
.facts-list span { color: var(--text-muted); }
.facts-list strong { display: block; color: var(--text); font-weight: 600; }

/* ---------- Leistungen ---------- */
.services { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.service { grid-column: span 2; }
.service:nth-child(4), .service:nth-child(5) { grid-column: span 3; }
.card {
  position: relative; display: flex; flex-direction: column; height: 100%;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s var(--ease), background-color .35s;
}
.card:hover { transform: translateY(-6px); border-color: var(--border-strong); background: var(--surface-2); }
.card-media { aspect-ratio: 16 / 9; overflow: hidden; background: #0d0d0d; }
.card-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05) brightness(.85); transition: filter .5s var(--ease), transform .6s var(--ease); }
.card:hover .card-media img { filter: grayscale(0) brightness(1); transform: scale(1.04); }
.card-body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.card-num { font-size: .75rem; font-weight: 600; letter-spacing: .16em; color: var(--text-dim); margin-bottom: .6rem; }
.card-title { font-size: 1.25rem; margin-bottom: .7rem; }
.card-text { color: var(--text-muted); font-size: .95rem; flex: 1; }
.card-link { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1rem; font-weight: 600; font-size: .9rem; }
.card-link i { transition: transform .25s var(--ease); }
.card-link:hover i, .card:hover .card-link i { transform: translateX(4px); }

/* ---------- Kenntnisse ---------- */
.skills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.skill-group {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 28px;
  transition: transform .35s var(--ease), border-color .35s var(--ease), background-color .35s;
}
.skill-group:hover { transform: translateY(-6px); border-color: var(--border-strong); background: var(--surface-2); }
.skill-icon {
  width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 1.2rem;
  border-radius: 14px; background: #fff; color: #000; font-size: 1.25rem;
}
.skill-title { font-size: 1.2rem; margin-bottom: .7rem; }
.skill-text { color: var(--text-muted); font-size: .93rem; flex: 1; margin-bottom: 1.2rem; }

.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 56px; }
.tag { padding: .45rem 1rem; border: 1px solid var(--border-strong); border-radius: 999px; font-size: .85rem; color: var(--text-muted); }

/* ---------- Werdegang ---------- */
.timeline { position: relative; max-width: 860px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(var(--border-strong), transparent); }
.timeline-item { position: relative; padding: 0 0 44px 48px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 15px; height: 15px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--gray);
}
.timeline-item.is-current::before { background: #fff; border-color: #fff; box-shadow: 0 0 0 6px rgba(255,255,255,.08); }
.timeline-date { font-size: .8rem; font-weight: 600; letter-spacing: .08em; color: var(--text-dim); text-transform: uppercase; }
.timeline-title { font-size: 1.25rem; margin: .3rem 0 .35rem; }
.timeline-text { color: var(--text-muted); margin: 0; }

/* ---------- Projekte ---------- */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.project { cursor: pointer; text-align: left; font: inherit; color: inherit; padding: 0; }
.project .card-media { aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; }
.project .card-media.contain { background: #f2f2f2; }
.project .card-media.contain img { object-fit: contain; padding: 28px; }
.card-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1rem; }
.card-tags span { font-size: .75rem; padding: .25rem .7rem; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-muted); }

/* ---------- Dialog (Projektdetails) ---------- */
.modal {
  width: min(960px, calc(100% - 32px)); max-height: calc(100vh - 48px); padding: 0;
  background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); border-radius: 20px;
  overflow: auto;
}
.modal::backdrop { background: rgba(0,0,0,.8); backdrop-filter: blur(6px); }
.modal[open] { animation: modalIn .35s var(--ease); }
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; padding: 48px; }
.modal-close {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--surface-2);
  color: #fff; font-size: 1.1rem; cursor: pointer; transition: background-color .2s, color .2s;
}
.modal-close:hover { background: #fff; color: #000; }
.modal h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: .6rem 0 .4rem; }
.modal .modal-sub { color: var(--text-muted); margin-bottom: 1.4rem; }
.modal p { color: var(--text-muted); }
.modal ul { color: var(--text-muted); padding-left: 1.2rem; }
.modal-media img { border-radius: var(--radius-sm); }
.modal-media .media-light { background: #f2f2f2; border-radius: var(--radius-sm); padding: 24px; }
.icon-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.icon-grid figure { margin: 0; background: #f2f2f2; border-radius: var(--radius-sm); padding: 14px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.icon-grid img { width: 44px; height: 44px; object-fit: contain; }
.icon-grid figcaption { font-size: .72rem; color: #333; text-align: center; line-height: 1.3; }

/* ---------- Referenzen ---------- */
.logos { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.logo-tile {
  display: flex; align-items: center; justify-content: center; aspect-ratio: 3 / 2; padding: 22px;
  background: #f4f4f4; border-radius: var(--radius-sm); overflow: hidden; transition: transform .3s var(--ease), background-color .3s;
}
.logo-tile img { max-height: 64px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s; }
.logo-tile img.logo-lg { transform: scale(1.7); }
.logo-tile:hover { transform: translateY(-4px); background: #fff; }
.logo-tile:hover img { filter: none; opacity: 1; }

.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 72px; }
.testimonial {
  display: flex; flex-direction: column; margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px;
}
.testimonial-quote { font-size: 1.02rem; color: #e6e6e6; flex: 1; position: relative; padding-top: 44px; margin: 0 0 1.6rem; }
.testimonial-quote::before { content: "\201C"; position: absolute; top: -6px; left: -2px; font-size: 4.4rem; line-height: 1; color: var(--gray); font-weight: 800; }
.testimonial-author { display: flex; align-items: center; gap: 14px; padding-top: 1.4rem; border-top: 1px solid var(--border); }
.testimonial-author img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; filter: grayscale(1); flex-shrink: 0; }
.testimonial-author strong { display: block; font-size: .98rem; }
.testimonial-author span { display: block; font-size: .8rem; color: var(--text-muted); line-height: 1.45; }

/* ---------- Partner ---------- */
.partners { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.partner {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 36px 28px; min-height: 220px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); text-align: center;
  transition: border-color .3s, transform .3s var(--ease);
}
.partner:hover { border-color: var(--border-strong); transform: translateY(-4px); }
.partner img { max-height: 110px; width: auto; max-width: 85%; object-fit: contain; }
.partner span { font-size: .82rem; color: var(--text-muted); display: inline-flex; align-items: center; gap: .4rem; }

/* ---------- Kontakt ---------- */
.cta {
  position: relative; overflow: hidden; border: 1px solid var(--border-strong); border-radius: 24px; padding: 72px 56px;
  background: radial-gradient(ellipse at top right, rgba(255,255,255,.1), transparent 55%), var(--surface);
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center;
}
.cta h2 { font-size: clamp(2rem, 4vw, 3rem); margin: .8rem 0 1rem; }
.cta p { color: var(--text-muted); font-size: 1.05rem; }
.contact-list { display: grid; gap: 12px; }
.contact-item {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 14px;
  background: rgba(255,255,255,.03); border: 1px solid var(--border); transition: background-color .25s, border-color .25s, transform .25s var(--ease);
}
.contact-item:hover { background: rgba(255,255,255,.07); border-color: var(--border-strong); transform: translateX(4px); }
.contact-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: #fff; color: #000; flex-shrink: 0; }
.contact-item small { display: block; font-size: .75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .12em; }
.contact-item strong { font-weight: 600; word-break: break-word; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 40px 0; color: var(--text-muted); font-size: .88rem; }
.footer .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-links a:hover, .footer a:hover { color: #fff; }
.footer .brand-logo { width: 40px; }

/* ---------- Rechtliche Seiten ---------- */
.legal { padding: calc(var(--header-h) + 80px) 0 100px; }
.legal .container { max-width: 860px; }
.legal h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; margin: .8rem 0 2.4rem; }
.legal h2 { font-size: 1.4rem; margin: 2.6rem 0 1rem; }
.legal h3 { font-size: 1.1rem; margin: 2rem 0 .8rem; }
.legal p, .legal li, .legal dd, .legal dt { color: var(--text-muted); }
.legal strong { color: var(--text); }
.legal a { color: #fff; text-decoration: underline; text-decoration-color: var(--gray); text-underline-offset: 3px; word-break: break-word; }
.legal a:hover { text-decoration-color: #fff; }
.legal ul { padding-left: 1.3rem; }
.legal ul.index { columns: 2; column-gap: 32px; }
.legal ul.index li { break-inside: avoid; }
.legal .seal { margin-top: 3rem; font-size: .8rem; }
.nav-simple { display: flex; gap: 10px; }
.legal-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 32px; margin-bottom: 20px; }
.legal-card h2 { margin-top: 0; font-size: 1.15rem; }
.legal-card p:last-child { margin-bottom: 0; }

/* ---------- Animationen ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--delay, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .logos { grid-template-columns: repeat(3, 1fr); }
  .nav a { padding: 8px 9px; font-size: .84rem; }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px 24px 28px; background: rgba(0,0,0,.96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: transform .3s var(--ease), opacity .3s, visibility .3s;
  }
  .nav-open .nav { transform: none; opacity: 1; visibility: visible; }
  .nav.nav-simple {
    position: static; flex-direction: row; padding: 0; background: none; border: 0;
    transform: none; opacity: 1; visibility: visible; backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  .nav.nav-simple a { border-bottom: 0; padding: 8px 10px; font-size: .88rem; }
  .nav.nav-simple .btn { margin: 0; padding: .6rem 1.1rem; }
  .nav-open .header { background: #000; border-bottom-color: var(--border); }
  .nav a { padding: 14px 4px; font-size: 1rem; border-bottom: 1px solid var(--border); border-radius: 0; }
  .nav a.is-active::after { display: none; }
  .nav .btn { margin: 18px 0 0; border-bottom: 0; border-radius: 999px; }

  .hero .container { grid-template-columns: 1fr; text-align: left; }
  .hero-visual { display: none; }
  .scroll-hint { display: none; }

  .stats .container { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--border); }

  .section { padding: 88px 0; }
  .about { grid-template-columns: 1fr; gap: 40px; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .skills { grid-template-columns: repeat(2, 1fr); }
  .service, .service:nth-child(4), .service:nth-child(5) { grid-column: span 1; }
  .service:nth-child(5) { grid-column: 1 / -1; }
  .projects { grid-template-columns: repeat(2, 1fr); }
  .testimonials { grid-template-columns: 1fr; }
  .partners { grid-template-columns: repeat(2, 1fr); }
  .cta { grid-template-columns: 1fr; padding: 48px 32px; }
  .modal-inner { grid-template-columns: 1fr; padding: 32px 24px; gap: 24px; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .brand-name small { display: none; }
  .services, .projects, .partners { grid-template-columns: 1fr; }
  .service:nth-child(5) { grid-column: auto; }
  .skills { grid-template-columns: 1fr; }
  .logos { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 28px 12px; }
  .cta { padding: 40px 22px; border-radius: 18px; }
  .legal ul.index { columns: 1; }
  .footer .container { flex-direction: column; align-items: flex-start; }
}
