/* Cinematic home page: a static temple photograph and studio navigation. */
:root {
  --opening-rail: clamp(190px, 15vw, 240px);
  --opening-height: clamp(640px, 100svh, 1080px);
}
body:has(main[data-page="home"]) .site-header {
  width: var(--opening-rail);
  height: var(--opening-height);
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 38px 30px 28px;
  border: 0;
  border-right: 1px solid #d8c8a314;
  background: linear-gradient(#171511f2, #0f0e0bf7), url('assets/images/window-patina.webp') center / 450px;
}
body:has(main[data-page="home"]) .site-header .brand {
  flex-direction: column;
  align-items: flex-start;
  gap: 17px;
}
body:has(main[data-page="home"]) .site-header .brand img { width: 94px; height: 70px; }
body:has(main[data-page="home"]) .site-header .brand > span {
  padding: 0;
  border: 0;
  font-size: 7px;
  color: #b7ad98;
  letter-spacing: 1px;
}
body:has(main[data-page="home"]) .desktop-nav {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
  margin: auto 0;
}
body:has(main[data-page="home"]) .desktop-nav a {
  padding: 9px 0;
  font-size: 12px;
  font-weight: 450;
  line-height: 1.7;
  color: #bfb8aa;
  transition: color .25s;
}
body:has(main[data-page="home"]) .desktop-nav a::after { display: none; }
body:has(main[data-page="home"]) .desktop-nav a:hover { color: #f5e9d3; }
body:has(main[data-page="home"]) .header-contact {
  display: flex;
  min-height: 44px;
  color: var(--gold);
  font-size: 11px;
}
body:has(main[data-page="home"]) .site-header .menu-toggle { display: none; }
.opening {
  position: relative;
  isolation: isolate;
  height: var(--opening-height);
  overflow: hidden;
  background: #100f0c;
}
.opening-scene {
  position: absolute;
  inset: 0 0 0 var(--opening-rail);
  z-index: -2;
  background: url('assets/images/temple-hero.webp') 70% center / cover no-repeat;
}
.opening::after {
  content: '';
  position: absolute;
  inset: 0 0 0 var(--opening-rail);
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(0deg, #0c0c0ae6, #0c0c0a05 37%, transparent 85%), linear-gradient(90deg, #08070538, transparent 55%);
}
.opening-project {
  position: absolute;
  left: calc(var(--opening-rail) + 48px);
  bottom: 58px;
  max-width: calc(100% - var(--opening-rail) - 150px);
}
.opening-project-title {
  display: inline-block;
  color: #eee8db;
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.02em;
}
.opening-project-subtitle { margin: 7px 0 18px; color: #b8ad97; font-size: 11px; line-height: 1.5; }
.opening-watch {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  padding: 6px 0;
  color: #d5bc8f;
  font-size: 11px;
  font-weight: 450;
  line-height: 1.5;
  transition: color .25s;
}
.opening-watch svg { width: 15px; height: 15px; }
.opening-watch:hover, .opening-project-title:hover { color: #ffebc6; }
@media (max-width: 1100px) and (min-width: 901px) {
  body:has(main[data-page="home"]) .site-header { padding-left: 25px; padding-right: 25px; }
  .opening-project { left: calc(var(--opening-rail) + 34px); }
}
@media (max-width: 900px) {
  :root { --opening-rail: 0px; --opening-height: clamp(600px, calc(100svh - 96px), 820px); }
  body:has(main[data-page="home"]) .site-header {
    width: 100%; height: 78px;
    flex-direction: row; align-items: center; gap: 20px;
    padding: 0 var(--gutter); border: 0;
    background: linear-gradient(#0c0b08b8, #0c0b0800);
  }
  body:has(main[data-page="home"]) .site-header .brand { flex-direction: row; align-items: center; gap: 15px; }
  body:has(main[data-page="home"]) .site-header .brand img { width: 72px; height: 56px; }
  body:has(main[data-page="home"]) .site-header .brand > span {
    border-left: 1px solid var(--line); padding-left: 15px; font-size: 6px; letter-spacing: 1px;
  }
  body:has(main[data-page="home"]) .desktop-nav,
  body:has(main[data-page="home"]) .header-contact { display: none; }
  body:has(main[data-page="home"]) .site-header .menu-toggle { display: block; margin-left: auto; }
  body:has(main[data-page="home"]) .mobile-menu { top: 78px; }
  .opening-scene { background-position: 72% center; }
  .opening::after { background: linear-gradient(0deg, #0c0c0ae6, #0c0c0a00 46%, #0c0b0814 100%); }
  .opening-project { left: var(--gutter); bottom: 48px; max-width: calc(100% - 44px); }
  .opening-project-title { font-size: 36px; }
}
@media (max-width: 380px) {
  .opening-project-title { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .opening-watch, .opening-project-title { transition: none; }
}
