:root {
  --night: #0a1628;
  --night-soft: #122038;
  --sky: #e8f4fc;
  --mist: #f4f8fb;
  --white: #ffffff;
  --teal: #2dd4bf;
  --teal-dim: #14b8a6;
  --coral: #ff6b4a;
  --coral-deep: #e85535;
  --slate: #64748b;
  --line: rgba(255, 255, 255, 0.08);
  --line-dark: rgba(10, 22, 40, 0.1);
  --glow: 0 24px 60px rgba(10, 22, 40, 0.18);
  --radius: 1.25rem;
  --radius-sm: 0.75rem;
  --container: 1520px;
  --container-legal: 1120px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: 18px;
}

body {
  background: var(--mist);
  color: var(--night);
  font-family: "Outfit", system-ui, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.65;
  font-size: 1.05rem;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(45, 212, 191, 0.12), transparent 50%),
    radial-gradient(ellipse 60% 40% at 90% 100%, rgba(255, 107, 74, 0.08), transparent 45%);
}

.site-shell {
  position: relative;
  z-index: 1;
  padding-left: 0;
}

/* hide legacy rail */
.km-rail { display: none !important; }

/* —— Header —— */
.mast {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0.85rem 1.25rem;
  background: rgba(244, 248, 251, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-dark);
}

.mast-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0 0.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--night);
  flex-shrink: 0;
}

.brand-mark {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, var(--teal), var(--teal-dim));
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(45, 212, 191, 0.35);
}

.brand-mark svg { width: 1.25rem; height: 1.25rem; }

.brand-name {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand-sub {
  font-size: 0.72rem;
  color: var(--slate);
  font-weight: 500;
}

.nav-track {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-track a,
.nav-drop > button {
  text-decoration: none;
  color: var(--slate);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.nav-track a:hover,
.nav-drop > button:hover,
.nav-track a.is-on {
  color: var(--night);
  background: var(--white);
  box-shadow: 0 2px 12px rgba(10, 22, 40, 0.06);
}

.nav-drop { position: relative; }

.nav-drop menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  background: var(--white);
  border-radius: var(--radius-sm);
  min-width: 13rem;
  padding: 0.45rem;
  margin: 0;
  list-style: none;
  z-index: 60;
  box-shadow: var(--glow);
  border: 1px solid var(--line-dark);
}

.nav-drop:hover menu,
.nav-drop:focus-within menu { display: block; }

.nav-drop menu a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  background: transparent;
}

.nav-drop menu a:hover {
  background: var(--mist);
}

.nav-meta {
  display: none;
}

.nav-cta {
  flex-shrink: 0;
  text-decoration: none;
  background: var(--night);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  transition: background 0.2s, transform 0.2s;
}

.nav-cta:hover {
  background: var(--coral-deep);
  transform: translateY(-1px);
}

.menu-btn {
  display: none;
  margin-left: auto;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  border: 1px solid var(--line-dark);
  background: var(--white);
  color: var(--night);
  font-size: 1.25rem;
  cursor: pointer;
}

@media (max-width: 1024px) {
  .nav-cta { display: none; }
  .menu-btn { display: grid; place-items: center; }
  .nav-track {
    display: none;
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 0.5rem);
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    border-radius: var(--radius);
    box-shadow: var(--glow);
    border: 1px solid var(--line-dark);
  }
  .nav-track.open { display: flex; }
  .nav-drop menu {
    position: static;
    box-shadow: none;
    border: 0;
    padding-left: 0.5rem;
    display: block;
  }
  .mast { position: relative; }
  .mast-inner { flex-wrap: wrap; position: relative; }
}

/* —— Photos —— */
.cut-photo {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--glow);
}

.cut-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.cut-photo:hover img { transform: scale(1.03); }

.cut-photo.slash { clip-path: none; }

.caption-edge {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate);
}

/* —— Content blocks —— */
.entry {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(10, 22, 40, 0.05);
  border: 1px solid var(--line-dark);
  margin-bottom: 1rem;
}

.entry-km {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--teal-dim);
  background: rgba(45, 212, 191, 0.12);
  border-radius: 0.5rem;
  padding: 0.5rem;
  text-align: center;
  align-self: start;
}

.entry h2, .entry h3 {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.sign {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--coral), var(--coral-deep));
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 0;
}

.sign.blue {
  background: linear-gradient(135deg, var(--teal), var(--teal-dim));
}

.ticket {
  background: var(--white);
  border: 1px solid var(--line-dark);
  border-left: 4px solid var(--coral);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.35rem;
  box-shadow: 0 8px 32px rgba(10, 22, 40, 0.06);
}

.ticket::before,
.ticket::after { display: none; }

.fold-card {
  background: var(--white);
  padding: 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--line-dark);
  box-shadow: 0 8px 32px rgba(10, 22, 40, 0.06);
  transition: transform 0.25s, box-shadow 0.25s;
}

.fold-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--glow);
}

.fold-card::after { display: none; }

.stamp {
  display: inline-block;
  background: rgba(255, 107, 74, 0.12);
  color: var(--coral-deep);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transform: none;
  border: 0;
}

/* —— Buttons —— */
.btn-ink {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--night);
  color: var(--white);
  text-decoration: none;
  padding: 0.8rem 1.35rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 8px 24px rgba(10, 22, 40, 0.2);
}

.btn-ink:hover {
  background: var(--coral-deep);
  transform: translateY(-2px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--white);
  color: var(--night);
  text-decoration: none;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--line-dark);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.btn-ghost:hover {
  border-color: var(--teal);
  background: rgba(45, 212, 191, 0.08);
}

/* —— Footer —— */
.colophon {
  background: var(--night);
  color: rgba(255, 255, 255, 0.75);
  margin-top: 5rem;
  position: relative;
}

.colophon::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--coral), var(--teal));
}

.colophon a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.2s;
}

.colophon a:hover { color: var(--white); }

.postmark {
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  transform: none;
  text-align: left;
  color: var(--white);
  font-family: "Instrument Serif", serif;
  font-size: 1.75rem;
  line-height: 1.2;
}

.postmark::after {
  content: "Wien · 1220";
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  color: var(--teal);
  margin-top: 0.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* —— Cookie bar —— */
.checkpoint {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 1.25rem;
  z-index: 70;
  width: min(640px, calc(100% - 2rem));
  background: var(--white);
  color: var(--night);
  border-radius: var(--radius);
  display: none;
  box-shadow: 0 24px 80px rgba(10, 22, 40, 0.25);
  border: 1px solid var(--line-dark);
  overflow: hidden;
}

.checkpoint.open { display: block; }

.lane {
  border: 1px solid var(--line-dark);
  padding: 0.55rem 1rem;
  background: var(--mist);
  color: var(--night);
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.lane:hover { border-color: var(--teal); }

.lane.go {
  background: var(--night);
  color: var(--white);
  border-color: var(--night);
}

.lane.go:hover { background: var(--coral-deep); border-color: var(--coral-deep); }

.lane.stop { background: transparent; }

.cookie-panel {
  display: none;
  padding: 0 1.25rem 1.25rem;
  border-top: 1px solid var(--line-dark);
  margin-top: 0;
}

.cookie-panel.open { display: block; }

/* —— Legal —— */
.legal-sheet {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--glow);
  border: 1px solid var(--line-dark);
}

.legal-sheet h2 {
  font-family: "Instrument Serif", serif;
  font-size: 1.5rem;
  margin: 2rem 0 0.75rem;
  color: var(--night);
}

.legal-sheet h2:first-of-type { margin-top: 0; }

.legal-sheet p, .legal-sheet li {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--slate);
}

.legal-sheet a { color: var(--teal-dim); }

/* —— Forms —— */
.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--slate);
}

.field input,
.field textarea,
.field select {
  background: var(--mist);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font: inherit;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.2);
}

/* —— Misc —— */
.hairpin { display: none; }

.stat-pill {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  background: rgba(45, 212, 191, 0.1);
  color: var(--teal-dim);
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  border-left: 0;
}

.route-slip {
  background: var(--white);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 1.35rem;
  display: grid;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
  min-height: 100%;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.route-slip:hover {
  transform: translateY(-6px);
  box-shadow: var(--glow);
  border-color: var(--teal);
}

.route-slip strong {
  font-family: "Instrument Serif", serif;
  font-size: 1.5rem;
  font-weight: 400;
}

.img-credit {
  font-size: 0.72rem;
  color: var(--slate);
  font-family: "JetBrains Mono", monospace;
}

/* tailwind legacy section overrides */
.bg-asphalt,
.bg-fir {
  background: var(--night) !important;
  color: rgba(255, 255, 255, 0.85) !important;
}

.bg-paper,
.bg-paper-deep {
  background: var(--mist) !important;
}

.text-paper { color: rgba(255, 255, 255, 0.9) !important; }
.text-brass { color: var(--teal) !important; }
.text-rust { color: var(--coral) !important; }
.text-moss { color: var(--slate) !important; }
.text-fir { color: var(--night) !important; }

.font-serif { font-family: "Instrument Serif", serif !important; }

main > section:first-child:not(.hero-cine) {
  padding-top: 2rem;
}

main .px-6.md\:px-10.py-12,
main .px-6.md\:px-10.py-14 {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

/* —— New layout helpers —— */
.hero-cine {
  position: relative;
  min-height: 94vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  border-radius: 0 0 var(--radius) var(--radius);
}

.hero-cine__bg {
  position: absolute;
  inset: 0;
}

.hero-cine__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-cine__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 22, 40, 0.15) 0%,
    rgba(10, 22, 40, 0.55) 55%,
    rgba(10, 22, 40, 0.92) 100%
  );
}

.hero-cine__content {
  position: relative;
  z-index: 2;
  padding: 4rem 2.5rem 5rem;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
}

.hero-cine__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.hero-cine__tag span {
  width: 6px;
  height: 6px;
  background: var(--teal);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-cine h1 {
  font-family: "Instrument Serif", serif;
  font-size: clamp(3rem, 7vw, 5.75rem);
  line-height: 1.04;
  color: var(--white);
  max-width: 22ch;
  letter-spacing: -0.02em;
}

.hero-cine p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 52rem;
  font-size: 1.3rem;
  margin-top: 1.5rem;
  line-height: 1.75;
}

.section-wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2.5rem;
}

.section-dark {
  background: var(--night);
  color: var(--white);
  padding: 6rem 0;
  margin-top: 3rem;
}

.section-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
}

.page-hero {
  padding: 3.5rem 0 2.5rem;
  background: linear-gradient(180deg, var(--white) 0%, var(--mist) 100%);
  border-bottom: 1px solid var(--line-dark);
}

.page-hero h1 {
  font-family: "Instrument Serif", serif;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 18ch;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.chip {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(45, 212, 191, 0.12);
  color: var(--teal-dim);
}

.section-wrap.py-16 {
  padding-top: 5.5rem;
  padding-bottom: 5.5rem;
}

.alert-strip {
  background: linear-gradient(90deg, var(--night-soft), var(--night));
  color: var(--white);
  padding: 1.5rem 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  border-radius: var(--radius);
  margin: 2.5rem 0;
  font-size: 1.05rem;
}

.alert-strip a {
  color: var(--teal);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.alert-strip a:hover { color: var(--white); }

.card-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .card-grid-2 { grid-template-columns: repeat(2, 1fr); }
  .card-grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card-grid {
  gap: 1.75rem;
}

.section-wrap h2.font-serif,
.section-wrap .font-serif.text-4xl {
  font-size: clamp(2.25rem, 4vw, 3.25rem) !important;
}

/* —— Full-width page layout —— */
.page-main {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 4.5rem 2.5rem 5.5rem;
  min-height: 65vh;
}

.page-main--legal {
  max-width: var(--container-legal);
}

main:not(.page-main) {
  min-height: 55vh;
}

main h1.font-serif,
.page-main h1.font-serif {
  font-size: clamp(2.75rem, 5.5vw, 4.75rem) !important;
  line-height: 1.06 !important;
}

main h2.font-serif.text-3xl,
main h2.font-serif.text-4xl,
.page-main h2.font-serif {
  font-size: clamp(2rem, 3.5vw, 2.75rem) !important;
}

main .leading-7,
.page-main .leading-7,
main p,
.page-main p {
  font-size: 1.1rem;
  line-height: 1.75;
}

/* widen all constrained blocks */
main.max-w-3xl,
main.max-w-4xl,
main.max-w-5xl,
main.max-w-6xl,
section.max-w-3xl,
section.max-w-5xl,
div.max-w-3xl,
.max-w-6xl {
  max-width: var(--container) !important;
  width: 100%;
}

h1.max-w-3xl,
p.max-w-xl,
p.max-w-lg,
p.max-w-2xl,
.max-w-xl,
.max-w-lg,
.max-w-2xl {
  max-width: none !important;
}

main .px-6,
main .px-6.md\:px-10,
section.px-6.md\:px-10 {
  padding-left: 2.5rem !important;
  padding-right: 2.5rem !important;
}

main .py-12,
main .py-14,
section.py-12 {
  padding-top: 4.5rem !important;
  padding-bottom: 4.5rem !important;
}

.cut-photo.min-h-\[300px\] { min-height: 420px !important; }
.cut-photo.min-h-\[320px\] { min-height: 440px !important; }
.cut-photo.min-h-\[340px\] { min-height: 460px !important; }
.cut-photo.min-h-\[360px\] { min-height: 480px !important; }
.cut-photo.min-h-\[380px\] { min-height: 500px !important; }
.cut-photo.min-h-\[420px\] { min-height: 540px !important; }
.cut-photo.h-48 { height: 16rem !important; }
.cut-photo.h-52 { height: 18rem !important; }
.cut-photo.h-56 { height: 20rem !important; }
.cut-photo.h-64 { height: 22rem !important; }
.cut-photo.h-72 { height: 26rem !important; }
.cut-photo.h-\[420px\] { height: 520px !important; }
.cut-photo.h-\[58vh\] { min-height: 68vh !important; height: auto !important; }

.entry {
  padding: 2rem 2.25rem;
}

.entry-km {
  font-size: 0.85rem;
  padding: 0.65rem;
}

.route-slip {
  padding: 1.75rem;
  min-height: 220px;
}

.route-slip strong {
  font-size: 1.85rem;
}

.ticket,
.fold-card,
.legal-sheet {
  padding: 2rem 2.25rem;
}

.legal-sheet {
  max-width: var(--container-legal);
  margin: 0 auto;
}

table {
  font-size: 1.05rem;
}

table th,
table td {
  padding: 1.1rem 1rem !important;
}

.colophon .max-w-6xl {
  max-width: var(--container) !important;
}

@media (max-width: 768px) {
  html { font-size: 16px; }
  .page-main { padding: 3rem 1.25rem 4rem; }
  main .px-6, section.px-6.md\:px-10 { padding-left: 1.25rem !important; padding-right: 1.25rem !important; }
}
