/* ==========================================================================
   Home
   ========================================================================== */

/* ── Hero ────────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 56px) 0 190px;
  overflow: hidden;
  isolation: isolate;
}

/* The code texture. Three layers, so the spotlight costs a transform and not a
   repaint: bright code at the bottom, an opaque sheet with a soft hole in it
   above that, and a barely-there copy of the code on top of both. Moving the
   hole reveals the bright layer underneath. */
.hero__code {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.8;
  font-feature-settings: "calt" 0, "liga" 0;
  letter-spacing: 0;
}

.code-cols {
  position: absolute;
  inset: 92px 0 0 0;
  display: flex;
  gap: 72px;
  padding-inline: var(--gutter);
  justify-content: center;
}

.code-cols pre {
  margin: 0;
  font: inherit;
  white-space: pre;
  flex-shrink: 0;
}

.code-cols--lit {
  color: rgba(255, 255, 255, 0.5);
  opacity: 0.62;
}

.code-cols--dim {
  z-index: 2;
  color: rgba(255, 255, 255, 0.05);
}

.hero__lamp {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 3000px;
  height: 3000px;
  margin: -1500px 0 0 -1500px;
  background: radial-gradient(circle at center, rgba(19, 20, 24, 0) 0, rgba(19, 20, 24, 0.35) 110px, rgba(19, 20, 24, 0.86) 210px, var(--bg) 300px);
  will-change: transform;
}

/* Soft edges so the texture dissolves into the page rather than ending. */
.hero__code::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    linear-gradient(180deg, var(--bg) 0%, rgba(19, 20, 24, 0) 18%, rgba(19, 20, 24, 0) 62%, var(--bg) 96%),
    linear-gradient(90deg, rgba(19, 20, 24, 0.86) 0%, rgba(19, 20, 24, 0.72) 34%, rgba(19, 20, 24, 0) 64%);
}

/* On phones the text spans the full width, so a wandering lamp would always
   be behind a sentence. The texture stays; the light goes. */
@media (max-width: 700px) {
  .code-cols--lit,
  .hero__lamp {
    display: none;
  }

  .code-cols--dim {
    color: rgba(255, 255, 255, 0.04);
  }
}

/* Xcode's default dark palette, dimmed. */
.tok-k { color: #ff7ab2; }
.tok-t { color: #dabaff; }
.tok-f { color: #67b7a4; }
.tok-s { color: #ff8170; }
.tok-n { color: #d9c97c; }
.tok-c { color: #7f8c98; font-style: italic; }
.tok-a { color: #fd8f3f; }
.tok-p { color: #6bdfff; }

.hero__glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 78% 18%, rgba(41, 151, 255, 0.12), transparent 70%),
    radial-gradient(40% 40% at 8% 90%, rgba(167, 139, 250, 0.07), transparent 70%);
}

.hero__inner {
  position: relative;
}

.hero__status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 36px;
  padding: 0 16px 0 14px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
}

.hero__status-sep {
  width: 1px;
  height: 14px;
  background: var(--line-2);
}

.hero__title {
  margin-top: 30px;
  font-size: clamp(52px, 9vw, 128px);
  line-height: 0.96;
  letter-spacing: -0.055em;
  font-weight: 650;
}

.hero__line {
  display: block;
}

.hero__line--sub {
  color: var(--fg-4);
  color: #5d5e66;
}

.hero__rotate {
  color: var(--fg);
}

.rotator {
  display: inline-grid;
  vertical-align: top;
}

.rotator__word {
  grid-area: 1 / 1;
  white-space: nowrap;
  opacity: 0;
  transform: translate3d(0, 0.5em, 0);
  filter: blur(10px);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.9s var(--ease-out),
    filter 0.7s var(--ease-out);
}

.rotator__word.is-current {
  opacity: 1;
  transform: none;
  filter: none;
}

.rotator__word.is-leaving {
  opacity: 0;
  transform: translate3d(0, -0.45em, 0);
  filter: blur(10px);
}

.hero__lede {
  max-width: 640px;
  margin-top: 36px;
}

.hero__lede .link--plain {
  color: var(--fg);
  background-image: linear-gradient(var(--rc), var(--rc));
  background-size: 100% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
}

.hero__lede .link--plain:hover {
  color: var(--rc-400);
}

.hero__cta {
  margin-top: 40px;
}

/* ── Dock ────────────────────────────────────────────────────────────────── */

.dock-wrap {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 5;
  transform: translateX(-50%);
  max-width: calc(100vw - 24px);
}

.js .dock-wrap {
  animation: dock-in 1.2s var(--ease-out) 0.7s both;
}

@keyframes dock-in {
  from {
    opacity: 0;
    transform: translate3d(-50%, 40px, 0);
    filter: blur(6px);
  }
}

.dock {
  --base: 54px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: calc(var(--base) + 20px);
  padding: 10px 12px;
  border-radius: 24px;
  background: rgba(34, 35, 42, 0.55);
}

.dock__item {
  --size: var(--base);
  position: relative;
  display: block;
  flex-shrink: 0;
  width: var(--size);
  height: var(--size);
  border-radius: 23%;
  transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out);
}

.dock.is-magnifying .dock__item {
  transition: none;
}

.dock__img,
.dock__tile {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 23%;
  object-fit: cover;
  box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.7), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.dock__tile {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.dock__tile .i {
  width: 46%;
  height: 46%;
}

.dock__tile--bomb {
  background: radial-gradient(circle at 50% 35%, #ffb04d, #ff7a00 70%);
}

.dock__tile--bomb img {
  width: 74%;
  height: 74%;
  image-rendering: pixelated;
}

.dock__tile--rpt {
  background: linear-gradient(160deg, #ffffff, #e9ecef);
  color: #101114;
  font-weight: 750;
  font-size: calc(var(--size) * 0.5);
  letter-spacing: -0.06em;
  line-height: 1;
}

.dock__tile--rpt span {
  transform: translate(-6%, -6%);
}

.dock__tile--rpt i {
  position: absolute;
  right: 22%;
  bottom: 24%;
  width: 16%;
  height: 16%;
  border-radius: 50%;
  background: #10b981;
}

.dock__tile--recipe {
  background: linear-gradient(160deg, #8fe39b, #2f9e55);
  color: #fff;
}

.dock__tile--journal {
  background: linear-gradient(160deg, #b9a4ff, #6d4fe0);
  color: #fff;
}

.dock__tile--wp {
  background: linear-gradient(160deg, #6cc0ff, #1f6fd1);
  color: #fff;
}

.dock__tile--rant {
  background: linear-gradient(160deg, #f0c48a, #b97a35);
  color: #2b1d0e;
}

.dock__tile--cv {
  background: linear-gradient(160deg, #a5b4fc, #4f46e5);
  color: #fff;
}

.dock__tile--util {
  background: linear-gradient(160deg, #3a3b43, #1f2025);
  color: var(--fg);
}

.dock__tile--util .i {
  width: 40%;
  height: 40%;
}

.dock__sep {
  align-self: center;
  width: 1px;
  height: 42px;
  margin: 0 2px;
  background: var(--line-2);
  flex-shrink: 0;
}

.dock__dot {
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  transform: translateX(-50%);
}

/* The label bubble, macOS style. */
.dock__item::after {
  content: attr(data-label);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 14px);
  padding: 5px 11px;
  border-radius: 8px;
  background: rgba(40, 41, 48, 0.92);
  border: 1px solid var(--line-2);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--fg);
  opacity: 0;
  transform: translate(-50%, 4px);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.3s var(--ease-out);
}

.dock__item:hover::after,
.dock__item:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.dock__item.is-launching {
  animation: dock-bounce 0.62s var(--ease-in-out);
}

@keyframes dock-bounce {
  0%, 100% { transform: translateY(0); }
  30% { transform: translateY(-22px); }
  55% { transform: translateY(0); }
  75% { transform: translateY(-8px); }
}

@media (max-width: 640px) {
  .dock {
    --base: 42px;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 20px;
  }

  .dock__sep,
  .dock__item--util {
    display: none;
  }

  .hero {
    padding-bottom: 150px;
  }
}

/* Seven apps still fit a 360-pt phone. */
@media (max-width: 400px) {
  .dock {
    --base: 37px;
    gap: 7px;
    padding: 8px;
  }
}

/* ── Proof strip ─────────────────────────────────────────────────────────── */

.proof {
  position: relative;
  padding: 22px 0;
  border-block: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.012), rgba(255, 255, 255, 0));
}

.proof .marquee__track {
  align-items: center;
}

.proof li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--fg-2);
  white-space: nowrap;
}

.proof li .i {
  font-size: 17px;
  color: var(--fg-3);
}

/* ── Flagship (RideCheck) ───────────────────────────────────────────────── */

.flagship {
  --mx: 70%;
  --my: 30%;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  min-height: 640px;
  border-radius: var(--r-xl);
  overflow: hidden;
  isolation: isolate;
  background: var(--rc-ink);
  border: 1px solid rgba(125, 196, 255, 0.14);
  box-shadow: 0 60px 120px -60px rgba(20, 80, 160, 0.45);
  transition: border-color 0.6s var(--ease-out), box-shadow 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.flagship:hover {
  border-color: rgba(125, 196, 255, 0.3);
  box-shadow: 0 70px 140px -60px rgba(30, 110, 210, 0.6);
}

.flagship__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(700px circle at var(--mx) var(--my), rgba(74, 163, 245, 0.14), transparent 55%),
    radial-gradient(70% 90% at 80% 10%, rgba(74, 163, 245, 0.22), transparent 60%),
    radial-gradient(50% 60% at 0% 100%, rgba(125, 196, 255, 0.08), transparent 70%);
}

.flagship__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(125, 196, 255, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(125, 196, 255, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(60% 70% at 75% 40%, #000, transparent 75%);
  mask-image: radial-gradient(60% 70% at 75% 40%, #000, transparent 75%);
}

.flagship__copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 4.5vw, 60px);
}

.flagship__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.flagship__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.8), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.flagship__name {
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.flagship__kind {
  margin-top: 3px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.flagship__chip {
  margin-left: auto;
  background: rgba(48, 209, 88, 0.1);
  border-color: rgba(48, 209, 88, 0.25);
  color: #7ee79b;
}

.flagship__chip .status-dot {
  width: 6px;
  height: 6px;
}

.flagship__title {
  margin-top: clamp(36px, 5vw, 64px);
  font-size: clamp(38px, 4.6vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.047em;
  font-weight: 650;
}

.flagship__title span {
  color: rgba(255, 255, 255, 0.42);
}

.flagship__desc {
  margin-top: 22px;
  max-width: 470px;
  font-size: 17px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.6);
}

.flagship__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: auto;
  padding-top: 40px;
}

.flagship__stats > div {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  padding-top: 16px;
  border-top: 1px solid rgba(125, 196, 255, 0.16);
}

.flagship__stats dt {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.45);
}

.flagship__stats dd {
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 650;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.flagship__cta {
  margin-top: 32px;
  color: var(--rc-400);
}

.flagship:hover .flagship__cta .i {
  transform: translateX(4px);
}

.flagship__visual {
  position: relative;
  z-index: 1;
  min-height: 520px;
}

.flagship__phone {
  position: absolute;
  bottom: -9%;
  left: 50%;
  width: min(42%, 270px);
  filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.6));
  transition: transform 1.1s var(--ease-out);
  will-change: transform;
}

.flagship__phone--c {
  z-index: 3;
  transform: translate(-50%, -4%);
}

.flagship__phone--l {
  z-index: 2;
  transform: translate(-118%, 6%) rotate(-7deg) scale(0.88);
}

.flagship__phone--r {
  z-index: 2;
  transform: translate(18%, 6%) rotate(7deg) scale(0.88);
}

.flagship:hover .flagship__phone--c {
  transform: translate(-50%, -9%);
}

.flagship:hover .flagship__phone--l {
  transform: translate(-132%, 3%) rotate(-10deg) scale(0.88);
}

.flagship:hover .flagship__phone--r {
  transform: translate(32%, 3%) rotate(10deg) scale(0.88);
}

@media (max-width: 960px) {
  .flagship {
    grid-template-columns: minmax(0, 1fr);
  }

  .flagship__visual {
    min-height: 440px;
  }

  .flagship__phone {
    width: min(38%, 220px);
  }
}

@media (max-width: 560px) {
  .flagship__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flagship__visual {
    min-height: 360px;
  }

  .flagship__phone {
    width: 42%;
  }

  .flagship__chip {
    display: none;
  }
}

/* ── Work grid ───────────────────────────────────────────────────────────── */

.work-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.work-card {
  display: flex;
  flex-direction: column;
  min-height: 600px;
}

/* Ranked: wide and narrow cards alternate, so the order reads left to right. */
.work-card--rl { grid-column: span 7; }
.work-card--wp { grid-column: span 5; }
.work-card--rpt { grid-column: span 5; }
.work-card--rant { grid-column: span 7; }
.work-card--yt { grid-column: span 7; }
.work-card--cv { grid-column: span 5; }

/* The Academy projects: a quieter two-by-two. */
.work-grid--academy {
  margin-top: 44px;
}

.work-grid--academy .work-card {
  grid-column: span 6;
  min-height: 520px;
}

@media (max-width: 960px) {
  .work-grid > .work-card,
  .work-grid--academy .work-card {
    grid-column: span 12;
  }
}

.work-card__head {
  position: relative;
  z-index: 2;
  padding: clamp(24px, 3vw, 36px) clamp(24px, 3vw, 36px) 0;
}

.work-card__kind {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
  padding-right: 56px;
}

.work-card__wip {
  color: var(--journal);
}

.work-card__title {
  margin-top: 16px;
  font-size: clamp(28px, 2.8vw, 36px);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.work-card__line {
  margin-top: 12px;
  max-width: 470px;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--fg-2);
}

.work-card__art {
  position: relative;
  flex: 1;
  min-height: 300px;
  margin-top: 28px;
  overflow: hidden;
}

.work-card__go {
  position: absolute;
  top: clamp(20px, 2.6vw, 30px);
  right: clamp(20px, 2.6vw, 30px);
  z-index: 4;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line-2);
  color: var(--fg-2);
  transition: background-color 0.4s, color 0.4s, transform 0.6s var(--ease-spring);
}

.work-card__go .i {
  font-size: 17px;
}

.work-card:hover .work-card__go {
  background: var(--fg);
  color: #000;
  transform: rotate(45deg);
}

/* SwiSekai: a Mac window over a warm aurora. */
.art-swi__glow {
  position: absolute;
  inset: 10% -10% -30% 10%;
  background:
    radial-gradient(50% 55% at 40% 60%, rgba(255, 122, 61, 0.42), transparent 70%),
    radial-gradient(45% 50% at 75% 45%, rgba(242, 84, 143, 0.34), transparent 70%);
  filter: blur(20px);
  transition: transform 1.2s var(--ease-out), opacity 0.8s;
  opacity: 0.75;
}

.art-swi__win {
  position: absolute;
  left: 9%;
  right: -12%;
  top: 8%;
  transform: perspective(1600px) rotateX(8deg) rotateY(-10deg) rotateZ(1deg);
  transform-origin: 20% 50%;
  transition: transform 1.1s var(--ease-out);
}

/* A real window capture, corners and traffic lights included. */
.art-swi__win img {
  width: 100%;
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 1px rgba(255, 255, 255, 0.25));
}

.art-swi__icon {
  position: absolute;
  left: 5%;
  bottom: 8%;
  z-index: 2;
  width: 84px;
  height: 84px;
  border-radius: 21px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7);
  transform: rotate(-8deg);
  transition: transform 0.9s var(--ease-spring);
}

.work-card--swi:hover .art-swi__win {
  transform: perspective(1600px) rotateX(3deg) rotateY(-4deg) translateY(-10px);
}

.work-card--swi:hover .art-swi__icon {
  transform: rotate(4deg) translateY(-10px) scale(1.08);
}

.work-card--swi:hover .art-swi__glow {
  transform: scale(1.1);
  opacity: 1;
}

/* BomBocLat: an arcade screen, and a bomb with a live fuse. */
.work-card--bomb {
  background: linear-gradient(180deg, rgba(255, 138, 0, 0.1), rgba(255, 138, 0, 0) 55%), var(--surface);
}

.art-bomb {
  display: grid;
  place-items: center;
  margin: 28px clamp(20px, 2.6vw, 30px) clamp(20px, 2.6vw, 30px);
  border-radius: 20px;
  background: radial-gradient(circle at 50% 42%, #ffa53a, #ff7c00 58%, #e25f00);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15), inset 0 -40px 80px rgba(160, 50, 0, 0.35);
}

.art-bomb__grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(0, 0, 0, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 0, 0, 0.07) 1px, transparent 1px);
  background-size: 12px 12px;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000, transparent 80%);
  mask-image: radial-gradient(circle at 50% 50%, #000, transparent 80%);
}

.art-bomb__bomb {
  position: relative;
  width: min(62%, 240px);
  image-rendering: pixelated;
  filter: drop-shadow(0 18px 0 rgba(120, 40, 0, 0.35));
  animation: bomb-idle 2.6s var(--ease-in-out) infinite;
}

@keyframes bomb-idle {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(-2deg); }
}

.work-card--bomb:hover .art-bomb__bomb {
  animation: bomb-shake 0.35s steps(2) infinite;
}

@keyframes bomb-shake {
  0% { transform: translate(0, 0) rotate(0); }
  25% { transform: translate(-3px, 1px) rotate(-3deg); }
  50% { transform: translate(3px, -2px) rotate(2deg); }
  75% { transform: translate(-2px, 2px) rotate(-1deg); }
}

.art-bomb__spark {
  position: absolute;
  top: 26%;
  left: 62%;
  width: 16px;
  height: 16px;
  background:
    linear-gradient(#fff6c2, #fff6c2) 6px 0 / 4px 16px no-repeat,
    linear-gradient(#fff6c2, #fff6c2) 0 6px / 16px 4px no-repeat;
  filter: drop-shadow(0 0 6px #ffe066);
  animation: spark 0.28s steps(2) infinite;
}

@keyframes spark {
  50% { transform: scale(0.6) rotate(45deg); opacity: 0.7; }
}

.art-bomb__press {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Silkscreen", var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: #fff;
  text-shadow: 2px 2px 0 rgba(120, 40, 0, 0.6);
  animation: blink 1.2s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* Reporthink: the editor in a browser. */
.work-card--rpt {
  background: linear-gradient(180deg, rgba(52, 211, 153, 0.07), rgba(52, 211, 153, 0) 50%), var(--surface);
}

.art-rpt__browser {
  position: absolute;
  left: clamp(20px, 2.6vw, 30px);
  right: -30%;
  top: 6%;
  transform-origin: 0 0;
  transition: transform 1.1s var(--ease-out);
}

.work-card--rpt:hover .art-rpt__browser {
  transform: translate(-6%, -4%) scale(1.02);
}

/* RideLens: three real exports, fanned, with the app beside them. */
.work-card--rl {
  background: linear-gradient(180deg, rgba(62, 167, 253, 0.08), rgba(62, 167, 253, 0) 55%), var(--surface);
}

.art-rl__glow {
  position: absolute;
  inset: 25% 5% -25%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(62, 167, 253, 0.32), transparent 70%);
  filter: blur(24px);
}

.art-rl {
  min-height: 380px;
}

.art-rl__p {
  position: absolute;
  left: 50%;
  bottom: -20%;
  width: clamp(124px, 30%, 215px);
  height: auto;
  border-radius: 14px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: transform 1.1s var(--ease-out);
}

.art-rl__p--c {
  z-index: 2;
  transform: translate(-50%, 0);
}

.art-rl__p--l {
  transform: translate(-130%, 9%) rotate(-9deg);
}

.art-rl__p--r {
  transform: translate(30%, 9%) rotate(9deg);
}

.work-card--rl:hover .art-rl__p--c {
  transform: translate(-50%, -5%);
}

.work-card--rl:hover .art-rl__p--l {
  transform: translate(-142%, 5%) rotate(-12deg);
}

.work-card--rl:hover .art-rl__p--r {
  transform: translate(42%, 5%) rotate(12deg);
}

.art-rl__icon {
  position: absolute;
  left: clamp(20px, 2.6vw, 30px);
  bottom: 22px;
  z-index: 3;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7);
  transform: rotate(-8deg);
  transition: transform 0.9s var(--ease-spring);
}

.work-card--rl:hover .art-rl__icon {
  transform: rotate(4deg) translateY(-8px) scale(1.06);
}

@media (max-width: 520px) {
  .work-card--rl {
    min-height: 0;
  }

  .art-rl {
    min-height: 270px;
  }

  .art-rl__p {
    width: 34%;
    bottom: -14%;
  }

  .art-rl__icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
  }
}

/* Waypoint: a raw paste, and what Claude makes of it. Invented example. */
.work-card--wp {
  background: linear-gradient(180deg, rgba(74, 163, 245, 0.07), rgba(74, 163, 245, 0) 50%), var(--surface);
}

.art-wp {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 0 clamp(20px, 2.6vw, 30px) clamp(20px, 2.6vw, 30px);
}

.art-wp__raw {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px dashed var(--line-2);
  transform: rotate(-1.2deg);
}

.art-wp__raw p {
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--fg-3);
}

.art-wp__av {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--c);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.art-wp__step {
  display: inline-flex;
  align-self: center;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8cc8ff;
}

.art-wp__card {
  padding: 16px 16px 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, #1b2131, #161a25);
  border: 1px solid rgba(74, 163, 245, 0.3);
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.8), 0 0 40px -12px rgba(74, 163, 245, 0.3);
  transition: transform 0.9s var(--ease-out);
}

.work-card--wp:hover .art-wp__card {
  transform: translateY(-6px);
}

.art-wp__t {
  font-size: 15.5px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.art-wp__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.art-wp__chips span {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 550;
  color: var(--k);
  background: color-mix(in srgb, var(--k) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--k) 35%, transparent);
}

.art-wp__task {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: #6ee7b7;
}

/* A place to rant: a closed chapter, in the browser. */
.work-card--rant {
  background: linear-gradient(180deg, rgba(216, 165, 102, 0.08), rgba(216, 165, 102, 0) 50%), var(--surface);
}

.art-rant__browser {
  position: absolute;
  left: clamp(20px, 2.6vw, 30px);
  right: -16%;
  top: 6%;
  transform-origin: 0 0;
  transition: transform 1.1s var(--ease-out);
}

.work-card--rant:hover .art-rant__browser {
  transform: translate(-5%, -4%) scale(1.02);
}

/* YT Playlist Downloader: the phone's own progress notification. */
.work-card--yt {
  background: linear-gradient(180deg, rgba(224, 137, 154, 0.08), rgba(224, 137, 154, 0) 55%), var(--surface);
}

.art-yt {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: center;
  align-items: center;
  gap: 22px;
  padding: 0 clamp(24px, 3vw, 36px) clamp(24px, 3vw, 36px);
}

.art-yt__icon {
  width: 108px;
  height: 108px;
  border-radius: 26px;
  box-shadow: 0 22px 44px -14px rgba(0, 0, 0, 0.75);
  transform: rotate(-6deg);
  transition: transform 0.9s var(--ease-spring);
}

.work-card--yt:hover .art-yt__icon {
  transform: rotate(3deg) translateY(-6px);
}

.art-yt__notif {
  padding: 14px 16px 16px;
  border-radius: 22px;
  background: #2b2427;
  color: #f4e9ec;
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.8), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.art-yt__top {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #c9b8bd;
}

.art-yt__dot {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e0899a;
  color: #2a1418;
}

.art-yt__dot .i {
  font-size: 11px;
}

.art-yt__song {
  margin-top: 10px;
  font-size: 16px;
  font-weight: 650;
}

.art-yt__meta {
  font-size: 13px;
  color: #c9b8bd;
}

.art-yt__bar {
  display: block;
  height: 4px;
  margin-top: 12px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.art-yt__bar i {
  display: block;
  width: 62%;
  height: 100%;
  border-radius: inherit;
  background: #e0899a;
  transition: width 1.6s var(--ease-out);
}

.work-card--yt:hover .art-yt__bar i {
  width: 100%;
}

.art-yt__list {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
}

.art-yt__list li {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
}

.art-yt__list b {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
}

.art-yt__list span {
  font-size: 12.5px;
  color: var(--fg-3);
}

@media (max-width: 520px) {
  .art-yt__icon {
    width: 76px;
    height: 76px;
    border-radius: 18px;
  }

  .art-yt__list {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* CV Maker: the page, the paywall it skips, and the button that matters. */
.work-card--cv {
  background: linear-gradient(180deg, rgba(129, 140, 248, 0.08), rgba(129, 140, 248, 0) 55%), var(--surface);
}

.art-cv__page {
  position: absolute;
  left: 50%;
  top: 4%;
  width: min(62%, 250px);
  aspect-ratio: 210 / 297;
  padding: 22px 20px;
  border-radius: 6px;
  background: #fbfaf7;
  color: #1a1b20;
  box-shadow: 0 40px 70px -30px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: translateX(-50%) rotate(-3deg);
  transition: transform 1s var(--ease-out);
}

.work-card--cv:hover .art-cv__page {
  transform: translateX(-50%) rotate(0deg) translateY(-8px);
}

.art-cv__name {
  font-family: "Iowan Old Style", "Palatino", Georgia, serif;
  font-size: 19px;
  font-weight: 700;
}

.art-cv__role {
  margin-top: 3px;
  font-size: 10.5px;
  color: #6b6f7b;
}

.art-cv__rule {
  display: block;
  height: 1px;
  margin: 12px 0 4px;
  background: #d9d7d0;
}

.art-cv__h {
  margin: 10px 0 2px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #4f46e5;
}

.art-cv__l {
  display: block;
  height: 6px;
  margin-top: 6px;
  border-radius: 3px;
  background: #e6e4de;
}

.art-cv__l--s {
  width: 64%;
}

.art-cv__price,
.art-cv__export {
  position: absolute;
  bottom: clamp(20px, 2.6vw, 30px);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  font-size: 13px;
}

.art-cv__price {
  left: clamp(20px, 2.6vw, 30px);
  padding: 7px 13px;
  background: rgba(20, 21, 26, 0.88);
  border: 1px solid var(--line-2);
  transform: rotate(-4deg);
}

.art-cv__price s {
  color: #f87171;
}

.art-cv__price b {
  font-weight: 650;
  color: #86efac;
}

.art-cv__export {
  right: clamp(20px, 2.6vw, 30px);
  padding: 10px 16px;
  background: #6366f1;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 16px 30px -12px rgba(99, 102, 241, 0.7);
}

/* Recipe: three screens fanned like cards in a hand. */
.work-card--recipe {
  background: linear-gradient(180deg, rgba(123, 216, 143, 0.07), rgba(123, 216, 143, 0) 50%), var(--surface);
}

.art-recipe__p {
  position: absolute;
  left: 50%;
  bottom: -18%;
  transition: transform 1.1s var(--ease-out);
}

.art-recipe__p--2 {
  z-index: 2;
  transform: translate(-50%, 0);
}

.art-recipe__p--1 {
  transform: translate(-150%, 8%) rotate(-8deg);
}

.art-recipe__p--3 {
  transform: translate(50%, 8%) rotate(8deg);
}

.work-card--recipe:hover .art-recipe__p--2 {
  transform: translate(-50%, -6%);
}

.work-card--recipe:hover .art-recipe__p--1 {
  transform: translate(-168%, 5%) rotate(-12deg);
}

.work-card--recipe:hover .art-recipe__p--3 {
  transform: translate(68%, 5%) rotate(12deg);
}

/* AI Journal: a quiet page and an on-device insight. */
.work-card--journal {
  background:
    radial-gradient(60% 120% at 100% 50%, rgba(167, 139, 250, 0.14), transparent 60%),
    var(--surface);
}

.art-journal {
  display: grid;
  place-items: center;
  margin: 0;
  padding: clamp(20px, 3vw, 40px);
  min-height: 320px;
}

.art-journal__page {
  position: relative;
  width: min(100%, 460px);
  padding: 26px 28px 24px;
  border-radius: 22px;
  background: linear-gradient(180deg, #f6f4ef, #ece8df);
  color: #25232b;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 8px rgba(255, 255, 255, 0.04);
  transform: rotate(-1.5deg);
  transition: transform 1s var(--ease-out);
}

.work-card--journal:hover .art-journal__page {
  transform: rotate(0deg) translateY(-6px);
}

.art-journal__date {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #8a8594;
}

.art-journal__text {
  margin-top: 10px;
  font-family: "Iowan Old Style", "Palatino", Georgia, serif;
  font-size: 18px;
  line-height: 1.5;
}

.art-journal__insight {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(109, 79, 224, 0.1);
  color: #4c35b5;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.art-journal__insight .i {
  margin-top: 1px;
  font-size: 17px;
}

.art-journal__chip {
  position: absolute;
  right: clamp(20px, 3vw, 44px);
  bottom: clamp(20px, 3vw, 36px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #d6ccff;
  background: rgba(167, 139, 250, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.3);
}

/* ── About teaser & toolkit ─────────────────────────────────────────────── */

.about {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.about__text {
  padding-top: 42px;
}

.about__text .arrow-link {
  display: inline-flex;
}

@media (max-width: 900px) {
  .about {
    grid-template-columns: minmax(0, 1fr);
  }

  .about__text {
    padding-top: 0;
  }
}

.toolkit {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: clamp(64px, 8vw, 110px);
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.toolkit__label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.toolkit__label .i {
  font-size: 16px;
  color: var(--accent);
}

.toolkit ul {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.toolkit li {
  font-size: 16px;
  color: var(--fg-2);
  transition: color 0.3s, transform 0.4s var(--ease-out);
}

.toolkit li:hover {
  color: var(--fg);
  transform: translateX(4px);
}

@media (max-width: 900px) {
  .toolkit {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 44px;
  }
}

/* ── The workshop: smaller things, no case study yet ─────────────────────── */

.lab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 16px;
  margin-top: 44px;
}

.lab-card {
  display: flex;
  flex-direction: column;
  padding: 26px 26px 20px;
}

.lab-card__top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lab-card__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 12px;
  color: var(--tone, var(--accent));
  background: color-mix(in srgb, var(--tone, var(--accent)) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--tone, var(--accent)) 26%, transparent);
  transition: transform 0.6s var(--ease-spring);
}

.lab-card:hover .lab-card__icon {
  transform: translateY(-2px) rotate(-6deg);
}

.lab-card__icon .i {
  font-size: 19px;
}

.lab-card__top h3 {
  font-size: 17.5px;
  letter-spacing: -0.02em;
}

.lab-card__kind {
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.lab-card__desc {
  margin-top: 16px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--fg-2);
}

.lab-card__stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}

.lab-card__stack span {
  padding: 4px 9px;
  border-radius: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-3);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
}

/* The real app icon, where the project has one. */
.lab-card__app {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 11px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: transform 0.6s var(--ease-spring);
}

.lab-card:hover .lab-card__app {
  transform: translateY(-2px) rotate(-6deg);
}

.lab-card__wip {
  color: var(--amber);
}

.lab-card__go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 20px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--tone, var(--accent));
}

.lab-card__go .i {
  transition: transform 0.45s var(--ease-out);
}

.lab-card:hover .lab-card__go .i {
  transform: translateX(4px);
}
