/* of Mermaids & Sailors — Phase 7. One stationary coastal scene, in-place story fades.
   This is an additive layer over the approved V12 scene. No document scrolling. */
html,body{height:100%;overflow:hidden!important;overscroll-behavior:none!important}
#oms-scene{overflow:hidden!important;touch-action:pan-x}
body.oms-story-engaged .brand-stage{
  opacity:0!important;visibility:hidden;transition:opacity .6s ease,visibility .6s!important;
}
.oms-story-layer{
  --story-ink:#173e56;--story-ink-soft:#35586a;--story-peach:#f6d9bd;
  position:fixed;inset:0;z-index:6;pointer-events:none;isolation:isolate;
  color:var(--story-ink);font-family:Georgia,'Times New Roman',serif;
}
.oms-story-canvas{
  position:absolute;left:clamp(38px,6.5vw,115px);right:clamp(38px,6.5vw,115px);
  top:clamp(30px,7.5dvh,86px);bottom:clamp(160px,21.5dvh,230px);
  display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);
  column-gap:clamp(25px,4.3vw,76px);align-items:center;
  opacity:0;visibility:hidden;transition:opacity .62s cubic-bezier(.2,.62,.27,1),visibility .62s;
  contain:layout style;
}
.oms-story-canvas.is-visible{opacity:1;visibility:visible}
.oms-story-text{min-width:0;max-height:100%;overflow:visible;
  padding:clamp(16px,2.5vw,31px) clamp(14px,2.2vw,33px) clamp(18px,2.7vw,35px);
  position:relative;isolation:isolate;text-shadow:0 1px 1px rgba(254,244,223,.50);
}
.oms-story-text::before{
  content:'';position:absolute;inset:-13px -19px -17px -21px;z-index:-1;pointer-events:none;
  background:radial-gradient(ellipse 65% 75% at 34% 51%,rgba(255,240,218,.89),rgba(252,234,213,.75) 58%,rgba(253,231,205,.34) 85%,transparent 100%);
  filter:blur(12px);opacity:.92;
}
.oms-story-title{
  margin:0 0 clamp(4px,1vh,12px);font-family:'Snell Roundhand','Apple Chancery','Brush Script MT','Segoe Script',cursive;
  font-size:clamp(46px,5.6vw,93px);font-weight:500;line-height:1.02;
  letter-spacing:-.035em;color:#123d57;text-shadow:0 1px 1px rgba(255,239,208,.72);
}
.oms-story-subtitle{
  margin:0 0 clamp(18px,2.5vh,28px);font-family:Georgia,'Times New Roman',serif;
  font-size:clamp(18px,1.64vw,25px);font-weight:400;font-style:italic;
  letter-spacing:.005em;line-height:1.31;color:#23516a;
}
.oms-story-rule{height:1px;width:min(220px,60%);margin:0 0 clamp(14px,2vh,24px);background:linear-gradient(90deg,rgba(157,111,61,.55),rgba(157,111,61,.12),transparent);}
.oms-story-paragraph{
  margin:0;max-width:660px;font-size:clamp(17px,1.47vw,22px);line-height:1.61;
  letter-spacing:.002em;font-weight:400;color:#183e54;
}
.oms-story-sentence{display:block;margin:0 0 .34em;opacity:0;clip-path:inset(0 100% 0 0);
  animation:oms-ink-appear 1.28s cubic-bezier(.22,.55,.25,1) forwards;
  animation-delay:var(--story-delay,0s);
}
@keyframes oms-ink-appear{
  0%{opacity:.25;clip-path:inset(0 100% 0 0)}
  25%{opacity:.68}
  100%{opacity:1;clip-path:inset(0 0 0 0)}
}
.oms-story-reveal{
  display:block;margin-top:.8em;max-width:600px;font-size:clamp(20px,1.82vw,27px);
  line-height:1.45;font-weight:600;font-style:italic;color:#0f405b;
  opacity:0;clip-path:inset(0 100% 0 0);
  animation:oms-ink-appear 2.05s cubic-bezier(.17,.49,.27,1) forwards;
  animation-delay:4.9s;
}
.oms-story-media{min-width:0;display:flex;align-items:center;justify-content:center;
  position:relative;max-height:100%;opacity:0;
  transition:opacity 1.16s ease;
}
.oms-story-canvas.is-visible .oms-story-media.oms-media-ready{opacity:1}
.oms-story-media::before{
  content:'';position:absolute;width:95%;height:93%;left:3%;top:4%;z-index:-1;
  background:radial-gradient(ellipse at center,rgba(252,225,194,.35),transparent 70%);
  filter:blur(24px);pointer-events:none;
}
.oms-memory-photo,.oms-proposal-video{
  display:block;width:auto;max-width:100%;max-height:min(60dvh,600px);
  object-fit:contain;object-position:center;border:0;border-radius:2px;
  box-shadow:1px 5px 21px rgba(16,47,60,.19),0 0 1px rgba(220,169,107,.24);
  filter:sepia(.025) saturate(.98);background:rgba(247,224,198,.11);
}
.oms-memory-photo{
  -webkit-mask-image:radial-gradient(ellipse 72% 70% at 50% 50%,#000 78%,rgba(0,0,0,.96) 91%,transparent 108%);
  mask-image:radial-gradient(ellipse 72% 70% at 50% 50%,#000 78%,rgba(0,0,0,.96) 91%,transparent 108%);
}
.oms-memory-photo.is-portrait{max-height:min(62dvh,620px);width:auto;max-width:min(90%,490px)}
.oms-memory-photo.is-landscape{width:100%;max-height:min(52dvh,520px)}
.oms-proposal-wrap{width:100%;max-width:720px;max-height:100%;pointer-events:auto;}
.oms-proposal-video{width:100%;max-height:min(53dvh,540px);aspect-ratio:1080/802;background:#112d36;pointer-events:auto;
  -webkit-mask-image:none;mask-image:none;
}
.oms-story-canvas[data-chapter='3'] .oms-story-media{opacity:0;}
.oms-story-canvas[data-chapter='3'].is-visible .oms-story-media.oms-media-ready{opacity:1;}
.oms-story-guide{
  position:fixed;z-index:6;left:50%;bottom:clamp(164px,23dvh,240px);transform:translateX(-50%);
  margin:0;color:rgba(20,62,77,.77);font-family:Georgia,'Times New Roman',serif;
  font-style:italic;letter-spacing:.085em;font-size:12px;white-space:nowrap;
  opacity:0;animation:oms-guide-arrive 1.2s ease 7.5s forwards;
  text-shadow:0 1px 1px rgba(255,240,219,.85);pointer-events:none;
}
@keyframes oms-guide-arrive{from{opacity:0}to{opacity:.78}}
body.oms-story-engaged .oms-story-guide{opacity:0!important;animation:none!important;}
.oms-story-screenreader{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0;}
@media (max-width:900px){
  .oms-story-canvas{left:4vw;right:4vw;top:clamp(20px,4.5dvh,52px);bottom:clamp(140px,22dvh,220px);gap:2vw;
    grid-template-columns:minmax(0,1fr) minmax(0,.84fr)}
  .oms-story-title{font-size:clamp(42px,6.2vw,72px)}
  .oms-story-paragraph{font-size:clamp(16px,1.95vw,20px);line-height:1.52}
  .oms-story-subtitle{font-size:clamp(16px,2vw,22px)}
}
@media (max-width:700px){
  .oms-story-canvas{left:env(safe-area-inset-left,0px);right:env(safe-area-inset-right,0px);top:calc(env(safe-area-inset-top,0px) + 7px);
    bottom:clamp(135px,20dvh,205px);
    grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr);gap:0;align-content:start;
    padding:0 5vw 0;
  }
  .oms-story-text{padding:12px 8px 9px;max-height:100%;align-self:start}
  .oms-story-text::before{inset:-7px -6px -6px;background:radial-gradient(ellipse 75% 82% at 40% 44%,rgba(255,239,217,.86),rgba(250,233,211,.70) 59%,transparent 100%);filter:blur(9px)}
  .oms-story-title{font-size:clamp(40px,10.5vw,61px);margin-bottom:5px;line-height:1.02}
  .oms-story-subtitle{font-size:clamp(16px,4.45vw,19px);line-height:1.25;margin-bottom:10px}
  .oms-story-rule{margin-bottom:10px}
  .oms-story-paragraph{font-size:clamp(14px,3.45vw,16px);line-height:1.41}
  .oms-story-sentence{margin-bottom:.27em}
  .oms-story-reveal{margin-top:.6em;font-size:clamp(16px,4vw,19px);line-height:1.28}
  .oms-story-media{max-height:min(24dvh,204px);margin:2px 0 5px;align-self:center;justify-content:center}
  .oms-memory-photo,.oms-proposal-video{max-height:min(23dvh,193px);max-width:84vw;box-shadow:1px 3px 11px rgba(16,47,60,.16)}
  .oms-memory-photo.is-portrait{max-height:min(24dvh,204px);max-width:min(58vw,220px)}
  .oms-memory-photo.is-landscape{max-width:min(76vw,400px)}
  .oms-proposal-wrap{max-width:min(76vw,400px)}
  .oms-proposal-video{max-height:min(23dvh,193px)}
  .oms-story-guide{bottom:clamp(130px,22dvh,200px);font-size:11px}
}
@media (max-width:420px) and (max-height:740px){
  .oms-story-canvas{bottom:18dvh;padding:0 4.5vw}
  .oms-story-title{font-size:38px}
  .oms-story-subtitle{font-size:15px;margin-bottom:7px}
  .oms-story-rule{margin-bottom:7px}
  .oms-story-paragraph{font-size:12.7px;line-height:1.28}
  .oms-story-reveal{font-size:15px}
  .oms-story-media,.oms-memory-photo,.oms-proposal-video{max-height:18dvh}
}
@media(prefers-reduced-motion:reduce){
  .oms-story-canvas{transition:opacity .15s linear,visibility .15s}
  .oms-story-sentence,.oms-story-reveal{animation:none!important;opacity:1!important;clip-path:none!important}
  .oms-story-media{transition:opacity .15s linear}
  .oms-story-guide{animation:none;opacity:.8}
}
