/* CLENA Sites portfolio v5 — controlled scale, stable motion, readable layouts */
:root{--content:1280px}
html{scroll-padding-top:76px}
body{font-size:15px;line-height:1.65}
.site-bar{position:sticky!important;top:0!important;left:0;right:0;z-index:30;min-height:64px;max-height:85px;padding:10px clamp(16px,4vw,56px)!important;background:color-mix(in srgb,var(--bg) 88%,transparent)!important;color:var(--ink)!important;backdrop-filter:blur(20px);border-bottom:1px solid var(--line);box-shadow:0 4px 22px #0000000c}
.site-mark{max-width:42vw;font-size:clamp(15px,1.5vw,20px);letter-spacing:-.035em}
.site-mark-icon{width:32px;height:32px;flex-basis:32px;font-size:14px;border:1px solid var(--line);color:var(--accent);background:var(--surface)}
.site-navigation{gap:clamp(13px,2vw,28px)}
.site-navigation a,.site-navigation a:last-child{font-size:12px;color:var(--ink);font-weight:750}
.site-navigation a:last-child{background:var(--accent);color:var(--accent-ink);border:0;padding:8px 16px}
.hero{min-height:clamp(500px,78dvh,760px)!important;isolation:isolate;align-items:center;overflow:hidden}
.hero-no-photo:before{top:-38%;right:-20%;width:min(75vw,900px);box-shadow:0 0 0 95px #ffffff06,0 0 0 205px #ffffff04;animation:none!important}
.hero-photo{animation:none!important;transform:none!important;filter:saturate(.87)}
.hero:after{background:linear-gradient(90deg,#100b1ccf 0%,#110b1ca6 53%,#140b1f50 100%),linear-gradient(0deg,#0f0a1ac7,transparent 64%)!important}
.hero-copy{width:min(calc(100% - 68px),var(--content));padding:clamp(80px,13vh,140px) 0 clamp(82px,12vh,135px)!important;animation:none!important}
.kicker{font-size:clamp(10px,.8vw,12px);letter-spacing:.16em;color:#e9d5f5}
.hero h1{font-size:clamp(46px,6.4vw,94px)!important;line-height:1.04;max-width:920px;letter-spacing:-.067em;margin:18px 0!important;text-wrap:balance;font-style:normal}
.hero-subtitle{font-size:clamp(14px,1.15vw,18px)!important;line-height:1.65;max-width:650px;margin:0!important}
.hero-actions{margin-top:24px!important;gap:10px;align-items:center}
.action{font-size:12px!important;font-weight:800;min-height:43px!important;max-width:260px;padding:11px 19px!important;border-radius:12px!important;box-shadow:none!important;line-height:1.3}
.action:hover{transform:translateY(-2px)}
.action-outline{background:#ffffff12!important;border:1px solid #ffffff8c!important}
.scroll-cue{bottom:24px;font-size:9px;opacity:.78}
.container{width:min(calc(100% - clamp(34px,5.5vw,100px)),var(--content))}
.section{padding:clamp(62px,6.8vw,104px) 0!important}
.section h2{font-size:clamp(33px,4vw,58px)!important;max-width:820px;letter-spacing:-.052em;line-height:1.12;margin:9px 0 22px!important}
.section p{font-size:clamp(14px,1vw,16px)!important;line-height:1.76}
.eyebrow{font-size:10px;letter-spacing:.15em}
.about{grid-template-columns:minmax(215px,.6fr) minmax(0,1.15fr);gap:clamp(25px,5vw,78px)}
.about-photo{width:100%;max-width:370px;aspect-ratio:4/4.6;border-radius:21px}
.about-copy p{max-width:680px}
.about-line{margin-top:25px;width:53px;height:2px}
.cards{gap:16px;margin-top:25px}
.card{padding:clamp(19px,2.1vw,29px);border-radius:17px;box-shadow:none}
.card:hover{transform:translateY(-3px);box-shadow:0 10px 25px #00000012}
.card h3{font-size:clamp(19px,2vw,25px);line-height:1.22;letter-spacing:-.035em;margin:15px 0 8px}
.card p{font-size:13px!important;line-height:1.65}
.project{padding:0}
.project-image img,.project-image-placeholder{aspect-ratio:16/10}
.project-info{padding:19px 22px 24px}
.project-info h3{margin:1px 0 9px}
.project-info a{font-size:12px}
.socials{gap:10px;margin-top:23px}
.socials a{gap:9px;font-size:12px;font-weight:800;min-height:42px;padding:9px 15px;border-radius:12px;transition:border-color .2s,transform .2s}
.socials a i{font-size:18px;line-height:1}
.socials a:hover{transform:translateY(-2px)}
.contact{padding:clamp(70px,7vw,115px) 0!important}
.contact h2{font-size:clamp(40px,5vw,74px);max-width:780px;margin:13px auto 18px}
.contact p{font-size:15px!important}
.contact .action{margin-top:23px}
.footer{padding:19px clamp(16px,4vw,56px);font-size:11px}
.reveal{opacity:1!important;transform:none!important;transition:none!important}
@media(max-width:920px){
 .hero{min-height:clamp(450px,70dvh,690px)!important}
 .hero h1{font-size:clamp(45px,7.5vw,77px)!important}
 .cards{grid-template-columns:repeat(2,minmax(0,1fr))}
 .site-bar{min-height:62px}
}
@media(max-width:760px){
 html{scroll-padding-top:70px}
 .site-bar{min-height:62px;max-height:none;padding:10px 16px!important}
 .site-mark{max-width:calc(100% - 68px);font-size:17px}
 .site-menu-button{display:flex;color:var(--ink);background:var(--surface);border-color:var(--line);width:40px;height:40px;flex-basis:40px;font-size:19px}
 .site-navigation{top:calc(100% + 4px);left:12px;right:12px;gap:1px;padding:8px;background:var(--surface);color:var(--ink);border-color:var(--line);box-shadow:0 17px 38px #00000026}
 .site-navigation a,.site-navigation a:last-child{color:var(--ink);background:transparent;padding:11px 14px;font-size:13px}
 .site-navigation a:last-child{background:var(--accent);color:var(--accent-ink);border-radius:10px}
 .hero{min-height:clamp(420px,70svh,620px)!important;align-items:center}
 .hero-copy{width:calc(100% - 36px);padding:88px 0 100px!important}
 .hero h1{font-size:clamp(39px,9.3vw,60px)!important;line-height:1.05;margin:15px 0!important;letter-spacing:-.06em}
 .hero-subtitle{font-size:14px!important;max-width:440px;line-height:1.65}
 .hero-actions{display:flex;flex-direction:row!important;align-items:center!important;gap:8px;flex-wrap:wrap;margin-top:19px!important}
 .hero-actions .action{min-height:40px!important;width:auto!important;max-width:100%;flex:0 1 auto;font-size:11px!important;padding:10px 13px!important}
 .scroll-cue{bottom:17px;right:18px}
 .section{padding:58px 0!important}
 .section h2{font-size:clamp(30px,7.2vw,46px)!important;margin:7px 0 18px!important}
 .container{width:calc(100% - 36px)}
 .about{grid-template-columns:1fr;gap:22px}
 .about-photo{width:100%;max-width:280px;aspect-ratio:5/4}
 .about-placeholder{font-size:90px}
 .cards,.projects{grid-template-columns:1fr;gap:12px}
 .card{padding:20px}
 .project{padding:0}
 .project-image img,.project-image-placeholder{aspect-ratio:16/10}
 .project-info{padding:19px 20px}
 .contact{padding:70px 0!important}
 .contact h2{font-size:clamp(34px,8vw,49px)}
}
@media(max-width:400px){
 .hero{min-height:clamp(420px,70svh,570px)!important}
 .hero h1{font-size:clamp(37px,9vw,44px)!important}
 .hero-actions .action{font-size:10px!important}
 .hero-copy{padding-bottom:95px!important}
}
/* Embedded preview uses the exact same responsive portfolio CSS at a real
   390px viewport. Only hide browser chrome; never shrink components differently. */
html.clena-embedded-preview,html.clena-embedded-preview body{
 scrollbar-width:none!important;scroll-behavior:auto!important;overscroll-behavior:contain
}
html.clena-embedded-preview::-webkit-scrollbar,
html.clena-embedded-preview body::-webkit-scrollbar,
html.clena-embedded-preview *::-webkit-scrollbar{display:none!important;width:0!important}
html.clena-embedded-preview .reveal{opacity:1!important;transform:none!important}
@media(prefers-reduced-motion:reduce){.hero *, .section *, .contact *{animation:none!important}}

/* Prevent every viewport from spilling headings, images or CTAs past screen edges. */
#siteRoot,#siteRoot main,#siteRoot section,#siteRoot .container{min-width:0;max-width:100%}
#siteRoot h1,#siteRoot h2,#siteRoot h3,#siteRoot p,#siteRoot .kicker,
#siteRoot .hero-subtitle,#siteRoot .site-mark,#siteRoot .site-navigation a{
 overflow-wrap:anywhere;max-width:100%;word-break:normal
}
#siteRoot .cards,#siteRoot .projects{min-width:0;max-width:100%;grid-auto-flow:row}
#siteRoot .card,#siteRoot .project,#siteRoot .project-info{min-width:0;max-width:100%;overflow-wrap:anywhere}
#siteRoot .hero-photo,#siteRoot .project-image img,#siteRoot .about-photo img{
 max-width:100%;object-position:center;object-fit:cover
}
#siteRoot .hero-actions{max-width:100%;min-width:0;display:flex;flex-wrap:wrap}
#siteRoot .hero-actions .action{min-width:0;max-width:100%;white-space:normal;text-align:center;overflow-wrap:anywhere}
#siteRoot .socials{display:flex;flex-wrap:wrap;max-width:100%}
#siteRoot .socials a{max-width:100%;white-space:normal;overflow-wrap:anywhere}
@media(min-width:761px) and (max-width:1020px){
 #siteRoot .site-bar{min-height:62px;padding:9px clamp(17px,3vw,30px)!important}
 #siteRoot .site-mark{max-width:calc(100% - 62px);font-size:18px}
 #siteRoot .site-menu-button{display:flex;width:40px;height:40px;flex:0 0 40px;color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:11px}
 #siteRoot .site-navigation{
  display:none;position:absolute;top:calc(100% + 4px);left:auto;right:16px;
  width:min(330px,calc(100vw - 32px));flex-direction:column;align-items:stretch;gap:3px;
  padding:9px;border:1px solid var(--line);border-radius:13px;background:var(--surface);
  box-shadow:0 16px 34px #00000024
 }
 #siteRoot .site-navigation.open{display:flex}
 #siteRoot .site-navigation a,#siteRoot .site-navigation a:last-child{padding:11px 13px;border-radius:9px;color:var(--ink);background:transparent}
 #siteRoot .site-navigation a:last-child{background:var(--accent);color:var(--accent-ink)}
 #siteRoot .hero h1{font-size:clamp(52px,6.5vw,76px)!important}
}
@media(max-width:760px){
 #siteRoot .hero-copy{max-width:calc(100% - 36px)}
 #siteRoot .hero-actions .action{flex:0 1 auto}
 #siteRoot .site-navigation{max-height:calc(100svh - 85px);overflow-y:auto}
 #siteRoot .project-info h3{font-size:22px}
}
