/* ─────────────────────────────────────────────────────────────────────────────
   Vira — site styles. Warm ivory page, near-black ink, Orchid accent.
   Type: Instrument Serif (display), Newsreader (body), JetBrains Mono (labels), Reenie Beanie (handwritten notes)
   ───────────────────────────────────────────────────────────────────────────── */
@font-face { font-family: "Instrument Serif"; src: url("fonts/instrument-serif.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("fonts/instrument-serif-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Domine"; src: url("fonts/domine-medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Domine"; src: url("fonts/domine-bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("fonts/newsreader.woff2") format("woff2"); font-weight: 300 800; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 400 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Reenie Beanie"; src: url("fonts/reenie-beanie.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --bg: #F7F3EF;
  --ink: #111;
  --accent: #AD86CF;              /* Orchid */
  --muted: #6d6660;
  --hair: rgba(17, 17, 17, .13);
  --sand: #EBE2D8;
  --gutter: clamp(18px, 4.6vw, 76px);
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --head: "Domine", Georgia, serif;
  --body: "Newsreader", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --hand: "Reenie Beanie", "Segoe Script", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 300 1.08rem/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(1380px, 100% - 2 * var(--gutter)); margin-inline: auto; }
[id] { scroll-margin-top: 84px; }

/* ── small type pieces ── */
.label { margin: 0; font: 400 .72rem/1.6 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.label.muted, .muted { color: var(--muted); }
.mono { margin: 0; font: 400 .88rem/1.75 var(--mono); color: #5d5751; letter-spacing: .01em; }
.mono-lede { margin: 0 0 2rem; font: 400 clamp(.88rem, 1.05vw, 1rem)/1.85 var(--mono); color: #4f4a45; }
.hand { margin: 0; font: 400 clamp(1.25rem, 1.75vw, 1.75rem)/1.1 var(--hand); color: #2a2623; }
.display { margin: .3em 0 .4em; font: 400 clamp(2.7rem, 4.8vw, 4.9rem)/1.02 var(--serif); letter-spacing: -.012em; }
.display em, h1 em { font-style: italic; }
.lede { margin: 0 0 2.2rem; max-width: 33rem; color: #5b554f; font: 300 clamp(1.05rem, 1.25vw, 1.22rem)/1.62 var(--body); }
.link-arrow { font: 400 .84rem var(--mono); letter-spacing: .03em; text-decoration: underline; text-underline-offset: 7px; text-decoration-thickness: 1px; transition: color .2s ease; }
.link-arrow:hover, .link-quiet:hover { color: var(--accent); }
.link-quiet { text-decoration: none; transition: color .2s ease; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(22px, 3vw, 44px); }

/* ── reveal on scroll + hand-drawn lines that draw themselves ── */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.draw { color: #2a2623; overflow: visible; }
.draw path { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2s ease .15s; }
.draw.is-in path { stroke-dashoffset: 0; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal], .js [data-reveal].is-in { opacity: 1; transform: none; transition: none; }
  .draw path { stroke-dashoffset: 0; transition: none; }
  [data-float] { animation: none !important; }
}

/* ═════════ HERO ═════════ */
.hero-dot { position: absolute; right: 1%; top: 33%; width: clamp(34px, 4.2vw, 60px); aspect-ratio: 1; border-radius: 50%; background: var(--ink); animation: bob 6s ease-in-out infinite; }
.hero-dot-sm { right: auto; left: 25%; top: auto; bottom: 36%; width: clamp(16px, 1.9vw, 26px); animation-delay: -2s; }
.contact-char .vira-logo { font-size: inherit; cursor: default; }
.scribble { pointer-events: none; flex: none; }

/* A note and its arrow live together in one flex group, so the arrow always sits right beside its text (never through it). */
.note { position: absolute; display: flex; gap: 8px; z-index: 3; }
.note .hand { margin: 0; white-space: nowrap; }
.note-play { left: 12%; bottom: 3%; align-items: flex-end; transform: rotate(-7deg); }
.note-play .scribble { width: clamp(46px, 5.2vw, 76px); margin: 0 0 14px 4px; }
.note-contact { right: -1%; top: -9%; align-items: flex-start; transform: rotate(5deg); }
.note-contact .scribble { width: clamp(22px, 2.6vw, 38px); margin-top: 6px; }
.scroll-hint { position: absolute; right: -1%; bottom: -4%; margin: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; font: 400 .62rem/1.5 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); text-align: right; }
.scroll-hint i { display: block; width: 1px; height: 30px; background: var(--ink); animation: scrollline 2.4s ease-in-out infinite; transform-origin: top; }
@keyframes bob { 50% { transform: translateY(-8px); } }
@keyframes scrollline { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@keyframes float { 50% { transform: translateY(-9px) rotate(.4deg); } }
[data-float] { animation: float 9s ease-in-out infinite; }

/* ═════════ BLOB IMAGES + ILLUSTRATED STAND-INS ═════════
   Each .blob is clipped to an organic SVG shape (--clip). Put an <img> as its first child to use a real photo. */
.blob, .scene { position: relative; margin: 0; clip-path: var(--clip, none); overflow: hidden; background: var(--sand); }
.blob > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 5; }
.shadows { position: absolute; inset: -6%; mix-blend-mode: multiply; filter: blur(5px); opacity: .9; pointer-events: none;
  background:
    radial-gradient(ellipse 5% 11% at 16% 22%, rgba(104,70,42,.34), transparent 70%),
    radial-gradient(ellipse 4% 9% at 25% 12%, rgba(104,70,42,.30), transparent 70%),
    radial-gradient(ellipse 5% 12% at 34% 26%, rgba(104,70,42,.30), transparent 70%),
    radial-gradient(ellipse 6% 10% at 44% 10%, rgba(104,70,42,.28), transparent 70%),
    radial-gradient(ellipse 5% 12% at 12% 46%, rgba(104,70,42,.28), transparent 70%),
    radial-gradient(ellipse 4% 10% at 78% 18%, rgba(104,70,42,.34), transparent 70%),
    radial-gradient(ellipse 5% 11% at 88% 30%, rgba(104,70,42,.30), transparent 70%),
    radial-gradient(ellipse 5% 12% at 70% 8%, rgba(104,70,42,.26), transparent 70%),
    radial-gradient(ellipse 4% 9% at 92% 46%, rgba(104,70,42,.24), transparent 70%); }
.scene-sand { background: linear-gradient(165deg, #d4bda3 0%, #e6d6c2 46%, #efe3d3 100%); }
.slab { position: absolute; left: 0; right: 0; bottom: 0; height: 30%; background:
  radial-gradient(circle at 20% 30%, rgba(130,88,56,.38) 1px, transparent 2px) 0 0 / 15px 13px,
  radial-gradient(circle at 70% 60%, rgba(255,255,255,.55) 1px, transparent 2px) 0 0 / 11px 17px,
  linear-gradient(#ead9c4, #c9b196); clip-path: polygon(0 24%, 100% 0, 100% 100%, 0 100%); }

/* the mini web page shown on every mock screen (sized with container units so it scales with the mock) */
.laptop, .tablet, .card-mock { container-type: inline-size; position: absolute; }
.laptop { width: 64%; left: 24%; top: 16%; transform: perspective(1200px) rotateY(-17deg) rotateX(5deg) rotateZ(-4deg); transform-origin: 50% 80%; filter: drop-shadow(0 26px 24px rgba(60,38,20,.28)); }
.laptop .screen { background: #1a1a1a; border-radius: 10px 10px 4px 4px; padding: 2.2%; aspect-ratio: 16 / 10.4; }
.laptop .base { width: 112%; margin-left: -6%; height: 4.5cqw; background: linear-gradient(#d6d2cd, #9a9692); border-radius: 0 0 14px 14px; position: relative; }
.laptop .base::before { content: ""; position: absolute; left: 40%; right: 40%; top: 0; height: 1.2cqw; background: rgba(0,0,0,.18); border-radius: 0 0 6px 6px; }
.laptop-small { width: 58%; left: 30%; top: 22%; }
.mini { height: 100%; background: #f4e9de; border-radius: 3px; overflow: hidden; color: #2b221b; }
.mini-nav { display: flex; align-items: baseline; gap: 3.2cqw; padding: 2.4cqw 3.4cqw 0; font: 400 1.55cqw/1 var(--mono); letter-spacing: .06em; }
.mini-nav b { margin-right: auto; font: italic 400 3cqw/1 var(--serif); letter-spacing: 0; }
.mini-body { display: grid; grid-template-columns: 1fr .95fr; gap: 3cqw; padding: 3.4cqw; align-items: center; }
.mini-copy h4 { margin: 0; font: 400 6.2cqw/1.02 var(--serif); letter-spacing: .02em; }
.mini-copy h4.serif-i { font-style: italic; font-size: 6.6cqw; }
.mini-copy small { display: block; margin-top: 2cqw; font: 400 1.4cqw var(--mono); letter-spacing: .08em; }
.mini-btn { display: inline-block; margin-top: 3.4cqw; padding: 1.1cqw 2.6cqw; border-radius: 99px; background: #e5cdbd; font: 400 1.35cqw/1 var(--mono); letter-spacing: .08em; }
.mini-photo { aspect-ratio: .78; border-radius: 3cqw; background:
  radial-gradient(ellipse 34% 26% at 60% 36%, #b86f4a 0 62%, transparent 64%),
  radial-gradient(ellipse 52% 46% at 56% 74%, #c58a66 0 60%, transparent 62%),
  linear-gradient(160deg, #ecd3bf, #dbb79d); }
.mini-photo-warm { background: radial-gradient(ellipse 44% 30% at 55% 70%, #efd2bd 0 60%, transparent 62%), radial-gradient(ellipse 30% 18% at 40% 40%, #e2bda3 0 60%, transparent 62%), linear-gradient(150deg, #efe0d2, #d8bfa8); }
.mini-photo-pink { background: radial-gradient(ellipse 40% 36% at 50% 55%, #f3c9c2 0 60%, transparent 62%), radial-gradient(ellipse 20% 30% at 35% 40%, #f0b8b3 0 60%, transparent 62%), radial-gradient(ellipse 22% 28% at 65% 42%, #f0b8b3 0 60%, transparent 62%), linear-gradient(150deg, #f9d9d4, #f2bdbb); }
.mini-photo-coffee { background: radial-gradient(ellipse 30% 38% at 50% 58%, rgba(255,255,255,.65) 0 56%, transparent 58%), radial-gradient(ellipse 26% 22% at 50% 70%, #b97a42 0 60%, transparent 62%), linear-gradient(160deg, #3c2c20, #7a5a3c); }

.scene-tablet { background: #e4d5c2; }
.tablet { left: 7%; top: 12%; width: 78%; transform: perspective(1100px) rotateY(9deg) rotateX(4deg) rotateZ(-9deg); background: #1c1c1c; padding: 2.2%; border-radius: 14px; filter: drop-shadow(0 16px 16px rgba(60,38,20,.3)); aspect-ratio: 1.38; }
.scene-pink { background: #59634b; }
.card-mock { left: 8%; top: 10%; width: 82%; background: #fceae5; border-radius: 12px; padding: 1.2%; box-shadow: 0 18px 30px rgba(120,40,60,.22); transform: rotate(-1.5deg); aspect-ratio: 1.42; }
.card-mock .mini-nav { padding-top: 3.6cqw; } .card-mock .mini-body { padding-top: 4cqw; }
.petal { position: absolute; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fbd2dc, #ee93ae 70%); box-shadow: 0 4px 10px rgba(150,50,80,.25); }
.p1 { width: 13%; aspect-ratio: 1; right: 10%; bottom: 8%; } .p2 { width: 9%; aspect-ratio: 1; right: 22%; bottom: 3%; } .p3 { width: 7%; aspect-ratio: 1; left: 12%; bottom: 7%; }
.card-mock-green { background: #f3ebde; left: 10%; top: 12%; width: 78%; }
.vase { position: absolute; left: 6%; top: 8%; width: 24%; height: 70%; }
.vase i { position: absolute; bottom: 8%; width: 3px; height: 70%; background: #6e6a46; left: 50%; transform-origin: bottom; }
.vase i:nth-child(1) { transform: rotate(-24deg); height: 64%; } .vase i:nth-child(2) { transform: rotate(-12deg); height: 74%; } .vase i:nth-child(3) { transform: rotate(-3deg); height: 80%; }
.vase i:nth-child(4) { transform: rotate(8deg); height: 72%; } .vase i:nth-child(5) { transform: rotate(18deg); height: 64%; } .vase i:nth-child(6) { transform: rotate(28deg); height: 54%; } .vase i:nth-child(7) { transform: rotate(-32deg); height: 50%; }
.vase i::after { content: ""; position: absolute; top: -8px; left: -16px; width: 36px; height: 30px; background: radial-gradient(circle at 30% 40%, #f3e9d8 0 3px, transparent 4px) 0 0 / 11px 11px, radial-gradient(circle at 70% 60%, #fff 0 3px, transparent 4px) 0 0 / 13px 12px; }
.vase::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 0; height: 28%; background: linear-gradient(160deg, rgba(255,255,255,.7), rgba(210,200,190,.4)); border-radius: 8px 8px 14px 14px; border: 1px solid rgba(255,255,255,.6); }

/* ═════════ SECTIONS ═════════ */
.section { padding-block: clamp(46px, 7vw, 100px) clamp(26px, 4vw, 52px); border-top: 1px solid var(--hair); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: clamp(28px, 4vw, 52px); }

.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(18px, 2.4vw, 36px); }
.project-link { display: block; text-decoration: none; }
.project .blob { aspect-ratio: 1.22; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.project-link:hover .blob { transform: translateY(-6px) rotate(-.6deg); }
.project-meta { display: flex; align-items: baseline; justify-content: space-between; margin: 18px 0 2px; }
.project h3 { margin: 0; font: 700 clamp(1.2rem, 1.5vw, 1.5rem)/1.2 var(--head); }
.arrow { font: 400 1rem var(--mono); transition: transform .3s ease; }
.project-link:hover .arrow { transform: translateX(6px); color: var(--accent); }


.playground { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.5fr); gap: clamp(24px, 4vw, 70px); align-items: start; }
.play-copy { position: relative; padding-bottom: 90px; }
.play-copy .lede { max-width: 22rem; }
.bento { display: grid; grid-template-columns: 1.14fr 1fr; gap: clamp(16px, 2vw, 28px); align-items: start; }
.bento .col { display: grid; gap: clamp(16px, 2vw, 26px); }
.tile { margin: 0; }
.tile-stage { position: relative; clip-path: var(--clip); overflow: hidden; }
.tile figcaption { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; }
.tile-jelly .tile-stage { background: #111; aspect-ratio: 1.78; display: grid; place-items: center; }
.jelly-logo { color: var(--bg); --eye: #111; font-size: clamp(2.6rem, 6.2vw, 6rem); cursor: default; }
.tile-flower .tile-stage { aspect-ratio: 2.7; background: linear-gradient(115deg, #efc7df, #e7b9e9 52%, #f6cbd7); }
.tile-physics .tile-stage { aspect-ratio: 3.1; background: linear-gradient(#ecebe8, #dcd8d3); }
.tile-liquid .tile-stage { aspect-ratio: 1.55; background: linear-gradient(160deg, #f1e7dc, #e4d3c6); }
.flower-canvas, .physics-canvas { width: 100%; height: 100%; position: absolute; inset: 0; }
.liquid-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.liquid-text text { font: italic 400 84px/1 var(--serif); fill: #111; letter-spacing: -2px; }

.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: clamp(24px, 4vw, 70px); align-items: center; padding-bottom: clamp(60px, 8vw, 120px); }
.contact-copy { position: relative; }
.scribble-contact { position: absolute; left: 68%; top: 36%; width: clamp(110px, 13vw, 190px); }
.contact-art { position: relative; }
.contact-art .blob { aspect-ratio: 1 / .78; }
.contact-char { position: absolute; left: 3%; bottom: 6%; font-size: clamp(2.2rem, 4.2vw, 4rem); z-index: 2; }
.contact-art .hero-dot { top: 24%; right: -1%; }

/* ═════════ FOOTER (cream on the black band) ═════════ */
.footer { margin-top: clamp(10px, 2vw, 30px); }
.footer-dark { position: relative; margin-top: clamp(64px, 8vw, 118px); background: var(--ink); color: var(--bg); --eye: #111; --cream-soft: rgba(247, 243, 239, .72); --cream-line: rgba(247, 243, 239, .2); }
.wave { position: absolute; left: 0; width: 100%; bottom: calc(100% - 1px); height: clamp(64px, 8vw, 118px); fill: var(--ink); }
.dark-inner { padding-block: clamp(48px, 5vw, 72px) 28px; }
.dark-inner .label { color: var(--bg); }

.footer-top { display: grid; grid-template-columns: 1.35fr .8fr .95fr .9fr 1.5fr; padding-bottom: clamp(44px, 5vw, 70px); }
.f-brand { position: relative; padding-right: 28px; }
.footer-logo { font-size: 1.9rem; margin-bottom: 18px; color: var(--bg); --eye: #111; }
.f-brand .mono { margin-bottom: 18px; }
.mono { color: var(--cream-soft); }
.loc { display: flex; align-items: center; gap: 12px; color: var(--bg); }
.loc svg { width: 20px; height: 20px; fill: var(--bg); stroke: none; } .loc svg circle { fill: var(--ink); }
.f-col { padding-left: clamp(18px, 2.6vw, 40px); border-left: 1px solid var(--cream-line); }
.f-col h4 { margin: 0 0 22px; }
.f-col ul { list-style: none; margin: 0; padding: 0; }
.f-col li { font: 400 .92rem/1 var(--mono); color: var(--cream-soft); padding-block: 11px; }
.f-col a { text-decoration: none; transition: color .2s ease; } .f-col a:hover { color: var(--bg); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.social { list-style: none; margin: 0; padding: 0; }
.f-col .social li { padding-block: 5px; }
.social a { display: flex; align-items: center; gap: 14px; }
.social svg { width: 20px; height: 20px; fill: none; stroke: var(--bg); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.social svg .fill, .social svg.fill { fill: var(--bg); stroke: none; }
.f-news .mono { margin-bottom: 18px; max-width: 24rem; }
.news { display: flex; align-items: center; border: 0; clip-path: url(#live-strip); padding: 9px 9px 11px 26px; max-width: 26rem; background: rgba(247, 243, 239, .13); }
.news input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font: 400 .88rem var(--mono); color: var(--bg); padding: 10px 0; }
.news input::placeholder { color: rgba(247, 243, 239, .5); }
.news button { flex: none; width: 48px; height: 46px; border-radius: 0; clip-path: url(#news-blob); border: 0; background: var(--bg); cursor: pointer; display: grid; place-items: center; transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.news button:hover { transform: scale(1.08); }
.news button svg { width: 20px; height: 20px; stroke: var(--ink); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.news:focus-within { background: rgba(247, 243, 239, .2); }
.check { display: flex; align-items: center; gap: 10px; margin-top: 16px; font: 400 .8rem var(--mono); color: var(--cream-soft); cursor: pointer; }
.check input { appearance: none; width: 22px; height: 21px; border: 0; border-radius: 0; clip-path: url(#news-blob); background: rgba(247, 243, 239, .25); display: grid; place-items: center; cursor: pointer; }
.check input:checked { background: var(--bg); border-color: var(--bg); }
.check input:checked::after { content: ""; width: 9px; height: 5px; border-left: 1.6px solid var(--ink); border-bottom: 1.6px solid var(--ink); transform: rotate(-45deg) translate(1px, -1px); }
.news-msg { min-height: 1.4em; margin-top: 12px; color: var(--bg); }

.legal-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 24px; border-top: 1px solid var(--cream-line); }
.legal-row .label { font-size: .64rem; letter-spacing: .12em; color: #cfc9c2; }
.legal-row b { font-weight: 400; margin-inline: 2px; }
.to-top { display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--bg); }
.to-top i { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--bg); transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.to-top:hover i { transform: translateY(-5px); }
.to-top svg { width: 20px; height: 20px; stroke: var(--ink); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ═════════ RESPONSIVE ═════════ */
@media (max-width: 1000px) {
  .contact, .playground { grid-template-columns: 1fr; }
    .scroll-hint { display: none; }
    .play-copy { padding-bottom: 30px; } .note-play { display: none; }
  .scribble-contact { display: none; }
  .contact-art { max-width: 640px; margin-inline: auto; width: 100%; }
  .footer-top { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .f-col { border-left: 0; padding-left: 0; } .f-brand { grid-column: 1 / -1; }
  .f-news { grid-column: 1 / -1; }
  .footer-top { padding-bottom: 36px; }
}
@media (max-width: 640px) {
  .projects { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; gap: 8px; }
  .legal-row { flex-direction: column; align-items: flex-start; gap: 14px; }
  .note-contact { right: auto; left: 2%; top: -14%; } .note-contact .hand { font-size: 1.15rem; }
}

#playground { border-top: 0; }

/* ═════════ SERVICES: "the exhibition". Three panels; hover one and it comes alive (a miniature browser rises out of it
   and your cursor becomes the panel's icon). ═════════ */
.svc-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); }
.panel { --fg: #F7F3EF; --bgp: var(--ink); position: relative; width: 100%; box-sizing: border-box; aspect-ratio: 1.42; min-height: 300px; overflow: hidden; background: var(--bgp); color: var(--fg); clip-path: var(--clip); padding: clamp(22px, 2vw, 30px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1), translate .5s cubic-bezier(.3, 1.5, .5, 1), rotate .5s cubic-bezier(.3, 1.5, .5, 1); }
.panel.pn2, .panel.pn4 { --fg: var(--ink); --bgp: var(--bg); }
.p-outline { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: var(--ink); stroke-width: 3.2; pointer-events: none; }
.p-outline path { vector-effect: non-scaling-stroke; }
.panel:hover { translate: 0 -4px; rotate: -.4deg; }
.svc-cap { margin: 20px 0 0; color: var(--muted); font-size: 1.02rem; }

/* the cursor becomes the panel's icon while you are over a panel */
.icon-cur { position: fixed; left: 0; top: 0; z-index: 9999; width: 64px; height: 60px; margin: -30px 0 0 -32px; display: grid; place-items: center; pointer-events: none; border-radius: 58% 42% 55% 45% / 48% 58% 42% 52%; background: var(--ink); opacity: 0; scale: .3; transition: opacity .2s ease, scale .45s cubic-bezier(.3, 1.7, .5, 1), background .25s ease; }
.icon-cur svg { width: 28px; height: 28px; fill: none; stroke: var(--bg); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-cur.on { opacity: 1; scale: 1; } .icon-cur.light { background: var(--bg); } .icon-cur.light svg { stroke: var(--ink); }
html.icon-cursor .ink-cursor { opacity: 0 !important; }
@media (hover: none) { .icon-cur { display: none; } }

/* objects floating inside each panel: translucent, they appear on hover and drift with your cursor */
.p-art { position: absolute; inset: 0; pointer-events: none; z-index: 1; --glass: rgba(255, 255, 255, .1); --edge: rgba(255, 255, 255, .5); --ink-t: rgba(255, 255, 255, .62); }
.panel.pn2 .p-art, .panel.pn4 .p-art { --glass: rgba(17, 17, 17, .05); --edge: rgba(17, 17, 17, .45); --ink-t: rgba(17, 17, 17, .6); }
.p-art > * { position: absolute; opacity: 0; transform: translateY(18px) scale(.88) rotate(var(--r, 0deg)); transition: opacity .5s ease calc(var(--i, 0) * 70ms), transform .8s cubic-bezier(.2, .8, .2, 1) calc(var(--i, 0) * 70ms); translate: calc(var(--mx, 0) * var(--d, 0) * 1px) calc(var(--my, 0) * var(--d, 0) * 1px); }
.panel:hover .p-art > *, .panel:focus-within .p-art > * { opacity: 1; transform: rotate(var(--r, 0deg)); }
.glass { background: var(--glass); border: 1px solid var(--edge); border-radius: 14px 12px 15px 11px / 12px 15px 11px 14px; -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.glass-line { display: block; height: 4px; border-radius: 3px; background: var(--edge); margin-top: 9px; }
/* design */
.a-card { left: 36%; top: 15%; width: 40%; height: 40%; padding: 12px; --r: -6deg; --d: 14; --i: 0; }
.a-card .glass-line:nth-child(1) { width: 60%; margin-top: 4px; } .a-card .glass-line:nth-child(2) { width: 85%; } .a-card .glass-line:nth-child(3) { width: 45%; }
.a-circle { right: 9%; top: 26%; width: 26%; aspect-ratio: 1; border-radius: 50%; --d: -18; --i: 1; }
.a-pill { left: 32%; top: 50%; width: 32%; height: 11%; border-radius: 99px; --r: 4deg; --d: 24; --i: 2; display: flex; align-items: center; padding-left: 10px; }
.a-pill::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--ink-t); }
.a-glyph { right: 14%; top: 12%; font: 400 clamp(2.6rem, 4.6vw, 4.2rem)/1 var(--serif); color: var(--ink-t); --d: -8; --i: 3; font-style: italic; }
.a-pen { left: 8%; top: 10%; width: 28%; height: 34%; --d: 6; --i: 4; fill: none; stroke: var(--ink-t); stroke-width: 1.2; overflow: visible; }
.a-pen rect { fill: var(--glass); stroke: var(--edge); }
/* development */
.a-chip { font: 400 .72rem/1 var(--mono); letter-spacing: .06em; padding: 8px 12px; border-radius: 99px; color: var(--ink-t); }
.a-c1 { left: 48%; top: 12%; --r: -5deg; --d: 16; --i: 0; } .a-c2 { right: 8%; top: 27%; --r: 6deg; --d: -20; --i: 1; } .a-c3 { left: 46%; top: 50%; --r: -2deg; --d: 12; --i: 2; }
.a-braces { right: 8%; top: 44%; font: 400 clamp(3rem, 5.4vw, 5rem)/1 var(--mono); color: var(--ink-t); --d: -10; --i: 3; }
.a-term { left: 9%; top: 24%; width: 34%; padding: 10px 12px; --r: 3deg; --d: 20; --i: 4; font: 400 .66rem/1.6 var(--mono); color: var(--ink-t); }
.a-term b { font-weight: 400; display: inline-block; width: .55em; height: 1em; background: var(--ink-t); vertical-align: -.15em; animation: caret 1s steps(2) infinite; }
@keyframes caret { 50% { opacity: 0; } }
/* creative extras: a field of + marks that open up toward your cursor */
.a-plus { inset: 0; width: 100%; height: 100%; -webkit-mask-image: linear-gradient(#000 58%, transparent 80%); mask-image: linear-gradient(#000 58%, transparent 80%); translate: none; transform: none; transition: opacity .5s ease; }
.panel:hover .a-plus, .panel:focus-within .a-plus { transform: none; }
@media (hover: none) { .p-art > * { opacity: 1; transform: rotate(var(--r, 0deg)); } }
@media (max-width: 900px) { .svc-list { grid-template-columns: 1fr; } .panel { aspect-ratio: auto; min-height: 340px; } }
@media (prefers-reduced-motion: reduce) { .panel, .p-art > * { transition: none; } .a-term b { animation: none; } }

/* big cropped number in the bottom-left corner, title bottom-right (the whole panel is the link) */
.p-big { position: absolute; left: -.05em; bottom: -.17em; font: 400 clamp(10rem, 15vw, 14rem)/.8 var(--serif); letter-spacing: -.04em; color: var(--fg); pointer-events: none; user-select: none; transition: translate .6s cubic-bezier(.3, 1.4, .5, 1); }
.panel:hover .p-big { translate: 6px -8px; }
.p-title { position: absolute; right: clamp(22px, 2vw, 30px); bottom: clamp(22px, 2vw, 30px); z-index: 2; margin: 0; font: 400 clamp(1.3rem, 1.8vw, 1.7rem)/1.15 var(--body); text-align: right; letter-spacing: -.005em; }
.p-stretch { color: inherit; text-decoration: none; }
.p-stretch::after { content: ""; position: absolute; inset: -700px; }
.panel { cursor: pointer; }
.p-stretch:focus-visible { outline: 2px dashed currentColor; outline-offset: 6px; }

/* second row: Website Refresh · Ongoing Support */
.svc-list-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: clamp(12px, 1.4vw, 20px); }
.svc-list-2 .panel { aspect-ratio: 2.1; }
.r-old { left: 16%; top: 14%; width: 22%; height: 40%; padding: 12px; --r: -5deg; --d: 14; --i: 0; border-style: dashed; }
.r-old .glass-line { opacity: .5; }
.r-arrow { left: 44%; top: 24%; width: 11%; --d: -10; --i: 1; fill: none; stroke: var(--ink-t); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.r-new { left: 62%; top: 10%; width: 26%; height: 46%; padding: 12px; --r: 4deg; --d: -18; --i: 2; }
.r-new .glass-line:first-child { width: 55%; margin-top: 4px; }
.r-chip { left: 46%; top: 56%; --r: -3deg; --d: 20; --i: 3; }
.s-b1 { left: 30%; top: 14%; --r: -3deg; --d: 16; --i: 0; } .s-b2 { left: 44%; top: 36%; --r: 2deg; --d: -14; --i: 1; }
.s-inf { right: 12%; top: 8%; font: italic 400 clamp(4rem, 7vw, 6.5rem)/1 var(--serif); color: var(--ink-t); --d: -20; --i: 2; }
.s-chip { right: 8%; top: 48%; --r: 3deg; --d: 12; --i: 3; }
@media (max-width: 900px) { .svc-list-2 { grid-template-columns: 1fr; } .svc-list-2 .panel { aspect-ratio: auto; min-height: 340px; } }

/* ═════════ TOUCH HYGIENE: no text selection, blue tap flashes, double-tap zoom or stray focus rectangles on interactive things ═════════ */
a, button, .burger, .wobbly, .panel, .vira-logo, .menu-links a, .p-stretch, .svc-pill, .to-top, .link-arrow, .link-quiet, .project-link, summary, label {
  -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; touch-action: manipulation;
}
.burger, .burger *, .wobbly, .wobbly *, .panel, .panel *, .vira-logo, .vira-logo *, .menu-links a, .menu-links a *, .site-nav, .to-top, button {
  -webkit-user-select: none; user-select: none;
}
.burger, .wobbly, .panel, .menu-links a, .p-stretch, .vira-logo, button { outline: none; }
.burger:focus-visible, .wobbly:focus-visible, .menu-links a:focus-visible, .vira-logo:focus-visible, button:focus-visible { outline: 2px dashed currentColor; outline-offset: 5px; }
.burger:focus:not(:focus-visible), .wobbly:focus:not(:focus-visible), .panel :focus:not(:focus-visible), .menu a:focus:not(:focus-visible) { outline: none; }
@media (hover: none) { ::selection { background: transparent; } input, textarea { -webkit-user-select: text; user-select: text; } }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (max-width: 900px) { .panel, .svc-list-2 .panel { min-height: 300px; } section[id], #top { scroll-margin-top: 72px; } }

/* phones: the "Let's connect" links become a row of icons */
@media (max-width: 640px) {
  .f-connect { grid-column: 1 / -1; }
  .social { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 8px; padding: 0; max-width: 22rem; }
  .social li { margin: 0; padding: 0; }
  .social a { font-size: 0; gap: 0; padding: 10px; margin: -10px; }
  .social svg { width: 28px; height: 28px; }
}


/* ═════════ HERO: the cat at its desk (traced from the drawing, then animated). Tail swings, notes sway, plant breathes, it blinks, its eyes follow your cursor, click it to say meow ═════════ */
.hero-cat { width: min(112%, 780px); margin: 0 auto 64px; margin-left: clamp(-60px, -4vw, 0px); cursor: pointer; -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none; touch-action: manipulation; }
.hero-cat svg { display: block; width: 100%; height: auto; overflow: visible; }
.hero-cat .ink use { fill: var(--ink); }
.hero-cat .a { transform-box: view-box; }
.hero-cat .eyes .cover { fill: var(--ink); } .hero-cat .eyes .white { fill: #F7F3EF; }
.hero-cat .look { transform: translate(var(--ex, 0px), var(--ey, 0px)); transition: transform .12s ease-out; }
.hero-cat .white { transform-box: fill-box; transform-origin: center; animation: cat-blink 5s infinite; }
@keyframes cat-blink { 0%, 93%, 100% { scale: 1 1; } 96% { scale: 1 .08; } }
.hero-cat .cat-tail { fill: var(--ink); stroke: var(--ink); stroke-width: 1.2; stroke-linejoin: round; }
.a-n1 { transform-origin: 375px 30px; animation: cat-sway 5.2s ease-in-out infinite alternate; }
.a-n2 { transform-origin: 1022px 58px; animation: cat-sway 4.4s ease-in-out -1.4s infinite alternate; }
.a-n3 { transform-origin: 1175px 135px; animation: cat-sway 4.9s ease-in-out -2.6s infinite alternate; }
@keyframes cat-sway { from { transform: rotate(-1.6deg); } to { transform: rotate(1.6deg); } }
.a-plant { transform-origin: 1250px 440px; animation: cat-plant 3.8s ease-in-out infinite alternate; }
@keyframes cat-plant { from { transform: rotate(-2.2deg); } to { transform: rotate(3deg); } }
.a-spark { animation: cat-spark 2.2s steps(1) infinite; }
@keyframes cat-spark { 0%, 55% { opacity: 1; } 62% { opacity: .1; } 70% { opacity: 1; } 78% { opacity: .1; } 86%, 100% { opacity: 1; } }
.a-logo { transform-origin: 978px 428px; animation: cat-logo 3.2s ease-in-out infinite; }
@keyframes cat-logo { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.09); } }
.hero-cat .steam path { stroke: var(--ink); stroke-width: 3; stroke-dasharray: .7 1.4; animation: cat-steam 3.4s ease-in-out infinite; animation-delay: var(--d, 0s); opacity: 0; }
@keyframes cat-steam { 0% { stroke-dashoffset: .7; opacity: 0; } 25% { opacity: .75; } 100% { stroke-dashoffset: -.9; opacity: 0; } }
.hero-cat .meow { font: 400 54px var(--hand); fill: var(--ink); opacity: 0; transform-box: fill-box; transform-origin: left bottom; }
.hero-cat.said .meow { animation: cat-meow 1.5s ease both; }
@keyframes cat-meow { 0% { opacity: 0; scale: .5; } 15%, 75% { opacity: 1; scale: 1; } 100% { opacity: 0; scale: 1; translate: 0 -14px; } }
@media (max-width: 900px) { .hero-cat { width: 100%; margin-left: 0; } }
@media (prefers-reduced-motion: reduce) { .hero-cat *, .hero-cat .look { animation: none !important; transition: none !important; } }

/* meow: the whole drawing swaps between three traced poses (ears up, ears a little down, ears down) so the ears bend smoothly with no seams */
.hero-cat .pose-1, .hero-cat .pose-2 { opacity: 0; }
.hero-cat.said .pose-0 { animation: pose-0 1.6s step-end both; } .hero-cat.said .pose-1 { animation: pose-1 1.6s step-end both; } .hero-cat.said .pose-2 { animation: pose-2 1.6s step-end both; }
@keyframes pose-0 { 0% { opacity: 1; } 2% { opacity: 0; } 94% { opacity: 1; } }
@keyframes pose-1 { 0% { opacity: 0; } 2% { opacity: 1; } 12% { opacity: 0; } 80% { opacity: 1; } 94% { opacity: 0; } }
@keyframes pose-2 { 0% { opacity: 0; } 12% { opacity: 1; } 80% { opacity: 0; } }

/* ═════════ CONTACT: the thinking cat (traced from the drawing, then animated) ═════════ */
.contact-art { max-width: 640px; }
.contact-cat { width: 100%; cursor: pointer; -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none; touch-action: manipulation; }
.contact-cat svg { display: block; width: 100%; height: auto; overflow: visible; }
.contact-cat .ink path { fill: var(--ink); }
.contact-cat .cover { fill: var(--ink); } .contact-cat .white { fill: #F7F3EF; }
.contact-cat .look { transform: translate(var(--ex, 0px), var(--ey, 0px)); transition: transform .12s ease-out; }
.contact-cat .white { transform-box: fill-box; transform-origin: center; animation: cat-blink 5.5s 1.5s infinite; }
.contact-cat .cc { transform-box: fill-box; transform-origin: center; }
.a-d1 { animation: cc-pop 3.6s ease-in-out infinite; } .a-d2 { animation: cc-pop 3.6s .35s ease-in-out infinite; }
@keyframes cc-pop { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.35); } 24% { transform: scale(1); } }
.a-fish { transform-origin: 30% 50%; animation: cc-fish 1.8s ease-in-out infinite alternate; }
@keyframes cc-fish { from { transform: rotate(-3deg) translateY(-1px); } to { transform: rotate(3deg) translateY(2px); } }
.a-spk { animation: cat-spark 2.4s steps(1) infinite; }
.contact-cat.said .a-fish { animation-duration: .35s; } .contact-cat.said .a-spk { animation-duration: .5s; }
@media (prefers-reduced-motion: reduce) { .contact-cat *, .contact-cat .look { animation: none !important; transition: none !important; } }


/* ═════════ HERO: a scroll story. The cat is alone at first; as you scroll the page adds "Hi," → "I'm Vira." → the intro → the buttons ═════════ */
.hero-story { height: 380svh; position: relative; }
.hero-pin { position: sticky; top: 0; height: 100svh; min-height: 560px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(8px, 2vh, 22px); text-align: center; padding: 64px var(--gutter, 24px) 36px; box-sizing: border-box; }
.hero-story .hs-title { margin: 0; display: flex; align-items: baseline; justify-content: center; gap: .28em; flex-wrap: wrap; font: 400 clamp(3rem, 8.2vw, 7.6rem)/.95 var(--serif); letter-spacing: -.025em; min-height: 1em; }
.hs { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.hs-name em { font-style: italic; font-size: .62em; margin-right: .08em; }
.hs-name .vn { position: relative; display: inline-block; }
.h-dot { display: inline-block; transform-origin: 50% 85%; animation: dot-bounce 2.6s ease-in-out infinite; }
@keyframes dot-bounce { 0%, 80%, 100% { transform: translateY(0) scale(1, 1); } 86% { transform: translateY(-.1em) scale(.94, 1.1); } 92% { transform: translateY(0) scale(1.08, .9); } }
.h-under { position: absolute; left: 0; right: 6%; bottom: -.08em; width: 94%; height: .1em; fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; overflow: visible; }
.h-under path { vector-effect: non-scaling-stroke; }
.hero-story.s1 .hs-hi, .hero-story.s2 .hs-name, .hero-story.s3 .hs-p, .hero-story.s4 .hs-b { opacity: 1; transform: none; }
.hero-story.s1 .hs-hi, .hero-story.s2 .hs-hi { opacity: 1; transform: none; }
.hero-story:not(.s2) .h-under path { stroke-dashoffset: 1 !important; }
.hero-story.s2 .h-under path { stroke-dashoffset: 0; transition-delay: .5s; }
.hero-story .hero-art { width: min(100%, 760px); flex: 0 1 auto; position: relative; }
.hero-story .hero-cat { width: 100%; margin: 0; }
.hero-story .hero-cat svg { max-height: 42svh; }
.hero-story .hero-copy { padding: 0; }
.hero-story .hero-copy .lede { margin: 0 auto; max-width: 38rem; text-align: center; color: #111; font-weight: 450; font-size: clamp(1.15rem, 1.5vw, 1.4rem); line-height: 1.5; }
.hero-story .actions { justify-content: center; }
.hero-story .scroll-hint { position: absolute; left: 50%; bottom: 14px; right: auto; transform: translateX(-50%); align-items: center; margin: 0; opacity: 1; transition: opacity .4s ease; }
.hero-story:not(.s0) .scroll-hint { opacity: 0; }
/* no scroll story for reduced motion / no JS: everything simply shows */
.hero-story.static { height: auto; }
.hero-story.static .hero-pin { position: static; height: auto; min-height: 0; padding-top: 28px; padding-bottom: 56px; }
.hero-story.static .hs { opacity: 1; transform: none; }
.hero-story.static .scroll-hint { display: none; }
html:not(.js) .hero-story { height: auto; } html:not(.js) .hero-story .hero-pin { position: static; height: auto; } html:not(.js) .hs { opacity: 1; transform: none; }
@media (max-width: 900px) { .hero-story .hs-title { font-size: clamp(2.8rem, 13vw, 5rem); } .hero-story .hero-art { width: 112%; } .hero-pin { gap: 10px; padding-top: 70px; } .hero-story .actions { gap: 18px; } .hero-story { height: 340svh; } }
@media (max-height: 700px) { .hero-story .hero-cat svg { max-height: 30svh; } }
@media (prefers-reduced-motion: reduce) { .h-dot { animation: none; } .hs { transition: none; } }

/* the zoom: the picture starts big (cropped to the cat) and shrinks to the full drawing as you scroll; --z is set from hero.js */
.hero-pin { overflow: clip; }
.hero-story .hero-art { transform: scale(var(--z, 1)); transform-origin: 52% 52%; will-change: transform; }
.hero-story.static .hero-art { transform: none; }
.hero-story .scroll-hint { z-index: 3; }
.hero-story .scroll-hint span { background: color-mix(in srgb, var(--bg) 80%, transparent); padding: 2px 6px; border-radius: 6px; }

/* the "Scroll down" cue at the bottom of the first frame (desktop and phone) */
.hero-story .scroll-down { bottom: clamp(14px, 3.5vh, 34px); gap: 10px; z-index: 4; display: flex !important; }
.hero-story .scroll-down span { font: 400 clamp(.78rem, 1vw, .9rem)/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--ink); background: color-mix(in srgb, var(--bg) 88%, transparent); padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--ink); }

@media (max-width: 900px) { .hero-story .scroll-down { bottom: 22px; } }

/* ═════════ SERVICES on phones: the same five panels become a deck. Swipe the top card away and it slips back under the pile ═════════ */
.svc-swipe { display: none; }
@media (max-width: 900px) {
  .svc-wrap { position: relative; width: 100%; max-width: 440px; margin: 8px auto 0; aspect-ratio: .98; }
  .svc-wrap .svc-list, .svc-wrap .svc-list-2 { display: contents; }
  .svc-wrap .panel { --p: 0; --sign: 1; position: absolute; left: 0; top: 18px; width: 86%; height: 86%; min-height: 0; aspect-ratio: auto; margin: 0; z-index: calc(10 - var(--p)); touch-action: pan-y;
    translate: calc(var(--p) * 15px + var(--dx, 0px)) calc(var(--p) * -12px + var(--dy, 0px)); rotate: calc(var(--p) * var(--sign) * 2deg + var(--dr, 0deg)); scale: calc(1 - var(--p) * .035);
    transition: translate .5s cubic-bezier(.3, 1.3, .5, 1), rotate .5s cubic-bezier(.3, 1.3, .5, 1), scale .5s ease, opacity .35s ease; opacity: 1; }
  .svc-wrap .panel:nth-of-type(even) { --sign: -1; }
  .svc-wrap .panel:hover { translate: calc(var(--p) * 15px + var(--dx, 0px)) calc(var(--p) * -12px + var(--dy, 0px)); rotate: calc(var(--p) * var(--sign) * 2deg + var(--dr, 0deg)); }
  .svc-wrap .panel:not(.top) { pointer-events: none; }
  .svc-wrap .panel:not(.top) .p-stretch { pointer-events: none; }
  .svc-wrap .panel.drag { transition: none; cursor: grabbing; }
  .svc-wrap .panel.fly { transition: translate .38s cubic-bezier(.4, 0, .8, .4), rotate .38s ease, opacity .38s ease; opacity: 0; }
  .svc-wrap .p-art > * { opacity: 1; }
  .svc-swipe { display: block; margin: 12px 0 0; text-align: center; font: 400 .66rem/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(17, 17, 17, .55); }
  .svc-cap { display: none; }
  .svc-wrap .p-stretch::after { inset: -2px; }
}

/* doodle art on the panels: single-line hand drawings (like the cat) that draw themselves on hover / when a card is on top / on touch */
.p-art > .dd { left: 0; top: 0; width: 100%; height: 100%; overflow: visible; }
.dd * { fill: none; stroke: var(--fg); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .8s ease calc(var(--i, 0) * 70ms); }
.dd [stroke-dasharray=".05 .03"] { stroke-dasharray: .05 .03; }
.dd > :nth-child(1) { --i: 1; } .dd > :nth-child(2) { --i: 2; } .dd > :nth-child(3) { --i: 3; } .dd > :nth-child(4) { --i: 4; } .dd > :nth-child(5) { --i: 5; } .dd > :nth-child(6) { --i: 6; } .dd > :nth-child(7) { --i: 7; } .dd > :nth-child(8) { --i: 8; } .dd > :nth-child(9) { --i: 9; } .dd > :nth-child(10) { --i: 10; } .dd > :nth-child(11) { --i: 11; } .dd > :nth-child(12) { --i: 12; } .dd > :nth-child(13) { --i: 13; } .dd > :nth-child(14) { --i: 14; } .dd > :nth-child(15) { --i: 15; } .dd > :nth-child(16) { --i: 16; } .dd > :nth-child(17) { --i: 17; } .dd > :nth-child(18) { --i: 18; } .dd > :nth-child(19) { --i: 19; } 
.panel:hover .dd *, .panel:focus-within .dd * { stroke-dashoffset: 0; }
@media (max-width: 900px) { .panel .dd * { stroke-dashoffset: 0; } }
@media (hover: none) { .dd * { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .dd * { stroke-dashoffset: 0; transition: none; } }

.panel .p-art > .dd { transition: opacity .5s ease; }
.dd g > :nth-child(1) { --i: 1; } .dd g > :nth-child(2) { --i: 2; } .dd g > :nth-child(3) { --i: 3; } .dd g > :nth-child(4) { --i: 4; } .dd g > :nth-child(5) { --i: 5; } .dd g > :nth-child(6) { --i: 6; } .dd g > :nth-child(7) { --i: 7; } .dd g > :nth-child(8) { --i: 8; } .dd g > :nth-child(9) { --i: 9; } .dd g > :nth-child(10) { --i: 10; } .dd g > :nth-child(11) { --i: 11; } .dd g > :nth-child(12) { --i: 12; } 

/* handwritten "scroll down" with a doodle arrow */
.hero-story .scroll-down { flex-direction: column; gap: 2px; }
.hero-story .scroll-down span.hand { font: 400 clamp(1.5rem, 2.2vw, 2rem)/1 var(--hand); letter-spacing: .02em; text-transform: none; border: 0; border-radius: 0; padding: 2px 8px; background: color-mix(in srgb, var(--bg) 80%, transparent); transform: rotate(-3deg); }
.hero-story .scroll-down svg { width: 30px; height: 44px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; overflow: visible; animation: sd-bob 1.6s ease-in-out infinite; }
.hero-story .scroll-down svg path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: sd-draw 1.2s ease .6s forwards; }
@keyframes sd-draw { to { stroke-dashoffset: 0; } }
@keyframes sd-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 6px; } }
@media (prefers-reduced-motion: reduce) { .hero-story .scroll-down svg, .hero-story .scroll-down svg path { animation: none; stroke-dashoffset: 0; } }
.hero-story { margin-top: -64px; }   /* the pinned stage starts at the very top of the screen (the nav bar is 64px tall in the flow) */
.hero-pin { padding-top: 76px; }

/* intro paragraph: words appear one by one as you scroll (hero.js sets .on on each word) */
.hero-story .lede .w { opacity: .0; transform: translateY(.35em); display: inline-block; transition: opacity .25s ease, transform .35s ease; }
.hero-story .lede .w.on { opacity: 1; transform: none; }
.hero-story.static .lede .w { opacity: 1; transform: none; }
html:not(.js) .hero-story .lede .w { opacity: 1; transform: none; }
.hero-story.s3 .hs-p, .hero-story.s4 .hs-p { opacity: 1; }
.hero-story { height: 440svh; }
@media (max-width: 900px) { .hero-story { height: 400svh; } }

/* ═════════ ORCHID: purple panels (02, 04) and the contact band ═════════ */
.panel.pn2, .panel.pn4 { --bgp: var(--bg); }
.panel.pn2 .p-art, .panel.pn4 .p-art { --edge: rgba(17, 17, 17, .5); }
#contact { position: relative; isolation: isolate; border-top: 0; --muted: rgba(17, 17, 17, .82); --hair: rgba(17, 17, 17, .22); padding-bottom: calc(clamp(60px, 8vw, 120px) + clamp(64px, 8vw, 118px)); }
#contact::before { content: ""; position: absolute; z-index: -1; left: calc(50% - 50vw); right: calc(50% - 50vw); top: -34px; bottom: -4px; background: var(--accent); clip-path: url(#band-b); pointer-events: none; }
main { overflow-x: clip; }
.footer, .footer-dark { margin-top: 0; }
#contact .wobbly[data-variant="solid"][data-state="hover"] .wb-shape { fill: #fff; stroke: #fff; }
#contact .scribble-contact { color: #111; }
.contact-art { }
#contact .mono-lede, #contact .label { color: #111; }

/* pronunciation hint under the headline: appears with "I'm Vira." */
.hero-story .hs-say { margin: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px; font: 400 clamp(.7rem, .9vw, .8rem)/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.hero-story .hs-say .say-ipa { opacity: .6; letter-spacing: .06em; text-transform: none; }
.hero-story .hs-say .say-hand { font: 400 clamp(1.4rem, 2vw, 1.8rem)/1 var(--hand); letter-spacing: .02em; text-transform: none; transform: rotate(-3deg); }
.hero-story.s2 .hs-say, .hero-story.s3 .hs-say, .hero-story.s4 .hs-say { opacity: 1; }
.say-btn { width: 34px; height: 34px; padding: 0; display: inline-grid; place-items: center; border: 1.5px solid var(--ink); border-radius: 50% 46% 52% 48% / 48% 52% 46% 50%; background: transparent; color: var(--ink); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background .25s ease, transform .4s cubic-bezier(.3, 1.6, .5, 1); }
.say-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.say-btn:hover, .say-btn:focus-visible { background: var(--accent); transform: rotate(-6deg) scale(1.1); outline: none; }
.say-btn.on { background: var(--accent); }
.hero-story .hero-pin { gap: clamp(6px, 1.6vh, 18px); }
.hero-story.static .hs-say { opacity: 1; transform: none; }
html:not(.js) .hs-say { opacity: 1; transform: none; }

/* handwritten pronunciation with a doodle arrow pointing up at the name */
.hero-story .hs-say { gap: 6px 12px; align-items: flex-end; transform: translateX(clamp(50px, 11vw, 190px)); margin-top: -.2em; }
.hero-story .hs-say .say-arrow { width: clamp(34px, 4vw, 54px); fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; overflow: visible; margin-bottom: 4px; }
.hero-story .hs-say .say-hand { font: 400 clamp(1.8rem, 2.8vw, 2.6rem)/1 var(--hand); letter-spacing: .02em; transform: rotate(-4deg); }
.hero-story .say-arrow path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .9s ease .5s; }
.hero-story.s2 .say-arrow path { stroke-dashoffset: 0; }
.hero-story.static .say-arrow path, html:not(.js) .say-arrow path { stroke-dashoffset: 0; }
.hero-story.s2 .hs-say, .hero-story.s3 .hs-say, .hero-story.s4 .hs-say { transform: translateX(clamp(50px, 11vw, 190px)); }
.hero-story.static .hs-say { transform: translateX(clamp(50px, 11vw, 190px)); }
@media (max-width: 900px) { .hero-story .hs-say, .hero-story.s2 .hs-say, .hero-story.s3 .hs-say, .hero-story.s4 .hs-say { transform: translateX(18vw); } }

/* the arrow now sits to the right and curves up to point left at the end of the name */
.hero-story .hs-say { position: relative; }
.hero-story .hs-say { --aw: clamp(48px, 5.4vw, 74px); }
.hero-story .hs-say .say-arrow { position: absolute; left: calc(100% + 10px - var(--aw) * .88); bottom: 14px; width: var(--aw); height: auto; margin: 0; pointer-events: none; }

.hero-story .hs-say .say-arrow { stroke-width: 3.2; --aw: clamp(60px, 6.6vw, 92px); width: var(--aw); }
.hero-story .hs-say .say-arrow .sk { stroke-width: 1.5; opacity: .5; transform: translate(2px, -2px); }
.hero-story .hs-say { --aw: clamp(60px, 6.6vw, 92px); }
.hero-story .hs-say .say-arrow { stroke-width: 4.6; bottom: 8px; left: calc(100% + 16px - var(--aw) * .88); }
.hero-story .hs-say .say-arrow .sk { stroke-width: 2; }
.hero-story .hs-say .say-arrow { left: calc(100% + 26px - var(--aw) * .88); }

.hero-story .hs-say .say-arrow { stroke-width: 4.2; stroke-linecap: round; stroke-linejoin: round; }
.hero-story .hs-say .say-arrow .sk { display: none; }

/* ═════════ BLACK & WHITE until you hover: project covers and playground tiles ═════════ */
.project .blob, .tile-stage { filter: grayscale(1) contrast(1.06) brightness(1.03); transition: filter .6s ease; }
.project-link:hover .blob, .project-link:focus-visible .blob, .project-link:active .blob,
.tile:hover .tile-stage, .tile:focus-within .tile-stage, .tile:active .tile-stage { filter: grayscale(0) contrast(1); }
@media (prefers-reduced-motion: reduce) { .project .blob, .tile-stage { transition: none; } }
/* touch screens have no hover: a cover or tile gets its colour while it sits in the middle of the screen (site.js sets .in-focus) */
.project .blob.in-focus, .tile-stage.in-focus { filter: grayscale(0) contrast(1); }

/* project covers sit on a Figma-style dot grid instead of a coloured backdrop */
.project .blob { background: #FDFDFC radial-gradient(circle, rgba(17, 17, 17, .2) 1.3px, transparent 1.7px) 0 0 / 26px 26px; }
.scene-tablet, .scene-pink { background: #FDFDFC radial-gradient(circle, rgba(17, 17, 17, .2) 1.3px, transparent 1.7px) 0 0 / 26px 26px; }
/* project hover cursor: a bigger black ink ball with a cream arrow */
.proj-cur { width: 92px; height: 88px; margin: -44px 0 0 -46px; background: #111; border-radius: 52% 48% 55% 45% / 48% 54% 46% 52%; animation: ink-wobble 3s ease-in-out infinite alternate; }
.proj-cur svg { width: 40px; height: 40px; fill: none; stroke: #F7F3EF; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@keyframes ink-wobble { to { border-radius: 46% 54% 48% 52% / 54% 46% 56% 44%; } }
@media (prefers-reduced-motion: reduce) { .proj-cur { animation: none; } }
.proj-cur { background: var(--accent); }
.proj-cur svg { stroke: #111; }

/* ═════════ INK-DROP REVEAL: a black drop spreads (like thick liquid) over the dot canvas and uncovers the cover as you scroll (reveal.js) ═════════ */
.project .blob { background: transparent !important; overflow: visible; }
.ink-layer { position: absolute; inset: 0; transform-origin: 50% 50%; }
.ink-layer.drop { background: #111; z-index: 4; }
.ink-layer.cover { z-index: 5; background: #FDFDFC radial-gradient(circle, rgba(17, 17, 17, .2) 1.3px, transparent 1.7px) 0 0 / 26px 26px; }
.ink-layer.cover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.project .blob.revealed .ink-layer.drop { display: none; }
html:not(.js) .ink-layer.drop, .project .blob.static .ink-layer.drop { display: none; }

/* ═════════ INK CREATURES (ink.js): three little ink creatures live on a stage; click one and it opens its project ═════════ */
.ink-stage { display: none; position: relative; height: clamp(560px, 82vh, 760px); margin-top: 8px; touch-action: pan-y; -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none; }
.ink-ready .ink-stage { display: block; }
.ink-ready .ink-fallback { display: none; }
.ink-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ink-goo { filter: url(#goo); }
.ink-tag { position: absolute; left: 0; top: 0; font-size: clamp(1.2rem, 1.7vw, 1.5rem); line-height: 1; white-space: nowrap; opacity: 0; transition: opacity .3s ease; pointer-events: none; z-index: 3; }
.ink-tag.on { opacity: 1; }
.ink-zzz { position: absolute; left: 0; top: 0; font-size: 1.4rem; opacity: .6; pointer-events: none; z-index: 3; transition: opacity .4s ease; }
.ink-zzz.off { opacity: 0; }
.ink-btn { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ink-btn:focus-visible { clip: auto; width: auto; height: auto; left: 12px; bottom: 12px; padding: 8px 14px; background: var(--bg); border: 1.5px dashed var(--ink); border-radius: 999px; font: 400 .72rem var(--mono); z-index: 9; }
.ink-hint { position: absolute; right: 2%; top: 2%; margin: 0; font-size: clamp(1.1rem, 1.5vw, 1.35rem); color: rgba(17, 17, 17, .6); transform: rotate(3deg); pointer-events: none; transition: opacity .4s ease; }
.ink-stage.open .ink-hint { opacity: 0; }
.ink-stage.over-ink { cursor: pointer; }
.ink-window { position: absolute; z-index: 5; left: 0; top: 0; }
.ink-window[hidden] { display: none; }
.iw-ink { position: absolute; inset: 0; background: #111; }
.iw-card { position: absolute; inset: 0; }
.iw-body { position: absolute; inset: 24px; background: #FDFDFC; border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; }
.iw-cover { flex: 1 1 auto; min-height: 0; position: relative; background: #FDFDFC radial-gradient(circle, rgba(17, 17, 17, .2) 1.3px, transparent 1.7px) 0 0 / 26px 26px; }
.iw-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: grayscale(1) contrast(1.06) brightness(1.03); transition: filter .6s ease; }
.iw-body:hover .iw-cover img { filter: none; }
.iw-meta { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 20px 16px; border-top: 1.5px solid var(--ink); background: var(--bg); }
.iw-meta h3 { margin: 0; font: 700 clamp(1.2rem, 1.9vw, 1.6rem)/1.2 var(--head); }
.iw-meta p { margin: 4px 0 0; font: 400 .66rem/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.iw-link { flex: none; display: inline-flex; align-items: center; gap: .5em; padding: .8em 1.3em; border: 1.5px solid var(--ink); border-radius: 999px 940px 999px 960px / 880px 999px 940px 999px; color: var(--ink); text-decoration: none; font: 400 .72rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; transition: background .25s ease, transform .4s cubic-bezier(.3, 1.6, .5, 1); }
.iw-link:hover, .iw-link:focus-visible { background: var(--accent); transform: rotate(-2deg) scale(1.04); outline: none; }
.iw-close { position: absolute; z-index: 3; right: 36px; top: 36px; width: 42px; height: 42px; display: grid; place-items: center; padding: 0; border: 1.5px solid var(--ink); border-radius: 50% 46% 52% 48% / 48% 52% 46% 50%; background: var(--bg); color: var(--ink); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background .25s ease, transform .4s cubic-bezier(.3, 1.6, .5, 1); }
.iw-close svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
.iw-close:hover, .iw-close:focus-visible { background: var(--accent); transform: rotate(8deg) scale(1.08); outline: none; }
.iw-cta { align-items: flex-start; justify-content: center; padding: clamp(24px, 4vw, 48px); gap: 14px; background: var(--accent); }
.iw-cta h3 { margin: 0; font: 400 clamp(2rem, 4.4vw, 3.6rem)/1 var(--serif); }
.iw-cta p { margin: 0; max-width: 28rem; font: 400 1.05rem/1.55 var(--body); color: #111; }
@media (max-width: 900px) { .ink-stage { height: clamp(600px, 86svh, 760px); } .iw-meta { flex-wrap: wrap; } .iw-close { right: 32px; top: 32px; } }
@media (prefers-reduced-motion: reduce) { .ink-tag, .ink-zzz { transition: none; } }

/* logo objects (ink.js): each project is its logo, floating on the stage */
.logo-obj { position: absolute; left: 0; top: 0; z-index: 2; padding: 0; border: 0; background: none; cursor: grab; touch-action: pan-y; -webkit-tap-highlight-color: transparent; will-change: transform; width: clamp(96px, 12vw, 150px); }
.logo-obj img { display: block; width: 100%; height: auto; pointer-events: none; }
.logo-obj.drag { cursor: grabbing; z-index: 4; }
.logo-obj.gone { visibility: hidden; pointer-events: none; }
.logo-obj:focus-visible { outline: 2px dashed var(--ink); outline-offset: 10px; border-radius: 12px; }

.shot { position: absolute; left: 0; top: 0; z-index: 3; display: block; border-radius: 18px; border: 1.5px solid #111; background: #fff; box-shadow: 0 10px 18px -8px rgba(17, 17, 17, .35); pointer-events: none; opacity: 0; will-change: transform, opacity; contain: paint; overflow: hidden; cursor: pointer; }
.shot { background-size: cover; background-position: top center; background-repeat: no-repeat; }
.ink-stage.open .shot { display: none; }

/* panels are black / white; the doodles are the Orchid purple */
.dd * { stroke: var(--accent); stroke-width: 3.2; }

/* logos always sit above their screenshots, so a logo is never hidden under them */
.logo-obj { z-index: 11; }
.logo-obj.drag { z-index: 12; }
.proto-tag { position: absolute; left: 0; top: 0; z-index: 13; display: flex; align-items: flex-end; gap: 4px; font-size: clamp(1.5rem, 2vw, 1.9rem); line-height: 1; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .2s ease; }
.proto-tag.on { opacity: 1; }
.proto-tag svg { display: none; width: 40px; height: 28px; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 2px; }
.proto-tag.flip { flex-direction: row-reverse; } .proto-tag.flip svg { transform: scaleX(-1); }
.proto-tag span { text-shadow: 0 0 5px var(--bg), 0 0 5px var(--bg), 0 0 9px var(--bg); }

/* every project logo sits on a white ball */
.logo-obj { width: clamp(118px, 13vw, 168px); aspect-ratio: 1; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 14px 22px -12px rgba(17, 17, 17, .28), inset 0 0 0 1.5px rgba(17, 17, 17, .08); }
.logo-obj img { width: 62%; height: 62%; object-fit: contain; }

/* black, hand-drawn (never perfectly round) balls */
.logo-obj { background: #111; box-shadow: 0 14px 22px -12px rgba(17, 17, 17, .5); }
.logo-obj[data-i="0"] { border-radius: 56% 44% 52% 48% / 47% 55% 45% 53%; }
.logo-obj[data-i="1"] { border-radius: 47% 53% 44% 56% / 54% 46% 55% 45%; }
.logo-obj[data-i="2"] { border-radius: 52% 48% 57% 43% / 45% 57% 43% 55%; }
.logo-obj[data-i="3"] { border-radius: 45% 55% 49% 51% / 56% 44% 56% 44%; }
.logo-obj[data-i="4"] { border-radius: 54% 46% 43% 57% / 50% 52% 48% 50%; }
.logo-obj.logo-oksana img, .logo-obj.logo-master img { filter: brightness(0) invert(1); }

/* folders */
.logo-obj, .logo-obj[data-i] { border-radius: 0 !important; background: none !important; box-shadow: none !important; aspect-ratio: 100 / 80; width: clamp(130px, 14.5vw, 188px); display: block; }
.logo-obj .folder { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 12px 10px rgba(17, 17, 17, .3)); }
.logo-obj .f-back { fill: #111; } .logo-obj .f-paper { fill: #F7F3EF; stroke: #111; stroke-width: 1.2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.logo-obj .f-front { fill: #1c1c1c; stroke: rgba(255, 255, 255, .22); stroke-width: 1.4; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.logo-obj img { position: absolute; left: 50%; top: 61%; transform: translate(-50%, -50%); width: auto; height: auto; max-width: 48%; max-height: 46%; object-fit: contain; }

/* the logo sneaks out from behind the front flap; hover opens the folder a little and lifts the logo */
.logo-obj .folder { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.logo-obj .f-back-svg { filter: drop-shadow(0 12px 10px rgba(17, 17, 17, .3)); }
.logo-obj .f-front-svg { transform-origin: 50% 100%; transition: transform .45s cubic-bezier(.3, 1.4, .5, 1); }
.logo-obj img { z-index: 1; top: 34%; max-width: 42%; max-height: 44%; transition: transform .5s cubic-bezier(.3, 1.4, .5, 1); }
.logo-obj .f-front-svg { z-index: 2; }
.logo-obj:hover .f-front-svg, .logo-obj:focus-visible .f-front-svg { transform: perspective(240px) rotateX(-16deg); }
.logo-obj:hover img, .logo-obj:focus-visible img { transform: translate(-50%, -96%); }
@media (hover: none) { .logo-obj img { transform: translate(-50%, -60%); } }
@media (prefers-reduced-motion: reduce) { .logo-obj img, .logo-obj .f-front-svg { transition: none; } }

/* screenshots inside the folder; the logo goes back on the front flap */
.logo-obj .sheets { position: absolute; inset: 0; pointer-events: none; }
.logo-obj .sheet { position: absolute; left: var(--l); bottom: 36%; width: var(--w); height: auto; background-size: cover; background-position: top center; border: 1.2px solid #111; border-radius: 5px 5px 0 0; box-shadow: 0 -2px 6px rgba(17, 17, 17, .18); transform: rotate(var(--r)); transform-origin: 50% 100%; transition: transform .5s cubic-bezier(.3, 1.3, .5, 1) var(--d), bottom .5s cubic-bezier(.3, 1.3, .5, 1) var(--d); max-height: 62%; }
.logo-obj .sheet:not(.wide) { max-height: 66%; width: var(--w); }
.logo-obj:hover .sheet, .logo-obj:focus-visible .sheet { bottom: 56%; }
.logo-obj .f-front-svg { z-index: 2; }
.logo-obj img { z-index: 3; top: 62%; max-width: 46%; max-height: 40%; transform: translate(-50%, -50%) !important; }
.logo-obj:hover .f-front-svg, .logo-obj:focus-visible .f-front-svg { transform: perspective(240px) rotateX(-9deg); }
@media (hover: none) { .logo-obj .sheet { bottom: 46%; } }

.shot { cursor: pointer; }
.logo-obj.expanded .sheet { opacity: 0; bottom: 40%; transition: opacity .3s ease, bottom .4s ease; }   /* the pages leave the folder when they expand, so nothing is shown twice */
.ink-stage { height: clamp(640px, 92vh, 900px); }
@media (max-width: 900px) { .ink-stage { height: clamp(620px, 90svh, 820px); } }
.proj-cur.proj-white { background: #fff; box-shadow: 0 6px 14px -6px rgba(17, 17, 17, .35), inset 0 0 0 1.5px rgba(17, 17, 17, .12); }
.proj-cur.proj-white svg { stroke: #111; }

/* services: no doodles; a card turns Orchid purple when you hover it */
.panel { transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1), translate .5s cubic-bezier(.3, 1.5, .5, 1), rotate .5s cubic-bezier(.3, 1.5, .5, 1), background-color .35s ease, color .35s ease; }
.panel:hover, .panel:focus-within { --bgp: var(--accent); --fg: #111; }
.logo-obj.logo-spark img { filter: none; }

/* ═════════ PHONES: folders scattered at random + a full-screen collage of the screenshots (mobile.js) ═════════ */
.ink-mobile .ink-stage, .ink-mobile .ink-fallback, .ink-mobile .ink-hint { display: none !important; }
.mfield { position: relative; width: 100%; margin: 8px 0 24px; }
.mf { position: absolute; display: block; aspect-ratio: 100 / 92; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; transform: rotate(var(--r)); font: inherit; color: inherit; }
.mf-back, .mf-front { position: absolute; left: 0; right: 0; }
.mf-back { top: 6%; bottom: 14%; background: #111; border-radius: 12px 12px 10px 10px / 14px 14px 10px 10px; box-shadow: 0 10px 12px -6px rgba(17, 17, 17, .35); }
.mf-back::before { content: ""; position: absolute; left: 0; top: -9%; width: 42%; height: 14%; background: #111; border-radius: 10px 10px 0 0 / 12px 12px 0 0; }
.mf-front { top: 24%; bottom: 14%; background: #1d1d1d; border: 1.4px solid rgba(255, 255, 255, .2); border-radius: 10px; z-index: 2; }
.mf-sheets { position: absolute; inset: 0; z-index: 1; }
.mf-sheets i { position: absolute; left: var(--l); bottom: 52%; width: 36%; aspect-ratio: 320 / 600; max-height: 52%; background-size: cover; background-position: top; border: 1px solid #111; border-radius: 4px 4px 0 0; transform: rotate(var(--rot)); transform-origin: 50% 100%; }
.mf img { position: absolute; z-index: 3; left: 50%; top: 56%; transform: translate(-50%, -50%); width: auto; height: auto; max-width: 46%; max-height: 32%; pointer-events: none; }
.mf:active { transform: rotate(var(--r)) scale(.97); }
.mgal { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; background: rgba(247, 243, 239, .42); -webkit-backdrop-filter: blur(22px) saturate(1.1); backdrop-filter: blur(22px) saturate(1.1); opacity: 0; transition: opacity .45s ease; }
.mgal[hidden] { display: none; } .mgal.on { opacity: 1; }
.mg-bar { flex: none; display: flex; align-items: center; gap: 10px; padding: max(12px, env(safe-area-inset-top)) 14px 10px 16px; }
.mg-title { flex: 0 1 auto; min-width: 0; margin: 0 auto 0 0; padding: 12px 20px 13px; background: #fff; color: var(--ink); font: 400 1.25rem/1.1 var(--serif); border-radius: 17px 21px 16px 22px / 20px 15px 22px 17px; box-shadow: 0 8px 14px -8px rgba(17, 17, 17, .35); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mg-btn { flex: none; width: 46px; height: 46px; display: grid; place-items: center; padding: 0; border: 0; background: #fff; color: var(--ink); text-decoration: none; box-shadow: 0 8px 14px -8px rgba(17, 17, 17, .35); -webkit-tap-highlight-color: transparent; transition: background .2s ease, transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.mg-link { border-radius: 52% 48% 55% 45% / 47% 56% 44% 53%; }
.mg-close { border-radius: 46% 54% 48% 52% / 55% 45% 56% 44%; }
.mg-btn:active, .mg-btn.tapped { transform: scale(.92) rotate(-4deg); }
.mg-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.mg-feed { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; padding: 6px 14px max(28px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 18px; overscroll-behavior: contain; }
.mg-shot { margin: 0; flex: none; border: 0; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 16px 26px -16px rgba(17, 17, 17, .45); opacity: 0; transform: translateY(26px) scale(.95); transition: opacity .8s ease, transform 1s cubic-bezier(.2, .8, .2, 1); will-change: transform, opacity; }
.mg-shot.in { opacity: 1; transform: none; }
.mg-shot img { display: block; width: 100%; height: auto; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .mg-shot { transition: none; opacity: 1; transform: none; } .mgal { transition: none; } }
/* the tapped folder opens (flap tilts, pages rise) before the gallery fades in */
.mf .mf-front { transform-origin: 50% 100%; transition: transform .55s cubic-bezier(.3, 1.3, .5, 1); }
.mf .mf-sheets i { transition: bottom .6s cubic-bezier(.3, 1.3, .5, 1) calc(var(--n, 0) * 70ms), transform .6s ease; }
.mf.opening .mf-front { transform: perspective(300px) rotateX(-28deg); }
.mf.opening .mf-sheets i { bottom: 78%; }
.mf.opening { z-index: 5; transform: rotate(0deg) scale(1.06); transition: transform .5s ease; }
html.ms-open { overflow: hidden; }
.mf img.inv { filter: brightness(0) invert(1); }

/* phones: the deck is played once; when it is empty a peeking cat and a handwritten "and more...." appear */
.svc-end { display: none; }
@media (max-width: 900px) {
  .svc-wrap .panel.gone { display: none; }
  .svc-end { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .5s ease .1s; }
  .svc-wrap.done .svc-end { opacity: 1; }
  .svc-end .svc-cat { width: min(78%, 300px); height: auto; fill: var(--ink); }
  .svc-end .hand { margin: 0; font-size: clamp(2rem, 9vw, 2.8rem); line-height: 1; transform: rotate(-3deg); }
  .svc-wrap.done ~ .svc-swipe { visibility: hidden; }
  .svc-cat .tail-wave { animation: none; }
}
.mg-btn { transition: background .25s ease, color .25s ease, transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.mg-link:active, .mg-link.tapped { background: var(--accent); color: #111; }
.mg-close:active, .mg-close.tapped { background: #111; color: #fff; }

/* "amazing": hand-drawn purple underline plus a doodle star */
.lede .amz { position: relative; display: inline-block; white-space: nowrap; }
.lede .amz-under { position: absolute; left: -2%; bottom: -.28em; width: 104%; height: .5em; fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; overflow: visible; }
.lede .amz-star { position: absolute; right: -1.05em; top: -.85em; width: .95em; height: .95em; fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; overflow: visible; transform: rotate(12deg); }
.lede .amz-under path, .lede .amz-star path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .9s ease .3s; vector-effect: non-scaling-stroke; }
.lede .w.on .amz-under path, .lede .w.on .amz-star path, .lede .amz.on path, .hero-story.static .lede path { stroke-dashoffset: 0; }
.hero-story .h-under path { stroke: var(--accent); }
.lede .amz { padding-right: .95em; }
.lede .amz-star { right: 0; top: -.55em; width: .85em; height: .85em; }

.lede strong { font-weight: 750; }
.lede .amz { padding-right: .78em; }
.lede .amz-star { right: 0; top: -.38em; width: .8em; height: .8em; stroke-width: 2.8; transform: rotate(8deg); }
.lede .amz { padding-right: .9em; }
.lede .amz-star { width: 1.05em; height: 1.05em; top: -.5em; stroke-width: 1.9; }

/* line under the project folders */
.work-note { max-width: 40rem; margin: clamp(10px, 2vw, 26px) auto 0; text-align: center; font: 400 clamp(1.4rem, 2.3vw, 2rem)/1.3 var(--serif); letter-spacing: -.005em; }
.work-note em { font-style: italic; }

/* phones: the swipe edge halves and the "again" link */
.svc-half { display: none; }
@media (max-width: 900px) {
  .svc-half { display: grid; place-items: center; position: absolute; top: 50%; z-index: 30; width: clamp(150px, 46vw, 210px); aspect-ratio: 1; margin-top: calc(clamp(150px, 46vw, 210px) / -2); background: var(--accent); pointer-events: none; opacity: var(--k, 0); transition: opacity .15s ease, transform .2s ease; }
  .svc-half.left { left: calc(50% - 50vw); border-radius: 0 54% 46% 0 / 0 47% 53% 0; transform: translateX(calc((1 - var(--k, 0)) * -40%)); padding-right: 14%; justify-items: end; }
  .svc-half.right { right: calc(50% - 50vw); border-radius: 46% 0 0 54% / 53% 0 0 47%; transform: translateX(calc((1 - var(--k, 0)) * 40%)); padding-left: 14%; justify-items: start; }
  .svc-half svg { width: 46%; height: auto; aspect-ratio: 1; fill: none; stroke: #111; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .svc-again { margin-top: 10px; padding: 6px 2px; border: 0; background: none; color: var(--ink); font: 400 .78rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 7px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .svc-wrap.done .svc-end { pointer-events: auto; }
  .svc-end .svc-again { pointer-events: auto; }
}
/* the edge halves are tall half-circles: flat side on the screen edge, curve bulging inward, as tall as the deck */
@media (max-width: 900px) {
  .svc-half { top: 0; height: 100%; width: clamp(110px, 36vw, 170px); aspect-ratio: auto; margin-top: 0; }
  .svc-half.left { border-radius: 0 100% 100% 0 / 0 52% 48% 0; padding-right: 16%; }
  .svc-half.right { border-radius: 100% 0 0 100% / 48% 0 0 52%; padding-left: 16%; }
  .svc-half svg { width: 42%; }
}

/* swipe dynamics: the half stretches and its icon spins with your finger, pops when the card leaves; the cards behind lean forward */
@media (max-width: 900px) {
  .svc-half { transform-origin: 100% 50%; transform: translateX(calc((1 - var(--k, 0)) * -40%)) scaleX(var(--sc, .8)); }
  .svc-half.right { transform-origin: 0 50%; transform: translateX(calc((1 - var(--k, 0)) * 40%)) scaleX(var(--sc, .8)); }
  .svc-half svg { transform: rotate(var(--spin, 0deg)) scale(calc(.7 + var(--k, 0) * .5)); transition: transform .12s linear; }
  .svc-half.pop { animation: half-pop .45s cubic-bezier(.2, .9, .3, 1.4); }
  @keyframes half-pop { 0% { filter: brightness(1); } 35% { filter: brightness(1.15); transform: translateX(0) scaleX(1.5); } 100% { filter: brightness(1); } }
  .svc-wrap .panel.fly { transition: translate var(--fly, .4s) cubic-bezier(.4, 0, .8, .4), rotate var(--fly, .4s) ease, opacity var(--fly, .4s) ease; }
  .svc-wrap .panel:not(.top):not(.drag) { transition: translate .35s cubic-bezier(.3, 1.4, .5, 1), rotate .35s ease, scale .35s ease, opacity .35s ease; }
}
/* keep the flat side glued to the screen edge: scale from the flat side, and tuck it 2px past the edge */
@media (max-width: 900px) {
  .svc-half.left { transform-origin: 0 50%; left: calc(50% - 50vw - 2px); }
  .svc-half.right { transform-origin: 100% 50%; right: calc(50% - 50vw - 2px); }
  @keyframes half-pop { 0% { filter: brightness(1); } 35% { filter: brightness(1.15); transform: translateX(0) scaleX(1.35); } 100% { filter: brightness(1); } }
}

/* ═════════ BLOG ═════════ */
.blog-lede { margin: 0 0 clamp(26px, 4vw, 52px); max-width: 16ch; }
.posts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 26px); }
.post-link { position: relative; display: grid; grid-template-columns: 2.6rem 1fr auto; grid-template-areas: "no tag arrow" "t t t" "p p p" "m m m"; gap: 8px 12px; align-items: baseline; height: 100%; box-sizing: border-box; padding: clamp(20px, 2.2vw, 30px); color: var(--ink); text-decoration: none; border: 1.5px solid var(--ink); border-radius: 18px 14px 19px 13px / 14px 19px 13px 17px; background: transparent; transition: background-color .3s ease, transform .5s cubic-bezier(.3, 1.5, .5, 1), rotate .5s cubic-bezier(.3, 1.5, .5, 1); }
.post:nth-child(odd) .post-link { rotate: -.35deg; } .post:nth-child(even) .post-link { rotate: .3deg; }
.post-link:hover, .post-link:focus-visible { background: var(--accent); transform: translateY(-4px); rotate: 0deg; outline: none; }
.post-no { grid-area: no; font: 400 .72rem/1 var(--mono); letter-spacing: .12em; opacity: .55; }
.post-tag { grid-area: tag; justify-self: start; padding: 4px 10px 5px; border: 1px solid currentColor; border-radius: 999px 940px 999px 960px / 880px 999px 940px 999px; font: 400 .64rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.post-arrow { grid-area: arrow; font: 400 1.2rem/1 var(--mono); transition: transform .4s cubic-bezier(.3, 1.6, .5, 1); }
.post-link:hover .post-arrow { transform: translate(4px, -4px); }
.post h3 { grid-area: t; margin: 14px 0 0; font: 700 clamp(1.3rem, 2vw, 1.8rem)/1.2 var(--head); letter-spacing: 0; }
.post p { grid-area: p; margin: 0; max-width: 34rem; color: #4f4944; font-size: 1.02rem; line-height: 1.55; }
.post-link:hover p { color: #111; }
.post-meta { grid-area: m; display: flex; gap: 14px; margin-top: 8px; font: 400 .66rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; opacity: .65; }
.post-meta i { font-style: normal; }
@media (max-width: 900px) { .posts { grid-template-columns: 1fr; } .blog-lede { max-width: none; } }
@media (prefers-reduced-motion: reduce) { .post-link { transition: none; } }

/* blog: the four animated covers are the entry points to the articles */
.blog-intro { color: #111; font-weight: 450; max-width: 24rem; }
.blog-cap { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; margin-top: 12px; align-items: start; }
.blog-cap b { grid-column: 1; font: 700 clamp(1rem, 1.3vw, 1.2rem)/1.25 var(--head); letter-spacing: 0; }
.blog-tag { grid-column: 1 / -1; font: 400 .62rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; opacity: .6; }
.blog-cap > span[aria-hidden] { grid-row: 2; grid-column: 2; font: 400 1rem/1 var(--mono); }
.blog-tile { cursor: pointer; }
.blog-tile:hover .blog-cap b { text-decoration: underline; text-decoration-thickness: 1.2px; text-underline-offset: 5px; }
.tile .blog-cap { display: grid; grid-template-columns: 1fr auto; justify-content: stretch; }
.blog-intro { font-weight: 500; font-size: clamp(1.1rem, 1.4vw, 1.3rem); }

/* ═════════ BLOG COVERS (covers.js): four interactive covers, one per article ═════════ */
.bento.covers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 34px) clamp(16px, 2vw, 28px); }
.cover-tile .tile-stage { aspect-ratio: 1.6; filter: none !important; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.cv { color: #111; }
.cv svg { display: block; width: 100%; height: 100%; }
.cv-ai { background: #FDFDFC; }
.cv-price { background: var(--accent); }
.cv-process { background: #111; color: #F7F3EF; }
.cv .mono { font: 400 9px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
/* AI */
.cv-ai .draft { fill: none; stroke: #bdbdbd; stroke-width: 1.4; stroke-dasharray: 4 5; }
.cv-ai .mine { fill: none; stroke: #111; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.cv-ai text { font: 400 9px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; fill: #8a8a8a; }
.cv-ai .lbl-mine { fill: #111; } .cv-ai .acc { fill: var(--accent); }
/* pricing */
.cv-price { display: grid; grid-template-columns: 1.1fr 1fr; gap: 4%; padding: 5% 6%; box-sizing: border-box; align-items: end; }
.pr-stack { position: relative; align-self: stretch; display: flex; flex-direction: column-reverse; justify-content: flex-start; gap: 4px; }
.pr-block { height: 14%; border: 2px solid #111; background: #fff; border-radius: 6px 8px 5px 7px / 7px 5px 8px 6px; display: flex; align-items: center; padding-left: 10px; animation: drop .5s cubic-bezier(.3, 1.5, .5, 1) both; font: 400 9px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.pr-block:nth-child(odd) { transform: rotate(-.8deg); } .pr-block:nth-child(even) { transform: rotate(.7deg); margin-left: 6px; }
@keyframes drop { from { opacity: 0; translate: 0 -50px; } }
.pr-base { height: 3px; background: #111; border-radius: 2px; }
.pr-side { display: flex; flex-direction: column; gap: 6px; align-self: stretch; justify-content: center; }
.pr-chip { text-align: left; padding: 7px 10px; border: 1.8px solid #111; border-radius: 999px 940px 999px 960px / 880px 999px 940px 999px; background: transparent; color: #111; font: 400 9px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; transition: background .2s ease, color .2s ease, transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.pr-chip.on { background: #111; color: #fff; transform: translateX(6px) rotate(-1deg); }
.pr-meter { margin-top: 6px; }
.pr-meter .track { position: relative; height: 3px; background: rgba(17, 17, 17, .25); border-radius: 2px; }
.pr-meter .pin { position: absolute; top: -6px; left: 0; width: 14px; height: 14px; margin-left: -7px; background: #111; border-radius: 50% 46% 54% 48%; transition: left .5s cubic-bezier(.3, 1.4, .5, 1); }
.pr-meter .marks { display: flex; justify-content: space-between; margin-top: 8px; font: 400 10px/1 var(--mono); letter-spacing: .08em; }
/* process */
.cv-process .path { fill: none; stroke: rgba(247, 243, 239, .35); stroke-width: 1.6; stroke-dasharray: 3 6; stroke-linecap: round; }
.cv-process .done { fill: none; stroke: #F7F3EF; stroke-width: 2.6; stroke-linecap: round; }
.cv-process .st circle { fill: #111; stroke: rgba(247, 243, 239, .5); stroke-width: 1.6; transition: fill .3s ease, stroke .3s ease; }
.cv-process .st.on circle { fill: var(--accent); stroke: var(--accent); }
.cv-process .st .ic { fill: none; stroke: #F7F3EF; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s ease; }
.cv-process .st.on .ic { stroke: #111; }
.cv-process .st text { font: 400 8px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; fill: rgba(247, 243, 239, .8); }
.cv-process .ghost { fill: #F7F3EF; }
.cv-process .ghost .eyes { fill: #111; }
@media (max-width: 900px) { .bento.covers { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .pr-block { animation: none; } }
/* domain cover */
.cv-domain { background: #E4D5C2; display: grid; align-content: center; justify-items: center; gap: 14px; padding: 6% 7%; box-sizing: border-box; cursor: pointer; position: relative; }
.dm-bar { display: flex; align-items: center; gap: 10px; width: 100%; box-sizing: border-box; padding: 12px 16px; background: #fff; border: 2px solid #111; border-radius: 999px 960px 999px 940px / 940px 999px 960px 999px; font: 400 clamp(.78rem, 1.5vw, 1.05rem)/1 var(--mono); min-height: 3.1em; overflow: hidden; transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.cv-domain.bad .dm-bar { animation: dm-shake .45s ease; border-color: #111; background: #f3dede; }
.cv-domain.good .dm-bar { background: #fff; transform: scale(1.03); box-shadow: 0 6px 0 var(--accent); }
@keyframes dm-shake { 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
.dm-lock { flex: none; width: 11px; height: 9px; background: #111; border-radius: 2px; position: relative; margin-top: 3px; }
.dm-lock::before { content: ""; position: absolute; left: 1.5px; top: -6px; width: 5px; height: 6px; border: 1.8px solid #111; border-bottom: 0; border-radius: 4px 4px 0 0; }
.dm-url { white-space: nowrap; overflow: hidden; text-overflow: clip; }
.cv-domain.bad .dm-url { text-decoration: line-through; text-decoration-color: #c0392b; text-decoration-thickness: 2px; }
.dm-caret { flex: none; width: 2px; height: 1.1em; background: #111; animation: caret 1s steps(2) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.dm-rules { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.dm-rules li { padding: 6px 12px; border: 1.8px solid #111; border-radius: 999px 940px 999px 960px / 880px 999px 940px 999px; font: 400 9px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; opacity: .5; transition: background .25s ease, color .25s ease, opacity .25s ease, transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.dm-rules li.on { background: #111; color: #fff; opacity: 1; transform: rotate(-1.5deg); }
.dm-hint { font: 400 1.2rem/1 var(--hand); opacity: .6; }
.dm-mark { position: absolute; right: 8%; top: 12%; font: 400 clamp(1.6rem, 4vw, 2.6rem)/1 var(--serif); font-style: normal; }
.cv-domain.good .dm-mark { color: #111; } .cv-domain.bad .dm-mark { color: #c0392b; }
@media (prefers-reduced-motion: reduce) { .cv-domain.bad .dm-bar { animation: none; } .dm-caret { animation: none; } }

/* ═════════ CHAT (chat.js) ═════════ */
.chat { margin-top: clamp(20px, 3vh, 34px); max-width: 26rem; background: #fff; border: 1.5px solid var(--ink); border-radius: 22px 18px 24px 17px / 18px 24px 17px 22px; overflow: hidden; box-shadow: 7px 9px 0 rgba(17, 17, 17, .08); }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1.5px solid var(--ink); background: var(--bg); }
.chat-av { flex: none; width: 36px; height: 36px; padding: 6px; background: #111; border-radius: 52% 48% 55% 45% / 47% 56% 44% 53%; display: grid; place-items: center; }
.chat-who { display: grid; gap: 2px; } .chat-who b { font: 700 1.05rem/1.1 var(--head); } .chat-who i { font: 400 .6rem/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; font-style: normal; opacity: .55; }
.chat-log { height: 15rem; overflow-y: auto; padding: 14px 14px 6px; display: flex; flex-direction: column; gap: 9px; scroll-behavior: smooth; overscroll-behavior: contain; }
.cb { max-width: 86%; padding: 10px 14px 11px; font: 400 .98rem/1.4 var(--body); border-radius: 16px 18px 16px 6px / 15px 17px 15px 7px; animation: cb-in .35s cubic-bezier(.3, 1.4, .5, 1) both; }
.cb.bot { align-self: flex-start; background: #F1ECE6; color: #111; }
.cb.me { align-self: flex-end; background: #111; color: #fff; border-radius: 18px 16px 6px 16px / 17px 15px 7px 15px; }
@keyframes cb-in { from { opacity: 0; transform: translateY(8px) scale(.97); } }
.cb.typing { display: flex; gap: 4px; padding: 14px 16px; }
.cb.typing i { width: 6px; height: 6px; border-radius: 50%; background: #111; opacity: .35; animation: cb-dot 1s ease-in-out infinite; } .cb.typing i:nth-child(2) { animation-delay: .15s; } .cb.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes cb-dot { 50% { opacity: 1; transform: translateY(-3px); } }
.cb-wa { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; padding: 10px 14px; background: var(--accent); color: #111; text-decoration: none; border-radius: 999px 940px 999px 960px / 880px 999px 940px 999px; font: 400 .72rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.cb-wa:hover { transform: rotate(-1.5deg) scale(1.03); }
.chat-quick { display: flex; flex-wrap: wrap; gap: 7px; padding: 4px 14px 10px; min-height: 12px; }
.cq { padding: 7px 12px; border: 1.5px solid var(--ink); border-radius: 999px 940px 999px 960px / 880px 999px 940px 999px; background: transparent; color: var(--ink); font: 400 .64rem/1.1 var(--mono); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: background .2s ease, color .2s ease, transform .3s cubic-bezier(.3, 1.6, .5, 1); -webkit-tap-highlight-color: transparent; }
.cq:hover, .cq:focus-visible { background: #111; color: #fff; transform: rotate(-1.5deg); outline: none; }
.chat-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1.5px solid var(--ink); background: var(--bg); }
.chat-form input { flex: 1; min-width: 0; padding: 10px 14px; border: 1.5px solid rgba(17, 17, 17, .4); border-radius: 999px; background: #fff; font: 400 1rem/1 var(--body); color: #111; outline: none; -webkit-user-select: text; user-select: text; }
.chat-form input:focus { border-color: #111; }
.chat-form button { flex: none; width: 42px; height: 42px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50% 46% 52% 48% / 48% 52% 46% 50%; background: #111; color: #fff; cursor: pointer; transition: background .2s ease, color .2s ease, transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.chat-form button:hover { background: var(--accent); color: #111; transform: rotate(-8deg) scale(1.08); }
.chat-form button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
@media (prefers-reduced-motion: reduce) { .cb, .cb.typing i { animation: none; } }

/* blog covers are now illustrations */
.cv-img { background: var(--accent); }
.cv-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.blog-tile:hover .cv-img img { transform: scale(1.05) rotate(.4deg); }
@media (prefers-reduced-motion: reduce) { .cv-img img { transition: none; } }
.cv-img { background: #A987CC; }
.cv-img img { transform: scale(.88); }
.blog-tile:hover .cv-img img { transform: scale(.92) rotate(.4deg); }

/* chat: closed by default (a white imperfect button + suggestions at the bottom-left); opening shows the chat */
.play-copy { display: flex; flex-direction: column; }
@media (min-width: 901px) { .playground .play-copy { align-self: stretch; } }
.chat-dock { position: relative; margin-top: auto; padding-top: clamp(26px, 5vh, 54px); min-height: 170px; }
.chat-dock .chat { position: absolute; left: 0; bottom: 0; width: min(100%, 26rem); margin: 0; z-index: 5; transform-origin: 0 100%; transform: scale(.6) translateY(20px); opacity: 0; transition: transform .35s cubic-bezier(.3, 1.4, .5, 1), opacity .25s ease; }
.chat-dock .chat[hidden] { display: none; }
.chat-dock.open .chat { transform: none; opacity: 1; }
.chat-launch { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; transition: opacity .2s ease, transform .3s ease; }
.chat-dock.open .chat-launch { opacity: 0; transform: translateY(10px); pointer-events: none; }
.chat-fab { width: 68px; height: 66px; padding: 0; border: 0; background: #fff; border-radius: 54% 46% 52% 48% / 47% 55% 45% 53%; display: grid; place-items: center; cursor: pointer; box-shadow: 0 12px 20px -10px rgba(17, 17, 17, .4); -webkit-tap-highlight-color: transparent; transition: transform .35s cubic-bezier(.3, 1.6, .5, 1), border-radius .6s ease; animation: fab-bob 4s ease-in-out infinite; }
.chat-fab:hover, .chat-fab:focus-visible { transform: rotate(-6deg) scale(1.08); border-radius: 46% 54% 49% 51% / 54% 46% 55% 45%; outline: none; }
@keyframes fab-bob { 50% { transform: translateY(-4px); } }
.chat-sugg { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.chat-sugg button { padding: 10px 16px 11px; border: 0; background: #fff; color: #111; font: 400 .98rem/1.2 var(--body); border-radius: 18px 20px 18px 6px / 17px 19px 17px 7px; box-shadow: 0 10px 16px -10px rgba(17, 17, 17, .4); cursor: pointer; -webkit-tap-highlight-color: transparent; opacity: 0; transform: translateY(10px) scale(.95); animation: sugg-in .5s cubic-bezier(.3, 1.4, .5, 1) forwards; transition: transform .25s cubic-bezier(.3, 1.6, .5, 1), background .2s ease; }
.chat-sugg button:nth-child(2) { animation-delay: .15s; } .chat-sugg button:nth-child(3) { animation-delay: .3s; }
.chat-sugg button:hover, .chat-sugg button:focus-visible { background: var(--accent); transform: translateX(4px) rotate(-1deg); outline: none; }
@keyframes sugg-in { to { opacity: 1; transform: none; } }
.chat-x { margin-left: auto; width: 34px; height: 34px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50% 46% 52% 48% / 48% 52% 46% 50%; background: #111; color: #fff; cursor: pointer; transition: background .2s ease, transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.chat-x:hover { background: var(--accent); color: #111; transform: rotate(8deg); }
.chat-x svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; }
@media (max-width: 900px) { .chat-dock { min-height: 150px; } .chat-dock .chat { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .chat-fab { animation: none; } .chat-sugg button { animation: none; opacity: 1; transform: none; } .chat-dock .chat { transition: none; } }

/* the chat uses the real logo mark, and no outlines anywhere: soft shadows and hand-cut shapes instead */
.chat-fab { width: 76px; height: 74px; }
.chat-fab .chat-logo { font-size: 2.35rem; line-height: 1; color: #111; --eye: #fff; cursor: pointer; display: block; }
.chat-av { width: 44px; height: 44px; padding: 0; background: #fff; box-shadow: 0 6px 12px -6px rgba(17, 17, 17, .35); }
.chat-av .chat-logo { font-size: 1.7rem; line-height: 1; color: #111; --eye: #fff; display: block; }
.chat { border: 0; background: #fff; border-radius: 26px 20px 28px 18px / 20px 28px 18px 24px; box-shadow: 0 22px 36px -20px rgba(17, 17, 17, .45), 0 3px 10px rgba(17, 17, 17, .06); }
.chat-head { border-bottom: 0; background: #fff; padding-bottom: 4px; }
.chat-form { border-top: 0; background: #fff; }
.chat-form input { border: 0; background: #F1ECE6; border-radius: 999px 960px 999px 940px / 940px 999px 960px 999px; }
.chat-form input:focus { box-shadow: 0 0 0 2px var(--accent); }
.cq { border: 0; background: #F1ECE6; border-radius: 999px 940px 999px 960px / 880px 999px 940px 999px; }
.cq:hover, .cq:focus-visible { background: #111; color: #fff; }
.cb.bot { background: #F1ECE6; }
.chat-fab { width: 92px; height: 90px; }
.chat-fab .chat-logo { font-size: 3.4rem; }
.chat-av { width: 52px; height: 50px; }
.chat-av .chat-logo { font-size: 2.1rem; }
.chat-log { padding-top: 10px; }

.chat-logo { width: auto; height: auto; }
.chat-logo svg.vira-mark { width: 1.9em; height: 1.9em; fill: currentColor; }
.chat-fab .chat-logo { font-size: 3rem; }
.chat-av { overflow: visible; display: grid; place-items: center; }
.chat-av .chat-logo { font-size: 1.15rem; }
/* "ask me anything" doodle */
.chat-ask { position: absolute; left: 96px; bottom: 6px; display: flex; align-items: flex-end; gap: 4px; pointer-events: none; transform: rotate(-4deg); transition: opacity .2s ease; }
.chat-ask .hand { margin: 0; font-size: 1.55rem; line-height: 1; white-space: nowrap; order: 2; padding-bottom: 6px; }
.chat-ask svg { order: 1; width: 52px; height: 34px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; overflow: visible; transform: scaleX(-1) translateY(-2px); }
.chat-dock.open .chat-ask { opacity: 0; }
.chat-launch { position: relative; }
.chat-dock { padding-bottom: 0; }
.chat-dock { margin-bottom: -14px; }
@media (max-width: 900px) { .chat-dock { margin-bottom: 0; } }
.chat-ask svg { transform: translateY(-23px); }
.chat-dock { margin-bottom: -64px; }
@media (max-width: 900px) { .chat-dock { margin-bottom: -8px; } }

/* the chat window is a hand-cut shape (not a perfect rounded rectangle) and taller */
.chat { clip-path: url(#chat-shape); border-radius: 0; box-shadow: none; padding: 6px 4px; }
.chat-dock.open { filter: drop-shadow(0 22px 22px rgba(17, 17, 17, .22)) drop-shadow(0 3px 4px rgba(17, 17, 17, .08)); }
.chat-log { height: 22rem; }
.chat-head { padding-top: 16px; padding-left: 20px; }
.chat-form { padding-bottom: 16px; }
.chat-quick { padding-left: 18px; }
.chat-log { padding-left: 18px; padding-right: 18px; }
@media (max-width: 900px) { .chat-log { height: min(24rem, 56svh); } }

/* everything inside the chat is hand-cut too: bubbles, chips, the message box and the buttons all use wobbly shapes */
.cb { border-radius: 0; padding: 13px 18px 14px; }
.cb.sh1 { clip-path: url(#bub-a); } .cb.sh2 { clip-path: url(#bub-b); } .cb.sh3 { clip-path: url(#bub-c); }
.cb.typing { clip-path: url(#bub-b); }
.cq { border-radius: 0; padding: 9px 15px 10px; }
.cq:nth-child(3n+1) { clip-path: url(#bub-a); } .cq:nth-child(3n+2) { clip-path: url(#bub-b); } .cq:nth-child(3n) { clip-path: url(#bub-c); }
.chat-form input { border-radius: 0; clip-path: url(#bub-b); padding: 12px 18px; }
.chat-form input:focus { box-shadow: none; background: #ece4f4; }
.chat-form button, .chat-x, .chat-av { border-radius: 46% 54% 52% 48% / 54% 44% 56% 46%; }
.cb-wa { border-radius: 0; clip-path: url(#bub-c); padding: 12px 18px; }
.chat-sugg button { border-radius: 0; clip-path: url(#bub-a); padding: 12px 20px 13px; box-shadow: none; }
.chat-sugg { filter: drop-shadow(0 8px 8px rgba(17, 17, 17, .18)); }
.chat-sugg button:nth-child(2) { clip-path: url(#bub-b); } .chat-sugg button:nth-child(3) { clip-path: url(#bub-c); }

.chat-fab.ping::after { content: ""; position: absolute; right: 4px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px #fff; }
.chat-fab { position: relative; }

.chat-note { margin: 0; padding: 4px 20px 8px; font: 400 .62rem/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; opacity: .6; }
.chat-note a, .priv-link { color: inherit; text-underline-offset: 4px; }
.footer-dark .priv-link { color: inherit; }


.blog-tile { position: relative; }
.blog-link { color: inherit; text-decoration: none; }
.blog-link::after { content: ""; position: absolute; inset: 0; }
.blog-link:focus-visible { outline: 2px dashed currentColor; outline-offset: 4px; }

/* live (direct) chat banner */
.chat-live { display: flex; align-items: center; gap: 10px; margin: 2px 16px 4px; padding: 13px 16px 14px 18px; background: #E9DDF3; clip-path: url(#live-strip); }
.chat-live[hidden] { display: none; }
.live-dot { flex: none; width: 9px; height: 9px; border-radius: 52% 48% 55% 45% / 47% 56% 44% 53%; background: #AD86CF; animation: live-pulse 1.6s ease-in-out infinite; }
.live-t { flex: 1; min-width: 0; font: 400 .58rem/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: #111; }
.live-end { flex: none; padding: 9px 15px 10px; border: 0; background: #111; color: #fff; font: 400 .6rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; clip-path: url(#live-btn); cursor: pointer; transition: background .2s ease, color .2s ease, transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.live-end:hover, .live-end:focus-visible { background: var(--accent); color: #111; transform: rotate(-2deg); outline: none; }
@keyframes live-pulse { 50% { transform: scale(1.5); opacity: .5; } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }

.news-fine { margin: 10px 0 0; font-size: .66rem; letter-spacing: .06em; opacity: .65; }
.news-fine a { color: inherit; text-underline-offset: 3px; }

/* the purple band above the contact section: on narrow screens the section is very tall, so use a much gentler wave */
@media (max-width: 700px) { #contact::before { clip-path: url(#band-b-soft); top: -24px; } }

/* phones: the open chat is a full-height sheet that stays on screen (and above the keyboard) instead of sitting inside the page */
html.chat-lock { overflow: hidden; }
@media (max-width: 700px) {
  .chat-dock.open { filter: none; }
  .chat-dock.open::before { content: ""; position: fixed; inset: 0; z-index: 940; background: rgba(17, 17, 17, .42); }
  .chat-dock.open .chat { position: fixed; z-index: 950; left: 8px; right: 8px; top: calc(var(--cvt, 0px) + 8px); bottom: auto; width: auto; max-width: none; height: calc(var(--cvh, 100dvh) - 16px); margin: 0; display: flex; flex-direction: column; transform-origin: 50% 100%; box-shadow: none; }
  .chat-dock.open .chat-log { flex: 1 1 auto; height: auto; min-height: 0; }
  .chat-dock.open .chat-head, .chat-dock.open .chat-live, .chat-dock.open .chat-quick, .chat-dock.open .chat-note, .chat-dock.open .chat-form { flex: none; }
  .chat-dock.open .chat-head { padding-top: calc(env(safe-area-inset-top, 0px) * 0 + 18px); }
  .chat-dock.open .chat-form { padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
  .chat-form input { font-size: 16px; }
  .chat-x { width: 40px; height: 40px; }
}

/* phones with the keyboard open: only a small strip of screen is left, so shrink the chrome and give the messages the room */
@media (max-width: 700px) {
  .chat-dock.open .chat.kb .chat-head { padding: 10px 14px 4px 16px; gap: 10px; }
  .chat-dock.open .chat.kb .chat-av { width: 38px; height: 38px; }
  .chat-dock.open .chat.kb .chat-av .chat-logo { font-size: .85rem; }
  .chat-dock.open .chat.kb .chat-who b { font-size: .95rem; }
  .chat-dock.open .chat.kb .chat-who i { font-size: .52rem; }
  .chat-dock.open .chat.kb .chat-x { width: 34px; height: 34px; }
  .chat-dock.open .chat.kb .chat-live { margin: 0 12px 2px; padding: 7px 10px 8px 14px; }
  .chat-dock.open .chat.kb .live-t { font-size: .52rem; }
  .chat-dock.open .chat.kb .live-end { padding: 6px 11px 7px; }
  .chat-dock.open .chat.kb .chat-note, .chat-dock.open .chat.kb .chat-quick { display: none; }
  .chat-dock.open .chat.kb .chat-log { padding-top: 6px; padding-bottom: 4px; }
  .chat-dock.open .chat.kb .chat-form { padding: 4px 12px calc(10px + env(safe-area-inset-bottom, 0px)); }
}

/* phones: more air between the blog tiles, and between the last blog title and the purple band below it */
@media (max-width: 700px) {
  #blog .covers { row-gap: clamp(34px, 9vw, 52px); }
  #blog { margin-bottom: clamp(56px, 16vw, 84px); }
}
