html { scroll-padding-top: 18px; }
body {
  --page-gutter: clamp(22px, 5vw, 68px);
  min-height: 100vh;
  padding: env(safe-area-inset-top) env(safe-area-inset-right)
    env(safe-area-inset-bottom) env(safe-area-inset-left);
  background:
    radial-gradient(ellipse clamp(260px, 45vw, 690px) 235px at 54% clamp(178px, 18vw, 246px), #d9ac6821, #d9ac680a 53%, transparent 100%),
    radial-gradient(ellipse 70% 87% at 50% 32%, #221e17, #161412 53%, #0a0a0e 100%);
}
.universes { background: transparent; }
.carousel.is-ready::before { content: none; }
.ac-masthead {
  position: relative;
  display: grid;
  justify-items: center;
  align-items: center;
  width: min(100%, 1440px);
  margin-inline: auto;
  padding: clamp(30px, 4vw, 54px) var(--page-gutter) 20px;
}
.ac-brand { display: block; width: 152px; height: auto; }
.ac-news {
  position: absolute;
  right: var(--page-gutter);
  display: grid;
  justify-items: end;
  gap: 5px;
}
.ac-news .journal-link { gap: 7px; min-height: 44px; padding: 6px 12px 6px 8px; font-size: .79rem; }
.ac-news .day-journal-symbol { display: block; flex: none; width: 25px; height: 25px; }
.ac-news .day-journal-symbol svg { display: block; width: 100%; height: 100%; overflow: visible; }
.ac-news .day-journal-symbol path {
  fill: none;
  stroke: #c6a96f;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.ac-news .day-journal-orbit { stroke-dasharray: 220; }
.ac-news .day-journal-symbol .day-journal-orbit-glint {
  stroke: #fff1c8;
  stroke-width: 2.3;
  stroke-dasharray: 19 201;
  stroke-dashoffset: 220;
  opacity: 0;
  filter: drop-shadow(0 0 5px #f5dca5);
}
@media (prefers-reduced-motion: no-preference) {
  .ac-news .day-journal-orbit-glint { animation: day-journal-glint 6s linear infinite; }
}
@keyframes day-journal-glint{0%,15%{stroke-dashoffset:220;opacity:0}23%{opacity:.9}62%{stroke-dashoffset:0;opacity:.9}72%,100%{stroke-dashoffset:0;opacity:0}}
.ac-news-date { font-size: .7rem; color: #c3b6a2; }
.ac-news-date::first-letter { text-transform: uppercase; }
.opening {
  min-height: 0;
  padding: clamp(32px, 4.7vw, 72px) var(--page-gutter) clamp(36px, 4.8vw, 68px);
  background: none;
}
.opening h1 {
  font-size: clamp(43px, 6.1vw, 78px);
  line-height: 1.03;
  text-wrap: balance;
}
.opening h1 em {
  position: relative;
  display: inline-block;
  white-space: nowrap;
  color: #e2c58a;
}
.opening-stroke {
  position: absolute;
  top: 97%;
  left: 0;
  width: 99%;
  height: .23em;
  fill: none;
  stroke-width: 1.4;
  stroke-linecap: round;
  overflow: visible;
  pointer-events: none;
}
.ac-intro {
  max-width: 58ch;
  margin: clamp(19px, 2.25vw, 29px) auto 0;
  color: #dfd1bd;
  font-size: clamp(.92rem, 1.35vw, 1.06rem);
  letter-spacing: .012em;
  line-height: 1.6;
}
.universes:has(.is-ready) { padding: 0 var(--page-gutter) clamp(28px, 5vw, 64px); }
.carousel-tabs {
  display: grid;
  grid-template-columns: repeat(5, auto);
  align-items: stretch;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto clamp(17px, 2.4vw, 28px);
  border-bottom: 1px solid #d5bd903b;
}
.carousel-tabs[hidden], .carousel-controls[hidden] { display: none; }
.carousel-tabs button {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 46px;
  width: auto;
  padding: 6px clamp(12px, 2vw, 27px) 9px;
  border: 0;
  background: transparent;
  color: #cdbfac;
  font: 500 .88rem/1.23 DM, Arial, sans-serif;
  text-align: center;
  text-wrap: balance;
  cursor: pointer;
  transition: color .2s ease;
}
.carousel-tabs button::before { content: none; }
.carousel-tabs button::after {
  content: "";
  position: absolute;
  inset-inline: 10%;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #edce92 24% 76%, transparent);
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
}
.carousel-tabs button:hover { color: #fff1d6; }
.carousel-tabs button[aria-selected="true"] {
  background: radial-gradient(ellipse 90% 70% at 50% 100%, #d8b47716, transparent);
  color: #f3d8a2;
  font-weight: 650;
}
.carousel-tabs button[aria-selected="true"]::after { opacity: 1; }
.carousel-tabs button:focus-visible { outline: 2px solid #fae1aa; outline-offset: -3px; }
.carousel-controls { margin-top: clamp(13px, 1.8vw, 22px); }
.carousel-navigation button { border: 1px solid #dac39630; }
.scene-link { display: block; cursor: pointer; }
.scene-link:focus-visible { outline-offset: -5px; }
.carousel.is-dragging .scene-link { cursor: grabbing; }

.carousel[data-scene="cote-pro"] { --light: #e3cb96; --room: #46503b; }
.carousel.is-ready .professional {
  --accent: #e4ca94;
  --copy: #fbf3e4;
  --secondary: #e0d8c7;
  --cta: #efd6a4;
  --cta-ink: #172218;
  --ground: #111811;
  --wash: #d3bc82;
}
.professional .pro-visual,
.carousel.is-ready .professional .pro-visual {
  display: grid;
  align-items: center;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 74% 12%, #87795954, transparent 52%),
    radial-gradient(ellipse at 76% 64%, #3b5342, transparent 51%),
    linear-gradient(123deg, #121d17 24%, #1d2b22 68%, #101813);
}
.carousel.is-ready .professional .pro-visual::before { content: none; }
.pro-project {
  position: relative;
  aspect-ratio: 1.55;
  transform: perspective(clamp(500px, 57vw, 870px)) rotateY(-24deg);
  width: min(66%, 760px);
  margin: 0 5% 0 auto;
}
.carousel.is-ready .professional .pro-project { width: min(51%, 760px); margin-right: 6%; }
.pro-project::before,
.pro-project::after {
  content: "";
  position: absolute;
  inset-inline: -4% -2%;
  pointer-events: none;
}
.pro-project::before {
  top: 75%;
  bottom: 8%;
  background: linear-gradient(157deg, #303b2d 15%, #505747 56%, #252f25);
  clip-path: polygon(12% 0, 90% 0, 100% 100%, 0 100%);
}
.pro-project::after {
  top: 92%;
  bottom: 4%;
  border-top: 1px solid #c8b58d57;
  border-radius: 0 0 5px 5px;
  background: linear-gradient(180deg, #30372c, #1a211b);
  box-shadow: 0 11px 22px #060b08aa;
}
.pro-stand {
  position: absolute;
  z-index: 1;
  bottom: 11%;
  left: 28%;
  width: 29%;
  height: 22%;
}
.pro-stand::before,
.pro-stand::after {
  content: "";
  position: absolute;
}
.pro-stand::before {
  inset: 0 33% 17%;
  clip-path: polygon(12% 0, 85% 0, 100% 100%, 0 100%);
  background: linear-gradient(100deg, #181c18, #40463e 70%, #242a23);
}
.pro-stand::after {
  inset: auto 0 0;
  height: 22%;
  border: 1px solid #a99b7b50;
  border-radius: 55% 55% 24% 24% / 90% 90% 28% 28%;
  background: linear-gradient(174deg, #575a4d, #242b23 72%);
  box-shadow: 0 4px 8px #0c120dbb;
}
.pro-display {
  position: absolute;
  z-index: 2;
  top: -2.5%;
  left: 0;
  width: 84%;
  transform: rotateX(-3deg);
  transform-style: preserve-3d;
}
.pro-display::after {
  content: "";
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: calc(100% - 1px);
  width: 9px;
  border-radius: 2px 5px 5px 2px;
  background: linear-gradient(90deg, #b5a583, #3b4037 25%, #191d19 80%);
  transform: rotateY(90deg);
  transform-origin: left center;
  pointer-events: none;
}
.pro-browser {
  display: block;
  padding: clamp(3px, .48vw, 7px);
  border: 1px solid #b8aa8d99;
  border-radius: clamp(7px, .87vw, 14px);
  background: linear-gradient(152deg, #363831, #151917 62%);
  box-shadow: 0 12px 25px #07100b83;
}
.pro-browser img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16/10;
  object-fit: cover;
  object-position: top;
  border-radius: 3px;
}
.pro-phone {
  position: absolute;
  z-index: 3;
  right: -.25%;
  bottom: 8.5%;
  width: 21%;
  padding: clamp(2px, .3vw, 5px);
  border: 1px solid #b8aa8dbe;
  border-radius: clamp(8px, 1.3vw, 20px);
  background: linear-gradient(150deg, #373930, #151917 70%);
  box-shadow: -4px 6px 11px #060a08b8;
  transform: rotateX(-5deg);
}
.pro-phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: clamp(5px, .96vw, 15px);
}

@media (min-width: 761px) {
  .carousel.is-ready .professional .story { width: min(37%, 490px); }
}
@media (min-width: 761px) and (max-width: 1040px) {
  .carousel.is-ready .racinae .story { width: 35%; }
  .carousel.is-ready .racinae .album-stage { inset-inline-start: 42%; }
}
@media (max-width: 760px) {
  body { --page-gutter: clamp(16px, 4vw, 26px); }
  .ac-masthead {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 24px var(--page-gutter) 16px;
  }
  .ac-brand { width: clamp(105px, 30vw, 140px); }
  .ac-news { position: static; }
  .opening { padding: clamp(29px, 6vw, 44px) var(--page-gutter) clamp(30px, 6vw, 44px); }
  .opening h1 { font-size: clamp(36px, 9.4vw, 53px); }
  .ac-intro { max-width: 43ch; margin-top: 16px; }
  .carousel-tabs {
    width: min(100%, 500px);
    grid-template-columns: minmax(0, 1.55fr) repeat(4, minmax(max-content, 1fr));
    margin-bottom: 15px;
  }
  .carousel-tabs button {
    padding-inline: 4px;
    font-size: clamp(.75rem, 3.2vw, .88rem);
  }
  .carousel-gesture { max-width: 12ch; }
  .carousel-navigation { gap: 8px; }
  .carousel.is-ready .professional .pro-visual {
    grid-template-rows: var(--art-height) 1fr;
    background:
      radial-gradient(ellipse 78% calc(var(--art-height) * .61) at 66% calc(var(--art-height) * .29), #6d6a4d, transparent),
      linear-gradient(180deg, #25362a, #121d17 calc(var(--art-height) + 18px));
  }
  .carousel.is-ready .professional .pro-project {
    width: min(84%, calc(var(--art-height) * 1.19));
    margin: 0 auto;
    transform: perspective(550px) rotateY(-22deg);
  }
  .pro-display { top: 2.5%; }
}
@media (prefers-reduced-motion: no-preference) {
  .opening-lead, .opening h1 em {
    animation: opening-reveal .95s cubic-bezier(.2, .67, .3, 1) both;
  }
  .opening-lead { display: inline-block; }
  .opening h1 em { animation-delay: .16s; }
  .intro-letter:not(.is-written) { opacity: 0; }
  .opening-stroke path {
    stroke-dasharray: 100 100;
    animation: opening-ink 1.12s .42s cubic-bezier(.3, .55, .28, 1) both;
  }
}
@keyframes opening-reveal {
  from { opacity: 0; translate: 0 .18em; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes opening-ink {
  from { stroke-dashoffset: 100; }
  to { stroke-dashoffset: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .carousel-tabs button, .carousel-tabs button::after { transition: none; }
}
