:root {
  color-scheme: light;
  --p-color-surface-default: #fff;
  --p-color-surface-muted: #f0f0f0;
  --p-color-surface-placeholder: #d9d9d9;
  --p-color-surface-brand-default: #d3f76a;
  --p-color-surface-gradient-base: #fafafa;
  --p-color-text-default: #202020;
  --p-color-text-muted: #646464;
  --p-color-text-on-brand: #202020;
  --p-color-border-default: #d9d9d9;
  --p-color-decoration-default: #646464;
  --p-color-surface-inverse: #202020;
  --p-color-text-on-inverse: #fff;
  --p-color-filter-active: #f0f0f0;
  --p-typography-font-family-heading: 'Golos Text', Arial, sans-serif;
  --p-typography-font-family-body: 'Manrope', Arial, sans-serif;
  --p-typography-display-font-size: clamp(72px, 5.55556vw, 80px);
  --p-typography-body-medium-font-size: 18px;
  --page-gutter: clamp(48px, calc(20vw - 208px), 80px);
  --hero-border: 1px;
  --art-width: 508px;
  --grain-base: .05;
  --grain-focus: .095;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --p-color-surface-default: #191919;
  --p-color-surface-muted: #2a2a2a;
  --p-color-surface-placeholder: #2a2a2a;
  --p-color-surface-brand-default: #c7ff3d;
  --p-color-surface-gradient-base: #222;
  --p-color-text-default: #eee;
  --p-color-text-muted: #b4b4b4;
  --p-color-border-default: #3a3a3a;
  --p-color-decoration-default: #b4b4b4;
  --p-color-surface-inverse: #c7ff3d;
  --p-color-text-on-inverse: #202020;
  --p-color-filter-active: #141414;
  --hero-border: 2px;
  --grain-base: .06;
  --grain-focus: .1064;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--p-color-surface-default); color: var(--p-color-text-default); font-family: var(--p-typography-font-family-body); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
body.is-menu-open, body.is-dialog-open { overflow: hidden; }
h1, h2, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; color: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--p-color-text-default); outline-offset: 5px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 20px; z-index: 100; padding: 12px 20px; border-radius: 12px; background: var(--p-color-surface-default); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.container { width: min(1600px, calc(100% - 2 * var(--page-gutter))); margin-inline: auto; }
.site-header { position: absolute; inset: 0 0 auto; z-index: 5; padding-block: 16px; }
.site-header__container { min-height: 64px; display: flex; align-items: center; justify-content: space-between; padding-block: 8px; }
.site-header__brand { font: 600 24px/1.2 var(--p-typography-font-family-heading); text-transform: uppercase; white-space: nowrap; }
.site-header__navigation { display: flex; align-items: center; gap: 32px; }
.site-header__menu { display: flex; align-items: center; gap: 4px; }
.site-header__link { display: flex; align-items: center; justify-content: center; padding: 12px 20px; border-radius: 16px; color: var(--p-color-text-muted); font-size: 16px; font-weight: 600; line-height: 1.4; }
.site-header__link:hover { color: var(--p-color-text-default); background: var(--p-color-filter-active); }
.icon-button { display: inline-flex; justify-content: center; align-items: center; flex: 0 0 48px; width: 48px; height: 48px; padding: 12px; border: 0; border-radius: 12px; background: transparent; }
.icon-button:hover { background: var(--p-color-filter-active); }
.icon-button img { display: block; }
.menu-button { display: none; }
.theme-switch .theme-switch__sun, .theme-dark { display: none; }
[data-theme="dark"] .theme-switch .theme-switch__sun, [data-theme="dark"] .theme-dark { display: block; }
[data-theme="dark"] .theme-switch .theme-switch__moon, [data-theme="dark"] .theme-light { display: none; }
[data-theme="dark"] .menu-button__icon { filter: invert(1); }
.hero { position: relative; isolation: isolate; padding-top: 128px; padding-bottom: calc(33px - var(--hero-border)); border-bottom: var(--hero-border) solid var(--p-color-border-default); overflow: hidden; }
.hero__background { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse 64% 82% at 48% 30%, var(--p-color-surface-gradient-base) 0%, transparent 100%), linear-gradient(158.439deg, var(--p-color-surface-muted) 0%, var(--p-color-surface-gradient-base) 48%, var(--p-color-surface-muted) 100%); }
.hero__background::before, .hero__background::after { content: ''; position: absolute; inset: 0; background: url('hero-noise.svg') repeat; mix-blend-mode: multiply; opacity: var(--grain-base); }
.hero__background::after { opacity: var(--grain-focus); mask: url('hero-grain-mask.svg') 0 0 / 100% 100% no-repeat; }
[data-theme="dark"] .hero__background::before, [data-theme="dark"] .hero__background::after { mix-blend-mode: screen; }
.hero__container { display: flex; align-items: center; gap: 48px; }
.hero__content { display: flex; flex: 1; min-width: 0; flex-direction: column; align-items: flex-start; gap: 24px; }
.hero__title { display: flex; flex-direction: column; align-items: flex-start; font-family: var(--p-typography-font-family-heading); font-size: var(--p-typography-display-font-size); font-weight: 900; line-height: 1; letter-spacing: -.02em; text-transform: uppercase; }
.hero__title-line { display: block; white-space: nowrap; }
.hero__highlight { padding: 4px 10px; border-radius: 6px; background: var(--p-color-surface-brand-default); color: var(--p-color-text-on-brand); }
.hero__description { max-width: 660px; font-size: var(--p-typography-body-medium-font-size); line-height: 1.5; color: var(--p-color-text-muted); }
.project-button { display: inline-flex; min-height: 54px; justify-content: center; align-items: center; padding: 0 24px; border: 0; border-radius: 16px; background: var(--p-color-surface-inverse); color: var(--p-color-text-on-inverse); font-size: 16px; font-weight: 600; line-height: 1.4; }
.project-button:hover { filter: brightness(.92); }
.hero__visual { position: relative; flex: 0 0 var(--art-width); width: var(--art-width); aspect-ratio: 508 / 408; pointer-events: none; --art-scale: 1; }
.hero__visual-inner { position: absolute; top: 0; left: 0; width: 508px; height: 408px; transform: scale(var(--art-scale)); transform-origin: top left; }
.hero__geometry { position: absolute; left: 10.6286px; top: -3px; width: 400.457px; height: 416px; color-scheme: normal; }
.hero__brackets { position: absolute; left: 295.5714px; top: 284.8573px; }
.hero__digit { position: absolute; left: calc(326.9714px + var(--column) * 20.114286px); top: calc(289.7716px + var(--row) * 21.942857px); font-size: calc(14px / var(--art-scale)); line-height: 1.5; color: var(--p-color-decoration-default); opacity: .52; }
.is-motion-enabled .hero__digit { animation: digit-glow var(--duration) ease-in-out var(--delay) infinite alternate; }
@keyframes digit-glow { from { opacity: .25; } to { opacity: .65; } }
.selected-work { padding-block: 24px 64px; }
.selected-work__header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.selected-work__filters { display: flex; align-items: center; gap: 4px; }
.project-filter { display: inline-flex; height: 38px; justify-content: center; align-items: center; padding: 0 16px; border: 0; border-radius: 15px; background: transparent; color: var(--p-color-text-muted); font-size: 16px; font-weight: 600; line-height: 1.4; white-space: nowrap; }
.project-filter:hover { color: var(--p-color-text-default); }
.project-filter[aria-pressed="true"] { background: var(--p-color-filter-active); color: var(--p-color-text-default); box-shadow: inset 0 0 0 1px var(--p-color-border-default); }
.selected-work__all-projects { display: inline-flex; gap: 8px; align-items: center; justify-content: flex-end; min-height: 32px; padding: 0; border: 0; background: transparent; font-size: 16px; font-weight: 600; line-height: 1.4; white-space: nowrap; }
.selected-work__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 20px; align-items: start; }
.project-card { min-width: 0; }
.project-card__link { display: block; border-radius: 16px; }
.project-card__testing-link { font-size: 14px; font-weight: 600; line-height: 1.5; text-decoration: underline; text-underline-offset: 4px; }
.project-card__link:hover .project-card__testing-link { text-decoration-thickness: 2px; }
.project-card__preview { width: 100%; aspect-ratio: 1; border-radius: 16px; background: var(--p-color-surface-placeholder); }
.project-card__content { display: flex; flex-direction: column; gap: 8px; padding: 12px 20px; }
.project-card__title { min-height: 29px; font: 500 24px/1.2 var(--p-typography-font-family-heading); }
.project-card__description { font-size: 16px; line-height: 1.5; }
.project-card__tags { color: var(--p-color-text-muted); font-size: 14px; line-height: 1.5; }
.site-footer { border-top: 1px solid var(--p-color-border-default); }
.site-footer__container { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 32px 40px; }
.site-footer__copyright { font-size: 14px; color: var(--p-color-text-muted); }
.contact-channels { display: flex; align-items: center; gap: 8px; font-size: 16px; line-height: 1.5; }
.contact-channels__separator { font-weight: 600; }
.mobile-menu { position: fixed; inset: 80px 0 0; z-index: 20; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: 24px 20px max(32px, env(safe-area-inset-bottom)); background: var(--p-color-surface-default); overflow-y: auto; }
.mobile-menu__navigation { display: flex; flex-direction: column; }
.mobile-menu__link { display: flex; align-items: center; min-height: 72px; border-radius: 16px; font-size: 24px; font-weight: 600; line-height: 1.4; }
.mobile-menu__link:hover { color: var(--p-color-text-muted); }
.is-menu-open .site-header { position: fixed; background: var(--p-color-surface-default); z-index: 21; }
.content-dialog { width: min(560px, calc(100% - 40px)); max-height: calc(100dvh - 40px); margin: auto; padding: 32px; border: 1px solid var(--p-color-border-default); border-radius: 20px; background: var(--p-color-surface-default); color: var(--p-color-text-default); }
.content-dialog::backdrop { background: #0008; }
.content-dialog__header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.content-dialog__title { font: 600 28px/1.2 var(--p-typography-font-family-heading); }
.content-dialog__close { background: transparent; border: 0; padding: 12px; border-radius: 12px; font-size: 24px; line-height: 1; }
.content-dialog__description { color: var(--p-color-text-muted); margin-bottom: 24px; }
.brief-form { display: grid; gap: 20px; }
.brief-form label { display: grid; gap: 8px; font-size: 14px; }
.brief-form input, .brief-form textarea, .brief-form select { width: 100%; min-height: 48px; padding: 12px; color: var(--p-color-text-default); background: var(--p-color-filter-active); border: 1px solid var(--p-color-border-default); border-radius: 10px; }
.brief-form textarea { resize: vertical; min-height: 112px; }
.brief-form__result { color: var(--p-color-text-muted); font-size: 14px; }
.services-list { margin: 0; padding: 0; list-style: none; }
.services-list li { padding-block: 16px; border-bottom: 1px solid var(--p-color-border-default); font-size: 18px; }
@media (min-width: 1440px) {
  :root { --page-gutter: clamp(80px, calc(16.666667vw - 160px), 160px); --art-width: clamp(508px, calc(26.458333vw + 127px), 635px); }
}
@media (min-width: 1680px) { .hero { min-height: 688px; padding-bottom: 48px; } }
@media (min-width: 900px) and (max-width: 1279px) {
  :root { --page-gutter: 48px; --art-width: 360px; --p-typography-display-font-size: clamp(48px, 5.46875vw, 56px); }
  .hero { padding-bottom: 48px; }
  .hero__container { gap: 24px; }
  .selected-work__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  :root { --page-gutter: 20px; --p-typography-display-font-size: clamp(32px, 8.20513vw, 48px); --p-typography-body-medium-font-size: 16px; --art-width: min(350px, 100%); }
  .site-header { padding-block: 8px; }
  .site-header__navigation { gap: 8px; }
  .site-header__menu { display: none; }
  .menu-button { display: inline-flex; }
  .hero { padding-top: 112px; padding-bottom: 32px; }
  .hero__container { flex-direction: column; align-items: stretch; gap: 32px; }
  .hero__content { flex: auto; }
  .hero__visual { flex: none; align-self: center; }
  .hero__background::after { top: 55%; }
  .selected-work { padding-bottom: 40px; }
  .selected-work__header { flex-direction: column; align-items: flex-start; margin-bottom: 24px; }
  .project-filter { height: 44px; }
  .selected-work__all-projects { min-height: 44px; }
  .selected-work__grid { grid-template-columns: 1fr; gap: 24px; }
  .site-footer__container { flex-direction: column; align-items: flex-start; }
  .content-dialog { padding: 24px; }
}
@media (max-width: 359px) { :root { --p-typography-display-font-size: 30px; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__digit { animation: none !important; }
}
