/* ============================================================
   adsight portfolio — Cinematic Dark, Oceanwide + Mono
   ============================================================ */

@font-face {
  font-family: 'Oceanwide';
  src: url('../assets/fonts/Oceanwide-Light.otf') format('opentype');
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: 'Oceanwide';
  src: url('../assets/fonts/Oceanwide-Medium.otf') format('opentype');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Oceanwide';
  src: url('../assets/fonts/Oceanwide-Semibold.otf') format('opentype');
  font-weight: 600;
  font-display: swap;
}

:root {
  --bg: #0a0a0b;
  --ink: #f4f4f2;
  --grey: #BFC6D4;
  --grey-dark: #5a5e66;
  --blue: #0047FF;
  --black: #141414;
  --tile-border: rgba(255, 255, 255, 0.07);
  --font-main: 'Oceanwide', 'Space Grotesk', sans-serif;
  --font-grotesk: 'Space Grotesk', sans-serif;
  --font-mono: 'Space Mono', monospace;
}

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

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-main);
  font-weight: 300;
  overflow: hidden;
  height: 100%;
  -webkit-font-smoothing: antialiased;
}

.mono {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

a { color: inherit; text-decoration: none; }
button { background: none; border: none; color: inherit; cursor: pointer; font-family: inherit; }

/* ============ LOADER ============ */
#loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
#loader-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.loader-progress {
  position: absolute;
  bottom: 6vh;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--grey);
}

/* ============ HEADER ============ */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 22px 28px;
  pointer-events: none;
}
#site-header > * { pointer-events: auto; }
.header-logo img { width: 44px; height: auto; display: block; }
.header-claim { color: var(--ink); line-height: 1.5; }
.header-meta { color: var(--grey); line-height: 1.7; text-align: left; }
.header-meta .dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ink);
  margin-right: 6px;
}
.header-meta .dot-blue { background: var(--blue); }
.header-cta {
  background: var(--ink);
  color: var(--black);
  font-family: var(--font-main);
  font-weight: 500;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 99px;
  transition: background .25s, color .25s, transform .25s;
}
.header-cta:hover { background: var(--blue); color: #fff; transform: scale(1.04); }

/* ============ VIEWS ============ */
.view { position: fixed; inset: 0; }
#view-work { z-index: 1; }

.overlay-view {
  z-index: 50;
  overflow-y: auto;
  background: var(--bg);
  opacity: 0;
  visibility: hidden;
  overscroll-behavior: contain;
}
.overlay-view.open { opacity: 1; visibility: visible; }

/* ============ GALERIE ============ */
#gallery-container { position: absolute; inset: 0; cursor: grab; }
#gallery-container.dragging { cursor: grabbing; }

.drag-hint {
  position: absolute;
  bottom: 96px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--grey-dark);
  z-index: 5;
  pointer-events: none;
  transition: opacity .6s;
}
.drag-hint.hidden { opacity: 0; }

/* Raster-Zelle (CSS3D): Label oben, Media mittig, Tags unten.
   Beim Hover füllt sich die Zelle glasig mit der Projekt-Akzentfarbe. */
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 44px 52px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  background: rgba(255, 255, 255, 0.012);
  user-select: none;
  -webkit-user-select: none;
  cursor: pointer;
}
.tile-glass {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 120% at 50% 45%,
      color-mix(in srgb, var(--accent) 26%, transparent) 0%,
      color-mix(in srgb, var(--accent) 10%, transparent) 55%,
      transparent 100%);
  opacity: 0;
  transition: opacity .5s cubic-bezier(.22, 1, .36, 1);
  pointer-events: none;
}
.tile:hover .tile-glass { opacity: 1; }
.tile-media {
  position: relative;
  width: 74%;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #111;
  border-radius: 2px;
  transform: translateZ(0);
  transition: transform .45s cubic-bezier(.22, 1, .36, 1);
}
.tile:hover .tile-media { transform: scale(1.04); }
.tile-media img, .tile-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.tile-label {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--ink);
  padding: 0 2px;
  text-transform: uppercase;
}
.tile-label .tile-title { text-transform: lowercase; }
/* Kompakte Logos (Symbol/Wappen) 1.5x grösser, damit sie optisch mithalten */
.tile-logo[src*="auge-white"],
.tile-logo[src*="logo-eigenmann-media"],
.tile-logo[src*="logo-oktoberfest"] {
  height: 45px;
  max-width: 120px;
}
.tile-foot {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2px;
}
.tile-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tile-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .05em;
  color: var(--grey);
  border: 1px solid var(--tile-border);
  background: rgba(255,255,255,.04);
  padding: 4px 10px;
  border-radius: 99px;
  white-space: nowrap;
}
.tile-year { font-family: var(--font-mono); font-size: 12px; color: var(--grey); }

/* ============ LISTEN-ANSICHT ============ */
#view-list { display: flex; align-items: flex-start; }
.work-list {
  list-style: none;
  width: 100%;
  padding: 180px 28px 140px;
}
.work-list li a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid var(--tile-border);
  font-size: clamp(26px, 5vw, 56px);
  font-weight: 300;
  text-transform: lowercase;
  transition: color .25s, padding-left .25s;
}
.work-list li a:hover { color: var(--blue); padding-left: 16px; }
.work-list li a .mono { color: var(--grey-dark); font-size: 11px; }

/* ============ SEITEN (About / Kontakt / Projekt) ============ */
.page-inner, .project-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 140px 28px 180px;
}
.page-eyebrow { color: var(--blue); margin-bottom: 22px; }
.page-title {
  font-size: clamp(40px, 7vw, 88px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 56px;
}
.page-title em { font-style: normal; color: var(--blue); }

.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  font-size: 19px;
  line-height: 1.65;
  color: var(--grey);
  margin-bottom: 96px;
}
.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 110px;
}
.value {
  border: 1px solid var(--tile-border);
  border-radius: 4px;
  padding: 28px;
  background: rgba(255,255,255,.02);
}
.value-nr { color: var(--blue); display: block; margin-bottom: 18px; }
.value h3 {
  font-size: 28px;
  font-weight: 500;
  text-transform: lowercase;
  margin-bottom: 12px;
}
.value p { color: var(--grey); line-height: 1.6; font-size: 15px; }

.section-label { color: var(--grey-dark); margin: 0 0 28px; }

.services-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 110px;
}
.services-list li {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .05em;
  text-transform: uppercase;
  border: 1px solid var(--tile-border);
  background: rgba(255,255,255,.03);
  padding: 12px 20px;
  border-radius: 99px;
  color: var(--ink);
  transition: border-color .25s, color .25s;
}
.services-list li:hover { border-color: var(--blue); color: var(--blue); }

.brands { display: flex; flex-direction: column; gap: 4px; margin-bottom: 110px; }
.brands a, .brand-soon {
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 300;
  text-transform: lowercase;
  padding: 14px 0;
  border-bottom: 1px solid var(--tile-border);
  transition: color .25s, padding-left .25s;
}
.brands a span { font-size: .6em; color: var(--grey-dark); }
.brands a:hover { color: var(--blue); padding-left: 16px; }
.brand-soon { color: var(--grey-dark); }
.brand-soon em { font-style: normal; font-size: 10px; margin-left: 12px; color: var(--blue); }

.clients-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--tile-border);
  border: 1px solid var(--tile-border);
}
.client {
  background: var(--bg);
  aspect-ratio: 16 / 7;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12%;
  transition: background .3s;
}
.client:hover { background: #101014; }
.client img { max-width: 100%; max-height: 100%; object-fit: contain; opacity: .85; }
/* Randlos beschnittene Logos (SVGs) auf die optische Grösse der alten
   PNGs mit Transparenz-Rand bringen */
.client-tight img { max-height: 42%; max-width: 58%; }
.client-em img { max-height: 64%; max-width: 74%; }
.clients-grid { margin-bottom: 110px; }
.partner-grid { grid-template-columns: repeat(2, 1fr); }
a.client { transition: background .3s; }
a.client:hover { background: #12121a; }
a.client:hover img { opacity: 1; }

/* ============ TEAM (Partikel-Portraits) ============ */
.team-section {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: stretch;
  margin-bottom: 40px;
}
.team-stage {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  touch-action: pan-y;  /* horizontale Swipes selbst behandeln, vertikal scrollen lassen */
  cursor: grab;
}
.team-stage:active { cursor: grabbing; }
.team-stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.team-label {
  position: absolute;
  top: 6px; left: 2px;
  z-index: 2;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #fff;
  line-height: 1.7;
}
.team-label .dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  margin-right: 8px;
}
.team-role { color: var(--grey-dark); }
.team-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.team-list li {
  position: relative;
  font-size: clamp(44px, 5.6vw, 84px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: #4a4a52;
  cursor: pointer;
  transition: color .35s ease;
  width: fit-content;
}
.team-list li:hover, .team-list li.active { color: #fff; }
.team-badge {
  position: absolute;
  top: -2px; right: -12px;
  transform: translateX(100%);
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--grey-dark);
  border: 1px solid #2a2a32;
  border-radius: 50%;
  transition: color .35s ease, border-color .35s ease, background .35s ease;
}
.team-list li:hover .team-badge, .team-list li.active .team-badge {
  background: #f4f4f2;
  border-color: #f4f4f2;
  color: var(--black);
}

/* ============ KONTAKT / SAG HALLO ============ */
.page-eyebrow .dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  margin-right: 8px;
}
.hallo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 110px;
}
.hallo-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 380px;
  padding: 30px;
  border: 1px solid var(--tile-border);
  border-radius: 8px;
  background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  transition: border-color .3s, background .3s, transform .3s;
}
a.hallo-card:hover {
  border-color: rgba(0, 71, 255, .55);
  background: linear-gradient(160deg, rgba(0,71,255,.14), rgba(255,255,255,.02));
  transform: translateY(-4px);
}
.hallo-tag { color: var(--grey); margin-bottom: 28px; }
.hallo-tag .dot { width: 7px; height: 7px; display: inline-block; border-radius: 50%; margin-right: 8px; }
.hallo-card h3 {
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 500;
  line-height: 1.25;
  max-width: 320px;
}
.hallo-arrow {
  margin-top: auto;
  width: 56px; height: 56px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: background .3s, color .3s, border-color .3s;
}
a.hallo-card:hover .hallo-arrow { background: var(--blue); border-color: var(--blue); color: #fff; }
.hallo-buttons { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.hallo-btn {
  display: block;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  padding: 13px 16px;
  line-height: 1.6;
  color: var(--ink);
  transition: background .3s, border-color .3s;
}
.hallo-btn:hover { background: var(--blue); border-color: var(--blue); color: #fff; }

.kontakt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 130px;
}
.kontakt-grid h3 { color: var(--grey-dark); margin: 0 0 14px; }
.kontakt-grid h3 + p { margin-bottom: 34px; }
.kontakt-grid p { font-size: 19px; line-height: 1.7; color: var(--ink); }
.kontakt-grid a { transition: color .25s; }
.kontakt-grid a:hover { color: var(--blue); }
.kontakt-footer { color: var(--grey-dark); }

/* ============ PROJEKT-DETAIL ============ */
.project-hero {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: 64px;
  background: #111;
}
.project-hero img, .project-hero video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.project-head { margin-bottom: 56px; }
.project-title {
  font-size: clamp(40px, 7vw, 84px);
  font-weight: 500;
  text-transform: lowercase;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.project-logo {
  height: 0.9em;
  width: auto;
  border-radius: 8px;
  display: block;
}
/* sanfter Wechsel zwischen Light/Dark-Varianten */
.img-swap { transition: opacity .3s ease; }
.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.project-meta .tile-tag { font-size: 11px; }
.project-meta .proj-year { font-family: var(--font-mono); font-size: 12px; color: var(--grey); margin-left: auto; }

.project-body {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  margin-bottom: 96px;
}
.project-features h3, .project-about h3 { margin-bottom: 22px; color: var(--grey-dark); }
.project-features ul { list-style: none; display: flex; flex-direction: column; gap: 0; }
.project-features li {
  font-size: 17px;
  padding: 13px 0;
  border-bottom: 1px solid var(--tile-border);
  color: var(--ink);
}
.project-about p { font-size: 18px; line-height: 1.7; color: var(--grey); margin-bottom: 20px; }

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  padding: 15px 26px;
  border-radius: 100px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  background: color-mix(in srgb, var(--accent) 9%, transparent);
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 0.01em;
  transition: background .35s ease, border-color .35s ease, transform .35s ease;
}
.project-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}
.project-link-arrow {
  font-size: 17px;
  transition: transform .35s ease;
}
.project-link:hover .project-link-arrow { transform: translate(3px, -3px); }

.project-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 120px;
}
.project-gallery figure {
  overflow: hidden;
  border-radius: 4px;
  background: #111;
}
.project-gallery img, .project-gallery video {
  width: 100%;
  display: block;
  transition: transform .6s cubic-bezier(.22,1,.36,1);
}
.project-gallery figure:hover img { transform: scale(1.03); }
.project-gallery .wide { grid-column: span 2; }

.more-works h2 {
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 500;
  text-transform: lowercase;
  margin-bottom: 36px;
}
.more-works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 64px;
}
.more-card { display: block; }
.more-card .mc-media {
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: 4px;
  background: #111;
  margin-bottom: 12px;
}
.more-card img, .more-card video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s cubic-bezier(.22,1,.36,1);
}
.more-card:hover img, .more-card:hover video { transform: scale(1.05); }
.more-card .mc-title { text-transform: lowercase; font-size: 20px; font-weight: 500; }
.more-card .mono { color: var(--grey-dark); display: block; margin-top: 4px; }

.back-to-work {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: 1px solid var(--tile-border);
  border-radius: 99px;
  padding: 16px 30px;
  transition: border-color .25s, color .25s, background .25s;
}
.back-to-work:hover { border-color: var(--blue); background: var(--blue); color: #fff; }

/* ============ BOTTOM NAV ============ */
#bottom-nav {
  position: fixed;
  bottom: 24px;
  left: 0; right: 0;
  z-index: 200;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}
.nav-pill {
  pointer-events: auto;
  display: flex;
  background: rgba(20, 20, 22, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--tile-border);
  border-radius: 99px;
  padding: 5px;
}
.nav-pill a {
  font-family: var(--font-main);
  font-weight: 500;
  font-size: 15px;
  padding: 12px 26px;
  border-radius: 99px;
  color: var(--grey);
  transition: color .25s, background .25s;
}
.nav-pill a.active { background: var(--ink); color: var(--black); }
.nav-pill a:not(.active):hover { color: var(--ink); }

.nav-toggle {
  pointer-events: auto;
  position: absolute;
  left: 28px;
  display: flex;
  background: rgba(20, 20, 22, .82);
  backdrop-filter: blur(14px);
  border: 1px solid var(--tile-border);
  border-radius: 99px;
  padding: 5px;
}
.nav-toggle button {
  font-size: 15px;
  width: 42px; height: 42px;
  border-radius: 50%;
  color: var(--grey);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .25s, color .25s;
}
.nav-toggle button.active { background: var(--ink); color: var(--black); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .header-claim { display: none; }
  .about-values, .more-works-grid, .kontakt-grid { grid-template-columns: 1fr 1fr; }
  .clients-grid { grid-template-columns: 1fr 1fr; }
  .hallo-grid { grid-template-columns: 1fr; }
  .hallo-card { min-height: 300px; }
  .team-section { grid-template-columns: 1fr; gap: 10px; }
  .team-stage { min-height: 440px; }
}
@media (max-width: 720px) {
  #site-header { padding: 16px 18px; align-items: center; }
  .header-logo img { width: 36px; }
  .header-meta { display: none; }
  .header-cta { font-size: 13px; padding: 11px 18px; }
  .about-intro, .project-body, .about-values, .kontakt-grid { grid-template-columns: 1fr; }
  .more-works-grid { grid-template-columns: 1fr; }
  .project-gallery { grid-template-columns: 1fr; }
  .project-gallery .wide { grid-column: span 1; }
  .page-inner, .project-inner { padding: 110px 18px 160px; }
  .nav-toggle { left: 14px; }
  .nav-pill a { font-size: 13px; padding: 11px 18px; }
  .drag-hint { bottom: 88px; }
  .project-meta .proj-year { margin-left: 0; width: 100%; }
}
