:root {
  --ink: rgba(255, 255, 255, 0.92);
  --ink-dim: rgba(255, 255, 255, 0.55);
  --ink-faint: rgba(255, 255, 255, 0.32);
  --card-bg: rgba(255, 255, 255, 0.06);
  --card-brd: rgba(255, 255, 255, 0.14);
  --accent: #6aa3ff;
  --maxw: 1280px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Fredoka", var(--font);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: #060608;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---------------------------------------------------------- background --- */
#bg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  display: block;
}
.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* ---------------------------------------------------------------- views --- */
#app { position: relative; z-index: 1; }
.view {
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
}
.view[hidden] { display: none; }

/* glass card shared */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-brd);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

/* ============================================================= HOME ===== */
.view--home {
  align-items: center;
  justify-content: center;
  position: relative;
}
.compass {
  position: relative;
  width: min(70vw, 360px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.compass__item {
  position: absolute;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--ink);
  font-size: 0.95rem;
  transition: color 0.3s, text-shadow 0.3s, transform 0.3s;
  white-space: nowrap;
}
.compass__item:hover { color: #fff; text-shadow: 0 0 18px rgba(255, 255, 255, 0.55); }
.compass__top {
  top: -6%;
  left: 50%;
  transform: translateX(-50%);
  letter-spacing: 0.28em;
  font-size: 1.05rem;
}
.compass__bottom { bottom: -2%; left: 50%; transform: translateX(-50%); }
.compass__left { left: -2%; top: 50%; transform: translateY(-50%); }
.compass__right { right: -4%; top: 50%; transform: translateY(-50%); }
.compass__top:hover { transform: translateX(-50%) translateY(-3px); }
.compass__bottom:hover { transform: translateX(-50%) translateY(3px); }
.compass__left:hover { transform: translateY(-50%) translateX(-3px); }
.compass__right:hover { transform: translateY(-50%) translateX(3px); }

/* diamond compass graphic */
.diamond {
  position: relative;
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
}
.diamond__square {
  position: absolute;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  transform: rotate(45deg);
  border-radius: 4px;
  animation: pulse 4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 rgba(255,255,255,0); }
  50% { box-shadow: 0 0 22px rgba(255,255,255,0.25); }
}
.diamond__arrow {
  position: absolute;
  width: 0; height: 0;
}
.diamond__arrow--up { top: 0; left: 50%; transform: translateX(-50%); border-left: 7px solid transparent; border-right: 7px solid transparent; border-bottom: 9px solid rgba(255,255,255,0.75); }
.diamond__arrow--down { bottom: 0; left: 50%; transform: translateX(-50%); border-left: 7px solid transparent; border-right: 7px solid transparent; border-top: 9px solid rgba(255,255,255,0.75); }
.diamond__arrow--left { left: 0; top: 50%; transform: translateY(-50%); border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-right: 9px solid rgba(255,255,255,0.75); }
.diamond__arrow--right { right: 0; top: 50%; transform: translateY(-50%); border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-left: 9px solid rgba(255,255,255,0.75); }

/* socials */
.socials {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 26px;
}
.social {
  width: 22px;
  height: 22px;
  color: var(--ink-dim);
  transition: color 0.3s, transform 0.3s;
}
.social:hover { color: #fff; transform: translateY(-3px); }
.social svg { width: 100%; height: 100%; }

/* ============================================================ ABOUT ===== */
.view--about, .view--meai { align-items: center; justify-content: center; position: relative; padding: 24px; }
.about {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 720px;
  width: 100%;
}
.about__photo {
  flex: 0 0 auto;
  width: 190px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  transform: translateX(20px);
  z-index: 2;
}
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__text {
  padding: 34px 34px 34px 52px;
  max-width: 460px;
  text-align: justify;
  font-weight: 300;
  line-height: 1.7;
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.85);
}
.inline-link {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.3s, text-shadow 0.3s;
}
.inline-link:hover { text-shadow: 0 0 14px rgba(255, 255, 255, 0.6); }

/* ============================================================= ME&AI ==== */
.meai { max-width: 520px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 30px; }
.meai__text {
  padding: 34px 40px;
  text-align: justify;
  font-weight: 300;
  line-height: 1.8;
  font-size: 1.02rem;
  color: rgba(255, 255, 255, 0.88);
}
.meai__links { display: flex; align-items: center; gap: 18px; }
.meai__link {
  font-weight: 300;
  letter-spacing: 0.14em;
  color: var(--ink);
  font-size: 1.05rem;
  transition: color 0.3s, text-shadow 0.3s;
}
.meai__link:hover { color: #fff; text-shadow: 0 0 16px rgba(255,255,255,0.5); }
.meai__dot { width: 5px; height: 5px; border-radius: 50%; background: var(--ink-faint); }

/* edge nav arrows */
.edge {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  background: none;
  cursor: pointer;
  z-index: 5;
  color: var(--ink-dim);
  transition: color 0.3s, transform 0.3s;
}
.edge:hover { color: #fff; }
.edge::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 14px; height: 14px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}
.edge--right { right: 26px; }
.edge--right::before { transform: translate(-50%, -50%) rotate(-45deg); }
.edge--right:hover { transform: translateY(-50%) translateX(4px); }
.edge--left { left: 26px; }
.edge--left::before { transform: translate(-50%, -50%) rotate(135deg); }
.edge--left:hover { transform: translateY(-50%) translateX(-4px); }
.edge--home {
  top: auto;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
}
.edge--home::before { transform: translate(-50%, -50%) rotate(45deg); }
.edge--home:hover { transform: translateX(-50%) translateY(4px); }

/* ===================================================== GALLERY PAGES ==== */
.view--gallery, .view--article { display: block; padding: 0; }
.view--article { position: relative; }
.view--article::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 60% 80% at 50% 45%, rgba(4, 4, 9, 0.62), rgba(4, 4, 9, 0) 75%);
}
.view--article > * { position: relative; z-index: 1; }
.page-head {
  position: sticky;
  top: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(18px, 4vw, 54px);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(6,6,10,0.7), rgba(6,6,10,0));
}
.page-title {
  font-family: var(--font);
  font-weight: 300;
  letter-spacing: 0.22em;
  font-size: clamp(0.95rem, 2.4vw, 1.3rem);
  text-transform: uppercase;
}
.page-title span { color: var(--ink-dim); }
.page-title--sm { letter-spacing: 0.18em; }
.back-link {
  background: none;
  border: 1px solid var(--card-brd);
  color: var(--ink-dim);
  padding: 8px 16px;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.3s;
}
.back-link:hover { color: #fff; border-color: rgba(255,255,255,0.4); }

/* section tabs in the works header */
.section-tabs { display: flex; gap: 20px; }
.section-tab {
  font-weight: 300;
  letter-spacing: 0.12em;
  font-size: 0.84rem;
  color: var(--ink-faint);
  transition: color 0.3s, text-shadow 0.3s;
}
.section-tab:hover { color: #fff; text-shadow: 0 0 14px rgba(255,255,255,0.4); }

/* work sections */
.work-section { padding: 8px clamp(16px, 4vw, 54px) 10px; max-width: 1600px; margin: 0 auto; }
.work-section:last-child { padding-bottom: 90px; }
.section-title {
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.92rem;
  color: var(--ink-dim);
  margin: 26px 4px 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* commercials reel — 16:9 video cards */
.reel {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}
.reel-card {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #14141c center/cover no-repeat;
  display: flex;
  align-items: flex-end;
}
.reel-card.is-ready { cursor: pointer; }
.reel-card.is-soon {
  background: linear-gradient(135deg, rgba(60,40,90,0.5), rgba(20,22,40,0.6));
}
.reel-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.12) 55%, rgba(0,0,0,0.25) 100%);
  transition: opacity 0.4s;
}
.reel-card.is-ready:hover::after { opacity: 0.7; }
.reel-card__play {
  position: absolute;
  top: 50%; left: 50%;
  width: 58px; height: 58px;
  transform: translate(-50%, -50%) scale(0.9);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(4px);
  transition: transform 0.4s, background 0.4s;
  z-index: 2;
}
.reel-card__play::before {
  content: "";
  position: absolute;
  top: 50%; left: 54%;
  transform: translate(-50%, -50%);
  border-left: 16px solid #fff;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}
.reel-card.is-soon .reel-card__play { opacity: 0.4; }
.reel-card.is-ready:hover .reel-card__play { transform: translate(-50%, -50%) scale(1.08); background: rgba(255,255,255,0.22); }
.reel-card__cap {
  position: relative;
  z-index: 2;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.reel-card__title { font-weight: 400; font-size: 0.96rem; color: #fff; letter-spacing: 0.01em; }
.reel-card__note {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* masonry */
.masonry {
  columns: 4 280px;
  column-gap: 16px;
}
.tile {
  break-inside: avoid;
  margin-bottom: 16px;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.04);
  transform: translateZ(0);
}
.tile img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s;
  filter: saturate(0.96);
}
.tile:hover img { transform: scale(1.06); filter: saturate(1.1); }
.tile__ring {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  pointer-events: none;
  transition: box-shadow 0.4s;
}
.tile:hover .tile__ring { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4); }

/* ============================================================ ARTICLE === */
.page-head--article { flex-wrap: wrap; gap: 12px; }
.tabs { display: flex; gap: 18px; order: 1; }
.tab {
  font-weight: 300;
  letter-spacing: 0.12em;
  font-size: 0.92rem;
  color: var(--ink-faint);
  cursor: pointer;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: color 0.3s, border-color 0.3s;
}
.tab:hover { color: var(--ink); }
.tab.is-active { color: #fff; border-bottom-color: rgba(255,255,255,0.6); }
.page-head--article .page-title { order: 2; }
.page-head--article .back-link { order: 3; }

.article {
  max-width: 680px;
  margin: 0 auto;
  padding: 30px clamp(20px, 5vw, 24px) 110px;
}
.article__lead {
  margin: 0 0 30px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.article__lead img {
  display: block;
  width: 100%;
  height: clamp(280px, 46vh, 460px);
  object-fit: cover;
  object-position: center 28%;
  filter: saturate(1.02);
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.article__lead:hover img { transform: scale(1.03); }
.article__kicker {
  color: var(--ink-faint);
  font-size: 0.85rem;
  font-weight: 300;
  margin-bottom: 18px;
}
.article__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.05;
  margin-bottom: 30px;
  letter-spacing: -0.01em;
}
.article__title span { display: block; }
.article p:not(.article__kicker) {
  font-weight: 300;
  line-height: 1.85;
  font-size: 1.02rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 22px;
  text-align: justify;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55);
}
.article__title { text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5); }

/* =========================================================== LIGHTBOX === */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(4, 4, 8, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
}
/* blur only behind images — backdrop-filter breaks video GPU compositing
   (black picture + audio), so it must NOT apply in video mode */
.lightbox:not(.is-video) {
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.lightbox.is-video { background: rgba(2, 2, 5, 0.97); }
.lightbox[hidden] { display: none; }
.lightbox__img {
  max-width: 88vw;
  max-height: 86vh;
  border-radius: 8px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7);
}
.lightbox__close {
  position: absolute;
  top: 22px; right: 28px;
  font-size: 2rem;
  background: none; border: none;
  color: var(--ink-dim); cursor: pointer;
  line-height: 1; transition: color 0.3s;
}
.lightbox__nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  font-size: 2.6rem;
  background: none; border: none;
  color: var(--ink-dim); cursor: pointer;
  padding: 14px; transition: color 0.3s;
}
.lightbox__close:hover, .lightbox__nav:hover { color: #fff; }
.lightbox__prev { left: 14px; }
.lightbox__next { right: 14px; }

/* video mode */
.lightbox__video { display: none; width: min(90vw, 1280px); aspect-ratio: 16 / 9; }
.lightbox__video iframe {
  width: 100%; height: 100%;
  border-radius: 8px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7);
}
.lightbox.is-video .lightbox__nav { display: none; }

/* ===================================================== LEGAL CONTENT ===== */
.legal { max-width: 760px; }
.legal__h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  margin-bottom: 14px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
}
.legal__address {
  font-style: normal;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 18px;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55);
}
.legal__h3 {
  font-weight: 500;
  font-size: 1.12rem;
  letter-spacing: 0.01em;
  color: #fff;
  margin: 34px 0 12px;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55);
}
.article.legal p:not(.article__kicker) {
  font-weight: 300;
  line-height: 1.8;
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 14px;
  text-align: left;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55);
}
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; word-break: break-word; }
.legal a:hover { color: #fff; }
.legal__list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}
.legal__list li {
  position: relative;
  padding-left: 20px;
  font-weight: 300;
  line-height: 1.7;
  font-size: 0.96rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 8px;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55);
}
.legal__list li::before {
  content: "";
  position: absolute;
  left: 4px; top: 11px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--ink-faint);
}

/* commercials closing words */
.reel-outro {
  max-width: 760px;
  margin: 48px auto 8px;
  text-align: center;
}
.reel-outro p {
  font-weight: 300;
  letter-spacing: 0.04em;
  line-height: 1.7;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.reel-outro__de { margin-bottom: 18px; color: rgba(255, 255, 255, 0.6); }
.reel-outro__en { color: var(--ink-faint); }

/* ====================================================== COOKIE HINT ===== */
.cookie-hint {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 60;
  max-width: 380px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(16, 16, 22, 0.72);
  border: 1px solid var(--card-brd);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}
.cookie-hint[hidden] { display: none; }
.cookie-hint p {
  margin: 0;
  font-weight: 300;
  font-size: 0.78rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
}
.cookie-hint a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.cookie-hint a:hover { color: #fff; }
.cookie-hint__ok {
  flex: 0 0 auto;
  align-self: flex-end;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  padding: 8px 18px;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s;
}
.cookie-hint__ok:hover { background: rgba(255, 255, 255, 0.2); border-color: rgba(255, 255, 255, 0.5); }

/* ========================================================= RESPONSIVE === */
@media (max-width: 720px) {
  .about { flex-direction: column; text-align: center; }
  .about__photo { width: 150px; transform: none; margin-bottom: -22px; }
  .about__text { padding: 40px 26px 28px; text-align: left; }
  .masonry { columns: 2 150px; column-gap: 12px; }
  .tile { margin-bottom: 12px; }
  .edge--left { left: 12px; }
  .edge--right { right: 12px; }
  .compass { width: 78vw; }
  .cookie-hint { left: 12px; right: 12px; bottom: 12px; max-width: none; flex-direction: column; align-items: stretch; gap: 10px; }
  .cookie-hint__ok { align-self: flex-end; }
}
@media (max-width: 460px) {
  .masonry { columns: 1; }
  .compass__top { font-size: 0.95rem; }
}
