/* Shared by the SE26 case page and its installation pages. */

:root {
  --bg: #000;
  --ink: #fff;
  --dim: rgba(255, 255, 255, 0.6);
  --faint: rgba(255, 255, 255, 0.34);
  --line: rgba(255, 255, 255, 0.13);
  --lime: #cafe03;
  --pad: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Alegreya", Georgia, serif;
  font-size: 20px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--lime); color: #000; }
a { color: var(--lime); }
img, video { display: block; width: 100%; height: 100%; object-fit: cover; }

.wrap { max-width: 1320px; margin: 0 auto; padding: 0 var(--pad); }

/* ------------------------------------------------------------ hero */

.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; }
.hero video { position: absolute; inset: 0; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,.2) 55%, rgba(0,0,0,.9) 100%);
}
.hero__top, .hero__text { position: absolute; left: 0; right: 0; z-index: 1; }
.hero__top { top: 0; padding-top: 28px; display: flex; justify-content: space-between; font-size: 18px; }
.hero__top a { color: var(--ink); text-decoration: none; font-weight: 700; }
.hero__top a.filmlink, .ihero .hero__top a.filmlink { margin-left: auto; font-weight: 400; font-style: italic; color: var(--lime); }
.hero__top, .ihero .hero__top { flex-wrap: wrap; row-gap: 6px; }
.hero__text { bottom: 0; padding-bottom: clamp(36px, 7vh, 72px); }
.kicker { color: var(--lime); font-style: italic; font-size: 22px; }
.hero h1 { font-size: clamp(64px, 12vw, 176px); line-height: .9; font-weight: 800; letter-spacing: -.02em; margin: 8px 0 18px; }
.hero p { font-size: clamp(22px, 2.4vw, 32px); line-height: 1.25; max-width: 780px; }

/* ------------------------------------------------------ fact strip */

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 32px 0; }
.facts dt { color: var(--faint); font-size: 15px; letter-spacing: .06em; text-transform: uppercase; }
.facts dd { font-size: 20px; line-height: 1.3; margin-top: 4px; }

.lead { font-size: clamp(26px, 2.8vw, 38px); line-height: 1.3; max-width: 980px; padding: clamp(56px, 9vh, 110px) 0; }
.lead em { color: var(--lime); }

/* -------------------------------------------------------- chapters */

.chapter { padding: clamp(40px, 6vh, 72px) 0; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: minmax(300px, 380px) 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.chapter h2 { font-size: clamp(38px, 3.6vw, 56px); line-height: .95; font-weight: 800; letter-spacing: -.01em; margin: 10px 0 20px; }
.chapter__body { font-size: 18px; line-height: 1.45; }
.chapter__body p + p { margin-top: .8em; }
.chapter__body p { color: #e8e8e8; }
.step { color: var(--dim); font-size: 17px; }
.step b { color: var(--lime); font-weight: 500; font-style: italic; }

.beliefs { list-style: none; margin-top: 1.2em; border-top: 1px solid var(--line); }
.beliefs li { padding: 8px 0; border-bottom: 1px solid var(--line); color: #e8e8e8; }

.quote { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.2; font-style: italic; margin-bottom: 28px; max-width: 26em; }
.quote em { color: var(--lime); font-style: italic; }

figure { position: relative; overflow: hidden; background: #111; }
figcaption { position: absolute; left: 0; bottom: 0; padding: 10px 14px; font-size: 15px; line-height: 1.3; color: #fff; background: linear-gradient(0deg, rgba(0,0,0,.75), rgba(0,0,0,0)); width: 100%; }
.note { font-size: 15px; color: var(--dim); margin-top: 16px; line-height: 1.4; }

.grid { display: grid; gap: 10px; }
.grid--concept { grid-template-columns: 1fr 1fr; }
.grid--concept figure { aspect-ratio: 16 / 9; background: #fff; }
.grid--concept img { object-fit: contain; }

/* ----------------------------------------------------------- rooms */

.rooms-head { padding: clamp(64px, 10vh, 120px) 0 clamp(24px, 4vh, 40px); border-top: 1px solid var(--line); }
.rooms-head h2 { font-size: clamp(48px, 7vw, 110px); line-height: .95; font-weight: 800; }
.rooms-head p { font-size: 22px; color: var(--dim); margin-top: 16px; max-width: 34em; }

.room { padding: clamp(40px, 6vh, 72px) 0; border-top: 1px solid var(--line); }
.room__top { display: grid; grid-template-columns: minmax(300px, 380px) 1fr; gap: clamp(28px, 4vw, 56px); align-items: end; margin-bottom: 28px; }
.room__num { font-size: clamp(120px, 16vw, 240px); line-height: .8; font-weight: 800; color: var(--lime); letter-spacing: -.04em; }
.room h3 { font-size: clamp(38px, 3.6vw, 56px); line-height: .95; font-weight: 800; margin: 10px 0 0; }
.room__intro { font-size: 18px; line-height: 1.45; color: #e8e8e8; max-width: 40em; }
.room__intro p + p { margin-top: .8em; }
.room__hero { aspect-ratio: 21 / 9; margin-bottom: 10px; }
.room__film { aspect-ratio: 16 / 9; margin-bottom: 10px; background: #000; }
.room__film video { object-fit: contain; }

.items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.item figure { aspect-ratio: 4 / 3; }
.item h4 { font-size: 22px; font-weight: 700; margin-top: 12px; line-height: 1.15; }
.item p { font-size: 16px; color: var(--dim); line-height: 1.35; margin: 4px 0 18px; }
[id] { scroll-margin-top: 24px; }
a.anchor { color: inherit; text-decoration: none; }
a.anchor:hover { color: var(--lime); }
a.anchor:hover::after { content: " #"; color: var(--faint); font-weight: 400; }
.item:target h4 a, .room:target h3 a { color: var(--lime); }

.room-nav { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 28px; font-size: 20px; }
.room-nav a { color: var(--ink); text-decoration: none; }
.room-nav a:hover { color: var(--lime); }
.room-nav b { color: var(--lime); font-weight: 500; font-style: italic; margin-right: 4px; }

.item .placeholder { display: flex; align-items: center; justify-content: center; color: var(--faint); font-style: italic; font-size: 16px; }

.item .tech { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: -8px 0 18px; }
.item .tech li { font-size: 13px; line-height: 1; padding: 6px 9px; border: 1px solid var(--line); border-radius: 99px; color: var(--dim); }
.item a.case { display: inline-block; font-size: 16px; margin: -8px 0 18px; }

.film-embed { aspect-ratio: 16 / 9; background: #000; }
.film-embed video { object-fit: contain; }

/* ----------------------------------------------------------- outro */

.finale { padding: clamp(40px, 6vh, 72px) 0; border-top: 1px solid var(--line); }
.finale .grid { grid-template-columns: 1fr 1fr; }
.finale figure { aspect-ratio: 3 / 2; }

.outro { padding: clamp(80px, 14vh, 160px) 0; border-top: 1px solid var(--line); }
.outro h2 { font-size: clamp(48px, 7vw, 110px); line-height: .95; font-weight: 800; max-width: 1100px; }
.outro h2 em { color: var(--lime); }
.outro p { font-size: 24px; margin-top: 28px; color: var(--dim); }
footer { padding: 28px 0 40px; color: var(--faint); font-size: 16px; border-top: 1px solid var(--line); }

@media (max-width: 900px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .chapter, .room__top { grid-template-columns: 1fr; }
  .items { grid-template-columns: 1fr 1fr; }
  .grid--concept, .finale .grid { grid-template-columns: 1fr; }
  .room__hero { aspect-ratio: 4 / 3; }
}

/* ----------------------------------------- interactive list per room */

.ilist { margin: 28px 0 36px; }
.ilist__head { color: var(--faint); font-size: 15px; letter-spacing: .06em; text-transform: uppercase; font-weight: 400; margin-bottom: 8px; }
.ilist ol { list-style: none; counter-reset: il; border-top: 1px solid var(--line); }
.ilist li { counter-increment: il; border-bottom: 1px solid var(--line); }
.ilist a { display: grid; grid-template-columns: 48px minmax(200px, 320px) 1fr auto; gap: 20px; align-items: baseline;
  padding: 14px 0; color: var(--ink); text-decoration: none; }
.ilist a::before { content: counter(il, decimal-leading-zero); color: var(--lime); font-style: italic; font-size: 17px; }
.ilist__title { font-size: 22px; font-weight: 700; line-height: 1.2; }
.ilist__text { font-size: 16px; color: var(--dim); line-height: 1.35; }
.ilist__more { font-size: 16px; color: var(--lime); white-space: nowrap; }
.ilist a:hover .ilist__title { color: var(--lime); }

@media (max-width: 900px) {
  .ilist a { grid-template-columns: 36px 1fr; gap: 4px 12px; }
  .ilist__text, .ilist__more { grid-column: 2; }
}

/* ------------------------------------------------- installation page */

.ihero { position: relative; height: 78svh; min-height: 480px; overflow: hidden; background: #111; }
.ihero img, .ihero video { position: absolute; inset: 0; }
.ihero::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,.25) 55%, rgba(0,0,0,.92) 100%); }
.ihero .hero__top, .ihero .hero__text { position: absolute; left: 0; right: 0; z-index: 1; }
.ihero .hero__top { top: 0; padding-top: 28px; display: flex; gap: 24px; font-size: 18px; }
.ihero .hero__top a { color: var(--ink); text-decoration: none; font-weight: 700; }
.ihero .hero__top a + a { font-weight: 400; color: var(--dim); }
.ihero .hero__text { bottom: 0; padding-bottom: clamp(32px, 6vh, 64px); }
.ihero h1 { font-size: clamp(52px, 9vw, 132px); line-height: .92; font-weight: 800; letter-spacing: -.02em; margin: 8px 0 16px; }
.ihero p { font-size: clamp(20px, 2.2vw, 28px); line-height: 1.25; max-width: 820px; }
.ihero--empty { height: 56svh; }

.chapter__body ul.plain, .chapter__body ol.steps { margin-top: .4em; padding-left: 1.2em; color: #e8e8e8; }
.chapter__body ol.steps li, .chapter__body ul.plain li { margin: .45em 0; }
.chapter__body ol.steps li::marker { color: var(--lime); font-style: italic; }

.qlist { list-style: none; counter-reset: q; }
.qlist li { counter-increment: q; padding: 8px 0; border-bottom: 1px solid var(--line); font-style: italic; }
.qlist li::before { content: counter(q) ". "; color: var(--lime); }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gallery figure { aspect-ratio: 4 / 3; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 40px 0; border-top: 1px solid var(--line); }
.pager a { color: var(--ink); text-decoration: none; }
.pager small { display: block; color: var(--faint); font-size: 15px; letter-spacing: .06em; text-transform: uppercase; }
.pager b { font-size: clamp(24px, 2.4vw, 34px); line-height: 1.1; }
.pager a:hover b { color: var(--lime); }
.pager .next { text-align: right; }

@media (max-width: 900px) {
  .gallery { grid-template-columns: 1fr 1fr; }
}

/* ------------------------------------------------------------- phones */

/* Clear the site's fixed menu button, top right, until the wrap's own margin does */
@media (max-width: 1480px) {
  .hero__top, .ihero .hero__top { padding-right: 88px; }
}

@media (max-width: 600px) {
  /* Every interactive card has its own Read more, so the list only repeats them */
  .ilist { display: none; }
  .items { grid-template-columns: 1fr; gap: 28px; }
  .ihero .hero__top { gap: 6px 16px; font-size: 16px; justify-content: flex-start; }
  /* A hero film can name which part survives the crop to portrait */
  .ihero video { object-position: var(--crop, 50% 50%); }
  .hero__top a.filmlink, .ihero .hero__top a.filmlink { margin-left: 0; flex-basis: 100%; }
}
