.ofc-home { --space:clamp(22px,6vw,88px); max-width:1500px; margin:auto; color:var(--ink); }
.ofc-home :is(h1,h2,h3,p,figure) { margin:0; }
.ofc-home :is(h1,h2,h3) { font-family:var(--serif); font-weight:400; letter-spacing:-.055em; line-height:1; }
.ofc-home .home-label { font:650 11px/1.4 var(--sans); letter-spacing:.19em; text-transform:uppercase; color:var(--gold-hi); }
.home-hero { display:grid; grid-template-columns:1fr 1fr; align-items:center; padding:clamp(40px,6vw,90px) var(--space); gap:4%; color:#f6f0e4; background:radial-gradient(ellipse at 74% 44%,#414161 0,transparent 56%),linear-gradient(120deg,#111421,#212036 70%,#151624); }
.home-hero .home-label { color:#e2c88f; }
.home-lead h1 { font-size:clamp(76px,8.8vw,142px); line-height:.94; max-width:5.8em; margin:.24em 0; text-wrap:balance; }
.home-lead .home-intro { max-width:39ch; font-size:clamp(16px,1.35vw,21px); color:#d6cfc7; line-height:1.6; }
.home-actions { display:flex; gap:10px; margin-top:28px; flex-wrap:wrap; }
.home-actions a,.home-display button { display:inline-flex; align-items:center; justify-content:center; gap:12px; border:1px solid #bca77b; border-radius:3px; background:transparent; color:inherit; font:600 14px/1.3 var(--sans); min-height:46px; padding:12px 17px; text-decoration:none; cursor:pointer; }
.home-actions a.home-primary { background:#efd49c; color:#21190f; border-color:#efd49c; }
.ofc-home a:hover { text-decoration:underline; text-underline-offset:4px; }
.home-stage { position:relative; width:min(100%,560px); margin:auto; aspect-ratio:1; perspective:900px; touch-action:pan-y; user-select:none; cursor:grab; isolation:isolate; }
.home-stage::before { content:""; position:absolute; inset:0; background:url("/assets/celestial-platform.webp") center/contain no-repeat; mask-image:radial-gradient(ellipse 74% 72% at 50% 50%,black 49%,transparent 91%); pointer-events:none; }
.home-stage:active { cursor:grabbing; }
.grail-float { position:absolute; height:46%; top:13%; left:50%; translate:-50% 0; aspect-ratio:606/870; transform-style:preserve-3d; }
@media(prefers-reduced-motion:no-preference) {
  .grail-float { animation:grail-hover 4s ease-in-out infinite alternate; }
  .home-stage:focus-within .grail-float,.home-stage:hover .grail-float { animation-play-state:paused; }
  @keyframes grail-hover { to { transform:translateY(-7px); } }
}
.home-turn,.grail-face { position:absolute; inset:0; border-radius:5%; }
.home-turn { transform-style:preserve-3d; transform:rotateY(var(--angle,-10deg)); }
.grail-face { overflow:hidden; backface-visibility:hidden; box-shadow:0 8px 26px #0009; }
.grail-front { display:grid; place-items:center; background:radial-gradient(ellipse at top,#71462c,#241327 65%,#0c090b); border:3px solid #dab76d; }
.grail-front::after { content:""; position:absolute; inset:2%; border:1px solid #e6c376a3; border-radius:4%; pointer-events:none; background:linear-gradient(var(--shine,120deg),transparent 25%,#ffe6bd18,transparent 70%); }
.grail-front img { height:100%; width:100%; object-fit:contain; }
.grail-front .grail-edition,.grail-front strong { position:absolute; z-index:1; text-align:center; width:100%; color:#f6dfa7; text-shadow:0 1px 4px #000; }
.grail-edition { top:6%; font:600 10px/1.4 var(--sans); text-transform:uppercase; letter-spacing:.23em; }
.grail-front strong { bottom:4%; background:linear-gradient(transparent,#150e13 45%); padding-top:12%; font:italic clamp(28px,3.6vw,50px)/1 var(--serif); }
.grail-back { transform:rotateY(180deg); }
.grail-back img { position:absolute; width:100%; height:100%; inset:0; pointer-events:none; }
.grail-panel { position:absolute; left:32.1782%; top:59.8851%; width:35.3135%; height:23.1034%; overflow:hidden; border-radius:12%; background:#181414; }
.grail-back .grail-code { object-fit:contain; background:#fff5db; }
.grail-back.open .grail-sealed { visibility:hidden; }
.home-display .grail-peel { position:absolute; inset:0; width:100%; height:100%; min-height:0; border:0; padding:0; touch-action:none; cursor:grab; }
.grail-peel:focus-visible { outline-offset:-4px; }
.grail-result { text-align:center; padding-top:12px; }
.grail-result a { color:#efd49c; }
.home-display figcaption,.home-story figcaption,.home-store { display:flex; justify-content:space-between; align-items:center; gap:14px; padding-top:15px; border-top:1px solid var(--rule-strong); }
.home-display figcaption { max-width:440px; margin:18px auto 0; }
.home-display strong { display:block; font:italic 24px/1.3 var(--serif); }
.home-display button { min-height:44px; font-size:13px; }
.home-display button[hidden] { display:none; }
.home-story,.home-paths,.home-close { padding:clamp(50px,7vw,104px) var(--space); }
.ofc-home h2 { font-size:clamp(44px,5.3vw,86px); margin:.22em 0 .32em; }
.ofc-home h3 { font-size:clamp(34px,3.2vw,52px); margin:.2em 0; }
.home-story { display:grid; grid-template-columns:.85fr 1.15fr; align-items:center; gap:8%; border-bottom:1px solid var(--rule); }
.home-story header>p:not(.home-label),.home-paths article p:not(.home-label),.home-close>p:not(.home-label) { line-height:1.65; color:var(--ink-2); max-width:42ch; }
.home-story header>a,.home-duo a,.home-store a { display:inline-block; padding:12px 0; color:var(--gold-hi); text-underline-offset:5px; }
.home-story img,.home-duo img { display:block; width:100%; object-fit:cover; }
.home-story img { aspect-ratio:1.85; }
.home-story figcaption { font-size:14px; }
.home-story figcaption span { color:var(--ink-2); }
.home-duo { display:grid; grid-template-columns:1fr 1fr; gap:clamp(18px,3.2vw,50px); margin:32px 0; }
.home-duo article { min-width:0; }
.home-duo img { aspect-ratio:1.9; object-fit:contain; background:#151417; }
.home-duo article>div { padding:20px 0 0; }
.home-store { flex-wrap:wrap; }
.home-close { border-block:1px solid var(--rule); background:var(--card); text-align:center; }
.home-close>p,.home-close .home-actions { margin-inline:auto; justify-content:center; }
.home-account { padding:18px var(--space); }
.home-account summary { cursor:pointer; min-height:44px; padding:10px 0; }
@media(min-width:801px) and (prefers-reduced-motion:no-preference) {
  .home-lead h1 { animation:home-enter .6s ease-out; }
  @keyframes home-enter { from { transform:translateY(9px); } }
  @supports (animation-timeline:view()) {
    .home-story img { animation:home-depth linear both; animation-timeline:view(); }
    @keyframes home-depth { from { object-position:50% 35%; } to { object-position:50% 65%; } }
  }
}
@media(max-width:800px) {
  .home-hero,.home-story { grid-template-columns:1fr; gap:28px; }
  .home-lead h1 { font-size:clamp(65px,12vw,96px); max-width:none; }
  .home-display { width:min(100%,480px); margin-inline:auto!important; }

  .home-story br { display:none; }
}
@media(max-width:600px) { .home-duo { grid-template-columns:1fr; gap:35px; } .home-actions a { padding-inline:12px; } }
@media(prefers-reduced-motion:reduce) { .home-turn { transition:none; } .home-pair { transform:none; } }


.ofc-home > section { position:relative; isolation:isolate; }
.ofc-home > section::before { content:""; position:absolute; inset:0; z-index:-1; pointer-events:none; background:url("/assets/celestial-mist.webp") 10% 65%/cover; opacity:.14; mask-image:linear-gradient(155deg,transparent 32%,black 73%,transparent 100%); }
.ofc-home > section:nth-of-type(even)::before { transform:scaleX(-1); }
.home-story,.home-paths,.home-close { background-image:radial-gradient(ellipse at 85% 95%,#a6a1dd21,transparent 66%); }
@media(prefers-reduced-motion:no-preference) {
  @supports(animation-timeline:view()) {
    .ofc-home > section::before { animation:celestial-mist linear both; animation-timeline:view(); }
    @keyframes celestial-mist { from { background-position:10% 35%; } to { background-position:80% 85%; } }
  }
}
