/* Eleventake Labs. The black and white brand of eleventake.com and the Hub: Archivo wide for headings, Inter for text,
   white buttons with round corners, green only where a game is played. The page opens with the crew, then the projects. */
:root { --bg:#050507; --card:#0c0c10; --ink:#f4f4f6; --muted:#a3a3ad; --line:rgba(255,255,255,.11); --play:#19fb9b;
  --cut:8.53deg; --wrap:1440px; --gut:clamp(20px, 6vw - 30px, 96px); }
* { box-sizing:border-box; margin:0; padding:0; }
html { background:var(--bg); scroll-behavior:smooth; }
body { background:var(--bg); color:var(--ink); font:16px/1.55 Inter,system-ui,sans-serif; overflow-x:hidden; -webkit-font-smoothing:antialiased; }
a { color:inherit; text-decoration:none; }
img { display:block; max-width:100%; height:auto; }
.h { font-family:Archivo,sans-serif; font-weight:800; font-stretch:125%; text-transform:uppercase; line-height:.95; letter-spacing:-.012em; }
.wrap { max-width:var(--wrap); margin:0 auto; padding:0 var(--gut); }
.skip { position:absolute; left:-9999px; }
.skip:focus { left:16px; top:16px; z-index:10; background:var(--ink); color:var(--bg); padding:10px 14px; border-radius:8px; }
a:focus-visible { outline:2px solid #fff; outline-offset:3px; }

.btn { display:inline-flex; align-items:center; height:52px; padding:0 24px; border-radius:12px; font-weight:700; font-size:16px; white-space:nowrap; transition:transform .2s, background .2s; }
.btn:hover { transform:translateY(-2px); }
.btn--white { background:var(--ink); color:#05050a; }
.btn--white:hover { background:#fff; }
.btn--play { background:var(--play); color:#04110c; }

/* top bar */
.top { position:absolute; inset:0 0 auto 0; z-index:5; }
.top .wrap { display:flex; align-items:center; gap:36px; height:84px; }
.brand { display:flex; align-items:center; gap:12px; }
.brand svg { width:26px; height:29px; }
.brand b, .brand i { font:800 17px/1 Archivo,sans-serif; font-stretch:125%; letter-spacing:.01em; font-style:normal; }
.brand i { color:var(--muted); margin-left:-4px; }
.top nav { display:flex; gap:28px; margin-right:auto; font-weight:600; font-size:15px; color:#d6d6dc; }
.top nav a:hover { color:#fff; }
.top .btn { height:42px; padding:0 18px; font-size:14px; border-radius:10px; }

/* crew: each cat stands in its own frame. A light runs round the frame on its own; under the pointer it follows the
   pointer instead, the cat turns a little toward it and hops once when the pointer arrives. */
@property --a { syntax:"<angle>"; inherits:true; initial-value:200deg; }
.crew { position:relative; padding:150px 0 clamp(56px, 6vw, 96px); overflow:hidden; border-bottom:1px solid var(--line); }
.crew__in { display:grid; grid-template-columns:minmax(320px, 1fr) 1.3fr; gap:clamp(24px, 4vw, 72px); align-items:end; }
.crew__text { padding-bottom:clamp(24px, 4vw, 64px); }
.crew h1 { font-size:clamp(32px, 3vw, 50px); }
.lead { max-width:520px; margin-top:24px; font-size:19px; color:#cfcfd6; }
.stage { display:grid; grid-template-columns:repeat(3, 1fr); gap:clamp(8px, 1.4vw, 20px); }
.cat { --px:0; position:relative; min-width:0; display:flex; flex-direction:column; border-radius:22px; overflow:hidden; isolation:isolate;
  background:linear-gradient(#0f0f13, #08080b); animation:arrive .9s cubic-bezier(.2,.8,.2,1) calc(var(--d) + .1s) both; }
/* the frame: a 1px ring whose bright arc sits at angle --a */
.cat::after { content:""; position:absolute; inset:0; z-index:3; border-radius:inherit; padding:1px; pointer-events:none;
  background:conic-gradient(from var(--a), rgba(255,255,255,.75), rgba(255,255,255,.1) 16%, rgba(255,255,255,.1) 84%, rgba(255,255,255,.75));
  -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite:xor; mask-composite:exclude;
  animation:orbit 9s linear calc(var(--d) * -20) infinite; }
/* an animation would win over the pointer angle set on the card, so it stops while the pointer is there */
.cat.near::after { animation:none; }
.cat figure { position:relative; height:clamp(180px, 27vw, 420px); display:grid; place-items:end center; padding:clamp(14px, 2vw, 30px) 8% 0; }
/* the light the cat stands in and its shadow, which slides away from the pointer */
.cat figure::before { content:""; position:absolute; inset:0; background:radial-gradient(70% 62% at 50% 100%, rgba(255,255,255,.12), transparent 72%); }
.cat figure::after { content:""; position:absolute; left:22%; right:22%; bottom:-6px; height:22px; border-radius:50%; background:rgba(0,0,0,.75);
  filter:blur(8px); translate:calc(var(--px) * -10px) 0; transition:translate .4s cubic-bezier(.2,.8,.2,1); animation:shade 3.6s ease-in-out calc(var(--d) * -9) infinite alternate; }
.cat img { position:relative; z-index:1; max-height:100%; width:auto; max-width:100%; transform-origin:50% 100%;
  translate:calc(var(--px) * 6px) 0; rotate:calc(var(--px) * 2.5deg); transition:translate .4s cubic-bezier(.2,.8,.2,1), rotate .4s cubic-bezier(.2,.8,.2,1);
  animation:breathe 3.6s ease-in-out calc(var(--d) * -9) infinite alternate; }
.cat.hop img { animation:hop .62s cubic-bezier(.3,.7,.4,1) 1; }
/* the name sits on a floor whose top edge slants like the mark */
.cat__tag { position:relative; z-index:2; display:flex; flex-direction:column; align-items:center; text-align:center;
  padding:clamp(18px, 2vw, 28px) 8px clamp(18px, 2vw, 26px); background:#121217; clip-path:polygon(0 12px, 100% 0, 100% 100%, 0 100%); margin-top:-12px; }
.cat h2 { font-size:clamp(14px, 1.9vw, 28px); }
.cat a { margin-top:8px; font-weight:600; font-size:clamp(12px, 1.2vw, 15px); color:#d6d6dc; border-bottom:1px solid rgba(255,255,255,.3); }
.cat a:hover { color:#fff; border-color:#fff; }
@keyframes arrive { from { opacity:0; transform:translateY(50px); } }
@keyframes orbit { to { --a:560deg; } }
@keyframes breathe { to { scale:1 1.025; } }
@keyframes shade { to { scale:1.08 1; opacity:.85; } }
@keyframes hop { 0% { scale:1 1; } 18% { scale:1.04 .94; translate:calc(var(--px) * 6px) 0; } 50% { scale:.97 1.04; translate:calc(var(--px) * 6px) -22px; }
  80% { scale:1.03 .97; translate:calc(var(--px) * 6px) 0; } 100% { scale:1 1; } }

/* projects */
.projects { padding:120px 0 40px; }
.sec-h { font-size:clamp(34px, 4.6vw, 64px); margin-bottom:48px; }
.proj { display:grid; grid-template-columns:1fr 1.25fr; border:1px solid var(--line); border-radius:22px; overflow:hidden; background:var(--card); }
.proj + .proj { margin-top:18px; }
.proj__text { display:flex; flex-direction:column; align-items:flex-start; padding:clamp(28px, 3.4vw, 52px); }
.proj__n { color:var(--muted); font-weight:600; font-size:14px; letter-spacing:.08em; }
.proj h3 { margin-top:14px; font-size:clamp(30px, 3.4vw, 50px); }
.proj p { margin-top:16px; max-width:30em; font-size:17px; color:#cfcfd6; }
.proj .btn { margin-top:auto; }
.proj p + .btn { margin-top:32px; }
/* the picture's left edge is cut at the angle of the mark */
.proj__art { position:relative; display:block; min-height:380px; overflow:hidden; clip-path:polygon(9% 0, 100% 0, 100% 100%, 0 100%); }
.proj__art img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; transition:transform .6s cubic-bezier(.2,.8,.2,1); }
.proj:hover .proj__art img { transform:scale(1.03); }
.proj__art--hub { background:radial-gradient(70% 80% at 60% 100%, rgba(255,255,255,.12), transparent 70%), #101014; }
.proj__art--hub img { object-fit:contain; object-position:center bottom; padding-top:24px; }

/* footer */
.foot .wrap { display:flex; align-items:center; gap:14px; margin-top:80px; padding-top:28px; padding-bottom:40px; border-top:1px solid var(--line); color:var(--muted); font-size:14px; }
.foot svg { width:20px; height:22px; color:var(--ink); }
.foot nav { margin-left:auto; display:flex; gap:24px; }
.foot nav a:hover { color:#fff; }

@media (max-width:900px) {
  .top nav { display:none; }
  .crew { padding-top:120px; }
  .crew__in { grid-template-columns:1fr; }
  .crew__text { padding-bottom:0; }
  .crew h1 { font-size:clamp(34px, 8vw, 56px); }
  .lead { font-size:17px; }
  .stage { margin-top:40px; }
  .projects { padding-top:80px; }
  .proj { grid-template-columns:1fr; }
  .proj__art { order:-1; min-height:0; aspect-ratio:16 / 10; clip-path:polygon(0 0, 100% 0, 100% 100%, 0 92%); }
  .foot .wrap { flex-wrap:wrap; }
  .foot nav { margin-left:0; width:100%; }
}
@media (max-width:520px) {
  .top .btn { display:none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto; }
  .cat, .cat::after, .cat img, .cat figure::after, .cat.hop img { animation:none; }
  .cat img, .cat figure::after, .proj__art img, .btn { transition:none; }
}

/* 404 */
.lost { min-height:100vh; display:flex; align-items:center; }
.lost .wrap { display:flex; align-items:center; gap:clamp(24px, 5vw, 72px); width:100%; }
.lost img { width:clamp(120px, 20vw, 260px); filter:drop-shadow(0 26px 22px rgba(0,0,0,.75)); }
.lost h1 { font-size:clamp(34px, 5vw, 72px); }
.lost .btn { margin-top:32px; }
@media (max-width:640px) { .lost .wrap { flex-direction:column; align-items:flex-start; padding-top:110px; } }
