/* Be Tuff studio page */
@font-face { font-family: "Geist"; src: url("/assets/fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/assets/fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #060709;
  --panel: #0c0e12;
  --line: rgba(255, 255, 255, .08);
  --line2: rgba(255, 255, 255, .14);
  --text: #f3f5f7;
  --muted: #9ba3ae;
  --dim: #6c7480;
  --blue: #22b5ff;
  --grad: linear-gradient(100deg, #7fe3ff 0%, #22b5ff 45%, #0b7cff 100%);
  --radius: 24px;
  --wrap: 1200px;
  --pad: clamp(20px, 4vw, 40px);
  --ease: cubic-bezier(.2, .75, .2, 1);
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: rgba(34, 181, 255, .35); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 10px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.skip { position: absolute; left: -9999px; top: 10px; z-index: 100; background: #fff; color: #000; padding: 10px 16px; border-radius: 10px; }
.skip:focus { left: 10px; }

/* Thin guide rails at the content edges (wide screens only) */
.rails { position: fixed; inset: 0; pointer-events: none; z-index: 0; display: none; }
@media (min-width: 1300px) {
  .rails { display: block; }
  .rails::before, .rails::after {
    content: ""; position: absolute; top: 0; bottom: 0; width: 1px;
    background: linear-gradient(to bottom, transparent, var(--line) 12%, var(--line) 88%, transparent);
  }
  .rails::before { left: calc(50% - var(--wrap) / 2); }
  .rails::after { right: calc(50% - var(--wrap) / 2); }
}
main, .foot { position: relative; z-index: 1; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  font-size: 16px; font-weight: 550; letter-spacing: -.01em; white-space: nowrap; cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s, border-color .25s, box-shadow .25s, color .25s;
}
.btn .arr { display: inline-block; transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.btn[target]:hover .arr { transform: translate(2px, -2px); }
.btn--light { background: #fff; color: #07080a; }
.btn--light:hover { transform: translateY(-1px); box-shadow: 0 10px 34px -6px rgba(255, 255, 255, .28); }
.btn--ghost { background: rgba(255, 255, 255, .03); border-color: var(--line2); color: var(--text); }
.btn--ghost:hover { border-color: rgba(255, 255, 255, .32); background: rgba(255, 255, 255, .06); }
.btn--sm { height: 40px; padding: 0 18px; font-size: 15px; }
.btn--lg { height: 58px; padding: 0 30px; font-size: 17px; }
.btn.is-done { border-color: rgba(61, 220, 151, .5); color: #7ff0bd; }

/* Nav */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; border-bottom: 1px solid transparent; transition: background-color .35s, border-color .35s, backdrop-filter .35s; }
.nav.is-scrolled { background: rgba(6, 7, 9, .72); -webkit-backdrop-filter: saturate(1.5) blur(18px); backdrop-filter: saturate(1.5) blur(18px); border-bottom-color: var(--line); }
.nav__inner { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 620; font-size: 18px; letter-spacing: -.02em; }
.brand img { width: auto; height: 22px; }
.nav__links { display: flex; gap: 2px; position: absolute; left: 50%; transform: translateX(-50%); }
.nav__links a { padding: 8px 15px; border-radius: 999px; color: var(--muted); font-size: 15px; transition: color .2s, background-color .2s; }
.nav__links a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
@media (max-width: 780px) { .nav__links { display: none; } }

/* Hero */
.hero { position: relative; min-height: min(100svh, 940px); display: flex; align-items: center; padding: 128px 0 88px; overflow: hidden; }
.hero__grid {
  position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 72% 45%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 55% at 72% 45%, #000 0%, transparent 75%);
}
.hero__glow {
  position: absolute; pointer-events: none; width: 1000px; height: 1000px; right: -220px; top: -180px;
  background: radial-gradient(closest-side, rgba(34, 181, 255, .20), rgba(34, 181, 255, .06) 55%, transparent);
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 24px; }
.hero__copy { position: relative; z-index: 2; }
.hero h1 { font-size: clamp(48px, 6.8vw, 100px); line-height: .96; letter-spacing: -.045em; font-weight: 640; margin: 26px 0 28px; text-wrap: balance; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .04em; }
.lead { font-size: clamp(18px, 1.45vw, 21px); color: var(--muted); max-width: 29em; line-height: 1.55; text-wrap: pretty; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

.live {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 15px 7px 13px; border-radius: 999px;
  border: 1px solid var(--line2); background: rgba(255, 255, 255, .03);
  font-family: var(--mono); font-size: 13.5px; color: var(--muted); letter-spacing: -.01em;
  opacity: 0; transform: translateY(6px); transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.live.is-on { opacity: 1; transform: none; }
.live b { color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #3ddc97; flex: none; animation: pulse 2.2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(61, 220, 151, .55); }
  70% { box-shadow: 0 0 0 9px rgba(61, 220, 151, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0); }
}

/* Hero card fan */
.fan { position: relative; height: clamp(300px, 40vw, 540px); perspective: 1400px; }
.fan__set { position: absolute; inset: 0 -4% 0 8%; transform-style: preserve-3d; transition: transform .8s var(--ease); }
.card {
  --x: 0%; --y: 0%; --r: 0deg;
  position: absolute; top: 50%; left: 50%; width: min(270px, 20vw); aspect-ratio: 1; border-radius: 13%;
  overflow: hidden; background: var(--panel);
  box-shadow: 0 40px 90px -24px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .12);
  transform: translate(-50%, -50%) translate(var(--x), var(--y)) rotate(var(--r));
  transition: transform .8s var(--ease);
  animation: float 8s ease-in-out infinite;
}
.card img { width: 100%; height: 100%; object-fit: cover; }
.card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(140deg, rgba(255, 255, 255, .22), transparent 38%); mix-blend-mode: overlay; }
.card--l { --x: -56%; --y: 7%; --r: -11deg; animation-delay: -2.6s; }
.card--r { --x: 56%; --y: 7%; --r: 11deg; animation-delay: -5.2s; }
.card--c { --y: -5%; width: min(310px, 23vw); animation-delay: 0s; }
.fan:hover .card--l { --x: -66%; --r: -14deg; }
.fan:hover .card--r { --x: 66%; --r: 14deg; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }

/* Load-in for the hero (CSS only, no script needed) */
.rise { animation: rise 1s var(--ease) both; }
.rise--1 { animation-delay: .05s; }
.rise--2 { animation-delay: .18s; }
.rise--3 { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* Numbers band */
.band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, .015), transparent); }
.band__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { padding: 40px 32px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__num { font-size: clamp(40px, 4.6vw, 64px); font-weight: 600; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat__label { margin-top: 14px; font-family: var(--mono); font-size: 12.5px; color: var(--dim); text-transform: uppercase; letter-spacing: .07em; }

/* Sections */
.section { padding: clamp(96px, 12vw, 168px) 0; position: relative; }
.section--line { border-top: 1px solid var(--line); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--blue); }
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: .7; }
.eyebrow--center { justify-content: center; }
.head h2, .closing h2 { font-size: clamp(38px, 5.4vw, 76px); line-height: 1.02; letter-spacing: -.042em; font-weight: 630; margin-top: 20px; max-width: 13em; text-wrap: balance; }
.sub { color: var(--muted); font-size: clamp(17px, 1.4vw, 19px); margin-top: 22px; max-width: 34em; text-wrap: pretty; }

/* Games */
.games { display: grid; gap: clamp(80px, 10vw, 136px); margin-top: clamp(64px, 8vw, 104px); }
.game { display: grid; grid-template-columns: 1.38fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.game:nth-child(even) .game__media { order: 2; }
.game--groceries { --tint: rgba(255, 140, 50, .55); }
.game--equestrian { --tint: rgba(186, 140, 255, .5); }
.game--roadster { --tint: rgba(40, 150, 255, .55); }
.game__media {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--panel);
  box-shadow: 0 0 0 1px var(--line2), 0 50px 140px -50px var(--tint);
  isolation: isolate;
}
.game__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.05); transition: opacity 1.1s var(--ease), transform 7s linear; }
.game__media img.is-on { opacity: 1; transform: scale(1); }
.dots { position: absolute; left: 14px; bottom: 10px; z-index: 2; display: flex; gap: 2px; }
.dots button { width: 34px; height: 28px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.dots button::after { content: ""; width: 24px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .4); transition: background-color .3s, width .3s; box-shadow: 0 1px 6px rgba(0, 0, 0, .4); }
.dots button.is-on::after { background: #fff; }
.dots button:hover::after { background: rgba(255, 255, 255, .75); }
.game__tag { font-family: var(--mono); font-size: 12.5px; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }
.game h3 { font-size: clamp(32px, 3.4vw, 48px); line-height: 1.04; letter-spacing: -.035em; font-weight: 630; margin: 14px 0 16px; }
.game__desc { color: var(--muted); text-wrap: pretty; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; list-style: none; }
.chips li { font-size: 14px; line-height: 1; padding: 9px 13px; border-radius: 999px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .025); color: #cdd3da; }
.gstats { display: flex; gap: 40px; margin: 28px 0 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.gstats div { display: flex; flex-direction: column-reverse; gap: 8px; }
.gstats dd { font-size: 30px; font-weight: 600; letter-spacing: -.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.gstats dt { font-family: var(--mono); font-size: 12px; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }

/* Approach */
.approach { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(40px, 7vw, 112px); }
.approach__head { position: sticky; top: 128px; align-self: start; }
.steps { list-style: none; border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 38px 0; border-bottom: 1px solid var(--line); }
.step__n { font-family: var(--mono); font-size: 13px; color: var(--blue); padding-top: 9px; }
.step h3 { font-size: clamp(23px, 2.2vw, 29px); line-height: 1.18; letter-spacing: -.028em; font-weight: 600; margin-bottom: 10px; }
.step p { color: var(--muted); max-width: 30em; }

/* Partners */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: clamp(48px, 6vw, 80px); }
.pcard {
  --mx: 50%; --my: 0%;
  position: relative; display: flex; flex-direction: column; min-height: 340px; padding: clamp(28px, 3.4vw, 44px);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .01));
  transition: border-color .35s;
}
.pcard::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(520px circle at var(--mx) var(--my), rgba(34, 181, 255, .13), transparent 60%);
}
.pcard:hover { border-color: var(--line2); }
.pcard:hover::before { opacity: 1; }
.pcard__label { font-family: var(--mono); font-size: 12.5px; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }
.pcard h3 { font-size: clamp(27px, 2.7vw, 36px); line-height: 1.1; letter-spacing: -.035em; font-weight: 620; margin: 18px 0 14px; max-width: 14em; text-wrap: balance; }
.pcard p { color: var(--muted); max-width: 30em; }
.pcard__link { margin-top: auto; padding-top: 36px; display: inline-flex; align-items: center; gap: 8px; font-weight: 550; align-self: flex-start; }
.pcard__link .arr { transition: transform .25s var(--ease); }
.pcard:hover .pcard__link .arr { transform: translateX(4px); }
.pcard__link::after { content: ""; position: absolute; inset: 0; } /* whole card is clickable */

/* Contact */
.closing { position: relative; text-align: center; padding: clamp(120px, 16vw, 210px) 0; border-top: 1px solid var(--line); overflow: hidden; }
.closing__glow { position: absolute; left: 50%; bottom: -560px; width: 1300px; height: 900px; transform: translateX(-50%); pointer-events: none; background: radial-gradient(closest-side, rgba(34, 181, 255, .22), rgba(34, 181, 255, .05) 55%, transparent); }
.closing h2 { margin: 22px auto 0; font-size: clamp(44px, 7vw, 104px); max-width: 11em; }
.sub--center { margin-left: auto; margin-right: auto; }
.mailrow { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 44px; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 30px 0 calc(34px + env(safe-area-inset-bottom)); color: var(--dim); font-size: 14px; }
.foot__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; }
.brand--foot { color: var(--text); font-size: 16px; }
.brand--foot img { height: 18px; }
.foot__top { display: inline-block; padding: 12px 0; transition: color .2s; }
.foot__top:hover { color: var(--text); }

/* Scroll reveal (only when scripts run, so nothing hides without JS) */
@media (scripting: enabled) {
  [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
  [data-reveal].is-in { opacity: 1; transform: none; }
  .steps .step:nth-child(2) { transition-delay: .06s; }
  .steps .step:nth-child(3) { transition-delay: .12s; }
  .steps .step:nth-child(4) { transition-delay: .18s; }
  .duo .pcard:nth-child(2) { transition-delay: .1s; }
}

/* Tablet */
@media (max-width: 980px) {
  .hero { min-height: 0; padding: 120px 0 72px; }
  .hero__inner { grid-template-columns: 1fr; gap: 56px; }
  .fan { height: clamp(260px, 62vw, 440px); }
  .fan__set { inset: 0; }
  .card { width: min(250px, 36vw); }
  .card--c { width: min(280px, 40vw); }
  .game, .approach { grid-template-columns: 1fr; }
  .game:nth-child(even) .game__media { order: 0; }
  .approach__head { position: static; }
}

/* Phone */
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .hero { padding: 104px 0 56px; }
  .hero h1 { font-size: clamp(44px, 12.4vw, 60px); margin: 22px 0 22px; }
  .cta { margin-top: 32px; }
  .cta .btn { flex: 1 1 auto; }
  .fan { height: 76vw; }
  .card { width: 38vw; }
  .card--c { width: 44vw; }
  .card--l { --x: -50%; --r: -10deg; }
  .card--r { --x: 50%; --r: 10deg; }
  .band__grid { grid-template-columns: 1fr; }
  .stat { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 24px 0; border-left: 0; border-top: 1px solid var(--line); }
  .stat:first-child { border-top: 0; }
  .stat__num { font-size: 40px; }
  .stat__label { margin-top: 0; text-align: right; max-width: 14em; }
  .game__media { border-radius: 18px; }
  .gstats { gap: 32px; }
  .game .btn { width: 100%; }
  .step { grid-template-columns: 44px 1fr; padding: 30px 0; }
  .duo { grid-template-columns: 1fr; }
  .pcard { min-height: 0; }
  .mailrow .btn { width: 100%; }
  .btn--lg { height: 56px; font-size: 16.5px; }
  .foot__inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* 404 page */
.closing--page { border: 0; min-height: 100svh; display: grid; place-items: center; }
