/* Sharon · portfolio
   The case-study markup is generated from the Figma file (Senior Portfolio, iVWSOHMp2MVzliOq2EOA2u):
   every block keeps Figma's exact size, spacing and type, so each layout is a fixed-width "stage"
   that is scaled to the screen (desktop stage 1120px, mobile stage 390px). See DEV-NOTES.md. */
:root{--zd:1;--zm:1;--bg:#f7f7f7;--ink:#111;--line:#d0d0d0}
*{box-sizing:border-box}
html,body{margin:0;background:var(--bg);color:var(--ink);overflow-x:clip}
body{font-family:'Poppins',system-ui,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility}
a{color:inherit}
img{display:block;max-width:none}
p,h2{margin:0;font:inherit}
.n{position:relative;box-sizing:border-box}
.t{position:relative;margin:0;font-family:'Poppins',sans-serif;overflow-wrap:normal}
.t a{color:inherit;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:2px}

/* views (hash routing) */
.view{display:none}
.view.on{display:block}

/* stages */
.desk{display:block}
.mob{display:none}
.stage-d{width:1120px;margin:0 auto;zoom:var(--zd)}
.root-d{width:1440px;margin-left:-160px;display:flex;flex-direction:column;align-items:flex-start}
.stage-m{width:390px;margin:0 auto;zoom:var(--zm)}
.root-m{width:390px;display:flex;flex-direction:column;align-items:center}
@media (max-width:959px){
  .desk{display:none}
  .mob{display:block}
}

/* full-bleed dark sections */
.fb{box-shadow:0 0 0 100vmax var(--fb);clip-path:inset(0 -100vmax)}

/* header */
.hd{position:fixed;top:0;left:0;right:0;z-index:50;background:#fff;transition:box-shadow .2s ease-out}
.hd.scrolled{box-shadow:0 2px 12px rgba(17,17,17,.06)}
.hd-in{zoom:var(--zd);width:1040px;height:55px;margin:0 auto;display:flex;align-items:center;justify-content:space-between}
.brand{font-size:16px;line-height:24px;text-decoration:none;color:var(--ink)}
.nav{display:flex;gap:32px}
.nav a{font-size:16px;line-height:26px;text-decoration:none;color:var(--ink);padding:0}
.hd a{transition:color .15s ease-out}
.hd a:hover{color:#8a8a8a}
.hd a,.hd a:hover,.hd a:focus,.hd a:active,.hd a:visited{text-decoration:none!important;border-bottom:0!important;box-shadow:none!important}
.menu-btn{display:none;background:none;border:0;padding:10px 4px;margin:0;cursor:pointer;width:31px;height:44px;display:none;align-items:center;justify-content:center}
.menu-btn svg{width:24px;height:24px;display:block}
.menu-btn .i-close{display:none}
.menu-btn[aria-expanded="true"] .i-open{display:none}
.menu-btn[aria-expanded="true"] .i-close{display:block}
@media (max-width:959px){
  .hd-in{zoom:var(--zm);width:350px;height:56px}
  .nav{display:none}
  .menu-btn{display:block}
}

/* mobile menu (Figma: "… — mobile menu (open)") */
.mmenu{display:none;position:fixed;left:0;right:0;bottom:0;z-index:49;background:var(--bg);overflow:auto}
.mmenu.open{display:block}
.mmenu-in{width:390px;margin:0 auto;zoom:var(--zm)}
.mmenu-in .t[style*="uppercase"]{color:#6e6e76!important}
.mmenu .cur{background:#ffffff}
.mmenu [data-cs]{cursor:pointer}

/* home: cover hover + buttons */
.cover-h{opacity:0;transition:opacity .25s ease-out;pointer-events:none}
.n:has(> .clickarea):hover .cover-h{opacity:1}
.clickarea{display:block;z-index:3;cursor:pointer}
.vcs{text-decoration:none;cursor:pointer;z-index:4;transition:background .15s}
.vcs:hover{background:#111!important}
.vcs:hover .t{color:#fff!important}
.item[data-href]{cursor:pointer}

/* interactive images (tabs, steps) */
.inter .layer{position:absolute;overflow:hidden}
.inter .layer img{opacity:0;transition:opacity .18s ease-out;pointer-events:none}
.inter .layer img.on{opacity:1}
.hot{position:absolute;background:transparent;border:0;padding:0;margin:0;cursor:pointer;z-index:2}
.hot:focus-visible{outline:2px solid #2f6bff;outline-offset:2px}
[data-tryit]{cursor:pointer}

/* horizontal carousels (mobile) */
.hscroll{scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;scrollbar-width:none;overscroll-behavior-x:contain}
.hscroll::-webkit-scrollbar{display:none}
.hscroll > *{scroll-snap-align:start}
.hero-sc{scroll-snap-type:none}
.dots{display:flex;justify-content:center;align-items:center;gap:8px}
.dots i{display:block;width:8px;height:8px;border-radius:50%;background:#c7c9cf;transition:background .2s}
.dots i.on{background:#111}
/* Selected work cards (Home) */
.selwork h3.t{margin:0}
.sw-card img{display:block;object-fit:cover}
/* ---- Hover rules (Nov 16) ---- */
/* text links: fade to #8A8A8A */
[data-contact] a,#mmenu a{transition:color .15s ease-out}
[data-contact] a:hover,#mmenu a:hover{color:#8a8a8a}
/* link on dark: fade to 60% */
a.lk-dark{transition:opacity .15s ease-out}
a.lk-dark:hover{opacity:.6}
/* tabs, steps and click-through mockups: 7% layer (black on light, white on dark); selected tab doesn't change */
.hot{transition:background-color .2s ease-out}
.hot:hover{background:rgba(0,0,0,.07)}
.hot.dk:hover{background:rgba(255,255,255,.07)}
.hot.cur:hover{background:transparent}
/* clickable "Try it" pill */
.tryit{cursor:pointer;transition:box-shadow .2s ease-out}
.tryit:hover{box-shadow:inset 0 0 0 999px rgba(0,0,0,.07)}

/* ---- Nov 17: Home items v3 — Figma "Home card v3 / …" ----
   No card: cover (tint r16, work on it) + title 20 Medium + "Read case study".
   Hover (desktop): black 7% overlay on the cover only + link turns #8A8A8A. No movement, no shadow. */
.sw-v2{gap:0!important;background:none;cursor:pointer}
.sw-v2 .sw-cover{position:relative;width:100%;flex-shrink:0;overflow:hidden;border-radius:16px}
.sw-v2 .sw-cover img{width:100%;height:100%;display:block}
.sw-v2 .sw-cover::after{content:"";position:absolute;inset:0;background:#000;opacity:0;transition:opacity .2s ease-out;pointer-events:none}
.sw-v2 > div:not(.sw-cover){width:auto!important;align-self:stretch;margin:16px 0 0}
.sw-v2 h3.t{width:auto!important}
.sw-link{display:block;margin:8px 0 0;font-size:16px;line-height:26px;font-weight:400;color:#111;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:2px;transition:color .2s ease-out}
.desk .selwork .sw-v2 .sw-link{margin-top:auto;padding-top:8px}
@media (hover:hover){
  .sw-v2:hover .sw-cover::after{opacity:.07}
  .sw-v2:hover .sw-link{color:#8a8a8a}
}
/* mobile hero slides: the work sits on the tint (Nov 17). DS slides carry their own outlined white surface in the image */
.hslide{border-radius:8px;box-shadow:none}
/* mobile "Project details" accordion (closed by default) */
details.pd{flex-shrink:0;width:348px;border-top:1px solid #e4e5ec;border-bottom:1px solid #e4e5ec}
details.pd summary{list-style:none;display:flex;justify-content:space-between;align-items:center;padding:18px 0;cursor:pointer;font-size:12px;font-weight:500;line-height:18px;letter-spacing:1.2px;text-transform:uppercase;color:#111}
details.pd summary::-webkit-details-marker{display:none}
details.pd summary i{font-style:normal;font-size:18px;line-height:27px;font-weight:400;letter-spacing:0;width:13px;text-align:center}
details.pd summary i::before{content:"+"}
details.pd[open] summary i::before{content:"\2212"}
details.pd .pd-body{padding-bottom:24px}

/* comparison-tool mockup: no darkening on hover (Nov 16) */
.layer.steps .hot:hover{background:transparent}

/* ==== Interaction rules — hover & press (Nov 17, Figma "Interaction rules — hover & press (current, Nov 17)") ====
   One rule per kind of element. 0.15s ease-out. Phones: no hover, press only.
   Press and keyboard focus share one accent: 1px #8FADF2. */
:root{--acc:#8fadf2}
/* logo: never changes */
.hd a.brand,.hd a.brand:hover,.hd a.brand:active,.hd a.brand:focus{color:#111!important;-webkit-tap-highlight-color:transparent}
/* header + text links: hover grey; press keeps the hover look for links, header links stay #111 */
.hd a,[data-contact] a,#mmenu a,.sw-link{transition:color .15s ease-out;-webkit-tap-highlight-color:transparent}
.hd .nav a:active{color:#111!important}
a.lk-dark{transition:opacity .15s ease-out}
/* Home cards: the cover reacts to the cover, the link to the link */
.sw-v2 .sw-cover{border-radius:8px}
.sw-v2 .sw-cover::after{transition:opacity .15s ease-out}
.sw-v2 .sw-cover::before{content:"";position:absolute;inset:0;border-radius:8px;box-shadow:inset 0 0 0 1px var(--acc);opacity:0;transition:opacity .1s ease-out;pointer-events:none;z-index:1}
@media (hover:hover){
  .sw-v2:hover .sw-cover::after{opacity:0}
  .sw-v2:hover .sw-link{color:#111}
  .sw-v2 .sw-cover:hover::after{opacity:.07}
  .sw-v2 .sw-link:hover{color:#8a8a8a}
}
.sw-v2 .sw-cover:active::before,.sw-v2.pressed .sw-cover::before{opacity:1}
/* tabs / steps: no generic darkening; each kind gets its own rule */
.hot{transition:background-color .15s ease-out}
.hot:hover,.hot.dk:hover{background:transparent}
.hot.step .stp,.hot.thm .chip{position:absolute;inset:0;display:flex;align-items:center;font-family:'Poppins',sans-serif;font-size:12px;line-height:18px;pointer-events:none}
/* VT iterations (light): unselected = #6E6E76 (was #A4A4A4, read as disabled); hover = #111; selected shows the image */
.hot.step .stp{gap:6px;background:var(--bg);color:#6e6e76;transition:color .15s ease-out;white-space:nowrap}
.hot.step .stp i{display:block;width:10px;height:10px;border-radius:50%;box-sizing:border-box;border:2px solid #6e6e76;background:#fff;transition:border-color .15s ease-out}
.hot.step.cur .stp{display:none}
@media (hover:hover){.hot.step:hover .stp{color:#111}.hot.step:hover .stp i{border-color:#111}}
/* DS theme tabs (dark): hover = chip lighter (+15% white) + white text; selected unchanged */
.hot.thm .chip{opacity:0;gap:5px;padding:6px 8px;border-radius:4px;background:#45454a;color:#fff;transition:opacity .15s ease-out;white-space:nowrap}
.hot.thm .chip i{display:block;width:10px;height:10px;border-radius:50%;flex-shrink:0}
@media (hover:hover){.hot.thm:not(.cur):hover .chip{opacity:1}}
/* comparison tool: only the partner chips are clickable */
.hot.chips{border-radius:4px}
@media (hover:hover){.hot.chips:hover{background:rgba(0,0,0,.07)}}
/* "Try it" pill */
.tryit{transition:box-shadow .15s ease-out}
/* mobile menu row: press = white */
#mmenu [data-cs]{transition:background-color .15s ease-out;-webkit-tap-highlight-color:transparent}
#mmenu [data-cs]:active{background:#fff}
/* keyboard focus: one accent everywhere */
a:focus-visible,button:focus-visible,[data-href]:focus-visible,summary:focus-visible,.hot:focus-visible{outline:1px solid var(--acc)!important;outline-offset:2px;border-radius:4px}
a:focus:not(:focus-visible),button:focus:not(:focus-visible){outline:none}
/* touch screens: no hover states at all */
@media (hover:none){
  .hd a:hover,[data-contact] a:hover,#mmenu a:hover,.sw-link:hover{color:inherit}
  a.lk-dark:hover{opacity:1}
  .tryit:hover{box-shadow:none}
}

/* Benchmark examples accordion (mobile): same style as Project details (Nov 17) */
