/* Eleventake Studio — shared styles. Look follows the "Endless E" logo:
   Solana gradient, arm ends cut like the Solana bars, dashed road lines, speed lines. */

:root {
  --bg: #07070d;
  --bg-2: #0b0a14;
  --card: #110f1d;
  --line: rgba(255, 255, 255, .08);
  --text: #eeeaf8;
  --muted: #9c95b5;
  --purple: #9945ff;
  --green: #19fb9b;
  --grad: linear-gradient(90deg, #9945ff, #8752f3 25%, #5497d5 55%, #43b4ca 75%, #19fb9b);
  --grad-d: linear-gradient(135deg, #9945ff, #8752f3 25%, #5497d5 55%, #43b4ca 75%, #19fb9b);
  --road: repeating-linear-gradient(90deg, rgba(255, 255, 255, .4) 0 18px, transparent 18px 32px);
  --maxw: 1180px;
  --z: 1; /* page zoom on big screens, see the end of the file */
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { zoom: var(--z); }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text);
  font: 400 16px/1.6 Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
.wrap { width: min(var(--maxw), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--green); color: var(--bg); padding: 10px 14px; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: Unbounded, sans-serif; line-height: 1.05; letter-spacing: -.02em; }
h1 { font-weight: 900; font-size: clamp(40px, min(calc(6.6vw / var(--z)), calc(11vh / var(--z))), 86px); }
h2 { font-weight: 800; font-size: clamp(30px, calc(4.2vw / var(--z)), 54px); }
h3 { font-weight: 800; font-size: 21px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); font-size: clamp(17px, calc(1.6vw / var(--z)), 20px); max-width: 58ch; }
.mono { font-family: 'Space Mono', monospace; }
.kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font: 700 12px/1 'Space Mono', monospace; letter-spacing: .22em; text-transform: uppercase; color: var(--green);
}
.kicker::before { content: ""; width: 26px; height: 3px; background: repeating-linear-gradient(90deg, var(--green) 0 7px, transparent 7px 11px); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 7, 13, .74); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__in { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 38px; height: 38px; }
.brand__word { display: flex; flex-direction: column; line-height: 1; }
.brand__word b { font: 900 18px/1 Unbounded, sans-serif; letter-spacing: .01em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand__word i { font: 500 7.4px/1 Unbounded, sans-serif; font-style: normal; letter-spacing: .66em; margin-top: 5px; }
.nav__links { display: flex; gap: 4px; }
.nav__links a { position: relative; padding: 10px 15px; font-weight: 600; font-size: 15px; color: var(--muted); transition: color .2s; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--text); }
.nav__links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: 3px; height: 3px;
  background: repeating-linear-gradient(90deg, var(--green) 0 8px, transparent 8px 13px);
}
.nav__links a.nav__app {
  margin-left: 10px; padding: 11px 26px 11px 18px; font: 800 13px/1 Unbounded, sans-serif; color: var(--bg);
  background: var(--grad); clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%); transition: filter .2s;
}
.nav__links a.nav__app:hover { color: var(--bg); filter: brightness(1.12); }
.nav__toggle { display: none; }

@media (max-width: 760px) {
  .nav__toggle {
    display: grid; gap: 5px; place-content: center; width: 44px; height: 44px;
    background: rgba(255, 255, 255, .07); border: 0; border-radius: 10px; cursor: pointer;
  }
  .nav__toggle span { display: block; width: 20px; height: 2px; background: var(--text); transition: transform .25s, opacity .25s; }
  .nav.open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav__links {
    display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column;
    padding: 8px 16px 20px; background: rgba(7, 7, 13, .97); border-bottom: 1px solid var(--line);
  }
  .nav.open .nav__links { display: flex; }
  .nav__links a { padding: 15px 2px; font-size: 18px; border-bottom: 1px solid var(--line); }
  .nav__links a[aria-current="page"]::after { left: 2px; right: auto; width: 44px; bottom: 8px; }
  .nav__links a.nav__app { margin: 16px 0 0; padding: 16px 32px 16px 20px; font-size: 15px; border-bottom: 0; align-self: flex-start; }
}

/* ---------- buttons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 32px 16px 24px; font: 800 15px/1 Unbounded, sans-serif; letter-spacing: .01em;
  clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
  transition: transform .2s, filter .2s, background .2s; cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--grad); color: var(--bg); }
.btn--primary:hover { filter: brightness(1.12); }
.btn--ghost { background: rgba(255, 255, 255, .07); color: var(--text); }
.btn--ghost:hover { background: rgba(255, 255, 255, .13); }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.is-soon { opacity: .5; pointer-events: none; }

/* ---------- sections ---------- */
.sec { position: relative; padding: 110px 0; }
.sec--alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.sec__head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 46px; }
.sec__head--row { flex-direction: row; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.road { height: 3px; background: var(--road); animation: road 1.4s linear infinite; }
@keyframes road { to { background-position: 32px 0; } }

/* speed lines (filled in by main.js) */
.speed { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.speed i {
  position: absolute; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--c));
  animation: zoom var(--d) linear infinite; animation-delay: var(--delay);
}
@keyframes zoom { from { transform: translateX(-110vw) skewX(-14deg); } to { transform: translateX(110vw) skewX(-14deg); } }

/* ---------- hero ---------- */
.hero { position: relative; padding: 90px 0 80px; overflow: hidden; }
.hero__in { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 40px; }
.hero h1 { margin: 24px 0; }
.hero .lead { margin-bottom: 36px; }
.hero__mark { position: relative; width: 100%; max-width: 460px; aspect-ratio: 1; justify-self: end; }
.hero__mark::before {
  content: ""; position: absolute; inset: 14%;
  background: radial-gradient(circle, rgba(153, 69, 255, .5), rgba(25, 251, 155, .16) 52%, transparent 70%);
  filter: blur(34px);
}
.hero__mark svg { position: relative; width: 100%; height: 100%; animation: float 6s ease-in-out infinite; }
.hero__mark .lane { animation: lane .9s linear infinite; }
@keyframes lane { to { stroke-dashoffset: -16; } }
@keyframes float { 50% { transform: translateY(-12px); } }
@media (max-width: 900px) {
  .hero { padding-top: 48px; }
  .hero__in { grid-template-columns: 1fr; }
  .hero__mark { order: -1; max-width: min(260px, calc(32svh / var(--z))); justify-self: center; }
}

/* ---------- ticker ---------- */
.ticker { overflow: hidden; white-space: nowrap; background: var(--bg-2); border-block: 1px solid var(--line); }
.ticker__track { display: inline-flex; align-items: center; animation: tick 34s linear infinite; }
.ticker span { padding: 22px 24px; font: 800 22px/1 Unbounded, sans-serif; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .35); }
.ticker span.on { color: var(--text); -webkit-text-stroke: 0; }
.ticker b { color: var(--green); font-size: 16px; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- cards ---------- */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 900px) { .grid3, .grid2 { grid-template-columns: 1fr; } }
.card {
  position: relative; background: var(--card); border: 1px solid var(--line); padding: 32px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%);
}
.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: end; margin-bottom: 56px; }
.about h2 { margin-top: 18px; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; gap: 20px; } }
.pillar { display: flex; flex-direction: column; gap: 14px; transition: transform .25s, border-color .25s; }
.pillar:hover { transform: translateY(-5px); border-color: rgba(153, 69, 255, .45); }
.pillar__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.pillar__icon {
  width: 58px; height: 58px; display: grid; place-items: center; background: var(--grad-d);
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}
.pillar__icon svg { width: 28px; height: 28px; fill: none; stroke: var(--bg); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pillar__num { font: 700 13px/1 'Space Mono', monospace; color: var(--muted); }
.pillar p { color: var(--muted); }

/* project cards */
.media { position: relative; aspect-ratio: 1200 / 630; overflow: hidden; background: linear-gradient(135deg, #2a1250, #0d3b3a); }
.media img { width: 100%; height: 100%; object-fit: cover; object-position: left top; transition: transform .6s; }
.feature:hover .media img { transform: scale(1.04); transform-origin: left top; }
.media__fallback { position: absolute; inset: 0; display: none; place-items: center; font: 900 clamp(26px, calc(4vw / var(--z)), 44px)/1 Unbounded, sans-serif; }
.media.is-empty img { display: none; }
.media.is-empty .media__fallback { display: grid; }
.media__fallback { gap: 14px; place-content: center; justify-items: center; }
.media__fallback img { width: 72px; height: 72px; }
.more { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 8px; font: 800 14px/1 Unbounded, sans-serif; color: var(--green); }
.more span { transition: transform .2s; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { padding: 7px 10px; font: 700 11px/1 'Space Mono', monospace; letter-spacing: .14em; text-transform: uppercase; background: rgba(25, 251, 155, .1); color: var(--green); }
.tag--p { background: rgba(153, 69, 255, .16); color: #c29bff; }

/* projects page: filters + grid that grows with every new project */
.filters { display: flex; gap: 8px; margin-bottom: clamp(14px, calc(2.6vh / var(--z)), 26px); overflow-x: auto; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 9px; padding: 10px 22px 10px 14px;
  font: 700 12px/1 'Space Mono', monospace; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); background: rgba(255, 255, 255, .05); border: 0; cursor: pointer;
  clip-path: polygon(0 0, 100% 0, calc(100% - 9px) 100%, 0 100%); transition: color .2s, background .2s;
}
.chip span { padding: 3px 6px; background: rgba(255, 255, 255, .08); color: var(--text); }
.chip:hover { color: var(--text); background: rgba(255, 255, 255, .09); }
.chip.is-on { background: var(--grad); color: var(--bg); }
.chip.is-on span { background: rgba(7, 7, 13, .18); color: var(--bg); }
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 1000px) { .pgrid { grid-template-columns: repeat(2, 1fr); } }
.proj {
  position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%);
  transition: transform .25s, border-color .25s;
}
.proj[hidden] { display: none; }
a.proj:hover { transform: translateY(-6px); border-color: rgba(153, 69, 255, .55); }
.proj__media { position: relative; height: clamp(130px, calc(calc(100svh / var(--z)) - 520px), 250px); overflow: hidden; background: linear-gradient(135deg, #2a1250, #0d3b3a); }
.proj__media > img { width: 100%; height: 100%; object-fit: cover; object-position: left top; transition: transform .6s; transform-origin: left top; }
a.proj:hover .proj__media > img { transform: scale(1.05); }
.proj__media::after { content: ""; position: absolute; inset: auto 0 0; height: 55%; background: linear-gradient(transparent, rgba(17, 15, 29, .92)); }
.proj__status {
  position: absolute; top: 12px; right: 12px; z-index: 1; display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px;
  font: 700 11px/1 'Space Mono', monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--text);
  background: rgba(7, 7, 13, .78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.proj__status i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(25, 251, 155, .7); } 70%, 100% { box-shadow: 0 0 0 8px rgba(25, 251, 155, 0); } }
.proj__title { display: flex; align-items: center; gap: 12px; }
.proj__title img { flex: none; width: 38px; height: 38px; border-radius: 9px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); }
.proj__body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 18px 22px 22px; }
.proj h3 { font-size: 22px; }
.proj__body p, .proj--soon p { color: var(--muted); font-size: 15px; }
.proj__foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.proj__go {
  flex: none; width: 40px; height: 40px; display: grid; place-items: center; font: 800 16px/1 Unbounded, sans-serif;
  color: var(--green); background: rgba(255, 255, 255, .07); clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  transition: background .2s, color .2s;
}
a.proj:hover .proj__go { background: var(--grad); color: var(--bg); }
.proj--soon {
  justify-content: center; gap: 10px; padding: 26px; border-style: dashed; border-color: rgba(255, 255, 255, .14);
  background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .018) 0 12px, transparent 12px 24px);
}
.proj__num { font: 900 54px/1 Unbounded, sans-serif; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .22); }
.proj--soon .more { margin-top: 6px; padding-top: 0; }
.proj--soon .more span { transition: transform .2s; }
.proj--soon .more:hover span { transform: translateX(5px); }
@media (max-width: 600px) {
  .pgrid { grid-template-columns: 1fr; gap: 12px; }
  .proj { flex-direction: row; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%); }
  .proj__media { flex: none; width: 116px; height: auto; min-height: 116px; }
  .proj__media::after { display: none; }
  .proj__title { gap: 8px; }
  .proj__title img { width: 24px; height: 24px; border-radius: 6px; }
  .proj__status { top: auto; bottom: 8px; right: auto; left: 8px; padding: 4px 7px; font-size: 9px; }
  .proj__body { padding: 12px 14px; gap: 5px; }
  .proj h3 { font-size: 18px; }
  .proj__body p { font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .proj__foot { padding-top: 4px; }
  .proj__foot .tag--p { display: none; }
  .proj__go { width: 32px; height: 32px; font-size: 13px; }
  .proj--soon { flex-direction: row; align-items: center; gap: 14px; padding: 14px 16px; }
  .proj--soon p { display: none; }
  .proj__num { font-size: 30px; }
  .proj--soon .more { margin: 0 0 0 auto; }
}

/* featured project (home) */
.feature {
  display: grid; grid-template-columns: 1.25fr 1fr; background: var(--card); border: 1px solid var(--line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 32px), calc(100% - 32px) 100%, 0 100%);
}
.feature .media { aspect-ratio: auto; min-height: 340px; }
.feature__body { display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 44px; }
.feature__body h3 { font-size: clamp(30px, calc(3.4vw / var(--z)), 44px); font-weight: 900; }
.feature__body p { color: var(--muted); }
.feature__body .btns { margin-top: 10px; }
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; }
  .feature .media { min-height: 0; aspect-ratio: 1200 / 630; }
  .feature__body { padding: 28px 24px 40px; }
}

/* team */
.member { display: flex; flex-direction: column; gap: 20px; padding: 22px 22px 30px; transition: transform .25s, border-color .25s; }
.member:hover { transform: translateY(-5px); border-color: rgba(25, 251, 155, .35); }
.avatar {
  position: relative; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(var(--a, 135deg), #9945ff, #5497d5 55%, #19fb9b);
  clip-path: polygon(0 0, 100% 0, calc(100% - 26px) 100%, 0 100%);
  font: 900 clamp(84px, calc(11vw / var(--z)), 140px)/1 Unbounded, sans-serif; color: var(--bg);
}
.avatar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 14%; height: 4px; background: repeating-linear-gradient(90deg, rgba(7, 7, 13, .5) 0 16px, transparent 16px 28px); animation: road 1.4s linear infinite; }
/* The photo is sized from the tile's shorter side and centred in the part the slanted edge leaves visible. */
.avatar--photo { container-type: size; }
.avatar--photo img {
  position: absolute; z-index: 1; top: 50%; left: calc(50% - 8px); width: auto; height: min(66cqh, 64cqw);
  aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%);
  box-shadow: 0 0 0 6px rgba(7, 7, 13, .85), 0 18px 40px rgba(7, 7, 13, .45);
}
.member h3 { font-size: 24px; }
.member .mono { color: var(--muted); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
@media (max-width: 600px) {
  .member { flex-direction: row; align-items: center; padding: 16px; }
  .member .avatar { flex: none; width: 96px; font-size: 48px; clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%); }
  .member .avatar::after { height: 3px; }
  .avatar--photo img { left: calc(50% - 3px); height: min(72cqh, 66cqw); box-shadow: 0 0 0 3px rgba(7, 7, 13, .85); }
}

.member__meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.member__go {
  flex: none; width: 38px; height: 38px; display: grid; place-items: center; font: 800 15px/1 Unbounded, sans-serif;
  color: var(--green); background: rgba(255, 255, 255, .07); clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  transition: background .2s, color .2s;
}
a.member:hover .member__go { background: var(--grad); color: var(--bg); }
@media (max-width: 600px) { .member > .member__meta { flex: 1; } .member__go { width: 32px; height: 32px; font-size: 13px; } }

/* profile page */
.profile { position: relative; overflow: hidden; min-height: calc(calc(100svh / var(--z)) - 72px); display: grid; align-items: center; padding: clamp(28px, calc(6vh / var(--z)), 72px) 0; }
.profile__in { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, calc(5vw / var(--z)), 72px); align-items: center; }
.profile__avatar { width: 100%; max-width: min(460px, calc(calc(100svh / var(--z)) - 260px)); justify-self: end; }
.profile__info { display: flex; flex-direction: column; gap: 18px; }
.profile__info h1 { font-size: clamp(44px, calc(7vw / var(--z)), 96px); overflow-wrap: anywhere; }
.profile__links { display: grid; gap: 14px; margin-top: 10px; max-width: 520px; }
.profile__links .social { padding: 24px 28px; }
@media (max-width: 800px) {
  .profile__in { grid-template-columns: 1fr; gap: 24px; }
  .profile__avatar { justify-self: start; max-width: clamp(180px, calc(40vw / var(--z)), 320px); }
  .profile__info { gap: 12px; }
  .profile__links .social { padding: 18px 20px; gap: 16px; }
  .profile__links .social__icon { width: 56px; height: 56px; }
  .profile__links .social__name { font-size: 20px; }
}

/* socials */
.social {
  display: flex; align-items: center; gap: 24px; padding: 34px; background: var(--card); border: 1px solid var(--line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%);
  transition: transform .25s, border-color .25s;
}
a.social:hover { transform: translateY(-5px); border-color: rgba(153, 69, 255, .5); }
.social.is-soon { opacity: .6; }
.social__icon {
  flex: none; width: 76px; height: 76px; display: grid; place-items: center; background: var(--grad-d);
  clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}
.social__icon svg { width: 34px; height: 34px; fill: var(--bg); }
.social__name { display: block; font: 800 26px/1.1 Unbounded, sans-serif; }
.social__cta { display: block; margin-top: 6px; color: var(--muted); }
.social__arrow { margin-left: auto; font: 800 24px/1 Unbounded, sans-serif; color: var(--green); transition: transform .2s; }
a.social:hover .social__arrow { transform: translate(4px, -4px); }
.social.is-soon .social__arrow { display: none; }

/* call-to-action band */
.band {
  position: relative; overflow: hidden; padding: clamp(40px, calc(6vw / var(--z)), 72px); background: var(--card); border: 1px solid var(--line);
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; align-items: center;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 36px), calc(100% - 36px) 100%, 0 100%);
}
.band::before { content: ""; position: absolute; inset: auto -10% -60% 40%; height: 120%; background: radial-gradient(circle, rgba(153, 69, 255, .35), transparent 60%); }
.band > * { position: relative; }
.band p { color: var(--muted); margin-top: 14px; }
.band .btns { justify-content: flex-end; }
@media (max-width: 900px) { .band { grid-template-columns: 1fr; } .band .btns { justify-content: flex-start; } }

/* sub-page header */
.page-head { position: relative; overflow: hidden; padding: 90px 0 60px; border-bottom: 1px solid var(--line); }
.page-head .wrap { position: relative; display: flex; flex-direction: column; gap: 20px; }
.crumbs { font: 700 12px/1 'Space Mono', monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.crumbs a:hover { color: var(--text); }

/* project page */
.project-hero { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.project-hero h1 { margin: 6px 0 4px; }
.project-hero .tagline { font: 700 clamp(18px, calc(2vw / var(--z)), 24px)/1.3 Unbounded, sans-serif; }
.project-hero .lead { margin-top: 14px; }
.project-hero .btns { margin-top: 30px; }
.shot { position: relative; padding: 2px; background: var(--grad-d); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%); }
.shot .media { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 29px), calc(100% - 29px) 100%, 0 100%); }
@media (max-width: 900px) { .project-hero { grid-template-columns: 1fr; } }
.mode h3 { font-size: 26px; margin: 4px 0 10px; }
.mode p { color: var(--muted); }
.mode .facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.specs { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.specs div { padding: 26px 24px; border-right: 1px solid var(--line); }
.specs div:last-child { border-right: 0; }
.specs dt { font: 700 11px/1 'Space Mono', monospace; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.specs dd { font: 800 18px/1.25 Unbounded, sans-serif; }
@media (max-width: 900px) {
  .specs { grid-template-columns: 1fr 1fr; }
  .specs div:nth-child(2) { border-right: 0; }
  .specs div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* ---------- sub-pages that fit one screen (Projects, Team, Socials) ---------- */
.fit main { display: flex; flex-direction: column; height: calc(calc(100svh / var(--z)) - 72px); min-height: 460px; }
.fit .page-head { flex: none; padding: clamp(22px, calc(5vh / var(--z)), 56px) 0 clamp(16px, calc(3vh / var(--z)), 32px); }
.fit .page-head .wrap { gap: clamp(8px, calc(1.6vh / var(--z)), 16px); }
.fit .page-head h1 { font-size: clamp(34px, min(calc(5.4vw / var(--z)), calc(8vh / var(--z))), 72px); }
.fit .page-head .lead { font-size: clamp(15px, calc(2vh / var(--z)), 19px); }
.fit .sec { flex: 1; min-height: 0; display: flex; padding: clamp(16px, calc(4vh / var(--z)), 48px) 0; }
.fit .sec > .wrap { height: 100%; grid-auto-rows: minmax(0, 1fr); }
.fit .sec > .grid--center { height: auto; align-self: center; grid-auto-rows: auto; }
/* Tall screens: team cards stop growing at a sensible height, social tiles grow with the screen. */
.fit .sec > .grid3 { height: min(100%, 560px); align-self: center; }
@media (min-width: 601px) { .fit .sec > .grid3 { height: min(100%, 560px, calc(calc(28vw / var(--z)) + 160px)); } }
@media (min-width: 601px) {
  .fit .grid--center .social { min-height: clamp(120px, calc(26vh / var(--z)), 340px); padding: clamp(24px, calc(4vh / var(--z)), 56px); gap: clamp(20px, calc(2.4vw / var(--z)), 40px); }
  .fit .grid--center .social__icon { width: clamp(64px, calc(9vh / var(--z)), 128px); height: clamp(64px, calc(9vh / var(--z)), 128px); }
  .fit .grid--center .social__icon svg { width: 45%; height: 45%; }
  .fit .grid--center .social__name { font-size: clamp(24px, calc(4vh / var(--z)), 48px); }
  .fit .grid--center .social__cta { font-size: clamp(15px, calc(1.7vh / var(--z)), 20px); }
  .fit .grid--center .social__arrow { font-size: clamp(24px, calc(3vh / var(--z)), 40px); }
}
.fit .member { min-height: 0; padding: 18px 18px 22px; gap: 14px; }
.fit .member .avatar { flex: 1; min-height: 0; aspect-ratio: auto; font-size: clamp(56px, calc(12vh / var(--z)), 140px); }
@media (max-width: 600px) {
  .fit .member { padding: 12px; }
  .fit .member .avatar { flex: none; width: 88px; height: 88px; aspect-ratio: 1; font-size: 40px; }
  .fit .social { padding: 20px; gap: 16px; }
  .fit .social__icon { width: 56px; height: 56px; }
}

/* Projects keeps growing with new cards, so its page only starts at screen height. */
.fit--grow main { height: auto; min-height: calc(calc(100svh / var(--z)) - 72px); }
.fit--grow .sec { display: block; }
.fit--grow .sec > .wrap { height: auto; }

/* Team cards stay three across on tablets. */
@media (min-width: 601px) and (max-width: 900px) {
  .grid3:has(> .member) { grid-template-columns: repeat(3, 1fr); }
  .grid3:has(> .member) .member { padding: 16px 16px 20px; }
  .grid3:has(> .member) .member h3 { font-size: 19px; }
  .grid3:has(> .member) .member .mono { font-size: 11px; letter-spacing: .1em; }
}

/* Small phones: keep short labels on one line. */
@media (max-width: 400px) {
  .proj--soon h3, .proj--soon .more { white-space: nowrap; }
  .proj--soon h3 { font-size: 15px; }
  .proj--soon .more { font-size: 12px; }
  .proj__num { font-size: 24px; }
  .member .mono { font-size: 10px; letter-spacing: .08em; }
}

/* Phones held sideways: side-by-side layouts and pages that scroll instead of squeezing into the height. */
@media (orientation: landscape) and (max-height: 500px) {
  .hero { padding: 28px 0 40px; }
  .hero__in { grid-template-columns: 1.4fr .6fr; gap: 24px; }
  .hero__mark { order: 0; max-width: min(220px, calc(55svh / var(--z))); justify-self: end; align-self: start; }
  .hero h1 { margin: 14px 0; }
  .hero .lead { margin-bottom: 22px; }
  .fit main, .fit--grow main { height: auto; min-height: 0; }
  .fit .sec { display: block; }
  .fit .sec > .wrap, .fit .sec > .grid3 { height: auto; }
  .grid2.grid--center { grid-template-columns: repeat(2, 1fr); }
  .fit .grid--center .social { min-height: 0; padding: 18px; gap: 14px; }
  .fit .grid--center .social__icon { width: 52px; height: 52px; }
  .fit .grid--center .social__name { font-size: 20px; }
  .fit .grid--center .social__cta { font-size: 13px; }
  .profile { min-height: 0; padding: 24px 0 36px; }
  .profile__in { grid-template-columns: auto minmax(0, 1fr); gap: 28px; }
  .profile__avatar { justify-self: start; width: min(220px, calc(100svh / var(--z) - 150px)); max-width: none; }
  .profile__info { gap: 8px; }
  .profile__info h1 { font-size: 40px; }
  .profile__links { gap: 10px; margin-top: 4px; }
  .profile__links .social { padding: 12px 16px; gap: 14px; }
  .profile__links .social__icon { width: 44px; height: 44px; }
  .profile__links .social__icon svg { width: 22px; height: 22px; }
  .profile__links .social__name { font-size: 18px; }
  .profile__links .social__cta { margin-top: 2px; font-size: 13px; }
}

@media (orientation: landscape) and (max-height: 500px) and (min-width: 601px) {
  .fit .member .avatar { flex: none; height: calc(38svh / var(--z)); }
}

/* Big monitors: the whole page scales up instead of sitting small in the middle. */
@media (min-width: 1800px) and (min-height: 950px) { :root { --z: 1.2; } }
@media (min-width: 2200px) and (min-height: 1250px) { :root { --z: 1.45; } }
@media (min-width: 3000px) and (min-height: 1650px) { :root { --z: 1.9; } }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 56px 0; background: var(--bg-2); }
.foot__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
