/* tasteskill · direction: dense-tiles «The well-kept board» · seed 1560783427
 * type: Onest (Schibsted Grotesk has no Cyrillic; same role: a compact heavy grotesk, 800 + 400/600)
 * palette: warm black, gold · idea: the places our sites sell become the contact sheet the page is made of */

@font-face { font-family: "Onest"; font-weight: 400; font-display: swap; src: url("fonts/onest-400-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-weight: 400; font-display: swap; src: url("fonts/onest-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; font-weight: 600; font-display: swap; src: url("fonts/onest-600-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-weight: 600; font-display: swap; src: url("fonts/onest-600-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; font-weight: 800; font-display: swap; src: url("fonts/onest-800-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-weight: 800; font-display: swap; src: url("fonts/onest-800-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #0c0a08;
  --surface: #181512;
  --surface-2: #231e19;
  --ink: #ffffff;
  --ink-soft: #b9b2a9;
  --muted: #8f8a84;
  --accent: #c9a45a;
  --accent-strong: #dbb86c;
  --accent-ink: #0c0a08;
  --paper: #e8e6e2;
  --paper-2: #d6d3cd;
  --paper-ink: #0c0a08;
  --paper-hover: #2a241e;

  /* client colours, used only in the closing mark and the 3D plan tile */
  --c-apartico: #b01e7e;
  --c-triumf: #2a3350;
  --c-golitsyno: #4d5f42;
  --c-yahroma: #9a6a3c;
  --c-bosikom: #1b6286;
  --c-myzdes: #24483a;
  --c-nomerica: #2f62d8;

  --font: "Onest", ui-sans-serif, system-ui, sans-serif;
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-display: clamp(4.5rem, 9vw, 8.5rem);

  --m: 24px;
  --gap: 8px;
  --radius: 0px;
  --section: clamp(120px, 14vw, 200px);

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --ease-soft: cubic-bezier(.33, 1, .68, 1);
  --t-hover: 180ms;
  --t-press: 120ms;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: var(--step-body); line-height: 1.4; letter-spacing: -0.01em; -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.05em; line-height: 0.92; text-wrap: balance; overflow-wrap: break-word; min-width: 0; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px;
  background: var(--accent); color: var(--accent-ink); border: 0; border-radius: var(--radius);
  font: 600 var(--step-body)/1 var(--font); letter-spacing: -0.01em; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.btn:active { transform: scale(0.97); }
.link { text-decoration: underline; text-decoration-thickness: 0.07em; text-underline-offset: 0.2em; text-decoration-color: transparent; transition: text-decoration-color var(--t-hover) ease; font-weight: 600; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--accent-strong); }
  .link:hover { text-decoration-color: currentColor; }
}

/* ---------- Hero: a sheet of the places ---------- */
.sheet { position: relative; height: 100svh; min-height: 680px; overflow: hidden; padding: 0 var(--m); }
.sheet__cols { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; height: 100%; }
.sheet__col { display: flex; flex-direction: column; }
.sheet__drift { display: flex; flex-direction: column; gap: 12px; }
.sheet__col:nth-child(2) { margin-top: -90px; }
.sheet__col:nth-child(3) { margin-top: -40px; }
.sheet__col:nth-child(4) { margin-top: -130px; }
.sheet__col:nth-child(5) { margin-top: -20px; }
.sheet__col:nth-child(6) { margin-top: -70px; }
.frame { margin: 0; display: flex; flex-direction: column; flex: none; }
.frame img { width: 100%; aspect-ratio: var(--r, 3/2); object-fit: cover; }
.frame figcaption { height: 30px; padding: 0 10px; display: flex; align-items: center; font-size: var(--step-small); font-weight: 600; white-space: nowrap; overflow: hidden; }
.frame:nth-child(4n+1) figcaption { background: var(--accent); color: var(--accent-ink); }
.frame:nth-child(4n+2) figcaption { background: var(--surface-2); color: var(--ink); }
.frame:nth-child(4n+3) figcaption { background: var(--paper); color: var(--paper-ink); }
.frame:nth-child(4n+4) figcaption { background: var(--surface); color: var(--ink-soft); }

.panel {
  position: absolute; z-index: 2; top: 24%;
  left: calc(var(--m) + (100% - 2 * var(--m) - 60px) / 6 * 2 + 24px);
  width: calc((100% - 2 * var(--m) - 60px) / 6 * 2 + 12px);
  min-height: 430px; padding: 26px;
  background: var(--paper); color: var(--paper-ink);
  display: flex; flex-direction: column; gap: 22px;
}
.panel__mark { font-size: 28px; order: 2; font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.panel h1 { font-size: clamp(2rem, 1.2rem + 1.7vw, 2.75rem); letter-spacing: -0.045em; line-height: 0.98; }
.panel p { font-size: var(--step-body); line-height: 1.4; max-width: 36ch; }
.panel .btn { align-self: flex-start; background: var(--paper-ink); color: var(--paper); }
@media (hover: hover) and (pointer: fine) { .panel .btn:hover { background: var(--paper-hover); } }
.panel__foot { margin-top: auto; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 18px; }
.panel__links { display: flex; flex-wrap: wrap; gap: 18px; font-size: var(--step-small); }

/* ---------- Work: giant title, uneven wall ---------- */
.work { background: var(--surface); padding: var(--section) var(--m) calc(var(--section) * 0.8); }
.work__head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-bottom: 32px; }
.work__head h2 { font-size: var(--step-display); line-height: 0.88; }
.work__head p { font-size: var(--step-body); color: var(--ink-soft); max-width: 36ch; text-align: right; }
.wall { display: flex; flex-direction: column; gap: 20px; }
.wall__row { display: flex; gap: var(--gap); }
.tile { flex: var(--r) 1 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; text-decoration: none; transition: opacity 260ms ease; }
.tile__img { height: var(--h); overflow: hidden; background: var(--surface-2); }
.tile__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 700ms var(--ease-out); }
.tile__cap { display: flex; justify-content: space-between; gap: 12px; font-size: var(--step-small); }
.tile__cap span:first-child { font-weight: 600; }
.tile__cap span:last-child { color: var(--ink-soft); text-align: right; }
@media (hover: hover) and (pointer: fine) {
  .wall:hover .tile { opacity: 0.55; }
  .wall .tile:hover { opacity: 1; }
  .tile:hover .tile__img img { transform: scale(1.03); }
}
.tile:focus-visible { outline-offset: 4px; }

/* ---------- Board: what is inside each site ---------- */
.board { padding: var(--section) 0 0; }
.board__head { padding: 0 var(--m); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px; align-items: end; margin-bottom: 40px; }
.board__head h2 { font-size: var(--step-head); }
.board__head p { font-size: var(--step-lead); line-height: 1.3; color: var(--ink-soft); max-width: 32ch; }
.rows { padding: 0 var(--m); display: flex; flex-direction: column; gap: 4px; }
.row { background: var(--surface); }
.row summary {
  list-style: none; cursor: pointer; min-height: 76px; padding: 0 20px;
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 2fr) minmax(0, 2fr) minmax(130px, 1fr); gap: 16px; align-items: center;
  font-size: clamp(1.25rem, 1rem + 0.8vw, 1.75rem); font-weight: 600; letter-spacing: -0.03em;
  transition: background-color var(--t-hover) ease;
}
.row summary::-webkit-details-marker { display: none; }
.row summary span:not(:first-child) { color: var(--ink-soft); font-weight: 400; font-size: var(--step-body); letter-spacing: -0.01em; }
.row summary span.status { justify-self: end; padding: 8px 12px; font-size: var(--step-small); font-weight: 600; color: var(--accent-ink); background: var(--accent); }
.row summary span.status--soon { background: var(--paper-2); color: var(--paper-ink); }
@media (hover: hover) and (pointer: fine) { .row:not([open]) summary:hover { background: var(--surface-2); } }
.row[open] { background: var(--paper); color: var(--paper-ink); }
.row[open] summary { font-size: var(--step-head); font-weight: 800; letter-spacing: -0.05em; min-height: 120px; }
.row[open] summary span:not(:first-child) { color: var(--paper-ink); }
.row[open] summary span.status { background: var(--paper-ink); color: var(--paper); }
.row__body { padding: 4px 20px 28px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px 32px; align-items: start; }
.row__body ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 32px; }
.row__body li { font-size: var(--step-body); line-height: 1.4; }
.row__body li b { display: block; font-weight: 600; margin-bottom: 2px; }
.row__site { display: inline-block; margin-top: 14px; }
.row__body img { width: 100%; aspect-ratio: 16/10; object-fit: cover; object-position: top; }

/* ---------- Feature: the house, taken apart ---------- */
.house { padding: var(--section) var(--m) 0; }
.house__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px; align-items: end; }
.house__head h2 { font-size: var(--step-head); }
.house__head p { font-size: var(--step-lead); line-height: 1.3; color: var(--ink-soft); max-width: 34ch; }
.house__grid { margin-top: 72px; display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 16px; align-items: start; }
.house__film { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--surface); }
.house__film video { width: 100%; height: 100%; object-fit: cover; }
.house__note { position: absolute; z-index: 1; top: 0; right: 0; width: 330px; padding: 20px; background: var(--paper); color: var(--paper-ink); font-size: var(--step-body); line-height: 1.4; }
.house__side { display: flex; flex-direction: column; gap: 16px; }
.house__plan { background: var(--paper); aspect-ratio: 16/10; padding: 14px; }
.house__plan img { width: 100%; height: 100%; object-fit: contain; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.facts div { background: var(--surface); padding: 14px 16px; }
.facts dt { font-size: var(--step-small); color: var(--ink-soft); }
.facts dd { margin: 6px 0 0; font-size: var(--step-lead); font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; }
.house__more { margin-top: 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.house__more figure { margin: 0; }
.house__more img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.house__more figcaption { margin-top: 10px; font-size: var(--step-body); }
.house__more figcaption span { display: block; color: var(--ink-soft); font-size: var(--step-small); margin-top: 2px; }

/* ---------- Needs: tabs, banded list ---------- */
.needs { padding: var(--section) var(--m) 0; }
.needs__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.needs__head h2 { font-size: clamp(2.25rem, 4vw, 3.75rem); line-height: 0.95; }
.needs__head p { margin-top: 12px; font-size: var(--step-lead); color: var(--ink-soft); }
.needs__body { margin-top: 56px; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; }
.tabs { display: flex; flex-direction: column; gap: 6px; }
.tab {
  min-height: 64px; padding: 10px 16px; text-align: left; border: 0; border-radius: var(--radius); cursor: pointer;
  background: var(--surface); color: var(--ink); font: 600 var(--step-body)/1.15 var(--font); letter-spacing: -0.01em;
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
  transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.tab small { font-weight: 400; font-size: var(--step-small); color: var(--ink-soft); }
.tab:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { .tab:hover { background: var(--surface-2); } }
.tab[aria-selected="true"] { background: var(--paper); color: var(--paper-ink); }
.tab[aria-selected="true"] small { color: var(--paper-ink); }
.panelset + .panelset { margin-top: 24px; }
.js .panelset + .panelset { margin-top: 0; }
.panelset h3 { font-size: var(--step-lead); letter-spacing: -0.03em; margin-bottom: 12px; }
.js .panelset h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.bands { display: flex; flex-direction: column; gap: 4px; }
.band { display: grid; grid-template-columns: minmax(170px, 2fr) minmax(0, 7fr); gap: 20px; align-items: center; min-height: 84px; padding: 14px 20px; background: var(--surface); }
.band:nth-child(even) { background: var(--surface-2); }
.band__site { font-size: var(--step-lead); font-weight: 800; letter-spacing: -0.04em; }
.band__text b { display: block; font-weight: 600; }
.band__text span { color: var(--ink-soft); }
.js .panelset[hidden] { display: none; }

/* ---------- Contact: strip, three cells ---------- */
.contact { margin-top: var(--section); background: var(--accent); color: var(--accent-ink); padding: 48px 0 96px; overflow: hidden; }
.strip { display: flex; gap: 8px; width: max-content; animation: drift 90s linear infinite; }
.strip img { height: 150px; width: auto; object-fit: cover; }
.strip img:nth-child(3n+1) { aspect-ratio: 3/4; }
.strip img:nth-child(3n+2) { aspect-ratio: 1; }
.strip img:nth-child(3n) { aspect-ratio: 3/2; }
.contact:hover .strip { animation-play-state: paused; }
@keyframes drift { to { transform: translateX(-50%); } }
.contact__in { padding: 96px var(--m) 0; }
.contact h2 { font-size: clamp(2.25rem, 4vw, 3.75rem); }
.contact__lead { margin-top: 16px; font-size: var(--step-lead); line-height: 1.3; max-width: 40ch; }
.cells { margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cell { min-height: 96px; padding: 18px 22px; background: var(--accent-strong); color: var(--accent-ink); text-decoration: none; display: flex; flex-direction: column; justify-content: center; gap: 4px; transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.cell b { font-size: var(--step-lead); font-weight: 800; letter-spacing: -0.04em; }
.cell span { font-size: var(--step-small); }
.cell--main { background: var(--accent-ink); color: var(--accent); }
a.cell:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { a.cell:hover { background: var(--paper); color: var(--paper-ink); } }
.cell:focus-visible { outline-color: var(--accent-ink); }

/* ---------- Footer: the mark built from client colours ---------- */
.footer { background: var(--bg); padding: 72px var(--m) 24px; }
.mark { display: flex; gap: 4px; align-items: flex-end; height: 34svh; min-height: 220px; }
.mark span {
  flex: 1 1 0; min-width: 0; height: 100%; position: relative; display: flex; flex-direction: column; justify-content: space-between; align-items: center; overflow: hidden;
  color: var(--ink);
}
.mark span:nth-child(7) { color: var(--accent-ink); }
.mark small { align-self: flex-start; padding: 12px 12px 0; font-size: var(--step-small); font-weight: 600; color: var(--ink); white-space: nowrap; }
.mark b { font-weight: 800; font-size: clamp(3rem, 9vw, 9rem); line-height: 0.8; letter-spacing: -0.05em; padding-bottom: 0.06em; }
.mark span:nth-child(7) small { color: var(--accent-ink); }
.mark span:nth-child(1) { height: 100%; background: var(--c-apartico); }
.mark span:nth-child(2) { height: 72%; background: var(--c-myzdes); }
.mark span:nth-child(3) { height: 88%; background: var(--c-triumf); }
.mark span:nth-child(4) { height: 64%; background: var(--c-golitsyno); }
.mark span:nth-child(5) { height: 94%; background: var(--c-yahroma); }
.mark span:nth-child(6) { height: 70%; background: var(--c-bosikom); }
.mark span:nth-child(7) { height: 84%; background: var(--accent); }
.mark span:nth-child(8) { height: 60%; background: var(--c-nomerica); }
.footer__cols { margin-top: 56px; display: grid; grid-template-columns: repeat(4, minmax(0, 2fr)) minmax(0, 4fr); gap: 24px; font-size: 15px; }
.footer__cols ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer__cols a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .footer__cols a:hover { text-decoration: underline; } }
.footer__cols p { color: var(--ink-soft); }
.footer__end { margin-top: 48px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: var(--step-small); color: var(--ink-soft); }
.footer__end .btn { min-height: 44px; padding: 0 18px; font-size: var(--step-small); }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .shutter { clip-path: inset(0 0 100% 0); transition: clip-path 1100ms var(--ease-in-out); }
  .js .shutter video { transform: scale(1.12); transition: transform 1500ms var(--ease-soft); }
  .js .shutter.is-in { clip-path: inset(0); }
  .js .shutter.is-in video { transform: none; }

  .js [data-reveal] > * { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); }
  .js [data-reveal].is-in > * { opacity: 1; transform: none; }
  .js [data-reveal].is-in > *:nth-child(2) { transition-delay: 80ms; }
  .js [data-reveal].is-in > *:nth-child(3) { transition-delay: 160ms; }
  .js [data-reveal].is-in > *:nth-child(4) { transition-delay: 240ms; }

  .js .wall .wall__row { transform: translateY(40px); transition: transform 1000ms var(--ease-out); }
  .js .wall .wall__row.is-in { transform: none; }

  .js .row { opacity: 0; transform: translateY(20px); transition: opacity 600ms var(--ease-out), transform 800ms var(--ease-out), background-color var(--t-hover) ease; }
  .js .row.is-in { opacity: 1; transform: none; }

  .js .sheet__col { animation: sheet-in 1200ms var(--ease-out) both; }
  .js .sheet__col:nth-child(2) { animation-delay: 70ms; }
  .js .sheet__col:nth-child(3) { animation-delay: 140ms; }
  .js .sheet__col:nth-child(4) { animation-delay: 210ms; }
  .js .sheet__col:nth-child(5) { animation-delay: 280ms; }
  .js .sheet__col:nth-child(6) { animation-delay: 350ms; }
  .sheet__drift { animation: drift-y 36s ease-in-out infinite alternate; }
  .sheet__col:nth-child(even) .sheet__drift { animation-direction: alternate-reverse; }
  .js .panel { animation: panel-in 900ms 300ms var(--ease-out) both; }

  .js .band { animation: band-in 500ms var(--ease-out) both; }
  .js .band:nth-child(2) { animation-delay: 60ms; }
  .js .band:nth-child(3) { animation-delay: 120ms; }
  .js .band:nth-child(4) { animation-delay: 180ms; }
  .js .band:nth-child(5) { animation-delay: 240ms; }

  .js .mark span { transform: scaleY(0.6); transform-origin: bottom; transition: transform 1000ms var(--ease-out); }
  .js .mark.is-in span { transform: none; }
  .js .mark.is-in span:nth-child(2) { transition-delay: 50ms; }
  .js .mark.is-in span:nth-child(3) { transition-delay: 100ms; }
  .js .mark.is-in span:nth-child(4) { transition-delay: 150ms; }
  .js .mark.is-in span:nth-child(5) { transition-delay: 200ms; }
  .js .mark.is-in span:nth-child(6) { transition-delay: 250ms; }
  .js .mark.is-in span:nth-child(7) { transition-delay: 300ms; }
  .js .mark.is-in span:nth-child(8) { transition-delay: 350ms; }
}
@keyframes sheet-in { from { opacity: 0; transform: translateY(60px); } to { opacity: 1; transform: none; } }
@keyframes panel-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes drift-y { from { transform: translateY(0); } to { transform: translateY(-80px); } }
@keyframes band-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .strip { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Tablet and phone ---------- */
@media (max-width: 1100px) {
  .panel { left: var(--m); width: min(460px, calc(100% - 2 * var(--m))); }
  .row summary { grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 2fr) minmax(130px, 1fr); }
  .row summary span:nth-child(4) { display: none; }
}
@media (max-width: 900px) {
  .sheet { height: auto; min-height: 0; padding: 0; overflow: hidden; display: flex; flex-direction: column; }
  .panel { order: -1; position: static; width: auto; min-height: 0; margin: var(--m); padding: 24px; animation: none; }
  .panel .btn { align-self: stretch; }
  .sheet__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 0 var(--m); height: 70svh; overflow: hidden; }
  .sheet__drift { gap: 8px; }
  .sheet__col:nth-child(n) { margin-top: 0; }
  .sheet__col:nth-child(2) { margin-top: -60px; }
  .sheet__col:nth-child(n+4) { display: none; }
  .sheet .frame:nth-child(n+3) figcaption { display: none; }
  .work { padding-top: 160px; }
}
@media (max-width: 760px) {
  :root { --m: 16px; }
  .sheet { height: auto; min-height: 0; padding: 0; overflow: hidden; display: flex; flex-direction: column; }
  .panel { order: -1; }
  .panel { position: static; width: auto; min-height: 40svh; margin: var(--m); padding: 22px; animation: none; }
  .panel__mark { font-size: 6vw; }
  .panel p { font-size: 17px; }
  .panel .btn { align-self: stretch; }
  .sheet__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 0 var(--m); height: 70svh; overflow: hidden; }
  .sheet__drift { gap: 8px; }
  .sheet__col:nth-child(n) { margin-top: 0; }
  .sheet__col:nth-child(2) { margin-top: -60px; }
  .sheet__col:nth-child(n+3) { display: none; }
  .sheet__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .work__head { flex-direction: column; align-items: flex-start; }
  .work__head h2 { font-size: 17vw; }
  .work__head p { text-align: left; }
  .wall__row { flex-wrap: wrap; row-gap: 20px; }
  .wall__row .tile { flex: 1 1 100%; }
  .wall__row .tile--m { display: none; }
  .tile__img { height: 220px; }

  .board__head, .house__head { grid-template-columns: 1fr; }
  .row summary { grid-template-columns: minmax(0, 1fr) auto; min-height: 64px; padding: 0 14px; font-size: 20px; }
  .row summary span:nth-child(2), .row summary span:nth-child(3), .row summary span:nth-child(4) { display: none; }
  .row[open] summary { min-height: 96px; font-size: 30px; }
  .row__body { grid-template-columns: 1fr; padding: 0 14px 22px; }
  .row__body ul { grid-template-columns: 1fr; }

  .house__grid { grid-template-columns: 1fr; margin-top: 40px; }
  .house__film { aspect-ratio: 4/3; }
  .house__note { position: static; width: auto; padding: 16px 0 0; background: none; color: var(--ink); }
  .house__film { display: flex; flex-direction: column; aspect-ratio: auto; background: none; overflow: visible; }
  .house__film video { aspect-ratio: 4/3; }
  .house__more { grid-template-columns: 1fr; }

  .needs__head { flex-direction: column; align-items: stretch; }
  .needs__body { grid-template-columns: 1fr; gap: 16px; margin-top: 32px; }
  .tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tab { min-height: 56px; }
  .band { grid-template-columns: 1fr; gap: 6px; padding: 16px; }

  .strip img { height: 110px; }
  .contact h2 { font-size: 9vw; }
  .cells { grid-template-columns: 1fr; }
  .cell { min-height: 60px; }

  .mark { height: auto; min-height: 0; flex-wrap: wrap; gap: 4px; align-items: flex-end; }
  .mark span { flex: 0 0 calc(25% - 3px); height: 150px; }
  .mark span:nth-child(n) { height: 150px; }
  .mark span:nth-child(2), .mark span:nth-child(4), .mark span:nth-child(5), .mark span:nth-child(7) { height: 120px; }
  .mark b { font-size: 22vw; }
  .mark small { padding: 8px 8px 0; font-size: 13px; }
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__cols > div:last-child { grid-column: 1 / -1; }
}
