/* ============================================================
   Kanzlei Kriegel — Arbeitsrecht · Versicherungsrecht · Medizinrecht
   ============================================================ */

/* ---------- Fonts (self-hosted, GDPR-safe) ---------- */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-latin-600-normal.woff2") format("woff2");
}

/* ---------- Custom properties ---------- */
:root {
  --navy-950: #080f1b;
  --navy-900: #0a1322;
  --navy-800: #0d1b2e;
  --navy-700: #13233c;
  --navy-line: rgba(197, 164, 92, 0.18);
  --gold: #c5a45c;
  --gold-bright: #dcc188;
  --paper: #f7f5f0;
  --paper-deep: #efebe2;
  --ink: #16202e;
  --ink-soft: #4c5868;
  --white-soft: rgba(244, 246, 250, 0.92);
  --white-dim: rgba(244, 246, 250, 0.62);
  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1180px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

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

::selection { background: var(--gold); color: var(--navy-900); }

img, svg, canvas { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

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

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: "";
  width: 2.6rem;
  height: 1px;
  background: var(--gold);
  opacity: 0.8;
}

.section-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: 0.005em;
  margin-top: 1.4rem;
}
.section-title em {
  font-style: italic;
  font-weight: 500;
  color: var(--gold);
}

.section-lead {
  max-width: 46rem;
  margin-top: 1.5rem;
  font-size: 1.06rem;
  color: var(--ink-soft);
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.45s ease, box-shadow 0.45s ease, padding 0.45s ease;
  padding: 1.6rem 0;
}
.site-header.is-scrolled {
  background: rgba(8, 15, 27, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(197, 164, 92, 0.22);
  padding: 0.85rem 0;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--white-soft);
}
.brand-mark {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--gold);
  letter-spacing: 0.04em;
  line-height: 1;
}
.brand-text { line-height: 1.3; }
.brand-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.18rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.brand-sub {
  font-size: 0.64rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--white-dim);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}
.main-nav a {
  position: relative;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white-dim);
  padding: 0.4rem 0;
  transition: color 0.3s ease;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.main-nav a:hover,
.main-nav a:focus-visible { color: var(--white-soft); }
.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  border: 1px solid var(--gold) !important;
  color: var(--gold) !important;
  padding: 0.62rem 1.4rem !important;
  transition: background 0.3s ease, color 0.3s ease !important;
}
.nav-cta::after { display: none; }
.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--gold);
  color: var(--navy-900) !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--navy-line);
  width: 46px;
  height: 46px;
  cursor: pointer;
  position: relative;
  z-index: 110;
}
.nav-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1.5px;
  background: var(--gold);
  transition: transform 0.35s var(--ease-out), opacity 0.25s ease, top 0.35s var(--ease-out);
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(1200px 700px at 75% 15%, rgba(19, 35, 60, 0.85) 0%, transparent 60%),
    linear-gradient(165deg, var(--navy-800) 0%, var(--navy-950) 70%);
  color: var(--white-soft);
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 22vh;
  background: linear-gradient(to bottom, transparent, rgba(8, 15, 27, 0.75));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 9rem 0 7rem;
  max-width: 54rem;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold-bright);
}
.hero-eyebrow::before,
.hero-eyebrow::after {
  content: "";
  width: 2.4rem;
  height: 1px;
  background: var(--gold);
  opacity: 0.7;
}

.hero-title {
  margin-top: 2rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.7rem, 7vw, 5.2rem);
  line-height: 1.07;
  letter-spacing: 0.005em;
}
.hero-title .line {
  display: block;
  overflow: hidden;
}
.hero-title .line > span {
  display: block;
  will-change: transform;
}
.hero-title em {
  font-style: italic;
  font-weight: 500;
  color: var(--gold-bright);
}

.hero-fields {
  margin-top: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 0;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--white-soft);
}
.hero-fields .sep {
  margin: 0 1.1rem;
  color: var(--gold);
  font-size: 0.7em;
  transform: translateY(-0.1em);
}

.hero-sub {
  margin-top: 1.6rem;
  max-width: 38rem;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--white-dim);
}

.hero-actions {
  margin-top: 2.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 2.1rem;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease, transform 0.35s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); }
.btn-gold {
  background: var(--gold);
  color: var(--navy-900);
}
.btn-gold:hover { background: var(--gold-bright); }
.btn-ghost {
  border-color: rgba(244, 246, 250, 0.35);
  color: var(--white-soft);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-bright); }

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 2.2rem;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.62rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--white-dim);
}
.hero-scroll .scroll-line {
  width: 1px;
  height: 3.4rem;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2.4s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 0.9; }
  50% { transform: scaleY(0.55); opacity: 0.45; }
  to { transform-origin: top; }
}
.hero-scroll .scroll-line { transform-origin: top; }

/* ============================================================
   Sections — shared
   ============================================================ */
.section { padding: 7.5rem 0; }

.section-dark {
  background:
    radial-gradient(1000px 600px at 12% 0%, rgba(19, 35, 60, 0.8) 0%, transparent 55%),
    var(--navy-900);
  color: var(--white-soft);
}
.section-dark .section-lead { color: var(--white-dim); }

.section-paper { background: var(--paper); }
.section-paper-deep { background: var(--paper-deep); }

[data-reveal] { will-change: transform, opacity; }

/* ============================================================
   Kanzlei / Intro
   ============================================================ */
.intro-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 4.5rem;
  align-items: start;
}

.intro-statement {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.6vw, 2.05rem);
  line-height: 1.45;
  color: var(--ink);
  margin-top: 2.2rem;
}
.intro-statement em {
  font-style: italic;
  font-weight: 500;
  color: var(--gold);
}

.intro-copy {
  margin-top: 1.8rem;
  color: var(--ink-soft);
  max-width: 38rem;
}
.intro-copy + .intro-copy { margin-top: 1.1rem; }

.principles {
  display: grid;
  gap: 1.1rem;
  margin-top: 0.6rem;
}

.principle {
  position: relative;
  border: 1px solid rgba(22, 32, 46, 0.1);
  background: #fff;
  padding: 1.9rem 2rem 1.9rem 2.2rem;
  transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s var(--ease-out);
}
.principle::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--gold), rgba(197, 164, 92, 0.25));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.45s var(--ease-out);
}
.principle:hover {
  border-color: rgba(197, 164, 92, 0.55);
  box-shadow: 0 18px 40px -22px rgba(13, 27, 46, 0.35);
  transform: translateY(-3px);
}
.principle:hover::before { transform: scaleY(1); }

.principle h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
}
.principle h3 .num {
  font-size: 0.95rem;
  color: var(--gold);
  letter-spacing: 0.08em;
}
.principle p {
  margin-top: 0.55rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* ============================================================
   Rechtsgebiete
   ============================================================ */
.fields-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.fields-grid {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.field-card {
  position: relative;
  border: 1px solid rgba(197, 164, 92, 0.22);
  background: linear-gradient(180deg, rgba(19, 35, 60, 0.55) 0%, rgba(10, 19, 34, 0.4) 100%);
  padding: 2.6rem 2.2rem 2.4rem;
  overflow: hidden;
  transition: border-color 0.4s ease, transform 0.4s var(--ease-out), box-shadow 0.4s ease;
}
.field-card::after {
  content: "§";
  position: absolute;
  right: -0.6rem;
  bottom: -2.6rem;
  font-family: var(--serif);
  font-size: 11rem;
  line-height: 1;
  color: rgba(197, 164, 92, 0.06);
  pointer-events: none;
  transition: color 0.5s ease, transform 0.6s var(--ease-out);
}
.field-card:hover {
  border-color: rgba(197, 164, 92, 0.6);
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.65);
}
.field-card:hover::after {
  color: rgba(197, 164, 92, 0.12);
  transform: translateY(-6px);
}

.field-index {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1rem;
  color: var(--gold);
  letter-spacing: 0.12em;
}

.field-card h3 {
  margin-top: 1rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.85rem;
  line-height: 1.15;
}

.field-card .field-desc {
  margin-top: 1rem;
  font-size: 0.94rem;
  color: var(--white-dim);
  min-height: 5.2em;
}

.field-card ul {
  margin-top: 1.6rem;
  border-top: 1px solid rgba(197, 164, 92, 0.18);
  padding-top: 1.4rem;
  display: grid;
  gap: 0.65rem;
}
.field-card li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.9rem;
  color: var(--white-soft);
}
.field-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.55rem;
  height: 1px;
  background: var(--gold);
}

/* ============================================================
   Vorgehen / Prozess
   ============================================================ */
.process { position: relative; }

.process-steps {
  margin-top: 4.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.4rem;
  position: relative;
}
.process-steps::before {
  content: "";
  position: absolute;
  top: 1.55rem;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(22, 32, 46, 0.12);
}
.process-line {
  position: absolute;
  top: 1.55rem;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  z-index: 1;
}

.step { position: relative; padding-top: 3.4rem; }
.step-dot {
  position: absolute;
  top: 1.05rem;
  left: 0;
  width: 1rem;
  height: 1rem;
  border: 1px solid var(--gold);
  background: var(--paper);
  transform: rotate(45deg);
  z-index: 2;
}
.step p.step-num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 2.6rem;
  line-height: 1;
  color: rgba(197, 164, 92, 0.55);
}
.step h3 {
  margin-top: 0.7rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.35rem;
}
.step p {
  margin-top: 0.55rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* ============================================================
   Profil
   ============================================================ */
.profile-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 5rem;
  align-items: center;
}

.profile-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(197, 164, 92, 0.3);
  background:
    radial-gradient(420px 420px at 30% 20%, rgba(19, 35, 60, 0.9) 0%, transparent 70%),
    var(--navy-800);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.profile-visual::before {
  content: "";
  position: absolute;
  inset: 1.1rem;
  border: 1px solid rgba(197, 164, 92, 0.22);
  pointer-events: none;
}
.profile-monogram {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(5rem, 9vw, 8rem);
  letter-spacing: 0.06em;
  color: var(--gold);
  line-height: 1;
}
.profile-visual figcaption {
  position: absolute;
  bottom: 2rem;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--white-dim);
}

.profile-copy p {
  margin-top: 1.2rem;
  color: var(--ink-soft);
}
.profile-copy p:first-of-type { margin-top: 1.8rem; }

.profile-note {
  margin-top: 2.2rem;
  border: 1px solid rgba(197, 164, 92, 0.35);
  background: #fff;
  padding: 1.5rem 1.8rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.profile-note strong { color: var(--ink); font-weight: 600; }
.profile-note a {
  color: var(--gold);
  font-weight: 600;
  border-bottom: 1px solid rgba(197, 164, 92, 0.5);
  transition: color 0.3s ease, border-color 0.3s ease;
}
.profile-note a:hover { color: var(--ink); border-color: var(--ink); }

/* ============================================================
   Kontakt
   ============================================================ */
.contact { position: relative; overflow: hidden; }
.contact::before {
  content: "§";
  position: absolute;
  right: -4rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--serif);
  font-size: 34rem;
  line-height: 1;
  color: rgba(197, 164, 92, 0.045);
  pointer-events: none;
}

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

.contact-list {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(197, 164, 92, 0.25);
}
.contact-item {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.6rem 0;
  border-bottom: 1px solid rgba(197, 164, 92, 0.25);
}
.contact-item dt {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}
.contact-item dd {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.45rem;
  line-height: 1.35;
  color: var(--white-soft);
}
.contact-item dd a {
  transition: color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.contact-item dd a:hover { color: var(--gold-bright); }
.contact-item dd .small {
  display: block;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--white-dim);
  margin-top: 0.3rem;
}

.contact-aside .section-lead { margin-top: 1.5rem; }
.contact-actions { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.contact-hint {
  margin-top: 2.2rem;
  font-size: 0.83rem;
  line-height: 1.7;
  color: var(--white-dim);
  border-left: 2px solid rgba(197, 164, 92, 0.4);
  padding-left: 1.2rem;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--navy-950);
  color: var(--white-dim);
  padding: 3rem 0;
  font-size: 0.85rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
}
.footer-brand {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white-soft);
}
.footer-brand span { color: var(--gold); }
.footer-nav {
  display: flex;
  gap: 2rem;
}
.footer-nav a {
  transition: color 0.3s ease;
  letter-spacing: 0.06em;
}
.footer-nav a:hover { color: var(--gold-bright); }

/* ============================================================
   Legal pages (Impressum / Datenschutz)
   ============================================================ */
.legal-hero {
  background: linear-gradient(165deg, var(--navy-800) 0%, var(--navy-950) 80%);
  color: var(--white-soft);
  padding: 11rem 0 5rem;
}
.legal-hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-top: 1.4rem;
}

.legal-body { padding: 5rem 0 7rem; }
.legal-body .container { max-width: 50rem; }
.legal-body h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.7rem;
  margin-top: 3rem;
  padding-top: 2.4rem;
  border-top: 1px solid rgba(22, 32, 46, 0.12);
}
.legal-body h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.legal-body h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.25rem;
  margin-top: 1.8rem;
}
.legal-body p, .legal-body ul { margin-top: 0.9rem; color: var(--ink-soft); }
.legal-body ul { list-style: none; }
.legal-body li {
  position: relative;
  padding-left: 1.3rem;
  margin-top: 0.4rem;
}
.legal-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 0.5rem;
  height: 1px;
  background: var(--gold);
}
.legal-body a {
  color: var(--gold);
  border-bottom: 1px solid rgba(197, 164, 92, 0.45);
  transition: color 0.3s ease;
}
.legal-body a:hover { color: var(--ink); }
.legal-body address { font-style: normal; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1020px) {
  .fields-grid { grid-template-columns: 1fr; max-width: 34rem; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .process-steps::before, .process-line { display: none; }
  .step { padding-top: 0; }
  .step-dot { display: none; }
  .intro-grid { grid-template-columns: 1fr; gap: 3rem; }
  .profile-grid { grid-template-columns: 1fr; gap: 3rem; }
  .profile-visual { max-width: 24rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 760px) {
  .section { padding: 5rem 0; }

  .main-nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 2.4rem;
    background: rgba(8, 15, 27, 0.97);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
  }
  .main-nav.is-open {
    opacity: 1;
    pointer-events: auto;
  }
  .main-nav a { font-size: 1.05rem; }
  .nav-toggle { display: block; }

  .brand-sub { display: none; }

  .hero-content { padding: 8rem 0 6rem; }
  .hero-fields { font-size: 1.05rem; }
  .hero-fields .sep { margin: 0 0.7rem; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-scroll { display: none; }

  .process-steps { grid-template-columns: 1fr; gap: 2.6rem; }

  .contact-item { grid-template-columns: 1fr; gap: 0.4rem; }
  .contact-item dd { font-size: 1.2rem; }
  .contact::before { display: none; }

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

@media (max-height: 800px) {
  .hero-scroll { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
