/* V12.7: independent portfolio namespace. No collisions with former home work sections. */
.hero-v4 .v4-switch.v4-portfolio-link{container-type:inline-size;overflow:hidden;padding:3px!important;display:flex!important;align-items:center;justify-content:center;}
.hero-v4 .v4-switch.v4-portfolio-link span{font-size:clamp(5px,19cqw,17px)!important;line-height:1.15;letter-spacing:-.025em;white-space:nowrap;max-width:100%;text-align:center;}
body[data-page="home"].body-modal-open main,body[data-page="home"].body-modal-open .site-header,body[data-page="home"].body-modal-open .site-footer{visibility:hidden}
body[data-page="home"].body-modal-open main *,body[data-page="home"].body-modal-open .film-modal *{animation-play-state:paused!important}
body[data-page="home"].body-modal-open .film-modal-backdrop{backdrop-filter:none;background:#061b15!important}
body[data-page="home"] .film-modal{overflow:auto}
body[data-page="home"] .film-modal-player video{height:min(68dvh,740px)}
@media(max-width:800px){body[data-page="home"] .film-modal-player video{height:min(61dvh,560px)}}
.yv-main{position:relative;background:radial-gradient(ellipse at 74% 0%,#16382d 0,transparent 38%),#061511;color:#e3f0e9;}
.yv-intro{padding:clamp(38px,6vw,86px) 0 34px;}
.yv-intro .section-index{display:block;margin:30px 0 12px;}
.yv-intro h1{font-size:clamp(52px,8vw,108px);font-weight:500;line-height:1.02;letter-spacing:-.06em;margin:0 0 16px;}
.yv-lead{font-size:clamp(15px,1.35vw,19px);color:#c3d9ce;max-width:720px;margin:0;line-height:1.5;}
.yv-sub{color:#94b1a1;margin:7px 0 0;}
.yv-collection{padding:30px 0 clamp(45px,7vw,100px);}
.yv-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;align-items:stretch;}
.yv-card{min-width:0;display:flex;flex-direction:column;border:1px solid #79c7a638;background:linear-gradient(160deg,#102b22,#0a1e18);scroll-margin-top:100px;}
.yv-thumb{position:relative;display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:16/9;overflow:hidden;background:#04100c;border-bottom:1px solid #79c7a638;isolation:isolate;}
.yv-thumb img{display:block;width:100%;height:100%;object-fit:contain;transition:filter .25s ease;}
.yv-portrait .yv-thumb{aspect-ratio:auto;height:clamp(280px,31vw,440px);background:radial-gradient(ellipse at center,#153a2c,#071912 75%);}
.yv-portrait .yv-thumb img{width:auto;max-width:100%;height:100%;}
.yv-play{position:absolute;inset:50% auto auto 50%;transform:translate(-50%,-50%);width:48px;height:48px;display:grid;place-items:center;border-radius:50%;border:1px solid #d5f4e3b0;background:#071911bf;color:#e9fff0;box-shadow:0 4px 22px #0007;transition:background .2s,transform .2s;}
.yv-thumb:hover .yv-play,.yv-thumb:focus-visible .yv-play{background:#245741;transform:translate(-50%,-50%) scale(1.09);}
.yv-thumb:hover img{filter:brightness(.88);}
.yv-runtime,.yv-feature-tag{position:absolute;bottom:9px;right:9px;font-size:10px;font-weight:600;letter-spacing:.045em;color:#e3f1e7;background:#061611e5;padding:3px 8px;border:1px solid #bddcc24d;}
.yv-feature-tag{bottom:auto;right:auto;left:9px;top:9px;color:#cdebd8;font-size:9px;letter-spacing:.12em;}
.yv-copy{padding:19px;display:flex;flex-direction:column;flex:1;gap:10px;}
.yv-category{font-size:10px;font-weight:700;letter-spacing:.11em;line-height:1.5;color:#a6d7bd;margin:0;}
.yv-copy h2{font-size:clamp(19px,1.7vw,26px);font-weight:500;letter-spacing:-.035em;line-height:1.2;margin:0;overflow-wrap:anywhere;}
.yv-desc,.yv-best{font-size:13px;line-height:1.6;color:#c3d4ca;margin:0;}
.yv-best{font-size:12px;color:#aec6b7;}
.yv-best strong{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.1em;color:#e2f2e7;margin-bottom:3px;}
.yv-credit{font-size:9px;color:#98b3a5;letter-spacing:.08em;margin:0;line-height:1.6;}
.yv-service{margin-top:auto;padding-top:12px;border-top:1px solid #79c7a62e;font-size:11px;color:#a9e3c3;text-transform:uppercase;letter-spacing:.09em;display:flex;justify-content:space-between;align-items:center;gap:8px;}
.yv-service:hover{text-decoration:underline;}
.yv-dialog{width:min(1100px,calc(100% - 32px));max-width:calc(100% - 32px);max-height:calc(100dvh - 26px);margin:auto;padding:0;overflow:auto;background:#081c15;color:#e4f3ea;border:1px solid #94d8b576;border-radius:8px;box-shadow:0 20px 70px #000a;}
.yv-dialog::backdrop{background:#020a07f5;}
.yv-dialog-inner{padding:18px;}
.yv-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;}
.yv-dialog-head h2{margin:4px 0 0;font-weight:500;font-size:clamp(19px,3vw,30px);line-height:1.2;}
.yv-close{flex:none;width:40px;height:40px;border-radius:50%;background:#102e22;color:#e1f4e7;border:1px solid #90c6aa80;font-size:25px;line-height:1;}
.yv-player{position:relative;background:#020705;border:1px solid #79c7a63a;}
.yv-player video{display:block;position:static;width:100%;height:min(72dvh,760px);object-fit:contain;background:#020705;}
.yv-status{position:absolute;z-index:5;left:50%;top:50%;transform:translate(-50%,-50%);padding:10px 15px;border:1px solid #89c5a8;background:#061911eb;color:#fff;text-align:center;pointer-events:none;max-width:90%;}
.yv-status[hidden]{display:none!important;}
body.yv-dialog-open{overflow:hidden;}
body.yv-dialog-open .yv-main,body.yv-dialog-open .site-header,body.yv-dialog-open .site-footer{visibility:hidden;}
@media(max-width:1000px){.yv-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;}.yv-portrait .yv-thumb{height:clamp(275px,45vw,420px);}}
@media(max-width:600px){.yv-grid{grid-template-columns:1fr;gap:18px;}.yv-intro{padding-top:30px;}.yv-copy{padding:17px;}.yv-portrait .yv-thumb{height:clamp(320px,110vw,485px);}.yv-player video{height:min(66dvh,620px);}.yv-dialog-inner{padding:12px;}.yv-dialog{width:calc(100% - 16px);max-width:calc(100% - 16px);}}
@media(prefers-reduced-motion:reduce){.yv-thumb img,.yv-play{transition:none;}}

/* V12.8 — shared emerald film theatre; circular scope rings stay round at any aspect ratio. */
.editor-scopes{background:
  linear-gradient(90deg,transparent 49.5%,rgba(144,237,195,.12) 50%,transparent 50.5%),
  linear-gradient(transparent 49.5%,rgba(144,237,195,.12) 50%,transparent 50.5%),
  radial-gradient(circle closest-side at 50% 50%,transparent 0 52%,rgba(111,223,174,.10) 53% 55%,transparent 56%),
  radial-gradient(circle closest-side at 50% 50%,transparent 0 83%,rgba(111,223,174,.07) 84% 86%,transparent 87%);}
.editor-wheels i{flex:0 0 29%;height:auto;aspect-ratio:1 / 1;align-self:flex-start;box-sizing:border-box;}
.yv-dialog{background:radial-gradient(75% 120% at 50% 55%,rgba(25,89,68,.13),transparent 67%),linear-gradient(180deg,#05221a,#031813);border-color:rgba(144,235,194,.28);border-radius:14px;}
.yv-dialog::backdrop{background:#061b15;}
.yv-player.film-modal-player video{position:relative;z-index:2;background:transparent!important;object-fit:contain;}
.yv-close{background:rgba(5,39,29,.82);border-color:rgba(185,255,222,.38);}
