@font-face {
  font-family: Unbounded;
  src: url("fonts/Unbounded.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}
@font-face {
  font-family: Golos;
  src: url("fonts/GolosText.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #191a17;
  --ink: #eeece4;
  --muted: #bbb8aa;
  --rule: #58594f;
  --accent: #e0bd85;
  --display: Unbounded, Golos, Arial, sans-serif;
  --frame: min(calc(100% - 6vw), 1472px);
  --inner: min(calc(100% - 14vw), 1136px);
  --space: clamp(5rem, 11vw, 10.5rem);
  --ease: cubic-bezier(.16, 1, .3, 1);
  scrollbar-color: #726b5b var(--bg);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 1.4rem; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.63 Golos, Arial, sans-serif; }
::selection { color: var(--bg); background: var(--accent); }
a, button { color: inherit; }
a { text-underline-offset: .3em; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
h1, h2, h3, figure, p { margin: 0; }
h2, h3 { font-family: var(--display); font-weight: 300; }
h2 { font-size: clamp(1.95rem, 4.35vw, 4.45rem); line-height: 1.04; letter-spacing: -.038em; }
h3 { font-size: clamp(1.2rem, 2.45vw, 2.15rem); line-height: 1.2; letter-spacing: -.035em; }
img { display: block; width: 100%; height: auto; }
svg { display: block; max-width: 100%; }
.frame { width: var(--frame); margin-inline: auto; }
.inner { width: var(--inner); margin-inline: auto; }
.skip { position: absolute; z-index: 4; left: 1rem; top: 1rem; padding: .6rem 1rem; background: var(--accent); color: var(--bg); transform: translateY(-180%); }
.skip:focus { transform: none; }
.masthead {
  min-height: 68px;
  padding-inline: clamp(.85rem, 2.6vw, 2.5rem);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  border-inline: 1px solid var(--rule);
}
.brand { display: inline-flex; align-items: center; gap: .6rem; width: fit-content; font: 400 clamp(.86rem, 1.3vw, 1.12rem)/1 var(--display); text-decoration: none; text-transform: uppercase; }
.brand-mark { width: 1.15em; height: .85em; background: var(--accent); clip-path: polygon(0 0,48% 0,48% 36%,74% 36%,74% 71%,100% 71%,100% 100%,57% 100%,57% 67%,30% 67%,30% 32%,0 32%); }
.masthead nav { display: flex; flex-wrap: wrap; gap: 0 clamp(.85rem, 2.6vw, 2.5rem); }
.masthead nav a { min-height: 44px; display: inline-flex; align-items: center; font-size: .9rem; text-decoration-color: transparent; }
.masthead nav a:hover, .footer a:hover { color: var(--accent); text-decoration-color: currentColor; }
.desk-credit { justify-self: end; color: var(--muted); font-size: .81rem; }
.hero { position: relative; border-inline: 1px solid var(--rule); padding-bottom: 1.65rem; }
.hero-shell { position: relative; }
.hero-view {
  position: relative;
  height: clamp(415px, 51vw, 730px);
  background: #373c34;
  overflow: hidden;
  isolation: isolate;
}
.hero-view img { height: 100%; object-fit: cover; object-position: 50% 49%; }
.hero-view .hero-dusk {
  position: absolute;
  inset: 0;
  clip-path: inset(0);
  transition: clip-path 1.02s var(--ease);
}
.hero-shell[data-light="day"] .hero-dusk { clip-path: inset(0 100% 0 0); }
.hero-view::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(0deg, #171814e3, #17181460 25%, #17181400 54%);
}
.hero-type {
  position: relative;
  margin-top: clamp(-232px, -16vw, -119px);
  margin-left: clamp(1rem, 7.5vw, 7rem);
  width: fit-content;
}
.hero-type h1 {
  font: 240 clamp(3.2rem, 8.45vw, 8.35rem)/.965 var(--display);
  text-transform: uppercase;
  letter-spacing: -.052em;
}
.hero-type h1 > span { display: block; overflow: clip; padding: 0 .11em .075em 0; margin-bottom: -.075em; }
.hero-type h1 > span > span { display: block; }
.hero-type p { font-size: .87rem; color: var(--muted); margin-top: clamp(.85rem, 2.2vw, 1.8rem); }
.light-controls {
  position: absolute;
  right: clamp(.8rem, 4.1vw, 3.8rem);
  bottom: clamp(3.65rem, 9.3vw, 8.3rem);
  display: flex;
  align-items: center;
  border-bottom: 1px solid #eeece47a;
  color: #fffaf0;
}
.light-controls button { border: 0; border-bottom: 2px solid transparent; min-height: 44px; background: none; padding: .45rem .78rem; font-size: .84rem; }
.light-controls button[aria-pressed="true"] { border-color: var(--accent); color: #ffe4bb; }
.light-controls button:hover { color: var(--accent); }
.hero-link {
  position: absolute;
  right: clamp(.8rem, 4.1vw, 3.8rem);
  bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: .9rem;
  min-height: 44px;
  padding: .5rem .85rem;
  background: var(--ink);
  color: var(--bg);
  font-size: .86rem;
  text-decoration: none;
}
.hero-link:hover { background: var(--accent); }
.down-icon { width: .56rem; height: .56rem; border: solid currentColor; border-width: 0 1px 1px 0; transform: translateY(-2px) rotate(45deg); }
.premise {
  display: grid;
  grid-template-columns: .56fr 1.58fr .7fr;
  align-items: end;
  gap: 1.55rem clamp(1.5rem, 5vw, 4.5rem);
  padding-block: var(--space);
}
.side-label { align-self: start; border-top: 1px solid var(--rule); padding-top: .5rem; }
.side-label, .margin-note { color: var(--muted); font-size: .9rem; }
.premise h2 { margin-bottom: 1.22rem; }
.premise h2 + p { max-width: 53ch; font-size: clamp(1.08rem, 1.65vw, 1.38rem); line-height: 1.5; }
.margin-note { border-bottom: 1px solid var(--rule); padding-bottom: .85rem; }
.horizon { position: relative; padding-bottom: clamp(1.6rem, 4vw, 3.75rem); }
.horizon-figure { position: relative; width: 88%; margin-left: auto; }
.horizon-figure img { aspect-ratio: 2.18; object-fit: cover; }
.horizon-figure figcaption { margin-top: .6rem; text-align: right; color: var(--muted); font-size: .82rem; }
.horizon-title {
  position: relative;
  width: min(45%, 31rem);
  margin: clamp(-170px, -13vw, -90px) 0 0 clamp(0rem, 3.2vw, 2.95rem);
  background: var(--bg);
  padding: clamp(1.05rem, 2.7vw, 2.5rem) clamp(1rem, 3vw, 2.5rem) 0 0;
}
.horizon-title h2 { font-size: clamp(1.9rem, 4.1vw, 4.2rem); }
.horizon-title p { margin-top: .85rem; color: var(--muted); max-width: 30ch; }
.chapter-head { display: grid; grid-template-columns: 1fr minmax(13rem, 25%); align-items: end; gap: .85rem clamp(1.5rem, 5vw, 4.5rem); margin-bottom: clamp(1.5rem, 4.4vw, 3.5rem); }
.chapter-head > p { color: var(--muted); font-size: .95rem; max-width: 32ch; }
.study { padding-top: clamp(3rem, 7vw, 6.5rem); }
@keyframes note-in { from { opacity: .5; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.materials { padding-block: var(--space); }
.specimen { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center; gap: 0; }
.specimen + .specimen { margin-top: clamp(2.5rem, 6vw, 6rem); }
.specimen-photo, .specimen-copy { grid-row: 1; }
.specimen-photo { clip-path: polygon(0 0, 93% 0, 100% 15%, 100% 100%, 0 100%); background: #44463d; }
.specimen-photo img { height: clamp(220px, 31vw, 390px); object-fit: cover; }
.specimen-concrete .specimen-photo { grid-column: 1 / 9; }
.specimen-stone .specimen-photo { grid-column: 5 / 13; clip-path: polygon(0 15%, 7% 0, 100% 0, 100% 100%, 0 100%); }
.specimen-concrete .specimen-copy { grid-column: 8 / 13; }
.specimen-stone .specimen-copy { grid-column: 1 / 6; }
.specimen-copy { z-index: 1; background: var(--bg); border: 1px solid var(--rule); padding: clamp(1rem, 3.7vw, 3.3rem); }
.specimen-copy > p { margin-top: .85rem; color: var(--muted); }
.specimen-copy details { margin-top: 1.25rem; border-top: 1px solid var(--rule); }
.specimen-copy summary { display: flex; align-items: center; justify-content: space-between; gap: .65rem; list-style: none; min-height: 45px; cursor: pointer; font-size: .88rem; }
.specimen-copy summary::-webkit-details-marker { display: none; }
.specimen-copy summary::after { content: ""; flex: 0 0 13px; height: 13px; background: linear-gradient(currentColor,currentColor) center / 100% 1px no-repeat, linear-gradient(currentColor,currentColor) center / 1px 100% no-repeat; }
.specimen-copy details[open] summary::after { background-size: 100% 1px, 0 0; }
.specimen-copy summary:hover { color: var(--accent); }
.specimen-copy details p { padding-bottom: .15rem; color: var(--muted); }
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; padding: 1.65rem clamp(.8rem, 4.1vw, 3.8rem) 2.75rem; border-top: 1px solid var(--rule); }
.footer p { margin-top: .5rem; color: var(--muted); font-size: .83rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .45rem 1.4rem; font-size: .9rem; }
@media (prefers-reduced-motion: no-preference) {
  .hero-type h1 > span > span { animation: title-in .9s var(--ease) both; }
  .hero-type h1 > span:nth-child(2) > span { animation-delay: .11s; }
  @keyframes title-in { from { transform: translateY(99%); } to { transform: translateY(0); } }
  [data-reveal].enter img { animation: plate-in 1.16s var(--ease) both; }
  @keyframes plate-in { from { clip-path: inset(0 0 0 10%); filter: brightness(.71); } to { clip-path: inset(0); filter: brightness(1); } }
  .specimen-copy details[open] p { animation: note-in .38s var(--ease) both; }
}
@media (max-width: 940px) {
  .masthead { grid-template-columns: auto 1fr; }
  .masthead nav { justify-content: flex-end; }
  .desk-credit { display: none; }
  .premise { grid-template-columns: .57fr 1.75fr; }
  .margin-note { grid-column: 2; justify-self: end; max-width: 35ch; }
}
@media (max-width: 620px) {
  :root { --frame: calc(100% - 1.25rem); --inner: calc(100% - 2rem); }
  .masthead { min-height: 0; padding-block: .55rem .15rem; grid-template-columns: 1fr; gap: 0; }
  .masthead nav { justify-content: flex-start; }
  .hero { padding-bottom: 1.12rem; }
  .hero-view { height: clamp(335px, 94vw, 490px); }
  .hero-view img { object-position: 48% center; }
  .hero-type { margin: -4.25rem .75rem 0; }
  .hero-type h1 { font-size: clamp(2.5rem, 11.6vw, 4.4rem); }
  .hero-type p { margin-top: .7rem; }
  .light-controls { right: .6rem; top: .55rem; bottom: auto; background: #141711c9; }
  .light-controls button { padding-inline: .62rem; }
  .hero-link { position: relative; inset: auto; width: fit-content; margin: 1.1rem .75rem 0; }
  .premise { grid-template-columns: 1fr; gap: .85rem; }
  .side-label { margin-bottom: .7rem; }
  .margin-note { grid-column: 1; justify-self: start; max-width: none; }
  .horizon-figure { width: 100%; }
  .horizon-figure img { min-height: 250px; object-position: 59% 50%; }
  .horizon-figure figcaption { font-size: .73rem; }
  .horizon-title { width: calc(100% - 1rem); margin: 1.2rem 0 0 .4rem; padding: 0; }
  .chapter-head { grid-template-columns: 1fr; }
  .chapter-head > p { max-width: 42ch; }
  .specimen { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); }
  .specimen .specimen-photo { grid-column: 1 / 7; grid-row: 1; }
  .specimen .specimen-photo img { height: clamp(185px, 54vw, 280px); }
  .specimen-concrete .specimen-copy { grid-column: 2 / 7; }
  .specimen-stone .specimen-copy { grid-column: 1 / 6; }
  .specimen .specimen-copy { grid-row: 2; margin-top: -1.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-view .hero-dusk { transition: none; }
}
.horizon-frame { position: relative; }
.angle-controls { position: absolute; top: .7rem; right: .7rem; display: flex; background: #191a17e6; }
.angle-controls button { border: 0; border-bottom: 2px solid transparent; min-height: 44px; padding: .5rem .76rem; background: transparent; color: var(--ink); font-size: .84rem; }
.angle-controls button:hover, .angle-controls button[aria-pressed="true"] { color: var(--accent); }
.angle-controls button[aria-pressed="true"] { border-color: var(--accent); }
.house-plan {
  margin: 0;
  padding: clamp(2.6rem, 5.5vw, 5rem) 0 0;
}
.plan-plate {
  position: relative;
  width: min(91%, 930px);
  margin-inline: auto;
  container-type: inline-size;
}
.plan-plate img {
  background: #34372d;
  outline: 1px solid #484a3f;
  outline-offset: -1px;
}
.plan-leaders {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  color: #ead2aa;
  filter: drop-shadow(0 1px 1px #141512b0);
}
.plan-leaders path { fill: none; stroke: currentColor; stroke-width: 1px; vector-effect: non-scaling-stroke; }
.plan-leaders circle { fill: currentColor; stroke: #1d1d19; stroke-width: 1px; vector-effect: non-scaling-stroke; }
.plan-labels { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; pointer-events: none; }
.plan-labels li {
  position: absolute;
  left: var(--label-x);
  white-space: nowrap;
  transform: translateX(-50%);
  color: var(--ink);
  font: 400 clamp(.75rem, 1.4vw, 1.06rem)/1.3 var(--display);
  letter-spacing: -.025em;
}
.label-bath, .label-kitchen, .label-bedroom { bottom: calc(100% + 3.19cqw + .42rem); }
.label-entry, .label-lounge { top: calc(100% + 3.19cqw + .42rem); }
.label-bath { --label-x: 15.3646%; }
.label-kitchen { --label-x: 54.7526%; }
.label-bedroom { --label-x: 86.4583%; }
.label-entry { --label-x: 15.7552%; }
.label-lounge { --label-x: 47.9818%; }
.house-plan figcaption {
  margin-top: clamp(3.35rem, 7vw, 6rem);
  border-top: 1px solid var(--rule);
  padding-top: .75rem;
  color: var(--muted);
  font-size: .82rem;
}
@media (max-width: 620px) {
  .plan-plate { width: 100%; }
  .plan-leaders circle { r: 7px; }
}
