/* Bruno Argenta: one page. White, Inter, and a landscape written in text at the top (ascii.js). */

@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #FFFFFF;
  --ink: #111111;      /* the name, hover states */
  --text: #333333;     /* running text */
  --meta: #757575;     /* dates, labels, the clock: 4.6:1 on white, enough for 13 px text */
  --line: #ECECEC;     /* dividers */
  --card: #F0F0F0;     /* the photo's background while it loads */
  --dots: #BDBDBD;     /* dotted underlines at rest */
  /* the four tones of the arts (ascii.js, TONES), light to dark; main.js sets them from the palette in use */
  --tone-1: #D1D5DA; --tone-2: #A9B2BB; --tone-3: #7A8896; --tone-4: #2E4256;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --col: 520px;        /* the column: photo, text, list (narrow, like the reference) */
  --gutter: 20px;
  --hero-h: 180px;     /* the band of text art at rest */
  --avatar: 112px;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-in: cubic-bezier(.4, 0, 1, 1);
  --ease-in-out: cubic-bezier(.45, .05, .2, 1);
  --ease-rise: cubic-bezier(.7, 0, .2, 1); /* the white rising: slow start, settles softly */
}
@media (min-width: 640px) { :root { --gutter: 32px; --avatar: 136px; --hero-h: 200px; } }

/* the scrollbar's room is always kept, on both sides, so nothing moves sideways when it comes and goes (a page change
   makes the page taller for a moment, and the band grows past the fold) and the column stays in the window's middle */
html { background: var(--bg); scrollbar-gutter: stable both-edges; }
html.intro { overflow: hidden; scrollbar-gutter: auto; } /* while the landscape plays, nothing scrolls (and it fills the window edge to edge) */
/* Small type and tight spacing, like the references (benji.org 14/20, tutundzhian.com 15/22, shwn.design 15) */
body { margin: 0; background: var(--bg); color: var(--text); font: 400 14px/20px 'Inter', system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; }
.col { width: min(100% - 2 * var(--gutter), var(--col)); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
p { text-wrap: pretty; }

/* ---- The hero: the landscape, then only the sky ----
   At rest it is the sky band, as wide as the column. While the intro plays it fills the screen; main.js then shrinks
   it (inline width and height) until the white has risen over the forest and the mountains. The bottom of the text
   always fades into the page. */
.hero { position: relative; width: min(100% - 2 * var(--gutter), var(--col)); height: var(--hero-h); margin: 0 auto; overflow: hidden; }
/* the box holds the canvas; ascii-hero.js sizes and places it (centred, the whole picture, during the intro) */
.sky-box { position: absolute; left: 0; top: 0; width: 100%; }
.sky-off { position: absolute; left: 0; top: 0; visibility: hidden; pointer-events: none; } /* the two hidden drawings a page change is made from */
/* Night: the easter egg behind the lamp in the Work art (main.js). The same tokens, in the dark. */
html.night { --bg: #0c1219; --ink: #f2f6f9; --text: #cfd9e2; --meta: #8a98a6; --line: #1f2a34; --card: #16202a; --dots: #3d4b58; }
html.night, html.night body { transition: background-color 600ms ease, color 600ms ease; }
html.intro .hero { width: 100%; height: 100svh; }
/* The intro's rise (main.js, startRise): the picture stands still and three curtains of paper close over it, one
   rising from below with the band's fade on its edge, two coming in from the sides, while Home rises into place
   (.page.in below); transforms and opacity only, all with the same length and curve, so the compositor runs them in
   step. main.js sets --rise (how far the white rises) and --side (how far each side comes in). */
:root { --rise-ms: 1100ms; --ease-rise-io: cubic-bezier(.65, 0, .35, 1); }
.hero-veil { display: none; }
html.intro .hero-veil { display: block; position: absolute; inset: 0; pointer-events: none; } /* (no z-index: over the picture by order, under Home rising after it) */
.hero-veil i { position: absolute; background: var(--bg); }
.veil-b { left: 0; right: 0; top: 100%; height: 100%; }
.veil-b::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 90px; background: linear-gradient(rgba(255, 255, 255, 0), #fff); opacity: 0; }
html.night .veil-b::before { background: linear-gradient(rgba(12, 18, 25, 0), #0c1219); }
.veil-l { top: 0; bottom: 0; right: 100%; width: 50%; }
.veil-r { top: 0; bottom: 0; left: 100%; width: 50%; }
html.intro .hero-veil i, html.intro .veil-b::before, html.intro #page-home { will-change: transform, opacity; } /* (their layers ready from the start: none made in the rise's first frame) */
.hero.rising .hero-veil i, .hero.rising .veil-b::before { transition: transform var(--rise-ms) var(--ease-rise-io), opacity var(--rise-ms) var(--ease-rise-io); }
.hero.rising .veil-b { transform: translateY(calc(-1 * var(--rise, 0px))); }
.hero.rising .veil-b::before { opacity: 1; }
.hero.rising .veil-l { transform: translateX(var(--side, 0px)); }
.hero.rising .veil-r { transform: translateX(calc(-1 * var(--side, 0px))); }
/* (the fade at the bottom is painted inside the drawing, ascii.js FADE_PX: Safari on the iPad ignored a CSS mask here) */
.sky { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }

/* ---- The pages ----
   One at a time (the others are hidden). During the intro, Home waits below, out of focus, and rises into place with
   the white (main.js adds .in). Changing page: the old one goes out of focus (.out) while the art grows over it; the
   new one starts out of focus (.pre) and comes into place (.in) while the white rises. */
.page { position: relative; padding-bottom: 260px; } /* room for the dock and its sub-dock */
.page[hidden] { display: none; }
html.intro .page:not(.in), .page.pre { opacity: 0; transform: translateY(32px); filter: blur(8px); }
.page.in { opacity: 1; transform: none; filter: blur(0); transition: opacity 700ms var(--ease-out) 200ms, transform 900ms var(--ease-out) 150ms, filter 700ms var(--ease-out) 200ms; }
/* in the intro, Home rises with the white: from below the screen to its place, in step with the curtain */
html.intro .page.in { transform: translateY(calc(-1 * var(--rise, 0px))); transition: transform var(--rise-ms) var(--ease-rise-io), opacity 700ms var(--ease-out) 200ms, filter 700ms var(--ease-out) 200ms; }
.page.out { opacity: 0; transform: translateY(16px); filter: blur(6px); transition: opacity 350ms var(--ease-in), transform 350ms var(--ease-in), filter 350ms var(--ease-in); }
.avatar { display: block; width: var(--avatar); height: var(--avatar); margin-top: calc(-0.45 * var(--avatar)); border-radius: 16px; object-fit: cover; background: var(--card); }
.name { margin: 20px 0 0; font-size: inherit; font-weight: 500; line-height: inherit; color: var(--ink); }
.meta { color: var(--meta); font-size: 13px; }
.updated { margin: 0; }
.bio { margin-top: 24px; }
.bio p { margin: 0 0 .85em; }
.bio p:last-child { margin-bottom: 0; }
.bio strong { font-weight: 500; color: var(--ink); }

/* Links and "Let's talk": a dotted line at rest, a solid one under the mouse */
a { color: inherit; text-decoration: underline dotted var(--dots); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: text-decoration-color 150ms ease; }
.talk { margin: 0; padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; text-decoration: underline dotted var(--dots); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: text-decoration-color 150ms ease; }
@media (hover: hover) { a:hover, .talk:hover { text-decoration-color: var(--ink); text-decoration-style: solid; } }
.talk[aria-expanded="true"] { text-decoration-color: var(--ink); text-decoration-style: solid; }
.talk-line { margin: 48px 0 0; } /* "Let's talk" alone, well below the text: set apart by its place, not by its look (Bruno, 27/10/2026) */
a:focus-visible, .talk:focus-visible, .dot:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
.row-main a[target="_blank"]::after, .bio a[target="_blank"]::after { content: " ↗"; color: var(--meta); font-size: .85em; } /* opens somewhere else */

/* Lists: a label on the left (a year, a place; only when it changes), the main text, something small on the right */
.list { margin-top: 32px; }
.list h2 { margin: 0 0 6px; font: inherit; font-size: 13px; color: var(--meta); }
.rows { list-style: none; margin: 0; padding: 0; }
.row { display: grid; grid-template-columns: 88px 1fr; column-gap: 16px; }
.row-label { padding: 8px 0; color: var(--meta); }
.row-main { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.row:first-child .row-main { border-top: 1px solid var(--line); }
.row-side { flex: none; color: var(--meta); }

/* The Work's lock (lock.js): an animated OTP. Four paper boxes, a hairline in the lightest tone of the arts, the
   digits in the darkest (the jacket's navy); the box to fill next rings in navy with a blinking caret (Bruno,
   28/10/2026: this look, after trying one with the arts' page of text in the boxes and the card's tone chips). A digit comes
   in rising out of a blur through three signs (lock.js); right, the boxes hop and fill one after another and the lock
   leaves like a page (.leave, as .page.out) with the list rising (.rise-pre → .rise-in, as .page.pre → .in); wrong,
   the row shakes. One real input lies over the boxes, invisible (16 px, so iOS does not zoom in on it). */
#page-work.locked > section:not(.lock-gate) { display: none !important; }
#page-work:not(.locked) > .lock-gate { display: none; }
.lock-text { margin: 0; }
.otp { --otp-ink: var(--tone-4); --otp-line: var(--tone-1); --otp-on: var(--tone-2); --otp-ring: var(--tone-4); --otp-glow: color-mix(in srgb, var(--tone-4) 12%, transparent); --otp-fill: color-mix(in srgb, var(--tone-1) 28%, #FFFFFF);
  position: relative; display: inline-block; margin-top: 20px; }
html.night .otp { --otp-ink: var(--ink); --otp-line: var(--dots); --otp-on: var(--meta); --otp-ring: var(--ink); --otp-glow: color-mix(in srgb, var(--ink) 14%, transparent); --otp-fill: var(--card); }
.otp-input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; background: none; opacity: 0; color: transparent; caret-color: transparent; font-size: 16px; cursor: text; }
.otp-input:disabled { cursor: default; }
.otp-boxes { display: flex; gap: 10px; }
.otp-box { position: relative; display: grid; place-items: center; width: 52px; height: 60px; border-radius: 14px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--otp-line), 0 1px 2px rgba(0, 0, 0, .04); transition: box-shadow 200ms ease, background-color 200ms ease; }
.otp-box.filled { box-shadow: inset 0 0 0 1px var(--otp-on), 0 1px 2px rgba(0, 0, 0, .04); }
.otp:focus-within .otp-box.active { box-shadow: inset 0 0 0 1.5px var(--otp-ring), 0 0 0 4px var(--otp-glow); }
.otp-box::after { content: ""; position: absolute; left: 50%; top: 50%; width: 1.5px; height: 22px; margin: -11px 0 0 -.75px; border-radius: 1px; background: var(--otp-ink); opacity: 0; }
.otp:focus-within .otp-box.active::after { opacity: 1; animation: otp-caret 1.1s steps(1) infinite; }
.otp-char { font: 500 22px/1 var(--mono); color: var(--otp-ink); }
.otp-char.sign { color: var(--meta); }
.otp-char.in { animation: otp-in 300ms var(--ease-out) both; }
.otp-char.out { animation: otp-out 170ms var(--ease-in) both; }
.otp.ok .otp-box { animation: otp-ok 560ms var(--ease-out) both; animation-delay: calc(var(--i) * 70ms); }
.otp.no .otp-boxes { animation: otp-shake 380ms cubic-bezier(.36, .07, .19, .97) both; }
@keyframes otp-caret { 50% { opacity: 0; } }
@keyframes otp-in { from { opacity: 0; transform: translateY(40%) scale(.92); filter: blur(3px); } }
@keyframes otp-out { to { opacity: 0; transform: translateY(-35%) scale(.96); filter: blur(2px); } }
@keyframes otp-ok {
  35% { transform: translateY(-5px); box-shadow: inset 0 0 0 1.5px var(--otp-ring), 0 8px 16px -8px rgba(20, 30, 40, .25); }
  100% { transform: none; background: var(--otp-fill); box-shadow: inset 0 0 0 1.5px var(--otp-ring), 0 1px 2px rgba(0, 0, 0, .04); }
}
@keyframes otp-shake { 15% { transform: translateX(-6px); } 35% { transform: translateX(5px); } 55% { transform: translateX(-3px); } 75% { transform: translateX(2px); } }
.otp-status { min-height: 20px; margin: 10px 0 0; }
.lock-gate { transition: opacity 350ms var(--ease-in), transform 350ms var(--ease-in), filter 350ms var(--ease-in); }
.lock-gate.leave { opacity: 0; transform: translateY(16px); filter: blur(6px); }
.view-rows.rise-pre { opacity: 0; transform: translateY(32px); filter: blur(8px); }
.view-rows.rise-in { transition: opacity 600ms var(--ease-out), transform 800ms var(--ease-out), filter 600ms var(--ease-out); }
/* "Request access" is a link like the others (a dotted line, solid under the mouse), alone in .talk-line below, like
   "Let's talk" (Bruno, 28/10/2026); it opens an email with the subject written */
@media (prefers-reduced-motion: reduce) { .otp-char.in, .otp-char.out, .otp.ok .otp-box, .otp.no .otp-boxes { animation: none; } .lock-gate, .view-rows.rise-in { transition: none; } }
@media (max-width: 479px) { .row { grid-template-columns: 56px 1fr; } .row-side { display: none; } }
/* About: the timeline. A row is the place, one sentence and, under it, the names of that time (small, grey) */
.timeline { margin-top: 16px; }
.timeline .row-main { flex-direction: column; gap: 2px; }
.bio.after { margin-top: 20px; }

.reel-wrap { margin-top: 24px; }
.reel { display: flex; gap: 16px; margin: 0; padding: 0 calc(100% - min(100%, 400px)) 4px 0; list-style: none; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.reel:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 4px; }
.reel::-webkit-scrollbar { display: none; }
.card { flex: 0 0 min(100%, 400px); }
/* a cover floating by the pointer, over a row of the list */
.peek { position: fixed; left: 0; top: 0; z-index: 30; width: 200px; border-radius: 10px; overflow: hidden; background: var(--card); box-shadow: 0 0 0 1px var(--line), 0 16px 32px -12px rgba(0, 0, 0, .25); opacity: 0; scale: .96; pointer-events: none; transition: opacity 180ms ease, scale 220ms var(--ease-out); }
.peek.on { opacity: 1; scale: 1; }
.peek img { display: block; width: 100%; height: auto; }
.card-link { display: block; color: inherit; text-decoration: none; }
.cover { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 12px; background: var(--card); overflow: hidden; }
.cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cover-name { color: var(--meta); }
.caption { display: flex; justify-content: space-between; gap: 16px; padding-top: 8px; }
a.card-link .caption > span:first-child { text-decoration: underline dotted var(--dots); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: text-decoration-color 150ms ease; }
@media (hover: hover) { a.card-link:hover .caption > span:first-child { text-decoration-color: var(--ink); text-decoration-style: solid; } }

/* About: the polaroid (a white frame, the wide strip at the bottom, a little crooked), behaving as on the previous
   site: at rest the photo is a hair softer, like a print on a shelf; under the mouse it lifts 6 px, straightens,
   tilts a little towards the pointer (main.js sets --rx/--ry, up to 3 degrees) and develops to full colour in 500 ms;
   a tap (phone, .on, 2.5 s) or keyboard focus lifts and develops it without the tilt. The figure is only the area
   the mouse reads, and it never moves: the card inside (.pcard) is what tilts and lifts. (If the figure itself
   moved, its edge would slip out from under the pointer, lose the hover, fall back, and shiver.)
   Nothing here repaints while it moves, so the start of the hover does not hitch in Safari: the card is composited
   from the start (a 3D transform at rest), the photo's filter stays on its own layer (will-change) and goes between
   two explicit filter lists, the two shadows are static pseudo-elements that cross-fade by opacity, and no z-index
   changes on hover (a new stacking context would rebuild the layer tree at that instant).
   It meets the art exactly as the Home's headshot does: the same overlap of the fade. */
.polaroid { --rx: 0deg; --ry: 0deg; position: relative; width: 220px; margin: calc(-0.45 * var(--avatar)) 0 0; cursor: default; } /* (the card's outer width: a 200 px photo in a 10 px frame; 220 in the frame from 640 px up) */
.pcard { position: relative; padding: 10px 10px 40px; background: #FFFFFF; box-shadow: 0 0 0 1px rgba(0, 0, 0, .05);
  transform: perspective(900px) rotateX(0deg) rotateY(0deg) translateY(0) scale(1) rotate(-2.5deg); will-change: transform;
  transition: transform 300ms var(--ease-out); }
.pcard::before, .pcard::after { content: ""; position: absolute; inset: 0; z-index: -1; will-change: opacity; transition: opacity 300ms ease; } /* (will-change: their layers exist from the start, so none is made at the instant the hover begins) */
.pcard::before { box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 10px 24px -10px rgba(0, 0, 0, .22); }                /* resting on the page */
.pcard::after { box-shadow: 0 2px 4px rgba(0, 0, 0, .06), 0 24px 44px -16px rgba(0, 0, 0, .32); opacity: 0; }     /* lifted */
.pcard img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; background: var(--card); filter: saturate(.88) contrast(.97); will-change: filter; transition: filter 600ms ease; }
@media (hover: hover) and (pointer: fine) {
  .polaroid:hover .pcard { transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(-6px) scale(1.03) rotate(0deg); transition-duration: 200ms; }
  .polaroid:hover .pcard::before { opacity: 0; }
  .polaroid:hover .pcard::after { opacity: 1; }
  .polaroid:hover img { filter: saturate(1) contrast(1); transition-duration: 500ms; }
}
.polaroid.on .pcard, .polaroid:focus-visible .pcard { transform: perspective(900px) rotateX(0deg) rotateY(0deg) translateY(-6px) scale(1.03) rotate(0deg); }
.polaroid.on .pcard::before, .polaroid:focus-visible .pcard::before { opacity: 0; }
.polaroid.on .pcard::after, .polaroid:focus-visible .pcard::after { opacity: 1; }
.polaroid.on img, .polaroid:focus-visible img { filter: saturate(1) contrast(1); transition-duration: 500ms; }
.polaroid:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
@media (pointer: coarse) { .polaroid { -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; } }
@media (min-width: 640px) { .polaroid { width: 240px; } }

.foot { margin-top: 40px; }
.foot::before { content: ""; display: block; width: 48px; height: 1px; margin-bottom: 24px; background: var(--line); }
.foot p { margin: 0; }
.foot .more { margin-top: 4px; } /* the second line: the © */
/* The butterfly: three characters, resting just above the end of "Switzerland". Under the mouse (or a tap) it flies to
   the art at the top, flapping, shrinking to the art's size and taking its colour, and lands among the characters
   (ascii.js keeps drawing it there, with a flap now and then). butterfly.js. */
.perch { position: relative; display: inline-block; width: 0; height: 1em; vertical-align: baseline; }
.butterfly { position: absolute; left: 2px; bottom: 1.05em; margin: 0; padding: 0; border: 0; background: none; font: 11px/1 var(--mono); color: var(--text); white-space: pre; cursor: pointer; transform: rotate(-12deg); transform-origin: 50% 100%; transition: color 1.6s ease; -webkit-tap-highlight-color: transparent; }
.butterfly:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 3px; }
.bio .butterfly { left: 7px; bottom: .1em; } /* on the Home it sits after the full stop, on the line, not above it: above, it landed on the line before when the sentence wrapped (phone) */
/* resting midway (About: on the end of the "Zurich" line), placed on the page with left and top; the next pass of the mouse sends it on */
.butterfly.resting { position: absolute; right: auto; bottom: auto; width: auto; height: auto; line-height: 1; z-index: 45; color: var(--text); transform: rotate(-8deg); transform-origin: 50% 100%; }
.butterfly.flying { position: fixed; left: 0; top: 0; right: auto; bottom: auto; width: auto; height: auto; line-height: 1; z-index: 70; color: #2E4256; pointer-events: none; transform-origin: 0 0; transition: none; } /* (bottom: auto: a button with top and bottom stretches, and its text sits in the middle of the screen; over everything: it goes round the pictures instead, butterfly.js, dodge) */

/* The dock (dock.js): Home, Work and About near the bottom, high enough to stay clear of the Mac's own dock. One
   liquid shape: a grey body made of one blob per page, melted together by the goo filter (index.html); the active
   page is a big disc on a soft white one (a drop, moved by dock.js), the others small. Glass: a disc per page blurs
   what is under it, so text passing beneath goes soft but stays visible. Changing page, everything moves with a
   small overshoot. */
:root { --ease-goo: cubic-bezier(.3, 1.25, .45, 1); }
/* the dock's colours, from the art's tones (dock.js, tintDock): the body, the icons, the chosen one, a hover, a disabled arrow */
.dock { --dock-body: #E1E4E7; --dock-icon: #7A8896; --dock-on: #2E4256; --dock-hover: #546576; --dock-off: #A9B2BB; }
.dock-defs feFlood { flood-color: var(--dock-body); }
.dock-halo span { background: var(--dock-body); }
.dock { --a: 64px; position: fixed; left: calc(50% - var(--dock-w, 200px) / 2); bottom: 110px; z-index: 40; width: var(--dock-w, 200px); height: var(--dock-h, 130px); margin: 0; padding: 0; transition: opacity 600ms ease, width 620ms var(--ease-goo), left 620ms var(--ease-goo); } /* (width and left: the "inline" shape stretches) */
@media (max-width: 639px) { .dock { bottom: 28px; } } /* on the phone, close to Safari's address bar (Bruno, 26/10/2026) */
html.intro .dock { opacity: 0; pointer-events: none; }
.dock-defs { position: absolute; width: 0; height: 0; }
.dock-body { position: absolute; inset: 0; filter: url(#goo); opacity: .86; } /* (no drop-shadow here: a second blur in the filter chain cost WebKit a third of its frames; the shadow is .dock-shade) */
/* the body's shadow: a soft box-shadow per disc, under the body, moved with its disc; the sub-dock's come and go with theirs */
.dock-shade { position: absolute; inset: 0; pointer-events: none; }
.shade { position: absolute; left: 0; top: 0; width: var(--a); height: var(--a); border-radius: 50%; transform: translate(var(--x, 0), var(--y, 0)) scale(var(--s, 1)) translate(50%, 50%) scale(var(--hot, 1)) translate(-50%, -50%); transform-origin: 0 0; box-shadow: 0 8px 16px rgba(20, 30, 40, .085); transition: --hot 200ms ease; }
.shade.sub { width: 30px; height: 30px; opacity: 0; transition: --hot 200ms ease, opacity 300ms ease var(--d, 0ms); }
.shade.sub.on { opacity: 1; }
/* (no transitions on the discs' transforms and sizes: dock.js moves them frame by frame, with the ball and the
   halo, so nothing can come apart on a slow device; only the fades, the colours and the swell under the mouse transition) */
.blob { position: absolute; left: 0; top: 0; width: var(--a); height: var(--a); border-radius: 50%; background: var(--dock-body); transform: translate(var(--x, 0), var(--y, 0)) scale(var(--s, 1)) translate(50%, 50%) scale(var(--hot, 1)) translate(-50%, -50%); transform-origin: 0 0; transition: --hot 200ms ease; }
/* the sub-dock's discs: they bud out of the Work disc one after another (--d); the chosen one is bigger (--s) */
.blob.sub { width: 30px; height: 30px; }
/* the liquid: the white under the chosen page and under the chosen way of showing the projects, each on a grey halo
   (same grey as the body, so unseen) that keeps the body around the white; dock.js draws them, frame by frame */
.dock-white { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
/* the halo: plain HTML cut to the ball's shape with clip-path (a circle, or the capsule's path), so every browser's
   goo filter sees it (WebKit leaves an inline SVG out of the filter; the white stays SVG, drawn over the body) */
.dock-halo, .dock-halo .halo, .dock-halo span { position: absolute; inset: 0; }
.dock-halo span { clip-path: circle(0px at 0 0); }
.dock-glass { position: absolute; inset: 0; pointer-events: none; }
/* ?vidro (Bruno, 28/10/2026: "a base é do material do vidro, o vidro some, o ícone fica na base e a luz embaixo fica"):
   no grey body and no glass discs; the base is one piece of frosted glass in the discs' melted shape (dock.js draws
   it as a path, --glass-clip): a tint of the base's colour, the white light over it, the frost over both (it blurs
   the light and whatever passes behind the dock), a bright rim at the edge, and the icons on top */
.dock-tint, .dock-frost, .dock-rim { display: none; }
.dock.vidro .dock-tint, .dock.vidro .dock-frost { display: block; position: absolute; inset: -24px; clip-path: var(--glass-clip-pad, circle(0px at 0 0)); pointer-events: none; } /* (24 px wider all round: dock.js, GLASS_PAD) */
/* the same colours and finish as the dock on the site (Bruno, 28/10/2026: "as mesmas cores do menu que tá no ar, mais
   adaptado àquela estética"): the body's grey and the white light at the body's .86, the glass discs' frost (white
   .14, blur 12 px, saturate 1.4) and their rim (a fine white line and a soft highlight along the top) */
.dock.vidro .dock-tint { background: var(--dock-body); opacity: .86; }
.dock.vidro .dock-body { filter: none; opacity: .86; clip-path: var(--glass-clip, none); } /* (the light never shows past the glass) */
.dock.vidro .blob, .dock.vidro .dock-halo, .dock.vidro .dock-glass { display: none; }
.dock.vidro .dock-frost { -webkit-backdrop-filter: blur(12px) saturate(1.4); backdrop-filter: blur(12px) saturate(1.4); background: rgba(255, 255, 255, .14); }
.dock.vidro .dock-rim { display: block; position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.dock.vidro .dock-rim path { fill: #000; } /* (only its outline is used: the #rim filter draws the glass discs' rim from it) */
.dock-defs #rim feFlood.hi { flood-color: rgba(255, 255, 255, .6); }
.dock-defs #rim feFlood.top { flood-color: rgba(255, 255, 255, .7); }
@property --hot { syntax: '<number>'; inherits: false; initial-value: 1; } /* the disc's swell under the mouse, so it can ease on its own */
.glass { position: absolute; left: 0; top: 0; width: var(--a); height: var(--a); border-radius: 50%; transform: translate(var(--x, 0), var(--y, 0)) scale(var(--s, 1)) translate(50%, 50%) scale(var(--hot, 1)) translate(-50%, -50%); transform-origin: 0 0; background: rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(12px) saturate(1.4); backdrop-filter: blur(12px) saturate(1.4); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .75), inset 0 1px 1px rgba(255, 255, 255, .7), 0 1px 2px rgba(0, 0, 0, .04); transition: --hot 200ms ease; }
/* the sub-dock's glass: the same, smaller; it comes and goes with its disc */
.glass.sub { width: 30px; height: 30px; opacity: 0; transition: --hot 200ms ease, opacity 300ms ease var(--d, 0ms); }
.glass.sub.on { opacity: 1; }
.dock-items { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }
.item { position: absolute; left: 0; top: 0; width: var(--w, var(--a)); height: var(--w, var(--a)); transform: translate(var(--x, 0), var(--y, 0)); }
.dot { position: relative; display: grid; place-items: center; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--dock-icon); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: color 200ms ease; }
.dot::before { content: ""; position: absolute; inset: -4px; border-radius: 50%; }
.dot svg { display: block; width: 42%; height: 42%; fill: currentColor; }
.dot[aria-current="page"] { color: var(--dock-on); }
@media (hover: hover) { .dot:not([aria-current]):hover { color: var(--dock-hover); } }
/* the disc swells a little under the mouse, from its centre, the grey and its shadow with the glass: the glass alone
   grew from its corner past the grey under it (Bruno, 28/10/2026) */
.glass.hot, .blob.hot, .shade.hot { --hot: 1.08; }
.dot:focus-visible { outline-offset: 2px; border-radius: 50%; }
/* its name, above it, under the mouse or with the keyboard */
.dot::after { content: attr(aria-label); position: absolute; left: 50%; bottom: calc(100% + 10px); padding: 3px 9px; border-radius: 6px; background: #FFFFFF; box-shadow: 0 0 0 1px var(--line), 0 4px 12px -4px rgba(0, 0, 0, .15); color: var(--text); font-size: 13px; line-height: 1.4; white-space: nowrap; opacity: 0; transform: translate(-50%, 4px); pointer-events: none; transition: opacity 150ms ease, transform 150ms var(--ease-out); }
@media (hover: hover) { .dot:hover::after { opacity: 1; transform: translate(-50%, 0); } }
.dot:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
.dock.sub-open .dot[data-page="work"]::after { display: none; } /* with the sub-dock open, the label would sit on it */
/* the sub-dock's buttons, over their discs */
.dock-sub { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; pointer-events: none; }
.subitem { position: absolute; left: 0; top: 0; display: grid; place-items: center; width: var(--w, 30px); height: var(--w, 30px); margin: 0; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--dock-icon); cursor: pointer; pointer-events: auto; opacity: 0; transform: translate(var(--x, 0), var(--y, 0)) scale(var(--s, 1)); transform-origin: 0 0; transition: opacity 300ms ease var(--d, 0ms), color 200ms ease; -webkit-tap-highlight-color: transparent; }
.subitem[hidden] { display: grid; opacity: 0; pointer-events: none; }
.dock.sub-open .subitem:not([hidden]) { opacity: 1; }
.subitem svg { display: block; width: 47%; height: 47%; }
.subitem[aria-pressed="true"] { color: var(--dock-on); }
.subitem:disabled { color: var(--dock-off); cursor: default; }
@media (hover: hover) { .subitem:not(:disabled):not([aria-pressed="true"]):hover { color: var(--dock-hover); } }
.subitem::after { content: attr(aria-label); position: absolute; left: 50%; bottom: calc(100% + 10px); padding: 3px 9px; border-radius: 6px; background: #FFFFFF; box-shadow: 0 0 0 1px var(--line), 0 4px 12px -4px rgba(0, 0, 0, .15); color: var(--text); font-size: 13px; line-height: 1.4; white-space: nowrap; opacity: 0; transform: translate(-50%, 4px); pointer-events: none; transition: opacity 150ms ease, transform 150ms var(--ease-out); }
@media (hover: hover) { .subitem:not(:disabled):hover::after { opacity: 1; transform: translate(-50%, 0); } }
.subitem:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.subitem:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }

/* Touch screens: "Let's talk" gets a 44 px tall area to tap, no grey flash from the phone */
@media (pointer: coarse) {
  .talk { position: relative; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
  .dot, .subitem { touch-action: manipulation; }
  .talk::after { content: ""; position: absolute; left: -4px; right: -4px; top: 50%; height: 44px; transform: translateY(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  html.intro .page:not(.in), .page.pre, .page.in, .page.out { opacity: 1; transform: none; filter: none; transition: none; }
  .dock, .dot, .dot::after, .blob, .glass, .item, .butterfly, .subitem, .subitem::after, .peek, .pcard, .pcard::before, .pcard::after { transition: none; }
  .pcard img { filter: none; will-change: auto; transition: none; } /* the photo simply shows, in full colour */
}

/* ============ "Let's talk": the contact card (contact.js) ============
   A fixed layer over the page: the veil blurs everything except the word; the card comes out of the word, already
   turning to its back (email and LinkedIn). White paper, a hairline edge, a soft shadow: the site's own look.
   The card is paper, so it keeps its own colours (--paper-*) whatever the light: in the night (html.night) the page's
   tokens turn light, which made the name and the contacts white on white and the hairline a dark ring (Bruno,
   27/10/2026); only the veil follows the night, darkening the page instead of whitening it. */
.contact *, .contact *::before, .contact *::after { box-sizing: border-box; }
.contact a { color: inherit; text-decoration: none; }
.contact button { font: inherit; }
.contact { --paper: #FFFFFF; --paper-ink: #111111; --paper-meta: #757575; --paper-line: #ECECEC; --paper-dots: #BDBDBD; --paper-hover: #F3F3F3; --paper-press: #EBEBEB; position: fixed; inset: 0; z-index: 60; overflow: hidden; visibility: hidden; pointer-events: none; transition: visibility 0s 300ms; }
.contact.open { visibility: visible; transition-delay: 0s; }
.contact-veil { position: absolute; inset: 0; background: rgba(255, 255, 255, .6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; transition: opacity 250ms ease;
  -webkit-mask: linear-gradient(#000 0 0) 0 0 / 100% 100% no-repeat, linear-gradient(#000 0 0) var(--hx, 0) var(--hy, 0) / var(--hw, 0) var(--hh, 0) no-repeat;
  -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) 0 0 / 100% 100% no-repeat exclude, linear-gradient(#000 0 0) var(--hx, 0) var(--hy, 0) / var(--hw, 0) var(--hh, 0) no-repeat; }
html.night .contact-veil { background: rgba(12, 18, 25, .6); }
.contact.open .contact-veil { opacity: 1; }
.contact.open.touch .contact-veil { pointer-events: auto; }

.contact-cards { --card-w: 340px; position: absolute; display: flex; }
.contact.open .contact-cards { pointer-events: auto; }
.contact.stack .contact-cards { inset: 0; align-items: center; justify-content: center; --card-w: min(340px, 100vw - 2 * var(--gutter)); pointer-events: none; }
.contact.open.stack .ccard, .contact.open.stack .cflip { pointer-events: auto; }

.contact .ccard { position: relative; flex: none; width: var(--card-w); aspect-ratio: 85.6 / 54; perspective: 1100px; opacity: 0; transform: translate(var(--fx, 0), var(--fy, 0)) scale(.3); transition: transform 280ms cubic-bezier(.4, 0, .6, 1), opacity 200ms ease; }
.contact.open .ccard { opacity: 1; transform: none; transition: transform 520ms cubic-bezier(.2, .9, .25, 1.04), opacity 220ms ease; }
.contact .bcard { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 500ms var(--ease-out); }
.contact .bcard.tracking { transition: transform 90ms linear; }
.contact .flip { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 800ms var(--ease-in-out); pointer-events: none; }
.contact .flip.is-back { transform: rotateY(180deg); }
.contact .flip.instant { transition: none; }
.contact .flip:not(.is-back) .front, .contact .flip.is-back .back { pointer-events: auto; }
.contact .flip.turning .cface { pointer-events: none; }

/* The card: white paper with a hairline edge */
.contact .cface { position: absolute; inset: 0; overflow: hidden; border-radius: 14px; background: var(--paper); cursor: pointer; -webkit-backface-visibility: hidden; backface-visibility: hidden;
  box-shadow: inset 0 0 0 1px var(--paper-line), 0 1px 2px rgba(0, 0, 0, .04), 0 24px 48px -20px rgba(0, 0, 0, .22); }
.contact .front { transform: translateZ(1px); }
.contact .back { transform: rotateY(180deg) translateZ(1px); }
/* front: the four tones of the arts as four small chips in the corner (the brand's colours), and the name under them */
.contact .front-tones { position: absolute; left: 22px; top: 22px; display: flex; gap: 5px; pointer-events: none; }
.contact .front-tones i { width: 9px; height: 9px; border-radius: 2.5px; background: var(--tone-1); }
.contact .front-tones i:nth-child(2) { background: var(--tone-2); }
.contact .front-tones i:nth-child(3) { background: var(--tone-3); }
.contact .front-tones i:nth-child(4) { background: var(--tone-4); }
.contact .front-who { position: absolute; left: 22px; bottom: 20px; display: flex; flex-direction: column; }
.contact .front-name { font-weight: 500; line-height: 1.3; color: var(--paper-ink); }
.contact .front-role { margin-top: 1px; line-height: 1.4; color: var(--paper-meta); }
/* back: email and LinkedIn */
.contact .back { display: flex; align-items: center; padding: 0 22px; }
.contact .bc-rows { position: relative; z-index: 1; display: grid; gap: 4px; width: 100%; margin: 0; padding: 0; list-style: none; }
.contact .bc-row { position: relative; display: flex; align-items: center; gap: 12px; margin: 0 -10px; padding: 8px 10px; border-radius: 8px; color: var(--paper-ink); transition: background-color 150ms ease; }
.contact .bc-row::after { content: ""; position: absolute; inset: -3px 0; }
.contact .bc-row svg { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--paper-meta); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: stroke 150ms ease; }
@media (hover: hover) { .contact .bc-row:hover { background: var(--paper-hover); } .contact .bc-row:hover svg { stroke: var(--paper-ink); } }
.contact .bc-row:active { background: var(--paper-press); }
.contact .bc-row:focus-visible { outline: 2px solid var(--paper-ink); outline-offset: 1px; }
/* "Turn over": a hairline circle beside the card (under it on phones) */
.contact .cflip { position: relative; flex: none; align-self: center; display: grid; place-items: center; width: 34px; height: 34px; margin-left: 12px; padding: 0; border: 1px solid var(--paper-line); border-radius: 50%; background: var(--paper); color: var(--paper-meta); cursor: pointer;
  opacity: 0; transform: translateX(-8px); transition: opacity 200ms var(--ease-in), transform 200ms var(--ease-in), color 150ms ease, border-color 150ms ease; }
.contact.open .cflip { opacity: 1; transform: none; transition: opacity 250ms var(--ease-out) 400ms, transform 250ms var(--ease-out) 400ms, color 150ms ease, border-color 150ms ease; }
.contact .cflip::after { content: ""; position: absolute; inset: -5px; }
.contact .cflip svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform 250ms var(--ease-out); }
@media (hover: hover) { .contact .cflip:hover { color: var(--paper-ink); border-color: var(--paper-dots); } .contact .cflip:hover svg { transform: rotate(45deg); } } /* under the mouse the arrow darkens; the ring only a little (a black ring read too heavy, Bruno, 26/10/2026) */
.contact .cflip:active svg { transform: rotate(90deg); }
.contact .cflip:focus-visible { outline: 2px solid var(--paper-ink); outline-offset: 2px; }
.contact.stack .contact-cards { flex-direction: column; }
.contact.stack .cflip { margin: 12px 0 0; transform: translateY(-8px); }
.contact.open.stack .cflip { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .contact, .contact-veil, .contact .ccard, .contact.open .ccard, .contact .bcard, .contact .flip, .contact .cflip, .contact .cflip svg { transition: none !important; }
  .contact .ccard, .contact .bcard, .contact .cflip { transform: none; }
  .contact .cflip:hover svg, .contact .cflip:active svg { transform: none; }
}
/* Three other designs to choose from (lab.html, "Cartão"; `data-card` on .contact, which contact.js sets from the
   choice; the default, "paper", is the card above). The mechanics, the turn, the tilt, the button, are the same.
   type: the name big as a signature at the top, the role under it, the four tones small in the bottom corner; on the
   back, two lines with a hairline between them and the site's dotted underline, no icons */
.contact[data-card="type"] .front-who { top: 20px; bottom: auto; }
.contact[data-card="type"] .front-name { font-size: 22px; line-height: 1.15; letter-spacing: -.015em; }
.contact[data-card="type"] .front-role { margin-top: 6px; }
.contact[data-card="type"] .front-tones { left: auto; right: 22px; top: auto; bottom: 22px; gap: 4px; }
.contact[data-card="type"] .front-tones i { width: 7px; height: 7px; border-radius: 2px; }
.contact[data-card="type"] .bc-rows { gap: 0; }
.contact[data-card="type"] .bc-row { margin: 0; padding: 11px 0; border-radius: 0; border-top: 1px solid var(--paper-line); }
.contact[data-card="type"] .bc-rows li:first-child .bc-row { border-top: 0; }
.contact[data-card="type"] .bc-row svg { display: none; }
.contact[data-card="type"] .bc-text, .contact[data-card="classic"] .bc-text { text-decoration: underline; text-decoration-style: dotted; text-decoration-color: var(--paper-dots); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: text-decoration-color 150ms ease; }
.contact[data-card="type"] .bc-row:active, .contact[data-card="classic"] .bc-row:active { background: none; }
@media (hover: hover) {
  .contact[data-card="type"] .bc-row:hover, .contact[data-card="classic"] .bc-row:hover { background: none; }
  .contact[data-card="type"] .bc-row:hover .bc-text, .contact[data-card="classic"] .bc-row:hover .bc-text { text-decoration-style: solid; text-decoration-color: var(--paper-ink); }
}
/* navy: the front in the darkest tone (the jacket), the name in white, the role in the lightest tone, and a bar of the
   four tones along the bottom edge, which ends in the card itself; the back stays white */
.contact[data-card="navy"] .front { background: var(--tone-4); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), 0 1px 2px rgba(0, 0, 0, .08), 0 24px 48px -18px rgba(0, 0, 0, .45); }
.contact[data-card="navy"] .front-name { color: #FFFFFF; }
.contact[data-card="navy"] .front-role { color: var(--tone-1); }
.contact[data-card="navy"] .front-tones { left: 0; right: 0; top: auto; bottom: 0; gap: 0; }
.contact[data-card="navy"] .front-tones i { flex: 1; width: auto; height: 4px; border-radius: 0; }
/* classic: a hairline frame 10 px inside the edge, like a printed card; everything centred, the role in spaced
   capitals, the four tones as four dots at the bottom; the back centred too, no icons */
.contact[data-card="classic"] .cface::before { content: ""; position: absolute; inset: 10px; border: 1px solid var(--paper-line); border-radius: 6px; pointer-events: none; }
.contact[data-card="classic"] .front-who { left: 0; right: 0; top: 50%; bottom: auto; align-items: center; text-align: center; transform: translateY(-58%); }
.contact[data-card="classic"] .front-name { font-size: 15px; letter-spacing: .01em; }
.contact[data-card="classic"] .front-role { margin-top: 5px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.contact[data-card="classic"] .front-tones { left: 50%; top: auto; bottom: 22px; gap: 6px; transform: translateX(-50%); }
.contact[data-card="classic"] .front-tones i { width: 6px; height: 6px; border-radius: 50%; }
.contact[data-card="classic"] .back { justify-content: center; }
.contact[data-card="classic"] .bc-rows { width: auto; gap: 2px; }
.contact[data-card="classic"] .bc-row { justify-content: center; margin: 0; padding: 6px 12px; }
.contact[data-card="classic"] .bc-row svg { display: none; }
@media (forced-colors: active) { .contact .cface, .contact .cflip { border: 1px solid ButtonText; } }
