/* ==========================================================================
   IN THE WILD — Creative Production Studio
   Design system: black/white, huge type, video-first, minimal motion
   ========================================================================== */

@import url('https://api.fontshare.com/v2/css?f[]=switzer@400,500,600,700,900&display=swap');

:root {
  --black: #0a0a0a;
  --white: #f4f3ee;
  --gray-500: #8c8c86;
  --gray-700: #3a3a37;
  --line: rgba(244, 243, 238, 0.14);
  --line-strong: rgba(244, 243, 238, 0.28);

  --font: 'Switzer', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;

  --fs-hero: clamp(3.2rem, 11vw, 10rem);
  --fs-1: clamp(2.4rem, 6.2vw, 5.6rem);
  --fs-2: clamp(1.6rem, 3.4vw, 2.8rem);
  --fs-3: clamp(1.1rem, 1.8vw, 1.5rem);
  --fs-body: clamp(0.95rem, 1.05vw, 1.05rem);
  --fs-small: 0.8rem;

  --pad-x: clamp(1.25rem, 4vw, 3rem);
  --gap: clamp(1rem, 2.5vw, 2rem);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.9s;

  --header-h: clamp(64px, 8vw, 88px);
}

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

html {
  background: var(--black);
  scroll-behavior: smooth;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.15;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  opacity: 0;
}

body.is-ready {
  opacity: 1;
  transition: opacity 0.6s var(--ease);
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

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

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* ---------- layout helpers ---------- */

.container {
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.eyebrow {
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gray-500);
  font-weight: 500;
}

.section {
  padding-top: clamp(4rem, 10vw, 8rem);
  padding-bottom: clamp(4rem, 10vw, 8rem);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--gap);
  margin-bottom: clamp(2rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
  padding-bottom: clamp(1rem, 2vw, 1.5rem);
}

.section-head h2 {
  font-size: var(--fs-1);
  font-weight: 500;
  letter-spacing: -0.02em;
}

/* ---------- reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1.is-visible { transition-delay: 0.08s; }
.reveal-delay-2.is-visible { transition-delay: 0.16s; }
.reveal-delay-3.is-visible { transition-delay: 0.24s; }

/* ---------- header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 var(--pad-x);
  mix-blend-mode: difference;
}

.menu-toggle {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
  z-index: 210;
}

.menu-toggle .bars {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 22px;
}

.menu-toggle .bars span {
  display: block;
  height: 1px;
  background: var(--white);
  transition: transform 0.5s var(--ease), opacity 0.3s var(--ease);
}

body.nav-open .menu-toggle .bars span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
body.nav-open .menu-toggle .bars span:nth-child(2) {
  opacity: 0;
}
body.nav-open .menu-toggle .bars span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- nav overlay ---------- */

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: var(--black);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--pad-x);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.8s var(--ease);
}

body.nav-open .nav-overlay {
  clip-path: inset(0 0 0 0);
}

.nav-overlay-list {
  display: flex;
  flex-direction: column;
  gap: clamp(0.4rem, 1.2vw, 0.8rem);
}

.nav-overlay-list li {
  overflow: hidden;
}

.nav-overlay-list a {
  display: block;
  font-size: clamp(2.6rem, 8vw, 6rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--gray-500);
  transform: translateY(110%);
  transition: transform 0.7s var(--ease), color 0.3s var(--ease);
}

body.nav-open .nav-overlay-list a {
  transform: translateY(0);
}

.nav-overlay-list a:hover,
.nav-overlay-list a.is-current {
  color: var(--white);
}

body.nav-open .nav-overlay-list li:nth-child(1) a { transition-delay: 0.08s; }
body.nav-open .nav-overlay-list li:nth-child(2) a { transition-delay: 0.14s; }
body.nav-open .nav-overlay-list li:nth-child(3) a { transition-delay: 0.2s; }
body.nav-open .nav-overlay-list li:nth-child(4) a { transition-delay: 0.26s; }
body.nav-open .nav-overlay-list li:nth-child(5) a { transition-delay: 0.32s; }

.nav-overlay-foot {
  position: absolute;
  bottom: clamp(1.5rem, 4vw, 3rem);
  left: var(--pad-x);
  right: var(--pad-x);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: var(--fs-small);
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0;
  transition: opacity 0.6s var(--ease) 0.3s;
}

@media (min-width: 700px) {
  .nav-overlay-foot {
    flex-direction: row;
    justify-content: space-between;
  }
}

body.nav-open .nav-overlay-foot {
  opacity: 1;
}

/* ---------- hero ---------- */

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: calc(var(--header-h) + 2rem);
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
  position: relative;
}

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

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-title,
.hero-scroll {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: var(--fs-hero);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 0.95;
}

.hero-logo {
  height: clamp(2.3rem, 7.9vw, 7.2rem);
  width: auto;
  display: block;
}

.hero-scroll {
  position: absolute;
  right: var(--pad-x);
  bottom: clamp(2rem, 5vw, 3.5rem);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gray-500);
}

.hero-scroll .line {
  width: 1px;
  height: 36px;
  background: var(--line-strong);
  position: relative;
  overflow: hidden;
}

.hero-scroll .line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--white);
  animation: scrollLine 2.2s var(--ease) infinite;
}

@keyframes scrollLine {
  0% { top: -100%; }
  60% { top: 100%; }
  100% { top: 100%; }
}

/* ---------- media placeholder ---------- */

.media {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #232320;
  border: 1px solid var(--line);
}

.media-placeholder {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(244,243,238,0.05) 0px,
      rgba(244,243,238,0.05) 2px,
      transparent 2px,
      transparent 14px
    ),
    radial-gradient(circle at 22% 28%, rgba(244,243,238,0.22), transparent 55%),
    radial-gradient(circle at 82% 74%, rgba(244,243,238,0.16), transparent 50%),
    linear-gradient(135deg, #3a3a35 0%, #171715 62%);
  background-size: auto, 200% 200%, 220% 220%, 100% 100%;
  animation: driftGradient 14s ease-in-out infinite;
}

@keyframes driftGradient {
  0% { background-position: 0 0, 0% 0%, 100% 100%, 0 0; }
  50% { background-position: 0 0, 100% 60%, 0% 40%, 0 0; }
  100% { background-position: 0 0, 0% 0%, 100% 100%, 0 0; }
}

.media-label {
  position: absolute;
  left: 1.25rem;
  bottom: 1.1rem;
  right: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(244,243,238,0.75);
  z-index: 2;
}

.media-label .ph-tag {
  border: 1px solid rgba(244,243,238,0.45);
  background: rgba(10,10,10,0.5);
  padding: 0.25rem 0.6rem;
  border-radius: 100px;
  font-size: 0.68rem;
}

.media::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,0.6) 100%);
  z-index: 1;
  pointer-events: none;
}

.media::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(244,243,238,0.08);
  z-index: 2;
  pointer-events: none;
}

/* ---------- featured work grid (home) ---------- */

.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
}

.work-item {
  grid-column: span 12;
  cursor: pointer;
}

.work-item .media {
  aspect-ratio: 16 / 10;
  border-radius: 2px;
}

.work-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.campaign-thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.7rem;
}

.campaign-thumb {
  width: 40px;
  aspect-ratio: 9 / 16;
  background-color: var(--gray-700);
  background-size: cover;
  background-position: center;
  border: 1px solid var(--line);
  border-radius: 2px;
  opacity: 0.45;
  cursor: pointer;
  transition: opacity 0.3s var(--ease), border-color 0.3s var(--ease);
}

.campaign-thumb:hover {
  opacity: 0.75;
}

.campaign-thumb.is-active {
  opacity: 1;
  border-color: var(--white);
}

.work-item-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 1rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
  gap: var(--gap);
}

.work-item-heading {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1 1 auto;
  min-width: 0;
}

.work-item-title {
  font-size: var(--fs-2);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.work-item-subtitle {
  font-size: var(--fs-body);
  color: var(--gray-500);
  font-weight: 400;
}

.work-item-tag {
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-500);
  text-align: right;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 45%;
}

@media (min-width: 860px) {
  .work-item:nth-child(1) { grid-column: span 12; }
  .work-item:nth-child(2) { grid-column: span 6; }
  .work-item:nth-child(3) { grid-column: span 6; }
  .work-item:nth-child(4) { grid-column: span 7; }
  .work-item:nth-child(5) { grid-column: span 5; }
  .work-item:nth-child(6) { grid-column: span 5; }
  .work-item:nth-child(7) { grid-column: span 7; }
  .work-item:nth-child(n+8) { grid-column: span 6; }
}

.view-all {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  display: flex;
  justify-content: center;
}

.btn-line {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--fs-3);
  font-weight: 500;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--line-strong);
  transition: border-color 0.4s var(--ease), gap 0.4s var(--ease);
}

.btn-line:hover {
  border-color: var(--white);
  gap: 1rem;
}

/* ---------- capabilities ---------- */

.cap-list {
  display: flex;
  flex-direction: column;
}

.cap-row {
  display: grid;
  grid-template-columns: 2.5rem 1fr auto;
  align-items: center;
  gap: var(--gap);
  padding: clamp(1.1rem, 2.5vw, 1.6rem) 0;
  border-bottom: 1px solid var(--line);
  transition: opacity 0.4s var(--ease);
}

.cap-list:hover .cap-row {
  opacity: 0.4;
}

.cap-list .cap-row:hover {
  opacity: 1;
}

.cap-index {
  font-size: var(--fs-small);
  color: var(--gray-500);
}

.cap-name {
  font-size: clamp(1.6rem, 4.4vw, 3.4rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.cap-desc {
  font-size: var(--fs-body);
  color: var(--gray-500);
  max-width: 22ch;
  text-align: right;
  display: none;
}

@media (min-width: 700px) {
  .cap-desc { display: block; }
}

/* ---------- about teaser / statement ---------- */

.statement {
  font-size: var(--fs-1);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  max-width: 20ch;
}

.statement .muted {
  color: var(--gray-500);
}

.teaser-row {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 860px) {
  .teaser-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}

/* ---------- closer / contact cta ---------- */

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

.closer-title {
  font-size: clamp(2.2rem, 7vw, 5.4rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.02;
}

.closer-link {
  display: inline-block;
  width: fit-content;
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 0.2rem;
  transition: border-color 0.4s var(--ease), padding-left 0.4s var(--ease);
}

.closer-link:hover {
  border-color: var(--white);
  padding-left: 0.4rem;
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: clamp(2rem, 5vw, 3rem) var(--pad-x);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-500);
}

@media (min-width: 860px) {
  .site-footer {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

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

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-social {
  display: flex;
  gap: 1.5rem;
}

/* ---------- work index page ---------- */

.page-head {
  padding-top: calc(var(--header-h) + clamp(2rem, 6vw, 4rem));
  padding-bottom: clamp(2rem, 5vw, 3rem);
}

.page-head h1 {
  font-size: var(--fs-1);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
}

.filter-btn {
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid var(--line-strong);
  padding: 0.5rem 1rem;
  border-radius: 100px;
  color: var(--gray-500);
  transition: all 0.3s var(--ease);
}

.filter-btn:hover {
  color: var(--white);
  border-color: var(--white);
}

.filter-btn.is-active {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

.work-item[hidden] {
  display: none;
}

/* ---------- about page ---------- */

.about-hero p {
  font-size: var(--fs-1);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.08;
  max-width: 18ch;
}

.about-hero p .muted {
  color: var(--gray-500);
}

.about-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-top: clamp(3rem, 8vw, 6rem);
}

@media (min-width: 860px) {
  .about-info { grid-template-columns: repeat(3, 1fr); }
}

.about-info h3 {
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-500);
  margin-bottom: 1rem;
}

.about-info p,
.about-info li {
  font-size: var(--fs-body);
  line-height: 1.5;
}

.about-info li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
}

/* ---------- contact page ---------- */

.contact-hero {
  min-height: 90svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(2rem, 6vw, 4rem);
}

.contact-email {
  font-size: clamp(1.4rem, 4vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  word-break: break-word;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 0.4rem;
  display: inline-block;
  width: fit-content;
  transition: opacity 0.3s var(--ease);
}

.contact-email:hover {
  opacity: 0.6;
}

@media (max-width: 480px) {
  .contact-email {
    font-size: clamp(1.3rem, 6vw, 1.6rem);
  }
}

.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(2rem, 6vw, 4rem);
}

.contact-details h3 {
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-500);
  margin-bottom: 0.8rem;
}

.contact-details p, .contact-details a {
  font-size: var(--fs-body);
}

.contact-details a { display: block; }
.contact-details a:hover { color: var(--gray-500); }

/* ---------- custom cursor (desktop only) ---------- */

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 64px;
  height: 64px;
  margin-left: -32px;
  margin-top: -32px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  pointer-events: none;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), background 0.3s var(--ease);
  mix-blend-mode: difference;
}

.cursor.is-active {
  opacity: 1;
  transform: scale(1);
}

.cursor.is-hover {
  background: var(--white);
  color: var(--black);
  transform: scale(1.4);
}

@media (hover: none) {
  .cursor { display: none; }
}

/* ---------- misc ---------- */

.marker-count {
  font-variant-numeric: tabular-nums;
}
