/* North / 02 — concept architecture practice (Credoark demo).
   Idea: a building's wayfinding. Travertine ground, walnut-dark type, terracotta for "you are here". */
@font-face { font-family: 'North Sign'; src: url('../../../assets/fonts/oswald.woff2') format('woff2'); font-weight: 200 700; font-display: swap; }
@font-face { font-family: 'North Serif'; font-style: italic; src: url('../../../assets/fonts/instrument-serif-italic.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'North Text'; src: url('../../../assets/fonts/inter.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --stone: #EFE7DA;
  --stone-2: #E4D7C3;
  --char: #241E18;
  --walnut: #6E4526;
  --olive: #6F7452;
  --muted: rgba(36, 30, 24, 0.64);
  --line: rgba(36, 30, 24, 0.16);
  --signal: #B8602F;
  --sign: 'North Sign', 'Arial Narrow', sans-serif;
  --text: 'North Text', system-ui, sans-serif;
  --rail: 92px;
  --pad: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}
*, *::before, *::after { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--stone); color: var(--char); font: 16px/1.6 var(--text); overflow-x: clip; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }

.concept-bar { position: relative; z-index: 40; display: flex; justify-content: center; flex-wrap: wrap; gap: 0.5rem 1.25rem; padding: 0.55rem var(--pad); background: var(--char); color: var(--stone); font-size: 0.78rem; text-align: center; }
.concept-bar a { color: #E8A77B; text-underline-offset: 3px; }

/* Wayfinding rail ----------------------------------------------------------- */
.rail { position: fixed; top: 0; left: 0; bottom: 0; z-index: 30; width: var(--rail); display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 4.2rem 0 1.5rem; background: var(--char); color: var(--stone); }
.rail__mark { font-family: var(--sign); font-weight: 600; font-size: 1.05rem; letter-spacing: 0.08em; text-decoration: none; writing-mode: vertical-rl; transform: rotate(180deg); }
.rail__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.rail__list a { display: grid; place-items: center; width: 52px; height: 44px; border: 1px solid rgba(239, 231, 218, 0.18); font-family: var(--sign); font-size: 1rem; letter-spacing: 0.04em; text-decoration: none; transition: background 250ms, color 250ms, border-color 250ms; }
.rail__list a:hover { border-color: var(--stone); }
.rail__list a[aria-current="true"] { background: var(--signal); border-color: var(--signal); color: var(--char); }
.rail__here { font-family: var(--sign); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(239, 231, 218, 0.6); writing-mode: vertical-rl; transform: rotate(180deg); }
.rail__here b { color: var(--signal); font-weight: 500; }
main, footer { margin-left: var(--rail); }

/* Type ---------------------------------------------------------------------- */
.sign { font-family: var(--sign); font-weight: 500; text-transform: uppercase; letter-spacing: 0.01em; line-height: 0.9; margin: 0; }
.kicker { font-family: var(--sign); font-size: 0.85rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.lede { font-size: clamp(1.05rem, 1.35vw, 1.25rem); color: var(--muted); max-width: 42ch; }

/* Entrance / plan index ----------------------------------------------------- */
.entrance { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; min-height: calc(100svh - 2.2rem); padding: clamp(3rem, 7vw, 6rem) var(--pad) clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--line); }
.entrance h1 { font-size: clamp(4.2rem, 8.2vw, 10rem); }
.entrance h1 span { color: var(--signal); }
.entrance .lede { margin: 1.5rem 0 0; }
.plan { position: relative; }
.plan svg { width: 100%; height: auto; display: block; }
.plan__wall { fill: none; stroke: var(--char); stroke-width: 3; }
.plan__thin { fill: none; stroke: var(--char); stroke-width: 1; opacity: 0.5; }
.plan__room { fill: transparent; stroke: none; cursor: pointer; transition: fill 300ms; }
.plan__room:hover { fill: rgba(184, 96, 47, 0.12); }
.plan__room.is-here { fill: rgba(184, 96, 47, 0.22); }
.plan__num { font: 500 22px var(--sign); fill: var(--char); pointer-events: none; }
.plan__name { font: 400 11px var(--text); fill: var(--muted); pointer-events: none; }
.plan__door { stroke: var(--char); stroke-width: 1; fill: none; stroke-dasharray: 3 3; }
.plan__caption { display: flex; justify-content: space-between; gap: 1rem; margin-top: 0.8rem; font-size: 0.8rem; color: var(--muted); }

/* Rooms (projects) ---------------------------------------------------------- */
.room { display: grid; grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem); min-height: 100svh; border-bottom: 1px solid var(--line); }
.room:nth-of-type(even) { grid-template-columns: minmax(16rem, 22rem) minmax(0, 1fr); }
.room:nth-of-type(even) .room__view { order: 2; }
.room__view { position: relative; overflow: hidden; background: var(--char); }
.room__view img { position: absolute; inset: 0; }
.room__door { position: absolute; inset: 0; clip-path: inset(0 0 0 0); }
.js .room__door { clip-path: inset(8% 38% 0 38%); transition: clip-path 1.4s var(--ease); }
.js .room.is-in .room__door { clip-path: inset(0 0 0 0); }
.js .room__door img { transform: scale(1.12); transition: transform 2s var(--ease); }
.js .room.is-in .room__door img { transform: none; }
.room__sign { position: absolute; left: 1.25rem; top: 1.25rem; z-index: 2; display: flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0.8rem; background: var(--stone); font-family: var(--sign); font-size: 0.95rem; letter-spacing: 0.06em; text-transform: uppercase; }
.room__sign b { display: inline-grid; place-items: center; width: 1.8rem; height: 1.8rem; background: var(--signal); font-weight: 500; }
.room__notes { display: flex; flex-direction: column; gap: 1.5rem; padding: clamp(1.75rem, 3vw, 2.75rem) var(--pad); }
.room__notes h2 { font-size: clamp(2.6rem, 4.4vw, 4.2rem); }
.room__notes > p { margin: 0; color: var(--muted); }
.facts { margin: 0; display: grid; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.facts dt { font-family: var(--sign); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; }
.section-drawing { margin-top: auto; }
.section-drawing svg { width: 100%; height: auto; display: block; }
.section-drawing path, .section-drawing line, .section-drawing rect { fill: none; stroke: var(--char); stroke-width: 1.2; }
.section-drawing .ground { stroke-width: 2.4; }
.section-drawing .light { stroke: var(--signal); stroke-dasharray: 4 4; }
.section-drawing figcaption { margin-top: 0.4rem; font-size: 0.78rem; color: var(--muted); }
.materials { display: flex; gap: 0.5rem; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.materials li { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.85rem; }
.materials i { width: 14px; height: 14px; border: 1px solid var(--line); }

/* Practice + contact -------------------------------------------------------- */
.practice { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); padding: clamp(4rem, 9vw, 8rem) var(--pad); border-bottom: 1px solid var(--line); }
.practice h2 { font-size: clamp(3rem, 6vw, 5.8rem); }
.principles { list-style: none; margin: 0; padding: 0; counter-reset: p; border-top: 1px solid var(--line); }
.principles li { counter-increment: p; display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 1rem; padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.principles li::before { content: counter(p, decimal-leading-zero); font-family: var(--sign); font-size: 1.3rem; color: var(--signal); }
.principles strong { display: block; font-family: var(--sign); font-weight: 500; font-size: 1.35rem; text-transform: uppercase; letter-spacing: 0.02em; }
.principles span { color: var(--muted); }
.exit { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: end; padding: clamp(4rem, 8vw, 7rem) var(--pad); background: var(--char); color: var(--stone); }
.exit h2 { font-size: clamp(3rem, 7vw, 6.5rem); }
.exit p { color: rgba(239, 231, 218, 0.66); max-width: 44ch; }
.exit-sign { display: inline-flex; align-items: center; gap: 0.8rem; min-height: 56px; padding: 0 1.4rem; background: var(--signal); color: var(--char); font-family: var(--sign); font-size: 1.15rem; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; transition: background 250ms; }
.exit-sign:hover { background: var(--stone); }
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding: 1.5rem var(--pad); background: var(--char); color: rgba(239, 231, 218, 0.6); font-size: 0.82rem; border-top: 1px solid rgba(239, 231, 218, 0.12); }
.footer a { color: #E8A77B; }

/* Responsive ---------------------------------------------------------------- */
@media (max-width: 900px) {
  :root { --rail: 0px; }
  .rail { top: auto; right: 0; width: auto; height: 60px; flex-direction: row; padding: 0 var(--pad); }
  .rail__mark, .rail__here { writing-mode: horizontal-tb; transform: none; }
  .rail__here, .rail__mark { display: none; }
  .rail { justify-content: center; }
  .rail__list { display: flex; }
  .rail__list a { width: 44px; height: 40px; }
  body { padding-bottom: 60px; }
  .entrance, .practice, .exit { grid-template-columns: 1fr; }
  .entrance { min-height: auto; }
  .room, .room:nth-of-type(even) { grid-template-columns: 1fr; min-height: auto; }
  .room:nth-of-type(even) .room__view { order: 0; }
  .room__view { aspect-ratio: 4 / 5; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .js .room__door { clip-path: none; }
  .js .room__door img { transform: none; }
}

/* ===== North revamp ====================================================== */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lede, .room__notes > p { font-size: 1.05rem; }
.rail__list a[aria-current="true"] { color: #fff; }

/* Walk-in hero: the arch window grows to fill the screen as you scroll */
.intro { position: relative; height: 230svh; --p: 0; }
.portal { position: sticky; top: 0; height: 100svh; overflow: hidden; background: var(--stone); }
.portal__copy { position: absolute; left: var(--pad); bottom: clamp(2rem, 6vh, 4rem); z-index: 2; max-width: 30rem; opacity: calc(1 - var(--p) * 2.4); transform: translateY(calc(var(--p) * -60px)); }
.portal__copy h1 { font-size: clamp(4.4rem, 9vw, 10.5rem); }
.portal__copy h1 span { color: var(--signal); }
.portal__copy .lede { margin: 1.3rem 0 0; }
.portal__hint { display: flex; align-items: center; gap: 0.7rem; margin-top: 1.8rem; font-family: var(--sign); font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.portal__hint span { width: 1px; height: 34px; background: var(--char); transform-origin: top; animation: hint 1.8s var(--ease) infinite; }
@keyframes hint { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.portal__win { position: absolute; z-index: 1; right: calc(var(--pad) * (1 - var(--p))); bottom: 0; width: calc(40vw + (100vw - var(--rail) - 40vw) * var(--p)); height: calc(86svh + 14svh * var(--p)); overflow: hidden; border-radius: calc((1 - var(--p)) * 20vw) calc((1 - var(--p)) * 20vw) 0 0; will-change: width, height; }
.portal__win img { transform: scale(calc(1.02 + var(--p) * 0.38)); transform-origin: 50% 46%; }
.portal__win::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(36, 30, 24, calc(0.45 * var(--p)))); }
.portal__cap { position: absolute; z-index: 3; left: var(--pad); bottom: 1.6rem; margin: 0; display: flex; align-items: center; gap: 0.7rem; padding: 0.55rem 0.9rem; background: var(--stone); font-family: var(--sign); font-size: 0.95rem; letter-spacing: 0.06em; text-transform: uppercase; opacity: calc((var(--p) - 0.7) * 3.4); }
.portal__cap b { display: inline-grid; place-items: center; width: 1.8rem; height: 1.8rem; background: var(--signal); color: #fff; font-weight: 500; }

.entrance { min-height: 0; padding-block: clamp(4rem, 8vw, 7rem); }
.entrance__h { font-size: clamp(3rem, 5.6vw, 5.6rem); margin-top: 0.6rem; }
.plan__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; list-style: none; margin: 2.2rem 0 0; padding: 0; max-width: 30rem; }
.plan__thumbs li { aspect-ratio: 3 / 4; overflow: hidden; border-radius: 999px 999px 0 0; }
.plan__wall { stroke: var(--walnut); }
.plan__room:hover { fill: rgba(184, 96, 47, 0.14); }

.room__view { background: var(--stone-2); }
.room__sign b { color: #fff; }
.room__inside { position: absolute; z-index: 3; right: 1.25rem; bottom: 1.25rem; width: clamp(130px, 14vw, 210px); aspect-ratio: 4 / 5; margin: 0; padding: 6px; background: var(--stone); box-shadow: 0 30px 60px -24px rgba(36, 30, 24, 0.6); transform: translateY(30px); opacity: 0; transition: transform 1.2s var(--ease) 0.6s, opacity 1.2s var(--ease) 0.6s; }
.room__inside img { position: static; }
.room__inside span { position: absolute; left: 12px; top: 12px; z-index: 2; padding: 0.2rem 0.5rem; background: var(--char); color: var(--stone); font-family: var(--sign); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; }
.room.is-in .room__inside, html:not(.js) .room__inside { transform: none; opacity: 1; }
.room:nth-of-type(even) .room__inside { right: auto; left: 1.25rem; }
.room__notes h2 { font-size: clamp(2.4rem, 3.8vw, 3.8rem); }
.facts dd { font-size: 0.95rem; }
.section-drawing .water { stroke: #5D7C80; stroke-width: 2.4; }
.section-drawing .lamp { fill: var(--signal); stroke: none; }

/* Light study */
.daylight { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; padding: clamp(4rem, 8vw, 7rem) var(--pad); background: var(--char); color: var(--stone); }
.daylight .kicker { color: rgba(239, 231, 218, 0.6); }
.daylight h2 { font-size: clamp(3rem, 5.6vw, 5.4rem); margin: 0.5rem 0 1.2rem; }
.daylight__copy > p { color: rgba(239, 231, 218, 0.72); max-width: 40ch; }
.daylight__label { display: flex; justify-content: space-between; align-items: baseline; margin-top: 2rem; font-family: var(--sign); letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.85rem; color: rgba(239, 231, 218, 0.7); }
.daylight__label output { font-size: 2.4rem; letter-spacing: 0.02em; color: #fff; }
.daylight__range { width: 100%; margin: 0.8rem 0 0.3rem; accent-color: var(--signal); height: 28px; cursor: grab; }
.daylight__scale { display: flex; justify-content: space-between; font-size: 0.75rem; color: rgba(239, 231, 218, 0.5); }
.daylight__read { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.8rem 0 0; padding-top: 1.2rem; border-top: 1px solid rgba(239, 231, 218, 0.14); }
.daylight__read dt { font-family: var(--sign); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(239, 231, 218, 0.5); }
.daylight__read dd { margin: 0.2rem 0 0; font-family: 'North Serif', serif; font-style: italic; font-size: 1.6rem; color: #fff; }
.daylight__view { position: relative; margin: 0; aspect-ratio: 4 / 5; max-height: 86svh; overflow: hidden; border-radius: 999px 999px 0 0; justify-self: center; width: min(100%, 560px); }
.daylight__view img { transition: filter 300ms; }
.daylight__tint, .light__glow { position: absolute; inset: 0; pointer-events: none; transition: background 300ms, opacity 300ms; }
.daylight__tint { mix-blend-mode: soft-light; }
.daylight__glow { background: radial-gradient(34% 22% at 60% 60%, rgba(255, 184, 100, 0.85), transparent 72%); mix-blend-mode: screen; opacity: 0; }

/* Material library */
.mats { padding: clamp(4rem, 8vw, 7rem) var(--pad); border-bottom: 1px solid var(--line); }
.mats__head h2 { font-size: clamp(2.6rem, 4.6vw, 4.6rem); margin: 0.5rem 0 2.4rem; }
.mats__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; list-style: none; margin: 0; padding: 0; }
.mats__grid li { position: relative; aspect-ratio: 1; overflow: hidden; }
.mats__grid img { transition: transform 1.2s var(--ease); }
.mats__grid li:hover img { transform: scale(1.08); }
.mats__grid span { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.4rem 1rem 0.9rem; background: linear-gradient(transparent, rgba(36, 30, 24, 0.75)); color: rgba(239, 231, 218, 0.8); font-size: 0.85rem; }
.mats__grid b { display: block; font-family: var(--sign); font-weight: 500; font-size: 1.4rem; letter-spacing: 0.04em; text-transform: uppercase; color: #fff; }

/* Campaign */
.campaign { padding: clamp(4rem, 8vw, 7rem) var(--pad); background: var(--stone-2); }
.campaign__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem 3rem; align-items: end; margin-bottom: 2.6rem; }
.campaign__head .kicker { grid-column: 1 / -1; margin: 0; }
.campaign__head h2 { font-size: clamp(2.6rem, 4.6vw, 4.6rem); }
.campaign__head p:last-child { margin: 0; color: var(--muted); max-width: 46ch; }
.ads { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.ads__col { display: grid; gap: 1.25rem; }
.ig { background: #fff; border-radius: 12px; overflow: hidden; font-family: -apple-system, 'Segoe UI', var(--text), sans-serif; box-shadow: 0 30px 60px -40px rgba(36, 30, 24, 0.6); }
.ig__head { display: flex; align-items: center; gap: 0.6rem; padding: 0.75rem 0.9rem; font-size: 0.86rem; }
.ig__head small { color: #737373; margin-left: auto; font-size: 0.75rem; }
.ig__av { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--char); color: var(--stone); font-family: var(--sign); font-size: 0.85rem; flex: none; }
.ig__media { position: relative; aspect-ratio: 4 / 5; }
.ig__count { position: absolute; right: 10px; top: 10px; padding: 0.15rem 0.5rem; border-radius: 999px; background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 0.72rem; }
.ig__dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 4px; }
.ig__dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.55); }
.ig__dots i.on { background: #fff; }
.ig__cta { display: flex; justify-content: space-between; padding: 0.7rem 0.9rem; background: #F3EEE6; font-size: 0.86rem; font-weight: 600; color: var(--walnut); }
.ig__cap { margin: 0; padding: 0.7rem 0.9rem 1rem; font-size: 0.84rem; line-height: 1.45; }
.pin { position: relative; margin: 0; }
.pin img { height: auto; aspect-ratio: 4 / 5.6; border-radius: 18px; }
.pin__save { position: absolute; right: 12px; top: 12px; padding: 0.55rem 1rem; border-radius: 999px; background: #E60023; color: #fff; font: 700 0.86rem Arial, sans-serif; }
.pin__t { margin: 0.7rem 0 0.3rem; font: 600 0.95rem/1.3 Arial, sans-serif; }
.pin__by { display: flex; align-items: center; gap: 0.5rem; margin: 0; font: 0.8rem Arial, sans-serif; color: #555; }
.pin__by .ig__av { width: 24px; height: 24px; font-size: 0.7rem; }
.gad { padding: 1.2rem 1.3rem; background: #fff; border-radius: 12px; font-family: Arial, sans-serif; }
.gad__q { margin: 0 0 0.9rem; padding: 0.55rem 0.9rem; border: 1px solid #DFE1E5; border-radius: 999px; color: #3C4043; font-size: 0.86rem; }
.gad__q span { color: #9AA0A6; margin-right: 0.4rem; }
.gad__sp { margin: 0; font-size: 0.74rem; font-weight: 700; color: #202124; }
.gad__url { margin: 0.1rem 0 0.2rem; font-size: 0.8rem; color: #202124; }
.gad__t { margin: 0 0 0.3rem; font-weight: 400; font-size: 1.1rem; line-height: 1.3; color: #1A0DAB; }
.gad__d { margin: 0; font-size: 0.86rem; line-height: 1.5; color: #4D5156; }
.look { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 1rem; align-items: center; padding: 0.9rem; background: var(--char); color: var(--stone); border-radius: 12px; }
.look img { height: auto; aspect-ratio: 4 / 5; border-radius: 999px 999px 0 0; }
.look .kicker { margin: 0; font-size: 0.72rem; color: #E8A77B; }
.look__t { margin: 0.2rem 0; font-family: var(--sign); font-size: 1.6rem; text-transform: uppercase; letter-spacing: 0.02em; color: #fff; }
.look p:last-child { margin: 0; font-size: 0.88rem; color: rgba(239, 231, 218, 0.7); }
.campaign__note { margin: 1.8rem 0 0; font-size: 0.82rem; color: var(--muted); }

.exit { position: relative; overflow: hidden; isolation: isolate; }
.exit__bg { position: absolute; inset: 0; z-index: -1; opacity: 0.28; object-position: 50% 60%; }
.exit-sign { color: #fff; }

/* Lookbook pop-up */
.pop { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 1rem; background: rgba(36, 30, 24, 0.6); backdrop-filter: blur(4px); animation: popIn 400ms var(--ease); }
.pop[hidden] { display: none; }
@keyframes popIn { from { opacity: 0; } }
.pop__card { position: relative; display: grid; grid-template-columns: 0.85fr 1.15fr; width: min(760px, 100%); max-height: calc(100svh - 2rem); overflow: auto; background: var(--stone); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.6); }
.pop__pic { margin: 0; min-height: 100%; }
.pop__body { padding: clamp(1.4rem, 3vw, 2.4rem); }
.pop__body .kicker { margin: 0; }
.pop__body h2 { font-size: clamp(2.2rem, 4vw, 3.2rem); margin: 0.5rem 0 0.8rem; }
.pop__body > p { color: var(--muted); margin: 0 0 1.3rem; }
.pop__form { display: grid; gap: 0.7rem; }
.pop__form input[type=email] { min-height: 52px; padding: 0 1rem; border: 1px solid var(--line); background: #fff; font-size: 16px; }
.pop__form input[type=email]:focus { outline: none; border-color: var(--signal); }
.pop__consent { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.84rem; color: var(--muted); }
.pop__consent input { margin-top: 0.2rem; accent-color: var(--signal); }
.pop__err { margin: 0; min-height: 1.1em; font-size: 0.84rem; color: #A3361A; }
.pop__btn { border: 0; cursor: pointer; justify-content: center; }
.pop__x { position: absolute; top: 0.6rem; right: 0.6rem; z-index: 2; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(239, 231, 218, 0.92); font-size: 1.5rem; line-height: 1; cursor: pointer; }

@media (max-width: 900px) {
  .intro { height: 190svh; }
  .portal__copy { left: var(--pad); right: var(--pad); top: 1.5rem; bottom: auto; }
  .portal__copy h1 { font-size: clamp(3.6rem, 17vw, 5.5rem); }
  .portal__copy .lede { font-size: 1rem; }
  .portal__hint { display: none; }
  .portal__win { right: calc(var(--pad) * (1 - var(--p))); width: calc(100vw - 2 * var(--pad) * (1 - var(--p))); height: calc(52svh + 48svh * var(--p)); border-radius: calc((1 - var(--p)) * 46vw) calc((1 - var(--p)) * 46vw) 0 0; }
  .portal__cap { bottom: 76px; }
  .daylight, .campaign__head { grid-template-columns: 1fr; }
  .daylight__view { order: -1; }
  .mats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ads { grid-template-columns: 1fr; }
  .room__inside { width: 34%; }
  .pop__card { grid-template-columns: 1fr; }
  .pop__pic { height: 160px; min-height: 0; }
  .pop__pic img { object-position: 50% 70%; }
}
@media (prefers-reduced-motion: reduce) {
  .intro { height: auto; }
  .portal { position: relative; }
}
