:root {
  --paper: #f1ebe1;
  --paper-2: #e4dccf;
  --ink: #1a1713;
  --ink-soft: #615c54;
  --line: #d2cbbd;
  --accent: #3c4a38;
  --card: #f7f3eb;
  --shadow: 0 16px 32px rgba(26, 23, 19, 0.07);
  --font: ui-sans-serif, system-ui, "Segoe UI", "Helvetica Neue", "Avenir Next", sans-serif;
  --display: clamp(52px, 7.2vw, 82px);
  --display-s: clamp(40px, 5.4vw, 60px);
  --h-section: clamp(40px, 4.7vw, 52px);
  --title: 25px;
  --lead: 21px;
  --body: 16.5px;
  --small: 14px;
  --nav: 15px;
  --brand-size: 17px;
  --container: 1200px;
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 40px;
  --s8: 48px;
  --s9: 64px;
  --s10: 96px;
  --s11: 144px;
  --pad-a: 120px;
  --pad-b: 144px;
  --pad-c: 176px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  overflow-x: clip;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--body);
  line-height: 1.55;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0;
  cursor: auto;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

a:hover {
  opacity: 0.72;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font);
  font-style: normal;
  font-weight: 500;
  letter-spacing: -0.025em;
  text-wrap: balance;
  line-height: 1.12;
  color: var(--ink);
  margin: 0;
  scroll-margin-top: 88px;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

button {
  font-family: var(--font);
  cursor: pointer;
}

.skip {
  position: absolute;
  left: var(--s4);
  top: -48px;
  background: var(--ink);
  color: var(--paper);
  padding: var(--s2) var(--s4);
  z-index: 40;
}

.skip:focus {
  top: var(--s4);
}

.wrap {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

.wrap-wide {
  width: min(calc(100% - 48px), 1280px);
  margin-inline: auto;
}

.pad-a {
  padding-block: var(--pad-a);
}

.pad-b {
  padding-block: var(--pad-b);
}

.pad-c {
  padding-block: var(--pad-c);
}

.site-head {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.site-head-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--s5);
  min-height: 72px;
}

.mark .plate {
  fill: var(--ink);
}

.mark .letter {
  fill: none;
  stroke: var(--paper);
  stroke-width: 5;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--s3);
  text-decoration: none;
  flex: 0 0 auto;
}

.brand:hover {
  opacity: 1;
}

.mark {
  width: 36px;
  height: 36px;
  display: block;
  flex: 0 0 auto;
}

.brand-name {
  font-size: var(--brand-size);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: var(--s2) var(--s4);
  font-size: var(--small);
  font-family: var(--font);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--s6);
  margin-left: auto;
  font-size: var(--nav);
}

.nav a {
  text-decoration: none;
}

.nav a[aria-current="page"] {
  box-shadow: inset 0 -1px 0 var(--ink);
}

.tel {
  text-decoration: none;
  font-size: var(--nav);
  white-space: nowrap;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  padding: var(--s3) var(--s5);
  min-height: 44px;
  font-size: var(--nav);
  font-weight: 500;
  letter-spacing: -0.02em;
  font-family: var(--font);
  border: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.cta:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.cta-line {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.cta-line:hover {
  opacity: 1;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.18fr);
  gap: var(--s9);
  align-items: end;
  padding-top: var(--s10);
  padding-bottom: var(--pad-a);
}

.hero h1 {
  font-size: var(--display);
  letter-spacing: -0.03em;
  max-width: 9ch;
}

.hero-lead {
  font-size: var(--lead);
  line-height: 1.4;
  color: var(--ink-soft);
  margin-top: var(--s6);
  max-width: 34ch;
}

.hero .cta {
  margin-top: var(--s7);
}

.hero-photo {
  min-height: 640px;
  height: min(78vh, 820px);
}

.media {
  overflow: clip;
  background: var(--paper-2);
  min-height: 360px;
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.media:hover img {
  transform: scale(1.03);
}

.ratio-34 {
  aspect-ratio: 3 / 4;
  min-height: 0;
  height: auto;
}

.ratio-169 {
  aspect-ratio: 16 / 9;
  min-height: 360px;
}

.work-index h2,
.statement h2,
.process h2,
.contour h2,
.journal-home h2,
.faq h2,
.rail-wrap h2,
.showcase h2,
.bento-wrap h2,
.spread-wrap h2,
.page-head h1 {
  font-size: var(--h-section);
  letter-spacing: -0.03em;
}

.work-index-head,
.journal-head,
.faq-head,
.rail-head,
.contour-head {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr);
  gap: var(--s6);
  align-items: end;
  margin-bottom: var(--s8);
}

.lede {
  font-size: var(--lead);
  color: var(--ink-soft);
  max-width: 42ch;
}

.lede-space {
  margin: var(--s5) 0 var(--s7);
}

.stack-top {
  padding-top: var(--s8);
}

.follow-block {
  margin-top: var(--s8);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--s8) var(--s5);
}

.work-grid article:nth-child(1) {
  grid-column: 1 / span 8;
}

.work-grid article:nth-child(2) {
  grid-column: 9 / span 4;
}

.work-grid article:nth-child(n + 3) {
  grid-column: span 6;
}

.work-grid article:nth-child(1) .media {
  min-height: 560px;
}

.work-grid article:nth-child(2) .media,
.work-grid article:nth-child(n + 3) .media {
  min-height: 360px;
}

.work-grid h3 {
  font-size: var(--title);
  margin-top: var(--s4);
}

.work-grid p,
.rail-item p,
.journal-list p {
  color: var(--ink-soft);
  margin-top: var(--s2);
}

.work-grid a,
.rail-item a,
.journal-list a {
  text-decoration: none;
}

.work-grid a:hover,
.rail-item a:hover,
.journal-list a:hover {
  opacity: 1;
}

.work-grid a:hover h3,
.journal-list a:hover h3 {
  opacity: 0.7;
}

.statement {
  background: var(--paper);
}

.statement-text {
  font-size: var(--display-s);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.12;
  text-wrap: balance;
  max-width: 18ch;
}

.process {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: var(--s9);
  align-items: start;
}

.process-photo {
  position: sticky;
  top: 96px;
  z-index: 1;
  min-height: 520px;
  box-shadow: var(--shadow);
}

.process-photo img {
  transition: opacity 0.35s ease;
}

.process-copy h2 {
  margin-bottom: var(--s8);
}

.process-steps {
  list-style: decimal;
  padding-left: var(--s7);
}

.process-steps li {
  padding-block: var(--s8);
  border-top: 1px solid var(--line);
  max-width: 46ch;
  color: var(--ink-soft);
}

.process-steps li.is-current {
  color: var(--ink);
}

.process-steps h3 {
  font-size: var(--title);
  margin-bottom: var(--s3);
  color: var(--ink);
}

.contour-inputs {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.contour-bar {
  display: flex;
  gap: var(--s4);
  flex-wrap: wrap;
  margin-bottom: var(--s8);
}

.contour-bar label {
  padding: var(--s3) var(--s5);
  border: 1px solid var(--line);
  cursor: pointer;
  font-size: var(--nav);
  background: var(--paper);
}

.contour-bar label:hover {
  opacity: 0.75;
}

#contour-sklad:checked ~ .contour-bar label[for="contour-sklad"],
#contour-zakaz:checked ~ .contour-bar label[for="contour-zakaz"],
#contour-ekran:checked ~ .contour-bar label[for="contour-ekran"] {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.contour-panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s5);
}

.contour-panel {
  padding: var(--s4);
  background: transparent;
}

#contour-sklad:focus-visible ~ .contour-bar label[for="contour-sklad"],
#contour-zakaz:focus-visible ~ .contour-bar label[for="contour-zakaz"],
#contour-ekran:focus-visible ~ .contour-bar label[for="contour-ekran"] {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.contour-switch {
  position: relative;
}

.contour-panel .media {
  min-height: 360px;
  margin-bottom: var(--s5);
}

.contour-panel h3 {
  font-size: var(--title);
  margin-bottom: var(--s3);
}

.contour-panel p {
  color: var(--ink-soft);
}

#contour-sklad:checked ~ .contour-panels .panel-sklad,
#contour-zakaz:checked ~ .contour-panels .panel-zakaz,
#contour-ekran:checked ~ .contour-panels .panel-ekran {
  background: var(--paper-2);
}

.section-photo {
  min-height: 360px;
  margin-bottom: var(--s8);
}

.journal-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.journal-list a {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) 92px;
  gap: var(--s6);
  align-items: baseline;
  padding-block: var(--s6);
  border-bottom: 1px solid var(--line);
}

.journal-list time {
  color: var(--ink-soft);
  font-size: var(--nav);
}

.journal-list h3 {
  font-size: var(--title);
}

.journal-list span {
  color: var(--ink-soft);
  font-size: var(--nav);
  justify-self: end;
}

.faq-split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: var(--s9);
  align-items: start;
}

.faq-split .media {
  min-height: 520px;
}

.faq-split .faq-head {
  display: block;
  margin-bottom: var(--s6);
}

.faq-split .faq-head .lede {
  margin-top: var(--s4);
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding-block: var(--s6);
  font-size: var(--title);
  letter-spacing: -0.02em;
  font-weight: 500;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list details p {
  padding-bottom: var(--s6);
  max-width: 62ch;
  color: var(--ink-soft);
}

.band {
  background: var(--paper-2);
}

.band-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: var(--s8);
  align-items: end;
}

.band h2 {
  font-size: var(--display-s);
  max-width: 12ch;
}

.band p {
  font-size: var(--lead);
  color: var(--ink-soft);
  margin: var(--s5) 0 var(--s7);
  max-width: 36ch;
}

.site-foot {
  border-top: 1px solid var(--line);
  padding-block: var(--s9);
}

.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 0.8fr);
  gap: var(--s8);
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: var(--s3);
  margin-bottom: var(--s4);
}

.site-foot p,
.site-foot a {
  color: var(--ink-soft);
  text-decoration: none;
}

.site-foot a:hover {
  color: var(--ink);
  opacity: 1;
}

.foot-links {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}

.page-head {
  padding-top: var(--s10);
  padding-bottom: var(--s9);
}

.page-head p {
  font-size: var(--lead);
  color: var(--ink-soft);
  max-width: 46ch;
  margin-top: var(--s5);
}

.rail {
  display: flex;
  gap: var(--s5);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--s5);
}

.rail-item {
  flex: 0 0 min(70vw, 420px);
  scroll-snap-align: start;
}

.rail-item .media {
  min-height: 480px;
}

.rail-item h3 {
  font-size: var(--title);
  margin-top: var(--s4);
}

.showcase-main {
  margin-bottom: var(--s4);
}

.showcase-pair {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: var(--s4);
}

.showcase-pair .media:first-child {
  min-height: 420px;
}

.showcase-pair .media:last-child {
  min-height: 420px;
}

.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--s4);
}

.bento-cell {
  min-height: 360px;
  overflow: clip;
}

.bento-a {
  grid-column: span 7;
  min-height: 480px;
}

.bento-b {
  grid-column: span 5;
  background: var(--paper-2);
  padding: var(--s7);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.bento-c {
  grid-column: span 5;
  background: var(--ink);
  color: var(--paper);
  padding: var(--s7);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.bento-c h3,
.bento-c p {
  color: var(--paper);
}

.bento-d {
  grid-column: span 7;
  min-height: 420px;
}

.bento-cell h3 {
  font-size: var(--title);
  margin-bottom: var(--s3);
}

.bento-cell p {
  color: var(--ink-soft);
  max-width: 36ch;
}

.bento-c p {
  color: var(--paper);
  opacity: 0.82;
}

.spread {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--s9);
  align-items: start;
  padding-block: var(--s11);
  border-top: 1px solid var(--line);
  scroll-margin-top: 72px;
}

.spread:nth-of-type(even) .spread-photo {
  order: 2;
}

.spread-copy h2 {
  font-size: var(--h-section);
  margin-bottom: var(--s5);
}

.spread-copy p + p {
  margin-top: var(--s4);
}

.spread-copy p {
  max-width: 52ch;
}

.spread .media {
  min-height: 520px;
}

.studio-note {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: var(--s9);
  align-items: start;
}

.studio-note .media {
  min-height: 520px;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: var(--s9);
}

.about-grid .media {
  min-height: 640px;
}

.prose p + p {
  margin-top: var(--s4);
}

.prose p {
  max-width: 62ch;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--s9);
  align-items: start;
}

.contact-card {
  background: var(--card);
  padding: var(--s8);
}

.contact-card h2 {
  font-size: var(--title);
  margin-bottom: var(--s4);
}

.contact-card p + p {
  margin-top: var(--s3);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  margin-top: var(--s6);
}

.legal {
  padding-bottom: var(--pad-b);
}

.legal h1 {
  font-size: var(--h-section);
  margin-bottom: var(--s5);
}

.legal h2 {
  font-size: var(--title);
  margin-top: var(--s8);
  margin-bottom: var(--s3);
}

.legal p,
.legal li {
  max-width: 68ch;
  color: var(--ink);
}

.legal ul {
  padding-left: var(--s5);
  margin-top: var(--s3);
}

.legal li + li {
  margin-top: var(--s2);
}

.legal p + p {
  margin-top: var(--s4);
}

.article {
  padding-bottom: var(--pad-b);
}

.article-hero {
  min-height: 520px;
  margin-bottom: var(--s8);
}

.article h1 {
  font-size: var(--display-s);
  max-width: 16ch;
  margin-bottom: var(--s4);
}

.article time {
  color: var(--ink-soft);
  display: block;
  margin-bottom: var(--s8);
}

.article .prose p {
  font-size: var(--lead);
  line-height: 1.5;
}

.js .block {
  opacity: 0;
  transform: translateY(16px);
}

.js .block.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

@media (max-width: 960px) {
  .wrap,
  .wrap-wide {
    width: min(calc(100% - 32px), var(--container));
  }

  .site-head-inner {
    gap: var(--s2);
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 72px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--s5) var(--s4) var(--s6);
    gap: var(--s4);
  }

  .nav.is-open {
    display: flex;
  }

  .tel {
    display: none;
  }

  .hero,
  .process,
  .work-index-head,
  .journal-head,
  .faq-head,
  .rail-head,
  .contour-head,
  .band-inner,
  .foot-grid,
  .spread,
  .studio-note,
  .about-grid,
  .contact-grid,
  .showcase-pair,
  .contour-panels,
  .faq-split {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-photo {
    min-height: 420px;
    height: auto;
    aspect-ratio: 3 / 4;
  }

  .work-grid article:nth-child(1),
  .work-grid article:nth-child(2),
  .work-grid article:nth-child(n + 3),
  .bento-a,
  .bento-b,
  .bento-c,
  .bento-d {
    grid-column: 1 / -1;
  }

  .journal-list a {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s2);
  }

  .journal-list span {
    justify-self: start;
  }

  .spread:nth-of-type(even) .spread-photo {
    order: 0;
  }

  .process-photo {
    position: relative;
    top: 0;
  }

  .pad-a,
  .pad-b,
  .pad-c {
    padding-block: 88px;
  }

  .statement-text {
    font-size: var(--h-section);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .block,
  .js .block.is-in,
  .media img,
  .cta,
  .process-photo img {
    transition: none;
    transform: none;
    opacity: 1;
  }

  .media:hover img,
  .cta:hover {
    transform: none;
  }
}
