/* ═══════════════════════════════════════════════════════════════
   KASHMIR KHANAURI AI — SaaS Design System
   Deep navy · warm gold accent · Fraunces + Inter
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg:      #070b14;
  --bg-2:    #0b1220;
  --bg-3:    #0f172a;
  --surface: rgba(255, 255, 255, .04);
  --surface-2: rgba(255, 255, 255, .07);
  --line:    rgba(255, 255, 255, .09);
  --line-2:  rgba(255, 255, 255, .16);

  --accent:  #d4a24e;
  --accent-2: #f0c674;
  --yt:      #ff1f1f;
  --yt-dark: #e01414;

  --text:    #e8edf6;
  --muted:   #96a1b5;
  --faint:   #5d6678;

  --head: "Fraunces", "Playfair Display", Georgia, serif;
  --sans: Inter, system-ui, -apple-system, sans-serif;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-pill: 999px;

  --shadow-lg: 0 24px 70px -20px rgba(0, 0, 0, .7);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --nav-h: 68px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(212, 162, 78, .45); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .12); border-radius: 99px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .22); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ═══════════════ BACKGROUND (full page) ═══════════════ */
#starfield {
  position: fixed; inset: 0;
  width: 100vw; height: 100vh;
  z-index: 0; pointer-events: none;
}
.glow {
  position: fixed; z-index: 0; pointer-events: none;
  border-radius: 50%; filter: blur(120px); opacity: .55;
}
.glow--a { width: 48vw; height: 48vw; top: -20vw; left: -12vw; background: radial-gradient(circle, rgba(212, 162, 78, .14), transparent 70%); }
.glow--b { width: 40vw; height: 40vw; bottom: -16vw; right: -10vw; background: radial-gradient(circle, rgba(240, 198, 116, .08), transparent 70%); }

.site { position: relative; z-index: 1; }

/* ═══════════════ LOADER (video only) ═══════════════ */
.loader {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--bg);
  transition: opacity .8s var(--ease), visibility .8s;
}
.loader--done { opacity: 0; visibility: hidden; }
.loader__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

@keyframes msgFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ═══════════════ BUTTONS ═══════════════ */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .6rem 1.15rem;
  border-radius: var(--r-pill);
  font-size: .84rem; font-weight: 600; letter-spacing: .01em;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s;
}
.btn--yt {
  color: #fff;
  background: var(--yt);
  box-shadow: 0 8px 24px -8px rgba(255, 31, 31, .55);
}
.btn--yt:hover { background: var(--yt-dark); transform: translateY(-2px); box-shadow: 0 12px 32px -8px rgba(255, 31, 31, .6); }
.btn--ghost {
  color: var(--text);
  background: var(--surface);
  border-color: var(--line-2);
  padding: .75rem 1.8rem;
}
.btn--ghost:hover {
  color: var(--accent-2);
  background: rgba(212, 162, 78, .08);
  border-color: rgba(212, 162, 78, .55);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -12px rgba(0, 0, 0, .6), 0 0 26px -6px rgba(212, 162, 78, .4);
}

/* ═══════════════ NAV ═══════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(1rem, 4vw, 2.6rem);
  background: rgba(7, 11, 20, .6);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color .4s, background .4s;
}
.nav--scrolled { border-color: var(--line); background: rgba(7, 11, 20, .85); }
.nav__brand { display: flex; align-items: center; gap: .65rem; }
.nav__mark {
  display: block;
  width: 36px; height: 36px; border-radius: 11px;
  overflow: hidden;
  border: 1px solid rgba(240, 198, 116, .22);
  box-shadow: 0 6px 18px -8px rgba(212, 162, 78, .45);
  transition: transform .4s var(--ease);
}
.nav__mark img { width: 100%; height: 100%; object-fit: cover; }
.nav__brand:hover .nav__mark { transform: scale(1.08) rotate(-6deg); }
.nav__name {
  display: flex; flex-direction: column; line-height: 1.15;
  font-family: var(--head); font-size: 1.02rem; font-weight: 700; letter-spacing: .01em;
}
.nav__name em {
  font-family: var(--sans); font-style: normal;
  font-size: .56rem; font-weight: 700; letter-spacing: .34em;
  text-transform: uppercase; color: var(--accent);
}
.nav__links { display: flex; gap: 2rem; }
.nav__links a {
  position: relative;
  font-size: .87rem; font-weight: 500; color: var(--muted);
  padding: .25rem 0;
  transition: color .25s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1.5px; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { transform: scaleX(1); }
@media (max-width: 720px) { .nav__links { display: none; } }

/* ═══════════════ CHAT STAGE (ChatGPT-style) ═══════════════ */
.stage {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column;
  padding: calc(var(--nav-h) + 1rem) 1rem 0;
  overflow: hidden;
}
.stage__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;                    /* JS crossfade loop drives opacity */
  pointer-events: none;
  z-index: 0;
}
.stage__veil {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 65% at 50% 40%, transparent 0%, rgba(7, 11, 20, .5) 75%),
    linear-gradient(rgba(7, 11, 20, .35), rgba(7, 11, 20, .92));
}
.stage__center, .stage__log, .newchat { position: relative; z-index: 1; }
.stage__center {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  width: min(760px, 100%);
  margin: 0 auto;
  transition: opacity .4s var(--ease);
}
.stage--chat .stage__center { display: none; }

.welcome { display: flex; flex-direction: column; align-items: center; }
.welcome__mark {
  width: 58px; height: 58px; border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(240, 198, 116, .28);
  box-shadow: 0 14px 40px -12px rgba(212, 162, 78, .4);
  margin-bottom: 1.6rem;
  animation: float 5s ease-in-out infinite;
}
.welcome__mark img { width: 100%; height: 100%; object-fit: cover; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.welcome__title {
  font-family: var(--head);
  font-size: clamp(2rem, 6vw, 3.4rem);
  font-weight: 700; line-height: 1.12; letter-spacing: -.01em;
  text-wrap: balance;
}
.welcome__sub {
  max-width: 52ch; margin-top: 1rem;
  font-size: clamp(.92rem, 2vw, 1.02rem); font-weight: 300;
  color: var(--muted);
}
.welcome__sub strong { color: var(--text); font-weight: 600; }

/* ── Dock (input) ── */
.dock { width: 100%; margin-top: 2rem; }
.stage--chat .dock {
  position: sticky; bottom: 0;
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 1rem 0 1.2rem;
  background: linear-gradient(rgba(7, 11, 20, 0), var(--bg) 55%);
}
.dock__inner {
  display: flex; align-items: flex-end; gap: .6rem;
  padding: .7rem .7rem .7rem 1.1rem;
  background: rgba(15, 23, 42, .85);
  border: 1px solid var(--line-2);
  border-radius: 26px;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
  transition: border-color .3s, box-shadow .3s;
}
.dock__inner:focus-within {
  border-color: rgba(212, 162, 78, .55);
  box-shadow: var(--shadow-lg), 0 0 0 4px rgba(212, 162, 78, .1), 0 0 40px -8px rgba(212, 162, 78, .35);
}
.dock__input {
  flex: 1; resize: none; border: none; background: none;
  color: var(--text); font-family: var(--sans);
  font-size: .98rem; line-height: 1.5;
  max-height: 140px; padding: .55rem 0;
}
.dock__input:focus { outline: none; }
.dock__input::placeholder { color: var(--faint); }
.dock__count { font-size: .64rem; color: var(--faint); padding-bottom: .6rem; flex: none; letter-spacing: .06em; }
.dock__send {
  flex: none; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #a87c33);
  box-shadow: 0 8px 22px -8px rgba(212, 162, 78, .7);
  transition: transform .25s var(--ease), box-shadow .25s, filter .25s;
}
.dock__send:hover { transform: translateY(-2px) scale(1.05); box-shadow: 0 12px 28px -8px rgba(212, 162, 78, .8); }
.dock__send:active { transform: scale(.92); }
.dock__send:disabled { filter: grayscale(.6) brightness(.55); cursor: default; transform: none; }
.dock__hint {
  font-size: .68rem; color: var(--faint);
  margin-top: .6rem; text-align: center;
}
.stage--chat .dock__hint { font-size: .62rem; margin-top: .45rem; }

/* ── Chips ── */
.chips {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem;
  margin-top: 1.6rem;
}
.chip {
  font-size: .8rem; font-weight: 500; color: var(--muted);
  padding: .5rem 1rem; border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--line);
  transition: all .25s var(--ease);
}
.chip:hover {
  color: var(--text);
  border-color: rgba(212, 162, 78, .5);
  background: rgba(212, 162, 78, .1);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px -10px rgba(212, 162, 78, .5);
}

/* ── Stats ── */
.stats {
  display: flex; flex-wrap: wrap; justify-content: center;
  margin-top: 2.6rem;
  padding: 1.35rem clamp(.6rem, 4vw, 2.4rem);
  background: rgba(15, 23, 42, .48);
  border: 1px solid rgba(212, 162, 78, .16);
  border-radius: var(--r-lg);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px -28px rgba(0, 0, 0, .65), inset 0 1px 0 rgba(255, 255, 255, .05);
}
.stat { position: relative; text-align: center; padding: 0 clamp(1.2rem, 4vw, 2.6rem); }
.stat + .stat::before {
  content: ""; position: absolute; left: 0; top: 12%; bottom: 12%;
  width: 1px;
  background: linear-gradient(transparent, rgba(240, 198, 116, .22), transparent);
}
@media (max-width: 560px) {
  .stats { flex-direction: column; gap: 1rem; padding: 1.3rem 1.5rem; }
  .stat { padding: 0; }
  .stat + .stat::before {
    left: 18%; right: 18%; top: -.55rem; bottom: auto; width: auto; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(240, 198, 116, .22), transparent);
  }
}
.stat__num {
  font-family: var(--head); font-size: clamp(1.4rem, 3.5vw, 1.9rem);
  font-weight: 700; color: var(--text); line-height: 1;
}
.stat__label { font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--faint); margin-top: .4rem; }

/* ── New chat button ── */
.newchat {
  position: absolute; top: calc(var(--nav-h) + .8rem); right: clamp(1rem, 4vw, 2.6rem);
  z-index: 20;
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .8rem; font-weight: 600;
  color: #0b1220;
  padding: .55rem 1.1rem; border-radius: var(--r-pill);
  background: #ffffff;
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .5);
  transition: transform .25s var(--ease), box-shadow .25s, background .25s;
}
.newchat:hover { transform: translateY(-2px); background: #eef1f7; box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .55); }

/* ── Log ── */
.stage__log {
  display: none;
  width: min(760px, 100%);
  margin: 0 auto;
  flex-direction: column; gap: 1.6rem;
  padding: 2rem 0 1rem;
  overflow-y: auto;
}
.stage--chat .stage__log { display: flex; flex: 1; }

.msg { display: flex; gap: .8rem; animation: msgFade .5s var(--ease); }
.msg--user { justify-content: flex-end; }
.msg--user .msg__text {
  max-width: 80%;
  padding: .8rem 1.15rem;
  font-size: .95rem;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: 20px; border-bottom-right-radius: 6px;
  white-space: pre-wrap;
}
.msg--ai { align-items: flex-start; }
.msg__avatar {
  flex: none; width: 32px; height: 32px; border-radius: 10px;
  overflow: hidden; display: block;
  border: 1px solid rgba(240, 198, 116, .2);
  box-shadow: 0 6px 16px -8px rgba(212, 162, 78, .5);
}
.msg__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.msg--ai .msg__bubble { min-width: 0; flex: 1; }
.msg__text { font-size: .95rem; line-height: 1.7; }
.msg--ai .msg__text { color: var(--text); white-space: pre-wrap; }

/* ── Typing ── */
.typing { display: inline-flex; gap: .4rem; padding: .9rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; border-top-left-radius: 4px; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: typing 1.1s ease-in-out infinite; }
.typing span:nth-child(2) { animation-delay: .16s; background: var(--accent-2); }
.typing span:nth-child(3) { animation-delay: .32s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-5px); opacity: 1; } }

/* ── Video recommendations in chat ── */
.rec { margin-top: 1rem; }
.rec__label {
  display: flex; align-items: center; gap: .7rem;
  font-size: .62rem; font-weight: 700; letter-spacing: .26em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .8rem;
}
.rec__label::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(212, 162, 78, .35), transparent); }
.rec__list { display: flex; flex-direction: column; gap: .7rem; }

.vcard {
  display: flex; gap: .9rem; padding: .65rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: all .3s var(--ease);
}
.vcard:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 162, 78, .45);
  background: rgba(212, 162, 78, .06);
  box-shadow: 0 14px 34px -14px rgba(0, 0, 0, .7), 0 0 30px -12px rgba(212, 162, 78, .4);
}
.vcard__thumb {
  position: relative; flex: none;
  width: 156px; aspect-ratio: 16 / 9;
  border-radius: var(--r-sm); overflow: hidden;
  background: var(--bg-3);
}
.vcard__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.vcard:hover .vcard__thumb img { transform: scale(1.08); }
.vcard__dur {
  position: absolute; right: 5px; bottom: 5px;
  font-size: .6rem; font-weight: 600;
  padding: .12rem .4rem; border-radius: 5px;
  background: rgba(0, 0, 0, .82); color: #fff;
}
.vcard__play {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(7, 11, 20, .3); opacity: 0; transition: opacity .3s;
}
.vcard:hover .vcard__play { opacity: 1; }
.vcard__play svg { width: 30px; height: 30px; filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .6)); }
.vcard__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.vcard__title {
  font-size: .84rem; font-weight: 600; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.vcard__sum {
  margin-top: .3rem; font-size: .74rem; color: var(--muted); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.vcard__meta { margin-top: auto; padding-top: .4rem; display: flex; align-items: center; gap: .7rem; font-size: .64rem; color: var(--faint); }
.vcard__meta .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--faint); flex: none; }
.vcard__watch { margin-left: auto; color: var(--accent); font-weight: 600; font-size: .66rem; transition: gap .25s; }
.vcard:hover .vcard__watch { gap: .3rem; }

@media (max-width: 540px) {
  .vcard { flex-direction: column; }
  .vcard__thumb { width: 100%; }
}

/* ═══════════════ SECTION HEADERS ═══════════════ */
.section-head { text-align: center; padding: 0 1rem; margin-bottom: 2.4rem; }
.section-head__eyebrow { font-size: .64rem; font-weight: 700; letter-spacing: .32em; text-transform: uppercase; color: var(--accent); margin-bottom: .7rem; }
.section-head__title { font-family: var(--head); font-size: clamp(1.7rem, 4.5vw, 2.6rem); font-weight: 700; letter-spacing: -.01em; line-height: 1.12; text-wrap: balance; }
.section-head__sub { color: var(--muted); margin-top: .6rem; font-size: .9rem; }

/* ═══════════════ BACKGROUND VIDEOS (sections) ═══════════════ */
.videos, .about { position: relative; overflow: hidden; }
.videos > .bg-video, .about > .bg-video,
.videos > .bg-veil, .about > .bg-veil {
  position: absolute; inset: 0;
  z-index: 0;
  pointer-events: none;
}
.bg-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;                    /* JS crossfade loop drives opacity */
  pointer-events: none;
  z-index: 0;
  /* fade the top/bottom edges so the video melts into the page */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 14%, #000 86%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 14%, #000 86%, transparent 100%);
}
.bg-veil {
  position: absolute; inset: 0; pointer-events: none;
  /* light scrim — video stays clearly visible, text stays readable */
  background: linear-gradient(rgba(7, 11, 20, .32), rgba(7, 11, 20, .5));
}
.videos > :not(.bg-video):not(.bg-veil),
.about > :not(.bg-video):not(.bg-veil) { position: relative; z-index: 1; }

/* ═══════════════ NO-THUMBNAIL PLACEHOLDER ═══════════════ */
.no-thumb img, img.is-dead { display: none; }
.no-thumb {
  background: linear-gradient(140deg, #101a30, #0b1220);
}
.tcard__thumbwrap.no-thumb::after, .vcard__thumb.no-thumb::after {
  content: "";
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='rgba(255,255,255,.32)' d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 34px 34px no-repeat;
}

/* ═══════════════ VIDEO LIBRARY ═══════════════ */
.videos { padding: 4.5rem 1.25rem 5rem; }
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.3rem;
  align-items: start;            /* mixed 16:9 and 9:16 cards sit cleanly */
  max-width: 1160px; margin: 0 auto;
}
.tcard {
  position: relative;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .4s var(--ease), border-color .4s, box-shadow .4s var(--ease);
  animation: msgFade .6s var(--ease) both;
}
.tcard:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 162, 78, .45);
  box-shadow: 0 22px 50px -18px rgba(0, 0, 0, .75), 0 0 36px -14px rgba(212, 162, 78, .35);
}
.tcard__thumbwrap {
  position: relative;
  aspect-ratio: 16 / 9;          /* standard videos */
  overflow: hidden;
  background: var(--bg-3);
}
.tcard--short .tcard__thumbwrap {
  aspect-ratio: 9 / 16;          /* YouTube Shorts */
}
.tcard__thumbwrap img {
  width: 100%; height: 100%;
  object-fit: cover;             /* fills the box — no stretch, no bars */
  transition: transform .55s var(--ease);
}
.tcard:hover .tcard__thumbwrap img { transform: scale(1.07); }
.tcard__dur {
  position: absolute; right: 7px; bottom: 7px;
  font-size: .62rem; font-weight: 600;
  padding: .18rem .45rem; border-radius: 5px;
  background: rgba(0, 0, 0, .82); color: #fff;
}
.tcard__play {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: linear-gradient(rgba(7, 11, 20, .1), rgba(7, 11, 20, .45));
  opacity: 0; transition: opacity .35s;
}
.tcard:hover .tcard__play { opacity: 1; }
.tcard__play svg { width: 46px; height: 46px; filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .7)); transform: scale(.86); transition: transform .35s var(--ease); }
.tcard:hover .tcard__play svg { transform: scale(1); }
.tcard__body { padding: .9rem 1rem 1rem; }

/* Shorts cards — title overlays the vertical thumbnail */
.tcard--short .tcard__body {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2.6rem .95rem .85rem;
  background: linear-gradient(transparent, rgba(7, 11, 20, .94));
}
.tcard--short .tcard__title { font-size: .82rem; min-height: 0; color: #fff; }
.tcard--short .tcard__meta { color: rgba(255, 255, 255, .62); }
.tcard__title {
  font-size: .9rem; font-weight: 600; line-height: 1.4; min-height: 2.4em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tcard__meta { margin-top: .55rem; display: flex; gap: .6rem; font-size: .66rem; color: var(--faint); }
.videos-more { text-align: center; margin-top: 2.4rem; }

/* ═══════════════ ABOUT ═══════════════ */
.about { padding: 4.5rem 1.25rem 5.5rem; }
.about__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
  max-width: 1000px; margin: 0 auto;
}
.about__card {
  padding: 1.8rem 1.5rem;
  background: var(--surface);
  border: 1px solid rgba(212, 162, 78, .15);
  border-radius: var(--r-lg);
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s var(--ease);
}
.about__card:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 162, 78, .45);
  box-shadow: 0 22px 48px -18px rgba(0, 0, 0, .7), 0 14px 44px -16px rgba(212, 162, 78, .3);
}
.about__icon {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 13px;
  color: var(--accent);
  background: rgba(212, 162, 78, .1);
  border: 1px solid rgba(212, 162, 78, .25);
}
.about__card h3 { font-family: var(--head); font-size: 1.05rem; font-weight: 700; margin-top: 1rem; }
.about__card p { font-size: .84rem; color: var(--muted); margin-top: .45rem; }
.about__cta { text-align: center; margin-top: 2.8rem; }

/* ═══════════════ FOOTER ═══════════════ */
.footer {
  text-align: center;
  padding: 2.6rem 1.25rem;
  border-top: 1px solid var(--line);
}
.footer__links { display: flex; justify-content: center; gap: 1rem; font-size: .82rem; color: var(--faint); }
.footer__links a { color: var(--muted); transition: color .25s; }
.footer__links a:hover { color: var(--accent); }
.footer__copy { margin-top: 1.1rem; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }

/* ═══════════════ REVEAL ═══════════════ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal--in { opacity: 1; transform: none; }

/* ═══════════════ 3D DEPTH LAYER (orb · tilt · parallax) ═══════════════ */

/* Glass orb canvas — absolutely centered on the logo mark by JS */
.welcome { position: relative; }
.welcome__mark { position: relative; z-index: 2; }
.orb-canvas {
  position: absolute; z-index: 1;
  width: 176px; height: 176px;
  pointer-events: none;
}

/* Scroll parallax: videos get 16% overdraw top/bottom so the
   JS translate never reveals the section edges. */
@media (prefers-reduced-motion: no-preference) {
  .stage__bg,
  .videos > .bg-video,
  .about > .bg-video {
    top: -16%; bottom: auto; height: 132%;
    will-change: transform;
  }
}

/* Tilt state — inline transform/box-shadow come from JS */
.tcard.is-tilt {
  border-color: rgba(240, 198, 116, .55);
  filter: brightness(1.07);
}
.tcard.is-tilt::after {
  content: ""; position: absolute; inset: 0; z-index: 5;
  pointer-events: none; border-radius: inherit;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%),
              rgba(255, 243, 214, .13), transparent 65%);
}

/* Touch devices: simple tap-scale feedback instead of tilt */
@media (hover: none) {
  .tcard { transition: transform .18s var(--ease); }
  .tcard:active { transform: scale(.96); }
}

/* ═══════════════ MOTION SAFETY ═══════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* ═══════════════ LANGUAGE MODAL ═══════════════ */
.lang-modal {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(7, 11, 20, .92);
  backdrop-filter: blur(8px);
  animation: fadeIn .4s var(--ease);
}
.lang-modal[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.lang-modal__card {
  width: min(90vw, 420px);
  padding: 2.5rem 2rem;
  background: rgba(15, 23, 42, .95);
  border: 1px solid rgba(212, 162, 78, .25);
  border-radius: var(--r-lg);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8), 0 0 60px -10px rgba(212, 162, 78, .15);
  text-align: center;
  animation: slideUp .5s var(--ease);
}
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

.lang-modal__title {
  font-family: var(--head);
  font-size: clamp(1.3rem, 4vw, 1.7rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: .5rem;
}
.lang-modal__sub {
  font-size: .9rem; color: var(--muted);
  margin-bottom: 1.8rem;
}
.lang-modal__options {
  display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap;
}
.lang-btn {
  display: flex; flex-direction: column; align-items: center; gap: .3rem;
  width: 100px; padding: 1.1rem .8rem;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 2px solid var(--line);
  color: var(--text);
  transition: all .25s var(--ease);
}
.lang-btn:hover {
  border-color: var(--accent);
  background: rgba(212, 162, 78, .12);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px -10px rgba(212, 162, 78, .4);
}
.lang-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.lang-btn__code {
  font-family: var(--sans);
  font-size: .7rem; font-weight: 700; letter-spacing: .15em;
  color: var(--accent);
}
.lang-btn__name {
  font-family: var(--head);
  font-size: 1.05rem; font-weight: 600;
}
