/* Isolated proposal. Scope deliberately excludes the homepage and the cinematic hero. */
.proposal-projects{overflow-x:clip;background:#000;padding:24px 0!important;}
.port-project.case-proposal{width:min(1000px,calc(100% - 80px));max-width:none;margin:0 auto 160px;padding:24px 0 0;font-family:'Instrument Sans',sans-serif;color:#fff;position:relative;}
.port-project.case-proposal:not(:last-child)::after{content:'';display:block;width:min(100%,880px);height:1px;margin:150px auto 0;background:linear-gradient(90deg,transparent,rgba(255,255,255,0.06) 20%,rgba(255,255,255,0.14) 50%,rgba(255,255,255,0.06) 80%,transparent);pointer-events:none;}
.case-heading-row{display:flex;justify-content:space-between;align-items:flex-end;gap:32px;margin-bottom:24px;}
.case-heading-row h2{font-family:'Instrument Sans',sans-serif;font-size:clamp(26px,2.4vw,36px);font-weight:500;letter-spacing:-.035em;line-height:1.15;margin:0;max-width:900px;color:#fff;text-wrap:balance;}
.case-heading-row h2 span{display:block;font-size:17px;line-height:1.3;font-weight:400;letter-spacing:-.02em;color:#b2b2b7;margin-top:8px;}
.case-category{flex:0 0 190px;font-size:12px;line-height:1.6;color:#b2b2b7;text-align:right;margin:0 0 4px;}
.device-showcase{margin:0 0 24px;position:relative;padding:12px 0 0;}
.device-showcase figcaption{font-size:11px;color:#9b9ba3;text-align:center;line-height:1.5;margin-top:12px;}
.case-description{font:400 16px/1.65 'Instrument Sans',sans-serif;max-width:72ch;color:#d0d0d5;margin:0 auto 32px;text-align:left;text-wrap:pretty;}
.case-comparison{display:grid;grid-template-columns:1fr 1fr;gap:48px;}
.case-column{padding:0;background:none;border:0;box-shadow:none;}
.case-heading{display:flex;align-items:center;gap:10px;margin-bottom:12px;}
.case-heading h3{font:500 20px/1.3 'Instrument Sans',sans-serif;letter-spacing:-.025em;margin:0;color:#fff;}
.case-dot{width:6px;height:6px;flex-shrink:0;border-radius:50%;background:#ff5b16;}
.case-column:last-child .case-dot{background:#fff;}
.case-column p{font:400 16px/1.65 'Instrument Sans',sans-serif;color:#b4b4bc;margin:0;text-wrap:pretty;}
.case-actions{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:16px 28px;margin-top:28px;}
.case-actions a,.case-actions button{font:500 14px/1.4 'Instrument Sans',sans-serif;display:inline-flex;align-items:center;gap:14px;text-decoration:none;cursor:pointer;}
.case-actions svg{width:18px;height:18px;}
.case-primary{border-radius:8px;color:#000;background:#fff;padding:12px 18px;min-height:44px;}
.case-link{border:0;border-radius:0;background:none;padding:12px 0;color:#dddde3;}
.case-link::after{display:none;}
.case-testimony{color:#ff5b16;}
.case-actions a:hover,.case-actions button:hover{opacity:.8;}
.case-actions a:focus-visible,.case-actions button:focus-visible,.dialog-close:focus-visible{outline:2px solid #ff5b16;outline-offset:6px;}
.proposal-projects ::selection,.case-dialog ::selection{background:#ff5b16;color:#000;}
.port-project[hidden]{display:none!important;}
.case-dialog{position:fixed;inset:0;box-sizing:border-box;width:min(820px,calc(100% - 48px));max-height:calc(100dvh - 48px);padding:48px 48px 40px;border:1px solid #38383c;border-radius:12px;background:#0c0c0d;color:#fff;overflow:auto;font-family:'Instrument Sans',sans-serif;}
.case-dialog::backdrop{background:#000d;}
.dialog-close{position:sticky;top:0;float:right;margin:-24px -24px 0 0;display:grid;place-items:center;width:44px;height:44px;background:#222225;color:#fff;border:0;border-radius:50%;cursor:pointer;z-index:2;}
.dialog-close svg{width:22px;height:22px;}
.case-dialog h2{font:500 clamp(25px,2.3vw,32px)/1.2 'Instrument Sans',sans-serif;letter-spacing:-.03em;max-width:800px;margin:0 0 24px;}
.dialog-intro{font-size:16px;line-height:1.6;color:#b4b4bc;margin:0 0 24px;}
.dialog-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;padding:20px 0;border-block:1px solid #ffffff24;margin:0 0 28px;}
.dialog-metrics strong{display:block;font-size:24px;font-weight:500;margin-bottom:8px;}
.dialog-metrics span{font-size:14px;color:#b4b4bc;line-height:1.4;display:block;}
.case-dialog h3{font-size:20px;font-weight:500;margin:24px 0 12px;letter-spacing:-.02em;color:#fff;}
.case-dialog p,.case-dialog li{font-size:16px;line-height:1.65;color:#b4b4bc;}
.case-dialog ul{padding-left:20px;}
.case-dialog li{margin-bottom:16px;}
.case-dialog strong{color:#fff;font-weight:500;}
.case-dialog blockquote{font:400 clamp(20px,2vw,25px)/1.5 Lora,serif;letter-spacing:-.02em;margin:32px 0 16px;color:#fff;}
.dialog-author{font-size:15px!important;color:#ff5b16!important;}
@media(max-width:900px){
 .port-project.case-proposal{width:calc(100% - 48px);margin-bottom:120px;}
 .port-project.case-proposal:not(:last-child)::after{margin-top:110px;}
 .case-heading-row{display:block;margin-bottom:24px;}
 .case-category{text-align:left;margin:12px 0 0;}
 .case-comparison{gap:32px;}
 .case-heading h3{font-size:20px;}
 .case-column p{font-size:16px;}
 .case-actions{gap:16px 24px;}
 .case-dialog{padding:48px 32px 32px;}
 .dialog-close{margin:-36px -8px 0 0;}
}
@media(max-width:600px){
 .proposal-projects{padding-top:0!important;}
 .port-project.case-proposal{width:calc(100% - 40px);padding-top:24px;}
 .case-heading-row h2{font-size:27px;}
 .case-heading-row h2 span{font-size:16px;}
 .case-category{font-size:12px;margin-top:10px;}
 .device-showcase{padding-top:4px;margin-bottom:24px;}
 .device-showcase figcaption{font-size:11px;margin-top:12px;}
 .case-description{text-align:left;font-size:15.5px;line-height:1.6;margin-bottom:28px;}
 .case-comparison{grid-template-columns:1fr;gap:28px;}
 .case-heading{margin-bottom:10px;}
 .case-heading h3{font-size:19px;}
 .case-column p{font-size:15.5px;line-height:1.65;}
 .case-actions{margin-top:24px;justify-content:flex-start;gap:12px 22px;}
 .case-primary{width:auto;justify-content:space-between;}
 .case-link{font-size:14px!important;}
 .case-dialog{width:calc(100% - 20px);max-height:calc(100dvh - 20px);padding:48px 24px 28px;}
 .dialog-metrics{grid-template-columns:1fr 1fr;gap:20px;}
 .dialog-close{margin:-40px -10px 0 0;}
}
@media(prefers-reduced-motion:reduce){premium-showcase{transform:none!important;}}


.device-showcase premium-showcase{width:min(780px,100%);margin-inline:auto;transform-origin:50% 50%;}
.showcase-inspect{display:inline-flex;align-items:center;gap:7px;min-height:44px;margin:0 0 0 12px;padding:0 4px;border:0;background:none;color:#dedee2;font:500 12px/1.4 'Instrument Sans',sans-serif;cursor:pointer;}
.showcase-inspect svg{width:14px;height:14px;}
.showcase-inspect:hover{color:#fff;}
.showcase-inspect:focus-visible{outline:2px solid #ff5b16;outline-offset:4px;}
.device-showcase premium-showcase[role=button]{cursor:pointer;}
.device-showcase premium-showcase[role=button]:focus-visible{outline:2px solid #ff5b16;outline-offset:6px;}
.project-theater{--project-color:#d4b375;position:fixed;inset:0;width:100%;max-width:none;height:100dvh;max-height:none;margin:0;padding:0;border:0;border-radius:0;overflow:auto;overscroll-behavior:contain;background:#050508;color:#fff;font-family:'Instrument Sans',sans-serif;isolation:isolate;scrollbar-color:var(--project-color) #111;}
.project-theater::backdrop{background:rgba(0,0,0,0.92);backdrop-filter:blur(20px);}
.theater-wash{position:fixed;inset:0;z-index:-2;background:radial-gradient(circle at 50% 50%,color-mix(in srgb,var(--project-color) 16%,#050508),color-mix(in srgb,var(--project-color) 5%,#050508) 50%,#050508 85%);pointer-events:none;}
.theater-droplet-ring{position:fixed;left:50%;top:50%;width:44px;height:44px;border:2px solid var(--project-color);border-radius:50%;opacity:0;pointer-events:none;z-index:-1;box-shadow:0 0 20px var(--project-color), inset 0 0 10px var(--project-color);transform:translate(-50%,-50%);}
.theater-toolbar{position:sticky;top:0;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px max(24px,calc((100vw - 1400px)/2));background:rgba(5,5,8,0.85);backdrop-filter:blur(24px);border-bottom:1px solid rgba(255,255,255,0.08);}
.theater-toolbar h2{margin:0;font:500 17px/1.4 'Instrument Sans',sans-serif;letter-spacing:-.02em;}
.preview-close{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:10px 16px;border:1px solid rgba(255,255,255,0.22);border-radius:9999px;background:rgba(255,255,255,0.04);color:#dedee4;font:500 13px/1.3 'Instrument Sans',sans-serif;cursor:pointer;transition:transform 0.28s cubic-bezier(0.16,1,0.3,1),border-color 0.28s ease,box-shadow 0.28s ease,background 0.28s ease,color 0.28s ease;position:relative;overflow:hidden;}
.preview-close svg{width:18px;height:18px;transition:transform 0.35s cubic-bezier(0.16,1,0.3,1);}
.preview-close:hover{background:rgba(255,255,255,0.09);border-color:rgba(255,255,255,0.45);box-shadow:0 0 20px rgba(255,255,255,0.12);color:#fff;transform:translateY(-1.5px) scale(1.02);}
.preview-close:hover svg{transform:rotate(90deg);}
.preview-close:active{transform:scale(0.92)!important;transition:transform 70ms cubic-bezier(0.16,1,0.3,1)!important;}
.theater-body{position:relative;display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);gap:48px;width:min(1400px,calc(100% - 64px));margin:24px auto 40px;align-items:start;align-content:center;min-height:calc(100dvh - 140px);}
.theater-presentation{position:sticky;top:108px;min-width:0;}
.theater-modes{display:flex;align-items:center;justify-content:center;gap:4px;flex-wrap:wrap;margin:0 0 12px;}
.theater-modes button{min-height:44px;padding:10px 14px;border:0;border-radius:6px;background:transparent;color:#bdbdc4;font:500 13px/1.3 'Instrument Sans',sans-serif;cursor:pointer;}
.theater-modes button[aria-pressed=true]{background:var(--project-color);color:#080809;}
.theater-modes button[hidden]{display:none;}
.theater-modes button:focus-visible,.preview-close:focus-visible,.theater-live:focus-visible{outline:2px solid var(--project-color);outline-offset:4px;}
.theater-stage{width:100%;min-width:0;}
.theater-stage premium-showcase{width:100%;}
.theater-stage premium-showcase[hidden],.theater-screen-view[hidden]{display:none;}
.theater-screen-view{height:min(68dvh,640px);overflow:auto;overscroll-behavior:contain;border-radius:10px;scrollbar-color:var(--project-color) #151516;background:#080809;}
.theater-screen-view[data-view=mobile]{width:min(340px,100%);margin-inline:auto;}
.theater-screen-view img,.theater-screen-view video{display:block;width:100%;height:auto;}
.theater-screen-view video{height:100%;object-fit:contain;}
.theater-screen-view:has(video){touch-action:none;}
.theater-screen-view:focus-visible{outline:2px solid var(--project-color);outline-offset:4px;}
.theater-help{font:400 12px/1.5 'Instrument Sans',sans-serif;color:#bdbdc4;text-align:center;margin:12px 0 0;}
.theater-story h2{font:500 27px/1.15 'Instrument Sans',sans-serif;letter-spacing:-.03em;margin:12px 0 20px;}
.theater-story h2 span{display:block;font-size:14px;font-weight:400;color:var(--project-color);margin-top:10px;line-height:1.5;letter-spacing:0;}
.theater-story .case-description{font-size:14px;line-height:1.65;margin:0 0 28px;}
.theater-story .case-comparison{display:block;}
.theater-story .case-column{margin:0 0 24px;}
.theater-story .case-heading h3{font-size:17px;}
.theater-story .case-column p{font-size:14px;line-height:1.65;}
.theater-story .case-dot{background:var(--project-color);}
.theater-story blockquote{font:400 18px/1.55 Lora,serif;margin:30px 0 12px;color:#eeeeef;text-wrap:pretty;}
.theater-author{font:400 12px/1.5 'Instrument Sans',sans-serif;color:var(--project-color);margin:0 0 24px;}
.theater-live{display:inline-flex;align-items:center;gap:10px;min-height:44px;color:#fff;font:500 14px/1.3 'Instrument Sans',sans-serif;text-decoration:none;}
.theater-live svg{width:17px;height:17px;}

/* Rich Theater Narrative Styling */
.theater-narrative-container{max-width:720px;padding-bottom:20px;}
.theater-kicker{display:inline-flex;align-items:center;gap:8px;font:600 11px/1.4 'Instrument Sans',sans-serif;letter-spacing:0.12em;text-transform:uppercase;color:var(--project-color);margin-bottom:12px;}
.theater-kicker-dot{width:6px;height:6px;border-radius:50%;background:var(--project-color);box-shadow:0 0 8px var(--project-color);}
.theater-title{font:600 clamp(22px,2.3vw,30px)/1.25 Montserrat,sans-serif!important;letter-spacing:-0.025em;color:#ffffff;margin:0 0 10px!important;}
.theater-tagline{font:400 14.5px/1.6 Montserrat,sans-serif;color:#a1a1aa;margin:0 0 24px;}
.theater-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(125px,1fr));gap:12px;margin:0 0 32px;}
.theater-metric-card{padding:14px 16px;border-radius:12px;background:rgba(255,255,255,0.03);border:1px solid rgba(255,255,255,0.08);backdrop-filter:blur(10px);}
.theater-metric-num{display:block;font:700 22px/1.2 Montserrat,sans-serif;color:var(--project-color);letter-spacing:-0.02em;}
.theater-metric-label{display:block;font:400 11px/1.4 Montserrat,sans-serif;color:#94949e;margin-top:4px;}
.theater-prose p{font:400 15px/1.8 Montserrat,sans-serif;color:#d4d4d8;margin:0 0 16px;}
.theater-section-title{font:600 18px/1.3 Montserrat,sans-serif;letter-spacing:-0.015em;color:#ffffff;margin:32px 0 14px;display:flex;align-items:center;gap:10px;}
.theater-section-title::before{content:'';width:3px;height:18px;background:var(--project-color);border-radius:2px;}
.theater-section-lead{font:400 14.5px/1.7 Montserrat,sans-serif;color:#c8c8d0;margin:0 0 16px;}
.theater-feature-list{display:flex;flex-direction:column;gap:12px;margin:16px 0 24px;}
.theater-feature-card{padding:18px 20px;border-radius:12px;background:rgba(255,255,255,0.025);border:1px solid rgba(255,255,255,0.08);}
.theater-feature-title{font:600 14.5px/1.4 Montserrat,sans-serif;color:#ffffff;margin:0 0 6px;}
.theater-feature-text{font:400 13.5px/1.7 Montserrat,sans-serif;color:#a1a1aa;margin:0;}
.theater-feature-text strong{color:#ffffff;font-weight:500;}
.theater-quote-box{margin:36px 0 28px;padding:24px 28px;border-radius:14px;background:linear-gradient(135deg,rgba(255,255,255,0.04),rgba(255,255,255,0.01));border:1px solid rgba(255,255,255,0.1);border-left:3px solid var(--project-color);}
.theater-quote-text{font:400 16px/1.65 Lora,serif;font-style:italic;color:#f4f4f5;margin:0 0 14px;}
.theater-quote-author{font:600 12px/1.4 Montserrat,sans-serif;color:var(--project-color);margin:0;text-transform:uppercase;letter-spacing:0.05em;}
.theater-actions-bar{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:36px;padding-top:24px;border-top:1px solid rgba(255,255,255,0.08);}
.theater-btn-primary{display:inline-flex;align-items:center;gap:8px;padding:12px 22px;border-radius:9999px;background:var(--project-color);color:#080809;font:600 13px Montserrat,sans-serif;text-decoration:none;transition:transform 0.2s cubic-bezier(0.16,1,0.3,1),opacity 0.2s;}
.theater-btn-primary:hover{transform:translateY(-1px);opacity:0.92;}
.theater-btn-secondary{display:inline-flex;align-items:center;gap:8px;padding:12px 20px;border-radius:9999px;background:rgba(255,255,255,0.06);border:1px solid rgba(255,255,255,0.12);color:#e4e4e7;font:500 13px Montserrat,sans-serif;text-decoration:none;transition:background 0.2s,border-color 0.2s;}
.theater-btn-secondary:hover{background:rgba(255,255,255,0.1);border-color:rgba(255,255,255,0.25);color:#ffffff;}
.theater-actions-bar svg{width:15px;height:15px;}
.project-theater ::selection{background:var(--project-color);color:#000;}
@media(max-width:1000px){.theater-body{grid-template-columns:1fr;gap:32px;max-width:780px;}.theater-presentation{position:relative;top:auto;}.theater-story{max-width:70ch;margin-inline:auto;}}
@media(max-width:600px){
 .device-showcase figcaption{display:flex;align-items:center;justify-content:center;gap:8px;}
 .showcase-inspect{margin:0;font-size:11px;}
 .theater-toolbar{padding:10px 16px;gap:12px;}
 .theater-toolbar h2{font-size:15px;}
 .preview-close{padding:9px 10px;font-size:12px;}
 .theater-body{width:calc(100% - 32px);margin:12px auto 32px;gap:28px;}
 .theater-modes{gap:2px;}
 .theater-modes button{font-size:12px;padding:10px;}
 .theater-screen-view{height:min(66dvh,640px);}
 .theater-screen-view[data-view=mobile]{width:min(340px,100%);}
 .theater-story h2{font-size:25px;}
 .theater-help{font-size:11px;}
}
@media(prefers-reduced-motion:reduce){.theater-droplet-ring{display:none;}}

/* Requested hierarchy: project context, statement, challenge/solution, decision. */
.port-project.case-proposal{border:0;scroll-margin-top:100px;margin:0 auto 200px;}
.case-heading-row{position:relative;isolation:isolate;min-height:96px;display:flex;justify-content:space-between;align-items:flex-end;gap:32px;margin:0 0 24px;}
.case-heading-row h2{color:#ffffff;margin:0;font-family:Montserrat,sans-serif;font-weight:500;font-size:clamp(28px,2.8vw,42px);line-height:1.15;letter-spacing:-.03em;}
.case-heading-row h2 span{display:block;font-family:Montserrat,sans-serif;font-weight:400;font-size:15px;line-height:1.5;margin-top:10px;color:#a1a1aa;letter-spacing:0;}
.case-number{position:absolute;left:-20px;top:-60px;z-index:-1;font:600 clamp(140px,13vw,200px)/1 Montserrat,sans-serif;letter-spacing:-.04em;color:#ffffff07;pointer-events:none;user-select:none;}
.case-proposal .case-description{max-width:none;margin:24px 0 48px;color:#e5e5e9;}
.case-proposal .case-description-lead{display:block;font-family:Montserrat,sans-serif;font-weight:500;font-size:clamp(24px,2.5vw,32px);line-height:1.4;letter-spacing:-.02em;margin-bottom:14px;text-wrap:pretty;}
.case-proposal .case-description-detail{display:block;font-family:Montserrat,sans-serif;font-weight:400;font-size:18px;line-height:1.65;color:#a1a1aa;max-width:78ch;}
.case-comparison{gap:32px;align-items:start;}
.case-heading h3{font:500 17px/1.5 Montserrat,sans-serif;letter-spacing:-.01em;}
.case-challenge .case-heading h3,.case-challenge .case-dot{color:#ff939c;background-color:transparent;}
.case-solution .case-heading h3,.case-solution .case-dot{color:#83d6b0;background-color:transparent;}
.case-challenge .case-dot{background:#ff939c!important;}
.case-solution .case-dot{background:#83d6b0!important;}
.case-proposal .case-panel{position:relative;padding:22px 24px;border:1px solid #ffffff1c;border-radius:14px;background:linear-gradient(145deg,#ffffff0b,#ffffff03);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);}
.case-proposal .case-panel p{font:400 14.5px/1.75 Montserrat,sans-serif;color:#c8c8d0;}
.case-proposal .case-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px 14px;margin-top:28px;}
.case-btn-story{position:relative;overflow:hidden;display:inline-flex;align-items:center;gap:9px;min-height:44px;padding:10px 20px;border-radius:9999px;background:rgba(255,255,255,0.05);border:1px solid rgba(255,255,255,0.14);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);color:#f4f4f6;font:500 13px/1.3 Montserrat,sans-serif;letter-spacing:-.01em;text-decoration:none;cursor:pointer;box-shadow:0 4px 16px rgba(0,0,0,0.35);transition:transform 0.28s cubic-bezier(0.16,1,0.3,1),box-shadow 0.28s cubic-bezier(0.16,1,0.3,1),background 0.28s ease,border-color 0.28s ease;user-select:none;}
.case-btn-story svg{color:#ff9e40;flex-shrink:0;transition:transform 0.28s cubic-bezier(0.16,1,0.3,1),color 0.28s ease;}
.case-btn-story:hover{background:rgba(255,255,255,0.09);border-color:rgba(255,122,0,0.45);color:#ffffff;box-shadow:0 6px 20px rgba(255,91,22,0.18),0 0 12px rgba(255,122,0,0.15);transform:translateY(-2px) scale(1.015);}
.case-btn-story:hover svg{transform:scale(1.12);color:#ffb766;}
.case-btn-story:active{transform:translateY(1px) scale(0.95)!important;transition:transform 70ms cubic-bezier(0.16,1,0.3,1)!important;}

.case-btn-website{position:relative;overflow:hidden;display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:10px 18px;border-radius:9999px;background:rgba(255,255,255,0.02);border:1px solid rgba(255,255,255,0.09);color:#a1a1aa;font:500 13px/1.3 Montserrat,sans-serif;letter-spacing:-.01em;text-decoration:none;cursor:pointer;transition:transform 0.28s cubic-bezier(0.16,1,0.3,1),box-shadow 0.28s cubic-bezier(0.16,1,0.3,1),background 0.28s ease,border-color 0.28s ease,color 0.28s ease;user-select:none;}
.case-btn-website svg{color:#71717a;flex-shrink:0;transition:color 0.28s ease,transform 0.28s cubic-bezier(0.16,1,0.3,1);}
.case-btn-website:hover{background:rgba(255,255,255,0.06);border-color:rgba(255,255,255,0.22);color:#ffffff;transform:translateY(-2px) scale(1.015);}
.case-btn-website:hover svg{color:#ffffff;transform:rotate(15deg);}
.case-btn-website:active{transform:translateY(1px) scale(0.95)!important;transition:transform 70ms cubic-bezier(0.16,1,0.3,1)!important;}

.case-btn-quote{position:relative;overflow:hidden;display:inline-flex;align-items:center;gap:8px;min-height:44px;margin-left:auto;padding:11px 22px;border-radius:9999px;background:linear-gradient(135deg,#ff5b16 0%,#ff7a00 100%);border:none;color:#08080c;font:600 13px/1.3 Montserrat,sans-serif;letter-spacing:-.01em;text-decoration:none;cursor:pointer;box-shadow:0 4px 18px rgba(255,91,22,0.38),inset 0 1px 0 rgba(255,255,255,0.25);transition:transform 0.28s cubic-bezier(0.16,1,0.3,1),box-shadow 0.28s cubic-bezier(0.16,1,0.3,1);user-select:none;}
.case-btn-quote svg{color:#08080c;flex-shrink:0;transition:transform 0.28s cubic-bezier(0.16,1,0.3,1);}
.case-btn-quote:hover{box-shadow:0 6px 26px rgba(255,91,22,0.55),inset 0 1px 0 rgba(255,255,255,0.35);transform:translateY(-2px) scale(1.015);color:#08080c;}
.case-btn-quote:hover svg{transform:translateX(3px);}
.case-btn-quote:active{transform:translateY(1px) scale(0.95)!important;transition:transform 70ms cubic-bezier(0.16,1,0.3,1)!important;}

/* Shimmer Light-Wave Sweep on Hover */
.case-btn-story::after,.case-btn-quote::after,.theater-btn-primary::after{content:'';position:absolute;top:0;left:-120%;width:80%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,0.22),transparent);transform:skewX(-20deg);pointer-events:none;transition:left 0.75s cubic-bezier(0.16,1,0.3,1);}
.case-btn-story:hover::after,.case-btn-quote:hover::after,.theater-btn-primary:hover::after{left:140%;}

/* Button Click Ripple Wave */
.btn-ripple-wave{position:absolute;border-radius:50%;background:radial-gradient(circle,rgba(255,255,255,0.35) 0%,rgba(255,255,255,0.08) 60%,transparent 100%);pointer-events:none;transform:scale(0);animation:btnRippleAnim 0.45s cubic-bezier(0.16,1,0.3,1) forwards;}
@keyframes btnRippleAnim{to{transform:scale(1);opacity:0;}}

/* Symmetrical Closing Seal & Impacta Hub Emblem */
.theater-closing-seal{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);z-index:10;pointer-events:none;opacity:0;display:flex;flex-direction:column;align-items:center;justify-content:center;}
.theater-seal-aura{position:absolute;width:320px;height:320px;border-radius:50%;background:radial-gradient(circle,color-mix(in srgb,var(--project-color) 70%,transparent) 0%,color-mix(in srgb,var(--project-color) 25%,transparent) 45%,transparent 70%);filter:blur(36px);transform:scale(0.9);}
.theater-seal-emblem{position:relative;display:flex;align-items:center;justify-content:center;width:144px;height:144px;border-radius:50%;background:radial-gradient(circle at 50% 35%,#121218 0%,#060609 85%);border:1px solid rgba(255,255,255,0.22);backdrop-filter:blur(28px);box-shadow:0 24px 60px rgba(0,0,0,0.92),0 0 45px color-mix(in srgb,var(--project-color) 65%,transparent),inset 0 0 0 1px rgba(255,255,255,0.06),inset 0 1px 0 rgba(255,255,255,0.22);}
.theater-seal-emblem img{display:block;width:86px;height:auto;filter:drop-shadow(0 0 12px rgba(255,255,255,0.65)) drop-shadow(0 0 20px var(--project-color));}
.theater-story .case-description-lead{display:block;font-size:18px;font-weight:500;margin-bottom:12px;}
.theater-story .case-description-detail{display:block;}
.motion-preference{width:max-content;min-height:44px;padding:10px 0;border:0;border-bottom:1px solid #ffffff28;background:transparent;color:#c8c8d0;font:400 12px/1.5 Montserrat,sans-serif;cursor:pointer;}
.motion-preference:focus-visible{outline:2px solid #ff5b16;outline-offset:4px;}
.motion-preference:disabled{cursor:default;}
html[data-experience=light] .case-proposal .case-panel{-webkit-backdrop-filter:none;backdrop-filter:none;background:#0d0d10;}
html[data-experience=light] premium-showcase{transform:none!important;}
html[data-experience=light]{scroll-behavior:auto;}
@media(max-width:900px){.case-category{margin-top:8px;}.case-heading-row{margin-bottom:8px;}}
@media(max-width:600px){
 .port-project.case-proposal{width:calc(100% - 40px);margin-bottom:96px;scroll-margin-top:88px;}
 .port-project.case-proposal:not(:last-child)::after{margin-top:85px;}
 .case-heading-row{min-height:72px;}
 .case-heading-row h2{font-size:25px;}
 .case-heading-row h2 span{font-size:13px;max-width:28ch;}
 .case-number{font-size:100px;top:-35px;left:-10px;}
 .case-proposal .case-description-lead{font-size:20px;line-height:1.45;margin-bottom:12px;}
 .case-proposal .case-description-detail{font-size:16px;line-height:1.7;}
 .case-comparison{gap:22px;}
 .case-heading{margin-bottom:10px;}
 .case-heading h3{font-size:15px;}
 .case-proposal .case-panel{padding:18px;border-radius:12px;}
 .case-proposal .case-panel p{font-size:14px;line-height:1.75;}
 .case-proposal .case-actions{gap:10px;flex-direction:column;align-items:stretch;}
 .case-btn-story,.case-btn-website,.case-btn-quote{width:100%;justify-content:center;margin-left:0;font-size:12.5px;}
 .theater-toolbar{padding-top:max(10px,env(safe-area-inset-top));}
 .project-theater{padding-bottom:env(safe-area-inset-bottom);}
}
@media(prefers-reduced-motion:reduce){.case-proposal .case-panel{-webkit-backdrop-filter:none;backdrop-filter:none;}}

/* The target margin already reserves header space; avoid doubling it. */
html{scroll-padding-top:0;}
.case-proposal .case-actions a,.case-proposal .case-actions button{min-height:44px;}

/* Front edge view: less keyboard space, larger project screens. */
.device-showcase{margin:0 0 32px;position:relative;padding:24px 0 12px;}
.device-showcase premium-showcase{width:min(720px,100%);margin-inline:auto;}
.device-showcase figcaption{font:400 13px/1.5 Montserrat,sans-serif;color:#8a8a93;text-align:center;margin-top:16px;}

/* =======================================
   LIQUID GLASS FILTER BAR
   ======================================= */
.liquid-filter-container {
  padding: 40px 20px 24px;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 10;
}
.liquid-filter-bar {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
  justify-content: center;
}
.liquid-filter-btn {
  background: transparent;
  color: #a1a1aa;
  border: none;
  padding: 10px 22px;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: 'Instrument Sans', sans-serif;
  letter-spacing: -0.01em;
}
.liquid-filter-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}
.liquid-filter-btn.active {
  background: #ffffff !important;
  color: #000000 !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 18px rgba(255, 255, 255, 0.25);
}
@media (max-width: 600px) {
  .liquid-filter-container {
    padding: 24px 16px 16px;
  }
  .liquid-filter-bar {
    width: 100%;
    border-radius: 16px;
    gap: 4px;
  }
  .liquid-filter-btn {
    padding: 8px 14px;
    font-size: 0.82rem;
  }
}

.theater-stage { position: relative; }
.theater-gallery-prev, .theater-gallery-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(20, 20, 24, 0.85);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  backdrop-filter: blur(12px);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
.theater-gallery-prev[hidden], .theater-gallery-next[hidden] {
  display: none !important;
}
.theater-gallery-prev:hover, .theater-gallery-next:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.08);
}
.theater-gallery-prev svg, .theater-gallery-next svg { width: 22px; height: 22px; }
.theater-gallery-prev { left: -24px; }
.theater-gallery-next { right: -24px; }
@media(max-width: 900px) {
  .theater-gallery-prev { left: -10px; }
  .theater-gallery-next { right: -10px; }
}

html, body {
  overflow-x: hidden;
  max-width: 100vw;
  overscroll-behavior-x: none;
}
.project-theater {
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-x: none;
}

/* =========================================================================
   CINEMATIC HERO - PRESTIGIOUS SOLID EDITORIAL (ANTI-VOIDING FIX)
   ========================================================================= */
.testimonianze-hero {
  position: relative;
  min-height: calc(100vh - 80px);
  min-height: calc(100svh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #050608;
  overflow: hidden;
  padding: 80px 24px 60px;
  box-sizing: border-box;
}

.testimonianze-hero #port-hero {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.85;
}

@keyframes heroSilkEntrance {
  0% {
    opacity: 0;
    transform: translateY(22px);
    filter: blur(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0px);
  }
}

@keyframes heroBtnSilkEntrance {
  0% {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.testimonianze-hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.testimonianze-title {
  font-family: 'Instrument Sans', Montserrat, sans-serif;
  font-size: clamp(34px, 4.2vw, 56px);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.035em;
  color: #ffffff !important;
  margin: 0 0 24px;
  max-width: 22ch;
  text-wrap: balance;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
  animation: heroSilkEntrance 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.08s both;
  will-change: transform, opacity, filter;
}

.testimonianze-lead {
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
  font-size: clamp(19px, 2.1vw, 24px);
  line-height: 1.48;
  letter-spacing: -0.015em;
  color: #f1ede8 !important;
  margin: 0 auto 18px;
  max-width: 32ch;
  text-wrap: balance;
  animation: heroSilkEntrance 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.24s both;
  will-change: transform, opacity, filter;
}

.testimonianze-sub {
  font-family: 'Instrument Sans', Montserrat, sans-serif;
  font-size: clamp(15px, 1.4vw, 17px);
  font-weight: 400;
  line-height: 1.62;
  color: #9d9da6 !important;
  margin: 0 auto 36px;
  max-width: 44ch;
  text-wrap: balance;
  animation: heroSilkEntrance 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.40s both;
  will-change: transform, opacity, filter;
}

.testimonianze-sub em {
  font-style: normal;
  color: #ff9e40;
  font-weight: 500;
}

.testimonianze-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.testimonianze-btn-scroll {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 28px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-family: 'Instrument Sans', Montserrat, sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  animation: heroBtnSilkEntrance 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.56s both;
  will-change: transform, opacity;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.theater-gallery-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-family: 'Instrument Sans', Montserrat, sans-serif;
  font-size: 12px;
  color: #dedee4;
  margin: 0 auto 12px;
  user-select: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: all 0.25s ease;
}
.theater-gallery-badge .badge-idx {
  color: var(--project-color, #ff9e40);
  font-weight: 600;
  letter-spacing: 0.03em;
}
.theater-gallery-badge .badge-title {
  color: #ffffff;
  font-weight: 500;
}

.testimonianze-btn-scroll svg {
  transition: transform 0.28s ease;
  color: #ff9e40;
}

.testimonianze-btn-scroll:hover {
  background: rgba(255, 91, 22, 0.12);
  border-color: rgba(255, 91, 22, 0.45);
  color: #ff9e40;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 91, 22, 0.2);
}

.testimonianze-btn-scroll:hover svg {
  transform: translateY(3px);
}

@media (max-width: 768px) {
  .testimonianze-hero {
    min-height: calc(100svh - 72px);
    padding: 60px 20px 40px;
  }
  .testimonianze-title {
    font-size: 30px;
  }
  .testimonianze-lead {
    font-size: 18px;
  }
  .testimonianze-sub {
    font-size: 14.5px;
    margin-bottom: 28px;
  }
}
