/* Hallmark · shape: figure-led studio page (drawn Stat-Led, swapped) · genre: modern-minimal · theme: Blueprint (deal 2/3, seed small-independent-studio-builds-645e·1a7a8a8c·2026-11-18·r0) · redesign: full
 * hero: Stage · nav: floating bar · footer: mast · imagery: screenshots 2 (getpalermo.com, the user's own), product captures in colour, photographs 3 (the user's own: Chillmate, two founders) printed as cyanotypes · signature: 500,000+ downloads of ΠΑΛΕΡΜΟ set on a dimension string from 2014 to 2026 · blueprint: cyanotype, display Bahnschrift (the brand face, it sets Greek; Chakra Petch does not)
 * axes: mid/grotesk-sans/neutral · posture: drenched · job: try (each product's own site), close on contact · draw: be8fca · contrast: pass · fold: pass · finish-review: subagent · 8 findings · 7 resolved 1 answered · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H5 E4 S5 R5 V4 · weakest: P, a studio page argues little; let the 500,000+ figure, the role deck and the peer mesh carry the claim that the work is finished, not promised */
/* Hallmark · dropped assets/js/dot-grid.js, https://cdn.tailwindcss.com · the dot canvas is wallpaper behind prose in a second colour, which the cyanotype sheet refuses, and the page no longer uses Tailwind */
/* Hallmark · dropped logo.svg, palermo.png, chillmate.png, pappas.jpg, varsamis.jpg · the logo is now drawn as a mask in the sheet ink, the ΠΑΛΕΡΜΟ banner gave way to real screenshots from getpalermo.com, the rest now load as their WebP twins */
/* Hallmark · reworded "Icy Hippo — We Build Fun." to "Icy Hippo: We Build Fun." · 19 names the dash */
/* Hallmark · answered hero-review · not run as its own stage; the hero was built with the page and judged in the finish review */
/* Hallmark · dismissed 49 · the role cards are whole cards as buttons; their text is the card, not a label */
/* Hallmark · dismissed 19 · "All rights reserved" is the owner's own legal line, kept as found */
@import url("./tokens.css");
@import url("./base.css");

@font-face {
  font-family: "Bahnschrift";
  src: url("../fonts/bahnschrift.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --nav-h: 64px; --wordmark-ratio: 580.04 / 100;
  /* packet colours in the WebRTC diagram: one per kind of data */
  --color-video: oklch(83% 0.15 78); --color-audio: oklch(84% 0.13 165); --color-file: oklch(76% 0.15 15);
}

h1, h2 { text-transform: uppercase; line-height: 1.02; }
h3 { font-weight: var(--display-weight); }

.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); }

/* ---------- controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs);
  min-height: 48px; padding: var(--space-sm) var(--space-lg);
  border: var(--rule-hair) solid var(--color-rule); border-radius: 0;
  background: transparent; color: var(--color-ink);
  font-family: var(--font-body); font-weight: 500; font-size: var(--text-md); line-height: 1.2;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out), transform var(--dur-micro) var(--ease-out);
}
.btn:hover { background: var(--color-paper-3); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.btn--primary { background: var(--color-ink); border-color: var(--color-ink); color: var(--color-accent-ink); }
.btn--primary:hover { background: var(--color-ink-2); border-color: var(--color-ink-2); }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.link { color: var(--color-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; transition: text-decoration-color var(--dur-micro) var(--ease-out); }
.link:hover { text-decoration-color: transparent; }
.link:active { color: var(--color-ink-2); }
.link:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.link--plain { text-decoration: none; transition: color var(--dur-micro) var(--ease-out); }
.link--plain:hover { color: var(--color-muted); }
.link--plain:active { color: var(--color-ink-2); }

/* ---------- the wordmark: the user's logo drawn in the sheet's white line ---------- */
.wordmark {
  display: block; aspect-ratio: var(--wordmark-ratio); background: var(--color-ink);
  -webkit-mask: url("../images/logo.svg") no-repeat left center / contain;
  mask: url("../images/logo.svg") no-repeat left center / contain;
}

/* ---------- nav: a floating bar ---------- */
.nav { position: sticky; top: var(--space-md); z-index: var(--z-sticky-nav); margin-top: var(--space-md); }
.nav__bar {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg);
  min-height: var(--nav-h); padding-inline: var(--space-lg);
  background: var(--color-paper-2); border: var(--rule-hair) solid var(--color-rule-2);
}
.nav__home { display: block; width: 136px; }
.nav__home:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 6px; }
.nav__links { display: flex; gap: var(--space-xl); margin: 0; padding: 0; list-style: none; }
.nav__links a { color: var(--color-muted); font-size: var(--text-sm); font-weight: 500; text-decoration: none; transition: color var(--dur-micro) var(--ease-out); }
.nav__links a:hover { color: var(--color-ink); }
.nav__links a:active { color: var(--color-ink-2); }
.nav__links a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; color: var(--color-ink); }

/* ---------- figures in the double keyline ---------- */
.fig { position: relative; margin: 0; border: var(--rule-hair) solid var(--color-rule); }
.fig::after { content: ""; position: absolute; inset: 5px; z-index: 2; border: var(--rule-hair) solid var(--color-rule-2); pointer-events: none; }
[data-slot][data-kind="product"] { background: var(--color-paper-3); }
[data-slot][data-kind="product"] > img { filter: none; mix-blend-mode: normal; }
[data-slot][data-kind="product"]::before { content: none; }
[data-slot="chillmate"] > img { filter: grayscale(1) contrast(1.7) brightness(1.08); }
.caption { margin-top: var(--space-sm); color: var(--color-muted); font-size: var(--text-sm); }

/* ---------- hero: Stage ---------- */
.hero { display: grid; align-items: center; min-height: calc(100svh - var(--nav-h) - var(--space-md)); padding-block: var(--space-2xl); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); align-items: center; }
.hero h1 { font-size: clamp(3rem, 4.6vw + 1rem, 6.25rem); max-width: 9ch; }
.hero .lead { margin-top: var(--space-lg); color: var(--color-ink-2); max-width: 34ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-xl); }

/* ---------- the figure: a dimension string ---------- */
.since { display: block; }
.since__title { margin: 0; max-width: none; font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--text-section); line-height: 1.02; letter-spacing: var(--tracking-display); text-transform: uppercase; overflow-wrap: break-word; }
.since__big { display: block; margin-bottom: var(--space-md); font-size: clamp(4.5rem, 12vw, 11rem); line-height: 1; font-variant-numeric: tabular-nums; }
.dimline { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; column-gap: var(--space-md); margin-top: var(--space-2xl); }
.dimline__end { font-family: var(--font-outlier); font-weight: 500; font-size: var(--text-sm); color: var(--color-ink-2); padding-bottom: var(--space-sm); }
.dimline__span { display: grid; gap: var(--space-sm); }
.dimline__value { text-align: center; color: var(--color-ink); font-size: var(--text-sm); font-weight: 500; }
.dim { position: relative; height: var(--rule-hair); background: var(--color-rule); margin-bottom: var(--space-md); }
.dim::before, .dim::after { content: ""; position: absolute; top: calc(var(--tick) / -2); width: var(--rule-hair); height: var(--tick); background: var(--color-rule); transform: rotate(45deg); }
.dim::before { left: 0; } .dim::after { right: 0; }
.dim__ext { position: absolute; top: calc(var(--space-lg) * -1); bottom: calc(var(--space-sm) * -1); width: var(--rule-hair); background: var(--color-rule-2); }
.dim__ext--l { left: 0; } .dim__ext--r { right: 0; }

/* ---------- sections ---------- */
.section { padding-block: var(--section-gap); }
.section--l { padding-block: var(--section-gap-l); }
.section--after-figure { padding-top: var(--space-2xl); }
.section--close { padding-bottom: var(--section-gap-s); }
.head { margin-bottom: var(--space-2xl); }
.head .lead { margin-top: var(--space-lg); color: var(--color-ink-2); }

/* the work: splits */
.project { align-items: center; row-gap: var(--space-xl); }
.project__shot { grid-column: 1 / 7; aspect-ratio: 1320 / 1434; }
.project__text { grid-column: 8 / 13; }
.project--mirror .project__text { grid-column: 1 / 6; grid-row: 1; }
.project--mirror .project__shot { grid-column: 6 / 13; aspect-ratio: 4 / 3; }
.project__name { font-size: var(--text-3xl); }
.project__text > p { margin-top: var(--space-md); color: var(--color-ink-2); }
.project__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-lg); margin-top: var(--space-xl); }


/* the team */
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap-columns); }
.person { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-xl); align-items: start; padding-top: var(--space-xl); border-top: var(--rule-hair) solid var(--color-rule); }
.person__photo { aspect-ratio: 4 / 5; }
.person h3 { font-size: var(--text-title); }
.person__role { margin-top: var(--space-xs); color: var(--color-ink-2); font-weight: 500; }
.person__line { margin-top: var(--space-md); color: var(--color-ink-2); }
.person__links { display: flex; gap: var(--space-xs); margin-top: var(--space-lg); }
.icon-link { display: inline-grid; place-items: center; width: 44px; height: 44px; border: var(--rule-hair) solid var(--color-rule-2); color: var(--color-ink); transition: background-color var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out); }
.icon-link:hover { background: var(--color-paper-2); border-color: var(--color-rule); }
.icon-link:active { background: var(--color-paper-3); }
.icon-link:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.icon-link svg, .icon-link .social-icon { width: 20px; height: 20px; }

/* contact: a title block */
.titleblock { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); border: var(--rule-hair) solid var(--color-rule); }
.cell { padding: var(--space-lg); border-right: var(--rule-hair) solid var(--color-rule); border-bottom: var(--rule-hair) solid var(--color-rule); min-width: 0; }
.cell dt { font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); margin-bottom: var(--space-md); }
.cell dd { margin: 0; }
.cell--email { grid-column: span 6; }
.cell--phone { grid-column: span 6; border-right: 0; }
.cell--email, .cell--phone { border-bottom: 0; }
.cell__big { font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--text-3xl); line-height: 1.1; overflow-wrap: break-word; }
.cell__mid { font-size: var(--text-lead); line-height: 1.4; }
.cell .tel { font-variant-numeric: tabular-nums; }

/* footer: a mast */
.footer { padding-block: var(--space-2xl); }
.footer__mast { width: 100%; max-width: 880px; }
.footer__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-lg); margin-top: var(--space-2xl); padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule-2); }
.footer__links { display: flex; flex-wrap: wrap; gap: var(--space-xl); margin: 0; padding: 0; list-style: none; }
.footer__social { display: flex; gap: var(--space-xs); }
.footer__legal { margin-top: var(--space-xl); display: grid; gap: var(--space-sm); color: var(--color-muted); font-size: var(--text-xs); line-height: 1.5; max-width: 75ch; }
.social-icon { display: inline-block; background-color: currentColor; -webkit-mask-size: contain; -webkit-mask-repeat: no-repeat; -webkit-mask-position: center; mask-size: contain; mask-repeat: no-repeat; mask-position: center; }

/* ---------- under 60rem everything stacks in reading order ---------- */
/* ---------- the sheet: grid, registration marks, crosshair ---------- */
.hero { position: relative; }
.hero > .container { position: relative; z-index: 1; }
.sheet-grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--color-grid-2) 1px, transparent 1px), linear-gradient(90deg, var(--color-grid-2) 1px, transparent 1px),
    linear-gradient(var(--color-grid) 1px, transparent 1px), linear-gradient(90deg, var(--color-grid) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: var(--sheet-inset) var(--sheet-inset);
  -webkit-mask-image: radial-gradient(ellipse 55% 75% at 72% 50%, black 35%, transparent 80%);
  mask-image: radial-gradient(ellipse 55% 75% at 72% 50%, black 35%, transparent 80%);
}
.js .hero .sheet-grid { animation: sheet-in 1200ms var(--ease-out) both; }
@keyframes sheet-in { from { opacity: 0; } to { opacity: 1; } }

.hero__drawing { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--space-md); row-gap: var(--space-sm); }
.hero__fig { grid-column: 1; cursor: crosshair; }
.num.dimline__value, .dimline__value.num { font-family: var(--font-outlier); }

.reg { position: absolute; z-index: 3; width: 24px; height: 24px; pointer-events: none; }
.reg::before, .reg::after { content: ""; position: absolute; background: var(--color-rule); }
.reg::before { left: 50%; top: 0; bottom: 0; width: var(--rule-hair); }
.reg::after { top: 50%; left: 0; right: 0; height: var(--rule-hair); }
.reg--tl { top: -12px; left: -12px; }
.reg--br { bottom: -12px; right: -12px; }

.xhair { position: absolute; z-index: 3; top: 0; left: 0; pointer-events: none; background: var(--color-ink); opacity: 0; transition: opacity var(--dur-short) var(--ease-out); }
.xhair--x { right: 0; height: var(--rule-hair); }
.xhair--y { bottom: 0; width: var(--rule-hair); }
.readout { position: absolute; z-index: 3; left: var(--space-md); bottom: var(--space-md); padding: var(--space-2xs) var(--space-xs); background: var(--color-paper-3); color: var(--color-ink); font-family: var(--font-outlier); font-size: var(--text-xs); white-space: pre; opacity: 0; transition: opacity var(--dur-short) var(--ease-out); pointer-events: none; }
.is-aiming .xhair { opacity: 0.6; }
.is-aiming .readout { opacity: 1; }

/* lines that draw themselves once */
.will-draw { transform: scaleX(0); transform-origin: left center; transition: transform 1100ms var(--ease-out); }
.will-draw.is-drawn { transform: none; }
.h-rule { position: relative; height: var(--rule-hair); margin-top: var(--space-lg); background: var(--color-rule-2); }
.h-rule::before { content: ""; position: absolute; left: 0; top: -6px; width: var(--rule-hair); height: 13px; background: var(--color-rule); }
.h-rule::after { content: ""; position: absolute; left: 0; top: 0; width: 120px; height: var(--rule-heavy); background: var(--color-rule); }

/* ---------- ΠΑΛΕΡΜΟ: the role deck ---------- */
.project--palermo { align-items: center; }
.project--palermo .project__text { grid-column: 1 / 6; }
.deck-wrap { grid-column: 6 / 13; }
.deck { list-style: none; margin: 0; padding: var(--space-md) 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-lg); }
.deck li:nth-child(1) .rcard { rotate: -2deg; }
.deck li:nth-child(2) .rcard { rotate: 1.5deg; }
.deck li:nth-child(3) .rcard { rotate: -1deg; }
.js .deck.will-deal li { opacity: 0; transform: translateY(32px) rotate(6deg); transition: opacity var(--dur-long) var(--ease-out), transform 700ms var(--ease-out); transition-delay: calc(var(--i) * 110ms); }
.js .deck.will-deal.is-dealt li { opacity: 1; transform: none; }

.rcard { position: relative; display: block; width: 100%; aspect-ratio: 5 / 7; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: center; cursor: pointer; perspective: 1200px; transition: translate var(--dur-short) var(--ease-out); }
.rcard:hover { translate: 0 -6px; }
.rcard:active { translate: 0 2px; }
.rcard:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 6px; }
.rcard__back, .rcard__front { position: absolute; inset: 0; display: grid; border: var(--rule-hair) solid var(--color-rule); backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: transform var(--dur-long) var(--ease-in-out); }
.rcard__back {
  place-items: center;
  background:
    repeating-linear-gradient(45deg, transparent 0 13px, var(--color-grid-2) 13px 14px),
    repeating-linear-gradient(-45deg, transparent 0 13px, var(--color-grid-2) 13px 14px),
    var(--color-paper-2);
}
.rcard__back::before, .rcard__back::after { content: ""; position: absolute; pointer-events: none; }
.rcard__back::before { inset: var(--space-sm); border: var(--rule-hair) solid var(--color-rule); }
.rcard__back::after { inset: calc(var(--space-sm) + 5px); border: var(--rule-hair) solid var(--color-rule-2); }
.rcard__seal { position: relative; z-index: 1; display: grid; place-items: center; width: 52%; aspect-ratio: 1; border-radius: 50%; background: var(--color-paper-2); color: var(--color-ink); border: var(--rule-hair) solid var(--color-rule); box-shadow: 0 0 0 6px var(--color-paper-2), 0 0 0 7px var(--color-rule-2); transition: rotate var(--dur-long) var(--ease-out); }
.rcard__seal::before { content: ""; width: 68%; aspect-ratio: 1; background: var(--color-ink); -webkit-mask: url("../images/palermo/logo-hand.svg") center / contain no-repeat; mask: url("../images/palermo/logo-hand.svg") center / contain no-repeat; }
.rcard:hover .rcard__seal { rotate: -8deg; }
.rcard__pip { position: absolute; z-index: 1; top: var(--space-lg); left: var(--space-lg); padding: 0 var(--space-2xs); background: var(--color-paper-2); color: var(--color-ink); font-family: var(--font-outlier); font-weight: 500; font-size: var(--text-sm); line-height: 1.4; }
.rcard__pip--foot { top: auto; left: auto; bottom: var(--space-lg); right: var(--space-lg); rotate: 180deg; }
.rcard__front { transform: rotateY(180deg); justify-items: center; align-content: center; gap: var(--space-2xs); padding: var(--space-md) var(--space-md) var(--space-lg); background: var(--color-paper-3); color: var(--color-ink); }
.rcard__front::after { content: ""; position: absolute; inset: 5px; border: var(--rule-hair) solid var(--color-rule-2); pointer-events: none; }
.rcard__name { font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--text-2xl); line-height: 1.1; }
.rcard__team { font-size: var(--text-xs); color: var(--color-muted); }
.rcard__desc { margin-top: var(--space-xs); font-size: var(--text-xs); line-height: 1.4; color: var(--color-ink-2); text-wrap: pretty; }
.rcard[aria-pressed="true"] .rcard__back { transform: rotateY(-180deg); }
.rcard[aria-pressed="true"] .rcard__front { transform: rotateY(0deg); }
html:not(.js) .rcard__back { display: none; }
html:not(.js) .rcard__front { transform: none; }
.deck__hint { margin-top: var(--space-lg); color: var(--color-muted); font-size: var(--text-sm); text-align: center; }
html:not(.js) .deck__hint { display: none; }

/* ---------- Chillmate: the peer mesh ---------- */
.mesh-fig { grid-column: 6 / 13; }
.mesh { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border: var(--rule-hair) solid var(--color-rule); background: var(--color-paper-2); }
.mesh::after { content: ""; position: absolute; inset: 5px; z-index: 4; border: var(--rule-hair) solid var(--color-rule-2); pointer-events: none; }
.sheet-grid--local { -webkit-mask-image: none; mask-image: none; }
.mesh__lines { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; }
.mesh__lines path { fill: none; stroke: var(--color-rule); stroke-width: 1; stroke-dasharray: 4 5; vector-effect: non-scaling-stroke; }
.mesh__packet { fill: var(--color-ink); }
.bubble { position: absolute; z-index: 2; left: var(--x); top: var(--y); width: var(--s); aspect-ratio: 1; translate: -50% -50%; animation: bob 7s var(--ease-in-out) infinite; animation-delay: var(--d); }
/* the video, printed like the founders' portraits: grey, multiplied over ink, lightened by the sheet */
.bubble__media { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; isolation: isolate; border-radius: 50%; border: var(--rule-hair) solid var(--color-ink); background: var(--color-ink);
  /* Safari ignores rounded overflow clipping on filtered or blended video; a clip-path and a mask force it */
  -webkit-clip-path: circle(50% at 50% 50%); clip-path: circle(50% at 50% 50%); -webkit-mask-image: -webkit-radial-gradient(white, black); transform: translateZ(0); }
.bubble::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: var(--rule-hair) solid var(--color-rule-2); pointer-events: none; }
.bubble__media::before { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--color-paper-3); mix-blend-mode: lighten; pointer-events: none; }
.bubble video { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; -webkit-clip-path: circle(50% at 50% 50%); clip-path: circle(50% at 50% 50%); filter: grayscale(1) contrast(1.3) brightness(0.9); mix-blend-mode: multiply; }
.bubble__tag { position: absolute; left: 50%; top: calc(100% + var(--space-md)); translate: -50% 0; padding: 0 var(--space-2xs); background: var(--color-paper-2); color: var(--color-ink-2); font-family: var(--font-outlier); font-weight: 500; font-size: var(--text-xs); white-space: nowrap; }
@keyframes bob { 0%, 100% { transform: translateY(-6px); } 50% { transform: translateY(6px); } }
.mesh.is-paused .bubble { animation-play-state: paused; }


/* ---------- inner pages: about, privacy ---------- */
[data-lang-el] { display: none; }
html[lang="el"] [data-lang-en] { display: none; }
html[lang="el"] [data-lang-el] { display: revert; }

.nav__end { display: flex; align-items: center; gap: var(--space-xl); }
.lang { display: flex; border: var(--rule-hair) solid var(--color-rule-2); }
.lang button { min-height: 36px; min-width: 44px; padding: 0 var(--space-sm); border: 0; background: transparent; color: var(--color-muted); font-family: var(--font-body); font-weight: 500; font-size: var(--text-sm); cursor: pointer; transition: background-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out); }
.lang button + button { border-left: var(--rule-hair) solid var(--color-rule-2); }
.lang button:hover { color: var(--color-ink); }
.lang button:active { transform: translateY(1px); }
.lang button:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.lang button[aria-pressed="true"] { background: var(--color-ink); color: var(--color-accent-ink); }

.page-head { position: relative; padding-block: var(--space-3xl) var(--space-xl); }
.page-head > .container { position: relative; z-index: 1; }
.page-head .sheet-grid { -webkit-mask-image: radial-gradient(ellipse 60% 90% at 85% 40%, black 20%, transparent 75%); mask-image: radial-gradient(ellipse 60% 90% at 85% 40%, black 20%, transparent 75%); }
.js .page-head .sheet-grid { animation: sheet-in 1200ms var(--ease-out) both; }
.page-head h1 { font-size: var(--text-display); max-width: 16ch; }
.page-head .h-rule { margin-top: var(--space-xl); }
.page-meta { margin-top: var(--space-lg); color: var(--color-ink-2); font-size: var(--text-sm); }
.section--page { padding-block: var(--space-2xl) var(--section-gap-s); }
.section--page + .section--page { padding-top: 0; }
.footer__links a[aria-current="page"] { color: var(--color-muted); }

/* about: the company register */
.register-block { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border: var(--rule-hair) solid var(--color-rule); }
.register-block > div { padding: var(--space-lg); border-bottom: var(--rule-hair) solid var(--color-rule-2); min-width: 0; }
.register-block > div:nth-child(odd) { border-right: var(--rule-hair) solid var(--color-rule-2); }
.register-block dt { margin-bottom: var(--space-xs); color: var(--color-muted); font-size: var(--text-sm); font-weight: 500; }
.register-block dd { margin: 0; font-size: var(--text-lead); line-height: 1.4; overflow-wrap: break-word; }
.register-block__wide { grid-column: 1 / -1; border-right: 0 !important; border-bottom: 0 !important; }

/* privacy: a document with its own index */
.doc { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); align-items: start; }
.toc { grid-column: 1 / 4; position: sticky; top: calc(var(--nav-h) + var(--space-2xl)); }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; border-top: var(--rule-hair) solid var(--color-rule); }
.toc li { counter-increment: toc; border-bottom: var(--rule-hair) solid var(--color-rule-2); }
.toc a { display: grid; grid-template-columns: 2.75em minmax(0, 1fr); padding-block: var(--space-xs); color: var(--color-muted); font-size: var(--text-sm); text-decoration: none; transition: color var(--dur-micro) var(--ease-out); }
.toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--font-outlier); font-weight: 500; }
.toc a:hover, .toc a.is-current { color: var(--color-ink); }
.toc a:active { color: var(--color-ink-2); }
.toc a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; color: var(--color-ink); }
.doc__body { grid-column: 5 / 13; counter-reset: sec; }
.doc__body section { counter-increment: sec; padding-block: var(--space-xl); border-top: var(--rule-hair) solid var(--color-rule-2); scroll-margin-top: calc(var(--nav-h) + var(--space-2xl)); }
.doc__body section:first-child { border-top: var(--rule-hair) solid var(--color-rule); padding-top: var(--space-lg); }
.doc__body h2 { display: flex; gap: var(--space-md); align-items: baseline; max-width: none; font-size: var(--text-2xl); }
.doc__body h2::before { content: counter(sec, decimal-leading-zero); flex-shrink: 0; font-family: var(--font-outlier); font-weight: 500; font-size: var(--text-sm); color: var(--color-muted); letter-spacing: 0; }
.doc__body p { margin-top: var(--space-md); max-width: 65ch; color: var(--color-ink-2); line-height: 1.7; }
.doc__body ul { margin: var(--space-md) 0 0; padding-left: 1.25em; }
.doc__body li { margin-top: var(--space-xs); }
.doc__body li::marker { color: var(--color-muted); }

/* ---------- hero: the hippo, drafted ---------- */
.hero__drawing { display: block; }
.hero__fig { aspect-ratio: 196 / 140; background: var(--color-paper-2); cursor: crosshair; }
.elev { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.elev__hatch { stroke: var(--color-ink); stroke-width: 0.35; opacity: 0.5; }
.elev__body path { fill: url(#hatch); stroke: var(--color-ink); stroke-width: 0.5; stroke-linejoin: round; }
.elev__body path:last-child { transform-box: fill-box; transform-origin: 100% 100%; }
.elev__con { fill: none; stroke: var(--color-rule-2); stroke-width: 0.3; stroke-dasharray: 2 1.5; }
.elev__axis { stroke: var(--color-rule-2); stroke-width: 0.25; stroke-dasharray: 6 1.5 1 1.5; }
.elev__ground { stroke: var(--color-rule); stroke-width: 0.4; }
.elev__ext { stroke: var(--color-rule-2); stroke-width: 0.25; }
.elev__dim { fill: none; stroke: var(--color-rule); stroke-width: 0.3; }
.elev__label { fill: var(--color-ink); font-family: var(--font-outlier); font-weight: 500; font-size: 4.2px; }
@media (prefers-reduced-motion: no-preference) {
  .js .elev__ground, .js .elev__body path { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .js .elev__ground { animation: elev-draw 900ms var(--ease-out) forwards; }
  .js .elev__body path { fill-opacity: 0; animation: elev-draw 1800ms var(--ease-in-out) 300ms forwards, elev-fill 900ms var(--ease-out) 1900ms forwards; }
  .js .elev__con, .js .elev__axis { opacity: 0; animation: elev-fade 800ms var(--ease-out) 150ms forwards; }
  .js .elev__dims { opacity: 0; animation: elev-fade 700ms var(--ease-out) 2100ms forwards; }
  .js .elev__body path:last-child { animation: elev-draw 1800ms var(--ease-in-out) 300ms forwards, elev-fill 900ms var(--ease-out) 1900ms forwards, elev-wag 6s var(--ease-in-out) 3s infinite; }
}
@keyframes elev-draw { to { stroke-dashoffset: 0; } }
@keyframes elev-fill { to { fill-opacity: 1; } }
@keyframes elev-fade { to { opacity: 1; } }
@keyframes elev-wag { 0%, 80%, 100% { transform: rotate(0deg); } 85% { transform: rotate(-14deg); } 90% { transform: rotate(8deg); } 95% { transform: rotate(-6deg); } }

/* the 404 sheet: everything but the hippo */
.code404 { font-size: clamp(5rem, 12vw, 11rem); line-height: 0.95; max-width: none; }
.elev--missing .elev__body path { fill: none; stroke: var(--color-rule-2); stroke-dasharray: 0.012 0.008; }
@media (prefers-reduced-motion: no-preference) {
  .js .elev--missing .elev__body path { stroke-dasharray: 0.012 0.008; stroke-dashoffset: 0; fill-opacity: 0; animation: elev-fade 900ms var(--ease-out) 1200ms both; }
}

/* a change of sheet between products */
.band { position: relative; background: var(--color-paper-3); border-top: var(--rule-hair) solid var(--color-rule); }
.band__rule { position: absolute; left: 0; right: 0; top: 0; height: 0; }
.band__rule::before, .band__rule::after { content: ""; position: absolute; top: -7px; width: var(--rule-hair); height: 14px; background: var(--color-rule); }
.band__rule::before { left: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter))); }
.band__rule::after { right: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter))); }
.band .mesh, .band .thread, .band .hs { background: var(--color-paper-2); }

/* ---------- subsections ---------- */
.sub { align-items: center; row-gap: var(--space-xl); margin-top: var(--section-gap-s); }
.sub__text { grid-column: 1 / 6; }
.sub__title { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--text-2xl); line-height: 1.1; letter-spacing: var(--tracking-display); text-wrap: balance; }
.sub__text > p { margin-top: var(--space-md); color: var(--color-ink-2); }
.chat-fig { grid-column: 6 / 13; }
.sub + .sub { margin-top: var(--section-gap-s); }
.sub--mirror .sub__text { grid-column: 8 / 13; grid-row: 1; }
.sub--mirror .chat-fig { grid-column: 1 / 8; grid-row: 1; }





/* ΠΑΛΕΡΜΟ: the vote */
.vote { position: relative; overflow: hidden; border: var(--rule-hair) solid var(--color-rule); background: var(--color-paper-2); }
.vote__head { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-md); padding: var(--space-lg) var(--space-lg) var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule); }
.vote__title { font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--text-2xl); line-height: 1.1; }
.vote__left { font-family: var(--font-outlier); font-weight: 500; font-size: var(--text-sm); color: var(--color-ink-2); white-space: nowrap; }
.vote__list { position: relative; z-index: 1; list-style: none; margin: 0; padding: 0 var(--space-lg); }
.vote__row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto 40px 3ch 40px; align-items: center; gap: var(--space-sm); padding-block: var(--space-xs); border-bottom: var(--rule-hair) solid var(--color-rule-2); }
.vote__name { position: relative; z-index: 1; font-size: var(--text-lead); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color var(--dur-short) var(--ease-out); }
.vote__bar { position: absolute; left: 0; top: var(--space-2xs); bottom: var(--space-2xs); width: 100%; background: color-mix(in oklab, var(--color-ink) 9%, transparent); transform-origin: left center; transform: scaleX(var(--share, 0)); transition: transform var(--dur-long) var(--ease-out); pointer-events: none; }
.vote__out { position: relative; z-index: 1; padding: var(--space-3xs) var(--space-xs); background: var(--color-ink); color: var(--color-accent-ink); font-family: var(--font-outlier); font-weight: 500; font-size: var(--text-xs); opacity: 0; transform: scale(0.8); transition: opacity var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out); }
.vote__row.is-out .vote__out { opacity: 1; transform: none; }
.vote__row.is-out .vote__name { text-decoration: line-through; text-decoration-thickness: 2px; }
.vote__btn { position: relative; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: var(--rule-hair) solid var(--color-rule); background: var(--color-paper-3); color: var(--color-ink); font-family: var(--font-body); font-size: var(--text-lg); line-height: 1; cursor: pointer; transition: background-color var(--dur-micro) var(--ease-out), opacity var(--dur-micro) var(--ease-out); }
.vote__btn:hover { background: var(--color-paper); }
.vote__btn:active { transform: translateY(1px); }
.vote__btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.vote__btn:disabled { opacity: 0.3; cursor: not-allowed; }
.vote__count { position: relative; z-index: 1; text-align: center; font-family: var(--font-outlier); font-weight: 500; font-size: var(--text-lg); }
.vote__count.is-bumped { animation: vote-bump 260ms var(--ease-out); }
@keyframes vote-bump { from { transform: scale(1.35); } }
.vote__foot { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: var(--space-md); padding: var(--space-md) var(--space-lg) var(--space-lg); }
.vote__status { font-size: var(--text-sm); color: var(--color-ink-2); }
.vote__reset { min-height: 40px; padding-block: var(--space-xs); font-size: var(--text-sm); }
.vote__reset:disabled { opacity: 0.35; cursor: not-allowed; }
html:not(.js) .vote__btn, html:not(.js) .vote__reset { visibility: hidden; }

/* ΠΑΛΕΡΜΟ: the shorts, traced */
.sub--shorts { display: block; }
.shorts__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: var(--space-md) var(--space-xl); margin-bottom: var(--space-xl); }
.shorts__head p { margin-top: var(--space-md); color: var(--color-ink-2); }
.shorts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap-columns); }
.short { display: grid; gap: var(--space-md); color: var(--color-ink); text-decoration: none; }
.short__frame { position: relative; display: block; aspect-ratio: 9 / 16; overflow: hidden; border: var(--rule-hair) solid var(--color-rule); background: var(--color-paper-2); transition: background-color var(--dur-short) var(--ease-out); }
.short__frame::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--color-grid) 1px, transparent 1px), linear-gradient(90deg, var(--color-grid) 1px, transparent 1px); background-size: 24px 24px; }
.short__frame::after { content: ""; position: absolute; inset: 5px; border: var(--rule-hair) solid var(--color-rule-2); pointer-events: none; }
.short__art { position: absolute; inset: 0; background: var(--color-ink); opacity: 0.9; -webkit-mask: var(--art) center / cover no-repeat; mask: var(--art) center / cover no-repeat; transition: opacity var(--dur-short) var(--ease-out); }
.short__play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; translate: -50% -50%; border: var(--rule-hair) solid var(--color-ink); background: var(--color-paper-3); transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out); }
.short__play::before { content: ""; position: absolute; left: 50%; top: 50%; translate: -35% -50%; border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent var(--color-ink); transition: border-color var(--dur-short) var(--ease-out); }
.short:hover .short__frame { background: var(--color-paper-3); }
.short:hover .short__art { opacity: 1; }
.short:hover .short__play { background: var(--color-ink); transform: scale(1.06); }
.short:hover .short__play::before { border-left-color: var(--color-accent-ink); }
.short:active .short__frame { transform: translateY(1px); }
.short:focus-visible { outline: none; }
.short.is-playing .short__frame { background: var(--color-paper-3); }
.short__frame iframe { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; border: 0; }
.short:focus-visible .short__frame { outline: 2px solid var(--color-focus); outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) {
  .js .shorts.will-draw-in .short__art { clip-path: inset(0 0 100% 0); }
  .js .shorts.will-draw-in.is-in .short__art { clip-path: inset(0 0 0 0); transition: clip-path 1400ms var(--ease-out) calc(var(--i) * 140ms), opacity var(--dur-short) var(--ease-out); }
}

/* Chillmate: the chat thread */
.thread { position: relative; min-height: 34rem; overflow: clip; display: flex; flex-direction: column; border: var(--rule-hair) solid var(--color-rule); background: var(--color-paper-2); }
.thread__log { position: relative; z-index: 1; flex: 1; list-style: none; margin: 0; padding: var(--space-lg) var(--space-lg) var(--space-xl); display: flex; flex-direction: column; justify-content: flex-end; gap: var(--space-xl); }
.bub { position: relative; max-width: 72%; padding: var(--space-sm) var(--space-md); font-size: var(--text-md); line-height: 1.35; }
.bub::before { content: attr(data-name); position: absolute; bottom: calc(100% + var(--space-2xs)); left: 0; font-family: var(--font-outlier); font-weight: 500; font-size: var(--text-xs); line-height: 1; color: var(--color-muted); white-space: nowrap; }
.bub--out::before { left: auto; right: 0; }
.bub--cont { margin-top: calc(var(--space-xs) - var(--space-xl)); }
.bub--cont::before { content: none; }
.bub--in { align-self: flex-start; border: var(--rule-hair) solid var(--color-rule); background: var(--color-paper-3); color: var(--color-ink); }
.bub--out { align-self: flex-end; border: var(--rule-hair) solid var(--color-ink); background: var(--color-ink); color: var(--color-accent-ink); }
.thread__typing { display: none; align-self: flex-start; gap: var(--space-2xs); padding: var(--space-sm) var(--space-md); border: var(--rule-hair) solid var(--color-rule-2); background: var(--color-paper-3); }
.thread__typing span { width: 6px; height: 6px; background: var(--color-ink); }
.thread.is-typing .thread__typing { display: flex; }
.thread.is-typing .thread__typing span { animation: typing 900ms var(--ease-in-out) infinite; }
.thread__typing span:nth-child(2) { animation-delay: 150ms !important; }
.thread__typing span:nth-child(3) { animation-delay: 300ms !important; }
@keyframes typing { 0%, 100% { opacity: 0.25; } 40% { opacity: 1; } }
.js .thread.is-live .bub:not(.is-shown) { display: none; }
.js .thread.is-live .bub.is-shown { animation: bub-in var(--dur-long) var(--ease-out) both; }
@keyframes bub-in { from { opacity: 0; transform: translateY(8px); } }

/* the snap.gif attachment (CC0 GIF from Wikimedia Commons) */
.bub--file { width: min(168px, 56%); padding: var(--space-2xs); border: var(--rule-hair) solid var(--color-ink); background: var(--color-paper-3); color: var(--color-ink); }
.att { display: grid; gap: var(--space-2xs); }
.snap, .snap img { display: block; width: 100%; height: auto; }
.att__meta { display: flex; justify-content: space-between; padding: var(--space-3xs) var(--space-2xs) 0; font-family: var(--font-outlier); font-weight: 500; font-size: var(--text-xs); color: var(--color-muted); }

/* Chillmate: how a call starts */
.hs { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border: var(--rule-hair) solid var(--color-rule); background: var(--color-paper-2); }
.hs__signal { fill: none; stroke: var(--color-rule); stroke-width: 1; stroke-dasharray: 4 5; vector-effect: non-scaling-stroke; opacity: 0.35; transition: opacity var(--dur-long) var(--ease-out); }
.hs__direct { fill: none; stroke: var(--color-ink); stroke-width: 0.9; transition: stroke-dashoffset 800ms var(--ease-out); }
.hs__direct-label { fill: var(--color-ink); font-family: var(--font-outlier); font-weight: 500; font-size: 9px; transition: opacity var(--dur-long) var(--ease-out); }
.hs__stream { opacity: 0.85; transition: opacity var(--dur-long) var(--ease-out); }
.pk--video { fill: var(--color-video); }
.pk--audio { fill: var(--color-audio); }
.hs__tag { opacity: 0; }
.hs__tag.is-on { opacity: 1; }
.hs__tag rect { fill: var(--color-paper-3); stroke: var(--color-ink); stroke-width: 0.8; }
.hs__tag text { fill: var(--color-ink); font-family: var(--font-outlier); font-weight: 500; font-size: 8.5px; }
.hs__chunk { fill: var(--color-file); opacity: 0; }
.hs__chunk.is-on { opacity: 1; }
.hs__server, .hs__peer { position: absolute; z-index: 2; border: var(--rule-hair) solid var(--color-rule); background: var(--color-paper-3); transition: background-color var(--dur-short) var(--ease-out); }
.hs__server { left: 37.5%; top: 8%; width: 25%; height: 15.4%; display: grid; place-content: center; justify-items: center; gap: var(--space-3xs); text-align: center; }
.hs.is-signaling .hs__server { background: var(--color-paper); }
.hs__name { font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--text-sm); line-height: 1.1; }
.hs__sub { font-family: var(--font-outlier); font-size: var(--text-xs); color: var(--color-muted); }
.hs__peer { top: 57.3%; width: 30%; height: 33.4%; display: flex; flex-direction: column; gap: var(--space-xs); padding: var(--space-sm); }
.hs__peer--a { left: 4%; }
.hs__peer--b { right: 4%; }
.hs__who { padding-bottom: var(--space-2xs); border-bottom: var(--rule-hair) solid var(--color-rule-2); font-family: var(--font-outlier); font-weight: 500; font-size: var(--text-xs); color: var(--color-muted); }
.hs__tracks { display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-sm); margin: 0; padding: 0; list-style: none; font-size: var(--text-xs); color: var(--color-ink); transition: color var(--dur-short) var(--ease-out); }
.hs__tracks li { display: flex; align-items: center; gap: var(--space-2xs); }
.hs__tracks li::before { content: ""; width: 8px; height: 8px; border: var(--rule-hair) solid var(--trk); background: var(--trk); }
.trk--video { --trk: var(--color-video); }
.trk--audio { --trk: var(--color-audio); }
.trk--audio::before { border-radius: 50%; }
.hs__file { margin-top: auto; display: grid; gap: var(--space-2xs); font-family: var(--font-outlier); font-size: var(--text-xs); color: var(--color-file); }
.hs__chunks { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--space-3xs); }
.hs__chunks i { height: 8px; border: var(--rule-hair) solid var(--color-file); background: var(--color-file); transition: background-color var(--dur-micro) var(--ease-out), opacity var(--dur-micro) var(--ease-out); }
.hs__status { margin-top: var(--space-sm); font-family: var(--font-outlier); font-weight: 500; font-size: var(--text-sm); color: var(--color-ink); min-height: 1.5em; }
.js .hs.will-run:not(.is-connected) .hs__signal { opacity: 1; }
.js .hs.will-run .hs__direct { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .hs.will-run.is-connected .hs__direct { stroke-dashoffset: 0; }
.js .hs.will-run:not(.is-connected) .hs__direct-label, .js .hs.will-run:not(.is-connected) .hs__stream { opacity: 0; }
.js .hs.will-run:not(.is-connected) .hs__tracks { color: var(--color-muted); }
.js .hs.will-run:not(.is-connected) .hs__tracks li::before { background: transparent; border-color: var(--color-muted); }
.js .hs.will-run [data-chunks="a"] i.is-sent { opacity: 0.25; }
.js .hs.will-run [data-chunks="b"] i:not(.is-got) { background: transparent; border-color: color-mix(in oklab, var(--color-file) 45%, transparent); }

/* ---------- the founders' tools ---------- */
.person { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-content: start; }
.tool { grid-column: 1 / -1; display: flex; flex-direction: column; height: 232px; border: var(--rule-hair) solid var(--color-rule-2); background: var(--color-paper-2); }
.tool .code, .tool .pen { flex: 1; min-height: 0; }
.code { display: flex; flex-direction: column; justify-content: center; }
.tool__bar { display: flex; justify-content: space-between; gap: var(--space-md); padding: var(--space-xs) var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-rule-2); font-family: var(--font-outlier); font-weight: 500; font-size: var(--text-xs); color: var(--color-muted); }
.tool__meta { color: var(--color-ink-2); }
.code { list-style: none; margin: 0; padding: var(--space-sm) 0; counter-reset: ln; font-family: var(--font-outlier); font-size: var(--text-xs); line-height: 1.8; overflow: hidden; color: var(--color-ink-2); }
.code li { counter-increment: ln; padding-right: var(--space-sm); white-space: pre; }
.code li::before { content: counter(ln) "  "; display: inline-block; width: 5ch; padding-left: var(--space-sm); color: var(--color-muted); white-space: pre; }
.code .del::before { content: counter(ln) " -"; }
.code .add::before { content: counter(ln) " +"; }
.code .del { color: var(--color-muted); text-decoration: line-through; transition: color var(--dur-short) var(--ease-out), text-decoration-color var(--dur-short) var(--ease-out); }
.code .add { background: color-mix(in oklab, var(--color-ink) 9%, transparent); color: var(--color-ink); }
.tok-k { font-weight: 500; color: var(--color-ink); }
.tok-c { color: var(--color-muted); }
.tok-n { color: var(--color-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.pen { display: block; width: 100%; height: 100%; background-image: linear-gradient(var(--color-grid) 1px, transparent 1px), linear-gradient(90deg, var(--color-grid) 1px, transparent 1px); background-size: 16px 16px; }
.pen__curve { fill: none; stroke: var(--color-ink); stroke-width: 1.5; }
.pen__handles line { stroke: var(--color-muted); stroke-width: 1; }
.pen__handles rect { fill: var(--color-paper-2); stroke: var(--color-ink); stroke-width: 1; }
.pen__handles circle { fill: var(--color-ink); }
.pen__guide { stroke: var(--color-ink); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0.6; }
.pen__pixel { fill: var(--color-ink); transform-box: fill-box; }
@media (prefers-reduced-motion: no-preference) {
  .js .tool--code.will-run:not(.is-run) .del { color: var(--color-ink-2); text-decoration-color: transparent; }
  .js .tool--code.will-run .add { clip-path: inset(0 100% 0 0); }
  .js .tool--code.is-run .add { clip-path: inset(0 0 0 0); transition: clip-path 1100ms steps(28, end) 500ms; }
  .js .tool--code.is-run .add + .add { transition-delay: 1700ms; }
  .js .tool--design.will-run .pen__curve { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .js .tool--design.will-run .pen__handles { opacity: 0; }
  .js .tool--design.will-run .pen__pixel { transform: translate(-56px, 26px); }
  .js .tool--design.will-run .pen__guide { opacity: 0; }
  .js .tool--design.is-run .pen__curve { stroke-dashoffset: 0; transition: stroke-dashoffset 1400ms var(--ease-in-out); }
  .js .tool--design.is-run .pen__handles { opacity: 1; transition: opacity var(--dur-long) var(--ease-out) 1100ms; }
  .js .tool--design.is-run .pen__pixel { transform: none; transition: transform 700ms var(--ease-out) 1600ms; }
  .js .tool--design.is-run .pen__guide { opacity: 0.6; transition: opacity var(--dur-short) var(--ease-out) 2300ms; }
}

@media (max-width: 60rem) {
  .shorts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--space-xl); }
  .sub__text, .chat-fig, .sub--mirror .sub__text, .sub--mirror .chat-fig { grid-column: 1 / -1; grid-row: auto; }
  .toc { grid-column: 1 / -1; position: static; margin-bottom: var(--space-xl); }
  .doc__body { grid-column: 1 / -1; }
  .nav__end .nav__links { display: none; }
  .hero { min-height: 0; padding-block: var(--space-2xl) var(--space-3xl); }
  .hero__grid { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-xl); }
  .project__shot, .project__text, .project--mirror .project__text, .project--mirror .project__shot, .project--palermo .project__text, .deck-wrap, .mesh-fig { grid-column: 1 / -1; grid-row: auto; }
  .people { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-2xl); }
}
@media (max-width: 40rem) {
  .vote__head, .vote__foot { padding-inline: var(--space-md); }
  .vote__list { padding-inline: var(--space-md); }
  .vote__row { grid-template-columns: minmax(0, 1fr) auto 36px 2.5ch 36px; gap: var(--space-xs); }
  .vote__btn { width: 36px; height: 36px; }
  .vote__name { font-size: var(--text-md); }
  .shorts { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 62%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--space-sm); }
  .shorts li { scroll-snap-align: start; }
  .hs__tracks, .hs__sub, .hs__file > span:first-child { display: none; }
  .hs__peer { padding: var(--space-xs); }
  .hs__server { padding: var(--space-2xs); }
  .hs__name { font-size: var(--text-xs); }
  .bub { max-width: 86%; }
  .register-block { grid-template-columns: minmax(0, 1fr); }
  .register-block > div:nth-child(odd) { border-right: 0; }
  .deck { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72%; overflow-x: auto; scroll-snap-type: x mandatory; padding-inline: var(--space-xs); }
  .deck li { scroll-snap-align: center; }
  .hero__drawing { grid-template-columns: minmax(0, 1fr); }
  .rcard__desc { font-size: var(--text-sm); }
  .nav__bar { padding-inline: var(--space-md); gap: var(--space-md); }
  .nav__home { width: 112px; }
  .nav__links { gap: var(--space-md); }
  .person { grid-template-columns: minmax(0, 1fr); }
  .person__photo { max-width: 240px; }
  .cell--email, .cell--phone { grid-column: 1 / -1; border-right: 0; }
  .cell--email { border-bottom: var(--rule-hair) solid var(--color-rule); }
  .cell__big { font-size: var(--text-xl); white-space: nowrap; }
}
