/* =========================================================
   Libbie Curtis — Portfolio
   Built from the Figma design (desktop 1440px) + responsive
   ========================================================= */
@font-face{font-family:'Inter Outline';src:url('../fonts/inter-semibold-outline.woff2') format('woff2');font-weight:600;font-display:swap}
:root{
  --beige:#edebe5; --ink:#262628; --ink-2:#303031; --ink-3:#313031;
  --green-900:#14433b; --green-700:#1e5b47; --green-500:#23aa92;
  --green-450:#17a38c; --green-300:#6ed5c3; --green-200:#80e3c8;
  --glass:rgba(162,231,210,.28);
  /* 1 design pixel: scales down below 1440px wide, never above */
  --u:min(1px, calc(100vw / 1440));
  --font:'Inter',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
html,body{overflow-x:clip}
/* overscroll areas show the color of the nearest edge of the page */
html{background:var(--edge-top,var(--beige))}
html.at-bottom{background:var(--edge-bottom,var(--beige))}
body{font-family:var(--font);background:var(--beige);color:var(--ink);-webkit-font-smoothing:antialiased;min-height:100vh}
img{display:block;max-width:100%;height:auto}
a{color:inherit;text-decoration:none}
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip{position:absolute;left:-999px;top:8px;background:var(--green-700);color:#fff;padding:10px 16px;z-index:100}
.skip:focus{left:8px}
:focus-visible{outline:3px solid var(--green-500);outline-offset:3px}

/* ---------- Header ---------- */
.header-wrap{position:sticky;top:0;z-index:50;transition:transform .35s ease,background-color .3s ease,box-shadow .3s ease,backdrop-filter .3s}
.header-wrap.scrolled{background:rgba(237,235,229,.88);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);box-shadow:0 6px 24px rgba(0,0,0,.08)}
.header-wrap.scrolled .site-header{padding-bottom:12px}
.header-wrap.scrolled .site-header .rule{opacity:0}
.header-wrap.hidden{transform:translateY(-100%)}
.site-header{position:relative;z-index:20;max-width:1440px;margin:0 auto;padding:24px 48px 0;transition:padding .3s}
.site-header .rule{transition:opacity .3s}
.site-header .bar{display:flex;justify-content:space-between;align-items:flex-start}
.logo{display:block;width:48px;height:63px;flex-shrink:0}
.logo img{width:48px;height:63px}
.nav{display:flex;gap:4px;align-items:center;align-self:stretch}
.nav a{padding:0 17px;font-size:max(20px, calc(32 * var(--u)));color:var(--ink);transition:color .2s}
.nav a:hover,.nav a[aria-current="page"]{color:var(--green-500)}
.site-header .rule{height:1px;background:var(--ink);margin-top:16px;transform:rotate(-.28deg)}
.menu-btn{display:none;background:none;border:0;width:44px;height:44px;cursor:pointer;align-items:center;justify-content:center;margin-top:8px}
.menu-btn span,.menu-btn span::before,.menu-btn span::after{display:block;width:28px;height:2px;background:var(--ink);position:relative;transition:transform .25s,background .25s}
.menu-btn span::before,.menu-btn span::after{content:"";position:absolute;left:0}
.menu-btn span::before{top:-9px}.menu-btn span::after{top:9px}
.menu-open .menu-btn span{background:transparent}
.menu-open .menu-btn span::before{transform:translateY(9px) rotate(45deg)}
.menu-open .menu-btn span::after{transform:translateY(-9px) rotate(-45deg)}

/* ---------- Buttons ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:18px 24px;font-size:16px;line-height:26px;letter-spacing:-.32px;font-family:var(--font);background:var(--green-700);color:#fff;border:1px solid var(--green-700);cursor:pointer;transition:background .2s,color .2s,border-color .2s;white-space:nowrap}
.btn{transition:background .2s,color .2s,border-color .2s,transform .25s cubic-bezier(.2,.7,.2,1),box-shadow .25s}
.btn:hover{background:var(--green-900);border-color:var(--green-900);transform:translateY(-2px);box-shadow:0 8px 18px rgba(20,67,59,.25)}
.btn:active{transform:translateY(0);box-shadow:none}
.btn--soon:hover{transform:none;box-shadow:none}
.btn--outline{background:transparent;color:var(--green-700)}
.btn--outline:hover{background:var(--green-700);color:#fff}
.btn--soon{background:var(--green-200);border-color:var(--green-200);cursor:default}
.btn--soon:hover{background:var(--green-200);border-color:var(--green-200)}
.btn svg{width:24px;height:24px}

/* ---------- Hero (Main) ---------- */
.hero{position:relative;max-width:1440px;margin:0 auto;padding:40px 48px 82px}
.hero-inner{position:relative;z-index:1;max-width:1222px;margin:0 auto;display:flex;align-items:flex-start}
.hero-text{width:calc(795 * var(--u));flex-shrink:0;position:relative;z-index:2;display:flex;flex-direction:column;align-items:center;gap:calc(28 * var(--u))}
.hero-line{display:flex;align-items:center;gap:calc(30 * var(--u));width:100%}
.hero-small{font-weight:600;font-size:calc(64 * var(--u));line-height:1.2;white-space:nowrap}
.outline{font-family:'Inter Outline','Inter',sans-serif;font-weight:600;color:transparent;-webkit-text-stroke:2px var(--ink)}
.hero-small .outline{-webkit-text-stroke-width:2.5px}
.hero-big{font-weight:600;font-size:calc(128 * var(--u));line-height:1.2;letter-spacing:-.01em}
.hero-portfolio{font-size:calc(128 * var(--u));line-height:1.2;letter-spacing:-.01em;-webkit-text-stroke-width:2px}
.hero-name{font-weight:900;font-size:calc(48 * var(--u));background:linear-gradient(90deg,var(--green-500) 0%,var(--green-200) 100%);-webkit-background-clip:text;background-clip:text;color:transparent}
.hero-btns{display:flex;gap:20px}
.hero-photo{width:calc(544 * var(--u));flex-shrink:0;margin-left:calc(-117 * var(--u));position:relative;z-index:1}
.hero-photo img{width:100%;aspect-ratio:544/558;object-fit:cover}
.deco-star{position:absolute;pointer-events:none;z-index:0}

/* ---------- Dark text bands (Background / Why) ---------- */
.band{position:relative;background:var(--ink);color:var(--beige);overflow:hidden}
.band .inner{max-width:1274px;margin:0 auto;padding:0 24px calc(48 * var(--u))}
.band h2{font-size:calc(128 * var(--u));line-height:calc(80 * var(--u));margin-top:calc(-25 * var(--u));margin-bottom:calc(55 * var(--u))}
.band p{font-size:max(16px, calc(32 * var(--u)));line-height:1.0;}
.band p+p{margin-top:32px}
.band--bg{min-height:calc(393 * var(--u))}
.band--bg h2{font-weight:900;padding-top:0}
.band--why{min-height:calc(363 * var(--u));margin-top:calc(53 * var(--u))}
.band--why .inner{max-width:1298px}
.band--why h2{font-weight:200;text-align:right;margin-top:calc(-16 * var(--u))}
.bands{position:relative;overflow-x:clip}
.bands .deco-star{z-index:2}

/* ---------- Education + skills ---------- */
.edu{position:relative;max-width:1440px;margin:0 auto;padding:calc(30 * var(--u)) 0 0 calc(166 * var(--u));min-height:calc(272 * var(--u))}
.edu h2{font-weight:700;font-size:calc(96 * var(--u));line-height:1.2;margin-top:calc(-29 * var(--u))}
.edu .lines{display:flex;flex-direction:column;gap:13px;margin-top:calc(4 * var(--u))}
.edu .l1{font-weight:900;font-size:calc(40 * var(--u))}
.edu .l2{font-weight:700;font-size:calc(40 * var(--u))}
.edu .l3{font-weight:300;font-size:calc(36 * var(--u))}
.edu-blocks{position:absolute;right:0;top:calc(29 * var(--u));display:flex;flex-direction:column;gap:calc(60 * var(--u))}
.edu-blocks div{display:flex}
.edu-blocks span{width:calc(106 * var(--u));height:calc(88 * var(--u))}
.edu-blocks span:nth-child(1){background:var(--green-700)}
.edu-blocks span:nth-child(2){background:var(--green-500)}
.edu-blocks span:nth-child(3){background:var(--green-200)}
.skills{max-width:1440px;margin:0 auto;padding:calc(42 * var(--u)) 0 calc(80 * var(--u)) calc(205 * var(--u));position:relative;overflow:hidden}
.skills ul{list-style:none;display:flex;align-items:flex-end}
.skills li{white-space:nowrap}
.skills .r1{gap:calc(105 * var(--u));align-items:flex-start}
.skills .r2{gap:calc(89 * var(--u));padding-left:calc(99 * var(--u));margin-top:calc(18 * var(--u));align-items:center}
.skills .r3{gap:calc(151 * var(--u));margin-left:calc(-66 * var(--u));margin-top:calc(12 * var(--u))}
.sk-sb32{font-weight:600;font-size:calc(32 * var(--u))}
.sk-sb36{font-weight:600;font-size:calc(36 * var(--u))}
.sk-b40{font-weight:700;font-size:calc(40 * var(--u))}
.sk-l32{font-weight:300;font-size:calc(32 * var(--u))}
.sk-r32{font-weight:400;font-size:calc(32 * var(--u))}
.c-14433b{color:#14433b}.c-17a38c{color:#17a38c}.c-6ed5c3{color:#6ed5c3}.c-23aa92{color:#23aa92}.c-000{color:#000}
.skills .w1{width:calc(270 * var(--u))}.skills .w2{width:calc(124 * var(--u))}.skills .w3{width:calc(330 * var(--u))}.skills .w4{width:calc(200 * var(--u))}.skills .w5{width:calc(268 * var(--u))}.skills .w6{width:calc(99 * var(--u))}

/* ---------- Recent projects + More works ---------- */
.recent{position:relative;overflow:visible;z-index:2;background:linear-gradient(180deg,transparent calc(742 * var(--u)),var(--ink-2) calc(742 * var(--u)));padding-top:calc(80 * var(--u));min-height:calc(1000 * var(--u))}
.stars-bg{position:absolute;left:0;top:0;width:100%;height:auto;max-width:none;pointer-events:none;z-index:0}
.recent h2,.more h2{position:relative;z-index:1;font-weight:700;font-size:calc(96 * var(--u));max-width:1232px;margin:0 auto;padding:0 24px;line-height:1.2}
.recent h2{color:var(--ink)}
.cards{position:relative;z-index:1;display:flex;justify-content:center;gap:16px;padding:calc(24 * var(--u)) 24px 0;max-width:1440px;margin:0 auto}
.card{width:min(400px,32%);aspect-ratio:1;background:rgba(38,38,40,.8);border-radius:3px;color:#fff;display:flex;flex-direction:column;justify-content:center;padding:24px;gap:32px;overflow:hidden}
.card h3{font-weight:800;font-size:max(22px, calc(32 * var(--u)));line-height:1.2}
.card p{font-size:max(16px, calc(24 * var(--u)));line-height:1.2;margin-top:calc(24 * var(--u))}
.card .btn{align-self:center}
.more{position:relative;z-index:1;padding-top:calc(190 * var(--u))}
.more h2{color:var(--beige)}
.more-wrap{background:var(--ink-2);padding:calc(48 * var(--u)) 24px calc(70 * var(--u));position:relative;z-index:1}
.more-wrap .works-grid{position:relative;z-index:3}
.works-grid{display:grid;grid-template-columns:repeat(2,minmax(0,409px));column-gap:min(91px,8vw);row-gap:29px;justify-content:center;max-width:909px;margin:0 auto}
.work{position:relative;display:block;aspect-ratio:409/307;overflow:hidden;background:#3a3a3b}
.work img{width:100%;height:100%;object-fit:cover;transition:transform .5s}
.work .ov{position:absolute;inset:0;background:rgba(0,0,0,.85);opacity:0;transition:opacity .3s;display:flex;flex-direction:column;justify-content:flex-end;padding:0 16px 16px;color:#fff}
.work .ov b{font-size:max(22px, calc(32 * var(--u)));line-height:32px;font-weight:700}
.work .ov span{display:flex;align-items:center;gap:6px;font-weight:500;font-size:max(16px, calc(20 * var(--u)));line-height:32px}
.work .ov svg{width:24px;height:24px}
.work:hover .ov,.work:focus-visible .ov{opacity:1}
.work:hover img{transform:scale(1.03)}
.view-all{display:flex;justify-content:center;margin-top:48px}

/* ---------- Footer ---------- */
.site-footer{position:relative;overflow:hidden;height:312px;background:var(--beige);color:var(--ink-2)}
.site-footer.dark{background:var(--ink);color:var(--beige)}
.site-footer .inner{max-width:1440px;margin:0 auto;height:100%;position:relative;display:flex;justify-content:space-between;padding:0 78px 0 68px}
.site-footer h2{font-weight:600;font-size:max(56px, calc(96 * var(--u)));line-height:1.2;margin-top:-24px;white-space:nowrap}
.site-footer .thanks p{font-weight:600;font-size:max(18px, calc(32 * var(--u)));line-height:1.2;margin-top:10px}
.site-footer .thanks p+p{margin-top:12px}
.site-footer.dark .thanks p+p{padding-left:18px}
.contact-list{list-style:none;display:flex;flex-direction:column;gap:22px;width:522px;padding-top:53px}
.contact-list a{display:flex;align-items:center;gap:32px;font-size:max(20px, calc(36 * var(--u)));transition:color .2s}
.contact-list a:hover{color:var(--green-500)}
.contact-list svg{width:38px;height:38px;flex-shrink:0}
.contact-list li:first-child svg{width:34px;height:34px;margin:0 2px}

/* ---------- Works page ---------- */
.page-works{background:linear-gradient(0deg,var(--ink) 0%,var(--beige) 100%)}
.page-works main{padding:66px 24px 94px}

/* ---------- Resume ---------- */
.resume{max-width:1440px;margin:0 auto;padding:calc(107 * var(--u)) 24px calc(270 * var(--u))}
.resume img{width:100%;max-width:1282px;margin:0 auto;aspect-ratio:1275/1650;object-fit:cover;background:#fff;box-shadow:0 12px 36px rgba(38,38,40,.12)}

/* ---------- Contact ---------- */
.contact-stage{position:relative;overflow:hidden;margin-top:calc(-110 * var(--u));padding:calc(200 * var(--u)) 24px calc(100 * var(--u));min-height:calc(947 * var(--u));background:linear-gradient(180deg,transparent calc(900 * var(--u)),var(--green-900) calc(900 * var(--u)))}
.glass{position:relative;z-index:1;max-width:1196px;margin:0 auto;background:rgba(30,91,71,.5);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);border-radius:6px;padding:24px min(180px,10vw) 32px;display:flex;flex-direction:column;align-items:center;gap:14px}
.glass h1{font-weight:700;font-size:max(44px, calc(96 * var(--u)));color:var(--beige);line-height:1.2;text-align:center}
.contact-cols{display:flex;gap:25px;align-items:flex-start}
.panel{background:var(--beige);border-radius:3px;padding:24px}
.form-card{width:425px;display:flex;flex-direction:column;gap:15px}
.form-card h2,.panel h2{font-weight:700;font-size:24px;color:var(--ink)}
.form-card h2{text-align:center}
.form-card input,.form-card textarea{width:100%;border:0;border-radius:3px;background:#fff;font:16px var(--font);color:var(--ink);padding:6px 11px;outline-offset:1px}
.form-card input{height:33px}
.form-card textarea{height:103px;resize:vertical}
.form-card ::placeholder{color:#575757;opacity:1}
.form-card [aria-invalid="true"]{box-shadow:0 0 0 2px #c0392b}
.fs-err{color:#a12a1f;font-size:13px;margin-top:-10px}
.fs-err:empty{display:none}
.form-card .btn{align-self:center;padding:12px 24px}
.form-card .btn[disabled]{opacity:.6;cursor:wait}
.fs-msg{font-size:14px;text-align:center}
.fs-msg:empty{display:none}
[data-fs-success]{color:var(--green-700);font-weight:600}
.form-note{font-size:12px;text-align:center;color:#000}
.form-note a{text-decoration:underline}
.side-cards{width:240px;display:flex;flex-direction:column;gap:12px;margin-top:40px}
.panel--call{display:flex;flex-direction:column;gap:2px}
.panel--call a{font-size:24px;text-decoration:underline;color:#000}
.panel--connect{display:flex;flex-direction:column;gap:27px;padding:21px 24px}
.panel--connect a{display:flex;align-items:center;gap:13px;font-size:24px;color:#000;white-space:nowrap}
.panel--connect svg{width:34px;height:34px}

/* ---------- Case studies: shared ---------- */
.cs-head{text-align:center;padding:calc(56 * var(--u)) 24px calc(56 * var(--u));display:flex;flex-direction:column;align-items:center;gap:calc(42 * var(--u))}
.cs-title{display:flex;flex-direction:column;gap:calc(21 * var(--u))}
.cs-title h1{font-weight:700;font-size:max(48px, calc(96 * var(--u)));line-height:1;letter-spacing:-1.6px}
.cs-title h1.medium{font-weight:500}
.cs-title p{font-size:max(26px, calc(48 * var(--u)));line-height:1;letter-spacing:-.96px}
.cs-hero{border:3px solid #000;border-radius:18px;width:100%;max-width:928px;aspect-ratio:2/1;object-fit:cover}
.meta{display:flex;flex-wrap:wrap;justify-content:center;gap:12px 48px;font-size:max(17px, calc(24 * var(--u)))}
.ov-band{background:var(--green-900);display:flex;gap:22px;padding:30px max(65px, calc((100% - 1310px) / 2));width:100%}
.ov-card{flex:1 1 0;background:var(--glass);border-radius:25px;padding:24px 52px 36px;color:var(--ink);min-height:279px}
.ov-card h2{font-style:italic;font-weight:400;font-size:max(28px, calc(36 * var(--u)));margin-bottom:41px}
.ov-card p{font-size:max(17px, calc(24 * var(--u)));line-height:1.1}
.ov-card.goals{padding-top:41px}
.retro .ov-card{min-height:234px}
.retro .ov-card p{line-height:1.2}
.retro-list{list-style:none;display:flex;flex-direction:column;gap:14px;font-size:max(17px, calc(24 * var(--u)));line-height:1.2}
.retro-list li{position:relative;padding-left:26px}
.retro-list li::before{content:"";position:absolute;left:2px;top:.45em;width:10px;height:10px;background:var(--ink);transform:rotate(45deg)}
.ov-card .tags{display:flex;flex-wrap:wrap;gap:4px 48px;margin-top:4px}

/* Back to Works */
.back-bar{max-width:1440px;margin:0 auto;padding:24px 48px 0}
.back-link{display:inline-flex;align-items:center;gap:10px;padding:10px 20px 10px 14px;border:1px solid var(--green-700);color:var(--green-700);font-size:16px;line-height:26px;letter-spacing:-.32px;transition:background .25s,color .25s,transform .25s cubic-bezier(.2,.7,.2,1),box-shadow .25s}
.back-link svg{width:22px;height:22px;transition:transform .3s cubic-bezier(.2,.7,.2,1)}
.back-link:hover{background:var(--green-700);color:#fff;transform:translateY(-2px);box-shadow:0 8px 18px rgba(20,67,59,.22)}
.back-link:hover svg{transform:translateX(-4px)}
.back-link:active{transform:none;box-shadow:none}
.back-bar + .cs-head{padding-top:calc(24 * var(--u))}
.back-bar + h1 + .proposal{padding-top:36px}
@media (prefers-reduced-motion:reduce){.back-link,.back-link svg{transition:none}.back-link:hover,.back-link:hover svg{transform:none}}

/* Stoneworx features */
.feature{background:var(--ink);color:var(--beige);padding:81px 24px 82px}
.feature.light{background:var(--beige);color:var(--ink)}
.feature .inner{max-width:1109px;margin:0 auto}
.feature h2{font-weight:600;font-size:max(26px, calc(32 * var(--u)))}
.feature p{font-size:max(16px, calc(20 * var(--u)));margin-top:calc(35 * var(--u));line-height:1.2}
.feature img{width:100%;max-width:987px;margin:calc(54 * var(--u)) auto 0;aspect-ratio:987/617;object-fit:cover}

/* StudyRoom */
.sr-phone{width:302px;max-width:60vw;aspect-ratio:302/608;object-fit:cover}
.sr-block{background:var(--ink);padding:0 0 24px;display:flex;flex-direction:column;align-items:center;gap:48px;overflow:hidden}
.sr-problems{background:var(--beige);width:100%;padding:48px 96px 64px}
.sr-block h2{font-weight:600;font-size:max(36px, calc(52 * var(--u)));line-height:1.2}
.sr-problems h2{margin-bottom:48px}
.bullets{list-style:none;display:flex;flex-direction:column;gap:24px;padding:0 24px}
.bullets li{display:flex;gap:10px;font-size:max(16px, calc(18.8 * var(--u)));line-height:32px;align-items:flex-start}
.bullets li::before{content:"";flex:0 0 13px;width:13px;height:13px;margin:9px 4px 0;background:currentColor;transform:rotate(45deg)}
.sr-solutions{max-width:1200px;width:100%;padding:0 96px 12px;color:var(--beige);text-align:left}
.sr-solutions h2{text-align:center;margin-bottom:48px}
.sr-phones{display:flex;gap:48px;justify-content:center;flex-wrap:wrap;padding:0 24px}
.sr-phones img{width:276px;aspect-ratio:276/556;object-fit:cover}
.sr-last{color:var(--beige);width:960px;max-width:100%;padding:0 24px}
.sr-affinity{width:1024px;max-width:calc(100% - 48px);aspect-ratio:1024/437;object-fit:cover}

/* Nothing Ear */
.ne-hero{width:100%;max-width:945px;height:auto}
.ne-meta{font-size:max(20px, calc(36 * var(--u)))}
.process{max-width:1440px;margin:0 auto;padding:48px 140px;text-align:center;display:flex;flex-direction:column;gap:17px}
.process h2{font-weight:700;font-size:32px}
.process .sub{font-size:24px}
.process p.body{font-size:max(17px, calc(24 * var(--u)));line-height:30px;text-align:left}
.ne-proposal{display:flex;flex-direction:column;align-items:center;gap:24px;padding:0 24px 44px}
.ne-proposal img{width:536px;max-width:100%;aspect-ratio:669/864;border:1px solid var(--ink);border-radius:25px;object-fit:cover}
.principle{background:var(--ink);color:var(--beige);padding:48px;min-height:269px;display:flex;flex-direction:column;justify-content:center}
.principle.light{background:var(--beige);color:var(--ink)}
.principle .inner{max-width:1344px;margin:0 auto;width:100%}
.principle h3{font-weight:700;font-size:max(24px, calc(32 * var(--u)));line-height:24px;margin-bottom:16px}
.principle p{font-size:max(17px, calc(24 * var(--u)));line-height:30px}
.principle.light p,.principle.last p{line-height:24px}
.shot{width:100%;aspect-ratio:1440/865;object-fit:cover}

/* Mellow */
.mellow-logo{width:392px;max-width:80vw;aspect-ratio:392/296;object-fit:contain}
.mellow-page{background:#d4fff2;overflow:hidden}
.m-slice{width:100%;height:auto}
.m-strip{display:block;width:100%;height:auto;min-height:32px;object-fit:cover;object-position:left center}
.m-gotham{position:relative;background:var(--beige)}
.m-wave{display:block;width:100%;height:calc(170 * var(--u));min-height:60px}
.m-pattern-wrap{position:relative;background:#d5fff3}
.m-wave--top{position:absolute;left:0;top:-1px;z-index:1}
.tiles{display:flex;justify-content:center}
.tile{display:flex;align-items:center;justify-content:center}
.tile img{width:243px;max-width:70%;aspect-ratio:243/176;object-fit:contain}
.tile.t1{background:#aff5e0;flex:0 1 503px;height:419px}
.tile.t2{background:#15055c;flex:0 1 503px;height:394px}
.tile.t3{background:#d4fff2;flex:0 1 484px;height:394px}
.strip{height:60px;background:#15055c;overflow:hidden;display:flex;align-items:center;white-space:nowrap}
.strip span{font-family:'Fredoka',var(--font);font-weight:700;font-size:28px;letter-spacing:-.5px;color:#ff6467;padding:0 22px}
.strip span:nth-child(even){color:#23aa92}
.m-text{background:var(--beige);padding:111px 24px 80px}
.m-text .inner{max-width:1202px;margin:0 auto}
.m-text h2{font-weight:700;font-size:max(34px, calc(48 * var(--u)));line-height:36px;margin-bottom:52px;color:#000}
.m-text p{font-size:max(16px, calc(20 * var(--u)));line-height:36px;color:#000}
.mono{font-family:'Intel One Mono',ui-monospace,SFMono-Regular,Menlo,monospace;font-weight:500;letter-spacing:-1.6px}
.palette{background:#eefffa;position:relative;padding:28px 24px 100px;text-align:center}
.palette>.mono{font-size:24px;color:#000}
.swatches{display:flex;justify-content:center;gap:92px;flex-wrap:wrap;margin-top:72px;position:relative;z-index:1}
.swatch{width:140px;display:flex;flex-direction:column;gap:4px;align-items:center}
.swatch i{display:block;width:140px;height:206px;border-radius:70px 70px 0 0}
.swatch .mono{font-size:24px;line-height:24px}
.waves{position:absolute;left:0;right:0;bottom:-30px;height:182px;pointer-events:none}
.type-block{background:#15055c;padding:67px 24px 120px;position:relative}
.type-block::before{content:"";position:absolute;left:0;right:0;top:-60px;height:61px;background:#15055c;border-radius:50% 50% 0 0/100% 100% 0 0}
.type-cols{max-width:1154px;margin:0 auto;display:flex;justify-content:space-between;gap:40px;letter-spacing:-1.6px}
.type-cols > div{width:515px}
.gb{font-family:'Gotham','Montserrat',var(--font);font-weight:900;color:#d4fff2}
.gk{font-family:'Gotham','Montserrat',var(--font);font-weight:400;color:#fff}
.type-cols .big{font-size:max(52px, calc(96 * var(--u)));line-height:1}
.type-cols .abc{font-size:max(26px, calc(48 * var(--u)));line-height:1;margin-top:25px;color:#d4fff2}
.m-type{background:var(--beige);padding:20px 24px 70px}
.m-type .inner{max-width:1202px;margin:0 auto}
.m-type h2{font-weight:700;font-size:max(34px, calc(48 * var(--u)));line-height:36px;margin-bottom:52px;color:#000}
.m-type p{font-size:max(16px, calc(20 * var(--u)));line-height:36px;color:#000}
.m-pattern{width:100%;aspect-ratio:1440/686;object-fit:cover}
.m-mockups{position:relative}
.m-mockups .mono{position:absolute;top:11px;left:50%;transform:translateX(-50%);font-weight:400;font-size:24px;color:#000;letter-spacing:0;z-index:1}
.m-mockups img{width:100%;aspect-ratio:1596/1055;object-fit:cover}
.m-posters{width:100%;aspect-ratio:1515/1010;object-fit:cover}

/* Project proposal */
.proposal{max-width:1275px;margin:0 auto;padding:68px 24px 94px}
.proposal img{width:100%;background:#fff;box-shadow:0 12px 36px rgba(38,38,40,.12);margin-bottom:32px}
.proposal img:last-of-type{margin-bottom:0}
.proposal .p1,.proposal .p2{aspect-ratio:1275/1650}
.proposal .p3{aspect-ratio:1275/594}
.proposal .back{display:flex;justify-content:center;margin-top:48px}

/* =========================================================
   Tablet
   ========================================================= */
@media (max-width:1100px){
  .site-footer .inner{padding:0 40px}
  .contact-list{width:auto}
  .ov-band{padding:30px 32px}
  .ov-card{padding:24px 32px 32px}
}

/* =========================================================
   Mobile
   ========================================================= */
@media (max-width:760px){
  .site-header{padding:16px 20px 0}
  .menu-btn{display:flex}
  .nav{position:absolute;left:20px;right:20px;top:92px;flex-direction:column;align-items:stretch;gap:0;background:var(--beige);border:1px solid var(--ink);padding:8px 0;display:none;box-shadow:0 12px 30px rgba(0,0,0,.15)}
  .menu-open .nav{display:flex}
  .nav a{font-size:24px;padding:14px 20px}
  .site-header .rule{margin-top:12px}

  .hero{padding:28px 20px 56px}
  .hero-inner{flex-direction:column;align-items:center}
  .hero-text{width:100%;gap:16px}
  .hero-line{justify-content:center;gap:10px;flex-wrap:wrap}
  .hero-small{font-size:30px}
  .hero-small .outline{-webkit-text-stroke-width:1.5px}
  .hero-big{font-size:64px}
  .hero-portfolio{font-size:64px;-webkit-text-stroke-width:1.5px}
  .hero-name{font-size:32px}
  .hero-photo{width:min(400px,100%);margin:16px 0 0}
  .deco-star.hero-star{width:220px;left:-80px!important;top:120px!important}

  .band .inner{padding:0 20px 40px}
  .band h2{font-size:clamp(40px,13vw,56px);line-height:.75;margin-top:-8px;margin-bottom:28px;white-space:nowrap}
  .band p{font-size:18px;line-height:1.35}
  .band p+p{margin-top:18px}
  .band--why{margin-top:40px}
  .bands .deco-star{display:none}

  .edu{padding:40px 20px 0}
  .edu h2{font-size:48px;margin-top:0}
  .edu .l1,.edu .l2{font-size:22px}
  .edu .l3{font-size:20px}
  .edu-blocks{position:static;flex-direction:row;gap:12px;margin-top:24px;justify-content:flex-end;margin-right:-20px}
  .edu-blocks span{width:40px;height:34px}
  .skills{padding:40px 20px 56px}
  .skills ul{flex-wrap:wrap;justify-content:center;gap:10px 22px!important;padding:0!important;margin:0 0 10px!important}
  .skills li{width:auto!important}
  .sk-sb32,.sk-r32,.sk-l32{font-size:20px}.sk-sb36{font-size:22px}.sk-b40{font-size:26px}

  .recent{padding-top:40px;min-height:0;background:linear-gradient(180deg,transparent 300px,var(--ink-2) 300px)}
  .recent .stars-bg{width:220%;left:-60%;top:0}
  .recent h2,.more h2{font-size:44px;padding:0 20px}
  .cards{flex-direction:column;align-items:center;padding:24px 20px 0}
  .card{width:100%;max-width:400px;aspect-ratio:auto;padding:32px 24px;gap:24px}
  .card p{margin-top:14px}
  .more{padding-top:72px}
  .more-wrap{padding:28px 20px 56px}
  .works-grid{grid-template-columns:minmax(0,409px);row-gap:20px}
  .work .ov{opacity:1;background:linear-gradient(0deg,rgba(0,0,0,.85) 0%,rgba(0,0,0,.55) 45%,transparent 75%)}

  .site-footer{height:auto}
  .site-footer .inner{flex-direction:column;padding:0 20px 44px;gap:8px}
  .site-footer h2{font-size:52px;margin-top:-12px}
  .site-footer .thanks p{font-size:18px}
  .site-footer.dark .thanks p+p{padding-left:0}
  .contact-list{padding-top:20px;gap:16px}
  .contact-list a{font-size:19px;gap:16px}
  .contact-list svg{width:26px;height:26px}
  .contact-list li:first-child svg{width:24px;height:24px;margin:0 1px}

  .page-works main{padding:36px 20px 56px}
  .resume{padding:36px 16px 64px}

  .contact-stage{margin-top:0;padding:40px 16px 60px;min-height:0;background:linear-gradient(180deg,transparent 160px,var(--green-900) 160px)}
  .contact-stage .stars-bg{width:200%;left:-50%;top:-60px}
  .glass{padding:20px 16px 24px}
  .glass h1{font-size:40px}
  .contact-cols{flex-direction:column;align-items:stretch;width:100%}
  .form-card{width:100%}
  .side-cards{width:100%;margin-top:0;flex-direction:row;flex-wrap:wrap}
  .side-cards .panel{flex:1 1 200px}

  .cs-head{padding:36px 20px;gap:24px}
  .back-bar{padding:16px 20px 0}
  .back-bar + .cs-head{padding-top:20px}
  .cs-hero{border-radius:12px;border-width:2px}
  .ov-band{flex-direction:column;padding:24px 16px}
  .ov-card{flex:none;padding:22px 24px 28px;min-height:0;border-radius:20px}
  .ov-card h2{margin-bottom:18px}
  .ov-card p{line-height:1.4}
  .ov-card.goals{padding-top:22px}

  .feature{padding:48px 20px}
  .feature p{margin-top:16px}
  .feature img{margin-top:28px}

  .sr-problems{padding:40px 20px 44px}
  .sr-problems h2{margin-bottom:24px}
  .bullets{padding:0;gap:16px}
  .bullets li{line-height:1.5}
  .bullets li::before{margin-top:7px}
  .sr-solutions{padding:0 20px}
  .sr-solutions h2{margin-bottom:24px}
  .sr-phones{gap:20px}
  .sr-phones img{width:calc(50% - 10px);max-width:276px}
  .sr-phones img:last-child{width:calc(50% - 10px)}

  .process{padding:40px 20px}
  .principle{padding:36px 20px;min-height:0}
  .principle p{line-height:1.45!important}
  .principle h3{line-height:1.2}

  .tiles{flex-direction:column}
  .tile.t1,.tile.t2,.tile.t3{flex:none;height:240px}
  .m-text{padding:56px 20px 48px}
  .m-text h2,.m-type h2{margin-bottom:24px}
  .m-text p,.m-type p{line-height:1.7}
  .swatches{gap:28px 40px;margin-top:40px}
  .swatch,.swatch i{width:110px}.swatch i{height:160px}
  .swatch .mono{font-size:19px}
  .type-cols{flex-direction:column}
  .type-cols > div{width:auto}
  .type-block{padding:48px 20px 72px}
  .m-type{padding:48px 20px}
  .m-mockups .mono{font-size:16px;top:6px}
  .proposal{padding:32px 12px 56px}
}

/* hero heading wrapper */
.hero-h1{display:flex;flex-direction:column;align-items:center;gap:calc(28 * var(--u));width:100%;font-weight:inherit}
@media (max-width:760px){.hero-h1{gap:10px}}

/* =========================================================
   Motion (enhanced by js/main.js; everything stays visible without JS)
   ========================================================= */
.js body{opacity:0;transition:opacity .45s ease}
.js body.is-loaded{opacity:1}
.js body.is-leaving{opacity:0;transition-duration:.25s}

/* scroll reveal */
.js .reveal{opacity:0;transform:translateY(32px);transition:opacity .8s cubic-bezier(.2,.7,.2,1),transform .8s cubic-bezier(.2,.7,.2,1);transition-delay:var(--d,0s);will-change:opacity,transform}
.js .reveal.reveal--fade{transform:none}
.js .reveal.reveal--zoom{transform:scale(.96)}
.js .reveal.reveal--left{transform:translateX(-36px)}
.js .reveal.reveal--right{transform:translateX(36px)}
.js .reveal.in{opacity:1;transform:none}

/* hero intro */
@keyframes rise{from{opacity:0;transform:translateY(40px)}to{opacity:1;transform:none}}
@keyframes popIn{from{opacity:0;transform:scale(.9) rotate(-2deg)}to{opacity:1;transform:none}}
@keyframes drawStroke{from{-webkit-text-stroke-color:transparent;letter-spacing:.06em;opacity:0}to{letter-spacing:-.01em;opacity:1}}
.js .hero .hero-line,.js .hero .hero-portfolio,.js .hero .hero-name,.js .hero .hero-btns,.js .hero .hero-photo{opacity:0}
.js body.is-loaded .hero .hero-line{animation:rise .9s cubic-bezier(.2,.7,.2,1) .1s both}
.js body.is-loaded .hero .hero-portfolio{animation:drawStroke 1.2s cubic-bezier(.2,.7,.2,1) .35s both}
.js body.is-loaded .hero .hero-name{animation:rise .8s cubic-bezier(.2,.7,.2,1) .6s both}
.js body.is-loaded .hero .hero-btns{animation:rise .8s cubic-bezier(.2,.7,.2,1) .75s both}
.js body.is-loaded .hero .hero-photo{animation:popIn 1.1s cubic-bezier(.2,.7,.2,1) .3s both}

/* slow drifting decorative stars */
@keyframes spinSlow{to{transform:rotate(360deg)}}
.deco-star polygon{transform-origin:50% 50%;transform-box:fill-box;animation:spinSlow 90s linear infinite}
.parallax{will-change:transform}

/* nav underline */
.nav a{position:relative}
.nav a::after{content:"";position:absolute;left:17px;right:17px;bottom:-4px;height:2px;background:var(--green-500);transform:scaleX(0);transform-origin:left;transition:transform .3s ease}
.nav a:hover::after,.nav a[aria-current="page"]::after{transform:scaleX(1)}
@media (max-width:760px){.nav a::after{display:none}}

/* images fade in once loaded */
.js img.fade-img{opacity:0;transition:opacity .6s ease}
.js img.fade-img.loaded{opacity:1}

/* scroll progress bar on case studies */
.progress{position:fixed;left:0;top:0;height:3px;width:100%;background:var(--green-500);transform:scaleX(0);transform-origin:left;z-index:60;pointer-events:none}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .js body,.js body.is-leaving{opacity:1;transition:none}
  .js .reveal,.js img.fade-img{opacity:1!important;transform:none!important;transition:none!important}
  .js .hero .hero-line,.js .hero .hero-portfolio,.js .hero .hero-name,.js .hero .hero-btns,.js .hero .hero-photo{opacity:1;animation:none!important}
  .deco-star polygon{animation:none}
  .header-wrap,.btn,.work img{transition:none}
  .btn:hover{transform:none}
  .progress{display:none}
}
