/* =========================================================
   Ilhan Büyükbayrak — Design System
   Editorial corporate aesthetic. Self-hosted fonts, no CDNs.
   ========================================================= */

/* ----- Fonts (self-hosted, DSGVO-konform) ----- */
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/Manrope-Variable.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* ----- Design tokens ----- */
:root {
  --color-bg:        #faf7f2;
  --color-bg-alt:    #f2ede2;
  --color-bg-dark:   #0f1b3d;
  --color-ink:       #0f1b3d;
  --color-ink-soft:  #2a3450;
  --color-muted:     #66635c;
  --color-muted-dk:  #a8a39a;
  --color-line:      #e2dcd0;
  --color-line-dk:   #2a3450;
  --color-accent:    #b8895e;
  --color-accent-dk: #9a6f47;
  --color-accent-soft: #ecdcc6;
  --color-white:     #ffffff;
  --color-success:   #2d6a4f;
  --color-error:     #9b2c2c;
  --shadow-sm:       0 1px 2px rgba(15, 27, 61, 0.06);
  --shadow-md:       0 8px 24px -8px rgba(15, 27, 61, 0.12);
  --shadow-lg:       0 24px 48px -16px rgba(15, 27, 61, 0.18);

  --font-display: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-body:    'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  --container:    1240px;
  --container-sm: 760px;
  --gutter:       clamp(1.25rem, 4vw, 2.5rem);
  --section-y:    clamp(4rem, 9vw, 7rem);

  --radius-sm:    4px;
  --radius-md:    10px;
  --radius-lg:    20px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 180ms;
  --dur-med:  280ms;
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@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;
  }
}
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; }
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ----- Base ----- */
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-ink);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.container--sm {
  max-width: var(--container-sm);
}

/* ----- Typography (modern sans, strong weight contrast) ----- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--color-ink);
}
h1 {
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.96;
}
h2 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.035em;
}
h3 {
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}
h4 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}
p { max-width: 65ch; }
.lead {
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  line-height: 1.55;
  color: var(--color-ink-soft);
  max-width: 60ch;
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent-dk);
  margin-bottom: 1.25rem;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: currentColor;
  vertical-align: middle;
  margin-right: 0.85rem;
  transform: translateY(-2px);
}
.text-display em,
h1 em, h2 em, h3 em {
  font-style: normal;
  font-weight: inherit;
  background: linear-gradient(110deg, var(--color-accent-dk) 0%, var(--color-accent) 50%, var(--color-accent-dk) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-shift 6s ease-in-out infinite;
}
@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.95rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 999px;
  transition: background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn--primary {
  background: var(--color-ink);
  color: var(--color-bg);
}
.btn--primary:hover { background: var(--color-accent-dk); }
.btn--ghost {
  background: transparent;
  color: var(--color-ink);
  border-color: var(--color-line);
}
.btn--ghost:hover {
  border-color: var(--color-ink);
  background: var(--color-bg-alt);
}
.btn--accent {
  background: var(--color-accent);
  color: var(--color-white);
}
.btn--accent:hover { background: var(--color-accent-dk); }
.btn .arr {
  width: 18px; height: 10px;
  transition: transform var(--dur-fast) var(--ease-out);
}
.btn:hover .arr { transform: translateX(4px); }

/* ----- Header / Nav (glassmorphism, floating, adapts to bg) ----- */
.site-header {
  position: fixed;
  top: clamp(0.75rem, 1.5vw, 1.25rem);
  left: clamp(0.75rem, 2vw, 1.5rem);
  right: clamp(0.75rem, 2vw, 1.5rem);
  z-index: 50;
  background: rgba(250, 247, 242, 0.72);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border: 1px solid rgba(15, 27, 61, 0.08);
  border-radius: 999px;
  transition: background var(--dur-med) var(--ease-out),
              border-color var(--dur-med) var(--ease-out),
              box-shadow var(--dur-med) var(--ease-out),
              top var(--dur-med) var(--ease-out);
}
.site-header.is-scrolled {
  background: rgba(250, 247, 242, 0.92);
  box-shadow: 0 6px 24px -12px rgba(15, 27, 61, 0.18);
}
/* On dark hero: navbar is transparent dark glass */
.site-header--over-dark:not(.is-scrolled) {
  background: rgba(13, 13, 24, 0.32);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--color-bg);
}
.site-header--over-dark:not(.is-scrolled) .nav__brand { color: var(--color-bg); }
.site-header--over-dark:not(.is-scrolled) .nav__links a { color: rgba(250, 247, 242, 0.78); }
.site-header--over-dark:not(.is-scrolled) .nav__links a:hover,
.site-header--over-dark:not(.is-scrolled) .nav__links a[aria-current="page"] {
  color: var(--color-bg);
  background: rgba(255, 255, 255, 0.08);
}
.site-header--over-dark:not(.is-scrolled) .nav__burger {
  border-color: rgba(255, 255, 255, 0.18);
}
.site-header--over-dark:not(.is-scrolled) .nav__burger span,
.site-header--over-dark:not(.is-scrolled) .nav__burger span::before,
.site-header--over-dark:not(.is-scrolled) .nav__burger span::after {
  background: var(--color-bg);
}
/* Kontakt button stays the same in both states (navy bg + white text always).
   On dark navbar we add a faint outline so it still pops against the dark hero. */
.site-header--over-dark:not(.is-scrolled) .nav__cta .btn--primary {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}
.nav__cta .btn--primary {
  color: var(--color-bg);
}
.nav__cta .btn--primary:hover {
  background: var(--color-accent);
  color: var(--color-white);
}
/* Push main content below floating navbar */
main { padding-top: 0; }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.1rem;
  gap: 2rem;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--color-ink);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.nav__brand-mark {
  width: 44px;
  height: 34px;
  background: var(--color-white);
  border-radius: 9px;
  padding: 3px 5px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(15, 27, 61, 0.06);
}
.nav__brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
/* On dark navbar: keep white plaque (logo needs white bg to read), slightly stronger shadow */
.site-header--over-dark:not(.is-scrolled) .nav__brand-mark {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}
/* Footer logo on dark bg: white plaque, slightly bigger */
.footer-brand__mark {
  width: 68px;
  height: 52px;
  background: var(--color-white);
  border-radius: 12px;
  padding: 5px 7px;
  display: grid;
  place-items: center;
  margin-bottom: 1.25rem;
}
.footer-brand__mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.nav__links {
  list-style: none;
  display: flex;
  gap: 0.35rem;
  align-items: center;
}
.nav__links a {
  display: inline-block;
  padding: 0.55rem 0.95rem;
  font-size: 0.94rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--color-ink-soft);
  border-radius: 999px;
  transition: color var(--dur-fast), background var(--dur-fast);
}
.nav__links a:hover,
.nav__links a[aria-current="page"] {
  color: var(--color-ink);
  background: var(--color-bg-alt);
}
.nav__cta { margin-left: 0.5rem; }
.nav__burger {
  display: none;
  width: 44px; height: 44px;
  border-radius: 999px;
  border: 1px solid var(--color-line);
  align-items: center;
  justify-content: center;
}
.nav__burger span,
.nav__burger span::before,
.nav__burger span::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--color-ink);
  border-radius: 2px;
  transition: transform var(--dur-fast) var(--ease-out),
              opacity var(--dur-fast) var(--ease-out);
}
.nav__burger span { position: relative; }
.nav__burger span::before,
.nav__burger span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav__burger span::before { top: -6px; }
.nav__burger span::after  { top:  6px; }
.nav.is-open .nav__burger span { transform: rotate(45deg); }
.nav.is-open .nav__burger span::before { transform: translateY(6px) rotate(-90deg); opacity: 0; }
.nav.is-open .nav__burger span::after  { transform: translateY(-6px) rotate(-90deg); }

@media (max-width: 880px) {
  .nav__burger { display: inline-flex; }
  .nav__links {
    position: fixed;
    inset: 64px 0 0 0;
    background: var(--color-bg);
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem var(--gutter) 2rem;
    gap: 0.25rem;
    transform: translateY(-100%);
    transition: transform var(--dur-med) var(--ease-out);
    border-bottom: 1px solid var(--color-line);
    overflow-y: auto;
    max-height: calc(100vh - 64px);
  }
  .nav.is-open .nav__links { transform: translateY(0); }
  .nav__links a {
    padding: 0.9rem 1rem;
    font-size: 1.05rem;
  }
  .nav__cta { margin-left: 0; margin-top: 0.5rem; }
  .nav__cta .btn { justify-content: center; }
}

/* ----- Hero ----- */
.hero {
  position: relative;
  padding-top: clamp(3rem, 7vw, 6rem);
  padding-bottom: clamp(4rem, 9vw, 8rem);
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
}
@media (max-width: 880px) {
  .hero__inner { grid-template-columns: 1fr; gap: 2.5rem; }
}
.hero__title {
  font-size: clamp(2.8rem, 7.5vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 400;
}
.hero__sub {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--color-ink-soft);
  line-height: 1.55;
  max-width: 42ch;
  margin-bottom: 2rem;
}
.hero__cta {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}
.hero__meta {
  display: grid;
  gap: 1.5rem;
  padding-block: 1rem;
  border-top: 1px solid var(--color-line);
}
.hero__meta-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
}
.hero__meta-num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--color-accent-dk);
  font-variation-settings: "opsz" 144;
  line-height: 1;
  font-style: italic;
}
.hero__meta-txt {
  font-size: 0.92rem;
  color: var(--color-muted);
  line-height: 1.45;
}
.hero__meta-txt strong {
  color: var(--color-ink);
  display: block;
  font-weight: 600;
  font-size: 0.98rem;
  margin-bottom: 0.1rem;
}

/* Decorative element behind hero */
.hero__ornament {
  position: absolute;
  top: 8%;
  right: -6%;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle at 30% 30%, var(--color-accent-soft), transparent 65%);
  filter: blur(40px);
  z-index: -1;
  opacity: 0.7;
  pointer-events: none;
}

/* ----- Section ----- */
.section {
  padding-block: var(--section-y);
}
.section--alt {
  background: var(--color-bg-alt);
}
.section--dark {
  background: var(--color-bg-dark);
  color: var(--color-bg);
}
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 {
  color: var(--color-bg);
}
.section--dark .eyebrow {
  color: var(--color-accent-soft);
}
.section--dark .lead {
  color: var(--color-muted-dk);
}
.section__head {
  max-width: 800px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section__head--center {
  margin-inline: auto;
  text-align: center;
}
.section__head--center .eyebrow::before { display: none; }
.section__head--center .eyebrow { letter-spacing: 0.22em; }

/* ----- Services grid (homepage) ----- */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 1.75rem);
}
@media (max-width: 980px) { .services { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .services { grid-template-columns: 1fr; } }

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem 2rem 1.75rem;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: transform var(--dur-med) var(--ease-out),
              box-shadow var(--dur-med) var(--ease-out),
              border-color var(--dur-med) var(--ease-out);
  overflow: hidden;
  min-height: 320px;
}
.service-card:hover {
  border-color: var(--color-ink);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.service-card__icon {
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--color-bg-alt);
  margin-bottom: 1.75rem;
  color: var(--color-ink);
  transition: background var(--dur-fast), color var(--dur-fast);
}
.service-card:hover .service-card__icon {
  background: var(--color-ink);
  color: var(--color-bg);
}
.service-card__icon svg { width: 24px; height: 24px; }
.service-card h3 { margin-bottom: 0.75rem; }
.service-card p {
  color: var(--color-muted);
  font-size: 0.97rem;
  margin-bottom: 1.75rem;
  flex: 1;
}
.service-card__more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-ink);
}
.service-card__more svg {
  width: 16px; height: 10px;
  transition: transform var(--dur-fast) var(--ease-out);
}
.service-card:hover .service-card__more svg { transform: translateX(4px); }

/* Decorative number in card corner */
.service-card__num {
  position: absolute;
  top: 1.5rem;
  right: 1.75rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  font-style: italic;
  color: var(--color-muted);
  font-variation-settings: "opsz" 9;
}

/* ----- Values strip ----- */
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
}
@media (max-width: 800px) { .values { grid-template-columns: 1fr; } }
.value h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 500;
}
.value p { color: var(--color-muted); font-size: 0.98rem; }
.value__num {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--color-accent-dk);
  margin-bottom: 1rem;
  font-variation-settings: "opsz" 9;
}

/* ----- Detail page: leistungen ----- */
.detail-hero {
  padding-block: clamp(7rem, 11vw, 9rem) clamp(3rem, 6vw, 5rem);
  background: var(--color-bg-alt);
}
.detail-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: end;
}
@media (max-width: 880px) { .detail-hero__grid { grid-template-columns: 1fr; } }
.crumbs {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 2rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}
.crumbs a { color: var(--color-muted); text-decoration: none; }
.crumbs a:hover { color: var(--color-ink); }
.crumbs__sep { color: var(--color-line); }
.crumbs [aria-current="page"] { color: var(--color-ink); font-weight: 500; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
@media (max-width: 720px) { .feature-grid { grid-template-columns: 1fr; } }
.feature {
  padding: 1.75rem;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
}
.feature__num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--color-accent-dk);
  display: block;
  margin-bottom: 1rem;
  font-variation-settings: "opsz" 9;
}
.feature h3 { font-family: var(--font-body); font-size: 1.15rem; font-weight: 600; letter-spacing: -0.005em; margin-bottom: 0.65rem; }
.feature p { color: var(--color-muted); font-size: 0.95rem; }

/* Process list */
.process {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--color-line);
}
.process__step {
  display: grid;
  grid-template-columns: 100px 1fr 2fr;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--color-line);
  align-items: start;
}
@media (max-width: 720px) {
  .process__step { grid-template-columns: 1fr; gap: 0.5rem; }
}
.process__num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-style: italic;
  color: var(--color-accent-dk);
  font-variation-settings: "opsz" 144;
}
.process__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.process__desc { color: var(--color-muted); }

/* Bullet list */
.list-check { list-style: none; display: grid; gap: 0.85rem; }
.list-check li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 0.85rem;
  align-items: start;
  color: var(--color-ink-soft);
}
.list-check svg {
  width: 18px; height: 18px;
  color: var(--color-accent-dk);
  margin-top: 4px;
}

/* ----- CTA banner ----- */
.cta-banner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  align-items: center;
  gap: 2rem;
  padding: clamp(2.5rem, 5vw, 4rem);
  background: var(--color-ink);
  color: var(--color-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}
@media (max-width: 720px) {
  .cta-banner { grid-template-columns: 1fr; }
}
.cta-banner h2 {
  color: var(--color-bg);
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  margin-bottom: 0.75rem;
}
.cta-banner p { color: var(--color-muted-dk); max-width: 48ch; }
.cta-banner .btn--primary {
  background: var(--color-accent);
  color: var(--color-white);
}
.cta-banner .btn--primary:hover { background: var(--color-accent-soft); color: var(--color-ink); }
.cta-banner__ornament {
  position: absolute;
  right: -100px;
  bottom: -100px;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50%;
  pointer-events: none;
}
.cta-banner__ornament::after {
  content: "";
  position: absolute;
  inset: 40px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 50%;
}

/* ----- About page ----- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
@media (max-width: 880px) { .about-grid { grid-template-columns: 1fr; } }
.about-card {
  padding: 2rem;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
}
.about-card dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem 1.5rem;
}
.about-card dt {
  color: var(--color-muted);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.about-card dd { color: var(--color-ink); }

/* ----- Contact page ----- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; display: grid; gap: 1.5rem; }
.contact-list a {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 1.25rem;
  align-items: center;
  text-decoration: none;
  color: var(--color-ink);
  padding: 1.25rem 0;
  border-top: 1px solid var(--color-line);
  transition: color var(--dur-fast);
}
.contact-list a:hover { color: var(--color-accent-dk); }
.contact-list a:last-child { border-bottom: 1px solid var(--color-line); }
.contact-list__icon {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--color-bg-alt);
  color: var(--color-ink);
}
.contact-list svg { width: 18px; height: 18px; }
.contact-list__label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.15rem;
}
.contact-list__value { font-size: 1.05rem; font-weight: 500; }

/* ----- Legal pages ----- */
.legal {
  padding-block: clamp(7rem, 10vw, 9rem) clamp(3rem, 6vw, 5rem);
}
.legal .container { max-width: 820px; }
.legal h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  margin-bottom: 1rem;
}
.legal__meta {
  color: var(--color-muted);
  font-size: 0.9rem;
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-line);
}
.legal h2 {
  font-size: 1.55rem;
  margin-top: 3rem;
  margin-bottom: 0.85rem;
  font-weight: 500;
}
.legal h3 {
  font-size: 1.15rem;
  font-family: var(--font-body);
  font-weight: 600;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.005em;
}
.legal p, .legal ul, .legal ol {
  margin-bottom: 1.1rem;
  color: var(--color-ink-soft);
  max-width: none;
}
.legal ul, .legal ol { padding-left: 1.3rem; }
.legal li { margin-bottom: 0.4rem; }
.legal a {
  color: var(--color-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--color-accent);
}
.legal a:hover { color: var(--color-accent-dk); }

/* ----- Footer ----- */
.site-footer {
  background: var(--color-bg-dark);
  color: var(--color-muted-dk);
  padding-block: clamp(3rem, 6vw, 5rem) 2rem;
  margin-top: clamp(4rem, 8vw, 6rem);
}
.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3rem);
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--color-line-dk);
}
@media (max-width: 880px) {
  .site-footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .site-footer__top { grid-template-columns: 1fr; }
}
.site-footer h4 {
  color: var(--color-bg);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 1.25rem;
  font-family: var(--font-body);
}
.site-footer ul { list-style: none; display: grid; gap: 0.65rem; }
.site-footer a {
  color: var(--color-muted-dk);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color var(--dur-fast);
}
.site-footer a:hover { color: var(--color-bg); }
/* The footer logo image now lives inside .footer-brand__mark (white plaque);
   .footer-brand__mark img handles its sizing/display directly. */
.footer-brand p {
  color: var(--color-muted-dk);
  font-size: 0.95rem;
  max-width: 32ch;
}
.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 2rem;
  font-size: 0.85rem;
  color: var(--color-muted-dk);
}
.site-footer__bottom a { font-size: 0.85rem; }
.site-footer__legal {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* ----- Cookie banner ----- */
.cookie-banner {
  position: fixed;
  left: clamp(0.75rem, 2vw, 1.5rem);
  right: clamp(0.75rem, 2vw, 1.5rem);
  bottom: clamp(0.75rem, 2vw, 1.5rem);
  z-index: 100;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: clamp(1.25rem, 2vw, 1.75rem);
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) auto;
  gap: 1.5rem;
  align-items: center;
  max-width: 980px;
  margin-inline: auto;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 320ms var(--ease-out), opacity 320ms var(--ease-out);
}
.cookie-banner.is-visible { transform: translateY(0); opacity: 1; }
.cookie-banner[hidden] { display: none; }
@media (max-width: 720px) {
  .cookie-banner { grid-template-columns: 1fr; }
}
.cookie-banner__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
}
.cookie-banner__text {
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.5;
}
.cookie-banner__text a {
  color: var(--color-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: var(--color-accent);
}
.cookie-banner__actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
@media (max-width: 720px) {
  .cookie-banner__actions { justify-content: stretch; }
  .cookie-banner__actions .btn { flex: 1; justify-content: center; }
}
.cookie-banner .btn { padding: 0.7rem 1.25rem; font-size: 0.88rem; }

/* Cookie settings modal */
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  background: rgba(15, 27, 61, 0.55);
  backdrop-filter: blur(4px);
  padding: 1rem;
}
.cookie-modal[hidden] { display: none; }
.cookie-modal__panel {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}
.cookie-modal h2 {
  font-size: 1.65rem;
  margin-bottom: 0.5rem;
}
.cookie-modal__intro {
  color: var(--color-muted);
  font-size: 0.95rem;
  margin-bottom: 1.75rem;
}
.cookie-category {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--color-line);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: start;
}
.cookie-category:last-of-type { border-bottom: 0; }
.cookie-category h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  letter-spacing: 0;
}
.cookie-category p {
  font-size: 0.88rem;
  color: var(--color-muted);
  max-width: none;
}
.cookie-category__badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--color-bg-alt);
  color: var(--color-muted);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  margin-left: 0.5rem;
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Toggle switch */
.toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.toggle input {
  position: absolute;
  opacity: 0;
  width: 100%; height: 100%;
  cursor: pointer;
}
.toggle__slider {
  position: absolute;
  inset: 0;
  background: var(--color-line);
  border-radius: 999px;
  transition: background var(--dur-fast);
}
.toggle__slider::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  background: var(--color-white);
  border-radius: 50%;
  transition: transform var(--dur-fast);
}
.toggle input:checked + .toggle__slider {
  background: var(--color-ink);
}
.toggle input:checked + .toggle__slider::after {
  transform: translateX(20px);
}
.toggle input:disabled + .toggle__slider {
  background: var(--color-accent);
  opacity: 0.6;
  cursor: not-allowed;
}
.toggle input:focus-visible + .toggle__slider {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
.cookie-modal__actions {
  display: flex;
  gap: 0.65rem;
  margin-top: 1.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
@media (max-width: 520px) {
  .cookie-modal__actions { justify-content: stretch; }
  .cookie-modal__actions .btn { flex: 1; justify-content: center; }
}

/* ----- Utilities ----- */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  top: -100px; left: 1rem;
  background: var(--color-ink);
  color: var(--color-bg);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 200;
  transition: top var(--dur-fast);
  text-decoration: none;
  font-size: 0.88rem;
}
.skip-link:focus { top: 1rem; }

/* =========================================================
   MODERN HERO (dark, 3D-feel, replaces the original light hero)
   ========================================================= */
.hero-modern {
  position: relative;
  min-height: 100vh;
  background: radial-gradient(ellipse at 20% 30%, #1a2a52 0%, #0a0e1f 45%, #06070d 100%);
  color: var(--color-bg);
  overflow: hidden;
  display: flex;
  align-items: center;
  padding-top: clamp(7rem, 13vh, 9rem);
  padding-bottom: clamp(5rem, 10vh, 8rem);
  isolation: isolate;
}
.hero-modern__canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}
/* Architectural grid */
.hero-modern__grid {
  position: absolute;
  inset: -1px;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 60% at 60% 50%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 50%, #000 30%, transparent 75%);
  opacity: 0.7;
}
/* Glow orbs — brighter, more dynamic */
.hero-modern__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  will-change: transform, opacity;
  mix-blend-mode: screen;
}
.hero-modern__glow--accent {
  top: 8%; left: -10%;
  width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(232, 165, 110, 0.75) 0%, rgba(184, 137, 94, 0.3) 35%, transparent 70%);
  animation: drift1 14s ease-in-out infinite alternate;
}
.hero-modern__glow--blue {
  bottom: -12%; right: -8%;
  width: 720px; height: 720px;
  background: radial-gradient(circle, rgba(96, 130, 230, 0.6) 0%, rgba(60, 100, 200, 0.25) 35%, transparent 70%);
  animation: drift2 18s ease-in-out infinite alternate;
}
.hero-modern__glow--accent-2 {
  top: 50%; left: 55%;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(232, 165, 110, 0.35) 0%, transparent 65%);
  animation: drift3 12s ease-in-out infinite alternate;
}
@keyframes drift1 {
  0%   { transform: translate3d(0, 0, 0) scale(1); opacity: 0.85; }
  50%  { transform: translate3d(80px, 60px, 0) scale(1.15); opacity: 1; }
  100% { transform: translate3d(120px, 20px, 0) scale(1.05); opacity: 0.9; }
}
@keyframes drift2 {
  0%   { transform: translate3d(0, 0, 0) scale(1); opacity: 0.7; }
  50%  { transform: translate3d(-100px, -60px, 0) scale(1.2); opacity: 1; }
  100% { transform: translate3d(-50px, -100px, 0) scale(1.1); opacity: 0.8; }
}
@keyframes drift3 {
  0%   { transform: translate3d(0, 0, 0) scale(0.9); opacity: 0.5; }
  100% { transform: translate3d(-60px, 40px, 0) scale(1.2); opacity: 0.9; }
}

/* 3D scene container — each .floater inside gets a per-shape mouse rotation via JS */
.hero-modern__scene {
  position: absolute;
  inset: 0;
  perspective: 1100px;
  perspective-origin: 50% 50%;
  pointer-events: none;
  transform-style: preserve-3d;
}
/* Subtle background-layer shift with mouse (CSS-only) */
.hero-modern__grid,
.hero-modern__particles {
  transform: translate3d(
    calc(var(--mx, 0) * -12px),
    calc(var(--my, 0) * -12px),
    0
  );
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Floating rectangular panels — JS rotates them to "look at" the cursor.
   Each .floater is a single 3D-tilted card (not a 6-face cube). */
.floater {
  position: absolute;
  border: 1.5px solid rgba(232, 165, 110, 0.55);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(232, 165, 110, 0.18) 0%, rgba(96, 130, 230, 0.08) 60%, rgba(232, 165, 110, 0.04) 100%),
    rgba(13, 13, 24, 0.45);
  box-shadow:
    inset 0 0 30px rgba(232, 165, 110, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 8px 32px rgba(0, 0, 0, 0.35),
    0 0 24px rgba(232, 165, 110, 0.2);
  backdrop-filter: blur(3px);
  will-change: transform;
  transform-style: preserve-3d;
  /* Smooth lerp toward target rotation */
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  /* Idle floating animation — runs subtly behind the JS rotation */
  animation: floater-bob 6s ease-in-out infinite;
}
/* Inner highlight to give the panel some depth */
.floater::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07) 0%, transparent 35%);
  pointer-events: none;
}
/* Position + sizing per floater — rectangular, varied aspect ratios */
.floater--1 { top: 12%; left: 65%; width: 240px; height: 150px; animation-delay: 0s; }
.floater--2 { top: 56%; left: 78%; width: 180px; height: 110px; animation-delay: -1.5s; }
.floater--3 { top: 65%; left: 4%;  width: 200px; height: 130px; animation-delay: -3s; }
.floater--4 { top: 18%; left: 8%;  width: 140px; height: 90px;  animation-delay: -4.5s; }
.floater--5 { top: 38%; left: 88%; width: 120px; height: 80px;  animation-delay: -2s; }
.floater--6 { top: 8%;  left: 38%; width: 100px; height: 60px;  animation-delay: -3.5s; }

@keyframes floater-bob {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -14px; }
}
@media (max-width: 720px) {
  .floater { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .floater { animation: none; transition: none; }
}

/* Particle dots field — adds gentle movement everywhere */
.hero-modern__particles {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(232, 165, 110, 0.45) 1px, transparent 1.5px);
  background-size: 36px 36px;
  background-position: 0 0;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 30%, transparent 80%);
  opacity: 0.55;
  animation: particles-drift 24s linear infinite;
}
@keyframes particles-drift {
  from { background-position: 0 0; }
  to   { background-position: 36px 72px; }
}

@media (max-width: 720px) {
  .cube { display: none; }
  .hero-modern__glow { filter: blur(50px); }
  .hero-modern__glow--accent  { width: 360px; height: 360px; }
  .hero-modern__glow--blue    { width: 420px; height: 420px; }
  .hero-modern__glow--accent-2 { width: 240px; height: 240px; }
  .hero-modern__particles { background-size: 28px 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .cube, .hero-modern__glow, .hero-modern__particles, .hero-modern__title em { animation: none !important; }
}

/* Vignette on top + bottom to seat the content */
.hero-modern__vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, transparent 70%, rgba(6, 7, 13, 0.95) 100%),
    linear-gradient(to right, rgba(6, 7, 13, 0.55) 0%, transparent 25%, transparent 75%, rgba(6, 7, 13, 0.55) 100%);
  pointer-events: none;
}

/* Hero content layout */
.hero-modern__content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
  width: 100%;
}
@media (max-width: 880px) {
  .hero-modern__content { grid-template-columns: 1fr; align-items: start; gap: 2.5rem; }
}

.hero-modern__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.9rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(250, 247, 242, 0.8);
  margin-bottom: 2rem;
}
.hero-modern__eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--color-accent);
}

.hero-modern__title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7.5vw, 6.2rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.05em;
  color: var(--color-bg);
  margin: 0;
}
.hero-modern__title em {
  display: block;
  font-style: normal;
  font-weight: 800;
  background: linear-gradient(110deg, #e8b577 0%, #f5d4a8 30%, #b8895e 60%, #f5d4a8 80%, #e8b577 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: hero-gradient 7s ease-in-out infinite;
}
@keyframes hero-gradient {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
/* Marquee inside hero — provides constant visible motion */
.hero-modern__marquee {
  margin-top: 2.5rem;
  position: relative;
  overflow: hidden;
  padding-block: 0.5rem;
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.hero-modern__marquee-track {
  display: inline-flex;
  gap: 2.5rem;
  white-space: nowrap;
  align-items: center;
  animation: marquee-scroll 32s linear infinite;
  will-change: transform;
}
.hero-modern__marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: rgba(250, 247, 242, 0.7);
  text-transform: uppercase;
}
.hero-modern__marquee-item::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--color-accent);
}
@keyframes marquee-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-modern__marquee-track { animation: none; }
}

.hero-modern__lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.6;
  color: rgba(250, 247, 242, 0.78);
  margin-bottom: 2rem;
  max-width: 44ch;
}
.hero-modern__cta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ----- Modern button system ----- */
.btn-modern {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
}
.btn-modern--outline {
  background: transparent;
  color: var(--color-bg);
  border-color: rgba(255, 255, 255, 0.35);
}
.btn-modern--outline:hover {
  background: var(--color-bg);
  color: var(--color-ink);
  border-color: var(--color-bg);
}
.btn-modern--filled {
  background: var(--color-bg);
  color: var(--color-ink);
}
.btn-modern--filled:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -8px rgba(184, 137, 94, 0.4);
}
.btn-modern__icon {
  width: 18px; height: 18px;
  color: var(--color-accent);
  transition: transform var(--dur-fast) var(--ease-out);
}
.btn-modern--filled:hover .btn-modern__icon { transform: rotate(90deg); }

/* Scroll hint */
.hero-modern__scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(250, 247, 242, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
}
.hero-modern__scroll svg {
  width: 14px; height: 24px;
  animation: scroll-bounce 2s ease-in-out infinite;
}
@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50%      { transform: translateY(4px); opacity: 1; }
}
@media (max-width: 880px) { .hero-modern__scroll { display: none; } }

/* Reveal animation on scroll — only hides when JS is active (progressive enhancement) */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
}
