/* =========================================================
   Utkarsh Kohli — Dark / Gold cinematic theme
   Same structure & portfolio mechanism as the poster build,
   re-skinned to the original black + gold identity.
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500;1,600&family=Inter:wght@400;500;600;700&family=Fira+Code:wght@600;700&display=swap');

:root {
  --wall: #060504;
  --wall-2: #0c0a08;
  --panel: #110e0a;
  --panel-2: #17130d;
  --ink: #f5f0e8;
  --ink-soft: #b3aa9a;
  --ink-faint: #7d766a;
  --gold: #d4a53c;
  --gold-bright: #f3c968;
  --gold-line: rgba(212,165,60,0.22);
  --gold-glow: rgba(212,165,60,0.5);
  --teal: #2bc4b0;
  --hairline: rgba(245,240,232,0.09);
  --shadow: rgba(0,0,0,0.6);
  --ease-out: cubic-bezier(0.16, 0.84, 0.44, 1);
  --ease-back: cubic-bezier(0.34, 1.4, 0.64, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--wall);
  color: var(--ink);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  line-height: 1.6;
}
a { color: inherit; }
img { max-width: 100%; display: block; }

.font-display { font-family: "Playfair Display", Georgia, "Times New Roman", serif; }
.accent { color: var(--gold); }

/* =========================================================
   Nav
   ========================================================= */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6,5,4,0.85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.site-nav__inner {
  max-width: min(94vw, 1320px);
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--ink);
}
.nav-links {
  list-style: none;
  display: none;
  align-items: center;
  gap: 1.9rem;
  margin: 0;
  padding: 0;
}
@media (min-width: 800px) { .nav-links { display: flex; } }
.nav-links a {
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 11.5px;
  color: var(--ink-soft);
  transition: color 0.2s ease;
  position: relative;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 1px; width: 0;
  background: var(--gold); transition: width 0.25s var(--ease-out);
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--gold); }
.nav-links a:hover::after, .nav-links a:focus-visible::after { width: 100%; }
.nav-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: none; border: 1px solid var(--gold-line); border-radius: 6px; cursor: pointer;
}
@media (min-width: 800px) { .nav-toggle { display: none; } }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--gold); }
.nav-toggle span + span { margin-top: 4px; }
.nav-mobile {
  display: none; flex-direction: column;
  border-top: 1px solid var(--hairline); background: var(--wall-2);
}
.nav-mobile.is-open { display: flex; }
.nav-mobile a {
  text-decoration: none; padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--hairline);
  font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  font-size: 12px; color: var(--ink);
}

/* =========================================================
   Reveal-on-scroll utility
   ========================================================= */
[data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
  will-change: opacity, transform; -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal-scale] {
  opacity: 0; transform: scale(0.94) translateY(16px);
  transition: opacity 0.5s var(--ease-back), transform 0.5s var(--ease-back);
  will-change: opacity, transform; -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
[data-reveal-scale].is-visible { opacity: 1; transform: scale(1) translateY(0); }

/* =========================================================
   Page shell + shared headings
   ========================================================= */
.stage { max-width: min(94vw, 1320px); margin: 0 auto; padding: 3.5rem 1.1rem 4rem; }
@media (min-width: 1600px) { .stage { max-width: min(90vw, 1520px); } }

.eyebrow {
  font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase;
  font-size: 11px; color: var(--gold); margin: 0 0 0.5rem;
}
.section-head { margin-bottom: 2rem; }
h2.section-title {
  margin: 0; font-family: "Playfair Display", Georgia, serif; font-weight: 600;
  font-size: clamp(1.8rem, 5vw, 2.7rem); color: var(--ink); line-height: 1.05;
}

/* =========================================================
   Hero — "portal" reveal (doors split to unveil the name)
   ========================================================= */
.tagline {
  margin: 1.1rem auto 0; font-size: clamp(1rem, 2.4vw, 1.2rem); color: var(--ink-soft);
  max-width: 46ch; font-style: italic;
}
.kane-hero {
  position: relative; min-height: 100svh; background: var(--wall);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  overflow: hidden; padding: 72px 14px 56px; text-align: center;
}
.kane-hero__topline {
  position: absolute; top: 20px; left: 20px; right: 20px; z-index: 3;
  display: flex; justify-content: space-between; gap: 12px;
  opacity: 0; animation: cineFade 0.8s var(--ease-out) 0.15s forwards;
}
@media (min-width: 768px) { .kane-hero__topline { top: 28px; left: 40px; right: 40px; } }
.kane-hero__tag { text-transform: uppercase; letter-spacing: 0.18em; font-size: 10.5px; font-weight: 600; color: var(--ink-soft); white-space: nowrap; }

.kane-hero__stack { position: relative; max-width: 100%; }
.kane-hero__name { margin: 0; display: flex; flex-direction: column; align-items: center; }
.kane-hero__line {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif; font-weight: 700;
  letter-spacing: -0.01em; line-height: 0.9; color: var(--gold);
  font-size: clamp(4.5rem, 24vw, 20rem); white-space: nowrap;
}

.kane-hero__photo {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 2;
  width: clamp(90px, 22vw, 210px); height: clamp(152px, 37vw, 355px);
  border-radius: 9999px; overflow: hidden; border: 1px solid var(--gold-line);
  box-shadow: 0 20px 44px -16px rgba(0,0,0,0.85); transition: transform 0.3s var(--ease-out);
}
.kane-hero__photo:hover { transform: translate(-50%, -50%) scale(1.08); }
.kane-hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }

.kane-hero__tagline { margin: 2.6rem 0 0; color: var(--ink-soft); font-size: clamp(0.9rem, 1.8vw, 1.2rem); }

/* Mobile: photo moves below the name instead of overlapping the seam,
   so the stacked composition fills the screen without a floating gap. */
@media (max-width: 639px) {
  .kane-hero__stack { display: flex; flex-direction: column; align-items: center; }
  .kane-hero__photo {
    position: static; transform: none; margin-top: 22px;
    width: clamp(150px, 48vw, 230px); height: clamp(253px, 81vw, 389px);
  }
  .kane-hero__photo:hover { transform: none; }
  .kane-hero__tagline { margin-top: 1.9rem; }
}

.kane-hero__scroll {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 3;
  color: var(--ink-soft); display: flex; opacity: 0;
  animation: cineFade 0.8s var(--ease-out) 1.1s forwards, kaneBounce 1.8s ease-in-out 1.9s infinite;
}
.kane-hero__scroll svg { width: 22px; height: 22px; }

.blur-unit {
  display: inline-block; opacity: 0; filter: blur(10px); transform: translateY(-16px);
  transition: filter 0.55s var(--ease-out), opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
  will-change: filter, opacity, transform;
}
[data-blur-letters].is-in .blur-unit, [data-blur-words].is-in .blur-unit { opacity: 1; filter: blur(0); transform: translateY(0); }

@keyframes cineFade { to { opacity: 1; transform: none; } }
@keyframes kaneBounce { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }

/* =========================================================
   Work — showreel cards
   ========================================================= */
.lobby-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
@media (min-width: 700px) { .lobby-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 460px) { .lobby-grid { grid-template-columns: 1fr; } }
.lobby-card {
  position: relative; background: var(--panel); border: 1px solid var(--hairline);
  border-radius: 8px; padding: 0.75rem 0.75rem 1rem; text-decoration: none; overflow: hidden;
  transition: transform 0.3s var(--ease-out), border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.lobby-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0; transition: opacity 0.3s ease;
}
.lobby-card:hover, .lobby-card:focus-visible {
  transform: translateY(-5px); border-color: var(--gold-line);
  box-shadow: 0 24px 44px -22px rgba(0,0,0,0.9);
}
.lobby-card:hover::before, .lobby-card:focus-visible::before { opacity: 1; }
.lobby-photo {
  position: relative; border-radius: 5px; overflow: hidden; aspect-ratio: 16/10; background: #000;
}
.lobby-photo img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.5s var(--ease-out); }
.lobby-card:hover .lobby-photo img { transform: scale(1.05); }
.lobby-meta { padding: 0.85rem 0.3rem 0.1rem; }
.lobby-meta .tag {
  font-weight: 600; font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold);
}
.lobby-meta h3 {
  margin: 0.3rem 0 0; font-family: "Playfair Display", Georgia, serif; font-weight: 600;
  font-size: 1.1rem; color: var(--ink); line-height: 1.2;
}
.lobby-meta p { margin: 0.2rem 0 0; font-size: 0.85rem; color: var(--ink-soft); }
.play-badge {
  position: absolute; z-index: 3; left: 50%; top: 50%; transform: translate(-50%,-50%) scale(0.85);
  width: 52px; height: 52px; border-radius: 50%; background: rgba(6,5,4,0.65);
  border: 1px solid var(--gold); backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s ease, transform 0.3s var(--ease-back);
}
.lobby-card:hover .play-badge { opacity: 1; transform: translate(-50%,-50%) scale(1); }
.play-badge svg { width: 18px; height: 18px; fill: var(--gold); margin-left: 2px; }

/* =========================================================
   Filmography marquee + list
   ========================================================= */
.marquee-band {
  overflow: hidden; border-top: 1px solid var(--gold-line); border-bottom: 1px solid var(--gold-line);
  background: var(--wall-2); padding: 0.85rem 0;
}
.marquee-band__track {
  display: flex; width: max-content; animation: marquee 30s linear infinite;
  will-change: transform; -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
.marquee-band__track span {
  display: inline-flex; align-items: center; padding: 0 1.3rem;
  font-family: "Playfair Display", Georgia, serif; font-style: italic; font-weight: 600;
  font-size: 15px; color: var(--ink-soft); white-space: nowrap;
}
.marquee-band__track span::after { content: "\2726"; margin-left: 1.3rem; color: var(--gold); font-style: normal; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.credit-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.credit-row {
  display: grid; grid-template-columns: 5rem 1fr auto; align-items: baseline; gap: 1rem;
  padding: 1.1rem 0.3rem; border-bottom: 1px solid var(--hairline);
  transition: padding-left 0.25s var(--ease-out), background 0.25s ease;
}
.credit-row:hover { padding-left: 0.9rem; background: linear-gradient(90deg, rgba(212,165,60,0.06), transparent); }
.credit-row .year { font-weight: 600; font-size: 13px; color: var(--gold); letter-spacing: 0.04em; }
.credit-row .name { font-family: "Playfair Display", Georgia, serif; font-weight: 600; font-size: 1.15rem; color: var(--ink); }
.credit-row .name em { font-style: italic; font-weight: 400; color: var(--ink-soft); font-size: 0.82em; }
.credit-row .studio {
  font-weight: 500; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-faint); text-align: right;
}

/* =========================================================
   About
   ========================================================= */
.about-grid { display: grid; grid-template-columns: 1fr; gap: 1.8rem; }
@media (min-width: 760px) { .about-grid { grid-template-columns: minmax(300px, 420px) 1fr; gap: 2.8rem; align-items: stretch; } }
.about-photo {
  position: relative; width: 100%; border-radius: 4px; overflow: hidden;
  aspect-ratio: 4/3; background: var(--panel-2); box-shadow: 0 22px 46px -22px rgba(0,0,0,0.9);
}
@media (min-width: 760px) { .about-photo { aspect-ratio: auto; height: 100%; min-height: 420px; } }
.about-photo::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px var(--gold-line); pointer-events: none; border-radius: 4px; }
.about-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.bio-text { font-size: 1.05rem; line-height: 1.8; color: var(--ink-soft); margin: 0; }
.stat-list {
  margin: 1.8rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.4rem;
  border-top: 1px solid var(--hairline); padding-top: 1.6rem;
}
.stat-list dt { font-weight: 600; font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin: 0; }
.stat-list dd { margin: 0.3rem 0 0; font-weight: 500; font-size: 1rem; color: var(--ink); }

/* =========================================================
   Portfolio — vertical thumbnail slider (mechanism unchanged)
   ========================================================= */
.thumb-slider { display: grid; grid-template-columns: 1fr 108px; gap: 12px; height: 62vh; min-height: 420px; max-height: 640px; outline: none; }
.thumb-slider__main {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; overflow: hidden; padding: 8px 0;
}
.thumb-slider__pair { display: flex; align-items: center; justify-content: center; gap: 18px; flex: 1; min-height: 0; width: 100%; }
.thumb-slider__main-frame {
  position: relative; max-height: 100%; max-width: 46%;
  aspect-ratio: 3/4; /* portrait default */
  border-radius: 4px; overflow: hidden; background: var(--panel-2);
  box-shadow: 0 22px 46px -22px rgba(0,0,0,0.9);
}
.thumb-slider__main-frame::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px var(--gold-line); pointer-events: none; border-radius: 4px; }
.thumb-slider__main-frame.is-landscape { aspect-ratio: 4/3; }
.thumb-slider__pair.is-single .thumb-slider__main-frame { max-width: 66%; }
.thumb-slider__main-frame.is-hidden { display: none; }
.thumb-slider__main-frame img { display: block; width: 100%; height: 100%; object-fit: contain; }
.thumb-slider__frame-label {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  font-weight: 600; font-size: 9.5px; letter-spacing: 0.16em; color: var(--gold); text-transform: uppercase;
}
.thumb-slider__nav {
  position: relative; z-index: 3; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 9999px;
  border: 1px solid var(--gold-line); background: transparent; color: var(--gold);
  cursor: pointer; transition: border-color 0.2s ease, background-color 0.2s ease;
}
.thumb-slider__nav:hover { border-color: var(--gold); background: rgba(212,165,60,0.1); }
.thumb-slider__nav svg { width: 18px; height: 18px; }
.thumb-slider__rail {
  overflow-y: auto; overflow-x: hidden; display: flex; flex-direction: column; gap: 8px;
  padding-right: 4px; scrollbar-width: thin; scrollbar-color: var(--gold-line) transparent;
}
.thumb-slider__thumb {
  flex-shrink: 0; width: 100%; aspect-ratio: 4/5; padding: 0; cursor: pointer;
  background: var(--panel-2); border: 1px solid transparent; border-radius: 4px; overflow: hidden;
}
.thumb-slider__thumb img { width: 100%; height: 100%; object-fit: contain; opacity: 0.5; transition: opacity 0.2s ease; }
.thumb-slider__thumb:hover img { opacity: 0.85; }
.thumb-slider__thumb.is-active { border-color: var(--gold); }
.thumb-slider__thumb.is-active img { opacity: 1; }
@media (max-width: 640px) {
  .thumb-slider { grid-template-columns: 1fr; grid-template-rows: 1fr 84px; height: 76vh; }
  .thumb-slider__rail { flex-direction: row; overflow-x: auto; overflow-y: hidden; padding-right: 0; padding-bottom: 4px; }
  .thumb-slider__thumb { width: 68px; flex-shrink: 0; }
  .thumb-slider__pair.is-single .thumb-slider__main-frame { max-width: 88%; }
}

/* =========================================================
   Contact
   ========================================================= */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 1.8rem; }
@media (min-width: 760px) { .contact-grid { grid-template-columns: 1fr 1.1fr; align-items: start; } }
.info-card, .form-card {
  background: var(--panel); border: 1px solid var(--hairline); border-radius: 10px;
  padding: 1.6rem 1.5rem; position: relative;
}
.info-card::before, .form-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; border-radius: 10px 10px 0 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.card-title { font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; font-size: 11px; color: var(--gold); margin: 0 0 1.2rem; }
.info-card dl { margin: 0; display: grid; gap: 1.1rem; }
.info-card dt { font-weight: 600; font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); margin: 0; }
.info-card dd { margin: 0.25rem 0 0; font-size: 1.05rem; color: var(--ink); }
.info-card dd a { text-decoration: none; border-bottom: 1px solid var(--gold-line); transition: border-color 0.2s ease; }
.info-card dd a:hover { border-color: var(--gold); }
.social-row { display: flex; gap: 0.7rem; margin-top: 1.6rem; flex-wrap: wrap; }
.social-row a {
  font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; font-size: 10.5px;
  text-decoration: none; border: 1px solid var(--gold-line); border-radius: 6px; padding: 9px 14px;
  color: var(--ink); transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.social-row a:hover { background: var(--gold); color: var(--wall); border-color: var(--gold); }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-weight: 600; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 0.5rem; }
.field input, .field textarea {
  width: 100%; border: 1px solid var(--hairline); background: var(--wall-2); border-radius: 6px;
  font-family: inherit; font-size: 1rem; padding: 0.7rem 0.8rem; color: var(--ink);
  outline: none; transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus, .field textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,165,60,0.15); }
.field textarea { resize: vertical; min-height: 120px; }
.submit-btn {
  font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; font-size: 12px;
  color: var(--wall); background: var(--gold); border: none; border-radius: 6px; padding: 13px 28px;
  cursor: pointer; transition: background 0.2s ease, transform 0.2s ease;
}
.submit-btn:hover { background: var(--gold-bright); transform: translateY(-2px); }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { border-top: 1px solid var(--hairline); background: var(--wall-2); margin-top: 3rem; }
.site-footer__inner {
  max-width: min(94vw, 1320px); margin: 0 auto; padding: 2.4rem 1.25rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.4rem; align-items: center;
}
.site-footer .brand { font-size: 1.05rem; }
.site-footer p { margin: 0.4rem 0 0; font-size: 12px; color: var(--ink-faint); }
.site-footer .credit { text-align: right; }
.site-footer .credit a { color: var(--gold); text-decoration: none; font-weight: 600; }
.copyright { text-align: center; margin: 0; padding: 1.2rem 0 2.2rem; font-size: 10.5px; color: var(--ink-faint); background: var(--wall-2); letter-spacing: 0.05em; }

/* WhatsApp float */
.wa-float {
  position: fixed; bottom: 22px; right: 22px; z-index: 40;
  width: 56px; height: 56px; border-radius: 50%; background: #1faf4e;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 26px -6px rgba(0,0,0,0.7);
  text-decoration: none; transition: transform 0.2s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; fill: #fff; }
.wa-float__ring { position: absolute; inset: -6px; border-radius: 50%; border: 2px solid #1faf4e; opacity: 0.6; animation: ping 2.4s cubic-bezier(0,0,0.2,1) infinite; pointer-events: none; }
@keyframes ping { 0% { transform: scale(1); opacity: 0.6; } 80%,100% { transform: scale(1.5); opacity: 0; } }

/* Skip link + focus */
.skip-link { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--wall); padding: 10px 16px; z-index: 100; text-decoration: none; font-weight: 600; }
.skip-link:focus { left: 8px; top: 8px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Contact-page portrait: fit the contact box, stay within the page */
.about-photo.contact-photo { aspect-ratio: 3/4; max-height: 60vh; transform: none; margin: 0; }
@media (min-width: 760px) {
  .contact-grid { align-items: stretch; }
  .about-photo.contact-photo { aspect-ratio: auto; max-height: none; height: 100%; min-height: 0; }
}
