@font-face {
  font-family: "Golos Text";
  src: url("assets/golos-text.ttf") format("truetype");
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/ibm-plex-mono.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
:root {
  --paper: #f5f2e9;
  --ink: #171815;
  --orange: #ff5b2a;
  --rust: #a63113;
  --muted: #58564e;
  --line: #c8c3b8;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --side: clamp(1rem, 4.6vw, 4.5rem);
  --space: clamp(3.5rem, 9vw, 8.5rem);
  color-scheme: light;
  font-family: "Golos Text", Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
}
*, *::before, *::after { box-sizing: border-box; }
::selection { background: var(--orange); color: var(--ink); }
body { margin: 0; }
a { color: inherit; }
button, textarea, input, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
a:active, button:active { color: var(--rust); }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { font-weight: 780; }
h1 span, h2 span { color: var(--rust); }
.frame { width: min(100% - 2 * var(--side), 89rem); margin-inline: auto; }
.skip { position: fixed; z-index: 3; top: .5rem; left: .5rem; padding: .8rem; background: var(--paper); transform: translateY(-150%); }
.skip:focus { transform: none; }
.site-header, .site-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; }
.masthead, .hero-stage { background: var(--ink); color: var(--paper); }
.site-header { border-bottom: 1px solid #49473f; }
.masthead .brand-domain, .masthead .mark i:first-child { color: var(--orange); }
.masthead .outline { color: var(--paper); border-color: #777268; }
.brand { display: inline-flex; align-items: center; flex: none; font-size: 1.42rem; letter-spacing: -.06em; font-weight: 850; text-decoration: none; }
.brand-domain { color: var(--rust); }
.mark { display: grid; gap: .16rem; width: 1.3rem; margin-right: .5rem; transform: skewY(-16deg); }
.mark i { display: block; height: .2rem; background: currentColor; }
.mark i:first-child { color: var(--rust); }
.site-header nav { display: flex; align-items: center; gap: clamp(.9rem, 3vw, 3rem); }
.site-header nav a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration-thickness: 1px; text-decoration-color: transparent; text-underline-offset: .3em; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .75rem 1.2rem; border: 1px solid transparent; text-decoration: none; text-align: center; font-weight: 700; }
.button:active { transform: translateY(1px); }
.primary { background: var(--orange); color: var(--ink); }
.outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.label { font: 500 .875rem/1.45 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.signal { display: inline-block; width: .58rem; height: .58rem; margin-right: .35rem; background: var(--rust); }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .96fr);
  gap: 0 clamp(1.25rem, 4vw, 4.25rem);
  padding-top: clamp(1.5rem, 4vw, 4.1rem);
}
.hero-copy { align-self: center; padding-block: clamp(1.4rem, 3vw, 3.1rem); }
.hero-copy .label { color: #ddd5c5; }
.hero .signal { background: var(--orange); }
.hero h1 { margin-block: 1.15rem 1.5rem; font-size: clamp(3.25rem, 7.05vw, 8rem); letter-spacing: -.082em; line-height: .92; }
.hero h1 span { color: var(--orange); }
.intro { max-width: 32rem; color: #cec8bb; font-size: clamp(1.06rem, 1.55vw, 1.3rem); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.1rem; margin-top: 1.65rem; }
.hero-link { padding: .65rem .1rem; text-underline-offset: .25em; font-weight: 650; }
.hero-art { position: relative; overflow: hidden; min-height: 25rem; aspect-ratio: 1.1; isolation: isolate; border: 1px solid #4e4a41; color: var(--paper); }
.hero-art img { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-art figcaption { position: absolute; inset: auto 0 0; padding: .8rem 1rem; border-top: 1px solid #5b5549; background: #171815e8; color: #fffaf0; font: 500 .81rem/1.4 var(--mono); }
.corner { position: absolute; width: .8rem; height: .8rem; border-color: #f5f2e9a6; border-style: solid; }
.corner-top { top: 1rem; left: 1rem; border-width: 1px 0 0 1px; }
.corner-bottom { top: 1rem; right: 1rem; border-width: 1px 1px 0 0; }
.hero-strip { grid-column: 1 / -1; display: grid; grid-template-columns: .9fr 1.1fr 1fr; gap: 1px; background: #49473f; border-block: 1px solid #49473f; margin-top: clamp(1.5rem, 4vw, 4.1rem); }
.hero-strip > div { display: grid; gap: .35rem; align-content: center; background: var(--ink); padding: clamp(.85rem, 2.2vw, 1.5rem) clamp(.65rem, 2vw, 1.8rem); }
.hero-strip > div:first-child { padding-left: 0; }
.hero-strip strong { font-size: clamp(.96rem, 1.8vw, 1.38rem); font-weight: 730; }
.hero-strip span { color: #cec8bb; font: 500 clamp(.76rem, 1.2vw, .875rem)/1.45 var(--mono); }
.band { display: grid; grid-template-columns: .73fr 1.27fr; gap: clamp(1.6rem, 5vw, 6rem); padding-block: var(--space); }
.section-lead .label, .contact .label { margin-bottom: .85rem; }
h2 { font-size: clamp(2.8rem, 5.35vw, 6.2rem); line-height: .96; letter-spacing: -.075em; }
.section-lead > p:last-child:not(.label) { margin-top: 1.35rem; max-width: 25rem; line-height: 1.55; }
.services, .process { padding-block: var(--space); }
.services-heading { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: clamp(1.4rem, 4vw, 3.2rem); }
.services-heading .label { margin-bottom: .85rem; }
.services-heading > p { max-width: 23rem; color: var(--muted); line-height: 1.55; }
.service-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; padding: 1px; background: var(--line); }
.service-tabs button { position: relative; min-height: 3.4rem; padding: .7rem .5rem .85rem; border: 0; color: var(--ink); background: #f8f5ed; font-weight: 700; }
.service-tabs button[aria-selected="true"] { color: var(--paper); background: var(--ink); }
.service-tabs button[aria-selected="true"]::after { position: absolute; inset: auto 0 0; height: .2rem; background: var(--orange); content: ""; }
.service-tabs button:focus-visible { z-index: 1; outline: 2px solid var(--rust); outline-offset: -4px; }
.service-tabs button[aria-selected="true"]:focus-visible { outline-color: var(--orange); }
.service-panel { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(1rem, 4vw, 4.25rem); min-height: 16rem; align-items: center; padding: clamp(1rem, 3vw, 2.6rem); border: 1px solid var(--line); border-top: 0; background: #fbf8f0; }
.service-panel[hidden] { display: none; }
.service-panel:focus-visible { outline-offset: -3px; }
.service-copy h3, .process h3 { font-size: clamp(1.35rem, 2.45vw, 2.1rem); line-height: 1.12; letter-spacing: -.051em; }
.service-copy p { margin-block: .75rem 1.15rem; color: var(--muted); line-height: 1.55; }
.service-flow { overflow: hidden; display: grid; align-content: center; gap: .9rem; padding: clamp(.9rem, 2.6vw, 1.8rem); border: 1px solid #403d35; background-color: var(--ink); background-image: radial-gradient(#60574b 1px, transparent 1px); background-size: 15px 15px; color: var(--paper); }
.service-flow figcaption, .service-flow > p { color: #dcd3c2; font: 500 .78rem/1.45 var(--mono); }
.service-flow ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; margin: 0; padding: 0; list-style: none; }
.service-flow li { position: relative; display: grid; place-items: center; min-height: 4rem; padding: .4rem; border: 1px solid #817460; background: #282620; text-align: center; font: 500 clamp(.74rem, 1.24vw, .88rem)/1.35 var(--mono); overflow-wrap: anywhere; }
.service-flow li:nth-child(2) { color: var(--ink); border-color: var(--orange); background: var(--orange); }
.service-flow li + li::before { content: ""; position: absolute; top: 50%; left: -.85rem; width: .85rem; border-top: 1px solid #ff8c61; }
.stack dl { border-top: 1px solid var(--ink); }
.stack dd { color: var(--muted); line-height: 1.55; }
.process { border-top: 1px solid var(--line); }
.process .section-lead { margin-bottom: clamp(1.4rem, 4vw, 3rem); }
.process ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 4vw, 4rem); margin: 0; padding: 0; list-style: none; counter-reset: work; }
.process li { border-top: 1px solid var(--ink); padding-top: 1rem; counter-increment: work; }
.process li::before { content: counter(work, decimal-leading-zero); display: block; margin-bottom: .65rem; color: var(--rust); font: 500 .86rem/1.4 var(--mono); }
.process li p { margin-top: .65rem; color: var(--muted); line-height: 1.55; }
.experience { background: var(--ink); color: var(--paper); }
.experience h2 span, .experience .label { color: #ff8259; }
.experience .section-lead > p:last-child { color: #cbc5b9; }
.case-list { border-top: 1px solid #77736a; }
.case-list details { border-bottom: 1px solid #77736a; }
.case-list summary { display: flex; align-items: center; justify-content: space-between; gap: .9rem; padding-block: 1.15rem; cursor: pointer; list-style: none; font-size: clamp(1.12rem, 1.8vw, 1.6rem); font-weight: 680; letter-spacing: -.03em; }
.case-list summary::-webkit-details-marker { display: none; }
.case-list summary::after { content: "+"; color: #ff8259; font: 500 1.55rem/1 var(--mono); }
.case-list details[open] summary::after { content: "−"; }
.case-list details div { max-width: 38rem; padding-bottom: 1.35rem; line-height: 1.55; color: #e2dbcf; }
.case-list details .label { margin-top: .8rem; font-size: .82rem; }
.stack dl > div { display: grid; grid-template-columns: 1fr 1.65fr; gap: 1rem; padding-block: 1.05rem; border-bottom: 1px solid var(--line); }
.stack dt { font-weight: 680; }
.contact { background: var(--orange); padding-block: clamp(2.8rem, 7vw, 7rem); }
.contact-inner { display: grid; grid-template-columns: 1.25fr .75fr; align-items: end; gap: clamp(1.4rem, 4vw, 4rem); }
.contact h2 span { color: currentColor; }
.contact-actions { display: grid; justify-items: start; gap: .75rem; }
.contact-actions p { max-width: 27rem; line-height: 1.55; }
.contact-email { font-size: clamp(1.25rem, 2vw, 1.7rem); font-weight: 700; text-underline-offset: .2em; }
.contact .button { margin-top: .3rem; color: var(--paper); background: var(--ink); border-color: var(--ink); }
.site-footer { min-height: 5.7rem; }
.site-footer > a[href^="mailto:"] { font-size: .88rem; color: var(--muted); text-underline-offset: .23em; }
dialog { width: min(32rem, 100% - 1.5rem); max-height: calc(100dvh - 1.5rem); padding: clamp(1.1rem, 4vw, 2rem); border: 1px solid var(--ink); background: var(--paper); color: var(--ink); }
dialog::backdrop { background: #1c1c19bc; }
dialog h2 { font-size: 2.15rem; margin-bottom: .65rem; padding-right: 2.4rem; }
dialog p { color: var(--muted); line-height: 1.5; }
.close { position: absolute; top: .6rem; right: .6rem; width: 44px; height: 44px; border: 1px solid var(--line); background: transparent; color: var(--ink); font-size: 1.5rem; }
dialog label { display: block; margin-top: .8rem; font-weight: 680; }
dialog label span { color: var(--muted); font-weight: 400; }
dialog input, dialog select, dialog textarea { width: 100%; margin-top: .3rem; padding: .65rem; border: 1px solid #77736a; background: #fcfaf5; color: var(--ink); }
dialog textarea { resize: vertical; }
.brief-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1rem; }
.feedback { margin-top: .55rem; }
.feedback:empty { margin: 0; }
@media (hover: hover) {
  .site-header nav a:hover { text-decoration-color: var(--orange); }
  .masthead .outline:hover, .hero .primary:hover { color: var(--ink); background: var(--paper); }
  .hero-link:hover { color: var(--orange); }
  .service-tabs button:not([aria-selected="true"]):hover { background: #ece6d9; }
  .primary:hover, .outline:hover, .close:hover { background: var(--ink); color: var(--paper); }
  .contact .button:hover { background: var(--paper); color: var(--ink); }
  .brand:hover, .contact-email:hover { text-decoration: underline; text-underline-offset: .24em; }
  .case-list summary:hover { color: #ff8259; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .hero-art img { animation: assemble 720ms cubic-bezier(.23, 1, .32, 1) both; }
  .button { transition: background-color 160ms, color 160ms; }
  @keyframes assemble { from { opacity: .3; transform: scale(1.045); } to { opacity: 1; transform: scale(1); } }
}
@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(3.65rem, 11.5vw, 6rem); }
  .hero-art { min-height: 0; aspect-ratio: 1.18; }
  .band, .contact-inner { grid-template-columns: 1fr; }
  .services-heading { display: grid; gap: .85rem; }
  .service-panel { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .site-header { flex-wrap: wrap; row-gap: .2rem; padding-bottom: .25rem; }
  .site-header nav { order: 3; flex: 0 0 100%; }
  .header-cta { font-size: .875rem; padding-inline: .55rem; }
  .hero-strip { grid-template-columns: 1fr; }
  .hero-strip > div, .hero-strip > div:first-child { padding-inline: 0; }
  .hero-strip > div { grid-template-columns: 1fr 1fr; align-items: center; }
  .hero-copy { padding-top: .85rem; }
  .hero h1 { font-size: clamp(2.8rem, 11.5vw, 3.65rem); }
  .hero-art figcaption { font-size: .76rem; }
  .service-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-tabs button { min-height: 2.85rem; }
  .service-flow ol { gap: .5rem; }
  .service-flow li { padding-inline: .2rem; }
  .service-flow li + li::before { left: -.5rem; width: .5rem; }
  .process ol { grid-template-columns: 1fr; }
  .stack dl > div { grid-template-columns: 1fr; gap: .35rem; }
  .brief-actions .button { width: 100%; }
}

/* Catalog and article pages */
.service-more, .case-more {
  display: inline-block;
  margin: .65rem 0 .25rem;
  padding-block: .35rem;
  font-weight: 650;
  text-underline-offset: .23em;
}
.service-more { margin-inline-start: .65rem; }
.case-more { color: #ffd0ba; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .25rem 1.2rem; }
.site-footer nav a { padding-block: .45rem; text-underline-offset: .23em; }

.inner-page .site-header nav [aria-current] { text-decoration-color: var(--orange); }
.inner-hero { background: var(--ink); color: var(--paper); padding-block: clamp(1.8rem, 5vw, 4.6rem) clamp(2.4rem, 6vw, 5.5rem); }
.breadcrumbs { margin-bottom: clamp(1.4rem, 3vw, 2.6rem); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .4rem .7rem; margin: 0; padding: 0; list-style: none; color: #cec8bb; }
.breadcrumbs li { overflow-wrap: anywhere; font: 500 .875rem/1.55 var(--mono); }
.breadcrumbs li + li::before { content: "/"; margin-right: .7rem; color: var(--orange); }
.breadcrumbs a { text-underline-offset: .22em; }
.inner-hero h1 { max-width: 20ch; margin-bottom: 1.2rem; font-size: clamp(2.5rem, 6.4vw, 6.2rem); letter-spacing: -.068em; line-height: .98; overflow-wrap: anywhere; }
.inner-hero p { max-width: 42rem; color: #cec8bb; font-size: clamp(1.06rem, 1.6vw, 1.3rem); line-height: 1.55; }
.catalog-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(1.4rem, 5vw, 4rem); padding: clamp(2.2rem, 6vw, 5rem) 0; list-style: none; }
.catalog-list li { padding: 1.4rem 0 1.7rem; border-top: 1px solid var(--line); }
.catalog-list h2, .article-copy h2 { font-size: clamp(1.4rem, 2.8vw, 2.35rem); line-height: 1.15; letter-spacing: -.047em; overflow-wrap: anywhere; }
.catalog-list h2 a { text-underline-offset: .18em; text-decoration-thickness: .055em; }
.catalog-list p { max-width: 38rem; margin-top: .65rem; color: var(--muted); line-height: 1.55; }
.inner-content { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .75fr); gap: clamp(1.4rem, 6vw, 6rem); align-items: start; padding-block: clamp(2.2rem, 6vw, 5rem); }
.article-copy section + section { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.article-copy p { max-width: 65ch; margin-top: .8rem; color: var(--muted); line-height: 1.65; }
.inner-aside { padding: clamp(1rem, 3vw, 1.8rem); background: #f8f5ed; border: 1px solid var(--line); border-top: 3px solid var(--rust); }
.inner-aside h2 { margin-bottom: .55rem; font-size: 1.2rem; letter-spacing: -.02em; }
.inner-aside p { margin-bottom: 1.3rem; color: var(--muted); line-height: 1.55; }
.inner-aside ul { margin: 0 0 1.25rem; padding-inline-start: 1.25rem; line-height: 1.65; }
.inner-page .site-footer { border-top: 1px solid var(--line); }

@media (hover: hover) {
  .catalog-list a:hover, .inner-aside li a:hover, .service-more:hover, .site-footer nav a:hover { color: var(--rust); }
  .case-more:hover, .breadcrumbs a:hover { color: #ff965f; }
}
@media (max-width: 700px) {
  .catalog-list, .inner-content { grid-template-columns: 1fr; }
  .site-footer { flex-wrap: wrap; }
}
