/* universearchitecture.com and brand sites — one stylesheet, per-domain tokens.
   Layout: #stage snaps vertically between sections, each section snaps horizontally between slides. */

:root {
  --primary: #e3212b;
  --grey: #9c9e9f;
  --link: #000;
  --link-hover: #e3212b;
  --font: "Times New Roman", serif;
  --nav-h: 80px;
}
[data-theme="shared"] {
  --primary: #e2001a;
  --link: #e2001a;
  --link-hover: #000;
  --font: netto, Arial, sans-serif;
  --nav-h: 80px;
}

@font-face {
  font-family: netto;
  src: url(/assets/fonts/NettoWebPro.woff2) format("woff2"), url(/assets/fonts/NettoWebPro.woff) format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- reset ---------- */
html { color: #000; background: #fff; font-size: 62.5%; height: 100%; }
body, div, p, h1, h2, h3, h4, h5, h6, ul, ol, li, dl, dt, dd, blockquote, form, fieldset, legend, pre, code, address, button { margin: 0; padding: 0; }
h1, h2, h3, h4, h5, h6 { font-size: 100%; font-weight: 400; }
ul, ol { list-style: none; }
img { border: 0; max-width: 100%; }
address { font-style: inherit; }
sup { font-size: 11px; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: var(--link); text-decoration: none; }
a:hover, a.active { color: var(--link-hover); }
:focus:not(:focus-visible) { outline: none; }
#main-nav a:focus, .slide-arrow:focus, .arrow-down:focus, .btn:focus { outline: none; }
#main-nav a:focus-visible, .slide-arrow:focus-visible, .arrow-down:focus-visible, .btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: var(--font);
  background: #fff;
  color: #000;
  -webkit-font-smoothing: antialiased; /* macOS subpixel smoothing makes Times read a weight heavier than it is */
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

/* ---------- stage: scroll-snap in two axes ---------- */
#stage {
  height: 100dvh;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  overscroll-behavior: contain;
  outline: none;
}
#stage::-webkit-scrollbar, .section::-webkit-scrollbar { display: none; }
.section {
  position: relative;
  display: flex;
  height: 100dvh;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  scrollbar-width: none;
  overscroll-behavior-x: contain; /* a trackpad swipe past the first slide must not trigger the browser's back gesture */
}
.slide {
  position: relative;
  flex: 0 0 100%;
  width: 100vw;
  height: 100%;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  /* no isolation here: a stacking context on a slide inside the nested scrollers makes Chrome drop the image layer */
}
.fill { height: 100%; }
@media (max-width: 47.9em) {
  /* the text block scrolls on its own when it is taller than the slide; the stage only moves outside it */
  .fill { position: absolute; width: 100vw; top: calc(38vh + 110px); bottom: 0; height: auto; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  [data-theme="shared"] .fill { top: calc(38% + 55px); }
}

/* background image: first child of the slide, below .content; .bg-overlay sits inside .content between image and text */
.bg, .bg-overlay { position: absolute; width: 100%; height: 100%; top: 0; left: 0; }
img.bg { z-index: 0; object-fit: cover; object-position: center; transition: opacity .8s ease; }
img.bg.pending { opacity: 0; }
html:not(.js) img.bg.pending { opacity: 1; }
.content { position: relative; z-index: 1; }
.bg-overlay { background: rgba(255, 255, 255, .5); z-index: -1; }
@media (max-width: 47.9em) {
  .bg, .bg-overlay { top: 50px; height: 35%; }
  [data-theme="shared"] .bg { top: 48px; }
  .bg-overlay { display: none; }
}

/* ---------- shared UI ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.enable-on-small { display: none; }
@media (min-width: 20em) and (max-width: 47.9em) {
  .enable-on-small { display: block; }
  .disable-on-small { display: none !important; }
}

.slide-arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  margin-top: -32px;
  width: 26px;
  height: 40px;
  cursor: pointer;
  background: url(/assets/img/prev.svg) 50% 50% no-repeat;
  background-size: 20px;
}
.slide-arrow { background-color: rgba(255, 255, 255, .5); padding: 12px; }
.slide-arrow:hover { background-color: rgba(255, 255, 255, .9); }
.slide-arrow.prev { left: 0; border-radius: 0 5px 5px 0; }
.slide-arrow.prev:hover { background-image: url(/assets/img/prev-mo.svg); }
.slide-arrow.next { right: 0; border-radius: 5px 0 0 5px; background-image: url(/assets/img/next.svg); }
.slide-arrow.next:hover { background-image: url(/assets/img/next-mo.svg); }
@media (max-width: 47.9em) {
  .slide-arrow { background-size: 22px; padding: 10px; top: calc(38vh + 110px + 38px); margin-top: 0; bottom: auto; transform: translateY(-50%); }
  [data-theme="shared"] .slide-arrow { top: calc(38% + 55px + 27px); }
  .slide-arrow.prev:hover { background-image: url(/assets/img/prev.svg); background-size: 21px; }
  .slide-arrow.next:hover { background-image: url(/assets/img/next.svg); background-size: 21px; }
}

.arrow-down {
  position: absolute;
  z-index: 100;
  left: 50%;
  transform: translateX(-50%);
  width: 52px;
  height: 26px;
  bottom: 20px;
  font-size: 14px;
  background: url(/assets/img/pijl.svg) 50% 50% no-repeat;
  background-size: 40px;
}
.arrow-down:hover { background-image: url(/assets/img/pijl-mo.svg); }
.arrow-down { background-color: rgba(255, 255, 255, .5); border-radius: 5px 5px 0 0; padding: 12px; bottom: 0; }
.arrow-down:hover { background-color: rgba(255, 255, 255, .9); }
/* small screens: down arrow and slide arrows share one baseline */
@media (max-width: 47.9em) { .arrow-down { background-size: 40px; bottom: 0 !important; } }

.close { width: 32px; height: 31px; background: url(/assets/img/delete.svg) 50% 50% no-repeat; }
.close:hover { background-image: url(/assets/img/delete-mo.svg); }

/* social icons (footer.php of the brand sites) */
.icon-social { transition: opacity .6s ease; }
.icon-social.hidden { opacity: 0; pointer-events: none; }
/* desktop: in the menu bar, top right */
.icon-social { position: fixed; top: 28px; width: 24px; z-index: 10002; }
.icon-social.instagram { right: 24px; }
.icon-social.universe { right: 60px; }
.icon-social.pinterest { right: 96px; }
.icon-social.facebook { right: 132px; }
@media (max-width: 47.9em) {
  /* phones: only at the foot of the open menu sheet */
  .icon-social { display: none; top: auto; bottom: 32px; width: 28px; }
  body.menu-open .icon-social { display: block; }
  .icon-social.instagram { right: 24px; }
  .icon-social.universe { right: 68px; }
  .icon-social.pinterest { right: 112px; }
  .icon-social.facebook { right: 156px; }
}

/* "more" overlay (partners lists on the brand sites) */
.more-overlay {
  display: none;
  position: absolute;
  z-index: 100001;
  bottom: 20px;
  left: 40px;
  width: 370px;
  height: calc(100% - 160px);
  padding: 20px;
  overflow: auto;
  background: rgba(255, 255, 255, .97);
  font-size: 16px;
  line-height: 22px;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -2px rgba(0, 0, 0, .1);
}
.more-overlay.open { display: block; }
.more-overlay .close-overlay {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: 50%;
  box-shadow: 0 2px 4px -1px rgba(0, 0, 0, .1);
}
.more-overlay .close-overlay:hover { background: #000; color: #fff; border-color: #000; }
@media (max-width: 63.9em) {
  .more-overlay { position: fixed; inset: 0; width: auto; height: auto; padding: 72px 24px 40px; left: 0; top: 0; bottom: 0; border: 0; border-radius: 0; box-shadow: none; background: #fff; }
  .more-overlay .close-overlay { position: fixed; top: 16px; right: 16px; width: 40px; height: 40px; }
}

/* mobile hamburger (brand sites) */
.bg-mobile-menu { display: none; position: fixed; top: 0; left: 0; z-index: 10001; width: 100%; height: 48px; padding: 0 16px; box-sizing: border-box; align-items: center; background: #000; }
.hb { display: none; position: relative; width: 24px; height: 18px; padding: 0; cursor: pointer; }
.hb span { display: block; position: absolute; left: 0; height: 2px; width: 100%; background: #fff; border-radius: 1px; opacity: 1; transform: rotate(0deg); transition: top .2s ease, transform .2s ease, opacity .15s ease; }
.hb span:nth-child(1) { top: 0; }
.hb span:nth-child(2) { top: 8px; }
.hb span:nth-child(3) { top: 16px; }
.hb.open span:nth-child(1) { top: 8px; transform: rotate(45deg); }
.hb.open span:nth-child(2) { opacity: 0; }
.hb.open span:nth-child(3) { top: 8px; transform: rotate(-45deg); }
@media (min-width: 20em) and (max-width: 47.9em) {
  [data-theme="shared"] .bg-mobile-menu { display: flex; }
  [data-theme="shared"] .hb { display: block; }
}

/* ---------- theme: universe ---------- */
[data-theme="universe"] header nav {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  width: 100%;
  height: 80px;
}
/* the black bar is a layer above the submenu (z -1) so the list slides in and out behind it; items sit above the bar */
[data-theme="universe"] header nav::before { content: ""; position: absolute; inset: 0; z-index: 0; background: #000; }
[data-theme="universe"] header nav > ul > li > a { position: relative; z-index: 1; }
[data-theme="universe"] header nav > ul { display: flex; justify-content: center; margin: auto; }
[data-theme="universe"] header nav li { position: relative; width: 160px; text-align: center; }
[data-theme="universe"] header nav li a { display: block; padding: 27px 25px; color: #fff; font-size: 2.3rem; text-transform: uppercase; }
[data-theme="universe"] header nav li a:hover { color: var(--primary); }
/* with the projects screen open, PROJECTS reads as its title and the other two items step back */
[data-theme="universe"] header nav > ul > li > a { transition: opacity .35s ease, color .2s ease; }
body[data-theme="universe"].submenu-open header nav > ul > li > a { opacity: .3; }
body[data-theme="universe"].submenu-open header nav > ul > li.open > a { opacity: 1; }
body[data-theme="universe"].submenu-open header nav > ul > li > a:hover { opacity: 1; }
/* PROJECTS opens the whole screen in black: one centred column of names, the bar stays on top */
[data-theme="universe"] header nav .subnav {
  position: fixed;
  inset: 80px 0 0 0;
  z-index: -1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 24px 40px;
  background: #000;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility 0s linear .35s;
}
[data-theme="universe"] header nav .subnav.active { opacity: 1; visibility: visible; transition: opacity .35s ease; }
[data-theme="universe"] header nav .subnav li { display: block; width: auto; text-align: center; }
[data-theme="universe"] header nav .subnav li a { display: block; white-space: nowrap; color: #fff; padding: .4em 24px; font-size: 2.3rem; line-height: 1.3; text-transform: none; }
[data-theme="universe"] header nav .subnav li a:hover { color: var(--primary); }
[data-theme="universe"] header nav .subnav li.active a { color: var(--grey); }
.bg-submenu {
  display: none; /* desktop dropdown carries its own card; the sheet is for phones */
  position: fixed;
  left: 0;
  top: -100vh;
  z-index: 9000; /* above slide content (z 1), below the nav (z 10000) */
  width: 100%;
  height: auto;
  min-height: 150px;
  background: #fff;
  border-bottom: 1px solid #000;
  transition: top 1s ease;
}
.bg-submenu.active { top: 80px; }
@media (max-width: 47.9em) {
  [data-theme="universe"] header nav { height: 50px; }
  [data-theme="universe"] header nav li { width: 90px; }
  [data-theme="universe"] header nav li a { padding: 15px; font-size: 1.6rem; }
  [data-theme="universe"] header nav .subnav { inset: 50px 0 0 0; }
  [data-theme="universe"] header nav .subnav li a { font-size: 1.6rem; padding: .5em 16px; }
  [data-theme="universe"] .home .fill { top: 120px; z-index: 1; }
  [data-theme="universe"] .info .fill { top: calc(35% + 62px); z-index: 1; padding-bottom: 70px; }
}

/* universe: the down arrow only on the last slide of a section (home is a one-slide section). Hidden, not removed. */
[data-theme="universe"] .slide:not(:last-child) .arrow-down { display: none; }
[data-theme="universe"] .content { position: relative; width: 100vw; height: calc(100dvh - 120px); padding-top: 120px; }
[data-theme="universe"] .content a { color: var(--primary); }
[data-theme="universe"] .content sup { vertical-align: super; font-size: 1rem; }
[data-theme="universe"] .content h1 { width: 90vw; margin: auto; padding-top: 10px; font-size: clamp(3.2rem, 2rem + 2.5vw, 5.5rem); line-height: 1.2; text-align: center; text-transform: uppercase; white-space: pre; }
[data-theme="universe"] .content .hr { width: 20vh; margin: 50px auto; border-top: 1px solid #000; }
[data-theme="universe"] .content h2, [data-theme="universe"] .content p { width: 70vh; max-width: 90vw; margin: auto; font-size: clamp(2rem, 1rem + 1.8vw, 3.6rem); line-height: 1.3; text-align: center; }
[data-theme="universe"] .content .btn-next-slide {
  /* caption of the slide (authors write "Square House ©" or "longitudinal section"); links to the about slide */
  position: absolute;
  z-index: 100;
  top: calc(var(--nav-h) + 24px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 8px 16px;
  color: #000;
  font-size: 2rem;
  line-height: 1.2;
  background: rgba(255, 255, 255, .75);
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: 8px;
}
/* about slides: the text sits on a card instead of a wash over the whole photo */
[data-theme="universe"] .content .infobox {
  width: fit-content;
  max-width: 90vw;
  margin: 0 auto;
  padding: 28px 44px 32px;
  background: rgba(255, 255, 255, .75);
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: 8px;
}
[data-theme="universe"] .content .infobox .hr { margin: 24px auto; }
[data-theme="universe"] .content .infobox h1 { width: auto; padding-top: 0; } /* the hidden h1 kept a 90vw width and stretched the card */
[data-theme="universe"] .content .infobox .bg-overlay { display: none; }
@media (max-width: 47.9em) {
  /* on phones the text is on white under the image band: no card */
  [data-theme="universe"] .content .infobox { width: auto; max-width: none; margin: 0; padding: 0; background: none; border: 0; border-radius: 0; }
  [data-theme="universe"] .content .infobox .hr { margin: 15px auto; }
}
[data-theme="universe"] .home .content { padding-top: 105px; text-align: center; }
[data-theme="universe"] .home .content .infobox { width: auto; max-width: none; padding: 0; background: none; border: 0; } /* the one-liner is not a card */
[data-theme="universe"] .home .content p { font-size: clamp(1.8rem, .9rem + 1.5vw, 3rem); letter-spacing: .04em; color: #222; }
[data-theme="universe"] .home .content h1 { width: 70vh; margin-top: -30px; }
[data-theme="universe"] .home .content .logo { width: 100%; height: 100%; max-height: 30vh; max-width: 80vw; padding-top: 20vh; translate: 2.7% 0; /* the big A, not the box, is the optical centre */ }
[data-theme="universe"] .info .content .info-content { width: 90vw; margin: auto; padding-top: 50px; font-size: clamp(1.6rem, 0.8rem + 1.2vw, 2.4rem); line-height: 1.3; text-align: center; }
[data-theme="universe"] .info .content .info-content h2 { font-size: clamp(1.6rem, 0.8rem + 1.1vw, 2.3rem); text-transform: uppercase; padding-bottom: 10px; }
[data-theme="universe"] .info .content address { padding-bottom: 30px; }
[data-theme="universe"] .info .logo { width: 20vw; }
@media (max-width: 47.9em) {
  [data-theme="universe"] .content h1 { width: 90vw; margin-top: 0; font-size: 2.5rem; }
  [data-theme="universe"] .content .hr { width: 30vw; margin: 15px auto; }
  [data-theme="universe"] .content .hr.enable-on-small { margin-top: -20px; }
  [data-theme="universe"] .content h2, [data-theme="universe"] .content p { width: calc(100vw - 128px); max-width: 70vw; font-size: 2.5rem; }
  [data-theme="universe"] .content .btn-next-slide { display: block; width: auto; top: 20px; bottom: auto; right: 64px; left: 64px; padding: 0; transform: none; white-space: normal; text-align: center; font-size: 2.5rem; background: none; border: 0; }
  [data-theme="universe"] .home .content h1 { width: 70vw; font-size: 8vw; }
  [data-theme="universe"] .home .content .logo { padding-top: 0; max-width: 70vw; }
  [data-theme="universe"] .info .content .info-content { width: 70vw; padding-top: 0; font-size: 4vw; line-height: 1.3; }
  [data-theme="universe"] .info .content .info-content h2 { font-size: 4vw; }
  [data-theme="universe"] .info .logo { width: 50vw; }
}
@media screen and (max-height: 500px) {
  [data-theme="universe"] .content h1 { margin-top: -80px; font-size: 1.8rem; }
  [data-theme="universe"] .content h2, [data-theme="universe"] .content p { font-size: 1.8rem; }
  [data-theme="universe"] .content .btn-next-slide { font-size: 1.8rem; }
  [data-theme="universe"] .home .content h1 { font-size: 1.8rem; }
}

/* ---------- theme: shared (brand sites) ---------- */
[data-theme="shared"] header nav {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  width: 100%;
  height: 80px;
  background-color: rgba(255, 255, 255, .85); /* same white as the info panes */
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, .08);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -2px rgba(0, 0, 0, .1);
  transition: background-color .4s ease;
}
[data-theme="shared"] header nav > ul { position: fixed; left: 50%; width: 900px; height: 80px; margin-left: -450px; }
[data-theme="shared"] header nav li {
  display: inline-block;
  position: relative;
  width: 160px;
  padding: 24px 5px;
  color: #a6a8a9;
  font-size: 30px;
  text-align: center;
  text-transform: uppercase;
}
[data-theme="shared"] header nav li a { color: #8a8c8d; font-size: 2.7rem; text-transform: uppercase; }
[data-theme="shared"] header nav li a:hover, [data-theme="shared"] header nav li.active a { color: #000; }
[data-domain="gravity"] header nav > ul { white-space: nowrap; }
[data-domain="gravity"] header nav li { width: 24%; white-space: normal; }
[data-domain="floating"] header nav li { width: 210px; }
@media (max-width: 47.9em) {
  /* the bar itself is invisible on phones (the black hamburger strip is separate); no blur so the fixed menu sheet positions against the viewport */
  [data-theme="shared"] header nav { height: 0; background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  [data-theme="shared"] header nav > ul { display: none; left: 0; top: 48px; bottom: 0; width: 100vw; height: auto; margin-left: 0; padding: 32px 24px; box-sizing: border-box; background: #fff; }
  [data-theme="shared"] header nav > ul.open { display: block; }
  [data-theme="shared"] header nav li { display: block; width: auto; padding: 0; text-align: left; }
  [data-theme="shared"] header nav li a { display: block; padding: 12px 0; font-size: 2.6rem; }
}

[data-theme="shared"] h2 { font-size: 25px; line-height: 30px; }
[data-theme="shared"] .red { color: var(--primary); }
[data-theme="shared"] .small { font-size: 17px !important; line-height: 30px !important; }
[data-theme="shared"] .content { position: relative; width: 100vw; height: 100dvh; }
[data-theme="shared"] .content .infobox {
  position: absolute;
  z-index: 100000;
  bottom: 20px;
  width: 360px;
  margin: 20px 40px;
  padding: 15px;
  color: #000;
  font-size: 16px;
  line-height: 22px;
  background: rgba(255, 255, 255, .85);
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -2px rgba(0, 0, 0, .1);
  max-height: calc(100dvh - var(--nav-h) - 110px); /* long boxes (gravity home) scroll inside instead of leaving the slide */
  overflow-y: auto;
  overscroll-behavior: contain;
}
[data-theme="shared"] .content .infobox h1 { font-size: 25px; line-height: 30px; }
[data-theme="shared"] .info-square { position: absolute; z-index: 100; top: 100px; bottom: 20px; width: 400px; margin: 20px 40px; padding: 20px; color: #000; font-size: 16px; line-height: 24px; }
[data-theme="shared"] .info-square .info-info { width: 400px; height: auto; overflow: auto; background: none; font-size: 25px; line-height: 30px; }
[data-theme="shared"] .info-square .info-info p { float: left; z-index: 11; padding: 0 30px; font-size: 16px; line-height: 24px; }
[data-theme="shared"] .info-square .footer { position: absolute; bottom: 0; left: 40px; }
[data-theme="shared"] .info-square .footer img { float: left; height: 50px; }
@media (max-width: 47.9em) {
  [data-theme="shared"] .content .infobox { width: calc(100vw - 60px); margin: auto; padding: 0 20px; bottom: auto; font-size: 15px; line-height: 20px; text-align: left; border: 0; border-radius: 0; box-shadow: none; background: none; max-height: none; overflow: visible; }
  [data-theme="shared"] .content .infobox h1 { font-size: 21px; line-height: 24px; }
  [data-theme="shared"] .info-square { top: 0; bottom: auto; width: calc(100vw - 40px); margin: auto; padding: 0 20px; text-align: left; }
  [data-theme="shared"] .info-square .info-info { width: 100%; font-size: 21px; line-height: 24px; }
  [data-theme="shared"] .info-square .info-info p { padding: 0; font-size: 21px; line-height: 24px; }
  [data-theme="shared"] .info-square .info-info .small { padding-top: 20px; font-size: 21px !important; line-height: 24px !important; }
  [data-theme="shared"] .info-square .footer { display: none !important; }
}

/* 360 viewer hooks (landscape scope, squarehouse, blockbuilding) — interaction arrives with the viewer module */
[data-theme="shared"] .three-sixty-image { position: absolute; z-index: 10000; left: 0; top: 0; width: 100%; height: 100%; }
[data-theme="shared"] .threesixty { position: relative; }
[data-theme="shared"] .img-360 { position: absolute; z-index: 10000; top: -38%; left: 0; width: 100%; }
[data-theme="shared"] .goright { position: absolute; z-index: 10; right: 20px; top: 45%; width: 69px; height: 62px; cursor: pointer; background: url(/assets/img/landscape/360.svg) no-repeat; }
[data-theme="shared"] .houses-nav { position: absolute; z-index: 10001; top: 45%; right: 13px; width: 80px; margin-top: -120px; text-align: left; line-height: 24px; font-size: 13px; }
[data-theme="shared"] .houses-nav a { color: #a6a8a9; }
[data-theme="shared"] .houses-nav a:hover, [data-theme="shared"] .houses-nav a.active { color: #000; }
[data-theme="shared"] .house { position: absolute; z-index: 1000; top: 0; left: 0; width: 100%; height: 100%; }
[data-theme="shared"] .rotateimage { z-index: 1001; }

/* ---------- 360 viewer (assets/viewer360.js) ---------- */
.viewer {
  position: absolute;
  inset: 0;
  z-index: 2; /* above the text block so the whole slide drags; the infobox and arrows stay above it */
  overflow: hidden;
  background: #fff;
  cursor: grab;
  touch-action: pan-y; /* a finger drag turns the model; a vertical swipe still moves to the next section */
  user-select: none;
  -webkit-user-select: none;
  outline: none;
}
.viewer.dragging { cursor: grabbing; }
.viewer:focus, .viewer:focus-visible { outline: none; } /* it keeps focus for the arrow keys; the scrubber is the visible affordance */
.viewer-frame { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.viewer-scrub { position: absolute; left: 50%; bottom: 96px; width: min(320px, 60%); transform: translateX(-50%); padding: 14px 0; cursor: pointer; touch-action: none; }
.viewer-scrub-track { position: relative; height: 4px; background: rgba(255, 255, 255, .55); border: 1px solid rgba(0, 0, 0, .15); border-radius: 3px; }
.viewer-scrub-handle { position: absolute; top: 50%; left: 0; width: 22px; height: 22px; margin: -11px 0 0 -11px; background: #fff; border: 1px solid rgba(0, 0, 0, .2); border-radius: 50%; box-shadow: 0 2px 4px -1px rgba(0, 0, 0, .2); transition: left .05s linear; }
@media (max-width: 47.9em) { .viewer-scrub { bottom: 6px; width: 50%; padding: 10px 0; } .viewer-scrub-handle { width: 18px; height: 18px; margin: -9px 0 0 -9px; } }
.viewer-sets { position: absolute; z-index: 100001; right: 24px; bottom: 24px; display: flex; gap: 8px; }
.viewer-sets a { padding: 6px 12px; color: #8a8c8d; font-size: 15px; background: rgba(255, 255, 255, .85); border: 1px solid rgba(0, 0, 0, .08); border-radius: 8px; }
.viewer-sets a.active, .viewer-sets a:hover { color: #000; }
@media (max-width: 47.9em) {
  .viewer { top: 50px; height: 35%; bottom: auto; }
  [data-theme="shared"] .viewer { top: 48px; }
  .viewer-sets { right: 12px; bottom: auto; top: calc(35% + 50px); }
}

/* pointer devices: arrows rest at a hint while the mouse is still, full when it moves or hovers them */
/* the arrow for the next step of the cadence (cta-*) always reads stronger than the others */
.slide-arrow, .arrow-down { opacity: .45; }
.slide.cta-right .slide-arrow.next, .slide.cta-down .arrow-down { opacity: .9; }
@media (hover: hover) and (pointer: fine) {
  .slide-arrow, .arrow-down { opacity: .3; }
  .slide.cta-right .slide-arrow.next, .slide.cta-down .arrow-down { opacity: .75; }
  body.mouse-active .slide-arrow, body.mouse-active .arrow-down { opacity: .6; }
  body.mouse-active .slide.cta-right .slide-arrow.next, body.mouse-active .slide.cta-down .arrow-down { opacity: 1; }
  .slide-arrow:hover, .arrow-down:hover { opacity: 1; }
}

/* cadence hint: down -> right -> right. On arrival the next step's arrow slides in and nudges, the other rests */
@keyframes nudge-x { 0% { translate: 24px 0; opacity: 0; } 25% { translate: 0 0; opacity: 1; } 45% { translate: 9px 0; } 65% { translate: 0 0; } 82% { translate: 5px 0; } 100% { translate: 0 0; } }
@keyframes nudge-y { 0% { translate: 0 24px; opacity: 0; } 25% { translate: 0 0; opacity: 1; } 45% { translate: 0 9px; } 65% { translate: 0 0; } 82% { translate: 0 5px; } 100% { translate: 0 0; } }
.arrow-down, .slide-arrow { transition: opacity .7s ease, background-color .3s ease; }
.slide.hint-right .arrow-down, .slide.hint-right .slide-arrow.prev { opacity: 0; }
.slide.hint-right .slide-arrow.next { opacity: 1; animation: nudge-x 3s ease-in-out 1; }
.slide.hint-down .slide-arrow.prev { opacity: 0; }
.slide.hint-down .arrow-down { opacity: 1; animation: nudge-y 3s ease-in-out 1; }
@media (prefers-reduced-motion: reduce) { .slide.hint-right .arrow-down { opacity: inherit; } }

/* first visit of a session on the universe home: logo, then the line, then the bar, then the arrow (html.intro is set inline in <head>) */
@keyframes intro-logo { from { opacity: 0; scale: .92; } to { opacity: 1; scale: 1; } }
@keyframes intro-rise { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }
@keyframes intro-drop { from { opacity: 0; translate: 0 -100%; } to { opacity: 1; translate: 0 0; } }
html.intro .home .logo { animation: intro-logo 1.1s cubic-bezier(.2, .7, .2, 1) .2s both; }
html.intro .home .content p { animation: intro-rise .7s ease-out 1.1s both; }
html.intro header nav::before, html.intro header nav > ul > li > a { animation: intro-drop .6s cubic-bezier(.2, .7, .2, 1) 1.7s both; } /* not the ul: it contains the fixed projects screen */
html.intro .home .arrow-down { animation: intro-rise .6s ease-out 2.2s both; }
/* brand sites: the infobox rises, then the bar, then the arrow and icons */
html.intro [data-theme="shared"] .home .infobox { animation: intro-rise .9s cubic-bezier(.2, .7, .2, 1) .4s both; }
html.intro [data-theme="shared"] header nav { animation: intro-drop .6s cubic-bezier(.2, .7, .2, 1) 1.3s both; }
html.intro [data-theme="shared"] .home .arrow-down { animation-delay: 1.9s; }
html.intro [data-theme="shared"] .icon-social { animation: intro-rise .6s ease-out 1.9s both; }

/* ---------- 404 ---------- */
body.not-found { overflow: auto; }
.not-found-body { max-width: 60rem; margin: 20vh auto; padding: 0 2rem; text-align: center; font-size: 2rem; line-height: 1.5; }
.not-found-body h1 { font-size: 8rem; margin-bottom: 2rem; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
