/* =========================================================
   Tokoto Studio — modern rebuild
   Vanilla CSS. Dark cinematic. Parallax + scroll reveals.
   ========================================================= */

:root {
  --bg:        #06080d;
  --bg-2:      #0a0e16;
  --surface:   rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.07);
  --line:      rgba(255, 255, 255, 0.10);
  --text:      #eaf0f7;
  --muted:     #8c99ab;
  --accent:    #6db9ff;
  --accent-2:  #9b8cff;
  --grad:      linear-gradient(115deg, #6db9ff 0%, #9b8cff 60%, #d6a8ff 100%);
  --maxw:      1180px;
  --pad:       clamp(1.25rem, 5vw, 4rem);
  --ease:      cubic-bezier(.22, 1, .36, 1);
  color-scheme: dark;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

.skip {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--text); color: #000; padding: .6rem 1rem; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

::selection { background: rgba(109,185,255,.3); }

/* Display font */
.section__title, .hero__title, .dev__title, .contact__title { font-family: "Anton", "Jost", sans-serif; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* eyebrow */
.eyebrow {
  text-transform: uppercase; letter-spacing: .35em; font-size: .78rem;
  font-weight: 500; color: var(--accent);
}

/* ---------------------------------------------------------
   NAV
   --------------------------------------------------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .4s var(--ease), backdrop-filter .4s var(--ease), border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(6, 8, 13, .72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.nav__brand { display: flex; align-items: center; gap: .7rem; }
.nav__mark { width: 30px; height: 30px; opacity: .95; }
.nav__word {
  font-weight: 600; letter-spacing: .22em; font-size: 1.02rem; line-height: 1;
  display: flex; flex-direction: column;
}
.nav__word small { font-size: .6rem; letter-spacing: .42em; color: var(--muted); font-weight: 400; }

.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links a {
  font-size: .92rem; letter-spacing: .06em; color: var(--text); opacity: .8;
  transition: opacity .25s; position: relative; padding: .25rem 0;
}
.nav__links a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0;
  background: var(--accent); transition: width .3s var(--ease);
}
.nav__links a:hover { opacity: 1; }
.nav__links a:not(.nav__cta):hover::after { width: 100%; }
.nav__cta {
  border: 1px solid var(--line); padding: .5rem 1.1rem !important; border-radius: 999px;
  opacity: 1 !important; transition: background .25s, border-color .25s, color .25s;
}
.nav__cta:hover { background: var(--text); color: #000; border-color: var(--text); }

.nav__toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0;
  cursor: pointer; padding: 8px; z-index: 101;
}
.nav__toggle span { width: 26px; height: 2px; background: var(--text); transition: transform .3s var(--ease), opacity .3s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed; inset: 0 0 0 auto; width: min(82vw, 340px);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 1.6rem;
    padding: 0 2.4rem; background: rgba(8,11,18,.96);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border-left: 1px solid var(--line);
    transform: translateX(100%); transition: transform .42s var(--ease);
  }
  .nav__links a { font-size: 1.3rem; }
  body.menu-open .nav__links { transform: translateX(0); }
  body.menu-open { overflow: hidden; }
}

/* ---------------------------------------------------------
   HERO
   --------------------------------------------------------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  overflow: hidden;
}
.hero__media { position: absolute; inset: -8% 0; z-index: 0; will-change: transform; }
.hero__video { width: 100%; height: 100%; object-fit: cover; }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 70% 20%, transparent 0%, rgba(6,8,13,.35) 55%, var(--bg) 100%),
    linear-gradient(180deg, rgba(6,8,13,.55) 0%, rgba(6,8,13,.15) 35%, rgba(6,8,13,.9) 100%);
}
.hero__grain {
  position: absolute; inset: 0; opacity: .05; pointer-events: none; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__content { position: relative; z-index: 2; padding-block: 8rem 6rem; max-width: 60rem; }
.hero__title {
  font-size: clamp(3rem, 13vw, 9.5rem); line-height: .92; text-transform: uppercase;
  letter-spacing: -.01em; margin: 1.2rem 0 1.6rem; will-change: transform;
}
.hero__title span { display: block; }
.hero__lede { font-size: clamp(1.05rem, 2.2vw, 1.4rem); color: #d4dde8; max-width: 38rem; }
.hero__lede strong { color: var(--text); font-weight: 500; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.4rem; }

.btn {
  display: inline-flex; align-items: center; gap: .5rem; font-size: .95rem; font-weight: 500;
  letter-spacing: .04em; padding: .95rem 1.8rem; border-radius: 999px;
  transition: transform .25s var(--ease), box-shadow .25s, background .25s, color .25s; cursor: pointer;
}
.btn--primary { background: var(--text); color: #05070c; }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px -12px rgba(109,185,255,.6); }
.btn--ghost { border: 1px solid var(--line); color: var(--text); }
.btn--ghost:hover { background: var(--surface-2); transform: translateY(-2px); }

.hero__scroll {
  position: absolute; left: 50%; bottom: 1.7rem; transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
  font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted);
}
.hero__scroll-line { width: 1px; height: 46px; background: linear-gradient(var(--accent), transparent); position: relative; overflow: hidden; }
.hero__scroll-line::after { content: ""; position: absolute; top: -50%; left: 0; width: 100%; height: 50%; background: var(--text); animation: scrolldot 2s var(--ease) infinite; }
@keyframes scrolldot { 0% { top: -50%; } 60%,100% { top: 100%; } }

/* ---------------------------------------------------------
   INTRO + TICKER
   --------------------------------------------------------- */
.intro { padding-block: clamp(4rem, 10vw, 9rem) 0; background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.intro__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(1.5rem, 5vw, 5rem); align-items: end; }
.intro__lead { font-size: clamp(1.6rem, 3.6vw, 3rem); font-weight: 300; line-height: 1.15; letter-spacing: -.01em; }
.intro__lead em { font-style: normal; color: var(--accent); }
.intro__text { color: var(--muted); font-size: 1.05rem; }

.ticker { margin-top: clamp(3rem, 7vw, 6rem); border-block: 1px solid var(--line); overflow: hidden; padding-block: 1.4rem; }
.ticker__track { display: inline-flex; gap: 2.5rem; white-space: nowrap; animation: ticker 32s linear infinite; }
.ticker__track span { font-family: "Anton", sans-serif; font-size: clamp(1.4rem, 3vw, 2.6rem); text-transform: uppercase; letter-spacing: .02em; color: var(--muted); }
.ticker__track span:nth-child(3n+1) { color: var(--text); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------
   SECTION shells
   --------------------------------------------------------- */
.section { padding-block: clamp(4.5rem, 11vw, 9rem); position: relative; }
.services { background: var(--bg-2); }
.works { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.team { background: var(--bg); }
.clients { background: linear-gradient(180deg, var(--bg), var(--bg-2)); }

.section__head { display: grid; grid-template-columns: auto 1fr; gap: .4rem 2rem; align-items: start; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.section__index { font-family: "Anton", sans-serif; font-size: 1rem; color: var(--accent); letter-spacing: .1em; padding-top: .6rem; }
.section__title { font-size: clamp(2.4rem, 7vw, 5.2rem); line-height: .92; text-transform: uppercase; letter-spacing: -.01em; }
.section__sub { grid-column: 2; color: var(--muted); max-width: 34rem; font-size: 1.05rem; margin-top: .4rem; }

/* ---------------------------------------------------------
   SERVICE CARDS
   --------------------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 1.1rem; }
.card {
  position: relative; padding: 2rem 1.8rem 2.2rem; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line); overflow: hidden;
  transition: transform .4s var(--ease), background .4s, border-color .4s;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .4s;
}
.card:hover { transform: translateY(-6px); background: var(--surface-2); }
.card:hover::before { opacity: 1; }
.card__num { font-family: "Anton", sans-serif; font-size: 1rem; color: var(--muted); letter-spacing: .15em; }
.card__title { font-size: 1.5rem; font-weight: 500; margin: .9rem 0 .5rem; letter-spacing: .01em; }
.card__tags { font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); margin-bottom: 1rem; }
.card__text { color: var(--muted); font-size: .96rem; }
.card--accent { background: linear-gradient(160deg, rgba(109,185,255,.12), rgba(155,140,255,.06)); }

/* showreel */
.showreel { margin-top: 1.1rem; }
.feature__frame, .showreel__frame {
  position: relative; aspect-ratio: 16/9; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line); background: #000; box-shadow: 0 40px 90px -50px rgba(109,185,255,.5);
}
.feature__frame iframe, .showreel__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.showreel figcaption { margin-top: .9rem; color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .18em; }

/* we also help with */
.helpwith { margin-top: clamp(3rem, 7vw, 5.5rem); }
.helpwith__title { font-size: clamp(1.5rem, 3.5vw, 2.2rem); font-weight: 400; }
.helpwith__tags { font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: var(--accent); margin: .5rem 0 1rem; }
.helpwith__text { color: var(--muted); max-width: 46rem; margin-bottom: 2rem; }
.helpwith__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.tile { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); will-change: transform; }
.tile img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; transition: transform .6s var(--ease); }
.tile:hover img { transform: scale(1.06); }
.tile figcaption {
  position: absolute; left: 1rem; bottom: .85rem; font-size: .82rem; text-transform: uppercase;
  letter-spacing: .18em; padding: .35rem .8rem; border-radius: 999px;
  background: rgba(6,8,13,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}

/* ---------------------------------------------------------
   WORKS + UNDER DEV
   --------------------------------------------------------- */
.credits { list-style: none; display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; margin-top: 1.6rem; color: var(--muted); font-size: .85rem; }
.credits span { color: var(--text); font-weight: 500; margin-right: .4rem; }

.dev { position: relative; margin-top: clamp(4rem, 9vw, 7rem); min-height: 78svh; display: flex; align-items: center; overflow: hidden; }
.dev__media { position: absolute; inset: -10% 0; z-index: 0; will-change: transform; }
.dev__media img { width: 100%; height: 100%; object-fit: cover; }
.dev__scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,8,13,.92) 0%, rgba(6,8,13,.55) 55%, rgba(6,8,13,.25) 100%); }
.dev__content { position: relative; z-index: 2; }
.badge {
  display: inline-block; font-size: .72rem; text-transform: uppercase; letter-spacing: .25em;
  color: var(--accent-2); border: 1px solid rgba(155,140,255,.45); padding: .4rem .9rem; border-radius: 999px;
}
.dev__title { font-size: clamp(2.2rem, 6.5vw, 5rem); line-height: .95; text-transform: uppercase; margin: 1.2rem 0 1rem; }
.dev__text { color: #cfd8e4; max-width: 34rem; font-size: 1.05rem; }
.dev__text strong { color: var(--text); }

/* ---------------------------------------------------------
   TEAM
   --------------------------------------------------------- */
.team__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.member { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.member__img { aspect-ratio: 3/4; overflow: hidden; }
.member__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.15) contrast(1.02); transition: transform .6s var(--ease), filter .6s; }
.member:hover .member__img img { transform: scale(1.07); filter: none; }
.member figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem 1.1rem .9rem;
  display: flex; flex-direction: column; gap: .1rem;
  background: linear-gradient(transparent, rgba(6,8,13,.9));
}
.member__name { font-size: 1.2rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.member__role { font-size: .75rem; color: var(--accent); letter-spacing: .1em; }

/* ---------------------------------------------------------
   CLIENTS / LOGO WALLS
   --------------------------------------------------------- */
.chip {
  display: grid; place-items: center; background: rgba(255,255,255,.92);
  border-radius: 14px; padding: 1.1rem 1.4rem; aspect-ratio: 16/9;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.chip img { max-height: 100%; max-width: 100%; width: auto; object-fit: contain; }

.logos-marquee { position: relative; display: flex; gap: 1rem; overflow: hidden; padding-block: 1rem; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.logos-marquee__track { display: flex; gap: 1rem; align-items: stretch; animation: marquee 38s linear infinite; }
.logos-marquee:hover .logos-marquee__track { animation-play-state: paused; }
.logos-marquee__track .chip { flex: 0 0 auto; width: 180px; }
@keyframes marquee { to { transform: translateX(calc(-100% - 1rem)); } }

.clients__sub { font-size: clamp(1.3rem, 3vw, 1.9rem); font-weight: 400; text-transform: uppercase; letter-spacing: .08em; margin: clamp(2.5rem, 6vw, 4rem) 0 1.5rem; }
.logos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1rem; }
.logos-grid .chip:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -22px rgba(0,0,0,.8); }

/* ---------------------------------------------------------
   CONTACT
   --------------------------------------------------------- */
.contact { position: relative; overflow: hidden; min-height: 92svh; display: flex; align-items: center; background: var(--bg-2); }
.contact__media { position: absolute; inset: -10% 0; z-index: 0; will-change: transform; }
.contact__media img { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.contact__scrim { position: absolute; inset: 0; background: radial-gradient(80% 80% at 50% 50%, rgba(6,8,13,.6), var(--bg) 100%); }
.contact__inner { position: relative; z-index: 2; text-align: center; }
.contact__inner .section__index { display: block; }
.contact__title { font-size: clamp(2.6rem, 9vw, 7rem); line-height: .92; text-transform: uppercase; margin: 1rem 0; }
.contact__lede { color: var(--muted); max-width: 34rem; margin: 0 auto 2.2rem; font-size: 1.1rem; }
.contact__mail { display: inline-block; font-size: clamp(1.4rem, 4vw, 2.4rem); font-weight: 500; letter-spacing: -.01em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; transition: opacity .25s; }
.contact__mail:hover { opacity: .75; }
.contact__addr { color: var(--muted); margin-top: 1rem; font-size: .95rem; letter-spacing: .04em; }
.contact__social { display: flex; gap: 1.5rem; justify-content: center; margin-top: 2rem; }
.contact__social a { font-size: .85rem; text-transform: uppercase; letter-spacing: .18em; padding-bottom: .25rem; border-bottom: 1px solid var(--line); transition: border-color .25s, color .25s; }
.contact__social a:hover { border-color: var(--accent); color: var(--accent); }

/* ---------------------------------------------------------
   FOOTER
   --------------------------------------------------------- */
.footer { background: var(--bg); border-top: 1px solid var(--line); padding-block: 3rem; }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: .9rem; text-align: center; }
.footer__brand img { height: 54px; width: auto; opacity: .9; }
.footer__tag { letter-spacing: .12em; text-transform: uppercase; font-size: .82rem; color: var(--muted); }
.footer__copy { color: rgba(140,153,171,.7); font-size: .78rem; }

/* ---------------------------------------------------------
   REVEAL (scroll-in)
   --------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .ticker__track, .logos-marquee__track, .hero__scroll-line::after { animation: none; }
}

/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */
@media (max-width: 760px) {
  .intro__grid { grid-template-columns: 1fr; align-items: start; }
  .section__head { grid-template-columns: 1fr; }
  .section__sub { grid-column: 1; }
  .hero__content { padding-block: 7rem 5rem; }
  .dev__scrim { background: linear-gradient(180deg, rgba(6,8,13,.65), rgba(6,8,13,.92)); }
}
