:root {
  --ink: #162f42;
  --muted: #8c9195;
  --cream: #fff9e7;
  --yellow: #ffc629;
  --yellow-hover: #ffe6a0;
  --blue-hover: #315068;
  --page: 1080px;
  --gutter: 20px;
  --section-space: clamp(80px, 9vw, 140px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: white; font: 14px/1.4 'Inter Tight', Arial, sans-serif; }
h1,h2,h3,p,figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; cursor: pointer; }
a,button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
a:focus-visible,button:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }
a[aria-disabled=true] { cursor: not-allowed; }
img { display: block; max-width: 100%; }
h2 { font-size: clamp(40px, 4.2vw, 56px); line-height: 1.07; letter-spacing: -.02em; font-weight: 700; }
h2 span { color: var(--muted); }
h2 b { font-weight: inherit; }
h3 { font-size: clamp(23px, 2.1vw, 28px); line-height: 1.15; letter-spacing: -.02em; }
.wrap { width: min(var(--page), calc(100% - 80px)); margin-inline: auto; }
.eyebrow { font-size: 14px; color: var(--muted); line-height: 1.4; }
.button,.language { display: inline-flex; align-items: center; justify-content: center; background: #fff; padding: 10px 12px; border-radius: 8px; font-size: 14px; line-height: 20px; transition: background .18s, color .18s, box-shadow .18s; }
.language { border-radius: 50px; min-width: 44px; }
.button[href]:hover,.header .button:hover,.language:hover { background: var(--yellow-hover); box-shadow: none; }
.skip-link { position: fixed; left: 12px; top: -100px; padding: 12px; background: white; z-index: 10; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* The first screen follows the available viewport height, including browser chrome. */
.hero { background: var(--cream); }
.hero-canvas { position: relative; width: 100%; max-width: 1600px; height: min(855px, 100svh); margin-inline: auto; }
.hero-photo { position: absolute; top: 0; left: 0; width: 35.2778%; height: 100%; object-fit: cover; }
/* small credit over the hero video, bottom-left corner of the video */
.hero-ai-note { position: absolute; left: 16px; bottom: 16px; z-index: 2; margin: 0; width: 150px; max-width: calc(35% - 32px); font-size: 11px; line-height: 1.4; text-wrap: balance; color: rgba(255,255,255,.32); pointer-events: none; }
.header { position: absolute; top: 20px; left: calc(35.2778% + 20px); right: 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.header .name { font-size: 14px; }
.header nav { display: flex; align-items: center; gap: 12px; }
.hero h1 { font-size: min(7.222vw, 12.16svh, 104px); line-height: 1; letter-spacing: -.02em; }
.hero h1 > span { position: absolute; }
.ai-coded { left: 50.694%; top: 56.374%; }
.digital { left: 60.417%; top: 69.825%; transform: none; color: var(--yellow); }
.designer { left: 63.333%; top: 83.392%; }
.hero-scribble { position: absolute; left: 45.17%; top: 68.5%; width: 28.9%; height: 23%; transform: rotate(-9.5deg); }
.location { position: absolute; left: calc(35.2778% + 20px); bottom: 5%; padding-left: 12px; font-size: 14px; }
.location span { display: block; color: var(--muted); white-space: pre-line; }
.status::before { content: ''; position: absolute; left: 0; top: 6px; width: 6px; height: 6px; background: #68cf34; border-radius: 50%; }
.sticker { position: absolute; width: min(4vw, 7svh, 58px); aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #d9d9d9; }
.sticker>img { position: absolute; max-width: none; }
.sticker-one { left: 87.15%; top: 25.85%; transform: rotate(19.51deg); }
.sticker-one img { width: 347.1%; height: 175.38%; left: -124.74%; top: -37.38%; }
.sticker-two { left: 83.47%; top: 48.8%; transform: rotate(3.62deg); }
.sticker-two>img:first-child { width: 242.26%; height: 242.26%; left: -65.19%; top: -.22%; }
.sticker-two .apple-body { width: 48%; height: 42%; left: 22%; top: 40%; }
.sticker-two .apple-leaf { width: 13%; height: 12%; left: 62%; top: 16%; }
.sticker-three { left: 87.7%; top: 56.5%; transform: rotate(-2.5deg); }
.sticker-three img { width: 520.6%; height: 291.77%; left: -225.32%; top: -89.67%; }
.sticker-four { left: 85.9%; top: 72.5%; transform: rotate(19.51deg); }
.sticker-four img { width: 205.6%; height: 308.4%; left: -52.82%; top: -95.93%; }

/* Shared 12-column rhythm; section gaps shrink on laptop screens. */
.intro { margin-block: var(--section-space); display: grid; grid-template-columns: 1fr 2fr 3fr; gap: 64px 20px; }
.intro h2 { color: var(--yellow); white-space: pre-line; }
.intro>.eyebrow { padding-top: 6px; }
.portraits { grid-column: 2; display: flex; align-items: flex-start; gap: 18px; }
.picture { position: relative; overflow: hidden; border-radius: 8px; }
.picture img { position: absolute; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.portrait { width: 112px; height: 112px; flex-shrink: 0; border: 4px solid white; box-shadow: 0 11px 14px #d37c561a, 0 1px 6px #3645e814; transform: scaleX(-1); }
.portrait-left { border-radius: 100px 100px 100px 0; }
.portrait-left img { width: 125.05%; height: 166.73%; left: -12.04%; top: -14.6%; }
.portrait-export { border: 0; border-radius: 0; transform: none; box-shadow: none; overflow: visible; width: 137px; height: 137px; margin: -9px -10px; }
.portrait-export img { object-fit: contain; }
.intro-copy { grid-column: 3; grid-row: 2; max-width: 500px; }
.statement { font-size: clamp(27px,2.55vw,36px); line-height: 1.2; font-weight: 700; letter-spacing: -.02em; color: var(--muted); }
.statement strong { color: var(--ink); }
.statement span { display: block; }
.intro-copy>.eyebrow { margin-top: 48px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.experience { margin-bottom: var(--section-space); }
.job { display: grid; grid-template-columns: 1fr 200px; gap: 20px; padding-bottom: 20px; color: var(--muted); }
.job h3 { display: flex; align-items: center; gap: 12px; }
.job>div { display: flex; flex-direction: column; gap: 4px; }
/* the dates sit right under the role, smaller and paler */
.job p { line-height: 1.3; }
.job p.eyebrow { font-size: 12px; color: color-mix(in srgb, var(--muted) 70%, transparent); }
.job-icon { display: block; width: 28px; height: 28px; flex-shrink: 0; }
.job-icon>img { width: 28px; height: 28px; }
.skypro-logo { position: relative; display: block; width: 28px; height: 28px; }
.skypro-logo img { position: absolute; width: 17px; height: 19px; top: 5px; left: 2px; }
.skypro-logo img+img { left: 12px; }
.epiic-logo { position: relative; display: block; width: 22px; height: 28px; overflow: hidden; border-radius: 8px; }
.epiic-logo img { position: absolute; width: 1282.12%; height: 493.99%; left: -268.43%; top: -55.95%; max-width: none; }
.projects { padding-block: 80px; background: var(--cream); }
.section-heading { width: calc(50% - 10px); margin: 0 0 48px auto; }
.section-heading h2 { margin-bottom: 20px; }
.section-heading p,.about-copy { font-size: 14px; line-height: 1.4; color: var(--muted); }
.filters { display: flex; gap: 20px; align-items: center; margin-bottom: 36px; }
.filters>.eyebrow { width: calc((100% - 100px)/6); flex-shrink: 0; }
.filter-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.filter-buttons button { background: white; border-radius: 8px; font-size: 14px; line-height: 20px; padding: 10px 12px; transition: background .18s, color .18s, box-shadow .18s; }
.filter-buttons button[aria-pressed=true] { background: var(--yellow); }
@media(hover:hover) {
  .filter-buttons button[aria-pressed=false]:hover { background: var(--yellow-hover); color: var(--ink); }
  .filter-buttons button[aria-pressed=true]:hover { background: var(--yellow); box-shadow: none; }
}
.project-grid { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); gap: 44px 20px; align-items: start; }
/* the six cards fill a fixed staircase of slots in their order on the page */
.project-grid .project:nth-child(1) { grid-column: 3/9; }
.project-grid .project:nth-child(2) { grid-column: 9/13; }
.project-grid .project:nth-child(3) { grid-column: 1/7; }
.project-grid .project:nth-child(4) { grid-column: 9/13; }
.project-grid .project:nth-child(5) { grid-column: 3/7; }
.project-grid .project:nth-child(6) { grid-column: 7/13; }
.project { position: relative; }
.project-case-link { position: absolute; inset: 0; z-index: 3; border-radius: 8px; }
.project-case-link:focus-visible { outline: 3px solid var(--yellow); outline-offset: 6px; }
.project-grid.is-filtered [data-layout='0'] { grid-column: 3/9; }
.project-grid.is-filtered [data-layout='1'] { grid-column: 9/13; }
.project-grid.is-filtered [data-layout='2'] { grid-column: 1/5; }
.project-grid.is-filtered [data-layout='3'] { grid-column: 7/13; }
.project-grid.is-filtered [data-layout='4'] { grid-column: 3/9; }
.project-grid.is-filtered [data-layout='5'] { grid-column: 9/13; }
.project[hidden] { display: none; }
.project-image { height: clamp(220px, 23.6vw, 306px); }
.project-caption { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 24px; margin-top: 20px; }
.project-caption .eyebrow { margin-top: 18px; }
.tags { margin-top: 16px; color: var(--muted); }
/* narrow slots stack the caption tighter; the title column still fits its longest word */
@media(min-width:801px) {
  .project-grid:not(.is-filtered) .project:is(:nth-child(2),:nth-child(4),:nth-child(5)) .project-caption,
  .project-grid.is-filtered .project:is([data-layout='1'],[data-layout='2'],[data-layout='5']) .project-caption { grid-template-columns: minmax(100px, min-content) minmax(0,1fr); gap: 16px; }
}

.about { margin-block: var(--section-space); }
.about-heading { margin-bottom: 64px; }
.about-copy p+p { margin-top: 28px; }
.about-copy p:first-child { color: var(--ink); }
.tool-stickers { display: flex; margin-top: 64px; height: 56px; align-items: center; }
.tool-stickers .picture { width: 45px; height: 45px; border: 3px solid white; box-shadow: 0 9px 11px #253a521a; transform: rotate(14deg); margin-right: -7px; }
.tool-stickers .picture:nth-child(2n) { transform: rotate(-15deg); }
.tool-stickers .picture:nth-child(3n) { transform: rotate(8deg); }
.gallery { display: flex; flex-direction: column; gap: 56px; }
.gallery-opening { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 20px; margin-left: 16.667%; }
.gallery-opening .picture { aspect-ratio: 386/388; grid-column: span 2; }
.gallery-opening .picture+.picture { grid-column: 4/6; }
.gallery-feature { display: grid; grid-template-columns: 1fr 2fr; gap: 20px; }
.gallery-feature figure>.picture { aspect-ratio: 797/452; }
.instagram-note { position: relative; align-self: start; min-height: 220px; display: flex; align-items: flex-start; gap: 17px; padding-top: 55px; isolation: isolate; }
.instagram-note p { width: 72px; flex-shrink: 0; white-space: pre-line; position: relative; z-index: 2; }
.instagram-note .button { background: var(--ink); color: white; z-index: 2; }
.instagram-note .button[href]:hover { background: var(--blue-hover); box-shadow: none; }
.instagram-note>img { position: absolute; left: 32px; top: 0; width: 228px; height: 234px; pointer-events: none; z-index: 0; }
.gallery figcaption { display: grid; grid-template-columns: 160px 1fr; gap: 24px; margin-top: 20px; color: var(--muted); }
.gallery-middle { display: grid; grid-template-columns: 590fr 183fr 386fr; gap: 20px; }
.gallery-middle>div:first-child { display: flex; flex-direction: column; gap: 56px; }
.gallery-middle figure:first-child { width: 65.424%; }
.gallery-middle figure>.picture { height: min(26.25vw,315px); }
.gallery-middle>.architecture { height: min(26.25vw,315px); }
.gallery-middle>.trees { height: 100%; min-height: 630px; }
.gallery-last { display: grid; grid-template-columns: 386fr 589fr; gap: 18.583%; }
.gallery-last .picture { height: min(26.25vw,315px); }
.more { margin-bottom: var(--section-space); }
.more .section-heading { width: 55%; margin-right: 16.667%; }
.more-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 56px 20px; }
.article { grid-column: span 2; }
.article-skypro { grid-column: 5/7; }
.article-blog { grid-column: 2/4; }
.article>.picture { aspect-ratio: 386/175; }
.article-caption { display: grid; grid-template-columns: 1fr 1.05fr; gap: 20px; margin-top: 20px; color: var(--muted); }
.article-caption>div { display: flex; gap: 18px; align-items: flex-start; }
.article-caption span { flex: 1; min-width: 0; }
.article-caption img { width: 20px; height: 20px; flex-shrink: 0; }
.article[href]:hover h3 { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
.article[href]:hover .article-caption img { transform: translate(2px,-2px); }
.article-caption img { transition: transform .18s; }
.article-blog .picture::after { content: ''; position: absolute; left: 44.17%; top: 79.43%; width: 42.49%; height: 9.72%; background: #0b1014; }
footer { background: var(--cream); }
.footer-inner { min-height: 460px; position: relative; }
.footer-inner nav { position: absolute; top: 80px; left: 0; display: flex; flex-direction: column; gap: 20px; }
.footer-inner nav a:hover { text-decoration: underline; }
.contact-heading { position: absolute; top: 56px; left: 34%; width: 320px; }
.contact-heading h2 { font-size: 88px; line-height: 1; letter-spacing: -.02em; text-align: right; white-space: pre-line; }
.contact-heading p { position: absolute; left: 0; top: 124px; width: 135px; }
.contact-actions { position: absolute; left: 68%; top: 204px; display: flex; gap: 12px; }
.contact-actions .button { padding: 10px 20px; background: var(--ink); color: white; }
.contact-actions .button[href]:hover { background: var(--blue-hover); box-shadow: none; }
.availability { position: absolute; left: 34%; top: 338px; padding-left: 12px; white-space: pre-line; }
.footer-avatar { position: absolute; top: 332px; left: 0; width: 36px; height: 36px; border-radius: 8px; object-fit: cover; }
.social-links { position: absolute; right: 0; top: 334px; display: flex; gap: 14px; }
.social-link { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 6px; }
.social-link:hover { background: transparent; }
.social-link:hover .social-crop { background-color: var(--blue-hover); }
.social-crop { display: block; width: 24px; height: 24px; overflow: hidden; position: relative; }
.social-crop img { position: absolute; width: 120px; height: 24px; max-width: none; }
.social-linkedin img { left: -96px; }
.social-instagram img { left: -48px; }
.social-threads img { left: 0; }
:lang(ru) .contact-heading { width: 360px; left: 30%; }
:lang(ru) .contact-heading h2 { font-size: 64px; }
:lang(ru) .contact-heading p { top: 150px; width: 220px; }
:lang(ru) .contact-actions { top: 232px; }

@media(max-width:1100px) {
  .wrap { width: calc(100% - 64px); }
  .project-caption { gap: 16px; }
  .project-caption h3 { font-size: 24px; }
  .job { grid-template-columns: 1fr 180px; }
  .portraits { gap: 10px; }
  .portrait { width: 96px; height: 96px; }
  .portrait-export { width: 120px; height: 120px; }
  .gallery figcaption { grid-template-columns: 1fr; gap: 10px; }
  .contact-heading { left: 30%; }
  .contact-actions { left: auto; right: 0; top: 260px; }
  .availability { left: 30%; }
  .article-caption { grid-template-columns: 1fr; gap: 14px; }
}
@media(max-width:800px) {
  .wrap { width: calc(100% - 40px); }
  .header { left: 20px; right: 20px; }
  .header nav { gap: 8px; }
  .hero-photo { top: 80px; width: 40%; height: calc(100% - 80px); }
  .hero-canvas { height: 100svh; min-height: 560px; max-height: 840px; }
  .hero h1 { font-size: min(9vw,10svh); }
  .ai-coded { left: 44%; top: 55%; }
  .digital { left: 59%; top: 66%; }
  .designer { left: auto; right: 4%; top: 77%; }
  .hero-scribble { left: 41%; top: 65%; width: 50%; height: 14%; }
  .location { left: 44%; bottom: 4%; }
  .sticker { width: 42px; border-radius: 9px; }
  .sticker-one { left: 81%; top: 23%; }
  .sticker-two { left: 54%; top: 36%; }
  .sticker-three { left: 82%; top: 46%; }
  .sticker-four { left: 82%; top: 66%; }
  .intro { grid-template-columns: 1fr 1fr; gap: 40px 20px; }
  .intro>.eyebrow { grid-column: 1; }
  .intro h2 { grid-column: 2; }
  .portraits { grid-column: 1; grid-row: 2; flex-wrap: wrap; align-content: start; }
  .intro-copy { grid-column: 2; grid-row: 2; }
  .statement { font-size: 28px; }
  .intro-copy>.eyebrow { margin-top: 32px; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .job { grid-template-columns: 1fr 220px; }
  .projects { padding-block: 64px; }
  .section-heading { width: 80%; }
  .filters { display: block; }
  .filters>.eyebrow { display: block; width: auto; margin-bottom: 14px; }
  .filter-buttons { gap: 8px; }
  .project-grid { gap: 36px 16px; }
  .project-caption { grid-template-columns: 1fr; gap: 12px; }
  .project-caption>div:first-child { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
  .project-caption .eyebrow { margin-top: 0; }
  .project-image { height: 200px; }
  .about-heading { margin-bottom: 48px; }
  .tool-stickers { margin-top: 28px; }
  .gallery { gap: 40px; }
  .gallery-feature { grid-template-columns: 1fr; }
  .instagram-note { min-height: 145px; padding-top: 40px; }
  .instagram-note>img { width: 160px; height: 160px; left: 57px; }
  .gallery-middle { grid-template-columns: 1fr 1fr; }
  .gallery-middle>div:first-child { gap: 36px; }
  .gallery-middle figure:first-child { width: 100%; }
  .gallery-middle figure>.picture { height: 35vw; }
  .gallery-middle>.architecture { grid-column: 1; grid-row: 2; height: 40vw; }
  .gallery-middle>.trees { grid-column: 2; grid-row: 1/3; min-height: 0; }
  .gallery-last { grid-template-columns: 1fr 1fr; gap: 20px; }
  .gallery-last .picture { height: 40vw; }
  .more .section-heading { width: 80%; margin-right: 0; }
  .more-grid { gap: 40px 20px; }
  .more-grid .article { grid-column: span 3; }
  .more-grid .article-blog { grid-column: 2/5; }
  .footer-inner { min-height: 510px; }
  .contact-heading { left: auto; right: 0; width: 280px; }
  .contact-heading h2 { font-size: 80px; }
  .contact-heading p { top: 114px; }
  .contact-actions { top: 280px; }
  .availability { top: 376px; right: 0; left: auto; }
  .footer-avatar { top: 378px; }
  .social-links { top: 442px; }
  :lang(ru) .contact-heading { left: auto; right: 0; width: 330px; }
  :lang(ru) .contact-actions { top: 290px; }
}
@media(max-width:480px) {
  .header { gap: 8px; }
  .header .name { max-width: 100px; line-height: 1.2; }
  .header .button,.header .language { padding: 8px 10px; }
  .header nav { gap: 6px; }
  .hero-canvas { min-height: 540px; }
  .hero h1 { font-size: min(10.5vw,9.5svh); }
  .sticker { width: 34px; }
  .sticker-four { left: 84%; }
  .hero-photo { width: 39%; }
  .ai-coded { left: 43%; }
  .location { left: 43%; }
  .intro { grid-template-columns: 1fr; gap: 28px; }
  .intro>.eyebrow,.intro h2,.portraits,.intro-copy { grid-column: 1; grid-row: auto; }
  .intro h2 { font-size: 48px; }
  .portraits { flex-wrap: nowrap; margin-block: 8px; }
  .statement { font-size: 30px; }
  .job { grid-template-columns: 1fr 1fr; gap: 14px; }
  .job h3 { font-size: 23px; gap: 8px; }
  .section-heading,.more .section-heading { width: 100%; }
  .section-heading h2 { font-size: 40px; }
  .project-grid { grid-template-columns: repeat(6,minmax(0,1fr)); }
  .project-grid .project:nth-child(n),.project-grid.is-filtered .project[data-layout] { grid-column: 1/7; }
  .project-grid .project:nth-child(2n),.project-grid.is-filtered .project[data-layout='1'],.project-grid.is-filtered .project[data-layout='3'] { grid-column: 2/7; }
  .project-grid.is-filtered .project[data-layout='2'] { grid-column: 1/6; }
  .project-image { height: auto; aspect-ratio: 1.45; }
  .project-caption h3 { font-size: 26px; }
  .gallery-opening { margin-left: 0; grid-template-columns: 1fr 1fr; gap: 14px; }
  .gallery-opening .picture,.gallery-opening .picture+.picture { grid-column: auto; }
  .gallery-last .picture { height: 52vw; }
  .more-grid .article,.more-grid .article-blog { grid-column: 1/7; }
  .article-caption { grid-template-columns: 1fr 1.1fr; gap: 20px; }
  .article-caption h3 { font-size: 26px; }
  .footer-inner { min-height: 600px; }
  .contact-heading { left: 0; right: auto; top: 44px; width: 280px; }
  .contact-actions { left: 0; right: auto; top: 250px; }
  .footer-inner nav { top: 340px; gap: 18px; }
  .availability { top: 340px; max-width: 165px; }
  .footer-avatar { top: 520px; }
  .social-links { top: 520px; }
  :lang(ru) .contact-heading { left: 0; right: auto; width: 100%; }
  :lang(ru) .contact-heading h2 { font-size: 56px; }
  :lang(ru) .contact-heading p { top: 130px; }
  :lang(ru) .contact-actions { top: 250px; }
}
@media(max-height:580px) and (min-width:801px) {
  .hero h1 { font-size: 12svh; }
  .location { bottom: 20px; }
}
@media(prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { transition: none!important; }
}

/* Annotation refinements: preserve the exported glyphs and tint only their pixels. */
.social-crop {
  background-color: var(--ink);
  mask-image: url('assets/758eb.svg');
  mask-size: 120px 24px;
  mask-repeat: no-repeat;
  transition: background-color .18s;
}
.social-crop img { visibility: hidden; }
.social-linkedin .social-crop { mask-position: -96px 0; }
.social-instagram .social-crop { mask-position: -48px 0; }
.social-threads .social-crop { mask-position: 0 0; }
.job h3,.article-maestra h3 { color: var(--ink); }
.more .section-heading>p,#caption4 { white-space: pre-line; }
.gallery-middle figure:nth-child(2) figcaption { align-items: center; }

/* Figma gallery exports already contain the intended rotation and crop. */
.gallery-middle>.architecture { align-self: start; }
.picture>.figma-gallery-image { inset: 0; width: 100%; height: 100%; object-fit: contain; }

.projects .section-heading>p { white-space: pre-line; }

/* The floating layer passes clicks through everywhere except the stickers. */
.hero-orbit.is-floating { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.hero-orbit.is-floating .sticker {
  position: absolute; left: 0; top: 0; width: clamp(40px, 4vw, 58px);
  pointer-events: auto; touch-action: none; user-select: none; -webkit-user-select: none;
  cursor: grab; will-change: transform; outline-offset: 4px;
}
.hero-orbit.is-floating .sticker.is-dragging { cursor: grabbing; z-index: 1; }
.hero-orbit.is-floating .sticker img { pointer-events: none; -webkit-user-drag: none; }
.hero-orbit.is-floating .sticker:focus-visible { outline: 2px solid var(--ink); }

.hero h1 .digital { white-space: nowrap; }
.hero h1 .board-letter { position: relative; display: inline-block; color: #162F42; }
.hero h1 .board-letter.is-settled { color: var(--yellow); }

.hero h1 > span, .hero .location { z-index: 2; pointer-events: none; }
.hero .header { z-index: 3; }
.hero h1 .board-letter { overflow: visible; vertical-align: top; transform-origin: left center; }

/* Natural glyph proportions throughout each flip; no horizontal scaling or clipping. */
.hero h1 .board-letter { display: inline-block; height: 1em; overflow: visible; vertical-align: top; }
.hero h1 .board-face { display: inline-block; font: inherit; line-height: inherit; transform-origin: center center; }

/* Both portrait silhouettes share one size and use the original image fills. */
.portrait-right { background: var(--cream); border-radius: 100px 100px 0 100px; }
.portrait-right img { inset: 0; width: 100%; height: 100%; object-fit: fill; object-position: bottom; }
.footer-avatar { object-fit: fill; object-position: bottom; background: var(--ink); }
.tool-stickers .picture { animation: tool-float 6s ease-in-out infinite; }
.tool-stickers .picture:nth-child(2n) { animation-delay: -2s; }
.tool-stickers .picture:nth-child(3n) { animation-delay: -4s; }
@keyframes tool-float { 0%,100% { translate: 0 0; rotate: -1deg; } 50% { translate: 0 -3px; rotate: 1deg; } }
@media(prefers-reduced-motion:reduce) { .tool-stickers .picture { animation: none; } }

@media(max-width:600px) {
  .hero-canvas { height: calc(100vw + 500px); min-height: 0; max-height: none; }
  .hero-photo { top: 0; left: 0; width: 100%; height: 100vw; object-fit: cover; object-position: center 46%; }
  .hero .header { top: calc(100vw + 20px); left: 20px; right: 20px; gap: 8px; }
  .header .name { max-width: 90px; }
  .header nav { gap: 6px; }
  .header .button,.header .language { padding: 8px 10px; }
  .hero h1 { font-size: min(13vw,64px); }
  .hero .ai-coded { left: 20px; top: calc(100vw + 145px); }
  .hero .designer { left: auto; right: 20px; top: calc(100vw + 315px); }
  .hero .location { left: 20px; bottom: 28px; }
  .hero-orbit.is-floating .sticker { width: 40px; }

  .gallery,.gallery-opening,.gallery-feature,.gallery-middle,.gallery-last,
  .gallery-middle>div:first-child { display: flex; flex-direction: column; gap: 32px; margin-left: 0; }
  .gallery figure,.gallery-middle figure:first-child { width: 100%; }
  .gallery .picture { width: 100%; height: auto !important; min-height: 0; aspect-ratio: 1/1 !important; }
  .gallery-feature figure>.picture { aspect-ratio: 797/452 !important; }
  .gallery-middle figure:nth-child(2)>.picture { aspect-ratio: 590/350 !important; }
  .gallery-middle>.architecture,.gallery-middle>.trees { aspect-ratio: 4/5 !important; }
  .gallery .picture>.figma-gallery-image { object-fit: cover; }
  .gallery figcaption { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 16px; }
  .gallery-middle figure:nth-child(2) figcaption { align-items: flex-start; }
  #caption4 { white-space: normal; }
  .gallery-feature { gap: 20px; }
  .gallery-feature figure { order: 0; }
  .instagram-note { order: 1; padding: 0; min-height: 0; width: 100%; align-items: center; }
  .instagram-note p { width: auto; white-space: normal; }

  .footer-inner { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 36px 20px; padding-block: 44px; min-height: 0; }
  .footer-inner .contact-heading { position: relative; inset: auto; grid-column: 1/-1; grid-row: 1; width: 100%; min-height: 190px; }
  .contact-heading h2 { font-size: clamp(66px,20vw,96px); width: max-content; max-width: 100%; text-align: right; }
  .contact-heading p { left: 0; top: calc(clamp(66px,20vw,96px) + 22px); width: 43%; }
  .footer-inner .contact-actions { position: static; grid-column: 1/-1; grid-row: 2; flex-wrap: wrap; }
  .footer-inner nav { position: static; grid-column: 1; grid-row: 3; gap: 18px; }
  .footer-inner .availability { position: relative; inset: auto; grid-column: 2; grid-row: 3; max-width: none; white-space: normal; padding-left: 12px; }
  .footer-inner .footer-avatar { position: static; grid-column: 1; grid-row: 4; width: 40px; height: 40px; }
  .footer-inner .social-links { position: static; grid-column: 2; grid-row: 4; align-self: center; justify-content: flex-start; padding-left: 12px; gap: 14px; }
  .footer-inner .social-link { width: 24px; height: 24px; }
  :lang(ru) .contact-heading h2 { font-size: clamp(42px,12vw,64px); }
  :lang(ru) .contact-heading p { position: static; width: 100%; margin-top: 20px; }
}

/* One compact navigation control, shared across screen sizes. */
.header .name { max-width: none; white-space: nowrap; }
.hero .header { z-index: 30; }
.menu-anchor { width: 98px; height: 44px; flex-shrink: 0; }
.menu-toggle { display: flex; align-items: center; justify-content: center; gap: 15px; width: 98px; height: 44px; border: 0; border-radius: 999px; background: white; color: var(--ink); font: inherit; cursor: pointer; box-shadow: 0 2px 12px #162f4208; }
.menu-toggle:hover { background: var(--yellow-hover); }
.menu-icon { width: 16px; height: 10px; border-top: 1.5px solid; border-bottom: 1.5px solid; transition: transform .2s; }
.menu-toggle[aria-expanded="true"] .menu-icon { transform: rotate(-45deg); height: 0; border-bottom: 0; }
.menu-toggle[aria-expanded="true"] .menu-icon::after { content: ''; display: block; border-top: 1.5px solid; transform: rotate(90deg) translateX(1px); }
.menu-anchor.is-docked .menu-toggle { position: fixed; left: 50%; bottom: max(20px,env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--ink); color: white; box-shadow: 0 4px 24px #162f4220; animation: menu-arrive .25s ease-out; }
.menu-panel { position: absolute; top: 56px; right: 0; width: 250px; padding: 20px; border-radius: 24px; background: white; box-shadow: 0 8px 40px #162f4220; }
.menu-panel[hidden] { display: none !important; }
.header .menu-panel nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.menu-panel nav>a:not(.button) { grid-column: 1/-1; padding: 8px 0; }
.menu-panel nav>a[href="#contact"] { grid-column: 1/-1; text-align: center; background: var(--cream); }
.menu-anchor.is-docked .menu-panel { position: fixed; top: auto; bottom: max(76px,calc(env(safe-area-inset-bottom) + 56px)); left: 50%; right: auto; transform: translateX(-50%); max-height: calc(100svh - 110px); overflow-y: auto; }
@keyframes menu-arrive { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }
@media(prefers-reduced-motion:reduce) { .menu-anchor.is-docked .menu-toggle { animation: none; } }
@media(max-width:600px) {
  .hero-canvas { height: calc(122.5vw + 417px); }
  .hero-photo { height: 122.5vw; object-position: center; }
  .hero .header { top: calc(122.5vw + 26px); left: 5%; right: 5%; }
  .header .name { max-width: none; font-size: 14px; white-space: nowrap; }
  .hero h1 { font-size: 13.05vw; }
  .hero .ai-coded { left: 34.09%; top: calc(122.5vw + 198px); }
  .hero .designer { left: 34.09%; right: auto; top: calc(122.5vw + 328px); }
  .hero .location { left: 5%; bottom: 34px; font-size: 12px; max-width: 25%; }
  .hero-orbit.is-floating .sticker { width: 33px; }
  .intro h2 { white-space: nowrap; font-size: clamp(30px,8vw,46px); }
  .intro p,.about-copy p,.gallery figcaption p { font-size: 14px; }
}

.menu-panel { box-sizing: border-box; max-height: calc(100svh - var(--menu-edge,64px) - 24px); overflow-y: auto; overscroll-behavior: contain; }

/* Header actions stay in place; the separate menu appears beyond the hero. */
.menu-anchor { position: absolute; width: 0; height: 0; }
.menu-anchor[hidden] { display: none !important; }
.header .header-actions { display: flex; gap: 12px; }
@media(max-width:600px) {
  .header .header-actions { gap: 5px; }
  .header .header-actions .button,.header .header-actions .language { padding: 9px 8px; font-size: 12px; }
  .header .name { font-size: 12px; }
}

/* Entrance/exit timing is controlled by navigation.js to match the reference. */
.menu-anchor.is-docked .menu-toggle { animation: none; bottom: max(60px,env(safe-area-inset-bottom)); }
.menu-anchor.is-docked .menu-panel { bottom: max(116px,calc(env(safe-area-inset-bottom) + 96px)); }

/* Keep the header in the text column, outside the photograph at every width. */
@media(min-width:601px) and (max-width:800px) {
  .hero-photo { top: 0; height: 100%; }
  .hero .header { left: calc(40% + 20px); right: 20px; gap: 8px; }
}
@media(min-width:601px) and (max-width:1000px) {
  .header .name { font-size: 12px; }
  .header .header-actions { gap: 5px; }
  .header .header-actions .button,.header .header-actions .language { padding: 9px 8px; font-size: 12px; }
}

/* One-shot entrance motion, with readable no-JS and reduced-motion fallbacks. */
.reveal-pending { opacity: 0; }
@media (hover:hover) and (prefers-reduced-motion:no-preference) {
  .button,.language,.filter-buttons button,.social-link { transition: background-color .2s, color .2s, translate .2s; }
  .button[href]:hover,.language:hover,.filter-buttons button:hover,.social-link:hover { translate: 0 -2px; }
  .article .picture img { transition: scale .5s cubic-bezier(.215,.61,.355,1); }
  .article:hover .picture img { scale: 1.025; }
}
@media(prefers-reduced-motion:reduce) { .reveal-pending { opacity: 1; } }
@media print { .reveal-pending { opacity: 1; } }

/* Mask each word without replacing the browser's responsive line wrapping. */
main .text-reveal-word { display: inline-block; overflow: hidden; vertical-align: bottom; padding-block: .12em; margin-block: -.12em; white-space: nowrap; color: inherit; font: inherit; }
main .text-reveal-inner { display: inline-block; color: inherit; font: inherit; }
@media print { main .text-reveal-inner { transform: none !important; } }

.article h3 { color: var(--ink); }
.about-copy .tool-stickers { margin-top: 32px; }
/* The navigation expands symmetrically around the viewport centre. */
.hero .header .menu-anchor.is-docked { position: fixed; left: 50%; bottom: max(30px,env(safe-area-inset-bottom)); transform: translateX(-50%); width: 184px; height: 64px; padding: 8px; display: flex; align-items: center; gap: 8px; background: var(--ink); color: white; border-radius: 999px; box-shadow: 0 4px 24px #162f4220; transition: width .5s cubic-bezier(.77,0,.175,1); }
.hero .header .menu-anchor.is-open { width: min(880px,calc(100vw - 24px)); }
.menu-logo { display: grid; place-items: center; flex: 0 0 48px; height: 48px; border-radius: 50%; background: var(--cream); }
.menu-logo span { width: 23px; height: 23px; background: var(--ink); border-radius: 35% 65% 60% 40%; transform: rotate(-25deg); }
.hero .header .menu-anchor .language { flex: 0 0 40px; padding: 0; height: 44px; color: white; background: transparent; }
.hero .header .menu-anchor .menu-toggle { position: static; flex: 0 0 44px; width: 44px; height: 44px; transform: none; background: transparent; color: white; box-shadow: none; }
.hero .header .menu-anchor .menu-panel { position: static; flex: 1 1 0; min-width: 0; width: auto; padding: 0; border-radius: 0; background: none; box-shadow: none; transform: none; max-height: none; overflow: auto hidden; scrollbar-width: none; }
.hero .header .menu-panel nav { display: flex; width: max-content; gap: 8px; align-items: center; }
.hero .header .menu-panel nav a { padding: 12px 8px; font-size: 13px; white-space: nowrap; color: white; background: transparent; }
.hero .header .menu-panel nav a:hover { background: #ffffff15; border-radius: 30px; }
.hero .header .menu-panel nav a[aria-disabled] { opacity: .4; }
@media(prefers-reduced-motion:reduce) { .hero .header .menu-anchor.is-docked { transition: none; } }
.hero .header .menu-anchor.is-docked { max-width: calc(100vw - 24px); box-sizing: border-box; }

.hero .header .menu-anchor.is-open { width: min(var(--menu-open-width,600px),calc(100vw - 24px)); }
.hero .header .menu-anchor:not(.is-open) { width: 164px; }

/* Equal strokes rotate around one shared centre for a clean close icon. */
.menu-toggle .menu-icon,.menu-toggle[aria-expanded="true"] .menu-icon { position: relative; width: 18px; height: 18px; border: 0; transform: none; }
.menu-toggle .menu-icon::before,.menu-toggle .menu-icon::after { content: ''; position: absolute; left: 0; top: 8px; width: 18px; height: 2px; border: 0; border-radius: 1px; background: currentColor; transition: transform .25s ease; }
.menu-toggle .menu-icon::before { transform: translateY(-3px); }
.menu-toggle .menu-icon::after { transform: translateY(3px); }
.menu-toggle[aria-expanded="true"] .menu-icon::before { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon::after { border: 0; transform: rotate(-45deg); }
@media(max-width:600px) {
  .filters { display: flex; align-items: center; gap: 14px; margin-right: -20px; }
  .filters>.eyebrow { flex: 0 0 auto; width: auto; margin: 0; white-space: nowrap; font-size: 12px; }
  .filter-buttons { flex: 1 1 auto; min-width: 0; flex-wrap: nowrap; overflow-x: auto; gap: 8px; padding: 3px 20px 3px 0; scrollbar-width: none; overscroll-behavior-x: contain; }
  .filter-buttons::-webkit-scrollbar { display: none; }
  .filter-buttons button { flex: 0 0 auto; white-space: nowrap; }
}

.project-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
@media(hover:hover) and (prefers-reduced-motion:no-preference) {
  .project { transition: transform .5s cubic-bezier(.16,1,.3,1); transform-origin: center; }
  .project:hover { transform: translateY(-6px); }
}

@media(hover:hover) and (prefers-reduced-motion:no-preference) {
  .project .project-image > img,.project .project-image > video { transition: transform .7s cubic-bezier(.16,1,.3,1); transform-origin: center; }
  .project:hover .project-image > img,.project:hover .project-image > video { transform: scale(1.06); }
  .project h3 { transition: opacity .4s ease; }
  .project:hover h3 { opacity: .7; }
}

/* Theme controls share one saved preference in the header and floating navigation. */
:root { color-scheme: light; --surface: #fff; }
:root[data-theme="dark"] { color-scheme: dark; --ink: #edf2f5; --muted: #a4afb7; --cream: #182936; --surface: #111d26; --yellow-hover: #3c4140; --blue-hover: #496779; }
body { background: var(--surface); }
.theme-toggle { display: inline-grid; place-items: center; position: relative; flex: 0 0 40px; width: 40px; height: 40px; padding: 10px; border-radius: 50%; background: transparent; color: var(--ink); }
.theme-toggle svg { grid-area: 1/1; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .theme-sun { display: none; }
[data-theme="dark"] .theme-toggle .theme-sun { display: block; }
[data-theme="dark"] .theme-toggle .theme-moon { display: none; }
.theme-toggle:hover { background: var(--yellow-hover); }
.hero .header .menu-anchor .theme-toggle { color: white; }
.hero .header .menu-anchor:not(.is-open) { width: 208px; }
[data-theme="dark"] .button,[data-theme="dark"] .language,[data-theme="dark"] .filter-buttons button { background: #263a49; color: var(--ink); }
[data-theme="dark"] .filter-buttons button[aria-pressed="true"] { background: var(--yellow); color: #162f42; }
[data-theme="dark"] .filter-buttons button[aria-pressed="true"]:hover { color: #162f42; }
[data-theme="dark"] .contact-actions .button,[data-theme="dark"] .instagram-note .button { background: #edf2f5; color: #162f42; }
[data-theme="dark"] .hero .header .menu-anchor { background: #263d4e; border: 1px solid #ffffff24; }
[data-theme="dark"] .menu-logo { background: #fff9e7; }
[data-theme="dark"] .menu-logo span { background: #162f42; }
[data-theme="dark"] .skip-link { background: #263a49; }
[data-theme="dark"] .article-caption>img { filter: brightness(1.6); }
.hero .header .menu-anchor :focus-visible { outline-color: #ffc629; }
@media(max-width:800px) and (min-width:601px) {
  .hero .header { flex-wrap: wrap; }
  .header .name { flex-basis: 100%; }
}
@media(max-width:600px) {
  .header .theme-toggle { width: 32px; height: 36px; flex-basis: 32px; padding: 7px; }
}
@media(max-width:380px) {
  .hero .header { flex-wrap: wrap; }
  .header .name { flex-basis: 100%; }
}

/* Palette from Figma 4138:4795. */
:root[data-theme="dark"] { --surface: #020f18; --cream: #001829; --ink: #fffbe4; --muted: #6e7c84; --yellow: #0078cc; --yellow-hover: #093552; }
[data-theme="dark"] .button,[data-theme="dark"] .language,[data-theme="dark"] .filter-buttons button { background: #020f18; }
[data-theme="dark"] .filter-buttons button[aria-pressed="true"],[data-theme="dark"] .filter-buttons button[aria-pressed="true"]:hover { background: #0078cc; color: #fffbe4; }
[data-theme="dark"] .contact-actions .button,[data-theme="dark"] .instagram-note .button { background: #fffbe4; color: #001829; }
[data-theme="dark"] .hero .header .menu-anchor { background: #001829; }
.theme-toggle { border: 1px solid #b9a79d; }
.theme-toggle .theme-moon { fill: currentColor; stroke: none; }
.theme-toggle .theme-sun circle { fill: currentColor; stroke: none; }
.theme-toggle .theme-sun path { stroke-width: 2; }
.theme-toggle .theme-sun { display: block; }
.theme-toggle .theme-moon { display: none; }
[data-theme="dark"] .theme-toggle { border-color: #4c4943; }
[data-theme="dark"] .theme-toggle .theme-sun { display: none; }
[data-theme="dark"] .theme-toggle .theme-moon { display: block; }
.hero .header .menu-anchor:not(.is-open) .theme-toggle { display: none; }
.hero .header .menu-anchor:not(.is-open) { width: 164px; }
/* Keep identity and actions on one line at every breakpoint. */
.theme-toggle { border: 0; }
.hero .header { flex-wrap: nowrap; justify-content: space-between; }
.header .name { flex: 0 0 auto; }
.header .header-actions { flex: 0 0 auto; margin-left: auto; }
@media(min-width:601px) and (max-width:800px) {
  .hero .header { left: calc(40% + 12px); right: 12px; gap: 6px; }
  .header .name { font-size: 11px; }
  .header .header-actions { gap: 3px; }
  .header .header-actions .button,.header .header-actions .language { font-size: 11px; padding: 8px 6px; }
  .header .header-actions .language { min-width: 32px; }
  .header .theme-toggle { flex-basis: 26px; width: 26px; height: 34px; padding: 4px; }
}
@media(max-width:380px) {
  .hero .header { left: 12px; right: 12px; gap: 5px; }
  .header .name { font-size: 11px; }
  .header .header-actions { gap: 3px; }
  .header .header-actions .button,.header .header-actions .language { padding: 8px 5px; font-size: 11px; }
  .header .header-actions .language { min-width: 30px; }
  .header .theme-toggle { width: 24px; flex-basis: 24px; padding: 3px; }
}

.hero .header .menu-anchor.is-open .menu-toggle { flex-basis: 48px; width: 48px; height: 48px; border-radius: 50%; background: #fff9e7; color: #162f42; }

.job-icon .mpp-logo-dark { display: none; }
[data-theme="dark"] .job-icon .mpp-logo-light { display: none; }
[data-theme="dark"] .job-icon .mpp-logo-dark { display: block; }

/* Dark theme palette from Figma 4138:5386. */
:root[data-theme="dark"] { --surface: #161513; --cream: #201f1c; --ink: #eff4f8; --muted: #6c7175; --yellow: #fca61c; --yellow-hover: #3c3020; --blue-hover: #49443c; }
[data-theme="dark"] .button,[data-theme="dark"] .language,[data-theme="dark"] .filter-buttons button { background: #161513; }
[data-theme="dark"] .filter-buttons button[aria-pressed="true"],[data-theme="dark"] .filter-buttons button[aria-pressed="true"]:hover { background: #fca61c; color: #161513; }
[data-theme="dark"] .contact-actions .button,[data-theme="dark"] .instagram-note .button { background: #eff4f8; color: #201f1c; }
[data-theme="dark"] .hero .header .menu-anchor { background: #201f1c; }
[data-theme="dark"] .skip-link { background: #201f1c; }
[data-theme="dark"] .menu-logo,[data-theme="dark"] .hero .header .menu-anchor.is-open .menu-toggle { background: #eff4f8; color: #201f1c; }
[data-theme="dark"] .menu-logo span { background: #201f1c; }

/* Header language control shares the adjacent button shape and hover palette. */
.header-actions .language { border-radius: 8px; }
.header .header-actions .language:hover,
.header .header-actions .language:focus-visible { background: var(--yellow-hover); }

/* Keep the light portrait artwork and framing; only the shadow adapts. */
[data-theme="dark"] .portrait { border-color: #fff; box-shadow: 0 11px 14px #00000045, 0 1px 6px #00000030; }
[data-theme="dark"] .portrait-right { background: #fff9e7; }

/* Keep the introductory statement readable on phones. */
@media (max-width: 559px) {
  .intro .intro-copy .statement { font-size: 23px; line-height: 1.2; }
  :lang(ru) .intro h2 { white-space: normal; }
}
/* Lenis smooth scroll (desktop only, see smooth-scroll.js) */
html.lenis,html.lenis body { height: auto; }
html.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* Same quiet hover as the links, on a true circle. */
html body .hero .header .menu-anchor .theme-toggle { flex: 0 0 40px; width: 40px; height: 40px; padding: 10px; border: 0; border-radius: 50%; }
html body .hero .header .menu-anchor .theme-toggle:hover { background: #ffffff15; }
/* The burger matches the header's: a long line over a short one, both flush left; it folds into a cross. */
.menu-toggle .menu-icon::before,.menu-toggle .menu-icon::after { height: 1.6px; border-radius: 1px; transition: transform .25s ease, width .25s ease; }
.menu-toggle .menu-icon::before { width: 18px; transform: translateY(-2.8px); }
.menu-toggle .menu-icon::after { width: 11px; transform: translateY(2.8px); }
.menu-toggle[aria-expanded="true"] .menu-icon::before { width: 18px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon::after { width: 18px; transform: rotate(-45deg); }
html body .hero .header .menu-anchor .language { flex: 0 0 40px; width: 40px; min-width: 40px; height: 40px; border-radius: 50%; }
html body .hero .header .menu-anchor .language:hover { background: #ffffff15; }

/* Wide screens: the content stays within 1600px, but the first-screen video or cover runs to the window's left edge and crops to fit. */
@media (min-width: 1601px) {
  .hero-canvas { --bleed: calc((100vw - 1600px) / 2); }
  .hero-canvas > .hero-photo, .hero-canvas > .case-cover { left: calc(-1 * var(--bleed)); }
  .hero-canvas > .hero-photo { width: calc(35.2778% + var(--bleed)); }
  .hero-canvas > .case-cover { width: calc(35.2083% + var(--bleed)); }
  .hero-canvas > .hero-ai-note { left: calc(16px - var(--bleed)); }
  /* the wider frame trims the cover's top and bottom; keep the penthouse.ae mark at the top intact */
}

/* Headings break into even lines; reading text avoids a lone last word. */
main p, main li { text-wrap: pretty; }

/* Hero word reels (word-board.js): each letter cell clips its spinning strip. */
.hero h1 .reel-cell { clip-path: inset(-.12em -.25em -.3em -.25em); }
.hero h1 .reel-strip { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; }
.hero h1 .reel-strip .board-face { display: block; height: 1.5em; }
