/* KISSED Ecosystem gateway (kissedbycvon.com)
   Plain CSS, no build step. Palette: black, royal purple, silver, white, hint of botanical green. */

:root {
  --black: #07060a;
  --ink: #0e0c13;
  --panel: #14111b;
  --line: rgba(214, 208, 228, 0.14);
  --silver: #d9d6e0;
  --silver-dim: #9d98aa;
  --white: #f7f5fa;
  --purple: #7b3fe4;
  --purple-glow: #a46cff;
  --purple-deep: #3d1a78;
  --green: #6f8f5e;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--black); color: var(--silver);
  font-family: var(--sans); font-weight: 300; font-size: 17px; line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--purple-glow); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--white); color: var(--black); padding: 8px 14px; }
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 56px);
  background: linear-gradient(to bottom, rgba(7, 6, 10, 0.85), rgba(7, 6, 10, 0));
}
.wordmark {
  font-family: var(--serif); font-weight: 500; font-size: 28px; letter-spacing: 0.32em;
  text-decoration: none; color: var(--white);
  background: linear-gradient(180deg, #ffffff 0%, #cfcad9 55%, #8f899c 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.wordmark .ss { -webkit-text-fill-color: var(--purple-glow); }
.wordmark img { height: clamp(44px, 6vw, 62px); width: auto; }

.nav-toggle {
  background: none; border: 0; padding: 10px; cursor: pointer; color: var(--white);
  display: inline-flex; flex-direction: column; gap: 6px;
}
.nav-toggle span { width: 28px; height: 1.5px; background: currentColor; transition: transform .35s var(--ease), opacity .2s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.site-nav {
  position: fixed; inset: 0; z-index: 35; display: grid; place-content: center; gap: 18px; text-align: center;
  background: rgba(7, 6, 10, 0.97); opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
}
.nav-open .site-nav { opacity: 1; visibility: visible; }
.site-nav a {
  font-family: var(--serif); font-size: clamp(30px, 6vw, 46px); color: var(--white); text-decoration: none; letter-spacing: 0.06em;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--purple-glow); }
.site-nav .contact { margin-top: 18px; font-family: var(--sans); font-size: 14px; letter-spacing: 0.14em; color: var(--silver-dim); }
.site-nav .contact a { font-family: var(--sans); font-size: 14px; color: var(--silver-dim); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 15px 34px; border: 1px solid rgba(255, 255, 255, 0.75);
  color: var(--white); text-decoration: none; text-transform: uppercase; letter-spacing: 0.32em; font-size: 13px; font-weight: 400;
  background: rgba(7, 6, 10, 0.35); backdrop-filter: blur(4px); cursor: pointer; font-family: var(--sans);
  transition: background .35s var(--ease), border-color .35s, box-shadow .35s;
}
.btn:hover { background: rgba(123, 63, 228, 0.35); border-color: var(--purple-glow); box-shadow: 0 0 28px rgba(164, 108, 255, 0.45); }
.btn--solid { background: var(--purple); border-color: var(--purple); }
.btn--solid:hover { background: var(--purple-glow); }
.link-arrow { color: var(--purple-glow); text-decoration: none; letter-spacing: 0.2em; text-transform: uppercase; font-size: 13px; }
.link-arrow:hover { color: var(--white); }

/* ---------- Entrance (home) ----------
   The doors open and the camera walks through the doorway into the corridor.
   .stage is sized like the photo (1537 x 1023) and covers the screen, so the door leaves can be
   cut out of the photo in its own percentages: door opening x 33.8%-66.2%, y 17.2%-84.8%. */
.entrance { position: fixed; inset: 0; overflow: hidden; background: var(--black); perspective: 1400px; }
.beyond { position: absolute; inset: 0; }
.beyond-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%;
  transform: scale(1.5); filter: brightness(.55); transform-origin: 50% 52%; }
.stage {
  --w: max(100vw, calc(100vh * 1.5024));
  position: absolute; left: 50%; top: 50%; width: var(--w); height: calc(var(--w) / 1.5024);
  transform: translate(-50%, -50%); transform-origin: 50% 51%; perspective: 1400px;
}
.layer, .layer picture, .stage-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage-img { object-fit: fill; user-select: none; }
/* The wall and frame, with the door opening cut out (even-odd: outer box minus the door). */
.frame { clip-path: polygon(evenodd, 0 0, 100% 0, 100% 100%, 0 100%, 0 0, 33.8% 17.2%, 33.8% 84.8%, 66.2% 84.8%, 66.2% 17.2%, 33.8% 17.2%); }
.leaf-door { backface-visibility: hidden; }
.leaf-door-l { clip-path: inset(17.2% 50% 15.2% 33.8%); transform-origin: 33.8% 50%; }
.leaf-door-r { clip-path: inset(17.2% 33.8% 15.2% 50%); transform-origin: 66.2% 50%; }
.glow { position: absolute; left: 50%; top: 17.2%; bottom: 15.2%; width: 2px; transform: translateX(-50%); opacity: 0;
  background: linear-gradient(to bottom, transparent, #cfb3ff 20%, #fff 50%, #cfb3ff 80%, transparent);
  box-shadow: 0 0 30px 10px rgba(164, 108, 255, .7); }
.arrive { position: absolute; inset: 0; opacity: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 55%, rgba(7,6,10,.45) 0%, rgba(7,6,10,.7) 60%, rgba(7,6,10,.92) 100%); }

.entrance-cta {
  position: absolute; left: 0; right: 0; bottom: clamp(96px, 15vh, 170px); text-align: center; z-index: 5;
  transition: opacity .45s, transform .45s var(--ease);
}
.entrance-tagline {
  display: table; margin: 22px auto 0; padding: 8px 26px;
  font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(24px, 2.8vw, 34px);
  color: #fff; letter-spacing: 0.02em;
  text-shadow: 0 0 2px #000, 0 2px 10px rgba(0, 0, 0, 1), 0 0 28px rgba(0, 0, 0, .95), 0 0 34px rgba(164, 108, 255, .35);
  background: radial-gradient(ellipse at center, rgba(7, 6, 10, .78) 0%, rgba(7, 6, 10, .55) 55%, rgba(7, 6, 10, 0) 78%);
}

/* The walk-in (about 2.8 s): seam flares, doors swing inward, camera moves through the doorway,
   the corridor comes forward to exactly where the Ecosystem page begins. */
.entering .entrance-cta, .entering .site-header { opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .35s; }
.entering .glow { animation: walk-glow 1.1s ease forwards; }
@keyframes walk-glow { 0% { opacity: 0; } 35% { opacity: 1; } 100% { opacity: 0; } }
.entering .leaf-door-l { animation: leaf-l 1.35s cubic-bezier(.55, .05, .25, 1) .25s forwards; }
.entering .leaf-door-r { animation: leaf-r 1.35s cubic-bezier(.55, .05, .25, 1) .25s forwards; }
@keyframes leaf-l { to { transform: rotateY(78deg); } }
@keyframes leaf-r { to { transform: rotateY(-78deg); } }
.entering .stage { animation: walk-in 2.5s cubic-bezier(.5, 0, .2, 1) .55s forwards; }
@keyframes walk-in {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  70% { opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(3.4); opacity: 0; }
}
.entering .beyond-img { animation: corridor-in 2.6s cubic-bezier(.5, 0, .2, 1) .45s forwards; }
@keyframes corridor-in { to { transform: scale(1.06); filter: brightness(1); } }
.entering .arrive { animation: arrive 0.8s ease 2.2s forwards; }
@keyframes arrive { to { opacity: 1; } }

/* ---------- Inner pages ---------- */
main { display: block; }
.page-hero { padding: clamp(130px, 18vh, 190px) clamp(20px, 6vw, 80px) 40px; text-align: center; position: relative; }
.eyebrow { font-size: 12px; letter-spacing: 0.42em; text-transform: uppercase; color: var(--purple-glow); margin: 0 0 18px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--white); line-height: 1.12; margin: 0; }
h1 { font-size: clamp(40px, 6.4vw, 76px); letter-spacing: 0.01em; }
h2 { font-size: clamp(32px, 4.4vw, 52px); }
h3 { font-size: clamp(26px, 2.6vw, 32px); }
.lead { max-width: 640px; margin: 22px auto 0; font-size: clamp(17px, 1.6vw, 19px); color: var(--silver); }
.section { padding: clamp(56px, 9vw, 110px) clamp(20px, 6vw, 80px); }
.wrap { max-width: 1160px; margin: 0 auto; }
.center { text-align: center; }
.rule { width: 64px; height: 1px; background: var(--purple-glow); margin: 28px auto; border: 0; }

/* Door navigator band */
.navigator {
  max-width: 860px; margin: 0 auto; padding: clamp(28px, 4vw, 44px); text-align: center;
  border: 1px solid var(--line); background: linear-gradient(160deg, rgba(123, 63, 228, .14), rgba(20, 17, 27, .6));
}
.navigator p { margin: 14px auto 26px; max-width: 620px; }

/* Doors grid */
.doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.door-card {
  position: relative; display: flex; flex-direction: column; padding: 38px 32px 34px; min-height: 360px;
  background: linear-gradient(180deg, #15121c 0%, #0b0a0f 100%); border: 1px solid var(--line);
  text-decoration: none; overflow: hidden; transition: transform .45s var(--ease), border-color .45s, box-shadow .45s;
}
.door-card::before { /* the glowing seam of a door */
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; transform: translateX(-50%);
  background: linear-gradient(to bottom, transparent, rgba(164, 108, 255, .55), transparent); opacity: .35; transition: opacity .45s, box-shadow .45s;
}
.door-card:hover { transform: translateY(-6px); border-color: rgba(164, 108, 255, .55); box-shadow: 0 18px 50px rgba(0, 0, 0, .5), 0 0 40px rgba(123, 63, 228, .18); }
.door-card:hover::before { opacity: 1; box-shadow: 0 0 18px 2px rgba(164, 108, 255, .5); }
.door-card > * { position: relative; }
.door-verb { font-size: 13px; letter-spacing: 0.5em; color: var(--purple-glow); text-transform: uppercase; }
.door-line { font-family: var(--serif); font-size: 30px; color: var(--white); margin: 10px 0 16px; line-height: 1.15; }
.door-name { font-weight: 400; color: var(--white); letter-spacing: 0.04em; margin: 0 0 8px; font-size: 15px; text-transform: uppercase; }
.door-card p { margin: 0 0 26px; color: var(--silver); font-size: 16px; flex: 1; }
.door-go { font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--white); border-top: 1px solid var(--line); padding-top: 16px; }
.door-card:hover .door-go { color: var(--purple-glow); }
.door-card--soon { cursor: default; }
.door-card--soon .door-go { color: var(--silver-dim); }
.door-card--soon:hover { transform: none; }

/* Feature band (Check In With Dr. C) */
.feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; border: 1px solid var(--line); background: var(--ink); }
.feature img { width: 100%; height: 100%; object-fit: cover; object-position: 0% 50%; min-height: 320px; }
.feature-body { padding: clamp(28px, 5vw, 60px); display: flex; flex-direction: column; justify-content: center; }
.feature-body p { margin: 16px 0 28px; }
@media (max-width: 820px) { .feature { grid-template-columns: 1fr; } }

/* Story */
.prose { max-width: 720px; margin: 0 auto; font-size: 18px; }
.prose p { margin: 0 0 1.15em; }
.prose blockquote {
  margin: 1.6em 0; padding: 0 0 0 22px; border-left: 2px solid var(--purple-glow);
  font-family: var(--serif); font-size: 28px; color: var(--white); line-height: 1.3;
}
.cvons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 34px; margin: 26px 0 0; padding: 0; list-style: none; }
.cvons li { font-family: var(--serif); font-size: 24px; color: var(--white); }
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.pillar { padding: 0 0 24px; border: 1px solid var(--line); background: var(--ink); overflow: hidden; }
.pillar-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.pillar-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.pillar h3, .pillar p { padding: 0 22px; }
.pillar h3 { font-size: 26px; letter-spacing: 0.08em; }
.pillar p { margin: 10px 0 0; font-size: 16px; }
.founder { display: grid; grid-template-columns: minmax(260px, 420px) 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.founder img { width: 100%; border: 1px solid var(--line); }
@media (max-width: 820px) { .founder { grid-template-columns: 1fr; } .founder img { max-width: 420px; margin: 0 auto; } }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line); padding: 40px clamp(20px, 6vw, 80px) 48px; text-align: center;
  font-size: 13px; letter-spacing: 0.14em; color: var(--silver-dim);
}
.site-footer a { color: var(--silver); text-decoration: none; }
.site-footer a:hover { color: var(--purple-glow); }
.site-footer p { margin: 6px 0; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Full-bleed image band (Our Story: One Door Led to Another) */
.story-banner { margin: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.story-banner img { width: 100%; height: clamp(320px, 62vh, 720px); object-fit: cover; object-position: 50% 55%; }

/* ---------- Ecosystem: the corridor, the directory, the rooms ---------- */
.corridor { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; overflow: hidden; text-align: center; }
.corridor picture, .corridor-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.corridor-img { object-fit: cover; object-position: 50% 50%; animation: corridor-arrive 2.6s var(--ease) both; }
@keyframes corridor-arrive { from { transform: scale(1.06); } to { transform: none; } }
.corridor::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 55%, rgba(7,6,10,.45) 0%, rgba(7,6,10,.7) 60%, rgba(7,6,10,.92) 100%); }
.corridor-copy { position: relative; z-index: 1; max-width: 760px; padding: 110px 22px 60px; }
.corridor-copy .eyebrow { color: #c9a6ff; }
.corridor-copy h1, .corridor-copy .eyebrow, .corridor-copy .lead { text-shadow: 0 0 2px #000, 0 2px 16px rgba(0,0,0,.95); }
.corridor-copy .lead { color: var(--white); }
.corridor-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 34px; }

/* Directory: six identical boxes */
.directory { background: var(--black); }
.dir-grid { list-style: none; margin: 44px 0 64px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 980px) { .dir-grid { grid-template-columns: repeat(2, 1fr); } }
.dir-grid li { display: flex; }
.dir-box {
  display: flex; flex-direction: column; width: 100%; text-decoration: none; color: inherit;
  background: linear-gradient(180deg, #16121e 0%, #0d0b12 100%); border: 1px solid var(--line);
  transition: transform .45s var(--ease), border-color .45s, box-shadow .45s;
}
.dir-img { display: block; aspect-ratio: 3 / 2; overflow: hidden; border-bottom: 1px solid var(--line); }
.dir-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; transition: transform 1.2s var(--ease), filter 1.2s; }
.dir-text { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.dir-num { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--purple-glow); }
.dir-name { font-family: var(--serif); font-size: 27px; line-height: 1.15; color: var(--white); margin: 8px 0 10px; min-height: 2.3em; }
.dir-for { font-size: 15.5px; line-height: 1.55; color: var(--silver); flex: 1; }
.dir-open { margin-top: 20px; font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--white);
  padding-top: 14px; border-top: 1px solid var(--line); }
.dir-open::after { content: " \2192"; }
.dir-box:hover, .dir-box:focus-visible { transform: translateY(-5px); border-color: rgba(164,108,255,.6); box-shadow: 0 20px 50px rgba(0,0,0,.55), 0 0 40px rgba(123,63,228,.18); }
.dir-box:hover .dir-img img { transform: scale(1.06); filter: brightness(1.12); }
.dir-box:hover .dir-open { color: var(--purple-glow); }
@media (max-width: 640px) {
  .dir-grid { grid-template-columns: 1fr; gap: 14px; }
  .dir-box { flex-direction: row; }
  .dir-img { width: 38%; aspect-ratio: auto; border-bottom: 0; border-right: 1px solid var(--line); }
  .dir-text { padding: 16px 16px 16px; }
  .dir-name { font-size: 21px; min-height: 0; margin: 4px 0 6px; }
  .dir-for { font-size: 14px; }
  .dir-open { margin-top: 12px; padding-top: 10px; font-size: 11px; }
}

/* Rooms. Without JavaScript they read as a stack of sections; with it, a full-screen walk-through. */
.rooms-bar, .leaves { display: none; }
.room { position: relative; min-height: 88vh; display: flex; align-items: center; overflow: hidden; border-top: 1px solid var(--line); }
.room-scene, .room-scene img { position: absolute; inset: 0; width: 100%; height: 100%; }
.room-scene img { object-fit: cover; object-position: 100% 50%; }
.room-panel {
  position: relative; z-index: 1; width: min(520px, calc(100% - 40px)); margin-left: clamp(20px, 6vw, 96px);
  padding: clamp(28px, 3.4vw, 44px); background: rgba(10, 8, 14, .74); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .12); border-top: 2px solid var(--purple-glow);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
.room-num { margin: 0; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--silver-dim); }
.room-verb { margin: 14px 0 0; font-size: 13px; letter-spacing: .5em; text-transform: uppercase; color: var(--purple-glow); }
.room-name { font-size: clamp(32px, 3.4vw, 44px); margin: 8px 0 18px; }
.room-for { margin: 0 0 14px; font-family: var(--serif); font-size: clamp(21px, 2vw, 25px); line-height: 1.3; color: var(--white); }
.room-for span { display: block; font-family: var(--sans); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--silver-dim); margin-bottom: 6px; }
.room-desc { margin: 0 0 28px; font-size: 16px; color: var(--silver); }
.room-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.room-soon { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--silver-dim); border: 1px solid var(--line); padding: 14px 20px; }
.room-ask { color: var(--purple-glow); font-size: 14px; }
.room-next { display: none; }

.js-rooms .rooms { position: fixed; inset: 0; z-index: 60; background: var(--black); visibility: hidden; opacity: 0; transition: opacity .5s var(--ease), visibility .5s; }
.js-rooms.rooms-open .rooms { visibility: visible; opacity: 1; }
.js-rooms.rooms-open { overflow: hidden; }
.js-rooms .room { position: absolute; inset: 0; min-height: 0; border: 0; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; }
.js-rooms .room.is-current { opacity: 1; visibility: visible; }
.js-rooms .room.is-current .room-scene img { animation: room-drift 14s ease-out both; }
@keyframes room-drift { from { transform: scale(1.12) translateX(1.5%); } to { transform: scale(1.02); } }
.js-rooms .room-panel { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease) .55s, transform .7s var(--ease) .55s; }
.js-rooms .room.is-current .room-panel { opacity: 1; transform: none; }
.js-rooms .room-next {
  display: inline-block; margin-top: 26px; background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--white); font: 400 12px var(--sans); letter-spacing: .26em; text-transform: uppercase;
}
.js-rooms .room-next:hover { color: var(--purple-glow); }

.js-rooms .rooms-bar {
  display: flex; align-items: center; gap: 18px; position: absolute; z-index: 5; inset: 0 0 auto 0;
  padding: 16px clamp(16px, 4vw, 48px); background: linear-gradient(to bottom, rgba(7,6,10,.92), rgba(7,6,10,0));
}
.rooms-close { background: none; border: 1px solid rgba(255,255,255,.35); color: var(--white); cursor: pointer; padding: 10px 16px;
  font: 400 12px var(--sans); letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; }
.rooms-close:hover { border-color: var(--purple-glow); color: var(--purple-glow); }
.rooms-rail { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.rail-door { background: none; border: 0; border-bottom: 2px solid transparent; color: var(--silver-dim); cursor: pointer;
  padding: 8px 12px; font: 400 12px var(--sans); letter-spacing: .18em; text-transform: uppercase; display: flex; gap: 8px; white-space: nowrap; }
.rail-num { color: var(--purple-glow); }
.rail-door:hover { color: var(--white); }
.rail-door[aria-current="true"] { color: var(--white); border-bottom-color: var(--purple-glow); }

/* The door leaves that swing open onto each room */
.js-rooms .leaves { display: block; position: absolute; inset: 0; z-index: 4; pointer-events: none; perspective: 1600px; }
.leaf { position: absolute; top: 0; bottom: 0; width: 50%;
  background:
    linear-gradient(90deg, rgba(255,255,255,.05), rgba(255,255,255,0) 30%),
    repeating-linear-gradient(180deg, transparent 0 22%, rgba(214,208,228,.10) 22% 22.3%, transparent 22.3% 50%),
    linear-gradient(180deg, #121017, #07060a);
  transition: transform 1s cubic-bezier(.65, 0, .35, 1), opacity .25s ease; backface-visibility: hidden; }
.leaf-l { left: 0; transform-origin: left center; box-shadow: inset -2px 0 0 rgba(164,108,255,.9), inset -18px 0 40px rgba(123,63,228,.35); }
.leaf-r { right: 0; transform-origin: right center; box-shadow: inset 2px 0 0 rgba(164,108,255,.9), inset 18px 0 40px rgba(123,63,228,.35); }
.leaves.is-open .leaf { opacity: 0; transition: transform 1s cubic-bezier(.65, 0, .35, 1), opacity .45s ease .5s; }
.leaves.is-open .leaf-l { transform: rotateY(80deg); }
.leaves.is-open .leaf-r { transform: rotateY(-80deg); }

@media (max-width: 760px) {
  .js-rooms .room { align-items: flex-end; }
  .room-scene img { object-position: 50% 30%; }
  .room-panel { margin: 0 12px 14px; width: auto; padding: 22px 20px 20px; }
  .room-name { font-size: 28px; margin-bottom: 10px; }
  .room-for { font-size: 19px; }
  .room-desc { font-size: 14.5px; margin-bottom: 18px; }
  .js-rooms .room-next { margin-top: 16px; }
  .rooms-bar { flex-wrap: wrap; gap: 8px; }
  .rooms-rail { width: 100%; margin-left: 0; }
  .rail-door { padding: 6px 8px; font-size: 11px; }
  .rail-verb { display: none; }
  .rail-door[aria-current="true"] .rail-verb { display: inline; }
}
@media (max-width: 520px) {
  .corridor-actions { flex-direction: column; align-items: center; }
  .corridor-actions .btn { width: min(100%, 320px); letter-spacing: .2em; padding: 15px 16px; }
}

/* Phones: let each room's scene show above a smaller box. */
@media (max-width: 760px) {
  .js-rooms .room-scene img { object-position: 50% 22%; }
  .js-rooms .room::before { /* soft fade so the box sits on the scene instead of covering it */
    content: ""; position: absolute; inset: auto 0 0 0; height: 55%; z-index: 0; pointer-events: none;
    background: linear-gradient(to bottom, rgba(7,6,10,0), rgba(7,6,10,.85) 55%, rgba(7,6,10,.95));
  }
  .room-panel { padding: 18px 18px 16px; background: rgba(10, 8, 14, .58); }
  .room-num, .room-desc { display: none; }
  .room-verb { margin-top: 0; font-size: 11px; }
  .room-name { font-size: 25px; margin: 6px 0 10px; }
  .room-for { font-size: 17.5px; margin-bottom: 16px; }
  .room-for span { font-size: 10.5px; }
  .room-enter { width: 100%; text-align: center; padding: 14px 12px; letter-spacing: .16em; }
  .js-rooms .room-next { margin-top: 12px; font-size: 11px; }
}

/* Phones: Christy Vonta on top, the four daughters in two columns beneath. */
@media (max-width: 640px) {
  .cvons { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; max-width: 360px; margin-left: auto; margin-right: auto; }
  .cvons li { text-align: center; font-size: 22px; }
  .cvons li:first-child { grid-column: 1 / -1; font-size: 26px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
}

/* Image band with words in the photo's dark side (Our Story: We Kiss It and Make It Better) */
.feature-band { position: relative; min-height: min(86vh, 760px); display: flex; align-items: center; overflow: hidden;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature-band-img, .feature-band-img img { position: absolute; inset: 0; width: 100%; height: 100%; }
.feature-band-img img { object-fit: cover; object-position: 100% 50%; }
.feature-band::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(7,6,10,.95) 0%, rgba(7,6,10,.82) 34%, rgba(7,6,10,0) 58%); }
.feature-band-copy { position: relative; z-index: 1; width: min(560px, 46%); margin-left: clamp(22px, 7vw, 110px); font-size: 17.5px; }
.feature-band-copy p { margin: 0 0 1em; }
@media (max-width: 760px) {
  .feature-band { flex-direction: column; align-items: stretch; min-height: 0; }
  .feature-band-img { position: relative; display: block; aspect-ratio: 1003 / 941; }
  .feature-band::after { display: none; }
  .feature-band-copy { width: auto; margin: 0; padding: 30px 22px 40px; }
}

/* Our Story photos added from the Ecosystem OS Website Manager */
.story-photo { margin: 28px 0 30px; border: 1px solid var(--line); }
.story-photo img { width: 100%; height: auto; }
.story-photo--wide { max-width: 860px; margin: 30px auto 6px; }
