/* ============================================================
   Ivan Amad — Visual Art Director
   Hand-authored stylesheet. No build step, no dependencies.
   ============================================================ */

:root {
  --ink: #0b0b0b;
  --ink-700: #151515;
  --ink-600: #1c1c1c;
  --bone: #f5f5f2;
  --mist: #8e8e88;
  --accent: #2be0d6;
  --accent-soft: #7ff0ea;
  --line: rgba(245, 245, 242, 0.09);
  --max: 1500px;
  --pad: clamp(1.25rem, 3vw, 2rem);
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-swift: cubic-bezier(0.16, 1, 0.3, 1);
}

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

* { margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html {
  background: var(--ink);
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  background: var(--ink);
  color: var(--bone);
  font-family: 'Geist', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; }
ul, ol { list-style: none; }

::selection { background: var(--accent); color: #06201f; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #0b0b0b; }
::-webkit-scrollbar-thumb { background: #232323; border-radius: 99px; border: 3px solid #0b0b0b; }
::-webkit-scrollbar-thumb:hover { background: #333; }

[id] { scroll-margin-top: 104px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 500;
}
.skip:focus {
  left: 1rem; top: 1rem; padding: 0.85rem 1.4rem; border-radius: 99px;
  background: var(--accent); color: #07211f; font-weight: 600; font-size: 0.9rem;
}

/* ---------- shared primitives ---------- */

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

.display {
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.86;
  text-transform: uppercase;
}

.eyebrow {
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--mist);
}

.mono { font-family: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace; }

.glass {
  background: rgba(16, 16, 16, 0.72);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid var(--line);
}

.hairline { border: 1px solid var(--line); }

.grain::after {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(110px);
  pointer-events: none;
  background: radial-gradient(circle, var(--accent) 0%, transparent 62%);
}

/* ---------- reveal animations (IntersectionObserver driven) ---------- */

.js .r { opacity: 0; transform: translateY(26px); transition: opacity 0.85s var(--ease-swift), transform 0.85s var(--ease-swift); }
.js .r.in { opacity: 1; transform: none; }

/* The observed element is never clipped itself — an element hidden by its own
   clip-path reports an empty intersection rect and would never trigger. */
.js .mask > * { clip-path: inset(100% 0 0 0); opacity: 0.35;
  transition: clip-path 1.05s var(--ease-swift), opacity 1.05s var(--ease-swift); }
.js .mask.in > * { clip-path: inset(0 0 0 0); opacity: 1; }

.split { display: inline-block; }
.split .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.06em; }
.js .split .w > i {
  display: inline-block; font-style: inherit;
  transform: translateY(108%);
  transition: transform 0.9s var(--ease-swift);
}
.js .split.in .w > i { transform: none; }

/* ---------- custom cursor ---------- */

.cursor-ring, .cursor-dot {
  position: fixed; left: 0; top: 0; z-index: 420;
  pointer-events: none; opacity: 0;
  transition: opacity 0.25s ease;
  will-change: transform;
}
.cursor-ring i {
  display: block; width: 26px; height: 26px;
  margin: -13px 0 0 -13px;
  border: 1px solid rgba(245, 245, 242, 0.42);
  border-radius: 999px;
  transition: width 0.3s var(--ease-soft), height 0.3s var(--ease-soft),
              margin 0.3s var(--ease-soft), border-color 0.3s var(--ease-soft);
}
.cursor-ring.link i { width: 34px; height: 34px; margin: -17px 0 0 -17px; border-color: var(--accent); }
.cursor-ring.big i { opacity: 0; }

.cursor-dot b {
  display: grid; place-items: center;
  width: 6px; height: 6px; margin: -3px 0 0 -3px;
  border-radius: 999px; background: var(--bone);
  font-size: 0; font-weight: 600; letter-spacing: 0.16em;
  transition: width 0.34s var(--ease-soft), height 0.34s var(--ease-soft),
              margin 0.34s var(--ease-soft), font-size 0.2s ease, background 0.3s ease;
}
.cursor-dot.big b {
  width: 78px; height: 78px; margin: -39px 0 0 -39px;
  font-size: 10px; color: #07211f;
  /* two-word labels wrap, so centre the lines as well as the block */
  text-align: center; line-height: 1.3; padding: 0 0.5rem;
  white-space: normal; overflow-wrap: break-word;
}
.cursor-dot.press b { transform: scale(0.88); }

@media (hover: hover) and (pointer: fine) {
  html.cursor-on, html.cursor-on * { cursor: none !important; }
}
@media (hover: none), (pointer: coarse) {
  .cursor-ring, .cursor-dot { display: none !important; }
}

/* ---------- loader ---------- */

.loader {
  position: fixed; inset: 0; z-index: 400;
  display: grid; place-items: center;
  background: var(--ink);
  transition: clip-path 0.85s cubic-bezier(0.76, 0, 0.24, 1), opacity 0.85s ease;
  clip-path: inset(0 0 0 0);
}
.loader.done { clip-path: inset(0 0 100% 0); opacity: 0.9; pointer-events: none; }
.loader-inner { width: min(86vw, 760px); padding-inline: 1.5rem; }
.loader-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.loader h1 { font-size: clamp(2.6rem, 9vw, 7rem); margin-top: 0.5rem; }
.loader-bar { margin-top: 1.75rem; height: 1px; background: rgba(245,245,242,0.12); }
.loader-bar span { display: block; height: 1px; width: 0; background: var(--accent); transition: width 0.14s linear; }
.loader-foot { margin-top: 1rem; font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.24em; color: var(--mist); }

/* ---------- navigation ---------- */

.nav {
  position: fixed; inset-inline: 0; top: 0; z-index: 200;
  padding: 0.75rem 0.75rem 0;
  transition: transform 0.45s var(--ease-swift);
}
@media (min-width: 640px) { .nav { padding: 1.25rem 1.25rem 0; } }
.nav.hide { transform: translateY(-115%); }
.nav-row {
  max-width: 1600px; margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
}

.mark {
  display: flex; align-items: center; gap: 0.5rem;
  height: 2.75rem; padding: 0.25rem 0.9rem 0.25rem 0.35rem; border-radius: 999px;
}
@media (min-width: 640px) { .mark { height: 3rem; } }
.mark b {
  display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 999px;
  background: var(--bone); color: var(--ink); font-size: 0.75rem; font-weight: 800; letter-spacing: -0.05em;
  transition: transform 0.5s var(--ease-soft);
}
.mark:hover b { transform: rotate(-12deg); }
.mark span { font-size: 0.8125rem; font-weight: 500; letter-spacing: -0.01em; color: rgba(245,245,242,0.9); }
.mark i { color: var(--accent); font-style: normal; }
@media (max-width: 419px) { .mark span { display: none; } }

.pill {
  position: relative; display: none; align-items: center;
  height: 3rem; padding: 0.375rem; border-radius: 999px;
  transition: height 0.5s var(--ease-soft), padding 0.5s var(--ease-soft);
}
@media (min-width: 768px) { .pill { display: flex; } }
.nav.small .pill { height: 2.75rem; padding: 0.25rem; }
.pill a {
  position: relative; z-index: 1;
  padding: 0.5rem 1rem; border-radius: 999px;
  font-size: 0.8125rem; font-weight: 500; letter-spacing: -0.01em;
  color: rgba(245, 245, 242, 0.72);
  transition: color 0.3s ease;
}
.pill a.on { color: #07211f; }
.pill-ind {
  position: absolute; z-index: 0; top: 50%; left: 0; height: 0;
  border-radius: 999px; background: var(--accent); opacity: 0;
  transform: translateY(-50%);
  transition: transform 0.42s var(--ease-swift), width 0.42s var(--ease-swift),
              height 0.42s var(--ease-swift), opacity 0.3s ease;
}

.nav-right { display: flex; align-items: center; gap: 0.5rem; }
.avail {
  display: none; align-items: center; gap: 0.5rem;
  height: 2.75rem; padding-inline: 1rem; border-radius: 999px;
  font-size: 0.75rem; font-weight: 500; color: rgba(245,245,242,0.75);
}
@media (min-width: 1024px) { .avail { display: flex; } }
.dot { position: relative; display: flex; width: 6px; height: 6px; }
.dot::before {
  content: ''; position: absolute; inset: 0; border-radius: 999px;
  background: var(--accent); opacity: 0.7; animation: ping 1.8s cubic-bezier(0,0,0.2,1) infinite;
}
.dot::after { content: ''; position: relative; width: 6px; height: 6px; border-radius: 999px; background: var(--accent); }
@keyframes ping { 75%, 100% { transform: scale(2.2); opacity: 0; } }

.cta {
  display: none; align-items: center; gap: 0.5rem;
  height: 2.75rem; padding-inline: 1.25rem; border-radius: 999px;
  background: var(--accent); color: #07211f;
  font-size: 0.8125rem; font-weight: 600; letter-spacing: -0.01em;
  transition: background 0.3s ease;
}
@media (min-width: 640px) { .cta { display: flex; height: 3rem; } }
.cta:hover { background: var(--accent-soft); }
.cta i { font-style: normal; transition: transform 0.5s var(--ease-soft); }
.cta:hover i { transform: translate(2px, -2px); }

.burger { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 999px; }
@media (min-width: 768px) { .burger { display: none; } }
.burger span { position: relative; display: block; width: 1rem; height: 0.75rem; }
.burger span i {
  position: absolute; left: 0; display: block; width: 1rem; height: 1.5px; background: var(--bone);
  transition: transform 0.3s ease, top 0.3s ease;
}
.burger span i:nth-child(1) { top: 1px; }
.burger span i:nth-child(2) { top: 10px; }
.burger.open span i:nth-child(1) { top: 5.5px; transform: rotate(45deg); }
.burger.open span i:nth-child(2) { top: 5.5px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 190;
  background: rgba(11, 11, 11, 0.97);
  backdrop-filter: blur(20px);
  clip-path: circle(0% at 92% 5%);
  transition: clip-path 0.62s cubic-bezier(0.76, 0, 0.24, 1);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 7rem 1.5rem 2.5rem;
  visibility: hidden;
}
.menu.open { clip-path: circle(150% at 92% 5%); visibility: visible; }
@media (min-width: 768px) { .menu { display: none; } }
.menu nav a {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 1.25rem 0; border-bottom: 1px solid rgba(245,245,242,0.1);
}
.menu nav a > span:first-child { font-size: 13vw; }
.menu nav a > span:last-child { font-size: 0.625rem; color: var(--mist); }
.menu-foot { display: grid; gap: 1rem; }
.menu-foot .cta { display: flex; height: 3.5rem; justify-content: center; font-size: 0.9375rem; }
.menu-links { display: flex; justify-content: space-between; font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--mist); }

/* ---------- stickers ---------- */

.sticker {
  position: relative; display: grid; place-items: center;
  border-radius: 30%;
  box-shadow: inset 0 0 0 2.5px rgba(255,255,255,0.92);
  filter: drop-shadow(0 3px 5px rgba(0,0,0,0.55)) drop-shadow(0 10px 22px rgba(0,0,0,0.4));
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform;
}
.sticker.circle { border-radius: 50%; }
.sticker.diamond { border-radius: 26%; }
.sticker:hover { transform: rotate(var(--hover-rot, 8deg)) scale(1.16) !important; }
.sticker svg { display: block; }
.sticker-tip {
  position: absolute; top: 100%; left: 50%; z-index: 20;
  margin-top: 0.5rem; padding: 0.25rem 0.625rem; border-radius: 999px;
  white-space: nowrap; font-size: 0.5625rem; text-transform: uppercase; letter-spacing: 0.16em;
  transform: translate(-50%, 6px) scale(0.9); opacity: 0;
  transition: transform 0.3s var(--ease-soft), opacity 0.3s ease;
}
.sticker:hover .sticker-tip { transform: translate(-50%, 0) scale(1); opacity: 1; }

/* a sticker showing one of Ivan's own pictures instead of a drawn icon */
.sticker.has-img { overflow: hidden; }
.sticker.has-img > img.sk-img {
  width: 100%; height: 100%; display: block;
  object-fit: cover !important; border-radius: inherit;
}
.sticker.has-img::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: inset 0 0 0 2.5px rgba(255,255,255,0.92);
  pointer-events: none;
}
/* shape, edge and background options */
.sticker.sk-square { border-radius: 4px; }
.sticker.sk-free {
  border-radius: 0; background: none !important; overflow: visible;
  box-shadow: none;
}
.sticker.sk-free::after { content: none; }
.sticker.sk-noring { box-shadow: none; }
.sticker.sk-noring::after { content: none; }
.sticker.sk-clear { background: none !important; }
.sticker.sk-contain > img.sk-img { object-fit: contain !important; }
.sticker.sk-free > img.sk-img { object-fit: contain !important; }

/* the layer stickers added from the admin panel are pinned into */
/* above the section's own content, below the nav (200) */
.sk-layer { position: absolute; inset: 0; z-index: 40; pointer-events: none; }
.sk-layer .pin { pointer-events: auto; }

.float { animation: floaty var(--dur, 6s) ease-in-out infinite; animation-delay: var(--delay, 0s); }
@keyframes floaty {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(var(--rot, 0deg)); }
  50% { transform: translate3d(0, -9px, 0) rotate(calc(var(--rot, 0deg) + 2deg)); }
}
.pin { position: absolute; z-index: 5; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  min-height: 100svh;
  padding-top: 7rem;
  overflow: hidden;
}
@media (min-width: 640px) { .hero { padding-top: 8rem; } }
.hero > .glow {
  left: 50%; top: 38%; width: 110vmin; height: 70vmin;
  transform: translate(-50%, -50%); opacity: 0.16;
}
.hero-head { position: relative; z-index: 10; width: 100%; max-width: var(--max); padding-inline: var(--pad); text-align: center; }
.badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.375rem 0.875rem; border-radius: 999px;
  font-size: 0.6875rem; font-weight: 500; color: rgba(245,245,242,0.75);
}
.hero h1 { margin-top: 1.5rem; font-size: clamp(3.2rem, 13.6vw, 12.5rem); line-height: 0.86; }
.hero-sub {
  margin-top: 1.25rem;
  font-size: clamp(1.05rem, 2.9vw, 2.1rem); font-weight: 300;
  line-height: 1.15; letter-spacing: -0.04em; color: rgba(245,245,242,0.9);
}
.hero-sub em { font-style: normal; color: var(--accent); }
.hero-sub em i { font-style: italic; }
.hero-copy {
  margin: 1.25rem auto 0; max-width: 62ch;
  font-size: 0.875rem; line-height: 1.7; color: var(--mist); text-wrap: pretty;
}
@media (min-width: 640px) { .hero-copy { font-size: 0.9375rem; } }

.fan-wrap { position: relative; margin-top: 1.75rem; width: 100%; flex: 1; perspective: 1400px; }
@media (min-width: 640px) { .fan-wrap { margin-top: 2.25rem; } }

.fan {
  position: relative; display: none;
  margin-inline: auto; width: 100%; max-width: var(--max); height: 280px;
}
@media (min-width: 640px) { .fan { display: block; } }
@media (min-width: 768px) { .fan { height: 310px; } }
@media (min-width: 1024px) { .fan { height: 338px; } }

.fan-card {
  position: absolute; bottom: 0; left: 50%; width: 168px;
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease-soft);
  will-change: transform;
}
@media (min-width: 768px) { .fan-card { width: 196px; } }
@media (min-width: 1024px) { .fan-card { width: 224px; } }

.card-shell {
  position: relative; aspect-ratio: 3 / 4; overflow: hidden;
  border-radius: 18px; border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 2px 6px rgba(0,0,0,0.45), 0 18px 44px -12px rgba(0,0,0,0.75), inset 0 1px 0 0 rgba(255,255,255,0.055);
}
.card-shell img { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; transition: transform 0.9s var(--ease-soft); }
.fan-card:hover .card-shell img { transform: scale(1.055); }
.card-scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.92), rgba(0,0,0,0.3) 45%, transparent); }
.card-shine {
  position: absolute; inset: 0; opacity: 0; transition: opacity 0.5s ease;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.16) 48%, transparent 62%);
}
.fan-card:hover .card-shine { opacity: 1; }
.card-meta { position: absolute; inset-inline: 0; bottom: 0; padding: 0.875rem; }
.card-num {
  display: inline-block; margin-bottom: 0.5rem; padding: 0.125rem 0.5rem; border-radius: 999px;
  font-size: 0.5625rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; color: #08110f;
}
.card-meta h3 { font-size: 0.8125rem; font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; color: #fff; transition: transform 0.5s var(--ease-soft); }
@media (min-width: 768px) { .card-meta h3 { font-size: 0.875rem; } }
.fan-card:hover .card-meta h3 { transform: translateY(-2px); }
.card-meta p { margin-top: 0.125rem; font-size: 0.625rem; line-height: 1.2; color: rgba(255,255,255,0.6); }

.rail {
  display: flex; gap: 0.875rem;
  padding: 0 var(--pad) 1.5rem;
  overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
@media (min-width: 640px) { .rail { display: none; } }
.rail > a { position: relative; flex: 0 0 62vw; scroll-snap-align: center; }

.scroll-cue { position: relative; z-index: 10; display: none; padding: 0.25rem 0 1.25rem; }
@media (min-width: 640px) { .scroll-cue { display: block; } }
.scroll-cue a { display: flex; flex-direction: column; align-items: center; gap: 0.375rem; }
.scroll-cue span { font-size: 0.5625rem; text-transform: uppercase; letter-spacing: 0.28em; color: var(--mist); }
.scroll-cue b { color: var(--accent); font-weight: 400; animation: bob 1.9s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* ---------- section head ---------- */

.section { position: relative; padding-block: clamp(5rem, 9vw, 10rem); }
.head-meta { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem; }
.head-meta .num { font-size: 0.6875rem; font-variant-numeric: tabular-nums; }
.head-meta .rule { height: 1px; width: 2rem; opacity: 0.5; }
.head h2 { font-size: clamp(2.5rem, 8.2vw, 7.2rem); }
.head.md h2 { font-size: clamp(2rem, 4.6vw, 3.9rem); }
.l2 { display: block; }
.head-body { margin-top: 1.5rem; max-width: 46ch; font-size: 0.9375rem; line-height: 1.7; color: var(--mist); text-wrap: pretty; }
@media (min-width: 640px) { .head-body { font-size: 1rem; } }

/* ---------- about ---------- */

.about-grid { display: grid; gap: 3rem 1.5rem; }
@media (min-width: 1024px) { .about-grid { grid-template-columns: repeat(12, 1fr); } }
.about-copy { display: grid; gap: 1.75rem; margin-top: 2rem; }
@media (min-width: 640px) { .about-copy { grid-template-columns: 1fr 1fr; gap: 2rem; } }
.about-copy p { font-size: 0.9375rem; line-height: 1.7; }
@media (min-width: 640px) { .about-copy p { font-size: 1rem; } }
blockquote {
  margin-top: 2.5rem; max-width: 38ch; padding-left: 1.25rem;
  border-left: 2px solid var(--accent);
  font-size: clamp(1.15rem, 2.5vw, 1.7rem); font-weight: 300; line-height: 1.25; letter-spacing: -0.04em;
}
blockquote em { font-style: italic; color: var(--accent); }
.badges { display: flex; flex-wrap: wrap; gap: 0.625rem; margin-top: 2.25rem; }
.badges span {
  display: inline-block; padding: 0.375rem 0.875rem; border-radius: 999px;
  font-size: 0.6875rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.12em;
  color: rgba(245,245,242,0.8);
}
.portrait { position: relative; }
.portrait-frame { position: relative; overflow: hidden; border-radius: 22px; background: var(--bone); }
.portrait-frame img { width: 100%; height: auto; padding: 1.5rem; }
.annot { position: absolute; left: -1rem; top: 1rem; transform: rotate(-6deg); pointer-events: none; color: var(--accent); }
.annot span { display: block; margin-left: 0.5rem; font-size: 0.6875rem; font-style: italic; opacity: 0.85; }

/* ---------- project cards ---------- */

.card {
  position: relative; display: block;
  transition: transform 0.35s var(--ease-soft);
  will-change: transform;
}
.card-inner {
  position: relative; overflow: hidden; border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 14px 40px -18px rgba(0,0,0,0.7);
  transition: box-shadow 0.5s ease;
}
.card:hover .card-inner { box-shadow: 0 30px 70px -22px rgba(0,0,0,0.8); }
.card-inner > img { width: 100%; height: 100% !important; object-fit: cover; transition: transform 0.9s var(--ease-soft); }
.card:hover .card-inner > img { transform: scale(1.055); }
.card-top { position: absolute; inset-inline: 0; top: 0; display: flex; align-items: flex-start; justify-content: space-between; padding: 1rem; }
@media (min-width: 640px) { .card-top { padding: 1.25rem; } }
.card-idx { font-size: 0.625rem; letter-spacing: 0.14em; color: rgba(255,255,255,0.65); }
.arrow {
  display: grid; place-items: center; width: 2.25rem; height: 2.25rem;
  border-radius: 999px; border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.06); color: #fff;
  transition: transform 0.5s var(--ease-soft), background 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}
.card:hover .arrow { transform: rotate(45deg); border-color: transparent; color: #0a0a0a; }
.card-body { position: absolute; inset-inline: 0; bottom: 0; padding: 1rem; }
@media (min-width: 640px) { .card-body { padding: 1.25rem; } }
.tags { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.tags span {
  padding: 0.125rem 0.5rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2); background: rgba(0,0,0,0.35);
  backdrop-filter: blur(4px);
  font-size: 0.5625rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em;
  color: rgba(255,255,255,0.8);
}
.card-body h3 {
  margin-top: 0.625rem;
  font-size: clamp(1.25rem, 2.9vw, 2.35rem); font-weight: 600; line-height: 1;
  letter-spacing: -0.04em; color: #fff;
  transition: transform 0.65s var(--ease-soft);
}
.card:hover .card-body h3 { transform: translateX(6px); }
.card-disc {
  display: flex; align-items: center; gap: 0.375rem;
  margin-top: 0.375rem; font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.14em;
  color: rgba(255,255,255,0.8);
}
.card-disc b { width: 6px; height: 6px; flex: none; border-radius: 999px; }
.card-blurb { display: none; margin-top: 0.5rem; max-width: 46ch; font-size: 0.78125rem; line-height: 1.6; color: rgba(255,255,255,0.7); }
@media (min-width: 768px) { .card-blurb { display: block; } }
.card-sticker { position: absolute; top: -0.75rem; right: -0.75rem; pointer-events: none; transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1); }
.card:hover .card-sticker { transform: translateY(-4px) rotate(14deg) scale(1.12); }
.card.full .card-sticker { top: 4rem; right: 1.25rem; }

/* work grid */
.work-grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .work-grid { gap: 1.5rem; } }
.row { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .row { gap: 1.5rem; } }
@media (min-width: 1024px) { .row { grid-template-columns: repeat(12, 1fr); } }
@media (min-width: 1024px) {
  .c3 { grid-column: span 3; } .c4 { grid-column: span 4; } .c5 { grid-column: span 5; }
  .c7 { grid-column: span 7; } .c8 { grid-column: span 8; } .c12 { grid-column: span 12; }
  .off-10 { margin-top: 2.5rem; } .off-12 { margin-top: 3rem; } .off-14 { margin-top: 3.5rem; } .off-24 { margin-top: 6rem; }
}

/* ---------- generic figure grids ---------- */

.fig { position: relative; display: block; }
.fig .frame { overflow: hidden; border-radius: 14px; border: 1px solid var(--line); background: var(--ink-700); }
.fig .frame.paper { background: var(--bone); }
.fig .frame.dark { background: #000; }
.fig img { width: 100%; height: auto; transition: transform 0.9s var(--ease-soft); }
.fig .frame.contain img { object-fit: contain; }
.fig .frame.pad img { padding: 1rem; }
.fig:hover img { transform: scale(1.045); }
.fig figcaption { margin-top: 0.625rem; font-size: 0.6875rem; color: var(--mist); }
.fig figcaption .bar { display: inline-block; width: 1rem; height: 1px; margin-right: 0.5rem; vertical-align: middle; opacity: 0.6; }

.ratio { position: relative; overflow: hidden; }
.ratio > img { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; }
.ratio.contain > img { object-fit: contain; }

/* ---------- cinematic ---------- */

.plate { position: relative; height: 62svh; min-height: 380px; overflow: hidden; }
@media (min-width: 640px) { .plate { height: 76svh; } }
.plate img { width: 100%; height: 100% !important; object-fit: cover; }
.plate-scrim-1 { position: absolute; inset: 0; background: linear-gradient(to top, var(--ink), rgba(11,11,11,0.35) 55%, rgba(11,11,11,0.7)); }
.plate-scrim-2 { position: absolute; inset: 0; background: linear-gradient(to right, rgba(11,11,11,0.85), rgba(11,11,11,0.25) 45%, transparent); }
@media (min-width: 1024px) { .plate-scrim-2 { background: linear-gradient(to right, rgba(11,11,11,0.7), transparent 55%); } }
.plate-head { position: absolute; inset: 0; display: flex; align-items: center; pointer-events: none; }
.plate-head .wrap > div { pointer-events: auto; max-width: 20ch; }

.hrail { display: flex; gap: 1rem; width: max-content; padding-inline: var(--pad); margin-top: 3.5rem; will-change: transform; }
@media (min-width: 640px) { .hrail { gap: 1.25rem; } }
.hrail figure { position: relative; flex: 0 0 62vw; }
@media (min-width: 640px) { .hrail figure { flex-basis: 38vw; } }
@media (min-width: 1024px) { .hrail figure { flex-basis: 27vw; } }

/* ---------- illustration mosaic ---------- */

.mosaic { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); gap: 0.75rem; }
@media (min-width: 640px) { .mosaic { gap: 1rem; } }
.m-12 { grid-column: span 12; }
.m-6 { grid-column: span 6; }
@media (min-width: 1024px) {
  .lg-2 { grid-column: span 2; } .lg-3 { grid-column: span 3; } .lg-4 { grid-column: span 4; }
  .lg-5 { grid-column: span 5; } .lg-7 { grid-column: span 7; } .lg-8 { grid-column: span 8; }
  .lg-start-3 { grid-column-start: 3; } .lg-start-6 { grid-column-start: 6; }
}

/* ---------- characters ---------- */

.chars { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
@media (min-width: 640px) { .chars { gap: 1rem; } }
@media (min-width: 1024px) { .chars { grid-template-columns: repeat(12, 1fr); } }
.chars .fig h4 { margin-top: 0.625rem; font-size: 0.75rem; font-weight: 500; color: rgba(245,245,242,0.9); }
.chars .fig p { font-size: 0.65625rem; color: var(--mist); }

/* ---------- branding ---------- */

.brand-grid { display: grid; gap: 1.5rem; }
@media (min-width: 1024px) { .brand-grid { grid-template-columns: repeat(12, 1fr); } }
.brand-list { display: flex; gap: 0.5rem; overflow-x: auto; scrollbar-width: none; }
.brand-list::-webkit-scrollbar { display: none; }
@media (min-width: 1024px) { .brand-list { flex-direction: column; gap: 0; overflow: visible; } }
.brand-list li { flex: none; }
@media (min-width: 1024px) { .brand-list li { border-bottom: 1px solid var(--line); } }
.brand-list button {
  display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.75rem 1rem; border-radius: 999px; text-align: left; white-space: nowrap;
  color: var(--mist); transition: color 0.3s ease;
}
@media (min-width: 1024px) { .brand-list button { padding: 1.25rem 0; border-radius: 0; } }
.brand-list button[aria-pressed='true'] { color: var(--bone); }
.brand-list b { display: block; font-size: 0.875rem; font-weight: 500; letter-spacing: -0.01em; }
.brand-list em { display: none; font-size: 0.6875rem; font-style: normal; color: var(--mist); }
@media (min-width: 1024px) { .brand-list em { display: block; } }
.brand-list i { display: none; width: 6px; height: 6px; border-radius: 999px; background: transparent; }
@media (min-width: 1024px) { .brand-list i { display: block; } }
.brand-list button[aria-pressed='true'] i { background: #4ba85c; }
.brand-panes { position: relative; }
.brand-pane { transition: opacity 0.5s ease; }
.brand-pane[hidden] { position: absolute; inset: 0; display: block; opacity: 0; pointer-events: none; }

/* ---------- social wall ---------- */

.wall { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
@media (min-width: 640px) { .wall { gap: 1rem; } }
.wall-col { display: grid; gap: 0.75rem; align-content: start; will-change: transform; }
@media (min-width: 640px) { .wall-col { gap: 1rem; } }
.wall-col.b { padding-top: 2.5rem; }

/* ---------- posters ---------- */

.posters { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 1rem; }
@media (min-width: 640px) { .posters { grid-template-columns: repeat(3, 1fr); gap: 2rem 1.5rem; } }
@media (min-width: 1024px) { .posters { grid-template-columns: repeat(4, 1fr); gap: 3rem 2rem; } }
.poster { perspective: 1000px; }
.poster figure { transition: transform 0.4s var(--ease-soft); will-change: transform; transform-style: preserve-3d; }
.poster .sheet {
  overflow: hidden; border-radius: 10px; background: var(--ink-700);
  box-shadow: 0 12px 30px -14px rgba(0,0,0,0.75);
  transition: box-shadow 0.5s ease;
}
.poster:hover .sheet { box-shadow: 0 34px 60px -20px rgba(0,0,0,0.85), 0 3px 10px rgba(0,0,0,0.6); }
.poster h4 { margin-top: 0.625rem; font-size: 0.78125rem; font-weight: 500; line-height: 1.2; color: rgba(245,245,242,0.9); }
.poster p { font-size: 0.65625rem; color: var(--mist); }

/* ---------- editorial papers ---------- */

.papers { display: grid; gap: 1rem; }
@media (min-width: 640px) { .papers { gap: 1.25rem; } }
@media (min-width: 1024px) { .papers { grid-template-columns: repeat(12, 1fr); } }
.papers .fig { transition: transform 0.7s var(--ease-soft); }
.papers .fig:hover { transform: rotate(0deg) !important; }

/* ---------- game art ---------- */

.scan { position: absolute; inset: 0; opacity: 0.055; pointer-events: none;
  background-image: repeating-linear-gradient(0deg, #fff 0, #fff 1px, transparent 1px, transparent 4px); }
.hud { width: fit-content; padding: 0.75rem 1rem; border-radius: 14px; font-size: 0.65625rem; text-transform: uppercase; letter-spacing: 0.14em; }
.hud li { display: flex; gap: 1rem; padding-block: 0.125rem; }
.hud li span { width: 3.5rem; color: rgba(142,142,136,0.7); }
.hud li b { color: #e2a33b; font-weight: 500; }

.tile-title { position: absolute; inset-inline: 0; bottom: 0; padding: 1.25rem; }
.tile-title h3 { font-size: clamp(1.1rem, 2.4vw, 2.2rem); font-weight: 600; line-height: 1; letter-spacing: -0.04em; color: #fff; transition: transform 0.7s var(--ease-soft); }
.fig:hover .tile-title h3 { transform: translateX(6px); }
.tile-title p { margin-top: 0.375rem; font-size: 0.71875rem; color: rgba(255,255,255,0.7); }
.chip {
  display: inline-block; padding: 0.125rem 0.625rem; border-radius: 999px;
  font-size: 0.5625rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em;
}

/* ---------- playground ---------- */

.filters { display: flex; gap: 0.5rem; overflow-x: auto; scrollbar-width: none; padding-bottom: 0.25rem; }
.filters::-webkit-scrollbar { display: none; }
@media (min-width: 640px) { .filters { flex-wrap: wrap; overflow: visible; } }
.filters button {
  flex: none; padding: 0.5rem 1rem; border-radius: 999px;
  border: 1px solid rgba(245,245,242,0.12);
  font-size: 0.71875rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--mist);
  transition: color 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.filters button[aria-pressed='true'] { background: var(--bone); border-color: var(--bone); color: var(--ink); }
.filters .count { margin-left: auto; align-self: center; padding-left: 0.75rem; font-size: 0.65625rem; color: rgba(142,142,136,0.6); }
@media (max-width: 639px) { .filters .count { display: none; } }

.lab { columns: 2; column-gap: 0.75rem; }
@media (min-width: 640px) { .lab { columns: 3; column-gap: 1rem; } }
@media (min-width: 1024px) { .lab { columns: 4; } }
.lab figure { break-inside: avoid; margin-bottom: 0.75rem;
  transition: opacity 0.4s ease, transform 0.45s cubic-bezier(0.34,1.56,0.64,1); }
@media (min-width: 640px) { .lab figure { margin-bottom: 1rem; } }
.lab figure.hide { display: none; }
.lab figure.pop { opacity: 0; transform: scale(0.94) translateY(14px); }
.lab figcaption { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-top: 0.5rem; }
.lab figcaption span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.6875rem; color: var(--mist); }
.lab figcaption b { flex: none; font-size: 0.5625rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.14em; color: #8a4be2; }

/* ---------- marquee ---------- */

.marquee { position: relative; width: 100%; overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent); }
.marquee-track { display: flex; width: max-content; align-items: center; animation: slide var(--speed, 54s) linear infinite; will-change: transform; }
.marquee.rev .marquee-track { animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes slide { from { transform: translate3d(0,0,0); } to { transform: translate3d(-50%,0,0); } }
.skill {
  display: inline-block; margin-inline: 0.375rem; white-space: nowrap;
  padding: 0.625rem 1.25rem; border-radius: 999px; border: 1px solid rgba(245,245,242,0.12);
  font-size: 0.8125rem; font-weight: 500; letter-spacing: -0.01em; color: rgba(245,245,242,0.85);
  transition: border-color 0.3s ease, color 0.3s ease;
}
@media (min-width: 640px) { .skill { font-size: 0.9375rem; } }
.skill:hover { border-color: rgba(43,224,214,0.6); color: var(--accent); }
.client { padding-inline: 1rem; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--mist); transition: color 0.3s ease; }
.client:hover { color: var(--bone); }
.sep { padding-inline: 0.25rem; color: rgba(43,224,214,0.6); }

/* ---------- stats ---------- */

.stats { position: relative; border-block: 1px solid var(--line); padding-block: clamp(4rem, 7vw, 7rem); overflow: hidden; }
.stats .glow { left: 50%; top: 50%; width: 90vmin; height: 42vmin; transform: translate(-50%,-50%); opacity: 0.13; }
.stat-grid { display: grid; gap: 3rem; }
@media (min-width: 640px) { .stat-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.stat p.n { font-size: clamp(4rem, 13vw, 10rem); line-height: 0.82; }
.stat p.l { margin-top: 0.75rem; font-size: 0.8125rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.16em; color: var(--accent); }
.stat p.s { margin-top: 0.25rem; font-size: 0.75rem; color: var(--mist); }
@media (max-width: 639px) { .stat { text-align: center; } }

/* ---------- certificates ---------- */

.certs { display: flex; flex-wrap: wrap; gap: 1rem; }
.cert {
  width: 240px; padding: 0.75rem; border-radius: 14px; text-align: left;
  transition: transform 0.5s var(--ease-soft), border-color 0.4s ease;
}
@media (min-width: 640px) { .cert { width: 260px; } }
.cert:hover { transform: translateY(-6px) rotate(0deg) !important; border-color: rgba(43,224,214,0.4); }
.cert .frame { overflow: hidden; border-radius: 8px; background: var(--bone); }
.cert h4 { margin-top: 0.625rem; font-size: 0.78125rem; font-weight: 500; line-height: 1.2; color: rgba(245,245,242,0.9); }
.cert p { margin-top: 0.125rem; font-size: 0.6875rem; color: var(--mist); }

.modal { position: fixed; inset: 0; z-index: 250; display: grid; place-items: center; padding: 1.25rem;
  background: rgba(11,11,11,0.94); backdrop-filter: blur(12px); opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s; }
.modal.open { opacity: 1; visibility: visible; }
.modal-box { width: 100%; max-width: 820px; transform: scale(0.94) translateY(16px); transition: transform 0.4s var(--ease-soft); }
.modal.open .modal-box { transform: none; }
.modal-box .frame { overflow: hidden; border-radius: 16px; background: var(--bone); }
.modal-foot { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; margin-top: 1rem; }
.modal-foot p:first-child { font-size: 0.9375rem; font-weight: 500; }
.modal-foot p { font-size: 0.75rem; color: var(--mist); }
.modal-close { flex: none; padding: 0.5rem 1rem; border-radius: 999px; font-size: 0.75rem; color: rgba(245,245,242,0.85); transition: border-color 0.3s ease; }
.modal-close:hover { border-color: rgba(43,224,214,0.5); }

/* ---------- contact ---------- */

.contact { position: relative; overflow: hidden; padding-block: clamp(5rem, 9vw, 8rem); }
.contact .glow { left: 50%; bottom: 0; width: 120vmin; height: 60vmin; transform: translate(-50%, 33%); opacity: 0.15; }
.contact h2 { font-size: clamp(3rem, 12.5vw, 11rem); line-height: 0.82; }
.contact-grid { display: grid; gap: 3rem; margin-top: 3rem; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: repeat(12, 1fr); gap: 1.5rem; } }
.contact-line { display: flex; align-items: center; gap: 0.75rem; width: fit-content;
  font-size: clamp(1rem, 2.2vw, 1.5rem); font-weight: 500; letter-spacing: -0.04em;
  transition: color 0.3s ease; }
.contact-line:hover { color: var(--accent); }
.contact-line i { font-style: normal; color: var(--accent); opacity: 0; transition: opacity 0.4s ease, transform 0.4s ease; }
.contact-line:hover i { opacity: 1; transform: translateX(4px); }
.pillbtn { padding: 0.5rem 1rem; border-radius: 999px; font-size: 0.75rem; color: rgba(245,245,242,0.85); transition: border-color 0.3s ease, color 0.3s ease; }
.pillbtn:hover { border-color: rgba(43,224,214,0.5); color: var(--accent); }

.talk-wrap { display: flex; align-items: center; justify-content: center; position: relative; }
.talk {
  position: relative; display: grid; place-items: center; text-align: center;
  width: min(54vw, 340px); aspect-ratio: 1; border-radius: 999px;
  background: var(--accent); color: #07211f;
  transition: background 0.5s ease, transform 0.4s var(--ease-soft);
  will-change: transform;
}
.talk:hover { background: var(--accent-soft); }
.talk span { padding-inline: 1.5rem; font-size: clamp(1.2rem, 3.4vw, 2.1rem); font-weight: 700; line-height: 1; letter-spacing: -0.055em; }
.talk i { display: inline-block; font-style: normal; margin-left: 0.25rem; transition: transform 0.5s var(--ease-soft); }
.talk:hover i { transform: translate(4px, -4px); }
.talk::after { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: 999px; background: rgba(43,224,214,0.3); filter: blur(40px); transition: filter 0.7s ease; }
.talk:hover::after { filter: blur(60px); }

/* ---------- footer ---------- */

footer { border-top: 1px solid var(--line); padding: 3.5rem 0 2.5rem; }
.foot-top { display: flex; flex-direction: column; gap: 2.5rem; }
@media (min-width: 768px) { .foot-top { flex-direction: row; align-items: flex-start; justify-content: space-between; } }
.foot-top h2 { font-size: clamp(1.8rem, 4.4vw, 3.4rem); }
.foot-top p { font-size: 0.8125rem; color: var(--mist); }
.foot-cols { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 1.5rem 2.5rem; }
.foot-col { display: flex; flex-direction: column; gap: 0.625rem; }
.foot-col a, .foot-col span:not(.eyebrow) { font-size: 0.875rem; color: rgba(245,245,242,0.85); }
.ulink { position: relative; width: fit-content; transition: color 0.3s ease; }
.ulink::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 1px; background: var(--accent); transition: width 0.5s var(--ease-soft); }
.ulink:hover { color: var(--accent); }
.ulink:hover::after { width: 100%; }
.ulink i { display: inline-block; margin-left: 0.25rem; font-style: normal; opacity: 0; transition: opacity 0.3s ease, transform 0.3s ease; }
.ulink:hover i { opacity: 1; transform: translateX(2px); }
.totop { display: flex; align-items: center; gap: 0.5rem; height: 3rem; padding-inline: 1.25rem; border-radius: 999px; font-size: 0.8125rem; font-weight: 500; }
.foot-bot { display: flex; flex-direction: column-reverse; align-items: flex-start; justify-content: space-between; gap: 1rem;
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
@media (min-width: 640px) { .foot-bot { flex-direction: row; align-items: center; } }
.foot-bot p { font-size: 0.6875rem; color: rgba(142,142,136,0.7); }
.foot-bot .mono { font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.2em; color: rgba(142,142,136,0.6); }

/* ---------- project pages ---------- */

.p-hero { position: relative; height: 86svh; min-height: 520px; overflow: hidden; }
.p-hero > img { width: 100%; height: 100% !important; object-fit: cover; will-change: transform; }
.p-hero-scrim { position: absolute; inset: 0; background: linear-gradient(to top, var(--ink), rgba(11,11,11,0.45) 55%, rgba(11,11,11,0.6)); }
.p-hero-body { position: absolute; inset-inline: 0; bottom: 0; padding-bottom: 3rem; }
@media (min-width: 640px) { .p-hero-body { padding-bottom: 4rem; } }
.p-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem; }
.back { padding: 0.375rem 0.875rem; border-radius: 999px; font-size: 0.6875rem; color: rgba(245,245,242,0.8); transition: border-color 0.3s ease; }
.back:hover { border-color: rgba(245,245,242,0.4); }
.p-hero h1 { font-size: clamp(2.6rem, 10vw, 8.5rem); line-height: 0.82; }
.p-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 1.5rem; }
.p-tags span { padding: 0.25rem 0.75rem; border-radius: 999px; font-size: 0.65625rem; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(245,245,242,0.8); }

.chapter { display: flex; align-items: baseline; gap: 0.75rem; margin-bottom: 1.5rem; }
.chapter .n { font-size: 0.6875rem; font-variant-numeric: tabular-nums; }
.chapter .rule { width: 1.5rem; height: 1px; opacity: 0.5; }

.p-grid { display: grid; gap: 3rem; padding-block: clamp(4rem, 7vw, 7rem); }
@media (min-width: 1024px) { .p-grid { grid-template-columns: repeat(12, 1fr); gap: 1.5rem; } }
.p-lead { font-size: clamp(1.05rem, 2.1vw, 1.45rem); font-weight: 300; letter-spacing: -0.04em; line-height: 1.5; text-wrap: pretty; }
.p-body { font-size: 0.9375rem; line-height: 1.7; color: var(--mist); text-wrap: pretty; }
.p-body.light { color: rgba(245,245,242,0.85); font-size: 1rem; }
@media (min-width: 640px) { .p-body.light { font-size: 1.03125rem; } }
.role-list li { display: flex; align-items: center; justify-content: space-between; padding-block: 0.75rem; border-bottom: 1px solid var(--line); font-size: 0.875rem; color: rgba(245,245,242,0.9); }
.role-list li span { font-size: 0.625rem; color: rgba(142,142,136,0.5); }

.gallery { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .gallery { gap: 1.25rem; } }
@media (min-width: 1024px) { .gallery { grid-template-columns: repeat(12, 1fr); } }
@media (min-width: 1024px) {
  .g1 { grid-column: span 4; } .g2 { grid-column: span 7; } .g3 { grid-column: span 12; }
  .g-left { margin-left: -2rem; } .g-right { margin-right: -2rem; }
}
@media (min-width: 1280px) { .g-left { margin-left: -4rem; } .g-right { margin-right: -4rem; } }

.process { display: grid; gap: 1px; margin-top: 2rem; overflow: hidden; border-radius: 16px; border: 1px solid var(--line); background: var(--line); }
@media (min-width: 640px) { .process { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .process { grid-template-columns: repeat(4, 1fr); } }
.process > div { background: var(--ink); padding: 1.5rem; transition: background 0.5s ease; }
@media (min-width: 640px) { .process > div { padding: 1.75rem; } }
.process > div:hover { background: var(--ink-700); }
.process span { font-size: 0.6875rem; }
.process h3 { margin-top: 0.75rem; font-size: 1rem; font-weight: 600; letter-spacing: -0.02em; }
.process p { margin-top: 0.625rem; font-size: 0.8125rem; line-height: 1.6; color: var(--mist); }

.details { display: grid; gap: 0 1.5rem; margin-top: 1.5rem; }
@media (min-width: 640px) { .details { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .details { grid-template-columns: repeat(4, 1fr); } }
.details > div { border-top: 1px solid var(--line); padding-block: 1.25rem; }
.details dt { margin-bottom: 0.5rem; }
.details dd { font-size: 0.875rem; line-height: 1.4; color: rgba(245,245,242,0.9); }
.disc-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; }
.disc-chips span { padding: 0.375rem 0.875rem; border-radius: 999px; font-size: 0.6875rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; }

.next { position: relative; border-top: 1px solid var(--line); }
.next-inner { position: relative; height: 52svh; min-height: 340px; overflow: hidden; }
.next-inner > img { width: 100%; height: 100% !important; object-fit: cover; opacity: 0.45; transition: transform 1.1s var(--ease-soft), opacity 1.1s var(--ease-soft); }
.next:hover .next-inner > img { transform: scale(1.06); opacity: 0.7; }
.next-scrim { position: absolute; inset: 0; background: linear-gradient(to top, var(--ink), rgba(11,11,11,0.5) 55%, rgba(11,11,11,0.4)); }
.next-body { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding-inline: 1.25rem; }
.next-body h2 { font-size: clamp(2.2rem, 8vw, 6.5rem); transition: transform 0.7s var(--ease-soft); }
.next:hover .next-body h2 { transform: translateY(-6px); }
.next-body .open { display: inline-flex; align-items: center; gap: 0.5rem; height: 3rem; margin-top: 1.75rem; padding-inline: 1.5rem; border-radius: 999px; font-size: 0.8125rem; font-weight: 600; color: #0a0a0a; }

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .mask > * { clip-path: none !important; }
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.12s !important;
  }
  .float, .marquee-track, .dot::before, .scroll-cue b { animation: none !important; }
  .r { transform: none; }
  .mask { clip-path: none; }
  .split .w > i { transform: none; }
  .cursor-ring, .cursor-dot { display: none !important; }
}

/* ============================================================
   Layout helpers used by the generated markup
   ============================================================ */

.deskonly { display: none; }
@media (min-width: 1024px) { .deskonly { display: block; } }

@media (min-width: 1024px) {
  .head-row { flex-direction: row !important; align-items: flex-end; justify-content: space-between; }
  .head-row > .head { flex: 1 1 auto; }
  .head-row > :not(.head) { flex: none; }
}

@media (min-width: 1024px) {
  .about-grid > .lg-7 { grid-column: span 7; }
  .about-grid > .lg-4 { grid-column: span 4; }
  .about-grid > .lg-4.lg-start-9 { grid-column: 9 / span 4; }
}

@media (min-width: 1024px) {
  .char-grid { grid-template-columns: repeat(12, 1fr); gap: 1.5rem !important; }
  .char-side { grid-column: span 4; position: sticky; top: 7rem; align-self: start; }
  .char-main { grid-column: span 8; }
}

@media (min-width: 1024px) {
  .social-grid { grid-template-columns: repeat(12, 1fr); gap: 1.5rem !important; }
  .social-side { grid-column: span 5; position: sticky; top: 7rem; align-self: start; }
  .social-main { grid-column: span 7; }
}

.brand-side { order: 2; }
.brand-main { order: 1; }
@media (min-width: 1024px) {
  .brand-side { order: 1; grid-column: span 3; }
  .brand-main { order: 2; grid-column: span 9; }
}

@media (min-width: 1024px) {
  .cin-copy { grid-template-columns: repeat(12, 1fr); }
  .cin-copy > :first-child { grid-column: span 5; }
  .cin-copy > :last-child { grid-column: 8 / span 4; }
}

@media (min-width: 1024px) {
  .cert-row { flex-direction: row !important; align-items: flex-end; justify-content: space-between; }
}

@media (min-width: 1024px) {
  .contact-grid > .c5 { grid-column: span 5; }
  .contact-grid > .talk-wrap { grid-column: 7 / span 6; }
}
@media (max-width: 1023px) {
  .contact-grid > .c5, .contact-grid > .talk-wrap { grid-column: 1 / -1 !important; }
}

/* project-page grid columns collapse below lg */
@media (max-width: 1023px) {
  .p-grid > div { grid-column: 1 / -1 !important; }
}



/* game-art tiles need a positioned parent for the scrim */
.fig > div { position: relative; }
.fig .card-scrim { border-radius: 14px; }

/* project hero image parallax needs room to move */
.p-hero > img, .plate > img { will-change: transform; }

.magnet { display: inline-block; will-change: transform; }


/* ---------- grid guards: keep single-column below lg ---------- */
.about-grid > *, .contact-grid > *, .brand-grid > *, .p-grid > * { grid-column: 1 / -1; }
@media (min-width: 1024px) {
  .about-grid > .lg-12 { grid-column: span 12; }
  .about-grid > .lg-7 { grid-column: span 7; }
  .about-grid > .lg-4 { grid-column: span 4; }
  .about-grid > .lg-4.lg-start-9 { grid-column: 9 / span 4; }
  .contact-grid { grid-template-columns: repeat(12, 1fr); }
  .contact-grid > .lg-5 { grid-column: span 5; }
  .contact-grid > .lg-6-7 { grid-column: 7 / span 6; }
  .brand-grid > .brand-side { grid-column: span 3; }
  .brand-grid > .brand-main { grid-column: span 9; }
  .p-grid > .lg-7 { grid-column: span 7; }
  .p-grid > .lg-4-9 { grid-column: 9 / span 4; }
  .p-grid > .lg-4 { grid-column: span 4; }
  .p-grid > .lg-7-6 { grid-column: 6 / span 7; }
}

/* ============================================================
   Lightbox
   ============================================================ */

img[data-lb] { cursor: zoom-in; }
@media (hover: hover) and (pointer: fine) {
  html.cursor-on img[data-lb] { cursor: none !important; }
}

.lb {
  position: fixed; inset: 0; z-index: 320;
  display: grid; place-items: center;
  padding: clamp(1rem, 4vw, 3.5rem);
  background: rgba(6, 6, 6, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.32s var(--ease-soft), visibility 0.32s;
}
.lb.open { opacity: 1; visibility: visible; }

.lb-stage {
  display: flex; flex-direction: column; align-items: center; gap: 0.875rem;
  max-width: 100%; max-height: 100%;
  transform: scale(0.965);
  transition: transform 0.42s var(--ease-swift);
}
.lb.open .lb-stage { transform: none; }

.lb-stage img {
  max-width: 100%;
  max-height: calc(100svh - clamp(6rem, 14vw, 10rem));
  width: auto; height: auto !important;
  object-fit: contain;
  border-radius: 10px;
  background: #111;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.9);
  opacity: 0;
  cursor: zoom-in;
  transition: opacity 0.3s ease, transform 0.4s var(--ease-soft);
}
.lb-stage img.zoom {
  max-height: none; max-width: none;
  width: auto; height: auto !important;
  transform: scale(1.9);
  cursor: zoom-out;
}

.lb-stage figcaption {
  display: flex; align-items: center; gap: 1rem;
  max-width: min(90vw, 60ch);
  font-size: 0.78125rem; color: var(--mist); text-align: center;
}
.lb-cap { flex: 1 1 auto; }
.lb-count { flex: none; font-size: 0.6875rem; letter-spacing: 0.14em; color: rgba(142,142,136,0.65); }

.lb-close, .lb-nav {
  position: absolute; z-index: 2;
  display: grid; place-items: center;
  width: 3rem; height: 3rem; border-radius: 999px;
  background: rgba(20, 20, 20, 0.72);
  border: 1px solid rgba(245, 245, 242, 0.12);
  color: var(--bone);
  backdrop-filter: blur(10px);
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s var(--ease-soft);
}
.lb-close:hover, .lb-nav:hover { background: var(--accent); color: #07211f; border-color: transparent; }
.lb-close { top: clamp(0.75rem, 2vw, 1.5rem); right: clamp(0.75rem, 2vw, 1.5rem); font-size: 0.9rem; }
.lb-nav { top: 50%; margin-top: -1.5rem; font-size: 1.6rem; line-height: 1; padding-bottom: 0.2rem; }
.lb-prev { left: clamp(0.5rem, 2vw, 1.75rem); }
.lb-next { right: clamp(0.5rem, 2vw, 1.75rem); }
.lb-nav:hover { transform: scale(1.08); }
.lb.solo .lb-nav { display: none; }

@media (max-width: 640px) {
  .lb-nav { width: 2.6rem; height: 2.6rem; margin-top: -1.3rem; }
  .lb-stage img.zoom { transform: scale(1.5); }
}

/* preview banner while checking unsaved admin changes */
html[data-preview] body::before {
  content: 'PREVIEW — showing unsaved admin changes';
  position: fixed; left: 50%; bottom: 1rem; z-index: 310;
  transform: translateX(-50%);
  padding: 0.5rem 1rem; border-radius: 999px;
  background: var(--accent); color: #07211f;
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.8);
}
