/*
Theme Name: Oakstudio Dev 037
Theme URI: https://oak-studio.net/
Author: Oak Studio
Description: Custom portfolio theme for Oak Studio with stable V3-style hero, project management, responsive media, horizontal project gallery, and contact form.
Version: 1.0.36
Text Domain: oakstudio-dev
*/

:root{
  color-scheme: light;
  --os-bg:#eee9df;
  --os-bg-soft:#f6f2ea;
  --os-ink:#12110f;
  --os-muted:#68635c;
  --os-line:rgba(18,17,15,.13);
  --os-gold:#b7a06a;
  --os-dark:#11110f;
  --os-white:#fff;
  --os-max:1680px;
  --os-pad:clamp(22px,4vw,72px);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--os-bg);color:var(--os-ink);font-family:Inter,Arial,sans-serif;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
a{color:inherit;text-decoration:none}
img,video{max-width:100%;display:block}
button,input,textarea{font:inherit}

.os-site-header{position:fixed;z-index:1000;top:0;left:0;width:100%;height:54px;display:flex;align-items:center;justify-content:space-between;padding:0 clamp(18px,3vw,44px);mix-blend-mode:difference;color:#fff;pointer-events:none}
.os-logo,.os-nav{pointer-events:auto}
.os-logo{font-size:12px;letter-spacing:.18em;text-transform:uppercase;font-weight:500;white-space:nowrap}
.os-nav{display:flex;align-items:center;gap:clamp(16px,2vw,34px);font-size:11px;letter-spacing:.16em;text-transform:uppercase}
.os-nav a{opacity:.9;transition:opacity .25s ease}.os-nav a:hover{opacity:1}

.os-main{overflow:hidden}
.os-section{padding:clamp(82px,10vw,150px) var(--os-pad)}
.os-section-inner{max-width:var(--os-max);margin:0 auto}
.os-label{font-size:11px;letter-spacing:.22em;text-transform:uppercase;color:var(--os-gold);display:inline-block;margin-bottom:20px}
.os-title{font-size:clamp(34px,4vw,74px);line-height:1.02;font-weight:400;letter-spacing:-.045em;margin:0}
.os-text{font-size:clamp(15px,1.25vw,20px);line-height:1.75;color:var(--os-muted);margin:0}

/* Stable hero: background is on the section itself, no gray image layer */
.os-hero{position:relative;min-height:100svh;color:#fff;background-image:var(--hero-desktop);background-size:cover;background-position:center;background-repeat:no-repeat;overflow:hidden;isolation:isolate}
.os-hero::before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.14),rgba(0,0,0,.26));z-index:1;pointer-events:none}
.os-hero-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0}
.os-hero-video--mobile{display:none}

.os-hero--empty{background-color:var(--os-bg);color:var(--os-ink)}
.os-hero--empty::before{display:none}
.os-hero--empty .os-hero-center,.os-hero--empty .os-hero-left,.os-hero--empty .os-hero-desc,.os-hero--empty .os-hero-tags{color:var(--os-ink);text-shadow:none}
.os-hero--empty .os-hero-bottom-item{border-top-color:rgba(0,0,0,.28)}
.os-hero-grid{position:absolute;inset:54px var(--os-pad) clamp(22px,4vw,54px);z-index:2;max-width:var(--os-max);margin:0 auto;left:var(--os-pad);right:var(--os-pad);display:grid;grid-template-columns:1fr 1fr 1fr;grid-template-rows:1fr auto;gap:20px;align-items:end}
.os-hero-center{position:absolute;z-index:3;left:50%;top:50%;transform:translate(-50%,-50%);font-size:clamp(24px,3vw,var(--hero-center-size,44px));letter-spacing:.24em;text-transform:uppercase;text-align:center;white-space:nowrap;font-weight:400;text-shadow:0 12px 34px rgba(0,0,0,.22)}
.os-hero-left{grid-column:1;grid-row:2;font-size:clamp(38px,5.2vw,92px);line-height:.94;letter-spacing:-.055em;font-weight:400;max-width:520px;text-shadow:0 14px 38px rgba(0,0,0,.24)}
.os-hero-bottom{grid-column:2 / 4;grid-row:2;display:grid;grid-template-columns:1fr 1fr;gap:clamp(26px,4vw,80px);align-items:end}
.os-hero-bottom-item{border-top:1px solid rgba(255,255,255,.48);padding-top:16px;min-height:72px;display:flex;align-items:flex-start}
.os-hero-desc{font-size:clamp(12px,1vw,15px);line-height:1.65;color:rgba(255,255,255,.86);max-width:520px;margin:0}
.os-hero-tags{font-size:clamp(10px,.8vw,12px);line-height:1.9;letter-spacing:.18em;text-transform:uppercase;color:rgba(255,255,255,.82);margin:0;text-align:left}

.os-intro{background:var(--os-bg);padding-top:clamp(92px,10vw,165px);padding-bottom:clamp(96px,11vw,180px)}
.os-intro-grid{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(360px,.92fr);gap:clamp(44px,8vw,145px);align-items:center}
.os-intro-left .os-label{margin-bottom:28px}
.os-intro .os-title{font-size:clamp(44px,5.7vw,108px);line-height:.98;letter-spacing:-.062em;max-width:980px}
.os-intro .os-text{font-size:clamp(17px,1.25vw,22px);line-height:1.75;max-width:720px;margin:0;color:#4f4b45}
.os-intro-tags{margin-top:46px;border-top:1px solid rgba(0,0,0,.14);padding-top:22px;display:grid;grid-template-columns:repeat(3,1fr);gap:24px;font-size:11px;letter-spacing:.16em;text-transform:uppercase;color:#7d766d}

.os-projects{background:#11110f;color:#fff;padding-top:clamp(80px,8vw,120px);padding-bottom:clamp(76px,8vw,120px)}
.os-projects-head{max-width:var(--os-max);margin:0 auto clamp(32px,4vw,54px);display:flex;align-items:end;justify-content:space-between;gap:28px;padding:0 var(--os-pad)}
.os-projects-head .os-title{font-size:clamp(32px,4.4vw,78px)}
.os-projects-note{max-width:390px;color:rgba(255,255,255,.58);font-size:14px;line-height:1.7;margin:0}
.os-slider-wrap{max-width:min(1460px,calc(100vw - (var(--os-pad) * 2)));margin:0 auto;position:relative;overflow:visible}
.os-project-slider{display:flex;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x proximity;scrollbar-width:none;overscroll-behavior-x:contain;gap:0;padding:0;cursor:grab}.os-project-slider::-webkit-scrollbar{display:none}.os-project-slider:active{cursor:grabbing}
.os-project-card{position:relative;flex:0 0 clamp(210px,20vw,340px);height:clamp(420px,52vh,620px);overflow:hidden;background:#242424;scroll-snap-align:center;cursor:pointer;transition:flex-basis .42s cubic-bezier(.2,.7,.2,1),filter .35s ease,opacity .35s ease;isolation:isolate}
.os-project-card img{width:100%;height:100%;object-fit:cover;transition:transform .65s ease,filter .35s ease}.os-project-card::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.05),rgba(0,0,0,.58));z-index:1}
.os-project-card:hover{flex-basis:clamp(250px,25vw,430px)}
.os-project-slider:hover .os-project-card:not(:hover) img{filter:grayscale(1);opacity:.42}.os-project-card:hover img{transform:scale(1.045)}
.os-card-meta{position:absolute;left:20px;right:20px;bottom:20px;z-index:2}.os-card-meta h3{margin:0 0 8px;font-size:clamp(18px,1.5vw,26px);font-weight:400;letter-spacing:-.03em}.os-card-meta p{margin:0;font-size:10px;letter-spacing:.18em;text-transform:uppercase;color:rgba(255,255,255,.72)}
.os-slider-controls{display:flex;justify-content:center;gap:10px;margin:26px 0 0}.os-arrow{width:42px;height:42px;border:1px solid rgba(255,255,255,.22);background:transparent;color:#fff;border-radius:50%;cursor:pointer;transition:background .25s ease}.os-arrow:hover{background:rgba(255,255,255,.1)}
.os-full-projects{text-align:center;margin-top:34px}.os-btn{display:inline-flex;align-items:center;justify-content:center;padding:15px 26px;border:1px solid currentColor;background:transparent;letter-spacing:.16em;text-transform:uppercase;font-size:11px;transition:all .25s ease}.os-btn:hover{background:currentColor}.os-btn:hover span{color:#111}.os-btn span{transition:color .25s ease}.os-btn-dark:hover span{color:#fff}.os-btn-dark:hover{background:#111;color:#fff}

.os-motion{background:var(--os-bg-soft)}.os-motion-grid{display:grid;grid-template-columns:minmax(0,1.9fr) minmax(260px,.85fr);gap:clamp(28px,5vw,80px);align-items:center}.os-motion-media{width:100%;aspect-ratio:16/9;background:#171717;overflow:hidden}.os-motion-media video,.os-motion-media img{width:100%;height:100%;object-fit:cover}.os-motion-copy .os-text{margin-top:22px}.os-motion-placeholder{height:100%;display:grid;place-items:center;color:rgba(255,255,255,.45);font-size:11px;letter-spacing:.2em;text-transform:uppercase;background:linear-gradient(135deg,#222,#0c0c0b)}

.os-contact{background:var(--os-bg);padding-bottom:clamp(70px,8vw,120px)}.os-contact-grid{display:grid;grid-template-columns:minmax(0,.9fr) minmax(320px,1.1fr);gap:clamp(40px,8vw,130px);align-items:start}.os-contact .os-title{font-size:clamp(42px,7vw,126px)}.os-contact .os-text{margin-top:26px;max-width:520px}.os-form{display:grid;gap:18px}.os-field{border:0;border-bottom:1px solid rgba(0,0,0,.28);padding:16px 0;background:transparent;outline:none;color:#111}.os-field::placeholder{color:rgba(0,0,0,.42)}textarea.os-field{min-height:150px;resize:vertical}.os-submit{margin-top:18px;justify-self:start;background:#111;color:#fff;border:1px solid #111;padding:15px 30px;cursor:pointer;letter-spacing:.16em;text-transform:uppercase;font-size:11px}.os-form-message{padding:14px 16px;background:rgba(44,120,77,.11);color:#1e5f37;font-size:14px}
.os-footer{background:var(--os-bg);border-top:1px solid rgba(0,0,0,.08);padding:30px var(--os-pad);font-size:11px;letter-spacing:.15em;text-transform:uppercase;color:rgba(0,0,0,.58)}.os-footer-inner{max-width:var(--os-max);margin:0 auto;display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap}

/* Archives and single projects */
.os-page-hero{padding:140px var(--os-pad) 70px;background:var(--os-bg);border-bottom:1px solid var(--os-line)}.os-page-hero-inner{max-width:var(--os-max);margin:0 auto}.os-back{display:inline-flex;margin-bottom:34px;color:var(--os-muted);font-size:11px;letter-spacing:.16em;text-transform:uppercase}.os-archive-grid{max-width:var(--os-max);margin:0 auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;background:rgba(0,0,0,.11)}.os-archive-card{background:var(--os-bg);padding:18px}.os-archive-card img{width:100%;aspect-ratio:3/4;object-fit:cover}.os-archive-card h2{font-weight:400;font-size:26px;margin:18px 0 8px}.os-archive-card p{margin:0;color:var(--os-muted);font-size:12px;letter-spacing:.14em;text-transform:uppercase}
.os-single-hero{position:relative;min-height:92svh;background-image:var(--project-hero-desktop);background-size:cover;background-position:center;background-repeat:no-repeat;color:#fff;display:flex;align-items:flex-end;padding:120px var(--os-pad) 72px;isolation:isolate}.os-single-hero::before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.12),rgba(0,0,0,.56));z-index:1}.os-single-hero video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0}.os-single-hero-inner{position:relative;z-index:2;max-width:var(--os-max);margin:0 auto;width:100%}.os-single-hero h1{font-size:clamp(48px,7vw,132px);line-height:.94;letter-spacing:-.06em;font-weight:400;margin:0}.os-single-hero p{margin:20px 0 0;color:rgba(255,255,255,.75);letter-spacing:.14em;text-transform:uppercase;font-size:12px}.os-project-content{background:var(--os-bg);padding:clamp(70px,8vw,130px) var(--os-pad)}.os-project-content-inner{max-width:1180px;margin:0 auto}.os-project-content .os-text{max-width:860px}.os-gallery{margin-top:70px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.os-gallery a{display:block;overflow:hidden;background:#ddd}.os-gallery img{width:100%;height:100%;object-fit:cover}.os-gallery a:nth-child(3n+1){grid-column:span 2}.os-project-video{margin-top:70px;aspect-ratio:16/9;background:#111}.os-project-video video{width:100%;height:100%;object-fit:cover}.os-nextprev{display:flex;justify-content:space-between;gap:20px;margin-top:70px;padding-top:28px;border-top:1px solid var(--os-line);font-size:12px;letter-spacing:.16em;text-transform:uppercase;color:var(--os-muted)}

.os-lightbox{position:fixed;inset:0;background:rgba(0,0,0,.88);z-index:9999;display:none;align-items:center;justify-content:center;padding:30px}.os-lightbox.is-open{display:flex}.os-lightbox img{max-height:92vh;max-width:92vw;object-fit:contain}.os-lightbox button{position:absolute;top:22px;right:24px;background:transparent;color:#fff;border:0;font-size:34px;cursor:pointer}

@media (max-width:900px){
  .os-site-header{height:54px}.os-nav{gap:16px;font-size:10px}.os-hero{min-height:100svh;background-image:var(--hero-mobile,var(--hero-desktop));background-position:center}.os-hero-video--desktop{display:none}.os-hero-video--mobile{display:block}.os-hero-grid{inset:54px 22px 26px;left:22px;right:22px;grid-template-columns:1fr;grid-template-rows:1fr auto auto;gap:18px}.os-hero-center{font-size:clamp(18px,5vw,30px);letter-spacing:.18em}.os-hero-left{grid-column:1;grid-row:2;font-size:clamp(36px,14vw,68px);max-width:360px}.os-hero-bottom{grid-column:1;grid-row:3;grid-template-columns:1fr;gap:12px}.os-hero-bottom-item{min-height:auto;padding-top:12px}.os-hero-tags{font-size:10px}.os-intro-grid,.os-motion-grid,.os-contact-grid{grid-template-columns:1fr}.os-intro .os-title{font-size:clamp(38px,12vw,66px)}.os-intro-tags{grid-template-columns:1fr;gap:12px;margin-top:30px}.os-projects-head{display:block}.os-projects-note{margin-top:18px}.os-slider-wrap{max-width:calc(100vw - 36px)}.os-project-card{flex-basis:72vw;height:58vh}.os-project-card:hover{flex-basis:78vw}.os-motion-grid{gap:28px}.os-motion-media{order:2}.os-archive-grid{grid-template-columns:1fr}.os-single-hero{background-image:var(--project-hero-mobile,var(--project-hero-desktop));min-height:86svh;padding-bottom:48px}.os-single-hero h1{font-size:clamp(42px,14vw,76px)}.os-gallery{grid-template-columns:1fr}.os-gallery a:nth-child(3n+1){grid-column:span 1}.os-footer-inner{display:block}.os-footer-inner span{display:block;margin:8px 0}
}

/* Dev 004 Project Page Template */
.os-back-light{color:rgba(255,255,255,.74)!important}.os-single-label{margin-bottom:18px;color:rgba(255,255,255,.76)}
.os-project-story{background:var(--os-bg);padding:clamp(70px,8vw,130px) var(--os-pad);border-bottom:1px solid rgba(0,0,0,.08)}
.os-project-story-inner{max-width:var(--os-max);margin:0 auto;display:grid;grid-template-columns:minmax(180px,.55fr) minmax(0,1.45fr);gap:clamp(34px,7vw,120px);align-items:start}
.os-project-story-kicker{font-size:11px;letter-spacing:.22em;text-transform:uppercase;color:var(--os-gold);padding-top:10px}.os-project-story-text{font-size:clamp(18px,1.65vw,28px);line-height:1.55;color:#33302b;max-width:980px}.os-project-story-text p{margin:0 0 20px}.os-project-story-text p:last-child{margin-bottom:0}
.os-project-gallery-section{background:var(--os-bg-soft);padding:clamp(70px,8vw,130px) var(--os-pad)}.os-project-gallery-head,.os-detail-head,.os-project-motion-copy,.os-embed-copy{max-width:var(--os-max);margin:0 auto clamp(30px,4vw,58px)}.os-project-gallery-head h2,.os-detail-head h2,.os-project-motion-copy h2,.os-embed-copy h2{font-size:clamp(34px,5vw,86px);line-height:.98;letter-spacing:-.055em;font-weight:400;margin:0}
.os-editorial-gallery{max-width:var(--os-max);margin:0 auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(12px,1.5vw,24px)}.os-editorial-image{display:block;background:#ddd;overflow:hidden;min-height:260px}.os-editorial-image.is-wide{grid-column:span 2}.os-editorial-image img{width:100%;height:100%;object-fit:cover;aspect-ratio:16/10;transition:transform .5s ease}.os-editorial-image:hover img{transform:scale(1.025)}.os-editorial-image.is-wide img{aspect-ratio:16/8.5}
.os-detail-section{background:#11110f;color:#fff;padding:clamp(70px,8vw,130px) var(--os-pad)}.os-detail-gallery{max-width:var(--os-max);margin:0 auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;background:rgba(255,255,255,.14)}.os-detail-gallery a{display:block;background:#191917;overflow:hidden}.os-detail-gallery img{width:100%;aspect-ratio:4/5;object-fit:cover;transition:filter .35s ease, transform .5s ease}.os-detail-gallery:hover a:not(:hover) img{filter:grayscale(1);opacity:.5}.os-detail-gallery a:hover img{transform:scale(1.035)}
.os-project-motion-section{background:var(--os-bg);padding:clamp(70px,8vw,130px) var(--os-pad);display:grid;grid-template-columns:minmax(240px,.55fr) minmax(0,1.45fr);gap:clamp(28px,5vw,80px);align-items:center}.os-project-motion-copy{margin:0}.os-project-motion-section .os-project-video{margin:0;aspect-ratio:16/9;background:#111;overflow:hidden}.os-project-motion-section .os-project-video video{width:100%;height:100%;object-fit:cover}
.os-embed-section{background:var(--os-bg-soft);padding:clamp(70px,8vw,130px) var(--os-pad)}.os-embed-box{max-width:var(--os-max);margin:0 auto;background:#111;aspect-ratio:16/9;overflow:hidden}.os-embed-box iframe{width:100%;height:100%;border:0;display:block}
.os-project-nav-section{background:var(--os-bg);padding:clamp(46px,6vw,90px) var(--os-pad);border-top:1px solid rgba(0,0,0,.09);display:flex;align-items:center;justify-content:space-between;gap:24px}.os-project-nav-section .os-nextprev{margin:0;padding:0;border:0;display:flex;gap:28px}
@media (max-width:900px){.os-project-story-inner,.os-project-motion-section{grid-template-columns:1fr}.os-editorial-gallery,.os-detail-gallery{grid-template-columns:1fr}.os-editorial-image.is-wide{grid-column:span 1}.os-editorial-image img,.os-editorial-image.is-wide img{aspect-ratio:auto;height:auto}.os-detail-gallery img{aspect-ratio:auto}.os-project-nav-section{display:block}.os-project-nav-section .os-nextprev{margin-top:30px;display:block}.os-project-nav-section .os-nextprev span{display:block;margin-top:12px}}


/* Dev 005 refinements */
.os-projects{overscroll-behavior: auto;}
.os-project-slider{overscroll-behavior:auto;}
.os-project-content,
.os-project-story,
.os-project-gallery-section,
.os-detail-section,
.os-project-motion-section,
.os-embed-section,
.os-project-nav-section{background:var(--os-bg)!important;color:var(--os-ink)}
.os-project-story{border-bottom:1px solid rgba(0,0,0,.08)}
.os-project-gallery-section,
.os-detail-section,
.os-project-motion-section,
.os-embed-section{border-top:1px solid rgba(0,0,0,.075)}
.os-project-gallery-head,
.os-detail-head,
.os-project-motion-copy,
.os-embed-copy,
.os-editorial-gallery,
.os-detail-gallery,
.os-embed-box{max-width:min(1320px, calc(100vw - (var(--os-pad) * 2.6)))!important;}
.os-project-story-inner{max-width:min(1320px, calc(100vw - (var(--os-pad) * 2.6)))!important;}
.os-detail-gallery{background:transparent!important;gap:clamp(12px,1.4vw,22px)}
.os-detail-gallery a{background:#ddd!important;}
.os-detail-gallery img{filter:none;opacity:1;}
.os-detail-gallery:hover a:not(:hover) img{filter:grayscale(1);opacity:.58}
.os-project-motion-section{display:grid;grid-template-columns:minmax(260px,.45fr) minmax(0,1.55fr);max-width:none}
.os-project-motion-section .os-project-video{box-shadow:none;}
.os-project-nav-section{border-top:1px solid rgba(0,0,0,.08)}
@media (max-width:900px){
  .os-project-gallery-head,
  .os-detail-head,
  .os-project-motion-copy,
  .os-embed-copy,
  .os-editorial-gallery,
  .os-detail-gallery,
  .os-embed-box,
  .os-project-story-inner{max-width:calc(100vw - 44px)!important;}
  .os-project-motion-section{grid-template-columns:1fr;}
}

/* Dev 007: faster home slider + editorial project presentation */
.os-project-slider{scroll-behavior:auto;}
.os-project-slider.is-dragging a{pointer-events:none;}

.os-project-gallery-section.os-editorial-project-section{background:var(--os-bg)!important;padding-top:clamp(78px,8vw,135px);}
.os-behance-layout{max-width:min(1280px, calc(100vw - (var(--os-pad) * 2.4)));margin:0 auto;display:grid;gap:clamp(14px,1.25vw,22px);}
.os-behance-layout img{width:100%;height:100%;display:block;object-fit:cover;}
.os-behance-hero-image{display:block;overflow:hidden;background:#ddd;min-height:clamp(360px,52vw,760px);}
.os-behance-hero-image img{aspect-ratio:16/8.7;}
.os-editorial-split{display:grid;grid-template-columns:1fr 1fr;background:var(--os-bg-soft);min-height:clamp(420px,48vw,720px);}
.os-editorial-split-image{display:block;overflow:hidden;background:#ddd;}
.os-editorial-copy{padding:clamp(32px,5vw,86px);display:flex;flex-direction:column;justify-content:center;background:var(--os-bg-soft);}
.os-editorial-copy h3{font-size:clamp(30px,3.6vw,68px);line-height:1.02;letter-spacing:-.055em;font-weight:400;margin:0 0 28px;}
.os-editorial-copy p{font-size:clamp(14px,1.05vw,18px);line-height:1.75;color:#54504a;margin:0;max-width:560px;}
.os-two-up-gallery{display:grid;grid-template-columns:1fr 1fr;gap:clamp(10px,1vw,16px);}
.os-two-up-gallery a{display:block;overflow:hidden;background:#ddd;min-height:clamp(320px,43vw,640px);}
.os-two-up-gallery img{aspect-ratio:4/5;}
.os-four-small-gallery{display:grid;grid-template-columns:repeat(4,1fr);gap:clamp(8px,.8vw,12px);}
.os-four-small-gallery a{display:block;overflow:hidden;background:#ddd;min-height:clamp(170px,19vw,330px);}
.os-four-small-gallery img{aspect-ratio:1/1;}
.os-editorial-gallery--rest{margin-top:0!important;}
.os-editorial-split a img,.os-two-up-gallery a img,.os-four-small-gallery a img,.os-behance-hero-image img{transition:transform .55s ease,filter .35s ease;}
.os-editorial-split a:hover img,.os-two-up-gallery a:hover img,.os-four-small-gallery a:hover img,.os-behance-hero-image:hover img{transform:scale(1.025);}
.os-detail-section{background:var(--os-bg)!important;color:var(--os-ink)!important;}
.os-detail-head .os-label,.os-project-motion-copy .os-label,.os-embed-copy .os-label{color:var(--os-gold)!important;}
.os-lightbox{gap:20px;}
.os-lightbox-close{position:absolute;top:22px;right:24px;background:transparent;color:#fff;border:0;font-size:34px;cursor:pointer;z-index:3;}
.os-lightbox-nav{position:absolute;top:50%;transform:translateY(-50%);width:54px;height:54px;border:1px solid rgba(255,255,255,.4);border-radius:50%;background:rgba(0,0,0,.22);color:#fff;font-size:38px;line-height:1;display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:3;transition:background .25s ease,border-color .25s ease;}
.os-lightbox-nav:hover{background:rgba(255,255,255,.14);border-color:rgba(255,255,255,.75);}
.os-lightbox-prev{left:26px;}.os-lightbox-next{right:26px;}
@media (max-width:900px){
  .os-behance-layout{max-width:calc(100vw - 34px);gap:12px;}
  .os-behance-hero-image{min-height:auto;}.os-behance-hero-image img{aspect-ratio:auto;height:auto;}
  .os-editorial-split,.os-editorial-split--image-right{grid-template-columns:1fr;min-height:auto;}
  .os-editorial-split--image-right .os-editorial-copy{order:2;}
  .os-editorial-copy{padding:34px 24px;}
  .os-two-up-gallery,.os-four-small-gallery{grid-template-columns:1fr;gap:12px;}
  .os-two-up-gallery a,.os-four-small-gallery a{min-height:auto;}
  .os-two-up-gallery img,.os-four-small-gallery img{aspect-ratio:auto;height:auto;}
  .os-lightbox-nav{width:42px;height:42px;font-size:30px;}.os-lightbox-prev{left:14px}.os-lightbox-next{right:14px}
}


/* Dev 008: project page alignment + unified background */
:root{
  color-scheme: light;--os-project-width:min(1280px, calc(100vw - (var(--os-pad) * 2.4)));}
.os-project-gallery-head,
.os-detail-head,
.os-project-motion-copy,
.os-embed-copy,
.os-behance-layout,
.os-detail-gallery,
.os-editorial-gallery,
.os-project-story-inner{
  width:var(--os-project-width)!important;
  max-width:var(--os-project-width)!important;
  margin-left:auto!important;
  margin-right:auto!important;
}
.os-project-gallery-head,
.os-detail-head,
.os-project-motion-copy,
.os-embed-copy{margin-bottom:clamp(30px,4vw,58px)!important;}
.os-editorial-split,
.os-editorial-copy{background:var(--os-bg)!important;}
.os-editorial-copy{padding-left:clamp(34px,5vw,82px);padding-right:clamp(34px,5vw,82px);}
.os-behance-layout{gap:clamp(8px,.85vw,14px)!important;}
.os-two-up-gallery{gap:clamp(6px,.65vw,10px)!important;}
.os-four-small-gallery{gap:clamp(6px,.55vw,9px)!important;}
.os-project-slider{cursor:grab;}
.os-project-slider.is-dragging{cursor:grabbing;}
.os-project-card{cursor:pointer;}
.os-project-card *{pointer-events:none;}

@media (max-width:900px){
  :root{
  color-scheme: light;--os-project-width:calc(100vw - 44px);} 
  .os-project-gallery-head,
  .os-detail-head,
  .os-project-motion-copy,
  .os-embed-copy,
  .os-behance-layout,
  .os-detail-gallery,
  .os-editorial-gallery,
  .os-project-story-inner{
    width:var(--os-project-width)!important;
    max-width:var(--os-project-width)!important;
  }
  .os-editorial-copy{padding:34px 24px;}
}


/* Dev 011: unified light Hero + Approach background, text-only contrast (no section overlay) */
:root{
  color-scheme: light;
  --os-hero-approach-bg: var(--os-bg);
}
.os-hero{
  background-color: var(--os-hero-approach-bg) !important;
}
.os-intro{
  background-color: var(--os-hero-approach-bg) !important;
  margin-top: -1px;
}
/* No full-section overlay. This keeps the PNG/video edge blended into the Approach section. */
.os-hero::before{
  background: transparent !important;
}
.os-intro::before{
  display:none !important;
  content:none !important;
}
.os-intro > *{
  position:relative;
  z-index:1;
}
/* Contrast is applied locally behind text only, not across the whole hero. */
.os-hero-center,
.os-hero-left,
.os-hero-bottom-item{
  position:relative;
  z-index:3;
}
.os-hero-center,
.os-hero-left,
.os-hero-desc,
.os-hero-tags{
  text-shadow:
    0 12px 34px rgba(0,0,0,calc(var(--os-hero-text-contrast-alpha, .08) * 2.1)),
    0 2px 8px rgba(0,0,0,calc(var(--os-hero-text-contrast-alpha, .08) * 1.4));
}
.os-hero-left::before{
  content:"";
  position:absolute;
  inset:-24px -38px -20px -38px;
  z-index:-1;
  pointer-events:none;
  background:radial-gradient(ellipse at 28% 55%, rgba(0,0,0,calc(var(--os-hero-text-contrast-alpha, .08) * 1.25)) 0%, rgba(0,0,0,calc(var(--os-hero-text-contrast-alpha, .08) * .55)) 42%, rgba(0,0,0,0) 72%);
  filter:blur(20px);
}
.os-hero-bottom-item::before{
  content:"";
  position:absolute;
  inset:-12px -18px;
  z-index:-1;
  pointer-events:none;
  background:linear-gradient(90deg, rgba(0,0,0,calc(var(--os-hero-text-contrast-alpha, .08) * .75)), rgba(0,0,0,0));
  filter:blur(16px);
}
@media (max-width:900px){
  .os-hero-left::before{inset:-18px -22px;filter:blur(18px)}
  .os-hero-bottom-item::before{inset:-10px -14px;}
}


/* Dev 012: fixed hero media edge blend for images and videos
   The hero image/video can be normal JPG/WebP/MP4; this overlay softly cuts the bottom edge
   into the same light background used by the Approach section. It does not affect text. */
.os-hero{
  --os-hero-edge-bg: var(--os-hero-approach-bg);
}
.os-hero::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-2px;
  height:clamp(105px, 13vw, 245px);
  z-index:2;
  pointer-events:none;
  background:
    radial-gradient(160px 60px at 4% 78%, var(--os-hero-edge-bg) 0 64%, rgba(238,233,223,0) 66%),
    radial-gradient(260px 82px at 16% 82%, var(--os-hero-edge-bg) 0 62%, rgba(238,233,223,0) 64%),
    radial-gradient(210px 70px at 31% 76%, var(--os-hero-edge-bg) 0 60%, rgba(238,233,223,0) 62%),
    radial-gradient(330px 96px at 48% 84%, var(--os-hero-edge-bg) 0 63%, rgba(238,233,223,0) 65%),
    radial-gradient(240px 78px at 67% 77%, var(--os-hero-edge-bg) 0 61%, rgba(238,233,223,0) 63%),
    radial-gradient(300px 92px at 84% 83%, var(--os-hero-edge-bg) 0 64%, rgba(238,233,223,0) 66%),
    radial-gradient(170px 62px at 97% 76%, var(--os-hero-edge-bg) 0 60%, rgba(238,233,223,0) 62%),
    linear-gradient(to top, var(--os-hero-edge-bg) 0%, var(--os-hero-edge-bg) 34%, rgba(238,233,223,.72) 58%, rgba(238,233,223,0) 100%);
}
.os-hero-grid,
.os-hero-center{
  z-index:4;
}
@media (max-width:900px){
  .os-hero::after{
    height:clamp(90px, 20vw, 180px);
    background:
      radial-gradient(130px 48px at 8% 80%, var(--os-hero-edge-bg) 0 62%, rgba(238,233,223,0) 64%),
      radial-gradient(210px 72px at 32% 82%, var(--os-hero-edge-bg) 0 62%, rgba(238,233,223,0) 64%),
      radial-gradient(230px 78px at 62% 80%, var(--os-hero-edge-bg) 0 62%, rgba(238,233,223,0) 64%),
      radial-gradient(160px 58px at 92% 78%, var(--os-hero-edge-bg) 0 62%, rgba(238,233,223,0) 64%),
      linear-gradient(to top, var(--os-hero-edge-bg) 0%, var(--os-hero-edge-bg) 38%, rgba(238,233,223,.68) 62%, rgba(238,233,223,0) 100%);
  }
}


/* Dev 013: hard-fix hero center title position after edge blend
   Keep the center title visually centered in the hero, independent of image/video edge blend. */
.os-hero > .os-hero-center{
  position:absolute !important;
  left:50% !important;
  top:50% !important;
  transform:translate(-50%,-50%) !important;
  width:auto !important;
  max-width:calc(100vw - 48px) !important;
  z-index:20 !important;
  display:block !important;
  white-space:nowrap !important;
  pointer-events:none !important;
}
.os-hero-grid{
  z-index:15 !important;
}
.os-hero::after{
  z-index:10 !important;
}
@media (max-width:900px){
  .os-hero > .os-hero-center{
    top:42% !important;
    max-width:calc(100vw - 36px) !important;
    white-space:normal !important;
  }
}


/* Dev 014: real hero media mask using uploaded black/white WebP masks
   White areas keep the image/video visible; dark areas reveal the shared Hero/Approach background. */
.os-hero{
  background-image:none !important;
  background-color:var(--os-hero-approach-bg) !important;
}
.os-hero::before{
  content:"" !important;
  position:absolute !important;
  inset:0 !important;
  z-index:0 !important;
  display:block !important;
  pointer-events:none !important;
  background-image:var(--hero-desktop) !important;
  background-size:cover !important;
  background-position:center center !important;
  background-repeat:no-repeat !important;
  -webkit-mask-image:url('https://oak-studio.net/wp-content/uploads/2026/06/hero-mask-desktop.webp') !important;
  mask-image:url('https://oak-studio.net/wp-content/uploads/2026/06/hero-mask-desktop.webp') !important;
  -webkit-mask-size:100% 100% !important;
  mask-size:100% 100% !important;
  -webkit-mask-position:center bottom !important;
  mask-position:center bottom !important;
  -webkit-mask-repeat:no-repeat !important;
  mask-repeat:no-repeat !important;
  -webkit-mask-mode:luminance;
  mask-mode:luminance;
}
.os-hero-video{
  z-index:1 !important;
  -webkit-mask-image:url('https://oak-studio.net/wp-content/uploads/2026/06/hero-mask-desktop.webp') !important;
  mask-image:url('https://oak-studio.net/wp-content/uploads/2026/06/hero-mask-desktop.webp') !important;
  -webkit-mask-size:100% 100% !important;
  mask-size:100% 100% !important;
  -webkit-mask-position:center bottom !important;
  mask-position:center bottom !important;
  -webkit-mask-repeat:no-repeat !important;
  mask-repeat:no-repeat !important;
  -webkit-mask-mode:luminance;
  mask-mode:luminance;
}
.os-hero::after{
  display:none !important;
  content:none !important;
}
.os-hero-grid{z-index:15 !important;}
.os-hero > .os-hero-center{z-index:20 !important;}
@media (max-width:900px){
  .os-hero::before{
    background-image:var(--hero-mobile,var(--hero-desktop)) !important;
    -webkit-mask-image:url('https://oak-studio.net/wp-content/uploads/2026/06/hero-mask-mobile.webp') !important;
    mask-image:url('https://oak-studio.net/wp-content/uploads/2026/06/hero-mask-mobile.webp') !important;
  }
  .os-hero-video{
    -webkit-mask-image:url('https://oak-studio.net/wp-content/uploads/2026/06/hero-mask-mobile.webp') !important;
    mask-image:url('https://oak-studio.net/wp-content/uploads/2026/06/hero-mask-mobile.webp') !important;
  }
}

/* Dev 015: unified Hero/Approach tint without breaking the mask blend */
:root{
  color-scheme: light;
  --os-hero-approach-bg: color-mix(in srgb, var(--os-bg) calc(100% - var(--os-hero-approach-tint-pct, 0%)), #000 var(--os-hero-approach-tint-pct, 0%));
}
.os-hero,
.os-intro{
  background-color: var(--os-hero-approach-bg) !important;
}

/* Dev 015: subtle glass header for readability over images/videos */
.os-site-header{
  mix-blend-mode: normal !important;
  color: var(--os-ink) !important;
  background: rgba(238,233,223,var(--os-header-glass-alpha,.10)) !important;
  -webkit-backdrop-filter: blur(var(--os-header-glass-blur,8px));
  backdrop-filter: blur(var(--os-header-glass-blur,8px));
  border-bottom: 1px solid rgba(18,17,15,.06);
}
.os-site-header .os-logo,
.os-site-header .os-nav a{
  color: var(--os-ink) !important;
  text-shadow: none !important;
}

.os-page-note{max-width:620px;margin:18px 0 0;color:var(--os-muted);font-size:clamp(14px,1.4vw,18px);line-height:1.65;}


/* Dev 020: Dark-mode extension protection and true hero-title intro overlay.
   The real .os-hero-center is animated above the black overlay, then stays in place. */
html, body { color-scheme: light; }
.os-intro-lock, .os-intro-lock body{ overflow:hidden; }

.os-opening-reveal{
  position:fixed;
  inset:0;
  z-index:99980;
  background:#050505;
  overflow:hidden;
  pointer-events:none;
  opacity:1;
  visibility:visible;
  will-change:opacity;
}
.os-opening-reveal.is-finishing{
  animation:osIntroFadeOut 1.65s cubic-bezier(.45,0,.15,1) forwards;
}

/* Use the actual hero title, not a duplicate intro title. */
.os-intro-lock .os-hero > .os-hero-center{
  z-index:99990 !important;
  opacity:0;
  transform:translate(-50%,-50%) scale(1.08);
  filter:blur(6px);
  animation:osIntroRealTitleSettle 1.18s cubic-bezier(.19,1,.22,1) .12s forwards;
}
.os-intro-lock .os-hero-left,
.os-intro-lock .os-hero-bottom{
  opacity:0;
  transform:translateY(24px);
}
.os-hero-left,
.os-hero-bottom{
  transition:opacity 1.35s ease, transform 1.35s cubic-bezier(.19,1,.22,1);
}
.os-intro-done .os-hero-left{
  opacity:1;
  transform:translateY(0);
  transition-delay:.22s;
}
.os-intro-done .os-hero-bottom{
  opacity:1;
  transform:translateY(0);
  transition-delay:.42s;
}
@keyframes osIntroRealTitleSettle{
  0%{opacity:0;transform:translate(-50%,-50%) scale(1.08);filter:blur(6px)}
  46%{opacity:1;filter:blur(0)}
  100%{opacity:1;transform:translate(-50%,-50%) scale(1);filter:blur(0)}
}
@keyframes osIntroFadeOut{
  0%{opacity:1;visibility:visible}
  100%{opacity:0;visibility:hidden}
}
@media (max-width:900px){
  .os-intro-lock .os-hero > .os-hero-center{
    letter-spacing:.18em;
  }
}
@media (prefers-reduced-motion: reduce){
  .os-opening-reveal{display:none!important}
  .os-intro-lock .os-hero > .os-hero-center{opacity:1;filter:none;transform:translate(-50%,-50%) scale(1);animation:none}
  .os-intro-lock .os-hero-left,
  .os-intro-lock .os-hero-bottom{opacity:1;transform:none}
}


/* Dev 021: use the real hero center title above an in-hero black overlay.
   The black intro overlay is now generated inside the real hero, so the center title
   is the same DOM element, in the same position, and remains in place after the fade. */
.os-opening-reveal{
  display:none !important;
}
.os-intro-lock .os-hero{
  position:relative !important;
  z-index:99970 !important;
  isolation:isolate !important;
}
.os-intro-lock .os-hero::after{
  content:"" !important;
  display:block !important;
  position:fixed !important;
  inset:0 !important;
  z-index:900 !important;
  background:#050505 !important;
  pointer-events:none !important;
  opacity:1;
  visibility:visible;
  animation:osHeroIntroBlackFade 1.65s cubic-bezier(.45,0,.15,1) 1.15s forwards;
}
.os-intro-lock .os-hero > .os-hero-center{
  z-index:1000 !important;
  opacity:0;
  transform:translate(-50%,-50%) scale(1.08) !important;
  filter:blur(6px);
  animation:osIntroRealTitleSettle 1.2s cubic-bezier(.19,1,.22,1) .12s forwards;
}
.os-intro-lock .os-hero-left,
.os-intro-lock .os-hero-bottom{
  opacity:0 !important;
  transform:translateY(30px) !important;
}
.os-hero-left,
.os-hero-bottom{
  transition:opacity 1.9s ease, transform 1.9s cubic-bezier(.19,1,.22,1) !important;
}
.os-intro-done .os-hero-left{
  opacity:1 !important;
  transform:translateY(0) !important;
  transition-delay:.55s !important;
}
.os-intro-done .os-hero-bottom{
  opacity:1 !important;
  transform:translateY(0) !important;
  transition-delay:.85s !important;
}
@keyframes osHeroIntroBlackFade{
  0%{opacity:1;visibility:visible}
  100%{opacity:0;visibility:hidden}
}
@media (prefers-reduced-motion: reduce){
  .os-intro-lock .os-hero::after{display:none!important;content:none!important;animation:none!important}
}


/* Dev 024 intro: smoother full-screen logo reveal with softer fade into the real hero. */
.os-opening-reveal{
  position:fixed !important;
  inset:0 !important;
  z-index:99980 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:100vw !important;
  height:100vh !important;
  min-height:100svh !important;
  background:#050505 !important;
  overflow:hidden !important;
  pointer-events:none !important;
  opacity:1 !important;
  visibility:visible !important;
  will-change:opacity, background-color !important;
  transition:opacity 1.95s cubic-bezier(.55,0,.18,1), background-color 1.95s cubic-bezier(.55,0,.18,1), visibility 0s linear 1.95s !important;
}
.os-opening-logo{
  position:absolute !important;
  left:50% !important;
  top:50% !important;
  width:clamp(112px,10.5vw,205px) !important;
  height:auto !important;
  transform:translate(-50%,-50%) scale(.92) !important;
  opacity:0;
  filter:blur(7px);
  will-change:transform, opacity, filter;
  animation:osOpeningLogoSettle 1.45s cubic-bezier(.19,1,.22,1) .08s forwards,
            osOpeningLogoFloat 2.15s cubic-bezier(.37,0,.2,1) .2s forwards;
}
.os-opening-reveal.is-finishing{
  opacity:0 !important;
  background-color:rgba(5,5,5,0) !important;
  visibility:hidden !important;
}
.os-intro-lock .os-hero::after{
  display:none !important;
  content:none !important;
  animation:none !important;
}
.os-intro-lock .os-hero > .os-hero-center{
  opacity:0 !important;
  filter:blur(4px) !important;
  transform:translate(-50%,-50%) scale(.98) !important;
  z-index:3 !important;
}
.os-intro-lock .os-hero-left,
.os-intro-lock .os-hero-bottom{
  opacity:0 !important;
  transform:translateY(38px) !important;
}
.os-hero-center,
.os-hero-left,
.os-hero-bottom{
  transition:opacity 2.35s ease, transform 2.35s cubic-bezier(.19,1,.22,1), filter 2.35s ease !important;
}
.os-intro-done .os-hero-center{
  opacity:1 !important;
  filter:none !important;
  transform:translate(-50%,-50%) scale(1) !important;
  transition-delay:.12s !important;
}
.os-intro-done .os-hero-left{
  opacity:1 !important;
  transform:translateY(0) !important;
  transition-delay:1.05s !important;
}
.os-intro-done .os-hero-bottom{
  opacity:1 !important;
  transform:translateY(0) !important;
  transition-delay:1.35s !important;
}
@keyframes osOpeningLogoSettle{
  0%{opacity:0;transform:translate(-50%,-50%) scale(.92);filter:blur(7px)}
  42%{opacity:.88;filter:blur(1px)}
  100%{opacity:1;transform:translate(-50%,-50%) scale(1);filter:blur(0)}
}
@keyframes osOpeningLogoFloat{
  0%{transform:translate(-50%,-50%) scale(.98)}
  100%{transform:translate(-50%,-50%) scale(1.035)}
}
@media (max-width:900px){
  .os-opening-logo{width:clamp(96px,27vw,148px) !important;}
}
@media (prefers-reduced-motion: reduce){
  .os-opening-reveal{display:none!important}
  .os-intro-lock .os-hero-left,
  .os-intro-lock .os-hero-bottom{opacity:1!important;transform:none!important}
}


/* Dev 026: corrected intro timing and first-frame flash prevention */
html.os-intro-lock,
html.os-intro-lock body{
  overflow:hidden !important;
  scroll-behavior:auto !important;
}

html.os-intro-lock .os-opening-reveal{
  opacity:1 !important;
  visibility:visible !important;
}

.os-opening-reveal{
  transition:
    opacity 1.28s cubic-bezier(.55,0,.18,1),
    background-color 1.28s cubic-bezier(.55,0,.18,1),
    visibility 0s linear 1.28s !important;
}

.os-opening-logo{
  animation:osOpeningLogoSettle025 1.02s cubic-bezier(.19,1,.22,1) .04s forwards !important;
}

@keyframes osOpeningLogoSettle025{
  0%{opacity:0;transform:translate(-50%,-50%) scale(.94);filter:blur(8px)}
  48%{opacity:.88;filter:blur(1.5px)}
  100%{opacity:1;transform:translate(-50%,-50%) scale(1.025);filter:blur(0)}
}

.os-intro-lock .os-hero > .os-hero-center,
.os-intro-lock .os-hero-left,
.os-intro-lock .os-hero-bottom{
  pointer-events:none !important;
}

.os-hero-center,
.os-hero-left,
.os-hero-bottom{
  transition:
    opacity 1.75s ease,
    transform 1.75s cubic-bezier(.19,1,.22,1),
    filter 1.75s ease !important;
}

.os-intro-done .os-hero-center{
  transition-delay:.02s !important;
}

.os-intro-done .os-hero-left{
  transition-delay:.48s !important;
}

.os-intro-done .os-hero-bottom{
  transition-delay:.68s !important;
}

@media (prefers-reduced-motion: reduce){
  html.os-intro-lock,
  html.os-intro-lock body{overflow:auto !important;}
}


/* Dev 026: longer logo hold, larger intro logo, softer fade into hero. */
.os-opening-reveal{
  transition:
    opacity 1.85s cubic-bezier(.55,0,.18,1),
    background-color 1.85s cubic-bezier(.55,0,.18,1),
    visibility 0s linear 1.85s !important;
}
.os-opening-logo{
  width:clamp(138px,12.4vw,245px) !important;
  animation:osOpeningLogoSettle026 1.15s cubic-bezier(.19,1,.22,1) .06s forwards !important;
}
@keyframes osOpeningLogoSettle026{
  0%{opacity:0;transform:translate(-50%,-50%) scale(.91);filter:blur(8px)}
  55%{opacity:.92;filter:blur(1.2px)}
  100%{opacity:1;transform:translate(-50%,-50%) scale(1.035);filter:blur(0)}
}
@media (max-width:900px){
  .os-opening-logo{width:clamp(118px,32vw,172px) !important;}
}


/* Dev 027: glass-tint intro overlay instead of solid black loading screen.
   The real hero stays visible behind a soft blurred glass layer; the panel slides upward and reveals the hero. */
.os-opening-reveal{
  background: rgba(6,6,6,.46) !important;
  -webkit-backdrop-filter: blur(15px) saturate(.82) !important;
  backdrop-filter: blur(15px) saturate(.82) !important;
  transform: translateY(0) !important;
  opacity: 1 !important;
  transition:
    transform 1.18s cubic-bezier(.55,0,.16,1),
    opacity 1.05s cubic-bezier(.55,0,.18,1),
    background-color 1.05s cubic-bezier(.55,0,.18,1),
    visibility 0s linear 1.18s !important;
}
.os-opening-reveal::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:1px;
  background:rgba(255,255,255,.18);
  opacity:.55;
}
.os-opening-reveal.is-finishing{
  transform: translateY(-105%) !important;
  opacity: .86 !important;
  background-color: rgba(6,6,6,.18) !important;
  visibility:hidden !important;
}
.os-opening-logo{
  width:clamp(136px,12vw,238px) !important;
  animation:osOpeningLogoGlass 1.12s cubic-bezier(.19,1,.22,1) .06s forwards !important;
}
.os-opening-reveal.is-finishing .os-opening-logo{
  opacity:0 !important;
  filter:blur(8px) !important;
  transform:translate(-50%,-62%) scale(.96) !important;
  transition:opacity .72s ease, filter .72s ease, transform .72s cubic-bezier(.55,0,.16,1) !important;
}
@keyframes osOpeningLogoGlass{
  0%{opacity:0;transform:translate(-50%,-50%) scale(.92);filter:blur(8px)}
  55%{opacity:.92;filter:blur(1.1px)}
  100%{opacity:1;transform:translate(-50%,-50%) scale(1.03);filter:blur(0)}
}
@media (max-width:900px){
  .os-opening-reveal{
    background: rgba(6,6,6,.48) !important;
    -webkit-backdrop-filter: blur(10px) saturate(.85) !important;
    backdrop-filter: blur(10px) saturate(.85) !important;
  }
  .os-opening-logo{width:clamp(116px,31vw,168px) !important;}
}
@media (prefers-reduced-motion: reduce){
  .os-opening-reveal{display:none!important;}
}

/* Dev 031: clean Dev027-style glass intro with independent logo + moving loading dot.
   This replaces the experimental fluted/custom intro logic and keeps the glass reveal simple and reliable. */
html.os-intro-lock,
html.os-intro-lock body{
  overflow:hidden !important;
  scroll-behavior:auto !important;
}
.os-studio-intro{
  position:fixed !important;
  inset:0 !important;
  z-index:999999 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  background:rgba(6,6,6,var(--os-intro-glass-alpha,.42)) !important;
  -webkit-backdrop-filter:blur(var(--os-intro-glass-blur,14px)) saturate(.84) !important;
  backdrop-filter:blur(var(--os-intro-glass-blur,14px)) saturate(.84) !important;
  transform:translateY(0) !important;
  opacity:1 !important;
  visibility:visible !important;
  pointer-events:none !important;
  transition:
    transform 1.18s cubic-bezier(.55,0,.16,1),
    opacity 1.05s cubic-bezier(.55,0,.18,1),
    background-color 1.05s cubic-bezier(.55,0,.18,1),
    visibility 0s linear 1.18s !important;
}
.os-studio-intro::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:1px;
  background:rgba(255,255,255,.18);
  opacity:.55;
}
.os-studio-intro-inner{
  position:relative;
  z-index:2;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:22px;
  transform:translateY(-1vh);
}
.os-studio-intro-logo{
  display:block !important;
  width:clamp(138px,12vw,240px) !important;
  height:auto !important;
  object-fit:contain !important;
  opacity:0;
  filter:blur(8px);
  transform:scale(.94);
  animation:osStudioIntroLogo031 1.05s cubic-bezier(.19,1,.22,1) .08s forwards;
}
.os-studio-intro-text{
  color:#f4f0e8;
  font-size:clamp(18px,2.25vw,42px);
  line-height:1;
  letter-spacing:.23em;
  text-transform:uppercase;
  font-weight:400;
  opacity:0;
  filter:blur(8px);
  transform:scale(.96);
  animation:osStudioIntroText031 1.05s cubic-bezier(.19,1,.22,1) .08s forwards;
}
.os-studio-intro-dot{
  position:relative;
  width:74px;
  height:8px;
  opacity:0;
  animation:osStudioIntroDotWrap031 .45s ease .72s forwards;
}
.os-studio-intro-dot span{
  position:absolute;
  top:50%;
  left:0;
  width:6px;
  height:6px;
  border-radius:999px;
  background:rgba(244,240,232,.92);
  box-shadow:0 0 12px rgba(244,240,232,.28);
  transform:translate(0,-50%);
  animation:osStudioIntroDotMove031 1.05s cubic-bezier(.55,0,.18,1) .86s both;
}
.os-studio-intro.is-finishing{
  transform:translateY(-105%) !important;
  opacity:.88 !important;
  background-color:rgba(6,6,6,.16) !important;
  visibility:hidden !important;
}
.os-studio-intro.is-finishing .os-studio-intro-inner{
  opacity:0;
  filter:blur(8px);
  transform:translateY(-5vh) scale(.985);
  transition:opacity .72s ease, filter .72s ease, transform .86s cubic-bezier(.55,0,.16,1);
}
@keyframes osStudioIntroLogo031{
  0%{opacity:0;filter:blur(8px);transform:scale(.94)}
  58%{opacity:.94;filter:blur(1.2px)}
  100%{opacity:1;filter:blur(0);transform:scale(1.02)}
}
@keyframes osStudioIntroText031{
  0%{opacity:0;filter:blur(8px);transform:scale(.96)}
  58%{opacity:.94;filter:blur(1.2px)}
  100%{opacity:1;filter:blur(0);transform:scale(1)}
}
@keyframes osStudioIntroDotWrap031{
  from{opacity:0;transform:translateY(6px)}
  to{opacity:1;transform:translateY(0)}
}
@keyframes osStudioIntroDotMove031{
  0%{left:0;opacity:.35}
  12%{opacity:1}
  45%{left:50%;transform:translate(-50%,-50%)}
  78%{left:100%;transform:translate(-100%,-50%);opacity:1}
  100%{left:100%;transform:translate(-100%,-50%);opacity:.35}
}
@media (max-width:900px){
  .os-studio-intro{
    background:rgba(6,6,6,calc(var(--os-intro-glass-alpha,.42) + .04)) !important;
    -webkit-backdrop-filter:blur(min(var(--os-intro-glass-blur,14px), 10px)) saturate(.86) !important;
    backdrop-filter:blur(min(var(--os-intro-glass-blur,14px), 10px)) saturate(.86) !important;
  }
  .os-studio-intro-inner{gap:18px;transform:translateY(-.5vh)}
  .os-studio-intro-logo{width:clamp(118px,33vw,172px) !important;}
  .os-studio-intro-dot{width:58px;}
}
@media (prefers-reduced-motion: reduce){
  .os-studio-intro{display:none!important;}
  html.os-intro-lock,
  html.os-intro-lock body{overflow:auto!important;}
}

/* Dev 032: intro logo size controls + mobile performance tuning */
.os-studio-intro-logo{
  width:var(--os-intro-logo-width, 220px) !important;
  max-width:min(52vw, 520px) !important;
}
@media (max-width:900px){
  .os-studio-intro-logo{
    width:var(--os-intro-logo-width-mobile, 150px) !important;
    max-width:54vw !important;
  }
  /* Mobile Lite reveal: reduce heavy text animation and shadows for smoother performance. */
  .os-intro-lock .os-hero-left,
  .os-intro-lock .os-hero-bottom{
    opacity:0 !important;
    transform:translateY(8px) !important;
    filter:none !important;
  }
  .os-hero-left,
  .os-hero-bottom{
    transition:opacity .72s ease-out, transform .72s ease-out !important;
    filter:none !important;
  }
  .os-intro-done .os-hero-left{
    opacity:1 !important;
    transform:translateY(0) !important;
    transition-delay:.22s !important;
  }
  .os-intro-done .os-hero-bottom{
    opacity:1 !important;
    transform:translateY(0) !important;
    transition-delay:.34s !important;
  }
  .os-hero-left,
  .os-hero-desc,
  .os-hero-tags{
    text-shadow:0 7px 22px rgba(0,0,0,calc(var(--os-hero-text-contrast-alpha, .08) * 1.15)) !important;
  }
  .os-hero-left::before,
  .os-hero-bottom-item::before{
    filter:none !important;
    opacity:.72 !important;
  }
}


/* Dev 033 About page + archive scroll fixes */
html:not(.os-intro-lock),
html:not(.os-intro-lock) body{overflow-x:hidden;overflow-y:auto;}
.os-about-hero{background:var(--os-bg);padding:clamp(130px,14vw,220px) var(--os-pad) clamp(70px,8vw,120px);}
.os-about-hero-inner{max-width:var(--os-max);margin:0 auto;}
.os-about-hero .os-title{max-width:1050px;font-size:clamp(42px,6.5vw,126px);line-height:.96;letter-spacing:-.065em;}
.os-about-intro{background:var(--os-bg);padding:clamp(60px,7vw,115px) var(--os-pad);display:grid;grid-template-columns:minmax(0,1.05fr) minmax(320px,.95fr);gap:clamp(34px,7vw,120px);align-items:center;border-top:1px solid rgba(0,0,0,.08);}
.os-about-media{min-height:clamp(420px,52vw,760px);display:flex;align-items:center;justify-content:center;}
.os-about-illustration{position:relative;width:min(720px,100%);aspect-ratio:4/3;background:linear-gradient(135deg,#ddd5c7,#f4efe6);box-shadow:0 34px 90px rgba(0,0,0,.10);overflow:hidden;}
.os-about-illustration::before{content:"";position:absolute;inset:10%;border:1px solid rgba(0,0,0,.16);transform:rotate(-3deg)}
.os-about-illustration::after{content:"";position:absolute;left:14%;right:12%;bottom:16%;height:18%;background:rgba(255,255,255,.55);box-shadow:0 18px 48px rgba(0,0,0,.12);transform:rotate(1.5deg)}
.os-about-illustration span{position:absolute;display:block;background:#c7b89a;box-shadow:0 14px 32px rgba(0,0,0,.12)}
.os-about-illustration span:nth-child(1){width:38%;height:16%;left:18%;top:24%;transform:rotate(-8deg);background:#b8a57c}
.os-about-illustration span:nth-child(2){width:26%;height:38%;right:18%;top:22%;transform:rotate(6deg);background:#e7e0d2}
.os-about-illustration span:nth-child(3){width:18%;height:18%;left:34%;bottom:27%;border-radius:50%;background:#25231f}
.os-about-illustration span:nth-child(4){width:30%;height:9%;right:22%;bottom:24%;transform:rotate(-6deg);background:#8f866e}
.os-about-copy{max-width:760px;}
.os-about-copy p{font-size:clamp(16px,1.35vw,22px);line-height:1.78;color:#4f4b45;margin:0 0 22px;}
.os-about-copy .os-about-lead{font-size:clamp(26px,3vw,52px);line-height:1.12;letter-spacing:-.045em;color:var(--os-ink);margin-bottom:30px;}
.os-about-focus{background:var(--os-bg-soft);padding:clamp(80px,9vw,145px) var(--os-pad);}
.os-about-focus-head,.os-about-focus-grid{max-width:var(--os-max);margin-left:auto;margin-right:auto;}
.os-about-focus-head{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:clamp(28px,6vw,100px);align-items:end;margin-bottom:clamp(42px,5vw,82px)}
.os-about-focus-head h2{font-weight:400;font-size:clamp(38px,5vw,92px);line-height:1;letter-spacing:-.06em;margin:0;}
.os-about-focus-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;background:rgba(0,0,0,.10)}
.os-about-focus-grid article{background:var(--os-bg-soft);padding:clamp(28px,4vw,58px);min-height:300px;}
.os-about-focus-grid h3{font-weight:400;font-size:clamp(24px,2vw,38px);letter-spacing:-.035em;margin:0 0 20px;}
.os-about-focus-grid p{font-size:15px;line-height:1.75;color:var(--os-muted);margin:0;}
.os-about-closing{background:var(--os-bg);padding:clamp(70px,8vw,130px) var(--os-pad);display:flex;align-items:center;justify-content:space-between;gap:30px;border-top:1px solid rgba(0,0,0,.08)}
.os-about-closing p{font-size:clamp(24px,3.2vw,58px);line-height:1.08;letter-spacing:-.045em;margin:0;max-width:980px;}
@media (max-width:900px){
  .os-about-intro,.os-about-focus-head,.os-about-focus-grid{grid-template-columns:1fr;}
  .os-about-closing{display:block}.os-about-closing .os-btn{margin-top:28px}
  .os-about-media{min-height:auto}.os-about-illustration{width:100%;}
}


/* Dev 034 refinements: hero text contrast, archive visual hero, uniform archive background */
.os-hero:not(.os-hero--empty) .os-hero-left{
  color:#fff !important;
  text-shadow:0 14px 38px rgba(0,0,0,.24);
}
.os-hero:not(.os-hero--empty) .os-hero-desc,
.os-hero:not(.os-hero--empty) .os-hero-tags{
  color:var(--os-ink) !important;
  text-shadow:none !important;
}
.os-hero:not(.os-hero--empty) .os-hero-bottom-item{
  border-top-color:rgba(18,17,15,.36) !important;
}
.post-type-archive-project,
.post-type-archive-project .os-main,
.post-type-archive-project .os-section,
.post-type-archive-project .os-archive-section{
  background:var(--os-bg) !important;
}
.post-type-archive-project .os-main{overflow:visible !important;}
.os-index-hero{
  background:var(--os-bg);
  padding:clamp(120px,12vw,190px) var(--os-pad) clamp(54px,6vw,90px);
  border-bottom:1px solid rgba(0,0,0,.08);
}
.os-index-hero-inner{
  max-width:var(--os-max);
  margin:0 auto;
  display:grid;
  grid-template-columns:minmax(0,.78fr) minmax(360px,1.22fr);
  gap:clamp(36px,7vw,120px);
  align-items:end;
}
.os-index-hero-copy .os-title{
  font-size:clamp(44px,7vw,128px);
  line-height:.96;
  letter-spacing:-.065em;
  max-width:760px;
}
.os-index-hero-copy .os-page-note{
  margin-top:28px;
  max-width:560px;
  color:var(--os-muted);
  font-size:clamp(15px,1.1vw,19px);
  line-height:1.75;
}
.os-index-hero-visual{
  position:relative;
  min-height:clamp(360px,42vw,700px);
  overflow:hidden;
  background:
    linear-gradient(120deg,rgba(18,17,15,.10),rgba(255,255,255,.18)),
    radial-gradient(circle at 22% 28%,rgba(183,160,106,.35),transparent 28%),
    radial-gradient(circle at 76% 54%,rgba(18,17,15,.12),transparent 34%),
    var(--os-bg);
  border:1px solid rgba(18,17,15,.10);
}
.os-index-hero-visual::before{
  content:"";
  position:absolute;
  inset:0;
  background-image:
    linear-gradient(rgba(18,17,15,.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18,17,15,.10) 1px, transparent 1px);
  background-size:120px 120px;
  opacity:.42;
}
.os-index-hero-visual::after{
  content:"PROJECT\A INDEX";
  white-space:pre;
  position:absolute;
  left:clamp(26px,3vw,56px);
  bottom:clamp(24px,3vw,52px);
  font-size:clamp(46px,6vw,116px);
  line-height:.88;
  letter-spacing:-.06em;
  color:rgba(18,17,15,.16);
}
.os-archive-section{padding-top:clamp(60px,7vw,105px) !important;}
.os-archive-grid{
  background:transparent !important;
  gap:clamp(18px,2vw,34px) !important;
  align-items:start;
}
.os-archive-card{
  background:transparent !important;
  padding:0 !important;
}
.os-archive-card img{
  background:rgba(18,17,15,.06);
}
@media (max-width:900px){
  .os-index-hero-inner{grid-template-columns:1fr;}
  .os-index-hero-visual{min-height:52vh;}
  .os-hero:not(.os-hero--empty) .os-hero-desc,
  .os-hero:not(.os-hero--empty) .os-hero-tags{color:var(--os-ink) !important;}
}


/* Dev 035: footer social icons + header text color adaptation only */
.os-nav{
  font-size:clamp(11px,.78vw,13px) !important;
  letter-spacing:.18em !important;
}
.os-logo{
  font-size:clamp(11px,.76vw,13px) !important;
}
.os-site-header{
  color:var(--os-ink) !important;
  transition:color .28s ease, border-color .28s ease;
}
.os-site-header .os-logo,
.os-site-header .os-nav a{
  color:var(--os-ink) !important;
  transition:color .28s ease, opacity .25s ease;
}
.os-site-header.os-header-on-dark .os-logo,
.os-site-header.os-header-on-dark .os-nav a{
  color:#f4f0e8 !important;
}
.os-site-header.os-header-on-dark{
  border-bottom-color:rgba(255,255,255,.08) !important;
}
.os-footer-inner{
  display:grid !important;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:22px;
}
.os-footer-copy{justify-self:start;}
.os-footer-meta{justify-self:end;text-align:right;}
.os-footer-socials{
  justify-self:center;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
}
.os-social-link{
  width:30px;
  height:30px;
  border:1px solid rgba(18,17,15,.18);
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:rgba(18,17,15,.58);
  background:rgba(255,255,255,.08);
  transition:background .25s ease,color .25s ease,border-color .25s ease,transform .25s ease;
}
.os-social-link svg{
  width:15px;
  height:15px;
  fill:currentColor;
  display:block;
}
.os-social-link:hover{
  color:var(--os-bg);
  border-color:var(--os-ink);
  background:var(--os-ink);
  transform:translateY(-1px);
}
.os-social-link.is-disabled{
  opacity:.55;
  cursor:default;
}
.os-social-link.is-disabled:hover{
  color:rgba(18,17,15,.58);
  border-color:rgba(18,17,15,.18);
  background:rgba(255,255,255,.08);
  transform:none;
}
@media (max-width:760px){
  .os-footer-inner{
    grid-template-columns:1fr !important;
    text-align:center;
    justify-items:center;
  }
  .os-footer-copy,.os-footer-meta{justify-self:center;text-align:center;}
  .os-footer-socials{order:2;margin:8px 0;}
  .os-footer-meta{order:3;}
}

/* Dev 037: mobile footer social icon alignment refinement */
@media (max-width:760px){
  .os-footer-socials{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:12px !important;
    width:100%;
    margin:10px 0 12px !important;
  }
  .os-social-link{
    width:34px !important;
    height:34px !important;
    min-width:34px !important;
    min-height:34px !important;
    padding:0 !important;
    box-sizing:border-box !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    line-height:1 !important;
    flex:0 0 34px !important;
    opacity:1 !important;
  }
  .os-social-link svg{
    width:15px !important;
    height:15px !important;
    max-width:15px !important;
    max-height:15px !important;
    display:block !important;
    flex:0 0 auto !important;
    margin:0 !important;
    transform:none !important;
  }
  .os-social-behance svg{width:16px !important;max-width:16px !important;}
  .os-social-youtube svg{width:16px !important;max-width:16px !important;}
  .os-social-link.is-disabled{opacity:.78 !important;}
}
