/* ============================================================
   AR PROJEKTWERK — Design System
   ============================================================ */

/* Self-hosted webfonts (Cormorant Garamond + Inter Tight, OFL).
   Replaces the former Google Fonts @import so no visitor IP is sent
   to Google. Generated from the Google Fonts css2 API. */
@font-face{font-family:'Cormorant Garamond';font-style:italic;font-weight:300;font-display:swap;src:url('../fonts/cormorant-garamond-300-italic-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Cormorant Garamond';font-style:italic;font-weight:300;font-display:swap;src:url('../fonts/cormorant-garamond-300-italic-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Cormorant Garamond';font-style:italic;font-weight:400;font-display:swap;src:url('../fonts/cormorant-garamond-400-italic-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Cormorant Garamond';font-style:italic;font-weight:400;font-display:swap;src:url('../fonts/cormorant-garamond-400-italic-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Cormorant Garamond';font-style:italic;font-weight:500;font-display:swap;src:url('../fonts/cormorant-garamond-500-italic-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Cormorant Garamond';font-style:italic;font-weight:500;font-display:swap;src:url('../fonts/cormorant-garamond-500-italic-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Cormorant Garamond';font-style:normal;font-weight:300;font-display:swap;src:url('../fonts/cormorant-garamond-300-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Cormorant Garamond';font-style:normal;font-weight:300;font-display:swap;src:url('../fonts/cormorant-garamond-300-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Cormorant Garamond';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/cormorant-garamond-400-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Cormorant Garamond';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/cormorant-garamond-400-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Cormorant Garamond';font-style:normal;font-weight:500;font-display:swap;src:url('../fonts/cormorant-garamond-500-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Cormorant Garamond';font-style:normal;font-weight:500;font-display:swap;src:url('../fonts/cormorant-garamond-500-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Inter Tight';font-style:normal;font-weight:300;font-display:swap;src:url('../fonts/inter-tight-300-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Inter Tight';font-style:normal;font-weight:300;font-display:swap;src:url('../fonts/inter-tight-300-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Inter Tight';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/inter-tight-400-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Inter Tight';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/inter-tight-400-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Inter Tight';font-style:normal;font-weight:500;font-display:swap;src:url('../fonts/inter-tight-500-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Inter Tight';font-style:normal;font-weight:500;font-display:swap;src:url('../fonts/inter-tight-500-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}

:root {
  /* Color tokens */
  --bg: #0b0b0d;
  --bg-2: #111116;
  --surface: #16171c;
  --surface-2: #1c1e25;
  --border: #2a2c34;
  --border-soft: #20222a;

  --text: #f3f1ec;
  --text-muted: #9c998f;
  --text-dim: #6c6a63;

  --gold: #c9a96a;
  --gold-soft: #b59a6e;
  --gold-glow: rgba(201, 169, 106, 0.18);

  /* Effects */
  --grain-opacity: 0.035;
  --radius-sm: 6px;
  --radius: 14px;
  --radius-lg: 22px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,.3);
  --shadow: 0 20px 40px -20px rgba(0,0,0,.6);
  --shadow-lg: 0 40px 80px -30px rgba(0,0,0,.7);

  /* Layout */
  --max: 1320px;
  --pad-x: clamp(20px, 5vw, 64px);

  /* Transitions */
  --ease: cubic-bezier(.2,.8,.2,1);
  --ease-out: cubic-bezier(.16,1,.3,1);

  /* Type */
  --font-serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --font-display: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --font-sans: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ============================================================
   Reset & base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 16px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* Subtle grain texture overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.7'/></svg>");
  mix-blend-mode: overlay;
}

/* Ambient gold glow that follows cursor */
.cursor-glow {
  position: fixed;
  pointer-events: none;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 60%);
  transform: translate(-50%, -50%);
  z-index: 1;
  transition: opacity .4s var(--ease);
  opacity: 0;
  filter: blur(40px);
}
@media (hover: hover) {
  body:hover .cursor-glow { opacity: 1; }
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--gold); color: #0b0b0d; }

/* ============================================================
   Typography
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.005em;
  line-height: 1.1;
}

.h-display {
  font-size: clamp(3.4rem, 10vw, 8.5rem);
  letter-spacing: -0.02em;
  font-weight: 400;
  line-height: 1;
}
.h-xl { font-size: clamp(2.4rem, 6vw, 5.2rem); letter-spacing: -0.015em; font-weight: 400; line-height: 1.05; }
.h-l  { font-size: clamp(1.9rem, 3.6vw, 2.9rem); letter-spacing: -0.01em; font-weight: 500; }
.h-m  { font-size: clamp(1.4rem, 2.4vw, 1.8rem); letter-spacing: 0; font-weight: 500; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}

.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--text-muted);
  max-width: 56ch;
  font-weight: 300;
}

/* ============================================================
   Layout helpers
   ============================================================ */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad-x); }
.section { padding: clamp(80px, 12vw, 160px) 0; position: relative; }
.section-tight { padding: clamp(60px, 8vw, 100px) 0; }

.grid { display: grid; gap: clamp(24px, 3vw, 40px); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* On mobile, in zwei-spaltigen Layouts mit umgekehrter DOM-Reihenfolge
   (z.B. Projektleitung: Service-Liste vor Titel) den Titel immer zuerst zeigen.
   Auf Desktop ändert sich die optische Alternation nicht. */
@media (max-width: 719px) {
  .grid-2 > .service { order: 2; }
}

/* ============================================================
   Header / Nav
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background .4s var(--ease), backdrop-filter .4s var(--ease), padding .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(11,11,13,.75) 0%, rgba(11,11,13,.4) 60%, transparent 100%);
  pointer-events: none;
  opacity: 1;
  transition: opacity .4s var(--ease);
}
.site-header.is-scrolled::before { opacity: 0; }
.site-header.is-scrolled {
  background: rgba(11, 11, 13, 0.72);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom-color: var(--border-soft);
  padding: 12px 0;
}

.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo {
  display: inline-flex; align-items: center; gap: 10px;
  filter: brightness(0) invert(1);
  transition: opacity .3s var(--ease);
}
.logo:hover { opacity: .85; }
.logo img { height: 22px; width: auto; }
@media (min-width: 720px) { .logo img { height: 26px; } }

.nav-links {
  display: none;
  gap: 8px;
  align-items: center;
  list-style: none;
}
@media (min-width: 980px) { .nav-links { display: flex; } }

.nav-links a {
  position: relative;
  padding: 10px 16px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245,243,238,.78);
  transition: color .3s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: 4px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease-out);
}
.nav-links a:hover, .nav-links a.is-active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); transform-origin: left; }

.nav-cta {
  display: none;
  padding: 11px 22px;
  border: 1px solid rgba(245,243,238,.35);
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  transition: border-color .3s var(--ease), color .3s var(--ease), background .3s var(--ease);
}
@media (min-width: 980px) { .nav-cta { display: inline-flex; align-items: center; gap: 10px; } }
.nav-cta:hover { border-color: var(--gold); color: var(--gold); background: rgba(201,169,106,.06); }
.nav-cta::after {
  content: "→";
  transition: transform .3s var(--ease);
  font-size: 0.9rem;
}
.nav-cta:hover::after { transform: translateX(3px); }

.nav-toggle {
  display: inline-flex;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border: 1px solid rgba(245,243,238,.35);
  border-radius: 4px;
  background: rgba(11,11,13,.3);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
@media (min-width: 980px) { .nav-toggle { display: none; } }
.nav-toggle span {
  width: 18px; height: 1px; background: var(--text);
  position: relative;
  transition: all .3s var(--ease);
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0;
  width: 18px; height: 1px; background: var(--text);
  transition: all .3s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle.is-open span { background: transparent; }
.nav-toggle.is-open span::before { top: 0; transform: rotate(45deg); }
.nav-toggle.is-open span::after { top: 0; transform: rotate(-45deg); }

/* Mobile nav overlay */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px var(--pad-x);
  transform: translateY(-100%);
  transition: transform .6s var(--ease-out);
  visibility: hidden;
}
.mobile-nav.is-open { transform: translateY(0); visibility: visible; }
.mobile-nav ul { list-style: none; }
.mobile-nav li { overflow: hidden; }
.mobile-nav a {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 8vw, 3.5rem);
  padding: 12px 0;
  letter-spacing: -0.02em;
  font-weight: 300;
  transform: translateY(100%);
  transition: transform .8s var(--ease-out);
}
.mobile-nav.is-open a { transform: translateY(0); }
.mobile-nav li:nth-child(1) a { transition-delay: .1s; }
.mobile-nav li:nth-child(2) a { transition-delay: .15s; }
.mobile-nav li:nth-child(3) a { transition-delay: .2s; }
.mobile-nav li:nth-child(4) a { transition-delay: .25s; }
.mobile-nav li:nth-child(5) a { transition-delay: .3s; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 32px;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  transition: transform .3s var(--ease), color .35s var(--ease);
  isolation: isolate;
  cursor: pointer;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold);
  z-index: -1;
  transition: background .35s var(--ease);
}
.btn-primary { color: #0b0b0d; }
.btn-primary:hover { color: #0b0b0d; }
.btn-primary:hover::before { background: #d8b97a; }
.btn-primary .arrow { transition: transform .35s var(--ease); }
.btn-primary:hover .arrow { transform: translateX(5px); }

.btn-ghost {
  border: 1px solid rgba(245,243,238,.35);
  padding: 17px 30px;
  color: var(--text);
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: border-color .3s var(--ease), color .3s var(--ease), background .3s var(--ease);
  background: rgba(11,11,13,.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); background: rgba(201,169,106,.06); }
.btn-ghost .arrow { transition: transform .35s var(--ease); }
.btn-ghost:hover .arrow { transform: translateX(5px); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  overflow: hidden;
  isolation: isolate;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 920px;
}

/* Background image (Ken Burns + parallax) */
.hero-bg {
  position: absolute;
  inset: -4% -4% -4% -4%;
  z-index: 0;
  overflow: hidden;
  will-change: transform;
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0);
  transition: transform .6s cubic-bezier(.16,1,.3,1);
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  opacity: 0;
  transform: scale(1.15);
  animation:
    heroFadeIn 1.8s var(--ease-out) .2s forwards,
    kenBurns 28s ease-in-out 1.5s infinite alternate;
  filter: saturate(.85) contrast(1.05) brightness(.78);
}
@keyframes heroFadeIn {
  to { opacity: 1; }
}
@keyframes kenBurns {
  0%   { transform: scale(1.15) translate(0, 0); }
  50%  { transform: scale(1.22) translate(-1.5%, -1%); }
  100% { transform: scale(1.18) translate(1%, 1.2%); }
}

/* Mobile-specific framing: feature the helmet + AR logo, with stronger pan */
@media (max-width: 720px) {
  .hero-bg img {
    object-position: 35% 40%;
    transform: scale(1.25);
    animation:
      heroFadeIn 1.8s var(--ease-out) .2s forwards,
      kenBurnsMobile 22s ease-in-out 1.2s infinite alternate;
  }
}
@keyframes kenBurnsMobile {
  0%   { transform: scale(1.25) translate(-3%, -1.5%); }
  50%  { transform: scale(1.32) translate(2%, 1%); }
  100% { transform: scale(1.28) translate(-1%, 2%); }
}

/* Vignette + gradient for legibility */
.hero-bg-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 55% 65% at 32% 55%, rgba(11,11,13,.7) 0%, rgba(11,11,13,.4) 45%, transparent 75%),
    linear-gradient(90deg,
      rgba(11,11,13,.65) 0%,
      rgba(11,11,13,.45) 30%,
      rgba(11,11,13,.15) 65%,
      rgba(11,11,13,.05) 100%),
    linear-gradient(180deg,
      rgba(11,11,13,.4) 0%,
      rgba(11,11,13,.10) 20%,
      transparent 45%,
      transparent 70%,
      rgba(11,11,13,.7) 100%);
  pointer-events: none;
}
@media (max-width: 980px) {
  .hero-bg-vignette {
    background:
      linear-gradient(180deg,
        rgba(11,11,13,.55) 0%,
        rgba(11,11,13,.35) 35%,
        rgba(11,11,13,.30) 60%,
        rgba(11,11,13,.7) 100%);
  }
}

/* Subtle technical grid overlay (depth) */
.hero-bg-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(201,169,106,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,169,106,.06) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 50%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 50%, black 0%, transparent 70%);
  opacity: .5;
}

.hero-title {
  font-size: clamp(3rem, 9.5vw, 8rem);
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
  text-transform: none;
}
.hero-title .word,
.page-header h1 .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.15em;
  margin-bottom: -0.15em;
}
.hero-title .word > span,
.page-header h1 .word > span {
  display: inline-block;
  transform: translateY(110%);
  animation: revealUp 1s var(--ease-out) forwards;
  animation-delay: calc(var(--i, 1) * 0.06s);
}
.hero-title em {
  font-style: italic;
  color: var(--gold);
  font-weight: 400;
}

@keyframes revealUp { to { transform: translateY(0); } }

.hero-sub {
  margin-top: 32px;
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  color: rgba(245,243,238,.85);
  font-weight: 400;
  max-width: 50ch;
  opacity: 0;
  animation: fadeIn 1s var(--ease-out) .6s forwards;
  text-shadow: 0 1px 30px rgba(0,0,0,.5);
}
.hero-actions {
  margin-top: 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  opacity: 0;
  animation: fadeIn 1s var(--ease-out) .8s forwards;
}
@keyframes fadeIn { to { opacity: 1; } }

.hero-scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.hero-scroll::after {
  content: "";
  width: 1px; height: 50px;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: scrollHint 2.4s ease-in-out infinite;
}
@keyframes scrollHint {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================================
   Marquee — no hard band; soft edge fades into the page.
   ============================================================ */
.marquee {
  position: relative;
  overflow: hidden;
  padding: 40px 0;
  margin-top: clamp(56px, 7vw, 96px);
  background: transparent;
  border-block: none;
}
/* Soft fade on left/right edges so content dissolves into the page */
.marquee::before,
.marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(80px, 12vw, 200px);
  pointer-events: none;
  z-index: 2;
}
.marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg) 0%, transparent 100%);
}
.marquee::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg) 0%, transparent 100%);
}

.marquee-track {
  display: flex;
  gap: 80px;
  width: max-content;
  animation: marquee 60s linear infinite;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  color: var(--text-muted);
  letter-spacing: -0.005em;
  font-weight: 400;
  font-style: italic;
}
.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 80px;
  white-space: nowrap;
  opacity: .78;
  transition: opacity .3s var(--ease);
}
.marquee-track span::after {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  opacity: .7;
  flex-shrink: 0;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

.marquee--reverse .marquee-track {
  animation-direction: reverse;
}

/* Lighter, tighter rhythm on small screens */
@media (max-width: 720px) {
  .marquee { padding: 28px 0; }
  .marquee-track { gap: 52px; }
  .marquee-track span { gap: 52px; }
  .marquee::before, .marquee::after { width: 56px; }
}

/* Team feature image (full-bleed group photo) */
.team-feature {
  padding-top: clamp(60px, 9vw, 120px);
  padding-bottom: clamp(30px, 4vw, 60px);
}
.team-feature + .section { padding-top: clamp(60px, 8vw, 110px); }
.team-feature-img {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 21/9;
  background: var(--surface);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.7);
}
@media (max-width: 720px) { .team-feature-img { aspect-ratio: 4/3; } }
.team-feature-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: grayscale(40%) brightness(.85);
  transition: filter .6s var(--ease), transform 1.6s var(--ease-out);
}
.team-feature-img:hover img {
  filter: grayscale(0%) brightness(1);
  transform: scale(1.03);
}
.team-feature-img::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.7) 100%);
  pointer-events: none;
}
.team-feature-img figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: clamp(20px, 3vw, 40px);
  z-index: 2;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.team-feature-img figcaption p {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.9rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.2;
  max-width: 40ch;
}

/* Partners block */
.partners {
  margin-top: clamp(80px, 10vw, 140px);
  margin-bottom: clamp(40px, 6vw, 80px);
}
.partners-head {
  display: flex;
  justify-content: center;
  margin-bottom: clamp(40px, 5vw, 70px);
}
.partners-marquee {
  margin-top: 0;
  padding: 40px 0;
}
.partners-marquee .marquee-track { gap: 120px; align-items: center; }

/* Each partner is a hover-revealed logo. Default: muted monochrome;
   Hover: full brand colour returns. Round/mark logos run taller than
   text logos so their optical weight stays balanced. */
.partner-logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: 44px;
  opacity: .55;
  transition: opacity .35s var(--ease);
}
.partner-logo[data-brand="castavi"] { height: 70px; opacity: .6; }
.partner-logo:hover { opacity: 1; }
.partner-logo img {
  height: 100%;
  width: auto;
  max-width: 200px;
  display: block;
  object-fit: contain;
}

/* Frutiger: use the logo as a CSS mask and recolour via background-color.
   The exact same pixels stay in place — only the colour changes on hover. */
.partner-logo[data-brand="frutiger"] .frutiger-mark {
  display: block;
  height: 100%;
  width: 168px;
  background-color: #ffffff;
  -webkit-mask: url('../img/partners/frutiger.png') no-repeat center / contain;
          mask: url('../img/partners/frutiger.png') no-repeat center / contain;
  transition: background-color .35s var(--ease);
}
.partner-logo[data-brand="frutiger"]:hover .frutiger-mark {
  background-color: #e31e24;
}

/* Studio Hostettler — typographic wordmark (no raster logo file).
   Uses the site's display serif italic so it reads as a design-studio mark
   rather than a corporate logo, matching the other two partners' weight. */
.partner-logo[data-brand="studio-hostettler"] { height: auto; opacity: .6; }
.partner-logo[data-brand="studio-hostettler"] .sh-mark {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.55rem;
  letter-spacing: -0.005em;
  color: var(--text);
  white-space: nowrap;
  transition: color .35s var(--ease);
}
.partner-logo[data-brand="studio-hostettler"]:hover .sh-mark {
  color: var(--gold);
}

.partner-logo::after { display: none !important; }

@media (max-width: 720px) {
  .partner-logo { height: 40px; }
  .partners-marquee .marquee-track { gap: 72px; }
}

/* ============================================================
   Reveal animations (JS-driven)
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
[data-reveal-stagger].is-visible > * {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal-stagger].is-visible > *:nth-child(1) { transition-delay: .05s; }
[data-reveal-stagger].is-visible > *:nth-child(2) { transition-delay: .15s; }
[data-reveal-stagger].is-visible > *:nth-child(3) { transition-delay: .25s; }
[data-reveal-stagger].is-visible > *:nth-child(4) { transition-delay: .35s; }
[data-reveal-stagger].is-visible > *:nth-child(5) { transition-delay: .45s; }
[data-reveal-stagger].is-visible > *:nth-child(6) { transition-delay: .55s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   Cards & feature blocks
   ============================================================ */
.feature {
  position: relative;
  padding: clamp(28px, 3vw, 40px);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  transition: border-color .4s var(--ease), transform .4s var(--ease);
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
}
.feature-body { display: flex; flex-direction: column; flex: 1; }
.feature-list {
  list-style: none;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feature-list li {
  color: var(--text-muted);
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 0.98rem;
}
.feature-list li::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}
.feature-footer {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
  align-self: stretch;
}
.feature::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%), var(--gold-glow), transparent 40%);
  opacity: 0;
  transition: opacity .5s var(--ease);
  z-index: -1;
}
.feature:hover { border-color: var(--gold); transform: translateY(-4px); }
.feature:hover::before { opacity: 1; }

.feature-num {
  font-family: var(--font-display);
  font-size: 0.78rem;
  color: var(--gold);
  letter-spacing: 0.18em;
  font-weight: 500;
  text-transform: uppercase;
}
.feature h3 {
  margin-top: 18px;
  font-size: clamp(1.5rem, 2.1vw, 1.9rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.feature p {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}
.feature-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--gold-glow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}
.feature-icon svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.5; }

/* ============================================================
   Project cards (image-led)
   ============================================================ */
.projects {
  display: grid;
  gap: clamp(20px, 2vw, 32px);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .projects { grid-template-columns: 1fr 1fr; } }

.project {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--surface);
  cursor: pointer;
}
.project img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out), filter .6s var(--ease);
  filter: saturate(.85) brightness(.85);
}
.project:hover img { transform: scale(1.06); filter: saturate(1) brightness(1); }
.project::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.85) 100%);
  pointer-events: none;
}
.project-meta {
  position: absolute;
  inset: auto 0 0 0;
  padding: clamp(20px, 2.5vw, 32px);
  z-index: 2;
  color: var(--text);
}
.project-meta .label {
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
  display: block;
}
.project-meta h3 {
  font-size: clamp(1.4rem, 1.9vw, 1.75rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.project-meta p {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 40ch;
}
.project .tag {
  position: absolute;
  top: 20px; left: 20px;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(11,11,13,.6);
  backdrop-filter: blur(10px);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  z-index: 2;
  border: 1px solid rgba(255,255,255,.08);
}

.project .img-count {
  position: absolute;
  top: 20px; right: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 10px;
  border-radius: 100px;
  background: rgba(11,11,13,.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.08);
  color: var(--text);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  z-index: 2;
  line-height: 1;
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
.project .img-count svg { color: var(--gold); }
.project:hover .img-count {
  background: rgba(11,11,13,.78);
  border-color: rgba(198,168,103,.32);
}

.project.tall { aspect-ratio: 3/4; }
.project.wide { aspect-ratio: 16/9; }

.project--placeholder {
  background:
    radial-gradient(ellipse at 30% 20%, rgba(198,168,103,.18), transparent 55%),
    radial-gradient(ellipse at 80% 90%, rgba(198,168,103,.08), transparent 60%),
    linear-gradient(180deg, #15151a 0%, #0d0d10 100%);
}
.project--placeholder::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.project--placeholder::after {
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.7) 100%);
}
.project--placeholder .placeholder-mark {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.1rem, 1.8vw, 1.6rem);
  color: var(--gold);
  letter-spacing: 0.02em;
  z-index: 2;
  opacity: .85;
}
.project--placeholder .placeholder-mark::before {
  content: "";
  display: block;
  width: 28px; height: 1px;
  background: var(--gold);
  margin: 0 auto 14px;
  opacity: .6;
}
@media (min-width: 980px) {
  .projects.varied {
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: minmax(120px, auto);
  }
  .projects.varied .project:nth-child(1) { grid-column: span 4; aspect-ratio: 16/10; }
  .projects.varied .project:nth-child(2) { grid-column: span 2; aspect-ratio: 3/4; }
  .projects.varied .project:nth-child(3) { grid-column: span 2; aspect-ratio: 3/4; }
  .projects.varied .project:nth-child(4) { grid-column: span 4; aspect-ratio: 16/10; }
  .projects.varied .project:nth-child(5) { grid-column: span 3; aspect-ratio: 4/3; }
  .projects.varied .project:nth-child(6) { grid-column: span 3; aspect-ratio: 4/3; }
  .projects.varied .project:nth-child(7) { grid-column: span 2; aspect-ratio: 3/4; }
  .projects.varied .project:nth-child(8) { grid-column: span 4; aspect-ratio: 16/10; }
  .projects.varied .project:nth-child(9) { grid-column: span 3; aspect-ratio: 4/3; }
  .projects.varied .project:nth-child(10) { grid-column: span 3; aspect-ratio: 4/3; }
  .projects.varied .project:nth-child(11) { grid-column: span 6; aspect-ratio: 21/9; }
  .projects.varied .project:nth-child(12) { grid-column: span 4; aspect-ratio: 16/10; }
  .projects.varied .project:nth-child(13) { grid-column: span 2; aspect-ratio: 3/4; }
  .projects.varied .project:nth-child(14) { grid-column: span 2; aspect-ratio: 3/4; }
  .projects.varied .project:nth-child(15) { grid-column: span 4; aspect-ratio: 16/10; }
  .projects.varied .project:nth-child(16) { grid-column: span 3; aspect-ratio: 4/3; }
  .projects.varied .project:nth-child(17) { grid-column: span 3; aspect-ratio: 4/3; }
  .projects.varied .project:nth-child(18) { grid-column: span 6; aspect-ratio: 21/9; }
  /* Falls die Anzahl Karten eine Zeile halb leer lässt, letzte Karte volle Breite */
  .projects.varied .project:nth-child(9):last-child {
    grid-column: 1 / -1;
    aspect-ratio: 21/9;
  }
}

/* ============================================================
   Page header (sub-pages)
   ============================================================ */
.page-header {
  padding: 200px 0 80px;
  position: relative;
  border-bottom: 1px solid var(--border-soft);
}
.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px circle at 80% 20%, var(--gold-glow), transparent 50%),
    radial-gradient(600px circle at 10% 80%, rgba(201,169,106,.06), transparent 50%);
  pointer-events: none;
}
.page-header h1 {
  font-size: clamp(2.8rem, 7.5vw, 5.8rem);
  letter-spacing: -0.015em;
  font-weight: 400;
  line-height: 1.05;
  position: relative;
}
.page-header .lead {
  margin-top: 24px;
  max-width: 78ch;
  line-height: 1.55;
}

.crumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 28px;
}
.crumb a { color: var(--text-muted); transition: color .3s var(--ease); }
.crumb a:hover { color: var(--gold); }
.crumb span { color: var(--text); }

/* ============================================================
   Service blocks (pm + handwerk)
   ============================================================ */
.service {
  padding: clamp(36px, 4vw, 56px);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface) 0%, transparent 100%);
  position: relative;
  overflow: hidden;
}
.service h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin-bottom: 12px;
}
.service .tag-line { color: var(--gold); font-style: italic; font-family: var(--font-display); font-weight: 400; margin-bottom: 24px; display: block; font-size: 0.95rem; letter-spacing: 0.01em; }
.service ul { list-style: none; }
.service li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.5;
  transition: color .3s var(--ease), padding-left .3s var(--ease);
}
.service li:last-child { border: 0; }
.service li:hover { color: var(--text); padding-left: 8px; }
.service li::before {
  content: "";
  flex-shrink: 0;
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  margin-top: 9px;
  transition: transform .3s var(--ease);
}
.service li:hover::before { transform: scale(1.5); }

/* ============================================================
   Team
   ============================================================ */
.team-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--surface);
  cursor: pointer;
}
.team-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(40%) brightness(.85);
  transition: filter .6s var(--ease), transform 1.2s var(--ease-out);
}
.team-card:hover img { filter: grayscale(0%) brightness(1); transform: scale(1.04); }
.team-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.9) 100%);
}
.team-meta {
  position: absolute;
  inset: auto 0 0 0;
  padding: clamp(20px, 2.5vw, 32px);
  z-index: 2;
}
.team-meta h3 {
  font-size: clamp(1.7rem, 2.4vw, 2.2rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.team-meta .role {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-top: 6px;
}
.team-meta .links {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.team-meta .links a {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.team-meta .links a:hover { color: var(--text); border-color: var(--text); }

.team-placeholder {
  width: 100%; height: 100%;
  background:
    radial-gradient(circle at 30% 20%, var(--gold-glow), transparent 50%),
    var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  color: var(--gold-soft);
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* ============================================================
   Stats
   ============================================================ */
.stats {
  display: grid;
  gap: 32px clamp(20px, 3vw, 48px);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 720px) { .stats { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .stats { grid-template-columns: repeat(6, 1fr); gap: 48px clamp(20px, 2vw, 36px); } }
.stat {
  text-align: left;
}
.stat .value {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4.4vw, 3.8rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1;
  display: block;
}
.stat .value sup {
  color: var(--gold);
  font-size: 0.5em;
  vertical-align: super;
  margin-left: 4px;
}
.stat .label .label-unit {
  color: var(--gold);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.stat .label {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  display: block;
}

/* ============================================================
   Contact / form
   ============================================================ */
.form-row { display: grid; gap: 20px; }
@media (min-width: 720px) { .form-row { grid-template-columns: 1fr 1fr; } }

.field {
  position: relative;
}
.field label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 10px;
}
.field input, .field textarea, .field select {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: border-color .3s var(--ease);
  /* Tell the browser the control is on a dark surface so the dropdown popup
     (rendered by the OS, outside our CSS reach) uses dark-mode chrome on
     Windows/Edge/Linux instead of light-on-light. */
  color-scheme: dark;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus,
.field textarea:focus,
.field select:focus { outline: none; border-color: var(--gold); }
.field input::placeholder, .field textarea::placeholder { color: var(--text-dim); }

/* Custom select: strip OS chrome, add our own caret so it matches the field
   on every platform. Padding-right makes room for the caret. */
.field select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 28px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1.5L6 6.5L11 1.5' stroke='%239c998f' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 4px center;
  cursor: pointer;
}
/* Style the dropdown items. Most desktop browsers honor this in the popup;
   iOS uses its own native picker (system contrast — fine). */
.field select option {
  background-color: var(--surface);
  color: var(--text);
}

.contact-info p { color: var(--text-muted); margin-bottom: 6px; }
.contact-info a { color: var(--text); transition: color .3s var(--ease); border-bottom: 1px solid transparent; }
.contact-info a:hover { color: var(--gold); border-color: var(--gold); }

.contact-card {
  padding: clamp(28px, 3vw, 40px);
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
}
.contact-card h4 {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  font-family: var(--font-sans);
  font-weight: 500;
}

/* ============================================================
   CTA banner
   ============================================================ */
.cta-banner {
  text-align: center;
  padding: clamp(80px, 12vw, 160px) 0;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px circle at 50% 50%, var(--gold-glow), transparent 60%);
  pointer-events: none;
}
.cta-banner h2 {
  font-size: clamp(2.4rem, 6.5vw, 5.2rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-family: var(--font-display);
  position: relative;
}
.cta-banner h2 em { color: var(--gold); font-style: italic; font-weight: 400; }
.cta-banner .actions {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  position: relative;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border-soft);
  padding: clamp(60px, 8vw, 100px) 0 32px;
  position: relative;
}
.footer-grid {
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
}
.footer-grid h5 {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  font-family: var(--font-sans);
  font-weight: 500;
}
.footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a { color: var(--text-muted); transition: color .3s var(--ease); font-size: 0.95rem; }
.footer-grid a:hover { color: var(--gold); }
.footer-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  letter-spacing: -0.01em;
  font-weight: 400;
  line-height: 1.2;
  max-width: 18ch;
}
.footer-tagline em { color: var(--gold); font-style: italic; font-weight: 400; }
.footer-bottom {
  margin-top: 60px;
  padding-top: 28px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-dim);
  font-size: 0.85rem;
}
.studio-credit {
  color: var(--text-muted);
  border-bottom: 1px solid transparent;
  transition: color .25s var(--ease), border-color .25s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.studio-credit:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
.studio-credit .arrow {
  transition: transform .35s var(--ease);
  display: inline-block;
}
.studio-credit:hover .arrow { transform: translateX(3px); }

/* ============================================================
   Misc utilities
   ============================================================ */
.center { text-align: center; }
.muted { color: var(--text-muted); }
.gold { color: var(--gold); }
.divider { height: 1px; background: var(--border-soft); border: 0; margin: 0; }
.mt-s { margin-top: 16px; }
.mt-m { margin-top: 32px; }
.mt-l { margin-top: 64px; }

/* Card grid for misc */
.cards { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cards { grid-template-columns: repeat(3, 1fr); } }

/* Image with caption */
.figure {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.figure:hover img { transform: scale(1.04); }
.figure figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 20px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.7));
  color: var(--text);
  font-size: 0.9rem;
}

/* Block quote / pull quote */
.pullquote {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  font-weight: 400;
  letter-spacing: -0.005em;
  line-height: 1.35;
  color: var(--text);
  font-style: italic;
  position: relative;
  padding-left: 32px;
  border-left: 2px solid var(--gold);
}
.pullquote cite {
  display: block;
  margin-top: 24px;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* Responsive tweaks */
@media (max-width: 720px) {
  .page-header { padding: 140px 0 60px; }
}

/* ============================================================
   Lightbox
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s var(--ease);
}
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 7, 9, 0.92);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  cursor: zoom-out;
}
.lightbox-stage {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(94vw, 1400px);
  max-height: 92vh;
  gap: 28px;
  pointer-events: none;
}
.lightbox-stage > * { pointer-events: auto; }

.lightbox-img-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
}
.lightbox-img {
  max-width: 100%;
  max-height: 72vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.7);
  transition: opacity .35s var(--ease), transform .5s var(--ease-out);
  transform: scale(1) translateX(0);
  opacity: 1;
}
.lightbox.is-open .lightbox-img {
  animation: lbZoomIn .5s var(--ease-out);
}
@keyframes lbZoomIn {
  from { transform: scale(.94); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.lightbox-img.is-out { opacity: 0; }
.lightbox-img.slide-out-left { transform: translateX(-30px); }
.lightbox-img.slide-out-right { transform: translateX(30px); }

.lightbox-spinner {
  position: absolute;
  width: 36px; height: 36px;
  border: 2px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  animation: lbSpin 0.9s linear infinite;
  transition: opacity .3s var(--ease);
}
.lightbox-img-wrap.is-loading .lightbox-spinner { opacity: 1; }
@keyframes lbSpin { to { transform: rotate(360deg); } }

.lightbox-caption {
  text-align: center;
  max-width: 720px;
  padding: 0 16px;
  flex-shrink: 0;
}
.lightbox-caption .lb-label {
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 10px;
  font-weight: 500;
}
.lightbox-caption .lb-label:empty { display: none; }
.lightbox-caption .lb-title {
  font-size: clamp(1.2rem, 1.6vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1.2;
  color: var(--text);
}
.lightbox-caption .lb-text {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}
.lightbox-caption .lb-text:empty { display: none; }

.lightbox-counter {
  position: absolute;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 0.76rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  z-index: 2;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #0b0b0d;
}
.lightbox-prev:hover { transform: translateY(-50%) translateX(-2px); }
.lightbox-next:hover { transform: translateY(-50%) translateX(2px); }
.lightbox-close:hover { transform: rotate(90deg); }

.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }

.lightbox-prev:focus-visible,
.lightbox-next:focus-visible,
.lightbox-close:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

@media (max-width: 720px) {
  .lightbox-prev, .lightbox-next, .lightbox-close {
    width: 44px; height: 44px;
  }
  .lightbox-prev svg, .lightbox-next svg, .lightbox-close svg {
    width: 18px; height: 18px;
  }
  .lightbox-close { top: 16px; right: 16px; }
  .lightbox-prev { left: 12px; }
  .lightbox-next { right: 12px; }
  .lightbox-counter { top: 22px; font-size: 0.7rem; }
  .lightbox-img { max-height: 58vh; }
  .lightbox-stage { width: 100vw; gap: 16px; }
}

/* ============================================================
   Contact form status + click-to-load map
   ============================================================ */
.form-status {
  margin-top: 16px;
  font-size: 0.9rem;
  line-height: 1.55;
}
.form-status.is-ok { color: var(--gold); }
.form-status.is-error { color: #ff6b6b; }

.map-consent {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  background: var(--surface);
}
.map-consent-box {
  max-width: 440px;
  display: grid;
  gap: 14px;
  justify-items: center;
}
.map-consent-box strong {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.3rem;
  letter-spacing: -0.005em;
}
.map-consent-box .muted {
  font-size: 0.85rem;
  line-height: 1.6;
}
