
    /* Serambi theme: the site's tokens, re-tinted with the school palette.
       Lime plaster ground, teal ink, mustard, terracotta and sage accents. */
    body.theme-serambi {
      --bg: #efe6d4;
      --bg-2: #e6dac3;
      --surface: #f8f2e6;
      --glass: rgba(250, 244, 232, 0.66);
      --ink: #173638;
      --ink-2: #4a5f5c;
      --ink-3: #7f8b84;
      --line: rgba(23, 54, 56, 0.14);
      --accent: #3f9a9c;
      --accent-ink: #2c7476;
      --mustard: #ebb53e;
      --terra: #d06a48;
      --sage: #93b27a;
      --timber: #b07a4a;
      /* wajik: the diamond motif from the timetable band and the gable vents */
      --wajik: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Cpath d='M14 2 26 14 14 26 2 14Z' fill='none' stroke='%23173638' stroke-opacity='.16' stroke-width='1.4'/%3E%3Cpath d='M14 9 19 14 14 19 9 14Z' fill='%23ebb53e' fill-opacity='.55'/%3E%3C/svg%3E");
    }
    .theme-serambi .btn-primary { background: var(--ink); }

    /* ── Scroll stage: the model is pinned while the page scrolls over it ── */
    .stage { position: relative; height: 360vh; }
    .stage-pin { position: sticky; top: 0; height: 100vh; overflow: hidden;
      background: radial-gradient(120% 90% at 70% 35%, #f8f1e2 0%, var(--bg) 55%, var(--bg-2) 100%); }
    #scene { position: absolute; inset: 0; }
    .stage-pin::after { /* kisi shadow: soft vertical slats across the backdrop */
      content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .35;
      background: repeating-linear-gradient(90deg, transparent 0 34px, rgba(23,54,56,.035) 34px 40px);
      mask-image: linear-gradient(90deg, #000 0%, transparent 45%); }

    .hero-copy { position: absolute; left: var(--gutter); bottom: clamp(40px, 9vh, 96px); max-width: 560px; z-index: 2; transition: opacity .5s var(--ease), transform .5s var(--ease); }
    .hero-copy h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(72px, 13vw, 176px); line-height: .86; letter-spacing: -0.03em; }
    .hero-copy h1 span { display: block; font-family: var(--font); font-size: clamp(15px, 1.6vw, 19px); font-weight: 600; letter-spacing: 0; margin-top: 18px; line-height: 1.4; color: var(--ink-2); max-width: 30ch; }
    .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
    .chip-s { padding: 7px 14px; border-radius: 999px; background: var(--glass); backdrop-filter: blur(12px); border: 1px solid var(--line); font-size: 13px; font-weight: 600; }
    .chip-s b { color: var(--accent-ink); }
    .scroll-cue { position: absolute; right: var(--gutter); bottom: 40px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); z-index: 2; display: flex; align-items: center; gap: 10px; }
    .scroll-cue i { width: 1.5px; height: 40px; background: linear-gradient(var(--ink), transparent); animation: cue 1.8s var(--ease) infinite; }
    @keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 60% { transform: scaleY(1); transform-origin: top; } 100% { transform: scaleY(0); transform-origin: bottom; } }

    .layers { position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); z-index: 2; width: min(300px, 40vw);
      opacity: 0; transition: opacity .5s var(--ease); pointer-events: none; }
    .layers.on { opacity: 1; }
    .layers .eyebrow { margin-bottom: 14px; }
    .layers ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
    .layers li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; padding: 10px 14px; border-radius: 14px; background: var(--glass); backdrop-filter: blur(12px); border: 1px solid transparent; transition: all .4s var(--ease); opacity: .45; }
    .layers li.lit { opacity: 1; border-color: var(--line); box-shadow: var(--shadow); transform: translateX(-6px); }
    .layers li i { width: 26px; height: 26px; border-radius: 50%; box-shadow: inset -4px -5px 8px rgba(0,0,0,.18), inset 3px 3px 6px rgba(255,255,255,.5); }
    .layers b { display: block; font-size: 14px; }
    .layers small { display: block; font-size: 12.5px; color: var(--ink-2); line-height: 1.4; }
    .stage-note { position: absolute; left: var(--gutter); bottom: 48px; z-index: 2; max-width: 380px; opacity: 0; transition: opacity .5s var(--ease); }
    .stage-note.on { opacity: 1; }
    .stage-note h2 { font-size: clamp(28px, 3.4vw, 44px); margin: 12px 0 10px; }
    .stage-note p { color: var(--ink-2); }

    /* ── Content ── */
    .band { height: 28px; background: var(--wajik); background-size: 28px 28px; border-block: 1px solid var(--line); }
    .intro { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
    .intro h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 5vw, 68px); line-height: 1; }
    .intro p { color: var(--ink-2); font-size: 17px; }
    .intro p + p { margin-top: 16px; }
    .facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; margin-top: clamp(40px, 6vw, 72px); }
    .facts div { background: var(--surface); padding: 22px 24px; }
    .facts b { display: block; font-size: clamp(26px, 3vw, 38px); letter-spacing: -0.03em; }
    .facts span { font-size: 13px; color: var(--ink-2); }

    .forces { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
    .force { position: relative; padding: 28px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; min-height: 260px; display: flex; flex-direction: column; justify-content: flex-end; }
    .force .blob { position: absolute; width: 180px; height: 180px; border-radius: 50%; top: -40px; right: -40px;
      box-shadow: inset -18px -22px 40px rgba(0,0,0,.18), inset 14px 14px 30px rgba(255,255,255,.45); animation: bob 7s ease-in-out infinite; }
    .force:nth-child(2) .blob { animation-delay: -2s; } .force:nth-child(3) .blob { animation-delay: -4s; }
    @keyframes bob { 50% { transform: translate(-8px, 10px) rotate(8deg); } }
    .force h3 { font-size: 22px; margin: 8px 0 8px; }
    .force p { color: var(--ink-2); font-size: 15px; }
    .force .num { font-size: 13px; font-weight: 800; letter-spacing: .12em; color: var(--accent-ink); }

    .sheets { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
    .sheet { grid-column: span 2; aspect-ratio: 1.414; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); position: relative; overflow: hidden; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
    .sheet.wide { grid-column: span 4; aspect-ratio: auto; }
    .sheet:hover { transform: translateY(-6px) rotate(-.4deg); box-shadow: var(--shadow-lg); }
    .sheet .ph { position: absolute; inset: 14px 14px 58px; border-radius: 12px; background: var(--wajik), var(--bg-2); background-size: 28px 28px; opacity: .8; }
    .sheet footer { position: absolute; left: 20px; right: 20px; bottom: 16px; display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; font-weight: 700; }
    .sheet footer span { font-weight: 600; color: var(--ink-3); font-size: 12px; letter-spacing: .1em; }

    .palette { display: flex; flex-wrap: wrap; gap: clamp(16px, 3vw, 40px); justify-content: space-between; }
    .swatch { text-align: center; flex: 1 1 120px; }
    .swatch i { display: block; width: clamp(84px, 11vw, 140px); aspect-ratio: 1; margin: 0 auto 14px; border-radius: 50%;
      box-shadow: inset -16px -20px 34px rgba(0,0,0,.22), inset 12px 12px 26px rgba(255,255,255,.4), 0 26px 40px -22px rgba(23,54,56,.55);
      transition: transform .6s var(--ease); }
    .swatch:hover i { transform: translateY(-10px) scale(1.04); }
    .swatch b { display: block; font-size: 15px; }
    .swatch span { font-size: 12.5px; color: var(--ink-2); }

    .rooms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
    .room { border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
    .room .img { aspect-ratio: 4/3; position: relative; }
    .room .img::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 22px, rgba(0,0,0,.06) 22px 26px); }
    .room div.t { padding: 18px 22px 22px; }
    .room h3 { font-size: 19px; } .room p { font-size: 14px; color: var(--ink-2); margin-top: 6px; }

    .next { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(28px, 4vw, 48px); border-radius: calc(var(--radius) + 8px); background: var(--ink); color: #f3ead8; text-decoration: none; }
    .next h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 5vw, 64px); }
    .next .arrow { width: 72px; height: 72px; border-radius: 50%; background: var(--mustard); color: var(--ink); display: grid; place-items: center; font-size: 28px; transition: transform .5s var(--ease); flex: none; }
    .next:hover .arrow { transform: rotate(-45deg); }

    @media (max-width: 860px) {
      .intro, .forces, .rooms { grid-template-columns: 1fr; }
      .facts { grid-template-columns: 1fr 1fr; }
      .sheets { grid-template-columns: 1fr 1fr; } .sheet, .sheet.wide { grid-column: span 2; aspect-ratio: 1.414; }
      .layers { top: auto; bottom: 24px; transform: none; width: auto; left: var(--gutter); }
      .layers li small { display: none; }
      .stage-note { display: none; }
    }
    @media (prefers-reduced-motion: reduce) { .force .blob, .scroll-cue i { animation: none; } }
  
/* Shared site-study presentation, with dock in the case-study flow. */
    .ss-basis { margin-top: 14px; color: var(--accent-ink); font-size: 10.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
    .ss-implication { margin-top: 20px; padding: 14px 15px; border-left: 3px solid var(--accent); background: var(--glass); border-radius: 0 12px 12px 0; }
    .ss-implication b { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
    .ss-implication p { margin-top: 6px; font-size: 14px; line-height: 1.5; }
    .ss-layer-hint { font-size: 12px; color: var(--ink-2); margin-bottom: 9px; }
    .ss-layer-num { display: inline-block; min-width: 26px; color: var(--accent-ink); font-size: 11px; }
    .ss-controls { position: absolute; bottom: 54px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 8px; border: 1px solid var(--line); border-radius: 18px; background: var(--glass-strong); }
    .ss-controls button { white-space: nowrap; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 8px 12px; font-size: 12px; cursor: pointer; }
    .ss-controls button[aria-pressed=true] { background: var(--ink); color: var(--bg); }
    .ss-controls label { font-size: 11px; display: grid; gap: 4px; padding: 0 6px; }
    .ss-controls input { width: 100px; accent-color: var(--accent); }
    .ss-orientation { position: absolute; top: 90px; left: 28px; display: flex; align-items: center; gap: 18px; font-size: 11px; line-height: 1.5; color: var(--ink-2); }
    .ss-north { position: relative; font-size: 40px; width: 30px; line-height: 1; text-align: center; color: var(--ink); }
    .ss-north b { position: absolute; top: -14px; left: 10px; font-size: 10px; }
    .ss-modal:not(.show) { visibility: hidden; }
    .ss-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 15px; }
    @media(max-width:860px) { .ss-orientation { top: 24px; left: 20px; font-size: 10px; } .ss-controls { bottom: 30px; padding: 5px; gap: 4px; } .ss-controls button { padding: 7px 9px; font-size: 11px; } .ss-controls input { width: 76px; } .ss-stage .ss-hint { display: none; } }
    /* site study dock (js/site-study.js): eight turning site disks under the open building */
    .ss-dock { position: fixed; left: var(--gutter); right: calc(var(--panel-w) + 36px); bottom: 12px; z-index: 9; display: none; }
    body.has-ss .ss-dock { display: block; }
    body.has-ss .open-hint { display: none; }
    .ss-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 2px 4px; }
    .ss-sub { font-size: 12px; color: var(--ink-2); }
    .ss-row { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; }
    .ss-item { background: none; border: 0; padding: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; color: var(--ink); font: inherit; }
    .ss-view { display: block; width: 100%; aspect-ratio: 2 / 1.12; }
    .ss-item b { font-size: 12.5px; font-weight: 800; letter-spacing: .01em; margin-top: 2px; padding: 3px 10px; border-radius: 999px; transition: background .25s, color .25s; white-space: nowrap; }
    .ss-item:hover b, .ss-item:focus-visible b { background: var(--ink); color: var(--bg); }
    .ss-item:focus-visible { outline: none; }
    .ss-error { font-size: 12.5px; color: var(--ink-2); }
    .ss-canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 60; }
    .ss-backdrop { position: fixed; inset: 0; z-index: 59; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(12px); opacity: 0; pointer-events: none; transition: opacity .45s var(--ease); }
    .ss-backdrop.show { opacity: 1; pointer-events: auto; }
    .ss-modal { position: fixed; inset: 0; z-index: 61; display: grid; grid-template-columns: 1fr min(430px, 36vw); opacity: 0; pointer-events: none; transition: opacity .45s var(--ease); }
    .ss-modal.show { opacity: 1; }
    .ss-modal.show .ss-stage, .ss-modal.show .ss-info { pointer-events: auto; }
    .ss-stage { position: relative; cursor: grab; touch-action: none; }
    .ss-stage:active { cursor: grabbing; }
    .ss-tags { position: absolute; inset: 0; pointer-events: none; }
    .ss-tag { position: absolute; left: 0; top: 0; display: flex; align-items: center; transition: opacity .35s var(--ease); }
    .ss-tag::after { content: ''; width: 38px; height: 1.5px; background: var(--ink); opacity: .4; }
    .ss-tag button { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(10px); font-size: 12.5px; font-weight: 700; cursor: pointer; white-space: nowrap; color: var(--ink); }
    .ss-tag.on button { background: var(--ink); color: var(--bg); }
    .ss-tag.dim button { opacity: .45; }
    .ss-hint { position: absolute; left: var(--gutter); bottom: 20px; font-size: 12.5px; color: var(--ink-2); pointer-events: none; }
    .ss-info { margin: 78px 12px 12px 0; border-radius: 26px; background: color-mix(in srgb, var(--bg) 84%, #fff); border: 1px solid var(--line); box-shadow: 0 30px 80px -30px rgba(0,0,0,.35); display: flex; flex-direction: column; overflow: hidden; }
    .ss-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 6px 22px; }
    .ss-nav { display: flex; gap: 6px; }
    .ss-nav button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--glass); cursor: pointer; font-size: 15px; color: var(--ink); }
    .ss-body { overflow-y: auto; padding: 4px 22px 30px; overscroll-behavior: contain; scrollbar-width: thin; }
    .ss-body h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 4vw, 56px); line-height: .95; letter-spacing: -0.03em; margin-top: 8px; }
    .ss-sum { font-size: 17px; line-height: 1.45; margin-top: 12px; }
    .ss-find { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
    .ss-find li { position: relative; padding-left: 18px; font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }
    .ss-find li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
    .ss-body h3 { font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin: 28px 0 10px; display: flex; align-items: center; gap: 10px; }
    .ss-body h3::after { content: ''; flex: 1; height: 1px; background: var(--line); }
    .ss-layers { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
    .ss-layers button { width: 100%; text-align: left; padding: 8px 10px; border-radius: 12px; border: 1px solid transparent; background: none; cursor: pointer; color: var(--ink); font: inherit; }
    .ss-layers button:hover { background: var(--glass); }
    .ss-layers button.on { border-color: var(--line); background: var(--glass); }
    .ss-layers button.dim { opacity: .45; }
    .ss-layers b { display: block; font-size: 14px; }
    .ss-layers small { display: block; font-size: 12px; color: var(--ink-2); line-height: 1.4; }
    .ss-legend { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 18px; font-size: 12px; color: var(--ink-2); }
    .ss-legend span { display: inline-flex; align-items: center; gap: 6px; }
    .ss-legend i { width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--line); }
    .ss-src { font-size: 11.5px; color: var(--ink-2); margin-top: 22px; line-height: 1.45; }

/* The sample's palette, clay surfaces and editorial spacing, now carrying the project. */
.case-header { position:absolute; left:var(--gutter); right:var(--gutter); top:24px; z-index:20; display:flex; justify-content:space-between; align-items:center; gap:20px; }
.case-brand { display:flex; align-items:center; gap:12px; text-decoration:none; font-size:14px; }
.case-brand>span { width:38px; height:38px; display:grid; place-items:center; border-radius:13px; color:var(--bg); background:var(--ink); font-weight:800; font-size:12px; }
.case-header nav { display:flex; gap:4px; padding:5px; background:var(--glass); border:1px solid var(--line); backdrop-filter:blur(18px); border-radius:999px; }
.case-header nav a { padding:9px 14px; text-decoration:none; font-size:12px; border-radius:999px; }
.case-header nav a:hover { background:var(--ink); color:var(--bg); }
.section { scroll-margin-top:28px; }
#scene canvas { width:100%; height:100%; }
#model-poster { position:absolute; right:2%; top:18%; width:66%; height:66%; object-fit:contain; mix-blend-mode:multiply; border-radius:30px; transition:opacity .5s; }
#scene.ready #model-poster { opacity:0; pointer-events:none; }
.hero-copy { bottom:120px; max-width:490px; }
.hero-copy h1 { font-size:clamp(82px,12vw,168px); }
.hero-copy h1 span { max-width:25ch; font-size:clamp(18px,2vw,24px); }
.scroll-cue { bottom:100px; }
.layers { width:min(290px,28vw); top:49%; }
.layers.on { pointer-events:auto; }
.layers li { padding:0; display:block; }
.layers li button { width:100%; padding:10px 14px; display:grid; grid-template-columns:26px 1fr; gap:10px; text-align:left; border:0; background:none; color:inherit; font:inherit; cursor:pointer; border-radius:14px; }
.layers li:has(button[aria-pressed=true]) { opacity:1; outline:2px solid var(--accent); }
.layers li.dim { opacity:.25; }
.stage-note { bottom:115px; max-width:270px; }
.model-tools { position:absolute; bottom:23px; left:var(--gutter); right:var(--gutter); z-index:5; display:flex; align-items:center; justify-content:space-between; gap:22px; font-size:12px; color:var(--ink-2); }
.model-tools label { display:flex; align-items:center; gap:12px; padding:9px 14px; border:1px solid var(--line); border-radius:999px; background:var(--glass); }
.model-tools input { width:120px; accent-color:var(--accent); }
.model-tools a { text-decoration:none; font-weight:700; }
.intro .eyebrow { margin-bottom:22px; }
.small-note { font-size:12px!important; line-height:1.6; color:var(--ink-2); margin-top:22px; }
figure { margin:0; }
.feature-photo { margin-top:52px; }
.media-trigger { border:0; padding:0; background:none; color:inherit; display:block; width:100%; position:relative; cursor:zoom-in; border-radius:var(--radius); overflow:hidden; text-align:left; }
.media-trigger img { width:100%; height:auto; display:block; transition:transform .7s var(--ease); }
.media-trigger:hover img { transform:scale(1.018); }
.enlarge { position:absolute; right:16px; bottom:16px; font-size:11px; padding:7px 12px; border:1px solid rgba(255,255,255,.35); background:rgba(23,54,56,.75); backdrop-filter:blur(8px); color:#fff; border-radius:999px; pointer-events:none; }
.feature-photo figcaption { display:flex; justify-content:space-between; gap:16px; font-size:12px; color:var(--ink-2); margin-top:14px; }
.feature-photo .media-trigger img { aspect-ratio:16/9; object-fit:cover; }
.site-section,.plan-section { background:var(--bg-2); }
.force { min-height:280px; }
.force .blob { width:150px; height:150px; }
.ss-dock { position:relative; inset:auto; display:block; margin-top:80px; z-index:9; }
.ss-row { grid-template-columns:repeat(8,minmax(0,1fr)); gap:10px; margin-top:35px; }
.ss-item b { font-size:11px; padding:3px 5px; }
.ss-view { aspect-ratio:1.6; }
.ss-info { --accent-ink:#2c7476; }
.ss-controls { white-space:nowrap; }
.ss-modal { --glass-strong:rgba(250,244,232,.9); }
.ss-modal .eyebrow { font-size:11px; }
.ss-modal .ss-info { margin-top:30px; }
.ss-body h2 { font-size:48px; }
.text-link { display:inline-block; font-size:13px; font-weight:700; color:var(--accent-ink); text-underline-offset:5px; margin-top:15px; }
.sheets { grid-template-columns:repeat(6,minmax(0,1fr)); }
.sheet { display:flex; flex-direction:column; grid-column:span 2; border:0; padding:14px 14px 0; color:var(--ink); text-align:left; font:inherit; cursor:zoom-in; aspect-ratio:auto; }
.sheet.wide { grid-column:span 4; }
.sheet>img { width:100%; aspect-ratio:1.414; object-fit:contain; background:white; border-radius:12px; }
.sheet.portrait>img { object-fit:contain; }
.sheet footer { position:static; width:100%; gap:18px; padding:17px 4px 19px; min-height:64px; font-size:13px; }
.sheet footer span { flex-shrink:0; }
.sheet.section-sheet { grid-column:span 6; }
.sheet.section-sheet>img { max-height:640px; object-fit:contain; }
.sheets .sheet .tag { font-size:11px; }
.time-switch,.plan-tabs { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:22px; }
.time-switch button,.plan-tabs button { border:1px solid var(--line); padding:10px 22px; border-radius:999px; background:var(--surface); cursor:pointer; font-size:13px; }
.time-switch button[aria-pressed=true],.plan-tabs button[aria-selected=true] { background:var(--ink); color:var(--bg); }
.time-switch+.feature-photo { margin-top:0; }
.photo-pair { display:grid; grid-template-columns:1fr 1fr; gap:24px; margin-top:40px; }
.photo-pair img { aspect-ratio:16/10; object-fit:cover; }
.photo-pair figcaption { font-size:13px; color:var(--ink-2); margin-top:14px; }
#plan-panel { display:grid; grid-template-columns:minmax(0,1fr) 265px; gap:32px; align-items:center; }
.plan-view { background:white; padding:25px; border:1px solid var(--line); }
.plan-view img { width:100%; height:620px; object-fit:contain; }
.plan-detail { font-size:16px; color:var(--ink-2); }
.room-controls { display:flex; align-items:center; gap:18px; border-top:1px solid var(--line); padding:22px 0; }
.room-controls>span { font-size:12px; color:var(--accent-ink); font-weight:800; letter-spacing:.12em; margin-right:auto; }
.room-controls label { font-size:12px; color:var(--ink-2); }
.room-controls select { background:var(--surface); border:1px solid var(--line); color:var(--ink); border-radius:12px; padding:12px 36px 12px 14px; font:inherit; font-size:14px; max-width:280px; }
.room-controls>div { display:flex; gap:8px; }
.room-controls button { width:44px; height:44px; border-radius:50%; background:var(--surface); border:1px solid var(--line); font-size:18px; cursor:pointer; }
.room-explorer img { width:100%; aspect-ratio:16/9; object-fit:cover; background:var(--bg-2); }
.room-explorer figcaption { display:flex; align-items:start; justify-content:space-between; gap:24px; padding:26px 0 0; }
.room-explorer h3 { font-family:var(--serif); font-size:38px; font-weight:400; margin:10px 0 12px; }
.room-explorer p { color:var(--ink-2); max-width:65ch; }
.preview-label { color:var(--accent-ink); font-size:11px; white-space:nowrap; border:1px solid var(--line); padding:6px 12px; border-radius:999px; }
.swatch .material-timber { background:linear-gradient(135deg,#fff3,transparent),url('../assets/projects/serambi/material-Planks037A.webp') center/cover; }
.swatch .material-render { background:linear-gradient(135deg,#fff5,transparent),url('../assets/projects/serambi/material-PaintedPlaster017.webp') center/cover; }
.mood-image { margin-top:64px; background:white; padding:16px; }
.project-close h2 { font-family:var(--serif); font-weight:400; font-size:clamp(44px,6vw,86px); line-height:1.04; margin-top:18px; }
.download-row { display:flex; flex-wrap:wrap; gap:14px; margin-top:32px; }
.project-close .next { margin-top:70px; }
.case-footer { padding:28px var(--gutter); border-top:1px solid var(--line); display:flex; justify-content:space-between; gap:20px; font-size:12px; color:var(--ink-2); }
.case-footer a { text-decoration:none; }
#case-lightbox { border:0; padding:0; width:calc(100vw - 32px); max-width:1800px; height:calc(100dvh - 32px); max-height:none; border-radius:20px; background:var(--surface); color:var(--ink); overflow:hidden; }
#case-lightbox::backdrop { background:rgba(14,31,30,.85); backdrop-filter:blur(10px); }
#case-lightbox[open] { display:flex; flex-direction:column; }
.lb-toolbar { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:12px 20px; border-bottom:1px solid var(--line); font-size:13px; }
.lb-toolbar>div { display:flex; gap:20px; align-items:center; }
.lb-toolbar a { font-size:12px; white-space:nowrap; }
.lb-toolbar button { width:36px; height:36px; border:1px solid var(--line); border-radius:50%; background:var(--bg); cursor:pointer; }
.lb-scroll { flex:1; overflow:auto; display:grid; justify-items:center; align-items:start; padding:24px; }
.lb-scroll img { width:auto; height:auto; max-width:100%; max-height:none; border-radius:4px; }
#case-lightbox.photo-view .lb-scroll { display:flex; align-items:center; justify-content:center; min-height:0; }
#case-lightbox.photo-view .lb-scroll img { width:100%; height:100%; max-height:100%; object-fit:contain; }
#case-lightbox>p { text-align:center; font-size:11px; color:var(--ink-2); padding:7px; border-top:1px solid var(--line); }
@media(max-width:1100px) { .hero-copy { max-width:370px; }.hero-copy h1 { font-size:112px; } .ss-row { grid-template-columns:repeat(4,minmax(0,1fr)); row-gap:24px; }.ss-view { aspect-ratio:2; } }
@media(max-width:860px) {
 .case-header { top:16px; gap:10px; }.case-brand b { display:none; }.case-header nav a { padding:8px 10px;font-size:11px; }.case-header nav a:nth-child(2) { display:none; }
 .stage { height:280vh; }.hero-copy { left:22px; bottom:120px;max-width:330px; }.hero-copy h1 { font-size:100px; }.hero-copy h1 span { font-size:19px;max-width:27ch; }.hero-copy .eyebrow { font-size:10px; }
 .chips { margin-top:15px; }.chip-s { font-size:11px;padding:6px 10px; }.scroll-cue { display:none; }
 .model-tools { left:18px;right:18px;bottom:19px;gap:10px;flex-wrap:wrap; }.model-tools>span { width:100%;font-size:10px; }.model-tools input { width:95px; }.model-tools a { font-size:11px; }
 .layers { left:18px;right:18px;bottom:100px;top:auto;transform:none;width:auto; }.layers ol { grid-template-columns:1fr 1fr;gap:5px; }.layers .eyebrow { font-size:10px; }.layers li button { padding:8px 9px;grid-template-columns:16px 1fr;gap:7px; }.layers li i { width:16px;height:16px; }.layers li b { font-size:11px; }.layers li.lit { transform:none; }.layers li small { display:none; }
 #model-poster { width:94%;height:56%;top:10%;right:3%; }
 .facts { grid-template-columns:repeat(3,minmax(0,1fr)); }.facts div { padding:18px 12px; }.facts b { font-size:24px; }.facts span { font-size:11px;line-height:1.4;display:block;margin-top:6px; }
 .feature-photo { margin-top:32px; }.feature-photo figcaption { flex-direction:column;gap:4px;font-size:11px; }.feature-photo .media-trigger img { aspect-ratio:4/3; }
 .forces { gap:14px; }.force { min-height:220px; }.force .blob { width:110px;height:110px; }
 .ss-dock { display:block;position:relative;inset:auto;margin-top:50px; }.ss-row { grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }.ss-item b { font-size:9px;white-space:normal;min-height:28px; }.ss-view { aspect-ratio:1.5; }
 .ss-modal { grid-template-columns:1fr;grid-template-rows:52vh 1fr; }.ss-modal .ss-info { margin:0 8px 8px; }.ss-tag { display:none; }
 .sheets { grid-template-columns:1fr;gap:18px; }.sheet,.sheet.wide,.sheet.section-sheet { grid-column:1;aspect-ratio:auto; }.sheet footer { min-height:55px;padding:14px 4px; }.sheet>img { aspect-ratio:1.414; }.sheet.portrait>img { aspect-ratio:1; }
 .photo-pair { grid-template-columns:1fr;gap:28px; }.photo-pair img { aspect-ratio:16/10; }
 #plan-panel { grid-template-columns:1fr;gap:22px; }.plan-view { padding:10px; }.plan-view img { height:500px; }.plan-detail { font-size:14px; }
 .room-controls { gap:8px;flex-wrap:wrap; }.room-controls label { display:none; }.room-controls select { max-width:calc(100% - 98px);width:calc(100% - 98px);font-size:13px; }.room-controls>span { width:100%; }.room-controls>div { margin-left:auto; }.room-controls button { width:38px;height:38px; }.room-explorer img { aspect-ratio:4/3; }.room-explorer h3 { font-size:32px; }.room-explorer figcaption { gap:10px; }.preview-label { font-size:9px;padding:4px 7px; }
 .palette { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:25px 12px; }.swatch { min-width:0; }.swatch i { width:88px; }.swatch b { font-size:13px; }.swatch span { font-size:10px; }
 .mood-image { margin-top:40px;padding:5px; }.next .arrow { width:48px;height:48px; }.case-footer { font-size:10px; }
 #case-lightbox { width:calc(100vw - 12px);height:calc(100dvh - 12px);border-radius:14px; }.lb-toolbar { padding:9px 12px;font-size:11px;gap:10px; }.lb-toolbar a { display:none; }.lb-scroll { padding:8px; }
}
@media(prefers-reduced-motion:reduce) { .stage { height:220vh; }.media-trigger img { transition:none; } }
/* Balanced pairs give each drawing room to breathe. */
@media(min-width:861px) { .sheet,.sheet.wide { grid-column:span 3; }.sheet.section-sheet { grid-column:span 6; } }
