/* =====================================================
   SOLARIS · Büroflächen Stuttgart-Vaihingen
   Light architectural editorial
   Paper · Ink · Cobalt
   ===================================================== */

/* --- FONTS (self-hosted, Fontshare) --- */
@font-face {
  font-family: 'Cabinet Grotesk';
  src: url('../fonts/cabinet-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Cabinet Grotesk';
  src: url('../fonts/cabinet-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Cabinet Grotesk';
  src: url('../fonts/cabinet-800.woff2') format('woff2');
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('../fonts/satoshi-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('../fonts/satoshi-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('../fonts/satoshi-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

/* --- RESET & TOKENS --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --paper: #F4F4F1;
  --paper-deep: #EAEAE5;
  --ink: #141517;
  --ink-70: rgba(20, 21, 23, 0.72);
  --ink-50: rgba(20, 21, 23, 0.62);
  --line: rgba(20, 21, 23, 0.14);
  /* Accent system: cobalt = building, tech, interactive elements (site-wide).
     Clay = interior and fit-out content, used ONLY inside the spaces block.
     Color blocks (IF-inspired): spaces = plaster, facts = sage. */
  --cobalt: #1D4ED8;
  --clay: #B65C3D;
  --plaster: #EFE8DE;
  --sage: #E4E8DF;
  --paper-on-ink: rgba(244, 244, 241, 0.92);
  --paper-on-ink-60: rgba(244, 244, 241, 0.64);
  --line-on-ink: rgba(244, 244, 241, 0.18);

  --font-display: 'Cabinet Grotesk', 'Helvetica Neue', sans-serif;
  --font-body: 'Satoshi', 'Helvetica Neue', sans-serif;

  --gutter: clamp(20px, 5vw, 72px);
  --section-gap: clamp(96px, 14vh, 170px);
  --content-max: 1440px;
}

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

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
address { font-style: normal; }

::selection { background: var(--cobalt); color: var(--paper); }

h1, h2 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.02;
  text-wrap: balance;
}

h2 { font-size: clamp(2.1rem, 4.2vw, 3.6rem); }

/* --- BUTTONS ---
   Radius system: interactive elements are pill (999px),
   form inputs are 10px, media is sharp (0). */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn:active { transform: scale(0.98); }

.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--cobalt); }

.btn-paper { background: var(--paper); color: var(--ink); }
.btn-paper:hover { background: #fff; }

.btn-ghost {
  border-color: rgba(244, 244, 241, 0.55);
  color: var(--paper-on-ink);
  background: rgba(20, 21, 23, 0.18);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { border-color: var(--paper); background: rgba(20, 21, 23, 0.32); }

/* --- NAVIGATION --- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 44px);
  height: 72px;
  padding: 0 var(--gutter);
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  color: var(--paper);
}
.nav.is-solid {
  background: rgba(244, 244, 241, 0.92);
  backdrop-filter: blur(12px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}

.nav-brand,
.footer-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.01em;
}
.nav-brand span, .footer-brand span { color: var(--cobalt); }
.nav.is-solid .nav-brand span { color: var(--cobalt); }

.nav-links {
  display: flex;
  gap: clamp(16px, 2.4vw, 34px);
  margin-left: auto;
}
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.85;
  transition: opacity 0.15s ease;
}
.nav-links a:hover { opacity: 1; }

.nav-right { display: flex; align-items: center; gap: 18px; }
.nav-lang {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 0.85;
}
.nav-lang:hover { opacity: 1; }
.nav-cta { padding: 11px 22px; font-size: 0.92rem; }
.nav:not(.is-solid) .nav-cta { background: var(--paper); color: var(--ink); }
.nav:not(.is-solid) .nav-cta:hover { background: #fff; }

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px; height: 44px;
  background: none; border: none; cursor: pointer;
  margin-left: auto;
}
.nav-burger span {
  display: block; height: 2px; width: 26px;
  margin: 0 auto;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 40;
  background: var(--paper);
  display: none;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--gutter);
  gap: 8px;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

/* --- HERO --- */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-media {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(10, 12, 16, 0.62) 0%, rgba(10, 12, 16, 0.18) 44%, rgba(10, 12, 16, 0) 66%),
    linear-gradient(to bottom, rgba(10, 12, 16, 0.30) 0%, rgba(10, 12, 16, 0) 22%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(48px, 9vh, 96px);
  color: var(--paper);
  opacity: 0;
  transform: translateY(18px);
  animation: hero-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.25s forwards;
}
@keyframes hero-in {
  to { opacity: 1; transform: translateY(0); }
}
.hero h1 {
  font-size: clamp(3rem, 8.5vw, 7rem);
  margin-bottom: 18px;
}
.hero-sub {
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 18px rgba(10, 12, 16, 0.45);
  margin-bottom: 30px;
}
.hero h1 { text-shadow: 0 2px 32px rgba(10, 12, 16, 0.28); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero arc: draws the building's curve under its name */
.arc-word { position: relative; display: inline-block; }
.arc {
  position: absolute;
  left: 0; right: 0;
  bottom: -0.40em;
  width: 100%; height: 0.24em;
  overflow: visible;
}
.hero h1 { padding-bottom: 0.32em; margin-bottom: 0; }
.arc {
  clip-path: inset(-20% 100% -20% 0);
  animation: arc-draw 1.1s cubic-bezier(0.65, 0, 0.35, 1) 1.35s forwards;
}
.arc path {
  fill: none;
  stroke: var(--cobalt);
  stroke-width: 7;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
@keyframes arc-draw {
  to { clip-path: inset(-20% 0 -20% 0); }
}
@media (prefers-reduced-motion: reduce) {
  .arc { animation: none; clip-path: none; }
}

/* --- SHARED SECTION SHELL --- */
main > section:not(.hero):not(.infra):not(.spaces):not(.facts) {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--section-gap) var(--gutter) 0;
}
main > section:last-of-type { padding-bottom: var(--section-gap); }

/* --- STATEMENT --- */
.statement p {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  max-width: 21em;
  text-wrap: balance;
}

/* --- MEDIA BREAK (full-bleed video) --- */
.media-break {
  margin-top: var(--section-gap);
}
.media-break video {
  width: 100%;
  height: min(78vh, 760px);
  object-fit: cover;
}

/* --- GEBÄUDE --- */
.building-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.building-portrait img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.building-copy h2 { margin-bottom: 26px; }
.building-copy p {
  color: var(--ink-70);
  max-width: 33em;
  margin-bottom: 18px;
}
.building-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px 32px;
  margin-top: 38px;
  border-top: 1px solid var(--line);
  padding-top: 30px;
}
.building-facts li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.95rem;
  color: var(--ink-50);
}
.building-facts strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--ink);
}
.building-wide { margin-top: clamp(56px, 9vh, 110px); }
.building-wide img {
  width: 100%;
  aspect-ratio: 16 / 8.5;
  object-fit: cover;
}

/* Day/night compare slider */
.compare {
  position: relative;
  overflow: hidden;
  touch-action: pan-y;
}
.compare img {
  width: 100%;
  aspect-ratio: 16 / 8.5;
  object-fit: cover;
  display: block;
}
.compare-night {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 0 var(--pos));
}
.compare-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--pos);
  width: 2px;
  background: rgba(244, 244, 241, 0.9);
  pointer-events: none;
}
.compare-handle::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 44px; height: 44px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: var(--cobalt);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F4F4F1' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 7l-5 5 5 5M16 7l5 5-5 5'/%3E%3C/svg%3E");
  background-size: 22px;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 2px 14px rgba(10, 12, 16, 0.35);
}
.compare-handle span {
  position: absolute;
  bottom: 14px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(244, 244, 241, 0.85);
}
.compare-handle span:first-child { right: 14px; }
.compare-handle span:last-child { left: 14px; }
.compare-range {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
}
.compare-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 60px; height: 100%;
}
.building-wide figcaption,
.spaces-photos figcaption,
.gallery figcaption,
.infra-photo figcaption {
  font-size: 0.85rem;
  color: var(--ink-50);
  padding-top: 12px;
}
.infra-photo figcaption { color: var(--paper-on-ink-60); }

/* --- FLÄCHEN (plaster color block, clay accent) --- */
main > section.spaces {
  max-width: none;
  background: var(--plaster);
  margin-top: var(--section-gap);
  padding: clamp(72px, 10vh, 130px) var(--gutter) clamp(72px, 10vh, 130px);
}
.spaces > * {
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
}
.spaces .hl-clay { color: var(--clay); }
.spaces-head { margin-bottom: clamp(40px, 6vh, 64px); }
.spaces-head h2 { margin-bottom: 20px; }
.spaces-head p { color: var(--ink-70); max-width: 38em; }

.spaces-stack { border-top: 1px solid var(--line); }
.stack-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) auto;
  gap: 14px;
  align-items: baseline;
  padding: 13px 0;
}
.stack-row + .stack-row { border-top: 1px solid var(--line); }
.stack-row span:first-child { font-weight: 700; }
.stack-row span:nth-child(2) { color: var(--ink-50); font-size: 0.92rem; }
.stack-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 1.7vw, 1.45rem);
  justify-self: end;
  color: var(--clay);
}

/* Floor plan + floor table, side by side (compact) */
.spaces-detail {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  margin-top: clamp(36px, 5vh, 60px);
}
.spaces-plan-fig { margin: 0; max-width: 460px; }
.spaces-plan-fig img { width: 100%; display: block; border-radius: 8px; }
.spaces-plan-fig figcaption {
  display: flex;
  justify-content: space-between;
  margin-top: clamp(12px, 1.6vw, 18px);
  padding-top: clamp(10px, 1.4vw, 16px);
  border-top: 1px solid var(--line);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-50);
}
.spaces-info h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--clay);
}
.spaces-info > p { color: var(--ink-70); margin-bottom: 18px; }
.spaces-info .spaces-stack { margin-bottom: 14px; }
.spaces-plan-note { font-size: 0.86rem; color: var(--ink-50); }

.spaces-compare { margin-top: clamp(48px, 7vh, 80px); }
.spaces-compare .compare img { aspect-ratio: 16 / 9; }
.spaces-compare-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(14px, 2vw, 28px);
  margin-top: clamp(28px, 4vh, 48px);
}
.compare-half .compare img { aspect-ratio: 4 / 3; }
.compare-half figcaption,
.spaces-compare figcaption {
  font-size: 0.92rem;
  color: var(--ink-50);
  line-height: 1.5;
  padding-top: 14px;
}
/* clay title line above the muted description — matches the concept captions */
.cap-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--clay);
  margin-bottom: 6px;
}

.spaces-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 28px);
  margin-top: clamp(28px, 4vh, 48px);
}
.spaces-photos--two { grid-template-columns: 1fr 1fr; }
.spaces-photos img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.spaces-note {
  margin-top: 34px;
  color: var(--ink-50);
  font-size: 0.95rem;
}

/* --- LAGE --- */
.location-media img,
.location-media video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.location-media figcaption {
  font-size: 0.85rem;
  color: var(--ink-50);
  padding-top: 12px;
}
.location-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 72px);
  padding-top: clamp(40px, 6vh, 64px);
}
.location-copy h2 { max-width: 9em; margin-bottom: 20px; }
.location-copy p { color: var(--ink-70); max-width: 28em; }
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 32px;
}
.location-grid div { display: flex; flex-direction: column; gap: 2px; }
.location-grid strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.7rem;
}
.location-grid span { color: var(--ink-50); font-size: 0.95rem; }

/* --- INFRASTRUKTUR (the one dark block) --- */
.infra {
  background: var(--ink);
  color: var(--paper-on-ink);
  margin-top: var(--section-gap);
}
.infra-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: clamp(80px, 12vh, 140px) var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
}
.infra h2 { color: var(--paper); max-width: 12em; margin-bottom: 24px; }
.infra-copy > p { color: var(--paper-on-ink-60); max-width: 36em; }
.infra-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px 32px;
  margin-top: 44px;
  border-top: 1px solid var(--line-on-ink);
  padding-top: 34px;
}
.infra-grid div { display: flex; flex-direction: column; gap: 2px; }
.infra-grid strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--paper);
}
.infra-grid span { color: var(--paper-on-ink-60); font-size: 0.95rem; }
.infra-photo img,
.infra-photo video {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* Compute concept: server render + Das Konzept side by side */
.infra-concept {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  margin-top: clamp(40px, 6vh, 72px);
  padding-top: clamp(40px, 6vh, 72px);
  border-top: 1px solid var(--line-on-ink);
}
.infra-vision { margin: 0; }
.infra-vision img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.infra-models h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--paper);
  margin-bottom: 14px;
}
.models-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr);
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line-on-ink);
}
.models-row:last-child { border-bottom: 1px solid var(--line-on-ink); }
.models-row span:first-child { font-weight: 700; color: var(--paper); }
.models-row span:last-child { color: var(--paper-on-ink-60); }

/* --- GALERIE --- */
.gallery h2 { margin-bottom: clamp(36px, 5vh, 56px); }
.gallery-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(36px, 5vh, 56px);
}
.gallery-head h2 { margin-bottom: 0; }
.gallery-nav {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
  margin-bottom: 6px;
}
.gallery-arrow {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.gallery-arrow:hover {
  border-color: var(--cobalt);
  color: var(--cobalt);
}
.gallery-arrow svg { width: 18px; height: 18px; display: block; }
.gallery-track {
  display: flex;
  gap: clamp(14px, 2vw, 28px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 18px;
  margin: 0 calc(-1 * var(--gutter));
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  scrollbar-width: thin;
  scrollbar-color: var(--ink-50) transparent;
  cursor: grab;
}
.gallery-track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.gallery-track figure {
  flex: 0 0 auto;
  width: clamp(280px, 38vw, 560px);
  scroll-snap-align: start;
}
.gallery-track img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

/* --- KONZEPTE --- */
.concepts-head { max-width: 760px; margin-bottom: clamp(40px, 6vh, 72px); }
.overline {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-50);
  font-weight: 600;
  margin-bottom: 16px;
}
.concepts-head h2 { margin-bottom: 18px; }
/* Two-column "ideas board" — uniform 3:2 grid so left and right cards align
   row by row. Portrait sources are cover-cropped, anchored low to keep the
   café/activity in frame. Collapses to one column on mobile. */
.concepts-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(30px, 4vh, 56px) clamp(20px, 2.4vw, 40px);
  align-items: start;
}
.concept { margin: 0; }
.concept .compare { width: 100%; }
.concept .compare img { aspect-ratio: 3 / 2; object-fit: cover; }
.concept.concept-portrait .compare img { object-position: center bottom; }
.concept figcaption {
  margin-top: clamp(12px, 1.6vw, 18px);
  text-align: left;
  font-size: 0.92rem;
  color: var(--ink-50);
  line-height: 1.5;
}
.concept-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--clay);
  margin-bottom: 6px;
}
.concepts-note { margin-top: clamp(32px, 5vh, 56px); font-size: 0.9rem; color: var(--ink-50); max-width: 720px; }

/* --- DATEN --- */
.facts { background: var(--sage); }
main > section.facts {
  max-width: none;
  margin-top: var(--section-gap);
  padding: clamp(72px, 10vh, 120px) var(--gutter);
}
.facts h2, .facts-grid {
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
}
.facts h2 { margin-bottom: clamp(36px, 5vh, 56px); }
.facts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 72px);
}
.facts dl { display: flex; flex-direction: column; }
.facts dl div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 15px 0;
}
.facts dl div + div { border-top: 1px solid var(--line); }
.facts dt { color: var(--ink-50); }
.facts dd { font-weight: 700; text-align: right; }

/* --- KONTAKT --- */
main > section.contact { padding-top: var(--section-gap); }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: stretch;
}
.contact-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.contact-side h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  max-width: 14em;
  margin-bottom: clamp(20px, 2.5vw, 30px);
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: clamp(24px, 3vw, 38px);
  padding-bottom: clamp(20px, 2.5vw, 30px);
  border-bottom: 1px solid var(--line);
}
.contact-mail {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.2rem, 1.9vw, 1.55rem);
  color: var(--cobalt);
}
.contact-details address { color: var(--ink-50); font-size: 0.95rem; }

.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field label { font-weight: 700; font-size: 0.95rem; }
.form-field input,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 15px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--cobalt);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.18);
}
.form-field small { color: var(--ink-50); font-size: 0.85rem; }
.form-field.has-error input { border-color: #B3261E; }
.form-error { color: #B3261E; font-size: 0.85rem; }
.contact-form .btn { align-self: flex-start; }
.form-hint { color: var(--ink-50); font-size: 0.85rem; }

/* --- CONTACT MAP (clickable, opens Google Maps) --- */
.contact-map {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--plaster);
  min-height: 420px;
}
.contact-map img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.contact-map:hover img { transform: scale(1.03); }
.contact-map-marker {
  position: absolute;
  top: 50%; left: 50%;
  width: 18px; height: 18px;
  transform: translate(-50%, -50%);
  background: var(--cobalt);
  border: 3px solid #fff;
  border-radius: 999px;
  box-shadow: 0 0 0 6px rgba(29, 78, 216, 0.22);
}
.contact-map-label,
.contact-map-cta {
  position: absolute;
  bottom: clamp(16px, 2vw, 28px);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 11px 17px;
}
.contact-map-label {
  left: clamp(16px, 2vw, 28px);
  background: rgba(244, 244, 241, 0.92);
  color: var(--ink);
  backdrop-filter: blur(4px);
}
.contact-map-cta {
  right: clamp(16px, 2vw, 28px);
  background: var(--ink);
  color: var(--paper);
  font-weight: 500;
  border-radius: 999px;
  transition: background-color 0.18s ease;
}
.contact-map:hover .contact-map-cta { background: var(--cobalt); }

/* --- FOOTER --- */
.footer {
  border-top: 1px solid var(--line);
  margin-top: var(--section-gap);
  padding: 40px var(--gutter);
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 56px);
  flex-wrap: wrap;
}
.footer nav { display: flex; gap: 26px; margin-left: auto; }
.footer nav a, .footer p { font-size: 0.9rem; color: var(--ink-50); }
.footer nav a:hover { color: var(--ink); }

/* --- REVEAL ANIMATION --- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-content { animation: none; opacity: 1; transform: none; }
}

/* --- RESPONSIVE --- */
@media (max-width: 1023px) {
  .nav-links { display: none; }
}

@media (max-width: 767px) {
  .gallery-nav { display: none; }
  .concepts-list { grid-template-columns: 1fr; }
  .nav-right { display: none; }
  .nav-burger { display: flex; }

  .hero h1 { font-size: clamp(2.6rem, 13vw, 3.4rem); }

  .building-grid,
  .location-body,
  .infra-inner,
  .infra-concept,
  .contact-grid,
  .form-row,
  .facts-grid { grid-template-columns: 1fr; }

  .building-portrait { order: 2; }
  .building-copy { order: 1; }

  .spaces-photos { grid-template-columns: 1fr; }
  .spaces-photos figure:nth-child(2) { display: none; }

  .stack-row { grid-template-columns: 1fr auto; }
  .stack-row span:nth-child(2) { display: none; }

  .building-wide img { aspect-ratio: 4 / 3; }
  .location-media img { aspect-ratio: 4 / 3; }

  .gallery-track figure { width: 78vw; }

  .media-break video { height: 52vh; }
  .models-row { grid-template-columns: 1fr; gap: 2px; }
  .spaces-detail { grid-template-columns: 1fr; }
  .spaces-plan-fig { max-width: 520px; margin: 0 auto; }
  .spaces-compare-row { grid-template-columns: 1fr; }
  .contact-map { min-height: 0; aspect-ratio: 4 / 5; order: 2; }
  .contact-side { order: 1; }
  .contact-map-label, .contact-map-cta {
    font-size: 0.78rem; padding: 9px 13px;
    bottom: 14px;
  }
  .compare img { aspect-ratio: 4 / 3; }
  .infra-vision img { aspect-ratio: 16 / 9; }

  .footer { flex-direction: column; align-items: flex-start; gap: 18px; }
  .footer nav { margin-left: 0; }
}
