/* bondarchukartem.com — "technology meets nature": warm grey paper sheets, one clean grotesque, one big object per sheet;
   the boldness lives in a few small things: a pale giant word, the name written by hand, objects that breathe and follow the cursor */
:root {
  --page: #cfcac1;
  --paper: #e8e5de;
  --ink: #111110;
  --soft: rgba(17, 17, 16, .62);
  --line: rgba(17, 17, 16, .16);
  --ghost: rgba(17, 17, 16, .065);
  --red: #b8322a;
  --green: #2f9e5f;
  --head: "Inter Tight", "Inter", system-ui, sans-serif;
  --text: "Inter", system-ui, sans-serif;
  --hand: "Caveat", "Segoe Print", cursive;
  --serif: "Cormorant Garamond", Georgia, serif;
  --gap: 8px;
  --pad: 22px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--page); color: var(--ink); font-family: var(--text); font-weight: 400; font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }
img { display: block; max-width: 100%; -webkit-user-drag: none; user-select: none; -webkit-touch-callout: none; }

/* ---------- header: the name written by hand, small links, language ---------- */
.top { position: fixed; z-index: 20; top: var(--gap); left: var(--gap); right: var(--gap); border-radius: 18px 18px 0 0; transition: background .4s, backdrop-filter .4s, border-radius .4s; }
.top.scrolled { background: rgba(232, 229, 222, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: 14px; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: 60px; padding: 0 var(--pad); }
.mono { font-family: var(--hand); font-weight: 700; font-size: 26px; line-height: 1; white-space: nowrap; rotate: -2deg; }
/* menu: Home · Projects ▾ · Book · Contacts ▾ — on a phone it hides behind the black "Menu" pill */
.menu { display: none; font-size: 13px; }
.menu > a, .dd-btn { opacity: .72; transition: opacity .3s; }
.menu > a:hover, .dd-btn:hover, .dd.open .dd-btn, .menu > a[aria-current="page"], .dd.here .dd-btn { opacity: 1; }
.menu > a[aria-current="page"], .dd.here .dd-btn { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.dd { position: relative; }
.dd-btn { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.dd-btn::after { content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1px 1px 0; transform: translateY(-2px) rotate(45deg); transition: transform .3s; }
.dd.open .dd-btn::after { transform: translateY(1px) rotate(-135deg); }
.dd-panel { display: grid; }
.dd-panel a { display: flex; align-items: center; gap: 12px; padding: 9px 14px; border-radius: 10px; white-space: nowrap; transition: background .25s; }
.dd-panel a:hover { background: rgba(17, 17, 16, .06); }
.dd-panel a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.dd-panel .dd-all { margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; color: var(--soft); }
.dd-panel .ch-ico { width: 30px; height: 30px; }
.dd-panel .dd-item { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; align-items: center; white-space: normal; padding: 8px 10px; }
.dd-item img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; box-shadow: 0 0 0 1px rgba(17, 17, 16, .06); transition: transform .4s cubic-bezier(.2, .7, .2, 1); }
.dd-item:hover img { transform: scale(1.06); }
.dd-item span { display: grid; gap: 2px; }
.dd-item b { font-weight: 400; font-size: 14px; color: var(--ink); }
.dd-item small { font-size: 12px; line-height: 1.4; color: var(--soft); }
.dd-panel .ch-ico svg { width: 16px; height: 16px; }
.top-right { display: flex; align-items: center; gap: 16px; }
.menu-btn { font: inherit; font-size: 13px; height: 36px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--ink); color: var(--paper); cursor: pointer; }
/* phone: the menu opens as a sheet under the header, sub-links already shown */
@media (max-width: 899px) {
  .top.menu-open { background: rgba(232, 229, 222, .96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: 14px; box-shadow: 0 24px 40px -24px rgba(40, 34, 24, .4); }
  .top-in { flex-wrap: wrap; height: auto; min-height: 60px; row-gap: 0; column-gap: 10px; }
  .mono { font-size: 24px; }
  .top-right { gap: 10px; }
  .menu-btn { padding: 0 15px; }
  .top.menu-open .menu { order: 3; width: 100%; display: grid; gap: 2px; padding: 0 0 20px; font-size: 17px; max-height: calc(100svh - 90px); overflow-y: auto; }
  .menu > a, .dd-btn { opacity: 1; padding: 10px 0; }
  .dd-btn { cursor: default; pointer-events: none; }
  .dd-btn::after { display: none; }
  .menu > a[aria-current="page"], .dd.here .dd-btn { text-decoration: none; }
  .dd-panel { padding: 0 0 6px 14px; border-left: 1px solid var(--line); margin-bottom: 6px; font-size: 15px; }
  .dd-panel a { padding: 8px 10px; }
  .dd-panel .dd-item { grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 6px 10px; }
  .dd-item img { width: 36px; height: 36px; border-radius: 9px; }
  .dd-item small { display: none; }
  .dd-item b { font-size: 15px; }
  .dd-panel .dd-all { border-top: 0; margin-top: 0; }
}
.lang { font-size: 12px; letter-spacing: .1em; }
.lang button { font: inherit; letter-spacing: inherit; color: inherit; background: none; border: 0; padding: 6px 2px; cursor: pointer; opacity: .45; }
.lang button[aria-pressed="true"], .lang button:hover { opacity: 1; }

/* ---------- every screen is a rounded sheet of paper ---------- */
.card { position: relative; overflow: hidden; isolation: isolate; margin: var(--gap); border-radius: 18px; background: var(--c, var(--paper)); display: grid; }
.card + .card { margin-top: 0; }
.text { position: relative; z-index: 3; display: grid; gap: 22px; align-content: center; min-width: 0; padding: 104px var(--pad) 28px; }
h1, h2, .big { font-family: var(--head); font-weight: 400; text-transform: uppercase; line-height: 1; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(42px, 12.4vw, 96px); }
h2, .big { font-size: clamp(34px, 9.4vw, 76px); }
h3 { font-family: var(--head); font-weight: 400; text-transform: uppercase; font-size: 20px; line-height: 1.15; letter-spacing: -.01em; }
/* under "my project / my book": the thing's own name, a step smaller */
.name { font-family: var(--head); font-weight: 400; text-transform: uppercase; font-size: clamp(22px, 6.6vw, 40px); line-height: 1.08; letter-spacing: -.01em; text-wrap: balance; }
.text .big + .name { margin-top: -6px; }
/* inner pages: a small square label on top, the thing's own name is the big title */
.kick-top { font-family: "Russo One", var(--head); font-size: 18px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.hero-title { font-family: var(--head); font-weight: 400; text-transform: uppercase; font-size: clamp(28px, 8vw, 40px); line-height: 1.05; letter-spacing: -.015em; text-wrap: balance; }
.lead { max-width: 40ch; font-size: 15px; line-height: 1.6; color: var(--ink); }
.body { display: grid; gap: 14px; max-width: 52ch; font-size: 14px; line-height: 1.75; color: var(--soft); }
.cta { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }
.pill { display: inline-grid; place-items: center; min-width: 148px; height: 44px; padding: 0 26px; border: 1px solid var(--ink); border-radius: 12px; font-size: 13px; transition: background .3s, color .3s; }
.pill:hover { background: var(--ink); color: var(--paper); }
.pill-dark { display: inline-grid; place-items: center; height: 44px; padding: 0 26px; border-radius: 12px; background: var(--ink); color: var(--paper); font-size: 13px; transition: transform .3s, background .3s; }
.pill-dark:hover { transform: translateY(-1px); background: #2a2a28; }
.note { font-size: 12px; color: var(--soft); }
.sign { font-family: var(--hand); font-weight: 700; font-size: 44px; line-height: 1; rotate: -4deg; justify-self: start; margin-top: 4px; }
.red { color: var(--red); }
.status { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
.status i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px rgba(47, 158, 95, .7); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* a giant pale word lies on the sheet (fitted to the width by script) */
.ghost { position: absolute; z-index: 0; left: 1.5%; bottom: -.16em; font-family: var(--head); font-weight: 500; font-size: 20vw; line-height: 1; letter-spacing: -.035em; text-transform: uppercase; white-space: nowrap; color: var(--ghost); pointer-events: none; user-select: none; }

/* the object: on a phone it sits under the text; its edges melt into the sheet */
.art { position: relative; z-index: 1; }
.obj { position: relative; width: 100%; aspect-ratio: var(--ar); transform: perspective(1400px) rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)); transition: transform 1s cubic-bezier(.2, .7, .2, 1); }
.obj img { width: 100%; height: 100%; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14%); mask-image: linear-gradient(to bottom, transparent 0, #000 14%); }
.cut .obj img { -webkit-mask-image: none; mask-image: none; }
/* objects (not people) slowly breathe */
.live .obj img, .live .obj .browsers { animation: breathe 9s ease-in-out infinite; transform-origin: 60% 80%; }
@keyframes breathe { 50% { transform: translateY(-1.2%) scale(1.012); } }
/* the robot's green lights blink */
.spark { position: absolute; left: var(--x); top: var(--y); width: var(--s, 1.6%); aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle, #d9ffe8 0%, #4dff9a 35%, rgba(77, 255, 154, 0) 70%); mix-blend-mode: screen; animation: blink var(--d, 2.6s) ease-in-out var(--t, 0s) infinite; pointer-events: none; }
@keyframes blink { 0%, 100% { opacity: .15; } 45%, 60% { opacity: 1; } }

/* each sheet takes the tone of its own picture */
.hero { --c: var(--paper); }
.project { --c: #dcd4cb; }
.book { --c: #c9c1b8; }
.ai { --c: #ddd8d0; }
.sites { --c: #dcd6cd; }
.contact { --c: #e0dcd4; }
/* the about sheet takes the tone of the photo's own wall, so the cut-out hair melts into it */
.about { --c: #cdc5ba; }
.about .body { font-family: var(--head); font-size: 17.5px; line-height: 1.6; color: rgba(17, 17, 16, .86); }
.about .lead { font-size: 18px; }

/* ---------- "sites": browser windows drawn in CSS, each showing a sheet of this very site ---------- */
.browsers { position: relative; width: 100%; height: 100%; }
.win { position: absolute; overflow: hidden; border-radius: 12px; background: var(--paper); box-shadow: 0 30px 50px -22px rgba(40, 34, 24, .45), 0 0 0 1px rgba(17, 17, 16, .08); }
.win::before { content: ""; display: block; height: 22px; background-color: #f4f2ee; background-image: radial-gradient(circle at 14px 11px, #bdb5ab 3.5px, transparent 4px), radial-gradient(circle at 28px 11px, #bdb5ab 3.5px, transparent 4px), radial-gradient(circle at 42px 11px, #bdb5ab 3.5px, transparent 4px); border-bottom: 1px solid rgba(17, 17, 16, .08); }
.win img { width: 100%; height: calc(100% - 22px); object-fit: cover; -webkit-mask-image: none !important; mask-image: none !important; }
.win.w1 { left: 4%; top: 20%; width: 56%; height: 56%; rotate: -4deg; }
.win.w2 { left: 34%; top: 8%; width: 52%; height: 60%; rotate: 3deg; }
.win.w3 { left: 22%; top: 46%; width: 54%; height: 46%; rotate: -1deg; }
.win .page { height: calc(100% - 22px); display: grid; align-content: center; gap: 6%; padding: 8% 10%; background: var(--paper); }
.win .page b { font-family: var(--head); font-weight: 400; font-size: clamp(14px, 2.2vw, 30px); line-height: 1; text-transform: uppercase; letter-spacing: -.02em; }
.win .page i { display: block; height: 6px; border-radius: 3px; background: rgba(17, 17, 16, .12); }
.win .page i:nth-of-type(2) { width: 80%; }
.win .page i:nth-of-type(3) { width: 55%; }
.win .page s { display: block; width: 38%; height: 18px; border-radius: 6px; border: 1px solid var(--ink); }

/* ---------- "what I do": doors to the other pages ---------- */
.doors { display: grid; gap: 22px; padding: 96px var(--pad) var(--pad); --c: var(--paper); }
.doors-head { display: grid; gap: 10px; }
.door-grid { display: grid; gap: var(--gap); }
.door { position: relative; overflow: hidden; isolation: isolate; display: grid; align-content: space-between; gap: 18px; min-height: 380px; padding: 22px; border-radius: 16px; background: var(--c); transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.door .door-text { position: relative; z-index: 2; display: grid; gap: 8px; max-width: 60%; }
.door .kick { font-family: var(--head); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
.door .door-name { font-family: var(--head); font-weight: 400; text-transform: uppercase; font-size: clamp(24px, 6.4vw, 34px); line-height: 1.05; letter-spacing: -.015em; }
.door .door-img { position: absolute; z-index: 1; right: 0; bottom: 0; height: 92%; transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.door .door-img img { height: 100%; width: auto; max-width: none; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 24%), linear-gradient(to bottom, transparent 0, #000 16%); mask-image: linear-gradient(to right, transparent 0, #000 24%), linear-gradient(to bottom, transparent 0, #000 16%); -webkit-mask-composite: source-in; mask-composite: intersect; }
.door .door-img.browsers { width: 70%; height: 82%; bottom: 6%; right: -4%; }
.door .go { position: relative; z-index: 2; justify-self: start; display: inline-flex; align-items: center; gap: 12px; height: 44px; padding: 0 8px 0 20px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 13px; }
.door .go i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--paper); color: var(--ink); font-style: normal; font-size: 15px; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.door .door-line { margin-top: 6px; max-width: 34ch; font-size: 14px; line-height: 1.5; color: var(--soft); }
/* "my projects": two of the project pictures stand side by side */
.projects { --c: #dcd4cb; }
.door .door-img.stack { width: 100%; }
.door .stack img { position: absolute; bottom: 0; height: 100%; }
.door .stack .s2 { right: 0; }
.door .stack .s1 { right: 44%; height: 56%; opacity: .9; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 30%, #000 70%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 20%); mask-image: linear-gradient(to right, transparent 0, #000 30%, #000 70%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 20%); }
.door:hover .door-img { transform: scale(1.04) translateX(-1%); }
.door:hover .go i { transform: rotate(-45deg); }
.door:active { transform: scale(.99); }

/* ---------- contacts ---------- */
.contact { min-height: 0; justify-items: center; text-align: center; }
.contact .text { justify-items: center; padding-bottom: 0; }
.contact .art { width: min(52%, 300px); margin: 18px auto 34px; }
.contact .obj img { -webkit-mask-image: none; mask-image: none; filter: drop-shadow(0 22px 18px rgba(40, 34, 24, .28)); }
.channels { position: relative; z-index: 3; display: grid; width: min(100% - 2 * var(--pad), 760px); margin: 0 auto 40px; border-top: 1px solid var(--line); text-align: left; }
.channel { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); font-family: var(--head); font-size: 22px; transition: padding .4s; }
.channel:hover { padding-left: 6px; }
.channel small { font-family: var(--text); font-size: 12px; letter-spacing: .06em; color: var(--soft); }
.ch-name { display: inline-flex; align-items: center; gap: 14px; }
.ch-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--paper); flex: none; }
.ch-ico svg { width: 20px; height: 20px; }

/* ---------- inner pages: plain sheets of facts ---------- */
.sheet { display: grid; gap: 28px; padding: 64px var(--pad); }
.steps { list-style: none; display: grid; counter-reset: s; border-top: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 18px; row-gap: 6px; align-content: start; padding: 26px 0; border-bottom: 1px solid var(--line); counter-increment: s; }
.steps li::before { content: counter(s, decimal-leading-zero); grid-row: 1 / span 2; font-family: var(--serif); font-weight: 300; font-size: 46px; line-height: .85; color: rgba(17, 17, 16, .36); }
.steps li > * { grid-column: 2; }
.steps h3 { font-size: 21px; }
.steps.compact li { grid-template-columns: 44px minmax(0, 1fr); padding: 16px 0; }
.steps.compact li::before { font-size: 32px; }
.steps.compact h3 { font-size: 17px; }
.steps p, .facts p { max-width: 60ch; font-size: 15.5px; line-height: 1.65; color: rgba(17, 17, 16, .7); }
.steps.compact p { font-size: 14.5px; }
.facts { display: grid; gap: var(--gap); }
.facts > div { display: grid; gap: 8px; padding: 22px 0; border-top: 1px solid var(--line); }
.sheet .big-body { max-width: 62ch; font-size: 16px; line-height: 1.75; color: rgba(17, 17, 16, .78); }
.sheet .sign { margin-top: -8px; }
/* a sentence that deserves to be read slowly */
.quote { max-width: 34ch; font-family: var(--head); font-weight: 300; font-size: clamp(22px, 6vw, 30px); line-height: 1.3; letter-spacing: -.01em; text-wrap: balance; }
.big-quote { max-width: 26ch; font-size: clamp(26px, 7.4vw, 56px); line-height: 1.15; }
/* a real quote: big serif italic, a large quotation mark, a quiet caption */
.bigq { position: relative; display: grid; gap: 26px; padding-top: 56px; }
.bigq::before { content: "“"; position: absolute; top: 0; left: -4px; font-family: var(--serif); font-size: 150px; line-height: .8; color: rgba(17, 17, 16, .16); }
.bigq blockquote { max-width: 19em; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(28px, 7.6vw, 52px); line-height: 1.15; letter-spacing: -.005em; text-wrap: balance; }
.bigq figcaption { display: flex; align-items: center; gap: 14px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
.bigq figcaption::before { content: ""; width: 32px; height: 1px; background: currentColor; flex: none; }
.quote-sheet:not(:has(> h2)) { justify-items: center; text-align: center; padding-block: clamp(90px, 16vw, 190px); }
.quote-sheet:not(:has(> h2)) .bigq::before { left: 50%; transform: translateX(-50%); }
.quote-sheet:not(:has(> h2)) .bigq figcaption { justify-content: center; }
.quote-sheet:has(> h2) .bigq blockquote { max-width: 34em; }
.quote-sheet:has(> h2) .bigq blockquote { font-size: clamp(21px, 5.4vw, 28px); line-height: 1.45; text-wrap: pretty; }
/* the book door on the home page carries a line from the book */
.door .door-quote { margin-top: 14px; max-width: 36ch; font-family: var(--serif); font-style: italic; font-size: 18px; line-height: 1.35; color: rgba(17, 17, 16, .72); }
/* "about me": a quiet list of who he is */
.creds { list-style: none; display: grid; max-width: 58ch; border-top: 1px solid var(--line); }
.creds li { padding: 13px 0; border-bottom: 1px solid var(--line); font-family: var(--head); font-size: 17px; line-height: 1.5; color: rgba(17, 17, 16, .78); }
.creds b { font-weight: 500; color: var(--ink); }
.roles { max-width: none; letter-spacing: .01em; }
.sheet h3.sub { margin-top: 26px; font-size: 26px; }
/* the book: what's inside on the left, pages to drag through on the right */
.inside-text { display: grid; gap: 28px; align-content: start; min-width: 0; }
/* the AI example: a short exchange, line by line */
.dialog { display: grid; gap: 10px; max-width: 46ch; }
.dialog p { justify-self: start; max-width: 90%; padding: 10px 16px; border-radius: 16px 16px 16px 4px; background: rgba(255, 255, 255, .5); font-size: 14.5px; line-height: 1.5; }
.dialog p.a { justify-self: end; border-radius: 16px 16px 4px 16px; background: var(--ink); color: var(--paper); }
.faq { display: grid; max-width: 760px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; cursor: pointer; list-style: none; font-family: var(--head); font-size: 19px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; font-weight: 300; transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 18px; max-width: 62ch; font-size: 14.5px; line-height: 1.65; color: var(--soft); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.chips li { padding: 10px 18px; border: 1px solid var(--ink); border-radius: 999px; font-size: 14px; }
.fine { max-width: 70ch; font-size: 12.5px; line-height: 1.7; color: var(--soft); }
.works { display: grid; gap: var(--gap); }
.work { display: grid; gap: 14px; padding: 18px; border-radius: 14px; background: rgba(255, 255, 255, .38); }
.work .shot { position: relative; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: var(--paper); box-shadow: 0 0 0 1px rgba(17, 17, 16, .08); }
.work .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.work.soon .shot { display: grid; place-items: center; background: repeating-linear-gradient(-45deg, rgba(17, 17, 16, .04) 0 10px, transparent 10px 20px); font-family: var(--hand); font-size: 30px; color: var(--soft); }
.work-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }

/* ---------- pages flow into each other instead of blinking ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; animation-timing-function: ease; }

/* ---------- footer ---------- */
.foot { margin: 0 var(--gap) var(--gap); border-radius: 18px; background: var(--ink); color: var(--paper); }
.foot-in { display: grid; gap: 22px; padding: 40px var(--pad) 32px; }
.foot .mono { justify-self: start; font-size: 30px; }
.foot-menu { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 14px; }
.foot-menu a { opacity: .7; transition: opacity .3s; }
.foot-menu a:hover { opacity: 1; }
.foot-ch { display: flex; gap: 10px; }
.foot-ch .ch-ico { background: var(--paper); color: var(--ink); transition: transform .3s; }
.foot-ch a:hover .ch-ico { transform: translateY(-2px); }
.foot-copy { font-size: 12px; opacity: .5; }

/* ---------- small numbers that count up ---------- */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.stat { display: grid; gap: 4px; padding: 16px 14px; min-width: 0; border-radius: 14px; background: rgba(255, 255, 255, .38); }
.stat b { font-family: var(--head); font-weight: 300; font-size: clamp(34px, 9vw, 52px); line-height: 1; letter-spacing: -.03em; }
.stat > span { font-size: 13px; color: var(--soft); }
.count { font-variant-numeric: tabular-nums; }

/* ---------- the book: flip through the first pages ---------- */
.leaf { display: grid; gap: 16px; }
.leaf-strip { display: flex; gap: 18px; overflow-x: auto; cursor: grab; user-select: none; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 6px 2px 26px; scrollbar-width: none; overscroll-behavior-x: contain; }
.leaf-strip::-webkit-scrollbar { display: none; }
.leaf-strip.drag { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.leaf-strip.drag .page { transform: none; }
.leaf-strip:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }
.page { flex: 0 0 min(78%, 340px); scroll-snap-align: start; border-radius: 4px 10px 10px 4px; overflow: hidden; background: #fff; box-shadow: 0 1px 0 rgba(17, 17, 16, .06), 0 24px 40px -22px rgba(40, 34, 24, .45), inset 6px 0 10px -6px rgba(0, 0, 0, .25); transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.page img { width: 100%; height: auto; }
.page:hover { transform: translateY(-4px) rotate(-.4deg); }
.leaf-count { font-size: 13px; letter-spacing: .1em; color: var(--soft); font-variant-numeric: tabular-nums; }

/* ---------- the signature writes itself, left to right ---------- */
.sign.reveal { opacity: 1; transform: none; clip-path: inset(-30% 100% -30% -5%); transition: clip-path 1.9s cubic-bezier(.55, .1, .3, 1) .2s; }
.sign.reveal.on { clip-path: inset(-30% -5% -30% -5%); }

/* ---------- AI example: the answer is "typed" first ---------- */
.dialog p.q { background: rgba(255, 255, 255, .85); }
/* a picture for a block: an object on its own patch of background, edges melt into the sheet */
.blok-pic { width: min(78%, 340px); justify-self: center; }
.blok-pic img { width: 100%; height: auto; }
/* the book quote: plain words up by the book, under the menu */
.hero-quote { position: relative; z-index: 4; max-width: 34ch; margin: 0 var(--pad) 30px; }
.hero-quote p, .hero-quote p.a { justify-self: start; max-width: none; padding: 0; border-radius: 0; background: none; color: rgba(17, 17, 16, .78); font-family: var(--head); font-size: 17px; line-height: 1.45; }
.vs .big-body { font-family: var(--head); font-size: 20px; line-height: 1.55; color: rgba(17, 17, 16, .82); }
.dialog.js p { opacity: 0; transform: translateY(8px); transition: opacity .5s ease, transform .5s cubic-bezier(.2, .7, .2, 1); transition-delay: 0s !important; }
.dialog.js p.show, .dialog.js p.typing { opacity: 1; transform: none; }
.dialog.js p.typing { position: relative; color: transparent; }
.dialog.js p.typing::after { content: ""; position: absolute; left: 16px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--soft); box-shadow: 12px 0 0 var(--soft), 24px 0 0 var(--soft); animation: dots 1s ease-in-out infinite; }
@keyframes dots { 50% { opacity: .3; } }

/* ---------- entrance: text rises, titles spell themselves letter by letter, objects come out of the mist ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 1.1s ease, transform 1.1s cubic-bezier(.2, .7, .2, 1); }
.reveal.on { opacity: 1; transform: none; }
.spell.reveal { opacity: 1; transform: none; }
.spell .w { display: inline-block; white-space: nowrap; }
.spell .ch { display: inline-block; opacity: 0; transform: translateY(.35em); filter: blur(6px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1), filter .7s ease; transition-delay: calc(var(--i) * 26ms); }
.spell.on .ch { opacity: 1; transform: none; filter: none; }
.art.reveal { transform: scale(1.04); filter: blur(16px); transition: opacity 1.8s ease, transform 2.2s cubic-bezier(.2, .7, .2, 1), filter 2s ease; }
.art.reveal.on { transform: none; filter: none; }

/* ---------- phone: nothing lies on top of anything ---------- */
@media (max-width: 899px) {
  .text { order: 0; }
  .art { order: 2; }
  .ghost { position: absolute; top: var(--gy, 0) !important; left: var(--gx, 0) !important; right: auto; bottom: auto; line-height: 1; color: rgba(17, 17, 16, .075); }
  /* the pale word is pressed into the sheet's top-left corner; the cover and "about" go without it */
  .project .text, .book .text, .ai .text, .sites .text, .contact .text { padding-top: 92px; }
  .hero .ghost, .about .ghost { display: none; }
  .contact .channels { order: 3; }
  /* the first sheet of an inner page sits under the header: its pale word starts just below it */
  #hero.card .ghost { top: calc(var(--gy, 0px) + 64px) !important; }
  #hero.card[data-ghost] .text { padding-top: 132px; }
  /* doors: the name on top across the full width, the picture lower right, never under the words */
  .door { min-height: 540px; }
  .door .door-text { max-width: none; }
  .door .door-img { height: 76%; }
  .door .door-img.browsers { height: 58%; width: 78%; }
  /* the home book door carries a quote: on a phone the book stands below the words instead of under them */
  .door-grid.two .book .go { order: 2; }
  .door-grid.two .book .door-img { position: relative; order: 3; height: 320px !important; justify-self: end; margin: -6px -22px -22px 0; }
}

/* ---------- computer ---------- */
@media (min-width: 900px) {
  :root { --gap: 12px; --pad: clamp(40px, 5vw, 80px); }
  body { font-size: 16px; }
  .menu { display: flex; align-items: center; gap: 34px; }
  .menu-btn { display: none; }
  .dd-panel { position: absolute; top: calc(100% + 14px); left: -18px; min-width: 220px; padding: 8px; border-radius: 16px; border: 1px solid var(--line); background: rgba(240, 238, 233, .96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 0 0 1px rgba(17, 17, 16, .07), 0 26px 46px -20px rgba(40, 34, 24, .4); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .25s, transform .25s, visibility .25s; }
  /* a bridge so the panel does not close while the cursor travels down to it */
  .dd-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
  .dd-right .dd-panel { left: auto; right: -18px; min-width: 200px; }
  .dd.open .dd-panel { opacity: 1; visibility: visible; transform: none; }
  .dd:not(.dd-right) .dd-panel { min-width: 360px; padding: 10px; }
  /* the items slide in one after another */
  .dd-panel a { opacity: 0; transform: translateY(6px); transition: opacity .35s ease, transform .45s cubic-bezier(.2, .7, .2, 1), background .25s; }
  .dd.open .dd-panel a { opacity: 1; transform: none; }
  .dd.open .dd-panel a:nth-child(2) { transition-delay: .05s, .05s, 0s; }
  .dd.open .dd-panel a:nth-child(3) { transition-delay: .1s, .1s, 0s; }
  .dd.open .dd-panel a:nth-child(4) { transition-delay: .15s, .15s, 0s; }
  .top-in { height: 76px; }
  .card { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: 1fr auto; min-height: calc(100svh - 2 * var(--gap)); }
  .text { grid-column: 1; grid-row: 1; padding: 120px 0 40px var(--pad); }
  .art { grid-column: 2; grid-row: 1 / -1; align-self: stretch; }
  .obj { position: absolute; right: 0; bottom: 0; width: auto; height: 100%; }
  .obj img { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22%); mask-image: linear-gradient(to right, transparent 0, #000 22%); }
  .hero .obj { height: 92%; right: 4%; }
  /* he stands at the very edge of the sheet, as if leaning on it */
  .about .obj { height: 96%; }
  .about .body { font-size: 19px; max-width: 54ch; }
  .creds li { font-size: 18px; }
  .about .lead { font-size: 20px; }
  h1 { font-size: clamp(56px, 5.6vw, 96px); }
  h2, .big { font-size: clamp(44px, 4.6vw, 78px); }
  .name { font-size: clamp(26px, 2.5vw, 42px); }
  .hero-title { font-size: clamp(36px, 3.4vw, 58px); }
  /* the label sits high, right under the name in the header */
  #hero .kick-top { position: absolute; top: 112px; left: var(--pad); }
  /* blocks with a picture: the title across the top, then the picture and the words side by side, level */
  .card.sheet.has-pic:has(> h2:first-child) > h2 { grid-column: 1 / -1; grid-row: 1; margin-bottom: 44px; }
  .card.sheet.has-pic:has(> h2:first-child) > .blok-pic { grid-column: 1; grid-row: 2 / span 11; align-self: start; justify-self: center; width: min(100%, 400px); margin-top: -20px; }
  .card.sheet.has-pic:has(> h2:first-child) > * + * { margin-top: 0; }
  .card.sheet.has-pic:has(> h2:first-child) > .blok-pic ~ * + * { margin-top: 32px; }
  .kick-top { font-size: 22px; }
  .card.vs .big-body { font-size: clamp(23px, 2vw, 30px); line-height: 1.45; max-width: 32ch; }
  .hero-quote { position: absolute; top: 132px; right: 34%; width: 320px; margin: 0; }
}
@media (min-width: 900px) and (max-width: 1279px) {
  /* mid screens: no room up by the book, the quote sits under the words */
  .hero-quote { position: relative; top: auto; left: auto; right: auto; grid-column: 1; grid-row: 2; width: auto; margin: 0 0 40px var(--pad); }
}
@media (min-width: 900px) {
  .lead { font-size: 16px; }
  /* the book stands a little lower so its top is not cut, and its top edge melts into the sheet too */
  .book .obj { height: 94%; }
  .book .obj img { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22%), linear-gradient(to bottom, transparent 0, #000 10%); mask-image: linear-gradient(to right, transparent 0, #000 22%), linear-gradient(to bottom, transparent 0, #000 10%); -webkit-mask-composite: source-in; mask-composite: intersect; }
  .contact { display: grid; grid-template-columns: 1fr; grid-template-rows: auto; align-content: center; }
  .contact .text { grid-column: 1; padding: 130px var(--pad) 0; }
  .contact .art { grid-column: 1; grid-row: auto; width: min(26vw, 380px); margin: 24px auto 44px; }
  .contact .obj { position: relative; width: 100%; height: auto; }
  .channels { grid-template-columns: 1fr 1fr; column-gap: 48px; }
  .ghost { font-size: 16vw; }
  .doors { padding: 130px var(--pad) var(--pad); gap: 34px; }
  .door-grid { grid-template-columns: 1fr 1fr; }
  .door-grid.three { grid-template-columns: repeat(3, 1fr); }
  /* "my projects" page: tall doors, words on top across the width, the picture below them */
  .projects-page { min-height: calc(100svh - 2 * var(--gap)); align-content: center; }
  .projects-page .door { min-height: min(88svh, 860px); }
  .projects-page .door .door-text { max-width: none; }
  .projects-page .door .door-img { height: 92%; }
  .projects-page .door .door-img.browsers { height: 58%; width: 80%; }
  .door-grid.two .door { min-height: min(68svh, 640px); padding: 40px; }
  .door-grid.two .door .door-name { font-size: clamp(26px, 2.4vw, 42px); }
  .door-grid.two .door .door-text { max-width: 46%; }
  .door-grid.two .projects .door-text { max-width: 42%; }
  .door-grid.two .book .door-text { max-width: 54%; }
  .door-grid.two .book .door-line { max-width: 27ch; }
  /* "more" doors: half as tall again, so their pictures grow by half */
  .door-grid.three .door { min-height: min(72svh, 640px); }
  .door-grid.three .door .door-text { max-width: 70%; }
  .door-grid.three .door .door-name { font-size: clamp(18px, 1.55vw, 26px); }
  .door { min-height: min(46svh, 440px); padding: 32px; }
  .door .door-name { font-size: clamp(28px, 2.6vw, 40px); }
  .sheet { padding: 110px var(--pad); gap: 40px; }
  .sheet .big-body { font-size: 18px; }
  .facts { grid-template-columns: 1fr 1fr; column-gap: 48px; }
  .works { grid-template-columns: 1fr 1fr; }
  .card.sheet, .card.doors { min-height: 0; grid-template-columns: 1fr; grid-template-rows: auto; }
  /* inner sheets read like a magazine: the title stays on the left, the content flows on the right */
  .card.sheet:has(> h2:first-child) { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); column-gap: clamp(40px, 5vw, 96px); row-gap: 0; align-items: start; }
  .card.sheet:has(> h2:first-child) > * { grid-column: 2; }
  .card.sheet:has(> h2:first-child) > * + * { margin-top: 32px; }
  .card.sheet:has(> h2:first-child) > h2 + * { margin-top: 0; }
  .card.sheet:has(> h2:first-child) > h2 { grid-column: 1; grid-row: 1 / span 12; font-size: clamp(36px, 3.4vw, 60px); }
  .card.sheet.inside { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(40px, 5vw, 96px); align-items: start; }
  .inside .page { flex-basis: 74%; }
  .steps li { grid-template-columns: 84px minmax(0, 1fr); padding: 30px 0; }
  .steps li::before { font-size: 58px; }
  .steps.compact li { grid-template-columns: 52px minmax(0, 1fr); padding: 16px 0; }
  .steps.compact li::before { font-size: 34px; }
  .door-grid.two .book .door-quote { max-width: 100%; font-size: 17px; }
  .stat b { font-size: clamp(40px, 3.6vw, 60px); }
  .page { flex-basis: calc((100% - 36px) / 2.4); }
  .foot-in { grid-template-columns: auto 1fr auto; align-items: center; column-gap: 48px; padding: 44px var(--pad); }
  .foot-menu { justify-content: center; }
  .foot-copy { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .art.reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .spell .ch { opacity: 1; transform: none; filter: none; transition: none; }
  .live .obj img, .live .obj .browsers, .spark, .status i { animation: none; }
  .dialog p { opacity: 1; transform: none; transition: none; }
  .dialog.js p, .dialog.js p.typing { opacity: 1; transform: none; color: inherit; }
  .dialog.js p.typing::after { display: none; }
  .sign.reveal { clip-path: none; transition: none; }
  .page, .leaf-strip { transition: none; scroll-behavior: auto; }
  .dd-panel a { opacity: 1; transform: none; transition: none; }
  .obj, .door, .door .door-img, .door .go i { transition: none; }
}
