:root {
  color-scheme: light;
  --paper: #f5f5f5;
  --ink: #202020;
  --muted: #696969;
  --line: #d5d5d5;
  --hero: #858585;
  --white: #fff;
  --dark: #202020;
  --max-width: 1320px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
::selection { background: #292929; color: #fff; }
a { color: inherit; text-underline-offset: 5px; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 7px; }
p, h1, h2, h3 { margin-top: 0; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { font-weight: 400; letter-spacing: -0.052em; }
h2 { margin-bottom: 0; font-size: clamp(39px, 4.6vw, 70px); line-height: 1.12; }
h3 { margin-bottom: 0; font-size: clamp(31px, 3.1vw, 46px); line-height: 1.13; }
.container { width: min(calc(100% - 128px), var(--max-width)); margin-inline: auto; }
.section { padding-block: 112px; }
.visually-hidden { 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: 20; top: 16px; left: 16px; padding: 12px 18px; transform: translateY(-180%); background: #fff; color: #202020; }
.skip-link:focus { transform: translateY(0); }

.hero { position: relative; height: 100svh; min-height: 760px; max-height: 1200px; overflow: hidden; isolation: isolate; color: var(--white); background: var(--hero); }
.site-header { position: absolute; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 32px; width: 100%; padding: 36px 48px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 400; line-height: 1.25; text-decoration: none; }
.brand-symbol { font-size: 21px; }
.site-nav { display: flex; align-items: center; gap: 34px; }
.site-nav a { position: relative; padding-block: 8px; font-size: 14px; line-height: 1.2; text-decoration: none; }
.site-nav a::after { position: absolute; right: 0; bottom: 0; left: 0; height: 1px; background: currentColor; content: ""; transform: scaleX(0); transform-origin: left; transition: transform 180ms ease; }
.site-nav a:hover::after { transform: scaleX(1); }
.site-nav a span { display: inline-block; margin-left: 3px; }
.portrait-frame { position: absolute; z-index: -1; inset: 84px 0 0; }
.hero-portrait { position: absolute; bottom: 0; left: 50%; display: block; width: auto; height: 100%; max-width: none; object-fit: contain; object-position: 50% 100%; transform: translateX(-50%); filter: grayscale(1); -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%); }
.hero-role { position: absolute; top: 30%; right: max(7%, calc((100vw - 1320px) / 2)); z-index: 2; width: 230px; }
.role-arrow { display: block; margin-bottom: 26px; font-size: 47px; font-weight: 400; line-height: 1; }
.hero-role p { font-size: clamp(23px, 2.1vw, 32px); line-height: 1.25; letter-spacing: -0.025em; }
.hero-marquee { position: absolute; right: 0; bottom: 90px; left: 0; z-index: 3; overflow: hidden; pointer-events: none; }
.marquee-track { display: flex; width: max-content; animation: marquee 34s linear infinite; will-change: transform; }
.marquee-group { display: flex; flex: 0 0 auto; align-items: baseline; padding-right: 0.26em; font-size: clamp(100px, 13.1vw, 240px); line-height: 1.13; letter-spacing: -0.06em; font-weight: 400; white-space: nowrap; }
.marquee-separator { display: inline-block; padding-inline: 0.25em; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.hero-scroll { position: absolute; z-index: 4; bottom: 34px; left: 48px; display: inline-flex; align-items: center; gap: 12px; font-size: 12px; text-decoration: none; }
.hero-scroll > span { font-size: 20px; line-height: 1; }
.hero-scroll:hover { text-decoration: underline; }
.hero-note { position: absolute; z-index: 4; right: 48px; bottom: 34px; margin: 0; color: #f2f2f2; font-size: 11px; letter-spacing: 0.025em; }
.motion-control { position: absolute; z-index: 4; right: 48px; bottom: 76px; display: inline-flex; align-items: center; padding: 8px 12px; border: 1px solid #ffffff5c; border-radius: 24px; background: #29292926; cursor: pointer; font-size: 10px; line-height: 1.4; }
.motion-control span > span { margin-right: 5px; }
.motion-control:hover { background: #29292966; }
.motion-control .when-paused { display: none; }
.motion-toggle:checked ~ .hero-marquee .marquee-track { animation-play-state: paused; }
.motion-toggle:checked + .motion-control .when-running { display: none; }
.motion-toggle:checked + .motion-control .when-paused { display: inline; }
.motion-toggle:focus-visible + .motion-control { outline: 2px solid #fff; outline-offset: 5px; }

.section-label { display: flex; justify-content: space-between; gap: 24px; margin-bottom: 64px; color: var(--muted); font-size: 11px; letter-spacing: 0.045em; }
.about-grid, .portfolio-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 100px; }
.section-copy { color: var(--muted); }
.section-copy p { margin-bottom: 24px; }
.section-copy .lead { color: var(--ink); font-size: 20px; line-height: 1.6; }
.text-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 40px; margin-top: 12px; padding-bottom: 9px; border-bottom: 1px solid var(--ink); color: var(--ink); font-size: 13px; text-decoration: none; }
.text-link:hover { gap: 52px; }
.directions-section { padding-top: 16px; }
.direction-list { border-top: 1px solid var(--line); }
.direction-row { display: grid; grid-template-columns: 64px minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; gap: 42px; padding: 48px 0 52px; border-bottom: 1px solid var(--line); }
.direction-number { padding-top: 7px; color: var(--muted); font-size: 11px; }
.direction-row h3 { max-width: 620px; }
.technology-tag { display: block; margin-top: 18px; color: var(--muted); font-size: 11px; letter-spacing: 0.09em; }
.direction-row > p { max-width: 390px; padding-top: 6px; color: var(--muted); font-size: 15px; line-height: 1.75; }
.portfolio-section { padding-top: 24px; }
.status-label { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 12px; }
.status-label > span { width: 6px; height: 6px; border: 1px solid currentColor; border-radius: 50%; }
.portfolio-grid .section-copy { padding-top: 9px; }

.museum-section { background: #e7e7e7; }
.museum-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 100px; align-items: end; }
.museum-format { display: flex; align-items: center; gap: 24px; margin-bottom: 28px; font-size: 14px; letter-spacing: -0.02em; }
.museum-format span { font-size: 29px; line-height: 1; }
.museum-grid h2 { font-size: clamp(36px, 3.7vw, 56px); }
.museum-grid .development-note { margin-bottom: 0; padding-top: 22px; border-top: 1px solid #c9c9c9; font-size: 12px; }
.contact-section, .site-footer { color: #fff; background: var(--dark); }
.contact-section { padding-top: 98px; padding-bottom: 70px; }
.contact-section .section-label { color: #a4a4a4; }
.contact-heading { display: flex; justify-content: space-between; align-items: center; gap: 48px; padding-bottom: 62px; border-bottom: 1px solid #4b4b4b; }
.contact-heading h2 { font-size: clamp(46px, 5.6vw, 85px); }
.contact-round { display: grid; place-items: center; flex: 0 0 136px; aspect-ratio: 1; border: 1px solid #777; border-radius: 50%; text-decoration: none; transition: background-color 200ms ease, color 200ms ease; }
.contact-round span { font-size: 52px; line-height: 1; }
.contact-round:hover { color: var(--ink); background: #fff; }
.contact-details { display: flex; justify-content: space-between; align-items: flex-start; gap: 48px; padding-top: 42px; }
.contact-details > p { color: #b6b6b6; font-size: 14px; }
.telegram-link { min-width: 250px; text-decoration: none; }
.telegram-link > span { display: block; margin-bottom: 9px; color: #a4a4a4; font-size: 11px; }
.telegram-link strong { display: flex; justify-content: space-between; align-items: center; gap: 36px; font-size: 25px; font-weight: 400; letter-spacing: -0.03em; }
.telegram-link:hover strong { text-decoration: underline; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 28px; border-top: 1px solid #4b4b4b; font-size: 11px; }
.footer-inner p { margin: 0; }
.footer-inner p > span { margin-left: 16px; color: #a4a4a4; }
.footer-inner .footer-divider { margin-inline: 12px; }

@media (min-width: 1600px) {
  .portrait-frame { inset-block-start: 100px; }
  .hero-marquee { bottom: 112px; }
  .hero-role { top: 34%; }
}
@media (max-width: 1100px) {
  .container { width: calc(100% - 88px); }
  .site-header { padding-inline: 36px; }
  .hero-role { right: 5%; width: 185px; }
  .hero-role p { font-size: 25px; }
  .hero-scroll { left: 36px; }
  .hero-note, .motion-control { right: 36px; }
  .section { padding-block: 88px; }
  .about-grid, .portfolio-grid, .museum-grid { gap: 54px; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .direction-row { grid-template-columns: 32px minmax(0, 1.2fr) minmax(0, 1fr); gap: 26px; }
  .directions-section { padding-top: 8px; }
  .portfolio-section { padding-top: 8px; }
}
@media (max-width: 760px) {
  .container { width: calc(100% - 48px); }
  .hero { min-height: 720px; max-height: 980px; }
  .site-header { align-items: flex-start; padding: 28px 24px; gap: 18px; }
  .brand { max-width: 150px; gap: 7px; font-size: 13px; line-height: 1.2; }
  .brand-symbol { font-size: 18px; }
  .site-nav { flex-wrap: wrap; justify-content: flex-end; gap: 6px 18px; }
  .site-nav a { font-size: 11px; }
  .portrait-frame { inset: 112px -12% 0; }
  .hero-portrait { -webkit-mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent); mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent); }
  .hero-role { top: 17%; right: 24px; width: 135px; }
  .role-arrow { margin-bottom: 13px; font-size: 34px; }
  .hero-role p { font-size: 18px; line-height: 1.3; }
  .hero-marquee { bottom: 108px; }
  .marquee-group { font-size: clamp(95px, 21vw, 150px); }
  .hero-scroll { bottom: 28px; left: 24px; font-size: 11px; }
  .hero-note { right: 24px; bottom: 65px; font-size: 9px; }
  .motion-control { right: 24px; bottom: 22px; padding: 7px 10px; font-size: 9px; }
  .section { padding-block: 66px; }
  .section-label { margin-bottom: 40px; font-size: 10px; }
  .about-grid, .portfolio-grid, .museum-grid { grid-template-columns: 1fr; gap: 34px; }
  h2 { font-size: clamp(39px, 7vw, 55px); }
  .section-copy { max-width: 560px; }
  .section-copy .lead { font-size: 19px; }
  .direction-row { grid-template-columns: 28px minmax(0, 1fr); gap: 18px; padding-block: 34px; }
  .direction-row h3 { font-size: 35px; }
  .direction-row > p { grid-column: 2; max-width: 490px; margin-bottom: 0; padding-top: 0; font-size: 14px; }
  .technology-tag { margin-top: 13px; font-size: 10px; }
  .directions-section { padding-top: 4px; }
  .portfolio-section { padding-top: 8px; }
  .portfolio-grid .section-copy { padding-top: 0; }
  .museum-grid h2 { font-size: clamp(36px, 6.6vw, 50px); }
  .contact-heading { align-items: flex-end; gap: 24px; padding-bottom: 38px; }
  .contact-heading h2 { font-size: clamp(37px, 7vw, 57px); }
  .contact-round { flex-basis: 78px; }
  .contact-round span { font-size: 32px; }
  .contact-details { flex-direction: column; gap: 26px; padding-top: 32px; }
  .contact-details > p br { display: none; }
  .telegram-link { min-width: 0; width: min(100%, 320px); }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 12px; padding-block: 25px; }
}
@media (max-width: 430px) {
  .hero { min-height: 680px; }
  .site-header { gap: 14px; }
  .brand { max-width: 128px; font-size: 12px; }
  .site-nav { gap: 5px 13px; }
  .site-nav a { font-size: 10px; }
  .hero-role { top: 16%; width: 120px; }
  .hero-role p { font-size: 16px; }
  .portrait-frame { inset-inline: -17%; }
  .hero-marquee { bottom: 112px; }
  .marquee-group { font-size: 24vw; }
  .hero-note { bottom: 74px; }
  .hero-scroll { max-width: 160px; gap: 9px; font-size: 10px; }
  .section-label span:last-child { text-align: right; }
  .contact-heading { flex-direction: column; align-items: flex-start; }
  .contact-round { flex-basis: auto; width: 74px; }
  .contact-heading h2 { font-size: 41px; }
  .direction-row h3 { font-size: 31px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; transform: none; will-change: auto; }
  .site-nav a::after, .contact-round { transition: none; }
  .motion-toggle, .motion-control { display: none; }
  .text-link:hover { gap: 40px; }
}
