@font-face {
  font-family: Instrument;
  src: url("media/instrument.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: Instrument;
  src: url("media/instrument-italic.woff2") format("woff2");
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url("media/manrope.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --ink: #101c23;
  --navy: #021728;
  --dark: #0b1b24;
  --paper: #f2efe8;
  --ivory: #faf5ea;
  --gold: #e2c78e;
  --line: #c8c2b6;
  --sans: Manrope, Arial, sans-serif;
  --display: Instrument, Georgia, serif;
}

* { box-sizing: border-box; }
html.motion-enabled { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.65 var(--sans); }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #b78a4e; outline-offset: 5px; }
p, h1, h2, h3 { margin: 0; }
h1, h2, h3 { font-weight: 400; }
h1, h2 { font-family: var(--display); line-height: .93; letter-spacing: -.025em; }
h1 { font-size: clamp(4.4rem, 8.45vw, 9.3rem); }
h2 { font-size: clamp(3.85rem, 7.8vw, 7.8rem); }
h3 { font-family: var(--display); font-size: clamp(2.2rem, 3.55vw, 3.6rem); line-height: 1; }
.shell { width: min(100% - clamp(2.5rem, 12vw, 12rem), 88rem); margin-inline: auto; }
.section { padding-block: clamp(5rem, 10vw, 10rem); }

.skip { position: fixed; top: 1rem; left: 1rem; z-index: 10; transform: translateY(-200%); background: var(--ivory); color: var(--ink); padding: .6rem 1rem; }
.skip:focus { transform: none; }

.header { position: absolute; z-index: 3; inset: 0 0 auto; color: var(--ivory); }
.header-inner, .footer-inner { min-height: 5.75rem; display: flex; justify-content: space-between; align-items: center; gap: 1.25rem; }
.header-inner { border-bottom: 1px solid #fff5; }
.wordmark { text-decoration: none; display: inline-flex; flex-direction: column; align-items: flex-start; flex-shrink: 0; }
.mark { font-family: var(--display); font-size: 2.65rem; line-height: .8; letter-spacing: .085em; }
.mark span { color: var(--gold); }
.mark-label { font-size: .61rem; font-weight: 700; letter-spacing: .21em; margin-top: .48rem; }
nav { display: flex; align-items: center; gap: clamp(.8rem, 3vw, 2.7rem); }
nav a { font-size: .88rem; text-decoration: none; font-weight: 600; }
nav a:hover, .footer a:last-child:hover { text-decoration: underline; text-underline-offset: .3em; }
.nav-contact { border: 1px solid #fff7; padding: .53rem 1rem; }

.hero { position: relative; isolation: isolate; color: var(--ivory); background: var(--navy); overflow: hidden; }
.hero-image, .hero-shade, [data-storm] { display: block; position: absolute; inset: 0; pointer-events: none; }
.hero-image { left: 30%; z-index: -3; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 51%; }
.hero-shade { z-index: -2; background: linear-gradient(90deg, var(--navy) 10%, #021728f5 28%, #0617239c 48%, #0c161a20 76%), linear-gradient(0deg, #051620d9, transparent 23%, transparent 79%, #051620a8); }
[data-storm] { z-index: -1; width: 100%; height: 100%; }
.hero-inner { min-height: max(43rem, 92svh); display: flex; flex-direction: column; justify-content: center; position: relative; padding-block: 10rem 7.8rem; }
.hero-copy h1 em { color: #f0d9a9; }
.overline { font-size: .82rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.hero-place { color: #f0d9a9; margin-bottom: 1.7rem; }
.hero-intro { margin-block: 1.75rem 2rem; max-width: 27rem; color: #fffaf0; font-size: clamp(1rem, 1.5vw, 1.15rem); }
.hero-footer { position: absolute; inset: auto 0 0; border-top: 1px solid #fff5; min-height: 3.9rem; display: flex; align-items: center; justify-content: space-between; gap: .7rem; color: #f7f2e7; font-size: .81rem; }
.motion-toggle { border: 0; border-radius: 0; background: #02172899; color: var(--ivory); padding: .3rem .65rem; cursor: pointer; }
.motion-toggle[aria-pressed="false"] { text-decoration: line-through; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3.15rem; border: 1px solid transparent; padding: .64rem 1.2rem; text-align: center; text-decoration: none; font-size: .88rem; font-weight: 700; }
.button-light { background: var(--ivory); color: var(--navy); }
.button-light:hover { background: #f0d9a9; }
.button-dark { color: var(--ivory); background: var(--navy); }
.button-dark:hover { background: #17354b; }
.button-outline { background: transparent; color: var(--ivory); border-color: #fff7; }
.button-outline:hover { background: var(--ivory); color: var(--navy); }

.rule-label { display: flex; align-items: center; gap: .7rem; margin-bottom: 1.6rem; }
.rule-label::before { content: ""; height: 1px; width: 1.8rem; background: currentColor; }
.approach-grid { display: grid; grid-template-columns: 1.55fr 1fr; align-items: end; gap: clamp(2rem, 5vw, 5rem); }
.approach-summary { max-width: 28rem; color: #3e4748; font-size: clamp(1rem, 1.55vw, 1.2rem); padding-bottom: .28rem; }
.services { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 4vw, 4rem); }
.services article { border-top: 1px solid var(--line); padding-top: 1.35rem; }
.services p { margin-top: .65rem; max-width: 23rem; color: #3e4748; }

.social { background: var(--dark); color: var(--ivory); }
.social-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2.5rem, 7vw, 7rem); align-items: center; }
.social h2 em, .social .rule-label { color: var(--gold); }
.social-copy > p:not(.rule-label) { color: #e3dfd4; margin-block: 1.6rem 1.4rem; max-width: 22rem; }
.feed-head { display: flex; align-items: center; gap: .65rem; padding-bottom: .95rem; font-weight: 700; font-size: .9rem; }
.feed-content { width: 100%; }
.post-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.post-grid a { display: flex; flex-direction: column; background: #1a2b35; text-decoration: none; }
.post-grid a:hover span { text-decoration: underline; text-underline-offset: .2em; }
.post-grid img { width: 100%; aspect-ratio: 1.4; height: auto; object-fit: cover; }
.post-grid span { display: block; padding: .55rem .65rem; font-size: .86rem; }
.feed-content iframe { display: block; width: 100%; height: clamp(25rem, 48vw, 34rem); border: 0; background: white; }
.feed-button { color: var(--ivory); background: transparent; border: 0; border-bottom: 1px solid #fff8; padding: .25rem 0; margin-top: .9rem; cursor: pointer; font-size: .88rem; }
.feed-button:hover { color: var(--gold); }
.feed-status { margin-top: .5rem; font-size: .86rem; }
.feed-status:empty { display: none; }

.contact-inner { display: grid; grid-template-columns: 1.55fr 1fr; align-items: end; gap: 2rem; }
.contact-action p { margin-bottom: 1.25rem; max-width: 20rem; }
.footer { color: var(--ivory); background: var(--navy); }
.footer-inner { padding-block: 1.5rem; }
.footer-inner p, .footer-inner > a:last-child { font-size: .86rem; }
.footer-inner > a:last-child { text-decoration: none; }

@media (max-width: 820px) {
  .approach-grid, .contact-inner { grid-template-columns: 1fr; }
  .social-grid { grid-template-columns: .85fr 1.15fr; gap: 1.75rem; }
}
@media (max-width: 680px) {
  h1 { font-size: clamp(3.7rem, 10.2vw, 5.25rem); }
  h2 { font-size: clamp(3.55rem, 11vw, 5.2rem); }
  .header-inner, .footer-inner { min-height: 4.8rem; }
  .mark { font-size: 2.1rem; }
  .mark-label { font-size: .51rem; }
  nav a { font-size: .81rem; }
  .nav-contact { padding: .4rem .56rem; }
  .hero-inner { min-height: max(39rem, 88svh); justify-content: end; padding-block: 7.5rem 6.45rem; }
  .hero-image { left: 0; }
  .hero-image img { object-position: 63% 42%; }
  .hero-shade { background: linear-gradient(0deg, #021728 0%, #021728e6 17%, #02172894 56%, #02172835 75%, #021728a9 100%), linear-gradient(90deg, #0217286c, transparent 100%); }
  .hero-place { margin-bottom: 1.2rem; font-size: .75rem; }
  .hero-intro { margin-block: 1.15rem 1.35rem; }
  .social-grid, .services { grid-template-columns: 1fr; }
  .footer-inner { flex-wrap: wrap; }
}
@media (max-width: 360px) {
  .shell { width: calc(100% - 2rem); }
  nav { gap: .55rem; }
  nav a { font-size: .75rem; }
  h1 { font-size: 3.45rem; }
}
@media (prefers-reduced-motion: reduce) {
  html.motion-enabled { scroll-behavior: auto; }
}

.model-link { display: inline-block; margin-top: .8rem; color: var(--ink); font-size: .92rem; font-weight: 700; text-underline-offset: .25em; }
.model-section { background: #e8e4d9; padding-bottom: clamp(4rem, 8vw, 8rem); }
.model-intro { margin-bottom: clamp(2rem, 5vw, 4.4rem); }
.model-intro > p:last-child { color: #3e4748; margin-top: 1.2rem; max-width: 43rem; }
.model-step { border-top: 1px solid #aaa698; padding-block: 1.5rem; }
.model-step > .overline { margin-bottom: .8rem; color: #536365; }
.model-step > div + div:not([hidden]) { margin-top: 1.5rem; }
.model-step p:not(.overline) { margin-top: .75rem; color: #3e4748; max-width: 27rem; }
.model-step [data-room-copy]:not([hidden]) h3 { font-size: clamp(1.9rem, 3.1vw, 3.45rem); }
.model-layout.is-interactive { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: clamp(1.4rem, 4.6vw, 5rem); align-items: start; }
.is-interactive .model-step { min-height: clamp(15rem, 44svh, 27rem); display: flex; flex-direction: column; justify-content: center; }
.is-interactive .model-step > div { margin-top: 0; }
.model-viewer { position: sticky; top: max(.7rem, calc((100svh - min(58vw, 39rem)) / 2)); z-index: 1; min-width: 0; color: var(--ivory); background: #102634; border: 1px solid #2d4552; box-shadow: 0 .9rem 2rem #13202a29; }
.model-top, .model-tools, .model-controls { display: flex; align-items: center; gap: .25rem; padding: .45rem clamp(.45rem, 1.5vw, 1rem); }
.model-top, .model-tools { justify-content: space-between; }
.model-top { border-bottom: 1px solid #ffffff24; }
.room-switch, .model-rotation { display: flex; align-items: center; gap: .2rem; }
.model-concept, .model-drag { font-size: .8rem; color: #e1d1ad; }
.model-viewport { position: relative; }
.model-canvas { display: block; width: 100%; aspect-ratio: 1.55; height: auto; max-height: 55svh; touch-action: pan-y pinch-zoom; cursor: grab; background: radial-gradient(ellipse at 50% 45%, #2c4652, #102634 75%); }
.model-canvas:active { cursor: grabbing; }
.model-caption { display: flex; justify-content: space-between; gap: 1rem; pointer-events: none; position: absolute; inset: auto 0 0; padding: .35rem clamp(.5rem, 1.5vw, 1rem); color: #f6e8c8; background: linear-gradient(0deg, #102634 5%, #10263400); font-size: .81rem; }
.model-after, .model-key { display: none; }
.is-comparing .model-after { display: block; width: 50%; padding-left: .5rem; }
.is-comparing .model-drag { display: none; }
.is-comparing .model-viewport::after { content: ""; position: absolute; inset: 0 auto 0 50%; width: 1px; background: #a9babe70; pointer-events: none; }
.is-first-fix .model-key { display: flex; flex-wrap: wrap; gap: .15rem .7rem; }
.model-key { position: absolute; z-index: 2; right: .5rem; margin-top: -3rem; padding: .25rem .45rem; color: #ecf0eb; background: #122633e8; font-size: .76rem; pointer-events: none; }
.model-key span { display: inline-flex; align-items: center; gap: .3rem; }
.model-key span::before { content: ""; width: .65rem; height: .2rem; background: currentColor; }
.model-key .model-key-water::before { background: linear-gradient(90deg, #fa7c69 50%, #67afdc 50%); }
.model-key-waste::before { color: #aebdb4; }
.model-key-power::before { color: #f0bf57; }
.model-tools, .model-controls { border-top: 1px solid #ffffff24; }
.model-controls { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.model-viewer button { cursor: pointer; min-width: 0; min-height: 2.38rem; padding: .25rem clamp(.1rem, .8vw, .65rem); border: 1px solid transparent; border-radius: 0; background: transparent; color: var(--ivory); font-size: clamp(.72rem, 1.35vw, .86rem); }
.model-viewer button:hover { border-color: #d9c8a86e; }
.model-viewer button[aria-current="step"], .model-viewer button[aria-pressed="true"] { color: #ffe2a8; border-color: #e2c78e8c; background: #af91551c; }
.model-rotation button { min-width: 2.4rem; color: #ffe2a8; font-size: 1.25rem; line-height: 1; }
.motion-enabled .hero-image img { transform: translateY(var(--hero-depth, 0px)) scale(1.055); }

@media (max-width: 720px) {
  .model-layout.is-interactive { grid-template-columns: 1fr; gap: 1rem; }
  .model-viewer { top: .5rem; }
  .model-canvas { max-height: 32svh; }
  .is-interactive .model-step { min-height: 37svh; }
  .model-controls { gap: .13rem; }
  .model-caption { font-size: .72rem; }
  .model-drag { display: none; }
  .model-key { font-size: .67rem; gap: .1rem .4rem; }
}

@media (max-height: 460px) {
  .model-viewer { position: relative; top: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .motion-enabled .hero-image img { transform: none; }
}

.model-section { background: #e9e4d9; }
.model-intro h2 { max-width: 12ch; }
.model-intro h2 em { color: #5a635c; }
.model-viewer { --viewer-ink: #102734; border-color: #425960; top: max(.65rem, calc((100svh - min(58vw, 42rem)) / 2)); }
.model-viewport { isolation: isolate; background-color: var(--viewer-ink); }
.model-viewport::before { content: ""; position: absolute; inset: 0; opacity: .53; pointer-events: none; background-image: linear-gradient(#c6d3c712 1px, transparent 1px), linear-gradient(90deg, #c6d3c712 1px, transparent 1px), radial-gradient(ellipse at 48% 40%, #4c6267, transparent 76%); background-size: 24px 24px, 24px 24px, 100% 100%; }
.model-viewer[data-stage="1"] .model-viewport::before { opacity: 1; }
.model-viewer[data-stage="2"] .model-viewport::before { opacity: .76; }
.model-canvas { position: relative; background: transparent; max-height: 54svh; }
.model-caption { z-index: 2; min-height: 2rem; padding-top: .55rem; }
.model-vision { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.model-spot { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.model-spot::before { content: ""; position: absolute; top: var(--spot-y); left: var(--spot-x); width: 1.08rem; height: 1.08rem; border: 1px solid #ffdc9e; border-radius: 50%; background: #1c363b80; box-shadow: 0 0 0 .35rem #f9cd7c46; transform: translate(-50%, -50%); }
.model-note { position: absolute; inset: .6rem auto auto .6rem; z-index: 2; width: min(calc(100% - 1.2rem), 20rem); padding: .55rem .9rem .6rem; border: 1px solid #dfc89866; color: #f8f0dd; background: #0b2430eb; font-size: .82rem; }
.model-note strong { color: #ffdb9a; }
.model-note p { margin-top: .14rem; }
.model-modes { display: flex; gap: .35rem; flex-wrap: wrap; justify-content: flex-end; }
.model-progress { background: #253e4b; height: 2px; }
.model-progress span { display: block; width: 100%; height: 100%; background: #d3aa6c; transform: scaleX(var(--model-progress, 0)); transform-origin: left; }
.model-step { border-color: #a6a698; }
.model-step[data-active] { border-color: #82663d; }
.model-step[data-active] > .overline { color: #694c26; }
.model-step .model-decision { max-width: 31rem; margin-top: 1.15rem; padding-left: .72rem; border-left: 1px solid #9c7d51; font-size: .88rem; }
.model-decision strong { display: block; color: #694c26; }
.model-materials { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem .9rem; padding: 0; margin: 1rem 0 .25rem; }
.model-materials li { display: flex; align-items: center; gap: .38rem; font-size: .82rem; color: #263637; }
.model-materials i { width: 1.02rem; height: 1.02rem; border-radius: 50%; border: 1px solid #56493648; vertical-align: middle; }
.swatch-oak { background: repeating-linear-gradient(85deg, #705340 0 2px, #80654e 2px 4px); }
.swatch-stone { background: linear-gradient(138deg, #cdbda6, #e8deca 43%, #b8a88f 45%, #dfd4bc 60%); }
.swatch-brass { background: linear-gradient(138deg, #8e632d, #d4af6e 52%, #a7814e); }

@media (max-width: 720px) {
  .model-viewer { top: .45rem; }
  .model-canvas { max-height: 32svh; }
  .model-note { font-size: .75rem; padding: .42rem .55rem; }
  .model-modes { gap: .15rem; }
  .is-interactive .model-step { min-height: clamp(14rem, 43svh, 25rem); }
}
@media (max-height: 460px) {
  .model-viewer { position: relative; top: auto; }
}
.is-visualising .model-drag { display: none; }
.model-fallback { margin: 1rem 0 0; max-width: 36rem; }
.model-fallback img { width: 100%; height: auto; }
.model-fallback figcaption { font-size: .82rem; margin-top: .35rem; color: #3e4748; }
.is-interactive .model-fallback { display: none; }
.motion-enabled .is-visualising .model-vision { animation: model-vision-in .62s ease both; }
@keyframes model-vision-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .motion-enabled .is-visualising .model-vision { animation: none; }
}
