/* davidelikwu.com/hello — lean contact hub.
   Tokens follow the Camino card and /podcast: warm paper, dark forest, Geist + Newsreader. */

@font-face { font-family: Geist; src: url(/personal-contact/geist-variable-20261106.woff2) format('woff2'); font-weight: 400 600; font-display: swap; }
@font-face { font-family: Newsreader; src: url(/personal-contact/newsreader.woff2) format('woff2'); font-weight: 400 600; font-display: swap; }

:root {
  color-scheme: light dark;
  --paper: #f8f7f3;
  --ink: #1c211e;
  --muted: #686c66;
  --line: #e2e1da;
  --raised: #ffffff;
  --hover: #efeee8;
  --forest: #263c31;
  --forest-ink: #ffffff;
  --accent: #e8743b;
  --serif: Newsreader, Georgia, 'Times New Roman', serif;
  --sans: Geist, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --shadow: 0 1px 2px rgb(28 33 30 / .05), 0 18px 40px -22px rgb(28 33 30 / .35);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --hover-dur: .7s;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #151915;
    --ink: #f0f1e9;
    --muted: #a9b0a6;
    --line: #2d342c;
    --raised: #1e241d;
    --hover: #283027;
    --forest: #dae8d0;
    --forest-ink: #1b281e;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 18px 40px -22px rgb(0 0 0 / .7);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { border: 0; background: none; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
a { -webkit-tap-highlight-color: transparent; }
h1, h2, p { margin: 0; }
img { display: block; max-width: 100%; }
svg { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
svg.fill { fill: currentColor; stroke: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ——— Portrait ——— */
.page { max-width: 560px; margin: 0 auto; }
.hero { position: relative; height: clamp(420px, 60svh, 560px); overflow: hidden; background: #3e463d; }
.portrait { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; transform: scale(1.45); transform-origin: 49% 83%; animation: settle 1.2s cubic-bezier(.2, .7, .2, 1) both; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 48%, rgb(9 20 15 / .38) 70%, rgb(9 20 15 / .82)); pointer-events: none; }
.identity { position: absolute; z-index: 1; left: 24px; right: 24px; bottom: 48px; color: #fff; }
.identity h1 { font: 500 clamp(44px, 12vw, 64px)/1 var(--serif); letter-spacing: -.028em; margin-bottom: 10px; }
.identity p { font-size: 15px; color: #eef0e8; }
.identity span { padding: 0 6px; opacity: .8; }

/* ——— Sheet ——— */
.sheet { position: relative; margin-top: -24px; border-radius: 24px 24px 0 0; background: var(--paper); padding: 24px 20px max(32px, env(safe-area-inset-bottom)); }

.connect { display: grid; gap: 10px; }
.save {
  display: flex; align-items: center; justify-content: center; gap: 10px; height: 56px; border-radius: 16px;
  background: var(--forest); color: var(--forest-ink); font-weight: 600; font-size: 16px;
  transition: transform .15s, filter .15s;
}
.save:active { transform: scale(.98); }
.toolbar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.toolbar > * {
  height: 52px; display: grid; place-items: center; border-radius: 14px;
  background: var(--raised); border: 1px solid var(--line); color: var(--ink);
  transition: background .15s, transform .15s, border-color .15s;
}
.toolbar > *:active { transform: scale(.96); }
.toolbar svg { width: 21px; height: 21px; }
.toolbar svg.x { width: 18px; height: 18px; }
.save-help { display: flex; align-items: center; gap: 8px; padding: 10px 6px 10px 14px; border-radius: 12px; background: var(--hover); font-size: 13px; }
.save-help button { width: 40px; height: 40px; display: grid; place-items: center; flex-shrink: 0; }
.save-help svg { width: 16px; height: 16px; }
@media (hover: hover) {
  .save:hover { filter: brightness(1.12); }
  .toolbar > *:hover { background: var(--hover); }
}

/* ——— Project cards: one anatomy, the glass foot ———
   Each card is a picture shown at its own proportions, then a frosted band with a defined top edge that holds any interaction.
   Sizes, used everywhere: 52 primary capsule (r26) · 48 round button · 36 small round or pill (r18) · 20 padding · 12 inside a widget · 16 before a quiet line.
   A mirrored strip of each photo's bottom edge sits under the glass, so the frosting carries the photo's colour without enlarging the photo. */
.projects { display: grid; gap: 20px; margin-top: 28px; }
.g { --fg: #fff; --fg2: rgb(255 255 255 / .72); --fg3: rgb(255 255 255 / .54); --ctl: rgb(255 255 255 / .1); --ctl2: rgb(255 255 255 / .18); --rule: rgb(255 255 255 / .16); --pri: #fff; --pri-fg: #171b18;
  position: relative; isolation: isolate; overflow: hidden; border-radius: 28px; background: #101310; color: #fff; box-shadow: var(--shadow); }
.g .pic { position: relative; aspect-ratio: var(--ar, 3 / 2); display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; pointer-events: none; }
.g .pic a, .g .pic button, .g .pic .head { pointer-events: auto; }
.g.sol { --ar: 16 / 10; } .g.kn { --ar: 3 / 2; } .g.sov { --ar: 5 / 4; }
.g .pic > .bg { position: absolute; inset: 0; z-index: -2; }
.g .photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.g .mirror { position: absolute; left: 0; right: 0; top: 100%; width: 100%; height: 72px; object-fit: cover; object-position: 50% 100%; transform: scaleY(-1); -webkit-mask-image: linear-gradient(0deg, #000, transparent); mask-image: linear-gradient(0deg, #000, transparent); }
.g .pic::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(8 10 9 / 0) 36%, rgb(8 10 9 / .5) 80%, rgb(8 10 9 / .64)); transition: opacity .4s; }
.g .head { position: relative; z-index: 2; transition: opacity .35s; }
.g .ttl { font: 500 28px/1.08 var(--serif); letter-spacing: -.02em; text-wrap: balance; transition: font-size .45s var(--ease); }
.g .role { margin-top: 6px; font-size: 12.5px; font-weight: 600; letter-spacing: .03em; color: rgb(255 255 255 / .7); }
.g .role + .dsc { margin-top: 3px; }
.g .dsc { margin-top: 6px; max-width: 34ch; font-size: 14.5px; line-height: 1.42; color: rgb(255 255 255 / .86); text-wrap: pretty; max-height: 4.5em; overflow: hidden; transition: opacity .3s, max-height .45s, margin .45s; }
.g .corner { position: absolute; z-index: 3; top: 16px; right: 16px; height: 32px; display: inline-flex; align-items: center; padding: 0 13px; border-radius: 16px; background: rgb(18 22 19 / .3); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .38); -webkit-backdrop-filter: blur(12px) saturate(1.3); backdrop-filter: blur(12px) saturate(1.3); color: #fff; font-size: 13px; font-weight: 600; transition: opacity .35s, background .2s; }
.g .band { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 20px; }
.g .band::before { content: ''; position: absolute; inset: 0; z-index: 0; background: rgb(13 16 14 / .76); -webkit-backdrop-filter: blur(26px) saturate(1.4); backdrop-filter: blur(26px) saturate(1.4); box-shadow: inset 0 1px 0 rgb(255 255 255 / .12); }
.g .band > * { position: relative; z-index: 1; }

/* Shared controls */
.g .cap { display: flex; width: 100%; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 22px; border-radius: 26px; background: var(--pri); color: var(--pri-fg); font-size: 15px; font-weight: 600; white-space: nowrap; transition: transform .15s, filter .15s; }
.g .cap svg { width: 18px; height: 18px; }
.g .cap .price { font-weight: 500; opacity: .55; }
.g .cap:active { transform: scale(.98); }
.g .fieldcap { display: flex; align-items: center; gap: 6px; height: 52px; padding: 6px 6px 6px 20px; border-radius: 26px; background: var(--ctl); box-shadow: inset 0 0 0 1px var(--rule); transition: box-shadow .2s; }
.g .fieldcap:focus-within { box-shadow: inset 0 0 0 1.5px var(--fg2); }
.g .fieldcap.invalid { box-shadow: inset 0 0 0 1.5px #ff9b7a; animation: nudge .35s var(--ease); }
.g .fieldcap input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; color: var(--fg); font-size: 16px; outline: none; }
.g .fieldcap input::placeholder { color: var(--fg3); }
.g .fieldcap button { height: 40px; padding: 0 18px; border-radius: 20px; background: var(--pri); color: var(--pri-fg); font-size: 14.5px; font-weight: 600; white-space: nowrap; transition: filter .15s; }
.g .fieldcap button:disabled { opacity: .6; cursor: wait; }
.g .done { display: flex; align-items: center; gap: 10px; min-height: 52px; font-size: 14px; line-height: 1.45; color: var(--fg); }
.g .done svg { width: 18px; height: 18px; }
.g .status { font-size: 13.5px; line-height: 1.45; color: var(--fg2); }
.g .facts { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 18px; margin-top: 4px; font-size: 13px; color: var(--fg3); }
.g .facts span { display: inline-flex; align-items: center; gap: 6px; }
.g .facts svg { width: 14px; height: 14px; }
.g .round { width: 48px; height: 48px; flex-shrink: 0; border-radius: 24px; display: grid; place-items: center; background: var(--pri); color: var(--pri-fg); transition: transform .15s, filter .15s; }
.g .round:active { transform: scale(.95); }
.g .ask { display: grid; grid-template-columns: minmax(0, 1fr) 48px; gap: 16px; align-items: center; }
.g .ask b { display: block; font-size: 15px; font-weight: 600; line-height: 1.3; }
.g .ask span { display: block; margin-top: 2px; font-size: 13.5px; color: var(--fg2); }

/* Sovereign: the picker changes the picture and the action */
.g .seg { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); padding: 4px; border-radius: 24px; background: var(--ctl); box-shadow: inset 0 0 0 1px var(--rule); }
.g .seg .thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 3); border-radius: 20px; background: var(--ctl2); transform: translateX(calc(var(--i, 0) * 100%)); transition: transform .34s var(--ease); }
.g .seg button { position: relative; z-index: 1; height: 40px; border-radius: 20px; font-size: 13.5px; font-weight: 500; color: var(--fg2); transition: color .2s; }
.g .seg button[aria-pressed="true"] { color: var(--fg); font-weight: 600; }
.g .panes { display: grid; grid-template-columns: minmax(0, 1fr); }
.g .panes > [data-pane] { grid-area: 1 / 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; transition: opacity .3s; }
.g .panes > [data-pane][aria-hidden="true"] { opacity: 0; pointer-events: none; visibility: hidden; }
.layer { position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease; }
.layer.on { opacity: 1; }
.layer:not(.on) * { pointer-events: none !important; }
.stage-signed { background: radial-gradient(110% 90% at 88% 30%, #3b50a8, #1f2b6e 50%, #131b47); }
.g .book { position: absolute; right: 7%; top: 18%; width: 36%; }
.g .book img { width: 100%; height: auto; transform: rotate(6deg); filter: drop-shadow(0 18px 22px rgb(0 0 0 / .5)); }
.stage-signed.on .book img { animation: bookin .9s var(--ease) both; }
.stage-signed.on .book { animation: bob 6s ease-in-out .9s infinite; }
.reviews { position: absolute; top: 20px; left: 20px; display: grid; gap: 8px; pointer-events: auto; }
.stage-signed .reviews { width: 54%; }
.stars { display: inline-flex; gap: 2px; color: #f2b544; }
.stars svg { width: 13px; height: 13px; fill: currentColor; stroke: none; }
.rstack { display: grid; }
.rstack > div { grid-area: 1 / 1; display: grid; gap: 8px; align-content: start; opacity: 0; transform: translateY(6px); transition: opacity .5s, transform .5s var(--ease); }
.rstack > div.on { opacity: 1; transform: none; }
.rstack q { font: italic 400 19px/1.24 var(--serif); color: #fff; quotes: '“' '”'; text-wrap: balance; }
.rstack small { font-size: 12.5px; color: rgb(255 255 255 / .7); }
.dots { display: flex; margin-left: -4px; }
.dots button { width: 24px; height: 24px; display: grid; place-items: center; pointer-events: auto; }
.dots button::after { content: ''; width: 6px; height: 6px; border-radius: 3px; background: rgb(255 255 255 / .38); transition: width .3s, background .3s; }
.dots button[aria-selected="true"]::after { width: 16px; background: #fff; }
.stage-amazon { background: #121a3f; }
.stage-amazon .slide { position: absolute; top: 0; left: 0; right: 0; aspect-ratio: 960 / 538; opacity: 0; transition: opacity .8s; }
.stage-amazon .slide.on { opacity: 1; }
.stage-amazon .slide img { width: 100%; height: 100%; object-fit: cover; }
.stage-amazon .slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(18 26 63 / .62), rgb(18 26 63 / .1) 46%, rgb(18 26 63 / .35) 72%, #121a3f); }
.stage-amazon .reviews { width: 62%; }
.rating { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: rgb(255 255 255 / .8); }
.stage-chapter { background: radial-gradient(120% 90% at 20% 0%, #3a4ea6, #1e2a6b 55%, #121a45); }
.paper { position: absolute; top: 24px; left: 28px; right: 34px; height: 420px; padding: 24px 22px; border-radius: 3px; background: #fbfaf6; color: #2a2620; transform: rotate(-2deg); box-shadow: 0 1px 1px rgb(0 0 0 / .2), 0 24px 40px -12px rgb(0 0 0 / .55); font-family: var(--serif); -webkit-mask-image: linear-gradient(180deg, #000 100px, transparent 190px); mask-image: linear-gradient(180deg, #000 100px, transparent 190px); }
.paper .epi { font-style: italic; font-size: 12px; line-height: 1.5; color: #4d473d; padding: 0 10px; }
.paper .attr { font-size: 11.5px; text-align: right; color: #4d473d; margin: 6px 10px 14px 0; }
.paper .body { font-size: 12.5px; line-height: 1.55; }
.paper .dc { float: left; font-size: 46px; line-height: .82; margin: 4px 6px 0 0; }

/* Podcast: latest episode, a player with video or audio, and a strip that asks people to subscribe */
.g.pod .pic { aspect-ratio: 16 / 9; transition: height .5s var(--ease); }
.g.compact .ttl { font-size: 24px; }
.g.compact .dsc { opacity: 0; max-height: 0; margin-top: 0; }
.g .screen { position: absolute; inset: 0; z-index: -1; background: #000; opacity: 0; transition: opacity .5s; pointer-events: none; }
.g .screen iframe, .g .screen > div { width: 100%; height: 100%; border: 0; }
.g.video .screen { opacity: 1; pointer-events: auto; }
.g.video .pic::before, .g.video .head, .g.video .corner { opacity: 0; pointer-events: none; }
.pw { display: grid; gap: 12px; }
.pbtn { width: 48px; height: 48px; flex-shrink: 0; border-radius: 24px; display: grid; place-items: center; background: var(--pri); color: var(--pri-fg); transition: transform .15s; }
.pbtn:active { transform: scale(.95); }
.pbtn svg { width: 19px; height: 19px; fill: currentColor; stroke: none; }
.pbtn .ip { margin-left: 2px; }
.pbtn.lg { width: 60px; height: 60px; border-radius: 30px; } .pbtn.lg svg { width: 23px; height: 23px; }
.pbtn.sm { width: 36px; height: 36px; border-radius: 18px; background: var(--ctl); color: var(--fg); box-shadow: inset 0 0 0 1px var(--rule); } .pbtn.sm svg { width: 14px; height: 14px; }
.pw.loading [data-act="toggle"], .pw.loading [data-act="rowplay"] { animation: pulse 1s ease-in-out infinite; }
.ghost { width: 36px; height: 36px; flex-shrink: 0; border-radius: 18px; display: grid; place-items: center; color: var(--fg2); background: var(--ctl); box-shadow: inset 0 0 0 1px var(--rule); transition: color .15s, background .15s; }
.ghost svg { width: 16px; height: 16px; }
.ghost.up svg { transform: rotate(180deg); }
.ep { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.ep img { width: 56px; height: 56px; border-radius: 11px; object-fit: cover; background: #2a2018; }
.ep b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.ep .txt { min-width: 0; display: block; }
.ep-m { font-size: 12.5px; color: var(--fg3); font-variant-numeric: tabular-nums; }
.ep .acts { display: flex; align-items: center; gap: 10px; }
.ep.row { grid-template-columns: minmax(0, 1fr) auto; }
.ep.row .open { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; align-items: center; min-width: 0; text-align: left; }
.mbar { display: block; height: 3px; margin-top: 8px; border-radius: 2px; background: var(--ctl2); overflow: hidden; }
.mbar i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--fg); }
.ep.row:not(.started) .mbar, .ep.row:not(.started) .ghost { display: none; }
.player { display: grid; gap: 14px; }
.track { position: relative; height: 20px; display: flex; align-items: center; cursor: pointer; touch-action: none; }
.track .rail { position: relative; width: 100%; height: 4px; border-radius: 2px; background: var(--ctl2); }
.track .fill { position: absolute; inset: 0 auto 0 0; width: calc(var(--p, 0) * 100%); border-radius: 2px; background: var(--fg); }
.track .knob { position: absolute; top: 50%; left: calc(var(--p, 0) * 100%); width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 6px; background: #fff; box-shadow: 0 1px 4px rgb(0 0 0 / .4); transition: transform .15s; }
.times { display: flex; justify-content: space-between; margin-top: -4px; font-size: 12px; color: var(--fg3); font-variant-numeric: tabular-nums; }
.controls { display: flex; justify-content: space-between; align-items: center; }
.g .pill { width: 72px; height: 36px; border-radius: 18px; background: var(--ctl); box-shadow: inset 0 0 0 1px var(--rule); }
.media { display: grid; grid-template-columns: 1fr 1fr; padding: 2px; }
.media button { height: 32px; border-radius: 16px; display: grid; place-items: center; color: var(--fg3); transition: background .2s, color .2s; }
.media button svg { width: 17px; height: 17px; }
.media button[aria-pressed="true"] { background: var(--ctl2); color: var(--fg); }
.media.off [data-act="video"] { opacity: .35; pointer-events: none; }
.speed { font-size: 13.5px; font-weight: 600; color: var(--fg); font-variant-numeric: tabular-nums; }
.skip { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 22px; transition: background .15s; }
.skip svg { width: 28px; height: 28px; stroke-width: 1.5; }
.skip span { position: absolute; inset: 0; display: grid; place-items: center; padding-top: 2px; font-size: 9.5px; font-weight: 700; }
.more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .42s var(--ease); }
.more.open { grid-template-rows: 1fr; }
.more > div { overflow: hidden; min-height: 0; margin-bottom: -12px; transition: margin .42s var(--ease); }
.more.open > div { margin-bottom: 0; }
.more .li { display: grid; grid-template-columns: 56px minmax(0, 1fr) 36px; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--rule); }
.more .li:last-child { border-bottom: 1px solid var(--rule); }
.more .li img { width: 40px; height: 40px; margin-left: 8px; border-radius: 9px; object-fit: cover; background: #2a2018; }
.more .li b { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.foot-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; transition: background .4s, padding .4s, margin .4s; }
.disc { display: inline-flex; align-items: center; gap: 6px; height: 36px; font-size: 14px; font-weight: 500; color: var(--fg2); transition: color .15s; }
.disc svg { width: 16px; height: 16px; transition: transform .3s; }
.disc[aria-expanded="true"] svg { transform: rotate(180deg); }
.sublabel { display: none; font-size: 14.5px; font-weight: 600; }
.foot-row.sub { margin: 6px -20px -20px; padding: 14px 20px 18px; background: linear-gradient(180deg, rgb(232 116 59 / .24), rgb(232 116 59 / .14)); box-shadow: inset 0 1px 0 rgb(255 180 140 / .22); }
.foot-row.sub .disc { display: none; }
.foot-row.sub .sublabel { display: block; }
.icons { display: flex; gap: 8px; }
.ibtn { width: 36px; height: 36px; border-radius: 18px; display: grid; place-items: center; background: var(--ctl); box-shadow: inset 0 0 0 1px var(--rule); transition: background .15s; }
.ibtn svg { width: 17px; height: 17px; fill: currentColor; stroke: none; }
.foot-row.sub .ibtn { background: rgb(255 255 255 / .14); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .22); }
.fadein { animation: pop .4s var(--ease); }

@media (hover: hover) {
  .g .corner:hover { background: rgb(18 22 19 / .5); }
  .g .cap:hover, .g .round:hover, .g .fieldcap button:hover, .pbtn:not(.sm):hover { filter: brightness(.93); }
  .ghost:hover, .ibtn:hover, .pbtn.sm:hover, .skip:hover, .g .speed:hover { background: var(--ctl2); color: var(--fg); }
  .disc:hover { color: var(--fg); }
  .dots button:hover::after { background: rgb(255 255 255 / .7); }
  .track:hover .knob { transform: scale(1.25); }
  .foot-row.sub .ibtn:hover { background: rgb(255 255 255 / .24); }
  .g.sov:hover .book img { scale: 1.03; transition: scale .4s var(--ease); }
}
@keyframes bookin { from { opacity: 0; transform: translateX(40px) rotate(14deg); } to { opacity: 1; transform: rotate(6deg); } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
@keyframes nudge { 25% { translate: -4px 0; } 75% { translate: 4px 0; } }
@keyframes pulse { 50% { opacity: .6; } }

/* ——— Sharing ——— */
dialog { color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 26px; padding: 22px; width: calc(100% - 32px); max-width: 380px; box-shadow: 0 30px 100px rgb(0 0 0 / .3); }
dialog[open] { animation: pop .28s cubic-bezier(.2, .8, .2, 1); }
dialog::backdrop { background: rgb(12 21 18 / .62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.dialog-top { display: flex; align-items: center; justify-content: space-between; }
.dialog-top h2 { font: 500 28px/1.2 var(--serif); letter-spacing: -.01em; }
.dialog-top button { width: 44px; height: 44px; display: grid; place-items: center; margin-right: -10px; border-radius: 50%; }
.share-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-top: 14px; border-radius: 13px; background: var(--hover); }
.share-tabs button { min-height: 40px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--muted); transition: background .15s, color .15s; }
.share-tabs button[aria-selected="true"] { background: var(--raised); color: var(--ink); box-shadow: 0 1px 4px rgb(0 0 0 / .08); }
.qr { width: 100%; height: auto; margin: 14px 0 4px; border-radius: 14px; background: #fff; }
.dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.dialog-actions:has(#native-share[hidden]) { grid-template-columns: 1fr; }
.dialog-actions button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 13px; border: 1px solid var(--line); background: var(--raised); font-size: 14px; font-weight: 500; }
.dialog-actions svg { width: 17px; height: 17px; }
#native-share { background: var(--forest); color: var(--forest-ink); border-color: transparent; }
@media (hover: hover) { .dialog-actions button:not(#native-share):hover, .dialog-top button:hover { background: var(--hover); } }

#toast { position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); z-index: 10; transform: translate(-50%, 14px); padding: 11px 18px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 14px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ——— Tablet: the phone layout as a framed card ——— */
@media (min-width: 600px) and (max-width: 919px) {
  body { padding: 40px 24px; }
  .page { border-radius: 28px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
  .sheet { padding: 28px 28px 32px; }
}

/* ——— Desktop: the portrait becomes a fixed panel beside the card ——— */
@media (min-width: 920px) {
  body { padding: 40px; min-height: 100svh; }
  .page { max-width: 1120px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
  .hero { position: sticky; top: 40px; height: min(calc(100svh - 80px), 860px); border-radius: 28px; box-shadow: var(--shadow); }
  .identity { left: 36px; right: 36px; bottom: 40px; }
  .identity h1 { font-size: 64px; }
  .sheet { margin: 0; padding: 0 0 40px; border-radius: 0; background: none; }
  .projects { margin-top: 32px; gap: 28px; }
}
@media (min-width: 920px) and (min-height: 980px) { .hero { height: 860px; } }

@media (max-width: 359px) {
  .sheet { padding-left: 14px; padding-right: 14px; }
  .identity { left: 18px; }
}

@keyframes settle { from { transform: scale(1.5); opacity: .5; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
@keyframes spin { to { transform: rotate(270deg); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media print { .connect, dialog, .band { display: none; } .g { print-color-adjust: exact; -webkit-print-color-adjust: exact; } }

/* ——— Section anchors ——— */
.identity .roles { font-size: 14.5px; }
.identity .roles span { padding: 0 6px; }
.identity .roles a { color: #eef0e8; text-decoration: underline; text-decoration-color: rgb(255 255 255 / .35); text-decoration-thickness: 1px; text-underline-offset: 4px; transition: text-decoration-color .2s; }
@media (hover: hover) { .identity .roles a:hover { text-decoration-color: #fff; } }
@media (min-width: 920px) { .identity .roles { font-size: 15px; } }
html { scroll-behavior: smooth; }
.projects > .g { scroll-margin-top: 24px; }
.g:target { animation: arrive .9s var(--ease); }
@keyframes arrive { 0% { box-shadow: 0 0 0 0 rgb(255 255 255 / 0); } 30% { box-shadow: 0 0 0 3px var(--ink); } 100% { box-shadow: 0 0 0 0 rgb(255 255 255 / 0); } }

/* ——— Street photography: the atlas, then a strip of frames ——— */
.g.ph { --ar: 3 / 2; background: #08090d; }
.g.ph .strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.g.ph .strip a { display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--ctl); box-shadow: inset 0 0 0 1px var(--rule); }
.g.ph .strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease), filter .3s; }
@media (hover: hover) { .g.ph .strip a:hover img { transform: scale(1.06); filter: brightness(1.08); } }
@media (min-width: 920px) { .g.sov { --ar: 3 / 2; } }
