/* ───────────── Tokens ───────────── */
:root {
  --bg: #fbfbfa;
  --surface: #ffffff;
  --sunken: #f2f2f0;
  --text: #141414;
  --text-2: #5f5f5c;
  --text-3: #9a9a96;
  --line: rgba(20, 20, 20, 0.08);
  --line-strong: rgba(20, 20, 20, 0.14);
  /* the smooothslice brand: purple → red → soft pink */
  --accent: #f23a4f;
  --brand-grad: linear-gradient(120deg, #c45fc0 0%, #ee3f62 34%, #ff2f45 62%, #ff5a5f 100%);
  --booked: #ff6a1a;           /* the availability badge keeps its orange */
  --live: #2fb35d;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px -12px rgba(0,0,0,.12);
  --radius: 14px;
  --radius-sm: 10px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.4, .5, 1);
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --logo-filter: none;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c0c0c; --surface: #161616; --sunken: #1b1b1b;
    --text: #f2f2f0; --text-2: #a3a3a0; --text-3: #6b6b68;
    --line: rgba(255,255,255,.08); --line-strong: rgba(255,255,255,.14);
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 32px -12px rgba(0,0,0,.6);
    --logo-filter: invert(1);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c0c0c; --surface: #161616; --sunken: #1b1b1b;
  --text: #f2f2f0; --text-2: #a3a3a0; --text-3: #6b6b68;
  --line: rgba(255,255,255,.08); --line-strong: rgba(255,255,255,.14);
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 32px -12px rgba(0,0,0,.6);
  --logo-filter: invert(1);
  color-scheme: dark;
}

/* ───────────── Base ───────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-rendering: optimizeLegibility; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 15px/1.6 var(--sans);
  font-feature-settings: "cv11", "ss01", "ss03";
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
::selection { background: color-mix(in srgb, #f2304a 90%, #c45fc0); color: #fff; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.mono { font-family: var(--mono); font-size: 11.5px; letter-spacing: .01em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ───────────── Layout ───────────── */
.shell {
  display: grid; grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  max-width: 1320px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 40px);
}
.side {
  position: sticky; top: 0; height: 100svh;
  display: flex; flex-direction: column; padding: 32px 24px 28px; margin: 0 -24px; /* room so pulses, tooltips and magnets aren't clipped */
  overflow-y: auto; scrollbar-width: none; min-width: 0;
}
.side::-webkit-scrollbar { display: none; }
.main { padding: 32px 0 40px; min-width: 0; }

@media (max-width: 880px) {
  .shell { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .side { position: static; height: auto; padding: 24px 0 8px; margin: 0; overflow: visible; }
  .main { padding-top: 24px; }
}

/* ───────────── Sidebar ───────────── */
.brand { display: flex; align-items: center; justify-content: space-between; }
/* the logo is inline SVG in the text colour. On hover it does what the intro does:
   more o's slide out from behind the last one and the "th" makes room; it all settles back on leave. */
.brand-mark { display: block; height: 38px; width: auto; aspect-ratio: 3035 / 1414; overflow: visible; fill: currentColor; }
.brand-mark .bm-th, .brand-mark .bm-o { transition: transform .62s cubic-bezier(.32, .72, 0, 1), opacity .3s var(--ease); }
.brand-mark .bm-o { opacity: 0; transition-delay: calc((3 - var(--k)) * 25ms); }
.brand a:hover .bm-th, .brand a:focus-visible .bm-th { transform: translateX(1372.665px); transition-timing-function: cubic-bezier(.3, 1.25, .45, 1); }
.brand a:hover .bm-o, .brand a:focus-visible .bm-o { opacity: 1; transform: translateX(calc(var(--k) * 457.555px));
  transition-timing-function: cubic-bezier(.3, 1.25, .45, 1), var(--ease); transition-delay: calc((var(--k) - 1) * 25ms); }

.icon-btn {
  width: 34px; height: 34px; border-radius: 999px; display: grid; place-items: center;
  color: var(--text-2); border: 1px solid var(--line);
  transition: color .2s, border-color .2s, transform .3s var(--ease-spring), background-color .2s;
}
.icon-btn:hover { color: var(--text); border-color: var(--line-strong); background: var(--surface); }
.icon-btn:active { transform: scale(.92); }
.icon-btn svg { width: 16px; height: 16px; }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: none; }
}

.intro { margin: auto 0; padding: 48px 0 8px; } /* vertically centred in the sidebar */
@media (max-width: 880px) { .intro { padding-top: 40px; } }

.name {
  font-size: clamp(40px, 4.4vw, 54px); font-weight: 500; letter-spacing: -0.045em; line-height: 1;
  margin: 0 0 14px; position: relative; display: inline-block;
}
.name .ch { display: inline-block; opacity: 0; transform: translateY(.35em); filter: blur(6px);
  animation: rise .9s var(--ease) forwards; animation-delay: calc(var(--i) * 35ms + 80ms); }
.name .sp { width: .22em; }

.role { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; margin: 0 0 18px; }
.role { transition: margin-bottom .55s cubic-bezier(.32, .72, 0, 1); } /* same long, soft settle as the work cards */
/* Make room for the Dragonfruit pop-up: the bio steps down, then settles back */
.role:has(.tip:hover, .tip:focus-visible) { margin-bottom: 52px; }
.role .at { color: var(--text-2); font-weight: 400; }
.role a { border-bottom: 1px solid var(--line-strong); transition: border-color .2s; }
.role a:hover { border-color: #e8432a; }
/* Little credential that floats up over the Dragonfruit link */
.tip { position: relative; }
.tip::after {
  content: attr(data-tip); position: absolute; left: 50%; top: calc(100% + 10px); z-index: 5;
  transform: translate(-50%, -6px) scale(.96); transform-origin: 50% 0; opacity: 0; pointer-events: none; white-space: nowrap;
  font: 500 11.5px/1 var(--sans); letter-spacing: -0.005em; padding: 7px 10px; border-radius: 8px;
  background: var(--text); color: var(--bg); box-shadow: 0 8px 24px -10px rgba(0,0,0,.4);
  transition: opacity .14s var(--ease), transform .3s var(--ease-spring);
}
.tip:hover::after, .tip:focus-visible::after { opacity: 1; transform: translate(-50%, 0) scale(1); }
.star {
  display: inline-grid; place-items: center; width: 18px; height: 18px; color: var(--accent);
  background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  cursor: pointer; user-select: none; transition: transform .6s var(--ease-spring);
  font-size: 14px; line-height: 1;
}
.star:hover { transform: rotate(36deg); }

.bio { color: var(--text-2); margin: 0 0 22px; max-width: 36ch; text-wrap: pretty; }

/* Status: availability badge on its own, time info as a quieter line below */
.status { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 24px; color: var(--text-2); }
.status { --dot: var(--live); }
.status.booked { --dot: var(--booked); }
.badge {
  display: inline-flex; align-items: center; gap: 9px; height: 28px; padding: 0 12px 0 11px; border-radius: 999px;
  font-size: 12.5px; font-weight: 500; color: var(--text);
  background: color-mix(in srgb, var(--dot) 8%, var(--surface));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--dot) 22%, transparent);
}
.dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--dot); position: relative; flex: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--dot) 18%, transparent), 0 0 10px 1px color-mix(in srgb, var(--dot) 70%, transparent);
}
.dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; background: var(--dot); opacity: .35; animation: pulse 2.4s var(--ease) infinite; }
/* Hover: the line rolls up like a slot to an invitation, the pill eases to fit, the dot settles */
.badge { transition: background-color .4s var(--ease), box-shadow .4s var(--ease); }
.badge:hover, .badge:focus-visible { background: color-mix(in srgb, var(--dot) 13%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--dot) 36%, transparent); }
.roll { display: grid; overflow: hidden; width: var(--w-a, auto); height: 18px; line-height: 18px;
  transition: width .55s cubic-bezier(.32, .72, 0, 1); }
.roll > * { grid-area: 1 / 1; justify-self: start; white-space: nowrap; transition: transform .55s cubic-bezier(.32, .72, 0, 1), opacity .35s var(--ease); }
.status-alt { transform: translateY(100%); opacity: 0; }
.status-alt .arr { display: inline-block; transition: transform .45s var(--ease-spring) .1s; }
.badge:hover .roll, .badge:focus-visible .roll { width: var(--w-b, auto); }
.badge:hover .status-text, .badge:focus-visible .status-text { transform: translateY(-100%); opacity: 0; }
.badge:hover .status-alt, .badge:focus-visible .status-alt { transform: none; opacity: 1; }
.badge:hover .status-alt .arr, .badge:focus-visible .status-alt .arr { transform: translateX(2px); }
.dot::after { transition: opacity .4s var(--ease); }
.badge:hover .dot::after { animation: none; opacity: 0; }
/* booked: on hover the badge warms from its orange into the smooothslice gradient — a soft wash,
   a gradient ring, the dot and the invitation all pick it up */
.status.booked .badge { position: relative; isolation: isolate; }
.status.booked .badge::before, .status.booked .badge::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none;
  background: var(--brand-grad); opacity: 0; transition: opacity .45s var(--ease);
}
.status.booked .badge::after {
  padding: 1px; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.status.booked .badge:hover, .status.booked .badge:focus-visible { background: var(--surface); box-shadow: none; }
.status.booked .badge:hover::before, .status.booked .badge:focus-visible::before { opacity: .1; }
.status.booked .badge:hover::after, .status.booked .badge:focus-visible::after { opacity: .75; }
.status.booked .dot { background-image: var(--brand-grad); background-size: 0 0; background-repeat: no-repeat; transition: box-shadow .45s var(--ease); }
.status.booked .badge:hover .dot, .status.booked .badge:focus-visible .dot {
  background-size: 100% 100%;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent), 0 0 10px 1px color-mix(in srgb, var(--accent) 70%, transparent);
}
.status.booked .status-alt { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.status.booked .status-alt .arr { -webkit-text-fill-color: var(--accent); }
.clock-line { font-family: var(--mono); font-size: 11.5px; letter-spacing: .01em; padding-left: 2px; }
.clock-colon { animation: blink 1s steps(1) infinite; }
.tz-rel { color: var(--text-3); }

.socials { display: flex; gap: 8px; margin-bottom: 28px; }
.socials a { position: relative; }
.socials a::after {
  content: attr(data-label); position: absolute; left: 50%; bottom: calc(100% + 8px);
  transform: translate(-50%, 4px); opacity: 0; pointer-events: none; white-space: nowrap;
  font: 500 11px/1 var(--sans); padding: 6px 8px; border-radius: 7px;
  background: var(--text); color: var(--bg); transition: opacity .18s, transform .25s var(--ease);
}
.socials a:hover::after, .socials a:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
.socials a:first-child::after { left: 0; transform: translate(0, 4px); } /* first label opens rightward, never past the edge */
.socials a:first-child:hover::after, .socials a:first-child:focus-visible::after { transform: none; }

.cta { border-top: 1px solid var(--line); padding-top: 22px; margin-bottom: 26px; }
.cta h2 { font-size: 15px; font-weight: 500; margin: 0 0 2px; letter-spacing: -0.01em; }
.cta p { margin: 0 0 14px; color: var(--text-2); }
.btns { display: flex; gap: 8px; flex-wrap: wrap; }
.btn {
  height: 38px; padding: 0 16px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px;
  font-weight: 500; font-size: 14px; border: 1px solid var(--line-strong); background: var(--surface);
  transition: transform .3s var(--ease-spring), background-color .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { border-color: var(--text-3); box-shadow: var(--shadow); }
.btn:active { transform: scale(.96); }
.btn.primary { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn.primary:hover { box-shadow: 0 8px 20px -8px rgba(0,0,0,.45); }
.btn svg { width: 15px; height: 15px; }
.copy-btn .swap { position: relative; display: inline-grid; }
.copy-btn .swap > * { grid-area: 1 / 1; transition: opacity .2s, transform .35s var(--ease-spring); }
.copy-btn .done { opacity: 0; transform: scale(.6); }
.copy-btn.copied .idle { opacity: 0; transform: scale(.6); }
.copy-btn.copied .done { opacity: 1; transform: none; }
.copy-label { display: inline-grid; overflow: hidden; width: var(--w-a, auto); height: 1.3em; line-height: 1.3em; vertical-align: middle;
  transition: width .55s cubic-bezier(.32, .72, 0, 1); }
.copy-label > * { grid-area: 1 / 1; justify-self: start; white-space: nowrap; transition: transform .55s cubic-bezier(.32, .72, 0, 1), opacity .35s var(--ease); }
.copy-label .cl-b { transform: translateY(100%); opacity: 0; }
.copy-btn.copied .copy-label { width: var(--w-b, auto); }
.copy-btn.copied .cl-a { transform: translateY(-100%); opacity: 0; }
.copy-btn.copied .cl-b { transform: none; opacity: 1; }

.trusted .label { color: var(--text-3); margin-bottom: 12px; }
.logos { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px 18px; max-width: 360px; }
/* Logos are alpha masks painted in currentColor, so they sit in the type colour in both themes */
.logo {
  display: inline-grid; place-items: center; padding: 8px 10px; margin: -8px -10px; border-radius: 999px;
  color: var(--text); opacity: .45;
  transition: opacity .3s var(--ease), color .35s var(--ease), transform .5s var(--ease-spring);
}
.logo i { display: block; width: var(--w); height: var(--h); background: currentColor;
  -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat; }
.logo:hover { opacity: .9; }
/* Brand moments: each lights up in the colour of its own world */
.logo.dfm:hover { opacity: 1; color: #e8432a; transform: translateY(-1px); }
.logo.yaas:hover { opacity: 1; color: #f9d84a; transform: translateY(-1px); }
.logo.unchained:hover { opacity: 1; color: #6e63f0; transform: translateY(-1px); }

.side-foot { margin-top: 28px; color: var(--text-3); display: flex; justify-content: space-between; gap: 12px; }

/* ───────────── Segmented control ───────────── */
.tabs-wrap { position: sticky; top: 16px; z-index: 5; display: flex; justify-content: center; margin-bottom: 20px; pointer-events: none; }
.tabs {
  pointer-events: auto; position: relative; display: inline-flex; padding: 4px; border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 72%, transparent); border: 1px solid var(--line);
  backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px);
  box-shadow: 0 6px 24px -14px rgba(0,0,0,.25);
}
.tabs a {
  position: relative; z-index: 1; padding: 7px 16px; font-size: 13.5px; font-weight: 500; color: var(--text-2);
  border-radius: 999px; transition: color .25s;
}
.tabs a[aria-current="page"] { color: var(--text); }
.tabs a .count { font: 500 10.5px var(--mono); color: var(--text-3); margin-left: 4px; }
.tabs .pill {
  position: absolute; top: 4px; bottom: 4px; left: 0; border-radius: 999px; background: var(--surface);
  box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 0 0 1px var(--line);
  transition: transform .45s var(--ease-spring), width .45s var(--ease-spring);
}

/* ───────────── Grid ───────────── */
.grid { --cols: 3; --gap: 10px; --bleed: 8px; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: var(--gap); }
.tile {
  position: relative; min-width: 0;
  opacity: 0; transform: translateY(14px) scale(.985);
  animation: rise .8s var(--ease) forwards; animation-delay: calc(var(--i) * 45ms);
}
.tile.wide { grid-column: 1 / -1; }
.tile-media {
  position: relative; overflow: hidden; border-radius: var(--radius); background: var(--sunken); isolation: isolate;
}
.tile.tall .tile-media { aspect-ratio: 9 / 16; }
.tile.card .tile-media { aspect-ratio: 4 / 5; }
.tile.wide .tile-media { aspect-ratio: 16 / 9; }
.tile-media::after { /* hairline for crispness */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px var(--line); z-index: 6;
}
.tile-hit { position: absolute; inset: 0; z-index: 4; cursor: pointer; border-radius: inherit; }
.tile-hit:focus-visible { outline-offset: -3px; }
.tile img {
  width: 100%; height: 100%; object-fit: cover; opacity: 0;
  transition: opacity .6s var(--ease), transform 1.1s var(--ease), filter .6s var(--ease);
  transform: scale(1.04); filter: blur(8px);
}
.tile img.loaded { opacity: 1; transform: scale(1); filter: none; }
.tile:not(.expanded) .tile-media:hover img.loaded { transform: scale(1.035); }
.tile .shimmer {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, transparent 30%, color-mix(in srgb, var(--text) 5%, transparent) 50%, transparent 70%) var(--sunken);
  background-size: 250% 100%; animation: shimmer 1.6s linear infinite;
}
.tile .meta {
  position: absolute; inset: auto 0 0 0; z-index: 2; padding: 40px 14px 12px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; color: #fff; text-align: left;
  background: linear-gradient(transparent, rgba(0,0,0,.55));
  opacity: 0; transform: translateY(8px); transition: opacity .35s var(--ease), transform .45s var(--ease);
}
.tile-media:hover .meta, .tile-hit:focus-visible ~ .meta { opacity: 1; transform: none; }
.meta .t { font-size: 13.5px; font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; }
.meta .c { font-size: 12px; opacity: .72; }
.play {
  position: absolute; top: 50%; left: 50%; z-index: 2; width: 52px; height: 52px; margin: -26px 0 0 -26px;
  border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: rgba(20,20,20,.38); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
  transition: transform .45s var(--ease-spring), background-color .3s;
}
.play svg { width: 18px; height: 18px; margin-left: 2px; }
.tile-media:hover .play { transform: scale(1.1); background: rgba(20,20,20,.55); }
.tile.tall .play, .tile.card .play { width: 42px; height: 42px; margin: -21px 0 0 -21px; }
.tile.tall .play svg { width: 15px; height: 15px; }
.tile.tall .meta .t { font-size: 12.5px; }
.tile-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 5; background: #000; }

/* ── Expanded card: plays in place, details beside (shorts/stills) or below (landscape) ── */
/* The card bleeds out past the cell by --bleed, so the video inside keeps exactly the same size */
.tile.expanded {
  grid-column: 1 / -1; margin: calc(var(--bleed) * -1); padding: var(--bleed);
  border-radius: calc(var(--radius) + var(--bleed)); z-index: 1;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow .6s var(--ease);
}
.tile.expanded.settled { box-shadow: inset 0 0 0 1px var(--line), 0 1px 2px rgba(0,0,0,.04), 0 18px 40px -18px rgba(0,0,0,.18); }
.tile.expanded:not(.wide) {
  display: grid; align-items: stretch; gap: var(--gap);
  grid-template-columns: calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)) minmax(0, 1fr);
}
.play { transition: transform .45s var(--ease-spring), background-color .3s, opacity .3s var(--ease); }
.tile.expanded .play { opacity: 0; transform: scale(.7); }
.tile.expanded .meta { opacity: 0 !important; }
.tile.expanded .tile-hit { pointer-events: none; }
.tile-media iframe { opacity: 0; transition: opacity .6s var(--ease); }
.tile-media iframe.ready { opacity: 1; }

.tile-info { display: flex; flex-direction: column; min-width: 0; padding: 12px 12px 12px 18px; }
.tile.wide .tile-info { padding: 16px 10px 8px; }
.tile-info > * { animation: info-in .7s var(--ease) .16s both; }
.tile-info > :nth-child(2) { animation-delay: .22s; } .tile-info > :nth-child(3) { animation-delay: .28s; }
.tile-info > :nth-child(4) { animation-delay: .34s; } .tile-info > :nth-child(5) { animation-delay: .4s; }
.info-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.info-top .kicker { color: var(--text-3); }
.info-close { width: 30px; height: 30px; }
.tile-info h3 { font-size: clamp(20px, 2.3vw, 28px); font-weight: 500; letter-spacing: -0.035em; line-height: 1.12; margin: 0 0 10px; text-wrap: balance; }
.tile-info .note { color: var(--text-2); margin: 0 0 6px; max-width: 48ch; text-wrap: pretty; }
.tile-info dl { margin: 14px 0 22px; display: grid; }
.tile-info dl > div { display: grid; grid-template-columns: 76px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.tile-info dl > div:last-child { border-bottom: 1px solid var(--line); }
.tile-info dt { color: var(--text-3); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; padding-top: 3px; }
.tile-info dd { margin: 0; font-size: 14px; }
.info-link { margin-top: auto; align-self: flex-start; height: 34px; font-size: 13.5px; }
.info-link svg { width: 13px; height: 13px; }
/* landscape: details run horizontally under the video */
.tile.wide .tile-info dl { display: flex; flex-wrap: wrap; gap: 10px 36px; margin: 10px 0 18px; }
.tile.wide .tile-info dl > div { display: block; padding: 0; border: 0; }
.tile.wide .tile-info dt { padding: 0 0 2px; }
.tile.wide .info-link { margin-top: 0; }


.grid.leaving .tile { animation: fall .28s var(--ease) forwards; animation-delay: 0ms; }

@media (max-width: 560px) {
  .grid { --gap: 6px; --bleed: 6px; }
  .tile-media { border-radius: var(--radius-sm); }
  .grid.g3d { --cols: 2; }
  .tile .meta { display: none; }
  .tile.tall .play { width: 34px; height: 34px; margin: -17px 0 0 -17px; }

  .tile-info { padding: 6px 6px 6px 10px; }
  .info-top { margin-bottom: 10px; }
  .tile-info h3 { font-size: 18px; }
  .tile-info .note { font-size: 13.5px; }
  .tile-info dl > div { grid-template-columns: 1fr; gap: 0; padding: 7px 0; }
  .tile-info dd { font-size: 13px; }
  .info-link { white-space: nowrap; height: 32px; padding: 0 12px; font-size: 12.5px; }
}

.main-foot { margin-top: 40px; display: flex; justify-content: space-between; color: var(--text-3); gap: 12px; flex-wrap: wrap; }

/* ───────────── Custom cursor ───────────── */
html.has-cursor, html.has-cursor * { cursor: none !important; }
.cursor {
  position: fixed; left: 0; top: 0; z-index: 9999; width: 0; height: 0; pointer-events: none;
  mix-blend-mode: difference; opacity: 0; transition: opacity .35s var(--ease);
}
.cursor.on { opacity: 1; }
.cursor-circle {
  position: absolute; left: -32px; top: -32px; width: 64px; height: 64px; border-radius: 50%;
  background: #fff; transform: scale(.19); /* 64px circle drawn at ~12px stays crisp when it grows */
  transition: transform .55s cubic-bezier(.22, 1, .36, 1), scale .25s var(--ease), background-color .35s, box-shadow .35s, backdrop-filter .35s;
}
.cursor[data-state="link"] .cursor-circle { transform: scale(.5); }
.cursor[data-state="magnet"] .cursor-circle { transform: scale(.66); }
/* Dragonfruit link: the cursor snaps on with the same spring as its pop-up */
.cursor[data-state="tip"] .cursor-circle { transform: scale(.5); transition: transform .3s var(--ease-spring), scale .25s var(--ease); }
/* over work: a soft frosted lens instead of an inverted disc */
.cursor[data-state="media"] { mix-blend-mode: normal; }
.cursor[data-state="media"] .cursor-circle {
  transform: scale(1.05); background: rgba(255,255,255,.16);
  backdrop-filter: blur(6px) saturate(160%); -webkit-backdrop-filter: blur(6px) saturate(160%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.45);
}
.cursor.down .cursor-circle { scale: .82; }
/* magnetic elements move with the `translate` property, so their own hover/press transforms still work */
.icon-btn, .btn, .star, .brand a, .logo, .tip { will-change: translate; }

/* ───────────── Toast & sheet ───────────── */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 80; transform: translate(-50%, 20px); opacity: 0;
  padding: 10px 16px; border-radius: 999px; background: var(--text); color: var(--bg); font-size: 13.5px; font-weight: 500;
  box-shadow: 0 12px 30px -10px rgba(0,0,0,.4); pointer-events: none; white-space: nowrap;
  transition: opacity .25s, transform .45s var(--ease-spring);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }


/* ───────────── About ───────────── */
.about { max-width: 640px; margin: 0 auto; padding: 32px clamp(16px, 4vw, 24px) 64px; }
.about-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 56px; }
.about h1 { font-size: clamp(36px, 6vw, 48px); font-weight: 500; letter-spacing: -0.045em; line-height: 1; margin: 0 0 8px; }
.about .lede { color: var(--text-2); margin: 0 0 28px; }
.portrait { border-radius: 18px; overflow: hidden; margin: 28px 0 36px; background: var(--sunken); position: relative; aspect-ratio: 3/2; }
.portrait img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.portrait:hover img { transform: scale(1.02); }
.prose p { margin: 0 0 18px; color: var(--text-2); font-size: 16px; line-height: 1.7; text-wrap: pretty; }
.prose p strong { color: var(--text); font-weight: 500; }
.section { margin-top: 56px; }
.section h2 { font-size: 13px; font-weight: 500; color: var(--text-3); margin: 0 0 14px; font-family: var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.xp { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.xp li { display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.xp .logo { width: 40px; height: 40px; border-radius: 10px; background: var(--sunken); display: grid; place-items: center; font: 600 13px var(--sans); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.xp .logo img { width: 100%; height: 100%; object-fit: cover; }
.xp .r { font-weight: 500; font-size: 15px; } .xp .o { color: var(--text-2); font-size: 14px; }
.xp .d { color: var(--text-3); text-align: right; }
.xp .now { color: var(--live); }
.stack { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stack .tool {
  display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
  font-size: 13.5px; font-weight: 500; transition: transform .35s var(--ease-spring), box-shadow .25s;
}
.stack .tool:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stack img { width: 26px; height: 26px; border-radius: 7px; }
@media (max-width: 560px) { .stack { grid-template-columns: repeat(2, 1fr); } .xp li { grid-template-columns: 36px 1fr; } .xp .d { grid-column: 2; text-align: left; margin-top: -10px; } }
.about-cta { margin-top: 56px; padding: 28px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.about-cta h2 { font-size: 20px; font-weight: 500; letter-spacing: -0.02em; margin: 0 0 4px; color: var(--text); text-transform: none; font-family: var(--sans); }
.about-cta p { margin: 0 0 16px; color: var(--text-2); }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ───────────── Fade-in for sidebar ───────────── */
.fade { opacity: 0; transform: translateY(10px); animation: rise .9s var(--ease) forwards; animation-delay: var(--d, 0ms); }

/* ───────────── Easter egg: the 12 principles, on one asterisk ───────────── */
.role { position: relative; }
.star.p1 { animation: squash .7s var(--ease) both; }
.star.p2 { animation: anticipate .8s var(--ease) both; }
.star.p3 { animation: slowinout 1s cubic-bezier(.65,0,.35,1) both; }
.star.p4 { animation: arc .9s cubic-bezier(.45,0,.55,1) both; }
.star.p5 { animation: followthrough 1s var(--ease) both; }
.star.p6 { animation: exaggerate .9s var(--ease-spring) both; }
.principle {
  position: absolute; top: calc(100% + 1px); white-space: nowrap; pointer-events: none;
  color: var(--text-3); opacity: 0; transform: translateY(-3px);
  transition: opacity .3s var(--ease), transform .4s var(--ease);
}
.principle.show { opacity: 1; transform: none; }
.principle b { font-weight: 500; background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Easter egg: slow motion (double-click the logo) */


/* ───────────── Page transitions ─────────────
   Chrome & Safari 18.2+: pages glide into each other; shared pieces (socials, theme button) travel. */
@view-transition { navigation: auto; types: page; }
.socials { view-transition-name: socials; }
.theme-toggle { view-transition-name: theme; }
html:active-view-transition-type(page)::view-transition-old(root) { animation: vt-out .32s var(--ease) both; }
html:active-view-transition-type(page)::view-transition-new(root) { animation: vt-in .55s var(--ease) both; }
html:active-view-transition-type(page)::view-transition-group(*) { animation-duration: .55s; animation-timing-function: var(--ease); }
/* arriving via a transition: skip the intro fade so shared pieces don't flicker */
html.vt .fade, html.vt .name .ch { animation: none; opacity: 1; transform: none; filter: none; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px) scale(.99); filter: blur(4px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); filter: blur(4px); } }

/* ───────────── Keyframes ───────────── */
@keyframes rise { to { opacity: 1; transform: none; filter: none; } }
@keyframes fall { to { opacity: 0; transform: translateY(-8px) scale(.985); } }
@keyframes pulse { 0% { transform: scale(.6); opacity: .5; } 70%, 100% { transform: scale(1.8); opacity: 0; } }
@keyframes blink { 50% { opacity: .25; } }
@keyframes info-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes shimmer { to { background-position: -150% 0; } }

@keyframes squash { 20% { transform: scale(1.5,.55) translateY(4px); } 45% { transform: scale(.7,1.45) translateY(-12px); } 70% { transform: scale(1.2,.85); } 85% { transform: scale(.95,1.05); } }
@keyframes anticipate { 30% { transform: translateX(-5px) scale(.85) rotate(-25deg); } 75% { transform: translateX(3px) rotate(380deg); } 100% { transform: rotate(360deg); } }
@keyframes slowinout { 50% { transform: translateX(28px) rotate(180deg); } }
@keyframes arc { 25% { transform: translate(10px,-14px); } 50% { transform: translate(24px,-4px); } 75% { transform: translate(10px,-14px); } }
@keyframes followthrough { 45% { transform: rotate(400deg); } 65% { transform: rotate(345deg); } 82% { transform: rotate(366deg); } 100% { transform: rotate(360deg); } }
@keyframes exaggerate { 35% { transform: scale(2.6) rotate(90deg); } 60% { transform: scale(.8) rotate(160deg); } 100% { transform: rotate(180deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
}

/* ───────────── Intro: smooooo…th ─────────────
   The logo's own letters slide up one by one inside one long eased move, which carries
   straight on into a horizontal push: the word out to the left, the site in from the right. */
html.preload { overflow: hidden; scrollbar-gutter: stable; } /* no layout jump when the scrollbar returns */
html.preload .shell, html.preload .shell * { animation-play-state: paused !important; }
html:has(.loader) { overflow: hidden; scrollbar-gutter: stable; }
html.preload .shell { visibility: hidden; } /* the site waits off-stage; the background is the page itself */
.loader { position: fixed; inset: 0; z-index: 10000; pointer-events: none; }
.ld-logo { display: block; width: 100%; height: 100%; fill: var(--text); }

/* ───────────── Footer: the whole page width; bars rise as you arrive and stretch elastically ───────────── */
.site-foot { position: relative; overflow: hidden; isolation: isolate; margin-top: clamp(24px, 4svh, 48px); height: var(--foot-h, auto); }
/* the bars live in a fixed-height band anchored to the bottom; the footer only opens up as far as you pull */
.glow-bars { position: absolute; left: 0; right: 0; bottom: 0; height: var(--glow-h, 520px); display: flex; align-items: flex-end; z-index: 0; pointer-events: none; }
/* the smooothslice brand gradient (purple → red → soft pink), laid across the whole footer so it runs
   continuously through every bar, fading out toward the top */
.glow-bars i {
  flex: 1; height: 100%; transform-origin: 50% 100%; transform: scaleY(0); will-change: transform;
  background: linear-gradient(45deg, #d77cc0 0%, #f0507e 30%, #ff3d5c 46%, #ff8494 68%, #ffd0d3 100%);
  opacity: .78;
  background-size: calc(var(--n, 13) * 100%) 100%;
  background-position: calc(var(--i, 0) / (var(--n, 13) - 1) * 100%) 0;
  -webkit-mask: linear-gradient(to top, #000 10%, rgba(0,0,0,.55) 45%, transparent 92%); mask: linear-gradient(to top, #000 10%, rgba(0,0,0,.55) 45%, transparent 92%);
}
/* the same glow, hanging from the top edge: a small reply when you try to scroll above the top */
.top-glow { position: fixed; z-index: 60; left: 0; right: 0; top: 0; height: 150px; display: flex; align-items: flex-start; pointer-events: none; }
.top-glow i {
  flex: 1; height: 100%; transform-origin: 50% 0; transform: scaleY(0); will-change: transform;
  background: linear-gradient(135deg, #d77cc0 0%, #f0507e 30%, #ff3d5c 46%, #ff8494 68%, #ffd0d3 100%);
  opacity: .6;
  background-size: calc(var(--n, 13) * 100%) 100%;
  background-position: calc(var(--i, 0) / (var(--n, 13) - 1) * 100%) 0;
  -webkit-mask: linear-gradient(to bottom, #000 5%, rgba(0,0,0,.45) 45%, transparent 95%); mask: linear-gradient(to bottom, #000 5%, rgba(0,0,0,.45) 45%, transparent 95%);
}
/* the CTA sits under the page, pinned just above the meta line: pulling lifts the page off it */
.sf-inner { position: absolute; z-index: 1; left: 0; right: 0; bottom: calc(var(--meta-h, 52px) + clamp(48px, 9svh, 96px)); text-align: center; padding: 0 20px; will-change: transform, opacity; }
.sf-title { margin: 0 0 12px; font-size: clamp(26px, 3.2vw, 40px); font-weight: 500; letter-spacing: -0.04em; line-height: 1.08; }
.sf-title .ch, .sf-ride { display: inline-block; will-change: transform; }
.sf-title .w { display: inline-block; white-space: nowrap; }
.sf-line { margin: 0; display: flex; justify-content: center; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; }
.sf-kicker { color: var(--text-2); font-size: 15px; letter-spacing: -0.01em; }
.sf-mail { display: inline-flex; gap: .4em; align-items: baseline; color: var(--text-2); font-size: 15px; transition: color .2s; }
.sf-mail:hover, .sf-mail:focus-visible { color: var(--text); }
.sf-mail .arr { display: inline-block; transition: transform .45s var(--ease-spring); }
.sf-mail:hover .arr, .sf-mail:focus-visible .arr { transform: translateX(4px); }
.sf-meta {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 18px clamp(16px, 3vw, 40px);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: color-mix(in srgb, var(--text) 78%, transparent);
}
@media (max-width: 560px) { .sf-meta { justify-content: center; text-align: center; } }

/* small brand sparks: the ✱ marks carry the gradient */
.spark { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
