/* ORCA Commons public landing — cinematic, accessible, zero paid page-load requests. */
body.orca-commons-home{font:15px/1.55 system-ui,-apple-system,"Segoe UI",sans-serif;margin:0}
.orca-home{max-width:1160px;margin:0 auto;padding:0 20px 76px}
.orca-home a{color:#f0d795}
.orca-home .home-overline{font-size:11px;letter-spacing:.17em;font-weight:900;color:#e9c987}
.orca-home .home-hero{min-height:475px;display:grid;grid-template-columns:1.08fr .92fr;gap:20px;align-items:stretch;padding:39px 0 10px}
.orca-home .home-hero-copy{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;min-width:0;padding:24px 15px 24px 0}
.orca-home .home-hero h1{font:900 clamp(47px,6.4vw,86px)/.99 Georgia,"Times New Roman",serif;letter-spacing:-.045em;color:#fff0cb;margin:13px 0 19px;max-width:650px}
.orca-home .home-hero h1 em{display:block;font-style:normal;color:#f8f7f4;font-size:.62em;line-height:1.12;letter-spacing:-.028em;margin-top:12px}
.orca-home .hero-lead{font-size:clamp(16px,1.75vw,19px);line-height:1.7;color:#d2deed;max-width:585px;margin:0 0 24px}
.orca-home .hero-actions{display:flex;flex-wrap:wrap;gap:10px}
.orca-home .home-button{display:inline-flex;align-items:center;justify-content:center;min-height:45px;padding:12px 19px;text-decoration:none;border-radius:10px;font-size:14px;font-weight:850;border:1px solid #e5c787;transition:transform .15s,background .15s}
.orca-home .home-button:hover{transform:translateY(-1px);text-decoration:none}
.orca-home .home-button.primary{background:linear-gradient(135deg,#f5df9f,#d5af69);color:#14243a}
.orca-home .home-button.secondary{color:#f3ddb1;background:#1b2c44;border-color:#796744}
.orca-home .home-hero-art{position:relative;overflow:hidden;border:1px solid #8d7248;border-radius:20px;min-height:400px;background:#111f32;box-shadow:0 15px 40px #03081188}
.orca-home .home-hero-art img{width:100%;height:100%;min-height:400px;object-fit:cover;object-position:center;display:block;opacity:.9}
.orca-home .home-hero-art:after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,#111d32 0%,transparent 43%),linear-gradient(90deg,#101d31aa,transparent 65%);pointer-events:none}
.orca-home .home-hero-art .art-caption{position:absolute;z-index:1;bottom:19px;left:20px;right:20px;display:flex;justify-content:space-between;gap:8px;align-items:end}
.orca-home .art-caption strong{font:800 26px/1.15 Georgia,serif;color:#f5dca5}
.orca-home .art-caption small{font-size:10px;letter-spacing:.1em;color:#c7d7e7}
.orca-home .gold-rule{height:1px;border:0;background:linear-gradient(90deg,transparent,#a99161,transparent);margin:22px 0 35px}
.orca-home .home-search{scroll-margin-top:20px;border:1px solid #8b7046;background:radial-gradient(ellipse at 95% 0%,#29445a,#182840 65%);border-radius:18px;padding:27px 31px;box-shadow:0 14px 32px #040c1b70}
.orca-home .home-search-header{display:flex;gap:20px;justify-content:space-between;align-items:end;flex-wrap:wrap}
.orca-home h2{font:850 clamp(26px,3.2vw,39px)/1.13 Georgia,serif;color:#f3dea7;letter-spacing:-.02em;margin:7px 0 10px}
.orca-home h3{font:800 23px/1.2 Georgia,serif;color:#f4dba1;margin:7px 0 10px}
.orca-home .home-search p{font-size:13px;color:#c2d2e3;max-width:670px;margin:0}
.orca-home .home-search .orca-lookup{margin:16px 0 3px}
.orca-home .home-search .orca-lookup label{color:#e8c98c}
.orca-home .home-search .orca-lookup input{background:#f6f7f7;color:#162c3c;border:1px solid #c4b080;min-height:46px}
.orca-home .home-search .orca-lookup button{background:#ebcc89;color:#172a3d;min-height:46px}
.orca-home .home-search .orca-lookup button:hover{background:#f5dda8}
/* Homepage formerly overrode the stock-search submit button. */
.orca-home .home-search .orca-lookup .orca-lookup-form > button.orca-lookup-submit{
 color:#ffe6a3;border:1px solid #f3dea7;
 background:linear-gradient(90deg,#a90010 0%,#a90010 calc(100% - 6px),#f3dea7 calc(100% - 6px));
}
.orca-home .home-search .orca-lookup .orca-lookup-form > button.orca-lookup-submit:hover:not(:disabled){
 color:#fff0bf;border-color:#f3dea7;
 background:linear-gradient(90deg,#bf071d 0%,#bf071d calc(100% - 6px),#f3dea7 calc(100% - 6px));
}
.orca-home .home-search .orca-lookup .orca-lookup-form > button.orca-lookup-submit:disabled{
 color:#ffe6a3;opacity:.85;
}
.orca-home .home-search .orca-lookup-status{color:#c4d7e7}
.orca-home .home-search .orca-lookup-results{background:#fbfaf6;border-color:#c8b78f}
.orca-home .home-search .orca-lookup-results a,.orca-home .home-search .orca-lookup-results button{color:#193448}
.orca-home .home-search .small{font-size:12px;color:#b4c7d7}
.orca-home .home-section{scroll-margin-top:16px;margin-top:54px}
/* Search once, immediately beneath the three Research Realm cards. */
.orca-home #realms + .home-search{margin-top:18px;padding:16px 22px}
.orca-home #realms + .home-search .home-search-header h2{font-size:clamp(21px,2.2vw,27px);margin:4px 0 5px}
.orca-home #realms + .home-search .orca-lookup{margin:12px 0 5px}
@media(max-width:620px){
 .orca-home #realms + .home-search{margin-top:16px;padding:16px}
}
.orca-home .section-intro{display:flex;align-items:end;justify-content:space-between;gap:25px;flex-wrap:wrap;margin-bottom:19px}
.orca-home .section-intro p{font-size:14px;color:#c6d6e6;line-height:1.7;max-width:540px;margin:0}
.orca-home .realm-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.orca-home .realm{display:block;position:relative;min-width:0;min-height:400px;border:1px solid #8a744c;border-radius:15px;overflow:hidden;background:#1b293d;text-decoration:none;box-shadow:0 12px 30px #04081180;transition:transform .2s,border-color .2s}
.orca-home .realm:hover,.orca-home .realm:focus-visible{transform:translateY(-3px);border-color:#d4b97c}
.orca-home .realm img{width:100%;height:400px;display:block;object-fit:cover}
.orca-home .realm:after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,#071424 0%,#0c1b2d50 45%,transparent 75%);pointer-events:none}
.orca-home .realm-content{position:absolute;z-index:1;bottom:18px;left:18px;right:18px}
.orca-home .realm-content span{display:block;color:#e6c488;font-weight:850;font-size:10px;letter-spacing:.16em;margin-bottom:5px}
.orca-home .realm-content strong{font:850 27px/1.1 Georgia,serif;color:#f7e2b4;display:block}
.orca-home .realm-content small{display:block;color:#d8e4f0;font-size:12px;line-height:1.5;margin-top:9px}
.orca-home .journey{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.orca-home .journey-step{background:linear-gradient(145deg,#20344b,#18283c);border:1px solid #59647a;border-radius:14px;padding:22px;display:grid;grid-template-columns:53px 1fr;gap:12px}
.orca-home .journey-num{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;font:800 22px Georgia,serif;color:#f4d99a;background:#223b54;border:1px solid #bea06c}
.orca-home .journey-step h3{font-size:20px;margin:4px 0 6px}
.orca-home .journey-step p{font-size:13px;line-height:1.65;color:#d0ddea;margin:0}
.orca-home .journey-step a{display:inline-block;margin-top:10px;text-decoration:none;font-size:12px;font-weight:850;color:#f0d295}
.orca-home .legends-feature{display:grid;grid-template-columns:1.25fr .75fr;gap:20px;align-items:center;background:radial-gradient(ellipse at 90% 50%,#3c4a51,#1a2b40 65%,#102035);border:1px solid #8b744d;border-radius:18px;padding:29px;box-shadow:0 12px 32px #03091750}
.orca-home .legends-feature p{color:#d0dce8;font-size:14px;line-height:1.7}
.orca-home .legends-mark{display:grid;place-items:center;text-align:center;min-height:190px;border:1px solid #806c4b;border-radius:14px;background:radial-gradient(circle at 50% 45%,#4d5b69,#17263d 65%);position:relative;overflow:hidden}
.orca-home .legends-mark:before{content:"";width:155px;height:155px;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);border-radius:50%;border:1px solid #e6c58970;box-shadow:0 0 0 16px #e6c58912,0 0 0 35px #e6c58909}
.orca-home .legends-mark strong{position:relative;color:#f0daa7;font:900 38px/1.1 Georgia,serif}
.orca-home .legends-mark small{position:relative;color:#d0dced;font-weight:750;letter-spacing:.14em;font-size:10px}
.orca-home .fine-print{font-size:12px;color:#b3c5d6;line-height:1.7;margin:28px 0 5px}
body.orca-commons-home>footer{background:#0a1424;border-top:1px solid #62563e;padding:24px 20px;color:#b9cadd;text-align:center;font-size:12px}
body.orca-commons-home>footer a{color:#e5cb93}
@media(max-width:850px){
 .orca-home .home-hero{grid-template-columns:1fr;padding-top:16px}
 .orca-home .home-hero-copy{padding:22px 0 6px}
 .orca-home .home-hero-art,.orca-home .home-hero-art img{min-height:330px;height:330px}
 .orca-home .realm-grid{gap:10px}
 .orca-home .realm,.orca-home .realm img{min-height:310px;height:310px}
 .orca-home .realm-content strong{font-size:22px}
 .orca-home .realm-content{left:12px;right:12px}
}
@media(max-width:620px){
 .orca-home{padding:0 14px 45px}
 .orca-home .home-hero h1{font-size:clamp(44px,12vw,62px)}
 .orca-home .home-hero-art,.orca-home .home-hero-art img{min-height:285px;height:285px}
 .orca-home .home-hero-art .art-caption strong{font-size:20px}
 .orca-home .home-search{padding:20px 16px}
 .orca-home .realm-grid,.orca-home .journey,.orca-home .legends-feature{grid-template-columns:1fr}
 .orca-home .realm,.orca-home .realm img{height:340px;min-height:340px}
 .orca-home .section-intro{align-items:start}
 .orca-home .home-section{margin-top:38px}
 .orca-home .legends-feature{padding:22px}
 .orca-home .legends-mark{min-height:160px}
}
@media(prefers-reduced-motion:reduce){.orca-home .home-button,.orca-home .realm{transition:none}}

/* Cinematic trailer entrance — user-initiated playback; the game remains gated. */
.orca-home .legends-cinema-feature{grid-template-columns:.84fr 1.16fr;align-items:center;gap:27px;padding:24px;border:1px solid #ac8955;background:radial-gradient(circle at 80% 26%,#283b52,#0e1d31 74%);box-shadow:0 15px 38px #030b1b8c}
.orca-home .legends-cinema-copy{min-width:0}
.orca-home .legends-cinema-copy h2{font-size:clamp(31px,4vw,51px);margin:10px 0 4px}
.orca-home .legends-cinema-motto{font:750 12px/1.5 Georgia,serif!important;letter-spacing:.16em;color:#f2d290!important;margin:5px 0 15px!important}
.orca-home .legends-cinema-copy p{max-width:460px}
.orca-home .legends-cinema-fine{font-size:11px!important;line-height:1.55!important;color:#b8cada!important;margin:13px 0 0!important}
.orca-home .legends-watch-button{font-family:inherit;cursor:pointer}
.orca-home .legends-cinema-poster{display:block;position:relative;aspect-ratio:16/9;width:100%;padding:0;border-radius:15px;border:1px solid #a58a55;background:#07121e;overflow:hidden;cursor:pointer;box-shadow:0 10px 35px #0008;min-width:0}
.orca-home .legends-cinema-poster img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .35s ease,filter .35s ease}
.orca-home .legends-cinema-poster:hover img,.orca-home .legends-cinema-poster:focus-visible img{transform:scale(1.045);filter:brightness(1.14)}
.orca-home .legends-cinema-poster:after{content:"";position:absolute;inset:0;pointer-events:none;box-shadow:inset 0 -40px 60px #070f1d65}
.orca-home .legends-cinema-play{position:absolute;z-index:1;top:50%;left:50%;transform:translate(-50%,-50%);display:grid;place-items:center;font-size:26px;line-height:1;color:#17273a;background:#efd394db;border:1px solid #fff3d4;border-radius:100%;height:70px;width:70px;text-indent:4px;box-shadow:0 0 0 9px #e7c58929,0 5px 26px #000b}
.orca-home .legends-cinema-poster:hover .legends-cinema-play,.orca-home .legends-cinema-poster:focus-visible .legends-cinema-play{background:#fff1c4;box-shadow:0 0 0 13px #f5daa341,0 5px 34px #000b}
.orca-home .legends-cinema-duration{position:absolute;z-index:1;right:12px;bottom:11px;padding:5px 9px;background:#071725c9;color:#f6dea7;font-size:10px;font-weight:850;letter-spacing:.1em;border:1px solid #a7894c80;border-radius:7px}
.legends-trailer-dialog{width:min(1060px,calc(100vw - 28px));max-width:1060px;max-height:min(95vh,960px);box-sizing:border-box;overflow:auto;margin:auto;border:1px solid #c5a267;border-radius:17px;background:#0b1727;color:#eaf0f7;box-shadow:0 25px 100px #000d;padding:15px}
.legends-trailer-dialog::backdrop{background:#020711e8;backdrop-filter:blur(11px)}
.legends-dialog-top{display:flex;justify-content:space-between;align-items:center;gap:13px;margin:0 0 11px;padding:0 2px}
.legends-dialog-top>span{font:900 17px/1.35 Georgia,serif;letter-spacing:.07em;color:#f1d18e}
.legends-dialog-top small{font:800 10px/1.3 system-ui,sans-serif;letter-spacing:.07em;color:#b5c8da}
.legends-dialog-close{display:grid;place-items:center;width:36px;height:36px;min-width:36px;border-radius:50%;border:1px solid #846e4f;background:#263c54;color:#fff0d4;font-size:18px;cursor:pointer}
.legends-dialog-close:hover,.legends-dialog-close:focus-visible{background:#405771}
.legends-trailer-dialog video{display:block;width:100%;aspect-ratio:16/9;max-height:calc(90vh - 135px);background:#040911;border:1px solid #57677a;border-radius:9px;object-fit:contain}
.legends-dialog-status{font-size:12px;color:#d3e0ef;padding:3px 2px 0;min-height:1.8em}
.legends-dialog-footer{display:flex;justify-content:space-between;align-items:center;gap:13px;flex-wrap:wrap;border-top:1px solid #42536a;margin-top:8px;padding:13px 2px 3px}
.legends-dialog-footer span{color:#adbed0;font-size:10px;letter-spacing:.07em}
.legends-dialog-footer a{color:#f6d894;text-decoration:none;font-size:12px;font-weight:850}
.legends-trailer-dialog button:focus-visible,.legends-trailer-dialog a:focus-visible,.orca-home .legends-cinema-poster:focus-visible{outline:3px solid #ffe2a0;outline-offset:3px}
@media(max-width:850px){
 .orca-home .legends-cinema-feature{grid-template-columns:1fr;gap:17px}
 .orca-home .legends-cinema-poster{max-width:760px;margin:0 auto}
}
@media(max-width:500px){
 .orca-home .legends-cinema-feature{padding:16px;gap:19px}
 .orca-home .legends-cinema-play{height:50px;width:50px;font-size:20px}
 .orca-home .legends-cinema-duration{font-size:9px}
 .legends-trailer-dialog{padding:9px;border-radius:11px}
 .legends-dialog-top>span{font-size:13px}
 .legends-dialog-top small{display:none}
 .legends-dialog-footer{align-items:start}
}
@media(prefers-reduced-motion:reduce){
 .orca-home .legends-cinema-poster img{transition:none!important}
 .orca-home .legends-cinema-poster:hover img{transform:none}
}

/* ORCA Legends poster refinement: fit the cinematic teaser INSIDE its card,
   at a deliberately smaller scale than the three full-size research realms. */
.orca-home .legends-feature.legends-cinema-feature{
  box-sizing:border-box;width:100%;max-width:890px;margin-left:auto;margin-right:auto;
  grid-template-columns:minmax(0,.96fr) minmax(0,1.04fr);
  gap:18px;padding:20px;overflow:hidden;align-items:center;
}
.orca-home .legends-cinema-feature>*{min-width:0;max-width:100%;box-sizing:border-box}
.orca-home .legends-cinema-feature .legends-cinema-copy h2{font-size:clamp(26px,3vw,40px)}
.orca-home .legends-cinema-feature .legends-cinema-copy p{font-size:13px;line-height:1.55}
.orca-home .legends-cinema-feature .legends-cinema-poster{
  box-sizing:border-box;display:block;min-width:0;width:100%;max-width:430px;
  aspect-ratio:16/9;height:auto;justify-self:end;padding:0;overflow:hidden;
  border:1px solid #997b4c;border-radius:11px;
}
.orca-home .legends-cinema-feature .legends-cinema-poster img{
  box-sizing:border-box;display:block;width:100%;height:100%;min-width:0;
  max-width:100%;max-height:100%;object-fit:contain;
}
.orca-home .legends-cinema-feature .legends-cinema-play{height:52px;width:52px;font-size:21px}
.orca-home .legends-cinema-feature .legends-cinema-duration{font-size:9px}
@media(max-width:850px){
 .orca-home .legends-feature.legends-cinema-feature{
  grid-template-columns:minmax(0,1fr);max-width:620px;gap:18px;padding:17px;
 }
 .orca-home .legends-cinema-feature .legends-cinema-poster{
  width:100%;max-width:100%;justify-self:stretch;
 }
}
@media(max-width:520px){
 .orca-home .legends-feature.legends-cinema-feature{padding:14px}
 .orca-home .legends-cinema-feature .legends-cinema-poster{max-width:100%}
 .orca-home .legends-cinema-feature .legends-cinema-play{height:44px;width:44px;font-size:18px}
}

/* King's Keep cinematic portal: only the Management realm image opens the scroll film. */
.orca-home .realm-keep .realm-keep-art{position:absolute;inset:0;z-index:1;display:block}
.orca-home .realm-keep .realm-keep-art img{width:100%;height:100%;object-fit:cover}
.orca-home .realm-keep .realm-content{z-index:2;pointer-events:none}
.orca-home .realm-keep .realm-keep-research-link{pointer-events:auto;color:inherit;text-decoration:none;border-bottom:1px solid transparent}
.orca-home .realm-keep .realm-keep-research-link:hover,
.orca-home .realm-keep .realm-keep-research-link:focus-visible{border-color:#f7e2b4;text-decoration:none}
.orca-home .realm-keep .realm-keep-art:focus-visible{outline:3px solid #ffe2a0;outline-offset:-5px}
