@font-face{font-family:Unbounded;src:url(assets/unbounded-cyr.woff2) format("woff2");font-style:normal;font-weight:500 900;font-display:swap;unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:Unbounded;src:url(assets/unbounded-lat.woff2) format("woff2");font-style:normal;font-weight:500 900;font-display:swap;unicode-range:U+0000-00FF,U+0152-0153,U+2000-206F,U+20AC,U+2191,U+2193,U+2212}
@font-face{font-family:Golos;src:url(assets/golos-cyr.woff2) format("woff2");font-style:normal;font-weight:400 800;font-display:swap;unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:Golos;src:url(assets/golos-lat.woff2) format("woff2");font-style:normal;font-weight:400 800;font-display:swap;unicode-range:U+0000-00FF,U+0152-0153,U+2000-206F,U+20AC,U+2191,U+2193,U+2212}
@font-face{font-family:Golos;src:url(assets/golos-cyr-ext.woff2) format("woff2");font-style:normal;font-weight:400 800;font-display:swap;unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}
:root {
  --paper: #f3f2ee;
  --ink: #191918;
  --orange: #ff5432;
  --muted: #595852;
  --line: #c9c7bf;
  --pad: clamp(20px, 4.1vw, 82px);
  --display: Unbounded, Arial, sans-serif;
  --body: Golos, Arial, sans-serif;
}
:root:lang(kk) { --display: Golos, Arial, sans-serif; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.53 var(--body); }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button, summary { cursor: pointer; }
a { color: inherit; text-underline-offset: .24em; }
p, h1, h2, h3, figure, dl, dd { margin: 0; }
h1, h2, h3 { font-family: var(--display); }
h2 { font-size: clamp(2.15rem, 5.3vw, 5.85rem); line-height: 1.06; letter-spacing: -.038em; font-weight: 720; overflow-wrap: anywhere; }
h1 b, h2 b { color: var(--orange); font-weight: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
.work :focus-visible, .lab :focus-visible { outline-color: var(--orange); }
.wrap { width: min(100% - var(--pad) * 2, 1650px); margin-inline: auto; }
.block { padding-block: clamp(74px, 9.1vw, 142px); }
.eyebrow { font-size: .8125rem; line-height: 1.4; font-weight: 610; letter-spacing: .075em; text-transform: uppercase; }
.section-label { margin-bottom: 20px; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 20; top: 10px; left: 10px; background: var(--paper); padding: 10px; }
.spark { width: 1.45em; height: 1.45em; flex: none; position: relative; display: inline-block; vertical-align: middle; }
.spark i { position: absolute; inset: calc(50% - .052em) 0 auto; height: .104em; background: currentColor; }
.spark i:nth-child(2) { rotate: 45deg; }
.spark i:nth-child(3) { rotate: 90deg; }
.spark i:nth-child(4) { rotate: 135deg; }
.plus { display: inline-block; position: relative; width: 1em; height: 1em; flex: none; transition: rotate .24s; }
.plus::before, .plus::after { content: ''; position: absolute; left: 0; top: calc(50% - 1px); width: 100%; height: 2px; background: currentColor; }
.plus::after { rotate: 90deg; }
.action { display: inline-flex; min-height: 52px; width: fit-content; align-items: center; justify-content: center; gap: .75em; padding: .8em 1.2em; background: var(--ink); color: var(--paper); border: 1px solid var(--ink); text-decoration: none; font-weight: 650; line-height: 1.2; transition: color .2s, background .2s, border-color .2s; }
.action:hover { background: var(--paper); color: var(--ink); }
.action-accent { background: var(--orange); color: var(--ink); border-color: var(--orange); }
.action-accent:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.action-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.action-outline:hover { background: var(--ink); color: var(--paper); }

.masthead { min-height: 81px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: .62rem; font-family: var(--display); font-size: .84rem; font-weight: 740; text-decoration: none; letter-spacing: -.025em; min-height: 44px; }
.brand .spark { color: #c82e12; font-size: 1.08rem; }
.masthead nav { display: flex; align-items: center; gap: clamp(19px, 3.2vw, 53px); font-weight: 560; }
.masthead nav a { min-height: 44px; display: flex; align-items: center; text-decoration: none; white-space: nowrap; }
.masthead nav a:hover { text-decoration: underline; }
.masthead .header-contact { border: 1px solid var(--ink); padding: 0 15px; }
.masthead .header-contact[href="#brief"] { font-weight: 650; }
.masthead .header-contact:hover { background: var(--ink); color: var(--paper); text-decoration: none; }
.menu-toggle { border: 0; margin-left: auto; padding: 10px 0 10px 10px; min-height: 44px; background: transparent; align-items: center; gap: 9px; font-weight: 600; }
.menu-toggle[aria-expanded=true] .plus { rotate: 45deg; }

.hero { display: grid; grid-template-columns: minmax(0, .87fr) minmax(0, 1.13fr); column-gap: clamp(22px, 3vw, 50px); padding-top: clamp(30px, 4.1vw, 67px); }
.hero-copy { position: relative; z-index: 1; padding-block: clamp(3px, 1.3vw, 21px) 28px; align-self: center; }
.hero-label { display: flex; align-items: center; gap: .65rem; }
.hero-label span { width: 19px; height: 2px; background: #d32b10; flex: none; }
.hero h1 { margin: clamp(26px, 3.35vw, 51px) 0 25px -.07em; font-size: clamp(3.9rem, 7.5vw, 8.3rem); font-weight: 850; line-height: .96; letter-spacing: -.047em; }
.hero h1 span { display: block; white-space: nowrap; }
.hero h1 b { margin-left: .025em; }
.hero-lead { max-width: 33ch; margin-bottom: 26px; font-size: clamp(1.05rem, 1.42vw, 1.34rem); line-height: 1.46; }
.hero-art { position: relative; overflow: hidden; background: #dddcd8; min-height: 360px; align-self: stretch; }
.hero-art img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.hero-art figcaption { position: absolute; bottom: 0; right: 0; display: flex; align-items: center; gap: 9px; background: var(--orange); color: var(--ink); padding: 12px 14px; font-size: .8125rem; font-weight: 640; }
.hero-art figcaption .spark { font-size: .72rem; }
.hero-footer { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 69px; color: var(--muted); font-size: .875rem; padding-block: 13px; }
.hero-footer a { padding-block: 8px; }

.work { background: var(--ink); color: var(--paper); }
.work .block { padding-top: clamp(64px, 7vw, 112px); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: clamp(26px, 3.4vw, 50px); }
.section-head p { color: #c3c0b9; padding-bottom: .45em; }
.project-grid { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr); align-items: start; gap: clamp(24px, 4vw, 65px); }
.project:nth-child(2n) { margin-top: clamp(40px, 7vw, 110px); }
.project-link { display: block; text-decoration: none; }
.project-visual { display: grid; place-items: center; aspect-ratio: 1.44; overflow: hidden; padding: 8%; background: #bfbbb1; }
.project-visual.enertek { background: #9cacc1; }
.project-visual img { width: 100%; height: 100%; min-height: 0; object-fit: contain; filter: drop-shadow(0 12px 18px #241e183a); transition: transform .48s cubic-bezier(.2,.7,.25,1); }
.project-link:hover img { transform: scale(1.036); }
.project-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 0; border-bottom: 1px solid #575651; }
.project-meta h3 { font-size: clamp(1.08rem, 2vw, 1.95rem); font-weight: 650; letter-spacing: -.055em; }
.project-meta p { color: #c3c0b9; margin-top: 3px; }
.project-open { width: 46px; height: 46px; border: 1px solid #797770; flex: none; display: grid; place-items: center; transition: color .2s, background .2s, border-color .2s; }
.project-link:hover .project-open { background: var(--orange); color: var(--ink); border-color: var(--orange); }
.case-content { padding-top: 12px; }
.case-text p + a { display: inline-flex; margin-top: 22px; }
.case-intro { font-size: 1.2rem; }

.about { display: grid; grid-template-columns: minmax(0, .35fr) minmax(0, 1.65fr); gap: 35px; }
.about .section-label { padding-top: 10px; }
.about h2 { font-size: clamp(2.2rem, 4.5vw, 5.2rem); max-width: 17ch; }
.about-prose { display: grid; grid-template-columns: repeat(2, 1fr); gap: 27px; margin-block: 32px 15px; max-width: 850px; }
.skills { grid-column: 2; border-top: 1px solid var(--line); }
.skills div { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 10px; align-items: baseline; padding-block: 17px; border-bottom: 1px solid var(--line); }
.skills dt { font-weight: 680; }
.skills dd { color: var(--muted); }

.lab { background: #222321; color: var(--paper); }
.lab-head { display: grid; grid-template-columns: 1.5fr .5fr; align-items: end; gap: 25px; margin-bottom: 36px; }
.lab-head > p { max-width: 36ch; color: #d0cec6; }
.instrument { display: grid; grid-template-columns: minmax(0, 1fr) clamp(220px, 24%, 320px); border: 1px solid #696861; }
.lab-stage { position: relative; min-width: 0; min-height: 340px; background: #161715; display: grid; place-items: center; overflow: hidden; }
.lab-stage canvas { width: 100%; height: auto; display: none; }
.lab-stage.ready canvas { display: block; }
.lab-stage.ready .lab-fallback { display: none; }
.lab-fallback { color: var(--orange); font: 750 clamp(2rem, 10vw, 7rem)/1 var(--display); letter-spacing: -.07em; }
.lab-controls { border-left: 1px solid #696861; padding: clamp(16px, 2vw, 31px); display: flex; flex-direction: column; gap: 9px; font-size: .925rem; }
.lab-controls > label { display: flex; justify-content: space-between; gap: 6px; }
.lab-controls > :is(input, fieldset) { margin-bottom: 12px; }
.lab-controls input[type=text] { padding: .5em .65em; color-scheme: dark; border: 1px solid #85847d; background: #181916; width: 100%; border-radius: 0; }
.lab-controls input[type=range] { width: 100%; min-height: 20px; accent-color: var(--orange); cursor: ew-resize; }
.lab-controls fieldset { display: flex; gap: 8px; padding: 0; border: 0; margin-inline: 0; }
.lab-controls legend { margin-bottom: 7px; padding: 0; }
.swatch { display: inline-flex; }
.swatch input { appearance: none; display: grid; place-items: center; width: 36px; height: 36px; margin: 0; border: 1px solid #8e8d85; background: var(--swatch); cursor: pointer; }
.swatch input:checked::after { content: ''; width: 13px; height: 13px; border: 2px solid var(--ink); border-radius: 50%; }
.swatch.red { --swatch: #ff6845; }
.swatch.mint { --swatch: #bcf2c0; }
.swatch.paper { --swatch: #f1eee0; }
.lab-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; margin-top: auto; }
.lab-actions button { min-height: 44px; padding: 5px 8px; border: 1px solid #85847d; background: transparent; }
.lab-actions button:hover { color: var(--ink); background: var(--paper); }
.lab-actions #lab-save { background: var(--orange); color: var(--ink); border-color: var(--orange); }
.lab-actions #lab-save:hover { background: var(--paper); border-color: var(--paper); }

.process { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(34px, 6vw, 96px); }
.process h2 { font-size: clamp(2.15rem, 4.25vw, 4.9rem); }
.steps { border-top: 1px solid var(--line); }
.steps details { border-bottom: 1px solid var(--line); }
.steps summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 0; font-weight: 660; }
.steps summary::-webkit-details-marker { display: none; }
.steps details[open] .plus { rotate: 45deg; }
.steps details p { padding-bottom: 18px; color: var(--muted); max-width: 49ch; }
.contact { background: var(--orange); position: relative; }
.legacy-anchor { position: absolute; top: 0; }
.contact .block { padding-bottom: 0; }
.contact h2 { font-size: clamp(2.85rem, 9.4vw, 10rem); font-weight: 830; }
.contact-main { display: flex; justify-content: space-between; align-items: end; gap: 19px; padding: 30px 0 24px; }
.contact-main p { max-width: 39ch; font-size: 1.15rem; }
.contact-actions, .contact-secondary { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 19px; }
.contact-secondary { padding-bottom: 30px; }
.contact-secondary a, .direct-email { display: inline-flex; align-items: center; min-height: 44px; }
.contact-socials { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.contact-socials a { width: 44px; justify-content: center; border: 1px solid currentColor; text-decoration: none; }
.contact-socials a:hover { color: var(--orange); background: var(--accent-ink, var(--ink)); border-color: var(--accent-ink, var(--ink)); }
.max-brand-icon { flex: 0 0 21px; width: 21px; height: 21px; background: currentColor; mask: url(assets/max-logo.svg) center / contain no-repeat; }
.ending { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid #842c1b; padding-block: 12px; }
.ending .spark { color: var(--ink); }
.ending > a:last-child { padding-block: 10px; }

dialog { border: 1px solid var(--ink); background: var(--paper); color: var(--ink); width: min(100% - 26px, 780px); max-width: none; max-height: min(92dvh, 930px); padding: 0; }
dialog::backdrop { background: rgb(18 18 17 / 78%); }
body:has(dialog[open]) { overflow: hidden; }
.dialog-bar { position: sticky; top: 0; z-index: 1; display: flex; justify-content: flex-end; background: var(--paper); border-bottom: 1px solid var(--line); }
.dialog-bar button { display: inline-flex; align-items: center; min-height: 46px; gap: .6em; padding-inline: 15px; background: transparent; border: 0; }
.dialog-bar button .plus { rotate: 45deg; }
.dialog-bar button:hover { text-decoration: underline; }
.dialog-bar button:focus-visible { outline-offset: -5px; }
.case-modal-image { width: 100%; height: auto; max-height: 46vh; object-fit: contain; background: #e4e0d7; }
.case-modal-copy, .brief-inner { padding: clamp(20px, 5vw, 50px); }
.case-modal-copy h2, .brief-inner h2 { font-size: clamp(1.8rem, 5vw, 3.6rem); margin-bottom: 17px; }
.brief-inner > p { max-width: 50ch; }
#brief-form { display: grid; gap: 14px; margin-top: 24px; }
#brief-form label { display: grid; gap: 4px; font-weight: 570; }
#brief-form :is(input, select, textarea) { border: 1px solid #7d7a72; background: #faf9f5; padding: 10px; width: 100%; font-weight: 400; border-radius: 0; }
#brief-form textarea { resize: vertical; }
.brief-actions { display: flex; flex-wrap: wrap; gap: 8px; }
#brief-status:empty { display: none; }

@media (min-width: 1120px) {
  .hero-art { min-height: 465px; }
}
@media (max-width: 920px) {
  .hero h1 { font-size: clamp(3.45rem, 8.15vw, 5.1rem); }
  .hero-art { min-height: 390px; }
  .about { grid-template-columns: minmax(0, .26fr) minmax(0, 1.74fr); }
  .project-meta p { font-size: .94rem; }
}
@media (max-width: 720px) {
  .masthead { min-height: 64px; flex-wrap: wrap; gap: 0; }
  .enhanced-nav .masthead { position: relative; }
  .menu-toggle:not([hidden]) { display: inline-flex; }
  .masthead nav { width: 100%; flex-wrap: wrap; gap: 4px 19px; padding-bottom: 10px; }
  .masthead nav a { min-height: 44px; }
  .enhanced-nav .masthead nav { display: none; }
  .enhanced-nav .masthead nav.is-open {
    position: absolute;
    inset: calc(100% + 6px) 0 auto auto;
    z-index: 5;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 4px;
    width: max-content;
    max-width: 100%;
    max-height: calc(100dvh - 76px);
    overflow-y: auto;
    overscroll-behavior-y: contain;
    padding: 8px;
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: 0 9px 22px #0002;
  }
  .enhanced-nav .masthead nav.is-open a { flex: none; padding: 8px 12px; white-space: normal; }
  .enhanced-nav .masthead nav.is-open a:focus-visible { outline-offset: -2px; }
  .masthead .header-contact { padding: 0; border: 0; }
  .masthead .header-contact[href="#brief"] {
    justify-content: center;
    padding-inline: 14px;
    text-align: center;
    border: 1px solid var(--ink);
  }
  .masthead .header-contact:hover { color: var(--ink); background: transparent; text-decoration: underline; }
  .hero { display: block; padding-top: 27px; }
  .hero-copy { padding-top: 0; padding-bottom: 25px; }
  .hero h1 { margin-top: 23px; margin-bottom: 17px; font-size: clamp(3rem, 12.1vw, 5.5rem); letter-spacing: -.047em; }
  .hero-lead { margin-bottom: 18px; }
  .hero-art { height: auto; min-height: 0; aspect-ratio: 1.48; }
  .hero-art figcaption { padding: 8px 10px; }
  .hero-footer { min-height: 56px; padding-block: 8px; font-size: .8125rem; container-type: inline-size; }
  .hero-footer a[href="#about"] { display: none; }
  .hero-disciplines {
    flex: 1;
    font-size: clamp(.75rem, var(--disciplines-size, 5.7cqi), 1.125rem);
    text-wrap: balance;
  }
  .hero-disciplines:lang(ru) { --disciplines-size: 4.25cqi; }
  .hero-disciplines:lang(en) { --disciplines-size: 4.35cqi; }
  .hero-disciplines:lang(fr) { --disciplines-size: 5.2cqi; }
  .block { padding-block: 62px; }
  .section-head { align-items: start; flex-direction: column; gap: 9px; }
  .section-head p { padding: 0; }
  .project-grid { display: block; }
  .project:nth-child(2n) { margin-top: 30px; }
  .about { display: block; }
  .about .section-label { padding-top: 0; }
  .about-prose { grid-template-columns: 1fr; gap: 11px; margin: 20px 0 28px; }
  .skills div { grid-template-columns: 1fr; gap: 2px; padding-block: 15px; }
  .lab-head { display: block; margin-bottom: 23px; }
  .lab-head > p { margin-top: 12px; }
  .instrument { grid-template-columns: 1fr; }
  .lab-stage { min-height: 0; aspect-ratio: 1000 / 560; }
  .lab-controls { border-left: none; border-top: 1px solid #696861; }
  .process { grid-template-columns: 1fr; }
  .contact-main { align-items: start; flex-direction: column; padding: 19px 0 16px; }
}
@media (max-width: 370px) {
  .hero-label { font-size: .75rem; }
  .hero-footer { flex-wrap: wrap; gap: 0 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
