/* ═══════════════════════════════════════════════════════════
   OVERLKD STUDIO — style.css
   Dark / Editorial / Flat / Pure Purple
═══════════════════════════════════════════════════════════ */

/* ── TOKENS ──────────────────────────────────────────────── */
:root {
  --black:         #0a0a0a;
  --black-soft:    #0f0f0f;
  --black-panel:   #111111;
  --purple-bg:     #1a0a2e;
  --purple-deep:   #5a3aef;   /* BY MY SIDE */
  --purple:        #9b5dff;   /* main accent */
  --purple-light:  #c084fc;   /* MINDGLITCH / manifesto */
  --purple-glow:   rgba(155, 93, 255, 0.09);
  --white:         #f0f0f0;
  --grey:          #888888;
  --divider:       #1c1c1c;

  --display:       'Bebas Neue', sans-serif;
  --body:          'Space Grotesk', sans-serif;

  --ease:          cubic-bezier(0.16, 1, 0.3, 1);
  --ease-fast:     cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { text-decoration: none; color: inherit; }

img { max-width: 100%; }

/* ── ACCESSIBILITY: focus + skip-link ────────────────────── */
:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
  border-radius: 1px;
}
/* Suppress the default outline only where :focus-visible is honoured */
:focus:not(:focus-visible) { outline: none; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  transform: translateY(-160%);
  background: var(--purple);
  color: #0a0a0a;
  font-family: var(--body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 12px 20px;
  transition: transform 0.2s var(--ease-fast);
}
.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

/* ── REVEAL ──────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity   0.9s var(--ease),
    transform 0.9s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--black);
}

/* Film-grain noise */
.hero__noise {
  position: absolute;
  inset: -60%;
  width: 220%;
  height: 220%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='320' height='320' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 320px 320px;
  opacity: 0.045;
  pointer-events: none;
  will-change: transform;
}

/* Purple bloom at bottom */
.hero__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 75% 65% at 50% 115%,
    var(--purple-bg) 0%,
    transparent 68%
  );
  pointer-events: none;
  will-change: transform;
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 clamp(20px, 4vw, 60px);
}

.hero__title {
  font-family: var(--display);
  font-size: clamp(72px, 17.5vw, 270px);
  line-height: 0.86;
  letter-spacing: 0.01em;
  color: var(--white);
  display: block;
  user-select: none;
}

.hero__line {
  display: block;
  animation: heroIn 1.3s var(--ease) both;
}

/* "STUDIO" — outlined ghost */
.hero__line--stroke {
  -webkit-text-stroke: clamp(1px, 0.15vw, 2px) rgba(155, 93, 255, 0.45);
  color: transparent;
  animation-delay: 0.14s;
}

.hero__sub {
  display: block;
  font-size: clamp(11px, 1.1vw, 14px);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--grey);
  margin-top: clamp(28px, 4vw, 52px);
  animation: heroIn 1.3s var(--ease) 0.3s both;
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 44px;
  left: 50%;
  transform: translateX(-50%);
  transition: opacity 0.4s;
}

.hero__scroll-track {
  display: block;
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, transparent 0%, var(--purple) 100%);
  animation: trackPulse 2.2s ease-in-out infinite;
  transform-origin: top;
}

@keyframes trackPulse {
  0%, 100% { transform: scaleY(1);   opacity: 0.35; }
  50%       { transform: scaleY(0.5); opacity: 0.85; }
}

/* ══════════════════════════════════════════════════════════
   MANIFESTO
══════════════════════════════════════════════════════════ */
.manifesto {
  border-top: 1px solid var(--divider);
  padding: clamp(80px, 12vw, 160px) clamp(24px, 9vw, 140px);
}

.manifesto__inner { max-width: 960px; }

.manifesto__eyebrow {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: clamp(40px, 6vw, 88px);
  font-weight: 400;
}

.manifesto__quote {
  font-family: var(--display);
  font-size: clamp(54px, 9.5vw, 148px);
  line-height: 0.87;
  color: var(--white);
  margin-bottom: clamp(32px, 4vw, 60px);
}

.manifesto__q-line { display: block; }

.manifesto__q-line--accent {
  color: var(--purple-light);
}

.manifesto__body {
  font-size: clamp(15px, 1.35vw, 18px);
  color: var(--grey);
  font-weight: 300;
  line-height: 1.75;
  max-width: 460px;
}

/* ══════════════════════════════════════════════════════════
   PROJECT SECTIONS — BASE
══════════════════════════════════════════════════════════ */
.proj {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  border-top: 1px solid var(--divider);
  overflow: hidden;
}

/* Ambient glow background */
.proj__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Ghost image layer — behind everything */
.proj__visual {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.proj__visual img {
  position: absolute;
  top: 0;
  height: 100%;
  width: 55%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.55;
  filter: grayscale(0.35) brightness(0.9);
  transition: opacity 0.6s var(--ease-fast);
}

/* Cinematic background video (e.g. By My Side gameplay) */
.proj__visual video {
  position: absolute; top: 0; height: 100%; width: 55%;
  object-fit: cover; object-position: center;
  opacity: 0.5; filter: grayscale(0.12) brightness(0.9);
}
.proj--bms .proj__visual video { right: 0; left: auto; object-position: 74% center; }

/* Gradient mask so the image fades into black */
.proj__visual::after {
  content: '';
  position: absolute;
  inset: 0;
}

/* Huge number watermark */
.proj__watermark {
  position: absolute;
  font-family: var(--display);
  font-size: clamp(240px, 38vw, 560px);
  line-height: 1;
  letter-spacing: -0.06em;
  opacity: 0.07;
  pointer-events: none;
  user-select: none;
  top: -0.12em;
  right: -0.06em;
  z-index: 0;
}

.proj__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: clamp(60px, 7vw, 100px) clamp(24px, 8vw, 120px) clamp(60px, 7vw, 100px);
  display: flex;
  flex-direction: column;
}

.proj__head {
  display: flex;
  align-items: center;
  margin-bottom: clamp(16px, 2.5vw, 32px);
}

.proj__title {
  font-family: var(--display);
  font-size: clamp(80px, 14vw, 220px);
  line-height: 0.83;
  letter-spacing: 0.01em;
  color: var(--white);
  margin-bottom: clamp(40px, 5vw, 80px);
}

.proj__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.proj__links {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.proj__desc {
  font-size: clamp(15px, 1.3vw, 18px);
  color: var(--grey);
  line-height: 1.7;
  font-weight: 300;
}

.proj__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(13px, 1.1vw, 15px);
  letter-spacing: 0.07em;
  color: var(--white);
  white-space: nowrap;
  transition: color 0.3s var(--ease-fast);
  flex-shrink: 0;
}

.proj__link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-fast);
}

.proj__link:hover { color: var(--proj-accent, var(--purple)); }
.proj__link:hover svg { transform: translate(4px, -4px); }

.proj__link--gh {
  font-size: clamp(12px, 1vw, 13px);
  color: var(--grey);
  letter-spacing: 0.1em;
}

.proj__link--gh:hover { color: var(--proj-accent, var(--purple)); }

/* ── 01 BY MY SIDE ───────────────────────────────────────── */
.proj--bms {
  --proj-accent: var(--purple-deep);
}

.proj--bms .proj__bg {
  background: radial-gradient(
    ellipse 55% 55% at -5% 105%,
    rgba(90, 58, 239, 0.14) 0%,
    transparent 65%
  );
}

.proj--bms .proj__watermark { color: var(--purple-deep); }

/* Image: right half */
.proj--bms .proj__visual img {
  right: 0;
  left: auto;
}

.proj--bms .proj__visual::after {
  background: linear-gradient(to right, var(--black) 20%, transparent 72%);
}

/* ── 02 VULTURE AI ───────────────────────────────────────── */
.proj--vulture {
  --proj-accent: var(--purple);
}

/* Project logo mark (Vulture AI) — sits above the title, follows the column's alignment */
.proj__logo {
  width: clamp(84px, 9vw, 148px); height: auto; display: block;
  margin: 0 0 clamp(16px, 2vw, 26px);
  filter: drop-shadow(0 12px 36px rgba(155, 93, 255, 0.42));
}

.proj--vulture .proj__bg {
  background: radial-gradient(
    ellipse 55% 55% at 105% 105%,
    rgba(155, 93, 255, 0.1) 0%,
    transparent 65%
  );
}

.proj--vulture .proj__watermark {
  color: var(--purple);
  right: auto;
  left: -0.06em;
}

/* Image: left half */
.proj--vulture .proj__visual img {
  left: 0;
  right: auto;
}

.proj--vulture .proj__visual::after {
  background: linear-gradient(to left, var(--black) 20%, transparent 72%);
}

/* Right-aligned content */
.proj__inner--r { text-align: right; }
.proj__head--r  { justify-content: flex-end; }
.proj__foot--r  { flex-direction: row-reverse; }
.proj__links--r { flex-direction: row-reverse; }

/* ── 03 MINDGLITCH ───────────────────────────────────────── */
.proj--mindglitch {
  --proj-accent: var(--purple-light);
  align-items: center;
  min-height: 80vh;
}

.proj--mindglitch .proj__bg {
  background: radial-gradient(
    ellipse 60% 55% at 50% 110%,
    rgba(192, 132, 252, 0.1) 0%,
    transparent 68%
  );
}

.proj--mindglitch .proj__watermark {
  color: var(--purple-light);
  top: auto;
  bottom: -0.18em;
  right: 50%;
  transform: translateX(50%);
  opacity: 0.05;
}

/* Image: full stretch, centered */
.proj--mindglitch .proj__visual img {
  width: 100%;
  opacity: 0.42;
  left: 0;
}

.proj--mindglitch .proj__visual::after {
  background: radial-gradient(ellipse 92% 92% at 50% 50%, transparent 38%, var(--black) 86%);
}

/* ── 04 · Yoopla — right-aligned (like Vulture), teal accent ── */
.proj--yoopla { --proj-accent: #4fd6c9; }
.proj--yoopla .proj__bg {
  background: radial-gradient(ellipse 55% 55% at 105% 105%,
    rgba(79, 214, 201, 0.10) 0%, transparent 60%);
}
.proj--yoopla .proj__watermark { color: #4fd6c9; right: auto; left: -0.06em; }
.proj--yoopla .proj__visual img { left: 0; right: auto; }
.proj--yoopla .proj__visual::after {
  background: linear-gradient(to left, var(--black) 20%, transparent 72%);
}

/* Center-aligned content */
.proj__inner--c {
  align-items: center;
  text-align: center;
}

.proj__head--c { justify-content: center; }

.proj__title-accent { color: var(--purple-light); }

.proj__desc--c {
  max-width: 400px;
  margin-bottom: clamp(28px, 4vw, 52px);
}

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

.social-pill {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 12px 32px;
  border: 1px solid rgba(192, 132, 252, 0.35);
  color: var(--purple-light);
  transition: background 0.28s var(--ease-fast), border-color 0.28s, color 0.28s;
}

.social-pill:hover {
  background: rgba(192, 132, 252, 0.1);
  border-color: var(--purple-light);
  color: var(--white);
}

/* ══════════════════════════════════════════════════════════
   BADGES
══════════════════════════════════════════════════════════ */
.badge {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  font-family: var(--body);
  padding: 5px 12px;
  border: 1px solid currentColor;
}

.badge--live   { color: var(--purple-deep); }
.badge--open   { color: var(--purple); }
.badge--social { color: var(--purple-light); }

/* ══════════════════════════════════════════════════════════
   ROSTER — WEB & SAAS
══════════════════════════════════════════════════════════ */
.roster {
  border-top: 1px solid var(--divider);
  padding: clamp(60px, 8vw, 100px) clamp(24px, 8vw, 120px);
}

.roster__inner { max-width: 1400px; }

.roster__label {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--grey);
  font-weight: 500;
  margin-bottom: clamp(28px, 4vw, 52px);
}

.roster__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--divider);
}

.roster-item {
  background: var(--black);
  padding: clamp(28px, 3.5vw, 48px) clamp(20px, 2.5vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background 0.22s var(--ease-fast);
}

.roster-item:hover { background: var(--black-panel); }

.roster-item__name {
  font-family: var(--display);
  font-size: clamp(32px, 4vw, 56px);
  letter-spacing: 0.02em;
  color: var(--white);
  line-height: 1;
}

.roster-item__url {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
  transition: color 0.22s var(--ease-fast);
}

.roster-item:hover .roster-item__url { color: var(--purple); }

/* ══════════════════════════════════════════════════════════
   APPS
══════════════════════════════════════════════════════════ */
.apps {
  border-top: 1px solid var(--divider);
  padding: clamp(40px, 6vw, 72px) clamp(24px, 8vw, 120px);
}

.apps__inner { max-width: 1400px; }

.apps__row {
  display: flex;
  gap: 1px;
  background: var(--divider);
  flex-wrap: wrap;
}

.app-chip {
  background: var(--black);
  flex: 1;
  min-width: 180px;
  padding: clamp(20px, 2.5vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background 0.22s var(--ease-fast);
}

.app-chip:hover { background: var(--black-panel); }

.app-chip__name {
  font-family: var(--display);
  font-size: clamp(24px, 3vw, 38px);
  letter-spacing: 0.02em;
  color: var(--white);
  line-height: 1;
}

.app-chip__store {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey);
  transition: color 0.22s var(--ease-fast);
}

.app-chip:hover .app-chip__store { color: var(--purple); }

/* ══════════════════════════════════════════════════════════
   ABOUT / CONTACT
══════════════════════════════════════════════════════════ */
.about {
  position: relative;
  border-top: 1px solid var(--divider);
  padding: clamp(72px, 10vw, 148px) clamp(24px, 8vw, 120px);
  overflow: hidden;
}

.about::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 60% 60% at 100% 0%,
    rgba(155, 93, 255, 0.07) 0%,
    transparent 60%
  );
}

.about__inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
}

.about__label {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--grey);
  font-weight: 500;
  margin-bottom: clamp(28px, 4vw, 56px);
}

.about__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(36px, 6vw, 88px);
  align-items: start;
}

.about__lead {
  font-family: var(--display);
  font-size: clamp(28px, 4.4vw, 60px);
  line-height: 1.02;
  letter-spacing: 0.01em;
  color: var(--white);
  margin-bottom: clamp(20px, 2.5vw, 32px);
}

.about__body {
  font-size: clamp(15px, 1.3vw, 17px);
  color: var(--grey);
  font-weight: 300;
  line-height: 1.75;
  max-width: 560px;
}

.about__col--contact {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about__status {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--white);
}

.about__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 0 4px rgba(155, 93, 255, 0.15);
  animation: aboutPulse 2.6s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes aboutPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(155, 93, 255, 0.15); }
  50%      { box-shadow: 0 0 0 8px rgba(155, 93, 255, 0.03); }
}

.about__note {
  font-size: 13px;
  color: var(--grey);
  font-weight: 300;
  line-height: 1.7;
  max-width: 340px;
}

.about__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.about__link {
  font-family: var(--display);
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: 0.03em;
  color: var(--white);
  width: max-content;
  max-width: 100%;
  transition: color 0.25s var(--ease-fast);
}

.about__link:hover { color: var(--purple); }

/* ══════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════ */
.foot {
  border-top: 1px solid var(--divider);
  padding: clamp(56px, 7vw, 96px) clamp(24px, 8vw, 120px) clamp(40px, 5vw, 72px);
}

.foot__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
}

.foot__brand {
  font-family: var(--display);
  font-size: clamp(22px, 2.5vw, 32px);
  letter-spacing: 0.06em;
  color: var(--white);
  line-height: 1;
  margin-bottom: 8px;
}

.foot__tagline {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--grey);
}

.foot__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.foot__gh {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey);
  transition: color 0.25s;
}

.foot__gh:hover { color: var(--purple); }

.foot__year {
  font-size: 11px;
  color: #2d2d2d;
  letter-spacing: 0.08em;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .roster__grid { grid-template-columns: 1fr; }

  .about__grid { grid-template-columns: 1fr; gap: clamp(32px, 8vw, 48px); }

  .proj__watermark {
    font-size: clamp(140px, 45vw, 240px);
    opacity: 0.05;
  }

  .proj__visual img    { opacity: 0.42; }
  /* Dim the By My Side background video so mobile text stays readable */
  .proj__visual video  { opacity: 0.34; }
}

@media (max-width: 640px) {
  .proj__inner--r { text-align: left; }
  .proj__head--r  { justify-content: flex-start; }
  .proj__foot--r  { flex-direction: column; align-items: flex-start; }
  .proj__links--r { flex-direction: row; }

  .proj__foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  /* Shrink the huge project titles so single words (e.g. MINDGLITCH) never overflow */
  .proj__title {
    font-size: clamp(52px, 13.5vw, 110px);
    margin-bottom: clamp(28px, 6vw, 52px);
  }

  /* Background visuals stay decorative, not distracting, on small screens */
  .proj__visual img,
  .proj__visual video { opacity: 0.28; }

  /* Comfortable tap targets (>=40px) for inline links on touch devices */
  .proj__link { padding: 10px 0; }
  .foot__gh   { padding: 6px 0; }

  .apps__row { flex-direction: column; }

  .foot__inner { flex-direction: column; align-items: flex-start; }
  .foot__right { align-items: flex-start; flex-direction: row; gap: 20px; flex-wrap: wrap; }
}

@media (max-width: 400px) {
  .proj__inner--c { align-items: flex-start; text-align: left; }
  .proj__head--c  { justify-content: flex-start; }
  .proj__socials  { justify-content: flex-start; }
}

/* Extra-small safety — down to 320px */
@media (max-width: 360px) {
  .hero__title  { font-size: clamp(56px, 18vw, 72px); }
  /* MINDGLITCH is a 10-char single word — this min guarantees it fits at 320px */
  .proj__title  { font-size: clamp(46px, 13vw, 64px); }
  .manifesto__quote { font-size: clamp(48px, 15vw, 72px); }
  .social-pill  { padding: 11px 22px; }
  .proj__link   { white-space: normal; }
}

/* ══════════════════════════════════════════════════════════
   REDUCED MOTION — respect user preference
══════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  /* Show revealed content immediately, no travel */
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero__line,
  .hero__sub,
  .hero__scroll-track,
  .about__dot {
    animation: none !important;
  }
}
