/* ============================================
   Editorial Portfolio Template
   Layout-Mechanik inspiriert von High-Fashion-
   Portfolios: radiales Uhr-Menü, verstreute
   Collage, schräge Galerien.
   Alle Inhalte = Platzhalter.
   ============================================ */

:root {
  --bg: #f2efe9;
  --ink: #141414;
  --ink-soft: rgba(20, 20, 20, .55);
  --ghost: rgba(20, 20, 20, .13);
  --line: rgba(20, 20, 20, .35);
  --serif: "Italiana", serif;
  --sans: "Archivo", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

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

/* ---------- Chrome: Tagline / Logo / Socials ---------- */

.tagline {
  position: fixed;
  top: 34px;
  left: 26px;
  z-index: 60;
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: .06em;
  text-transform: uppercase;
  transform: rotate(-16deg);
  transform-origin: left top;
  line-height: 1.05;
  white-space: pre-line;
}

.logo {
  position: fixed;
  top: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  font-family: var(--serif);
  font-size: 30px;
  letter-spacing: .18em;
  border: 2.5px solid var(--ink);
  padding: 4px 14px 2px;
}

.socials {
  position: fixed;
  top: 30px;
  right: 30px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-size: 12px;
  letter-spacing: .12em;
}
.socials a:hover { opacity: .5; }

.footer-bar {
  position: fixed;
  bottom: 18px;
  left: 30px;
  right: 30px;
  z-index: 60;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-soft);
  pointer-events: none;
}

/* ---------- Radiales Uhr-Menü ---------- */

/* Ankerpunkt = Ellipsen-Mitte, knapp unter der Viewport-Unterkante.
   Die Item-Positionen setzt JS (flache Ellipse, voller Umlauf). */
.clock-nav {
  position: fixed;
  left: 50%;
  top: calc(100vh - 46px);
  width: 0;
  height: 0;
  z-index: 50;
}

.clock-dial { position: absolute; left: 0; top: 0; }

.clock-item {
  position: absolute;
  left: 0;
  top: 0;
  text-align: center;
  white-space: nowrap;
  will-change: transform, opacity;
}

.clock-item .cat {
  display: block;
  font-size: 11px;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 2px;
  opacity: 0;
  transition: opacity .4s;
}
.clock-item.is-front .cat { opacity: .75; }

.clock-item a {
  font-family: var(--serif);
  font-size: 34px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color .4s;
}
.clock-item.is-front a { color: var(--ink); }
.clock-item.is-ghost a { pointer-events: none; }

/* Uhrzeiger: Drehpunkt an der Viewport-Unterkante, echte Uhrzeit */
.clock-hands {
  position: fixed;
  left: 50%;
  top: calc(100vh - 46px);
  width: 5px;
  height: 5px;
  margin: -2.5px;
  background: var(--ink-soft);
  border-radius: 50%;
  z-index: 49;
  pointer-events: none;
}
.clock-hands .hand {
  position: absolute;
  left: 50%;
  bottom: 50%;
  width: 1px;
  margin-left: -0.5px;
  background: var(--line);
  transform-origin: bottom center;
  transition: transform 1.2s cubic-bezier(.22, 1, .36, 1);
}
.clock-hands .hand-hour   { height: 150px; }
.clock-hands .hand-minute { height: 215px; }

/* ---------- Home: verstreute Collage ---------- */

.stage {
  position: relative;
  height: 400vh;                /* Scroll-Strecke */
}

.collage-viewport {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  perspective: 1200px;          /* Maus-Tilt in 3D */
}

.ghost-words {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.ghost-word {
  position: absolute;
  font-family: var(--serif);
  font-size: clamp(60px, 9vw, 130px);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ghost);
  will-change: transform;
}

.collage {
  position: absolute;
  inset: 0;
  will-change: transform;
  transform-style: preserve-3d;
}

.card {
  position: absolute;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(20, 20, 20, .14);
  cursor: pointer;
  transition: transform .5s cubic-bezier(.22, 1, .36, 1);
  will-change: transform;
}
.card:hover { transform: scale(1.05) rotate(0deg) !important; z-index: 5; }

.card .ph {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: transform .9s cubic-bezier(.22, 1, .36, 1), opacity .9s ease;
}

/* Intro: Karten fliegen gestaffelt von unten ein (inneres Element,
   damit der Parallax-Transform der Karte frei bleibt) */
.card.intro-start .ph {
  transform: translateY(90vh) rotate(18deg);
  opacity: 0;
}

/* Hover-Namen: zweigeteilt, laufen von oben/unten ein */
.card .nm {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: .08em;
  color: rgba(255, 255, 255, .92);
  text-transform: uppercase;
  transform: rotate(-8deg) translateY(-18px);
  opacity: 0;
  transition: transform .45s cubic-bezier(.22, 1, .36, 1), opacity .45s;
}
.card .nm-bot { transform: rotate(-8deg) translateY(18px); }
.card:hover .nm { opacity: 1; transform: rotate(-8deg) translateY(0); }

/* Platzhalter-„Fotos“ – ersetzen durch echte Bilder */
.ph-1 { background: linear-gradient(160deg, #b7a99a, #6f6257); }
.ph-2 { background: linear-gradient(200deg, #d8c9c0, #93705e); }
.ph-3 { background: linear-gradient(180deg, #2e2c2a, #6b6560); }
.ph-4 { background: linear-gradient(150deg, #cbb8d8, #7e6a8f); }
.ph-5 { background: linear-gradient(210deg, #dcd3c4, #a08e6f); }
.ph-6 { background: linear-gradient(170deg, #9aa4a8, #4e585c); }
.ph-7 { background: linear-gradient(190deg, #d9c2b4, #8c5f4a); }
.ph-8 { background: linear-gradient(160deg, #444, #191919); }

.scroll-hint {
  position: fixed;
  bottom: 90px;
  right: 40px;
  z-index: 55;
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ink-soft);
  writing-mode: vertical-rl;
}

/* ---------- Galerie-Seiten (Photo / Video) ---------- */

.gallery-page {
  height: 100vh;
  overflow: hidden;
  position: relative;
}

.gallery-track {
  position: absolute;
  top: 50%;
  left: 0;
  display: flex;
  gap: 70px;
  padding: 0 12vw;
  transform: translateY(-52%);
  will-change: transform;
}

.g-card {
  flex: 0 0 auto;
  width: 340px;
  height: 62vh;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(20, 20, 20, .16);
  transition: transform .5s cubic-bezier(.22, 1, .36, 1);
}
.g-card:nth-child(odd)  { transform: rotate(3.5deg); }
.g-card:nth-child(even) { transform: rotate(-3deg) translateY(24px); }
.g-card:hover { transform: rotate(0) scale(1.03); }
.g-card.hidden { display: none; }
.g-card.is-fading { opacity: 0; transform: scale(.94); }
.g-card { transition: transform .5s cubic-bezier(.22, 1, .36, 1), opacity .3s ease; }

.g-card .g-name {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(38deg);
  font-family: var(--serif);
  font-size: 34px;
  color: #fff;
  letter-spacing: .06em;
  text-align: center;
  line-height: 1.1;
}

.page-title {
  position: fixed;
  left: 50%;
  bottom: 120px;
  transform: translateX(-50%);
  z-index: 45;
  font-family: var(--serif);
  font-size: 46px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.filters {
  position: fixed;
  bottom: 148px;
  left: calc(50% + 250px);
  z-index: 55;
  display: flex;
  gap: 22px;
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.filters button {
  all: unset;
  cursor: pointer;
  color: var(--ghost);
  transition: color .3s;
  font-family: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}
.filters button:hover,
.filters button.active { color: var(--ink); }

/* ---------- About ---------- */

.about {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 60px;
  padding: 150px 60px 140px;
  align-items: start;
}

.about h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.18;
  max-width: 15em;
}

.about .mission {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 24px;
  align-items: end;
  max-width: 560px;
}
.about .mission .portrait-s {
  width: 170px;
  height: 210px;
}
.about .story {
  margin-top: 60px;
  columns: 1;
  max-width: 560px;
  color: var(--ink-soft);
}
.about .story p + p { margin-top: 18px; }
.about blockquote {
  margin-top: 40px;
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.3;
}
.about blockquote footer {
  margin-top: 10px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-soft);
}

.about .portrait-l {
  width: 100%;
  height: calc(100vh - 290px);
  min-height: 420px;
  position: sticky;
  top: 150px;
}

/* ---------- Book ---------- */

.book {
  min-height: 100vh;
  padding: 150px 20px 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.book h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 54px;
  letter-spacing: .14em;
  margin-bottom: 34px;
}
.book .intro {
  max-width: 620px;
  text-align: center;
  color: var(--ink);
}
.book .intro p + p { margin-top: 22px; }

.book form {
  margin-top: 60px;
  width: min(780px, 92vw);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px 40px;
}
.book .field { display: flex; flex-direction: column; }
.book .field.full { grid-column: 1 / -1; }
.book label {
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.book input,
.book textarea {
  all: unset;
  border-bottom: 1px solid var(--line);
  padding: 6px 2px;
  font-family: var(--sans);
  font-size: 15px;
}
.book textarea { min-height: 70px; }
.book button {
  all: unset;
  cursor: pointer;
  justify-self: end;
  grid-column: 1 / -1;
  font-size: 14px;
  letter-spacing: .22em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
  transition: opacity .3s;
}
.book button:hover { opacity: .5; }

/* ---------- Page-Fade ---------- */

/* Seiten-Übergang: Overlay blendet beim Laden aus, beim Verlassen ein.
   (Kein transform auf <body> — das würde fixed-Elemente an den Body
   statt an den Viewport binden.) */
.page-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 200;
  opacity: 1;
  pointer-events: none;
  transition: opacity .55s ease;
}
body.is-loaded .page-overlay { opacity: 0; }
body.is-leaving .page-overlay { opacity: 1; }

/* Scroll-Reveals (About) */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.22, 1, .36, 1);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; padding: 130px 24px 140px; }
  .about .portrait-l { position: static; height: 60vh; }
  .book form { grid-template-columns: 1fr; }
  .filters { left: 50%; transform: translateX(-50%); bottom: 96px; }
  .page-title { bottom: 150px; }
  .clock-item a { font-size: 24px; }
  .clock-hands .hand-hour   { height: 100px; }
  .clock-hands .hand-minute { height: 145px; }
  .g-card { width: 260px; height: 52vh; }
  .tagline { font-size: 15px; }
}
