/* ==========================================================================
   Portfolio, public site
   A Behance-style profile: the work first, a profile card beside it,
   quiet surfaces so the projects carry the colour.
   The signature colour (--sig) and banner colours (--b0..--b4) come from Settings.
   ========================================================================== */

:root {
  --bg: #FFFFFF;
  --bg-2: #F4F4F6;
  --bg-3: #EAEAEE;
  --card: #FFFFFF;
  --ink: #121214;
  --ink-2: #555561;
  --ink-3: #8A8A95;
  --line: #E6E6EB;
  --line-2: #D5D5DC;
  --ok: #13A15A;
  --ok-ink: #0E7A44;
  --warn-bg: #FFF4D6;
  --sig-t: var(--sig-ink, var(--sig));
  --sig-soft: color-mix(in srgb, var(--sig) 12%, transparent);

  --shadow-1: 0 1px 2px rgba(18, 18, 26, .05), 0 3px 10px rgba(18, 18, 26, .04);
  --shadow-2: 0 22px 44px -20px rgba(18, 18, 26, .42);
  --shadow-3: 0 30px 80px rgba(10, 10, 16, .32);

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --gutter: clamp(16px, 2.4vw, 32px);
  --max: 1720px;
  --top-h: 64px;
  --side-w: 300px;

  --font: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  color-scheme: light;
}

/* Dark theme: chosen in Settings, or following the visitor's device. */
[data-theme="dark"] {
  --bg: #0E0E11;
  --bg-2: #18181D;
  --bg-3: #23232A;
  --card: #141418;
  --ink: #F3F3F6;
  --ink-2: #ABABB6;
  --ink-3: #777782;
  --line: #24242B;
  --line-2: #34343D;
  --ok: #2FC979;
  --ok-ink: #4BD98D;
  --warn-bg: #3A3014;
  --sig-t: var(--sig-ink-d, var(--sig));
  --sig-soft: color-mix(in srgb, var(--sig) 22%, transparent);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-2: 0 24px 48px -20px rgba(0, 0, 0, .8);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  [data-theme="auto"] {
    --bg: #0E0E11;
    --bg-2: #18181D;
    --bg-3: #23232A;
    --card: #141418;
    --ink: #F3F3F6;
    --ink-2: #ABABB6;
    --ink-3: #777782;
    --line: #24242B;
    --line-2: #34343D;
    --ok: #2FC979;
    --ok-ink: #4BD98D;
    --warn-bg: #3A3014;
    --sig-t: var(--sig-ink-d, var(--sig));
    --sig-soft: color-mix(in srgb, var(--sig) 22%, transparent);
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-2: 0 24px 48px -20px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}

@view-transition { navigation: auto; }

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--top-h) + 64px); }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--sig); outline-offset: 3px; }
::selection { background: var(--sig); color: var(--on-sig); }
main { outline: none; }
.ic { flex: none; }

.sr, .skip-link:not(:focus) {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed; z-index: 100; top: 10px; left: 10px;
  padding: 10px 14px; border-radius: var(--r-sm); background: var(--ink); color: var(--bg);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px;
  border: 1px solid transparent; border-radius: 999px;
  font-weight: 600; font-size: 14.5px; line-height: 1; white-space: nowrap;
  transition: transform .18s var(--ease), background-color .2s, box-shadow .25s, color .2s;
}
.btn:active { transform: scale(.97); }
.btn--sig { background: var(--sig); color: var(--on-sig); }
.btn--sig:hover { box-shadow: 0 10px 24px -10px var(--sig); filter: saturate(1.1) brightness(1.04); }
.btn--ghost { background: var(--bg-2); color: var(--ink); }
.btn--ghost:hover { background: var(--bg-3); }
.btn--sm { height: 36px; padding: 0 15px; font-size: 14px; }
.btn--lg { height: 50px; padding: 0 24px; font-size: 15.5px; }
.btn--block { width: 100%; }
.btn--icon { width: 42px; padding: 0; }
.btn[disabled], .btn.is-busy { opacity: .65; pointer-events: none; }

/* ---------- Top bar ---------- */

.topbar {
  position: sticky; top: 0; z-index: 50;
  height: var(--top-h);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
  view-transition-name: topbar;
}
.topbar.is-stuck { border-bottom-color: var(--line); }
.topbar__in {
  display: flex; align-items: center; gap: 20px;
  max-width: var(--max); height: 100%; margin: 0 auto; padding: 0 var(--gutter);
}
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; font-weight: 700; font-size: 16px; letter-spacing: -.01em; }
.brand__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand__avatar {
  flex: none; display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%; overflow: hidden;
  background: var(--bg-2);
}
.brand__avatar img { width: 100%; height: 100%; object-fit: cover; }
.brand__avatar.avatar-initial { font-size: 15px; }
.topnav { display: flex; gap: 2px; margin-left: auto; }
.topnav a {
  padding: 8px 13px; border-radius: 999px;
  color: var(--ink-2); font-weight: 500; font-size: 14.5px;
  transition: background-color .2s, color .2s;
}
.topnav a:hover { background: var(--bg-2); color: var(--ink); }
.topnav a[aria-current="page"] { color: var(--ink); font-weight: 600; }

/* ---------- Banner ---------- */

.banner {
  position: relative; isolation: isolate; overflow: hidden;
  height: clamp(132px, 14vw, 236px);
  background: var(--b0);
}
.banner--image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner__blob {
  position: absolute; z-index: -1;
  width: 62%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at center, var(--c) 0%, color-mix(in srgb, var(--c) 40%, transparent) 34%, transparent 66%);
  mix-blend-mode: screen; opacity: .95;
  animation: drift var(--t, 20s) ease-in-out infinite alternate;
  will-change: transform;
}
.banner__blob--1 { --c: var(--b1); left: -14%; top: -120%; --t: 19s; --dx: 14%; --dy: 18%; }
.banner__blob--2 { --c: var(--b2); right: -16%; top: -95%; --t: 23s; --dx: -12%; --dy: 16%; }
.banner__blob--3 { --c: var(--b3); left: 30%; top: -30%; width: 44%; --t: 17s; --dx: -16%; --dy: -10%; opacity: .8; }
.banner__blob--4 { --c: var(--b4); left: 58%; top: -150%; width: 52%; --t: 27s; --dx: 10%; --dy: 22%; opacity: .7; }
.banner::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .18));
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(var(--dx), var(--dy), 0) scale(1.18); }
}

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

.profile-wrap {
  display: grid;
  grid-template-columns: var(--side-w) minmax(0, 1fr);
  gap: 0 clamp(28px, 3vw, 44px);
  align-items: start;
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
}
.side { position: relative; z-index: 2; display: grid; gap: 16px; margin-top: -72px; }

.profile {
  position: relative;
  display: grid; justify-items: center; text-align: center;
  padding: 26px 22px 20px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
}
.profile__avatar {
  display: grid; place-items: center;
  width: 108px; height: 108px; border-radius: 50%; overflow: hidden;
  margin: -70px 0 14px;
  border: 4px solid var(--card); background: var(--bg-2);
  box-shadow: 0 8px 22px -10px rgba(0, 0, 0, .35);
}
.profile__avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile__avatar.avatar-initial { font-size: 42px; }
.profile__id { display: grid; justify-items: center; }
.profile__name { font-size: 24px; font-weight: 700; line-height: 1.15; letter-spacing: -.015em; overflow-wrap: anywhere; }
.nowrap { white-space: nowrap; }

/* Blue check next to your name */
.vbadge {
  --vb: #1a8cff;
  display: inline-block; flex: none; width: .82em; height: .82em;
  margin-left: .26em; vertical-align: -.06em; line-height: 0;
}
.vbadge svg { display: block; width: 100%; height: 100%; overflow: visible; }
.vbadge__seal { fill: var(--vb); stroke: var(--vb); stroke-width: 1.6; stroke-linejoin: round; }
.vbadge__tick { fill: none; stroke: #fff; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.brand .vbadge { width: 16px; height: 16px; margin-left: -4px; }
.proj__owner .vbadge { width: 15px; height: 15px; vertical-align: -2px; }
@media (prefers-reduced-motion: no-preference) {
  .profile .vbadge svg { animation: vbadge-pop .7s var(--ease-out) .45s both; }
  .profile .vbadge__tick { stroke-dasharray: 14; animation: vbadge-tick .45s ease-out .85s both; }
  .profile .vbadge:hover svg { animation: vbadge-spin .6s var(--ease-out); }
}
@keyframes vbadge-pop { from { transform: scale(0) rotate(-60deg); opacity: 0; } 60% { transform: scale(1.18) rotate(6deg); opacity: 1; } to { transform: none; } }
@keyframes vbadge-tick { from { stroke-dashoffset: 14; } to { stroke-dashoffset: 0; } }
@keyframes vbadge-spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }

.profile__role { margin-top: 5px; color: var(--ink-2); font-size: 14.5px; line-height: 1.4; }
.profile__loc { display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; color: var(--ink-3); font-size: 13.5px; }
.profile__status {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 12px; padding: 5px 12px 5px 10px; border-radius: 999px;
  background: color-mix(in srgb, var(--ok) 12%, transparent); color: var(--ok-ink);
  font-size: 12.5px; font-weight: 600;
}
.dot {
  position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none;
}
.dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--ok); opacity: 0;
  animation: ping 2.4s var(--ease-out) infinite;
}
@keyframes ping { 0% { transform: scale(.4); opacity: .7; } 70%, 100% { transform: scale(1.4); opacity: 0; } }

.profile__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; margin-top: 18px; }
.profile__actions .btn { padding: 0 12px; }
.profile__actions .btn:only-child { grid-column: 1 / -1; }
.profile__stats {
  display: flex; width: 100%; margin-top: 18px; padding-top: 16px;
  border-top: 1px solid var(--line);
}
.profile__stats div { flex: 1; display: flex; flex-direction: column-reverse; gap: 1px; }
.profile__stats div + div { border-left: 1px solid var(--line); }
.profile__stats dt { color: var(--ink-3); font-size: 12.5px; }
.profile__stats dd { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }

.about {
  padding: 20px 22px 22px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
}
.about__title { font-size: 15px; font-weight: 700; }
.about__lead { margin-top: 10px; font-size: 15px; font-weight: 600; line-height: 1.45; }
.about__bio { display: grid; gap: 10px; margin-top: 10px; color: var(--ink-2); font-size: 14.5px; line-height: 1.6; }
.about__bio a { color: var(--sig-t); text-decoration: underline; text-underline-offset: 2px; }
.about__bio.is-clamped {
  max-height: 10.5em; overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 55%, transparent);
  mask-image: linear-gradient(#000 55%, transparent);
}
.about__more {
  margin-top: 6px; padding: 0; border: 0; background: none;
  color: var(--sig-t); font-weight: 600; font-size: 14px;
}
.about__more:hover { text-decoration: underline; text-underline-offset: 2px; }
.about__h { margin: 18px 0 8px; color: var(--ink-3); font-size: 12.5px; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { padding: 6px 11px; border-radius: 999px; background: var(--bg-2); font-size: 13px; line-height: 1.3; }
.chips--links li { padding: 0; background: none; }
.chips--links a {
  display: block; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line-2); font-size: 13px; font-weight: 600;
  transition: background-color .2s, color .2s, border-color .2s;
}
.chips--links a:hover { background: var(--sig-soft); border-color: transparent; color: var(--sig-t); }
.about__list li { padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.about__list li:last-child { border-bottom: 0; }

/* ---------- Tabs ---------- */

.works { min-width: 0; padding-top: 14px; }
.tabs {
  position: sticky; top: var(--top-h); z-index: 20;
  display: flex; gap: 4px;
  margin: 0 -6px 14px; padding: 8px 6px;
  overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative; z-index: 1; flex: none;
  display: inline-flex; align-items: center; gap: 6px;
  height: 38px; padding: 0 16px; border-radius: 999px;
  color: var(--ink-2); font-weight: 600; font-size: 14.5px;
  transition: color .25s, background-color .2s;
}
.tab:hover { color: var(--ink); background: var(--bg-2); }
.tab__n { font-size: 12.5px; font-weight: 500; opacity: .7; font-variant-numeric: tabular-nums; }
.tab.is-active { color: var(--on-sig); background: var(--sig); }
.tabs.is-live .tab.is-active { background: transparent; }
.tabs.is-live .tab.is-active:hover { background: transparent; }
.tabs__thumb {
  position: absolute; z-index: 0; top: 8px; left: 0;
  height: 38px; width: 0; border-radius: 999px;
  background: var(--sig);
  box-shadow: 0 8px 20px -10px var(--sig);
  opacity: 0;
}
.tabs.is-live .tabs__thumb { opacity: 1; }
.tabs.is-animated .tabs__thumb { transition: transform .45s var(--ease-out), width .45s var(--ease-out); }
.works__title { display: flex; align-items: baseline; gap: 8px; margin: 8px 0 18px; font-size: 18px; font-weight: 700; }

/* ---------- Project grid + cards ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 236px), 1fr));
  gap: 22px 20px;
}
.pcard { position: relative; min-width: 0; }
.pcard__link { position: relative; display: block; border-radius: var(--r); transition: transform .35s var(--ease-out); }
.pcard__media {
  position: relative; overflow: hidden;
  aspect-ratio: 808 / 632;
  border-radius: var(--r);
  background: var(--c, var(--bg-2));
  transform: translateZ(0);
  transition: box-shadow .35s var(--ease-out);
}
.pcard__media > img, .pcard__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease-out), opacity .45s ease;
}
.pcard__video { opacity: 0; pointer-events: none; }
.pcard.is-playing .pcard__video { opacity: 1; }
.pcard__none {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 16px;
  color: var(--ink-3); font-weight: 600; text-align: center;
}
.pcard__media::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, .74) 0%, rgba(0, 0, 0, .3) 34%, rgba(0, 0, 0, 0) 62%);
  opacity: 0; transition: opacity .3s ease;
}
.pcard__badges { position: absolute; z-index: 2; top: 10px; right: 10px; display: flex; gap: 6px; }
.pbadge {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: rgba(10, 10, 14, .52); color: #fff;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.pbadge .ic--play { margin-left: 2px; }

.pcard__info { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.pcard__text { min-width: 0; }
.pcard__title { font-size: 15px; font-weight: 600; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard__cat { margin-top: 1px; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard__stats { flex: none; display: flex; gap: 10px; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pcard__stats span { display: inline-flex; align-items: center; gap: 4px; }

/* Mouse and trackpad: details appear over the picture, like Behance. */
@media (hover: hover) and (pointer: fine) {
  .pcard__info {
    position: absolute; z-index: 2; left: 0; right: 0; bottom: 0;
    padding: 14px 16px;
    color: #fff;
    opacity: 0; transform: translateY(10px);
    transition: opacity .3s ease, transform .4s var(--ease-out);
    pointer-events: none;
  }
  .pcard__title { text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
  .pcard__cat { opacity: .82; }
  .pcard__link:hover, .pcard__link:focus-visible { transform: translateY(-4px); }
  .pcard__link:hover .pcard__media, .pcard__link:focus-visible .pcard__media { box-shadow: var(--shadow-2); }
  .pcard__link:hover .pcard__media::after, .pcard__link:focus-visible .pcard__media::after { opacity: 1; }
  .pcard__link:hover .pcard__info, .pcard__link:focus-visible .pcard__info { opacity: 1; transform: none; }
  .pcard__link:hover .pcard__media > img, .pcard__link:hover .pcard__video { transform: scale(1.055); }
}
/* Touch screens: title and counts sit under the picture. */
@media (hover: none), (pointer: coarse) {
  .pcard__info { padding: 10px 2px 0; }
  .pcard__cat, .pcard__stats { color: var(--ink-2); }
  .pcard__link:active .pcard__media > img { transform: scale(1.02); }
}

/* Pictures fade in over their own average colour. */
.js .pcard__media > img:not(.is-loaded),
.js .g-item img:not(.is-loaded) { opacity: 0; }
.pcard__media > img, .g-item img { transition: opacity .45s ease, transform .8s var(--ease-out); }

/* Entrance: cards rise in, a few at a time. */
.js .pcard:not(.is-in), .js [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(18px) scale(.985); }
.js .pcard.is-in, .js [data-reveal].is-in {
  opacity: 1; transform: none;
  transition: opacity .55s var(--ease) var(--d, 0ms), transform .7s var(--ease-out) var(--d, 0ms);
}
.is-ready .pcard, .is-ready [data-reveal] { opacity: 1 !important; transform: none !important; }

.empty {
  display: grid; justify-items: center; gap: 14px;
  padding: 64px 20px; border-radius: var(--r-lg);
  background: var(--bg-2); color: var(--ink-2); text-align: center;
}
.empty__icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--card); color: var(--sig-t); }

/* ---------- Contact band + footer ---------- */

.cta { margin-top: clamp(56px, 8vw, 112px); padding: 0 var(--gutter); }
.cta__in {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px;
  max-width: var(--max); margin: 0 auto;
  padding: clamp(28px, 5vw, 60px);
  border-radius: calc(var(--r-lg) + 6px);
  background:
    radial-gradient(60% 120% at 100% 0%, color-mix(in srgb, var(--b2) 70%, transparent) 0%, transparent 70%),
    radial-gradient(50% 110% at 0% 100%, color-mix(in srgb, var(--b3) 55%, transparent) 0%, transparent 70%),
    radial-gradient(60% 90% at 60% 120%, color-mix(in srgb, var(--b1) 80%, transparent) 0%, transparent 70%),
    var(--b0);
  color: #fff;
}
.cta__text { max-width: 640px; }
.cta__title { font-size: clamp(26px, 3.4vw, 44px); font-weight: 700; line-height: 1.08; letter-spacing: -.025em; text-wrap: balance; }
.cta__lead { margin-top: 12px; color: rgba(255, 255, 255, .8); font-size: clamp(15px, 1.3vw, 17px); max-width: 52ch; }
.cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.cta .btn--sig { background: #fff; color: #111; }
.cta .btn--sig:hover { box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .5); }
.cta .btn--ghost { background: rgba(255, 255, 255, .14); color: #fff; }
.cta .btn--ghost:hover { background: rgba(255, 255, 255, .22); }
.cta__mail { width: 100%; color: rgba(255, 255, 255, .85); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .4); }
.cta__mail:hover { color: #fff; text-decoration-color: #fff; }

.foot { margin-top: 28px; border-top: 1px solid var(--line); }
.foot__in {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px;
  max-width: var(--max); margin: 0 auto; padding: 22px var(--gutter) calc(22px + env(safe-area-inset-bottom));
  color: var(--ink-3); font-size: 13.5px;
}
.foot__name { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.foot__links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-left: auto; }
.foot__links a, .foot__top { color: var(--ink-2); font-weight: 500; transition: color .2s; }
.foot__links a:hover, .foot__top:hover { color: var(--ink); }
.foot__top { display: inline-flex; align-items: center; gap: 4px; }

/* ---------- Hire sheet (dialog) ---------- */

.sheet {
  width: min(560px, calc(100% - 24px)); max-width: none; max-height: calc(100dvh - 24px);
  margin: auto; padding: 0; border: 0; border-radius: 22px;
  background: var(--card); color: var(--ink);
  box-shadow: var(--shadow-3);
  overflow: auto; overscroll-behavior: contain;
}
.sheet[open] { animation: sheet-in .4s var(--ease-out); }
.sheet::backdrop { background: rgba(8, 8, 12, .55); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.sheet[open]::backdrop { animation: fade-in .3s ease; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(20px) scale(.97); } }
@keyframes fade-in { from { opacity: 0; } }
.sheet__in { position: relative; padding: 28px; }
.sheet__close {
  position: absolute; top: 14px; right: 14px;
  display: grid; place-items: center; width: 40px; height: 40px;
  border: 0; border-radius: 50%; background: var(--bg-2); color: var(--ink-2);
  transition: background-color .2s, transform .2s;
}
.sheet__close:hover { background: var(--bg-3); color: var(--ink); transform: rotate(90deg); }
.sheet__head { display: flex; align-items: center; gap: 14px; padding-right: 48px; }
.sheet__avatar { flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; overflow: hidden; background: var(--bg-2); }
.sheet__avatar img { width: 100%; height: 100%; object-fit: cover; }
.sheet__avatar.avatar-initial { font-size: 22px; }
.sheet__title { font-size: 22px; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; }
.sheet__status { display: flex; align-items: center; gap: 8px; margin-top: 5px; color: var(--ok-ink); font-size: 13px; font-weight: 600; }
.sheet__lead { margin: 16px 0 18px; color: var(--ink-2); }
.sheet__alt { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.sheet__alt a {
  display: inline-flex; align-items: center; gap: 7px; max-width: 100%;
  padding: 8px 12px; border-radius: 999px; background: var(--bg-2);
  font-size: 13.5px; font-weight: 600; overflow-wrap: anywhere;
}
.sheet__alt a:hover { background: var(--bg-3); }
.sheet__done { display: grid; justify-items: center; gap: 8px; padding: 26px 0 8px; text-align: center; }
.sheet__done h3 { font-size: 21px; }
.sheet__done p { color: var(--ink-2); margin-bottom: 10px; }
.sheet__done-icon {
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: var(--ok); color: #fff;
  animation: pop .5s var(--ease-out);
}

.form { display: grid; gap: 14px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field__label { font-size: 13px; font-weight: 600; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid transparent; border-radius: 12px;
  background: var(--bg-2); color: var(--ink); font-size: 15px;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.field input:hover, .field textarea:hover { border-color: var(--line-2); }
.field input:focus, .field textarea:focus {
  outline: none; background: var(--card);
  border-color: var(--sig); box-shadow: 0 0 0 4px var(--sig-soft);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field .is-invalid { border-color: #E5484D; }
.form__note:empty { display: none; }
.form__note { padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, #E5484D 12%, transparent); color: #C4282E; font-size: 14px; font-weight: 500; }
[data-theme="dark"] .form__note { color: #FF8589; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Project page ---------- */

.draft-note {
  max-width: 1200px; margin: 16px auto 0; padding: 10px 14px;
  border-radius: var(--r-sm); background: var(--warn-bg); font-size: 14px; font-weight: 500;
  width: calc(100% - 2 * var(--gutter));
}
.proj__head { max-width: calc(1200px + 2 * var(--gutter)); margin: 0 auto; padding: 22px var(--gutter) 24px; }
.back {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 18px;
  color: var(--ink-2); font-size: 14px; font-weight: 600;
  transition: color .2s, gap .25s var(--ease-out);
}
.back:hover { color: var(--ink); gap: 9px; }
.proj__headrow { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 24px; }
.proj__heading { min-width: 0; flex: 1 1 420px; }
.proj__title { font-size: clamp(27px, 3.6vw, 46px); font-weight: 700; line-height: 1.06; letter-spacing: -.025em; text-wrap: balance; overflow-wrap: anywhere; }
.proj__by { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 14px; color: var(--ink-2); font-size: 14.5px; }
.proj__owner { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; }
.proj__owner:hover { color: var(--sig-t); }
.proj__avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; overflow: hidden; background: var(--bg-2); flex: none; }
.proj__avatar img { width: 100%; height: 100%; object-fit: cover; }
.proj__avatar.avatar-initial { font-size: 13px; }
.proj__cat { padding: 4px 11px; border-radius: 999px; background: var(--bg-2); font-size: 13px; font-weight: 600; transition: background-color .2s, color .2s; }
.proj__cat:hover { background: var(--sig-soft); color: var(--sig-t); }
.proj__year { color: var(--ink-3); font-size: 13.5px; }
.proj__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.proj__summary { max-width: 70ch; margin-top: 20px; color: var(--ink-2); font-size: clamp(16px, 1.4vw, 18.5px); line-height: 1.55; text-wrap: pretty; }

.proj__media { display: grid; gap: 10px; max-width: calc(1200px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.g-row { display: grid; gap: 10px; min-width: 0; }
.g-row--pair { grid-template-columns: 1fr 1fr; align-items: start; }
.g-item { position: relative; min-width: 0; margin: 0; }
.g-row--full .g-item--portrait, .g-row--full .g-item--square, .g-row--single-portrait .g-item {
  width: min(100%, calc((100svh - 130px) * var(--r, 1)));
  justify-self: center;
}
.g-item__zoom, .g-item__video, .embed {
  display: block; width: 100%; padding: 0; border: 0;
  border-radius: 10px; overflow: hidden;
  background: var(--c, var(--bg-2));
}
.g-item__zoom { cursor: zoom-in; aspect-ratio: var(--ar); }
.g-item__zoom img { width: 100%; height: 100%; object-fit: cover; }
.g-item__video video { width: 100%; height: auto; aspect-ratio: var(--ar); background: #000; }
.g-item figcaption { padding: 8px 2px 4px; color: var(--ink-3); font-size: 13.5px; }
.embed { position: relative; aspect-ratio: var(--ar, 16 / 9); background: #000; }
.embed__play { position: absolute; inset: 0; display: grid; place-items: center; width: 100%; padding: 0; border: 0; background: none; }
.embed__play img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.embed__btn {
  position: relative; display: grid; place-items: center;
  width: 76px; height: 76px; border-radius: 50%;
  background: var(--sig); color: var(--on-sig);
  box-shadow: 0 14px 40px -12px rgba(0, 0, 0, .6);
  transition: transform .3s var(--ease-out);
}
.embed__btn .ic { margin-left: 4px; }
.embed__play:hover .embed__btn { transform: scale(1.08); }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.proj__nomedia { padding: 48px 20px; border-radius: var(--r-lg); background: var(--bg-2); color: var(--ink-2); text-align: center; }

/* Like button: pill in the header, big circle under the work, small one in the side rail. */
.like {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; font-weight: 600; transition: transform .2s var(--ease), background-color .2s, color .2s;
}
.like .ic { transition: transform .3s var(--ease-out); }
.like.is-liked .ic { fill: currentColor; }
.like.is-popping .ic { animation: heart-pop .55s var(--ease-out); }
.like::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  border: 2px solid var(--sig); opacity: 0; pointer-events: none;
}
.like.is-popping::after { animation: ring .6s var(--ease-out); }
@keyframes heart-pop { 0% { transform: scale(1); } 30% { transform: scale(1.35); } 60% { transform: scale(.9); } 100% { transform: scale(1); } }
@keyframes ring { from { opacity: .7; transform: scale(1); } to { opacity: 0; transform: scale(1.45); } }
@keyframes pop { 0% { transform: scale(.5); opacity: 0; } 60% { transform: scale(1.1); opacity: 1; } 100% { transform: scale(1); } }

.like--pill { height: 42px; padding: 0 16px; border-radius: 999px; background: var(--bg-2); color: var(--ink); font-size: 14.5px; }
.like--pill:hover { background: var(--bg-3); }
.like--pill.is-liked { background: var(--sig-soft); color: var(--sig-t); }
.like__n { font-variant-numeric: tabular-nums; }
.like--pill .like__n { padding-left: 8px; border-left: 1px solid var(--line-2); color: var(--ink-2); }
.like--pill.is-liked .like__n { color: inherit; border-color: color-mix(in srgb, var(--sig) 35%, transparent); }

.appreciate { display: grid; justify-items: center; gap: 6px; margin: clamp(48px, 7vw, 96px) auto clamp(40px, 6vw, 80px); padding: 0 var(--gutter); text-align: center; }
.like--big {
  width: 88px; height: 88px; border-radius: 50%;
  background: var(--sig); color: var(--on-sig);
  box-shadow: 0 16px 36px -14px var(--sig);
}
.like--big .ic { width: 36px; height: 36px; }
.like--big:hover { transform: scale(1.06); }
.like--big:active { transform: scale(.94); }
.like--big .like__n { display: none; }
.appreciate__title { margin-top: 14px; font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.appreciate__stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; color: var(--ink-2); font-size: 14px; }
.appreciate__stats span { display: inline-flex; align-items: center; gap: 6px; }
.appreciate__stats b { color: var(--ink); font-weight: 700; }

.proj__info {
  display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px 56px;
  max-width: calc(1200px + 2 * var(--gutter)); margin: 0 auto; padding: 40px var(--gutter) 0;
  background: linear-gradient(var(--line), var(--line)) var(--gutter) 0 / calc(100% - 2 * var(--gutter)) 1px no-repeat;
}
.proj__h { margin-bottom: 12px; font-size: 18px; font-weight: 700; }
.proj__story { display: grid; gap: 14px; align-content: start; }
.proj__story .proj__h { margin-bottom: -2px; }
.proj__story p { max-width: 68ch; color: var(--ink-2); font-size: 16px; line-height: 1.7; }
.proj__story a { color: var(--sig-t); text-decoration: underline; text-underline-offset: 2px; }
.proj__facts { display: grid; gap: 18px; align-content: start; }
.proj__facts dl div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.proj__facts dl div:first-child { padding-top: 0; }
.proj__facts dt { color: var(--ink-3); }
.proj__facts dd { font-weight: 600; text-align: right; }

.more { max-width: var(--max); margin: clamp(56px, 8vw, 100px) auto 0; padding: 0 var(--gutter); }
.more__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 18px; }
.more__title { font-size: clamp(20px, 2vw, 24px); font-weight: 700; letter-spacing: -.01em; }
.more__link { display: inline-flex; align-items: center; gap: 6px; color: var(--sig-t); font-weight: 600; transition: gap .25s var(--ease-out); }
.more__link:hover { gap: 10px; }

/* Side rail of actions on wide screens (Behance-style). */
.rail { display: none; }
@media (min-width: 1440px) {
  .rail {
    position: fixed; z-index: 30; right: 24px; top: 50%;
    display: grid; gap: 12px;
    transform: translateY(-50%);
    animation: rail-in .6s var(--ease-out) .3s backwards;
  }
}
@keyframes rail-in { from { opacity: 0; transform: translate(16px, -50%); } }
.rail__item {
  position: relative; display: grid; place-items: center;
  width: 52px; height: 52px; padding: 0; border-radius: 50%;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  box-shadow: var(--shadow-1);
  transition: transform .25s var(--ease-out), background-color .2s, color .2s;
}
.rail__item:hover { transform: translateX(-3px); }
.rail__avatar { overflow: hidden; border-width: 2px; }
.rail__img { display: grid; place-items: center; width: 100%; height: 100%; }
.rail__img img { width: 100%; height: 100%; object-fit: cover; }
.rail__hire { background: var(--sig); border-color: var(--sig); color: var(--on-sig); }
.rail__label, .rail .like--rail::before {
  position: absolute; right: calc(100% + 10px); top: 50%;
  padding: 5px 9px; border-radius: 6px;
  background: var(--ink); color: var(--bg); font-size: 12px; font-weight: 600; white-space: nowrap;
  opacity: 0; transform: translate(6px, -50%); pointer-events: none;
  transition: opacity .2s, transform .25s var(--ease-out);
}
.rail .like--rail::before { content: "Like"; }
.rail__item:hover .rail__label, .rail .like--rail:hover::before { opacity: 1; transform: translate(0, -50%); }
.like--rail.is-liked { color: var(--sig-t); }
.like--rail .like__n {
  position: absolute; right: -6px; bottom: -4px;
  min-width: 22px; padding: 2px 6px; border-radius: 999px;
  background: var(--sig); color: var(--on-sig); font-size: 11px; font-weight: 700; line-height: 1.2;
}

/* ---------- Lightbox ---------- */

.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; background: rgba(8, 8, 11, .97); color: #fff;
}
.lightbox[open] { animation: fade-in .25s ease; }
.lightbox::backdrop { background: transparent; }
.lightbox__stage { position: absolute; inset: 0; display: grid; place-items: center; padding: 64px 88px; }
.lightbox__img {
  max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
  border-radius: 6px; transition: opacity .25s ease, transform .35s var(--ease-out);
}
.lightbox__img.is-loading { opacity: .35; transform: scale(.985); }
.lightbox__caption { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); max-width: min(80ch, 80vw); color: rgba(255, 255, 255, .8); font-size: 14px; text-align: center; }
.lightbox__count { position: absolute; top: 24px; left: 24px; color: rgba(255, 255, 255, .7); font-size: 14px; font-variant-numeric: tabular-nums; }
.lb-btn {
  position: absolute; display: grid; place-items: center;
  width: 50px; height: 50px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .1); color: #fff;
  transition: background-color .2s, transform .2s;
}
.lb-btn:hover { background: rgba(255, 255, 255, .2); }
.lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__close { right: 16px; top: 14px; }

/* Initial shown when no portrait is set: the signature colour, wherever the avatar appears. */
.avatar-initial { background: var(--sig) !important; color: var(--on-sig); font-weight: 700; line-height: 1; }

/* ---------- 404, toasts ---------- */

.notfound { display: grid; justify-items: center; gap: 12px; min-height: 64vh; align-content: center; padding: 48px var(--gutter); text-align: center; }
.notfound__code {
  font-size: clamp(88px, 16vw, 168px); font-weight: 700; line-height: .9; letter-spacing: -.05em;
  background: linear-gradient(120deg, var(--b1), var(--b2) 50%, var(--b3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.notfound__title { font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; }
.notfound__text { color: var(--ink-2); max-width: 46ch; margin-bottom: 10px; }

.toasts {
  position: fixed; z-index: 90; left: 50%; bottom: max(18px, env(safe-area-inset-bottom));
  display: grid; gap: 8px; width: min(92vw, 420px);
  transform: translateX(-50%); pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 14px;
  background: var(--ink); color: var(--bg); font-weight: 600; font-size: 14.5px;
  box-shadow: var(--shadow-3);
  animation: toast-in .4s var(--ease-out);
}
.toast.is-leaving { opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }

/* ---------- View transitions (card picture morphs into the project) ---------- */

::view-transition-old(root), ::view-transition-new(root) { animation-duration: .26s; }
::view-transition-group(*) { animation-duration: .48s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
::view-transition-image-pair(*) { isolation: auto; }
::view-transition-group(topbar) { animation-duration: 0s; }

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
  :root { --side-w: 280px; }
}

/* Tablet and phone: profile on top, work next, about after the work. */
@media (max-width: 959px) {
  .profile-wrap {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "profile" "works" "about";
  }
  .side { display: contents; }
  .profile {
    grid-area: profile; position: relative; z-index: 2;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 18px; justify-items: start; align-items: center; text-align: left;
    margin-top: -52px; padding: 18px;
  }
  .profile__avatar { grid-row: 1; width: 92px; height: 92px; margin: -46px 0 0; }
  .profile__avatar.avatar-initial { font-size: 36px; }
  .profile__id { justify-items: start; }
  .profile__name { font-size: 22px; }
  .profile__actions, .profile__stats, .profile__sites { grid-column: 1 / -1; }
  .profile__stats { justify-content: flex-start; }
  .profile__stats div { flex: 0 1 120px; }
  .profile__stats div + div { padding-left: 16px; }
  .about { grid-area: about; margin-top: clamp(40px, 7vw, 64px); }
  .works { grid-area: works; padding-top: 18px; }
}
@media (min-width: 640px) and (max-width: 959px) {
  .profile { grid-template-columns: auto minmax(0, 1fr) auto; }
  .profile__actions { grid-column: 3; grid-row: 1; width: auto; margin-top: 0; }
  .profile__stats { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .proj__info { grid-template-columns: minmax(0, 1fr); }
  .g-row--pair { grid-template-columns: minmax(0, 1fr); }
  .grid--more .pcard:nth-child(n + 5) { display: none; }
}

@media (max-width: 639px) {
  :root { --top-h: 58px; }
  body { font-size: 15px; }
  .topnav { display: none; }
  .topbar__cta { margin-left: auto; }
  .brand__name { font-size: 15.5px; }
  .banner { height: 124px; }
  .profile { margin-top: -44px; padding: 16px; column-gap: 14px; }
  .profile__avatar { width: 80px; height: 80px; margin-top: -40px; border-width: 3px; }
  .profile__avatar.avatar-initial { font-size: 30px; }
  .profile__name { font-size: 20px; }
  .profile__role { font-size: 14px; }
  .profile__loc { margin-top: 6px; }
  .profile__status { margin-top: 8px; }
  .profile__actions { margin-top: 14px; }
  .profile__stats { margin-top: 14px; padding-top: 12px; }
  .tabs { margin-bottom: 10px; }
  .tab { height: 36px; padding: 0 14px; font-size: 14px; }
  .tabs__thumb { height: 36px; }
  .grid { gap: 22px; }
  .form__row { grid-template-columns: minmax(0, 1fr); }
  .proj__actions { width: 100%; }
  .proj__actions .like--pill { flex: 1; }
  .proj__actions [data-hire] { flex: 1; }
  .proj__media, .g-row { gap: 6px; }
  .g-item__zoom, .g-item__video, .embed { border-radius: 6px; }
  .g-row--full .g-item--portrait, .g-row--full .g-item--square, .g-row--single-portrait .g-item { width: 100%; }
  .lightbox__stage { padding: 56px 0 88px; }
  .lightbox__img { border-radius: 0; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 16px; transform: none; }
  .lightbox__caption { bottom: 84px; }
  .foot__links { margin-left: 0; }

  /* The hire form slides up from the bottom on phones. */
  .sheet {
    width: 100%; max-height: 92dvh; margin: auto 0 0;
    border-radius: 22px 22px 0 0;
  }
  .sheet[open] { animation: sheet-up .45s var(--ease-out); }
  .sheet__in { padding: 24px 18px calc(22px + env(safe-area-inset-bottom)); }
  @keyframes sheet-up { from { transform: translateY(100%); } }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .pcard:not(.is-in), .js [data-reveal]:not(.is-in) { opacity: 1; transform: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* ---------- Websites I built: live sites in browser frames ---------- */

.profile__sites {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 14px; padding: 7px 12px 7px 11px; border-radius: 999px;
  background: color-mix(in srgb, var(--ok) 10%, var(--bg-2)); color: var(--ink);
  font-size: 13.5px; font-weight: 600;
  transition: background-color .2s ease, transform .3s var(--ease-out);
}
.profile__sites:hover { background: color-mix(in srgb, var(--ok) 18%, var(--bg-2)); }
.profile__sites .ic { color: var(--ink-3); transition: transform .3s var(--ease-out); }
.profile__sites:hover .ic { transform: translateX(3px); }

.websites { margin-top: clamp(48px, 7vw, 84px); padding-top: clamp(28px, 4vw, 40px); border-top: 1px solid var(--line); scroll-margin-top: calc(var(--top-h) + 16px); }
.websites__head { display: grid; gap: 6px; margin-bottom: 24px; }
.websites__title { display: flex; align-items: center; gap: 10px; font-size: clamp(20px, 2.2vw, 24px); font-weight: 700; letter-spacing: -.015em; }
.websites__title .ic { color: var(--sig-t); }
.websites__intro { color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.websites__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 34px 24px; }

.wsite { min-width: 0; }
.wsite__frame {
  display: block; overflow: hidden; border-radius: 14px;
  background: var(--card); border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  transform: translateZ(0);
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .3s ease;
}
.wsite__bar {
  display: flex; align-items: center; gap: 10px;
  height: 36px; padding: 0 10px 0 12px;
  background: var(--bg-2); border-bottom: 1px solid var(--line);
}
.wsite__dots { display: flex; gap: 6px; flex: none; }
.wsite__dots i { width: 9px; height: 9px; border-radius: 50%; background: #FF5F57; }
.wsite__dots i:nth-child(2) { background: #FEBC2E; }
.wsite__dots i:nth-child(3) { background: #28C840; }
.wsite__url {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px;
  height: 24px; padding: 0 10px; border-radius: 999px;
  background: var(--card); color: var(--ink-2); font-size: 12.5px; font-weight: 500;
}
.wsite__url span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wsite__url .ic { flex: none; color: var(--ok); }
.wsite__live {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px 3px 8px; border-radius: 999px;
  background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok-ink);
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.wsite__pulse { position: relative; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.wsite__pulse::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--ok); opacity: 0;
  animation: ping 2.2s var(--ease-out) infinite;
}

.wsite__screen { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--c, var(--bg-2)); }
.wsite__screen > img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 0;
  transition: object-position 5s cubic-bezier(.45, 0, .2, 1), transform .8s var(--ease-out);
}
/* No screenshot yet: a little drawing of a web page in the site's colour. */
.wsite__ph {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 10px;
  padding: 12% 9% 8%;
  background:
    radial-gradient(120% 90% at 85% 10%, color-mix(in srgb, var(--c) 60%, #fff) 0%, transparent 55%),
    linear-gradient(140deg, var(--c), color-mix(in srgb, var(--c) 55%, #000));
  color: #fff;
}
.wsite__ph-nav { position: absolute; top: 8%; left: 9%; right: 9%; display: flex; gap: 5%; align-items: center; }
.wsite__ph-nav i { height: 6px; flex: 0 0 10%; border-radius: 3px; background: rgba(255, 255, 255, .38); }
.wsite__ph-nav i:first-child { flex-basis: 18%; height: 9px; margin-right: auto; background: rgba(255, 255, 255, .85); }
.wsite__ph b { max-width: 85%; font-size: clamp(20px, 2.2vw, 28px); line-height: 1.1; letter-spacing: -.02em; text-shadow: 0 2px 14px rgba(0, 0, 0, .18); }
.wsite__ph-line { width: 68%; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .38); }
.wsite__ph-line--short { width: 44%; }
.wsite__ph-btn { width: 24%; height: 22px; margin-top: 6px; border-radius: 999px; background: rgba(255, 255, 255, .92); }

.wsite__go {
  position: absolute; z-index: 2; left: 50%; bottom: 16px;
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 9px 15px; border-radius: 999px;
  background: rgba(12, 12, 16, .8); color: #fff; font-size: 13.5px; font-weight: 600;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; transform: translate(-50%, 12px);
  transition: opacity .3s ease, transform .45s var(--ease-out);
  pointer-events: none;
}

.wsite__info { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 2px 0; }
.wsite__text { min-width: 0; }
.wsite__name { font-size: 16.5px; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
.wsite__kind { margin-top: 2px; color: var(--ink-3); font-size: 13px; }
.wsite__btn {
  flex: none; display: inline-flex; align-items: center; gap: 3px;
  height: 34px; padding: 0 12px 0 14px; border-radius: 999px;
  background: var(--sig); color: var(--on-sig); font-size: 13.5px; font-weight: 600;
  transition: box-shadow .25s ease, filter .25s ease, transform .2s ease;
}
.wsite__btn:hover { box-shadow: 0 10px 22px -10px var(--sig); filter: saturate(1.1) brightness(1.04); }
.wsite__btn:active { transform: scale(.96); }
.wsite__desc { margin-top: 8px; padding: 0 2px; color: var(--ink-2); font-size: 14px; line-height: 1.55; }
.wsite__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; padding: 0 2px; }
.wsite__tags li { padding: 4px 10px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); font-size: 12px; font-weight: 600; }

@media (hover: hover) and (pointer: fine) {
  .wsite__frame:hover, .wsite__frame:focus-visible { transform: translateY(-5px); box-shadow: var(--shadow-2); border-color: var(--line-2); }
  .wsite__frame:hover .wsite__screen > img, .wsite__frame:focus-visible .wsite__screen > img { object-position: 50% 100%; }
  .wsite__frame:hover .wsite__go, .wsite__frame:focus-visible .wsite__go { opacity: 1; transform: translate(-50%, 0); }
  .wsite__frame:hover .wsite__ph b { transform: translateY(-2px); }
}
@media (prefers-reduced-motion: reduce) {
  .wsite__pulse::after { animation: none; }
  .wsite__screen > img { transition: none; }
}
