/* Reset */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: #0a0a0a;
  color: rgba(255,255,255,0.92);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1; }

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible {
  outline: 2px solid rgba(255,255,255,0.75);
  outline-offset: 3px;
  border-radius: 10px;
}

/* Top nav */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 18px 18px;
  pointer-events: none;
  transition: background 220ms ease, backdrop-filter 220ms ease, border-bottom-color 220ms ease;
  background: transparent;
}
body.is-scrolled .topbar {
  background: rgba(28,28,28,0.14);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.topbar__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  pointer-events: auto;
}
.nav {
  justify-self: center;
  display: flex;
  gap: 54px;
  align-items: center;
}
.nav__link {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.9;
}
.nav__link:hover { opacity: 1; }
.nav__link--active { opacity: 1; }

.ig { justify-self: end; opacity: 0.9; display: grid; place-items: center; }
.ig:hover { opacity: 1; }
.ig__icon { width: 18px; height: 18px; display: block; }

/* HERO */
.hero {
  position: relative;
  min-height: 86vh;
  height: 100svh;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 92px 18px 48px;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 600px at 50% 20%, rgba(255,255,255,0.10), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,0.28) 0%, rgba(0,0,0,0.56) 55%, rgba(0,0,0,0.86) 100%);
}
.hero__content {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 14px;
  padding-top: 18px;
}
.hero__logo {
  width: 54px;
  height: auto;
  display: block;
  opacity: 0.98;
  background: transparent !important;
  mix-blend-mode: screen;
  isolation: isolate;
  filter: drop-shadow(0 8px 22px rgba(0,0,0,0.55));
  box-shadow: none !important;
  border: 0 !important;
}
.hero__title {
  margin: 0;
  font-size: clamp(26px, 5vw, 44px);
  font-weight: 700;
  line-height: 1.12;
  font-family: "UnifrakturMaguntia", serif;
  letter-spacing: 0.01em;
  color: #fff;
  text-shadow: none;
  will-change: transform;
}

.hero__title--thin {
  display: inline;
  font-family: inherit;
  font-weight: inherit;
  opacity: 1;
  color: #fff;
  letter-spacing: inherit;
  text-shadow: inherit;
}

.hero__title--animate {
  opacity: 1;
  transform: none;
  animation: titleIn 0.3s ease-out both;
}


/* Showreel arrow */
.gothic-arrow {
  position: absolute;
  left: 50%;
  bottom: max(42px, env(safe-area-inset-bottom));
  z-index: 4;
  transform: translateX(-50%);
  border: 0;
  background: transparent;
  color: white;
  padding: 8px;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.gothic-arrow__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  line-height: 0;
  border-radius: 999px;
  background: rgba(0,0,0,0.22);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.16);
  animation: floaty 2.4s ease-in-out infinite;
  filter: drop-shadow(0 10px 28px rgba(0,0,0,0.78));
}
.gothic-arrow__icon img {
  width: 22px;
  height: 22px;
  display: block;
}
@keyframes floaty {
  0%, 100% { transform: translateY(-3px); }
  50% { transform: translateY(6px); }
}

/* Sections */
.section {
  padding: 26px 18px 40px;
  background: #0a0a0a;
}
.section--plain { padding-top: 52px; }
.section__head {
  max-width: 1100px;
  margin: 0 auto 14px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.section__head--spaced { margin-top: 30px; }
.section__title {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.85;
}
.section__action {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.75;
}
.section__action:hover { opacity: 1; }
.muted { opacity: 0.75; line-height: 1.6; }

/* Shared media */
.media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Horizontal scroller */
.hscroll {
  max-width: 1100px;
  margin: 0 auto;
  overflow: hidden;
}
.hscroll__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(190px, 38vw, 280px);
  gap: 14px;
  overflow-x: auto;
  padding: 10px 2px 6px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  pointer-events: auto;
}
.hscroll__track:active { cursor: grabbing; }
.hscroll__track::-webkit-scrollbar { display: none; }

/* Cards */
.card {
  position: relative;
  scroll-snap-align: start;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
  overflow: hidden;
}
.card:hover { border-color: rgba(255,255,255,0.22); }
.card--vertical { aspect-ratio: 9 / 16; }

/* Social controls */
.socialcard__controls {
  position: absolute;
  left: 10px;
  bottom: 10px;
  display: flex;
  gap: 8px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 160ms ease, transform 160ms ease;
}
.socialcard:hover .socialcard__controls {
  opacity: 1;
  transform: translateY(0);
}
.ctrl {
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.35);
  color: white;
  border-radius: 999px;
  width: 38px;
  height: 32px;
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

/* Tiles */
.workpage, .contentpage { padding-top: 66px; }

.recentlist {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding-top: 6px;
}

.workgrid3 {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 12px 0 8px;
}
.worktile {
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  overflow: hidden;
  display: block;
  transform-origin: center bottom;
}
.worktile:hover { border-color: rgba(255,255,255,0.22); }

/* remove any :target highlight */
.worktile:target { outline: none; box-shadow: none; }

/* Reveal animation (scroll-in from bottom + scale up) */
.reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.92);
  transition: opacity 420ms ease, transform 520ms cubic-bezier(.2,.9,.2,1);
  will-change: transform, opacity;
}
.reveal.is-inview {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Stills + hover */
.stilltile { position: relative; }
.stilltile__media { position: relative; width: 100%; aspect-ratio: 16 / 9; }

.stilltile__media::after{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(0,0,0,0);
  transition: background 180ms ease;
  pointer-events:none;
}
.stilltile:hover .stilltile__media::after{
  background: rgba(0,0,0,0.18);
}

.stilltile__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 180ms ease, filter 180ms ease;
}
.stilltile__img--a { opacity: 1; }
.stilltile__img--b { opacity: 0;  }

.stilltile__title {
  position: absolute;
  left: 14px;
  bottom: 14px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 180ms ease;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.40);
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(8px);
  display: inline-block;
  width: fit-content;
  max-width: calc(100% - 28px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stilltile:hover .stilltile__img--b { opacity: 1; }
.stilltile:hover .stilltile__title { opacity: 1; }

/* Content page */
.contentgrid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}
.contentvideo__frame {
  grid-column: 1 / span 2;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  overflow: hidden;
  background: rgba(255,255,255,0.05);
}
.contentvideo__frame video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.stillrow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.stillrow--full {
  grid-column: 1 / -1;
  margin-top: 2px;
}
.stillrow img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
}

/* Credits */
.credits {
  grid-column: 3;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  padding: 28px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: stretch;
  min-height: 100%;
  backdrop-filter: blur(12px);
  overflow: hidden;
}
.credits__block { margin-bottom: 0; }
#creditsLines {
  display: grid;
  gap: 12px;
}
.credits__line {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.045em;
  line-height: 1.32;
  font-size: 11px;
}
.credits__title {
  font-size: 14px;
  color: #fff;
}
.credits__work {
  display: none;
}
.credits__line span:first-child {
  opacity: 0.64;
  display: block;
  margin-bottom: 2px;
}
.credits__line span:last-child { opacity: 0.96; }


/* Contact panel */
.contact-panel {
  max-width: 1100px;
  margin: 0 auto;
  padding: 30px;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.12);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(255,255,255,0.09), transparent 45%),
    linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03));
  box-shadow: 0 24px 60px rgba(0,0,0,0.34);
  backdrop-filter: blur(18px);
  color: rgba(255,255,255,0.92);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  align-items: start;
}

.contact-panel__info,
.contact-panel__formwrap {
  min-width: 0;
}

.contact-panel__title {
  margin: 0 0 26px;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 0.98;
  font-weight: 700;
  font-family: "UnifrakturMaguntia", serif;
  letter-spacing: 0.01em;
  color: #fff;
}

.contact-panel__group,
.contact-panel__socials {
  margin-bottom: 22px;
}

.contact-panel__label {
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.52);
  margin-bottom: 8px;
}

.contact-panel__value {
  color: rgba(255,255,255,0.94);
  text-decoration: none;
  font-size: 18px;
  line-height: 1.6;
}

.contact-panel__icons {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.contact-panel__icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  display: grid;
  place-items: center;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.contact-panel__icon:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.1);
}

.contact-panel__icon img {
  width: 16px;
  height: 16px;
  display: block;
  filter: brightness(0) invert(1);
}

.contact-form {
  display: grid;
  gap: 20px;
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form__field {
  display: grid;
  gap: 9px;
}

.contact-form__field label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.64);
}

.contact-form__field input,
.contact-form__field textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.94);
  padding: 15px 18px;
  font: inherit;
  resize: vertical;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.contact-form__field textarea {
  min-height: 180px;
}

.contact-form__field input::placeholder,
.contact-form__field textarea::placeholder {
  color: rgba(255,255,255,0.34);
}

.contact-form__field input:focus,
.contact-form__field textarea:focus {
  outline: none;
  border-color: rgba(255,255,255,0.24);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.05);
}

.contact-form__submit {
  justify-self: center;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  background: rgba(255,255,255,0.94);
  color: #0f0f0f;
  padding: 15px 24px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
  box-shadow: 0 14px 30px rgba(0,0,0,0.24);
}

.contact-form__submit:hover {
  background: #fff;
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(0,0,0,0.3);
}

.hidden-field {
  display: none;
}

@media (max-width: 900px) {
  .contact-panel {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 22px;
  }

  .contact-form__row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .contact-panel {
    padding: 18px;
    gap: 22px;
  }

  .contact-panel__title {
    font-size: 28px;
  }

  .contact-panel__value {
    font-size: 16px;
  }

  .contact-form__field input,
  .contact-form__field textarea,
  .contact-form__submit {
    padding: 13px 14px;
  }
}

/* Footer */
.footer {
  padding: 22px 18px 32px;
  display: flex;
  justify-content: center;
  margin-top: auto;
}

.footer__inner {
  width: min(760px, 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(36px, 8vw, 96px);
  line-height: 1.2;
  text-align: center;
}

.footer__credit {
  opacity: 0.5;
}

.footer__credit a {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

/* Responsive */
@media (max-width: 980px) {
  .workgrid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contentgrid { grid-template-columns: 1fr; }
  .contentvideo__frame, .credits { grid-column: auto; }
  .stillrow { grid-template-columns: 1fr; }
  .stillrow--full { grid-column: auto; }
  .footer__inner {
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    text-align: center;
  }
}
@media (max-width: 560px) {
  .nav { gap: 28px; }
  .workgrid3 { grid-template-columns: 1fr; }
  .stilltile__media { aspect-ratio: 5 / 4; }
}

.gothic-arrow__icon svg{filter: drop-shadow(0 10px 28px rgba(0,0,0,0.75));}

.socialcard__video{pointer-events:none;}
.socialcard__controls{pointer-events:auto;}

@media (max-width: 980px) {
  .credits {
    max-height: none;
    overflow: visible;
  }
}

#contact { scroll-margin-top: 92px; }



/* Vimeo embeds */
.contentvideo__frame iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  background: #000;
}

.socialcard__embedwrap {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: #000;
}

.socialcard__embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}

.socialcard__controls {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: flex;
  gap: 8px;
}

.ctrl svg {
  display: block;
}

.socialcard {
  position: relative;
}


/* Make Vimeo chrome feel cleaner on the content page */
.contentvideo__frame {
  background: #000;
  overflow: hidden;
}


/* Mobile press state for still tiles */
@media (hover: none), (pointer: coarse) {
  .stilltile.is-pressed .stilltile__img--a {
    opacity: 0 !important;
  }

  .stilltile.is-pressed .stilltile__img--b {
    opacity: 1 !important;
  }

  .stilltile.is-pressed .stilltile__title {
    opacity: 1 !important;
  }

  .stilltile.is-pressed .stilltile__media::after {
    background: rgba(0,0,0,0.18) !important;
  }
}

