/* ---------- Tokens ---------- */
:root {
  --bg: #f6f5f2;
  --ink: #141414;
  --muted: #8a8882;
  --line: #dddbd5;
  --gutter: clamp(16px, 2.6vw, 40px);
  --sans: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Newsreader", "Times New Roman", serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  opacity: 0;
  transition: opacity 0.5s ease;
}
body.is-ready { opacity: 1; }
body.is-leaving { opacity: 0; transition-duration: 0.25s; }

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.wrap { padding: 0 var(--gutter); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 22px var(--gutter);
  mix-blend-mode: difference; color: #fff;
}
.nav__name { font-weight: 500; letter-spacing: -0.01em; }
.nav__links { display: flex; gap: clamp(16px, 2.4vw, 36px); }
.nav__links a { position: relative; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Type ---------- */
.display {
  font-size: clamp(34px, 5.6vw, 92px);
  line-height: 1.02; letter-spacing: -0.035em; font-weight: 400;
  max-width: 20ch;
}
.display em, .statement em { font-family: var(--serif); font-style: italic; letter-spacing: -0.02em; }
.statement {
  font-family: var(--serif);
  font-size: clamp(24px, 3.2vw, 48px);
  line-height: 1.15; letter-spacing: -0.015em; font-weight: 400;
  max-width: 24ch;
}
.label { font-size: 12px; color: var(--muted); letter-spacing: 0.01em; }
.body-serif { font-family: var(--serif); font-size: clamp(18px, 1.5vw, 22px); line-height: 1.35; }

/* Line-by-line reveal for headlines */
.lines .line { display: block; overflow: hidden; }
.lines .line > span {
  display: block; transform: translateY(105%);
  transition: transform 1.1s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms + 150ms);
}
.is-ready .lines .line > span { transform: none; }

/* Fade-up on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s ease, transform 1.1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Home: hero ---------- */
.hero { padding-top: clamp(140px, 24vh, 260px); padding-bottom: clamp(48px, 8vw, 110px); }
.hero__meta {
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin-top: clamp(40px, 6vw, 90px);
}

/* Discipline tabs (also filter the grid) */
.tabs { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.tabs button { color: var(--muted); transition: color 0.3s ease; padding: 2px 0; }
.tabs button:hover, .tabs button[aria-pressed="true"] { color: var(--ink); }
.tabs button sup { font-size: 10px; margin-left: 2px; }

/* ---------- Work grid ---------- */
.grid {
  display: grid; grid-template-columns: repeat(12, 1fr);
  gap: clamp(40px, 5vw, 80px) var(--gutter);
  padding-bottom: clamp(80px, 10vw, 160px);
}
.tile { grid-column: span 6; display: block; transition: opacity 0.4s ease; }
.tile--full { grid-column: span 12; }
.tile--offset { margin-top: clamp(0px, 8vw, 140px); }
.tile.is-hidden { display: none; }
.tile__caption {
  display: flex; justify-content: space-between; gap: 16px;
  margin-top: 12px;
}
.tile__caption span:last-child { color: var(--muted); text-align: right; }

/* Media frames */
.media { position: relative; overflow: hidden; border-radius: 4px; background: var(--line); }
.media img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  transform: scale(var(--s, 1)); will-change: transform;
  transition: scale 1.2s var(--ease);
}
a.tile:hover .media img { scale: 1.035; }
.media.ph { background: linear-gradient(135deg, var(--c1, #cfcbc2), var(--c2, #b9b4a8)); } /* placeholder block */
[data-drift] { will-change: translate; }

.media video { display: block; width: 100%; height: 100%; object-fit: cover; background: #000; }

/* Tall page screenshots that pan slowly inside a fixed frame */
.scroll { container-type: size; }
.scroll img { position: absolute; top: 0; left: 0; height: auto; object-fit: fill; animation: pan var(--d, 40s) ease-in-out infinite alternate; }
@keyframes pan { from { transform: translateY(0); } to { transform: translateY(calc(-100% + 100cqh)); } }
.two-up--flat > :last-child { margin-top: 0; }

/* A row of phone screens or cards on a coloured panel */
.shelf { display: flex; justify-content: center; align-items: flex-start; gap: clamp(14px, 4vw, 64px); padding: clamp(32px, 7vw, 110px) var(--gutter); border-radius: 4px; }
.shelf img { flex: 1 1 0; min-width: 0; max-width: var(--mw, 300px); height: auto; border-radius: var(--r, 28px); }
.shelf img:nth-child(2) { margin-top: clamp(16px, 4vw, 60px); }
@media (max-width: 760px) { .shelf { --r: 12px; } }

/* Cross-fading set of images */
.cycle img { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease, scale 1.2s var(--ease); }
.cycle img.is-on { opacity: 1; }

/* Slow horizontal strip of phone screens */
.marquee { overflow: hidden; padding: clamp(40px, 6vw, 96px) 0; margin-bottom: clamp(40px, 6vw, 100px); background: var(--mq, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 70s linear infinite; }
.marquee img { height: clamp(340px, 42vw, 600px); width: auto; margin-right: clamp(16px, 2.2vw, 36px); border-radius: clamp(20px, 2.4vw, 34px); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Home: project list ---------- */
.rows { padding-bottom: clamp(80px, 10vw, 160px); }
.row {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); align-items: baseline;
  border-top: 1px solid var(--line); padding: clamp(14px, 1.6vw, 24px) 0;
  transition: color 0.4s ease, opacity 0.9s ease, transform 1.1s var(--ease);
}
.row:last-of-type { border-bottom: 1px solid var(--line); }
.row.is-hidden { display: none; }
.row__num { grid-column: span 1; font-size: 12px; color: var(--muted); }
.row__name {
  grid-column: span 7; font-size: clamp(30px, 4.6vw, 76px); line-height: 1.05; letter-spacing: -0.035em;
  transition: transform 0.7s var(--ease);
}
.row__tags { grid-column: span 4; text-align: right; color: var(--muted); }
.row__more { /* opens downwards on hover, pushing the rows below */
  grid-column: 2 / span 7; display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 0.6s var(--ease);
}
.row__more > span {
  overflow: hidden; min-height: 0; font-family: var(--serif); font-size: clamp(17px, 1.5vw, 22px); line-height: 1.35; max-width: 38ch;
  opacity: 0; transition: opacity 0.4s ease;
}
.row__more > span::before { content: ""; display: block; height: 12px; }
.row__thumb { display: none; }
@media (hover: hover) {
  .rows:hover .row { color: var(--muted); }
  .rows:hover .row:hover { color: var(--ink); }
  .row:hover .row__name { transform: translateX(clamp(8px, 1.2vw, 20px)); }
  .row:hover .row__more { grid-template-rows: 1fr; }
  .row:hover .row__more > span { opacity: 1; transition-delay: 0.12s; }
}
@media (hover: none) { /* touch screens: description and picture are always shown */
  .row__more { grid-template-rows: 1fr; grid-column: 1 / -1; }
  .row__more > span { opacity: 1; }
  .row__thumb { display: block; width: 100%; height: auto; border-radius: 4px; margin: 4px 0 12px; }
}

/* Thumbnail that follows the cursor */
.peek {
  position: fixed; left: 0; top: 0; z-index: 9; pointer-events: none;
  width: clamp(220px, 24vw, 380px); aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px;
  opacity: 0; scale: 0.9; transition: opacity 0.35s ease, scale 0.6s var(--ease), aspect-ratio 0.5s var(--ease);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
}
.peek.is-on { opacity: 1; scale: 1; }
.peek img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.35s ease; }
.peek img.is-on { opacity: 1; }
@media (hover: none) { .peek { display: none; } }

/* ---------- Rialto design-system block ---------- */
.rs { background: #0b0c0c; color: #fff; border-radius: 4px; padding: clamp(20px, 3.4vw, 56px); font-family: "Poppins", var(--sans); }
.rs__top { display: flex; justify-content: space-between; font-size: 12px; color: rgba(255,255,255,.55); padding-bottom: clamp(20px, 3vw, 44px); }
.rs__row { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); border-top: 1px solid rgba(255,255,255,.14); padding: clamp(20px, 2.6vw, 40px) 0 clamp(28px, 4vw, 64px); }
.rs__row > h3 { grid-column: span 3; font-size: 12px; font-weight: 400; color: rgba(255,255,255,.55); }
.rs__row > div { grid-column: span 9; }
.rs__meta { font-size: 11px; color: rgba(255,255,255,.5); letter-spacing: .02em; margin-bottom: 10px; }
.rs__swatches { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.rs__sw {
  background: var(--sw); aspect-ratio: 3 / 5; border-radius: 3px; padding: 12px; display: flex; flex-direction: column; justify-content: flex-end;
  font-size: 12px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); transition: transform .7s var(--ease);
}
.rs__sw:hover { transform: translateY(-8px); }
.rs__sw b { font-weight: 600; } .rs__sw i { font-style: normal; opacity: .65; }
.rs__sw--light { color: #000; box-shadow: none; }
.rs__sw--grad { background: linear-gradient(180deg, #52e5e7, #a99cf8, #52e5e7); background-size: 100% 300%; animation: rs-grad 9s ease-in-out infinite alternate; }
@keyframes rs-grad { to { background-position: 0 100%; } }
.rs__type { display: grid; grid-template-columns: 1fr 2fr; gap: var(--gutter); align-items: end; }
.rs__aa { font-weight: 600; font-size: clamp(90px, 15vw, 240px); line-height: .8; letter-spacing: -.04em; }
.rs__h { font-weight: 600; font-size: clamp(22px, 2.8vw, 44px); line-height: 1.12; letter-spacing: -.01em; margin-bottom: clamp(18px, 2.4vw, 36px); max-width: 16ch; }
.rs__p { font-size: clamp(14px, 1.2vw, 18px); line-height: 1.55; color: rgba(255,255,255,.8); max-width: 44ch; }
.rs__parts { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: var(--gutter); align-items: start; }
.rs__parts img { display: block; width: 100%; height: auto; border-radius: 10px; margin-bottom: 10px; }
.rs__line { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.rs__btn { background: #fff; color: #000; font-weight: 600; font-size: 13px; padding: 11px 20px; border-radius: 3px; }
.rs__btn--dark { background: #000; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }
.rs__seg { display: inline-flex; border: 1px solid #45bbba; border-radius: 3px; font-size: 12px; font-weight: 600; }
.rs__seg span { padding: 9px 16px; } .rs__seg .is-on { background: rgba(69,187,186,.22); color: #7fe9e8; }
.rs__pg { width: 30px; height: 30px; display: grid; place-items: center; font-size: 12px; border: 1px solid rgba(255,255,255,.3); border-radius: 3px; }
.rs__pg.is-on { background: #fff; color: #000; border-color: #fff; }
@media (max-width: 760px) {
  .rs__row > h3, .rs__row > div { grid-column: 1 / -1; }
  .rs__swatches { grid-template-columns: repeat(3, 1fr); }
  .rs__type, .rs__parts { grid-template-columns: 1fr 1fr; }
  .rs__aa, .rs__controls { grid-column: 1 / -1; }
  .row__num { display: none; } .row__name { grid-column: span 12; } .row__tags { grid-column: span 12; text-align: left; margin-top: 4px; }
}

/* Caption under a block: bold title plus one line */
.block--tight { padding-bottom: 14px; }
.cap { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); padding-bottom: clamp(40px, 6vw, 100px); font-size: 14px; }
.cap b { grid-column: span 4; font-weight: 500; }
.cap span { grid-column: span 6; color: #5f5d58; max-width: 60ch; }

/* Drag to compare two versions of a screen */
.compare { --x: 50%; }
.compare img { object-position: top; }
.compare__top { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--x)); }
.compare__bar { position: absolute; top: 0; bottom: 0; left: var(--x); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.12); pointer-events: none; }
.compare__bar::after { content: "\2194"; position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; margin: -20px; border-radius: 50%; background: #fff; color: #141414; display: grid; place-items: center; font-size: 16px; box-shadow: 0 4px 18px rgba(0,0,0,.25); }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare__tag { position: absolute; left: 14px; bottom: 14px; font-size: 11px; padding: 5px 10px; border-radius: 99px; background: rgba(20,20,20,.72); color: #fff; pointer-events: none; }
.compare__tag--r { left: auto; right: 14px; background: rgba(255,255,255,.85); color: #141414; }

/* Segmented control above a screen */
.switch__tabs { display: inline-flex; padding: 3px; border-radius: 99px; background: rgba(255, 255, 255, .55); margin-bottom: 14px; }
.switch__tabs button { padding: 7px 18px; border-radius: 99px; font-size: 13px; color: #5f5d58; transition: background .3s ease, color .3s ease; }
.switch__tabs button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.cycle--manual img { object-position: top; transition: opacity .5s ease; }

/* Live UI demo with notes */
.ux { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); align-items: center; background: #efedf7; border-radius: 4px; padding: clamp(28px, 5vw, 80px) clamp(20px, 4vw, 64px); }
.ux__notes { grid-column: span 5; }
.ux__notes h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2.4vw, 34px); line-height: 1.15; margin: 10px 0 22px; }
.ux__notes ol { padding-left: 18px; display: grid; gap: 14px; font-size: 14px; color: #55535f; max-width: 44ch; }
.ux__notes b { color: var(--ink); font-weight: 500; }
.sw { grid-column: 7 / span 6; justify-self: center; width: min(100%, 390px); background: #fafaff; border-radius: 26px; padding: 18px 16px 22px; font-family: "Montserrat", var(--sans); font-size: 13px; color: #1b1b2b; box-shadow: 0 30px 80px rgba(60, 40, 160, .18); }
.sw button { font-family: inherit; }
.sw__head { display: flex; justify-content: space-between; align-items: center; padding: 4px 4px 16px; }
.sw__head img { height: 26px; width: auto; }
.sw__mini, .sw__cta { color: #fff; font-weight: 600; background: linear-gradient(95deg, #4f3bf6, #8a58ee 60%, #c77fe3); background-size: 160% 100%; transition: background-position .5s ease, transform .2s ease, box-shadow .3s ease; }
.sw__mini { font-size: 11px; padding: 9px 14px; border-radius: 8px; }
.sw__mini:hover, .sw__cta:hover { background-position: 100% 0; box-shadow: 0 8px 22px rgba(90, 60, 240, .35); transform: translateY(-1px); }
.sw__mini:active, .sw__cta:active { transform: translateY(1px) scale(.985); box-shadow: none; }
.sw__products { display: flex; justify-content: space-between; padding: 0 6px; border-bottom: 1px solid #e6e4f2; color: #8b88a6; font-size: 12px; }
.sw__products span { padding: 10px 2px; } .sw__products .is-on { color: #1b1b2b; font-weight: 600; box-shadow: inset 0 -2px #5b3df5; }
.sw__types { display: flex; gap: 4px; padding: 14px 0; overflow-x: auto; scrollbar-width: none; }
.sw__types button { padding: 7px 12px; border-radius: 9px; font-size: 12px; color: #55536b; white-space: nowrap; transition: background .25s ease, color .25s ease; }
.sw__types button:hover { background: #ecebf8; } .sw__types .is-on { background: #5b3df5; color: #fff; }
.sw__card { background: #fff; border-radius: 18px; padding: 14px; box-shadow: 0 2px 14px rgba(40, 30, 120, .07); }
.sw__pct { display: flex; gap: 8px; margin-bottom: 10px; }
.sw__pct button { padding: 7px 12px; border-radius: 9px; background: #f4f3fb; font-size: 12px; font-weight: 500; transition: background .2s ease, color .2s ease, transform .15s ease; }
.sw__pct button:hover { background: #e6e2fb; color: #5b3df5; } .sw__pct button:active { transform: scale(.94); }
.sw__box { background: #f7f6fc; border-radius: 14px; padding: 12px 14px; }
.sw__box > span { font-size: 11px; color: #55536b; }
.sw__box > div { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 6px 0; }
.sw__box input, .sw__box output { font: 600 26px/1.1 "Montserrat", var(--sans); color: #1b1b2b; width: 100%; min-width: 0; border: 0; background: none; outline: 0; padding: 0; }
.sw__box em { font-style: normal; font-weight: 600; font-size: 12px; display: inline-flex; align-items: center; gap: 7px; background: #fff; border: 1px solid #e3e1f0; border-radius: 99px; padding: 6px 12px 6px 7px; }
.sw__box em i { width: 18px; height: 18px; border-radius: 50%; }
.sw__box small, .sw__route { display: flex; justify-content: space-between; font-size: 10px; color: #8b88a6; }
.sw__flip { display: grid; place-items: center; width: 34px; height: 34px; margin: -8px auto; position: relative; z-index: 1; border-radius: 50%; background: #ebe6fd; color: #5b3df5; font-size: 16px; border: 3px solid #fff; transition: transform .45s cubic-bezier(.34, 1.56, .64, 1), background .2s ease; }
.sw__flip:hover { background: #dcd3fc; } .sw__flip.is-flipped { transform: rotate(180deg); }
.sw__cta { display: block; width: 100%; margin: 14px 0 10px; padding: 15px; border-radius: 12px; font-size: 15px; }
.sw__cta.is-busy { opacity: .75; pointer-events: none; }
@media (max-width: 760px) {
  .cap b, .cap span, .ux__notes, .sw { grid-column: 1 / -1; }
}

/* Colour panel holding one or two browser windows */
.block--bleed .media { border-radius: 0; }
.stage { background: var(--bg); border-radius: 4px; padding: clamp(18px, 5.5vw, 90px); }
.stage--pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 3vw, 48px); align-items: start; }
.stage--pair .win:last-child { margin-top: clamp(0px, 5vw, 70px); }
.stage.switch { text-align: center; } .stage.switch .win { text-align: left; }
.win { border-radius: 10px; overflow: hidden; background: #17171b; box-shadow: 0 30px 80px rgba(0, 0, 0, .3); }
.win .media { border-radius: 0; }
.win__bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; color: #9c9ca6; font-size: 12px; }
.win__bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a3a42; }
.win__bar span { margin: 0 auto 0 10px; padding: 4px 14px; border-radius: 99px; background: #26262c; }
.win__bar button { padding: 6px 14px; border-radius: 99px; background: #fff; color: #141414; font-size: 12px; transition: background .25s ease, transform .2s ease; }
.win__bar button:hover { background: #e9e6ff; transform: translateY(-1px); }
.live__view { background: #0f0f12; }
.live__view iframe { position: absolute; top: 0; left: 0; width: 1440px; border: 0; transform-origin: 0 0; background: #0f0f12; }
.live.is-live .live__view img { visibility: hidden; }

/* Three short columns of context */
.brief { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); border-top: 1px solid var(--line); padding-top: 18px; }
.brief b { font-weight: 500; display: block; margin-bottom: 8px; } .brief p { color: #5f5d58; max-width: 38ch; }

/* Orbs brand section, rebuilt for the page */
.bp { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); }
.bp > div { aspect-ratio: 16 / 10; border-radius: 4px; display: grid; place-items: center; }
.bp img { width: 46%; height: auto; }
.sw8 { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; }
.sw8 > div { background: var(--c); aspect-ratio: 3 / 5; border-radius: 4px; padding: 12px; display: flex; flex-direction: column; justify-content: flex-end; font-size: 12px; color: #121214; transition: transform .7s var(--ease); }
.sw8 > div:hover { transform: translateY(-10px); }
.sw8 .is-dark { color: #fff; } .sw8 b { font-weight: 500; } .sw8 i { font-style: normal; opacity: .65; }
.ty { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); align-items: end; background: #121214; color: #fff; border-radius: 4px; padding: clamp(24px, 4vw, 64px); font-family: "Montserrat", var(--sans); }
.ty__aa { grid-column: span 4; font-weight: 300; font-size: clamp(110px, 18vw, 280px); line-height: .8; letter-spacing: -.03em; }
.ty dl { grid-column: 6 / span 7; display: grid; gap: clamp(12px, 1.6vw, 22px); }
.ty dt { font-family: var(--sans); font-size: 11px; color: rgba(255, 255, 255, .5); margin-bottom: 4px; } .ty dd { line-height: 1.1; }
@media (max-width: 760px) {
  .stage--pair, .brief, .bp { grid-template-columns: 1fr; } .stage--pair .win:last-child { margin-top: 0; }
  .sw8 { grid-template-columns: repeat(4, 1fr); } .ty__aa, .ty dl { grid-column: 1 / -1; }
}

/* Phone frames on a colour panel */
.phones { display: flex; justify-content: center; align-items: flex-start; gap: clamp(20px, 7vw, 110px); padding: clamp(40px, 7vw, 110px) var(--gutter); border-radius: 4px; background: var(--bg); }
.phone { position: relative; width: min(40%, 270px); aspect-ratio: 390 / 844; padding: clamp(6px, .8vw, 10px); border-radius: clamp(30px, 3.6vw, 48px); background: #0b0b0d; box-shadow: 0 0 0 2px #2c2c31, 0 40px 80px rgba(0, 0, 0, .38); }
.phone:nth-child(2) { margin-top: clamp(20px, 5vw, 70px); }
.phone__screen { position: relative; width: 100%; height: 100%; border-radius: clamp(24px, 2.8vw, 38px); overflow: hidden; container-type: size; }
.phone__screen img { position: absolute; top: 0; left: 0; width: 100%; height: auto; animation: pan var(--d, 26s) ease-in-out infinite alternate; }
.phone::after { content: ""; position: absolute; top: clamp(12px, 1.5vw, 19px); left: 50%; translate: -50% 0; width: 27%; height: 3%; border-radius: 99px; background: #0b0b0d; }

/* Motion mock-up: the camera pushes into a screen, taps, and pulls back */
.cine { position: relative; aspect-ratio: 16 / 9; background: var(--bg); border-radius: 4px; overflow: hidden; display: grid; place-items: center; }
.cine__dev { position: relative; height: 84%; aspect-ratio: var(--r); border-radius: clamp(18px, 2.2vw, 32px); transform-origin: 0 0; transition: transform 1.6s cubic-bezier(.65, 0, .2, 1); box-shadow: 0 40px 90px rgba(0, 0, 0, .28); will-change: transform; }
.cine--full .cine__dev { height: 100%; border-radius: 0; box-shadow: none; }
.cine__dev img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: inherit; opacity: 0; transition: opacity .7s ease; }
.cine__dev img.is-on { opacity: 1; }
.cine__tap { position: absolute; width: calc(13% / var(--s, 1)); aspect-ratio: 1; border-radius: 50%; translate: -50% -50%; background: rgba(255, 255, 255, .6); box-shadow: 0 0 0 2px rgba(20, 20, 20, .22), 0 6px 22px rgba(0, 0, 0, .28); opacity: 0; pointer-events: none; }
.cine--full .cine__tap { width: calc(4.2% / var(--s, 1)); }
.cine__tap.is-on { animation: cine-tap 1.1s ease forwards; }
@keyframes cine-tap { 0% { opacity: 0; scale: 1.7; } 30% { opacity: 1; scale: 1; } 48% { scale: .74; } 66% { scale: 1; opacity: 1; } 100% { opacity: 0; scale: 1.6; } }
.cine__cap { position: absolute; left: 16px; bottom: 14px; font-size: 12px; padding: 6px 12px; border-radius: 99px; background: rgba(20, 20, 20, .74); color: #fff; transition: opacity .4s ease; }
.cine__cap:empty { opacity: 0; }
@media (max-width: 760px) { .cine--phone { aspect-ratio: 4 / 5; } }

/* Step-through flow: numbered steps beside real screens */
.flow { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); align-items: center; }
.flow__steps { grid-column: span 4; list-style: none; }
.flow__steps li { border-top: 1px solid var(--line); position: relative; }
.flow__steps li:last-child { border-bottom: 1px solid var(--line); }
.flow__steps button { display: block; width: 100%; text-align: left; padding: 14px 0; color: var(--muted); transition: color .3s ease; }
.flow__steps b { font-weight: 500; font-size: 16px; display: flex; gap: 14px; align-items: baseline; }
.flow__steps i { font-style: normal; font-size: 11px; }
.flow__steps button > span { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.flow__steps button > span > span { overflow: hidden; min-height: 0; font-size: 14px; padding-left: 28px; max-width: 34ch; }
.flow__steps .is-on button, .flow__steps button:hover { color: var(--ink); }
.flow__steps .is-on button > span { grid-template-rows: 1fr; }
.flow__steps .is-on button > span > span { padding-top: 6px; color: #5f5d58; }
.flow__steps li::after { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 0; background: var(--ink); }
.flow.is-auto .flow__steps .is-on::after { animation: flow-bar 4.5s linear forwards; }
.flow:not(.is-auto) .flow__steps .is-on::after { width: 100%; }
@keyframes flow-bar { to { width: 100%; } }
.flow__stage { grid-column: 6 / span 7; }
.flow--phone .flow__stage { background: var(--fbg, #ddd); border-radius: 4px; padding: clamp(28px, 5vw, 72px) 0; display: grid; place-items: center; }
.flow--phone .media { width: min(62%, 290px); border-radius: clamp(22px, 2.6vw, 34px); background: transparent; box-shadow: 0 30px 70px rgba(0, 0, 0, .28); }
.flow .cycle--manual img { transition: opacity .6s ease; }
@media (max-width: 760px) { .flow__steps, .flow__stage { grid-column: 1 / -1; } .flow__stage { order: -1; } }

/* Dark variant of the live demo panel */
.ux--dark { background: #0c0d0f; color: #f2f2f2; }
.ux--dark .ux__notes ol { color: #a6a7ad; } .ux--dark .ux__notes b { color: #fff; }

/* Rialto buy flow */
.rb { grid-column: 7 / span 6; justify-self: center; position: relative; width: min(100%, 340px); font-family: "Poppins", var(--sans); background: #17181a; border-radius: 18px; padding: 16px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 255, 255, .08); }
.rb__art { display: block; width: 100%; height: auto; border-radius: 12px; }
.rb__btn { display: block; width: 100%; margin-top: 14px; padding: 13px; border-radius: 4px; background: #fff; color: #000; font: 600 14px "Poppins", var(--sans); transition: transform .2s ease, box-shadow .3s ease, background .3s ease, opacity .3s ease; }
.rb__btn:hover { box-shadow: 0 0 0 3px rgba(69, 187, 186, .55); transform: translateY(-1px); }
.rb__btn:active { transform: scale(.98); }
.rb__btn:disabled { opacity: .35; pointer-events: none; }
.rb__btn--ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
.rb__sheet { position: absolute; left: 0; right: 0; bottom: 0; background: #212322; border-radius: 18px 18px 0 0; padding: 22px 18px 18px; font-size: 13px; transform: translateY(102%); transition: transform .55s cubic-bezier(.22, 1, .36, 1); box-shadow: 0 -20px 50px rgba(0, 0, 0, .55); }
.rb__sheet.is-open { transform: none; }
.rb::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .5); opacity: 0; pointer-events: none; transition: opacity .4s ease; }
.rb.is-busy::before { opacity: 1; }
.rb__sheet b { display: block; font-size: 17px; font-weight: 600; margin-bottom: 14px; }
.rb__sheet p { color: #9c9f9e; margin-top: 12px; font-size: 12px; } .rb__sheet u { color: #6fdcdb; text-underline-offset: 3px; }
.rb__opt { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px; margin-bottom: 8px; border-radius: 6px; color: #fff; font: 500 13px "Poppins", var(--sans); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); transition: box-shadow .25s ease, background .25s ease; }
.rb__opt:hover { box-shadow: inset 0 0 0 1px #45bbba; background: rgba(69, 187, 186, .1); }
.rb__opt i { width: 22px; height: 22px; border-radius: 6px; background: linear-gradient(135deg, #52e5e7, #a99cf8); }
.rb__opt small { margin-left: auto; color: #6fdcdb; font-size: 10px; }
.rb__x { position: absolute; top: 14px; right: 14px; width: 28px; height: 28px; border-radius: 50%; color: #fff; font-size: 18px; line-height: 1; background: rgba(255, 255, 255, .1); }
.rb__sheet dl div { display: flex; justify-content: space-between; padding: 7px 0; color: #c9cccb; }
.rb__total { border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 6px; color: #fff !important; font-weight: 600; }
.rb__sheet label { display: flex; gap: 8px; align-items: center; margin-top: 12px; color: #c9cccb; cursor: pointer; }
.rb__sheet input { accent-color: #45bbba; width: 16px; height: 16px; }
.rb__sheet--done { text-align: center; padding-top: 30px; }
.rb__tick { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #45bbba; color: #000; font-size: 24px; margin-bottom: 14px; scale: .4; opacity: 0; transition: scale .6s cubic-bezier(.34, 1.56, .64, 1) .25s, opacity .3s ease .25s; }
.is-open .rb__tick { scale: 1; opacity: 1; }

/* Ionise collateral demo */
.io { grid-column: 7 / span 6; justify-self: center; width: min(100%, 400px); background: #1f2026; border-radius: 16px; padding: 22px; font-size: 13px; color: #e9e9ee; box-shadow: 0 30px 80px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 255, 255, .07); }
.io__top { display: flex; justify-content: space-between; align-items: baseline; color: #a2a3ad; }
.io__top b { font-size: 34px; font-weight: 500; color: #fff; letter-spacing: -.02em; }
.io__bar { height: 8px; border-radius: 99px; background: #2e2f38; margin: 12px 0 10px; overflow: hidden; }
.io__bar i { display: block; height: 100%; width: 31%; border-radius: 99px; background: linear-gradient(90deg, #7fe3ff, #b9a4ff, #f2a8dc); transition: width .7s cubic-bezier(.22, 1, .36, 1), background .4s ease; }
.io.is-warn .io__bar i { background: linear-gradient(90deg, #ffc46b, #ff8a6b); }
.io__meta { display: flex; justify-content: space-between; color: #a2a3ad; font-size: 12px; margin-bottom: 22px; } .io__meta b { color: #fff; font-weight: 500; }
.io__head, .io__row { display: grid; grid-template-columns: 1.4fr 1fr auto; align-items: center; gap: 12px; }
.io__head { color: #8d8e99; font-size: 11px; padding-bottom: 8px; }
.io__row { padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.io__row span:first-child { display: flex; align-items: center; gap: 9px; font-weight: 500; } .io__row i { width: 20px; height: 20px; border-radius: 50%; }
.io__sw { width: 42px; height: 24px; border-radius: 99px; background: #3a3b46; position: relative; transition: background .3s ease; }
.io__sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.io__sw.is-on { background: #9f8cff; } .io__sw.is-on::after { transform: translateX(18px); }
.io__sw.is-no { animation: io-shake .4s ease; }
@keyframes io-shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.io__msg { min-height: 34px; margin-top: 12px; font-size: 12px; color: #ffb38a; opacity: 0; transition: opacity .3s ease; } .io__msg.is-on { opacity: 1; }
@media (max-width: 760px) { .rb, .io { grid-column: 1 / -1; } }

/* Animated logo panel */
.logo-panel { aspect-ratio: 21 / 9; border-radius: 4px; display: grid; place-items: center; }
.logo-panel img { width: min(52%, 620px); height: auto; }
@media (max-width: 760px) { .logo-panel { aspect-ratio: 4 / 3; } .logo-panel img { width: 70%; } }

/* ---------- Showreel ---------- */
.reel { padding-bottom: clamp(80px, 10vw, 160px); }
.reel .label { display: block; margin-bottom: 14px; }
.reel iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Clients ---------- */
.clients { border-top: 1px solid var(--line); padding: clamp(28px, 4vw, 56px) var(--gutter); display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); }
.clients .label { grid-column: span 3; }
.clients ul { grid-column: span 9; display: flex; flex-wrap: wrap; gap: 8px clamp(20px, 4vw, 64px); font-size: clamp(18px, 2vw, 28px); letter-spacing: -0.02em; }

/* ---------- Project page ---------- */
.project-head {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter);
  padding-top: clamp(140px, 26vh, 260px); padding-bottom: clamp(48px, 7vw, 100px);
}
.project-head h1 { grid-column: span 4; font-size: 17px; font-weight: 500; }
.project-head .body-serif { grid-column: span 4; }
.credits { grid-column: 9 / span 4; font-size: 12px; line-height: 1.9; }
.credits dt { display: inline; color: var(--muted); }
.credits dd { display: inline; }
.credits div { display: block; }

.block { padding-bottom: clamp(40px, 6vw, 100px); }
.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); align-items: start; }
.two-up > :last-child { margin-top: clamp(0px, 8vw, 140px); }
.story { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); padding-top: clamp(40px, 6vw, 100px); padding-bottom: clamp(80px, 10vw, 180px); }
.story .label { grid-column: span 4; }
.story .statement { grid-column: span 8; max-width: 22ch; }
.story p.copy { grid-column: 5 / span 5; margin-top: 28px; max-width: 46ch; }

.next { border-top: 1px solid var(--line); padding: clamp(40px, 6vw, 90px) var(--gutter) clamp(60px, 8vw, 120px); display: block; }
.next .display { margin-top: 10px; transition: transform 0.8s var(--ease); }
.next:hover .display { transform: translateX(1.5vw); }

/* ---------- About ---------- */
.about { padding-top: clamp(140px, 24vh, 260px); display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(40px, 5vw, 80px) var(--gutter); padding-bottom: clamp(80px, 10vw, 160px); }
.about__intro { grid-column: span 8; }
.about__intro .statement { max-width: 30ch; }
.about__intro .statement + .statement { margin-top: 1em; color: var(--muted); }
.about__can { grid-column: span 8; font-size: clamp(18px, 1.6vw, 24px); letter-spacing: -0.015em; line-height: 1.45; }
.about__can li::before { content: "→ "; }
.about__col { grid-column: span 3; }
.about__col h2 { font-size: 12px; font-weight: 400; color: var(--muted); margin-bottom: 12px; }
.about__col li { line-height: 1.75; }
.about__col a:hover { opacity: 0.55; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 22px var(--gutter) 28px; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.footer a:hover { color: var(--ink); }
.footer nav { display: flex; gap: 22px; }

/* ---------- Small screens ---------- */
@media (max-width: 760px) {
  .tile, .tile--full, .about__intro, .about__can { grid-column: span 12; }
  .tile--offset, .two-up > :last-child { margin-top: 0; }
  .two-up { grid-template-columns: 1fr; }
  .project-head h1, .project-head .body-serif, .credits,
  .story .label, .story .statement, .story p.copy,
  .clients .label, .clients ul { grid-column: 1 / -1; }
  .about__col { grid-column: span 6; }
}

@media (prefers-reduced-motion: reduce) {
  body, .reveal, .lines .line > span, .media img { transition: none !important; }
  .marquee__track, .rs__sw--grad, .scroll img { animation: none; }
  .cine__dev { transition: none; }
  .phone__screen img { animation: none; }
  .reveal { opacity: 1; transform: none; }
  .lines .line > span { transform: none; }
}

.switch:not(.stage) .switch__tabs { background: #e7e5df; }

/* Row of portrait clips */
.vgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); }
@media (max-width: 760px) { .vgrid { grid-template-columns: 1fr 1fr; } }

/* Still screens in phone frames; three across */
.phone--still .phone__screen img { animation: none; height: 100%; object-fit: cover; object-position: top; }
.phones--3 { gap: clamp(14px, 4vw, 64px); } .phones--3 .phone { width: min(28%, 250px); }
.phones--3 .phone:nth-child(2) { margin-top: clamp(20px, 5vw, 70px); } .phones--3 .phone:nth-child(3) { margin-top: 0; }

/* Phone bezels on other phone mock-ups */
.flow--phone .media, .cine--phone .cine__dev { border: clamp(5px, .7vw, 9px) solid #0b0b0d; box-sizing: border-box; }
.marquee img { border: 6px solid #0b0b0d; }

/* Separate images in an even grid, and a single image on a padded colour panel */
.tiles { display: grid; grid-template-columns: repeat(var(--n, 2), 1fr); gap: var(--gutter); }
.panel { border-radius: 4px; padding: clamp(24px, 5vw, 80px); }
.panel img { display: block; width: 100%; height: auto; }
@media (max-width: 760px) { .tiles { grid-template-columns: 1fr; } }

/* Logo straight on the page, no panel */
.logo-plain { display: grid; place-items: center; padding: clamp(40px, 8vw, 120px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.logo-plain img { width: min(60%, 520px); height: auto; }

/* Feed screen: signs of life over a still (likes rising, a pulse on the like button, playback progress) */
.feedfx { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.feedfx__bar { position: absolute; left: 4%; right: 4%; top: 87.6%; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .28); overflow: hidden; }
.feedfx__bar::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #4bf08f, #2bb7ff); transform-origin: left; animation: feed-bar 14s linear infinite; }
@keyframes feed-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.feedfx__pulse { position: absolute; left: 88%; top: 30%; width: 13%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; box-shadow: 0 0 0 2px rgba(75, 240, 143, .9); animation: feed-pulse 2.4s ease-out infinite; }
@keyframes feed-pulse { 0% { scale: .7; opacity: .9; } 70%, 100% { scale: 1.7; opacity: 0; } }
.feedfx b { position: absolute; left: 88%; top: 30%; font-size: clamp(10px, 1.3vw, 18px); line-height: 1; color: #4bf08f; opacity: 0; animation: feed-heart 3.6s ease-in infinite; animation-delay: calc(var(--k) * .6s); }
.feedfx b:nth-child(odd) { color: #2bb7ff; }
@keyframes feed-heart {
  0% { opacity: 0; transform: translate(-50%, 0) scale(.5); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + (var(--k) - 2.5) * 9px), -900%) scale(1.25) rotate(calc((var(--k) - 2.5) * 8deg)); }
}
@media (prefers-reduced-motion: reduce) { .feedfx b, .feedfx__pulse, .feedfx__bar::after { animation: none; } }

/* About: personal statement */
.about__bio { grid-column: 5 / span 7; font-family: var(--serif); font-size: clamp(18px, 1.6vw, 24px); line-height: 1.4; display: grid; gap: 1em; max-width: 46ch; }
@media (max-width: 760px) { .about__bio { grid-column: 1 / -1; } }

/* Get in touch: a slow scrolling line and one button */
.cta { border-top: 1px solid var(--line); padding: clamp(48px, 8vw, 120px) 0 clamp(40px, 6vw, 90px); text-align: center; overflow: hidden; }
.cta__line { display: block; overflow: hidden; white-space: nowrap; }
.cta__track { display: inline-flex; align-items: center; gap: clamp(20px, 3vw, 48px); padding-right: clamp(20px, 3vw, 48px); animation: marquee 38s linear infinite; font-size: clamp(44px, 9vw, 150px); line-height: 1.05; letter-spacing: -.04em; }
.cta__track em { font-family: var(--serif); font-style: italic; letter-spacing: -.02em; }
.cta__track i { font-style: normal; font-size: .28em; color: var(--muted); }
.cta__line:hover .cta__track { animation-play-state: paused; }
.cta__btn { display: inline-flex; align-items: center; gap: 12px; margin-top: clamp(28px, 4vw, 56px); padding: 16px 30px; border-radius: 99px; background: var(--ink); color: var(--bg); font-size: 16px; transition: transform .35s var(--ease), background .3s ease; }
.cta__btn span { transition: transform .35s var(--ease); }
.cta__btn:hover { transform: translateY(-2px); background: #2b2b2b; } .cta__btn:hover span { transform: translateX(5px); }
@media (prefers-reduced-motion: reduce) { .cta__track { animation: none; } }

/* Living gradient: soft colour fields drifting over a screen's artwork. The blend only touches mid-tones,
   so white cards, dark panels and text stay put while the gradients move. */
.aurora { position: absolute; inset: -10%; pointer-events: none; mix-blend-mode: overlay; filter: blur(22px); }
.aurora i { position: absolute; width: 95%; aspect-ratio: 1; border-radius: 50%; opacity: .95; }
.aurora i:nth-child(1) { background: #ff5fd2; left: -35%; top: 4%; animation: au-1 9s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { background: #46f0ff; left: 40%; top: 34%; animation: au-2 11s ease-in-out infinite alternate; }
.aurora i:nth-child(3) { background: #fff06a; left: -5%; top: 62%; animation: au-3 13s ease-in-out infinite alternate; }
@keyframes au-1 { to { transform: translate(70%, 55%) scale(1.25); } }
@keyframes au-2 { to { transform: translate(-75%, -30%) scale(.8); } }
@keyframes au-3 { to { transform: translate(45%, -60%) scale(1.3); } }
@media (prefers-reduced-motion: reduce) { .aurora i { animation: none; } }

/* iPhone look for the other phone mock-ups: deeper corners, bezel and the pill at the top */
.flow--phone .media, .cine--phone .cine__dev { border-width: clamp(6px, .8vw, 10px); border-radius: clamp(30px, 3.6vw, 48px); box-shadow: 0 0 0 2px #2c2c31, 0 40px 80px rgba(0, 0, 0, .34); }
.flow--phone .media img, .cine--phone .cine__dev img { border-radius: clamp(23px, 2.8vw, 37px); }
.flow--phone .media::after, .cine--phone .cine__dev::after { content: ""; position: absolute; top: 1.7%; left: 50%; translate: -50% 0; width: 27%; height: 3%; border-radius: 99px; background: #0b0b0d; z-index: 2; }
.marquee img { border-width: clamp(5px, .7vw, 9px); border-radius: clamp(28px, 3.2vw, 44px); box-shadow: 0 0 0 2px #2c2c31; }
.cine--phone { aspect-ratio: 16 / 10; } .cine--phone .cine__dev { height: 86%; }

.tiles { align-items: start; }
.panel img { max-width: 620px; margin: 0 auto; }
.panel:has(img[src*="orbs-x"]) img { max-width: none; }
@media (max-width: 760px) { .tiles[style*="--n:4"] { grid-template-columns: 1fr 1fr; } }

.panel img { max-width: none; }
.vgrid { grid-template-columns: repeat(var(--n, 4), 1fr); }
.hero__spec { margin-top: clamp(18px, 2.4vw, 32px); font-size: clamp(15px, 1.3vw, 19px); color: #5f5d58; }

/* Mediate players: the gradient moves faster, in time, with rings pulsing from the pause button */
.aurora--beat i:nth-child(1) { animation-duration: 3.4s; } .aurora--beat i:nth-child(2) { animation-duration: 4.2s; } .aurora--beat i:nth-child(3) { animation-duration: 5s; }
.aurora--beat { animation: beat 1.7s ease-in-out infinite; }
@keyframes beat { 50% { scale: 1.07; } }
.beatring { position: absolute; left: 50%; top: 65.3%; width: 24%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .8); pointer-events: none; animation: beat-ring 1.7s ease-out infinite; }
.beatring--2 { animation-delay: .85s; }
@keyframes beat-ring { from { scale: .8; opacity: .9; } to { scale: 2.6; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .aurora--beat, .beatring { animation: none; } .beatring { opacity: 0; } }

/* Alegria: cards that turn over */
.fcs { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); padding: clamp(32px, 6vw, 96px) clamp(18px, 4vw, 64px); border-radius: 4px; background: #0f1012; perspective: 1600px; }
.fc { aspect-ratio: 1102 / 593; outline: 0; }
.fc__in { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; animation: fc-turn 10s cubic-bezier(.65, 0, .25, 1) infinite; animation-delay: calc(var(--k) * 1.1s); }
.fc:hover .fc__in, .fc:focus .fc__in { animation-play-state: paused; }
@keyframes fc-turn { 0%, 38% { transform: rotateY(0); } 50%, 88% { transform: rotateY(180deg); } 100% { transform: rotateY(360deg); } }
.fc__face { position: absolute; inset: 0; border-radius: clamp(10px, 1.4vw, 20px); overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, .5); }
.fc__face > img:first-child { width: 100%; height: 100%; object-fit: cover; display: block; }
.fc__sheen { position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .34) 50%, transparent 65%); background-size: 250% 100%; animation: fc-sheen 4.5s ease-in-out infinite; animation-delay: calc(var(--k) * .7s); mix-blend-mode: soft-light; }
@keyframes fc-sheen { from { background-position: 130% 0; } to { background-position: -130% 0; } }
.fc__back { transform: rotateY(180deg); background: linear-gradient(135deg, var(--a), var(--b)); color: #0d1512; display: grid; grid-template-rows: auto auto 1fr auto; padding: 9% 0 6%; font-size: clamp(9px, 1vw, 14px); }
.fc__stripe { height: clamp(18px, 3vw, 44px); background: rgba(10, 12, 14, .88); }
.fc__sig { margin: 5% 7% 0; padding: 3px 10px; width: 52%; background: rgba(255, 255, 255, .8); border-radius: 3px; font-family: var(--serif); font-style: italic; }
.fc__num { margin: 0 7%; align-self: center; font-size: 1.5em; letter-spacing: .08em; }
.fc__row { margin: 0 7%; display: flex; gap: 6px 10px; align-items: baseline; flex-wrap: wrap; font-weight: 500; }
.fc__row small { font-size: .72em; text-transform: uppercase; letter-spacing: .06em; opacity: .7; }
.fc__logo { position: absolute; right: 6%; bottom: 8%; width: 26%; height: auto; }
@media (max-width: 760px) { .fcs { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .fc__in, .fc__sheen { animation: none; } }

/* Navigation: a quiet backing so it stays readable over any image */
.nav { mix-blend-mode: normal; color: var(--ink); padding-top: 16px; padding-bottom: 16px; background: rgba(246, 245, 242, .84); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(20, 20, 20, .06); }

/* Keyboard users get what hover gives: the description opens when a row has focus */
.row:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; color: var(--ink); }
.row:focus-visible .row__name { transform: translateX(clamp(8px, 1.2vw, 20px)); }
.row:focus-visible .row__more { grid-template-rows: 1fr; }
.row:focus-visible .row__more > span { opacity: 1; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* If the script is blocked or fails, show everything instead of leaving the page blank */
html:not(.js) body, html.no-motion body { opacity: 1; }
html:not(.js) .reveal, html.no-motion .reveal { opacity: 1; transform: none; }
html:not(.js) .lines .line > span, html.no-motion .lines .line > span { transform: none; }

.win__open { margin-right: 10px; color: #c9c9d2; } .win__open:hover { color: #fff; }
.sw__note { margin: 12px 4px 0; font-size: 10px; color: #8b88a6; text-align: center; }
.sw__cta.is-done { background: #1fa971; }

.flow--desk .media { border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, .12); }
.flow .cycle--manual img { object-position: top; }
.phones { background: var(--bg); }

/* Home: three featured projects above the list */
.hero { padding-bottom: clamp(32px, 5vw, 64px); }
.featured { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); padding-bottom: clamp(56px, 8vw, 120px); }
.feat .media { aspect-ratio: 4 / 3; }
.feat:hover .media img { scale: 1.035; }
.listhead .hero__meta { margin-top: 0; padding-bottom: clamp(20px, 3vw, 40px); }
.row__thumb { aspect-ratio: 4 / 3; object-fit: cover; object-position: top; }
@media (max-width: 760px) { .featured { grid-template-columns: 1fr; } }

/* Section links on a long project page */
html { scroll-behavior: smooth; }
.jump { position: sticky; top: 52px; z-index: 8; display: flex; gap: clamp(16px, 2.4vw, 32px); padding: 12px var(--gutter); margin-bottom: clamp(20px, 3vw, 40px); background: rgba(246, 245, 242, .9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); font-size: 13px; }
.jump a { color: var(--muted); transition: color .25s ease; } .jump a:hover, .jump a.is-on { color: var(--ink); }
.story[id] { scroll-margin-top: 120px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Thier chart demo */
.tc { grid-column: 7 / span 6; justify-self: center; width: min(100%, 420px); background: #fff; border-radius: 18px; padding: 20px 18px 16px; color: #1b1b2b; box-shadow: 0 30px 80px rgba(90, 42, 134, .18); font-size: 13px; }
.tc__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; } .tc__head b { font-size: 16px; font-weight: 600; } .tc__head span { color: #8a879a; font-size: 11px; }
.tc__tabs { display: grid; grid-template-columns: repeat(5, 1fr); background: #f3f1f6; border-radius: 9px; padding: 3px; margin-bottom: 10px; }
.tc__tabs button { padding: 7px 0; border-radius: 7px; font-size: 12px; color: #6d6a80; transition: background .25s ease, color .25s ease; }
.tc__tabs .is-on { background: #fff; color: #1b1b2b; font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.tc__chips { display: flex; gap: 6px; margin-bottom: 6px; }
.tc__chips button { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 99px; border: 1px solid #e3e0ea; font-size: 11px; color: #6d6a80; opacity: .45; transition: opacity .25s ease, border-color .25s ease; }
.tc__chips .is-on { opacity: 1; border-color: #c9c4d6; color: #1b1b2b; } .tc__chips i { width: 8px; height: 8px; border-radius: 50%; }
.tc svg { display: block; width: 100%; height: auto; touch-action: none; }
.tc svg text { font-size: 8px; fill: #8a879a; font-family: var(--sans); }
.tc path { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: opacity .3s ease; }
.tc__read { margin-top: 6px; font-size: 11px; color: #6d6a80; min-height: 16px; }
@media (max-width: 760px) { .tc { grid-column: 1 / -1; } }

/* L3AP: stills that ripple, coded panels with scrolling type, and a scroll-driven zoom */
.alive__fx { position: absolute; inset: 0; filter: url(#wave); }
.alive--zoom img { animation: alive-zoom 18s ease-in-out infinite alternate; }
@keyframes alive-zoom { from { transform: scale(1); } to { transform: scale(1.1); } }
.lp { position: relative; aspect-ratio: 1440 / 900; overflow: hidden; border-radius: 4px; container-type: inline-size; color: #fff; font-family: "Poppins", var(--sans);
  background: #000 radial-gradient(rgba(255, 255, 255, .13) 1px, transparent 1.4px) 0 0 / 2.2cqw 2.2cqw; }
.lp--grad { background: linear-gradient(170deg, #2fd6c8 0%, #58b8f0 34%, #a77cf2 66%, #e25ad8 100%); }
.lp__nav { position: absolute; z-index: 3; top: 5.4%; left: 6.1%; right: 6.1%; display: flex; align-items: center; gap: 4.4cqw; font-size: .85cqw; letter-spacing: .32em; }
.lp__nav .is-on { box-shadow: 0 .5cqw 0 -.38cqw currentColor; padding-bottom: .5cqw; margin-bottom: -.5cqw; }
.lp__nav b { margin-left: auto; font-size: 1.45cqw; font-weight: 600; letter-spacing: .3em; }
.lp__fig { position: absolute; right: -4%; top: -22%; height: 150%; width: auto; filter: url(#wave); }
.lp__mq { position: absolute; z-index: 2; left: 0; right: 0; top: 43%; white-space: nowrap; }
.lp__track { display: inline-flex; align-items: center; gap: 1.6cqw; padding-right: 1.6cqw; font-size: 4.5cqw; font-weight: 500; letter-spacing: .03em; line-height: 1; animation: marquee 30s linear infinite; }
.lp__track i { font-style: normal; color: #3df0e0; font-size: .8em; }
.lp__mq--dark { color: #000; top: 50%; translate: 0 -50%; }
.lpimg { position: relative; container-type: inline-size; }
.lp__band { position: absolute; left: 0; right: 0; top: 13.5%; height: 15%; background: #fff; overflow: hidden; }
.zoomer { height: 260vh; margin-bottom: clamp(40px, 6vw, 100px); }
.zoomer__stick { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.zoomer .lp { aspect-ratio: auto; width: 100%; height: 100%; border-radius: 0; }
.zq { position: absolute; aspect-ratio: 1; object-fit: cover; will-change: transform, opacity; }
.zq[data-i="4"] { z-index: 4; }
@media (max-width: 760px), (prefers-reduced-motion: reduce) {
  .zoomer { height: auto; } .zoomer__stick { position: relative; height: auto; } .zoomer .lp { aspect-ratio: 1440 / 900; height: auto; }
}
@media (prefers-reduced-motion: reduce) { .alive__fx, .lp__fig { filter: none; } .alive--zoom img, .lp__track { animation: none; } }

/* First block of every project runs edge to edge */
.block--bleed .media, .block--bleed .stage, .block--bleed .phones, .block--bleed .panel, .block--bleed .lp { border-radius: 0; }
.block--bleed.two-up { padding-left: 0; padding-right: 0; }

/* Slerp opening: animated mark beside the product, on the brand's dark indigo */
.slhero { display: grid; grid-template-columns: 1fr 1.25fr; align-items: center; gap: clamp(16px, 4vw, 80px); padding: clamp(28px, 6vw, 110px) clamp(20px, 6vw, 120px); background: radial-gradient(120% 120% at 80% 0%, #34334a 0%, #282735 55%, #22212e 100%); }
.slhero video { width: min(100%, 420px); aspect-ratio: 1; justify-self: center; mix-blend-mode: lighten; }
.slhero img { width: 100%; height: auto; display: block; }
@media (max-width: 760px) { .slhero { grid-template-columns: 1fr; } .slhero video { width: 46%; } }

/* L3AP: no ripple; a logo whose 3 turns over, a shrinking opener, a sideways-scrolling panel, stars, and a live contact form */
.lp__fig, .alive__fx { filter: none; }
.l3logo { position: absolute; z-index: 2; top: 4.5%; right: 5.9%; color: #fff; font: 600 1.48cqw "Poppins", var(--sans); letter-spacing: .3em; perspective: 300px; }
.l3logo b { display: inline-block; font-weight: 600; color: #3df0e0; animation: flip3 6s cubic-bezier(.65, 0, .25, 1) infinite; }
@keyframes flip3 { 0%, 52% { transform: rotateY(0); } 64%, 88% { transform: rotateY(180deg); } 100% { transform: rotateY(360deg); } }
.shrinker { height: 230vh; }
.shrinker__stick { position: sticky; top: 0; height: 100vh; overflow: hidden; background: #000; }
.shrinker__stick img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shrinker__fg { will-change: transform; transform-origin: 50% 46%; }
.hscroll { height: 260vh; margin-bottom: clamp(40px, 6vw, 100px); }
.hscroll__stick { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.hscroll .lp { aspect-ratio: auto; width: 100%; height: 100%; border-radius: 0; }
.hs__track { position: absolute; inset: 0; width: 150cqw; will-change: transform; }
.hs__fig { position: absolute; left: 17cqw; top: 8%; height: 92%; width: auto; }
.hs__col { position: absolute; top: 21%; width: 21cqw; }
.hs__col b { display: block; font-size: 6.6cqw; font-weight: 600; line-height: 1; letter-spacing: -.01em; }
.hs__col h4 { font-size: 2.3cqw; font-weight: 500; line-height: 1.15; margin: 2.2cqw 0 2cqw; }
.hs__col p { font-size: clamp(11px, .95cqw, 16px); line-height: 1.6; color: rgba(255, 255, 255, .82); }
.stars { position: absolute; inset: 0; pointer-events: none; }
.stars i { position: absolute; width: calc(1.1cqw * var(--z)); aspect-ratio: 1; background: #fff; clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); opacity: 0; animation: twinkle 3.2s ease-in-out infinite; animation-delay: var(--d); }
.stars i:nth-child(3n) { background: #3df0e0; } .stars i:nth-child(4n) { background: #ff5fd2; }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.3) rotate(0); } 50% { opacity: .95; transform: scale(1) rotate(45deg); } }
.ctype { position: absolute; left: 56%; top: 26.3%; color: #fff; font: 400 1.05cqw "Poppins", var(--sans); white-space: nowrap; }
.ctype::after { content: ""; display: inline-block; width: 1px; height: 1.1em; margin-left: 2px; vertical-align: -.15em; background: #3df0e0; animation: caret .9s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.cpulse { position: absolute; left: 51.4%; top: 63.6%; width: 5cqw; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; box-shadow: 0 0 0 1.5px rgba(61, 240, 224, .9); animation: beat-ring 2.2s ease-out infinite; pointer-events: none; }
.lpimg--sweep { overflow: hidden; border-radius: 4px; }
.lpimg--sweep::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 40%, rgba(120, 240, 255, .16) 50%, transparent 60%); background-size: 260% 100%; animation: fc-sheen 7s ease-in-out infinite; mix-blend-mode: screen; pointer-events: none; }
@media (max-width: 760px), (prefers-reduced-motion: reduce) {
  .shrinker, .hscroll { height: auto; } .shrinker__stick, .hscroll__stick { position: relative; height: auto; }
  .shrinker__stick { aspect-ratio: 1440 / 900; } .shrinker__fg { display: none; }
  .hscroll .lp { aspect-ratio: 1440 / 900; height: auto; overflow-x: auto; }
}
@media (prefers-reduced-motion: reduce) { .l3logo b, .stars i, .cpulse, .ctype::after, .lpimg--sweep::after { animation: none; } .stars i { opacity: .7; } }

/* Rialto: coded home hero with floating artwork cards */
.rhome { background: #67f3f1; padding: clamp(28px, 6vw, 110px) clamp(16px, 12vw, 260px); }
.rhome__win { border-radius: clamp(10px, 1.6vw, 26px) clamp(10px, 1.6vw, 26px) 0 0; overflow: hidden; container-type: inline-size; font-family: Poppins, sans-serif; box-shadow: 0 30px 80px rgba(0,60,60,.25); }
.rhome__bar { background: #b9f9f8; height: 3.6cqw; display: flex; align-items: center; gap: .7cqw; padding-left: 2.4cqw; }
.rhome__bar i { width: .9cqw; height: .9cqw; border-radius: 50%; background: #ee4057; } .rhome__bar i:nth-child(2) { background: #f5b82e; } .rhome__bar i:nth-child(3) { background: #1fa37a; }
.rhome__banner { height: 3.5cqw; display: grid; place-items: center; font-size: 1.15cqw; font-weight: 600; color: #111; background: linear-gradient(90deg, #12e8f0, #8fa6e8 60%, #d6cdfb); }
.rhome__site { position: relative; aspect-ratio: 1575 / 1171; background: #141213; overflow: hidden; color: #fff; }
.rhome__beams i { position: absolute; left: 50%; top: calc(var(--n) * 8.5cqw); width: calc(150cqw - var(--n) * 26cqw); aspect-ratio: 1 / .78; transform: translateX(-50%); clip-path: polygon(50% 0, 100% 100%, 0 100%); background: linear-gradient(105deg, rgba(255,255,255,.13), rgba(255,255,255,0) 38%), linear-gradient(#1c1a1b, #100e0f); animation: rbeam 7s ease-in-out infinite alternate; animation-delay: calc(var(--n) * -1.4s); }
.rhome__beams i:nth-child(1) { --n: 0 } .rhome__beams i:nth-child(2) { --n: 1 } .rhome__beams i:nth-child(3) { --n: 2 } .rhome__beams i:nth-child(4) { --n: 3 } .rhome__beams i:nth-child(5) { --n: 4 }
@keyframes rbeam { from { filter: brightness(.85) } to { filter: brightness(1.25) } }
.rhome__floor { position: absolute; left: 0; right: 0; bottom: 0; height: 8.3%; background: #212322; }
.rhome__logo { position: absolute; left: 4.2%; top: 2.4%; width: 15.5%; height: auto; mix-blend-mode: screen; }
.rhome__nav { position: absolute; right: 4.3%; top: 4.2%; display: flex; align-items: center; gap: 3.4cqw; font-size: 1.25cqw; font-weight: 600; }
.rhome__nav b { font-weight: 600; border: 1px solid #fff; border-radius: .25cqw; padding: .75cqw 2.2cqw; }
.rhome__copy { position: absolute; left: 0; right: 0; top: 24.5%; text-align: center; z-index: 2; }
.rhome__copy em { font-style: normal; display: inline-block; font-size: 1.15cqw; color: #45bbba; background: rgba(69,187,186,.1); padding: .6cqw 1.3cqw; border-radius: .2cqw; }
.rhome__copy h3 { font-size: 5cqw; line-height: 1.16; font-weight: 600; margin: 1.6cqw 0 2.6cqw; letter-spacing: -.01em; }
.rhome__btn { display: inline-block; background: #fff; color: #111; font-weight: 600; font-size: 1.45cqw; padding: 1.25cqw 2.8cqw; border-radius: .2cqw; }
.rcard { position: absolute; z-index: 1; transform: translate(calc(var(--mx, 0) * var(--d) * 1px), calc(var(--my, 0) * var(--d) * 1px)); transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.rcard--edge { transform: translate(0, calc(var(--my, 0) * var(--d) * 1px)); }
.rcard__f { animation: rfloat var(--t) ease-in-out infinite alternate; }
.rcard--edge .rcard__f { animation-name: rfloat-y; }
.rcard:nth-child(odd) .rcard__f { animation-delay: -3s; }
.rcard img { display: block; width: 100%; height: auto; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.rcard:hover img { transform: scale(1.07); }
@keyframes rfloat { from { transform: translateY(-3.5%) rotate(-1.6deg) } to { transform: translateY(3.5%) rotate(1.8deg) } }
@keyframes rfloat-y { from { transform: translateY(-3%) } to { transform: translateY(3%) } }
/* Rialto: collection cards */
.rcols { background: #212322; color: #fff; font-family: Poppins, sans-serif; border-radius: 14px; padding: clamp(36px, 6vw, 96px) clamp(18px, 6vw, 96px) clamp(44px, 7vw, 110px); text-align: center; }
.rcols h3 { font-size: clamp(26px, 3.6vw, 52px); font-weight: 600; margin: 0 0 clamp(28px, 4vw, 60px); }
.rcols__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(10px, 1.6vw, 24px); max-width: 1100px; margin: 0 auto; }
.rcol { position: relative; aspect-ratio: 250 / 325; border-radius: 12px; overflow: hidden; background: #111; animation: rcol var(--t) ease-in-out infinite alternate; transition: box-shadow .5s; text-align: left; }
.rcol:nth-child(even) { animation-delay: -2.5s; }
@keyframes rcol { from { transform: translateY(-7px) } to { transform: translateY(7px) } }
.rcol img, .rcol canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s cubic-bezier(.2,.7,.2,1); }
.rcol:hover img, .rcol:hover canvas { transform: scale(1.14); }
.rcol:hover { box-shadow: 0 0 40px rgba(69,187,186,.45); }
.rcol--meta b { position: absolute; left: 9%; top: 6%; font-size: clamp(13px, 2vw, 27px); font-weight: 600; text-shadow: 0 1px 8px #000; }
.rcol--meta span { position: absolute; left: 9%; bottom: 7%; font-size: clamp(8px, .8vw, 11px); line-height: 1.35; text-shadow: 0 1px 6px #000; }
@media (max-width: 700px) { .rcols__row { grid-template-columns: repeat(2, 1fr); } .rhome { padding: 24px 12px; } }
@media (prefers-reduced-motion: reduce) { .rcard__f, .rcol, .rhome__beams i { animation: none; } }
.no-motion .rcard__f, .no-motion .rcol { animation: none; }

/* Rialto home, second pass: real artwork from the Figma file */
.rhome__site--fig { aspect-ratio: 1440 / 982; background: #151515; }
.rhome__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rhome__site--fig .rhome__logo { left: 4.6%; top: 3.2%; width: 14%; }
.rhome__site--fig .rhome__nav { top: 4.6%; right: 4.3%; }
.rhome__site--fig .rhome__copy { top: 27%; }
.rhome__site--fig .rcard img { filter: drop-shadow(0 0 1.6cqw rgba(69,220,218,.75)) drop-shadow(0 0 4cqw rgba(69,187,186,.35)); }
.rcols h3 + .rcols__row { margin-bottom: clamp(48px, 7vw, 110px); }
.rcols__row { grid-template-columns: repeat(3, 1fr); }
.rcol { aspect-ratio: 400 / 526; container-type: inline-size; border-radius: 5cqw; background: #000; }
.rcol__m { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; }
.rcol__m img, .rcol__m video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s cubic-bezier(.2,.7,.2,1); }
.rcol:hover .rcol__m img, .rcol:hover .rcol__m video { transform: scale(1.14); }
.rcol--king .rcol__m img { object-position: 47% 50%; top: 14%; height: 86%; }
.rcol > b { position: absolute; left: 9%; top: 6%; font-size: 9cqw; line-height: 1.3; font-weight: 600; text-shadow: 0 1px 10px rgba(0,0,0,.7); }
.rcol__by { position: absolute; left: 4%; right: 4%; bottom: 5%; display: flex; align-items: center; gap: 2.5cqw; padding: 3cqw 7.5cqw; border-radius: 3cqw; background: rgba(0,0,0,.35); font-size: 3.2cqw; line-height: 1.4; }
.rcol__by img { width: 10cqw; height: 10cqw; border-radius: 50%; border: 1px solid #fff; object-fit: cover; }
.rasset { position: relative; aspect-ratio: 400 / 526; border-radius: 16px; overflow: hidden; transition: transform .6s cubic-bezier(.2,.7,.2,1), box-shadow .6s; }
.rasset > img { display: block; width: 100%; height: 100%; }
.rasset__art { position: absolute; left: 0; right: 0; top: 0; height: 65%; overflow: hidden; }
.rasset__art img { display: block; width: 100%; height: auto; transform-origin: 50% 32%; transition: transform 1.1s cubic-bezier(.2,.7,.2,1); }
.rasset:hover .rasset__art img { transform: scale(1.16); }
.rasset:hover { transform: translateY(-6px); box-shadow: 0 0 40px rgba(69,187,186,.4); }
.rcreators { list-style: none; margin: 0 auto; padding: 0; max-width: 1100px; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 32px); text-align: left; }
.rcreators li { display: flex; align-items: center; gap: 16px; font-size: clamp(12px, 1.3vw, 17px); line-height: 1.5; color: #8d8f8e; }
.rcreators strong { color: #fff; font-weight: 600; }
.rcreators img { width: clamp(48px, 6.4vw, 92px); height: auto; aspect-ratio: 1; border-radius: 50%; object-fit: cover; flex: none; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.rcreators li:hover img { transform: scale(1.12) rotate(-4deg); }
@media (max-width: 700px) { .rcols__row { grid-template-columns: 1fr 1fr; } .rcreators { grid-template-columns: 1fr 1fr; } }
.rcol { border-radius: clamp(10px, 1.5vw, 20px); }
.rcol .rcol__by img { position: static; inset: auto; flex: none; width: 10cqw; height: 10cqw; transform: none; }
.rcol__by { padding: 3cqw 5cqw; }
.rcol--king .rcol__m img { top: 0; height: 100%; object-position: 47% 70%; }

.featlabel { padding-bottom: 18px; }

/* ===== 13 Nov: header menu and clock, footer icons ===== */
.nav { align-items: center; }
.nav__left { display: flex; align-items: center; gap: 12px; }
.nav__burger { width: 32px; height: 32px; border: 0; background: none; color: inherit; cursor: pointer; display: grid; place-items: center; padding: 0; border-radius: 50%; }
.nav__burger i { position: relative; display: block; width: 20px; height: 8px; }
.nav__burger i::before, .nav__burger i::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .45s var(--ease); }
.nav__burger i::before { top: 0; } .nav__burger i::after { bottom: 0; }
.nav__burger[aria-expanded="true"] i::before { transform: translateY(3.25px) rotate(45deg); }
.nav__burger[aria-expanded="true"] i::after { transform: translateY(-3.25px) rotate(-45deg); }
.nav__burger:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.nav__clock { margin-left: auto; margin-right: clamp(16px, 2.4vw, 36px); display: inline-flex; gap: 8px; font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; transition: opacity .35s, transform .35s var(--ease); }
.nav__clock.is-out { opacity: 0; transform: translateY(-4px); }
.nav__clock span { color: var(--muted); }
.smenu { position: fixed; inset: 0; z-index: 9; background: var(--bg); display: flex; align-items: flex-end; padding: 120px var(--gutter) clamp(28px, 5vw, 64px); clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .8s var(--ease), visibility 0s .8s; }
.smenu[hidden] { display: flex; }
.smenu.is-open { clip-path: inset(0); visibility: visible; transition: clip-path .8s var(--ease); }
.smenu nav { display: grid; }
.smenu a { display: flex; align-items: baseline; gap: 18px; font-size: clamp(48px, 10vw, 150px); line-height: 1; letter-spacing: -.045em; font-weight: 500; padding: .06em 0; opacity: 0; transform: translateY(40px); transition: opacity .7s var(--ease), transform .9s var(--ease), color .3s, padding-left .5s var(--ease); }
.smenu.is-open a { opacity: 1; transform: none; }
.smenu.is-open a:nth-child(2) { transition-delay: .07s, .07s, 0s, 0s; } .smenu.is-open a:nth-child(3) { transition-delay: .14s, .14s, 0s, 0s; }
.smenu a small { font-size: 13px; letter-spacing: 0; font-weight: 400; color: var(--muted); }
.smenu nav:hover a { color: var(--muted); } .smenu nav a:hover { color: var(--ink); padding-left: .12em; }
.footer nav { align-items: center; }
.footer__icon { display: inline-grid; place-items: center; width: 22px; height: 22px; }
.footer__icon svg { display: block; }
@media (max-width: 760px) { .nav__clock { display: none; } }

/* ===== 13 Nov: Orbs page ===== */
/* heading: large title, three labelled facts */
.project-head--meta { align-items: start; }
.project-head--meta h1 { grid-column: span 4; font-size: clamp(56px, 8.2vw, 136px); line-height: .92; letter-spacing: -.045em; font-weight: 400; margin-top: -.08em; }
.credits--meta { font-size: 13px; line-height: 1.45; display: grid; gap: 16px; align-content: start; }
.credits--meta dt { display: block; color: var(--ink); font-weight: 500; }
.credits--meta dd { display: block; color: var(--muted); }
/* opening stage: the eclipse grows as you scroll, the logomark opens into the full logo */
.ostage { --p: 0; --t: 0; height: 230vh; }
.ostage__pin { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.ostage__panel { position: absolute; inset: 0; overflow: hidden; display: grid; place-items: center; background:
    radial-gradient(55% 60% at 0% 100%, rgba(44, 237, 252, .30), transparent 70%),
    radial-gradient(50% 55% at 100% 0%, rgba(220, 138, 224, .34), transparent 70%),
    radial-gradient(65% 60% at 100% 100%, rgba(51, 70, 242, .45), transparent 72%),
    radial-gradient(45% 45% at 0% 0%, rgba(122, 137, 233, .30), transparent 70%),
    linear-gradient(160deg, #1d1752, #100c30 55%, #17124a);
  clip-path: inset(calc((1 - var(--p)) * 8vh) calc((1 - var(--p)) * var(--gutter)) calc((1 - var(--p)) * 3vh) round calc((1 - var(--p)) * 20px)); }
.ostage__eclipse { position: absolute; left: 50%; top: 50%; width: min(44vh, 50vw); aspect-ratio: 1; transform: translate(-50%, -50%) scale(calc(.55 + var(--p) * 1.35)); will-change: transform; }
.ostage__eclipse i { position: absolute; inset: 0; border-radius: 50%; }
.ostage__eclipse i:nth-child(1) { inset: -6%; background: conic-gradient(from 200deg, #2cedfc, #7a89e9, #dc8ae0, #ffadae, #a17ae9, #3346f2, #2cedfc); filter: blur(46px); opacity: .85; animation: ostage-spin 26s linear infinite; }
.ostage__eclipse i:nth-child(2) { inset: -1.2%; background: conic-gradient(from 200deg, #2cedfc, #7a89e9, #dc8ae0, #ffadae, #a17ae9, #3346f2, #2cedfc); filter: blur(3px); animation: ostage-spin 26s linear infinite; }
.ostage__eclipse i:nth-child(3) { background: radial-gradient(circle at 50% 38%, #14122a, #050508 68%); }
@keyframes ostage-spin { to { transform: rotate(360deg); } }
.ostage__beam { position: absolute; left: 50%; top: 50%; width: 160vmax; height: 1px; background: linear-gradient(90deg, transparent, rgba(160, 170, 255, .55) 45%, rgba(255, 255, 255, .85) 50%, rgba(220, 138, 224, .55) 55%, transparent); opacity: calc(.3 + var(--p) * .45); }
.ostage__beam--a { transform: translate(-50%, -50%) rotate(calc(24deg - var(--p) * 10deg)); } .ostage__beam--b { transform: translate(-50%, -50%) rotate(calc(-24deg + var(--p) * 10deg)); }
.ostage__logo { --w: min(34vw, 300px); position: relative; width: calc(var(--w) * (.3 + .7 * var(--t))); overflow: hidden; }
.ostage__logo img { display: block; width: var(--w); max-width: none; height: auto; }
/* gradients, rebuilt in code */
.grads { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(22px, 2.8vw, 40px) var(--gutter); padding: clamp(8px, 2vw, 24px) 0; }
.grad { outline: none; }
.grad i { display: block; height: 14px; border-radius: 99px; background: linear-gradient(90deg, var(--g)); background-size: 200% 100%; animation: grad-flow 7s ease-in-out infinite alternate; animation-delay: calc(var(--n) * -0.6s); transition: height .55s var(--ease), border-radius .55s var(--ease); }
.grad:hover i, .grad:focus-visible i { height: 72px; border-radius: 12px; animation-duration: 2.4s; }
.grad span { display: block; margin-top: 10px; font-size: 12px; line-height: 1.35; color: var(--muted); transition: color .3s; }
.grad:hover span, .grad:focus-visible span { color: var(--ink); }
@keyframes grad-flow { from { background-position: 0 0; } to { background-position: 100% 0; } }
@media (max-width: 760px) { .grads { grid-template-columns: repeat(2, 1fr); } .project-head--meta h1 { grid-column: 1 / -1; } .ostage { height: 180vh; } }
@media (prefers-reduced-motion: reduce) { .ostage { height: auto; --p: 1 !important; --t: 1 !important; } .ostage__pin { position: relative; } .ostage__eclipse i, .grad i { animation: none; } }

/* ===== 13 Nov, round 2: theme toggle and dark mode ===== */
.nav__clock { margin-right: 10px; }
.nav__theme { width: 32px; height: 32px; border: 0; background: none; color: inherit; cursor: pointer; display: grid; place-items: center; padding: 0; border-radius: 50%; transition: transform .5s var(--ease); }
.nav__theme:hover { transform: rotate(-20deg) scale(1.1); }
.nav__theme:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.nav__theme .i-sun { display: none; }
[data-theme="dark"] .nav__theme .i-sun { display: block; } [data-theme="dark"] .nav__theme .i-moon { display: none; }
@media (max-width: 760px) { .nav__theme { margin-left: auto; } }
:root[data-theme="dark"] { --bg: #0d0d10; --ink: #efede8; --muted: #8f8d96; --line: #2a2a31; color-scheme: dark; }
body { transition: background-color .5s ease, color .5s ease, opacity .6s ease; }
[data-theme="dark"] .nav { background: rgba(13, 13, 16, .82); border-bottom-color: rgba(255, 255, 255, .07); }
[data-theme="dark"] .jump { background: rgba(13, 13, 16, .9); }
[data-theme="dark"] .cap span, [data-theme="dark"] .brief p, [data-theme="dark"] .hero__spec, [data-theme="dark"] .switch__tabs button, [data-theme="dark"] .flow__steps .is-on button > span > span { color: #a09ea8; }
[data-theme="dark"] .cta__btn:hover { background: #fff; }
[data-theme="dark"] .ty { box-shadow: 0 0 0 1px var(--line); }

/* gradients: lines stay thin; hovering only quickens the drift */
.grad:hover i, .grad:focus-visible i { height: 14px; border-radius: 99px; animation-duration: 1.6s; }

/* merch: bomber, patches and cap */
.merch2 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); }
.merch2 > div { background: #f1f1f1; border-radius: 4px; overflow: hidden; display: grid; place-items: center; }
.merch2 img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.merch2 > div:hover img { transform: scale(1.04); }
.merch2__big { grid-column: span 2; grid-row: span 2; }
.merch2__patch { aspect-ratio: 1; }
.merch2__patch img { width: 62%; height: auto; mix-blend-mode: multiply; }
.merch2__patch:hover img { transform: rotate(40deg) scale(1.04); }
.merch2__wide { grid-column: 1 / -1; aspect-ratio: 16 / 7; }
@media (max-width: 760px) { .merch2 { grid-template-columns: repeat(2, 1fr); } }

/* staking overview, rebuilt in code */
.stk { --on: 0; background: #14122a; color: #fff; border-radius: 14px; padding: clamp(18px, 3vw, 44px); font-family: "Montserrat", var(--sans); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 1.6vw, 22px); }
.stk__stats { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: inherit; }
.stk__stats > div, .stk__card { background: #1f1c3b; border-radius: 18px; padding: clamp(16px, 2vw, 26px); }
.stk__card { border: 1px solid rgba(255, 255, 255, .12); background: #14122a; }
.stk__stats span { font-size: 13px; color: #c9c6dd; } .stk__stats b { display: block; font-size: clamp(22px, 2.6vw, 34px); font-weight: 500; margin: 10px 0 8px; } .stk__stats b span { font-size: inherit; color: inherit; }
.stk__stats small { font-size: 12px; color: #a9a6c2; } .stk__stats small span { font-size: inherit; color: inherit; } .stk__stats em { font-style: normal; color: #5fe3b0; background: rgba(95, 227, 176, .14); padding: 3px 7px; border-radius: 5px; margin-right: 6px; }
.stk__card header { display: flex; justify-content: space-between; align-items: center; } .stk__card header b { font-size: 16px; font-weight: 600; } .stk__card header span { font-size: 12px; color: #c9c6dd; background: #1f1c3b; padding: 8px 14px; border-radius: 10px; }
.stk__card > p { font-size: 12px; color: #a9a6c2; margin: 14px 0 18px; }
.stk__chart { position: relative; margin: 0 0 26px 44px; height: clamp(150px, 16vw, 210px); }
.stk__chart svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.stk__grid line { stroke: rgba(255, 255, 255, .12); stroke-width: 1; vector-effect: non-scaling-stroke; }
.stk__line { fill: none; stroke: #b9a3ff; stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.stk__area { opacity: 0; }
.stk__dot { position: absolute; right: -5px; top: calc(21 / 190 * 100% - 5px); width: 10px; height: 10px; border-radius: 50%; background: #b9a3ff; box-shadow: 0 0 0 0 rgba(185, 163, 255, .6); transform: scale(0); }
.stk__y, .stk__x { list-style: none; position: absolute; font-size: 10px; color: #a9a6c2; display: flex; justify-content: space-between; }
.stk__y { left: -44px; top: calc(10 / 190 * 100% - 7px); bottom: calc(6 / 190 * 100% - 7px); flex-direction: column; }
.stk__x { left: 0; right: 0; bottom: -24px; }
.stk__rows { list-style: none; display: grid; }
.stk__rows li { display: grid; grid-template-columns: 1.5fr .8fr 1.6fr auto; align-items: center; gap: 14px; padding: 15px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); font-size: 13px; opacity: 0; transform: translateY(10px); }
.stk__rows b { font-weight: 500; color: #cfc5ff; display: flex; align-items: center; gap: 12px; } .stk__rows b::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; }
.stk__rows i { display: block; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .16); overflow: hidden; } .stk__rows em { display: block; height: 100%; width: var(--w); border-radius: 4px; background: var(--c); transform: scaleX(0); transform-origin: left; }
.stk__pct { min-width: 44px; text-align: right; font-variant-numeric: tabular-nums; }
.stk__rest { display: flex; justify-content: space-between; font-size: 12px; color: #a9a6c2; margin-top: 16px; }
.stk.is-on .stk__line { stroke-dashoffset: 0; transition: stroke-dashoffset 2.2s cubic-bezier(.4, 0, .2, 1) .2s; }
.stk.is-on .stk__area { opacity: 1; transition: opacity 1.2s ease 1.6s; }
.stk.is-on .stk__dot { transform: scale(1); transition: transform .5s var(--ease) 2.3s; animation: stk-pulse 2.4s ease-out 2.8s infinite; }
.stk.is-on .stk__rows li { opacity: 1; transform: none; transition: opacity .6s ease calc(.3s + var(--i) * .12s), transform .7s var(--ease) calc(.3s + var(--i) * .12s); }
.stk.is-on .stk__rows em { transform: scaleX(1); transition: transform 1.4s var(--ease) calc(.5s + var(--i) * .12s); }
@keyframes stk-pulse { 0% { box-shadow: 0 0 0 0 rgba(185, 163, 255, .55); } 100% { box-shadow: 0 0 0 16px rgba(185, 163, 255, 0); } }
@media (max-width: 860px) { .stk { grid-template-columns: 1fr; } .stk__stats { grid-template-columns: 1fr; } .stk__rows li { grid-template-columns: 1.4fr .8fr 1fr auto; gap: 8px; } }
@media (prefers-reduced-motion: reduce) { .stk__line { stroke-dashoffset: 0; } .stk__area { opacity: 1; } .stk__dot { transform: scale(1); animation: none !important; } .stk__rows li { opacity: 1; transform: none; } .stk__rows em { transform: scaleX(1); } }

/* ===== 13 Nov, round 3: merch grid and city stickers ===== */
.merch3 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); }
.merch3 > div { background: #f2f2f2; border-radius: 4px; overflow: hidden; aspect-ratio: 1; display: grid; place-items: center; }
.merch3 img { display: block; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform 1.2s var(--ease); }
.merch3 > div:hover img { transform: scale(1.05); }
.merch3__big { grid-column: span 2; grid-row: span 2; aspect-ratio: auto !important; }
.merch3__big img { width: 92%; height: 92%; }
@media (max-width: 760px) { .merch3 { grid-template-columns: repeat(2, 1fr); } }

.stick { display: grid; grid-template-columns: 1.15fr 1fr; gap: var(--gutter); }
.stick__sheet { background: #ececee; border-radius: 4px; padding: clamp(24px, 4vw, 64px); display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2.4vw, 36px); align-items: center; justify-items: center; }
.stick__sheet .holo { width: var(--w); filter: drop-shadow(0 6px 10px rgba(20, 20, 40, .18)); transition: transform .7s var(--ease); }
.stick__sheet .holo:nth-child(4) { grid-column: 1 / -1; width: 38%; }
.stick__sheet .holo:hover { transform: translateY(-6px) rotate(-3deg) scale(1.05); }
/* holographic foil: an iridescent band, masked to the sticker's own shape, sweeps across */
.holo { position: relative; display: block; }
.holo img { display: block; width: 100%; height: auto; }
.holo i { position: absolute; inset: 0; pointer-events: none; -webkit-mask: var(--m) center / 100% 100% no-repeat; mask: var(--m) center / 100% 100% no-repeat; mix-blend-mode: screen; opacity: .75;
  background: linear-gradient(115deg, transparent 18%, rgba(255, 110, 220, .55) 32%, rgba(110, 255, 240, .6) 42%, rgba(255, 245, 140, .5) 50%, rgba(130, 150, 255, .6) 60%, rgba(255, 150, 200, .5) 68%, transparent 82%) 0 0 / 320% 320%;
  animation: holo-sweep 5.5s ease-in-out infinite; animation-delay: calc(var(--k) * -0.7s); }
.holo:hover i { animation-duration: 1.6s; opacity: .95; }
@keyframes holo-sweep { 0% { background-position: 100% 100%; } 100% { background-position: 0 0; } }
/* suitcase mock-up, drawn in code */
.stick__scene { border-radius: 4px; display: grid; place-items: center; padding: clamp(28px, 4vw, 60px) 0; background: radial-gradient(80% 60% at 50% 100%, rgba(122, 137, 233, .45), transparent 70%), linear-gradient(160deg, #1d1752, #0d0b26); }
.case { position: relative; width: min(64%, 330px); }
.case__handle { display: block; width: 34%; height: 46px; margin: 0 auto -6px; border: 7px solid #b9bdc6; border-bottom: 0; border-radius: 12px 12px 0 0; }
.case__body { position: relative; aspect-ratio: 3 / 4.25; border-radius: 26px; overflow: hidden;
  background: linear-gradient(90deg, rgba(255,255,255,.55), rgba(255,255,255,0) 18%, rgba(0,0,0,.08) 55%, rgba(0,0,0,.28)),
              repeating-linear-gradient(90deg, #c3c7cf 0 3.2%, #f1f3f6 3.2% 5.2%, #dfe2e7 5.2% 9.6%, #a9aeb8 9.6% 11.1%);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.55), inset 0 -18px 30px rgba(0,0,0,.18), 0 30px 50px rgba(0,0,0,.45); }
.case__body::before { content: ""; position: absolute; left: 0; right: 0; top: 48.6%; height: 1.4%; background: linear-gradient(#8f949e, #e9ebef 40%, #8f949e); box-shadow: 0 1px 0 rgba(255,255,255,.5); }
.case__body .holo { position: absolute; transform: rotate(var(--rot)); filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .35)); transition: transform .7s var(--ease); }
.case__body .holo:hover { transform: rotate(0deg) scale(1.08); z-index: 2; }
.case__wheel { position: absolute; bottom: -16px; left: 12%; width: 13%; height: 18px; border-radius: 0 0 9px 9px; background: #23232b; }
.case__wheel--r { left: auto; right: 12%; }
@media (max-width: 760px) { .stick { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .holo i { animation: none; background-position: 50% 50%; } }

/* ===== 13 Nov, round 4 ===== */
.merch3__zoom img { object-fit: cover; mix-blend-mode: normal; }
.merch3__photo { grid-column: span 2; aspect-ratio: 4 / 3 !important; }
.merch3__photo img { object-fit: cover; mix-blend-mode: normal; }
/* sticker photos: equal heights, with a light sweep that reads as foil catching the light */
.stickp { display: grid; grid-template-columns: 2fr 1fr; gap: var(--gutter); }
.stickp > div { position: relative; overflow: hidden; border-radius: 4px; }
.stickp > div:first-child { aspect-ratio: 3 / 2; } .stickp > div:last-child { aspect-ratio: 3 / 4; }
.stickp img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.stickp > div:hover img { transform: scale(1.03); }
.stickp i { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light; opacity: .9; background: linear-gradient(115deg, transparent 30%, rgba(255, 150, 230, .55) 42%, rgba(140, 255, 245, .6) 50%, rgba(255, 250, 170, .5) 56%, transparent 70%) 0 0 / 300% 300%; animation: holo-sweep 7s ease-in-out infinite; }
.stickp > div:last-child i { animation-delay: -3s; }
@media (max-width: 760px) { .stickp { grid-template-columns: 1fr; } .merch3__photo { grid-column: 1 / -1; } }
@media (prefers-reduced-motion: reduce) { .stickp i { display: none; } }

/* custom cursor (mouse and trackpad only) */
.ccursor { position: fixed; left: 0; top: 0; z-index: 200; width: 0; height: 0; pointer-events: none; opacity: 0; transition: opacity .3s; mix-blend-mode: difference; }
.ccursor.is-on { opacity: 1; }
.ccursor div { position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%; background: #fff; display: grid; place-items: center; overflow: hidden; white-space: nowrap; font-size: 12px; font-weight: 500; color: #0b0b10; transition: width .35s var(--ease), height .35s var(--ease), left .35s var(--ease), top .35s var(--ease), background .25s, opacity .2s; }
.ccursor[data-state="link"] div { width: 44px; height: 44px; left: -22px; top: -22px; }
.ccursor[data-state="label"] { mix-blend-mode: normal; }
.ccursor[data-state="label"] div { width: 88px; height: 88px; left: -44px; top: -44px; background: #7a89e9; }
.ccursor[data-state="text"] div { opacity: 0; }
.ccursor.is-down div { transform: scale(.86); }
html.has-ccursor, html.has-ccursor a, html.has-ccursor button, html.has-ccursor [data-cursor] { cursor: none; }
html.has-ccursor :is(p, h2, h3, li, dd, dt, figcaption, input, textarea, [contenteditable]) { cursor: auto; }
html.has-ccursor a :is(p, h2, h3, li, span, em, b, small) { cursor: none; }
html.has-ccursor iframe { cursor: auto; }

/* round 5: bomber and tote share the last merch row */
.merch3__photo, .merch3__half { grid-column: span 2; aspect-ratio: 3 / 2 !important; }
.merch3__half img { width: 100%; height: 92%; }
@media (max-width: 760px) { .merch3__half { grid-column: 1 / -1; } }
.merch3__half { position: relative; }
.merch3__half img { position: absolute; inset: 5%; width: 90%; height: 90%; }

/* ===== round 6: weighted colour bars, line art without a panel ===== */
.sw8--weighted { display: flex; align-items: stretch; height: clamp(220px, 26vw, 380px); }
.sw8--weighted > div { aspect-ratio: auto; flex: 1 1 0; min-width: 0; }
.sw8--weighted .sw--base { flex-grow: 2.6; } .sw8--weighted .sw--main { flex-grow: 1.6; } .sw8--weighted .sw--second { flex-grow: .8; }
.sw8--weighted .sw--second { padding: 10px; font-size: 11px; }
.sw8--weighted > div[style*="f6f6f6"] { box-shadow: inset 0 0 0 1px var(--line); }
.lineart { max-width: 1040px; margin: 0 auto; }
.lineart img { display: block; width: 100%; height: auto; filter: invert(1) hue-rotate(180deg); mix-blend-mode: multiply; }
[data-theme="dark"] .lineart img { filter: none; mix-blend-mode: screen; }
@media (max-width: 760px) { .sw8--weighted { flex-wrap: wrap; height: auto; } .sw8--weighted > div { flex: 1 1 30%; min-height: 110px; } .sw8--weighted .sw--base { flex-basis: 45%; } }
.merch3__half:has(img[src*="bomber"]) { background: #f3f3f4; }
.merch3__half img[src*="bomber"] { mix-blend-mode: normal; }

/* round 7: five main colours even, three accents narrow; tote sits in the small grid */
.sw8--weighted .sw--base, .sw8--weighted .sw--main { flex-grow: 1.6; }
.sw8--weighted .sw--second { flex-grow: .7; }
.merch3__pad img { width: 88%; height: 88%; }
.merch3__pad { position: relative; }
.merch3__pad img { position: absolute; inset: 7%; width: 86%; height: 86%; }

/* round 8: long project names keep the large title inside its column */
.project-head--meta h1 { overflow-wrap: anywhere; }
.project-head--meta h1.is-long { font-size: clamp(48px, 6.8vw, 112px); }
.project-head--meta h1.is-xlong { font-size: clamp(40px, 5vw, 84px); }

/* ===== round 9: merch with hover detail ===== */
.merch3__cover img { object-fit: cover; mix-blend-mode: normal; }
.merch3__cover:hover img { transform: scale(1.06); }
.merch3__photo { grid-column: span 2; aspect-ratio: 3 / 2 !important; }
/* Paris tee: the back print fades in */
.merch3__swap, .merch3__zoomin { position: relative; outline: none; }
.merch3__swap .merch3__alt { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: normal; opacity: 0; transform: scale(1.08); transition: opacity .6s ease, transform 1.2s var(--ease); }
.merch3__swap:hover .merch3__alt, .merch3__swap:focus .merch3__alt { opacity: 1; transform: none; }
.merch3__swap:hover img:first-child { transform: none; }
/* In DeFi We Trust tee: move in on the chest graphic */
.merch3__zoomin img { transform-origin: 50% 40%; transition: transform 1.1s var(--ease); }
.merch3 > .merch3__zoomin:hover img, .merch3__zoomin:focus img { transform: scale(2.7); }
.merch3__swap:focus-visible, .merch3__zoomin:focus-visible { box-shadow: 0 0 0 2px var(--ink); }
.merch3__cover:has(img[src*="beanies"]) { background: #eae6e5; }
.merch3__cover img[src*="beanies"] { object-fit: contain; }

/* ===== round 10 ===== */
/* In DeFi We Trust tee: hover shows the graphic redrawn as crisp vector */
.merch3__detail { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transform: scale(.7); transition: opacity .5s ease, transform 1.1s var(--ease); }
.merch3__swap--art:hover .merch3__detail, .merch3__swap--art:focus .merch3__detail { opacity: 1; transform: scale(1.18); }
.merch3__swap--art:hover img, .merch3__swap--art:focus img { transform: scale(2.4); transform-origin: 50% 40%; }
/* bucket hat shown whole */
.merch3__cover:has(img[src*="bucket"]) { background: #edeaee; }
.merch3__cover img[src*="bucket"] { object-fit: contain; }
.merch3__cover:hover img[src*="bucket"] { transform: scale(1.04); }
/* colour: dark and light dominate, three main accents, three quiet ones */
.sw8--weighted .sw--base { flex-grow: 2.3; }
.sw8--weighted .sw--main { flex-grow: 1.6; }
.sw8--weighted .sw--second { flex-grow: .7; }
.merch3__swap--art:hover .merch3__detail, .merch3__swap--art:focus .merch3__detail { transform: scale(1.04); }

/* ===== round 11: living glow on the Orbs opener, drifting gradient on the swap buttons ===== */
/* the halo circulates and breathes on its own, whether or not the page is scrolling */
.ostage__eclipse::before { content: ""; position: absolute; inset: -14%; border-radius: 50%; background: conic-gradient(from 20deg, transparent 0 8%, #2cedfc 18%, transparent 34%, #dc8ae0 50%, transparent 64%, #7a89e9 78%, #ffadae 88%, transparent 96%); filter: blur(38px); opacity: .9; animation: ostage-rot 9s linear infinite reverse, ostage-breathe 4.5s ease-in-out infinite alternate; }
.ostage__eclipse i:nth-child(1) { animation: ostage-rot 16s linear infinite, ostage-breathe 6s ease-in-out infinite alternate; }
.ostage__eclipse i:nth-child(2) { animation: ostage-rot 11s linear infinite; }
@keyframes ostage-rot { to { rotate: 360deg; } }
@keyframes ostage-breathe { from { scale: .94; opacity: .65; } to { scale: 1.1; opacity: 1; } }
/* Connect Wallet: the gradient drifts at rest and quickens on hover */
.sw__mini:not(.is-done), .sw__cta:not(.is-done) { background-image: linear-gradient(95deg, #4f3bf6, #8a58ee 28%, #c77fe3 50%, #8a58ee 72%, #4f3bf6); background-size: 220% 100%; animation: sw-drift 5s ease-in-out infinite alternate; }
.sw__mini:not(.is-done):hover, .sw__cta:not(.is-done):hover { animation-duration: 1.8s; }
@keyframes sw-drift { from { background-position: 0 0; } to { background-position: 100% 0; } }
@media (prefers-reduced-motion: reduce) { .ostage__eclipse::before, .sw__mini, .sw__cta { animation: none !important; } }

/* ===== round 12: delegator empty state, with sparkle ===== */
.empt { background: #fcfcfd; border: 1px solid #e7e2f7; border-radius: clamp(18px, 2.4vw, 32px); padding: clamp(36px, 6vw, 90px) 24px clamp(40px, 6vw, 84px); text-align: center; font-family: "Montserrat", var(--sans); color: #15132d; box-shadow: 0 24px 60px rgba(90, 70, 200, .08); }
.empt__art { position: relative; width: min(100%, 380px); aspect-ratio: 3 / 2; margin: 0 auto clamp(16px, 2.4vw, 30px); animation: empt-float 5s ease-in-out infinite alternate; }
.empt__art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.empt b { display: block; font-size: clamp(18px, 1.9vw, 26px); font-weight: 600; }
.empt p { margin: 12px auto 14px; font-size: clamp(13px, 1.2vw, 16px); color: #6f6890; max-width: 46ch; }
.empt > span { font-size: clamp(13px, 1.2vw, 16px); color: #6a2cf5; }
.spark { position: absolute; width: clamp(14px, 1.8vw, 24px); aspect-ratio: 1; margin: -1% 0 0 -1%; translate: -50% -50%; background: radial-gradient(circle, #fff 0 18%, #c9b8ff 45%, #a48cf0 100%); clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%); scale: var(--s); animation: spark 2.6s ease-in-out infinite; animation-delay: calc(var(--d) * -1); filter: drop-shadow(0 0 6px rgba(190, 170, 255, .9)); }
@keyframes spark { 0%, 100% { opacity: .15; scale: calc(var(--s) * .45); rotate: 0deg; } 50% { opacity: 1; scale: calc(var(--s) * 1.25); rotate: 45deg; } }
@keyframes empt-float { from { transform: translateY(-5px); } to { transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .empt__art, .spark { animation: none; } .spark { opacity: .8; } }
.empt__art { width: min(72%, 300px); aspect-ratio: 999 / 980; }
.empt__art img { object-fit: contain; }

/* ===== round 14: three motion tiles (wallet, coin, shield) ===== */
.gems { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }
.gem { position: relative; aspect-ratio: 1; display: grid; place-items: center; background: #fcfcfd; border: 1px solid #e7e2f7; border-radius: clamp(18px, 2.4vw, 32px); box-shadow: 0 24px 60px rgba(90, 70, 200, .08); overflow: hidden; }
.gem .empt__art { width: 62%; margin: 0; }
/* coin: a real 3D turn, built from stacked discs */
.gem--coin { perspective: 900px; }
.coin3d { position: relative; width: 46%; aspect-ratio: 1; transform-style: preserve-3d; animation: coin-spin 7s linear infinite; }
.coin3d > * { position: absolute; inset: 0; border-radius: 50%; }
.coin3d__rim { transform: translateZ(calc(var(--z) * 1.6px)); background: linear-gradient(90deg, #8d919c, #f4f5f8 30%, #b4b8c2 55%, #eceef2 75%, #7f838e); }
.coin3d__face { transform: translateZ(9.6px); display: grid; place-items: center; backface-visibility: hidden;
  background: radial-gradient(circle, #f6f7fa 0 62%, transparent 62.5%), conic-gradient(from 210deg, #f7f8fa, #b9bdc7, #ffffff, #c5c9d2, #eef0f4, #a9adb8, #f7f8fa);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .9), inset 0 0 14px rgba(120, 125, 150, .35); }
.coin3d__face::before { content: ""; position: absolute; inset: 17%; border-radius: 50%; box-shadow: inset 0 2px 6px rgba(110, 115, 140, .35), 0 0 0 1px rgba(255, 255, 255, .9); }
.coin3d__face--back { transform: rotateY(180deg) translateZ(9.6px); }
.coin3d__logo { position: relative; width: 44%; aspect-ratio: 1; overflow: hidden; border-radius: 0; }
.coin3d__logo img { display: block; height: 100%; width: auto; max-width: none; }
.coin3d__face::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .75) 48%, transparent 60%) 0 0 / 260% 260%; animation: coin-glint 3.5s ease-in-out infinite; mix-blend-mode: screen; }
@keyframes coin-spin { from { transform: rotateX(-14deg) rotateY(0deg); } to { transform: rotateX(-14deg) rotateY(360deg); } }
@keyframes coin-glint { 0% { background-position: 110% 110%; } 60%, 100% { background-position: -10% -10%; } }
/* shield: a light travels round the tile edge and a glint crosses the metal */
.gem--shield::before { content: ""; position: absolute; inset: -40%; background: conic-gradient(from 0deg, transparent 0 62%, #2cedfc 72%, #a17ae9 82%, #dc8ae0 90%, transparent 97%); animation: ostage-rot 5s linear infinite; }
.gem--shield::after { content: ""; position: absolute; inset: 3px; border-radius: inherit; background: #fcfcfd; }
.shield { position: relative; z-index: 1; width: 50%; animation: empt-float 5s ease-in-out infinite alternate; }
.shield img { display: block; width: 100%; height: auto; }
.shield i { position: absolute; inset: 0; -webkit-mask: var(--m) center / 100% 100% no-repeat; mask: var(--m) center / 100% 100% no-repeat; background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .85) 49%, transparent 60%) 0 0 / 280% 280%; animation: coin-glint 4.2s ease-in-out infinite; animation-delay: -1.5s; }
@media (max-width: 760px) { .gems { grid-template-columns: 1fr 1fr; } .gem:first-child { grid-column: 1 / -1; aspect-ratio: 3 / 2; } .gem:first-child .empt__art { width: 40%; } }
@media (prefers-reduced-motion: reduce) { .coin3d { animation: none; transform: rotateX(-14deg) rotateY(-28deg); } .coin3d__face::after, .gem--shield::before, .shield, .shield i { animation: none; } }

/* ===== round 15: coins dip into the wallet, lens shine, turning shield, logo shine ===== */
/* wallet: the same image in three clipped layers so the coins can move behind the wallet's front edge */
.gem .wal { animation: none; }
.wal img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.wal__c--b { animation: wal-drop 3.6s cubic-bezier(.5, 0, .3, 1) infinite; }
.wal__c--s { animation: wal-drop 3.6s cubic-bezier(.5, 0, .3, 1) infinite; animation-delay: -1.3s; }
@keyframes wal-drop { 0%, 100% { transform: translateY(-1.2%); } 45% { transform: translateY(3.4%); } 60% { transform: translateY(2.2%); } 72% { transform: translateY(3%); } }
.wal__lens { position: absolute; left: 17.3%; top: 50.2%; width: 23.6%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; pointer-events: none; }
.wal__lens::before { content: ""; position: absolute; inset: -20%; background: linear-gradient(120deg, transparent 38%, rgba(255, 255, 255, .95) 49%, rgba(255, 255, 255, .25) 54%, transparent 62%) 0 0 / 300% 300%; animation: coin-glint 4.8s ease-in-out infinite; animation-delay: -2s; }
/* shield: drawn in code with the same stacked-layer depth as the coin */
.gem--shield3d { perspective: 900px; }
.sh3d { --shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 116'%3E%3Cpath d='M50 2C64 10 80 13 96 13V58C96 86 76 104 50 114 24 104 4 86 4 58V13C20 13 36 10 50 2Z'/%3E%3C/svg%3E");
  position: relative; width: 42%; aspect-ratio: 100 / 116; transform-style: preserve-3d; animation: coin-spin 9s linear infinite; }
.sh3d > * { position: absolute; inset: 0; -webkit-mask: var(--shape) center / 100% 100% no-repeat; mask: var(--shape) center / 100% 100% no-repeat; }
.sh3d__rim { transform: translateZ(calc(var(--z) * 1.6px)); background: linear-gradient(90deg, #8d919c, #f4f5f8 30%, #b4b8c2 55%, #eceef2 75%, #7f838e); }
.sh3d__face { transform: translateZ(9.6px); display: grid; place-items: center; backface-visibility: hidden; background: conic-gradient(from 200deg, #f7f8fa, #aeb2bd, #ffffff, #c5c9d2, #eef0f4, #9fa3ae, #f7f8fa); }
.sh3d__face--back { transform: rotateY(180deg) translateZ(9.6px); }
.sh3d__panel { position: absolute; inset: 7%; -webkit-mask: var(--shape) center / 100% 100% no-repeat; mask: var(--shape) center / 100% 100% no-repeat; background: linear-gradient(160deg, #ffffff, #eef0f5 55%, #dfe2ea); }
.sh3d .coin3d__logo { width: 52%; margin-top: -6%; }
.sh3d__face::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 36%, rgba(255, 255, 255, .7) 48%, transparent 60%) 0 0 / 260% 260%; animation: coin-glint 4s ease-in-out infinite; animation-delay: -1s; mix-blend-mode: screen; }
/* the Orbs sphere is the hero: it glows softly, a light crosses it, and a star catches on its edge */
.coin3d__logo { border-radius: 50%; animation: logo-glow 3.2s ease-in-out infinite; }
.coin3d__logo::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .95) 48%, rgba(255, 255, 255, .2) 55%, transparent 66%) 0 0 / 300% 300%; animation: coin-glint 3.2s ease-in-out infinite; mix-blend-mode: screen; }
@keyframes logo-glow { 0%, 100% { filter: drop-shadow(0 0 0 rgba(140, 150, 255, 0)) saturate(1); } 50% { filter: drop-shadow(0 0 10px rgba(150, 140, 255, .85)) saturate(1.25) brightness(1.08); } }
.logo-spark { left: 64%; top: 34%; --s: .8; --d: 1.2s; z-index: 2; -webkit-mask: none !important; mask: none !important; inset: auto; }
.sh3d .logo-spark { left: 66%; top: 30%; }
.coin3d > .coin3d__face > .logo-spark, .sh3d__face > .logo-spark { position: absolute; }
@media (prefers-reduced-motion: reduce) { .wal__c--b, .wal__c--s, .wal__lens::before, .sh3d, .sh3d__face::after, .coin3d__logo, .coin3d__logo::after { animation: none; } .sh3d { transform: rotateX(-14deg) rotateY(-28deg); } }

/* ===== round 17: two tiles. Wallet as one piece; your coin turning in front of your shield ===== */
.gems--two { grid-template-columns: 1fr 1fr; }
.gems--two .gem { aspect-ratio: 4 / 3; }
.gems--two .gem .empt__art { width: 44%; animation: empt-float 5s ease-in-out infinite alternate; }
.gems--two .empt__art img { position: static; width: 100%; height: 100%; }
.duo { position: relative; width: 62%; aspect-ratio: 5 / 4; perspective: 900px; }
.duo__shield { position: absolute; right: 2%; top: 0; width: 56%; height: auto; }
.duo__coin { position: absolute; left: 4%; bottom: 0; width: 50%; animation: duo-turn 6s linear infinite; filter: drop-shadow(0 14px 18px rgba(70, 60, 140, .22)); }
.duo__coin img { display: block; width: 100%; height: auto; }
@keyframes duo-turn { from { transform: rotateY(0deg); } to { transform: rotateY(360deg); } }
@media (max-width: 760px) { .gems--two { grid-template-columns: 1fr; } .gems--two .gem:first-child { aspect-ratio: 4 / 3; } .gems--two .gem:first-child .empt__art { width: 44%; } }
@media (prefers-reduced-motion: reduce) { .duo__coin, .gems--two .gem .empt__art { animation: none; } }

/* ===== round 18: coin and shield as designed, side by side, no animation ===== */
.duo { width: 70%; aspect-ratio: auto; perspective: none; display: flex; align-items: center; justify-content: center; gap: 8%; }
.duo__coin, .duo__shield { position: static; width: 40%; height: auto; animation: none; transform: none; filter: none; }
.duo__coin { order: 1; } .duo__shield { order: 2; width: 37%; }

/* ===== round 19: a mosaic of the dashboard's small parts, flipping between dark and light ===== */
.gem--kit { background: #ecebf3; container-type: inline-size; transition: background .8s ease; }
.gem--kit:has(.kit.is-dark) { background: #0b0a1a; }
.kit { --bg: #ffffff; --ink: #15132d; --sub: #7b7699; --line: #e6e2f5; --soft: #f3f0fc;
  position: absolute; left: 50%; top: 50%; width: 118%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.6cqw; transform: translate(-50%, -50%) rotate(-9deg); font-family: "Montserrat", var(--sans); }
.kit.is-dark { --bg: #1b1836; --ink: #ffffff; --sub: #a9a6c2; --line: rgba(255, 255, 255, .12); --soft: #262348; }
.kt { position: relative; aspect-ratio: 1; border-radius: 3.4cqw; padding: 3.2cqw; background: var(--bg); color: var(--ink); display: flex; flex-direction: column; justify-content: center; gap: 1.4cqw; overflow: hidden; font-size: 2.3cqw; box-shadow: 0 2cqw 4cqw rgba(40, 30, 110, .1);
  transition: background .7s ease calc(var(--i) * 70ms), color .7s ease calc(var(--i) * 70ms), transform .9s var(--ease) calc(var(--i) * 70ms); animation: kt-drift 7s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -0.9s); }
.kit.is-dark .kt { box-shadow: 0 2cqw 4cqw rgba(0, 0, 0, .35); }
.kt:nth-child(3n + 2) { translate: 0 -18%; }
@keyframes kt-drift { from { transform: translateY(-1.4cqw); } to { transform: translateY(1.4cqw); } }
.kt > span:first-child { color: var(--sub); }
.kt b { font-weight: 600; }
.kt--stat b, .kt--price b { font-size: 5.4cqw; font-weight: 500; letter-spacing: -.02em; }
.kt em { font-style: normal; align-self: flex-start; font-size: 2cqw; color: #1fa971; background: rgba(31, 169, 113, .14); padding: .5cqw 1.2cqw; border-radius: 1cqw; }
.kt em.is-down { color: #e0527a; background: rgba(224, 82, 122, .14); }
.kt--chart svg { width: 100%; height: 46%; overflow: visible; }
.kt__line { fill: none; stroke: #a48cf0; stroke-width: 2.4; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-dasharray: 1; animation: kt-draw 4.5s ease-in-out infinite; }
.kt__area { fill: #a48cf0; opacity: .14; }
.kt__dot { position: absolute; right: 2.6cqw; top: 46%; width: 1.8cqw; height: 1.8cqw; border-radius: 50%; background: #a48cf0; animation: stk-pulse 2.2s ease-out infinite; }
@keyframes kt-draw { 0% { stroke-dashoffset: 1; } 55%, 100% { stroke-dashoffset: 0; } }
.kt__pills { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--soft); border-radius: 99px; padding: .7cqw; font-size: 1.9cqw; font-weight: 600; text-align: center; transition: background .7s ease; }
.kt__pills span { position: relative; padding: 1.3cqw 0; }
.kt__pills i { position: absolute; left: .7cqw; top: .7cqw; bottom: .7cqw; width: calc((100% - 1.4cqw) / 4); border-radius: 99px; background: linear-gradient(95deg, #7a5cf5, #b98cf0); animation: kt-pill 6s steps(1) infinite; transition: transform .5s var(--ease); }
@keyframes kt-pill { 0% { transform: translateX(0); } 25% { transform: translateX(100%); } 50% { transform: translateX(200%); } 75% { transform: translateX(300%); } }
.kt--bars p { display: grid; grid-template-columns: 1fr; gap: .7cqw; margin: 0; font-size: 1.9cqw; }
.kt--bars i { display: block; height: .9cqw; border-radius: 9px; background: var(--line); overflow: hidden; position: relative; }
.kt--bars i::after { content: ""; position: absolute; inset: 0; width: var(--w); border-radius: inherit; background: var(--c); transform-origin: left; animation: kt-grow 4.5s var(--ease) infinite; }
@keyframes kt-grow { 0% { transform: scaleX(0); } 45%, 100% { transform: scaleX(1); } }
.kt--cta, .kt--status, .kt--search, .kt--pills { align-items: stretch; }
.kt__btn { display: block; text-align: center; color: #fff !important; font-weight: 600; font-size: 2cqw; padding: 2cqw 1cqw; border-radius: 2cqw; background: linear-gradient(95deg, #4f3bf6, #8a58ee 28%, #c77fe3 50%, #8a58ee 72%, #4f3bf6) 0 0 / 220% 100%; animation: sw-drift 4s ease-in-out infinite alternate; }
.kt__chip { display: inline-flex; align-items: center; justify-content: center; gap: 1.4cqw; font-size: 2.2cqw; color: var(--ink) !important; border: 1px solid var(--line); border-radius: 99px; padding: 1.8cqw 1cqw; }
.kt__chip i { width: 1.6cqw; height: 1.6cqw; border-radius: 50%; background: #2bd08a; box-shadow: 0 0 0 0 rgba(43, 208, 138, .6); animation: kt-ping 2s ease-out infinite; }
@keyframes kt-ping { to { box-shadow: 0 0 0 2cqw rgba(43, 208, 138, 0); } }
.kt--mode { align-items: center; text-align: center; }
.kt__switch { width: 11cqw; height: 5.6cqw; border-radius: 99px; background: var(--soft); position: relative; transition: background .7s ease; }
.kt__switch i { position: absolute; top: .7cqw; left: .7cqw; width: 4.2cqw; height: 4.2cqw; border-radius: 50%; background: linear-gradient(135deg, #ffd27a, #ff9d6b); transition: transform .7s var(--ease), background .7s ease, box-shadow .7s ease; }
.kit.is-dark .kt__switch i { transform: translateX(5.4cqw); background: #dcd6ff; box-shadow: inset -1.3cqw -.6cqw 0 0 #1b1836; }
.kt__field { display: flex; align-items: center; gap: 1.4cqw; background: var(--soft); border-radius: 2cqw; padding: 1.9cqw 1.8cqw; color: var(--ink) !important; font-size: 2cqw; transition: background .7s ease; }
.kt__field svg { width: 2.6cqw; height: 2.6cqw; flex: none; color: var(--sub); }
.kt__field span { overflow: hidden; white-space: nowrap; border-right: 1.5px solid #a48cf0; animation: kt-type 5s steps(8) infinite; }
@keyframes kt-type { 0% { max-width: 0; } 45%, 85% { max-width: 12cqw; } 100% { max-width: 0; } }
@media (prefers-reduced-motion: reduce) { .kt, .kt * , .kt *::after { animation: none !important; } .kt__line { stroke-dashoffset: 0; } .kt--bars i::after { transform: none; } .kt__field span { max-width: none; } }
/* mosaic: four columns so all twelve parts fit the tile */
.kit { grid-template-columns: repeat(4, 1fr); width: 116%; gap: 2.2cqw; transform: translate(-50%, -50%) rotate(-8deg); }
.kt { padding: 2.4cqw; border-radius: 2.8cqw; font-size: 1.9cqw; gap: 1.1cqw; }
.kt:nth-child(3n + 2) { translate: none; }
.kt:nth-child(4n + 2), .kt:nth-child(4n + 4) { translate: 0 -22%; }
.kt--stat b, .kt--price b { font-size: 4.4cqw; }
.kt--stat b.is-sm { font-size: 2.8cqw; font-weight: 600; }
.kt em.is-plain { color: var(--sub); background: none; padding: 0; }
.kt__btn { font-size: 1.6cqw; padding: 1.7cqw .6cqw; }
.kt__chip { font-size: 1.8cqw; padding: 1.5cqw .8cqw; }
.kt__chip i.is-eth { background: #8b8cf0; animation: none; border-radius: 30%; transform: rotate(45deg); }
.kt__pills { font-size: 1.5cqw; }
.kt--bars p { font-size: 1.6cqw; }
.kt__switch { width: 9cqw; height: 4.6cqw; } .kt__switch i { width: 3.4cqw; height: 3.4cqw; top: .6cqw; left: .6cqw; }
.kit.is-dark .kt__switch i { transform: translateX(4.4cqw); box-shadow: inset -1cqw -.5cqw 0 0 #1b1836; }
.kt__field { font-size: 1.6cqw; padding: 1.5cqw 1.3cqw; }
@keyframes kt-type { 0% { max-width: 0; } 45%, 85% { max-width: 10cqw; } 100% { max-width: 0; } }

/* ===== round 20: even grid, real card flips; coin shine; colour weights ===== */
/* mosaic: a straight, even 4 by 3 grid */
.kit { width: 86%; gap: 2cqw; transform: translate(-50%, -50%); }
.kt, .kt:nth-child(3n + 2), .kt:nth-child(4n + 2), .kt:nth-child(4n + 4) { translate: none; animation: none; transform: none; }
/* each card turns over: light on the front, dark on the back */
.kit.is-flip .kt { padding: 0; background: none; box-shadow: none; overflow: visible; perspective: 60cqw; }
.kt__in { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.3, .1, .2, 1); transition-delay: calc(var(--i) * 70ms); }
.kit.is-dark .kt__in { transform: rotateY(180deg); }
.kt__f { --bg: #ffffff; --ink: #15132d; --sub: #7b7699; --line: #e6e2f5; --soft: #f3f0fc;
  position: absolute; inset: 0; border-radius: 2.8cqw; padding: 2.4cqw; background: var(--bg); color: var(--ink); display: flex; flex-direction: column; justify-content: center; gap: 1.1cqw; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 1.6cqw 3.4cqw rgba(40, 30, 110, .1); }
.kt__f--d { --bg: #1b1836; --ink: #ffffff; --sub: #a9a6c2; --line: rgba(255, 255, 255, .12); --soft: #262348; transform: rotateY(180deg); box-shadow: 0 1.6cqw 3.4cqw rgba(0, 0, 0, .35); }
.kt__f > span:first-child { color: var(--sub); }
.kt--cta .kt__f, .kt--status .kt__f, .kt--search .kt__f, .kt--pills .kt__f { align-items: stretch; }
.kt--mode .kt__f { align-items: center; text-align: center; }
.kit.is-dark .kt__switch i { transform: none; background: linear-gradient(135deg, #ffd27a, #ff9d6b); box-shadow: none; }
.kt__f--d .kt__switch i, .kit.is-dark .kt__f--d .kt__switch i { transform: translateX(4.4cqw); background: #dcd6ff; box-shadow: inset -1cqw -.5cqw 0 0 #1b1836; }
.kt--chart .kt__f .kt__dot { right: 2cqw; }
/* wallet: light and a soft colour glow on the two Orbs spheres */
.wal__orb { position: absolute; aspect-ratio: 1; border-radius: 50%; overflow: hidden; pointer-events: none; }
.wal__orb::before { content: ""; position: absolute; inset: -20%; background: linear-gradient(118deg, transparent 36%, rgba(255, 255, 255, .9) 49%, rgba(255, 255, 255, .2) 55%, transparent 64%) 0 0 / 300% 300%; animation: coin-glint 4.2s ease-in-out infinite; mix-blend-mode: soft-light; }
.wal__orb::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 40% 35%, rgba(255, 190, 255, .55), rgba(120, 200, 255, .35) 55%, transparent 75%); mix-blend-mode: screen; animation: orb-pulse 3.4s ease-in-out infinite; }
.wal__orb--s::before { animation-delay: -1.6s; } .wal__orb--s::after { animation-delay: -1.2s; }
@keyframes orb-pulse { 0%, 100% { opacity: 0; } 50% { opacity: .9; } }
/* colour: dark and light carry more of the width */
.sw8--weighted .sw--base { flex-grow: 3.2; }
.sw8--weighted .sw--main { flex-grow: 1.5; }
.sw8--weighted .sw--second { flex-grow: .6; }
@media (prefers-reduced-motion: reduce) { .wal__orb::before, .wal__orb::after { animation: none; } .wal__orb::after { opacity: 0; } .kt__in { transition: none; } }
/* mosaic: labels sized for the smaller, even cards */
.kt__f { padding: 2cqw; font-size: 1.6cqw; }
.kt__pills { font-size: 1.15cqw; padding: .5cqw; } .kt__pills span { padding: 1cqw 0; } .kt__pills i { left: .5cqw; top: .5cqw; bottom: .5cqw; width: calc((100% - 1cqw) / 4); }
.kt__btn { font-size: 1.3cqw; white-space: nowrap; padding: 1.5cqw .2cqw; border-radius: 1.6cqw; }
.kt__chip { font-size: 1.4cqw; white-space: nowrap; gap: .9cqw; padding: 1.3cqw .4cqw; } .kt__chip i { width: 1.2cqw; height: 1.2cqw; }
.kt--stat b, .kt--price b { font-size: 3.6cqw; } .kt--stat b.is-sm { font-size: 2.1cqw; }
.kt em { font-size: 1.5cqw; }
.kt--bars p { font-size: 1.35cqw; }
.kt__field { font-size: 1.3cqw; padding: 1.3cqw 1cqw; gap: .8cqw; } .kt__field svg { width: 1.9cqw; height: 1.9cqw; }
.kt__switch { width: 7.6cqw; height: 4cqw; } .kt__switch i { width: 2.9cqw; height: 2.9cqw; top: .55cqw; left: .55cqw; }
.kt__f--d .kt__switch i, .kit.is-dark .kt__f--d .kt__switch i { transform: translateX(3.6cqw); box-shadow: inset -.9cqw -.4cqw 0 0 #1b1836; }

/* ===== round 21: next project with thumbnail; bomber patch zoom ===== */
.next--thumb { display: grid; grid-template-columns: 1fr minmax(160px, 24vw); align-items: end; gap: var(--gutter); }
.next__thumb { display: block; aspect-ratio: 4 / 3; border-radius: 4px; overflow: hidden; background: #ecebe6; transform: translateY(8px); transition: transform .8s var(--ease); }
.next__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.next--thumb:hover .next__thumb { transform: translateY(0) rotate(-1.2deg); }
.next--thumb:hover .next__thumb img { transform: scale(1.06); }
@media (max-width: 600px) { .next--thumb { grid-template-columns: 1fr; } .next__thumb { max-width: 60%; } }
.merch3__patch { outline: none; }
.merch3__patch img { transform-origin: 47% 34%; transition: transform 1.2s var(--ease); }
.merch3 > .merch3__patch:hover img, .merch3__patch:focus img { transform: scale(2.3); }

/* ===== round 21: Thier photography ===== */
.thp { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); }
.thp > div { position: relative; aspect-ratio: 1; border-radius: 4px; overflow: hidden; }
.thp__photo img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 2.4s var(--ease); }
.thp.is-in .thp__photo img { transform: none; }
.thp__app { background: radial-gradient(90% 70% at 30% 20%, #ff5aa6, transparent 60%), linear-gradient(160deg, #e8207c, #5a2a86); display: grid; place-items: center; }
.thp__app img { display: block; width: 66%; height: auto; filter: drop-shadow(0 30px 40px rgba(40, 0, 60, .45)); animation: empt-float 6s ease-in-out infinite alternate; }
.thmon { background: #d8d8d8; border-radius: 4px; overflow: hidden; aspect-ratio: 16 / 9; }
.thmon img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
@media (max-width: 760px) { .thp { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .thp__app img { animation: none; } .thp__photo img { transform: none; } }

/* round 22: Thier, a wide crop of the brand portrait between chapters */
.theyes { aspect-ratio: 1004 / 421; overflow: hidden; background: #111; }
.theyes img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 3s var(--ease); }
.theyes.is-in img { transform: none; }
@media (prefers-reduced-motion: reduce) { .theyes img { transform: none; } }

/* ===== round 23: Services page ===== */
.svc { padding-bottom: clamp(60px, 8vw, 120px); }
.svc .label { display: block; margin-bottom: clamp(18px, 2.4vw, 32px); }
.svc-hero { padding-top: clamp(140px, 24vh, 260px); padding-bottom: clamp(48px, 7vw, 100px); }
.svc-hero__h { font-size: clamp(34px, 5.6vw, 96px); line-height: 1.02; letter-spacing: -.035em; font-weight: 400; max-width: 17ch; }
.svc-hero__h em, .svc-does em { font-family: var(--serif); font-style: italic; letter-spacing: -.02em; }
.svc-hero__p { margin-top: clamp(22px, 3vw, 44px); font-size: clamp(17px, 1.6vw, 24px); line-height: 1.4; color: var(--muted); max-width: 46ch; }
/* two rows of work drifting in opposite directions */
.svc-work { display: grid; gap: var(--gutter); overflow: hidden; padding-bottom: clamp(70px, 10vw, 160px); }
.svc-strip { overflow: hidden; }
.svc-strip__track { display: flex; gap: var(--gutter); width: max-content; animation: svc-slide 60s linear infinite; }
.svc-strip--rev .svc-strip__track { animation-direction: reverse; }
.svc-strip:hover .svc-strip__track { animation-play-state: paused; }
.svc-strip a { position: relative; display: block; flex: none; width: clamp(240px, 30vw, 460px); aspect-ratio: 4 / 3; border-radius: 4px; overflow: hidden; background: #e9e7e1; }
.svc-strip img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.svc-strip a:hover img { transform: scale(1.05); }
.svc-strip span { position: absolute; left: 14px; bottom: 12px; font-size: 13px; color: #fff; mix-blend-mode: difference; }
@keyframes svc-slide { to { transform: translateX(calc(-50% - var(--gutter) / 2)); } }
/* what I do */
.svc-does { padding-bottom: clamp(70px, 10vw, 160px); }
.svc-does ol { list-style: none; }
.svc-does li { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); align-items: baseline; border-top: 1px solid var(--line); padding: clamp(20px, 2.6vw, 38px) 0; }
.svc-does li small { grid-column: span 2; font-size: 12px; color: var(--muted); }
.svc-does li p { grid-column: span 10; font-size: clamp(26px, 3.8vw, 60px); line-height: 1.06; letter-spacing: -.03em; max-width: 22ch; }
/* capabilities */
.svc-caps { padding-bottom: clamp(70px, 10vw, 160px); }
.svc-caps__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--gutter); }
.svc-cap h3 { font-size: clamp(20px, 2vw, 30px); font-weight: 400; letter-spacing: -.02em; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.svc-cap li { font-size: 14px; line-height: 1.9; color: var(--muted); }
.svc-caps__note { margin-top: clamp(28px, 3.4vw, 48px); font-size: 14px; color: var(--muted); max-width: 62ch; }
/* how I work */
.svc-how { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); padding-bottom: clamp(70px, 10vw, 160px); }
.svc-how__intro { grid-column: span 5; }
.svc-how__intro p { margin-top: 22px; font-family: var(--serif); font-size: clamp(17px, 1.5vw, 22px); line-height: 1.42; max-width: 40ch; }
.svc-how ol { grid-column: 7 / span 6; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 3.4vw, 56px) var(--gutter); align-content: start; }
.svc-how li small { font-size: 12px; color: var(--muted); }
.svc-how li h3 { font-size: clamp(18px, 1.7vw, 24px); font-weight: 500; letter-spacing: -.015em; margin: 10px 0 8px; }
.svc-how li p { font-size: 14px; line-height: 1.6; color: var(--muted); max-width: 34ch; }
/* clients */
.svc-clients { border-top: 1px solid var(--line); padding-top: clamp(28px, 4vw, 56px); overflow: hidden; }
.svc-clients__track { display: flex; align-items: center; gap: clamp(28px, 4vw, 64px); width: max-content; font-size: clamp(34px, 5vw, 84px); letter-spacing: -.035em; animation: svc-names 40s linear infinite; }
.svc-clients__track i { font-style: normal; font-size: .4em; color: var(--muted); }
@keyframes svc-names { to { transform: translateX(-33.333%); } }
@media (max-width: 900px) {
  .svc-caps__grid { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .svc-how__intro, .svc-how ol { grid-column: 1 / -1; }
  .svc-does li small { grid-column: span 12; } .svc-does li p { grid-column: span 12; }
}
@media (max-width: 560px) { .svc-how ol { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .svc-strip__track, .svc-clients__track { animation: none; } .svc-strip { overflow-x: auto; } }

/* ===== round 24: Thier triptych; Services clients on a dark band ===== */
.thp--three { grid-template-columns: repeat(3, 1fr); }
.thp--three > div { aspect-ratio: 2 / 3; }
.thp--three .thp__app img { width: 82%; }
@media (max-width: 760px) { .thp--three { grid-template-columns: 1fr; } }
.svc-clients--dark { background: #0d0d10; color: #fff; border-top: 0; padding: clamp(36px, 5vw, 72px) 0 clamp(40px, 6vw, 84px); }
.svc-clients--dark .label { color: rgba(255, 255, 255, .55); }
.svc-clients--dark .svc-clients__track i { color: rgba(255, 255, 255, .4); }
.svc { padding-bottom: 0; }

/* round 25: client logos, forced to white, optically matched in height */
.svc-clients--dark .svc-clients__track { font-size: clamp(26px, 3.4vw, 54px); gap: clamp(30px, 4.4vw, 72px); }
.svc-logo { display: block; flex: none; height: clamp(26px, 3.2vw, 50px); width: auto; filter: brightness(0) invert(1); }
.svc-logo--tall { height: clamp(46px, 5.6vw, 88px); }
.svc-clients--dark .svc-clients__track span { font-weight: 500; }
/* round 26: optical sizes for the added logos */
.svc-logo--mid { height: clamp(40px, 4.8vw, 76px); }
.svc-logo--up { height: clamp(30px, 3.8vw, 60px); }
.svc-logo--down { height: clamp(22px, 2.7vw, 42px); }

/* Client strips follow the page theme on Services and About. */
.svc-clients--dark { background: var(--bg); color: var(--ink); }
.svc-clients--dark .label, .svc-clients--dark .svc-clients__track i { color: var(--muted); }
.svc-logo { filter: brightness(0); }
[data-theme="dark"] .svc-logo { filter: brightness(0) invert(1); }
.svc-clients--dark .svc-clients__track { --client-gap: clamp(30px, 4.4vw, 72px); gap: var(--client-gap); }
@keyframes svc-names { to { transform: translateX(calc(-100% / 3 - var(--client-gap, 0px) / 3)); } }

/* round 27: What I do lines open on hover, focus or tap to show one sentence */
.svc-does li { cursor: default; outline: none; }
.svc-does__more { grid-column: 3 / span 8; display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.svc-does__more > span { overflow: hidden; min-height: 0; font-size: clamp(15px, 1.3vw, 19px); line-height: 1.5; color: var(--muted); max-width: 52ch; opacity: 0; transition: opacity .5s ease; }
.svc-does li:focus-visible { box-shadow: inset 0 0 0 2px var(--ink); }
@media (hover: hover) { .svc-does li:hover .svc-does__more { grid-template-rows: 1fr; } .svc-does li:hover .svc-does__more > span { opacity: 1; padding-top: 12px; } }
.svc-does li.is-open .svc-does__more, .svc-does li:focus-within .svc-does__more { grid-template-rows: 1fr; }
.svc-does li.is-open .svc-does__more > span, .svc-does li:focus-within .svc-does__more > span { opacity: 1; padding-top: 12px; }
.svc-does li p { transition: transform .6s var(--ease); } .svc-does li:hover p, .svc-does li.is-open p { transform: translateX(1vw); }
@media (max-width: 900px) { .svc-does__more { grid-column: 1 / -1; } }
@media (prefers-reduced-motion: reduce) { .svc-does__more, .svc-does__more > span, .svc-does li p { transition: none; } }

/* round 28: artwork row, no captions; tiles drawn so edges stay clean and nothing flickers on hover */
.svc-strip a { isolation: isolate; transform: translateZ(0); backface-visibility: hidden; outline: none; background: #0d0d10; }
.svc-strip a:focus-visible { box-shadow: 0 0 0 2px var(--ink); }
.svc-strip a img, .svc-strip a video { position: absolute; left: -1px; top: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; display: block; object-fit: cover; transition: transform 1.2s var(--ease); will-change: transform; }
.svc-strip a img.top { object-position: 0 0; }
.svc-strip a:hover img, .svc-strip a:hover video { transform: scale(1.04); }
.svc-strip span { display: none; }
.svc-strip__track { will-change: transform; }

/* ===== round 31: contact page ===== */
.ct { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); row-gap: clamp(40px, 6vw, 80px); padding-top: clamp(140px, 22vh, 240px); padding-bottom: clamp(80px, 10vw, 160px); }
.ct__intro { grid-column: span 5; }
.ct__intro .label { display: block; margin-bottom: clamp(18px, 2.4vw, 32px); }
.ct__h { font-size: clamp(44px, 6.4vw, 112px); line-height: .98; letter-spacing: -.04em; font-weight: 400; }
.ct__h em { font-family: var(--serif); font-style: italic; letter-spacing: -.02em; }
.ct__p { margin-top: clamp(20px, 2.6vw, 36px); font-size: clamp(17px, 1.5vw, 22px); line-height: 1.4; color: var(--muted); max-width: 34ch; }
.ct__direct { list-style: none; margin-top: clamp(36px, 5vw, 72px); display: grid; }
.ct__direct li { display: grid; grid-template-columns: 7em 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 15px; }
.ct__direct li:last-child { border-bottom: 1px solid var(--line); }
.ct__direct span { color: var(--muted); }
.ct__direct a:hover { opacity: .55; }
.ct__form { grid-column: 7 / span 6; display: grid; gap: clamp(22px, 2.6vw, 34px); align-content: start; }
.ct__topic { border: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.ct__topic legend { width: 100%; font-size: 12px; color: var(--muted); margin-bottom: 12px; padding: 0; }
.ct__topic label { position: relative; cursor: pointer; }
.ct__topic input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ct__topic span { display: inline-block; padding: 11px 20px; border: 1px solid var(--line); border-radius: 99px; font-size: 15px; transition: background .3s ease, color .3s ease, border-color .3s ease; }
.ct__topic label:hover span { border-color: var(--ink); }
.ct__topic input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.ct__topic input:focus-visible + span { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ink); }
.ct__field { display: grid; gap: 8px; }
.ct__field label { font-size: 12px; color: var(--muted); } .ct__field label small { font-size: inherit; opacity: .7; }
.ct__field input, .ct__field textarea { font: inherit; font-size: clamp(18px, 1.6vw, 24px); letter-spacing: -.01em; color: var(--ink); background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 8px 0 12px; outline: none; transition: border-color .3s ease; resize: vertical; width: 100%; }
.ct__field textarea { min-height: 7.5em; line-height: 1.4; }
.ct__field input:focus, .ct__field textarea:focus { border-bottom-color: var(--ink); }
.ct__field input:user-invalid, .ct__field textarea:user-invalid { border-bottom-color: #e0527a; }
.ct__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ct__send { justify-self: start; display: inline-flex; align-items: center; gap: 14px; border: 0; cursor: pointer; font: inherit; font-size: 16px; padding: 16px 30px; border-radius: 99px; background: var(--ink); color: var(--bg); transition: transform .35s var(--ease), background .3s ease; }
.ct__send i { font-style: normal; transition: transform .35s var(--ease); }
.ct__send:hover { transform: translateY(-2px); } .ct__send:hover i { transform: translateX(5px); }
.ct__send:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.ct__send[disabled] { opacity: .6; pointer-events: none; }
.ct__status { min-height: 1.5em; font-size: 14px; color: var(--muted); }
.ct__status.is-ok { color: #1fa971; } .ct__status.is-error { color: #e0527a; }
@media (max-width: 900px) { .ct__intro, .ct__form { grid-column: 1 / -1; } }
@media (prefers-reduced-motion: reduce) { .ct__send, .ct__send i, .ct__topic span { transition: none; } }

/* round 32: Alegria, logo with light wordmark in dark mode; the light-blue community panel keeps dark text in both themes */
.logo-on-dark { display: none; }
[data-theme="dark"] .logo-on-dark { display: block; } [data-theme="dark"] .logo-on-light { display: none; }
.al-community { color: #141414; }

/* round 33: a video playing inside the phone screen. The player is landscape, so it is centred and cropped like a cover image. */
.phones--1 .phone { width: min(60%, 290px); }
.phones--1 .phone:nth-child(2) { margin-top: 0; }
.phone__screen .yt-clip { position: absolute; top: 50%; left: 50%; height: 100%; width: auto; aspect-ratio: 16 / 9; transform: translate(-50%, -50%) scale(1.02); border: 0; pointer-events: none; background: #000; }
.cap a { text-decoration: underline; text-underline-offset: 3px; }

/* round 34: Alegria process tiles equal; cards turn on click; clip fallback link */
.al-pass .media { overflow: hidden; background: #0b0b0e; }
.al-pass .media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.fc__in { animation: none; transition: transform .9s cubic-bezier(.65, 0, .25, 1); }
.fc { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.fc.is-flipped .fc__in { transform: rotateY(180deg); }
.fc:hover .fc__in { transform: rotateY(0) translateY(-4px); } .fc.is-flipped:hover .fc__in { transform: rotateY(180deg) translateY(-4px); }
.fc:focus-visible { outline: 2px solid #fff; outline-offset: 6px; border-radius: 16px; }
.phone__screen .yt-link { position: absolute; z-index: 2; left: 50%; bottom: 5%; translate: -50% 0; padding: 7px 14px; border-radius: 99px; font-size: 11px; white-space: nowrap; color: #fff; background: rgba(0, 0, 0, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
@media (prefers-reduced-motion: reduce) { .fc__in { transition: none; } }

/* round 35: the music clip is a link card to YouTube, not an embedded player */
.phone__screen .yt-link--card { inset: 0; left: 0; bottom: 0; top: 0; translate: none; border-radius: 0; padding: 0; width: 100%; height: 100%; display: grid; place-content: center; justify-items: center; gap: 16px; text-align: center; font-size: 13px; line-height: 1.3; background: radial-gradient(90% 60% at 50% 20%, rgba(25, 200, 166, .45), transparent 70%), linear-gradient(160deg, #10201e, #0a0d10 70%); -webkit-backdrop-filter: none; backdrop-filter: none; transition: filter .4s ease; }
.phone__screen .yt-link--card:hover { filter: brightness(1.25); }
.yt-link__play { width: 54px; height: 54px; border-radius: 50%; background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .6); position: relative; }
.yt-link__play::after { content: ""; position: absolute; left: 21px; top: 16px; border-left: 17px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent; }

/* round 36: quick, clean card flip; phone plays a video file when one is present */
.fc__in { transition: transform .32s cubic-bezier(.25, .8, .3, 1); animation: none; will-change: transform; }
.fc:hover .fc__in { transform: none; }
.fc.is-flipped .fc__in, .fc.is-flipped:hover .fc__in { transform: rotateY(180deg); }
.fc__face { backface-visibility: hidden; -webkit-backface-visibility: hidden; transform: translateZ(0); }
.fc__back { transform: rotateY(180deg) translateZ(0); }
.fc:active .fc__in { transition-duration: .18s; }
.phone__screen .al-clip { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 3; background: #000; }
.phone__screen .al-clip.is-missing { display: none; }
@media (prefers-reduced-motion: reduce) { .fc__in { transition: none; } }

/* round 39: year dividers on the DeFi Night page */
.yr { display: flex; align-items: baseline; gap: 1.2rem; padding-top: clamp(3rem, 8vw, 6rem); padding-bottom: .5rem; border-top: 1px solid var(--line, currentColor); margin-top: clamp(2rem, 5vw, 4rem); }
.yr__n { font-size: clamp(3.4rem, 11vw, 9rem); line-height: .9; letter-spacing: -.04em; font-weight: 500; }
.yr__t { font-size: .95rem; opacity: .6; }

/* round 42: name as a wordmark, in capitals */
.nav__name { font-family: var(--sans); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: 15px; line-height: 1; white-space: nowrap; }

/* round 44: headlines are masked line by line for the entrance, so give the mask room for descenders (y, g, commas) and italic overhang */
.lines .line { padding: .04em .1em .2em 0; margin: -.04em -.1em -.2em 0; }
.cta__line { padding-bottom: .12em; }

/* round 53: on phones the three big "Selected work" cards repeat the project list right below, so they are hidden there (desktop keeps them) */
@media (max-width: 760px) { .featlabel, .featured { display: none; } }

/* round 54: current page in the menu */
.smenu a[aria-current] { color: var(--muted); }
.smenu nav a[aria-current]:hover { color: var(--ink); }

/* round 55: on phones the menu list starts just under the header instead of sitting at the bottom of the screen */
@media (max-width: 760px) { .smenu { align-items: flex-start; padding-top: clamp(96px, 20vw, 130px); } }

/* round 56: one text face. Body text, blurbs and small headings use the sans; the serif is kept for large display headlines and their italic accents. */
.body-serif, .row__more > span, .about__bio, .svc-how__intro p, .ux__notes h3 { font-family: var(--sans); line-height: 1.4; letter-spacing: -0.005em; }
.ux__notes h3 { font-weight: 500; }

/* round 57: bomber jacket hovers gently like the other merchandise (no big zoom) */
.merch3 > .merch3__patch:hover img, .merch3__patch:focus img { transform: scale(1.05); }
/* Rialto: on phones show one Dig Pyjama card, then the RRQ King Pass */
@media (max-width: 760px) { .rcols__row .rasset:nth-child(2) { display: none; } }
/* iPhone mock-ups: the corners are a share of the phone's own size, so every phone keeps the same shape at any width */
.phone { border-radius: 19% / 8.9%; }
.phone__screen { border-radius: 16.5% / 7.4%; }
/* next project block: name, then a way back to the full list */
.next__text { display: block; }
.next__main { display: block; color: inherit; }
.next__back { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; font-size: 15px; color: var(--muted); transition: color .3s ease; }
.next__back span { display: inline-block; transition: transform .4s var(--ease); }
.next__back:hover { color: var(--ink); } .next__back:hover span { transform: translateX(-5px); }
#all-work { scroll-margin-top: 90px; }

/* round 58: Orbs "try it" block, notes and swap card sit close together instead of far apart */
@media (min-width: 761px) {
  .ux:has(> .sw) { display: flex; justify-content: center; align-items: center; gap: clamp(40px, 6vw, 96px); }
  .ux:has(> .sw) .ux__notes { flex: 0 1 440px; }
  .ux:has(> .sw) .sw { flex: 0 0 390px; width: 390px; }
}

/* round 59: numbered notes draw their own numbers, so the gap between the number and the text is the same on every browser and phone */
.ux__notes ol { list-style: none; counter-reset: uxn; padding-left: 0; }
.ux__notes ol > li { position: relative; padding-left: 24px; counter-increment: uxn; }
.ux__notes ol > li::before { content: counter(uxn) "."; position: absolute; left: 0; top: 0; font-variant-numeric: tabular-nums; }

/* round 59: Services, What I do: the one-line explanations are always shown, not only on hover or tap */
.svc-does__more { grid-template-rows: 1fr; }
.svc-does__more > span { opacity: 1; padding-top: 12px; }

/* round 59b: the light "try it" panels stay light in dark mode, so their text keeps dark colours (the heading and bold lead-ins were turning white and vanishing) */
.ux:not(.ux--dark) { --ink: #141414; --muted: #8a8882; color: #141414; }

/* round 60: Services, What I do: plain always-visible sentences (no height animation, so Safari on iPhone cannot clip them) */
.svc-does__more { display: block; grid-template-rows: none; transition: none; }
.svc-does__more > span { display: block; overflow: visible; min-height: 0; height: auto; opacity: 1; padding-top: 12px; transition: none; }
