@charset "UTF-8";

:root {
    color-scheme: dark;
    --bg: #141513;
    --panel: #1b1c19;
    --text: #f0eee7;
    --muted: #aaa99f;
    --line: #363730;
    --accent: #efa36d;
    font-family: Arial, Helvetica, sans-serif;
    font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 40px; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
.icon { display: inline-block; width: 1em; height: 1em; flex-shrink: 0; vertical-align: -.125em; }
h1, h2, h3, h4, h5, p, figure { margin: 0; }
h1, h2, h3, h4, h5 { font-weight: 500; line-height: 1.08; }
p + p { margin-top: 18px; }
a, button, summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
::selection { background: var(--accent); color: var(--bg); }
[hidden] { display: none !important; }
.container { width: min(1200px, calc(100% - 96px)); margin-inline: auto; }
.muted { color: var(--muted); }
.eyebrow { font-family: Consolas, "Courier New", monospace; font-size: 11px; line-height: 1.5; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 10; top: 12px; left: 12px; padding: 10px 20px; background: var(--accent); color: var(--bg); transform: translateY(-150%); opacity: 0; pointer-events: none; }
.skip-link:focus { transform: none; opacity: 1; pointer-events: auto; }

/* Navigation and introduction */
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); }
.topbar { height: 88px; display: flex; align-items: center; gap: 40px; }
.brand { font-size: 19px; font-weight: bold; display: flex; align-items: center; gap: 12px; letter-spacing: -.04em; }
.brand-mark { display: grid; place-items: center; width: 31px; height: 31px; background: var(--accent); color: var(--bg); font-size: 27px; line-height: 1; }
.topbar nav { display: flex; gap: 32px; margin-left: auto; }
.nav-link { font-size: 13px; color: var(--muted); padding: 10px 0; }
.nav-link:hover { color: var(--text); }
.lang-toggle { border: 0; background: none; display: flex; gap: 8px; align-items: center; min-height: 44px; padding: 8px 0 8px 12px; font: 12px Consolas, monospace; color: #77796f; }
.lang-en, html[lang=ru] .lang-ru { color: var(--text); }
html[lang=ru] .lang-en { color: #77796f; }
.hero { display: grid; grid-template-columns: 1.55fr 1fr; gap: 64px; align-items: center; padding-block: 56px 36px; }
.hero h1 { font-size: clamp(68px,7.5vw,108px); line-height: .98; letter-spacing: -.065em; margin: 22px 0 26px; }
.hero-word { --glitch-color: var(--accent); position: relative; display: inline-block; white-space: nowrap; }
.hero-word--accent { color: var(--accent); --glitch-color: var(--text); }
.hero-letter { position: relative; }
.hero-letter.is-glitching { animation: hero-letter-glitch 660ms steps(1, end) both; }
.hero-word::before, .hero-word::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}
.hero-word::before { color: #63e6df; --slice-shift: -.075em; }
.hero-word::after { color: #ff647c; --slice-shift: .075em; }
.has-glitch .hero-word::before, .has-glitch .hero-word::after {
    animation: hero-glitch-slice 660ms steps(1, end) both;
}
.has-glitch .hero-word::after { animation-direction: reverse; }
@keyframes hero-glitch-slice {
    0%, 36%, 72%, 100% { opacity: 0; transform: none; clip-path: inset(0 0 100%); }
    10% { opacity: 1; transform: translateX(var(--slice-shift)); clip-path: inset(18% 0 58%); }
    22% { opacity: 1; transform: translateX(calc(var(--slice-shift) * -1)); clip-path: inset(58% 0 16%); }
    52% { opacity: 1; transform: translateX(var(--slice-shift)); clip-path: inset(42% 0 38%); }
    64% { opacity: 1; transform: translateX(calc(var(--slice-shift) * -.5)); clip-path: inset(72% 0 8%); }
}
@keyframes hero-letter-glitch {
    0%, 100% { color: inherit; left: 0; top: 0; text-shadow: none; }
    12% { color: var(--glitch-color); left: -.025em; top: .015em; text-shadow: -.045em 0 #63e6df, .045em 0 #ff647c; }
    28% { color: var(--glitch-color); left: .02em; top: -.015em; text-shadow: .025em 0 #63e6df, -.025em 0 #ff647c; }
    40% { color: var(--glitch-color); left: 0; top: 0; text-shadow: none; }
    56% { color: var(--glitch-color); left: -.015em; top: 0; text-shadow: -.035em 0 #63e6df, .035em 0 #ff647c; }
    72% { color: var(--glitch-color); left: 0; top: 0; text-shadow: none; }
}
.hero-focus { font-size: 20px; letter-spacing: -.02em; }
.hero-intro { color: var(--muted); max-width: 490px; font-size: 16px; line-height: 1.7; margin-top: 12px; }
.hero-copy > .eyebrow { font-size: 12px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; margin-top: 28px; }
.button { min-height: 48px; padding: 12px 20px; display: inline-flex; align-items: center; justify-content: center; gap: 22px; font-size: 13px; border: 1px solid var(--line); transition: background .2s, color .2s; }
.button.primary { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.button:hover { background: var(--text); color: var(--bg); }
.hero-links { display: flex; gap: 26px; margin-top: 26px; font-size: 12px; color: var(--muted); }
.text-link { font-size: 13px; display: inline-block; }
.text-link:hover { color: var(--accent); }
.hero-portrait { position: relative; max-width: 360px; justify-self: end; width: 100%; padding-top: 15px; }
.hero-portrait:before { content: ""; position: absolute; top: 0; right: -15px; width: 55%; height: 50%; border-top: 1px solid var(--accent); border-right: 1px solid var(--accent); z-index: -1; }
.hero-portrait img { width: 100%; aspect-ratio: 1; object-fit: cover; filter: saturate(.65); border-radius: 2px; }
.hero-portrait figcaption { display: flex; justify-content: space-between; margin-top: 16px; font: 10px Consolas, monospace; letter-spacing: .08em; color: var(--muted); }

/* Selected projects */
.section { padding-block: 72px; }
#work { padding-top: 30px; }
.section-heading { border-top: 1px solid var(--line); padding-top: 25px; margin-bottom: 48px; }
.section-heading h2 { font-size: clamp(28px,3.3vw,44px); letter-spacing: -.045em; margin-top: 14px; }
.section-heading .eyebrow { color: var(--accent); }
.project { display: grid; grid-template-columns: 1.1fr 1fr; grid-template-areas: "media heading" "media copy"; grid-template-rows: auto 1fr; gap: 18px 64px; align-items: start; }
.project-heading { grid-area: heading; }
.project-copy { grid-area: copy; min-width: 0; }
.project-media { grid-area: media; min-width: 0; align-self: center; }
.project + .project { margin-top: 88px; padding-top: 80px; border-top: 1px solid var(--line); }
.project-heading h3 { font-size: clamp(36px,4vw,52px); letter-spacing: -.045em; margin: 13px 0 12px; }
.project-lead { font-size: 21px; color: var(--text); letter-spacing: -.025em; }
.project-copy > p:not(.eyebrow):not(.project-lead) { font-size: 15px; color: var(--muted); margin-top: 14px; }
.project-role { font-size: 12px; color: var(--muted); }
.project-facts { margin: 26px 0 0; }
.project-facts > div { border-top: 1px solid var(--line); padding-top: 15px; margin-top: 16px; }
.project-facts dt { font-size: 12px; color: var(--accent); margin-bottom: 5px; }
.project-facts dd { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.7; }
.chromble-media { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; background: #222025; padding: 30px 26px; position: relative; }
.chromble-media .shot:nth-child(2) { margin-top: 40px; }
.chromble-media .shot:first-child { margin-bottom: 40px; }
.shot { display: block; position: relative; align-self: start; overflow: hidden; border-radius: 3px; background: #222; }
.shot img { width: 100%; transition: filter .2s; }
.shot:hover img { filter: brightness(1.08); }
.zoom { position: absolute; bottom: 12px; right: 12px; background: #141513d9; border: 1px solid #ffffff30; width: 30px; height: 30px; display: grid; place-items: center; font-size: 18px; line-height: 1; }
.chromble-media .zoom { bottom: 8px; right: 8px; }
.fireline { grid-template-columns: 1fr 1.25fr; grid-template-areas: "heading media" "copy media"; }
.fireline-thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.fireline-thumbs figcaption { color: var(--muted); font-size: 12px; margin-top: 8px; }
.gallery-link { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; margin-top: 8px; color: var(--accent); font-size: 12px; }
.gallery-link:hover { color: var(--text); }
.media-caption { font-size: 11px; color: var(--muted); margin-top: 16px; line-height: 1.6; }
.breakdown { margin-top: 25px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.breakdown summary { min-height: 54px; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 13px; cursor: pointer; padding: 12px 0; }
.breakdown summary::-webkit-details-marker { display: none; }
.breakdown summary:hover { color: var(--accent); }
.expand { color: var(--accent); font-size: 24px; line-height: 1; }
.breakdown[open] .expand { transform: rotate(45deg); }
.breakdown-body { padding: 0 0 23px; font-size: 14px; color: var(--muted); }
.breakdown-body p { line-height: 1.75; }
.pipeline { display: flex; padding: 0; list-style: none; gap: 0; margin: 26px 0; font: 11px/1.5 Consolas, "Courier New", monospace; }
.pipeline li { flex: 1; border: 1px solid var(--line); padding: 13px 20px 13px 13px; position: relative; color: var(--text); }
.pipeline li + li { border-left: 0; }
.pipeline li:not(:last-child):after {
    content: "";
    position: absolute;
    right: 5px;
    top: 50%;
    width: 12px;
    height: 12px;
    transform: translateY(-50%);
    background: var(--accent);
    --arrow-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14m-6-6 6 6-6 6' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    -webkit-mask: var(--arrow-mask) center / contain no-repeat;
    mask: var(--arrow-mask) center / contain no-repeat;
}

/* Commercial work and engineering */
.experience-section { background: var(--panel); margin-top: 12px; }
.experience-intro { display: grid; grid-template-columns: 1fr 1.65fr; gap: 80px; }
.experience-intro h3 { font-size: 42px; letter-spacing: -.04em; margin: 15px 0; }
.experience-intro .muted { font-size: 13px; }
.experience-lead { font-size: 24px; line-height: 1.5; letter-spacing: -.025em; }
.experience-list { padding-left: 18px; margin: 24px 0 0; font-size: 14px; color: var(--muted); }
.experience-list li { padding-left: 8px; margin-top: 10px; }
.experience-list li::marker { color: var(--accent); }
.vfx-heading { display: flex; justify-content: space-between; gap: 24px; align-items: center; margin: 52px 0 22px; }
.vfx-heading h4 { font-size: 17px; }
.vfx-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.vfx-preview { position: relative; overflow: hidden; }
.vfx-preview img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.play-icon { position: absolute; bottom: 12px; right: 12px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #141513bf; border: 1px solid #ffffff60; font-size: 25px; line-height: 1; }
.vfx-item:hover .play-icon { color: var(--bg); background: var(--accent); border-color: var(--accent); }
.vfx-caption { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-top: 15px; }
.vfx-caption h5 { font-size: 14px; }
.vfx-caption .muted { font: 10px Consolas, monospace; }
.engineering-row { display: grid; grid-template-columns: 1fr 1.65fr; gap: 80px; padding: 8px 0 48px; }
.engineering-row + .engineering-row { border-top: 1px solid var(--line); padding-top: 44px; }
.engineering-title h3 { font-size: 34px; letter-spacing: -.045em; line-height: 1.12; margin: 14px 0 22px; }
.engineering-title .text-link { color: var(--accent); }
.engineering-lead { font-size: 19px; line-height: 1.6; letter-spacing: -.015em; }
.engineering-copy .breakdown { border-bottom: 0; }
.tools-row { display: grid; grid-template-columns: 1fr 1.2fr auto; align-items: center; gap: 40px; padding: 30px 0; border-block: 1px solid var(--line); }
.tools-row h3 { font-size: 25px; margin-top: 8px; }
.tools-row p:not(.eyebrow) { font-size: 14px; color: var(--muted); }
.tools-row .text-link { color: var(--accent); white-space: nowrap; }

.approach-section { padding-top: 0; }
.approach-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; }
.approach-grid article { border-top: 1px solid var(--line); padding-top: 22px; }
.approach-grid h3 { font-size: 18px; line-height: 1.35; margin-bottom: 14px; }
.approach-grid p { font-size: 14px; line-height: 1.7; color: var(--muted); }
@media (max-width: 800px) {
    .approach-grid { grid-template-columns: 1fr; gap: 24px; }
    .approach-grid article { padding-top: 18px; }
    .approach-grid h3 { margin-bottom: 10px; }
}

/* Contact and media viewer */
.contact-section { padding: 72px 0 80px; background: var(--accent); color: var(--bg); margin-top: 12px; }
.contact-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 110px; }
.contact-section .eyebrow { color: #54402f; }
.contact-section h2 { font-size: clamp(34px,4vw,54px); letter-spacing: -.05em; line-height: 1.1; margin: 20px 0; }
.contact-section p:not(.eyebrow) { font-size: 15px; max-width: 520px; }
.contact-section .media-caption { font-size: 11px !important; color: #554331; }
.contact-links { align-self: center; }
.contact-link { display: flex; justify-content: space-between; gap: 15px; align-items: center; padding: 22px 0; border-bottom: 1px solid #14151340; font-size: 20px; letter-spacing: -.02em; }
.contact-link:first-child { border-top: 1px solid #14151340; }
.contact-link small { display: block; font-size: 12px; letter-spacing: 0; overflow-wrap: anywhere; margin-top: 5px; }
.contact-link > span:last-child { font-size: 27px; }
.contact-link:hover { color: #67442a; }
.contact-section a:focus-visible { outline-color: var(--bg); }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 90px; font: 11px Consolas, monospace; color: var(--muted); }
.site-footer .text-link { font-size: 11px; }
.media-dialog { position: fixed; max-width: calc(100vw - 32px); width: 1100px; max-height: calc(100dvh - 32px); padding: 18px 22px; color: var(--text); background: var(--panel); border: 1px solid var(--line); overflow: auto; }
.media-dialog::backdrop { background: #000d; }
.dialog-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 12px; }
.dialog-toolbar h2 { font-size: 14px; line-height: 1.4; max-width: 85%; color: var(--muted); }
.dialog-close { width: 44px; height: 44px; flex-shrink: 0; border: 1px solid var(--line); background: transparent; font-size: 28px; }
.dialog-content { display: flex; justify-content: center; }
.dialog-content img { max-height: calc(100dvh - 220px); width: auto; object-fit: contain; }
.dialog-content iframe { width: 100%; aspect-ratio: 16/9; border: 0; max-height: calc(100dvh - 220px); background: #090909; }
.dialog-footer { display: flex; justify-content: center; align-items: center; gap: 24px; margin-top: 14px; font-size: 13px; }
.dialog-footer button { background: none; border: 1px solid var(--line); min-width: 44px; min-height: 44px; }
.video-external { color: var(--accent); }
body.has-dialog { overflow: hidden; }

@media (min-width: 1500px) {
    .hero { padding-block: 64px 44px; }
    .hero-portrait { max-width: 390px; }
}
@media (max-width: 1050px) {
    .container { width: calc(100% - 64px); }
    .hero { gap: 36px; grid-template-columns: 1.5fr 1fr; padding-block: 58px; }
    .hero h1 { font-size: 80px; }
    .hero-focus { font-size: 17px; }
    .hero-portrait { max-width: 290px; }
    .project, .fireline { column-gap: 34px; }
    .chromble-media { padding: 20px 18px; gap: 12px; }
    .experience-intro, .engineering-row { gap: 45px; }
    .contact-layout { gap: 55px; }
    .vfx-caption { align-items: start; flex-direction: column; gap: 6px; }
    .topbar { gap: 26px; }
    .topbar nav { gap: 22px; }
}
@media (max-width: 800px) {
    .hero h1 { font-size: 64px; }
    .hero { gap: 32px; grid-template-columns: 1.45fr 1fr; }
    .hero-intro { font-size: 14px; }
    .hero-focus { font-size: 16px; }
    .hero-portrait:before { right: -9px; }
    .project, .fireline { grid-template-columns: 1fr; grid-template-rows: auto; grid-template-areas: "heading" "media" "copy"; gap: 24px; }
    .project-media { width: 100%; }
    .project-heading h3 { font-size: 38px; }
    .project-lead { font-size: 18px; }
    .project-copy > p:not(.eyebrow):not(.project-lead) { font-size: 14px; }
    .project-facts dd { font-size: 13px; }
    .chromble-media { padding: 24px; gap: 18px; max-width: 520px; justify-self: center; }
    .chromble-media .shot:nth-child(2) { margin-top: 25px; }
    .chromble-media .shot:first-child { margin-bottom: 25px; }
    .section { padding-block: 54px; }
    .section-heading { margin-bottom: 36px; }
    .experience-intro, .engineering-row { grid-template-columns: 1fr 1.6fr; gap: 32px; }
    .experience-lead { font-size: 20px; }
    .engineering-lead { font-size: 17px; }
    .contact-layout { gap: 40px; }
    .contact-section h2 { font-size: 36px; }
    .contact-link { font-size: 18px; }
    .tools-row { gap: 28px; grid-template-columns: 1fr 2fr; }
    .tools-row > .text-link { grid-column: 2; }
    .topbar { gap: 20px; }
    .topbar nav { gap: 18px; }
    .nav-link { font-size: 12px; }
    .vfx-grid { gap: 16px; }
}
@media (max-width: 600px) {
    html { scroll-padding-top: 24px; }
    .container { width: calc(100% - 40px); }
    .topbar { height: auto; min-height: 96px; flex-wrap: wrap; gap: 6px; padding-block: 13px; }
    .brand { font-size: 17px; }
    .brand-mark { width: 26px; height: 26px; font-size: 23px; }
    .topbar nav { order: 3; width: 100%; justify-content: space-between; gap: 12px; }
    .nav-link { font-size: 12px; padding: 5px 0; }
    .lang-toggle { margin-left: auto; padding-left: 12px; min-height: 32px; }
    .hero { display: block; padding-block: 28px 16px; position: relative; }
    .hero .eyebrow { font-size: 10px; letter-spacing: .08em; max-width: 230px; }
    .hero h1 { font-size: 56px; margin: 20px 0; max-width: 270px; }
    .hero-focus { font-size: 16px; max-width: 300px; }
    .hero-intro { font-size: 14px; max-width: 100%; line-height: 1.6; }
    .hero-portrait { position: absolute; right: 0; top: 60px; width: 66px; padding: 0; }
    .hero-portrait img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; }
    .hero-portrait:before, .hero-portrait figcaption { display: none; }
    .hero .actions { gap: 10px; margin-top: 18px; }
    .button { font-size: 12px; padding: 11px 14px; gap: 12px; min-height: 44px; }
    .hero-links { font-size: 12px; gap: 24px; margin-top: 18px; }
    #work { padding-top: 16px; }
    .section { padding-block: 32px; }
    .section-heading { padding-top: 20px; margin-bottom: 27px; }
    .section-heading h2 { font-size: 30px; line-height: 1.13; max-width: 340px; }
    .section-heading .eyebrow { font-size: 10px; }
    .project, .fireline { grid-template-columns: 1fr; gap: 25px; }
    .chromble-media { padding: 22px 20px; gap: 15px; max-width: 440px; width: 100%; justify-self: center; }
    .project-heading h3 { font-size: 36px; margin-top: 10px; }
    .project-heading .eyebrow { font-size: 10px; }
    .project-lead { font-size: 20px; }
    .project-facts { margin-top: 20px; }
    .project-facts dd { font-size: 14px; }
    .project + .project { margin-top: 44px; padding-top: 34px; }
    .fireline-thumbs { gap: 10px; margin-top: 10px; }
    .experience-section { margin-top: 24px; padding-block: 38px; }
    .experience-intro { grid-template-columns: 1fr; gap: 23px; }
    .experience-intro h3 { font-size: 36px; margin: 10px 0; }
    .experience-lead { font-size: 20px; }
    .experience-list { margin-top: 18px; }
    .vfx-heading { margin-top: 32px; align-items: start; }
    .vfx-heading h4 { font-size: 16px; max-width: 200px; line-height: 1.4; }
    .vfx-grid { grid-template-columns: 1fr; gap: 25px; }
    .vfx-caption { flex-direction: row; align-items: center; }
    .vfx-caption h5 { font-size: 16px; }
    .engineering-row { grid-template-columns: 1fr; gap: 23px; padding-bottom: 30px; }
    .engineering-row + .engineering-row { padding-top: 28px; }
    .engineering-title h3 { font-size: 32px; margin: 12px 0 16px; }
    .engineering-lead { font-size: 17px; }
    .pipeline { font-size: 11px; margin-block: 22px; }
    .pipeline li { padding: 11px 16px 11px 9px; }
    .tools-row { grid-template-columns: 1fr; gap: 18px; padding-block: 25px; }
    .tools-row > .text-link { grid-column: 1; }
    .contact-section { margin-top: 24px; padding-block: 38px; }
    .contact-layout { grid-template-columns: 1fr; gap: 30px; }
    .contact-section h2 { font-size: 37px; max-width: 360px; }
    .contact-section p:not(.eyebrow) { font-size: 14px; }
    .contact-link { padding-block: 18px; }
    .site-footer { min-height: 76px; }
    .media-dialog { padding: 10px 12px; max-width: calc(100vw - 16px); }
    .dialog-toolbar h2 { font-size: 12px; }
    .dialog-content img, .dialog-content iframe { max-height: calc(100dvh - 190px); }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *:before, *:after { animation: none !important; transition: none !important; }
}
