@font-face {
  font-family: "Eliphelet";
  src: url("assets/fonts/FbEliphelet-Light.otf") format("opentype");
  font-weight: 300;
  font-display: swap;
}

:root {
  --paper: #f7f2eb;
  --cream: #efe7dc;
  --stone: #d8ccbc;
  --espresso: #2a1f1a;
  --ink: #2a1f1a;
  --muted: #7b6f66;
  --brass: #a68b62;
  --line: rgba(42, 31, 26, .14);
  --line-light: rgba(247, 242, 235, .22);
  --side: clamp(20px, 5vw, 88px);
  --display: "Eliphelet", "Noto Serif Hebrew", serif;
  --latin: "Instrument Serif", Georgia, serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper) url("assets/brand/texture-light.jpg") 0 0 / 640px;
  font: 300 17px/1.75 "Heebo", "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img, video { display: block; width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 300; line-height: 1.04; letter-spacing: -.01em; }
.icon { display: inline-block; width: 1em; height: 1em; flex: none; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.i-arrow { --i: url("assets/brand/icons/arrow.png"); }
.i-arrow-down { --i: url("assets/brand/icons/arrow-down.png"); }
.i-phone { --i: url("assets/brand/icons/phone.png"); }
.i-mail { --i: url("assets/brand/icons/mail.png"); }
.i-download { --i: url("assets/brand/icons/download.png"); }
.i-play { --i: url("assets/brand/icons/play.png"); }
.i-pause { --i: url("assets/brand/icons/pause.png"); }
.i-close { --i: url("assets/brand/icons/close.png"); }
.i-menu { --i: url("assets/brand/icons/menu.png"); }
.skip-link { position: fixed; z-index: 100; top: 10px; right: 10px; padding: 10px 16px; background: var(--paper); transform: translateY(-200%); }
.skip-link:focus { transform: none; }
:focus-visible { outline: 1px solid var(--brass); outline-offset: 4px; }

.eyebrow { display: block; margin-bottom: 22px; color: var(--muted); font-size: 13px; font-weight: 400; letter-spacing: .08em; }
.eyebrow::before { content: ""; display: inline-block; width: 28px; height: 1px; margin-left: 12px; vertical-align: middle; background: var(--brass); }
.on-dark .eyebrow, .eyebrow.light { color: rgba(247, 242, 235, .7); }

/* ---------- header ---------- */
.site-header {
  position: fixed; z-index: 30; inset: 0 0 auto;
  height: 84px; padding: 0 var(--side);
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  color: var(--paper);
  transition: background .5s var(--ease), color .5s var(--ease), transform .5s var(--ease), height .5s var(--ease);
}
.site-header.is-solid { height: 68px; color: var(--ink); background: rgba(247, 242, 235, .94); box-shadow: 0 1px 0 var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark { width: 34px; aspect-ratio: 806 / 960; background: currentColor; -webkit-mask: url("assets/brand/monogram.png") center / contain no-repeat; mask: url("assets/brand/monogram.png") center / contain no-repeat; }
.brand-name { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name b { font: 400 15px/1 var(--latin); letter-spacing: .22em; direction: ltr; }
.brand-name small { margin-top: 5px; font-size: 12px; opacity: .72; }
.main-nav { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 40px); font-size: 15px; }
.main-nav a { position: relative; padding: 6px 0; }
.main-nav a::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.main-nav a:hover::after, .main-nav a[aria-current]::after { transform: scaleX(1); transform-origin: right; }
.main-nav .nav-cta { padding: 9px 20px; border: 1px solid currentColor; border-radius: 999px; transition: background .3s, color .3s; }
.main-nav .nav-cta::after { display: none; }
.main-nav .nav-cta:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.site-header:not(.is-solid) .nav-cta:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.menu-toggle { display: none; width: 40px; height: 40px; font-size: 26px; place-items: center; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 28px; border: 1px solid currentColor; border-radius: 999px; font-size: 15px; font-weight: 400; transition: background .35s, color .35s, border-color .35s; }
.btn .icon { font-size: 18px; transition: transform .35s var(--ease); }
.btn:hover .icon { transform: translateY(2px); }
.btn-solid { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-solid:hover { background: transparent; color: var(--ink); }
.btn-light { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.btn-light:hover { background: transparent; color: var(--paper); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.on-dark .btn-ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.text-link { display: inline-flex; align-items: center; gap: 10px; padding-bottom: 6px; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 400; transition: border-color .3s; }
.text-link:hover { border-color: currentColor; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: var(--paper); background: var(--espresso); overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { height: 100%; object-fit: cover; object-position: center 60%; animation: heroIn 2.4s var(--ease) both; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to left, rgba(26, 18, 14, .62), rgba(26, 18, 14, 0) 62%), linear-gradient(0deg, rgba(26, 18, 14, .82) 0%, rgba(26, 18, 14, .2) 50%, rgba(26, 18, 14, .38) 100%); }
.hero .eyebrow::before { background: rgba(247, 242, 235, .6); }
.hero-content { position: relative; width: 100%; padding: 0 var(--side) clamp(56px, 9vh, 110px); display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 40px; }
.hero h1 { font-size: clamp(54px, 8.4vw, 132px); }
.hero-lead { max-width: 440px; margin-top: 26px; font-size: clamp(17px, 1.3vw, 19px); color: rgba(247, 242, 235, .86); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-caption { color: rgba(247, 242, 235, .7); font-size: 13px; text-align: left; }
@keyframes heroIn { from { transform: scale(1.06); opacity: .4; } to { transform: none; opacity: 1; } }

/* ---------- sections ---------- */
.section { padding: clamp(96px, 13vw, 190px) var(--side); }
.section-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 6vw, 110px); align-items: end; margin-bottom: clamp(48px, 6vw, 88px); }
.section-head h2 { font-size: clamp(44px, 5.6vw, 88px); }
.section-head p { max-width: 520px; color: var(--muted); }

.studio-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .82fr); gap: clamp(40px, 8vw, 140px); align-items: center; }
.studio-grid h2 { font-size: clamp(40px, 4.8vw, 74px); }
.studio-text { margin-top: 40px; display: grid; gap: 20px; max-width: 560px; color: var(--muted); }
.studio-text .lead { color: var(--ink); font-size: clamp(19px, 1.6vw, 23px); line-height: 1.6; }
.studio-values { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 15px; }
.studio-values span::before { content: "·"; margin-left: 10px; color: var(--brass); }
.signature { width: min(260px, 70%); margin-top: 40px; opacity: .85; }

/* arch — signature frame */
.arch { position: relative; overflow: hidden; border-radius: 999px 999px 0 0; background: var(--cream); }
.arch img { height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.studio-image { aspect-ratio: 4 / 5.2; }

/* ---------- project blocks ---------- */
.project { position: relative; padding: clamp(80px, 10vw, 150px) var(--side); }
.project + .project::before { content: ""; position: absolute; top: 0; left: 50%; width: min(420px, 60%); aspect-ratio: 1688 / 51; transform: translate(-50%, -50%); background: url("assets/brand/divider.png") center / contain no-repeat; opacity: .8; }
.project-head { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, .8fr); gap: clamp(24px, 4vw, 72px); align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
.project-index { font: 400 clamp(48px, 5vw, 80px)/.8 var(--latin); color: var(--brass); direction: ltr; }
.project-head h2 { font-size: clamp(40px, 5vw, 78px); }
.project-head p { color: var(--muted); max-width: 500px; }
.project-tags { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 16px; font-size: 14px; color: var(--ink); }
.project-tags span::before { content: "·"; margin-left: 8px; color: var(--brass); }

.frame { position: relative; margin: 0; overflow: hidden; background: var(--cream); }
.frame button { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.frame img { height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.frame:hover img, .arch:hover img { transform: scale(1.035); }
figcaption { margin-top: 14px; color: var(--muted); font-size: 14px; }

/* courtyard — wide photo beside the vertical video in a full-height arch */
.courtyard-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .44fr); gap: clamp(16px, 2vw, 28px); align-items: start; }
.courtyard-grid .frame-wide { align-self: stretch; }
.courtyard-grid .frame-wide img { position: absolute; inset: 0; }
.courtyard-video { position: relative; width: 100%; aspect-ratio: 9 / 16; margin: 0; }
.courtyard-video video { height: 100%; object-fit: cover; }
.video-controls { position: absolute; inset: auto 0 22px; display: flex; justify-content: center; gap: 8px; }
.video-controls button { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: rgba(247, 242, 235, .9); color: var(--ink); font-size: 13px; transition: background .3s; }
.video-controls button:hover { background: var(--paper); }
.video-controls .icon { font-size: 13px; }

/* suite — live 360° viewer with room switcher */
.tour { position: relative; aspect-ratio: 21 / 9; overflow: hidden; background: var(--cream); }
.tour-view { position: absolute; inset: 0; cursor: grab; }
.tour-view:active { cursor: grabbing; }
.tour-fallback { position: absolute; inset: 0; height: 100%; object-fit: cover; }
.tour-hint { position: absolute; top: 18px; left: 18px; z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgba(247, 242, 235, .9); font-size: 13px; font-weight: 400; pointer-events: none; transition: opacity .6s; }
.tour.is-touched .tour-hint { opacity: 0; }
.tour-full { position: absolute; bottom: 18px; left: 18px; z-index: 3; padding: 8px 16px; border-radius: 999px; background: rgba(247, 242, 235, .9); font-size: 13px; }
.tour-rooms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); margin-top: clamp(12px, 1.6vw, 24px); }
.tour-rooms button { position: relative; text-align: right; }
.tour-rooms .thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--cream); opacity: .55; transition: opacity .4s; }
.tour-rooms .thumb img { width: 200%; max-width: none; height: 100%; margin-right: -50%; object-fit: cover; }
.tour-rooms span.label { display: block; margin-top: 10px; font-size: 15px; color: var(--muted); transition: color .3s; }
.tour-rooms button[aria-pressed="true"] .thumb, .tour-rooms button:hover .thumb { opacity: 1; }
.tour-rooms button[aria-pressed="true"] .label { color: var(--ink); }
.tour-rooms button[aria-pressed="true"] .label::before { content: ""; display: inline-block; width: 18px; height: 1px; margin-left: 10px; vertical-align: middle; background: var(--brass); }
.tour .pnlm-container { background: var(--cream); }
.tour .pnlm-load-box { background: rgba(42, 31, 26, .7); border-radius: 0; }
.tour .pnlm-about-msg { display: none !important; }

/* mikveh */
.mikveh-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); grid-template-rows: auto auto; gap: clamp(16px, 2vw, 28px); }
.mikveh-grid .tall { grid-row: span 2; aspect-ratio: auto; }
.mikveh-grid .frame:not(.tall) { aspect-ratio: 3 / 2; }

/* homes */
.homes-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.homes-grid .arch { aspect-ratio: 3 / 4.2; }
.homes-grid .arch button { display: block; width: 100%; height: 100%; cursor: zoom-in; }

/* kitchen study (offices page) */
.study-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.study-grid .frame { aspect-ratio: 16 / 10; }
.study-grid .frame:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 8; }

/* ---------- process ---------- */
.process { position: relative; overflow: hidden; background: var(--cream) url("assets/brand/texture-light.jpg") center / 640px; }
.process > * { position: relative; }
.process::before { content: ""; position: absolute; top: clamp(40px, 6vw, 90px); left: var(--side); width: min(520px, 42vw); aspect-ratio: 1480 / 1007; background: url("assets/brand/sketch.png") center / contain no-repeat; opacity: .22; pointer-events: none; }
.steps img { height: 64px; width: auto; margin-bottom: 28px; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.steps li { padding: 36px clamp(16px, 2vw, 32px) 8px 0; border-left: 1px solid var(--line); list-style: none; }
.steps li:last-child { border-left: 0; }
.steps li + li { padding-right: clamp(16px, 2vw, 32px); }
.steps b { display: block; margin-bottom: 26px; font: 400 15px/1 var(--latin); color: var(--brass); letter-spacing: .1em; direction: ltr; text-align: right; }
.steps h3 { margin-bottom: 12px; font-size: clamp(26px, 2.2vw, 34px); }
.steps p { color: var(--muted); font-size: 16px; }
.steps ol, ol.steps { margin: 0; padding: 0; }

/* ---------- offices page ---------- */
.office-hero { min-height: 100svh; padding: 140px var(--side) 80px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(40px, 7vw, 120px); align-items: center; }
.office-hero h1 { font-size: clamp(50px, 6.8vw, 108px); }
.office-hero .hero-lead { color: var(--muted); max-width: 520px; }
.office-hero .arch { aspect-ratio: 4 / 5; }
.status { display: inline-flex; align-items: center; gap: 10px; margin-top: 30px; font-size: 15px; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: #7c9a6d; box-shadow: 0 0 0 5px rgba(124, 154, 109, .18); }

.skills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); }
.skills div { padding-top: 28px; border-top: 1px solid var(--line); }
.skills h3 { margin-bottom: 12px; font-size: clamp(26px, 2.4vw, 36px); }
.skills p { color: var(--muted); }
.tools { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 56px; }
.tools span { padding: 8px 20px; border: 1px solid var(--line); border-radius: 999px; font-size: 15px; }
.timeline { margin-top: 72px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.timeline div { padding: 26px 0 0; }
.timeline div + div { padding-right: 28px; border-right: 1px solid var(--line); }
.timeline b { display: block; margin-bottom: 8px; font-weight: 400; }
.timeline span { color: var(--muted); }

.work-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); }
.work-card .arch { aspect-ratio: 3 / 4; }
.work-card h3 { margin-top: 18px; font-size: 26px; }
.work-card p { color: var(--muted); font-size: 15px; }
.work-card:hover img { transform: scale(1.04); }

/* ---------- contact ---------- */
.contact { position: relative; color: var(--paper); background: var(--espresso) url("assets/brand/texture-dark.jpg") center / 640px; text-align: center; }
.contact-mark { display: block; width: 56px; aspect-ratio: 806 / 960; margin: 0 auto 36px; background: var(--brass); -webkit-mask: url("assets/brand/monogram.png") center / contain no-repeat; mask: url("assets/brand/monogram.png") center / contain no-repeat; }
.contact h2 { font-size: clamp(50px, 7.4vw, 120px); }
.contact .lead { max-width: 520px; margin: 28px auto 0; color: rgba(247, 242, 235, .74); }
.contact-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 48px; }
.contact-links .btn { min-width: 230px; justify-content: center; }
.contact-links .btn span { direction: ltr; }
.site-footer { margin-top: clamp(80px, 10vw, 140px); padding-top: 28px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; border-top: 1px solid var(--line-light); color: rgba(247, 242, 235, .62); font-size: 14px; text-align: right; }
.site-footer a { border-bottom: 1px solid var(--line-light); padding-bottom: 3px; color: var(--paper); }

/* ---------- lightbox ---------- */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: clamp(16px, 4vw, 56px); border: 0; background: rgba(22, 16, 13, .96); }
.lightbox::backdrop { background: rgba(22, 16, 13, .9); }
.lightbox img, .lightbox video { width: 100%; height: 100%; object-fit: contain; }
.lightbox [hidden] { display: none; }
.lightbox-close { position: fixed; top: 20px; left: 20px; width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid rgba(247, 242, 235, .4); border-radius: 50%; color: var(--paper); font-size: 20px; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-media img { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .menu-toggle { display: grid; }
  .main-nav { position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; gap: 26px; background: var(--paper) url("assets/brand/texture-light.jpg") 0 0 / 640px; color: var(--ink); font: 300 32px/1.2 var(--display); opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
  .main-nav .nav-cta { font: 400 16px/1 "Heebo", sans-serif; padding: 14px 28px; }
  .menu-open .main-nav { opacity: 1; visibility: visible; }
  .menu-open .site-header { color: var(--ink); }
  .section-head, .project-head, .studio-grid, .office-hero { grid-template-columns: 1fr; align-items: start; }
  .project-head { gap: 16px; }
  .mikveh-grid { grid-template-columns: 1fr; }
  .courtyard-grid { grid-template-columns: minmax(0, 1fr) minmax(0, .56fr); }
  .tour { aspect-ratio: 16 / 9; }
  .process::before { opacity: .18; }
  .mikveh-grid .tall { grid-row: auto; aspect-ratio: 4 / 5; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(2) { border-left: 0; }
  .steps li:nth-child(3) { padding-right: 0; }
  .work-cards { grid-template-columns: 1fr 1fr; }
  .studio-image { max-width: 520px; }
  .office-hero .arch { max-width: 460px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-header { height: 68px; }
  .brand-name small { display: none; }
  .hero-content { grid-template-columns: 1fr; }
  .hero-caption { display: none; }
  .hero-actions .btn { flex: 1; justify-content: center; }
  .courtyard-grid { grid-template-columns: 1fr; }
  .courtyard-grid .frame-wide { aspect-ratio: 4 / 3; }
  .courtyard-video { width: min(100%, 360px); margin: 0 auto; }
  .tour { aspect-ratio: 4 / 5; }
  .tour-rooms span.label { font-size: 13px; }
  .study-grid, .homes-grid, .skills, .timeline { grid-template-columns: 1fr; }
  .study-grid .frame:first-child { aspect-ratio: 16 / 10; }
  .homes-grid .arch { aspect-ratio: 4 / 5; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 28px 0 4px; border-left: 0; }
  .steps li + li { border-top: 1px solid var(--line); }
  .timeline div + div { padding-right: 0; border-right: 0; border-top: 1px solid var(--line); margin-top: 20px; }
  .contact-links .btn { width: 100%; }
  .site-footer { justify-content: center; text-align: center; }
}

/* ---------- screen-fit sizing ---------- */
:root { --media: max(380px, calc(100svh - 320px)); }
.section { padding-top: clamp(64px, 8vw, 120px); padding-bottom: clamp(64px, 8vw, 120px); }
.project { padding-top: clamp(56px, 6vw, 96px); padding-bottom: clamp(56px, 6vw, 96px); }
.project-head { margin-bottom: clamp(28px, 3vw, 44px); }
.project-head h2 { font-size: clamp(38px, 4.2vw, 66px); }
.studio-image { width: 100%; max-width: calc((100svh - 180px) * 4 / 5.2); justify-self: center; }
.tour { aspect-ratio: auto; height: min(42vw, var(--media)); }
.mikveh-grid { grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); grid-template-rows: none; height: min(48vw, var(--media)); }
.mikveh-grid .frame, .mikveh-grid .tall { grid-row: auto; aspect-ratio: auto; }
.homes-grid { max-width: calc(var(--media) * 3 / 4.2 * 3 + 56px); margin-inline: auto; }
.study-grid .frame:first-child { aspect-ratio: auto; height: min(50vw, var(--media)); }
.office-hero .arch { width: 100%; max-width: calc((100svh - 220px) * 4 / 5); justify-self: center; }

/* ---------- courtyard: dark stage that makes the video the hero ---------- */
.project-dark { color: var(--paper); background: var(--espresso) url("assets/brand/texture-dark.jpg") center / 640px; }
.project-dark + .project::before { display: none; }
.courtyard { min-height: 100svh; display: flex; align-items: center; padding-top: 40px; padding-bottom: 40px; }
.courtyard-layout { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(40px, 7vw, 130px); align-items: center; }
.courtyard-copy { max-width: 520px; }
.courtyard-copy .project-index { display: block; margin-bottom: 28px; text-align: right; }
.courtyard-copy h2 { font-size: clamp(42px, 5vw, 80px); }
.courtyard-copy p { margin-top: 24px; color: rgba(247, 242, 235, .74); }
.project-dark .project-tags { color: var(--paper); }
.courtyard-still { margin-top: 40px; aspect-ratio: 16 / 9; max-height: 30svh; }
.courtyard-stage { position: relative; margin: 0; padding: 18px; }
.courtyard-stage .courtyard-video { height: calc(100svh - 180px); max-height: 820px; width: auto; aspect-ratio: 9 / 16; transform: translateZ(0); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .7); }
.stage-outline { position: absolute; inset: 0 0 34px; border: 1px solid rgba(166, 139, 98, .7); border-bottom: 0; border-radius: 999px 999px 0 0; pointer-events: none; }
.courtyard-stage figcaption { margin-top: 16px; text-align: center; color: rgba(247, 242, 235, .6); font-size: 13px; letter-spacing: .06em; }
.video-controls button { background: rgba(247, 242, 235, .92); }

/* ---------- 360 thumbnails: full colour ---------- */
.tour-rooms .thumb { opacity: 1; outline: 1px solid transparent; outline-offset: 4px; transition: outline-color .3s; }
.tour-rooms button[aria-pressed="true"] .thumb { outline-color: var(--brass); }
.tour-rooms .thumb img { transition: transform 1.2s var(--ease); }
.tour-rooms button:hover .thumb img { transform: scale(1.05); }

/* ---------- process: one step at a time while scrolling ---------- */
.process { background: none; overflow: visible; }
.process::before { display: none; }
.process-track { position: relative; }
.process-sticky { padding: clamp(64px, 8vw, 110px) var(--side); }
.process-stage { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 110px); align-items: center; }
.process-visual { position: relative; aspect-ratio: 1; max-height: calc(100svh - 380px); width: 100%; max-width: 440px; justify-self: center; }
.process-visual img { position: absolute; inset: 12%; width: 76%; height: 76%; object-fit: contain; opacity: 0; transform: translateY(14px) scale(.96); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.process-visual img.is-active { opacity: 1; transform: none; }
.process-visual::before { content: ""; position: absolute; inset: 0; border: 1px solid var(--line); border-radius: 999px 999px 0 0; }
.process-progress { position: absolute; inset: auto 0 -18px; height: 1px; background: var(--line); }
.process-progress i { position: absolute; inset: 0 0 0 auto; width: 25%; background: var(--brass); transition: width .6s var(--ease); }
.process .steps { display: block; border: 0; }
.process .steps li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 0 20px; padding: 22px 0; border: 0; border-top: 1px solid var(--line); opacity: .38; transition: opacity .5s var(--ease); }
.process .steps li:last-child { border-bottom: 1px solid var(--line); }
.process .steps li.is-active { opacity: 1; }
.process .steps li > img { display: none; }
.process .steps b { margin: 6px 0 0; text-align: right; }
.process .steps h3 { margin-bottom: 6px; font-size: clamp(26px, 2.4vw, 36px); }
.process .steps p { max-height: 0; overflow: hidden; transition: max-height .6s var(--ease); }
.process .steps li.is-active p { max-height: 90px; }
@media (min-width: 1001px) {
  .process-track { height: 320svh; }
  .process-sticky { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: center; }
  .process .section-head { margin-bottom: clamp(28px, 4vw, 56px); }
}

@media (max-width: 1000px) {
  .courtyard-layout { grid-template-columns: 1fr; justify-items: center; }
  .courtyard-copy { max-width: none; width: 100%; }
  .courtyard-stage .courtyard-video { height: min(calc(100svh - 160px), 150vw); }
  .tour { height: min(56vw, var(--media)); }
  .mikveh-grid { height: min(70vw, var(--media)); }
  .process-stage { grid-template-columns: 1fr; }
  .process-visual { display: none; }
  .process .steps li { opacity: 1; grid-template-columns: 64px minmax(0, 1fr); }
  .process .steps li > img { display: block; grid-row: span 2; width: 52px; height: 52px; object-fit: contain; margin: 4px 0 0; }
  .process .steps b { display: none; }
  .process .steps p { max-height: none; }
}
@media (max-width: 640px) {
  :root { --media: max(320px, calc(100svh - 260px)); }
  .courtyard { min-height: 0; }
  .courtyard-still { max-height: none; }
  .tour { height: min(115vw, var(--media)); }
  .mikveh-grid { grid-template-columns: 1fr 1fr; height: min(80vw, var(--media)); }
  .homes-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .homes-grid figcaption { font-size: 12px; }
}

/* ---------- round 3: every block within one screen ---------- */
:root { --media: max(360px, calc(100svh - 360px)); }
.section { padding-top: clamp(56px, 6vw, 96px); padding-bottom: clamp(56px, 6vw, 96px); }
.project { padding-top: clamp(48px, 5vw, 80px); padding-bottom: clamp(48px, 5vw, 80px); }
.studio-image { max-width: calc((100svh - 200px) * 4 / 5.2); }
.studio-grid h2 { font-size: clamp(38px, 4.2vw, 64px); }
.studio-text { margin-top: 28px; }
.studio-values { margin-top: 28px; padding-top: 20px; }
.signature { margin-top: 24px; width: min(220px, 60%); }
.homes-grid { max-width: calc((var(--media) - 40px) * 3 / 4.2 * 3 + 56px); }
.contact h2 { font-size: clamp(46px, 6vw, 96px); }
.contact-links { margin-top: 36px; }
.site-footer { margin-top: clamp(48px, 6vw, 80px); }
.contact-mark { margin-bottom: 24px; }
/* room switcher sits inside the 360 view */
.tour-rooms { position: absolute; z-index: 3; bottom: 18px; right: 18px; margin: 0; display: flex; gap: 10px; }
.tour-rooms button { width: clamp(96px, 9vw, 150px); padding: 5px; background: rgba(247, 242, 235, .92); }
.tour-rooms .thumb { outline: 0; }
.tour-rooms span.label { margin-top: 5px; font-size: 12px; text-align: center; color: var(--ink); }
.tour-rooms button[aria-pressed="true"] { background: var(--ink); }
.tour-rooms button[aria-pressed="true"] .label { color: var(--paper); }
.tour-rooms button[aria-pressed="true"] .label::before { display: none; }
@media (max-width: 640px) {
  :root { --media: max(300px, calc(100svh - 300px)); }
  .tour-rooms { right: 10px; left: 10px; bottom: 10px; justify-content: center; gap: 6px; }
  .tour-rooms button { width: auto; flex: 1; }
  .tour-full { bottom: auto; top: 18px; left: auto; right: 18px; }
}
.studio-image { max-width: calc((100svh - 240px) * 4 / 5.2); }
.courtyard-copy .project-index { margin-bottom: 16px; }
.courtyard-copy h2 { font-size: clamp(40px, 4.4vw, 70px); }
.courtyard-still { margin-top: 28px; max-height: 24svh; }
.courtyard-stage .courtyard-video { height: calc(100svh - 190px); }
.project.courtyard { padding-top: 36px; padding-bottom: 36px; }

/* ---------- offices page ---------- */
.studio-hero { align-items: center; background: var(--espresso) url("assets/brand/texture-dark.jpg") center / 640px; padding: 110px var(--side) 60px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 110px); }
.studio-hero h1 { font-size: clamp(52px, 6.6vw, 112px); }
.studio-hero .hero-lead { max-width: 480px; }
.studio-hero .status { color: rgba(247, 242, 235, .75); }
.studio-hero-collage { position: relative; height: min(calc(100svh - 190px), 46vw); }
.studio-hero-collage .arch { position: absolute; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .7); }
.studio-hero-collage .c1 { inset: 0 18% 8% 22%; z-index: 2; }
.studio-hero-collage .c2 { width: 34%; height: 58%; left: 0; bottom: 0; z-index: 3; border: 6px solid var(--espresso); }
.studio-hero-collage .c3 { width: 30%; height: 50%; right: 0; top: 12%; z-index: 1; opacity: .9; }
.studio-hero-collage img { height: 100%; object-fit: cover; }

.approach .section-head { align-items: center; }
.approach .signature { justify-self: end; margin: 0; }
.approach-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); }
.approach-grid .arch { display: block; height: min(calc(100svh - 470px), 30vw); min-height: 220px; }
.approach-grid img { height: 100%; object-fit: cover; }
.approach-grid b { display: block; margin: 22px 0 6px; font: 400 15px/1 var(--latin); color: var(--brass); letter-spacing: .1em; direction: ltr; text-align: right; }
.approach-grid h3 { font-size: clamp(28px, 2.6vw, 40px); margin-bottom: 8px; }
.approach-grid p { color: var(--muted); }

.work .section-head p { color: rgba(247, 242, 235, .7); }
.work-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 22px); }
.work-tile { position: relative; display: block; height: min(calc(100svh - 330px), 44vw); min-height: 340px; overflow: hidden; border-radius: 999px 999px 0 0; }
.work-tile-media, .work-tile-media img { position: absolute; inset: 0; height: 100%; }
.work-tile-media img { object-fit: cover; transition: transform 1.4s var(--ease); }
.work-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(26, 18, 14, .85), rgba(26, 18, 14, 0) 55%); }
.work-tile:hover img { transform: scale(1.06); }
.work-tile-text { position: absolute; z-index: 2; inset: auto 22px 22px; display: flex; flex-direction: column; gap: 4px; }
.work-tile-n { font: 400 14px/1 var(--latin); color: var(--brass); }
.work-tile-text b { font: 300 clamp(26px, 2.4vw, 38px)/1.1 var(--display); }
.work-tile-text small { font-size: 13px; color: rgba(247, 242, 235, .75); }

.study-strip { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.study-strip > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.study-strip button { display: block; aspect-ratio: 16 / 9; overflow: hidden; cursor: zoom-in; }
.study-strip img { height: 100%; object-fit: cover; }

/* ---------- project pages ---------- */
.case-hero { min-height: 82svh; }
.case-hero h1 { font-size: clamp(50px, 7vw, 110px); }
.case-back { display: inline-block; margin-bottom: 26px; font-size: 14px; color: rgba(247, 242, 235, .8); border-bottom: 1px solid rgba(247, 242, 235, .3); padding-bottom: 4px; }
.case-intro { display: grid; grid-template-columns: minmax(0, .6fr) minmax(0, 1.4fr); gap: clamp(32px, 6vw, 110px); }
.case-meta { margin: 0; display: grid; gap: 22px; align-content: start; }
.case-meta div { padding-top: 14px; border-top: 1px solid var(--line); }
.case-meta dt { font-size: 13px; color: var(--muted); }
.case-meta dd { margin: 4px 0 0; font-size: 18px; }
.case-text { display: grid; gap: 22px; max-width: 680px; color: var(--muted); }
.case-text .lead { color: var(--ink); font-size: clamp(20px, 1.7vw, 26px); line-height: 1.6; }
.case-body { padding: 0 var(--side) clamp(64px, 8vw, 120px); }
.case-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); }
.case-gallery .frame { height: var(--media); }
.case-gallery .g-wide { grid-column: span 2; }
.case-gallery.has-video { grid-template-columns: auto minmax(0, 1fr); align-items: center; padding: clamp(24px, 3vw, 48px); background: var(--espresso) url("assets/brand/texture-dark.jpg") center / 640px; }
.case-gallery.has-video .g-wide { grid-column: auto; height: calc(100svh - 230px); }
.case-video { margin: 0; }
.case-video .courtyard-video { height: calc(100svh - 230px); width: auto; aspect-ratio: 9 / 16; transform: translateZ(0); }
.case-body .tour { height: min(48vw, calc(100svh - 140px)); }
.case-next { position: relative; display: flex; align-items: flex-end; height: 56svh; overflow: hidden; color: var(--paper); }
.case-next-media, .case-next-media img { position: absolute; inset: 0; height: 100%; }
.case-next-media img { object-fit: cover; transition: transform 1.6s var(--ease); }
.case-next::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(26, 18, 14, .8), rgba(26, 18, 14, .15)); }
.case-next:hover img { transform: scale(1.04); }
.case-next-text { position: relative; z-index: 2; padding: 0 var(--side) 48px; }
.case-next-text b { display: block; font: 300 clamp(44px, 6vw, 96px)/1 var(--display); }

@media (max-width: 1000px) {
  .studio-hero { grid-template-columns: 1fr; padding-top: 120px; }
  .studio-hero-collage { height: 70vw; }
  .approach-grid { grid-template-columns: 1fr 1fr 1fr; }
  .approach-grid .arch { height: 40vw; }
  .work-tiles { grid-template-columns: 1fr 1fr; }
  .work-tile { height: 60vw; }
  .case-intro { grid-template-columns: 1fr; }
  .case-gallery, .case-gallery.has-video { grid-template-columns: 1fr 1fr; }
  .case-gallery.has-video { justify-items: center; }
  .case-gallery.has-video .g-wide { grid-column: 1 / -1; height: 50vw; width: 100%; }
}
@media (max-width: 640px) {
  .studio-hero-collage { height: 100vw; }
  .approach-grid { grid-template-columns: 1fr; }
  .approach-grid .arch { height: 70vw; }
  .approach .signature { justify-self: start; }
  .work-tiles { grid-template-columns: 1fr; }
  .work-tile { height: 100vw; min-height: 0; }
  .case-gallery { grid-template-columns: 1fr; }
  .case-gallery .g-wide { grid-column: auto; }
  .case-gallery .frame { height: auto; aspect-ratio: 4 / 5; }
  .case-gallery.has-video { grid-template-columns: 1fr; padding: 20px; }
  .case-video .courtyard-video, .case-gallery.has-video .g-wide { height: auto; }
  .case-video .courtyard-video { width: min(100%, calc((100svh - 160px) * 9 / 16)); }
  .case-gallery.has-video .g-wide { aspect-ratio: 4 / 3; }
  .case-body .tour { height: min(115vw, var(--media)); }
}
.case-hero .hero-media img[src*="concept-"], .case-next-media img[src*="concept-"], .work-tile-media img[src*="concept-"] { scale: 1.6; }
@media (max-width: 640px) {
  .courtyard-stage { padding: 12px; }
  .courtyard-stage .courtyard-video, .case-video .courtyard-video { height: auto; width: min(calc(100vw - 2 * var(--side) - 24px), calc((100svh - 200px) * 9 / 16)); }
  .homes-grid { max-width: none; }
  .homes-grid .arch { aspect-ratio: 3 / 4.4; }
}

/* ---------- user backgrounds: spotlight stage + travertine sections ---------- */
.project-dark.courtyard, .case-gallery.has-video { background: url("assets/brand/stage-bg.jpg") center top / cover no-repeat, var(--espresso) url("assets/brand/texture-dark.jpg") center / 640px; }
.process, #skills, #mikveh { background: url("assets/brand/texture-sand.jpg") 0 0 / 560px; }
.tour-rooms .thumb img { width: 220%; margin-right: -60%; }
.light-link { margin-top: 22px; color: var(--paper); border-color: rgba(247, 242, 235, .3); }
.hero-media img[src*="entrance-sunset"] { object-position: center 40%; }
.case-gallery.all-wide { grid-template-columns: 1fr 1fr; }
.case-gallery.all-wide .g-wide { grid-column: auto; height: min(34vw, calc(100svh - 240px)); }
.case-body > * + * { margin-top: clamp(14px, 1.6vw, 24px); }
@media (max-width: 640px) { .case-gallery.all-wide { grid-template-columns: 1fr; } .case-gallery.all-wide .g-wide { height: auto; aspect-ratio: 16 / 10; } }

/* ---------- round 5: courtyard stage centred, suite as wide views ---------- */
.courtyard-layout { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: clamp(32px, 5vw, 96px); }
.courtyard-copy { max-width: 400px; justify-self: start; }
.courtyard-copy h2 { font-size: clamp(38px, 3.8vw, 62px); }
.courtyard-meta { justify-self: end; max-width: 300px; align-self: end; padding-bottom: 40px; }
.courtyard-meta dl { margin: 0 0 28px; display: grid; gap: 18px; }
.courtyard-meta dl div { padding-top: 12px; border-top: 1px solid var(--line-light); }
.courtyard-meta dt { font-size: 12px; color: rgba(247, 242, 235, .6); }
.courtyard-meta dd { margin: 4px 0 0; }
.courtyard-copy { align-self: start; padding-top: 40px; }
.suite-views { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 1.4vw, 20px); }
.suite-views .frame { height: calc(var(--media) * .48); overflow: hidden; }
.suite-views .sv-main { grid-column: 1 / -1; }
.suite-views figcaption { position: absolute; bottom: 12px; right: 14px; margin: 0; padding: 4px 12px; border-radius: 999px; background: rgba(247, 242, 235, .9); color: var(--ink); font-size: 12px; pointer-events: none; }
.tour-open { position: absolute; z-index: 3; top: 16px; left: 16px; min-height: 44px; padding: 0 22px; }
.tour-dialog { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--espresso); }
.tour-dialog::backdrop { background: rgba(22, 16, 13, .92); }
.tour-dialog .tour { height: 100%; aspect-ratio: auto; }
.tour-dialog .lightbox-close { z-index: 5; background: rgba(42, 31, 26, .6); }
@media (max-width: 1000px) {
  .courtyard-layout { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .courtyard-copy, .courtyard-meta { justify-self: center; max-width: 560px; padding: 0; }
  .courtyard-copy .project-index { text-align: center; }
  .courtyard-meta dl { grid-template-columns: repeat(3, 1fr); text-align: right; }
  .courtyard-copy .eyebrow::before { display: none; }
}
@media (max-width: 640px) {
  .suite-views { grid-template-columns: 1fr; }
  .suite-views .frame { height: auto; aspect-ratio: 16 / 9; }
  .suite-views .sv-main { aspect-ratio: 16 / 7; }
  .courtyard-meta dl { grid-template-columns: 1fr; }
}
.case-gallery.has-video { display: flex; justify-content: center; padding-top: clamp(40px, 5vw, 72px); padding-bottom: clamp(24px, 3vw, 40px); }
.tour-dialog .lightbox-close { left: auto; right: 20px; }

/* round 12: prominent 360 call, centred on the wide living view */
.tour-open { top: calc(var(--media) * .24); left: 50%; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 14px; min-height: 0; padding: 0; border: 0; background: none; color: var(--ivory, #f7f2eb); cursor: pointer; }
.tour-badge { display: grid; place-items: center; width: clamp(104px, 9vw, 136px); aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(247, 242, 235, .7); background: rgba(42, 31, 26, .42); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-family: "Instrument Serif", serif; font-size: clamp(32px, 2.8vw, 44px); letter-spacing: .02em; box-shadow: 0 18px 50px rgba(22, 16, 13, .35); transition: transform .5s cubic-bezier(.2, .7, .2, 1), background .5s; animation: tour-breathe 3.2s ease-in-out infinite; }
.tour-label { padding: 8px 18px; border-radius: 999px; background: rgba(247, 242, 235, .94); color: var(--ink); font-size: 14px; letter-spacing: .04em; box-shadow: 0 10px 30px rgba(22, 16, 13, .2); }
.tour-open:hover .tour-badge, .tour-open:focus-visible .tour-badge { transform: scale(1.06); background: rgba(42, 31, 26, .62); }
.suite-views .sv-main::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, rgba(22, 16, 13, .28), transparent 55%); pointer-events: none; }
@keyframes tour-breathe { 0%, 100% { box-shadow: 0 18px 50px rgba(22, 16, 13, .35), 0 0 0 0 rgba(247, 242, 235, .35); } 50% { box-shadow: 0 18px 50px rgba(22, 16, 13, .35), 0 0 0 14px rgba(247, 242, 235, 0); } }
@media (prefers-reduced-motion: reduce) { .tour-badge { animation: none; } }
@media (max-width: 640px) {
  .tour-open { top: calc((100vw - 32px) * .22); gap: 10px; }
  .tour-badge { width: 84px; font-size: 28px; }
  .tour-label { font-size: 13px; padding: 6px 14px; }
}
@media (max-width: 640px) { .suite-views .sv-main figcaption { display: none; } }

/* renders coda: quiet, at the end of the work */
.project.renders { padding-top: clamp(40px, 6vw, 80px); }
.renders-head { display: grid; grid-template-columns: auto auto 1fr; align-items: baseline; gap: 12px clamp(20px, 3vw, 48px); }
.renders-head h2 { margin: 0; font-size: clamp(30px, 3vw, 44px); }
.renders-head p { margin: 0; color: var(--muted, #7a6a5e); justify-self: end; max-width: 420px; }
.renders-strip { margin-top: 28px; }
@media (max-width: 760px) {
  .renders-head { grid-template-columns: 1fr; }
  .renders-head p { justify-self: start; }
  .renders-strip > div { grid-template-columns: 1fr; }
}
