/* =============================================
   ASPECT MEDIA — STYLESHEET v1.0
   Brand colours & typography from Brand Manual
   ============================================= */

:root {
  --orange:       #CF6C2E;
  --orange-light: #E07F45;
  --near-black:   #111111;
  --dark-bg:      #0F0F0F;
  --mid-grey:     #777777;
  --light-grey:   #CCCCCC;
  --off-white:    #F0F0F0;
  --divider:      #222222;

  --font: 'DM Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --nav-h: 72px;
  --container: 1200px;
  --gutter: 40px;
}

/* ─── RESET ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--dark-bg);
  color: var(--off-white);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: var(--font); }
input, textarea { font-family: var(--font); }

/* ─── UTILITY ────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.hidden { display: none; }

/* ─── NAV ────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: rgba(15,15,15,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--divider);
  transition: border-color 0.3s;
}
.nav__logo { display: flex; align-items: center; }
.nav__logo svg { height: 40px; width: auto; }
.nav__links {
  display: flex;
  list-style: none;
  gap: 40px;
}
.nav__links a {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 2px;
  color: var(--mid-grey);
  text-transform: lowercase;
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--off-white); }
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 4px;
}
.nav__hamburger span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--off-white);
  transition: all 0.3s;
}

/* ─── HERO ───────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: var(--nav-h) var(--gutter) 0;
  max-width: var(--container);
  margin: 0 auto;
  gap: 80px;
}
.hero__label {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 3px;
  color: var(--orange);
  text-transform: lowercase;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.2s forwards;
}
.hero__headline {
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.5px;
  color: var(--off-white);
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.35s forwards;
}
.hero__headline em {
  font-style: normal;
  color: var(--orange);
}
.hero__sub {
  font-size: 18px;
  font-weight: 300;
  color: var(--mid-grey);
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.5s forwards;
}
.hero__content .btn {
  opacity: 0;
  animation: fadeUp 0.8s ease 0.65s forwards;
}
.hero__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: fadeIn 1.2s ease 0.8s forwards;
}

/* ─── ANIMATED MARK ──────────────────────────── */
.mark-animation {
  position: relative;
  width: 280px;
  height: 280px;
}
.rect {
  position: absolute;
  border: 1.5px solid rgba(240,240,240,0.25);
  border-radius: 3px;
}
.rect--square {
  width: 50%;   /* 1:1 */
  height: 50%;
  top: 25%; left: 25%;
  border-color: rgba(240,240,240,0.35);
  animation: pulseRect 4s ease-in-out infinite;
}
.rect--landscape {
  width: 66%;  /* 16:9 proportional */
  height: 37%;
  top: 31.5%; left: 17%;
  border-color: rgba(240,240,240,0.2);
  animation: pulseRect 4s ease-in-out 0.5s infinite;
}
.rect--portrait {
  width: 25%;  /* 9:16 proportional */
  height: 50%;
  top: 25%; left: 37.5%;
  border-color: rgba(240,240,240,0.2);
  animation: pulseRect 4s ease-in-out 1s infinite;
}

/* Centre overlap glow */
.mark-animation::after {
  content: '';
  position: absolute;
  width: 25%;
  height: 37%;
  top: 31.5%; left: 37.5%;
  background: var(--orange);
  opacity: 0.12;
  border-radius: 2px;
  animation: glowPulse 4s ease-in-out infinite;
}

/* ─── BUTTONS ────────────────────────────────── */
.btn {
  display: inline-block;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: lowercase;
  padding: 14px 32px;
  border-radius: 2px;
  transition: all 0.25s;
}
.btn--primary {
  background: var(--orange);
  color: var(--dark-bg);
}
.btn--primary:hover {
  background: var(--orange-light);
}
.btn--outline {
  border: 1px solid var(--mid-grey);
  color: var(--off-white);
}
.btn--outline:hover {
  border-color: var(--off-white);
}
.btn--full { width: 100%; text-align: center; }

/* ─── SECTION SHARED ─────────────────────────── */
.section-label {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 3px;
  color: var(--orange);
  text-transform: lowercase;
  margin-bottom: 16px;
}
.section-header {
  margin-bottom: 56px;
}
.section-title {
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.3px;
  color: var(--off-white);
}

/* ─── WORK ───────────────────────────────────── */
.work {
  padding: 120px 0;
  border-top: 1px solid var(--divider);
}

/* filter tabs */
.filter-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 48px;
}
.filter-tab {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 2px;
  color: var(--mid-grey);
  padding: 8px 20px;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: all 0.2s;
  text-transform: lowercase;
}
.filter-tab:hover { color: var(--off-white); }
.filter-tab.active {
  color: var(--off-white);
  border-color: var(--divider);
  background: rgba(255,255,255,0.04);
}

/* portfolio grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.portfolio-item {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  cursor: pointer;
  background: #1a1a1a;
}
.portfolio-item__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.3s;
  opacity: 0.85;
}
.portfolio-item:hover .portfolio-item__thumb {
  transform: scale(1.04);
  opacity: 1;
}
.portfolio-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: flex-end;
  padding: 20px;
}
.portfolio-item:hover .portfolio-item__overlay { opacity: 1; }
.portfolio-item__meta { width: 100%; }
.portfolio-item__title {
  font-size: 14px;
  font-weight: 400;
  color: var(--off-white);
  margin-bottom: 2px;
}
.portfolio-item__tag {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 2px;
  color: var(--orange);
  text-transform: lowercase;
}
.portfolio-item__play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(207,108,46,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
}
.portfolio-item:hover .portfolio-item__play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.05);
}
.portfolio-item__play svg { margin-left: 3px; }

/* vimeo thumbnail loading state */
.portfolio-item__thumb--loading {
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
}
.thumb-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a1a1a 0%, #222222 100%);
}

/* ─── MODAL ──────────────────────────────────── */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.modal.is-open { display: flex; }
.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.92);
}
.modal__content {
  position: relative;
  z-index: 1;
  width: 90vw;
  max-width: 960px;
}
.modal__close {
  position: absolute;
  top: -48px; right: 0;
  font-size: 28px;
  color: var(--mid-grey);
  line-height: 1;
  transition: color 0.2s;
}
.modal__close:hover { color: var(--off-white); }
.modal__player {
  position: relative;
  padding-top: 56.25%;
  background: #000;
}
.modal__player iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}
.modal__meta {
  padding: 16px 0 0;
}
.modal__title {
  font-size: 15px;
  font-weight: 400;
  color: var(--off-white);
}
.modal__desc {
  font-size: 13px;
  color: var(--mid-grey);
  margin-top: 4px;
}

/* ─── ABOUT ──────────────────────────────────── */
.about {
  padding: 120px 0;
  border-top: 1px solid var(--divider);
  background: #0a0a0a;
}
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: start;
}
.about__text p {
  font-size: 16px;
  font-weight: 300;
  color: var(--light-grey);
  margin-bottom: 20px;
  line-height: 1.7;
}
.about__sig {
  font-size: 13px !important;
  color: var(--mid-grey) !important;
  margin-top: 32px !important;
}
.about__principles {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.principle {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.principle__icon {
  color: var(--orange);
  font-size: 8px;
  margin-top: 6px;
  flex-shrink: 0;
}
.principle h3 {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 2px;
  color: var(--off-white);
  text-transform: lowercase;
  margin-bottom: 6px;
}
.principle p {
  font-size: 14px;
  font-weight: 300;
  color: var(--mid-grey);
  line-height: 1.6;
}

/* ─── SERVICES ───────────────────────────────── */
.services {
  padding: 120px 0;
  border-top: 1px solid var(--divider);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.service-card {
  padding: 48px 40px;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--divider);
  transition: background 0.3s, border-color 0.3s;
}
.service-card:hover {
  background: rgba(255,255,255,0.045);
  border-color: #333;
}
.service-card__ratio {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 3px;
  color: var(--orange);
  margin-bottom: 20px;
}
.service-card h3 {
  font-size: 20px;
  font-weight: 400;
  color: var(--off-white);
  margin-bottom: 16px;
  line-height: 1.3;
}
.service-card p {
  font-size: 14px;
  font-weight: 300;
  color: var(--mid-grey);
  line-height: 1.7;
}

/* ─── CONTACT ────────────────────────────────── */
.contact {
  padding: 120px 0;
  border-top: 1px solid var(--divider);
  background: #0a0a0a;
}
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: start;
}
.contact__text p {
  font-size: 16px;
  font-weight: 300;
  color: var(--light-grey);
  margin-top: 24px;
  line-height: 1.7;
}
.contact__details {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact__details a {
  font-size: 14px;
  font-weight: 300;
  color: var(--mid-grey);
  transition: color 0.2s;
}
.contact__details a:hover { color: var(--orange); }

/* form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group label {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 2px;
  color: var(--mid-grey);
  text-transform: lowercase;
}
.form-group input,
.form-group textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--divider);
  color: var(--off-white);
  font-size: 15px;
  font-weight: 300;
  padding: 14px 16px;
  border-radius: 2px;
  transition: border-color 0.2s;
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #444;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--orange);
}

/* ─── FOOTER ─────────────────────────────────── */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--divider);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer__brand {
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 3px;
  color: var(--mid-grey);
}
.footer__copy {
  font-size: 12px;
  font-weight: 300;
  color: #444;
}
.footer__copy a {
  color: #555;
  transition: color 0.2s;
}
.footer__copy a:hover { color: var(--mid-grey); }

/* ─── ANIMATIONS ─────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulseRect {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.12; }
  50%       { opacity: 0.25; }
}

/* scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── RESPONSIVE ─────────────────────────────── */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: calc(var(--nav-h) + 40px);
    min-height: auto;
    padding-bottom: 80px;
    gap: 60px;
  }
  .hero__mark { display: none; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .about__grid,
  .contact__grid { grid-template-columns: 1fr; gap: 60px; }
  .services-grid { grid-template-columns: 1fr; gap: 2px; }
  .about__principles { margin-top: 0; }
}
@media (max-width: 600px) {
  :root { --gutter: 20px; }
  .nav { padding: 0 20px; }
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; gap: 12px; text-align: center; }
  .filter-tabs { flex-wrap: wrap; }
}
