/* richardsondaniel.com, English site (redesign B, round 3). Our own code; behaviour modelled on astapable.com. */

@font-face {
  font-family: "General Sans";
  src: url("/fonts/GeneralSans-Variable.woff2") format("woff2");
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --page: #fbfbfb;
  --ink: #1c1c1c;
  --ink-2: #4a4a4a;
  --muted: #6e6e6e;
  --grey: #cdcdcd;
  --line: #e2e2e2;
  --chip: #eaeaea;
  --panel: #f1f1f0;
  --white: #fff;
  --live: #2fae6b;
  --g: 1.23em;                                  /* 16px at the base size */
  --main: cubic-bezier(.65, .01, .05, .99);     /* the site's default ease */
  --menu: cubic-bezier(.5, .5, 0, 1);
  --cur: cubic-bezier(.625, .05, 0, 1);
  --dock: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

/* Fluid root size: the whole layout is in em and scales with the window */
html { font-size: calc(100vw / 1244 * 13); -webkit-text-size-adjust: 100%; }
@media (max-width: 980px) { html { font-size: calc(100vw / 375 * 11); } }
@media (max-width: 480px) { html { font-size: calc(100vw / 375 * 16); } }

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0; background: var(--page); color: var(--ink);
  font-family: "General Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem; line-height: 1.45; font-weight: 400;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--ink); color: var(--page); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: .2em; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1em; top: -4em; z-index: 200; background: var(--ink); color: var(--page); padding: .7em 1em; border-radius: .3em; }
.skip:focus { top: 1em; }
.ico { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.u { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; text-decoration-color: var(--grey); }
.u:hover { text-decoration-color: var(--ink); }
.scr { display: inline-block; white-space: nowrap; }
.cmt { color: var(--grey); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  height: 2.75em; padding: 0 1.1em; border-radius: .3em; border: 1px solid transparent;
  font-size: 1em; font-weight: 500; white-space: nowrap;
  transition: background-color .25s var(--main), color .25s var(--main), border-color .25s var(--main);
}
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: #000; }
.btn--line { background: var(--page); color: var(--ink); border-color: var(--grey); }
.btn--line:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn--block { width: 100%; }
.icon-btn {
  display: inline-grid; place-items: center; width: 2.6em; height: 2.6em; border-radius: .3em;
  border: 1px solid var(--line); background: var(--page); color: var(--ink);
  transition: border-color .4s var(--main);
}
.icon-btn .ico { transition: transform .4s var(--main); }
.icon-btn:hover { border-color: var(--ink); }
.icon-btn:hover .ico { transform: scale(1.12); }
.pill { display: inline-flex; align-items: center; height: 2em; padding: 0 .7em; border-radius: .3em; background: var(--chip); font-size: .85em; color: var(--ink); }
.chip-link {
  display: inline-flex; align-items: center; gap: .35em; height: 2.2em; padding: 0 .75em; border-radius: .3em;
  border: 1px solid var(--line); background: var(--white); font-size: .9em; font-weight: 500;
  transition: border-color .25s, background-color .25s, color .25s;
}
.chip-link .ico { width: 1em; height: 1em; }
.chip-link:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.live { display: inline-block; width: .55em; height: .55em; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 rgba(47, 174, 107, .5); animation: live 2.4s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 .45em rgba(47, 174, 107, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 174, 107, 0); } }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 100; display: flex; align-items: center; justify-content: space-between; gap: 1em; padding: var(--g); pointer-events: none; }
.nav > * { pointer-events: auto; }
.nav__brand { display: inline-flex; align-items: center; gap: .9em; }
.nav__name { font-weight: 600; font-size: 1.25em; letter-spacing: -.02em; }
.nav__links { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: 2.4em; }
.nav__link { font-size: 1.1em; padding: .4em 0; }
.nav__right { display: flex; align-items: center; gap: .5em; }
.nav__div { width: 1px; height: 1.6em; background: var(--line); margin: 0 .6em; }
.nav__cta { height: 2.6em; }
.burger { display: none; width: 2.6em; height: 2.6em; border-radius: .3em; border: 1px solid var(--line); background: var(--page); position: relative; }
.burger span, .menu__x span { position: absolute; left: 30%; right: 30%; top: 50%; height: 1.5px; background: var(--ink); transition: transform .7s var(--menu); }
.burger span:first-child { transform: translateY(-.2em); }
.burger span:last-child { transform: translateY(.2em); }
@media (hover: hover) and (pointer: fine) {
  .burger:hover span:first-child { transform: translateY(.2em); }
  .burger:hover span:last-child { transform: translateY(-.2em); }
}
.menu, .menu__backdrop { display: none; }

@media (max-width: 980px) {
  .nav__links, .nav .icon-btn, .nav__div { display: none; }
  .nav__right > .icon-btn { display: none; }
  .burger { display: inline-block; }
  .menu__backdrop { display: block; position: fixed; inset: 0; background: var(--ink); opacity: 0; visibility: hidden; transition: all .7s var(--menu); z-index: 0; }
  .menu {
    display: flex; flex-direction: column; gap: 1.4em; position: fixed; top: var(--g); right: var(--g); z-index: 1;
    width: min(26em, calc(100vw - 2 * var(--g))); padding: 1.4em; border-radius: .5em; background: var(--page);
    box-shadow: 0 1.5em 3em -1.5em rgba(0, 0, 0, .35);
    transform-origin: top right; transform: scale(.15) rotate(.001deg); opacity: 0; visibility: hidden;
    transition: opacity .5s var(--menu), visibility .5s var(--menu), transform .7s var(--menu);
  }
  [data-nav-status="open"] .menu { transform: scale(1) rotate(.001deg); opacity: 1; visibility: visible; }
  [data-nav-status="open"] .menu__backdrop { opacity: .33; visibility: visible; }
  .menu__top { display: flex; align-items: center; justify-content: space-between; }
  .menu__label { font-size: .9em; color: var(--muted); }
  .menu__x { position: relative; width: 2.4em; height: 2.4em; }
  .menu__x span:first-child { transform: rotate(45deg); }
  .menu__x span:last-child { transform: rotate(-45deg); }
  .menu__list a { display: flex; align-items: center; justify-content: space-between; font-size: 2.4em; font-weight: 600; letter-spacing: -.03em; line-height: 1.15; }
  .menu__list a[aria-current] { opacity: .33; }
  .menu__list i { width: .22em; height: .22em; border-radius: 50%; background: var(--ink); transform: scale(0); transition: transform .7s var(--menu); }
  .menu__list a[aria-current] i { transform: scale(1); opacity: 1; }
  .menu__icons { display: flex; align-items: center; gap: .5em; padding-top: 1.2em; border-top: 1px solid var(--line); }
  .menu__icons .icon-btn { display: inline-grid; }
  .menu__ja { margin-left: auto; font-size: .95em; color: var(--muted); }
}

/* ---------- hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 34em; display: flex; flex-direction: column; justify-content: flex-end; padding: var(--g); }
.hero__stage { position: absolute; inset: 4.5em var(--g) 9em; display: grid; place-items: center; pointer-events: none; }
.hero__loop {
  height: 100%; width: auto; max-width: 100%; object-fit: contain;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 66%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 66%, transparent 100%);
}
.hero__text { position: relative; max-width: 30em; }
.h1 { font-size: 3em; font-weight: 600; letter-spacing: -.035em; line-height: 1; }
.hero__intro { margin-top: .7em; font-size: 1.35em; line-height: 1.35; font-weight: 400; color: var(--ink-2); max-width: 22em; }
@media (max-width: 760px) {
  .hero__stage { inset: 4.5em 0 12em; }
}

/* ---------- sections ---------- */
.section { padding: 7em var(--g) 2em; }
.sh { text-align: center; font-size: 2.5em; font-weight: 500; letter-spacing: -.03em; color: var(--grey); margin-bottom: 1.3em; }
.section__sub { text-align: center; color: var(--muted); font-size: 1.15em; margin: -1.6em 0 2.4em; }

/* ---------- placeholders and media slots ---------- */
.slot { position: relative; overflow: hidden; background: var(--panel); }
.slot__media { width: 100%; height: 100%; object-fit: cover; }
.r-16x9 { aspect-ratio: 16 / 9; }
.r-4x3 { aspect-ratio: 4 / 3; }
.r-1x1 { aspect-ratio: 1 / 1; }
.r-3x4 { aspect-ratio: 3 / 4; }
.r-auto { height: 100%; min-height: 10em; }
.slot--empty {
  display: grid; place-items: center; padding: 1em;
  background:
    linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%) -150% 0 / 200% 100% no-repeat,
    repeating-linear-gradient(135deg, var(--panel) 0 .8em, #ebebe9 .8em calc(.8em + 1px));
  animation: shimmer 4.5s var(--main) infinite;
}
@keyframes shimmer { 0%, 30% { background-position: -150% 0, 0 0; } 100% { background-position: 250% 0, 0 0; } }
.slot__tag {
  display: inline-flex; align-items: center; gap: .5em; max-width: 100%; padding: .55em .9em; border-radius: 999px;
  background: var(--white); border: 1px solid var(--line); color: var(--muted); font-size: .85em; line-height: 1.25; text-align: left;
}
.slot__tag .ico { width: 1.15em; height: 1.15em; color: var(--ink-2); }
.slot--round { border-radius: 50%; }
.slot--round.slot--empty .slot__tag { font-size: .75em; max-width: 80%; }
.tslot { display: grid; gap: .55em; padding: 1em; border: 1px dashed var(--grey); border-radius: .4em; }
.tslot__lines { display: grid; gap: .45em; }
.tslot__lines i { display: block; height: .55em; border-radius: .3em; background: var(--chip); }
.tslot__lines i:nth-child(2) { width: 88%; }
.tslot__lines i:nth-child(3) { width: 60%; }
.tslot__label { display: inline-flex; align-items: center; gap: .45em; color: var(--muted); font-size: .85em; }
.tslot__label .ico { width: 1.1em; height: 1.1em; }

/* ---------- featured work ---------- */
.work { display: grid; grid-template-columns: 1fr 1fr; gap: 3.2em .75em; }
.case-card { display: block; }
.case-card__cover { position: relative; }
.case-card__logo { position: absolute; left: .9em; bottom: .9em; width: 2.9em; height: 2.9em; border-radius: .6em; box-shadow: 0 .4em 1em -.4em rgba(0, 0, 0, .35); }
.tags { display: flex; flex-wrap: wrap; gap: .4em; margin-top: 1em; }
.tags li { height: 1.9em; display: inline-flex; align-items: center; padding: 0 .55em; border-radius: .25em; background: var(--chip); font-size: .85em; }
.case-card__title { margin-top: .6em; font-size: 1.55em; font-weight: 600; letter-spacing: -.03em; }
.case-card__text { margin-top: .25em; color: var(--ink-2); max-width: 32em; }
@media (max-width: 760px) { .work { grid-template-columns: 1fr; } }

/* ---------- cursor label ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 150; pointer-events: none; }
.cursor__pill {
  display: inline-flex; align-items: center; gap: .3em; height: 2.3em; padding: 0 .55em 0 .8em; margin: .9em 0 0 .9em;
  border-radius: .3em; background: var(--ink); color: var(--white); font-size: .95em; white-space: nowrap;
  opacity: 0; transform: translateX(0%) scale(.8) rotate(.001deg);
  transition: transform .4s var(--cur), opacity .2s ease .1s, margin .4s var(--cur);
}
.cursor__chev { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.cursor[data-cursor="active"] .cursor__pill { opacity: 1; transform: translateX(0%) scale(1) rotate(.001deg); transition: transform .4s var(--cur), opacity .2s ease 0s; }
.cursor[data-cursor="active-edge"] .cursor__pill { opacity: 1; margin-left: -.9em; transform: translateX(-100%) scale(1) rotate(.001deg); transition: transform .4s var(--cur), opacity .2s ease 0s, margin .4s var(--cur); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- live apps: astapable-style card in a frosted shelf ---------- */
.apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4em 1em; max-width: 84em; margin: 0 auto; }
.app { position: relative; height: 20.5em; width: 100%; max-width: 26em; margin: 0 auto; }
.app__card {
  position: absolute; left: 50%; top: 0; width: 15em; margin-left: -7.5em; z-index: 0;
  border-radius: 1.5em; overflow: hidden; background: var(--white); box-shadow: 0 .8em 1.6em -1.2em rgba(0, 0, 0, .25);
  will-change: transform;
}
.app__cover { position: relative; height: 10.4em; background: var(--app-c, #888); }
.app__cover::after { content: ""; position: absolute; left: 0; right: 0; top: 7.1em; bottom: -1em; background: var(--white); border-radius: 2.6em 2.6em 0 0; }
.app__tile { position: absolute; z-index: 1; width: 6.2em; height: 6.2em; object-fit: cover; border-radius: 1.2em; border: .3em solid var(--white); background: var(--white); box-shadow: 0 .5em 1.1em -.4em rgba(0, 0, 0, .35); transition: transform .5s var(--main); }
.app__tile--back { left: 2.6em; top: 1.9em; transform: rotate(6deg); }
.app__tile--front { left: 6.3em; top: 3.9em; transform: rotate(-6deg); }
.app:hover .app__tile--back { transform: rotate(3deg) translateY(-.2em); }
.app:hover .app__tile--front { transform: rotate(-9deg) translateY(-.3em); }
.app__body { position: relative; z-index: 1; padding: 0 1.25em 2.5em; margin-top: -.2em; background: var(--white); display: grid; gap: .5em; }
.app__title { font-size: 1.5em; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.app__text { color: var(--ink); font-size: .95em; line-height: 1.4; }
.app__shelf {
  position: absolute; left: 50%; bottom: 0; width: 18.75em; margin-left: -9.375em; height: 8em; z-index: 1;
  border-radius: 0 0 1.5em 1.5em; background: rgba(251, 251, 251, .2);
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, .6); border-top: 0;
  box-shadow: 0 1em 1.4em -1.2em rgba(0, 0, 0, .25), inset 0 -1px 0 rgba(0, 0, 0, .04);
}
.app__links { position: absolute; left: 1.2em; bottom: 1.2em; right: 4.4em; display: flex; flex-wrap: wrap; gap: .3em; opacity: 0; transform: translateY(.4em); transition: opacity .3s var(--main), transform .4s var(--main); }
.app__chip { display: inline-flex; align-items: center; height: 1.9em; padding: 0 .65em; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: .8em; font-weight: 500; transition: background-color .2s, color .2s; }
.app__chip:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.app:hover .app__links, .app:focus-within .app__links { opacity: 1; transform: none; }
.app__arrow { position: absolute; right: .9em; bottom: .9em; display: grid; place-items: center; width: 2.5em; height: 2.5em; border-radius: 50%; background: var(--white); color: var(--ink); box-shadow: 0 .3em .8em -.3em rgba(0, 0, 0, .3); transition: background-color .25s, color .25s; }
.app__arrow .ico { width: 1.1em; height: 1.1em; }
.app__arrow:hover { background: var(--ink); color: var(--white); }
@media (max-width: 991px) {
  .apps { grid-template-columns: 1fr; gap: 3em; }
  .app { height: auto; max-width: 20em; }
  .app__card { position: relative; left: auto; margin: 0 auto; }
  .app__shelf { position: relative; left: auto; width: 15em; margin: -.6em auto 0; height: auto; padding: 1em 3.6em 1em 1em; border-radius: 0 0 1.5em 1.5em; background: var(--white); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .app__links { position: static; opacity: 1; transform: none; }
}

/* ---------- services ---------- */
.svcs { max-width: 72em; margin: 0 auto; border-top: 1px solid var(--line); }
.svc { display: grid; grid-template-columns: 4em 1fr 1.4fr; gap: 1.2em 2em; padding: 2em 0; border-bottom: 1px solid var(--line); }
.svc__n { color: var(--grey); font-size: 1.2em; font-weight: 500; font-variant-numeric: tabular-nums; }
.svc__when { color: var(--muted); font-size: .9em; }
.svc__title { font-size: 1.8em; font-weight: 600; letter-spacing: -.035em; line-height: 1.05; margin-top: .2em; }
.svc__body { display: grid; gap: .7em; color: var(--ink-2); font-size: 1.05em; }
.svc__fit b { color: var(--ink); font-weight: 600; }
@media (max-width: 760px) { .svc { grid-template-columns: 1fr; gap: .6em; } .svc__n { display: none; } }

/* ---------- footer ---------- */
.footer { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; padding: 0 var(--g) var(--g); margin-top: 4em; }
.footer__cta { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2em; padding: 5em 0 3em; text-align: center; }
.cta { font-size: 4.6em; font-weight: 600; letter-spacing: -.045em; line-height: 1.02; display: flex; flex-direction: column; align-items: center; }
.cta__line { display: inline-flex; align-items: center; gap: .25em; }
.cta__arrow { width: .9em; height: .9em; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: square; }
.cta__word { display: inline-block; min-width: 4.6ch; text-align: left; white-space: nowrap; }
.footer__btns { display: flex; gap: .6em; justify-content: center; flex-wrap: wrap; }
.footer__bottom { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 1.5em; font-size: .95em; }
.footer__note { color: var(--muted); display: grid; gap: .3em; }
.footer__summary { text-align: center; display: grid; gap: .1em; }
.footer__summary p:first-child { font-weight: 600; }
.footer__status { display: inline-flex; align-items: center; justify-content: center; gap: .5em; margin-top: .6em; color: var(--ink-2); }
.clock { margin-top: .4em; font-weight: 600; font-variant-numeric: tabular-nums; }
.footer__right { display: flex; justify-content: flex-end; }
.sound { display: inline-flex; align-items: center; gap: .45em; height: 2.4em; padding: 0 .8em; border-radius: .3em; border: 1px solid var(--line); color: var(--ink-2); font-size: .9em; transition: border-color .25s; }
.sound:hover { border-color: var(--ink); }
.sound .ico { width: 1.15em; height: 1.15em; }
.sound__off, .sound[aria-pressed="false"] .sound__on { display: none; }
.sound[aria-pressed="false"] .sound__off { display: block; }
@media (max-width: 760px) {
  .cta { font-size: 2.6em; }
  .footer__bottom { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .footer__summary { order: -1; }
  .footer__note { text-align: center; }
}

/* ---------- case page ---------- */
.case { padding: 8em var(--g) 2em; }
.case__intro, .meta, .case__links, .cs, .case__next { max-width: 56em; margin-left: auto; margin-right: auto; }
.case__kicker { display: inline-flex; align-items: center; gap: .6em; color: var(--muted); }
.case__kicker .logo { width: 1.8em; height: 1.8em; border-radius: .4em; }
.case__statement { margin-top: .6em; font-size: 2.4em; font-weight: 600; letter-spacing: -.035em; line-height: 1.12; }
.case__hero { max-width: 56em; margin: 2.2em auto 0; }
.case__hero .slot, .cs .slot, .feat .slot { border-radius: .4em; }
.meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2em; margin-top: 1.6em; padding-top: 1.2em; border-top: 1px solid var(--line); font-size: .95em; }
.meta__k { color: var(--muted); margin-bottom: .35em; }
.case__links { display: flex; flex-wrap: wrap; gap: .4em; margin-top: 1.4em; }
.cs { margin-top: 5.5em; }
.case__h { font-size: 2em; font-weight: 600; letter-spacing: -.035em; line-height: 1.1; margin-bottom: .6em; }
.case__h--cmt { font-weight: 500; }
.cs__body { display: grid; gap: .8em; color: var(--ink-2); font-size: 1.1em; max-width: 40em; }
.cs--split { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5em; align-items: center; }
.cs--media { max-width: 56em; }
.feat { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5em; align-items: center; padding: 2.5em 0; border-top: 1px solid var(--line); }
.feat__t { font-size: 1.6em; font-weight: 600; letter-spacing: -.03em; }
.feat__c { font-size: 1.25em; font-weight: 500; margin: .1em 0 .7em; }
.case__next { margin-top: 6em; padding-top: 2em; border-top: 1px solid var(--line); }
.case__next a { display: inline-grid; gap: .2em; }
.case__next .cmt { font-size: 1.1em; }
.case__next-t { font-size: 2.6em; font-weight: 600; letter-spacing: -.04em; }
@media (max-width: 760px) {
  .case__statement { font-size: 1.8em; }
  .meta { grid-template-columns: 1fr 1fr; }
  .cs--split, .feat { grid-template-columns: 1fr; gap: 1.4em; }
}

/* ---------- about ---------- */
.about-top { display: grid; grid-template-columns: 1fr 1.25fr; gap: 3em; padding: 8em var(--g) 2em; max-width: 84em; margin: 0 auto; }
.slider { max-width: 22em; }
.slider__bar { position: relative; height: 2px; background: var(--line); overflow: hidden; }
.slider__progress { position: absolute; inset: 0; background: var(--ink); transform: translateX(-100%); }
.slider__ctrl { display: flex; align-items: center; gap: .4em; margin-top: 1em; }
.slider__count { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; }
.slider__slides { position: relative; margin-top: 2em; min-height: 26em; }
.slide { position: absolute; inset: 0 0 auto; visibility: hidden; }
.slide.is-active { visibility: visible; }
.slide__img { width: 13em; }
.slide__value { margin-top: 1em; font-size: 3em; font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.slide__cap { margin-top: .5em; color: var(--ink-2); max-width: 18em; }
.line-mask { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.about__statement { font-size: 2.5em; font-weight: 600; letter-spacing: -.035em; line-height: 1.1; max-width: 16em; }
.about__p { margin-top: 1.2em; color: var(--ink-2); font-size: 1.1em; max-width: 36em; }
.about__links { display: flex; gap: .5em; margin-top: 1.6em; flex-wrap: wrap; }
@media (max-width: 860px) { .about-top { grid-template-columns: 1fr; } .slider__slides { min-height: 24em; } }

/* toolkit dock */
.dock { display: flex; justify-content: center; align-items: flex-end; gap: .5em; height: 9em; }
.dock__item { position: relative; width: 5em; transition: width .5s var(--dock); }
.dock__tile { display: grid; place-items: center; aspect-ratio: 1; border-radius: 22%; background: var(--white); border: 1px solid var(--line); box-shadow: 0 .5em 1em -.6em rgba(0, 0, 0, .3); font-weight: 600; font-size: 1.2em; color: var(--ink); width: 100%; }
.dock__tip { position: absolute; left: 50%; top: 0; transform: translate(-50%, 0); opacity: 0; padding: .3em .6em; border-radius: .3em; background: var(--ink); color: var(--white); font-size: .85em; white-space: nowrap; pointer-events: none; transition: transform .5s var(--dock), opacity .5s var(--dock); }
@media (min-width: 993px) and (hover: hover) {
  .dock__item.is-far { width: 6em; }
  .dock__item.is-close { width: 7em; }
  .dock__item.is-hover { width: 8em; }
  .dock__item.is-hover .dock__tip { opacity: 1; transform: translate(-50%, -140%); }
}
@media (max-width: 992px) { .dock { flex-wrap: wrap; height: auto; } .dock__item { width: 4.2em; } }

/* experience timeline */
.tl { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3em; max-width: 84em; margin: 0 auto; align-items: start; }
.tl__chart { position: relative; padding-top: 2.4em; }
.tl__axis { position: absolute; inset: 0 0 auto; height: 1.6em; display: flex; justify-content: space-between; color: var(--muted); font-size: .85em; font-variant-numeric: tabular-nums; border-bottom: 1px solid var(--line); }
.tl__rows { display: grid; gap: .5em; padding-top: .8em; }
.tl__bar {
  position: relative; display: flex; align-items: center; height: 2.4em; min-width: 3em; border-radius: .3em; padding: 0 .7em; text-align: left;
  background: var(--chip); color: var(--ink); overflow: hidden; transition: opacity .35s var(--main), background-color .35s var(--main), color .35s var(--main);
}
.tl__label { position: relative; z-index: 1; font-size: .95em; white-space: nowrap; }
.tl__fill { position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--main); }
.tl.is-hovering .tl__bar { opacity: .35; }
.tl.is-hovering .tl__bar.is-on { opacity: 1; color: var(--white); }
.tl__bar.is-on .tl__fill { transform: scaleX(1); }
.tl__sweep { position: absolute; top: 0; bottom: 0; left: 0; width: 1px; background: var(--ink); pointer-events: none; }
.tl__year { position: absolute; top: -.2em; left: .4em; padding: .1em .4em; border-radius: .25em; background: var(--ink); color: var(--white); font-size: .8em; font-variant-numeric: tabular-nums; }
.tl__cards { position: relative; display: grid; }
.role { grid-area: 1 / 1; padding: 1.4em; border: 1px solid var(--line); border-radius: .5em; background: var(--white); opacity: 0; visibility: hidden; transform: translateY(.8em); transition: opacity .45s var(--main), transform .45s var(--main), visibility .45s; }
.role.is-on { opacity: 1; visibility: visible; transform: none; }
.role__when { color: var(--muted); font-size: .9em; }
.role__t { font-size: 1.4em; font-weight: 600; letter-spacing: -.03em; margin: .3em 0 .5em; }
.role p:not(.role__when) { color: var(--ink-2); }
.role__items { display: grid; gap: .7em; margin-top: .4em; }
.role__items b { display: block; font-weight: 600; }
.role__items span { color: var(--ink-2); font-size: .95em; }
@media (max-width: 860px) {
  .tl { grid-template-columns: 1fr; }
  .tl__cards { display: grid; gap: .8em; }
  .role { grid-area: auto; opacity: 1; visibility: visible; transform: none; }
}

/* records */
.recs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5em; max-width: 84em; margin: 0 auto; }
.rec__h { font-size: 1.1em; font-weight: 500; color: var(--muted); padding-bottom: .7em; border-bottom: 1px solid var(--ink); }
.rec__list li { display: grid; grid-template-columns: 3.4em 1fr; gap: .8em; padding: .85em 0; border-bottom: 1px solid var(--line); transition: padding-left .4s var(--main); }
.rec__list li:hover { padding-left: .4em; }
.rec__y { color: var(--muted); font-variant-numeric: tabular-nums; }
.rec__t { font-weight: 500; }
.rec__t small { display: block; font-size: .88em; color: var(--muted); font-weight: 400; margin-top: .15em; }
@media (max-width: 860px) { .recs { grid-template-columns: 1fr; } }

/* outside of work bento */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 13em; gap: .75em; max-width: 84em; margin: 0 auto; }
.bento__card { position: relative; display: flex; flex-direction: column; border-radius: .5em; background: var(--white); border: 1px solid var(--line); overflow: hidden; }
.bento__card--tall { grid-row: span 2; }
.bento__card--wide { grid-column: span 2; }
.bento__media { flex: 1; min-height: 0; }
.bento__text { padding: 1em; display: grid; gap: .35em; align-content: start; }
.bento__k { color: var(--muted); font-size: .85em; }
.bento__t { font-size: 1.25em; font-weight: 600; letter-spacing: -.02em; }
.bento__p { color: var(--ink-2); }
.bento .tslot { margin-top: .3em; }
.marquee { overflow: hidden; border-top: 1px solid var(--line); padding: .7em 0; white-space: nowrap; color: var(--grey); font-size: 1.8em; font-weight: 600; letter-spacing: -.03em; }
.marquee__list { display: inline-flex; animation: marquee 30s linear infinite; animation-play-state: paused; }
.marquee.is-live .marquee__list { animation-play-state: running; }
.marquee__list span { padding-right: 1.5em; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (max-width: 860px) { .bento { grid-template-columns: 1fr 1fr; } .bento__card--wide { grid-column: span 2; } }

/* ---------- 404 ---------- */
.nf { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 6em var(--g) 2em; }
.nf__card { width: min(24em, 100%); padding: 1.6em; border-radius: .6em; background: var(--white); border: 1px solid var(--line); text-align: center; display: grid; gap: .8em; justify-items: center; }
.nf__clay { width: 11em; border-radius: 50%; }
.nf__code { font-size: 4em; font-weight: 600; letter-spacing: -.05em; line-height: 1; }
.nf__text { color: var(--ink-2); }
.nf__btns { display: grid; gap: .5em; width: 100%; margin-top: .6em; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .slot--empty { animation: none; }
}
html.rm .slot--empty, html.rm .marquee__list, html.rm .live { animation: none !important; }

@media print { .nav, .cursor, .hero__stage, .footer__right { display: none !important; } }

/* ---------- round 3 fixes ---------- */
.tl__axis { display: block; }
.tl__axis span { position: absolute; top: 0; transform: translateX(-50%); }
.tl__bar.is-on { color: var(--white); }
.bento__card--wide:has(.bento__media) { flex-direction: row; }
.bento__card--wide .bento__media { flex: 1 1 50%; height: 100%; min-height: 0; }
.bento__card--wide .bento__text { flex: 1 1 50%; }
@media (max-width: 860px) { .bento__card--wide:has(.bento__media) { flex-direction: column; } .bento { grid-auto-rows: minmax(13em, auto); } }
@media (max-width: 560px) {
  .nav__cta { display: none; }
  .nav__name { white-space: nowrap; font-size: 1.1em; }
  .nav .pill { font-size: .75em; white-space: nowrap; }
  .hero__stage { inset: 4em 0 15em; }
  .h1 { font-size: 2.3em; }
  .hero__intro { font-size: 1.1em; }
  .sh { font-size: 1.7em; }
  .section { padding-top: 5em; }
}

/* ---------- round 5 ---------- */
/* header separation: a light blur that fades out downwards, only once scrolled */
.nav__veil {
  position: absolute; inset: 0 0 -1.6em; z-index: -1; pointer-events: none; opacity: 0;
  background: linear-gradient(rgba(251, 251, 251, .86) 55%, rgba(251, 251, 251, 0));
  -webkit-backdrop-filter: blur(.9em); backdrop-filter: blur(.9em);
  -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent);
  transition: opacity .35s var(--main);
}
.nav.is-scrolled .nav__veil { opacity: 1; }
.nav { isolation: isolate; }

/* global status pill */
.status {
  position: fixed; z-index: 90; right: var(--g); bottom: calc(var(--g) + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: .65em; height: 2.9em; padding: 0 1.1em; border-radius: .35em;
  background: var(--ink); color: var(--white); font-size: .95em; white-space: nowrap;
  box-shadow: 0 1em 2em -1.2em rgba(0, 0, 0, .55);
  transition: transform .5s var(--main), opacity .4s var(--main), background-color .25s;
}
.status:hover { background: #000; }
.status__sep { width: 1px; height: 1.2em; background: rgba(255, 255, 255, .25); }
.status time { font-variant-numeric: tabular-nums; color: #bdbdbd; }
.status.is-away { transform: translateY(160%); opacity: 0; pointer-events: none; }
@media (max-width: 560px) {
  .status { left: 50%; right: auto; transform: translateX(-50%); font-size: .85em; height: 2.7em; }
  .status.is-away { transform: translate(-50%, 160%); }
}

/* services sticky CTA */
.svc-cta { position: sticky; bottom: calc(var(--g) + 3.8em + env(safe-area-inset-bottom, 0px)); z-index: 5; display: flex; justify-content: center; margin-top: 2em; pointer-events: none; }
.svc-cta__btn {
  pointer-events: auto; display: inline-flex; align-items: center; gap: .6em; height: 3.2em; padding: 0 1.3em; border-radius: 999px;
  background: var(--white); color: var(--ink); border: 1px solid var(--line); font-weight: 500;
  box-shadow: 0 1em 2.2em -1.2em rgba(0, 0, 0, .45); transition: background-color .25s, color .25s, border-color .25s;
}
.svc-cta__btn:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.svc-cta__btn .ico { width: 1em; height: 1em; }
@media (max-width: 560px) { .svc-cta { bottom: calc(var(--g) + env(safe-area-inset-bottom, 0px)); } }
body.in-services .status { opacity: 0; pointer-events: none; }

/* toolkit dock with real logos */
.dock__tile { padding: 22%; }
.dock__tile img { width: 100%; height: 100%; }

/* claymation: tilt, highlight and parallax */
.clay { perspective: 50em; }
.clay .slot--clay { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d; transition: transform .5s var(--main); box-shadow: 0 1.4em 2.4em -1.6em rgba(0, 0, 0, .45); }
.clay .clay__video { transform: translate(var(--px, 0px), var(--py, 0px)) scale(1.08); transition: transform .5s var(--main); }
.clay__shine { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(circle at var(--hx, 30%) var(--hy, 25%), rgba(255, 255, 255, .45), rgba(255, 255, 255, 0) 45%); mix-blend-mode: soft-light; }
.slide__img .clay, .nf__clay { width: 100%; }

.menu__cv { margin-left: auto; font-size: .95em; color: var(--muted); }
.menu__cv + .menu__ja { margin-left: .9em; }
.clay .nf__clay { margin: 0 auto; width: 11em; }
html.cal-open .nav, html.cal-open .status, html.cal-open .svc-cta, html.cal-open .cursor { visibility: hidden; }
.calendly-overlay .calendly-popup { border-radius: .8em; overflow: hidden; }
.calendly-overlay { background-color: rgba(28, 28, 28, .55) !important; -webkit-backdrop-filter: blur(.4em); backdrop-filter: blur(.4em); }
@media (max-width: 560px) { .hero { padding-bottom: calc(4.6em + env(safe-area-inset-bottom, 0px)); } }
[data-nav-status="open"] .status { opacity: 0; pointer-events: none; }

/* next case with its cover loop */
.case__next a { display: grid; grid-template-columns: 1fr minmax(10em, 22em); align-items: center; gap: 2em; width: 100%; }
.case__next-text { display: grid; gap: .2em; }
.case__next-thumb .slot { border-radius: .4em; transition: transform .6s var(--main); }
.case__next a:hover .case__next-thumb .slot { transform: scale(1.03); }
@media (max-width: 560px) { .case__next a { grid-template-columns: 1fr; gap: 1em; } }

/* toolkit: two magnifying docks (make / run) */
.docks { display: grid; gap: 1.2em; justify-items: center; }
.dock-row { display: grid; gap: .5em; justify-items: center; max-width: 100%; }
.dock-row__label { color: var(--grey); font-size: .9em; }
.dock { height: 7.6em; gap: .45em; }
.dock__item { width: 4em; }
@media (min-width: 993px) and (hover: hover) {
  .dock__item.is-far { width: 4.7em; }
  .dock__item.is-close { width: 5.5em; }
  .dock__item.is-hover { width: 6.4em; }
}
.dock-hint { text-align: center; color: var(--muted); font-size: .85em; margin-top: 1em; }
@media (max-width: 992px) {
  .dock-row { width: 100%; }
  .dock { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; height: auto; width: 100%; padding: .4em .2em .8em; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .dock::-webkit-scrollbar { display: none; }
  .dock__item { width: 3.6em; flex: none; scroll-snap-align: start; }
}

/* ================= round 7 ================= */

/* header: same inset on both sides, matching the page gutter */
.nav { padding: var(--g) calc(var(--g) * 1.6); }
@media (max-width: 980px) { .nav { padding: var(--g); } }

/* ---------- live apps: Gohesive-style floating UI cards for every app ---------- */
.app__layer--card { border-radius: .8em; }

/* ---------- stats strip ---------- */
.stats { padding: 4em var(--g) 0; max-width: 84em; margin: 0 auto; }
.stats__h { text-align: center; font-size: 1.1em; font-weight: 500; color: var(--grey); margin-bottom: 1.4em; }
.stats__list { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 1.6em 1.4em; display: grid; gap: .6em; align-content: start; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat__v { font-size: 3em; font-weight: 600; letter-spacing: -.045em; line-height: 1; }
.stat__reels { display: inline-flex; }
.reel { display: inline-block; height: 1em; overflow: hidden; }
.reel__strip { display: flex; flex-direction: column; transition: transform 1.4s var(--main); }
.reel__strip span { height: 1em; line-height: 1; }
.reel__c { display: inline-block; }
.stat__l { color: var(--ink-2); font-size: .92em; line-height: 1.35; max-width: 16em; }
@media (max-width: 900px) {
  .stats__list { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2n+1) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stat:last-child { grid-column: span 2; }
}

/* ---------- services: rows that open on hover ---------- */
.svcs { max-width: 76em; }
.svc { display: block; padding: 0; border-bottom: 1px solid var(--line); }
.svc__link { position: relative; display: grid; grid-template-columns: 3.4em 1fr 1.4fr; gap: 1em 2em; padding: 2em .6em; border-radius: .5em; transition: background-color .4s var(--main); }
.svc__link::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--ink); transform: scaleY(0); transform-origin: top; transition: transform .5s var(--main); }
.svc__icon { width: 2.8em; height: 2.8em; border-radius: .6em; display: grid; place-items: center; background: var(--chip); transition: background-color .4s var(--main), color .4s var(--main); }
.svc__ico { width: 1.5em; height: 1.5em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.svc__main { display: grid; align-content: start; gap: .25em; }
.svc__when { display: flex; gap: .8em; color: var(--muted); font-size: .9em; }
.svc__n { color: var(--grey); font-variant-numeric: tabular-nums; }
.svc__title { display: block; font-size: 1.85em; font-weight: 600; letter-spacing: -.035em; line-height: 1.05; }
.svc__body { display: grid; gap: .7em; color: var(--ink-2); font-size: 1.05em; }
.svc__text, .svc__fit { display: block; }
.svc__fit b { color: var(--ink); font-weight: 600; }
.svc__more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--main); }
.svc__more-in { overflow: hidden; display: grid; gap: .45em; }
.svc__inc-h { margin-top: .6em; font-size: .85em; color: var(--muted); }
.svc__inc { position: relative; padding-left: 1.3em; color: var(--ink); opacity: 0; transform: translateY(.4em); transition: opacity .4s var(--main), transform .5s var(--main); }
.svc__inc::before { content: ""; position: absolute; left: 0; top: .55em; width: .55em; height: .55em; border-radius: 50%; background: var(--live); }
.svc__book { display: inline-flex; align-items: center; gap: .4em; margin-top: .5em; font-weight: 600; color: var(--ink); opacity: 0; transition: opacity .4s var(--main) .2s; }
.svc__book .ico { width: 1em; height: 1em; }
.svc__link:hover, .svc__link:focus-visible { background: var(--white); }
.svc__link:hover::before, .svc__link:focus-visible::before { transform: scaleY(1); }
.svc__link:hover .svc__icon, .svc__link:focus-visible .svc__icon { background: var(--ink); color: var(--white); }
.svc__link:hover .svc__ico, .svc__link:focus-visible .svc__ico { animation: draw 1s var(--main); }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.svc__link:hover .svc__more, .svc__link:focus-visible .svc__more { grid-template-rows: 1fr; }
.svc__link:hover .svc__inc, .svc__link:focus-visible .svc__inc { opacity: 1; transform: none; }
.svc__link:hover .svc__inc:nth-of-type(2), .svc__link:focus-visible .svc__inc:nth-of-type(2) { transition-delay: .06s; }
.svc__link:hover .svc__inc:nth-of-type(3), .svc__link:focus-visible .svc__inc:nth-of-type(3) { transition-delay: .12s; }
.svc__link:hover .svc__inc:nth-of-type(4), .svc__link:focus-visible .svc__inc:nth-of-type(4) { transition-delay: .18s; }
.svc__link:hover .svc__inc:nth-of-type(5), .svc__link:focus-visible .svc__inc:nth-of-type(5) { transition-delay: .24s; }
.svc__link:hover .svc__book, .svc__link:focus-visible .svc__book { opacity: 1; }
@media (max-width: 760px), (hover: none) {
  .svc__link { grid-template-columns: 1fr; gap: .8em; padding: 1.6em .2em; }
  .svc__more { grid-template-rows: 1fr; }
  .svc__inc, .svc__book { opacity: 1; transform: none; }
}

/* ---------- toolkit: one dock, category tabs ---------- */
.tk { display: grid; justify-items: center; gap: 1.4em; }
.tk__tabs { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: .3em; padding: .3em; border-radius: 999px; background: var(--chip); }
.tk__tab { position: relative; display: inline-flex; align-items: center; gap: .45em; height: 2.4em; padding: 0 1em; border-radius: 999px; font-size: .95em; color: var(--ink-2); transition: background-color .3s var(--main), color .3s var(--main); }
.tk__tab:hover { color: var(--ink); }
.tk__tab[aria-selected="true"] { background: var(--white); color: var(--ink); box-shadow: 0 .3em .8em -.4em rgba(0, 0, 0, .3); }
.tk__count { font-size: .8em; color: var(--muted); font-variant-numeric: tabular-nums; }
.tk__stage { width: 100%; display: flex; justify-content: center; }
.tk .dock { height: 7.4em; gap: .5em; margin: 0; }
.tk .dock__item { width: 4.4em; }
@media (min-width: 993px) and (hover: hover) {
  .tk .dock__item.is-far { width: 5.1em; }
  .tk .dock__item.is-close { width: 5.9em; }
  .tk .dock__item.is-hover { width: 6.8em; }
}
@media (max-width: 992px) {
  .tk .dock { flex-wrap: wrap; justify-content: center; height: auto; overflow: visible; padding: 0; }
  .tk .dock__item { width: 3.8em; }
}
.dock-hint { margin-top: .4em; }

/* ---------- experience: list with a mini Gantt bar per role ---------- */
.xp { max-width: 84em; margin: 0 auto; }
.xp__axis-row, .xp__head { display: grid; grid-template-columns: 2.8em minmax(10em, 1.1fr) minmax(12em, 1.6fr) 7.5em minmax(10em, 1.3fr); align-items: center; gap: 1.2em; }
.xp__axis-row { padding: 0 1em .6em; }
.xp__axis-row > span:first-child { grid-column: 1 / 5; }
.xp__axis { position: relative; height: 1.4em; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .8em; font-variant-numeric: tabular-nums; }
.xp__axis i { position: absolute; bottom: .35em; transform: translateX(-50%); font-style: normal; }
.xp__sweep { position: absolute; left: 0; bottom: -.1em; height: 100vh; max-height: var(--xp-h, 40em); width: 1px; transform-origin: top; pointer-events: none; }
.xp__sweep b { position: absolute; left: 0; bottom: 100%; transform: translate(-50%, -.3em); padding: .1em .45em; border-radius: .3em; background: var(--ink); color: var(--white); font-weight: 500; white-space: nowrap; }
.xp__list { border-top: 1px solid var(--line); }
.xp__row { border-bottom: 1px solid var(--line); }
.xp__head { width: 100%; text-align: left; padding: 1.1em 1em; border-radius: .5em; transition: background-color .35s var(--main); }
.xp__row:hover .xp__head, .xp__row.is-open .xp__head { background: var(--white); }
.xp__logo { width: 2.8em; height: 2.8em; border-radius: .6em; box-shadow: 0 .3em .8em -.4em rgba(0, 0, 0, .35); }
.xp__logo--mono { display: grid; place-items: center; background: var(--ink); color: var(--white); font-size: .8em; font-weight: 600; }
.xp__id { display: grid; gap: .1em; }
.xp__org { display: inline-flex; align-items: center; gap: .6em; font-weight: 600; font-size: 1.15em; letter-spacing: -.02em; }
.xp__now { display: inline-flex; align-items: center; gap: .35em; font-size: .7em; font-weight: 500; color: var(--live); }
.xp__role { color: var(--muted); font-size: .92em; }
.xp__hl { color: var(--ink-2); font-size: .95em; line-height: 1.35; }
.xp__years { color: var(--muted); font-size: .9em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.xp__track { position: relative; height: .7em; border-radius: 999px; background: var(--chip); overflow: hidden; }
.xp__bar { position: absolute; top: 0; bottom: 0; left: var(--x0, 0%); width: var(--w, 0%); border-radius: 999px; background: var(--ink); transform-origin: left; }
.xp__row.is-current .xp__bar { background: linear-gradient(90deg, var(--ink) 70%, var(--live)); }
.xp__row:hover .xp__bar, .xp__row.is-open .xp__bar { background: var(--live); }
.xp__more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--main); }
.xp__row.is-open .xp__more { grid-template-rows: 1fr; }
.xp__more-in { overflow: hidden; display: grid; grid-template-columns: minmax(0, 18em) 1fr; gap: 1.6em; padding: 0 1em; }
.xp__row.is-open .xp__more-in { padding: .4em 1em 1.6em 5em; }
.xp__thumb { display: block; border-radius: .5em; overflow: hidden; aspect-ratio: 16 / 9; background: var(--panel); }
.xp__thumb video { width: 100%; height: 100%; object-fit: cover; }
.xp__detail { display: grid; gap: .6em; align-content: start; }
.xp__when { color: var(--muted); font-size: .9em; }
.xp__text { color: var(--ink-2); }
.xp__facts { display: grid; gap: .5em; }
.xp__facts b { display: block; font-weight: 600; }
.xp__facts span { color: var(--ink-2); font-size: .95em; }
.xp__detail .chip-link { justify-self: start; }
.xp__more-in:not(:has(.xp__thumb)) { grid-template-columns: 1fr; }
@media (max-width: 860px) {
  .xp__axis-row { display: none; }
  .xp__head { grid-template-columns: 2.8em 1fr auto; grid-template-areas: "logo id years" "hl hl hl" "track track track"; gap: .6em 1em; padding: 1em .3em; }
  .xp__logo { grid-area: logo; } .xp__id { grid-area: id; } .xp__years { grid-area: years; } .xp__hl { grid-area: hl; } .xp__track { grid-area: track; }
  .xp__more-in, .xp__row.is-open .xp__more-in { grid-template-columns: 1fr; padding-left: .3em; padding-right: .3em; }
}

/* ---------- outside of work ---------- */
.bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 14em; }
.bento__card--tall { grid-row: span 2; }
.tile-tokyo { position: relative; overflow: hidden; color: var(--white); background: #2a3d66; }
.tile-tokyo__sky { position: absolute; inset: 0; background: linear-gradient(180deg, var(--sky1, #2b4d8f), var(--sky2, #e8a27a)); transition: background 1s; }
.tile-tokyo__sun { position: absolute; right: 14%; top: 22%; width: 3.2em; height: 3.2em; border-radius: 50%; background: var(--sun, #ffd27a); box-shadow: 0 0 2.4em var(--sun, #ffd27a); transition: transform 1.2s var(--main); }
.tile-tokyo:hover .tile-tokyo__sun { transform: translateY(-.6em) scale(1.08); }
.tile-tokyo__stars { position: absolute; inset: 0; opacity: var(--stars, 0); background-image: radial-gradient(1px 1px at 20% 30%, #fff, transparent), radial-gradient(1px 1px at 60% 20%, #fff, transparent), radial-gradient(1.5px 1.5px at 80% 45%, #fff, transparent), radial-gradient(1px 1px at 35% 60%, #fff, transparent), radial-gradient(1px 1px at 70% 70%, #fff, transparent); }
.tile-tokyo .bento__text { position: relative; }
.tile-tokyo .bento__k, .tile-tokyo .bento__p { color: rgba(255, 255, 255, .85); }
.tile-tokyo__now { position: absolute; left: 1em; bottom: 1em; display: grid; gap: .2em; }
.tile-tokyo__time { display: flex; align-items: baseline; gap: .35em; font-size: 2.6em; font-weight: 600; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.tile-tokyo__time span { font-size: .35em; font-weight: 500; letter-spacing: 0; opacity: .8; }
.tile-tokyo__wx { font-size: .95em; opacity: .9; }
.tile-tokyo.is-night { --sky1: #0e1733; --sky2: #2a3d66; --sun: #f3efe2; --stars: 1; }
.tile-tokyo.is-dawn { --sky1: #6a7fbf; --sky2: #f5b38a; --sun: #ffb27a; }
.tile-tokyo.is-day { --sky1: #4f8fe0; --sky2: #bfe1ff; --sun: #ffe08a; }
.tile-tokyo.is-dusk { --sky1: #3b3f7a; --sky2: #f08a5d; --sun: #ff9d5c; }
.tile-flip { padding: 1em 1em 0; }
.flip { display: block; width: 62%; margin: 0 auto; aspect-ratio: 388 / 576; perspective: 60em; cursor: pointer; }
.flip__inner { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .8s var(--main); }
.flip:hover .flip__inner, .flip[aria-pressed="true"] .flip__inner { transform: rotateY(180deg); }
.flip__face { position: absolute; inset: 0; border-radius: 4.5%; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 1em 2em -1em rgba(0, 0, 0, .45); }
.flip__back { transform: rotateY(180deg); }
.flip__back img { width: 100%; height: 100%; object-fit: cover; }
.flip__front { background: radial-gradient(circle at 50% 50%, #c9874a 0 22%, #6b3a1c 23% 30%, #2a1a10 31%); border: .45em solid #1b1210; display: grid; place-items: center; }
.flip__back-art { display: grid; place-items: center; width: 46%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #f1d08a, #b8743a); color: #2a1a10; font-weight: 700; font-size: 1.6em; letter-spacing: -.04em; }
.tile-circuit { position: relative; overflow: hidden; background: #0f1a14; color: #e8f3ec; }
.tile-circuit .bento__k, .tile-circuit .bento__p { color: rgba(232, 243, 236, .75); }
.circuit { width: 100%; height: auto; margin-top: .6em; }
.circuit path { fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.circuit__base path { stroke: #2b4a37; }
.circuit__lit path { stroke: #7dffb0; stroke-dasharray: 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 3px #7dffb0); transition: stroke-dashoffset 1.2s var(--main); }
.circuit__lit path:nth-child(2) { transition-delay: .1s; } .circuit__lit path:nth-child(3) { transition-delay: .2s; } .circuit__lit path:nth-child(4) { transition-delay: .35s; }
.circuit__pads circle, .circuit__pads rect { fill: #0f1a14; stroke: #4d7a5e; stroke-width: 2; transition: fill .4s .6s, stroke .4s .6s; }
.tile-circuit:hover .circuit__lit path, .tile-circuit.is-lit .circuit__lit path { stroke-dashoffset: 0; }
.tile-circuit:hover .circuit__pads circle, .tile-circuit.is-lit .circuit__pads circle { fill: #7dffb0; stroke: #7dffb0; }
.tile-circuit:hover .circuit__pads rect, .tile-circuit.is-lit .circuit__pads rect { stroke: #7dffb0; }
.circuit__sparks { position: absolute; inset: 0; pointer-events: none; }
.spark { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff4c2; box-shadow: 0 0 6px 2px #ffd35c; }
.tile-build { display: grid; grid-template-columns: 1.1fr 1fr; overflow: hidden; }
.tile-build__media { position: relative; overflow: hidden; }
.tile-build__media video { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--main); }
.tile-build:hover .tile-build__media video { transform: scale(1.05); }
.tile-build .bento__text > span { display: block; }
.tile-build .bento__k { color: var(--muted); font-size: .85em; }
.tile-build .bento__t { font-size: 1.25em; font-weight: 600; letter-spacing: -.02em; }
.tile-build__go { display: inline-flex !important; align-items: center; gap: .35em; margin-top: .4em; font-weight: 600; }
.tile-build__go .ico { width: 1em; height: 1em; transition: transform .4s var(--main); }
.tile-build:hover .tile-build__go .ico { transform: translate(.15em, -.15em); }
@media (max-width: 860px) {
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: minmax(13em, auto); }
  .bento__card--wide { grid-column: span 2; }
  .tile-build { grid-template-columns: 1fr; }
  .tile-build__media { aspect-ratio: 16 / 9; }
}
html.rm .spark { display: none; }
/* round 7 fixes */
.tk .dock { height: 6em; }
.tk { gap: 1em; }
.bento .chip-link { justify-self: start; }
.tile-tokyo__sun { top: auto; bottom: 18%; right: 10%; }
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .bento__card--wide, .bento__card--tall { grid-column: auto; grid-row: auto; }
  .tile-tokyo { min-height: 15em; }
  .tile-flip .flip { width: 48%; }
  .tile-circuit .circuit { max-width: 22em; margin: 0 auto; }
}
body.in-xp .status { opacity: 0; pointer-events: none; }
@media (max-width: 991px) {
  .app__card { border-radius: 1.5em 1.5em 0 0; box-shadow: none; }
  .app__body { padding-bottom: 1em; }
  .app__shelf { margin-top: 0; box-shadow: 0 1em 1.6em -1.2em rgba(0, 0, 0, .25); border: 0; }
}
