/* ============================================
   BB KOP — SNAGA MAŠINE. PRECIZNOST RADA.
   ============================================ */

:root {
  --black: #0A0A0A;
  --near-black: #111111;
  --red: #DE372F;
  --light: #F2F2EE;
  --gray: #7A7A7A;
  --gray-line: rgba(242, 242, 238, 0.14);
  --hair: rgba(10, 10, 10, 0.12);

  --font-display: 'Bebas Neue', 'Oswald', sans-serif;
  --font-body: 'Manrope', 'Inter', sans-serif;

  --ease: cubic-bezier(.16, .84, .44, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);

  --container: 1360px;
  --edge: clamp(24px, 5vw, 72px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--light);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

input,
select,
textarea {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--red);
  color: var(--black);
}

.line {
  display: block;
}

/* focus visibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}

/* ============ GRAIN ============ */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============ CUSTOM CURSOR ============ */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .25s var(--ease-soft), height .25s var(--ease-soft), background .25s var(--ease-soft), border-color .25s var(--ease-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
}

.cursor-label {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--light);
  opacity: 0;
  transition: opacity .2s var(--ease-soft);
  white-space: nowrap;
}

.cursor.is-active {
  width: 74px;
  height: 74px;
  background: var(--red);
}

.cursor.is-active .cursor-label {
  opacity: 1;
}

@media (hover:none),
(pointer:coarse) {
  .cursor {
    display: none;
  }
}

/* ============ PRELOADER ============ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .6s var(--ease), visibility .6s var(--ease);
}

.preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-inner {
  text-align: center;
}

.preloader-logo {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 4rem);
  letter-spacing: .02em;
  color: var(--black);
  line-height: 1;
  opacity: 0;
  transform: translateY(14px);
  animation: pl-in .5s var(--ease) .1s forwards;
}

.preloader-logo span {
  color: var(--red);
}

.preloader-line {
  margin-top: 14px;
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--gray);
  opacity: 0;
  transform: translateY(10px);
  animation: pl-in .5s var(--ease) .25s forwards;
}

.preloader-bar {
  margin: 22px auto 0;
  width: 160px;
  height: 1px;
  background: var(--hair);
  overflow: hidden;
  opacity: 0;
  animation: pl-in .3s var(--ease) .35s forwards;
}

.preloader-bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--red);
  animation: pl-bar 1s var(--ease) .4s forwards;
}

@keyframes pl-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pl-bar {
  to {
    width: 100%;
  }
}

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  padding: 28px var(--edge);
  color: var(--light);
  transition: padding .4s var(--ease-soft), background .4s var(--ease-soft), backdrop-filter .4s var(--ease-soft), border-color .4s var(--ease-soft);
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  padding: 16px var(--edge);
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--gray-line);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: .02em;
  line-height: 1;
}

.nav-logo span {
  color: var(--red);
}

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-links a {
  position: relative;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--light);
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--red);
  transition: right .3s var(--ease-soft);
}

.nav-links a:hover::after {
  right: 0;
}

.nav-cta {
  border: 1px solid var(--gray-line);
  padding: 11px 22px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  transition: background .3s var(--ease-soft), color .3s var(--ease-soft), border-color .3s var(--ease-soft);
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--red);
  color: var(--light);
  border-color: var(--red);
}

.nav-burger {
  display: none;
  width: 32px;
  height: 20px;
  position: relative;
  z-index: 600;
}

.nav-burger span {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--light);
  transition: transform .35s var(--ease-soft), opacity .35s var(--ease-soft), top .35s var(--ease-soft);
}

.nav-burger span:first-child {
  top: 0;
}

.nav-burger span:last-child {
  top: 100%;
  transform: translateY(-1px);
}

.nav-burger.is-open span:first-child {
  top: 50%;
  transform: rotate(45deg);
}

.nav-burger.is-open span:last-child {
  top: 50%;
  transform: translateY(0) rotate(-45deg);
}

/* ============ MOBILE MENU ============ */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 450;
  background: var(--black);
  color: var(--light);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--edge);
  transform: translateY(-100%);
  transition: transform .55s var(--ease);
  visibility: hidden;
}

.mobile-menu.is-open {
  transform: translateY(0);
  visibility: visible;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-menu-links a {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 13vw, 4.4rem);
  letter-spacing: .01em;
  padding: 10px 0;
  color: var(--light);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
  border-bottom: 1px solid var(--gray-line);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.mobile-menu-links a::after {
  content: attr(data-index);
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--red);
  letter-spacing: .1em;
}

.mobile-menu.is-open .mobile-menu-links a {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.is-open .mobile-menu-links a:nth-child(1) {
  transition-delay: .12s;
}

.mobile-menu.is-open .mobile-menu-links a:nth-child(2) {
  transition-delay: .19s;
}

.mobile-menu.is-open .mobile-menu-links a:nth-child(3) {
  transition-delay: .26s;
}

.mobile-menu.is-open .mobile-menu-links a:nth-child(4) {
  transition-delay: .33s;
}

.mobile-menu-cta {
  margin-top: 40px;
  display: inline-block;
  background: var(--red);
  color: var(--light);
  font-weight: 800;
  letter-spacing: .06em;
  font-size: 14px;
  padding: 18px 26px;
  width: fit-content;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s var(--ease) .4s, transform .5s var(--ease) .4s;
}

.mobile-menu.is-open .mobile-menu-cta {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu-foot {
  position: absolute;
  bottom: 28px;
  left: var(--edge);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--gray);
}

/* ============ SECTION SHELL ============ */
.section-head {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--edge);
}

.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--red);
  margin: 0 0 18px;
}

.section-heading {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(2.6rem, 6.2vw, 5.2rem);
  line-height: .98;
  letter-spacing: .005em;
  margin: 0 0 20px;
  color: var(--black);
}

.section-copy {
  max-width: 520px;
  color: var(--gray);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0;
}

/* reveal helpers (JS toggles .is-visible) */
.reveal-up {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}

.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1s var(--ease), transform 1.1s var(--ease);
}

.reveal-scale.is-visible {
  opacity: 1;
  transform: scale(1);
}

.reveal-word {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.reveal-word.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  padding: 18px 30px;
  white-space: nowrap;
  transition: transform .3s var(--ease-soft), background .3s var(--ease-soft), color .3s var(--ease-soft), border-color .3s var(--ease-soft);
}

.btn--solid {
  background: var(--red);
  color: var(--light);
}

.btn--solid:hover {
  transform: translateY(-3px);
}

.btn--ghost {
  border: 1px solid var(--gray-line);
  color: var(--light);
}

.btn--ghost:hover {
  border-color: var(--red);
  color: var(--red);
  transform: translateY(-3px);
}

.ig .btn--ghost {
  border-color: var(--hair);
  color: var(--black);
}

.ig .btn--ghost:hover {
  border-color: var(--red);
  color: var(--red);
}

.arrow-down {
  display: inline-block;
  animation: bob 1.8s ease-in-out infinite;
}

@keyframes bob {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(5px);
  }
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 0 var(--edge) 100px;
  color: var(--light);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: hero-zoom 16s ease-out forwards;
}

@keyframes hero-zoom {
  from {
    transform: scale(1.12);
  }

  to {
    transform: scale(1);
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 10, 10, .55) 0%, rgba(10, 10, 10, .35) 32%, rgba(10, 10, 10, .75) 78%, rgba(10, 10, 10, .94) 100%);
}

.hero-tag {
  position: absolute;
  z-index: 2;
  font-size: 11px;
  letter-spacing: .12em;
  line-height: 1.5;
  color: var(--light);
  opacity: .85;
}

.hero-tag--tl {
  top: 120px;
  left: var(--edge);
}

.hero-tag--bl {
  bottom: 220px;
  left: var(--edge);
}

.hero-tag--br {
  bottom: 220px;
  right: var(--edge);
  text-align: right;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1000px;
}

.hero-yline {
  width: 1px;
  height: 44px;
  background: var(--red);
  margin-bottom: 22px;
}

.hero-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--red);
  margin: 0 0 20px;
}

.hero-heading {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(3.4rem, 9vw, 9.5rem);
  line-height: .94;
  margin: 0 0 26px;
  letter-spacing: .002em;
}

.hero-heading .line {
  overflow: hidden;
}

.hero-heading .line span,
.hero-heading .line {}

.hero-heading .line {
  transform: translateY(110%);
  opacity: 0;
  animation: line-up 1s var(--ease) forwards;
}

.hero-heading .line:nth-child(1) {
  animation-delay: .55s;
}

.hero-heading .line:nth-child(2) {
  animation-delay: .72s;
}

.line--accent {
  color: var(--red);
}

@keyframes line-up {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--light);
  opacity: .88;
  max-width: 520px;
  margin: 0 0 38px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.hero-scroll span {
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--gray);
}

.hero-scroll-line {
  width: 1px;
  height: 46px;
  background: var(--gray-line);
  position: relative;
  overflow: hidden;
}

.hero-scroll-line i {
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--red);
  animation: scroll-drop 2.2s ease-in-out infinite;
}

@keyframes scroll-drop {
  0% {
    top: -100%;
  }

  50% {
    top: 0%;
  }

  100% {
    top: 100%;
  }
}

/* ============ TRUST STRIP ============ */
.strip {
  background: var(--light);
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  padding: 26px 0 22px;
  overflow: hidden;
}

.strip-track {
  display: flex;
  justify-content: center;
}

.strip-group {
  display: flex;
  align-items: center;
  gap: 28px;
}

.strip-big {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  letter-spacing: .01em;
  color: var(--black);
  white-space: nowrap;
}

.strip-dot {
  color: var(--red);
  font-size: 1.4rem;
}

.strip-sub {
  text-align: center;
  margin: 14px 0 0;
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--gray);
}

/* ============ SERVICES ============ */
.services {
  padding: 150px 0 120px;
}

.service-list {
  max-width: var(--container);
  margin: 70px auto 0;
  padding: 0 var(--edge);
}

.service-row {
  position: relative;
  display: grid;
  grid-template-columns: 70px 1fr 340px 40px;
  align-items: center;
  gap: 24px;
  padding: 34px 0;
  border-top: 1px solid var(--hair);
  cursor: pointer;
  transition: padding-left .35s var(--ease-soft);
}

.service-list .service-row:last-child {
  border-bottom: 1px solid var(--hair);
}

.service-num {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gray);
}

.service-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  letter-spacing: .01em;
  color: var(--black);
  transition: color .3s var(--ease-soft), transform .35s var(--ease-soft);
}

.service-desc {
  font-size: .92rem;
  color: var(--gray);
  line-height: 1.55;
}

.service-arrow {
  font-size: 1.3rem;
  color: var(--gray);
  transition: transform .35s var(--ease-soft), color .35s var(--ease-soft);
  justify-self: end;
}

.service-line {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 1px;
  width: 0;
  background: var(--red);
  transition: width .45s var(--ease-soft);
}

.service-row:hover,
.service-row:focus-visible {
  padding-left: 16px;
}

.service-row:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: -2px;
}

.service-row:hover .service-title,
.service-row:focus-visible .service-title {
  color: var(--red);
  transform: translateX(6px);
}

.service-row:hover .service-arrow,
.service-row:focus-visible .service-arrow {
  color: var(--red);
  transform: translate(6px, -6px);
}

.service-row:hover .service-line,
.service-row:focus-visible .service-line {
  width: 100%;
}

/* ============ ABOUT ============ */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  min-height: 88vh;
}

.about-media {
  position: relative;
  overflow: hidden;
}

.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 420px;
  max-height: 100vh;
}

.about-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 90px var(--edge);
}

.about-heading {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(2.1rem, 3.6vw, 3.4rem);
  line-height: 1.04;
  margin: 0 0 22px;
}

.about-copy {
  color: var(--gray);
  font-size: 1.05rem;
  max-width: 440px;
  line-height: 1.65;
  margin: 0 0 44px;
}

.about-info {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--hair);
  max-width: 440px;
}

.about-info-row {
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--hair);
}

.about-info-label {
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--gray);
}

.about-info-value {
  font-size: .95rem;
  font-weight: 600;
  color: var(--black);
  text-align: right;
}

/* ============ WORKS / PORTFOLIO ============ */
.works {
  padding: 150px 0 60px;
}

.works-grid {
  max-width: var(--container);
  margin: 70px auto 0;
  padding: 0 var(--edge);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 14vw;
  gap: 14px;
}

.work-item {
  position: relative;
  overflow: hidden;
  display: block;
  width: 100%;
  height: 100%;
  text-align: left;
}

.work-item--a {
  grid-column: 1 / 4;
  grid-row: 1 / 3;
}

.work-item--b {
  grid-column: 4 / 7;
  grid-row: 1 / 2;
}

.work-item--c {
  grid-column: 4 / 6;
  grid-row: 2 / 3;
}

.work-item--d {
  grid-column: 6 / 7;
  grid-row: 2 / 3;
}

.work-item--e {
  grid-column: 1 / 3;
  grid-row: 3 / 4;
}

.work-item--f {
  grid-column: 3 / 7;
  grid-row: 3 / 4;
}

.work-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease-soft), filter .5s var(--ease-soft);
}

.work-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0) 40%, rgba(10, 10, 10, .85) 100%);
  opacity: 0;
  transition: opacity .4s var(--ease-soft);
}

.work-num {
  font-family: var(--font-display);
  color: var(--red);
  font-size: 1.3rem;
}

.work-title {
  color: var(--light);
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.8vw, 1.6rem);
  letter-spacing: .01em;
  margin-top: 2px;
}

.work-arrow {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 1.4rem;
  color: var(--red);
  transform: translate(-8px, 8px);
  opacity: 0;
  transition: transform .4s var(--ease-soft), opacity .4s var(--ease-soft);
}

.work-item:hover img {
  transform: scale(1.08);
}

.work-item:hover .work-overlay {
  opacity: 1;
}

.work-item:hover .work-arrow {
  transform: translate(0, 0);
  opacity: 1;
}

/* ============ LIGHTBOX ============ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 800;
  background: rgba(10, 10, 10, .97);
  color: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px var(--edge);
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s var(--ease-soft), visibility .4s var(--ease-soft);
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-frame {
  max-width: 1100px;
  width: 100%;
  text-align: center;
}

.lightbox-frame img {
  max-height: 72vh;
  width: auto;
  margin: 0 auto;
  object-fit: contain;
}

.lightbox-meta {
  margin-top: 22px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 16px;
}

#lightbox-num {
  font-family: var(--font-display);
  color: var(--red);
  font-size: 1.4rem;
}

#lightbox-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: .02em;
}

.lightbox-close {
  position: absolute;
  top: 32px;
  right: var(--edge);
  font-size: 2.2rem;
  line-height: 1;
  color: var(--light);
  transition: transform .3s var(--ease-soft), color .3s var(--ease-soft);
}

.lightbox-close:hover {
  color: var(--red);
  transform: rotate(90deg);
}

.lightbox-nav {
  font-size: 1.8rem;
  color: var(--light);
  padding: 14px;
  transition: color .3s var(--ease-soft), transform .3s var(--ease-soft);
}

.lightbox-nav:hover {
  color: var(--red);
}

.lightbox-prev:hover {
  transform: translateX(-4px);
}

.lightbox-next:hover {
  transform: translateX(4px);
}

/* ============ CINEMATIC ============ */
.cinematic {
  position: relative;
  height: 100svh;
  overflow: hidden;
}

.cinematic-media {
  position: absolute;
  inset: -8% 0;
  will-change: transform;
}

.cinematic-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cinematic-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 10, .4) 0%, rgba(10, 10, 10, .35) 50%, rgba(10, 10, 10, .85) 100%);
}

.cinematic-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--edge);
  max-width: var(--container);
  margin: 0 auto;
  color: var(--light);
}

.cinematic-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  color: var(--red);
  margin: 0 0 18px;
}

.cinematic-heading {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(3.4rem, 10vw, 10rem);
  line-height: .9;
  margin: 0;
}

.cinematic-heading .line {
  overflow: hidden;
}

.cinematic-heading .line {
  transform: translateY(110%);
}

.cinematic-heading.is-visible .line {
  animation: line-up 1s var(--ease) forwards;
}

.cinematic-heading.is-visible .line:nth-child(2) {
  animation-delay: .15s;
}

/* ============ INSTAGRAM ============ */
.ig {
  padding: 150px 0;
}

.ig-grid {
  max-width: var(--container);
  margin: 70px auto 0;
  padding: 0 var(--edge);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.ig-item {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
}

.ig-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease-soft), filter .4s var(--ease-soft);
  filter: grayscale(15%);
}

.ig-item:hover img {
  transform: scale(1.08);
  filter: grayscale(0%);
}

.ig-cta {
  max-width: var(--container);
  margin: 56px auto 0;
  padding: 0 var(--edge);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.ig-handle {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: .02em;
}

/* ============ CTA / CONTACT ============ */
.cta {
  position: relative;
  background: var(--near-black);
  color: var(--light);
  padding: 150px 0 0;
  overflow: hidden;
}

.cta-top {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--edge);
  position: relative;
  z-index: 2;
}

.cta-heading {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(3rem, 8vw, 7.5rem);
  line-height: .95;
  margin: 0 0 26px;
}

.cta-copy {
  color: var(--gray);
  font-size: 1.1rem;
  max-width: 480px;
  margin: 0 0 42px;
}

.cta-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.cta-loc {
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--gray);
}

.contact-wrap {
  max-width: var(--container);
  margin: 64px auto 0;
  padding: 70px var(--edge);
  border-top: 1px solid var(--gray-line);
  position: relative;
}

.contact-form {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}

.form-row--half {
  flex-direction: row;
  gap: 26px;
}

.form-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-row label {
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--gray);
}

.form-row input,
.form-row select,
.form-row textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--gray-line);
  color: var(--light);
  padding: 12px 2px;
  font-size: 1.05rem;
  transition: border-color .3s var(--ease-soft);
  resize: vertical;
}

.form-row select {
  appearance: none;
  -webkit-appearance: none;
}

.form-row select option {
  background: var(--near-black);
  color: var(--light);
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--red);
}

.form-row.has-error input,
.form-row.has-error select,
.form-row.has-error textarea {
  border-color: #e2543c;
}

.form-error {
  font-size: .8rem;
  color: #e2543c;
  min-height: 1em;
}

.form-submit {
  align-self: flex-start;
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.form-submit-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, .4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: form-spin .7s linear infinite;
}

.form-submit.is-loading {
  opacity: .8;
  cursor: not-allowed;
}

.form-submit.is-loading .form-submit-label {
  visibility: hidden;
  width: 0;
}

.form-submit.is-loading .form-submit-spinner {
  display: inline-block;
}

@keyframes form-spin {
  to {
    transform: rotate(360deg);
  }
}

.contact-success {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
  padding: 40px 0;
}

.contact-success-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--red);
  margin: 0 0 12px;
}

.contact-success-copy {
  color: var(--gray);
  font-size: 1.05rem;
  margin: 0;
}

/* ============ FOOTER ============ */
.footer {
  background: var(--black);
  color: var(--light);
  border-top: 1px solid var(--gray-line);
  padding: 100px var(--edge) 30px;
}

.footer-top {
  max-width: var(--container);
  margin: 0 auto;
  padding-bottom: 60px;
}

.footer-word {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 11vw, 8.5rem);
  line-height: .9;
  letter-spacing: .01em;
}

.footer-word span {
  color: var(--red);
}

.footer-tag {
  margin-top: 18px;
  font-size: .95rem;
  letter-spacing: .1em;
  color: var(--gray);
}

.footer-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 0;
  border-top: 1px solid var(--gray-line);
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 24px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav a {
  font-size: .95rem;
  color: var(--light);
  width: fit-content;
  transition: color .3s var(--ease-soft);
}

.footer-nav a:hover {
  color: var(--red);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col-label {
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--gray);
}

.footer-col a {
  font-size: .95rem;
  transition: color .3s var(--ease-soft);
  width: fit-content;
}

.footer-col a:hover {
  color: var(--red);
}

.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding-top: 26px;
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: .85rem;
  color: var(--gray);
}

.footer-dot {
  color: var(--red);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1080px) {
  .service-row {
    grid-template-columns: 50px 1fr 40px;
  }

  .service-desc {
    display: none;
  }

  .about {
    grid-template-columns: 1fr;
  }

  .about-media img {
    min-height: 340px;
  }

  .about-content {
    padding: 64px var(--edge);
  }

  .works-grid {
    grid-auto-rows: 22vw;
  }

  .ig-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    row-gap: 34px;
  }
}

@media (max-width: 760px) {

  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-burger {
    display: block;
  }

  .hero {
    padding: 0 var(--edge) 64px;
    align-items: flex-end;
  }

  .hero-tag--br {
    bottom: 150px;
  }

  .hero-tag--tl {
    top: 96px;
  }

  .hero-tag--br {
    display: none;
  }

  .hero-scroll {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    justify-content: center;
  }

  .strip-big {
    font-size: 1.9rem;
  }

  .services {
    padding: 100px 0 70px;
  }

  .service-list {
    margin-top: 44px;
  }

  .service-row {
    grid-template-columns: 36px 1fr 28px;
    padding: 24px 0;
  }

  .service-title {
    font-size: 1.4rem;
  }

  .works {
    padding: 100px 0 40px;
  }

  .works-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 44vw;
    margin-top: 44px;
  }

  .work-item--a,
  .work-item--b,
  .work-item--c,
  .work-item--d,
  .work-item--e,
  .work-item--f {
    grid-column: auto;
    grid-row: auto;
  }

  .work-overlay {
    opacity: 1;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0) 55%, rgba(10, 10, 10, .9) 100%);
  }

  .work-arrow {
    opacity: 1;
    transform: none;
  }

  .cinematic-content {
    justify-content: flex-end;
    padding-bottom: 80px;
  }

  .ig {
    padding: 100px 0;
  }

  .ig-grid {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 44px;
  }

  .ig-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta {
    padding-top: 100px;
  }

  .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-actions .btn {
    justify-content: center;
  }

  .contact-wrap {
    padding: 50px var(--edge) 60px;
  }

  .form-row--half {
    flex-direction: column;
    gap: 26px;
  }

  .footer {
    padding: 70px var(--edge) 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .lightbox-nav {
    font-size: 1.4rem;
    padding: 8px;
  }
}

@media (max-width: 420px) {
  .works-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 74vw;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}