/* Wireframe 3a (desktop) / 3b (mobile) - the one-pager. */

/* The hero ground (grid, aura, pointer spot, grain, veil) and its entrance stagger
   live in base.css, shared with the project page hero. */

/* ---------- layout ---------- */

.hero__in > * { min-width: 0; }

.hero__in {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  padding-block: 52px 30px;
  min-height: 460px;
}

.hero__id { display: flex; gap: 30px; align-items: flex-start; }

/* ---------- portrait ---------- */

.hero__portrait { position: relative; flex: none; }

.hero__photo {
  width: 132px; height: 132px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  object-fit: cover;
  background: var(--fill);
  box-shadow: 0 0 0 0 var(--accent-wash), var(--hero-shadow);
  transition: transform .45s cubic-bezier(.2, .8, .3, 1), box-shadow .45s cubic-bezier(.2, .8, .3, 1);
}
.hero__portrait:hover .hero__photo {
  transform: translateY(-3px) scale(1.015);
  box-shadow: 0 0 0 9px var(--accent-wash), var(--hero-shadow);
}

/* Availability signal — rendered only when data.js says so. */
.hero__avail {
  position: absolute;
  right: 5px; bottom: 5px;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--ground);
  cursor: default;
}
.hero__avail::before {
  content: "";
  position: absolute; inset: -2px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  animation: hero-ping 2.8s cubic-bezier(.2, .7, .3, 1) infinite;
}

@keyframes hero-ping {
  0% { transform: scale(1); opacity: .85; }
  70%, 100% { transform: scale(2.1); opacity: 0; }
}

/* ---------- copy ---------- */

.hero__text { display: flex; flex-direction: column; gap: 16px; max-width: 580px; }

.hero__name {
  font: 800 clamp(42px, 6.6vw, 64px)/.84 Archivo, sans-serif;
  letter-spacing: -.04em;
  text-transform: uppercase;
  margin: 0;
}

.hero__tags { display: flex; gap: 8px; flex-wrap: wrap; }
.hero__tags .pill {
  transition: border-color .2s ease, transform .2s ease, background-color .2s ease;
}
.hero__tags .pill:hover { transform: translateY(-1px); border-color: var(--accent); }

/* Language flags: real colours, so no fill: currentColor like .pill__icon. */
.pill__flag {
  width: 16px; height: 11px;
  flex: none;
  border-radius: 2px;
  margin-left: -2px;
  box-shadow: 0 0 0 1px var(--line);
}

.hero__bio-wrap { display: flex; flex-direction: column; gap: 9px; align-items: flex-start; }

.hero__bio { max-width: 560px; }

/* Collapsed state is added by script, so a page without JS still shows
   the whole paragraph rather than a permanently cut-off one. */
.hero__bio.is-clamped {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}
/* Only while the toggle is mid-flight; otherwise the paragraph is
   left to size itself. */
.hero__bio.is-sliding {
  overflow: hidden;
  transition: max-height .42s cubic-bezier(.4, 0, .2, 1);
}

.hero__more {
  display: inline-flex; align-items: center; gap: 6px;
  align-self: start;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0 0 2px;
  font: 700 11px Archivo, sans-serif; letter-spacing: .08em; text-transform: uppercase;
  color: var(--fg-dim);
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease;
}
.hero__more:hover { color: var(--accent-text); border-color: var(--accent); }
.hero__more-i {
  width: 11px; height: 11px;
  fill: currentColor;
  transition: transform .32s cubic-bezier(.2, .8, .3, 1);
}
.hero__more[aria-expanded="true"] .hero__more-i { transform: rotate(180deg); }

/* ---------- actions ---------- */

.hero__actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 2px; }

/* Lift, press and the primary light sweep are shared by every .btn (base.css). */
/* The contact row repeats the hero's actions, so it shares their hover and tooltips. */
:is(.hero, .contact) .btn--icon:hover { background: var(--accent-wash); border-color: var(--accent); color: var(--accent-text); }

.hero__cta-i {
  width: 15px; height: 15px;
  fill: currentColor;
  transition: transform .28s cubic-bezier(.2, .8, .3, 1);
}
.hero__cta:hover .hero__cta-i { transform: scale(1.15); }

.hero__copy .hero__copy-ok { display: none; }
.hero__copy.is-done { border-color: var(--accent); background: var(--accent-wash); color: var(--accent-text); }
.hero__copy.is-done .hero__copy-i { display: none; }
.hero__copy.is-done .hero__copy-ok { display: block; animation: hero-pop .32s cubic-bezier(.2, .8, .3, 1); }

@keyframes hero-pop {
  0% { transform: scale(.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* ---------- ask my AI ---------- */

.hero__ask { margin-top: 10px; max-width: 560px; }

/* ---------- scroll cue ---------- */

.hero__scroll {
  display: inline-flex;
  align-self: start;
  justify-self: start;
  grid-column: 1 / -1;
  text-decoration: none;
  color: var(--fg-dim);
  margin-top: auto;
  background: var(--hero-surface);
  transition: opacity .35s ease, transform .28s cubic-bezier(.2, .8, .3, 1),
              border-color .2s ease, color .2s ease, visibility .35s;
}
.hero__scroll:hover { border-color: var(--accent); color: var(--accent-text); transform: translateY(2px); }
.hero__scroll-i { transition: transform .5s cubic-bezier(.2, .8, .3, 1); }
.hero__scroll:hover .hero__scroll-i { transform: translateY(3px); }
.hero__scroll.is-gone { opacity: 0; visibility: hidden; transform: translateY(8px); }

@media (prefers-reduced-motion: no-preference) {
  .hero__scroll-i { animation: hero-nudge 2.6s ease-in-out infinite; }
}
@keyframes hero-nudge {
  0%, 72%, 100% { transform: translateY(0); }
  84% { transform: translateY(3px); }
}

/* ---------- tooltips (hero and contact) ---------- */

/* The tooltip colours live on .hero in base.css; the contact section needs its own copy. */
.contact {
  --hero-pop: #1d2b24;
  --hero-shadow: 0 20px 44px -32px rgba(0, 0, 0, .95);
}
[data-theme="light"] .contact {
  --hero-pop: #fffdf7;
  --hero-shadow: 0 20px 44px -34px rgba(74, 52, 16, .5);
}

:where(:is(.hero, .contact) [data-tip]) { position: relative; }

@media (hover: hover) and (pointer: fine) {
  :is(.hero, .contact) [data-tip]::after {
    content: attr(data-tip);
    position: absolute;
    left: 50%; bottom: calc(100% + 9px);
    transform: translate(-50%, 4px);
    z-index: 6;
    padding: 5px 9px;
    background: var(--hero-pop);
    color: var(--fg);
    border: 1px solid var(--line);
    border-radius: 4px;
    box-shadow: var(--hero-shadow);
    font: 600 11px/1.2 Archivo, sans-serif;
    letter-spacing: .03em;
    text-transform: none;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
  }
  :is(.hero, .contact) [data-tip]:hover::after,
  :is(.hero, .contact) [data-tip]:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
}

/* ═══════════════════════════════════════════════════════════════
   github: live activity, in the hero
   ═══════════════════════════════════════════════════════════════ */

.gh {
  position: relative;
  min-width: 0;
  display: flex; flex-direction: column; gap: 12px;
  padding: 15px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--hero-surface);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: var(--hero-shadow);
  --gh-gap: clamp(2px, .28vw, 4px);
  scroll-margin-top: 78px;
  transition: border-color .3s ease;
}
.gh:hover { border-color: var(--line); }

.gh__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}
.gh__head-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.gh__handle {
  font: 700 11px Archivo, sans-serif; letter-spacing: .08em; text-transform: uppercase;
  color: var(--fg-dim);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
  transition: color .2s ease, border-color .2s ease;
}
.gh__handle:hover { color: var(--accent-text); border-color: var(--accent); }

/* live indicator */
.gh__live {
  display: inline-flex; align-items: center; gap: 7px;
  font: 600 10px Archivo, sans-serif; letter-spacing: .08em; text-transform: uppercase;
  color: var(--fg-dim);
  border: 1px solid var(--line); border-radius: 20px;
  padding: 5px 11px;
  margin: 0;
  white-space: nowrap;
  transition: border-color .3s ease, color .3s ease;
}
.gh__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--fg-faint);
  flex: none;
}
.gh__live[data-state="on"] { border-color: var(--accent); color: var(--accent-text); }
.gh__live[data-state="on"] .gh__dot { background: var(--accent); animation: gh-pulse 2.4s ease-in-out infinite; }
.gh__live[data-state="loading"] .gh__dot { background: var(--accent); opacity: .6; animation: gh-pulse 1s ease-in-out infinite; }
.gh__live[data-state="stale"] .gh__dot { background: var(--fg-faint); }
.gh__live[data-state="off"] { opacity: .8; }

@keyframes gh-pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-wash); opacity: 1; }
  50% { box-shadow: 0 0 0 5px transparent; opacity: .55; }
}

/* manual poll */
.gh__refresh {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--fg-dim);
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease, transform .2s ease;
}
.gh__refresh svg { width: 13px; height: 13px; fill: currentColor; }
.gh__refresh:hover { color: var(--accent-text); border-color: var(--accent); background: var(--accent-wash); }
.gh__refresh:active { transform: scale(.92); }
.gh__refresh[disabled] { cursor: default; opacity: .7; }
.gh__refresh.is-busy svg { animation: gh-spin .9s linear infinite; }

@keyframes gh-spin { to { transform: rotate(360deg); } }

/* ---------- stat tiles ---------- */

.gh__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 8px;
}
.gh__stat {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  background: var(--hero-raised);
  padding: 9px 10px 8px;
  display: flex; flex-direction: column; gap: 1px;
  min-width: 0;
  transition: transform .26s cubic-bezier(.2, .8, .3, 1), border-color .26s ease, box-shadow .26s ease;
}
.gh__stat::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .34s cubic-bezier(.2, .8, .3, 1);
}
.gh__stat:hover { transform: translateY(-3px); border-color: var(--line); box-shadow: var(--hero-lift); }
.gh__stat:hover::after { transform: scaleX(1); }

.gh__stat-n {
  font: 800 clamp(17px, 1.4vw, 22px)/1 Archivo, sans-serif;
  letter-spacing: -.03em;
  color: var(--accent-text);
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.gh__stat-s { font-size: .62em; font-weight: 700; letter-spacing: 0; margin-left: 2px; }
.gh__stat-l {
  font: 700 9px Archivo, sans-serif; letter-spacing: .12em; text-transform: uppercase;
  margin: 0; color: var(--fg);
}
.gh__stat-h { font-size: 10px; color: var(--fg-faint); margin: 0; min-height: 14px; }

.gh__stat.is-bumped .gh__stat-n { animation: gh-bump .55s cubic-bezier(.2, .8, .3, 1); }
@keyframes gh-bump {
  0% { transform: none; }
  32% { transform: translateY(-3px) scale(1.07); }
  100% { transform: none; }
}

/* ---------- graph card ---------- */

.gh__card {
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  background: var(--hero-raised);
  padding: 12px;
  display: flex; flex-direction: column; gap: 10px;
  min-width: 0;
}

/* The wrapper carries the edge fades; the child does the scrolling. */
.gh__scrollwrap { position: relative; min-width: 0; }
.gh__scrollwrap::before,
.gh__scrollwrap::after {
  content: "";
  position: absolute; top: 0; bottom: 0; width: 34px;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s ease;
}
.gh__scrollwrap::before { left: 0; background: linear-gradient(to right, var(--hero-fade), transparent); }
.gh__scrollwrap::after { right: 0; background: linear-gradient(to left, var(--hero-fade), transparent); }
.gh__scrollwrap.has-start::before { opacity: 1; }
.gh__scrollwrap.has-end::after { opacity: 1; }

.gh__scroll { overflow-x: auto; overflow-y: hidden; padding-bottom: 4px; scrollbar-width: thin; }

/* One grid for the cells, one for the month labels, one for the weekday labels —
   all three share --gh-weeks and --gh-gap, so the columns line up. */
.gh__chart {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 5px 8px;
  min-width: 430px;
}

.gh__months {
  grid-area: 1 / 2;
  display: grid;
  grid-template-columns: repeat(var(--gh-weeks, 53), minmax(0, 1fr));
  gap: var(--gh-gap);
  font: 600 10px Archivo, sans-serif;
  color: var(--fg-faint);
}
.gh__months span { overflow: hidden; white-space: nowrap; }

.gh__days {
  grid-area: 2 / 1;
  display: grid;
  grid-template-rows: repeat(7, minmax(0, 1fr));
  gap: var(--gh-gap);
  font: 600 10px Archivo, sans-serif;
  color: var(--fg-faint);
}
/* Zero line-height: the labels centre on their row without making the
   column taller than the cells beside it. */
.gh__days span { display: flex; align-items: center; min-height: 0; line-height: 0; }

.gh__grid {
  grid-area: 2 / 2;
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(7, 1fr);
  grid-auto-columns: minmax(0, 1fr);
  gap: var(--gh-gap);
  /* Square-ish cells at any width, no magic pixel size. */
  aspect-ratio: calc(var(--gh-weeks, 53) / 7);
}

.gh__cell {
  position: relative;
  border-radius: 2px;
  background: var(--fill-strong);
  transition: background-color .25s ease, transform .18s cubic-bezier(.2, .8, .3, 1),
              box-shadow .18s ease, opacity .22s ease;
}
.gh__cell[data-level="1"] { background: rgba(255, 183, 77, .3); }
.gh__cell[data-level="2"] { background: rgba(255, 183, 77, .55); }
.gh__cell[data-level="3"] { background: rgba(255, 183, 77, .8); }
.gh__cell[data-level="4"] { background: var(--accent); }
.gh__cell.is-void { background: transparent; }
.gh__cell.is-today { outline: 1.5px solid var(--accent); outline-offset: 1px; }
.gh__cell.is-fresh { animation: gh-land 1.6s ease-out 3; }

.gh__grid .gh__cell:not(.is-void):hover,
.gh__grid .gh__cell.is-picked {
  transform: scale(1.5);
  box-shadow: 0 0 0 1px var(--accent);
  z-index: 3;
}

/* Legend hover isolates one intensity across the whole year. */
.gh__grid[data-dim] .gh__cell { opacity: .13; }
.gh__grid[data-dim="0"] .gh__cell[data-level="0"],
.gh__grid[data-dim="1"] .gh__cell[data-level="1"],
.gh__grid[data-dim="2"] .gh__cell[data-level="2"],
.gh__grid[data-dim="3"] .gh__cell[data-level="3"],
.gh__grid[data-dim="4"] .gh__cell[data-level="4"] { opacity: 1; }

/* First paint only: the year fills in left to right. */
@media (prefers-reduced-motion: no-preference) {
  .gh__grid.is-first .gh__cell {
    animation: gh-cell-in .42s cubic-bezier(.2, .8, .3, 1) backwards;
    animation-delay: calc(var(--col, 0) * 8ms);
  }
}
@keyframes gh-cell-in {
  from { opacity: 0; transform: scale(.4); }
  to { opacity: 1; transform: none; }
}

/* The dark-theme amber is too pale on the cream panel; go deeper in light mode
   so level 1 still separates from an empty day. */
[data-theme="light"] .gh__cell[data-level="1"] { background: rgba(138, 75, 0, .26); }
[data-theme="light"] .gh__cell[data-level="2"] { background: rgba(138, 75, 0, .5); }
[data-theme="light"] .gh__cell[data-level="3"] { background: rgba(138, 75, 0, .74); }
[data-theme="light"] .gh__cell[data-level="4"] { background: rgba(138, 75, 0, .95); }

@keyframes gh-land {
  0% { transform: scale(1); }
  35% { transform: scale(1.55); }
  100% { transform: scale(1); }
}

/* day tooltip */
.gh__tip {
  position: absolute;
  left: 0; top: 0;
  z-index: 8;
  padding: 6px 10px;
  background: var(--hero-pop);
  border: 1px solid var(--line);
  border-radius: 5px;
  box-shadow: var(--hero-shadow);
  font: 600 11px/1.35 Archivo, sans-serif;
  color: var(--fg);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity .16s ease;
}
.gh__tip.is-on { opacity: 1; }
.gh__tip b { color: var(--accent-text); font-weight: 800; }
.gh__tip span { display: block; color: var(--fg-faint); font-weight: 600; font-size: 10px; letter-spacing: .04em; }

.gh__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  border-top: 1px solid var(--line-soft);
  padding-top: 10px;
  margin-top: auto;
}
.gh__legend { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--fg-faint); margin: 0; }
.gh__legend .gh__cell {
  width: 11px; height: 11px;
  padding: 0;
  border: 0;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.gh__legend .gh__cell:hover,
.gh__legend .gh__cell.is-on { transform: scale(1.25); box-shadow: 0 0 0 1px var(--accent); }

/* Between the mobile breakpoint and a comfortable two-column hero, the panel
   drops under the identity block rather than squeezing both. */
@media (max-width: 1240px) {
  .hero__in { grid-template-columns: minmax(0, 1fr); gap: 30px; }
}

/* ---------- projects ---------- */

.projects { position: relative; isolation: isolate; border-bottom: 1px solid var(--line-soft); padding-block: 64px 56px; }

.projects__head {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  gap: 14px;
  margin-bottom: 44px;
  text-align: center;
}
/* A faint accent light behind the title, the same warmth as the hero. */
.projects__head::before {
  content: "";
  position: absolute; left: 50%; top: 50%; z-index: -1;
  width: min(640px, 100%); height: 180px;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, var(--accent-wash), transparent);
  opacity: .55;
  pointer-events: none;
}
.projects__eyebrow {
  display: flex; align-items: center; gap: 14px;
  margin: 0;
  font: 800 11px Archivo, sans-serif;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.projects__rule {
  width: clamp(36px, 9vw, 120px); height: 1px;
  background: linear-gradient(to left, var(--accent), transparent);
  opacity: .6;
}
.projects__rule:last-child { background: linear-gradient(to right, var(--accent), transparent); }

.projects__title {
  margin: 0;
  font: 800 clamp(44px, 6.4vw, 84px)/.86 Archivo, sans-serif;
  letter-spacing: -.045em;
  text-transform: uppercase;
}

/* Letters that react to the cursor (home.js). The real word stays in the heading for
   screen readers and the FR switch; the letters are drawn from it. */
.projects__title.is-live { position: relative; }
.projects__title.is-live .projects__word {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.projects__letters { display: inline-block; }
.projects__group { display: inline-block; white-space: nowrap; }
.projects__letter {
  --p: 0;
  display: inline-block;
  transform-origin: 50% 85%;
  will-change: transform;
  color: color-mix(in oklab, var(--accent-text) calc(var(--p) * 100%), currentColor);
  text-shadow: 0 .04em .28em color-mix(in oklab, var(--accent) calc(var(--p) * 55%), transparent);
}
.projects__sub { font-size: 16px; max-width: 46ch; }

/* Upright cards, two to a row: screenshot on top, the name and the details under it. */
.projects__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
  max-width: 1160px;
  list-style: none;
  margin: 0 auto;
  padding: 0 0 12px 12px; /* room for the offset box, which sits down-left */
}
.projects__list > .note { grid-column: 1 / -1; }

.pcard {
  --pcard-ink: var(--fg);
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px;
  background: var(--bg);
  cursor: pointer;
  /* Offset box behind the card: always there in a soft tint. */
  box-shadow: -6px 6px 0 var(--line);
  transition:
    transform .35s cubic-bezier(.34, 1.8, .5, 1),
    box-shadow .35s cubic-bezier(.34, 1.8, .5, 1),
    border-color .2s ease;
}
[data-theme="light"] .pcard { --pcard-ink: #000; }
/* On hover the card springs up-right and the box behind it grows and turns solid. */
@media (hover: hover) {
  .projects__list .pcard:hover {
    transform: translate(4px, -4px);
    border-color: var(--pcard-ink);
    box-shadow: -12px 12px 0 var(--pcard-ink);
  }
}

/* ----- media ----- */

.pcard__media { position: relative; min-width: 0; }

.pcard__frame {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: var(--fill);
  overflow: hidden;
}
.pcard__frame video, .pcard__frame img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

.pcard__poster {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--fill);
}
.pcard__poster::after {
  content: "";
  width: 46px; height: 46px; border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--panel);
  opacity: .75;
}

/* ----- body ----- */

.pcard__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 12px;
  min-width: 0;
  padding: 16px 8px 6px;
}

.pcard__head { display: flex; align-items: center; gap: 12px; min-width: 0; }

.pcard__logo {
  width: 36px; height: 36px;
  flex: none;
  border-radius: 9px;
  object-fit: cover;
}
.pcard__logo--round { border-radius: 50%; }

.pcard__names { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }

.pcard__title {
  font: 800 clamp(18px, 1.6vw, 22px)/1.05 Archivo, sans-serif;
  letter-spacing: -.02em;
  text-transform: uppercase;
  margin: 0;
}
.pcard__link { text-decoration: none; }

.pcard__name {
  font: 700 10px/1.2 Archivo, sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin: 0;
}
/* The product name in the accent gradient, branded or not. */
.pcard__name .btitle__tail {
  font-style: normal;
  background-image: linear-gradient(100deg, var(--brand-grad-a) 0%, var(--brand-grad-b) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* A quiet arrow that slides forward when the card is hovered. */
.pcard__go {
  flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--fg-dim);
  font-size: 15px;
  transition: transform .35s cubic-bezier(.34, 1.8, .5, 1), background-color .2s ease, border-color .2s ease, color .2s ease;
}
@media (hover: hover) {
  .projects__list .pcard:hover .pcard__go {
    transform: translateX(3px) rotate(-45deg);
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-ink);
  }
}

.pcard__pitch { font-size: 14px; line-height: 1.6; max-width: 60ch; }

.pcard__meta {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 4px 8px;
  margin: 0;
  font-size: 12px;
  color: var(--fg-faint);
}
.pcard__status { display: inline-flex; align-items: center; gap: 7px; color: var(--fg); font-weight: 600; }
.pcard__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-wash);
}
.pcard__sep { color: var(--fg-faint); }

.pcard__stack { gap: 6px; }
.pcard__stack .pill { font-size: 11px; padding: 4px 10px; border-color: var(--line-soft); color: var(--fg-dim); }
.pcard__stack .pill__logo { width: 13px; height: 13px; flex: none; }

/* Pinned to the foot of the card, so both cards' buttons line up across the row. */
.pcard__actions {
  display: flex; gap: 9px; flex-wrap: wrap;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}

/* "View more": the accent fills in from the left and the arrow steps forward. */
.pcard__more { isolation: isolate; overflow: hidden; }
.pcard__more::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .4s cubic-bezier(.2, .8, .3, 1);
}
.pcard__arrow { display: inline-block; transition: transform .4s cubic-bezier(.34, 1.8, .5, 1); }
.pcard__more:is(:hover, :focus-visible) { color: var(--accent-ink); border-color: var(--accent); }
.pcard__more:is(:hover, :focus-visible)::before { transform: scaleX(1); }
.pcard__more:is(:hover, :focus-visible) .pcard__arrow { transform: translateX(4px); }

/* ---------- contact ---------- */

.contact { padding-block: 34px 48px; }

.contact__in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
  gap: 40px;
  align-items: start;
}

.contact__copy { display: flex; flex-direction: column; gap: 14px; max-width: 420px; }
.contact__actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 4px; }

/* The contact card's own ground: a faint dusk behind the prompt bar. */
.contact__ask {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex; flex-direction: column; gap: 10px;
  padding: 22px;
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  background:
    radial-gradient(60% 90% at 100% 0%, rgba(183, 156, 255, .12), transparent 70%),
    radial-gradient(60% 90% at 0% 100%, rgba(255, 183, 77, .1), transparent 70%),
    var(--fill);
}

/* ---------- mobile (3b) ---------- */

@media (max-width: 860px) {
  .hero__in {
    grid-template-columns: 1fr;
    gap: 0;
    padding-block: 30px 26px;
    min-height: 0;
  }

  .hero__id { flex-direction: column; gap: 16px; }
  .hero__text { align-self: stretch; }
  .hero__photo { width: 104px; height: 104px; }
  .hero__avail { width: 13px; height: 13px; right: 3px; bottom: 3px; }
  .hero__text { gap: 13px; }
  .hero__actions .btn--icon { width: 44px; height: 44px; }
  .hero__scroll { display: none; }

  /* The panel keeps the page width; only the chart scrolls sideways. */
  .gh { margin-top: 24px; padding: 12px; gap: 10px; }
  .gh__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gh__stat:last-child:nth-child(odd) { grid-column: span 2; }
  .gh__chart { min-width: 640px; }
  /* A tapped cell needs room to scale without clipping. */
  .gh__grid .gh__cell.is-picked { transform: scale(1.6); }

  .projects { padding-block: 44px 40px; }
  .projects__head { gap: 12px; margin-bottom: 30px; }
  .projects__eyebrow { font-size: 10px; gap: 10px; }
  .projects__sub { font-size: 15px; }
  .projects__list { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 0 0 6px 6px; }
  .pcard { padding: 8px; border-radius: 16px; }
  .pcard__frame { border-radius: 9px; }
  .pcard__body { padding: 16px 8px 8px; gap: 12px; }
  .pcard__head { gap: 12px; }
  .pcard__go { display: none; }
  .pcard__title { font-size: 20px; }
  .pcard__pitch { font-size: 14.5px; }
  .pcard__actions { padding-top: 14px; }
  .pcard__actions .btn { flex: 1 1 130px; }

  .contact__in { grid-template-columns: 1fr; gap: 22px; }
  .contact__ask { padding: 18px 16px; }

  .hero__ask { margin-top: 22px; }
}
