@font-face { font-family: 'Geist Serif'; src: url('./assets/GeistSerifVF.woff2') format('woff2-variations'); font-weight: 100 900; font-style: normal; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; background: #fbfbf8; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 6px; }

@property --accent { syntax: '<color>'; inherits: true; initial-value: #ba4337; }

.jc { --ease: cubic-bezier(0.22, 1, 0.36, 1); --spring: cubic-bezier(0.34, 1.56, 0.64, 1); --gut: clamp(16px, 2.6vw, 36px);
  --serif: 'Geist Serif', 'Times New Roman', serif;
  --sans: 'Hanken Grotesk', system-ui, sans-serif;
  position: relative; height: 100vh; height: 100svh; min-height: 600px; overflow: hidden; overflow: clip; isolation: isolate;
  background: var(--bg); color: var(--fg); font-family: var(--sans); font-size: 14px; line-height: 1.45;
  transition: background-color 0.6s var(--ease), color 0.6s var(--ease), --accent 1.1s var(--ease); }
.jc.is-dark { --bg: #0b0b0c; --fg: #f2f0ea; --mute: rgb(242 240 234 / 0.5); --line: rgb(242 240 234 / 0.14); --chip: rgb(255 255 255 / 0.06); --card: rgb(24 24 26 / 0.72); color-scheme: dark; }
.jc.is-light { --bg: #fbfbf8; --fg: #141413; --mute: rgb(20 20 19 / 0.52); --line: rgb(20 20 19 / 0.14); --chip: rgb(0 0 0 / 0.05); --card: rgb(250 249 246 / 0.78); color-scheme: light; }

.jc-grain { position: absolute; inset: -50%; z-index: 2; pointer-events: none; opacity: 0.06; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); animation: jc-grain 0.9s steps(4) infinite; }
.is-light .jc-grain { opacity: 0.045; }
@keyframes jc-grain { 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } }

/* Stage: the WebGL scene fills the whole hero; the UI floats on its edges. */
.jc-stage { position: absolute; inset: 0; z-index: 1; outline: none; animation: jc-fade 1.2s 0.1s var(--ease) backwards; }
.jc-stage canvas { display: block; width: 100%; height: 100%; touch-action: none; -webkit-tap-highlight-color: transparent; }
.jc-stage:focus-visible::after { content: ''; position: absolute; inset: 72px 18% 22px; border: 1px dashed var(--fg); border-radius: 24px; opacity: 0.45; pointer-events: none; }
.jc-flat { position: absolute; left: 50%; top: 50%; width: min(46vh, 72vw); aspect-ratio: 1; translate: -50% -50%; object-fit: contain; background: #fff; padding: 6%; border-radius: 4px; box-shadow: 0 30px 60px -20px rgb(0 0 0 / 0.5); }
.jc-cursor { position: absolute; left: 0; top: 0; z-index: 5; pointer-events: none; will-change: transform; }
.jc-cursor span { display: inline-block; translate: 18px 14px; padding: 7px 12px 6px; border-radius: 99px; background: var(--fg); color: var(--bg); font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; scale: 0; transform-origin: 0 0; transition: scale 0.35s var(--spring); }
.jc-stage.is-hover .jc-cursor span { scale: 1; }

/* Nav: wordmark, theme switch, profile button */
.jc-nav { position: absolute; z-index: 4; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 18px var(--gut); pointer-events: none; animation: jc-fade 1s 0.3s var(--ease) backwards; }
.jc-nav > * { pointer-events: auto; }
.jc-logo { margin: 0; font-family: var(--serif); font-size: 21px; font-weight: 450; letter-spacing: -0.02em; line-height: 1; }
.jc-logo a { text-decoration: none; display: inline-flex; align-items: baseline; gap: 10px; }
.jc-logo-sub { font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); }
.jc-meta { display: flex; align-items: center; gap: 10px; }
/* Same header as the homepage: the logo on the left, the menu on the right. */
.jc-nav { gap: 22px; padding-top: 16px; padding-bottom: 16px; }
.jc-brand { margin-right: auto; }
.jc-brand img { display: block; height: 74px; width: auto; }
.jc-links { display: flex; gap: 26px; font-family: 'Onest', var(--sans); font-size: 15px; font-weight: 700; }
.jc-links a { text-decoration: none; }
.jc-links a:hover, .jc-links a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.jc-theme[hidden] { display: none; }
.jc-links { align-items: center; }
.jc-lang { display: inline-grid; place-items: center; min-width: 38px; height: 30px; padding: 0 9px; border: 1.5px solid var(--fg); border-radius: 99px; background: none; color: var(--fg); font: 700 12px/1 'Onest', sans-serif; letter-spacing: .08em; cursor: pointer; }
.jc-lang:hover { background: var(--fg); color: var(--bg); }
@media (max-width: 760px) { .jc-lang { position: absolute; top: 22px; right: var(--gut); min-width: 40px; height: 30px; } }
/* Cases slide behind the menu (and behind the caption on phones): a soft fade of the page colour keeps both readable. */
.jc-nav::before { content: ''; position: absolute; z-index: -1; inset: 0 0 -46px 0; background: linear-gradient(var(--bg) 62%, transparent); pointer-events: none; }
@media (max-width: 760px) { .jc-caption::before { content: ''; position: absolute; z-index: -1; inset: -70px -100vw -60px -100vw; background: linear-gradient(transparent, var(--bg) 70px); pointer-events: none; } }
@media (max-width: 760px) { .jc-nav { flex-wrap: wrap; gap: 8px; padding-top: 10px; } .jc-brand img { height: 54px; } .jc-links { flex: 1 0 100%; justify-content: space-between; gap: 6px; font-size: clamp(12.5px, 3.5vw, 14.5px); } .jc-me { display: none; } }
.jc-theme { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--chip); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); cursor: pointer; transition: transform 0.45s var(--spring), border-color 0.3s; }
.jc-theme:hover { transform: rotate(-20deg) scale(1.06); border-color: var(--fg); }
.jc-theme span { position: relative; width: 14px; height: 14px; border-radius: 50%; background: var(--fg); overflow: hidden; transition: transform 0.6s var(--spring), box-shadow 0.4s; }
.jc-theme span::after { content: ''; position: absolute; width: 12px; height: 12px; border-radius: 50%; right: -3px; top: -3px; background: var(--bg); transition: transform 0.5s var(--ease), background-color 0.6s; }
.is-light .jc-theme span { transform: rotate(90deg) scale(0.72); box-shadow: 0 0 0 3px var(--bg), 0 0 0 4.5px var(--fg); overflow: visible; }
.is-light .jc-theme span::after { transform: translate(10px, -10px) scale(0); }

/* Profile button: the platypus on a slowly turning accent ring, with a status dot. */
.jc-me { position: relative; display: none; }   /* round contact badge with the green dot: removed, the menu already has Contact */
.jc-avatar { position: relative; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; background: conic-gradient(from var(--spin, 0deg), var(--accent), color-mix(in srgb, var(--accent) 30%, #fff), var(--accent)); animation: jc-spin 8s linear infinite; transition: transform 0.45s var(--spring); }
.jc-avatar::before { content: ''; position: absolute; inset: 2px; border-radius: 50%; background: var(--bg); transition: background-color 0.6s; }
.jc-avatar > img { position: relative; width: calc(100% - 6px); height: calc(100% - 6px); border-radius: 50%; object-fit: cover; }
.jc-avatar > i { position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; background: #36d27a; border: 2px solid var(--bg); }
.jc-avatar > i::after { content: ''; position: absolute; inset: -2px; border-radius: 50%; background: #36d27a; animation: jc-ping 1.8s ease-out infinite; z-index: -1; }
button.jc-avatar:hover { transform: scale(1.08); }
button.jc-avatar[aria-expanded='true'] { transform: scale(0.94); }
.jc-avatar.is-lg { width: 44px; height: 44px; flex: none; cursor: default; }
@property --spin { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes jc-spin { to { --spin: 360deg; } }
@keyframes jc-ping { to { transform: scale(2.6); opacity: 0; } }

/* Contact card: springs out of the profile button. */
.jc-card { position: absolute; top: calc(100% + 10px); right: 0; width: 330px; padding: 14px; border-radius: 20px; border: 1px solid var(--line); background: var(--card); backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4); box-shadow: 0 30px 60px -24px rgb(0 0 0 / 0.5); transform-origin: calc(100% - 19px) -10px; opacity: 0; scale: 0.6; translate: 0 -6px; visibility: hidden; transition: opacity 0.2s, scale 0.45s var(--spring), translate 0.45s var(--spring), visibility 0s 0.45s; }
.jc-card.is-open { opacity: 1; scale: 1; translate: 0 0; visibility: visible; transition: opacity 0.2s, scale 0.5s var(--spring), translate 0.5s var(--spring), visibility 0s; }
.jc-card > * { transition: opacity 0.3s, transform 0.5s var(--ease); }
.jc-card:not(.is-open) > * { opacity: 0; transform: translateY(6px); }
.jc-card.is-open > :nth-child(2) { transition-delay: 0.04s; }
.jc-card.is-open > :nth-child(3) { transition-delay: 0.08s; }
.jc-card.is-open > :nth-child(4) { transition-delay: 0.12s; }
.jc-card-head { display: flex; align-items: center; gap: 12px; }
.jc-card-name { margin: 0; font-family: var(--serif); font-size: 19px; font-weight: 450; letter-spacing: -0.02em; line-height: 1.1; }
.jc-card-role { margin: 2px 0 0; font-size: 12.5px; color: var(--mute); }
.jc-card-status { display: flex; align-items: center; gap: 7px; margin: 12px 0; padding: 8px 10px; border-radius: 10px; background: var(--chip); font-size: 12px; font-weight: 600; }
.jc-card-status i { width: 7px; height: 7px; border-radius: 50%; background: #36d27a; box-shadow: 0 0 0 3px rgb(54 210 122 / 0.2); }
.jc-card-status span { color: var(--mute); }
.jc-card-status time { font-variant-numeric: tabular-nums; }
.jc-card-status em { font-style: normal; font-weight: 500; color: var(--mute); }
.jc-card-rows { display: grid; gap: 2px; }
.jc-row { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 8px; width: 100%; padding: 8px 8px 8px 6px; border: 0; border-radius: 11px; background: none; font-size: 13.5px; font-weight: 600; text-align: left; text-decoration: none; cursor: pointer; transition: background-color 0.25s; }
.jc-row:hover { background: var(--chip); }
.jc-row-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--line); transition: transform 0.45s var(--spring), background-color 0.3s, color 0.3s, border-color 0.3s; }
.jc-row:hover .jc-row-icon { transform: scale(1.08) rotate(-6deg); background: var(--fg); color: var(--bg); border-color: var(--fg); }
.jc-row-icon svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.jc-row-label { white-space: nowrap; }
.jc-row-note { font-size: 11.5px; font-weight: 500; color: var(--mute); max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jc-copy-icon { position: relative; }
.jc-copy-icon svg { position: absolute; transition: transform 0.4s var(--spring), opacity 0.2s; }
.jc-copy-icon svg + svg { stroke-width: 2; stroke-dasharray: 16; stroke-dashoffset: 16; transition: stroke-dashoffset 0.45s 0.1s var(--ease); }
.jc-copy.is-ok .jc-row-icon { background: #1f9d5a; border-color: #1f9d5a; color: #fff; transform: none; }
.jc-copy.is-ok .jc-copy-icon svg:first-child { transform: scale(0); opacity: 0; }
.jc-copy.is-ok .jc-copy-icon svg + svg { stroke-dashoffset: 0; }
.jc-copy.is-fail .jc-row-note { max-width: none; color: var(--fg); user-select: all; }
.jc-card-social { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 12px 0 0; padding: 10px 6px 0; border-top: 1px solid var(--line); list-style: none; }
.jc-card-social a { font-size: 12px; color: var(--mute); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: color 0.25s, background-size 0.4s var(--ease); }
.jc-card-social a:hover { color: var(--fg); background-size: 100% 1px; }

/* Caption, bottom left: the only project copy. Long project names wrap by word. */
.jc-caption { position: absolute; z-index: 3; left: var(--gut); bottom: clamp(20px, 4vh, 36px); max-width: max(260px, calc(50vw - 360px)); pointer-events: none; }
.jc-caption > * { pointer-events: auto; }
.jc-count { margin: 0 0 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; font-variant-numeric: tabular-nums; color: var(--mute); animation: jc-fade 1s 0.5s var(--ease) backwards; }
.jc-count b { color: var(--fg); }
.jc-title { margin: 0; font-family: var(--serif); font-size: clamp(28px, 3vw, 46px); font-weight: 420; line-height: 1.02; letter-spacing: -0.035em; }
.jc-title .w { display: inline-block; white-space: nowrap; }
.jc-title .w > span { display: inline-block; animation: jc-letter 0.8s calc(var(--i) * 24ms) var(--ease) backwards; }
@keyframes jc-letter { from { opacity: 0; transform: translateY(0.5em) rotate(6deg); filter: blur(5px); } }
.jc-sub { margin: 8px 0 10px; font-size: 13px; color: var(--mute); animation: jc-fade 0.7s 0.15s var(--ease) backwards; }
.jc-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 2px; transition: background-size 0.45s var(--ease); }
.jc-link svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.45s var(--spring); }
.jc-link:hover { background-size: 0 1px; background-position: 100% 100%; }
.jc-link:hover svg { transform: translate(2px, -2px) rotate(45deg); }

/* Progress ticks, right edge: one per case. */
.jc-ticks { position: absolute; z-index: 3; right: calc(var(--gut) - 8px); top: 50%; translate: 0 -50%; display: flex; flex-direction: column; align-items: flex-end; animation: jc-fade 1s 0.6s var(--ease) backwards; }
.jc-ticks button { display: flex; justify-content: flex-end; align-items: center; width: 40px; height: 12px; padding: 0 8px; border: 0; background: none; cursor: pointer; }
.jc-ticks i { width: 10px; height: 1.5px; border-radius: 1px; background: var(--fg); opacity: 0.28; transition: width 0.45s var(--ease), opacity 0.3s, background-color 0.4s; }
.jc-ticks button:hover i { width: 16px; opacity: 0.7; }
.jc-ticks button[aria-current] i { width: 24px; opacity: 1; background: var(--fg); }

.jc-hint { position: absolute; z-index: 3; right: var(--gut); bottom: clamp(20px, 4vh, 36px); margin: 0; font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); white-space: nowrap; pointer-events: none; animation: jc-fade 1s 1.6s var(--ease) backwards; transition: opacity 0.8s var(--ease), translate 0.8s var(--ease); }
.jc-hint.is-gone { opacity: 0; translate: 0 8px; }
.jc-hint-touch { display: none; }
@media (hover: none) { .jc-hint-mouse { display: none; } .jc-hint-touch { display: inline; } .jc-cursor { display: none; } }
.jc-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@keyframes jc-fade { from { opacity: 0; } }

@media (max-width: 860px) { .jc-hint { display: none; } }
@media (max-height: 720px) { .jc-ticks button { height: 9px; } }
@media (max-width: 600px) {
  .jc-ticks { display: none; }
  .jc-logo-sub { display: none; }
  .jc-caption { max-width: calc(100vw - 32px); }
  .jc-title { font-size: clamp(26px, 8vw, 36px); }
  .jc-card { width: min(330px, calc(100vw - 32px)); }
  .jc-stage:focus-visible::after { inset: 64px 10px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .jc *, .jc *::before, .jc *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .jc { transition: none; }
}
