/* Public entry pages share the violet stage, gold edge and pearl stone palette. */
.home-hero {
  background:radial-gradient(ellipse at 74% 45%,#66639155,transparent 55%),linear-gradient(115deg,#141327,#38334e 74%,#232037);
  color:#fff3de;
}
.home-hero { padding-block:clamp(26px,4vw,66px); gap:2%; }
.home-hero .grail-front { border-color:#e4c98d; }
.home-hero .grail-front img { width:100%;height:100%;object-fit:fill; }
.home-stage::before { mask-image:radial-gradient(ellipse 78% 78% at center,black 50%,transparent 88%); }
.ofc-home .pearl-scene {
  --card:#fcf7ff;--bg:#f4edf8;--gold:#71501d;--ink:#251a35;--ink-2:#493c54;--gold-hi:#68421d;--rule:#b89d7099;
  color:var(--ink); background-color:#f4edf8;
  background-image:radial-gradient(ellipse at 0% 60%,#bcaadc72,transparent 38%),radial-gradient(ellipse at 98% 77%,#b7acd582,transparent 47%),linear-gradient(135deg,#faf3f1,#e4ddf0 55%,#f8f2ec);
  border-block-start:1px solid #c8ae85;
}
.ofc-home .pearl-scene::before {opacity:.2;}
.pearl-scene,.edition-row { padding:clamp(34px,5vw,80px) var(--space); }
.collection-sequence,.home-close { text-align:center; }
.ofc-home .pearl-scene h2,.ofc-home .edition-row h3 { margin:0 0 .28em;font-size:clamp(38px,4.8vw,76px); }
.collection-sequence>img,.edition-row article>img,.role-portrait { display:block;width:100%;height:auto;mask-image:linear-gradient(to right,transparent,#000 5%,#000 95%,transparent); }
.collection-sequence>img { max-width:860px;margin:18px auto 6px; }
.edition-row.home-duo { display:block;margin:0; }
.edition-row article { display:grid;grid-template-columns:.85fr 1.15fr;gap:5%;align-items:center; }
.edition-row article>div {padding:0;}
.edition-row article>img {aspect-ratio:auto;border-radius:8px;}
.ofc-home .edition-action {display:inline-flex;align-items:center;min-height:44px;padding:9px 18px;margin-top:16px;border-radius:4px;background:linear-gradient(#ffe4ae,#e4b96f);color:#291c12;text-decoration:none;font:650 15px/1.4 var(--sans);}
.edition-trust {color:inherit;display:inline-block;padding:10px;}
.portal-choices {display:flex;justify-content:center;gap:clamp(12px,4vw,48px);margin-top:24px;}
.portal-choices a {flex:1;max-width:320px;padding:clamp(24px,4vw,56px) 10px 20px;border:1px solid #c19b69;border-radius:130px 130px 6px 6px;background:linear-gradient(140deg,#fffbf2,#eed6bb);color:#322433;text-decoration:none;}
.portal-choices a:last-child {background:linear-gradient(140deg,#fffbff,#d9c7f1);}
.portal-choices strong,.portal-choices span {display:block;}
.portal-choices strong {font:400 clamp(24px,3vw,42px)/1.4 var(--serif);}
@media(max-width:740px){.edition-row article{grid-template-columns:1fr;gap:22px;}.edition-row article>img{max-width:480px;margin:auto;}.portal-choices span{font-size:13px;}}

.ofc-home .home-hero {
  background:linear-gradient(90deg,#100f26f2,#292441cc 38%,#39305480 70%,#211938b8),url("/assets/celestial-platform.webp") center 48%/cover;
}
.home-stage::before {mask-image:radial-gradient(ellipse 75% 79% at 50% 49%,black 43%,transparent 79%);}
.ofc-home .home-display figcaption {background:#201b30c9;padding:8px 15px;border-radius:7px;border:1px solid #b89e7159;}
.ofc-home .home-actions a.home-primary,.ofc-home .edition-action {
  background:linear-gradient(#fff0bf,#f4d28e 56%,#d5a65f);box-shadow:0 3px 9px #45324f33;
}
.ofc-home .home-actions a:not(.home-primary) {background:#211e36c9;}
.ofc-home .collection-sequence>img,.ofc-home .edition-row article>img,.studio-scenes {
  mask-image:linear-gradient(to right,transparent,#000 8%,#000 92%,transparent),linear-gradient(to bottom,transparent,#000 7%,#000 90%,transparent);
  mask-composite:intersect;
}
.ofc-home .edition-row article {max-width:1120px;margin:auto;}
.ofc-home .collection-sequence h2::after,.ofc-home .edition-row h3::after,.ofc-home .home-close h2::after {
  content:"";display:block;width:52px;height:2px;margin:14px auto;background:linear-gradient(90deg,#aa753b,#e3be71,#976d3b);
}
.ofc-home .edition-row h3::after {margin-inline:0;}
.ofc-home .portal-choices a {position:relative;isolation:isolate;display:grid;align-content:center;min-height:180px;aspect-ratio:249/221;border:0;border-radius:50% 50% 5% 5%;padding:24% 8px 4%;padding-top:clamp(42px,6vw,82px);background:radial-gradient(ellipse at center,#fff7de,#f5dec3 52%,transparent 74%);}
.portal-choices a::before {content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:url("/assets/amber-arch.webp") center/100% 100% no-repeat;}
.ofc-home .portal-choices a:last-child {background:radial-gradient(ellipse at center,#faf6ff,#e0d1f4 52%,transparent 74%);}
.portal-choices a:last-child::before {background-image:url("/assets/violet-arch.webp");}
@media(max-width:740px){
  .ofc-home .pearl-scene {padding-inline:clamp(24px,8vw,58px);background-size:34px 100%,cover,cover;}
  .ofc-home .portal-choices {gap:4px;}
  .ofc-home .portal-choices a {min-height:144px;}
}

/* Position both the interactive card and the platform in hero coordinates. */
.ofc-home .home-hero {
  --scene-height:clamp(540px,55vw,810px);
  display:grid;grid-template-columns:42% 58%;align-items:center;gap:0;
  min-height:var(--scene-height);padding:0;
  background:linear-gradient(90deg,#181329e8,#1d1833c9 28%,#2420394a 49%,transparent 66%),
    url("/assets/home-platform-wide.webp") center/100% 100% no-repeat;
}
.home-hero .home-lead {position:relative;z-index:1;padding:32px 0 32px var(--space);}
.ofc-home .home-hero .home-display {position:relative;align-self:stretch;width:100%;max-width:none;margin:0;}
.home-hero .home-stage {position:absolute;inset:0;width:100%;height:100%;aspect-ratio:auto;}
.home-hero .home-stage::before {content:none;}
.home-hero .grail-float {top:auto;bottom:27%;height:63%;max-height:none;}
.ofc-home .home-hero figcaption {position:absolute;bottom:3%;left:50%;transform:translateX(-50%);width:max-content;max-width:96%;margin:0;}
.home-hero .grail-result {position:absolute;bottom:17%;left:50%;transform:translateX(-50%);width:max-content;max-width:100%;background:#201b30eb;color:#fff5df;padding:3px 10px;}
@media(max-width:800px){
  .ofc-home .home-hero {
    --mobile-stage:clamp(390px,99vw,560px);
    display:flex;flex-direction:column;align-items:stretch;min-height:0;
    background-color:#242136;
    background-image:linear-gradient(to bottom,#242136,transparent 28%),url("/assets/celestial-platform.webp");
    background-position:center bottom;background-size:100% var(--mobile-stage);background-repeat:no-repeat;
  }
  .home-hero .home-lead {padding:32px var(--space) 6px;}
  .ofc-home .home-hero .home-display {height:var(--mobile-stage);}
  .home-hero .grail-float {height:55%;bottom:37%;}
}

.ofc-home {max-width:none;--ink:#292033;--ink-2:#46394e;--gold-hi:#694317;color:var(--ink);}
.ofc-home > section,.ofc-home .pearl-scene,.ofc-home .home-hero {
  background:transparent;border:0;color:var(--ink);
  --ink:#292033;--ink-2:#46394e;--gold-hi:#694317;
}
.ofc-home > section::before,.ofc-home .pearl-scene::after {content:none;}
.ofc-home :is(h1,h2,h3),.ofc-home section p,.edition-trust {text-shadow:none;}
.ofc-home .home-intro {color:#3b3043;}
.ofc-home .edition-row,.ofc-home .collection-sequence,.ofc-home .home-close {padding-block:clamp(38px,5.4vw,82px);}
.ofc-home .edition-row article>img.gallery-image {mask-image:var(--gallery-feather);mask-composite:intersect;border:0;border-radius:0;}
.ofc-home .rip-room-feature article {grid-template-columns:1.15fr .85fr;}
.ofc-home .rip-room-feature article>img {grid-column:1;grid-row:1;}
.ofc-home .rip-room-feature article>div {grid-column:2;grid-row:1;}
@media(max-width:800px) {
  .ofc-home .edition-row article,.ofc-home .rip-room-feature article {grid-template-columns:minmax(0,1fr);gap:18px;}
  .ofc-home .rip-room-feature article>img,.ofc-home .rip-room-feature article>div {grid-column:auto;grid-row:auto;}
}
/* The panoramic cut of the original orbital platform shares the card's hero coordinates. */
.ofc-home > .home-hero::before {
  content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;opacity:1;
  background:url("/assets/home-platform-wide.webp") center/100% 100% no-repeat;
  mask-image:linear-gradient(to right,transparent 1%,#0004 30%,black 59%),linear-gradient(to bottom,transparent,black 9%,black 85%,transparent);
  mask-composite:intersect;animation:none;
}
.ofc-home .collection-sequence>img,.ofc-home .edition-row article>img {mask:none;filter:drop-shadow(0 15px 18px #65496148);}
.ofc-home .edition-trust {color:#694317;}
.ofc-home .portal-choices {align-items:end;gap:clamp(18px,5vw,82px);margin-top:38px;}
.ofc-home .portal-choices a,.ofc-home .portal-choices a:last-child {
  --trim:#d8ae77;--glow:#edb76a;--glass:#f0d5ac88;
  position:relative;isolation:isolate;overflow:hidden;flex:1;max-width:285px;aspect-ratio:.73;
  min-height:0;align-content:end;padding:0 6px 18%;padding-bottom:clamp(32px,4vw,60px);
  border:3px double var(--trim);border-bottom:2px solid var(--trim);border-radius:50% 50% 2px 2px / 36% 36% 2px 2px;
  background:linear-gradient(0deg,#fff9f3ee 0%,var(--glass) 51%,#ffffff22),url("/assets/pearl-daylight.webp") 50% 46%/auto 110%;
  color:var(--ink);text-shadow:0 1px 4px #fffc;
  box-shadow:inset 0 0 17px #fff3,0 0 14px color-mix(in srgb,var(--glow) 40%,transparent),0 16px 30px #70577244;
}
.ofc-home .portal-choices a:last-child {--trim:#cca9f6;--glow:#ba8af4;--glass:#d8c8f088;}
.ofc-home .portal-choices a::before {
  content:"";position:absolute;inset:3px 40% 3px 3px;z-index:-1;border:1px solid var(--trim);
  border-radius:95% 0 0 0 / 36% 0 0 0;transform-origin:left center;transform:perspective(500px) rotateY(-55deg);
  background:linear-gradient(115deg,var(--glass),#f9f2fcc7 70%,var(--trim));
}
.ofc-home .portal-choices a:focus-visible {outline:3px solid #614775;outline-offset:6px;}
@media(prefers-reduced-motion:no-preference){
  .portal-choices a::before {transition:transform .45s ease;}
  .ofc-home .portal-choices a:is(:hover,:focus-visible)::before {transform:perspective(500px) rotateY(-78deg);}
}
@media(max-width:800px){
  .ofc-home > .home-hero::before {
    inset:auto 0 0;height:var(--mobile-stage);
    background-image:url("/assets/celestial-platform.webp");
    mask-image:linear-gradient(to bottom,transparent,black 12%,black 84%,transparent);
  }
  .ofc-home .portal-choices a {min-height:185px;}
}

/* Keep captions, secondary actions and account controls legible on pale stone. */
.ofc-home .home-hero .home-label {color:#65441b;}
.ofc-home .home-actions a:not(.home-primary),.ofc-home .home-display figcaption,
.ofc-home .home-display .grail-result {color:#302439;background:#fffaf4e8;border-color:#9b8059;}
.ofc-home .grail-result a {color:#694317;}
body:has(.ofc-home) .masthead {color:var(--ink);background:transparent;}
body:has(.ofc-home) :focus-visible {outline-color:#644277;}

.ofc-home .home-duo .ofc-fan {margin:0 auto;width:100%;max-width:620px;}

/* Keep one architectural scene behind the card stage and all gallery sections. */
body:has(.ofc-home)::before {
  inset: 0;
  background: linear-gradient(90deg, #fff7fa55, #fff7faa6 30%, #fff7fa70 72%, #fff7fa55),
    url("/assets/home-gallery-sky.webp") center top / cover no-repeat;
  transform: none;
  animation: none;
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    body:has(.ofc-home)::before {
      animation: home-sky-pan linear both;
      animation-timeline: scroll(root block);
    }
    @keyframes home-sky-pan {
      from { background-position: center, center top; }
      to { background-position: center, center min(0px, max(-24vh, calc(100% - 300vw))); }
    }
  }
}

/* The transparent dais shares the sky behind the hero text. */
.ofc-home > .home-hero::before { content: none; }
.ofc-home .home-stage { overflow: clip; }
.ofc-home .home-stage::before {
  content: "";
  inset: auto;
  left: 50%;
  top: 75%;
  width: min(96%, 550px);
  aspect-ratio: 2025 / 2531;
  translate: -50% -58%;
  background: url("/assets/cloud-dais.webp") center / contain no-repeat;
  mask-image: linear-gradient(black 72%, transparent 96%);
}
.ofc-home .home-hero .grail-float { bottom: 27%; }
.ofc-home .home-hero figcaption {
  gap: 12px;
  padding: 0 10px;
  border: 0;
  background: #fff9f1d9;
  box-shadow: none;
  border-radius: 6px;
}
.ofc-home .home-display [data-grail-hint] {
  display: block;
  color: #524655;
  font: 400 .875rem/1.4 var(--sans);
}
.ofc-home .home-display [data-home-flip] {
  min-height: 44px;
  border: 0;
  padding: 6px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
body:has(.ofc-home) .masthead-nav {
  gap: 3px;
  padding: 2px;
  width: fit-content;
  border: 1px solid #b19470;
  border-radius: 8px;
  background: #fff9f0e6;
  letter-spacing: normal;
  text-transform: none;
}
body:has(.ofc-home) .masthead-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  color: #39293d;
  font: 600 .9rem/1.2 var(--sans);
}
body:has(.ofc-home) .masthead-nav a + a { border-left: 1px solid #cbb9aa; }
body:has(.ofc-home) .masthead-nav a:hover { text-decoration: underline; }
body:has(.ofc-home)::after {
  inset: 30% -8% -9%;
  opacity: .22;
  animation: none;
  transform: translate3d(var(--cloud-x, 0px), var(--cloud-y, 0px), 0);
}

/* Founder-approved ethereal acquisition experience. One pearl room, no section
   plates. Existing Studio and specimen inspector retain their own contracts. */
.ofc-home .home-entrance {
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  text-align:center;min-height:min(820px,calc(100svh - 70px));
  padding:clamp(42px,7vw,96px) var(--space) clamp(40px,6vw,80px);
}
.ofc-home .home-entrance h1 {
  font-size:clamp(3.4rem,8.3vw,8.4rem);line-height:.94;
  letter-spacing:-.055em;margin:16px 0 18px;max-width:13ch;text-wrap:balance;
}
.ofc-home .entrance-intro {
  font-size:clamp(1.05rem,1.8vw,1.35rem);line-height:1.5;max-width:45ch;
}
.ofc-home .entrance-portals {
  width:min(100%,700px);margin:clamp(24px,4vw,48px) auto 22px;
  gap:clamp(12px,5vw,75px);align-items:stretch;
}
.ofc-home .entrance-portals a {
  min-height:0;max-width:245px;aspect-ratio:.78;display:flex;
  flex-direction:column;justify-content:flex-end;gap:8px;
  padding:18px 8px clamp(22px,4vw,45px);
}
.ofc-home .entrance-portals .portal-kicker {
  font:650 .7rem/1.3 var(--sans);text-transform:uppercase;letter-spacing:.1em;
}
.ofc-home .entrance-portals strong {
  font:400 clamp(1.35rem,3vw,2.5rem)/1.05 var(--serif);text-wrap:balance;
}
.ofc-home .entrance-portals a>span:last-child {font-size:clamp(.72rem,1.2vw,.95rem);line-height:1.4;}
.ofc-home .entrance-preview {
  display:inline-flex;align-items:center;gap:10px;min-height:44px;
  padding:8px 10px;color:#694317;font:650 .95rem/1.4 var(--sans);
}
.ofc-home .entrance-note {font-size:.8rem;color:#514356;max-width:38ch;}
.ofc-home .home-transformation {
  padding:clamp(40px,7vw,100px) var(--space);
  scroll-margin-top:90px;
}
.ofc-home .transformation-intro {text-align:center;max-width:850px;margin:auto;}
.ofc-home .transformation-intro h2 {font-size:clamp(2.5rem,5.8vw,5.8rem);margin:12px 0 16px;}
.ofc-home .transformation-intro>p:not(.home-label) {max-width:63ch;margin:auto;line-height:1.65;}
.ofc-home .transformation-intro figure {margin:26px auto 30px;max-width:700px;}
.ofc-home .transformation-intro img {width:100%;height:auto;filter:drop-shadow(0 12px 18px #65496138);}
.ofc-home .transformation-intro figcaption {font-size:.82rem;color:#514356;margin-top:10px;}
.ofc-home .home-studio-shell {max-width:1100px;margin:0 auto;}
.ofc-home .home-studio-note {font-size:.87rem;line-height:1.55;color:#514356;margin:16px auto;max-width:84ch;}
.ofc-home .home-studio-note a {color:#694317;text-decoration:underline;}
.ofc-home .featured-platform {scroll-margin-top:90px;}
.ofc-home .featured-platform .home-lead h2 {
  font-size:clamp(2.7rem,5.8vw,6.2rem);line-height:1.02;
  margin:16px 0 20px;max-width:13ch;text-wrap:balance;
}
.ofc-home .featured-platform .featured-note {font-size:.85rem;color:#514356;margin-top:18px;}
.ofc-home .featured-platform .home-stage {
  background:radial-gradient(ellipse 35% 60% at 50% 43%,#fffce9c4,transparent 88%);
}
@media(max-width:800px){
  .ofc-home .home-entrance {min-height:0;padding-block:40px 54px;}
  .ofc-home .entrance-portals a {min-height:180px;max-width:220px;}
  .ofc-home .featured-platform .home-lead {padding:20px var(--space) 4px;}
  .ofc-home .featured-platform .home-lead h2 {max-width:18ch;}
}
@media(max-width:380px){
  .ofc-home .entrance-portals {gap:10px;}
  .ofc-home .entrance-portals a {min-height:154px;}
  .ofc-home .entrance-portals .portal-kicker {font-size:.62rem;}
}

/* Do not replace the latest panoramic platform or the painted easel. */
.ofc-home .home-entrance h1 {overflow-wrap:normal;}
.ofc-home .entrance-portals a {min-width:0;}
.ofc-home .home-studio-shell {min-width:0;}
.ofc-home .featured-platform .home-stage {background:transparent;}
