:root {
  --bg: #0b0b0d;
  --chrome-ink: #f4f4f2;
  --chrome-muted: #9a9aa3;
  --header-h: 4.6rem;
  --footer-h: 2.6rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --duration: 520ms;

  --maciej-bg: #070708;
  --maciej-elev: #0e0e10;
  --maciej-ink: #f5f5f5;
  --maciej-muted: #8b8b96;
  --maciej-lime: #c8f542;
  --maciej-lime-deep: #a8d12a;

  --it-bg: #070708;
  --it-elev: #0e0e10;
  --it-surface: #121218;
  --it-ink: #f5f5f5;
  --it-muted: #8b8b96;
  --it-lime: #c8f542;
  --it-cyan: #5eead4;
  --it-ok: #86efac;
  --it-warn: #fbbf24;

  --ola-cream: #faf5e5;
  --ola-cream-2: #f0e6c5;
  --ola-beige: #ddcdb2;
  --ola-ink: #141004;
  --ola-ink-2: #222222;
  --ola-white: #ffffff;

  --rosalie-bg: #f8f5ef;
  --rosalie-surface: #fff8ea;
  --rosalie-navy: #2d478a;
  --rosalie-coral: #ee6a52;
  --rosalie-gold: #ffbe2e;
  --rosalie-teal: #1e8584;
  --rosalie-ink: #2b2a3a;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  height: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  color: var(--chrome-ink);
  background: var(--bg);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid #c8f542;
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 100;
  padding: 0.55rem 0.9rem;
  background: #c8f542;
  color: #070708;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 0.75rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* —— Chrome —— */
.site-header {
  flex: 0 0 auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.1rem;
  border-bottom: 1px solid rgba(245, 245, 245, 0.07);
  background: rgba(11, 11, 13, 0.96);
}

.site-header__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.28rem;
  text-align: center;
  max-width: 46rem;
}

.wordmark {
  margin: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  font-family: "Bricolage Grotesque", "IBM Plex Sans", sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.wordmark__the {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--chrome-muted);
  font-weight: 700;
}

.wordmark__name {
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  color: var(--chrome-ink);
}

.site-tagline {
  margin: 0;
  color: var(--chrome-muted);
  font-size: clamp(0.82rem, 1.1vw, 0.95rem);
  letter-spacing: 0.01em;
  max-width: 40ch;
}

.site-footer {
  flex: 0 0 auto;
  min-height: var(--footer-h);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.55rem 1.4rem;
  padding: 0.55rem 1rem;
  border-top: 1px solid rgba(245, 245, 245, 0.07);
  color: var(--chrome-muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.site-footer__copy {
  margin: 0;
}

.site-footer__links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
}

.site-footer__links a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.site-footer__links a:hover,
.site-footer__links a:focus-visible {
  color: var(--chrome-ink);
  border-bottom-color: rgba(244, 244, 242, 0.35);
}

.hub {
  flex: 1 1 auto;
  display: flex;
  min-height: 0;
  height: 100%;
  padding: 0.55rem;
}

.panels {
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 0;
  gap: 0.45rem;
}

.panel {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  isolation: isolate;
  opacity: 0;
  transform: translateY(1.1rem);
  animation: panel-in 700ms var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * 90ms + 60ms);
  transition:
    flex-grow var(--duration) var(--ease),
    flex-basis var(--duration) var(--ease);
}

@keyframes panel-in {
  to {
    opacity: 1;
    transform: none;
  }
}

/* —— Collapsed strip —— */
.panel__strip {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.05rem;
  padding: 1.1rem 0.4rem;
  pointer-events: none;
  opacity: 1;
  transition: opacity calc(var(--duration) * 0.65) var(--ease);
}

.panel__strip .strip-name {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.05;
}

.strip-preview {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.55;
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 320ms var(--ease),
    opacity 320ms var(--ease);
}

.panel:hover .strip-preview,
.panel:focus-visible .strip-preview {
  max-height: 12rem;
  opacity: 0.85;
}

.panel__inner {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  grid-template-rows: 1fr;
  gap: clamp(0.85rem, 1.6vw, 1.6rem);
  padding: clamp(1.1rem, 2.2vw, 2rem);
  opacity: 0;
  transform: translateY(0.55rem);
  pointer-events: none;
  transition:
    opacity calc(var(--duration) * 0.8) var(--ease),
    transform calc(var(--duration) * 0.8) var(--ease);
}

.panel__copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: clamp(0.55rem, 1.2vh, 0.9rem);
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.panel__copy > :first-child {
  margin-top: 0;
}

.panel__desc {
  margin: 0;
  max-width: 34ch;
}

.panel__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  font-weight: 600;
  font-size: 0.95rem;
  width: fit-content;
}

.panel__visual {
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.panel__media {
  margin: 0;
  overflow: hidden;
  min-height: 0;
  flex: 1 1 auto;
  height: 100%;
}

.panel__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Expanded */
.panel:hover,
.panel:focus-visible,
.panel.is-active {
  flex-grow: 3.8;
}

.panels:hover .panel:not(:hover):not(:focus-visible):not(.is-active),
.panels:focus-within .panel:not(:hover):not(:focus-visible):not(.is-active) {
  flex-grow: 0.62;
}

.panel:hover .panel__strip,
.panel:focus-visible .panel__strip,
.panel.is-active .panel__strip {
  opacity: 0;
}

.panel:hover .panel__inner,
.panel:focus-visible .panel__inner,
.panel.is-active .panel__inner {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

/* =========================================
   MACIEJ
   ========================================= */
.panel--maciej {
  background:
    linear-gradient(160deg, rgba(200, 245, 66, 0.08), transparent 40%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 47px,
      rgba(245, 245, 245, 0.028) 47px,
      rgba(245, 245, 245, 0.028) 48px
    ),
    var(--maciej-bg);
  color: var(--maciej-ink);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
}

.panel--maciej:focus-visible {
  outline-color: var(--maciej-lime);
}

.panel--maciej .strip-prompt {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  color: var(--maciej-lime);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  letter-spacing: 0.04em;
}

.panel--maciej .strip-cursor {
  width: 0.58rem;
  height: 1.15rem;
  background: var(--maciej-lime);
  box-shadow: 0 0 12px rgba(200, 245, 66, 0.45);
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.panel--maciej .strip-name {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(1.2rem, 2.1vw, 1.55rem);
  color: var(--maciej-lime);
}

.panel--maciej .strip-preview {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  color: var(--maciej-muted);
}

.panel--maciej .panel__mono {
  margin: 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--maciej-lime);
}

.panel--maciej .panel__title {
  margin: 0;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: clamp(2.4rem, 4.6vw, 5.4rem);
  letter-spacing: -0.045em;
  line-height: 0.92;
  max-width: 11ch;
}

.panel--maciej .lime {
  color: var(--maciej-lime);
}

.panel--maciej .panel__desc {
  color: var(--maciej-muted);
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
}

.panel--maciej .panel__hand {
  margin: 0;
  font-family: "Caveat", cursive;
  font-weight: 600;
  font-size: clamp(1.35rem, 1.8vw, 1.7rem);
  color: var(--maciej-lime-deep);
  transform: rotate(-2deg);
  max-width: 18ch;
}

.panel--maciej .panel__points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.82rem;
  color: var(--maciej-muted);
}

.panel--maciej .panel__points li::before {
  content: "› ";
  color: var(--maciej-lime);
}

.panel--maciej .motif-term {
  flex: 1 1 auto;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.12rem;
  background: var(--maciej-elev);
  border: 1px solid rgba(200, 245, 66, 0.22);
  padding: clamp(0.9rem, 1.5vw, 1.25rem);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: clamp(0.78rem, 1.05vw, 0.95rem);
  min-height: 0;
  overflow: hidden;
}

.panel--maciej .motif-term .term-chrome {
  margin-bottom: 0.35rem;
}

.panel--maciej .motif-term .term-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.12rem;
  min-height: 0;
}

.panel--maciej .term-chrome {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.7rem;
  color: var(--maciej-muted);
}

.panel--maciej .term-chrome span {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #2a2a2a;
}

.panel--maciej .term-chrome span:nth-child(1) {
  background: #ff5f57;
}
.panel--maciej .term-chrome span:nth-child(2) {
  background: #febc2e;
}
.panel--maciej .term-chrome span:nth-child(3) {
  background: #28c840;
}

.panel--maciej .term-chrome p {
  margin: 0 0 0 auto;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.panel--maciej .term-line,
.panel--maciej .term-out {
  margin: 0.12rem 0 0;
}

.panel--maciej .term-prompt {
  color: var(--maciej-lime);
}

.panel--maciej .term-out {
  color: var(--maciej-muted);
  padding-left: 0.15rem;
}

.panel--maciej .term-cursor {
  display: inline-block;
  width: 0.55em;
  height: 1em;
  vertical-align: text-bottom;
  background: var(--maciej-lime);
  animation: blink 1.1s steps(1) infinite;
}

.panel--maciej .panel__cta {
  color: var(--maciej-lime);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* =========================================
   IT
   ========================================= */
.panel--it {
  background:
    radial-gradient(ellipse 70% 45% at 90% 0%, rgba(94, 234, 212, 0.14), transparent 50%),
    linear-gradient(180deg, var(--it-elev), var(--it-bg));
  color: var(--it-ink);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
}

.panel--it:focus-visible {
  outline-color: var(--it-cyan);
}

.panel--it .strip-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--it-ok);
  box-shadow: 0 0 10px rgba(134, 239, 172, 0.55);
}

.panel--it .strip-name {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  color: var(--it-lime);
}

.panel--it .strip-cyan {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--it-cyan);
}

.panel--it .strip-preview {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  color: var(--it-muted);
}

.panel--it .panel__mono {
  margin: 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--it-cyan);
}

.panel--it .panel__title {
  margin: 0;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: clamp(2.1rem, 4.2vw, 4.6rem);
  letter-spacing: -0.04em;
  line-height: 0.95;
  max-width: 13ch;
}

.panel--it .panel__desc {
  color: var(--it-muted);
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
}

.panel--it .motif-care {
  background: var(--it-surface);
  border: 1px solid rgba(94, 234, 212, 0.22);
  padding: 0.85rem 1rem;
  width: fit-content;
  max-width: 100%;
  height: fit-content;
  flex: 0 0 auto;
  align-self: flex-start;
}

.panel--it .care-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.panel--it .care-label {
  margin: 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--it-lime);
}

.panel--it .care-badge {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--it-warn);
  border: 1px solid rgba(251, 191, 36, 0.35);
  padding: 0.18rem 0.45rem;
}

.panel--it .care-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.48rem;
  font-size: clamp(0.92rem, 1.1vw, 1.05rem);
  color: #c8c8ce;
}

.panel--it .care-list li {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.panel--it .care-ok {
  color: var(--it-ok);
  flex: 0 0 auto;
}

.panel--it .care-next {
  color: var(--it-cyan);
  flex: 0 0 auto;
}

.panel--it .panel__media {
  border: 1px solid rgba(94, 234, 212, 0.22);
  background: var(--it-surface);
}

.panel--it .panel__media img {
  object-position: center 18%;
}

.panel--it .panel__cta {
  color: var(--it-cyan);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* =========================================
   OH LA LENS
   ========================================= */
.panel--ola {
  background: linear-gradient(180deg, var(--ola-cream), var(--ola-cream-2));
  color: var(--ola-ink);
  font-family: "Karla", system-ui, sans-serif;
  font-weight: 300;
}

.panel--ola:focus-visible {
  outline-color: var(--ola-ink);
}

.panel--ola .strip-photo {
  width: 78%;
  max-width: 4.6rem;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border: 1px solid rgba(20, 16, 4, 0.12);
  background: var(--ola-white);
}

.panel--ola .strip-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.panel--ola .strip-name {
  font-family: "Rozha One", "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  color: var(--ola-ink);
  letter-spacing: 0.01em;
}

.panel--ola .strip-preview {
  font-family: "Karla", sans-serif;
  color: rgba(20, 16, 4, 0.55);
}

.panel--ola .panel__inner {
  grid-template-columns: minmax(15rem, 0.72fr) minmax(0, 1.28fr);
}

.panel--ola .panel__eyebrow {
  margin: 0;
  font-family: "Karla", sans-serif;
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(20, 16, 4, 0.55);
}

.panel--ola .panel__title {
  margin: 0;
  font-family: "Rozha One", "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(2.4rem, 4.8vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  color: var(--ola-ink);
}

.panel--ola .panel__desc {
  color: var(--ola-ink-2);
  font-size: clamp(1.08rem, 1.35vw, 1.28rem);
  font-weight: 300;
  max-width: 28ch;
}

.panel--ola .motif-photos {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr 0.85fr;
  grid-template-rows: 1fr 1fr 1fr;
  gap: 0.4rem;
  height: 100%;
  min-height: 0;
}

.panel--ola .motif-photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  background: var(--ola-white);
  border: 1px solid rgba(20, 16, 4, 0.08);
  min-height: 0;
}

.panel--ola .motif-photos img:nth-child(1) {
  grid-row: 1 / span 2;
}

.panel--ola .motif-photos img:nth-child(4) {
  grid-column: 1;
  grid-row: 3;
}

.panel--ola .motif-photos img:nth-child(5) {
  grid-column: 2;
  grid-row: 3;
}

.panel--ola .motif-photos img:nth-child(6) {
  grid-column: 3;
  grid-row: 3;
}

.panel--ola .panel__cta {
  color: var(--ola-ink);
  font-family: "Karla", sans-serif;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.86rem;
  border-bottom: 1px solid var(--ola-beige);
  padding-bottom: 0.15rem;
}

/* =========================================
   HEY ROSALIE
   ========================================= */
.panel--rosalie {
  background:
    radial-gradient(ellipse 55% 40% at 20% 0%, rgba(255, 190, 46, 0.22), transparent 55%),
    linear-gradient(180deg, var(--rosalie-surface), var(--rosalie-bg));
  color: var(--rosalie-ink);
  font-family: "Alegreya Sans", system-ui, sans-serif;
}

.panel--rosalie:focus-visible {
  outline-color: var(--rosalie-navy);
}

.panel--rosalie .strip-wm {
  position: relative;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: "Alegreya", Georgia, serif;
  font-weight: 800;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  color: var(--rosalie-navy);
  letter-spacing: -0.02em;
  padding-right: 0.4rem;
}

.panel--rosalie .strip-underline {
  position: absolute;
  left: 0.15rem;
  top: 8%;
  bottom: 8%;
  width: 0.2rem;
  border-radius: 999px;
  background: var(--rosalie-coral);
}

.panel--rosalie .strip-preview {
  font-family: "Alegreya Sans", sans-serif;
  color: var(--rosalie-teal);
}

.panel--rosalie .panel__eyebrow {
  margin: 0;
  font-family: "Alegreya Sans", sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rosalie-teal);
}

.panel--rosalie .panel__wordmark {
  width: min(100%, 280px);
  height: auto;
  margin: 0;
}

.panel--rosalie .panel__title {
  margin: 0;
  font-family: "Alegreya", Georgia, serif;
  font-weight: 800;
  font-size: clamp(2.1rem, 4.2vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--rosalie-navy);
  max-width: 12ch;
}

.panel--rosalie .panel__desc {
  color: var(--rosalie-ink);
  font-size: clamp(1.08rem, 1.3vw, 1.25rem);
  max-width: 32ch;
}

.panel--rosalie .feature-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.panel--rosalie .feature-chips li {
  padding: 0.38rem 0.7rem;
  border: 1.5px solid rgba(45, 71, 138, 0.18);
  background: rgba(255, 255, 255, 0.55);
  color: var(--rosalie-navy);
  font-weight: 700;
  font-size: 0.88rem;
}

.panel--rosalie .feature-chips li:nth-child(2) {
  border-color: rgba(238, 106, 82, 0.35);
  color: var(--rosalie-coral);
}

.panel--rosalie .feature-chips li:nth-child(3) {
  border-color: rgba(30, 133, 132, 0.35);
  color: var(--rosalie-teal);
}

.panel--rosalie .feature-chips li:nth-child(4) {
  border-color: rgba(255, 190, 46, 0.55);
  color: #a67a00;
}

.panel--rosalie .panel__visual {
  align-items: center;
  justify-content: center;
}

.panel--rosalie .panel__media--app {
  width: min(100%, 22rem);
  height: min(100%, 72%);
  min-height: 60%;
  border: 1px solid rgba(45, 71, 138, 0.16);
  background: var(--rosalie-surface);
  border-radius: 1.35rem;
  overflow: hidden;
  box-shadow: 0 22px 48px rgba(45, 71, 138, 0.14);
  aspect-ratio: 9 / 19.5;
  flex: 0 1 auto;
}

.panel--rosalie .panel__media--app img {
  object-position: top center;
}

.panel--rosalie .panel__cta {
  color: var(--rosalie-navy);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.28em;
}

/* =========================================
   Mobile accordion ≤768px
   ========================================= */
@media (hover: none) {
  .panels:hover .panel {
    flex-grow: 1;
  }

  .panel:hover {
    flex-grow: 1;
  }

  .panel.is-active {
    flex-grow: 3.8;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 5.2rem;
    --footer-h: 4.2rem;
    --strip-h: 3.6rem;
  }

  body {
    height: auto;
    overflow: auto;
  }

  .site-header {
    padding: 0.75rem 0.9rem;
  }

  .hub {
    padding: 0.4rem;
    height: auto;
  }

  .panels {
    flex-direction: column;
    height: auto;
    min-height: calc(100dvh - var(--header-h) - var(--footer-h) - 0.8rem);
    gap: 0.35rem;
  }

  .panel {
    flex: 0 0 auto;
    height: var(--strip-h);
    min-height: var(--strip-h);
    transition:
      height var(--duration) var(--ease),
      min-height var(--duration) var(--ease);
  }

  .panel__strip {
    flex-direction: row;
    justify-content: flex-start;
    padding: 0 0.9rem;
    gap: 0.65rem;
  }

  .panel__strip .strip-name,
  .panel--maciej .strip-prompt,
  .panel--it .strip-cyan,
  .panel--rosalie .strip-wm,
  .strip-preview {
    writing-mode: horizontal-tb;
    transform: none;
  }

  .panel--maciej .strip-prompt,
  .panel--it .strip-cyan {
    display: none;
  }

  .strip-preview {
    max-height: none;
    opacity: 0.7;
    margin-left: auto;
  }

  .panel--rosalie .strip-underline {
    left: 0;
    right: 0;
    top: auto;
    bottom: -0.2rem;
    width: auto;
    height: 0.16rem;
  }

  .panel--ola .strip-photo {
    width: 2.2rem;
    max-width: none;
    aspect-ratio: 1;
  }

  .panels:hover .panel,
  .panels:focus-within .panel,
  .panel:hover {
    flex-grow: 0;
  }

  .panel.is-active {
    flex: 0 0 auto;
    height: auto;
    min-height: calc(100dvh - var(--header-h) - var(--footer-h) - (3 * var(--strip-h)) - 2.2rem);
  }

  .panel:not(.is-active) .panel__inner {
    opacity: 0;
    pointer-events: none;
  }

  .panel.is-active .panel__strip {
    opacity: 0;
  }

  .panel.is-active .panel__inner {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .panel__inner,
  .panel--ola .panel__inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 0.7rem;
    padding: 0.9rem;
    height: auto;
  }

  .panel__copy {
    gap: 0.5rem;
    height: auto;
    justify-content: flex-start;
  }

  .panel__visual {
    height: auto;
  }

  .panel__cta {
    margin-top: 0.35rem;
  }

  .panel--maciej .panel__title,
  .panel--it .panel__title,
  .panel--ola .panel__title,
  .panel--rosalie .panel__title {
    font-size: clamp(1.85rem, 8.5vw, 2.7rem);
  }

  .panel--maciej .panel__points {
    display: none;
  }

  .panel--maciej .motif-term {
    font-size: 0.72rem;
    min-height: 15rem;
    height: auto;
    justify-content: flex-start;
  }

  .panel--it .motif-care {
    width: 100%;
  }

  .panel--it .care-list {
    gap: 0.38rem;
    font-size: 0.9rem;
  }

  .panel--it .panel__media {
    min-height: 14rem;
    height: 14rem;
    flex: none;
  }

  .panel--ola .motif-photos {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    min-height: 16rem;
    height: 16rem;
  }

  .panel--ola .motif-photos img:nth-child(1),
  .panel--ola .motif-photos img:nth-child(4),
  .panel--ola .motif-photos img:nth-child(5),
  .panel--ola .motif-photos img:nth-child(6) {
    grid-column: auto;
    grid-row: auto;
  }

  .panel--ola .motif-photos img:nth-child(n + 5) {
    display: none;
  }

  .panel--rosalie .panel__visual {
    min-height: 20rem;
    height: 22rem;
  }

  .panel--rosalie .panel__media--app {
    width: min(58%, 14rem);
    height: 100%;
    min-height: 0;
    max-height: 100%;
    aspect-ratio: auto;
  }

  .panel--rosalie .feature-chips {
    gap: 0.35rem;
  }

  .panel--rosalie .feature-chips li {
    font-size: 0.78rem;
    padding: 0.3rem 0.55rem;
  }

  .site-footer {
    flex-direction: column;
    gap: 0.45rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .panel {
    opacity: 1;
    transform: none;
  }

  .panel--maciej .strip-cursor,
  .panel--maciej .term-cursor {
    animation: none;
  }
}
