/* ===========================================
   Self-hosted Fonts
   =========================================== */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-variable.woff2') format('woff2'),
       url('/assets/fonts/inter-variable.ttf') format('truetype');
}

@font-face {
  font-family: 'Rock Salt';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/rock-salt-400.woff2') format('woff2'),
       url('/assets/fonts/rock-salt-400.ttf') format('truetype');
}

/* ===========================================
   Reset
   =========================================== */

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

html {
  -webkit-text-size-adjust: 100%;
}

html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

body {
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
}

/* ===========================================
   CSS Variables / Design Tokens
   =========================================== */

:root {
  --color-white: #fff;
  --color-black: #000;
  --color-dark: #09090b;
  --color-surface: #18181b;
  --color-brand: #8b5cf6;
  --color-glass: rgba(255, 255, 255, 0.05);
  --color-gray-200: #e5e7eb;
  --color-gray-400: #9ca3af;
  --color-gray-500: #6b7280;
  --color-gray-600: #4b5563;
  --font-sans: 'Inter', sans-serif;
  --font-hand: 'Rock Salt', cursive;
}

/* ===========================================
   Base / Typography
   =========================================== */

body {
  font-family: var(--font-sans);
  color: var(--color-white);
  background: var(--color-black);
}

::selection {
  background: rgba(255, 255, 255, 0.2);
  color: var(--color-white);
}

/* ===========================================
   Layout
   =========================================== */

.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  opacity: 0;
  animation: fadeIn 1.2s ease-out forwards;
  position: relative;
}

.site-main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 10;
}

/* ===========================================
   Global Background Atmosphere
   =========================================== */

.bg-base {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: var(--color-black);
  pointer-events: none;
}

.bg-glow-orange {
  position: fixed;
  top: -20%;
  left: -10%;
  width: 50%;
  height: 50%;
  background: rgba(124, 45, 18, 0.1);
  filter: blur(120px);
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: screen;
}

.bg-glow-blue {
  position: fixed;
  bottom: -20%;
  right: -10%;
  width: 50%;
  height: 50%;
  background: rgba(30, 58, 138, 0.1);
  filter: blur(120px);
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: screen;
}

.bg-grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
  opacity: 0.18;
  pointer-events: none;
  mix-blend-mode: overlay;
}

/* ===========================================
   Skip Navigation
   =========================================== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.skip-nav {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--color-white);
  color: var(--color-black);
  padding: 0.5rem 1rem;
  z-index: 100;
  font-size: 0.875rem;
  text-decoration: none;
}

.skip-nav:focus {
  top: 0;
}

/* ===========================================
   Hero
   =========================================== */

.hero {
  padding: 1rem;
  height: 95vh;
  min-height: 600px;
  width: 100%;
}

.hero__inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 2.5rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--color-black);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 0 100px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

.hero__credit {
  position: absolute;
  top: 2rem;
  left: 2rem;
  z-index: 30;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.15);
  transition: color 0.3s;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
}

.hero__credit:hover {
  color: rgba(255, 255, 255, 0.4);
}

.hero__contact-btn {
  position: absolute;
  top: 1rem;
  right: 2rem;
  z-index: 30;
  background: transparent;
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: opacity 0.3s;
}

.hero__contact-btn:hover {
  opacity: 0.7;
}

.hero__contact-btn:focus-visible {
  outline: 2px solid var(--color-white);
  outline-offset: 4px;
  border-radius: 2px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.85;
  filter: saturate(0.7);
}

.hero__overlay-dark {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.hero__overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, transparent, rgba(0, 0, 0, 0.8));
}

.hero__content {
  max-width: 64rem;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 10;
  padding: 0 1rem;
}

.hero__content>*+* {
  margin-top: 1.5rem;
}

.hero__title {
  font-family: var(--font-hand);
  font-size: 3rem;
  color: var(--color-white);
  line-height: 1.25;
  filter: drop-shadow(0 25px 25px rgba(0, 0, 0, 0.15));
  opacity: 0;
  animation: slideUp 1s ease-out 0.2s forwards;
}

.hero__subtitle {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  opacity: 0;
  animation: slideUp 1s ease-out 0.4s forwards;
  color: rgba(255, 255, 255, 0.8);
}

.hero__subtitle-name,
.hero__subtitle-brand {
  display: inline;
}

.hero__subtitle-sep {
  opacity: 0.4;
  margin: 0 0.75rem;
}

@media (max-width: 767px) {
  .hero__subtitle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .hero__subtitle-sep {
    display: none;
  }

  .hero__subtitle-name,
  .hero__subtitle-brand {
    display: block;
  }
}

.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  animation: fadeIn 1.2s ease-out 1.5s forwards;
}

.hero__scroll-icon {
  animation: bounce 1s infinite;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.3s;
  cursor: pointer;
  display: block;
}

.hero__scroll-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.hero__scroll-icon:hover {
  color: var(--color-white);
}

/* ===========================================
   Bio
   =========================================== */

.bio {
  padding-top: 1.5rem;
  padding-bottom: 6rem;
  padding-left: 1rem;
  padding-right: 1rem;
  max-width: 64rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.bio__divider {
  width: 1px;
  height: 4rem;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.3), transparent);
  margin: 0 auto 2rem;
}

.bio__text {
  font-size: 1.125rem;
  color: var(--color-gray-200);
  font-weight: 500;
  line-height: 1.75;
  transition: transform 300ms cubic-bezier(0, 0, 0.2, 1);
}

.bio__text>*+* {
  margin-top: 3rem;
}

.bio__paragraph {
  transition: color 500ms;
  cursor: default;
  filter:
    drop-shadow(0 10px 8px rgba(0, 0, 0, 0.04)) drop-shadow(0 4px 3px rgba(0, 0, 0, 0.1));
}

.bio__paragraph:hover {
  color: var(--color-white);
}

/* ===========================================
   Portfolio Grid
   =========================================== */

.portfolio {
  padding-top: 6rem;
  padding-bottom: 6rem;
  padding-left: 1rem;
  padding-right: 1rem;
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  position: relative;
  z-index: 10;
}

.portfolio__header {
  margin-bottom: 4rem;
  text-align: center;
}

.portfolio__title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 0.75rem;
  letter-spacing: -0.025em;
}

.portfolio__divider {
  height: 2px;
  width: 3rem;
  background: rgba(255, 255, 255, 0.2);
  margin: 0 auto 1rem;
  border-radius: 9999px;
}

.portfolio__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.portfolio__card {
  position: relative;
  background: var(--color-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transition: transform 700ms ease-out;
  aspect-ratio: 3 / 5;
  display: flex;
  flex-direction: column;
}

.portfolio__card:hover {
  transform: translateY(-0.5rem);
}

.portfolio__card-link {
  position: absolute;
  inset: 0;
  z-index: 30;
}

.portfolio__card-link:focus-visible {
  outline: 2px solid var(--color-white);
  outline-offset: -2px;
  border-radius: 1rem;
}

.portfolio__card-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.portfolio__card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 700ms, opacity 700ms;
  opacity: 0.5;
}

.portfolio__card:hover .portfolio__card-image {
  transform: scale(1.05);
  opacity: 0.3;
}

.portfolio__card-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--color-dark), rgba(9, 9, 11, 0.6), transparent);
}

.portfolio__card-content {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}

.portfolio__card-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70%;
  height: 40%;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.portfolio__logo-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: invert(1);
}

.portfolio__logo-img--no-invert {
  filter: none;
}

.portfolio__logo-img--large {
  transform: scale(1.6);
}

/* Per-logo tuning to equalise visible artwork height across portfolio cards.
   Base reference: woodmobiel at ~88% canvas fill = scale 1.0. */
.portfolio__logo-img--tight {
  /* 7 Night Events badge is ~92% canvas fill — scale down so its visual
     height matches the other logos exactly. */
  transform: scale(0.95);
}

.portfolio__card-info {
  transform: translateY(1rem);
  transition: transform 500ms;
}

.portfolio__card:hover .portfolio__card-info {
  transform: translateY(0);
}

.portfolio__card-number {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.portfolio__card-line {
  width: 1.5rem;
  height: 1px;
  background: rgba(255, 255, 255, 0.5);
}

.portfolio__card-index {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.portfolio__card-title {
  font-size: clamp(0.85rem, 1.5vw, 1.25rem);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 0.25rem;
  white-space: nowrap;
  filter:
    drop-shadow(0 4px 3px rgba(0, 0, 0, 0.07)) drop-shadow(0 2px 2px rgba(0, 0, 0, 0.06));
}

.portfolio__card-category {
  font-size: 0.7rem;
  color: var(--color-gray-400);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 500ms 100ms;
}

.portfolio__card:hover .portfolio__card-category {
  opacity: 1;
}

.portfolio__card-icon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 20;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  opacity: 0;
  transition: opacity 300ms;
}

.portfolio__card:hover .portfolio__card-icon {
  opacity: 1;
}

.portfolio__card-icon svg {
  width: 0.75rem;
  height: 0.75rem;
  stroke: var(--color-white);
}

/* ===========================================
   Contact
   =========================================== */

.contact {
  padding-top: 6rem;
  padding-bottom: 6rem;
  padding-left: 1rem;
  padding-right: 1rem;
  max-width: 64rem;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  position: relative;
  z-index: 10;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.contact__left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact__header {
  text-align: left;
  margin-bottom: 2rem;
}

.contact__title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

.contact__subtitle {
  color: var(--color-gray-400);
  font-weight: 300;
}

.contact__fields {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contact__info-item {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.contact__info-label {
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--color-gray-600);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.contact__info-link,
.contact__info-value {
  font-size: 0.875rem;
  color: var(--color-gray-400);
  text-decoration: none;
  transition: color 0.3s;
}

.contact__info-link:hover,
.contact__info-link:focus-visible {
  color: var(--color-white);
}

.contact__info-link:focus-visible {
  outline: 2px solid var(--color-white);
  outline-offset: 2px;
  border-radius: 2px;
}

.contact__socials {
  display: flex;
  gap: 1rem;
}

.contact__right {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact__message-group {
  display: flex;
  flex-direction: column;
}

.contact__message-group .form-textarea {
  min-height: 180px;
}

.form-group>*+* {
  margin-top: 0.25rem;
}

.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-left: 0.25rem;
}

.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  color: var(--color-white);
  font-size: 1rem;
  transition: border-color 0.3s, background-color 0.3s;
  outline: none;
}

.form-input:focus {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.form-textarea {
  resize: none;
}

.form-button {
  width: 100%;
  background: var(--color-white);
  color: var(--color-black);
  font-weight: 700;
  padding: 1rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.875rem;
  transition: background-color 0.3s;
}

.form-button:hover {
  background: var(--color-gray-200);
}

.form-button:focus-visible {
  outline: 2px solid var(--color-white);
  outline-offset: 2px;
}

/* ===========================================
   Footer
   =========================================== */

.site-footer {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--color-gray-500);
  padding-top: 4rem;
  padding-bottom: 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: auto;
  position: relative;
  z-index: 20;
}

.footer__inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.footer__brand {
  text-align: center;
}

.footer__name {
  font-family: var(--font-hand);
  color: var(--color-white);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.footer__copyright {
  font-size: 0.75rem;
  color: var(--color-gray-600);
  font-weight: 300;
  line-height: 1.5;
}

.footer__nav {
  display: flex;
  gap: 2rem;
}

.footer__nav a {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  color: var(--color-gray-400);
  text-decoration: none;
  transition: color 0.3s;
}

.footer__nav a:hover,
.footer__nav a:focus-visible {
  color: var(--color-white);
}

.footer__nav a:focus-visible {
  outline: 2px solid var(--color-white);
  outline-offset: 4px;
  border-radius: 2px;
}

.footer__credit {
  position: absolute;
  bottom: 1rem;
  right: 2rem;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: color 0.3s;
}

.footer__credit:hover {
  color: var(--color-white);
}

/* ===========================================
   Scroll Animations
   =========================================== */

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================================
   Keyframe Animations
   =========================================== */

@keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes slideUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(-25%);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }

  50% {
    transform: translateY(0);
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
}

/* ===========================================
   Responsive
   =========================================== */

@media (min-width: 768px) {
  .hero__title {
    font-size: 4.5rem;
  }

  .hero__subtitle {
    font-size: 0.875rem;
  }

  .bio {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .bio__text {
    font-size: 1.5rem;
  }

  .portfolio {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .portfolio__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .contact__form {
    flex-direction: row;
    gap: 4rem;
  }

  .contact__left {
    flex: 1;
    max-width: 20rem;
  }

  .contact__right {
    flex: 1;
  }


  .footer__inner {
    flex-direction: row;
    padding: 0 2rem;
  }

  .footer__brand {
    text-align: left;
  }
}

@media (min-width: 1024px) {
  .hero__title {
    font-size: 8rem;
  }

  .portfolio__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}