/* V21 — quiet typography and light that belongs to the actual coastal world. */
.oms-story-text{padding:clamp(10px,1.2vw,20px) clamp(8px,1.3vw,20px);text-shadow:0 1px 2px rgba(255,242,224,.70),0 0 14px rgba(255,230,197,.12)}
.oms-story-text::before{
  inset:-9px -11px -9px -12px;background:linear-gradient(103deg,rgba(13,56,74,.052),rgba(216,154,99,.035) 53%,transparent 100%);
  filter:none;opacity:.75;
}
.oms-story-title{font-size:clamp(37px,4.45vw,70px);line-height:1.06;letter-spacing:-.026em;margin-bottom:clamp(5px,.9vh,10px)}
.oms-story-subtitle{font-size:clamp(16px,1.35vw,21px);line-height:1.38;margin-bottom:clamp(13px,2vh,22px)}
.oms-story-paragraph{font-size:clamp(15.5px,1.24vw,19px);line-height:1.62;max-width:610px}
.oms-story-reveal{font-size:clamp(18px,1.55vw,24px);line-height:1.44;margin-top:.7em}
.oms-story-guide{
  bottom:clamp(86px,12.7dvh,139px);font-size:clamp(12px,1.05vw,15px);
  color:#123e52;letter-spacing:.055em;animation:oms-v21-invite 1.4s ease 7.5s forwards;
  text-shadow:0 1px 3px rgba(255,247,225,.95),0 0 9px rgba(251,230,186,.55);
}
.oms-story-guide::before{
  content:'';position:absolute;z-index:-1;left:-32px;right:-32px;top:-14px;bottom:-12px;
  border-radius:50%;pointer-events:none;
  background:radial-gradient(ellipse at center,rgba(255,235,177,.43) 0%,rgba(189,234,232,.21) 49%,transparent 77%);
  filter:blur(8px);animation:oms-v21-invite-glow 3.7s ease-in-out infinite;
}
@keyframes oms-v21-invite{from{opacity:0;transform:translate(-50%,6px)}to{opacity:.96;transform:translate(-50%,0)}}
@keyframes oms-v21-invite-glow{0%,100%{opacity:.34;transform:scale(.92)}50%{opacity:.88;transform:scale(1.10)}}
@media(max-width:900px){
 .oms-story-title{font-size:clamp(34px,5.1vw,59px)}
 .oms-story-subtitle{font-size:clamp(15px,1.8vw,19px)}
 .oms-story-paragraph{font-size:clamp(14.8px,1.72vw,17.5px)}
}
@media(max-width:700px){
 .oms-story-text{padding:9px 5px 9px}
 .oms-story-text::before{inset:-6px;background:linear-gradient(140deg,rgba(9,49,70,.045),transparent 90%);filter:none}
 .oms-story-title{font-size:clamp(33px,8.8vw,48px)}
 .oms-story-subtitle{font-size:clamp(14.5px,3.9vw,18px);margin-bottom:9px}
 .oms-story-paragraph{font-size:clamp(13.2px,3.35vw,15.5px);line-height:1.43}
 .oms-story-reveal{font-size:clamp(15px,3.72vw,18.5px)}
 .oms-story-guide{bottom:clamp(79px,12dvh,120px);font-size:12px;letter-spacing:.025em}
}
@media(max-width:420px) and (max-height:740px){
 .oms-story-title{font-size:clamp(31px,8vw,38px)}
 .oms-story-paragraph{font-size:12.4px;line-height:1.34}
 .oms-story-subtitle{font-size:14px}
}
@media(prefers-reduced-motion:reduce){
 .oms-story-guide{animation:none!important;opacity:.91;transform:translateX(-50%)}
 .oms-story-guide::before{animation:none!important;opacity:.48}
}
/* Shell underside and pearl retain photographic texture and natural shadow. */
.oms-undersea .oms-shell-lower{
 position:absolute;z-index:9;left:50%;bottom:4%;width:clamp(238px,29.5vw,460px);
 height:auto;max-height:37dvh;opacity:0;pointer-events:none;
 transform-origin:50% 90%;transform:translateX(-50%) translateY(17%) scaleY(.30);
 filter:brightness(.86) saturate(.86) drop-shadow(0 12px 13px rgba(9,26,39,.55));
 transition:opacity 1.5s ease,transform 2.1s cubic-bezier(.16,.67,.24,1);
}
.oms-undersea .oms-shell-pearl{
 position:absolute;z-index:11;left:50%;bottom:11%;width:clamp(44px,4.7vw,71px);height:auto;
 opacity:0;pointer-events:none;
 transform:translate3d(-50%,21px,0) scale(.67);
 filter:drop-shadow(0 11px 11px rgba(8,27,44,.59)) drop-shadow(0 0 17px rgba(246,244,222,.35));
 transition:opacity 1.2s ease .4s,transform 1.7s cubic-bezier(.18,.72,.22,1) .3s;
}
.oms-undersea.is-at-floor.is-shell-open .oms-shell-lower{
 opacity:.96;transform:translateX(-50%) translateY(15%) scaleY(.47);
}
.oms-undersea.is-at-floor.is-shell-open .oms-closed-shell{
 animation:none!important;transform:translate3d(-50%,-20%,0) perspective(750px) rotateX(57deg) scale(.96)!important;
 transition:transform 2.15s cubic-bezier(.14,.70,.24,1),filter 1.9s ease!important;
 transform-origin:50% 90%;
}
.oms-undersea.is-at-floor.is-shell-open .oms-shell-pearl{
 opacity:1;transform:translate3d(-50%,0,0) scale(1);
 filter:drop-shadow(0 12px 10px rgba(5,24,35,.55)) drop-shadow(0 0 21px rgba(243,244,218,.55));
}
.oms-undersea .oms-shell-light{
 position:absolute;z-index:17;bottom:3%;left:50%;width:clamp(270px,33vw,545px);height:clamp(200px,31dvh,330px);
 pointer-events:none;transform:translateX(-50%);opacity:.68;
 background:radial-gradient(ellipse 18% 25% at 42% 26%,rgba(255,250,222,.15),transparent 100%),
 linear-gradient(114deg,transparent 31%,rgba(251,244,211,.13) 37%,transparent 44%),
 linear-gradient(72deg,transparent 54%,rgba(195,249,238,.15) 61%,transparent 68%),
 radial-gradient(ellipse 54% 31% at 50% 75%,rgba(255,237,204,.08),transparent 100%);
 -webkit-mask-image:radial-gradient(ellipse at center,#000 8%,transparent 71%);
 mask-image:radial-gradient(ellipse at center,#000 8%,transparent 71%);
 animation:oms-v21-shell-light 10s ease-in-out infinite alternate;
}
.oms-undersea.is-shell-open .oms-shell-light{opacity:1.0;filter:brightness(1.2)}
@keyframes oms-v21-shell-light{
 from{transform:translateX(-50%) skewX(-2deg);opacity:.41}
 54%{transform:translateX(-50%) skewX(2deg);opacity:.84}
 to{transform:translateX(-50%) skewX(-1deg);opacity:.63}
}
.oms-undersea .oms-shell-hold{
 position:absolute;z-index:20;left:50%;bottom:4%;transform:translateX(-50%);
 width:clamp(238px,29.5vw,460px);aspect-ratio:954 / 633;max-height:37dvh;
 background:transparent;border:0;padding:0;border-radius:43% 43% 37% 37%;
 pointer-events:none;touch-action:none;cursor:grab;outline:none;
 -webkit-tap-highlight-color:transparent;user-select:none;
}
.oms-undersea.is-at-floor .oms-shell-hold{pointer-events:auto}
.oms-shell-hold:active{cursor:grabbing}
.oms-shell-hold:focus-visible{outline:2px solid rgba(255,242,197,.84);outline-offset:2px}
.oms-shell-hint{
 position:absolute;left:50%;bottom:-17px;white-space:nowrap;transform:translateX(-50%);
 font:italic clamp(11px,.92vw,13px)/1.3 Georgia,serif;
 letter-spacing:.045em;color:rgba(236,249,242,.88);
 text-shadow:0 1px 6px rgba(1,41,55,.9),0 0 12px rgba(197,237,221,.5);
}
.oms-shell-hold::after{
 content:'';position:absolute;bottom:-8px;left:18%;width:64%;height:2px;border-radius:5px;
 background:linear-gradient(90deg,transparent,#e8f9dd 38%,#ffe1b3 63%,transparent);
 transform-origin:left center;transform:scaleX(0);opacity:0;box-shadow:0 0 11px rgba(248,237,194,.8);
}
.oms-shell-hold.is-holding::after{opacity:1;animation:oms-v21-hold-fill 1.45s linear forwards}
@keyframes oms-v21-hold-fill{from{transform:scaleX(0)}to{transform:scaleX(1)}}
/* Atmospheric contrast uses ambient water-shadow rather than a hard theatrical spotlight. */
.oms-undersea::after{
 content:'';position:absolute;inset:0;z-index:15;pointer-events:none;
 background:radial-gradient(ellipse 72% 84% at 50% 43%,transparent 40%,rgba(3,31,48,.30) 100%),
 linear-gradient(100deg,rgba(1,28,44,.12),transparent 40%,rgba(0,27,46,.10));
 opacity:.46;animation:oms-v21-sea-light 17s ease-in-out infinite alternate;
}
@keyframes oms-v21-sea-light{from{opacity:.30}to{opacity:.55}}
@media(max-width:700px){
 .oms-undersea .oms-shell-hold,.oms-undersea .oms-shell-lower{width:clamp(225px,68vw,350px);bottom:7.3%;max-height:33dvh}
 .oms-undersea .oms-shell-pearl{bottom:13%;width:clamp(40px,10.5vw,54px)}
 .oms-undersea .oms-shell-light{bottom:7%;width:88vw;height:27dvh}
 .oms-shell-hint{font-size:11px;bottom:-20px}
}
@media(prefers-reduced-motion:reduce){
 .oms-undersea .oms-shell-lower,.oms-undersea .oms-shell-pearl,.oms-undersea.is-at-floor.is-shell-open .oms-closed-shell{transition-duration:.15s!important}
 .oms-undersea .oms-shell-light,.oms-undersea::after{animation:none!important}
 .oms-shell-hold.is-holding::after{animation-duration:1.45s}
}
.oms-undersea .oms-shell-interior{
 position:absolute;z-index:10;left:50%;bottom:12.5%;width:clamp(160px,19vw,300px);
 height:clamp(43px,9dvh,105px);transform:translateX(-50%) scale(.72);
 opacity:0;pointer-events:none;border-radius:50%;
 background:radial-gradient(ellipse at 50% 55%,rgba(39,38,44,.78),rgba(99,67,70,.43) 40%,rgba(245,188,145,.12) 64%,transparent 86%);
 filter:blur(4px);transition:opacity 1.5s ease,transform 1.8s ease;
}
.oms-undersea.is-at-floor.is-shell-open .oms-shell-interior{opacity:.92;transform:translateX(-50%) scale(1)}
@media(max-width:700px){.oms-undersea .oms-shell-interior{bottom:14%;width:46vw;height:7dvh}}
/* Final type integration: no rectangular parchment haze; readability from ink itself. */
.oms-story-text::before{background:none!important;opacity:0!important;filter:none!important}
.oms-story-text{text-shadow:0 1px 1px rgba(255,248,235,.96),0 0 8px rgba(233,240,222,.34)}
/* Narrow refracted glints cross shell ridges, softly fading rather than drawing lines. */
.oms-undersea .oms-shell-light::before,.oms-undersea .oms-shell-light::after{
 content:'';position:absolute;inset:10% 5% 2%;pointer-events:none;
 -webkit-mask-image:radial-gradient(ellipse 67% 56% at 50% 59%,#000,transparent);
 mask-image:radial-gradient(ellipse 67% 56% at 50% 59%,#000,transparent);
}
.oms-undersea .oms-shell-light::before{
 background:linear-gradient(118deg,transparent 16%,rgba(250,241,214,.07) 26%,transparent 30%,
 rgba(252,248,225,.22) 43%,transparent 49%,rgba(198,249,235,.19) 68%,transparent 75%);
 filter:blur(9px);animation:oms-v21-shell-glints 8.6s ease-in-out infinite alternate;
}
.oms-undersea .oms-shell-light::after{
 background:radial-gradient(ellipse 15% 22% at 36% 44%,rgba(255,254,229,.28),transparent),
 radial-gradient(ellipse 20% 14% at 67% 67%,rgba(187,250,236,.19),transparent);
 filter:blur(8px);animation:oms-v21-shell-glints 11.3s ease-in-out -3s infinite alternate-reverse;
}
@keyframes oms-v21-shell-glints{
 from{transform:translate3d(-5%,0,0) rotate(-2deg);opacity:.27}
 to{transform:translate3d(5%,1%,0) rotate(2deg);opacity:.80}
}
@media(prefers-reduced-motion:reduce){.oms-undersea .oms-shell-light::before,.oms-undersea .oms-shell-light::after{animation:none!important}}
