/* ==========================================================================
   Form & Air
   One stylesheet, no build step. Sections:
   1. Tokens   2. Base   3. Type   4. Layout   5. Controls   6. Header and menu
   7. Hero and page heads   8. Frames and reveals   9. Home sections
   10. Comparison   11. Homes and studies   12. Inquiry   13. Lightbox
   14. Footer   15. Motion preferences and print
   ========================================================================== */

/* 1. Tokens --------------------------------------------------------------- */

:root {
  --ink: #0d0c0b;
  --ink-2: #141311;
  --paper: #f3efe8;
  --bronze: #b08d66;
  --bronze-deep: #7b5d3c;

  /* Swap either stack for a licensed, self-hosted face without touching rules. */
  --font-display: "Iowan Old Style", "Sitka Display", "Sitka Heading", "Palatino Nova", "Hoefler Text", "Noto Serif", Georgia, serif;
  --font-text: "Avenir Next", "Segoe UI Variable Text", "Segoe UI", "Helvetica Neue", system-ui, -apple-system, Roboto, Arial, sans-serif;

  --gutter: clamp(1.25rem, 4.2vw, 4.5rem);
  --gap: clamp(1rem, 2.2vw, 2.25rem);
  --space-section: clamp(5.5rem, 12vw, 11.5rem);
  --ease: cubic-bezier(0.22, 0.7, 0.16, 1);
  --header-h: 4.5rem;
}

[data-theme="ink"],
body {
  --bg: var(--ink);
  --fg: var(--paper);
  --muted: #aba498;
  --line: rgba(243, 239, 232, 0.18);
  --accent: var(--bronze);
  --frame-bg: #1b1917;
}

[data-theme="paper"] {
  --bg: var(--paper);
  --fg: var(--ink);
  --muted: #5c564d;
  --line: rgba(13, 12, 11, 0.2);
  --accent: var(--bronze-deep);
  --frame-bg: #e3dcd0;
}

/* 2. Base ----------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

html:has(dialog[open]) {
  overflow: hidden;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

[data-theme] {
  background: var(--bg);
  color: var(--fg);
}

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

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure,
pre {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  font-size: inherit;
  font-weight: 400;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 4px;
}

::selection {
  background: var(--bronze);
  color: var(--ink);
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.85rem 1.25rem;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  transform: translateY(-200%);
}

.skip:focus {
  transform: none;
}

/* 3. Type ----------------------------------------------------------------- */

.display,
.h-xl,
.h-lg,
.h-md {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

.display {
  font-size: clamp(2.25rem, 9.4vw, 9rem);
  line-height: 0.96;
  letter-spacing: -0.028em;
}

.h-xl {
  font-size: clamp(2.5rem, 6.4vw, 5.75rem);
  line-height: 1;
  letter-spacing: -0.024em;
}

.h-lg {
  font-size: clamp(1.875rem, 3.6vw, 3.25rem);
  line-height: 1.12;
}

.h-md {
  font-size: clamp(1.5rem, 2.3vw, 2.125rem);
  line-height: 1.18;
}

.display em,
.h-xl em,
.h-lg em {
  font-style: italic;
  color: var(--accent);
}

.lede {
  font-size: clamp(1.125rem, 1.45vw, 1.375rem);
  line-height: 1.5;
  max-width: 34em;
}

.prose p {
  max-width: 36em;
}

.prose p + p {
  margin-top: 1.1em;
}

.muted {
  color: var(--muted);
}

/* A short drawn rule in front of a sentence-case label. */
.label {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  color: var(--accent);
}

.label::before {
  content: "";
  flex: none;
  width: 1.75rem;
  height: 1px;
  background: currentColor;
}

.label--plain::before {
  content: none;
}

/* 4. Layout --------------------------------------------------------------- */

.wrap {
  width: min(100% - 2 * var(--gutter), 96rem);
  margin-inline: auto;
}

.section {
  padding-block: var(--space-section);
}

.section--tight {
  padding-block: clamp(4rem, 8vw, 7rem);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: clamp(2rem, 4vw, 3.5rem);
}

.section-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 1.5rem;
  margin-bottom: clamp(3rem, 6.5vw, 6rem);
}

.section-head > .label {
  grid-column: 1 / 4;
  align-self: start;
  padding-top: 0.9rem;
}

.section-head > .section-head__title {
  grid-column: 4 / 13;
}

.section-head > .section-head__text {
  grid-column: 4 / 10;
}

@media (max-width: 760px) {
  .section-head > .label,
  .section-head > .section-head__title,
  .section-head > .section-head__text {
    grid-column: 1 / -1;
    padding-top: 0;
  }
}

/* 5. Controls ------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.85rem 1.75rem;
  border: 1px solid var(--fg);
  border-radius: 0;
  background: transparent;
  color: var(--fg);
  font-size: 1rem;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

.btn:hover {
  background: var(--fg);
  color: var(--bg);
}

.btn--solid {
  background: var(--fg);
  color: var(--bg);
}

.btn--solid:hover {
  background: var(--bronze);
  border-color: var(--bronze);
  color: var(--ink);
}

.link {
  display: inline-block;
  padding-block: 0.6rem;
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.34em;
  text-decoration-color: var(--accent);
  transition: text-decoration-color 0.3s ease;
}

.link:hover {
  text-decoration-color: currentColor;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 2rem;
}

/* 6. Header and menu ------------------------------------------------------ */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
  padding: 0.5rem var(--gutter);
  color: var(--paper);
  border-bottom: 1px solid transparent;
  transition: transform 0.55s var(--ease), background-color 0.4s ease, border-color 0.4s ease;
}

.site-header.is-scrolled {
  background: rgba(13, 12, 11, 0.84);
  border-bottom-color: rgba(243, 239, 232, 0.12);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
}

.site-header.is-hidden:not(:focus-within) {
  transform: translateY(-101%);
}

/* Wordmark: Form set solid, Air set light and open. */
.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.44em;
  padding-block: 0.8rem;
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  color: inherit;
}

.wordmark__form {
  font-weight: 600;
  letter-spacing: 0.07em;
}

.wordmark__amp {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2em;
  text-transform: none;
  color: var(--bronze);
}

.wordmark__air {
  font-weight: 300;
  letter-spacing: 0.44em;
  margin-right: -0.44em;
}

.wordmark--lg {
  font-size: clamp(1.75rem, 5.2vw, 4.25rem);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 2.6vw, 2.75rem);
}

.site-nav a {
  position: relative;
  padding-block: 0.8rem;
  font-size: 1rem;
  text-decoration: none;
}

.site-nav a:not(.site-nav__inquire)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.45rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.site-nav a[aria-current="page"]::after {
  background: var(--bronze);
}

.site-nav .site-nav__inquire {
  padding: 0.7rem 1.25rem;
  border: 1px solid rgba(243, 239, 232, 0.55);
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

.site-nav .site-nav__inquire:hover {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

.menu-toggle,
.menu__close {
  display: none;
  min-height: 2.75rem;
  padding: 0.5rem 0;
  border: 0;
  background: none;
  font-size: 1rem;
  cursor: pointer;
}

.menu-toggle::before,
.menu__close::before {
  content: "";
  display: inline-block;
  width: 1.5rem;
  height: 1px;
  margin-right: 0.7rem;
  vertical-align: middle;
  background: currentColor;
}

@media (max-width: 860px) {
  .site-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-block;
  }
}

.menu {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--ink);
  color: var(--paper);
  overflow-y: auto;
}

.menu::backdrop {
  background: var(--ink);
}

.menu[open] {
  display: flex;
  flex-direction: column;
  animation: fade 0.35s ease both;
}

.menu__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  padding: 0.5rem var(--gutter);
}

.menu__close {
  display: inline-block;
}

.menu__nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem var(--gutter);
}

.menu__nav li {
  border-top: 1px solid rgba(243, 239, 232, 0.16);
}

.menu__nav li:last-child {
  border-bottom: 1px solid rgba(243, 239, 232, 0.16);
}

.menu__nav a {
  display: block;
  padding: 0.55em 0;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 10.5vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.menu[open] .menu__nav a {
  animation: enter 0.8s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 70ms + 80ms);
}

.menu__nav a[aria-current="page"] {
  font-style: italic;
  color: var(--bronze);
}

.menu__foot {
  padding: 1.5rem var(--gutter) 2rem;
  color: #aba498;
}

/* 7. Hero and page heads -------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: calc(var(--header-h) + 3rem);
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
}

.hero--page {
  min-height: 92vh;
  min-height: 92svh;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  will-change: transform;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: settle 3.2s var(--ease) both;
}

/* Scrim sized for legibility of the headline and the header, nothing more. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(13, 12, 11, 0.88) 0%, rgba(13, 12, 11, 0.42) 38%, rgba(13, 12, 11, 0.08) 62%, rgba(13, 12, 11, 0.4) 100%);
  pointer-events: none;
}

.hero__inner {
  padding-bottom: clamp(1.75rem, 4vw, 3.25rem);
}

/* Over photography the accent lifts to sand so the italic line stays legible. */
.hero em {
  color: #dcc7a8;
}

.hero__label {
  margin-bottom: clamp(1.25rem, 2.5vw, 2rem);
  color: var(--paper);
}

.hero__label::before {
  background: var(--bronze);
}

.line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.16em;
  margin-bottom: -0.16em;
}

.line > span {
  display: block;
  animation: rise 1.35s var(--ease) both;
  animation-delay: var(--d, 0.15s);
}

[data-enter] {
  animation: enter 1.2s var(--ease) both;
  animation-delay: var(--d, 0.7s);
}

.hero__foot {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 1.75rem;
  align-items: end;
  margin-top: clamp(2rem, 4.5vw, 4rem);
  padding-top: clamp(1.25rem, 2.2vw, 2rem);
  border-top: 1px solid rgba(243, 239, 232, 0.28);
}

.hero__intro {
  grid-column: 1 / 7;
}

.hero__intro .lede {
  max-width: 30em;
}

.hero__intro .actions {
  margin-top: 1.25rem;
}

.hero__caption {
  grid-column: 8 / 13;
  justify-self: end;
  text-align: right;
  font-size: 1rem;
  color: rgba(243, 239, 232, 0.86);
}

.hero__caption a {
  padding-block: 0.3rem;
}

@media (max-width: 760px) {
  .hero__intro,
  .hero__caption {
    grid-column: 1 / -1;
    justify-self: start;
    text-align: left;
  }
}

.page-head {
  padding-top: clamp(9.5rem, 19vw, 15rem);
  padding-bottom: clamp(3rem, 6vw, 5.5rem);
}

.page-head__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 2rem;
  align-items: end;
}

.page-head__title {
  grid-column: 1 / 9;
}

/* Two-line titles take the full measure; the text then sits beneath, to the right. */
@media (min-width: 861px) {
  .page-head__title:has(.line + .line) {
    grid-column: 1 / -1;
  }

  .page-head__title:has(.line + .line) + .page-head__text {
    grid-column: 8 / 13;
  }
}

.page-head__title .label {
  margin-bottom: clamp(1.25rem, 2.5vw, 2rem);
}

.page-head__text {
  grid-column: 9 / 13;
  padding-bottom: 0.6rem;
}

@media (max-width: 860px) {
  .page-head .page-head__title,
  .page-head .page-head__title + .page-head__text {
    grid-column: 1 / -1;
  }
}

/* 8. Frames and reveals --------------------------------------------------- */

/* Every photograph sits in a frame with a declared ratio, so layout never moves. */
.frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: var(--ratio, 3 / 2);
  background: var(--frame-bg);
  color: var(--paper);
}

.frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focus, 50% 50%);
  transition: transform 1.4s var(--ease), clip-path 1.5s var(--ease) var(--d, 0s);
}

a.frame:hover img,
a.frame:focus-visible img {
  transform: scale(1.03);
}

a.frame:focus-visible {
  outline-offset: 6px;
}

a.frame[data-lightbox]::after {
  content: "View full image";
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: 0.45rem 0.85rem;
  background: rgba(13, 12, 11, 0.72);
  font-size: 0.9375rem;
  line-height: 1.2;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.45s var(--ease);
}

a.frame[data-lightbox]:hover::after,
a.frame[data-lightbox]:focus-visible::after {
  opacity: 1;
  transform: none;
}

a.frame[data-lightbox] {
  cursor: zoom-in;
}

img.is-missing {
  visibility: hidden;
}

.caption {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 0.9rem;
  font-size: 1rem;
  color: var(--muted);
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1.1s var(--ease) var(--d, 0s), transform 1.3s var(--ease) var(--d, 0s);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

.js [data-reveal="frame"] {
  opacity: 1;
  transform: none;
}

.js [data-reveal="frame"] img {
  clip-path: inset(0 0 100% 0);
  transform: scale(1.1);
}

.js [data-reveal="frame"].is-in img {
  clip-path: inset(0 0 0 0);
  transform: scale(1);
}

.js a[data-reveal="frame"].is-in:hover img,
.js a[data-reveal="frame"].is-in:focus-visible img {
  transform: scale(1.03);
}

@keyframes rise {
  from { transform: translateY(112%); }
  to { transform: none; }
}

@keyframes enter {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@keyframes settle {
  from { transform: scale(1.07); }
  to { transform: scale(1); }
}

@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* 9. Home sections -------------------------------------------------------- */

.statement {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 3.375rem);
  line-height: 1.16;
  letter-spacing: -0.016em;
  text-wrap: pretty;
}

.intro__label {
  grid-column: 1 / 4;
  padding-top: 0.9rem;
}

.intro__statement {
  grid-column: 4 / 13;
}

.intro__text {
  grid-column: 4 / 8;
}

.intro__text + .intro__text {
  grid-column: 8 / 12;
}

@media (max-width: 760px) {
  .intro__label,
  .intro__statement,
  .intro__text,
  .intro__text + .intro__text {
    grid-column: 1 / -1;
    padding-top: 0;
  }
}

/* Flagship */
.flagship__head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.flagship__head .label {
  margin-bottom: clamp(1.25rem, 2.5vw, 2rem);
}

.flagship__place {
  padding-bottom: 0.7rem;
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  color: var(--muted);
}

.flagship__main {
  grid-column: 1 / 9;
}

.flagship__side {
  grid-column: 9 / 13;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.5rem;
}

.flagship__side .actions {
  margin-top: 1.75rem;
}

@media (max-width: 860px) {
  .flagship__main,
  .flagship__side {
    grid-column: 1 / -1;
  }

}

/* Studies, staggered */
.studies-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: clamp(3.5rem, 8vw, 7.5rem);
  align-items: start;
}

.studies-grid .study:nth-child(1) { grid-column: 1 / 8; }
.studies-grid .study:nth-child(2) { grid-column: 9 / 13; margin-top: clamp(4rem, 13vw, 12rem); }
.studies-grid .study:nth-child(3) { grid-column: 2 / 6; }
.studies-grid .study:nth-child(4) { grid-column: 7 / 13; margin-top: clamp(3rem, 9vw, 8rem); }

@media (max-width: 760px) {
  .studies-grid .study:nth-child(n) {
    grid-column: 1 / -1;
    margin-top: 0;
  }
}

.study__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin-top: 1.1rem;
}

.study__title a {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.5s var(--ease);
}

.study__title a:hover,
.study:has(a.frame:hover) .study__title a {
  background-size: 100% 1px;
}

.study__type {
  flex-basis: 100%;
  color: var(--muted);
}

.study__label {
  font-size: 0.9375rem;
  color: var(--accent);
}

.section-foot {
  margin-top: clamp(3rem, 6vw, 5.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 2rem;
}

/* Typographic rows: services, principles, lists */
.rows {
  border-bottom: 1px solid var(--line);
}

.row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 0.9rem;
  padding-block: clamp(1.75rem, 3.4vw, 3rem);
  border-top: 1px solid var(--line);
}

.row__title {
  grid-column: 1 / 7;
}

.row__text {
  grid-column: 7 / 12;
  align-self: center;
}

@media (max-width: 760px) {
  .row__title,
  .row__text {
    grid-column: 1 / -1;
  }
}

.steps {
  display: grid;
  grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3rem) var(--gap);
}

.step {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  transition: border-color 0.4s ease;
}

.step__title {
  margin-bottom: 0.7rem;
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 1.9vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.step p {
  color: var(--muted);
  max-width: 24em;
}

@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
}

.subhead {
  margin-top: clamp(4.5rem, 9vw, 8rem);
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.footnote {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  max-width: 38em;
  color: var(--muted);
}

/* Closing band on inner pages */
.cta {
  border-top: 1px solid var(--line);
}

.cta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 2rem 3rem;
}

/* 10. Comparison ----------------------------------------------------------- */

.compare {
  --a: 33.333%;
  --b: 66.667%;
}

.compare__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.chip {
  min-height: 2.75rem;
  padding: 0.55rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--fg);
  font-size: 1rem;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.chip:hover {
  border-color: var(--fg);
}

.chip[aria-pressed="true"] {
  background: var(--fg);
  border-color: var(--fg);
  color: var(--bg);
}

.compare__stage {
  position: relative;
  aspect-ratio: var(--ratio, 3 / 2);
  overflow: hidden;
  background: #090807;
  cursor: ew-resize;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}

/* contain, never cover: the three states keep their whole composition. */
.compare__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.compare__img--drawing { clip-path: inset(0 calc(100% - var(--a)) 0 0); }
.compare__img--model { clip-path: inset(0 calc(100% - var(--b)) 0 var(--a)); }
.compare__img--final { clip-path: inset(0 0 0 var(--b)); }

.compare__label {
  position: absolute;
  bottom: 1rem;
  overflow: hidden;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.compare__label span {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  background: rgba(13, 12, 11, 0.74);
  color: var(--paper);
  font-size: 0.9375rem;
  line-height: 1.2;
}

.compare__label--drawing { left: 0; width: var(--a); }
.compare__label--model { left: var(--a); width: calc(var(--b) - var(--a)); }
.compare__label--final { left: var(--b); right: 0; }

.compare__label.is-narrow {
  opacity: 0;
}

.compare__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3rem;
  margin-left: -1.5rem;
  cursor: ew-resize;
  touch-action: none;
  outline: none;
}

.compare__handle--a { left: var(--a); }
.compare__handle--b { left: var(--b); }

.compare__handle::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: var(--paper);
  box-shadow: 0 0 0 0.5px rgba(13, 12, 11, 0.35);
}

.compare__grip {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2.75rem;
  height: 2.75rem;
  margin: -1.375rem 0 0 -1.375rem;
  border: 1px solid var(--paper);
  border-radius: 50%;
  background: rgba(13, 12, 11, 0.62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.4s var(--ease);
}

.compare__grip::before,
.compare__grip::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 1px;
  height: 0.8rem;
  margin-top: -0.4rem;
  background: var(--paper);
}

.compare__grip::before { left: calc(50% - 4px); }
.compare__grip::after { left: calc(50% + 3px); }

.compare__handle:hover .compare__grip {
  transform: scale(1.08);
}

.compare__handle:focus-visible .compare__grip {
  background: var(--bronze);
  border-color: var(--bronze);
  outline: 2px solid var(--paper);
  outline-offset: 3px;
}

.compare__handle:focus-visible::before {
  background: var(--bronze);
  width: 2px;
  margin-left: -0.5px;
}

.compare__hint {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 1rem;
}

.compare__steps {
  --cols: 3;
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
}

.compare[data-state="drawing"] .step--drawing,
.compare[data-state="model"] .step--model,
.compare[data-state="final"] .step--final {
  border-top-color: var(--bronze);
  box-shadow: 0 -1px 0 var(--bronze);
}

@media (max-width: 900px) {
  .compare__steps { grid-template-columns: minmax(0, 1fr); }
}

.process__why {
  margin-top: clamp(4rem, 9vw, 8rem);
  padding-top: clamp(2rem, 4vw, 3.5rem);
  border-top: 1px solid var(--line);
}

.process__why .statement {
  font-size: clamp(1.5rem, 2.7vw, 2.5rem);
}

/* 11. Homes and studies ---------------------------------------------------- */

.feature__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

.feature__meta .muted {
  margin-top: 0.5rem;
}

.feature__title a {
  text-decoration: none;
}

/* Flagship gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: clamp(3rem, 7vw, 6.5rem);
  align-items: start;
}

.gallery__item--full { grid-column: 1 / -1; }
.gallery__item--wide { grid-column: 1 / 8; }
.gallery__item--tall { grid-column: 9 / 13; margin-top: clamp(3rem, 10vw, 9rem); }

@media (max-width: 760px) {
  .gallery__item--wide,
  .gallery__item--tall {
    grid-column: 1 / -1;
    margin-top: 0;
  }
}

.tour-band {
  text-align: center;
}

.tour-band .label {
  justify-content: center;
  margin-bottom: 1.75rem;
}

.tour-band .lede {
  margin: 1.5rem auto 2.25rem;
}

/* Studies index rows */
.study-row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 1.5rem;
  align-items: end;
}

.study-row + .study-row {
  margin-top: clamp(4.5rem, 10vw, 9.5rem);
}

.study-row__media { grid-column: 1 / 9; }
.study-row__body { grid-column: 9 / 13; padding-bottom: 0.25rem; }

.study-row:nth-child(even) .study-row__media { grid-column: 5 / 13; order: 2; }
.study-row:nth-child(even) .study-row__body { grid-column: 1 / 5; order: 1; }

.study-row__body .study__label {
  margin-bottom: 1.1rem;
}

.study-row__body .study__type {
  margin: 0.5rem 0 1.1rem;
}

.study-row__body .link {
  margin-top: 0.9rem;
}

@media (max-width: 860px) {
  .study-row .study-row__media,
  .study-row .study-row__body {
    grid-column: 1 / -1 !important;
    order: 0 !important;
  }
}

/* Study page */
.study-figure {
  padding-bottom: var(--space-section);
}

.facts {
  grid-column: 1 / 5;
}

.facts .label {
  margin-bottom: 1.75rem;
}

.facts dl {
  border-bottom: 1px solid var(--line);
}

.facts dl > div {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 1rem;
  padding-block: 0.9rem;
  border-top: 1px solid var(--line);
}

.facts dt {
  color: var(--muted);
}

.study-text {
  grid-column: 6 / 12;
}

.study-text .statement {
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  font-size: clamp(1.625rem, 2.8vw, 2.625rem);
}

@media (max-width: 860px) {
  .facts,
  .study-text {
    grid-column: 1 / -1;
  }
}

.pager {
  display: block;
  padding-block: clamp(4rem, 9vw, 8rem);
  border-top: 1px solid var(--line);
  text-decoration: none;
}

.pager .label {
  margin-bottom: 1.25rem;
}

.pager__title {
  display: inline;
  background: linear-gradient(var(--bronze), var(--bronze)) 0 100% / 0 1px no-repeat;
  transition: background-size 0.7s var(--ease);
}

.pager:hover .pager__title,
.pager:focus-visible .pager__title {
  background-size: 100% 1px;
}

/* 12. Inquiry -------------------------------------------------------------- */

.brief {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 3.5rem;
  align-items: start;
}

.brief__fields {
  grid-column: 1 / 7;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem var(--gap);
}

.brief__preview {
  grid-column: 8 / 13;
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  padding: clamp(1.5rem, 2.6vw, 2.25rem);
  border: 1px solid var(--line);
  background: var(--ink-2);
}

@media (max-width: 960px) {
  .brief__fields,
  .brief__preview {
    grid-column: 1 / -1;
    position: static;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
  border: 0;
  padding: 0;
  margin: 0;
}

.field--full {
  grid-column: 1 / -1;
}

@media (max-width: 560px) {
  .field {
    grid-column: 1 / -1;
  }
}

.field > label,
.field > legend {
  padding: 0;
  font-size: 1rem;
  color: var(--muted);
}

.field input[type="text"],
.field select,
.field textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.6rem 0;
  border: 0;
  border-bottom: 1px solid rgba(243, 239, 232, 0.4);
  border-radius: 0;
  background: transparent;
  font-size: 1.0625rem;
  line-height: 1.4;
  transition: border-color 0.3s ease;
}

.field textarea {
  min-height: 7.5rem;
  resize: vertical;
}

.field select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' fill='none' stroke='%23f3efe8' stroke-width='1.2'%3E%3Cpath d='M1 1l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.25rem center;
  cursor: pointer;
}

.field select option {
  background: var(--ink);
  color: var(--paper);
}

.field input[type="text"]:hover,
.field select:hover,
.field textarea:hover {
  border-bottom-color: var(--paper);
}

.field input[type="text"]:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-bottom-color: var(--bronze);
  box-shadow: 0 2px 0 var(--bronze);
}

.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.check {
  position: relative;
  display: inline-flex;
}

.check input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.check span {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--line);
  line-height: 1.2;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.check input:hover + span {
  border-color: var(--paper);
}

.check input:checked + span {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

.check input:focus-visible + span {
  outline: 2px solid var(--bronze);
  outline-offset: 3px;
}

.brief__preview-title {
  margin-bottom: 1.25rem;
}

.brief__output {
  min-height: 9rem;
  max-height: 22rem;
  overflow: auto;
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-text);
  font-size: 1rem;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.brief__output.is-empty {
  color: var(--muted);
}

.brief__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.brief__actions .btn {
  flex: 1 1 10rem;
}

.brief__note,
.brief__address {
  margin-top: 1.1rem;
  font-size: 1rem;
  color: var(--muted);
}

.brief__address a {
  color: var(--paper);
}

.brief__status {
  min-height: 1.6em;
  margin-top: 0.6rem;
  font-size: 1rem;
  color: var(--bronze);
}

/* 13. Lightbox ------------------------------------------------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #090807;
  color: var(--paper);
}

.lightbox::backdrop {
  background: #090807;
}

.lightbox[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  animation: fade 0.35s ease both;
}

.lightbox__bar,
.lightbox__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  min-height: 4rem;
  padding: 0.5rem var(--gutter);
}

.lightbox__foot {
  flex-wrap: wrap;
  padding-bottom: 1rem;
}

.lightbox__count {
  color: #aba498;
  font-variant-numeric: tabular-nums;
}

.lightbox__figure {
  position: relative;
  margin: 0 var(--gutter);
  cursor: zoom-out;
  touch-action: pan-y;
}

.lightbox__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.45s ease;
}

.lightbox__img.is-loading {
  opacity: 0;
}

.lightbox__missing {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  color: #aba498;
}

.lightbox__nav {
  display: flex;
  gap: 0.5rem;
}

.lightbox__btn {
  min-height: 2.75rem;
  padding: 0.5rem 1.15rem;
  border: 1px solid rgba(243, 239, 232, 0.3);
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.lightbox__btn:hover {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

/* 14. Footer --------------------------------------------------------------- */

.site-footer {
  padding-block: clamp(4rem, 8vw, 7rem) 2rem;
  background: var(--ink-2);
  border-top: 1px solid var(--line);
}

.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.site-footer__line {
  max-width: 22em;
  padding-bottom: 0.9rem;
  color: var(--muted);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 2rem;
}

.site-footer__links a,
.site-footer__meta a {
  display: inline-block;
  padding-block: 0.7rem;
  text-decoration: none;
}

.site-footer__links a:hover,
.site-footer__meta a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.34em;
}

.site-footer__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 2rem;
  color: var(--muted);
}

/* Tour host page: a slim bar, then the embedded house fills what is left. --- */

.tour-page,
.tour-page body {
  height: 100%;
  overflow: hidden;
}

.tour-page body {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
}

.tour-bar {
  flex: none;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0 1.5rem;
  padding: 0.25rem var(--gutter);
  padding-top: max(0.25rem, env(safe-area-inset-top));
  border-bottom: 1px solid var(--line);
  background: var(--ink);
}

.tour-bar__lead,
.tour-bar__tools {
  display: flex;
  align-items: center;
  gap: 0 clamp(1rem, 2.4vw, 2.25rem);
  min-width: 0;
}

.tour-bar__tools {
  justify-content: flex-end;
}

.tour-bar__back,
.tour-bar__external {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.34em;
  text-decoration-color: var(--bronze);
  transition: text-decoration-color 0.3s ease;
}

.tour-bar__back:hover,
.tour-bar__external:hover {
  text-decoration-color: currentColor;
}

.tour-bar__title {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.tour-switch {
  display: inline-flex;
  border: 1px solid var(--line);
}

.tour-switch a {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.3rem 1rem;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.tour-switch a:hover {
  background: rgba(243, 239, 232, 0.1);
}

.tour-switch a[aria-current="true"] {
  background: var(--paper);
  color: var(--ink);
}

.tour-stage {
  flex: 1 1 auto;
  min-height: 0;
  background: #090807;
}

.tour-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 1080px) {
  .tour-bar {
    grid-template-columns: 1fr auto;
  }

  .tour-bar__title {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
}

@media (max-width: 720px) {
  .tour-bar {
    grid-template-columns: minmax(0, 1fr);
  }

  .tour-bar__lead,
  .tour-bar__tools {
    justify-content: space-between;
  }

  .tour-bar .wordmark {
    font-size: 1rem;
    padding-block: 0.6rem;
  }

  .tour-bar__tools {
    padding-bottom: 0.4rem;
  }
}

/* 15. Motion preferences and print ----------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }

  .js [data-reveal],
  .js [data-reveal="frame"] img {
    opacity: 1;
    transform: none;
    clip-path: none;
  }

  .site-header.is-hidden {
    transform: none;
  }

  a.frame:hover img,
  a.frame:focus-visible img {
    transform: none !important;
  }
}

@media print {
  .site-header,
  .menu,
  .lightbox,
  .compare__controls,
  .compare__hint {
    display: none !important;
  }

  .js [data-reveal],
  .js [data-reveal="frame"] img {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }
}
