/* ─────────────────────────────────────────
   AK Visuals – Main Stylesheet
   ───────────────────────────────────────── */

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Base */
html, body {
  overflow: hidden;
  height: 100%;
}

body.ak-body {
  background: #0E0E0E;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Anton', sans-serif;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; background: none; border: none; font: inherit; color: inherit; }

/* ── App Container ───────────────────────── */
.ak-app {
  position: relative;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  background: #0E0E0E;
  color: #fff;
}

/* ── WebGL Canvas ────────────────────────── */
#webgl-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: #0E0E0E;
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* ── Fallback ────────────────────────────── */
#webgl-fallback {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: #0E0E0E;
  overflow: hidden;
  display: none;
}
#webgl-fallback.active { display: block; }

.fb-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}
.fb-blob--center {
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(139,47,201,.22) 0%, rgba(192,132,252,.07) 40%, transparent 70%);
}
.fb-blob--topleft {
  top: 25%; left: 15%;
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(220,50,50,.12) 0%, transparent 70%);
  filter: blur(80px);
}
.fb-blob--bottomright {
  bottom: 15%; right: 10%;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(192,132,252,.12) 0%, transparent 70%);
}

/* ── Sections Wrapper ────────────────────── */
.sections-wrapper {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}

/* ── Generic Section ─────────────────────── */
.ak-section {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  z-index: 10;
}

/* ── Shared card top-bar ─────────────────── */
.card-top-bar {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, #8b2fc9, #c084fc, transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s ease;
  z-index: 10;
}

/* ──────────────────────────────────────────
   NAVIGATION
   ────────────────────────────────────────── */
#ak-navigation {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
}

/* Name – top-center */
.nav-name {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: auto;
}
.nav-name span {
  font-family: 'Montserrat', monospace;
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
  white-space: nowrap;
}

/* Dots – right side */
.nav-dots {
  position: absolute;
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
  pointer-events: auto;
}

.nav-dot-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 0;
  outline: none;
}
.nav-dot-btn:focus-visible { outline: 1px solid rgba(255,255,255,.3); }

.nav-dot-num {
  font-family: 'Montserrat', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  color: rgba(255,255,255,.3);
  transition: color .3s;
}
.nav-dot-btn:hover .nav-dot-num { color: rgba(255,255,255,.6); }
.nav-dot-btn.active .nav-dot-num { color: #fff; }

.nav-dot-bar {
  border-radius: 999px;
  background: rgba(255,255,255,.25);
  width: 4px;
  height: 4px;
  transition: height .4s ease, background .4s ease;
}
.nav-dot-btn:hover .nav-dot-bar { height: 12px; background: rgba(255,255,255,.5); }
.nav-dot-btn.active .nav-dot-bar { height: 32px; background: #fff; }

/* Scene label – bottom-left */
.nav-scene-label {
  position: absolute;
  bottom: 24px;
  left: 24px;
  font-family: 'Montserrat', monospace;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  overflow: hidden;
  pointer-events: none;
}

/* Bottom-right */
.nav-bottom-right {
  position: absolute;
  bottom: 24px;
  right: 24px;
  display: flex;
  align-items: flex-end;
  gap: 20px;
  pointer-events: auto;
}

.scroll-hint {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: .4;
  transition: opacity .3s;
  cursor: pointer;
  outline: none;
}
.scroll-hint:hover { opacity: .7; }
.scroll-hint__text {
  font-size: 10px;
  font-family: 'Montserrat', monospace;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #fff;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  margin-bottom: 6px;
  white-space: nowrap;
}
.scroll-hint__line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, #fff, transparent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-icon-link {
  color: rgba(255,255,255,.4);
  display: flex;
  align-items: center;
  transition: color .3s, transform .3s;
}
.nav-icon-link:hover { color: rgba(255,255,255,.8); transform: scale(1.1); }

.nav-divider-v {
  width: 1px;
  height: 12px;
  background: rgba(255,255,255,.1);
}

.nav-text-link {
  font-family: 'Montserrat', monospace;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: lowercase;
  color: rgba(255,255,255,.4);
  position: relative;
  transition: color .3s;
}
.nav-text-link::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 100%; height: 1px;
  background: rgba(255,255,255,.4);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s;
}
.nav-text-link:hover { color: rgba(255,255,255,.8); }
.nav-text-link:hover::after { transform: scaleX(1); }

/* ──────────────────────────────────────────
   HERO SECTION
   ────────────────────────────────────────── */
#section-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-headline-wrap { overflow: hidden; }

.hero-headline {
  font-family: 'Anton', sans-serif;
  font-size: clamp(60px, 12vw, 176px);
  line-height: 1;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}
@media (min-width: 768px) {
  .hero-headline { flex-direction: row; gap: 24px; }
}

.hero-headline span { display: block; transform-origin: bottom; }
.hero-headline--outline {
  color: transparent;
  -webkit-text-stroke: 2px #fff;
}

.hero-sub {
  margin-top: 32px;
  color: rgba(255,255,255,.5);
  font-family: 'Montserrat', monospace;
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.hero-btn {
  pointer-events: auto;
  margin-top: 40px;
  padding: 16px 32px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  font-family: 'Montserrat', monospace;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  background: none;
  cursor: pointer;
  transition: background .5s, color .5s;
}
.hero-btn:hover { background: #fff; color: #000; }

.hero-scroll-hint {
  margin-top: 64px;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: .3;
  pointer-events: none;
}
.hero-scroll-hint__line { width: 1px; height: 32px; background: #fff; }
.hero-scroll-hint__text {
  font-family: 'Montserrat', monospace;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #fff;
}

/* ──────────────────────────────────────────
   ABOUT SECTION
   ────────────────────────────────────────── */
#section-about {
  display: flex;
  align-items: center;
  padding: 0 24px;
  max-width: 90rem;
  margin: 0 auto;
  left: 0; right: 0;
}
@media (min-width: 768px) { #section-about { padding: 0 96px; } }

.about-inner { width: 100%; max-width: 60%; }
@media (max-width: 767px) { .about-inner { max-width: 100%; } }

.about-headline {
  font-family: 'Anton', sans-serif;
  font-size: clamp(32px, 6vw, 72px);
  color: #fff;
  line-height: 1.05;
  margin-bottom: 32px;
}

.about-headline--gradient {
  background: linear-gradient(135deg, #8b2fc9 0%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-text {
  font-family: 'Montserrat', monospace;
  font-size: 13px;
  color: rgba(255,255,255,.8);
  letter-spacing: 3px;
  line-height: 2;
  text-transform: uppercase;
  margin-bottom: 48px;
  max-width: 560px;
}

.about-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 32px;
}

.about-stat__val {
  font-family: 'Anton', sans-serif;
  font-size: 30px;
  color: #fff;
}
.about-stat__lbl {
  font-family: 'Montserrat', monospace;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-top: 4px;
}
.about-stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,.1); }

/* ──────────────────────────────────────────
   SERVICES SECTION
   ────────────────────────────────────────── */
#section-services {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 16px;
  max-width: 90rem;
  margin: 0 auto;
  left: 0; right: 0;
}
@media (min-width: 768px) { #section-services { padding: 0 64px; } }

.services-inner { width: 100%; }

.services-scroll-wrapper {
  overflow-y: auto;
  max-height: calc(100dvh - 10rem);
}
@media (min-width: 768px) {
  .services-scroll-wrapper { overflow: visible; max-height: none; }
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 768px) {
  .services-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
}

.service-card {
  position: relative;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.05);
  background: rgba(0,0,0,.2);
  backdrop-filter: blur(8px);
  cursor: pointer;
  overflow: hidden;
  pointer-events: auto;
  transition: background .5s;
}
@media (min-width: 768px) { .service-card { padding: 40px; } }
.service-card:hover { background: rgba(255,255,255,.04); }
.service-card:hover .card-top-bar { transform: scaleX(1); }
.service-card:hover .service-card__title { transform: translateX(8px); }
.service-card:hover .service-card__desc { transform: translateX(8px); }

.service-card__num {
  font-family: 'Montserrat', monospace;
  font-size: 11px;
  letter-spacing: 3px;
  color: #c084fc;
  margin-bottom: 12px;
}
@media (min-width: 768px) { .service-card__num { margin-bottom: 40px; } }

.service-card__title {
  font-family: 'Anton', sans-serif;
  font-size: clamp(24px, 4vw, 48px);
  color: #fff;
  margin-bottom: 4px;
  transition: transform .4s;
}
@media (min-width: 768px) { .service-card__title { margin-bottom: 12px; } }

.service-card__desc {
  font-family: 'Montserrat', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  transition: transform .4s .075s;
}
@media (min-width: 768px) { .service-card__desc { font-size: 12px; } }

/* ──────────────────────────────────────────
   WORK SECTION
   ────────────────────────────────────────── */
#section-work {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 24px;
}
@media (min-width: 768px) { #section-work { padding: 0 48px; } }

.work-inner { width: 100%; }

.work-cards {
  display: flex;
  gap: 12px;
  width: 100%;
  height: 60vh;
}
@media (min-width: 768px) { .work-cards { gap: 24px; height: 70vh; } }

.work-card {
  flex: 1;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  pointer-events: auto;
  transition: transform .15s ease-out;
}
.work-card:hover .work-card__bg img {
  opacity: .8;
  mix-blend-mode: normal;
  transform: scale(1.05);
}
.work-card:hover .work-card__hover-grad { opacity: 1; }
.work-card:hover .work-card__bar { transform: scaleX(1); }

.work-card__bg {
  position: absolute;
  inset: 0;
  background: #111;
}
.work-card__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .5;
  mix-blend-mode: luminosity;
  transition: opacity .7s, mix-blend-mode .7s, transform .7s;
}

.work-card__bar {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, #8b2fc9, #c084fc, transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s;
  z-index: 2;
}

.work-card__hover-grad {
  display: none;
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.8), transparent, transparent);
  opacity: 0;
  transition: opacity .5s;
  z-index: 1;
}
@media (min-width: 768px) { .work-card__hover-grad { display: block; } }

/* Mobile info (always-visible vertical text) */
.work-card__mobile-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  position: absolute;
  bottom: 16px; right: 8px;
  z-index: 3;
}
@media (min-width: 768px) { .work-card__mobile-info { display: none; } }

.work-card__mobile-info > span {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  font-family: 'Montserrat', monospace;
  text-transform: uppercase;
  white-space: nowrap;
}
.work-card__index { font-size: 9px; color: #c084fc; font-weight: 700; letter-spacing: 2px; }
.work-card__cat   { font-size: 8px; color: rgba(255,255,255,.5); font-weight: 500; letter-spacing: 2px; }
.work-card__title-vert {
  font-family: 'Anton', sans-serif;
  font-size: clamp(18px, 4vw, 26px);
  color: #fff;
  letter-spacing: 3px;
  line-height: 1;
  text-shadow: 0 2px 10px rgba(0,0,0,.9);
}

/* Mobile bottom gradient always on */
.work-card::before {
  content: '';
  display: block;
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.75), transparent);
  z-index: 1;
  pointer-events: none;
}
@media (min-width: 768px) { .work-card::before { display: none; } }

/* ──────────────────────────────────────────
   TEAM SECTION
   ────────────────────────────────────────── */
#section-team {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 24px;
  max-width: 90rem;
  margin: 0 auto;
  left: 0; right: 0;
}
@media (min-width: 768px) { #section-team { padding: 0 64px; } }

.team-inner { width: 100%; overflow-y: auto; max-height: calc(100dvh - 14rem); }
@media (min-width: 768px) { .team-inner { overflow: visible; max-height: none; } }

.team-label {
  font-family: 'Montserrat', monospace;
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #c084fc;
  margin-bottom: 32px;
}
@media (min-width: 768px) { .team-label { margin-bottom: 48px; } }

.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 768px) { .team-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

.team-card {
  position: relative;
  border: 1px solid rgba(255,255,255,.05);
  background: rgba(0,0,0,.2);
  backdrop-filter: blur(8px);
  overflow: hidden;
  pointer-events: auto;
  cursor: default;
  transition: background .5s;
}
.team-card:hover { background: rgba(255,255,255,.04); }
.team-card:hover .card-top-bar { transform: scaleX(1); }
.team-card:hover .team-card__name { transform: translateX(4px); }

.team-card__photo {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #111;
}
.team-card__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;
  opacity: .7;
  mix-blend-mode: luminosity;
  transition: opacity .7s, mix-blend-mode .7s, transform .7s;
}
.team-card:hover .team-card__photo img {
  opacity: .9;
  mix-blend-mode: normal;
  transform: scale(1.05);
}
.team-card__photo-grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #000, rgba(0,0,0,.2), transparent);
}

.team-card__info { padding: 20px; }
@media (min-width: 768px) { .team-card__info { padding: 24px; } }

.team-card__fn {
  font-family: 'Montserrat', monospace;
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #c084fc;
  margin-bottom: 12px;
}
.team-card__name {
  font-family: 'Anton', sans-serif;
  font-size: clamp(22px, 3vw, 30px);
  color: #fff;
  margin-bottom: 4px;
  transition: transform .3s;
}
.team-card__pos {
  font-family: 'Montserrat', monospace;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 16px;
  line-height: 1.6;
}
.team-card__divider { width: 32px; height: 1px; background: rgba(255,255,255,.1); margin-bottom: 16px; }
.team-card__bio {
  font-family: 'Montserrat', monospace;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  line-height: 2;
}

/* ──────────────────────────────────────────
   CONTINUE SECTION
   ────────────────────────────────────────── */
#section-continue {
  display: flex;
  align-items: center;
  justify-content: center;
}

.continue-inner { text-align: center; }

.continue-text {
  font-family: 'Montserrat', monospace;
  font-size: clamp(11px, 1.5vw, 14px);
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
  font-weight: 300;
}

/* ──────────────────────────────────────────
   CONTACT SECTION
   ────────────────────────────────────────── */
#section-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
}

.contact-inner {
  text-align: center;
  max-width: 1024px;
  width: 100%;
}

.contact-headline {
  font-family: 'Anton', sans-serif;
  font-size: clamp(40px, 8vw, 104px);
  color: #fff;
  line-height: .9;
  margin-bottom: 48px;
}
.contact-headline--outline {
  color: transparent;
  -webkit-text-stroke: 2px #fff;
}

.contact-email-wrap { margin-bottom: 0; }

.contact-email {
  display: inline-block;
  font-family: 'Montserrat', monospace;
  font-size: clamp(13px, 2vw, 20px);
  color: rgba(255,255,255,.8);
  letter-spacing: 3px;
  text-transform: uppercase;
  position: relative;
  transition: color .3s;
  pointer-events: auto;
}
.contact-email:hover { color: #c084fc; }
.contact-email__underline {
  position: absolute;
  bottom: -4px; left: 0;
  width: 100%; height: 1px;
  background: linear-gradient(90deg, #8b2fc9, #c084fc);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s;
}
.contact-email:hover .contact-email__underline { transform: scaleX(1); }

.contact-btn-wrap { margin-top: 32px; }

.contact-btn {
  display: inline-block;
  padding: 16px 40px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  font-family: 'Montserrat', monospace;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  transition: background .5s, color .5s;
  pointer-events: auto;
}
.contact-btn:hover { background: #fff; color: #000; }

.contact-footer {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-family: 'Montserrat', monospace;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
}
@media (min-width: 768px) {
  .contact-footer { flex-direction: row; }
}

/* ──────────────────────────────────────────
   CUSTOM CURSOR
   ────────────────────────────────────────── */
#custom-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  mix-blend-mode: difference;
  pointer-events: none;
  z-index: 100;
  transform: translate3d(0, 0, 0) translate(-50%, -50%);
  transition: background-color .3s;
  will-change: transform;
}

/* ──────────────────────────────────────────
   404 PAGE
   ────────────────────────────────────────── */
.error404-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100dvh;
  gap: 16px;
  font-family: 'Montserrat', sans-serif;
  color: rgba(255,255,255,.7);
}
.error404-wrap h1 {
  font-family: 'Anton', sans-serif;
  font-size: 120px;
  color: #fff;
  line-height: 1;
}
.error404-wrap a {
  font-family: 'Montserrat', monospace;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #c084fc;
  text-decoration: underline;
}

/* ── Responsive nav padding ──────────────── */
@media (min-width: 768px) {
  .nav-name { top: 32px; }
  .nav-dots { right: 40px; }
  .nav-scene-label { bottom: 40px; left: 40px; }
  .nav-bottom-right { bottom: 40px; right: 40px; }
  .scroll-hint { display: flex; }
}
