:root {
  --cut: 4vw;
}

.vfx-main {
  position: relative;
  z-index: 5;
}

/* ---------- Intro: title + skills & software ---------- */
.vfx-intro {
  text-align: center;
  padding: 120px clamp(20px, 5vw, 56px) 64px;
  border-bottom: 1px solid var(--line);
}

.vfx-intro__lead {
  margin: 22px auto 0;
  max-width: 620px;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink-dim);
}

.vfx-intro__actions {
  margin-top: 28px;
  display: flex;
  justify-content: center;
}

.imdb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 24px;
  border-radius: 40px;
  border: 1px solid rgba(185, 109, 96, 0.5);
  color: var(--ink);
  background: rgba(16, 16, 16, 0.5);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.imdb:hover {
  border-color: rgba(185, 109, 96, 0.9);
  background: rgba(185, 109, 96, 0.14);
}

.vfx-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 620px;
  margin: 28px auto 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(16, 16, 16, 0.35);
}

.vfx-meta .skill-block {
  margin-top: 0;
  padding: 16px 18px 18px;
}

.vfx-meta .skill-block + .skill-block {
  border-left: 1px solid var(--line);
}

.vfx-meta .skills,
.vfx-meta .software {
  max-width: none;
}

.vfx-meta .skill-block__title {
  font-size: 0.66rem;
  margin-bottom: 10px;
}

.vfx-meta .skills {
  gap: 6px;
}

.vfx-meta .skill-chip {
  padding: 4px 11px;
  font-size: 0.72rem;
}

.vfx-meta .software {
  grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
  gap: 10px;
}

.vfx-meta .software__item {
  gap: 5px;
}

.vfx-meta .software__logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.vfx-meta .software__name {
  font-size: 0.64rem;
}

.vfx-intro__eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--code);
  margin-bottom: 14px;
}

.vfx-intro__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.skill-block {
  margin-top: 44px;
}

.skill-block__title {
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--code);
  margin-bottom: 18px;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 720px;
  margin: 0 auto;
}

.skill-chip {
  padding: 8px 16px;
  border-radius: 40px;
  border: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--ink-dim);
  white-space: nowrap;
}

.software {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  gap: 18px;
  max-width: 720px;
  margin: 0 auto;
}

.software__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.software__logo {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: #161616;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.software__logo img {
  position: relative;
  z-index: 1;
  width: 62%;
  height: 62%;
  object-fit: contain;
}

.software__initial {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink-faint);
}

.software__name {
  font-size: 0.72rem;
  color: var(--ink-dim);
  text-align: center;
}

/* ---------- Reel sections (full-background video, tiled tilted edges) ---------- */
.reel-section {
  position: relative;
  min-height: 76vh;
  display: flex;
}

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

.reel-section--first .reel-bg-wrap {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), 0 100%);
}

.reel-section--mid .reel-bg-wrap {
  clip-path: polygon(0 var(--cut), 100% 0, 100% calc(100% - var(--cut)), 0 100%);
}

.reel-section--last .reel-bg-wrap {
  clip-path: polygon(0 var(--cut), 100% 0, 100% 100%, 0 100%);
}

.reel-section--mid,
.reel-section--last {
  margin-top: calc(-1 * var(--cut));
}

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

.reel-scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.reel-section--first::after,
.reel-section--mid::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent,
    var(--code) 25%,
    rgba(255, 255, 255, 0.55) 50%,
    var(--code) 75%,
    transparent
  );
  clip-path: polygon(
    0 calc(100% - 2px),
    100% calc(100% - var(--cut) - 2px),
    100% calc(100% - var(--cut)),
    0 100%
  );
}

.reel-section__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 96px clamp(20px, 5vw, 56px) 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  flex: 1;
}

.reel-section--first .reel-section__inner {
  padding-bottom: calc(var(--cut) + 36px);
}

.reel-section--mid .reel-section__inner {
  padding-top: calc(var(--cut) + 48px);
  padding-bottom: calc(var(--cut) + 36px);
}

.reel-section--last .reel-section__inner {
  padding-top: calc(var(--cut) + 48px);
}

.reel-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.reel-section__num {
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--code);
  margin-bottom: 10px;
}

.reel-section__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--ink);
}

.reel-section__sub {
  max-width: 320px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(244, 244, 244, 0.72);
  text-align: right;
}

.reel-section__foot {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
}

.projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
}

.rproject {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(16, 16, 16, 0.72);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}

.rproject:hover {
  transform: translateY(-4px);
  border-color: rgba(185, 109, 96, 0.5);
}

.rproject__media {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  background: #141414;
}

.rproject__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.rproject__play {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(185, 109, 96, 0.5);
  color: var(--code);
  font-size: 0.95rem;
  padding-left: 3px;
}

.rproject__body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rproject__tag {
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--code);
}

.rproject__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
}

.more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  border-radius: 40px;
  border: 1px solid var(--line);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  background: rgba(16, 16, 16, 0.5);
  backdrop-filter: blur(8px);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.more:hover {
  border-color: rgba(185, 109, 96, 0.6);
  background: rgba(185, 109, 96, 0.12);
}

.vfx-footer {
  position: relative;
  z-index: 5;
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px clamp(20px, 5vw, 56px) 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--ink-faint);
  border-top: 1px solid var(--line);
}

.vfx-footer a {
  color: var(--ink-dim);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

.vfx-footer a:hover {
  color: var(--ink);
}

@media (max-width: 720px) {
  .vfx-meta {
    grid-template-columns: 1fr;
  }

  .vfx-meta .skill-block + .skill-block {
    border-left: none;
    border-top: 1px solid var(--line);
  }

  .reel-section {
    min-height: auto;
  }

  .reel-section--mid,
  .reel-section--last {
    margin-top: calc(-1 * var(--cut));
  }

  .reel-section__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .reel-section__sub {
    text-align: left;
  }

  .reel-section__foot {
    align-items: flex-start;
  }

  .projects {
    grid-template-columns: 1fr;
  }
}
