/* ============================================================================
   Khadim Mbaye, personal portfolio
   Direction: "Cold Instrument" ethereal glass on OLED black, violet as the only
   signal colour. Radius system: pill (999px) for micro-labels + buttons, 28px
   outer shells, 22px inner cores.
   z-index scale: ambient 0 / cursor light 50 / menu 60 / nav 70 / skip 90. Nothing else.
   ========================================================================== */

/* ---------------------------------------------------------------- tokens -- */
:root {
  --bg:            #000000;   /* true black: the pointer light does the lighting */
  --bg-raise:      #0B0D10;
  --panel:         rgba(255, 255, 255, .030);
  --panel-2:       rgba(255, 255, 255, .055);
  --line:          rgba(255, 255, 255, .085);
  --line-strong:   rgba(255, 255, 255, .16);

  --text:          #F4F5F2;
  --text-2:        #A7ADB2;   /* 8.8:1 on --bg   */
  --text-3:        #7C8288;   /* 5.2:1 on --bg   */

  --accent:        #9B7BFF;   /* 6.4:1 on --bg   */
  --accent-soft:   #B3A0FF;
  --accent-ink:    #0A0810;   /* 6.2:1 on accent*/

  --r-shell: 1.75rem;
  --r-core:  calc(1.75rem - .375rem);   /* concentric 22px */

  --ease-out:   cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.32, .72, 0, 1);

  --font-display: 'Clash Display', 'Satoshi', system-ui, sans-serif;
  --font-sans:    'Satoshi', system-ui, -apple-system, sans-serif;
  --font-mono:    'Geist Mono', ui-monospace, 'SFMono-Regular', monospace;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 7rem;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3 { margin: 0; font-weight: 600; }
p  { margin: 0; }
ul, ol, dl { margin: 0; padding: 0; }
li { list-style: none; }
img { display: block; max-width: 100%; }
a  { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: var(--accent-ink); }

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

.skip {
  position: fixed;
  top: -100%;
  left: 1rem;
  z-index: 90;
  padding: .7rem 1.1rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 500;
  transition: top 500ms var(--ease-spring);
}
.skip:focus-visible { top: 1rem; }

/* ------------------------------------------------------ systemic layers -- */
.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(46rem 46rem at 82% -10%, rgba(155, 123, 255, .10), transparent 62%),
    radial-gradient(50rem 50rem at 4% 38%,  rgba(96, 72, 220, .085),  transparent 60%),
    radial-gradient(56rem 44rem at 50% 112%, rgba(146, 66, 198, .09), transparent 66%);
}

main, .foot { position: relative; z-index: 1; }

/* -------------------------------------------------------------- layout -- */
.shell {
  width: 100%;
  max-width: 1400px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}
@media (min-width: 768px) { .shell { padding-inline: 2rem; } }

.section { padding-block: clamp(4.5rem, 7vw, 7rem); }

/* --------------------------------------------------------------- nav ---- */
.nav {
  position: fixed;
  top: 1.25rem;
  left: 0;
  right: 0;
  z-index: 70;
  display: flex;
  justify-content: center;
  padding-inline: 1rem;
  pointer-events: none;
}

.nav__pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: .35rem;
  max-width: 100%;
  padding: .35rem .35rem .35rem .9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(9, 11, 14, .74);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .07),
    0 24px 60px -40px rgba(0, 0, 0, .95);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding-right: .4rem;
  white-space: nowrap;
}
.nav__mark {
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .01em;
}
.nav__name {
  font-weight: 500;
  font-size: .93rem;
  letter-spacing: -.01em;
}

.nav__links { display: none; align-items: center; gap: .1rem; }
.nav__links a {
  padding: .5rem .85rem;
  border-radius: 999px;
  font-size: .93rem;
  color: var(--text-2);
  transition: color 500ms var(--ease-spring), background-color 500ms var(--ease-spring);
}
.nav__links a:hover { color: var(--text); background: var(--panel-2); }

.nav__cta { display: none; }

@media (min-width: 1024px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__pill { gap: .5rem; padding-left: .9rem; }
  .burger { display: none; }
}

/* hamburger morph */
.burger {
  position: relative;
  flex: none;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-2);
  cursor: pointer;
  transition: background-color 500ms var(--ease-spring), border-color 500ms var(--ease-spring);
}
.burger:hover { background: rgba(255, 255, 255, .1); }
.burger__line {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1rem;
  height: 1.5px;
  margin: -.75px 0 0 -.5rem;
  border-radius: 2px;
  background: var(--text);
  transition: transform 700ms var(--ease-spring);
}
.burger__line:nth-child(1) { transform: translateY(-3px); }
.burger__line:nth-child(2) { transform: translateY(3px); }
.burger[aria-expanded="true"] .burger__line:nth-child(1) { transform: rotate(45deg); }
.burger[aria-expanded="true"] .burger__line:nth-child(2) { transform: rotate(-45deg); }

/* full-screen menu */
.menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 6rem 1.5rem 3rem;
  background: rgba(6, 7, 9, .86);
  backdrop-filter: blur(30px) saturate(140%);
  -webkit-backdrop-filter: blur(30px) saturate(140%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 700ms var(--ease-spring), visibility 700ms var(--ease-spring);
}
.menu[hidden] { display: none; }
.menu.is-open { opacity: 1; visibility: visible; pointer-events: auto; }

.menu__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  text-align: center;
}
.menu__link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.85rem, 6vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -.02em;
  opacity: 0;
  transform: translate3d(0, 3rem, 0);
  transition:
    opacity 800ms var(--ease-out) calc(var(--i) * 60ms),
    transform 800ms var(--ease-out) calc(var(--i) * 60ms),
    color 500ms var(--ease-spring);
}
.menu.is-open .menu__link { opacity: 1; transform: none; }
.menu__link:hover { color: var(--accent); }

.menu__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 2.5rem;
  opacity: 0;
  transform: translate3d(0, 2rem, 0);
  transition:
    opacity 800ms var(--ease-out) calc(var(--i) * 60ms),
    transform 800ms var(--ease-out) calc(var(--i) * 60ms);
}
.menu.is-open .menu__foot { opacity: 1; transform: none; }
.menu__mini {
  font-size: .95rem;
  color: var(--text-2);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  transition: color 500ms var(--ease-spring), border-color 500ms var(--ease-spring);
}
.menu__mini:hover { color: var(--text); border-color: var(--accent); }

/* ------------------------------------------------------ buttons + links -- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding: .68rem .68rem .68rem 1.3rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: .97rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 700ms var(--ease-spring),
    background-color 500ms var(--ease-spring),
    color 500ms var(--ease-spring),
    border-color 500ms var(--ease-spring);
}
.btn:active { transform: scale(.98); }

.btn__orb {
  display: grid;
  place-items: center;
  flex: none;
  width: 1.95rem;
  height: 1.95rem;
  border-radius: 999px;
  font-size: .95rem;
  line-height: 1;
  transition: transform 700ms var(--ease-spring), background-color 500ms var(--ease-spring);
}
.btn:hover .btn__orb { transform: translate(2px, -2px) scale(1.07); }

.btn--fill { background: var(--accent); color: var(--accent-ink); }
.btn--fill .btn__orb { background: rgba(8, 9, 10, .16); }
.btn--fill:hover { background: var(--accent-soft); }

.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}
.btn--ghost .btn__orb { background: var(--panel-2); }
.btn--ghost:hover { border-color: rgba(255, 255, 255, .3); }

.btn--sm { padding: .45rem .45rem .45rem 1rem; font-size: .88rem; }
.btn--sm .btn__orb { width: 1.6rem; height: 1.6rem; font-size: .82rem; }

.btn--lg { padding: .9rem .9rem .9rem 1.7rem; font-size: 1.05rem; }
.btn--lg .btn__orb { width: 2.3rem; height: 2.3rem; font-size: 1.1rem; }

.linkline {
  position: relative;
  display: inline-block;
  padding-bottom: 3px;
  color: var(--text);
  font-weight: 500;
}
.linkline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  opacity: .35;
  transform-origin: left;
  transition: opacity 500ms var(--ease-spring), background-color 500ms var(--ease-spring);
}
.linkline:hover::after { opacity: 1; background: var(--accent); }
.linkline:hover { color: var(--accent); }

/* micro labels: pill */
.chip, .eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: .42rem .9rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-2);
}
.chip { border-color: rgba(155, 123, 255, .45); color: var(--accent); }

/* --------------------------------------------------------------- hero ---- */
.hero {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: 6rem;
  padding-bottom: 4.5rem;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3.5rem;
  align-items: center;
}
@media (min-width: 768px) {
  .hero__grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 3rem; }
}
@media (min-width: 900px) {
  .hero__grid { gap: 4rem; }
}

.hero__text { display: flex; flex-direction: column; align-items: flex-start; gap: 1.6rem; }

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 5.4vw, 4.5rem);
  line-height: .95;
  letter-spacing: -.035em;
  margin-block: .2rem;
}

.hero__sub {
  max-width: 34ch;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.55;
  color: var(--text-2);
}

.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; margin-top: .5rem; }

.hero__visual { position: relative; }
/* offset frame, tilted. It only escapes on the left (into the column gutter)
   and the bottom, so it can never be clipped by the window edge. */
.hero__visual::before {
  content: "";
  position: absolute;
  inset: 1.4rem 1.4rem -1.4rem -1.4rem;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: var(--r-shell);
  transform: rotate(-2deg);
  display: none;
}
@media (min-width: 900px) { .hero__visual::before { display: block; } }

/* ------------------------------------------------------ double bezel ----- */
.bezel {
  position: relative;
  z-index: 1;
  display: block;
  padding: .6rem;
  border: 1px solid var(--line);
  border-radius: var(--r-shell);
  background: var(--panel);
  max-width: 420px;
  margin-inline: auto;
}
.bezel__core {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--r-core);
  background: var(--bg-raise);
}
.bezel__core::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14);
  pointer-events: none;
}
.bezel__core img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
/* horizontal plate: keep the source ratio, never square-crop it */
.bezel--wide { max-width: none; margin-inline: 0; }
.bezel--wide .bezel__core img { aspect-ratio: auto; height: auto; }
@media (min-width: 900px) {
  .bezel--tilt { transform: rotate(-1.6deg); }
}

/* -------------------------------------------------------------- about ---- */
.statement {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.4vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -.025em;
  max-width: 17ch;
}
.about .lede { margin-top: 2.25rem; }

/* the wheel: one horizontal band, image left, note right */
.wheel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.75rem;
  align-items: center;
  margin-top: 4.5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--line);
}
@media (min-width: 900px) {
  .wheel { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 3rem; }
}
.wheel__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .85rem;
}
.wheel__note {
  font-size: clamp(1rem, 1.35vw, 1.16rem);
  line-height: 1.62;
  color: var(--text-2);
  max-width: 48ch;
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 2.5rem;
  margin-top: 4.5rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--line);
}
@media (min-width: 1024px) { .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.facts dt {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .02em;
  color: var(--text-3);
  margin-bottom: .5rem;
}
.facts dd {
  margin: 0;
  font-size: clamp(.98rem, 1.3vw, 1.12rem);
  font-weight: 500;
  line-height: 1.4;
}

/* --------------------------------------------------------------- work ---- */
.h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.2vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: -.028em;
  max-width: 18ch;
}
.h2--tight { max-width: 22ch; }

.lede {
  max-width: 58ch;
  margin-top: 1.4rem;
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.6;
  color: var(--text-2);
}
.lede--short { max-width: 46ch; }
.lede .linkline { color: var(--text); margin-left: .35rem; }

.work__head { display: flex; flex-direction: column; }

.eyebrow { margin-bottom: 1.75rem; }

/* bento */
.bento {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  margin-top: 3.5rem;
}
@media (min-width: 768px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
}
@media (min-width: 1024px) {
  /* one featured card, two on the right, then two halves and the wide
     pipeline band. Every screenshot keeps its whole frame (see .card__media). */
  .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.5rem; }
  .bento > :nth-child(1) { grid-column: span 4; grid-row: span 2; }
  .bento > :nth-child(2) { grid-column: span 2; }
  .bento > :nth-child(3) { grid-column: span 2; }
  .bento > :nth-child(4) { grid-column: span 3; }
  .bento > :nth-child(5) { grid-column: span 3; }
  .bento > :nth-child(6) { grid-column: span 6; }
}

/* featured card: the image takes the surplus, the body stays pinned to the
   bottom, and the whole screenshot is shown (contain, never cropped). */
@media (min-width: 1024px) {
  .card--hero .card__media { flex: 1 1 auto; aspect-ratio: auto; min-height: 300px; }
  .card--hero .card__body  { flex: 0 0 auto; }
}

/* wide card: horizontal split on desktop */
@media (min-width: 1024px) {
  .card--wide .card__core { flex-direction: row; }
  .card--wide .card__media { flex: 0 0 54%; aspect-ratio: auto; min-height: 260px; }
  .card--wide .card__body  { flex: 1 1 auto; justify-content: center; gap: 1rem; padding: 2rem 2.25rem; }
}

.card { display: block; min-width: 0; transition: transform 700ms var(--ease-spring); }
.card:active { transform: scale(.992); }

.card__shell {
  display: block;
  height: 100%;
  padding: .45rem;
  border: 1px solid var(--line);
  border-radius: var(--r-shell);
  background: var(--panel);
  transition: background-color 600ms var(--ease-spring), border-color 600ms var(--ease-spring);
}
.card:hover .card__shell { background: var(--panel-2); border-color: var(--line-strong); }

.card__core {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: var(--r-core);
  background: var(--bg-raise);
  transition: background-color 600ms var(--ease-spring);
}
.card:hover .card__core { background: #10141A; }
.card__core::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .11);
  pointer-events: none;
  z-index: 2;
}

.card__media {
  position: relative;
  display: block;
  flex: none;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #0E1116;
}
.card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* the whole screenshot, centred: a wider slot letterboxes it on the plate
     instead of zooming in and cutting the edges off */
  object-fit: contain;
  object-position: center;
}

.card__body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: .85rem;
  flex: 1;
  padding: 1.3rem 1.4rem 1.5rem;
}

.card__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.2rem, 1.7vw, 1.6rem);
  line-height: 1.1;
  letter-spacing: -.02em;
}

.orb {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  background: var(--panel-2);
  color: var(--text-2);
  font-size: 1rem;
  line-height: 1;
  transition:
    transform 700ms var(--ease-spring),
    background-color 500ms var(--ease-spring),
    color 500ms var(--ease-spring);
}
.card:hover .orb {
  transform: translate(3px, -3px) scale(1.08);
  background: var(--accent);
  color: var(--accent-ink);
}

.card__pitch {
  display: block;
  font-size: .95rem;
  line-height: 1.55;
  color: var(--text-2);
}

.tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.tag {
  padding: .26rem .62rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.3;
  color: var(--text-2);
}

.card__meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-3);
}

/* -------------------------------------------------------------- stack ---- */
.stackgrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  margin-top: 3.5rem;
}
@media (min-width: 768px) {
  .stackgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
}

.stackcard {
  display: block;
  padding: .45rem;
  border: 1px solid var(--line);
  border-radius: var(--r-shell);
  background: var(--panel);
  transition: background-color 600ms var(--ease-spring), border-color 600ms var(--ease-spring);
}
.stackcard:hover { background: var(--panel-2); border-color: var(--line-strong); }
.stackcard__core {
  display: block;
  height: 100%;
  padding: 1.6rem 1.6rem 1.8rem;
  border-radius: var(--r-core);
  background: var(--bg-raise);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1);
}

.stackcard__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--text-3);
  margin-bottom: 1.2rem;
}

.techs { display: flex; flex-wrap: wrap; gap: .5rem; }
.tech {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .4rem .9rem .4rem .6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  font-size: .95rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--text);
  transition: border-color 500ms var(--ease-spring), background-color 500ms var(--ease-spring);
}
.tech:hover { border-color: var(--line-strong); background: var(--panel-2); }
.tech--bare { padding-left: .85rem; }

.tech:hover .ico { background: var(--accent); }

.tech__dot {
  flex: none;
  width: .4rem;
  height: .4rem;
  border-radius: 999px;
  background: var(--text-3);
  transition: background-color 500ms var(--ease-spring);
}
.tech:hover .tech__dot { background: var(--accent); }

/* ------------------------------------------------------- learn / marquee -- */
.marquee {
  overflow: hidden;
  margin-top: 3rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee-slide 46s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__set { display: flex; }
.marquee__set a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0 2rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.1rem, 1.9vw, 1.5rem);
  letter-spacing: -.02em;
  white-space: nowrap;
  color: var(--text-2);
  transition: color 500ms var(--ease-spring);
}
.marquee__set a::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 1px;
  height: 1.1em;
  background: var(--line-strong);
  transform: translateY(-50%);
}
.marquee__set a:hover { color: var(--accent); }

@keyframes marquee-slide {
  to { transform: translate3d(-50%, 0, 0); }
}

/* ---------------------------------------------------------------- path ---- */
.rows { margin-top: 3.5rem; border-bottom: 1px solid var(--line); }
.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
}
@media (min-width: 768px) {
  .row { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 3rem; padding: 3.5rem 0; }
}
.row__when {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--accent);
}
.row__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  line-height: 1.15;
  letter-spacing: -.02em;
}
.row__where { margin-top: .7rem; color: var(--text-2); font-size: .98rem; max-width: 62ch; }
.row__note  { margin-top: .7rem; color: var(--text-3); font-size: .95rem; line-height: 1.6; max-width: 62ch; }

/* --------------------------------------------------------- certifications - */
.certlist {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin-top: 3.5rem;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 1024px) {
  .certlist { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 3.5rem; }
}
.certlist li { display: flex; border-top: 1px solid var(--line); }

.certrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1.35rem .25rem;
  transition: padding 600ms var(--ease-spring);
}
.certrow:hover { padding-inline: .9rem; }

.certrow__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.2;
  letter-spacing: -.015em;
  color: var(--text);
}
.certrow__dots {
  flex: 1 1 auto;
  min-width: 1.5rem;
  height: 6px;
  background-image: radial-gradient(circle, rgba(255, 255, 255, .28) 1px, transparent 1.2px);
  background-size: 7px 7px;
  background-position: center;
  background-repeat: repeat-x;
  transition: background-image 500ms var(--ease-spring);
}
.certrow:hover .certrow__dots {
  background-image: radial-gradient(circle, rgba(155, 123, 255, .85) 1px, transparent 1.2px);
}
.certrow__issuer {
  flex: none;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-3);
  text-align: right;
}
.certrow .orb { width: 1.9rem; height: 1.9rem; font-size: .9rem; }
.certrow:hover .orb {
  transform: translate(3px, -3px) scale(1.08);
  background: var(--accent);
  color: var(--accent-ink);
}

/* --------------------------------------------------------------- cv ------ */
.cvlist { max-width: 62rem; }
/* download rows: the orb nudges down instead of up-right */
.cvrow:hover .orb { transform: translateY(3px) scale(1.08); }

/* ------------------------------------------ more work, kept in public ---- */
.publics {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}
@media (min-width: 768px) { .publics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; } }

.public {
  display: block;
  padding: .45rem;
  border: 1px solid var(--line);
  border-radius: var(--r-shell);
  background: var(--panel);
  transition: background-color 600ms var(--ease-spring), border-color 600ms var(--ease-spring);
}
.public:hover { background: var(--panel-2); border-color: var(--line-strong); }
.public__core {
  position: relative;
  display: block;
  height: 100%;
  padding: 1.5rem 4rem 1.6rem 1.6rem;
  border-radius: var(--r-core);
  background: var(--bg-raise);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1);
}
.public__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--accent);
  margin-bottom: .6rem;
}
.public__name {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  letter-spacing: -.02em;
  line-height: 1.15;
  word-break: break-word;
}
.public__note {
  display: block;
  margin-top: .6rem;
  font-size: .95rem;
  line-height: 1.55;
  color: var(--text-2);
  max-width: 44ch;
}
.public .orb { position: absolute; right: 1.4rem; top: 1.4rem; }
.public:hover .orb {
  transform: translate(3px, -3px) scale(1.08);
  background: var(--accent);
  color: var(--accent-ink);
}

/* ------------------------------------------------------------ off screen -- */
.gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  margin-top: 3.5rem;
}
@media (min-width: 768px) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; } }

.shot { margin: 0; }
.shot__shell {
  display: block;
  padding: .45rem;
  border: 1px solid var(--line);
  border-radius: var(--r-shell);
  background: var(--panel);
  transition: background-color 600ms var(--ease-spring), border-color 600ms var(--ease-spring);
}
.shot:hover .shot__shell { background: var(--panel-2); border-color: var(--line-strong); }
.shot__core {
  display: block;
  overflow: hidden;
  border-radius: var(--r-core);
  background: var(--bg-raise);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1);
}
.shot__core img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  image-rendering: auto;
}
.shot figcaption {
  margin-top: .8rem;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-3);
}

/* ---------------------------------------------------------- cursor light -- */
/* a soft violet halo that rides on top of the pointer, nothing else on the
   page knows about it. Off entirely on touch and on reduced motion. */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 34rem;
  height: 34rem;
  margin: -17rem 0 0 -17rem;
  border-radius: 50%;
  z-index: 50;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
  background:
    radial-gradient(circle closest-side,
      rgba(206, 187, 255, .42),
      rgba(155, 123, 255, .22) 28%,
      rgba(110, 86, 225, .10) 50%,
      transparent 72%);
  transition: opacity 500ms var(--ease-out);
  will-change: transform;
}
.cursor-glow.is-on { opacity: 1; }
@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
  .cursor-glow { display: none; }
}

/* ------------------------------------------------------------- contact ---- */
.closing {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 5.6vw, 4.25rem);
  line-height: .96;
  letter-spacing: -.035em;
}
.contact .lede { margin-top: 1.75rem; }
.contact__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.75rem;
  margin-top: 3rem;
}
.contact__alt { display: flex; flex-wrap: wrap; gap: 1.75rem; }

/* -------------------------------------------------------------- footer ---- */
.foot { border-top: 1px solid var(--line); padding: 3rem 0 3.5rem; }
.foot__in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.foot__name { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; letter-spacing: -.01em; }
.foot__links { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.foot__links a {
  font-size: .93rem;
  color: var(--text-2);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 500ms var(--ease-spring), border-color 500ms var(--ease-spring);
}
.foot__links a:hover { color: var(--text); border-color: var(--accent); }
.foot__copy { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); }

/* --------------------------------------------------- scroll entry motion -- */
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 3rem, 0);
  transition:
    opacity 900ms var(--ease-out) calc(var(--i, 0) * 80ms),
    transform 900ms var(--ease-out) calc(var(--i, 0) * 80ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* blur costs repaints on small GPUs, so desktop only */
@media (min-width: 768px) {
  [data-reveal] { filter: blur(9px); }
  [data-reveal].is-in { filter: blur(0); }
}

/* --------------------------------------------------- reduced motion ------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; filter: none !important; }
  .menu__link, .menu__foot { opacity: 1 !important; transform: none !important; }
  .marquee__track { animation: none !important; }
  .bezel--tilt, .hero__visual::before { transform: none; }
}
