/* ------------------------------------------------------------------
   Nedi Kritikou — iGaming portfolio
   Dark, neon take on the lavender identity: the name sticker, the
   Figma selection box and the glass 3D shapes carry over.
   ------------------------------------------------------------------ */

@property --spin {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

:root {
  --bg: #07050f;
  --bg-2: #0e0a1c;
  --ink: #f5efff;
  --muted: #b6abc9;
  --lav: #ce9dff;
  --violet: #8f5bff;
  --cyan: #5eebff;
  --pink: #ff5fd2;
  --line: rgba(206, 157, 255, 0.2);
  --line-strong: rgba(206, 157, 255, 0.45);
  --panel: rgba(255, 255, 255, 0.035);
  --grad: linear-gradient(100deg, var(--cyan), var(--lav) 48%, var(--pink));

  /* Sofia Pro is the brand font; Outfit stands in for it on the web. */
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Unbounded", "Outfit", system-ui, sans-serif;
  --label: "Poppins", "Outfit", system-ui, sans-serif;

  --radius: 28px;
  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: clamp(1.0625rem, 0.98rem + 0.3vw, 1.2rem);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

/* drifting aurora + a faint grid behind everything */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
body::before {
  inset: -30%;
  background:
    radial-gradient(38% 34% at 22% 26%, rgba(143, 91, 255, 0.36), transparent 70%),
    radial-gradient(30% 30% at 82% 18%, rgba(94, 235, 255, 0.16), transparent 70%),
    radial-gradient(36% 36% at 72% 82%, rgba(255, 95, 210, 0.16), transparent 70%);
  animation: aurora 26s ease-in-out infinite alternate;
}
body::after {
  background-image:
    linear-gradient(rgba(206, 157, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(206, 157, 255, 0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 30%, #000 10%, transparent 75%);
}
@keyframes aurora {
  from { transform: translate3d(-3%, -2%, 0) rotate(0deg); }
  to { transform: translate3d(4%, 3%, 0) rotate(8deg); }
}

main {
  flex: 1;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

button {
  font: inherit;
  color: inherit;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--lav);
  color: #000;
  border-radius: 27px;
}
.skip:focus {
  left: 8px;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

::selection {
  background: var(--lav);
  color: #000;
}

/* pointer light, desktop only (moved by main.js) */
.cursor-glow {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 0;
  width: 560px;
  height: 560px;
  margin: -280px 0 0 -280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(206, 157, 255, 0.13), transparent 62%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
  will-change: transform;
}
.cursor-glow.is-on {
  opacity: 1;
}

/* ---------- Type ---------- */

.h-display {
  font-family: var(--display);
  font-size: clamp(1.9rem, 0.9rem + 4.1vw, 4rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.h-page {
  font-family: var(--display);
  font-size: clamp(2rem, 1.2rem + 3.6vw, 4rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.h-section {
  font-family: var(--display);
  font-size: clamp(1.5rem, 1.1rem + 1.7vw, 2.5rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.h-small {
  font-size: clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

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

.lede {
  max-width: 34em;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1rem + 0.45vw, 1.375rem);
  text-wrap: pretty;
}

/* small section label */
.hud {
  display: block;
  color: var(--lav);
  font-family: var(--label);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}
.date {
  color: var(--lav);
  font-weight: 500;
}

/* ---------- Pills & buttons ---------- */

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 8px 22px;
  border-radius: 27px;
  border: 1.5px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.2;
  white-space: nowrap;
  transition: border-color 0.25s, background-color 0.25s, box-shadow 0.25s, color 0.25s;
}
.pill--fill {
  border-color: transparent;
  background: rgba(206, 157, 255, 0.2);
}
@media (hover: hover) {
  li.pill:hover {
    border-color: var(--lav);
    box-shadow: 0 0 22px rgba(206, 157, 255, 0.35);
  }
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 12px 30px;
  overflow: hidden;
  border: 0;
  border-radius: 28px;
  background: var(--grad);
  color: #0a0612;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 0 0 rgba(206, 157, 255, 0);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
/* light sweep */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
}
.btn > * {
  position: relative;
  z-index: 1;
}
.btn .arrow {
  transition: transform 0.3s var(--ease);
}
.btn:active {
  transform: scale(0.97);
}
.btn--ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
}
.btn--ghost::after {
  background: linear-gradient(110deg, transparent 30%, rgba(206, 157, 255, 0.3) 50%, transparent 70%);
}
@media (hover: hover) {
  .btn:hover {
    box-shadow: 0 8px 40px rgba(206, 157, 255, 0.45);
  }
  .btn--ghost:hover {
    box-shadow: inset 0 0 0 1.5px var(--lav), 0 8px 34px rgba(143, 91, 255, 0.35);
  }
  .btn:hover::after {
    transform: translateX(120%);
  }
  .btn:hover .arrow {
    transform: translateX(4px);
  }
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s;
}
.site-header.is-stuck {
  background: rgba(7, 5, 15, 0.72);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
}

/* logo: the Figma mark (pen-nib "N" on a lavender tile) with a little life in it */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}
.logo-mark {
  position: relative;
  display: block;
  width: 46px;
  height: 46px;
  rotate: -6deg;
  transition: rotate 0.5s cubic-bezier(0.34, 1.7, 0.5, 1), scale 0.5s cubic-bezier(0.34, 1.7, 0.5, 1);
}
.logo-mark svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 0 16px rgba(206, 157, 255, 0.55));
  transition: filter 0.4s;
}
.logo-dot,
.logo-line,
.logo-nib {
  transform-box: fill-box;
  transform-origin: 50% 50%;
}
.logo-line {
  transform-origin: 0 50%;
}
.logo-spark {
  position: absolute;
  right: -7px;
  top: -9px;
  color: var(--cyan);
  font-size: 15px;
  font-style: normal;
  line-height: 1;
  text-shadow: 0 0 10px var(--cyan);
  animation: twinkle 2.6s ease-in-out infinite;
}
.logo-word {
  display: flex;
  flex-direction: column;
  color: var(--ink);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.02;
}
.logo-word b {
  font-weight: inherit;
}
.logo-word b:first-child {
  background: linear-gradient(100deg, var(--ink) 40%, var(--lav) 50%, var(--ink) 60%) 100% 0 / 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@keyframes twinkle {
  0%, 100% { scale: 0.6; opacity: 0.5; rotate: 0deg; }
  50% { scale: 1.15; opacity: 1; rotate: 90deg; }
}
@keyframes logo-drop {
  0% { transform: translateY(-9px); }
  45% { transform: translateY(0); }
  65% { transform: translateY(-3.5px); }
  100% { transform: translateY(0); }
}
@keyframes logo-tap {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(2.5px); }
}
@keyframes logo-draw {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@keyframes logo-shine {
  to { background-position: 0 0; }
}
@media (hover: hover) {
  .logo:hover .logo-mark {
    rotate: 5deg;
    scale: 1.1;
  }
  .logo:hover .logo-mark svg {
    filter: drop-shadow(0 0 26px rgba(206, 157, 255, 0.9));
  }
  .logo:hover .logo-nib {
    animation: logo-tap 0.5s var(--ease);
  }
  .logo:hover .logo-dot {
    animation: logo-drop 0.6s var(--ease);
  }
  .logo:hover .logo-line {
    animation: logo-draw 0.5s var(--ease) 0.15s both;
  }
  .logo:hover .logo-word b:first-child {
    animation: logo-shine 0.9s var(--ease);
  }
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0px, 1vw, 8px);
}
.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px clamp(10px, 1.8vw, 18px);
  font-size: 1.0625rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}
.nav a[aria-current="page"] {
  color: var(--lav);
}
@media (hover: hover) {
  .nav a:hover {
    color: var(--lav);
  }
}


/* ---------- Figma-style selection box ---------- */

.sel {
  position: relative;
  display: inline-block;
  border: 1.5px solid var(--lav);
  box-shadow: 0 0 24px rgba(206, 157, 255, 0.25), inset 0 0 24px rgba(206, 157, 255, 0.08);
}
.sel > i {
  position: absolute;
  z-index: 2;
  width: 11px;
  height: 11px;
  margin: -5.5px;
  background: #fff;
  border: 1.5px solid var(--lav);
}
.sel > i:nth-of-type(1) { left: 0; top: 0; }
.sel > i:nth-of-type(2) { left: 50%; top: 0; }
.sel > i:nth-of-type(3) { left: 100%; top: 0; }
.sel > i:nth-of-type(4) { left: 0; top: 50%; }
.sel > i:nth-of-type(5) { left: 100%; top: 50%; }
.sel > i:nth-of-type(6) { left: 0; top: 100%; }
.sel > i:nth-of-type(7) { left: 50%; top: 100%; }
.sel > i:nth-of-type(8) { left: 100%; top: 100%; }

/* slot-reel of phrases inside the selection box */
.slot {
  display: inline-block;
  height: 1.3em;
  padding: 0 0.22em;
  overflow: hidden;
  vertical-align: bottom;
  white-space: nowrap;
  transition: width 0.6s var(--ease);
}
.slot-track {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.75s cubic-bezier(0.6, -0.25, 0.25, 1.25);
}
.slot-track > span {
  flex: none;
  height: 1.3em;
  line-height: 1.3;
}

/* ---------- Glass shapes ---------- */

.glass {
  position: absolute;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 0 28px rgba(143, 91, 255, 0.55));
  animation: float 5s ease-in-out infinite alternate;
}
.glass--mixer {
  animation-duration: 6.5s;
  animation-delay: -2s;
}
.glass--star {
  rotate: -132.43deg;
}
@keyframes float {
  from { translate: 0 -6px; }
  to { translate: 0 8px; }
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  padding-block: clamp(28px, 5vw, 64px) clamp(36px, 6vw, 80px);
}
.hero-copy > * + * {
  margin-top: clamp(18px, 2.2vw, 30px);
}
.hero-title .sel {
  margin-top: 0.14em;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* three phones playing the reels */
.phones {
  position: relative;
  justify-self: center;
  width: min(100%, 520px);
  aspect-ratio: 1 / 1.08;
  perspective: 1400px;
}
.phones-stage {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.5s var(--ease);
}
.phone {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 46%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border: 5px solid #17122b;
  border-radius: clamp(18px, 3vw, 30px);
  background: #000;
  box-shadow: 0 0 0 1px var(--line-strong), 0 30px 70px -20px rgba(0, 0, 0, 0.9), 0 0 60px rgba(143, 91, 255, 0.4);
}
.phone video,
.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.phone--c {
  z-index: 3;
  transform: translate(-50%, -50%) translateZ(60px);
  animation: bob 6s ease-in-out infinite alternate;
}
.phone--l {
  z-index: 2;
  width: 38%;
  transform: translate(-128%, -46%) rotateY(24deg) rotateZ(-5deg);
  animation: bob 7s -2s ease-in-out infinite alternate;
  filter: brightness(0.82);
}
.phone--r {
  z-index: 2;
  width: 38%;
  transform: translate(28%, -54%) rotateY(-24deg) rotateZ(5deg);
  animation: bob 6.5s -4s ease-in-out infinite alternate;
  filter: brightness(0.82);
}
@keyframes bob {
  from { translate: 0 -8px; }
  to { translate: 0 10px; }
}
.phones .glass--star {
  left: 2%;
  top: 0;
  z-index: 4;
  width: 22%;
}
.phones .glass--mixer {
  right: 0;
  bottom: 2%;
  z-index: 4;
  width: 26%;
}
/* ---------- Ticker ---------- */

.ticker {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(14, 10, 28, 0.6);
  padding-block: 18px;
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: slide 38s linear infinite;
}
.ticker ul {
  display: flex;
  flex: none;
  align-items: center;
  gap: 34px;
  margin: 0;
  padding: 0 17px;
  list-style: none;
  font-family: var(--display);
  font-size: clamp(1rem, 0.8rem + 0.9vw, 1.5rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ticker li:nth-child(4n + 1) {
  color: var(--lav);
}
.ticker li:nth-child(even) {
  color: var(--cyan);
  font-size: 0.7em;
}
@keyframes slide {
  to { transform: translateX(-50%); }
}

/* ---------- Sections ---------- */

.section {
  padding-block: clamp(56px, 8vw, 120px);
}
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: clamp(26px, 3.4vw, 48px);
}
.section-head > div > * + * {
  margin-top: 14px;
}
.section-head .lede {
  max-width: 30em;
}
.link-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--lav);
  font-weight: 500;
  text-decoration: none;
}
.link-more .arrow {
  transition: transform 0.3s var(--ease);
}
@media (hover: hover) {
  .link-more:hover .arrow {
    transform: translateX(6px);
  }
}

/* glowing panel with a pointer-tracked glare (--mx/--my set by main.js) */
.panel {
  position: relative;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background:
    linear-gradient(var(--bg-2), var(--bg-2)) padding-box,
    linear-gradient(140deg, rgba(206, 157, 255, 0.55), rgba(94, 235, 255, 0.12) 40%, rgba(255, 95, 210, 0.4)) border-box;
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}
.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(206, 157, 255, 0.16), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
@media (hover: hover) {
  .panel:hover {
    box-shadow: 0 24px 60px -30px rgba(143, 91, 255, 0.8);
  }
  .panel:hover::before {
    opacity: 1;
  }
}

/* ---------- Work tiles (reels, banners, posts) ---------- */

.tile {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: #0c0818;
  box-shadow: 0 0 0 1px var(--line);
  cursor: pointer;
  text-align: left;
  transform: perspective(900px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)) translateY(var(--lift, 0px));
  transition: transform 0.45s var(--ease), box-shadow 0.35s;
}
.tile.is-tilting {
  transition: box-shadow 0.35s;
}
.tile img,
.tile video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* every tile has the exact ratio of its artwork, so nothing is cropped */
}
.tile--banner {
  aspect-ratio: 915 / 337;
  border-radius: 14px;
}
.tile--post {
  aspect-ratio: 4 / 5;
}
.tile--reel {
  aspect-ratio: 9 / 16;
  border-radius: 22px;
}
.tile--reel video {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.35s;
}
.tile--reel.is-playing video {
  opacity: 1;
}
/* glare that follows the pointer */
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.22), transparent 55%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}
.play {
  position: absolute;
  right: 12px;
  top: 12px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(7, 5, 15, 0.6);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  pointer-events: none;
}
.play::before {
  content: "▶";
  margin-left: 2px;
  color: #fff;
  font-size: 12px;
  line-height: 1;
}
@media (hover: hover) {
  .tile:hover {
    --lift: -6px;
    box-shadow: 0 0 0 1.5px var(--lav), 0 26px 60px -24px rgba(143, 91, 255, 0.95), 0 0 46px rgba(206, 157, 255, 0.28);
    z-index: 2;
  }
  .tile:hover::after {
    opacity: 1;
  }
}
.reel-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.8vw, 26px);
}

.banner-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 22px);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 22px);
}

/* banners drifting past in two belts (home page) */
.belts {
  display: grid;
  gap: clamp(12px, 1.4vw, 18px);
  padding-block: 18px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.belt {
  display: flex;
  width: max-content;
  animation: slide 60s linear infinite;
}
.belt--back {
  animation-direction: reverse;
  animation-duration: 70s;
}
.belt-set {
  display: flex;
  flex: none;
  gap: clamp(12px, 1.4vw, 18px);
  padding-inline: clamp(6px, 0.7vw, 9px);
}
.belt .tile {
  flex: none;
  width: clamp(280px, 34vw, 500px);
}
.belts:hover .belt,
.belts:focus-within .belt {
  animation-play-state: paused;
}

/* posts fanned out a little, straightening on hover (home page) */
.post-fan {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(8px, 1.2vw, 18px);
}
.post-fan .tile:nth-child(odd) {
  rotate: -2.5deg;
  translate: 0 10px;
}
.post-fan .tile:nth-child(even) {
  rotate: 2deg;
  translate: 0 -8px;
}
.post-fan .tile {
  transition: transform 0.45s var(--ease), box-shadow 0.35s, rotate 0.45s var(--ease), translate 0.45s var(--ease);
}
@media (hover: hover) {
  .post-fan .tile:hover {
    rotate: 0deg;
    translate: 0 0;
  }
}

/* ---------- About teaser (home) ---------- */

.about-teaser {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(26px, 4vw, 56px);
}
.about-teaser > div > * + * {
  margin-top: 14px;
}
.about-teaser .pills {
  align-content: center;
}

/* ---------- Call to action ---------- */

.cta {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  margin-block: clamp(40px, 6vw, 90px) clamp(64px, 9vw, 120px);
  padding: clamp(28px, 5vw, 64px);
  border: 1.5px solid transparent;
  border-radius: clamp(24px, 3vw, 40px);
  background:
    linear-gradient(var(--bg-2), var(--bg-2)) padding-box,
    conic-gradient(from var(--spin), var(--cyan), var(--lav), var(--pink), var(--violet), var(--cyan)) border-box;
  animation: spin 7s linear infinite;
  box-shadow: 0 0 80px -30px var(--violet);
}
@keyframes spin {
  to { --spin: 360deg; }
}
.cta > div > * + * {
  margin-top: 14px;
}
.cta h2 {
  max-width: 15em;
}
.cta .glass--star {
  right: clamp(12px, 5%, 70px);
  top: -54px;
  width: clamp(84px, 11vw, 132px);
}

/* ---------- Work page ---------- */

.page-head {
  padding-block: clamp(32px, 5vw, 72px) clamp(20px, 3vw, 36px);
}
.page-head > * + * {
  margin-top: clamp(14px, 1.6vw, 22px);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-block: 4px clamp(8px, 1.4vw, 16px);
}
.filters button {
  cursor: pointer;
  font-weight: 500;
}
/* the gradient is painted from the outer edge, so it never repeats under the border */
.filters button[aria-pressed="true"] {
  border-color: transparent;
  background: var(--grad) border-box;
  color: #0a0612;
}
@media (hover: hover) {
  .filters button:not([aria-pressed="true"]):hover {
    border-color: var(--lav);
    box-shadow: 0 0 22px rgba(206, 157, 255, 0.35);
  }
  .filters button[aria-pressed="true"]:hover {
    box-shadow: 0 0 26px rgba(206, 157, 255, 0.45);
  }
}

.work-group {
  padding-block: clamp(28px, 4vw, 56px);
}
.work-group[hidden] {
  display: none;
}
.work-group > header {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: clamp(18px, 2.2vw, 28px);
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 14px;
  padding: max(20px, env(safe-area-inset-top)) clamp(14px, 5vw, 72px) max(20px, env(safe-area-inset-bottom));
  background: rgba(5, 3, 12, 0.9);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}
.lightbox-stage {
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  min-height: 0;
}
.lightbox-stage img,
.lightbox-stage video {
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 0 0 1px var(--line-strong), 0 0 90px -10px rgba(143, 91, 255, 0.7);
  transform: scale(0.96);
  transition: transform 0.4s var(--ease);
}
.lightbox.is-open .lightbox-stage img,
.lightbox.is-open .lightbox-stage video {
  transform: none;
}
.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.lightbox-bar b {
  display: block;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.25;
}
.lightbox-bar small {
  color: var(--lav);
  font-family: var(--label);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.lightbox-nav {
  display: flex;
  flex: none;
  gap: 8px;
}
.icon-btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease);
}
.icon-btn:active {
  transform: scale(0.94);
}
@media (hover: hover) {
  .icon-btn:hover {
    background: rgba(206, 157, 255, 0.18);
    box-shadow: inset 0 0 0 1.5px var(--lav), 0 0 24px rgba(206, 157, 255, 0.4);
  }
}
.lightbox-close {
  position: absolute;
  right: clamp(14px, 3vw, 28px);
  top: max(14px, env(safe-area-inset-top));
  z-index: 2;
}

/* ---------- About ---------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, 491fr) minmax(0, 939fr);
  column-gap: clamp(24px, 2.4vw, 40px);
  align-items: start;
  padding-block: clamp(28px, 5vw, 72px) clamp(56px, 8vw, 110px);
}
.about-side > * + * {
  margin-top: clamp(28px, 3.4vw, 46px);
}
.about-side .facts {
  padding-left: clamp(0px, 1.2vw, 16px);
}
.about-main > section + section {
  margin-top: clamp(28px, 3vw, 40px);
}
.about-main .h-small,
.facts .h-small {
  margin-bottom: 14px;
}
.about-card {
  padding: clamp(24px, 3.4vw, 42px);
}
.about-card p + p {
  margin-top: 1.3em;
}
.about-card .glass--mixer {
  right: clamp(-26px, -2vw, 20px);
  bottom: -110px;
  width: clamp(120px, 14vw, 191px);
}
.facts .h-small:not(:first-child) {
  margin-top: clamp(26px, 3vw, 42px);
}
.facts strong {
  font-weight: 600;
}

/* logo animation: the clip has a black backdrop that the screen blend removes,
   so it sits on the page like a cut-out image (keep its parents free of transforms) */
.logo-story {
  width: min(100%, 440px);
}
.logo-story video,
.logo-story img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
}
.logo-story video {
  mix-blend-mode: screen;
}

.software-box {
  margin: 6px 6px 0;
}
.software {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12.7px;
  margin: 0;
  padding: 28px 24px;
  list-style: none;
}
.software li {
  width: 63.7px;
  height: 63.7px;
}
.software img {
  width: 100%;
  height: 100%;
  transition: transform 0.35s var(--ease), filter 0.35s;
}
@media (hover: hover) {
  .software li:hover img {
    transform: translateY(-7px) rotate(-5deg) scale(1.08);
    filter: drop-shadow(0 10px 18px rgba(206, 157, 255, 0.6));
  }
}

/* ---------- Contact ---------- */

.contact {
  position: relative;
  padding-block: clamp(40px, 8vw, 120px);
}
.contact > * + * {
  margin-top: clamp(20px, 2.6vw, 34px);
}
.contact .glass--mixer {
  right: 4%;
  top: clamp(20px, 8vw, 110px);
  width: clamp(110px, 20vw, 260px);
}
.contact-mail {
  display: inline-block;
  font-family: var(--display);
  font-size: clamp(1.05rem, 0.4rem + 2.9vw, 2.6rem);
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  overflow-wrap: anywhere;
  background: linear-gradient(var(--lav), var(--lav)) 0 100% / 100% 3px no-repeat;
  transition: background-size 0.4s var(--ease), color 0.3s;
}
@media (hover: hover) {
  .contact-mail:hover {
    background-size: 100% 100%;
    color: #0a0612;
  }
}
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 26px calc(26px + env(safe-area-inset-bottom));
  color: var(--muted);
  font-size: 1rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
}
.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  text-decoration-color: var(--line-strong);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

/* ---------- Reveal on scroll ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* static pages for design capture: everything visible, nothing moving */
.is-static *,
.is-static *::before,
.is-static *::after {
  animation: none !important;
  transition: none !important;
}
.is-static .reveal {
  opacity: 1 !important;
  transform: none !important;
}
/* the moving glow and grid become one still backdrop inside the page */
.is-static body::before,
.is-static body::after {
  display: none;
}
.is-static body {
  background:
    radial-gradient(60% 900px at 18% 0, rgba(143, 91, 255, 0.34), transparent 70%),
    radial-gradient(50% 800px at 90% 6%, rgba(94, 235, 255, 0.14), transparent 70%),
    var(--bg);
}
.is-static .glass {
  filter: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .tile,
  .slot,
  .slot-track,
  .btn,
  .logo-mark {
    transition: none;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 1020px) {
  .post-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .post-fan {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 26px;
  }
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }
  .phones {
    order: -1;
    width: min(100%, 400px);
  }
  .reel-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .about-teaser {
    grid-template-columns: minmax(0, 1fr);
  }
  .about {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 40px;
  }
  /* phone order: photo, about text and skills, then education and languages */
  .about-side {
    display: contents;
  }
  .about-side .logo-story {
    width: min(86%, 360px);
    justify-self: center;
  }
  .about-main {
    order: 1;
  }
  .about-side .facts {
    order: 2;
    margin-top: 0;
    padding-left: 0;
  }
  .about-card .glass--mixer {
    bottom: -70px;
  }
}

@media (max-width: 600px) {
  .site-header .wrap {
    min-height: 66px;
  }
  .logo {
    gap: 7px;
  }
  .logo-mark {
    width: 40px;
    height: 40px;
  }
  .logo-word {
    font-size: 16px;
  }
  .nav a {
    padding-inline: 9px;
  }
  .nav a {
    font-size: 1rem;
  }
  .banner-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .post-fan {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .software {
    gap: 10px;
    padding: 22px 16px;
  }
  .software li {
    width: 52px;
    height: 52px;
  }
  .hero-actions .btn,
  .contact-actions .btn,
  .cta .btn {
    flex: 1 1 auto;
  }
  .pill {
    padding-inline: 16px;
  }
}
