/* ==========================================================================
   itsaryan — Video Editing Portfolio + A.I Creations
   "The Cutting Room" — film-strip frames, sprocket holes, tape labels,
   phone-framed shorts, click-to-play facades. Paper/ink/blue design system.
   ========================================================================== */

/* ── SHARED: click-to-play facade ─────────────────────────────────────── */

.vid-facade {
  position: relative;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  margin: 0;
  display: block;
  background: #060a12;
  cursor: pointer;
  overflow: hidden;
  text-align: left;
  font-family: inherit;
}

.vid-facade img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease), filter 0.5s var(--ease);
  filter: saturate(0.92) contrast(1.04);
}

.vid-facade:hover img,
.vid-facade:focus-visible img { transform: scale(1.045); filter: saturate(1.05) contrast(1.06); }

.vid-facade__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(13, 23, 38, 0.32) 0%, rgba(13, 23, 38, 0) 34%, rgba(13, 23, 38, 0) 55%, rgba(13, 23, 38, 0.62) 100%);
  pointer-events: none;
}

.vid-facade__play {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f4ecd8;
  color: #0a0e1a;
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.55);
  transition: transform 0.45s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
  z-index: 2;
}

.vid-facade__play svg { margin-left: 4px; }

.vid-facade__play::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid rgba(244, 236, 216, 0.55);
  animation: vidPulse 2.4s var(--ease) infinite;
}

@keyframes vidPulse {
  0%   { transform: scale(0.82); opacity: 0.9; }
  70%  { transform: scale(1.28); opacity: 0; }
  100% { transform: scale(1.28); opacity: 0; }
}

.vid-facade:hover .vid-facade__play,
.vid-facade:focus-visible .vid-facade__play {
  transform: scale(1.1);
  background: var(--red);
  color: #fff;
}

.vid-facade:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.vid-facade__duration {
  position: absolute;
  right: 12px;
  bottom: 12px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--paper);
  background: rgba(13, 23, 38, 0.72);
  border: 1px solid rgba(245, 242, 234, 0.18);
  padding: 4px 9px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  z-index: 2;
}

/* once playing, the iframe replaces everything */
.vid-embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: var(--ink);
}

/* ── SHARED: cinema frame w/ sprocket holes ───────────────────────────── */

.cinema-frame {
  position: relative;
  background: #070b14;
  border: 1px solid rgba(244, 236, 216, 0.09);
  border-radius: 18px;
  padding: 34px 14px;
  box-shadow: var(--shadow-lg);
}

.cinema-frame::before,
.cinema-frame::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  height: 10px;
  background-image: radial-gradient(circle, rgba(244, 236, 216, 0.5) 3.4px, transparent 3.9px);
  background-size: 26px 10px;
  background-position: center;
  background-repeat: repeat-x;
}

.cinema-frame::before { top: 12px; }
.cinema-frame::after  { bottom: 12px; }

.cinema-frame__window {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: #060a12;
}

/* mono tape label, sits on the frame edge */
.tape-tag {
  position: absolute;
  top: -13px;
  left: 26px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #0a0e1a;
  background: var(--amber);
  padding: 6px 14px 5px;
  border-radius: 3px;
  transform: rotate(-1.6deg);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

.tape-tag--blue  { background: var(--blue); color: #fff; }
.tape-tag--red   { background: var(--red); color: #fff; }
.tape-tag--paper { background: rgba(244, 236, 216, 0.12); color: var(--ink); border: 1px solid rgba(244, 236, 216, 0.18); }

.tape-tag .rec-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: recBlink 1.5s ease-in-out infinite;
}

@keyframes recBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

/* meta row under a cinema frame */
.cut-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 18px;
  margin-top: 22px;
  padding: 0 6px;
}

.cut-meta h3 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: #f4ecd8;
  margin: 0;
}

.cut-meta h3 em { font-style: italic; color: #8db8ff; }

.cut-meta__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 236, 216, 0.55);
}

.cut-meta__tags span {
  border: 1px solid rgba(244, 236, 216, 0.16);
  border-radius: 999px;
  padding: 5px 11px;
  background: rgba(244, 236, 216, 0.05);
}

/* ══════════════════════════════════════════════════════════════════════
   HOME — A.I CREATIONS (directly under hero)
   ══════════════════════════════════════════════════════════════════════ */

.ai-creations {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 7rem) 24px clamp(3rem, 6vw, 4.5rem);
}

.ai-creations__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px 32px;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.ai-creations__head .eyebrow { color: var(--blue); }

.ai-creations__head h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: #f4ecd8;
  margin: 10px 0 0;
  max-width: 15ch;
}

.ai-creations__head h2 em { font-style: italic; color: #8db8ff; }

.ai-creations__note {
  max-width: 34ch;
  color: rgba(244, 236, 216, 0.62);
  font-size: 0.95rem;
  line-height: 1.65;
}

.ai-creations__note a {
  color: #6ab2ff;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(106, 178, 255, 0.35);
  transition: border-color 0.25s, color 0.25s;
}

.ai-creations__note a:hover { color: #8db8ff; border-color: #8db8ff; }

/* featured + 3-up row */
.ai-grid { display: grid; gap: clamp(1.4rem, 3vw, 2.2rem); }

.ai-feature { position: relative; }

.ai-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 2.4vw, 1.8rem);
}

.ai-card { position: relative; }

.ai-card .cinema-frame { padding: 26px 10px; border-radius: 14px; box-shadow: var(--shadow); }
.ai-card .cinema-frame::before,
.ai-card .cinema-frame::after { left: 14px; right: 14px; height: 8px; background-size: 20px 8px; background-image: radial-gradient(circle, rgba(244, 236, 216, 0.5) 2.6px, transparent 3px); }
.ai-card .cinema-frame::before { top: 9px; }
.ai-card .cinema-frame::after  { bottom: 9px; }

.ai-card .cut-meta { margin-top: 14px; padding: 0 2px; }
.ai-card .cut-meta h3 { font-size: 1.06rem; }

.ai-card__gen {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(244, 236, 216, 0.45);
  display: block;
  margin-bottom: 6px;
}

/* slight editorial offsets on desktop */
@media (min-width: 900px) {
  .ai-card:nth-child(2) { transform: translateY(14px); }
  .ai-card:nth-child(3) { transform: translateY(28px); }
  .ai-card { transition: transform 0.6s var(--ease); }
  .ai-card:nth-child(1):hover { transform: translateY(-6px); }
  .ai-card:nth-child(2):hover { transform: translateY(8px); }
  .ai-card:nth-child(3):hover { transform: translateY(22px); }
}

@media (max-width: 899px) {
  .ai-row { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════════════
   VIDEOS.HTML — THE CUTTING ROOM (portfolio page)
   ══════════════════════════════════════════════════════════════════════ */

/* — page hero — */
.vh-hero {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(8rem, 16vw, 11rem) 24px clamp(2.5rem, 5vw, 4rem);
}

.vh-hero .eyebrow { color: var(--red); }

.vh-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: #f4ecd8;
  margin: 14px 0 22px;
  max-width: 14ch;
}

.vh-hero h1 em { font-style: italic; color: #8db8ff; }

.vh-hero .lead {
  max-width: 56ch;
  color: rgba(244, 236, 216, 0.72);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.7;
}

.vh-hero .lead strong { color: #fff; }

.vh-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.vh-stats span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 236, 216, 0.78);
  background: rgba(244, 236, 216, 0.05);
  border: 1px solid rgba(244, 236, 216, 0.16);
  border-radius: 999px;
  padding: 9px 16px;
}

.vh-stats span i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  font-style: normal;
}

.vh-stats span:nth-child(2) i { background: var(--red); }
.vh-stats span:nth-child(3) i { background: var(--amber); }
.vh-stats span:nth-child(4) i { background: var(--green); }

/* — reel jump nav — */
.reel-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.reel-nav a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(244, 236, 216, 0.62);
  border: 1px solid rgba(244, 236, 216, 0.14);
  border-radius: 999px;
  padding: 8px 15px;
  transition: color 0.3s, border-color 0.3s, background 0.3s, transform 0.35s var(--ease);
}

.reel-nav a b {
  font-weight: 700;
  color: var(--blue);
  transition: color 0.3s;
}

.reel-nav a:nth-child(2) b { color: var(--red); }
.reel-nav a:nth-child(3) b { color: var(--amber); }
.reel-nav a:nth-child(4) b { color: var(--green); }

.reel-nav a:hover {
  color: #f4ecd8;
  border-color: rgba(244, 236, 216, 0.4);
  background: rgba(244, 236, 216, 0.06);
  transform: translateY(-2px);
}

.reel-nav a:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* — film-tape marquee divider — */
.film-tape {
  overflow: hidden;
  border-top: 1px solid rgba(244, 236, 216, 0.12);
  border-bottom: 1px solid rgba(244, 236, 216, 0.12);
  background: #070b14;
  padding: 13px 0;
  transform: rotate(-0.6deg) scale(1.01);
  margin: clamp(1rem, 3vw, 2rem) 0;
}

.film-tape__track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: filmRoll 26s linear infinite;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(245, 242, 234, 0.82);
  white-space: nowrap;
}

.film-tape__track i { color: var(--red); font-style: normal; }

.film-tape:hover .film-tape__track { animation-play-state: paused; }

@keyframes filmRoll { to { transform: translateX(-50%); } }

/* — generic page section shell — */
.cut-section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.5rem) 24px;
}

.cut-section .section-head { margin-bottom: clamp(2rem, 4.5vw, 3.2rem); max-width: 720px; }
.cut-section .section-head .eyebrow { color: var(--blue); }
.cut-section .section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #f4ecd8;
  margin: 10px 0 12px;
}
.cut-section .section-head h2 em { font-style: italic; color: #8db8ff; }
.cut-section .section-head p { color: rgba(244, 236, 216, 0.62); line-height: 1.7; margin: 0; }

/* — featured long-form — */
.featured-cut { position: relative; }

.featured-cut .cinema-frame { padding: 40px clamp(12px, 2.5vw, 26px); }

/* — shorts shelf: vertical phone frames — */
.shorts-shelf {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 300px));
  justify-content: center;
  gap: clamp(1.6rem, 4vw, 3rem);
}

.short-reel { position: relative; }

.phone-frame {
  position: relative;
  aspect-ratio: 9 / 19;
  background: #070b14;
  border: 1px solid rgba(244, 236, 216, 0.1);
  border-radius: 34px;
  padding: 12px;
  box-shadow: var(--shadow-lg);
  transition: transform 0.6s var(--ease);
}

.short-reel:nth-child(1) .phone-frame { transform: rotate(-2.4deg); }
.short-reel:nth-child(2) .phone-frame { transform: rotate(1.2deg) translateY(18px); }
.short-reel:nth-child(3) .phone-frame { transform: rotate(-1.4deg); }

.short-reel:hover .phone-frame,
.short-reel:focus-within .phone-frame { transform: rotate(0deg) translateY(-6px); }

.phone-frame::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  translate: -50% 0;
  width: 34%;
  height: 18px;
  background: #070b14;
  border-radius: 0 0 12px 12px;
  z-index: 4;
}

.phone-frame__screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: #060a12;
}

.phone-frame__screen .vid-facade__play { width: 56px; height: 56px; }

.short-reel .cut-meta { margin-top: 18px; justify-content: center; text-align: center; }
.short-reel .cut-meta h3 { font-size: 1.05rem; width: 100%; }
.short-reel .cut-meta__tags { justify-content: center; }

@media (max-width: 899px) {
  .shorts-shelf { grid-template-columns: minmax(0, 320px); }
  .short-reel:nth-child(2) .phone-frame { transform: rotate(1.2deg); }
}

/* — the vault: drive edits — */
.vault-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.6rem, 3.4vw, 2.6rem);
}

.vault-card { position: relative; }

.vault-card .cinema-frame { padding: 30px 12px; border-radius: 16px; box-shadow: var(--shadow); }
.vault-card .cinema-frame::before,
.vault-card .cinema-frame::after { left: 16px; right: 16px; height: 9px; background-size: 22px 9px; background-image: radial-gradient(circle, rgba(244, 236, 216, 0.5) 2.9px, transparent 3.3px); }
.vault-card .cinema-frame::before { top: 10px; }
.vault-card .cinema-frame::after  { bottom: 10px; }

.vault-card .cut-meta { margin-top: 16px; }
.vault-card .cut-meta h3 { font-size: 1.12rem; }

@media (max-width: 899px) { .vault-grid { grid-template-columns: 1fr; } }

/* drive placeholder behind thumbnails that may not resolve */
.vault-poster-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(74, 159, 255, 0.22), transparent 55%),
    radial-gradient(circle at 75% 85%, rgba(255, 91, 82, 0.16), transparent 50%),
    #070b14;
}

.vault-poster-fallback span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(245, 242, 234, 0.4);
}

/* — capability chips — */
.cut-capabilities {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 860px;
  margin: 0 auto;
}

.cut-capabilities span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244, 236, 216, 0.72);
  background: rgba(244, 236, 216, 0.05);
  border: 1px solid rgba(244, 236, 216, 0.16);
  border-radius: 999px;
  padding: 11px 20px;
  transition: transform 0.4s var(--ease), background 0.3s, color 0.3s;
}

.cut-capabilities span:hover {
  transform: translateY(-3px) rotate(-1deg);
  background: #f4ecd8;
  color: #0a0e1a;
}

/* — CTA — */
.cut-cta {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto clamp(4rem, 8vw, 6rem);
  padding: 0 24px;
}

.cut-cta__card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01)),
    #0b1020;
  color: #f4ecd8;
  border: 1px solid rgba(244, 236, 216, 0.12);
  border-radius: 26px;
  padding: clamp(3rem, 7vw, 5rem) clamp(1.6rem, 5vw, 4.5rem);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.cut-cta__card::before,
.cut-cta__card::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  height: 10px;
  background-image: radial-gradient(circle, rgba(245, 242, 234, 0.35) 3.2px, transparent 3.7px);
  background-size: 26px 10px;
  background-position: center;
  background-repeat: repeat-x;
}

.cut-cta__card::before { top: 14px; }
.cut-cta__card::after  { bottom: 14px; }

.cut-cta__card .eyebrow { color: var(--amber); }

.cut-cta__card h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: #f4ecd8;
  margin: 12px auto 16px;
  max-width: 18ch;
}

.cut-cta__card h2 em { font-style: italic; color: #8db8ff; }

.cut-cta__card p {
  color: rgba(245, 242, 234, 0.72);
  max-width: 52ch;
  margin: 0 auto 30px;
  line-height: 1.7;
}

.cut-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.cut-cta__actions .btn-primary {
  background: #f4ecd8;
  color: #0a0e1a;
}

.cut-cta__actions .btn-primary:hover { background: var(--red); color: #fff; }

.cut-cta__actions .btn-ghost { color: #f4ecd8; border-color: rgba(244, 236, 216, 0.3); }
.cut-cta__actions .btn-ghost:hover { border-color: #f4ecd8; }

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  .film-tape__track { animation: none; }
  .vid-facade__play::after { animation: none; opacity: 0.4; }
  .tape-tag .rec-dot { animation: none; }
  .vid-facade img { transition: none; }
}
