/* cyrillic-ext */
@font-face {
  font-family: 'Fira Code';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(uU9NCBsR6Z2vfE9aq3bh0NSDqFGedCMX.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Fira Code';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(uU9NCBsR6Z2vfE9aq3bh2dSDqFGedCMX.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Fira Code';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(uU9NCBsR6Z2vfE9aq3bh0dSDqFGedCMX.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Fira Code';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(uU9NCBsR6Z2vfE9aq3bh3tSDqFGedCMX.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* symbols2 */
@font-face {
  font-family: 'Fira Code';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(uU9NCBsR6Z2vfE9aq3bhZ_Wmh3mUfBsu_Q.woff2) format('woff2');
  unicode-range: U+2000-2001, U+2004-2008, U+200A, U+23B8-23BD, U+2500-259F;
}
/* latin-ext */
@font-face {
  font-family: 'Fira Code';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(uU9NCBsR6Z2vfE9aq3bh09SDqFGedCMX.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Fira Code';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(uU9NCBsR6Z2vfE9aq3bh3dSDqFGedA.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Fira Code';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(uU9NCBsR6Z2vfE9aq3bh0NSDqFGedCMX.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Fira Code';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(uU9NCBsR6Z2vfE9aq3bh2dSDqFGedCMX.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Fira Code';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(uU9NCBsR6Z2vfE9aq3bh0dSDqFGedCMX.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Fira Code';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(uU9NCBsR6Z2vfE9aq3bh3tSDqFGedCMX.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* symbols2 */
@font-face {
  font-family: 'Fira Code';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(uU9NCBsR6Z2vfE9aq3bhZ_Wmh3mUfBsu_Q.woff2) format('woff2');
  unicode-range: U+2000-2001, U+2004-2008, U+200A, U+23B8-23BD, U+2500-259F;
}
/* latin-ext */
@font-face {
  font-family: 'Fira Code';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(uU9NCBsR6Z2vfE9aq3bh09SDqFGedCMX.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Fira Code';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(uU9NCBsR6Z2vfE9aq3bh3dSDqFGedA.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Fira Code';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(uU9NCBsR6Z2vfE9aq3bh0NSDqFGedCMX.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Fira Code';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(uU9NCBsR6Z2vfE9aq3bh2dSDqFGedCMX.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Fira Code';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(uU9NCBsR6Z2vfE9aq3bh0dSDqFGedCMX.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Fira Code';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(uU9NCBsR6Z2vfE9aq3bh3tSDqFGedCMX.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* symbols2 */
@font-face {
  font-family: 'Fira Code';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(uU9NCBsR6Z2vfE9aq3bhZ_Wmh3mUfBsu_Q.woff2) format('woff2');
  unicode-range: U+2000-2001, U+2004-2008, U+200A, U+23B8-23BD, U+2500-259F;
}
/* latin-ext */
@font-face {
  font-family: 'Fira Code';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(uU9NCBsR6Z2vfE9aq3bh09SDqFGedCMX.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Fira Code';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(uU9NCBsR6Z2vfE9aq3bh3dSDqFGedA.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Fira Code';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(uU9NCBsR6Z2vfE9aq3bh0NSDqFGedCMX.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Fira Code';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(uU9NCBsR6Z2vfE9aq3bh2dSDqFGedCMX.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Fira Code';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(uU9NCBsR6Z2vfE9aq3bh0dSDqFGedCMX.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Fira Code';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(uU9NCBsR6Z2vfE9aq3bh3tSDqFGedCMX.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* symbols2 */
@font-face {
  font-family: 'Fira Code';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(uU9NCBsR6Z2vfE9aq3bhZ_Wmh3mUfBsu_Q.woff2) format('woff2');
  unicode-range: U+2000-2001, U+2004-2008, U+200A, U+23B8-23BD, U+2500-259F;
}
/* latin-ext */
@font-face {
  font-family: 'Fira Code';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(uU9NCBsR6Z2vfE9aq3bh09SDqFGedCMX.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Fira Code';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(uU9NCBsR6Z2vfE9aq3bh3dSDqFGedA.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --base: #303446; --mantle: #292c3c; --crust: #232634;
  --text: #c6d0f5; --subtext1: #b5bfe2; --subtext0: #a5adce;
  --overlay2: #949cbb; --overlay1: #838ba7; --overlay0: #737994;
  --surface2: #626880; --surface1: #51576d; --surface0: #414559;
  --red: #e78284; --peach: #ef9f76; --yellow: #e5c890;
  --green: #a6d189; --teal: #81c8be; --blue: #8caaee;
  --mauve: #ca9ee6; --pink: #f4b8e4;
  --accent: var(--red);
  --mono: "Fira Code", ui-monospace, monospace;
  --t: 1100ms;
  --intensity: 1;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--base);
  color: var(--text);
  font-family: var(--mono);
  font-variant-ligatures: contextual;
  font-feature-settings: "calt" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  position: relative;
}
body.opened { overflow-y: auto; }
/* faint grain — no mix-blend-mode; that forced WebKit into software paint
   and re-blended the full viewport every frame of the float animation. */
body::after {
  content: "";
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .78 0 0 0 0 .81 0 0 0 0 .96 0 0 0 .05 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: .06;
  pointer-events: none;
  z-index: 1;
}
.vial-stage {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate3d(-50%, -50%, 0);
  /* svh = small viewport height; doesn't change when the iOS URL bar
     collapses, which was relaying out the stage mid-animation. */
  width: min(38vh, 320px);
  width: min(38svh, 320px);
  aspect-ratio: 188 / 215;
  pointer-events: none;
  z-index: 50;
  height: 100%;
}
.vial-float {
  position: absolute;
  inset: 0;
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
body:not(.opened) .vial-float { animation: float 5s ease-in-out infinite; }
/* iOS WebKit runs this animation ~4x faster than every other engine.
   Match the gentle desktop cadence by stretching the period. */
html.ios body:not(.opened) .vial-float { animation-duration: 7.5s; }
@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%       { transform: translate3d(0, -6px, 0); }
}
.vial-wrap, .shards { position: absolute; inset: 0; }
.vial-wrap svg, .shards svg {
  width: 100%; height: 100%; display: block;
  /* drop-shadow on a translate3d-animated element forces WebKit to
     re-rasterize every frame -> shake on iOS, lag on Android. */
}
.vial-mark .glass { fill: var(--subtext0); }
.vial-mark .fluid { fill: var(--accent); stroke: var(--accent); stroke-width: 4.3865; }
/* Always keep shards in layout (opacity instead of display:none). Safari iOS
   refuses to start WAAPI animations on an element that became displayed in
   the same frame — opacity sidesteps that. */
.vial-wrap { opacity: 1; transition: opacity 80ms linear; }
.shards    { opacity: 0; transition: opacity 80ms linear; pointer-events: none; }
body.opened .vial-wrap { opacity: 0; }
body.opened .shards    { opacity: 1; }
.shard {
  position: absolute; inset: 0;
  will-change: transform, opacity;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.shard svg { width: 100%; height: 100%; display: block; }
.hint {
  position: fixed;
  bottom: 8vh; left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: .32em;
  color: var(--overlay0);
  z-index: 30;
  opacity: 0;
  animation: hint-in 800ms ease 1.2s forwards, hint-pulse 2.6s ease-in-out 2s infinite;
}
@keyframes hint-in    { to { opacity: 1; } }
@keyframes hint-pulse { 0%, 100% { opacity: .3; } 50% { opacity: .85; } }
body.opened .hint { animation: hint-out 350ms ease forwards; }
@keyframes hint-out { to { opacity: 0; transform: translate(-50%, 6px); } }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--text);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 2px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 600ms ease calc(var(--t) * .65);
}
body.opened .brand { opacity: 1; pointer-events: auto; }
.brand .brand-vial { width: 16px; aspect-ratio: 188 / 215; display: block; }
.brand .dot { color: var(--accent); }

/* top-bar — single in-flow row at the top of every page; brand on the
   left, opener reset on the right. */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(20px, 3vw, 32px) clamp(20px, 5vw, 80px) 0;
  max-width: 1200px;
  margin: 0 auto;
}
.opener-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 2px;
  background: transparent;
  color: var(--overlay0);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 600ms ease calc(var(--t) * .65), color 180ms, border-color 180ms, transform 180ms;
}
.opener-reset svg { display: block; }
body.opened .opener-reset,
body.prerolled .opener-reset { opacity: .45; pointer-events: auto; }
body.prerolled .opener-reset { transition: opacity 0ms, color 180ms, border-color 180ms, transform 180ms; }
.opener-reset:hover {
  opacity: 1 !important;
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 50%, transparent);
  transform: rotate(-6deg);
}
.content {
  position: relative; z-index: 5;
  opacity: 0;
  pointer-events: none;
  transition: opacity 600ms ease calc(var(--t) * .65);
}
body.opened .content { opacity: 1; pointer-events: auto; }

/* Once-per-day skip: opener already seen today, jump straight to content
   with no fade-in and no stage rendered. */
body.prerolled .vial-stage,
body.prerolled .hint        { display: none; }
body.prerolled .brand,
body.prerolled .content     { opacity: 1; transition: none; pointer-events: auto; }
.hero {
  /*min-height: 100vh;
  align-items: center;*/
  display: flex;
  align-items: center;
  padding: clamp(80px, 12vh, 140px) clamp(20px, 5vw, 80px);
  max-width: 1200px;
  margin: 0 auto;
}
.hero-content { width: 100%; }
.hero .label {
  display: block;
  font-size: 11px;
  letter-spacing: .3em;
  color: var(--accent);
  margin-bottom: 40px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--text);
}
.hero h1 {
  font-size: clamp(32px, 6.3vw, 82px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -.03em;
  color: var(--text);
}
.hero h1 span.line { display: block; white-space: nowrap; }
.hero h1 .dot { color: var(--accent); }
/* per-line weight + tracking cascade — distinct cadence, one family. */
.hero h1 .line:nth-of-type(1) { font-weight: 700; letter-spacing: -.038em; }
.hero h1 .line:nth-of-type(2) { font-weight: 500; letter-spacing: -.028em; }
.hero h1 .line:nth-of-type(3) { font-weight: 400; letter-spacing: -.02em; color: var(--subtext1); }
.hero h1 .wink {
  color: var(--subtext0);
  font-size: .55em;
  font-weight: 400;
  letter-spacing: .02em;
  margin-top: .9em;
  /* rolodex: clip to the line so the rotator's translateY lives inside. */
  overflow: hidden;
  line-height: 1.35;
  padding-bottom: 4px;
}
/* old em-dash ::before disabled — the JS render now emits an inline .wink-em. */
.hero h1 .wink::before { content: none; }
.hero h1 .wink .wink-roll {
  display: block;
  will-change: transform, opacity;
}
.hero h1 .wink .wink-lead,
.hero h1 .wink .wink-linkrow { display: block; }
.hero h1 .wink .wink-linkrow {
  margin-top: .15em;
}
.hero h1 .wink .wink-em,
.hero h1 .wink .wink-tail {
  color: var(--accent);
  margin-right: .35em;
  font-weight: 500;
}
.hero h1 .wink .link { font-size: inherit; }
.hero h1 .wink .link {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 60%, transparent);
  transition: color 180ms, border-color 180ms;
}
.hero h1 .wink .link:hover { color: var(--accent); border-bottom-color: var(--accent); }
.hero h1 .wink .link .arrow {
  font-size: .8em;
  margin-left: .15em;
  color: var(--overlay0);
  display: inline-block;
  transition: color 180ms, transform 200ms ease;
}
.hero h1 .wink .link:hover .arrow { color: var(--accent); transform: translate(2px, -2px); }
.projects {
  padding: clamp(40px, 8vh, 100px) clamp(20px, 5vw, 80px) clamp(60px, 8vh, 100px);
  max-width: 1100px;
  margin: 0 auto;
}
.projects-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 14px;
  margin-bottom: 8px;
  border-bottom: 2px solid var(--text);
}
.projects-head h2 { font-size: 14px; letter-spacing: .3em; color: var(--accent); font-weight: 500; }
.projects-head .count { font-size: 11px; letter-spacing: .2em; color: var(--overlay0); }
.project {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 28px;
  padding: 36px 0;
  border-bottom: 1px solid var(--surface0);
}
.project .num-col {
  display: flex; flex-direction: column;
  align-items: center; gap: 10px;
  padding-top: 4px;
}
.project .project-icon {
  width: 40px; height: 40px;
  background: var(--surface0);
  border: 1px solid var(--surface1);
  border-radius: 2px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.project .project-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.project .project-icon[data-empty] { background: var(--mantle); }
.project .project-icon[data-empty] .vial-mark { width: 60%; height: 60%; opacity: .5; }
.project .num { font-size: 10px; letter-spacing: .22em; color: var(--overlay0); font-variant-numeric: tabular-nums; }
.project .body { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.project .head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  flex-wrap: wrap;
}
.link{
  font-size: clamp(20px, 10.5vw, 40px);
  /* font-weight: 500; */
  letter-spacing: -.01em;
  color: var(--text);
  text-decoration: none;
  align-items: center;
  gap: 10px;
  transition: color 150ms;
  display: inline-flex;
  vertical-align: middle;
  margin-left: 3%;
  margin-bottom: auto;
  margin-top: auto;
}
.link:hover {
  color: var(--accent);
}
.link .arrow {
  font-size: 1.55em;
  color: var(--overlay0);
  transition: color 150ms, transform 200ms ease;
  display: inline-flex;
  align-items: flex-start;
  align-content: center;
}
.link:hover .arrow { color: var(--accent); transform: translate(3px, -3px); }
.project .project-link {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 500;
  letter-spacing: -.01em;
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  transition: color 150ms;
}
.project .project-link:hover { color: var(--accent); }
.project .project-link .arrow {
  font-size: .55em;
  color: var(--overlay0);
  transition: color 150ms, transform 200ms ease;
  display: inline-block;
}
.project .project-link:hover .arrow { color: var(--accent); transform: translate(3px, -3px); }
.project .tags { font-size: 11px; letter-spacing: .14em; color: var(--overlay0); }
.project .tags em { font-style: normal; color: var(--subtext0); }
.project .desc { font-size: 14px; line-height: 1.65; color: var(--subtext0); max-width: 68ch; }
.project .desc.empty { color: var(--overlay0); font-style: italic; }
.clones { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.clone-btn {
  font-family: inherit;
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--subtext0);
  background: transparent;
  border: 1px solid var(--surface1);
  padding: 6px 12px;
  border-radius: 2px;
  cursor: pointer;
  transition: color 150ms, border-color 150ms, background 150ms;
  white-space: nowrap;
}
.clone-btn:hover { color: var(--text); border-color: var(--accent); }
.clone-btn.copied { color: var(--base); background: var(--green); border-color: var(--green); }
.footer {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 4vw, 48px);
  padding: 32px clamp(20px, 5vw, 80px) 28px;
  border-top: 1px solid var(--surface0);
  max-width: 1200px;
  margin: 0 auto;
}
.footer-col h6 { font-size: 9px; letter-spacing: .3em; color: var(--accent); margin-bottom: 12px; font-weight: 500; }
.footer-col a {
  display: block;
  color: var(--subtext0);
  text-decoration: none;
  font-size: 12px;
  line-height: 1.9;
  transition: color 150ms ease;
}
.footer-col a:hover { color: var(--text); }
.footer-meta {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px dashed var(--surface0);
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--overlay0);
}
@media (max-width: 720px) {
  .footer { grid-template-columns: repeat(2, 1fr); }
  .project { grid-template-columns: 50px 1fr; gap: 16px; }
  .project .project-icon { width: 32px; height: 32px; }
}
/* ─────────── about ─────────── */
.about {
  padding: clamp(80px, 12vh, 140px) clamp(20px, 5vw, 80px) clamp(60px, 8vh, 100px);
  max-width: 1100px;
  margin: 0 auto;
}
.about-head .label {
  display: block;
  font-size: 11px;
  letter-spacing: .3em;
  color: var(--accent);
  margin-bottom: 40px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--text);
}
.about-items { display: flex; flex-direction: column; }
.about-item {
  display: grid;
  grid-template-columns: 4.5em 1fr;
  gap: 1.4em;
  padding: 36px 0;
  border-bottom: 1px solid var(--surface0);
  align-items: baseline;
}
.about-num {
  font-size: 11px;
  letter-spacing: .26em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  padding-top: .4em;
}
.about-h {
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 500;
  letter-spacing: -.02em;
  color: var(--text);
  margin-bottom: .5em;
}
.about-h .dot { color: var(--accent); }
.about-p { color: var(--subtext0); font-size: 14px; line-height: 1.7; max-width: 60ch; }
.about-p a { color: var(--text); border-bottom: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); text-decoration: none; }
.about-p a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.about-extra { margin-top: 32px; color: var(--subtext0); font-size: 14px; line-height: 1.65; }

.about-intro {
  color: var(--subtext0);
  font-size: 15px;
  line-height: 1.75;
  max-width: 64ch;
  margin-bottom: 56px;
}
.about-intro p + p { margin-top: 16px; }
.about-intro a { color: var(--text); border-bottom: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); text-decoration: none; }
.about-intro a:hover { color: var(--accent); border-bottom-color: var(--accent); }

.about-section-head {
  margin: 48px 0 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--text);
}
.about-section-head span {
  font-size: 11px;
  letter-spacing: .3em;
  color: var(--accent);
  font-weight: 500;
}

.about-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px 28px;
  margin-top: 8px;
}
.about-pillar {
  padding: 18px 0 4px;
  border-top: 1px solid var(--surface0);
}
.about-pillar h3 {
  font-size: 14px;
  letter-spacing: -.005em;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 8px;
}
.about-pillar h3 .dot { color: var(--accent); }
.about-pillar p { color: var(--subtext0); font-size: 13px; line-height: 1.6; }

.about-closer {
  color: var(--subtext0);
  font-size: 15px;
  line-height: 1.75;
  max-width: 64ch;
  margin-top: 8px;
}
.about-closer a { color: var(--text); border-bottom: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); text-decoration: none; }
.about-closer a:hover { color: var(--accent); border-bottom-color: var(--accent); }
@media (max-width: 720px) {
  .about-item { grid-template-columns: 1fr; gap: .5em; }
  .about-num { padding-top: 0; }
}

/* ─────────── changelog ─────────── */
.changelog {
  padding: clamp(80px, 12vh, 140px) clamp(20px, 5vw, 80px) clamp(60px, 8vh, 100px);
  max-width: 1000px;
  margin: 0 auto;
}
.cl-entry {
  display: grid;
  grid-template-columns: 11em 1fr;
  gap: 1.4em;
  padding: 24px 0;
  border-bottom: 1px solid var(--surface0);
  align-items: baseline;
}
.cl-meta { display: flex; flex-direction: column; gap: 8px; }
.cl-meta time {
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--overlay0);
  font-variant-numeric: tabular-nums;
}
.cl-kind {
  display: inline-block;
  font-size: 10px;
  letter-spacing: .22em;
  padding: 2px 8px;
  border-radius: 2px;
  text-transform: lowercase;
  width: max-content;
  border: 1px solid currentColor;
}
.cl-kind-news    { color: var(--blue); }
.cl-kind-release { color: var(--green); }
.cl-kind-note    { color: var(--peach); }
.cl-body { min-width: 0; }
.cl-title { font-size: clamp(16px, 2vw, 22px); font-weight: 500; color: var(--text); letter-spacing: -.01em; }
.cl-title a { color: inherit; text-decoration: none; display: inline-flex; align-items: baseline; gap: .35em; }
.cl-title a:hover { color: var(--accent); }
.cl-title a .arrow { font-size: .55em; color: var(--overlay0); transition: color 150ms, transform 200ms ease; }
.cl-title a:hover .arrow { color: var(--accent); transform: translate(3px, -3px); }
.cl-sum { color: var(--subtext0); font-size: 14px; line-height: 1.65; margin-top: 6px; max-width: 68ch; }

.cl-detail {
  padding: clamp(80px, 12vh, 140px) clamp(20px, 5vw, 80px) clamp(60px, 8vh, 100px);
  max-width: 800px;
  margin: 0 auto;
}
.cl-detail .projects-head h2 a { color: inherit; text-decoration: none; opacity: .7; }
.cl-detail .projects-head h2 a:hover { color: var(--accent); opacity: 1; }
.cl-detail-meta { display: flex; gap: 14px; align-items: center; margin: 18px 0 28px; flex-wrap: wrap; }
.cl-detail-sum { color: var(--subtext0); font-size: 14px; line-height: 1.6; }
.cl-detail-body { color: var(--text); font-size: 15px; line-height: 1.75; }
.cl-detail-body h2 { font-size: 18px; letter-spacing: .12em; color: var(--accent); margin: 28px 0 12px; text-transform: lowercase; }
.cl-detail-body h3 { font-size: 16px; color: var(--text); margin: 20px 0 10px; }
.cl-detail-body p  { margin-bottom: 14px; color: var(--subtext0); }
.cl-detail-body ul, .cl-detail-body ol { padding-left: 1.4em; margin-bottom: 14px; color: var(--subtext0); }
.cl-detail-body li { margin-bottom: 6px; }
.cl-detail-body code { background: var(--surface0); padding: 1px 6px; border-radius: 2px; font-size: .9em; color: var(--text); }
.cl-detail-body a { color: var(--text); border-bottom: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); text-decoration: none; }
.cl-detail-body a:hover { color: var(--accent); border-bottom-color: var(--accent); }
@media (max-width: 720px) {
  .cl-entry { grid-template-columns: 1fr; gap: .35em; }
  .cl-meta { flex-direction: row; align-items: center; gap: 12px; }
}

/* category list pages reuse .projects, just no hero above */
.projects.category { padding-top: clamp(80px, 12vh, 140px); }

/* clickable tag link in project row */
.project .tags a.tag { color: inherit; text-decoration: none; border-bottom: 1px dashed transparent; transition: color 150ms, border-color 150ms; }
.project .tags a.tag:hover { color: var(--text); border-bottom-color: var(--surface2); }

/* product rows: link-buttons (app store / play store / website) replace the
   copy-to-clipboard clone buttons. visual is the same shape; semantics is
   an <a>, not a <button>. */
.clone-btn.link-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}
.clone-btn.link-btn .arrow {
  font-size: .85em;
  color: var(--overlay0);
  transition: color 150ms, transform 200ms ease;
}
.clone-btn.link-btn:hover .arrow { color: var(--accent); transform: translate(2px, -2px); }
.project .project-link.as-text { color: var(--text); cursor: default; }
.project .project-link.as-text:hover { color: var(--text); }

/* coming-soon chip + dimmed product row */
.project.product.coming-soon .project-link.as-text { color: var(--subtext0); }
.project.product.coming-soon .project-icon { opacity: .55; filter: grayscale(.4); }
.cs-chip {
  display: inline-block;
  font-size: 10px;
  letter-spacing: .22em;
  padding: 2px 8px;
  border-radius: 2px;
  color: var(--peach);
  border: 1px solid currentColor;
  text-transform: lowercase;
  margin-right: 10px;
}
.project .tag-bar { display: inline-flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.category-empty {
  padding: 40px 0;
  color: var(--overlay0);
  font-style: italic;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after { animation-duration: .01ms !important; transition-duration: 220ms !important; }
  /* the global rule above + an infinite keyframe = ~100 cycles/sec = visible
     shake. Kill the float entirely when reduced motion is requested. */
  .vial-float, body:not(.opened) .vial-float { animation: none !important; }
}
