/* krt.creatives — home page "scroll to enter" intro, in the style of the INTRO_01 film:
   light canvas + yellow corner glow, yellow halftone portrait, Poppins 800 headlines, a dark lens beat.
   Shown once per browser tab (sessionStorage), never for links like /#contact, reduced-motion users
   or search bots. The picture is one <canvas>; the words are plain text moved with transform/opacity. */
.ki { display: none; }
html.intro-on, html.intro-on body { overflow: hidden !important; overscroll-behavior: none; }
html.intro-on .ki {
  display: block; position: fixed; inset: 0; z-index: 2147483000; overflow: hidden;
  background: #F3F3F3; color: #222222; touch-action: none; -webkit-user-select: none; user-select: none;
}
.ki-cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* corner UI */
.ki-logo { position: absolute; left: clamp(20px, 4vw, 56px); top: clamp(18px, 3.2vh, 34px); font-size: 23px; animation: ki-in .8s cubic-bezier(.16,1,.3,1) .1s backwards; }
.ki-skip {
  position: absolute; right: clamp(16px, 3.4vw, 48px); top: clamp(16px, 3vh, 30px);
  padding: 11px 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,.1); background: #222222; color: #F3F3F3;
  font: 700 12.5px/1 'Poppins', sans-serif; letter-spacing: -0.01em; cursor: pointer;
  box-shadow: 0 8px 22px rgba(34,34,34,.18); transition: background-color .2s ease, color .2s ease;
  animation: ki-in .8s cubic-bezier(.16,1,.3,1) .2s backwards;
}
.ki-skip:hover, .ki-skip:focus-visible { background: #E8B931; color: #222222; outline: none; }

.ki-hint {
  position: absolute; left: 50%; bottom: clamp(18px, 4vh, 40px); margin-left: -80px; width: 160px;
  display: flex; flex-direction: column; align-items: center; gap: 12px; pointer-events: none;
}
.ki-hint span { font: 700 10.5px/1 'JetBrains Mono', monospace; letter-spacing: .24em; text-transform: uppercase; color: #F3F3F3; white-space: nowrap; animation: ki-in .8s cubic-bezier(.16,1,.3,1) .9s backwards; }
.ki-hint i { position: relative; display: block; width: 1px; height: 46px; overflow: hidden; background: rgba(243,243,243,.25); animation: ki-in .8s ease 1s backwards; }
.ki-hint i::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 100%; background: #E8B931; transform: translateY(-100%); animation: ki-line 1.8s cubic-bezier(.6,0,.3,1) infinite; }
@keyframes ki-line { 0% { transform: translateY(-100%); } 55% { transform: translateY(0); } 100% { transform: translateY(100%); } }
@keyframes ki-in { from { opacity: 0; transform: translate3d(0, 24px, 0); } to { opacity: 1; transform: none; } }

/* opening headline: HI, I'M — K R TEJA. — RAVITEJA KARINGULA — AI FILMMAKER */
.ki-name { position: absolute; left: 0; right: 0; text-align: center; pointer-events: none; will-change: transform, opacity; }
.ki-name > * { animation: ki-in .9s cubic-bezier(.16,1,.3,1) backwards; }
.ki-lab { display: block; font: 500 clamp(12px, 1.05vw, 16px)/1 'Montserrat', sans-serif; letter-spacing: .13em; text-transform: uppercase; color: #8A8A8A; animation-delay: .15s !important; }
.ki-title {
  display: inline-block; margin-top: .22em; font: 800 clamp(46px, 7.4vw, 124px)/1 'Poppins', sans-serif; letter-spacing: -0.045em;
  background: linear-gradient(180deg, #8A8A8A 0%, #666666 45%, #222222 100%); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent; animation-delay: .25s !important; padding: 0 .04em .06em;
}
.ki-title .y { color: #E8B931; -webkit-text-fill-color: #E8B931; }
.ki-sub { display: block; margin-top: .9em; font: 700 clamp(9.5px, .8vw, 12px)/1 'JetBrains Mono', monospace; letter-spacing: .14em; text-transform: uppercase; color: #666666; animation-delay: .4s !important; }

/* the scroll words: think it. → blink. → it's krt'd. */
.ki-w {
  position: absolute; left: 0; right: 0; margin: 0; text-align: center; pointer-events: none; opacity: 0;
  font-family: 'Poppins', sans-serif; font-weight: 800; text-transform: lowercase; letter-spacing: -0.045em; line-height: 1;
  font-size: clamp(46px, 9vw, 150px); will-change: transform, opacity;
}
.ki-w1 { color: #F3F3F3; }
.ki-w2 { top: 64%; color: #222222; text-shadow: 0 0 30px rgba(243,243,243,.55); }
.ki-w3 { top: 50%; margin-top: -0.5em; color: #222222; }
.ki-w .y { color: #E8B931; }
.ki-w3 .y { color: #F3F3F3; }
@media (max-width: 639px) {
  .ki-logo { font-size: 20px; }
  .ki-w2 { top: 66%; }
}
