/* ========================================
   Fonts
   ======================================== */

@font-face {
  font-family: 'Bebas Neue';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/bebas-neue-latin-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/outfit-latin-variable.woff2') format('woff2');
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/outfit-latin-variable.woff2') format('woff2');
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/outfit-latin-variable.woff2') format('woff2');
}

/* ========================================
   Foundation
   ======================================== */

:root {
  --black: #050505;
  --dark: #0c0c0c;
  --line: rgba(255, 255, 255, 0.08);
  --muted: #555;
  --body: #999;
  --light: #ccc;
  --white: #efefef;
  --display: 'Bebas Neue', sans-serif;
  --sans: 'Outfit', sans-serif;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
}

body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.78;
  color: var(--body);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s var(--ease), opacity 0.3s var(--ease);
}

a:hover {
  color: var(--white);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ========================================
   Grain texture
   ======================================== */

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  z-index: 2;
}

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

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--black);
  display: flex;
  flex-direction: column;
}

.hero-inner {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 72px;
  padding: 48px 48px 0;
  position: relative;
  z-index: 1;
}

.hero-portrait {
  flex-shrink: 0;
  height: calc(100vh - 80px);
  height: calc(100dvh - 80px);
}

.hero-portrait img {
  height: 100%;
  width: auto;
  object-fit: contain;
  filter: brightness(0.95) contrast(1.04);
}

.hero-text {
  max-width: 380px;
  align-self: center;
}

.hero-name {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(4rem, 7.5vw, 6.5rem);
  line-height: 1.05;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 14px;
}

.hero-subtitle-row {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 48px;
}

.hero-title {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--light);
}

.hero-links {
  display: flex;
  gap: 16px;
}

.btn {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--light);
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 11px 28px;
  cursor: pointer;
  transition: all 0.35s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn:hover {
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
  opacity: 1;
}

.btn svg {
  opacity: 0.5;
}

.hero-social {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-social a {
  color: var(--light);
  display: flex;
  align-items: center;
  transition: color 0.3s var(--ease);
}

.hero-social a svg {
  height: 17px;
  width: auto;
}

.hero-social a:hover {
  color: var(--white);
}

.hero-divider {
  height: 1px;
  background: var(--line);
  margin: 0 48px;
  position: relative;
  z-index: 1;
}

/* ========================================
   Credits
   ======================================== */

.credits {
  padding: 88px 0 96px;
  background: var(--black);
  scroll-margin-top: 40px;
}

.credits-grid {
  display: grid;
  gap: 44px;
}

.credit-block h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 16px;
}

.credit-list {
  display: grid;
  gap: 4px;
}

.credit-list.two-col {
  grid-template-columns: 1fr 1fr;
  gap: 4px 48px;
}

.credit-list li {
  font-size: 17px;
  color: var(--body);
  line-height: 1.7;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.credit-list li::after {
  content: "";
  flex: 1;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.12);
  min-width: 20px;
  position: relative;
  top: -4px;
  order: 2;
}

.credit-list li span {
  color: var(--light);
  font-weight: 400;
  white-space: nowrap;
  order: 3;
}

.credit-list li {
  transition: color 0.25s var(--ease);
}

.credit-list li:hover {
  color: var(--white);
}

.credit-list li:hover span {
  color: var(--white);
}

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

.contact {
  padding: 0 0 96px;
  background: var(--black);
}

.contact-divider {
  height: 1px;
  background: var(--line);
  max-width: 860px;
  margin: 0 auto 88px;
}

.contact-inner {
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  padding: 48px 40px;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}

.contact-inner:hover {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.1);
}

.contact-inner:hover .agency-name {
  color: #fff;
}

.contact-inner:hover .contact-list li {
  color: var(--light);
}

.contact-inner:hover .contact-list li svg {
  opacity: 0.45;
}

.section-label {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}

.agency-name {
  font-family: var(--display);
  font-weight: 400;
  font-size: 34px;
  letter-spacing: 0.05em;
  color: var(--white);
  margin-bottom: 20px;
  transition: color 0.4s var(--ease);
}

.agency-line {
  width: 80px;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  margin: 0 auto 28px;
}

.contact-list {
  display: grid;
  gap: 14px;
  margin-bottom: 0;
}

.contact-list li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 17px;
  color: var(--body);
  transition: color 0.4s var(--ease);
}

.contact-list li svg {
  flex-shrink: 0;
  opacity: 0.3;
  transition: opacity 0.4s var(--ease);
}

.contact-list li a {
  color: var(--body);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 1px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.contact-list li a:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
}

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

.footer {
  background: var(--dark);
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-social a {
  color: var(--light);
  display: flex;
  align-items: center;
  transition: color 0.3s var(--ease);
}

.footer-social a svg {
  height: 18px;
  width: auto;
}

.footer-social a:hover {
  color: var(--white);
}

.footer-copy {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.03em;
}

/* ========================================
   Video Modal
   ======================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 920px;
  transform: scale(0.96);
  transition: transform 0.4s var(--ease);
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: -48px;
  right: 0;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.3s var(--ease);
  padding: 4px;
}

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

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 2px;
  overflow: hidden;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ========================================
   Fade-in
   ======================================== */

.hero-portrait,
.hero-text {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.7s var(--ease) forwards;
}

.hero-portrait { animation-delay: 0.1s; }
.hero-text { animation-delay: 0.3s; }

.credit-block,
.contact-inner {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.credit-block.visible,
.contact-inner.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@media (max-width: 900px) {
  .hero-inner {
    flex-direction: column-reverse;
    align-items: center;
    gap: 36px;
    padding: 40px 32px 32px;
    text-align: center;
  }

  .hero-portrait {
    height: 50vh;
    height: 50dvh;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-name {
    font-size: 5rem;
  }

  .hero-name br {
    display: none;
  }

  .hero-subtitle-row {
    justify-content: center;
    margin-bottom: 32px;
  }

  .hero-links {
    justify-content: center;
  }

  .hero-divider {
    margin: 0 32px;
  }

  .credit-list.two-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 580px) {
  .hero-inner {
    flex-direction: column-reverse;
    padding: 32px 24px 24px;
    gap: 24px;
  }

  .hero-portrait {
    height: 44vh;
    height: 44dvh;
  }

  .hero-name {
    font-size: 5rem;
  }

  .hero-links {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .btn {
    width: 180px;
    justify-content: center;
  }

  .hero-divider {
    margin: 0 24px;
  }

  .container {
    padding: 0 24px;
  }

  .credits {
    padding: 64px 0 72px;
  }

  .contact-divider {
    margin-bottom: 64px;
    margin-left: 24px;
    margin-right: 24px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 12px;
  }
}
