﻿@font-face {
  font-family: Unbounded;
  src: url("assets/unbounded-cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 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-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
:root {
  color-scheme: dark;
  --ink: #10100f;
  --paper: #edeae3;
  --type: #f3f1ea;
  --muted: #b6b5ac;
  --line: #383834;
  --orange: #ff6037;
  --focus: #ff926e;
  --display: Unbounded, "Arial Black", Arial, sans-serif;
  --body: "Segoe UI", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
body { margin: 0; background: var(--ink); color: var(--type); font: 1rem/1.52 var(--body); }
body:has(dialog[open]) { overflow: hidden; }
img { display: block; max-width: 100%; }
p, h1, h2, h3, figure, ol, ul { margin: 0; }
a { color: inherit; text-underline-offset: .25em; }
button { cursor: pointer; font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
section[tabindex="-1"]:focus, main:focus { outline: none; }
::selection { background: var(--orange); color: var(--ink); }
.wrap { width: min(calc(100% - clamp(40px, 8.6vw, 150px)), 1550px); margin-inline: auto; }
.skip-link { position: fixed; z-index: 20; inset: .6rem auto auto .6rem; transform: translateY(-150%); padding: .7rem 1rem; background: var(--paper); color: var(--ink); }
.skip-link:focus { transform: none; }
.accent, .wordmark span { color: var(--orange); }
.paper .accent { color: #bc3c1c; }
.eyeline { display: flex; align-items: center; gap: .65rem; color: var(--muted); font: 600 .795rem/1.4 var(--body); text-transform: uppercase; letter-spacing: .12em; }
.eyeline::before { content: ""; width: 1.55rem; height: 2px; flex: none; background: var(--orange); }
.wordmark { display: inline-block; width: fit-content; text-decoration: none; font: 720 clamp(1.18rem,1.7vw,1.6rem)/1 var(--display); letter-spacing: -.052em; }
.site-header { border-bottom: 1px solid var(--line); position: relative; z-index: 3; }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.4rem; min-height: 74px; }
.main-nav { display: flex; align-items: center; gap: clamp(1.25rem,2.6vw,3rem); }
.nav-link, .nav-contact, .text-link { display: inline-flex; align-items: center; min-height: 44px; width: fit-content; text-decoration: none; font-weight: 600; position: relative; }
.nav-link, .nav-contact { font-size: .94rem; }
.nav-link::after, .text-link::after { content: ""; position: absolute; bottom: .5rem; inset-inline: 0; height: 1px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .23s; }
.nav-link:is(:hover,:focus-visible,[aria-current])::after, .text-link::after { transform: scaleX(1); }
.text-link:hover { color: var(--orange); }
.nav-contact { border: 1px solid #6a6962; border-radius: 2px; padding-inline: 1.1rem; transition: border-color .2s; }
.nav-contact:hover { border-color: var(--orange); }
.menu-toggle { display: none; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 1.15rem; min-height: 50px; width: fit-content; padding: .7rem 1.15rem; border-radius: 2px; text-decoration: none; font-weight: 720; }
.primary { background: var(--orange); color: #150e09; transition: background .22s, transform .22s; }
.primary:hover { background: #ff7957; }
.primary:active { transform: translateY(2px); }
.primary span { font-size: 1.2em; line-height: 1; }
.hero { overflow: clip; border-bottom: 1px solid var(--line); }
.hero-scene { position: relative; isolation: isolate; padding-block: clamp(1.4rem,2.4vw,2.4rem) clamp(2.8rem,4.9vw,5rem); container-type: inline-size; }
.hero-eyeline { color: #c4c3bc; margin-bottom: clamp(.7rem,1.5vw,1.3rem); }
.masthead { overflow: clip; padding-bottom: .04em; font: 850 16cqw/.95 var(--display); letter-spacing: -.052em; margin-left: -.025em; }
.masthead > span { display: block; width: max-content; transform: scaleX(var(--word-fit,.95)); transform-origin: left; }
.hero-copy { position: relative; z-index: 2; width: 41%; margin-top: clamp(3rem,6vw,6.25rem); }
.hero-copy h2 { font: 550 clamp(1.75rem,3.1vw,3.5rem)/1.13 var(--display); letter-spacing: -.042em; }
.hero-copy p { max-width: 33rem; color: #c2c0b8; margin-top: 1.05rem; font-size: clamp(1rem,1.27vw,1.17rem); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: clamp(1.2rem,1.9vw,1.9rem); }
.works { padding-block: clamp(4.5rem,8vw,8.25rem); }
.section-title, .contact-title { font: 580 clamp(2.3rem,5.8vw,5.85rem)/1.055 var(--display); letter-spacing: -.047em; }
.section-intro { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(0,.65fr); gap: 1.1rem 3rem; align-items: end; margin-bottom: clamp(2.15rem,4.6vw,4rem); }
.section-intro .eyeline { grid-column: 1 / -1; }
.intro-text { max-width: 25rem; color: var(--muted); margin-bottom: .35rem; }
.work-grid { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); align-items: start; gap: clamp(2.5rem,6vw,5.5rem) clamp(1.5rem,5.5vw,5.7rem); }
.work-card { min-width: 0; }
.work-card:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0,1.84fr) minmax(0,.8fr); gap: clamp(2rem,5vw,5.5rem); align-items: center; }
.work-card:nth-child(odd):not(:first-child) { padding-top: clamp(3rem,7.5vw,8.6rem); }
.mockup-link { display:block; position: relative; width:100%; margin:0; padding:0; border:0; border-radius: 1px; color:inherit; background:transparent; text-align:inherit; }
.mockup-link::after { content:""; position:absolute; inset:0; border:1px solid #faf7ed20; pointer-events:none; transition: border-color .2s; }
.mockup-link:hover::after { border-color:#d7cfbd; }
.work-meta { display: grid; justify-items: start; padding-block: 1.05rem 0; }
.work-card:first-child .work-meta { border-top: 1px solid var(--line); padding-top: 1.25rem; }
.work-label { display:flex; flex-wrap:wrap; align-items:center; gap: .35rem .7rem; font-size:.87rem; color:var(--muted); }
.work-kind { color: #ffd4c4; border: 1px solid #795043; border-radius: 2px; padding: .1rem .42rem; }
.work-title { margin-top: .75rem; font: 560 clamp(2.05rem,3.6vw,4.2rem)/1.06 var(--display); letter-spacing:-.043em; }
.work-task { margin-top: .57rem; max-width: 34rem; color: var(--muted); }
.project-button { margin-top:.75rem; padding:.25rem 0; border:0; min-height:44px; color:var(--type); font-size:.95rem; font-weight:650; background: transparent; text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: .38em; }
.project-button:hover { color:var(--orange); }
.fallback-projects { display:grid; gap:1rem; padding:0; list-style:none; }
.fallback-projects img { max-height:20rem; margin-bottom:.5rem; }

.services { padding-block: clamp(3.2rem,7.4vw,7.2rem); border-top: 1px solid var(--line); background:#171715; }
.service-layout, .about-layout { display:grid; grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr); align-items:start; gap:clamp(2.25rem,6vw,6.5rem); }
.service-layout .section-title, .about-copy .section-title { margin-top: 1.2rem; font-size: clamp(2.3rem,4.8vw,4.75rem); }
.service-list { border-bottom:1px solid #45453e; }
.service-list details { border-top:1px solid #45453e; }
.service-list summary { display:flex; align-items:center; justify-content:space-between; gap:1rem; list-style:none; min-height:64px; cursor:pointer; padding:clamp(1rem,2vw,1.6rem) 0; font:500 clamp(1.12rem,2vw,1.86rem)/1.24 var(--display); letter-spacing:-.037em; }
.service-list summary::-webkit-details-marker { display:none; }
.service-list summary::after { content:"+"; color:var(--orange); font:400 1.5rem/1 var(--body); width:1.5rem; text-align:center; }
.service-list details[open] summary::after { content:"−"; }
.service-list details p { max-width:38rem; color:var(--muted); margin: -.18rem 2rem 1.35rem 0; }
.service-list summary:hover { color:#ffd6c7; }

.paper { background:var(--paper); color:var(--ink); color-scheme:light; --focus:#853815; }
.paper .eyeline { color:#4f4d46; }
.paper .eyeline::before { background:#be421e; }
.process { padding-block:clamp(4rem,8vw,8.25rem) clamp(3.2rem,6vw,6rem); }
.process .section-title { margin-top:1.3rem; }
.steps { list-style:none; padding:0; margin-top:clamp(2.1rem,4.5vw,4.2rem); display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:clamp(1.35rem,4vw,4.5rem); }
.steps li { border-top:1px solid #97978c; padding-top:1rem; }
.step-count { display:block; color:#874123; font-size:.88rem; font-weight:720; font-variant-numeric:tabular-nums; margin-bottom:clamp(1.25rem,2.4vw,2.4rem); }
.steps h3 { font:530 clamp(1.15rem,1.8vw,1.75rem)/1.23 var(--display); letter-spacing:-.039em; }
.steps p { margin-top:.65rem; max-width:26rem; color:#474740; }
.steps strong { display:inline-block; margin-top:.75rem; font-weight:720; text-decoration:underline; text-decoration-color:#c74520; text-underline-offset:.32em; }
.about { padding-bottom:clamp(3.8rem,7vw,7rem); }
.about-layout { align-items:center; border-top:1px solid #b2b0a7; padding-top:clamp(2.8rem,6vw,6rem); grid-template-columns:minmax(0,.84fr) minmax(0,1.16fr); }
.about-image { overflow:hidden; }
.about-image img { width:100%; height:auto; aspect-ratio:1.17; object-fit:cover; }
.about-copy p:not(.eyeline) { color:#44443d; max-width:36rem; margin-top:1rem; font-size:clamp(1rem,1.3vw,1.14rem); }
.about-copy strong { color:var(--ink); }
.contact { padding-block:clamp(4.2rem,8.4vw,8.5rem) clamp(2.4rem,5vw,5.4rem); }
.contact-layout { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(0,.65fr); gap: 1.4rem 3rem; align-items:end; }
.contact-layout .eyeline, .channels { grid-column:1 / -1; }
.contact-title { font-size:clamp(3rem,7.5vw,7.25rem); }
.contact-title em { color:var(--orange); font-style:normal; }
.contact-body { padding-bottom:.2rem; }
.contact-body p { max-width:25rem; color:var(--muted); font-size:clamp(1rem,1.4vw,1.2rem); }
.contact-body .button { margin-top:1.1rem; }
.channels { display:grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap:1rem 2.2rem; margin-top:clamp(1.6rem,3.8vw,3.5rem); }
.channels a { text-decoration:none; display:grid; grid-template-columns:1fr; justify-items:start; gap:.23rem; padding:.85rem 0; border-top:1px solid var(--line); transition:border-color .22s; }
.channels a:hover { border-color:var(--orange); }
.channels span { font-size:.87rem; color:var(--muted); }
.channels strong { font-weight:650; font-size:clamp(1rem,1.6vw,1.35rem); }
.site-footer { border-top:1px solid var(--line); }
.footer-inner .text-link { font-size:.9rem; }

.project-dialog { --focus:#a1421a; color-scheme:light; color:var(--ink); background:#f4f1ea; border:1px solid #a6a39b; padding:0; border-radius:5px; width:min(970px,calc(100% - 2rem)); max-width:none; max-height:90dvh; overflow:auto; }
.project-dialog::backdrop { background:#080807da; }
.dialog-top { display:flex; justify-content:space-between; align-items:center; gap:.75rem; padding:.65rem clamp(.95rem,3vw,2rem); border-bottom:1px solid #c7c4bc; background:#f4f1ea; position:sticky; top:0; z-index:3; }
#project-type { color:#514e46; font-size:.9rem; }
.dialog-close, .device-selector button { min-height:44px; border:1px solid #96938b; background:transparent; color:var(--ink); padding:.42rem .85rem; font-weight:650; }
.dialog-close span { margin-left:.4rem; }
.dialog-close:hover, .device-selector button:hover { background:#dedbd1; }
.dialog-body { padding:clamp(1rem,3.3vw,2.2rem); }
#project-title { margin-bottom:1.1rem; font:590 clamp(2rem,4.7vw,4.2rem)/1.06 var(--display); letter-spacing:-.039em; }
.device-selector { display:flex; justify-content:flex-end; margin-bottom:.6rem; }
.device-selector button + button { margin-left:-1px; }
.device-selector button[aria-pressed="true"] { background:var(--ink); color:white; border-color:var(--ink); }
.dialog-stage { padding:clamp(.3rem,.7vw,.55rem); background:#ccc9c0; }
#demo-frame { width:100%; margin-inline:auto; }
#demo-frame[data-mode="phone"] { max-width:320px; }
.dialog-info { display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr); gap:1.35rem 2.2rem; margin-top:1.65rem; }
.dialog-info h3 { margin-bottom:.5rem; font:570 1.12rem/1.25 var(--display); letter-spacing:-.045em; }
.dialog-info p { color:#49473f; }
.dialog-info ul { display:grid; gap:.7rem; padding-left:1.1rem; }
.dialog-info li::marker { color:#b74423; }
#project-site { margin-top:1rem; }

@media (prefers-reduced-motion:no-preference) {
  @keyframes headline-in { from { opacity:.35; translate:0 62%; } to { opacity:1; translate:0; } }
  @keyframes enter-in { from { opacity:.15; translate:0 1.5rem; rotate:-4deg; } to { opacity:1; translate:0; rotate:0deg; } }
  @keyframes reveal-up { from { opacity:.6; translate:0 1rem; } to { opacity:1; translate:0; } }
  @keyframes reveal-image { from { clip-path:inset(0 0 8% 0); } to { clip-path:inset(0); } }
  .masthead > span { animation:headline-in .85s cubic-bezier(.16,.78,.2,1) both; }
  .hero-copy { animation:reveal-up .7s .07s ease-out both; }
  .has-entered .work-meta { animation:reveal-up .6s ease-out both; }
  .has-entered .mockup-link, .about-image.has-entered img { animation:reveal-image .8s cubic-bezier(.18,.8,.25,1) both; }
}

@media (max-width:1000px) {
  .wrap { width:calc(100% - 3.5rem); }
  .hero-copy { width:46%; margin-top:2.4rem; }
  .hero-actions { gap:.3rem .9rem; }
  .work-card:first-child { grid-template-columns:minmax(0,1.45fr) minmax(0,.8fr); gap:1.6rem; }
  .service-layout, .about-layout { gap:2.3rem; }
  .section-intro { grid-template-columns:1.2fr .8fr; gap:1rem 2rem; }
  .contact-layout { grid-template-columns:1.15fr .85fr; }
}
@media (max-width:700px) {
  .wrap { width:calc(100% - 2.15rem); }
  .header-inner { min-height:60px; flex-wrap:wrap; padding-block:.32rem; gap:.2rem; }
  .menu-toggle:not([hidden]) { display:flex; gap:.65rem; align-items:center; min-height:44px; color:var(--type); background:transparent; border:0; padding:.25rem .12rem .25rem .6rem; }
  .menu-bars { width:19px; height:7px; border-block:1px solid var(--type); transition:height .2s; }
  .menu-toggle[aria-expanded="true"] .menu-bars { height:1px; border-bottom:0; border-color:var(--orange); }
  .main-nav { width:100%; display:flex; flex-wrap:wrap; gap:.25rem 1rem; padding-block:.2rem .7rem; }
  .menu-toggle:not([hidden]) + .main-nav { display:grid; grid-template-columns:1fr 1fr; }
  .main-nav .nav-contact { justify-self:start; }
  .hero-scene { display:grid; grid-template-columns:minmax(0,1fr); grid-template-areas:"eyeline" "name" "object" "copy"; padding-block:1.25rem 2.1rem; }
  .hero-eyeline { grid-area:eyeline; margin-bottom:.7rem; font-size:.74rem; }
  .masthead { grid-area:name; }
  .hero-copy { grid-area:copy; width:100%; max-width:33rem; margin-top:.35rem; }
  .hero-copy h2 { font-size:clamp(1.75rem,6.4vw,2.7rem); }

  .hero-copy p { margin-top:.65rem; }
  .hero-actions { margin-top:1rem; gap:.3rem 1.15rem; }
  .works, .process { padding-top:3.65rem; }
  .section-intro, .service-layout, .about-layout, .contact-layout, .dialog-info { grid-template-columns:minmax(0,1fr); }
  .section-intro { gap:.85rem; }
  .work-grid, .work-card:first-child { display:grid; grid-template-columns:minmax(0,1fr); }
  .work-card:first-child { gap:0; }
  .work-card:first-child .work-meta { border-top:0; }
  .work-card:nth-child(odd):not(:first-child) { padding-top:0; }
  .work-grid { row-gap:2.45rem; }
  .work-meta { padding-top:1rem; }
  .services { padding-block:3.35rem; }
  .service-layout { gap:1.8rem; }
  .steps { grid-template-columns:1fr; gap:1.2rem; }
  .steps li { display:grid; align-items:baseline; grid-template-columns:2.15rem minmax(0,1fr); gap:.55rem .5rem; }
  .step-count { margin:0; }
  .steps p, .steps strong { grid-column:2; margin:0; }
  .about-layout { gap:1.5rem; }
  .about-image img { aspect-ratio:1.55; }
  .about-copy .section-title { margin-top:.9rem; }
  .contact-layout { gap:1rem; }
  .channels { grid-template-columns:1fr; gap:0; margin-top:1.25rem; }
  .channels a { display:flex; align-items:center; justify-content:space-between; min-height:55px; }
  .footer-inner { min-height:65px; }
  .project-dialog { width:calc(100% - 1rem); max-height:94dvh; }
}
@media (prefers-reduced-motion:reduce) {
  *, *::before, *::after { scroll-behavior:auto !important; animation:none !important; transition:none !important; }
}
