﻿:root {
  --text: #080808;
  --muted: #696969;
  --line: #d9d9d9;
  --bg: #ffffff;
  --soft: #f5f5f3;
  --blue: #5d83a8;
  --max: 1180px;
  --header-height: 86px;
  --scene-top: 126px;
  --work-top: 74px;
  --work-bottom: 42px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, "Arial Narrow", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: 0;
}
body.scene-mode main > section { display: none; }
body.scene-mode { height: 100vh; height: 100svh; overflow: hidden; }
body.scene-mode main > section.active-scene {
  position: fixed;
  inset: var(--header-height) 0 0;
  display: block;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-top: calc(var(--scene-top) - var(--header-height));
}
body.scene-mode .hero.active-scene {
  inset: 0;
  overflow: hidden;
  padding-top: var(--header-height);
}
body.scene-mode .contact-section.active-scene { display: grid; }
body.scene-mode .site-footer { display: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 28px 32px 0;
  pointer-events: none;
}
.brand, .main-nav, .menu-toggle { pointer-events: auto; }
.brand { display: block; padding-top: 0; }
.brand img { width: auto; height: 30px; max-width: none; }
.main-nav {
  position: absolute;
  top: 28px;
  right: 32px;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 24px;
  padding-top: 14px;
  padding-right: 52px;
  font-size: 10px;
  letter-spacing: .08em;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
}
.main-nav.open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.main-nav a { padding-bottom: 4px; font-weight: 400; }
.main-nav a:hover, .main-nav a.active { font-weight: 700; }
.menu-toggle {
  display: block;
  width: 40px;
  height: 40px;
  font-family: Arial, sans-serif;
  font-size: 40px;
  line-height: 34px;
  font-weight: 400;
  text-align: right;
  color: #222;
  letter-spacing: 0;
  padding: 0;
}
.menu-toggle[aria-expanded="true"] { font-weight: 700; }
.hero { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; background: #fff; padding-top: var(--header-height); }
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.04); }
.hero-slides {
  position: absolute;
  inset: var(--header-height) clamp(18px, 5vw, 72px) clamp(28px, 6vh, 62px);
  display: grid;
  place-items: center;
  background: #fff;
}
.hero-slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 0;
  animation: fadeHero 56s infinite;
}
.hero-slides img:nth-child(2) { animation-delay: 8s; }
.hero-slides img:nth-child(3) { animation-delay: 16s; }
.hero-slides img:nth-child(4) { animation-delay: 24s; }
.hero-slides img:nth-child(5) { animation-delay: 32s; }
.hero-slides img:nth-child(6) { animation-delay: 40s; }
.hero-slides img:nth-child(7) { animation-delay: 48s; }
.hero-enter { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; }
@keyframes fadeHero {
  0% { opacity: 0; }
  4% { opacity: 1; }
  10% { opacity: 1; }
  14% { opacity: 0; }
  96% { opacity: 0; }
  100% { opacity: 0; }
}
.page-section { min-height: 100vh; min-height: 100svh; padding: var(--scene-top) 28px 72px; }
.section-inner { width: min(var(--max), 100%); margin: 0 auto; }
.section-inner.wide { width: min(1320px, 100%); }
h1 { margin: 0 0 34px; font-family: "Arial Narrow", Arial, sans-serif; font-size: 21px; line-height: 1.15; font-weight: 400; letter-spacing: .04em; }
.works-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; }
.work-card { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--soft); }
.work-card img { width: 100%; height: 100%; object-fit: cover; transition: opacity .18s ease; }
.work-card span { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; text-align: center; font-size: 11.2px; line-height: 1.25; opacity: 0; transition: opacity .18s ease; }
.work-card:hover img, .work-card:focus-visible img { opacity: .26; }
.work-card:hover span, .work-card:focus-visible span { opacity: 1; }
.text-page { max-width: 900px; }
.copy-block { max-width: 760px; margin: 0 auto; }
.copy-block p { margin: 0 0 18px; }
.studio-section .copy-block,
.services-section .copy-block { text-align: justify; text-align-last: left; }
.studio-photo {
  width: auto;
  max-width: min(100%, 760px);
  max-height: calc(100vh - 180px);
  margin: 0 auto 52px;
  object-fit: contain;
}
.studio-bottom {
  width: auto;
  max-width: min(100%, 900px);
  max-height: calc(100vh - 150px);
  margin: 56px auto 0;
  object-fit: contain;
}
.service-list { list-style: none; padding: 0; margin: 28px 0; }
.service-list li { margin: 0 0 17px; }
.service-list strong { display: block; margin-bottom: 4px; font-weight: 700; }
.service-list span { display: block; color: #222; }
.services-sketch { width: min(364px, 60vw); margin: 52px auto 0; }
.contact-section { display: grid; align-content: center; justify-items: center; gap: 22px; }
.contact-image { position: relative; width: min(640px, 100%); }
.contact-image img { width: auto; max-width: 100%; max-height: calc(100vh - var(--scene-top) - 92px); height: auto; margin: 0 auto; object-fit: contain; }
.contact-content { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(420px, 76%); text-align: center; color: #333; font-size: 14px; line-height: 1.6; }
.contact-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.contact-links a { display: grid; place-items: center; width: 34px; height: 34px; }
.contact-links img { width: 28px; height: 28px; object-fit: contain; }
.contact-legal { width: min(760px, 100%); }
.site-footer { padding: 24px 28px 34px; background: #fff; }
.footer-nav { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 12px 24px; font-size: 10px; letter-spacing: .08em; }
.footer-nav a { padding-bottom: 4px; font-weight: 400; }
.footer-nav a:hover, .footer-nav a:focus-visible { font-weight: 700; }
.legal-page { background: #fff; }
.legal-page .site-header { display: none; }
.legal-back {
  position: fixed;
  top: 28px;
  right: 32px;
  z-index: 20;
  display: block;
  width: 34px;
  height: 34px;
  color: #222;
  font-family: Arial, sans-serif;
  font-size: 34px;
  line-height: 29px;
  font-weight: 400;
  letter-spacing: 0;
  text-align: right;
}
.legal-back:hover, .legal-back:focus-visible { font-weight: 700; }
.legal-main-nav { display: flex; }
.legal-document {
  position: fixed;
  inset: var(--work-top) 0 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  width: 100%;
  margin: 0;
  padding: 0 28px 78px;
}
.legal-document article { width: min(760px, 100%); margin: 0 auto; }
.legal-document h1 { margin: 0 0 28px; font-size: 18px; letter-spacing: .08em; text-transform: uppercase; }
.legal-document h1:not(:first-child) { margin-top: 58px; }
.legal-document h2 { margin: 34px 0 12px; font-size: 11px; line-height: 1.35; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
.legal-document p { margin: 0 0 14px; font-size: 13px; line-height: 1.58; color: #222; text-align: justify; text-align-last: left; }
.work-view { position: fixed; z-index: 40; inset: 0; overflow: hidden; background: #fff; padding: 0; }
.close-work {
  position: fixed;
  top: 28px;
  right: 32px;
  z-index: 3;
  display: block;
  width: 34px;
  height: 34px;
  padding: 0;
  color: #222;
  background: transparent;
  font-family: Arial, sans-serif;
  font-size: 34px;
  line-height: 29px;
  font-weight: 400;
  text-align: right;
  letter-spacing: 0;
}
.close-work:hover, .close-work:focus-visible { font-weight: 700; }
.work-detail {
  position: absolute;
  top: var(--work-top);
  left: 28px;
  right: 28px;
  bottom: var(--work-bottom);
  width: auto;
  max-width: none;
  margin: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.work-detail h1 { margin-bottom: 18px; font-size: 18px; }
.work-meta { display: grid; grid-template-columns: minmax(110px, 160px) minmax(0, 1fr); gap: 4px 20px; width: min(760px, 100%); margin: 0 0 42px; font-size: 13px; line-height: 1.42; }
.work-meta dt { color: var(--muted); text-transform: uppercase; font-size: 10px; letter-spacing: .06em; }
.work-meta dd { margin: 0; }
.gallery-stack { display: grid; gap: 56px; }
.gallery-stack img { width: auto; max-width: min(100%, 1120px); max-height: calc(100vh - var(--work-top) - var(--work-bottom)); margin: 0 auto; object-fit: contain; background: #f6f6f6; }
body.modal-open { overflow: hidden; }
@media (max-width: 860px) {
  :root { --header-height: 68px; --scene-top: 104px; --mobile-scroll-top: 82px; --work-top: 64px; --work-bottom: 36px; }
  body.scene-mode { height: 100svh; overflow: hidden; }
  body.scene-mode main > section.active-scene {
    inset: var(--mobile-scroll-top) 0 0;
    padding-top: calc(var(--scene-top) - var(--mobile-scroll-top));
  }
  body.scene-mode .hero.active-scene { inset: 0; padding-top: var(--header-height); }
  .site-header { height: auto; align-items: flex-start; padding: 18px 20px 0; }
  .brand, .menu-toggle { position: relative; z-index: 2; }
  .brand { padding-top: 10px; }
  .main-nav {
    z-index: 1;
    top: 0;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 5px;
    padding: 68px 20px 16px;
    padding-right: 20px;
    background: #fff;
  }
  .hero { padding-top: var(--header-height); }
  .hero-slides { inset: var(--header-height) 18px 28px; }
  .hero,
  .page-section { min-height: 100svh; }
  .works-grid { grid-template-columns: 1fr; gap: 3px; }
  .page-section { padding: var(--scene-top) 18px 56px; }
  .work-meta { grid-template-columns: 1fr; gap: 2px; }
  .work-meta dd { margin-bottom: 13px; }
  .studio-photo,
  .studio-bottom { max-width: 100%; max-height: calc(100vh - 110px); }
  .services-sketch { width: min(364px, 70vw); }
  .gallery-stack { gap: 34px; }
  .close-work { top: 18px; right: 20px; }
  .work-detail { top: var(--work-top); left: 18px; right: 18px; bottom: var(--work-bottom); }
  .gallery-stack img { max-height: calc(100svh - var(--work-top) - var(--work-bottom)); }
  .contact-content { top: 50%; font-size: 12px; width: 82%; }
  .contact-legal { width: 100%; gap: 9px 16px; }
  .contact-section { gap: 18px; }
  .contact-image { width: min(440px, 100%); }
  .contact-image img { max-height: calc(100svh - var(--scene-top) - 118px); }
  .site-footer { padding: 20px 18px 30px; }
  .legal-back { top: 18px; right: 20px; }
  .legal-document { inset: var(--work-top) 0 0; width: 100%; padding: 0 18px 56px; }
  .legal-document p { font-size: 12px; text-align: left; }
}
@media (max-width: 540px) {
  .hero-slides { inset: var(--header-height) 12px 24px; }
  .work-card { aspect-ratio: 1.18 / 1; }
  .contact-links a { width: 32px; height: 32px; }
}



