/* A House in Bali — homepage design system.
   Limestone daylight palette, terracotta as the single accent, editorial serif + clean sans + spec mono. */
/* Metric-matched fallbacks so the swap to the web fonts does not reflow the display type. */
@font-face { font-family: "Fraunces Fallback"; src: local("Georgia"), local("Times New Roman"); size-adjust: 104%; }
@font-face { font-family: "Manrope Fallback"; src: local("Arial"), local("Helvetica"); size-adjust: 103%; }
:root {
  --limestone: #f4f0e9;
  --bone: #ebe5da;
  --sand: #d9d0c1;
  --ink: #1b1c1a;
  --ink-soft: #3a3b37;
  --mute: #6f6b63;
  --terracotta: #b34732;
  --terracotta-deep: #93371f;
  --leaf: #2f5e3a;
  --line: rgba(27, 28, 26, 0.14);
  --line-light: rgba(255, 255, 255, 0.4);
  --serif: "Fraunces", "Fraunces Fallback", Georgia, "Times New Roman", serif;
  --sans: "Manrope", "Manrope Fallback", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Manrope", "Manrope Fallback", ui-sans-serif, sans-serif;   /* labels: tracked caps, not a code face */
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --gutter: clamp(18px, 4.2vw, 64px);
  --header-h: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; background: var(--limestone); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--limestone);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; padding: 10px 14px; background: var(--ink); color: var(--limestone); transform: translateY(-160%); transition: transform 0.2s var(--ease); }
.skip-link:focus { transform: none; }

.mono { font-family: var(--mono); font-weight: 600; font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; }
.display { font-family: var(--serif); font-weight: 520; font-optical-sizing: auto; letter-spacing: -0.022em; line-height: 1.0; margin: 0; }
.display em { font-weight: 400; }
.lede { font-size: clamp(16px, 1.25vw, 18.5px); line-height: 1.6; color: var(--ink-soft); max-width: 46ch; }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px;
  font-size: 14px; font-weight: 500; text-decoration: none; border: 1px solid var(--ink);
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: var(--limestone); }
.btn-dark:hover { background: var(--terracotta); border-color: var(--terracotta); }
.btn-ghost { background: rgba(244, 240, 233, 0.66); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-outline-light { color: #fff; border-color: rgba(255, 255, 255, 0.8); background: rgba(255, 255, 255, 0.06); }
.text-link { display: inline-flex; gap: 8px; align-items: center; font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* ------------------------------------------------------------------ header */
.site-header {
  position: fixed; z-index: 40; top: 0; left: 0; right: 0; height: var(--header-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding: 0 var(--gutter);
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(244, 240, 233, 0.9), rgba(244, 240, 233, 0));
}
.site-header.is-scrolled { background: rgba(244, 240, 233, 0.9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
/* menu open: the header joins the sheet below it, and the page behind stops scrolling */
.site-header:has(.menu-toggle[aria-expanded="true"]) { background: var(--limestone); border-bottom-color: var(--line); }
html:has(.menu-toggle[aria-expanded="true"]) { overflow: hidden; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; justify-self: start; }
.brand img { width: 30px; height: auto; }
/* Wordmark: "Brescia Stone" with a small red script "Bali", as the brand is written. */
.brand-word { position: relative; font-family: var(--serif); font-weight: 600; font-size: 21px; letter-spacing: -0.01em; line-height: 1; white-space: nowrap; padding-bottom: 10px; margin-right: 36px; }
.brand-word em { position: absolute; right: -38px; bottom: -8px; font-family: Allura, "Brush Script MT", cursive; font-style: normal; font-weight: 400; font-size: 25px; letter-spacing: 0; color: var(--terracotta); transform: rotate(-6deg); }
.desktop-nav { display: flex; gap: clamp(16px, 2vw, 30px); font-size: 13.5px; }
.desktop-nav a { text-decoration: none; opacity: 0.78; transition: opacity 0.2s; }
.desktop-nav a:hover, .desktop-nav a[aria-current="page"] { opacity: 1; }
.nav-cta { justify-self: end; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; font-size: 13px; font-weight: 500; text-decoration: none; border: 1px solid var(--ink); background: rgba(244, 240, 233, 0.6); }
.nav-cta:hover { background: var(--ink); color: var(--limestone); }
.menu-toggle { display: none; justify-self: end; width: 46px; height: 46px; border: 1px solid var(--line); background: rgba(244, 240, 233, 0.8); position: relative; }
.menu-toggle span:not(.sr-only) { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--ink); transition: transform 0.3s var(--ease); }
.menu-toggle span:nth-child(1) { top: 18px; }
.menu-toggle span:nth-child(2) { top: 26px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
.mobile-menu { position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; height: calc(100dvh - var(--header-h)); background: var(--limestone); padding: 8px var(--gutter) max(16px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; counter-reset: menu; }
.mobile-menu[hidden] { display: none; }
/* each page is a numbered line; they rise in one after another when the menu opens */
.mobile-menu > a { counter-increment: menu; flex: none; display: flex; align-items: center; gap: 14px; font-family: var(--serif); font-size: clamp(26px, min(8vw, 4.4dvh), 36px); line-height: 1.05; letter-spacing: -0.01em; text-decoration: none; color: var(--ink);
  min-height: 52px; padding: clamp(8px, 1.5dvh, 14px) 0; -webkit-tap-highlight-color: transparent; border-bottom: 1px solid var(--line); animation: menu-in 0.7s var(--ease) both; }
.mobile-menu > a::before { content: counter(menu, decimal-leading-zero); flex: none; width: 24px; font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.12em; color: var(--mute); transform: translateY(1px); }
.mobile-menu > a[aria-current="page"] { color: var(--terracotta); font-style: italic; }
.mobile-menu > a[aria-current="page"]::before { color: var(--terracotta); font-style: normal; }
.mobile-menu > a:active { color: var(--terracotta); }
.mobile-menu > a:nth-child(2) { animation-delay: 0.04s; } .mobile-menu > a:nth-child(3) { animation-delay: 0.08s; } .mobile-menu > a:nth-child(4) { animation-delay: 0.12s; }
.mobile-menu > a:nth-child(5) { animation-delay: 0.16s; } .mobile-menu > a:nth-child(6) { animation-delay: 0.2s; } .mobile-menu > a:nth-child(7) { animation-delay: 0.24s; }
.mobile-menu > a.menu-wa { counter-increment: none; margin-top: auto; flex: none; justify-content: center; min-height: 54px; padding: 16px; border: 0; background: var(--ink); color: var(--limestone); font-family: var(--sans); font-size: 15px; font-weight: 700; letter-spacing: 0.02em; animation-delay: 0.32s; }
.mobile-menu > a.menu-wa::before { content: none; }
/* the Stone Studio as a card with a slab behind it */
.mobile-menu > a.menu-studio { counter-increment: none; position: relative; isolation: isolate; overflow: hidden; display: grid; gap: 2px; margin: clamp(12px, 2.2dvh, 20px) 0 12px; padding: clamp(14px, 2dvh, 18px) 54px clamp(14px, 2dvh, 18px) 18px; border: 0; color: #fff; font-size: clamp(22px, 3.2dvh, 26px); animation-delay: 0.28s;
  background: linear-gradient(100deg, rgba(20, 18, 16, 0.86) 30%, rgba(20, 18, 16, 0.25)), url(./assets/magrade/golden-phoenix-512.webp) center / cover; }
.mobile-menu > a.menu-studio::before { content: "New · Stone Studio"; width: auto; transform: none; color: #e9b89f; font-size: 10px; }
.mobile-menu > a.menu-studio small { font-family: var(--sans); font-size: 13px; line-height: 1.4; color: rgba(255, 255, 255, 0.78); }
.mobile-menu > a.menu-studio::after { content: "→"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-family: var(--sans); font-size: 22px; }
@keyframes menu-in { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) { .mobile-menu > a { animation: none; } }

/* inquiry form: choices as chips (form-chips.js); the select stays for the form and for no-JS */
.inquiry-form select.is-chipped { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); border: 0; white-space: nowrap; }
.form-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 0 4px; }
.form-chips button { min-height: 42px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink-soft); font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.2s var(--ease); }
.form-chips button:hover { border-color: var(--ink); color: var(--ink); }
.form-chips button:active { transform: scale(0.97); }
.form-chips button[aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: var(--limestone); }
.form-chips button[aria-checked="true"]::before { content: "✓"; margin-right: 7px; color: #e9b89f; }
.form-chips button:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 2px; }
.form-chips.is-missing button { border-color: var(--terracotta); animation: chips-nudge 0.4s var(--ease); }
@keyframes chips-nudge { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; }
  .desktop-nav, .nav-cta { display: none; }
  .menu-toggle { display: block; }
}

/* ------------------------------------------------------------------ rooms (shared) */
.room { position: relative; min-height: 100svh; overflow: hidden; background: var(--sand); isolation: isolate; }
.room-media { position: absolute; inset: 0; z-index: -2; }
.room-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.9s var(--ease); }
.room-media img[data-variant]:not(.is-active) { opacity: 0; }
.room-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 16, 10, 0) 45%, rgba(20, 16, 10, 0.46) 100%); }
.room-light { position: absolute; inset: 0; z-index: -1; pointer-events: none; mix-blend-mode: screen; opacity: 0.8;
  background: linear-gradient(104deg, transparent 32%, rgba(255, 238, 204, 0.16) 46%, transparent 60%); background-size: 320% 100%;
  animation: room-sun 11s ease-in-out infinite alternate; }
@keyframes room-sun { from { background-position: 100% 0; } to { background-position: 0 0; } }
.room-drift { animation: room-drift 30s ease-in-out infinite alternate; transform-origin: 50% 55%; }
@keyframes room-drift { from { transform: scale(1.04); } to { transform: scale(1.1) translate(-1%, -0.6%); } }

.room-caption { position: absolute; left: var(--gutter); bottom: clamp(26px, 7vh, 72px); right: var(--gutter); max-width: 640px; color: #fff; text-shadow: 0 1px 26px rgba(20, 14, 8, 0.36); }
.room-caption .display { font-size: clamp(46px, 7vw, 108px); margin: 0.14em 0 0.22em; }
.room-caption p { font-size: clamp(15px, 1.2vw, 17.5px); line-height: 1.55; max-width: 44ch; margin: 0; opacity: 0.95; }
.room-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 20px; font-family: var(--mono); font-weight: 600; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.9; }

/* hotspot */
.hotspot { position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 0; background: none; border: 0; color: #fff; text-align: left; }
.hotspot-dot { position: relative; flex: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.92); background: rgba(255, 255, 255, 0.16); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); display: grid; place-items: center; transition: transform 0.35s var(--ease); }
.hotspot-dot::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #fff; }
.hotspot-dot::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid #fff; animation: ping 2.6s var(--ease) infinite; }
@keyframes ping { from { transform: scale(1); opacity: 0.8; } to { transform: scale(2.1); opacity: 0; } }
.hotspot:hover .hotspot-dot { transform: scale(1.08); }
.hotspot-label { font-family: var(--mono); font-weight: 600; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45); }
.hotspot-label b { display: block; font-family: var(--serif); font-weight: 600; letter-spacing: -0.02em; font-size: 21px; letter-spacing: 0; text-transform: none; }

/* stone panel */
.stone-panel {
  position: absolute; z-index: 5; top: calc(var(--header-h) + 16px); right: var(--gutter); width: min(380px, calc(100% - 2 * var(--gutter)));
  max-height: calc(100% - var(--header-h) - 40px); overflow: auto;
  background: rgba(244, 240, 233, 0.95); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid var(--line); padding: 22px 22px 20px; color: var(--ink);
  transform: translateX(calc(100% + 80px)); visibility: hidden; transition: transform 0.7s var(--ease), visibility 0s linear 0.7s;
}
.room.is-panel-open .stone-panel { transform: none; visibility: visible; transition: transform 0.7s var(--ease); }
.stone-panel h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.02em; font-size: 34px; line-height: 1; margin: 8px 0 6px; }
.stone-panel .close { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border: 0; background: none; font-size: 22px; color: var(--mute); }
.prov { display: inline-flex; gap: 6px; font-family: var(--mono); font-weight: 600; font-size: 10.5px; letter-spacing: 0.04em; padding: 4px 8px; border: 1px solid rgba(47, 94, 58, 0.35); color: var(--leaf); }
.chips { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 18px 0 16px; }
.chip { position: relative; aspect-ratio: 1; padding: 0; border: 1px solid var(--line); background-size: cover; background-position: center; transition: transform 0.25s var(--ease); }
.chip:hover { transform: translateY(-2px); }
.chip[aria-pressed="true"] { outline: 2px solid var(--ink); outline-offset: 2px; }
.specs { display: grid; grid-template-columns: auto 1fr; gap: 7px 14px; margin: 0 0 18px; font-size: 13.5px; border-top: 1px solid var(--line); padding-top: 14px; }
.specs dt { font-family: var(--mono); font-weight: 600; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); padding-top: 2px; }
.specs dd { margin: 0; }
.panel-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.panel-actions .btn { min-height: 44px; font-size: 13px; padding: 0 15px; }
.panel-note { font-size: 12px; color: var(--mute); margin: 14px 0 0; line-height: 1.5; }

/* Phones: the room becomes a 4:5 photograph cropped on its focal point, the story sits beneath it,
   and the stone control is a plain button instead of a positional hotspot. */
@media (max-width: 760px) {
  .room:not(.hero) { min-height: 0; background: var(--limestone); display: flex; flex-direction: column; }
  .room:not(.hero) .room-media { position: relative; inset: auto; aspect-ratio: 4 / 5; overflow: hidden; }
  .room:not(.hero) .room-media::after { display: none; }
  .room:not(.hero) .room-light { bottom: auto; aspect-ratio: 4 / 5; }
  .room-media img { object-position: var(--focus, 50%) 50%; }
  .room:not(.hero) .room-caption { position: relative; left: auto; right: auto; bottom: auto; color: var(--ink); text-shadow: none; padding: 26px var(--gutter) 46px; }
  .room-caption .display { font-size: clamp(40px, 12vw, 60px); }
  .room:not(.hero) .room-caption p { color: var(--ink-soft); }
  .room:not(.hero) .room-meta { color: var(--mute); }
  .hotspot { left: var(--gutter) !important; right: var(--gutter); top: auto !important; bottom: 14px; justify-content: center; gap: 10px;
    min-height: 48px; background: rgba(244, 240, 233, 0.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--ink); border: 1px solid var(--line); }
  .room:not(.hero) .hotspot { top: calc(min(125vw, 9999px) - 62px) !important; bottom: auto; }
  .hotspot-dot { width: 22px; height: 22px; border-color: var(--ink); background: none; }
  .hotspot-dot::before { width: 6px; height: 6px; background: var(--terracotta); }
  .hotspot-dot::after { display: none; }
  .hotspot-label { text-shadow: none; display: flex; gap: 8px; align-items: baseline; font-size: 10.5px; }
  .hotspot-label b { font-size: 17px; }
  .hero .hotspot { bottom: auto; top: calc(var(--header-h) + 12px) !important; }
  .stone-panel { position: fixed; top: auto; bottom: 0; right: 0; left: 0; width: auto; max-height: 82svh; transform: translateY(102%); border-width: 1px 0 0; z-index: 60; box-shadow: 0 -20px 40px rgba(27, 28, 26, 0.12); }
  .room.is-panel-open .stone-panel { transform: none; }
  .hero { min-height: 100svh; }
  .hero .room-media img { object-position: var(--focus, 50%) 50%; }
}

/* ------------------------------------------------------------------ hero (room 01) */
.hero .room-caption { bottom: clamp(30px, 9vh, 96px); color: var(--ink); text-shadow: none; max-width: 720px; }
.hero .room-caption::before { content: ""; position: absolute; z-index: -1; inset: -90px -120px -60px -90px;
  background: radial-gradient(58% 60% at 34% 62%, rgba(244, 240, 233, 0.9), rgba(244, 240, 233, 0) 72%); }
.hero .room-caption p { color: var(--ink-soft); }
.hero h1.display { font-size: clamp(46px, 6.6vw, 104px); }
.hero h1 em { font-style: italic; color: var(--terracotta); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hero .room-media::after { background: linear-gradient(180deg, rgba(244, 240, 233, 0) 50%, rgba(244, 240, 233, 0.35) 100%); }
.hero-scroll { position: absolute; right: var(--gutter); bottom: clamp(30px, 9vh, 96px); display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--ink); }
.hero-scroll i { width: 1px; height: 56px; background: linear-gradient(var(--ink), transparent); animation: scroll-cue 2.4s var(--ease) infinite; transform-origin: top; }
@keyframes scroll-cue { from { transform: scaleY(0); } 60% { transform: scaleY(1); } to { transform: scaleY(1); opacity: 0; } }
@media (max-width: 760px) { .hero-scroll { display: none; } }

/* ------------------------------------------------------------------ house index */
.house-intro { padding: clamp(80px, 12vw, 160px) var(--gutter) clamp(60px, 8vw, 110px); display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 90px); align-items: end; }
.house-intro .display { font-size: clamp(44px, 6vw, 96px); }
.house-intro .display em { font-style: italic; color: var(--terracotta); }
.room-index { list-style: none; margin: 34px 0 0; padding: 0; border-top: 1px solid var(--line); }
.room-index a { display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; align-items: baseline; padding: 15px 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding 0.35s var(--ease), color 0.35s; }
.room-index a:hover { padding-left: 10px; color: var(--terracotta); }
.room-index span:first-child { font-family: var(--mono); font-weight: 600; font-size: 11px; color: var(--mute); }
.room-index strong { font-family: var(--serif); font-weight: 600; letter-spacing: -0.02em; font-size: 27px; }
.room-index em { font-style: normal; font-family: var(--mono); font-weight: 600; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); }
.disclaimer { font-size: 12.5px; color: var(--mute); margin-top: 18px; max-width: 52ch; }
@media (max-width: 860px) { .house-intro { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ light lab */
.lab { padding: clamp(90px, 11vw, 150px) var(--gutter); background: var(--bone); }
.lab-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 4vw, 70px); align-items: end; margin-bottom: 36px; }
.lab-head .display { font-size: clamp(42px, 5.6vw, 88px); }
.lab-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; border: 1px solid var(--line); background: #fbf9f5; }
.lab-view { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--sand); }
.lab-view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; will-change: opacity; }
.lab-clock { position: absolute; left: 16px; top: 14px; z-index: 2; background: rgba(244, 240, 233, 0.92); padding: 6px 10px; }
.lab-side { padding: 26px; display: flex; flex-direction: column; gap: 20px; border-left: 1px solid var(--line); }
.lab-side h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.02em; font-size: 36px; line-height: 1; margin: 8px 0 0; }
.lab input[type="range"] { width: 100%; accent-color: var(--terracotta); margin: 10px 0 4px; }
.ticks { display: flex; justify-content: space-between; font-family: var(--mono); font-weight: 600; font-size: 10.5px; color: var(--mute); }
@media (max-width: 980px) { .lab-head, .lab-grid { grid-template-columns: 1fr; } .lab-side { border-left: 0; border-top: 1px solid var(--line); } }

/* ------------------------------------------------------------------ directions + projects */
.section { padding: clamp(90px, 11vw, 150px) var(--gutter); }
.section-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 4vw, 70px); align-items: end; margin-bottom: 40px; }
.section-head .display { font-size: clamp(40px, 5.2vw, 80px); }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }
.directions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.direction { position: relative; display: block; overflow: hidden; text-decoration: none; aspect-ratio: 3 / 4; background: var(--sand); }
.direction img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.direction:hover img { transform: scale(1.06); }
.direction span { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px; color: #fff; background: linear-gradient(180deg, transparent, rgba(15, 12, 8, 0.6)); }
.direction strong { display: block; font-family: var(--serif); font-weight: 600; letter-spacing: -0.02em; font-size: 34px; line-height: 1; }
.direction small { font-family: var(--mono); font-weight: 600; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; }
@media (max-width: 900px) { .directions { grid-template-columns: repeat(2, 1fr); } }

.project-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 30%); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; scrollbar-width: thin; }
.project-card { scroll-snap-align: start; }
.project-card a { display: block; text-decoration: none; }
.project-card figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand); }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.project-card a:hover img { transform: scale(1.05); }
.project-card h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.02em; font-size: 25px; margin: 14px 0 2px; }
.project-card p { margin: 0; font-family: var(--mono); font-weight: 600; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); }
@media (max-width: 760px) { .project-rail { grid-auto-columns: 78%; } }

/* ------------------------------------------------------------------ yard */
.yard { position: relative; min-height: 100svh; color: #fff; display: grid; align-items: end; overflow: hidden; isolation: isolate; }
.yard-media { position: absolute; inset: 0; z-index: -1; }
.yard-media img { width: 100%; height: 100%; object-fit: cover; }
.yard-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 9, 7, 0.05) 30%, rgba(10, 9, 7, 0.62)); }
.yard-inner { padding: 0 var(--gutter) clamp(36px, 8vh, 90px); display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end; }
.yard .display { font-size: clamp(44px, 6.4vw, 100px); }
.yard p { font-size: 16.5px; line-height: 1.6; color: rgba(255, 255, 255, 0.9); max-width: 46ch; }
.yard-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.yard-strip img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border: 1px solid var(--line-light); }
.yard address { font-style: normal; font-family: var(--mono); font-weight: 600; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.8); margin-top: 14px; }
@media (max-width: 860px) { .yard-inner { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ inquiry (kept light: the site stays in daylight) */
.inquiry { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 110px); padding: clamp(90px, 11vw, 150px) var(--gutter); background: var(--bone); color: var(--ink); border-top: 1px solid var(--line); }
.inquiry .display { font-size: clamp(44px, 6vw, 92px); }
.inquiry-form { display: grid; gap: 8px; align-content: start; background: #fbf9f5; border: 1px solid var(--line); padding: clamp(22px, 3vw, 36px); }
.inquiry-form label { font-family: var(--mono); font-weight: 600; font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); margin-top: 12px; }
.inquiry-form input, .inquiry-form select, .inquiry-form textarea { width: 100%; min-height: 50px; padding: 12px 0; background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.inquiry-form textarea { resize: vertical; min-height: 90px; }
.inquiry-form input:focus, .inquiry-form select:focus, .inquiry-form textarea:focus { outline: none; border-bottom-color: var(--terracotta); }
.inquiry-form .btn { margin-top: 22px; justify-self: start; background: var(--ink); color: var(--limestone); }
.inquiry-form .btn:hover { background: var(--terracotta); border-color: var(--terracotta); }
.form-note { font-size: 12.5px; color: var(--mute); margin: 8px 0 0; }
@media (max-width: 860px) { .inquiry { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ footer */
.site-footer { background: #141513; color: rgba(244, 240, 233, 0.82); padding: 56px var(--gutter) 34px; }
.footer-top { display: flex; gap: 22px; align-items: center; padding-bottom: 28px; border-bottom: 1px solid rgba(244, 240, 233, 0.14); }
.footer-top img { width: 54px; height: auto; }
.footer-top p { font-family: var(--serif); font-size: 26px; margin: 0; color: var(--limestone); max-width: 30ch; line-height: 1.15; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 14px 28px; padding-top: 22px; font-size: 13px; }
.footer-bottom a { text-decoration: none; opacity: 0.85; }
.footer-bottom a:hover { opacity: 1; color: #fff; }

/* ------------------------------------------------------------------ reveal (driven by script.js) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay { transition-delay: 0.12s !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .room-light, .room-drift, .hotspot-dot::after, .hero-scroll i { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .room-media img, .stone-panel { transition: none; }
}

/* Partners: two rows of stone plaques gliding in opposite directions across a plane tilted in depth.
   Hovering a row stops it and lifts the plaque under the pointer. Compact: about 260px tall. */
.partners { display: grid; grid-template-columns: minmax(220px, 0.32fr) 1fr; align-items: center; gap: clamp(20px, 4vw, 60px);
  padding: clamp(44px, 6vw, 80px) 0 clamp(36px, 5vw, 60px); border-bottom: 1px solid rgba(244, 240, 233, 0.12); margin-bottom: 30px; overflow: hidden; }
.partners-head .mono { color: #c8a165; }
.partners-head .display { font-size: clamp(30px, 3.2vw, 48px); color: var(--limestone); margin: 10px 0 8px; }
.partners-head .display em { font-style: italic; color: #e2b27c; }
.partners-head p { margin: 0; font-size: 14.5px; line-height: 1.55; color: rgba(244, 240, 233, 0.62); max-width: 30ch; }
.partners-stage { perspective: 1100px; perspective-origin: 30% 50%; min-width: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.partners-band { display: grid; gap: 14px; padding: 14px 0; transform: rotateY(-14deg) rotateX(8deg); transform-style: preserve-3d; transform-origin: 0 50%; }
.partners-row { display: flex; gap: 14px; width: max-content; margin: 0; padding: 0; list-style: none; transform-style: preserve-3d;
  animation: partners-slide 44s linear infinite; }
.partners-row-b { animation-direction: reverse; animation-duration: 52s; }
.partners-row:hover { animation-play-state: paused; }
@keyframes partners-slide { to { transform: translateX(calc(-50% - 7px)); } }
.partners-row li { flex: none; transform-style: preserve-3d; }
.plaque { position: relative; display: flex; align-items: center; justify-content: center; width: 200px; height: 96px; padding: 18px 24px; overflow: hidden; border-radius: 3px;
  background: url("./assets/magrade/statuario-classico-512.webp") center / 320% auto, #f1efea; border: 1px solid rgba(200, 161, 101, 0.55);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 16px 30px -16px rgba(0, 0, 0, 0.85);
  transition: transform 0.5s var(--ease), border-color 0.4s var(--ease), box-shadow 0.5s var(--ease); }
.plaque img { display: block; height: 100%; width: 100%; object-fit: contain; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.2)); }
.plaque-nero { background: url("./assets/partners/nero-plaque.webp") center / cover, #141414; }
.plaque-nero img { filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6)); }
.plaque::after { content: ""; position: absolute; inset: -60%; background: linear-gradient(115deg, transparent 44%, rgba(255, 244, 222, 0.35) 50%, transparent 56%);
  transform: translateX(-50%); pointer-events: none; transition: transform 0.9s var(--ease); }
.partners-row li:hover .plaque { transform: translateZ(30px) translateY(-4px); border-color: #e2b27c; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 28px 40px -18px rgba(0, 0, 0, 0.95); }
.partners-row li:hover .plaque::after { transform: translateX(50%); }
@media (max-width: 860px) {
  .partners { grid-template-columns: 1fr; gap: 18px; }
  .partners-head { text-align: left; }
  .partners-band { gap: 10px; transform: rotateY(-8deg) rotateX(6deg); }
  .partners-row { gap: 10px; animation-duration: 36s; }
  .partners-row-b { animation-duration: 42s; }
  @keyframes partners-slide { to { transform: translateX(calc(-50% - 5px)); } }
  .plaque { width: 132px; height: 64px; padding: 12px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .partners-band { transform: none; }
  .partners-row { animation: none; flex-wrap: wrap; width: auto; }
  .partners-row li[aria-hidden] { display: none; }
}

/* After the film: the plain-language guide. Intro and facts, stone swatches that open each family,
   and the questions architects ask, unfolding one at a time. */
.stone-guide { display: grid; grid-template-columns: 1.05fr 1fr; grid-template-areas: "intro faq" "links links"; gap: clamp(28px, 4vw, 64px) clamp(28px, 5vw, 90px);
  padding: clamp(60px, 8vw, 120px) var(--gutter); background:
  radial-gradient(70% 60% at 0% 0%, rgba(200, 161, 101, 0.12), transparent 70%), var(--limestone); }
.stone-guide-intro { grid-area: intro; }
.stone-guide .mono { color: var(--terracotta); }
.stone-guide .display { font-size: clamp(34px, 4.2vw, 62px); margin: 12px 0 18px; }
.stone-guide .display em { font-style: italic; color: var(--terracotta); }
.stone-guide-intro p { font-size: 16.5px; line-height: 1.7; color: var(--ink-soft); max-width: 54ch; margin: 0; }
.stone-guide-facts { display: flex; gap: clamp(20px, 3vw, 44px); margin: 28px 0 0; padding: 22px 0 0; border-top: 1px solid rgba(27, 28, 26, 0.14); }
.stone-guide-facts dt { font-family: var(--mono); font-weight: 600; font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute); }
.stone-guide-facts dd { margin: 6px 0 0; font-family: var(--serif); font-size: clamp(26px, 2.4vw, 36px); line-height: 1; color: var(--ink); }

.stone-guide-links { grid-area: links; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.swatch { position: relative; display: flex; align-items: center; gap: 14px; padding: 12px 16px 12px 12px; text-decoration: none; color: var(--ink);
  background: rgba(255, 255, 255, 0.55); border: 1px solid rgba(27, 28, 26, 0.1); border-radius: 999px; overflow: hidden; isolation: isolate;
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease), border-color 0.4s var(--ease), color 0.4s var(--ease); }
.swatch::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); transform: translateY(101%); transition: transform 0.6s var(--ease); }
.swatch img { flex: none; width: 56px; height: 56px; object-fit: cover; border-radius: 50%;
  box-shadow: 0 10px 22px -12px rgba(30, 22, 12, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.3); transition: transform 0.9s var(--ease); }
.swatch strong { display: block; font-family: var(--serif); font-weight: 520; font-size: clamp(17px, 1.3vw, 20px); line-height: 1.1; }
.swatch small { display: block; margin-top: 4px; font-size: 12.5px; color: var(--mute); transition: color 0.4s var(--ease); }
.swatch span { min-width: 0; flex: 1; }
.swatch i { position: relative; flex: none; margin-left: auto; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; font-style: normal; font-size: 13px;
  background: var(--limestone); color: var(--ink); opacity: 0; transform: scale(0.6); transition: opacity 0.4s var(--ease), transform 0.5s var(--ease), background-color 0.4s; }
.swatch:hover, .swatch:focus-visible { transform: translateY(-6px); color: var(--limestone); border-color: var(--ink); box-shadow: 0 26px 40px -24px rgba(30, 22, 12, 0.55); }
.swatch:hover::before, .swatch:focus-visible::before { transform: none; }
.swatch:hover img, .swatch:focus-visible img { transform: scale(1.06) rotate(-8deg); }
.swatch:hover small, .swatch:focus-visible small { color: rgba(244, 240, 233, 0.7); }
.swatch:hover strong, .swatch:focus-visible strong { color: var(--limestone); }
.swatch:hover i, .swatch:focus-visible i { opacity: 1; transform: none; background: var(--terracotta); color: #fff; }

.stone-guide-faq { grid-area: faq; align-self: end; }
.stone-guide-faq > .mono { display: block; margin-bottom: 10px; }
.stone-guide-faq details { position: relative; border-top: 1px solid rgba(27, 28, 26, 0.14); }
.stone-guide-faq details:last-of-type { border-bottom: 1px solid rgba(27, 28, 26, 0.14); }
.stone-guide-faq details::before { content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 100%; background: var(--terracotta); transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease); }
.stone-guide-faq details[open]::before { transform: scaleX(1); }
.stone-guide-faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 38px 1fr 28px; align-items: center; gap: 8px; padding: 20px 0;
  font-family: var(--serif); font-size: clamp(18px, 1.5vw, 22px); line-height: 1.25; transition: color 0.3s var(--ease); }
.stone-guide-faq summary::-webkit-details-marker { display: none; }
.stone-guide-faq summary b { font-family: var(--mono); font-weight: 600; font-size: 11px; letter-spacing: 0.12em; color: var(--mute); }
.stone-guide-faq summary::after { content: ""; justify-self: end; width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(27, 28, 26, 0.2);
  background: linear-gradient(currentColor, currentColor) center / 10px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 10px no-repeat;
  transition: transform 0.5s var(--ease), background-color 0.3s, border-color 0.3s, color 0.3s; }
.stone-guide-faq summary:hover { color: var(--terracotta); }
.stone-guide-faq details[open] summary::after { transform: rotate(135deg); background-color: var(--terracotta); border-color: var(--terracotta); color: #fff; }
.faq-a { overflow: hidden; transition: height 0.5s var(--ease); }
.faq-a p { margin: 0 0 20px 46px; font-size: 15px; line-height: 1.65; color: var(--ink-soft); max-width: 58ch; }
.faq-a a { color: var(--ink); text-decoration-color: var(--terracotta); text-underline-offset: 3px; }

@media (max-width: 1100px) { .stone-guide-links { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) {
  .stone-guide { grid-template-columns: 1fr; grid-template-areas: "intro" "links" "faq"; padding: 52px 20px 44px; gap: 30px; }
  .stone-guide-intro p { font-size: 15px; }
  .stone-guide-facts { gap: 22px; }
  .stone-guide-links { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -20px; padding: 4px 20px 10px; scrollbar-width: none; }
  .stone-guide-links::-webkit-scrollbar { display: none; }
  .stone-guide-links { display: grid; grid-template-columns: 1fr 1fr; overflow: visible; margin: 0; padding: 0; gap: 8px; }
  .swatch small, .swatch i { display: none; }
  .swatch strong { font-size: 16px; }
  .swatch { padding: 8px 12px 8px 8px; gap: 12px; }
  .swatch img { width: 40px; height: 40px; }
  .swatch i { opacity: 1; transform: none; width: 26px; height: 26px; }
  .stone-guide-faq summary { font-size: 17px; padding: 16px 0; grid-template-columns: 32px 1fr 26px; }
  .faq-a p { margin-left: 40px; }
}
