/* ==========================================================================
   Anne Truong — Portfolio
   Bold/graphic, dark-tones-plus-pop-colors system, built from her own
   Smartly + ReachRobin brand assets.
   ========================================================================== */

:root{
  --bg:            #FFFDF9;
  --bg-soft:       #F7ECD9;
  --ink:           #241909;
  --ink-dim:       #6B5D48;
  --line:          rgba(36,25,9,0.14);

  --yellow:        #F3BA0C;
  --yellow-soft:   #F7CF56;
  --blue:          #3572FB;
  --blue-deep:     #08369B;
  --fuchsia:       #CC31F2;
  --green:         #28C345;
  --coral:         #FA855A;
  --sky:           #62C4DA;
  --tomato:        #C93638;
  --peach:         #FFDE96;
  --beige-1:       #FFFDF9;
  --honeydew:      #F6FFEA;

  --aquila:        #28C345;
  --smartly:       #3572FB;
  --rr:            #CC31F2;
  --human:         #FA855A;

  --radius:        22px;
  --font-display:  'Chonburi', serif;
  --font-body:     'Domine', serif;
}

*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; }
body{
  background:var(--bg);
  color:var(--ink);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.5;
  overflow-x:hidden;
  cursor:default;
}
body.locked{ overflow:hidden; height:100vh; }
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; }
section{ position:relative; }
button{ font-family:inherit; cursor:pointer; }

/* ---------- texture / grain ---------- */
.grain{
  position:fixed; inset:0; pointer-events:none; z-index:998;
  opacity:.05; mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* ---------- Lenis smooth scroll ---------- */
html.lenis, html.lenis body{ height:auto; }
.lenis.lenis-smooth{ scroll-behavior:auto !important; }
.lenis.lenis-stopped{ overflow:hidden; }

/* ---------- scroll-driven background morph ---------- */
.morph-bg{
  position:fixed; inset:0; z-index:-1; pointer-events:none;
  background:rgb(243,186,12); opacity:.05;
  transition:background 1.1s cubic-bezier(.23,1,.32,1);
}

/* ---------- section-level fade/rise transitions ---------- */
.section-fade{
  opacity:0; transform:translateY(46px);
  transition:opacity 1s cubic-bezier(.16,1,.3,1), transform 1s cubic-bezier(.16,1,.3,1);
}
.section-fade.section-in{ opacity:1; transform:translateY(0); }
@media(prefers-reduced-motion: reduce){
  .section-fade{ opacity:1; transform:none; transition:none; }
}

.cursor-dot{
  position:fixed; top:0; left:0; width:14px; height:14px; border-radius:50%;
  background:var(--coral); pointer-events:none; z-index:9999;
  transform:translate(-50%,-50%); transition:transform .12s ease, background .2s ease, width .2s ease, height .2s ease, opacity .15s ease;
  mix-blend-mode:difference; display:none;
}
@media(hover:hover) and (pointer:fine){ .cursor-dot{ display:block; } }

.cursor-spotlight{
  position:fixed; inset:0; pointer-events:none; z-index:1;
  background:radial-gradient(460px circle at var(--mx,50%) var(--my,50%), rgba(250,133,90,.22), rgba(98,196,218,.13) 45%, transparent 74%);
  transition:opacity .3s ease; opacity:0;
}
@media(hover:hover) and (pointer:fine){ .cursor-spotlight.active{ opacity:1; } }

/* ---------- preloader ---------- */
.preloader{
  position:fixed; inset:0; z-index:3000; background:var(--bg);
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  transition:opacity .6s ease, visibility .6s ease; filter:drop-shadow(0 0 12px rgba(255,255,255,.15));
}
.preloader.hide{ opacity:0; visibility:hidden; pointer-events:none; }
.crack{
  position:absolute; width:9%; aspect-ratio:1; background:var(--yellow);
  clip-path:polygon(50% 0%,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%);
  animation:rotate 6s infinite;
}
.crack2{ width:12%; background:var(--fuchsia); animation-delay:.3s; }
.crack3{ width:15%; background:var(--blue); animation-delay:.6s; }
.crack4{ width:18%; background:var(--yellow-soft); animation-delay:.9s; }
.crack5{ width:21%; background:var(--fuchsia); opacity:.6; animation-delay:1.2s; }
@keyframes rotate{ to{ rotate:360deg; } }
.preloader-label{
  position:absolute; bottom:14%; font-family:var(--font-body); font-weight:600;
  letter-spacing:.08em; color:var(--ink-dim); font-size:.85rem; text-transform:lowercase;
}

/* ---------- game menu (landing gate) ---------- */
.game-menu{
  position:fixed; inset:0; z-index:2900;
  display:flex; align-items:center; justify-content:center;
  overflow:hidden; color:#241909;
  transition:opacity .7s ease, visibility .7s ease;
}
.game-menu.hide{ opacity:0; visibility:hidden; pointer-events:none; }
.game-menu-bg{
  position:absolute; inset:0; z-index:0; overflow:hidden;
  background:linear-gradient(165deg, var(--beige-1) 0%, var(--peach) 58%, var(--coral) 130%);
}
.game-menu-video{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  opacity:.5; mix-blend-mode:multiply;
}
.game-menu-wash{
  position:absolute; inset:0;
  background:linear-gradient(100deg, rgba(255,253,249,.78) 0%, rgba(255,253,249,.3) 45%, rgba(255,253,249,0) 72%);
}

/* stage: sphere on the left (default small), content on the right */
.game-menu-stage{
  position:relative; z-index:2; width:100%; height:100%;
  display:flex; align-items:center; justify-content:flex-end;
  padding-right:8vw;
}
/* static, non-transformed hit region that WRAPS the visual sphere (not a
   sibling of it) — this is what JS listens on for hover. It only covers the
   left ~70% of the screen (not the menu column on the right), so moving the
   mouse over the chapter list always exits it and restores the menu. Because
   the visual piece is a normal descendant, moving the mouse onto it never
   counts as "leaving" the hit region, so nothing flickers while dragging or
   clicking a piece. The visual itself is position:fixed so its "centered"
   state is always measured against the real viewport, not this box. */
.game-menu-sphere-hit{
  position:absolute; left:0; top:0; right:30%; bottom:0; z-index:1;
}
.game-menu-sphere-visual{
  position:fixed; z-index:1500; left:6vw; top:50%;
  width:min(34vw, 420px); height:min(34vw, 420px);
  transform:translateY(-50%) scale(.62);
  transform-origin:center center;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:18px;
  transition:transform .7s cubic-bezier(.16,1,.3,1), left .7s cubic-bezier(.16,1,.3,1);
}
.game-menu-sphere-visual .stuffscene{ width:100%; height:100%; }
.game-menu-sphere-hint{
  font-family:var(--font-body); font-weight:600; letter-spacing:.06em; text-transform:uppercase;
  font-size:.7rem; color:rgba(36,25,9,.45); text-align:center;
  opacity:0; transition:opacity .4s ease;
}
.game-menu.sphere-active .game-menu-sphere-hint{ opacity:1; }

.game-menu-content{
  position:relative; z-index:2; width:min(46vw, 560px);
  display:flex; flex-direction:column; align-items:flex-end; text-align:right; gap:40px;
  transition:opacity .6s ease, transform .7s cubic-bezier(.16,1,.3,1);
}
.game-menu-titlewrap{ display:flex; flex-direction:column; align-items:flex-end; gap:8px; }
.game-menu-eyebrow{
  font-family:var(--font-body); font-weight:600; letter-spacing:.14em; text-transform:uppercase;
  font-size:.8rem; color:rgba(36,25,9,.55);
}
.game-menu-logo{
  width:min(28vw, 380px); height:auto; display:block;
  filter:drop-shadow(0 6px 18px rgba(36,25,9,.22));
}
.game-menu-list{ display:flex; flex-direction:column; align-items:flex-end; gap:14px; }
.game-menu-link{
  font-family:var(--font-display); font-weight:700; font-size:1.05rem; letter-spacing:.05em;
  text-transform:uppercase; color:rgba(36,25,9,.55); text-decoration:none;
  transition:color .25s ease, transform .25s ease; position:relative;
}
.game-menu-link:hover, .game-menu-link:focus-visible{ color:var(--tomato); transform:translateX(-4px); }
.game-menu-link.is-active{ color:var(--tomato); }
.game-menu-list:hover .game-menu-link{ color:rgba(36,25,9,.85); }
.game-menu-list:hover .game-menu-link:hover{ color:var(--tomato); }
.game-menu-foot{
  font-size:.76rem; color:rgba(36,25,9,.4); letter-spacing:.06em; margin-top:4px;
}

/* hover near the sphere: it zooms up and moves to center, content slides away */
.game-menu.sphere-active .game-menu-sphere-visual{
  left:50%; transform:translate(-50%,-50%) scale(1.35);
}
.game-menu.sphere-active .game-menu-content{
  opacity:0; transform:translateX(40px); pointer-events:none;
}

@media(max-width:820px){
  /* stack scrolls instead of forcing everything into one viewport height, and
     starts well below the fixed top-right contact links so the sphere never
     overlaps "lamanhtruong.work@gmail.com / LinkedIn" or the logo */
  .game-menu-stage{
    justify-content:flex-start; align-items:center; flex-direction:column; gap:24px;
    padding:calc(120px + env(safe-area-inset-top)) 6vw 40px;
    height:100%; overflow-y:auto; -webkit-overflow-scrolling:touch;
  }
  /* the sphere's pieces sit on a fixed-radius 3D sphere defined in JS (230px,
     independent of this box's own size), so on a small mobile box that
     radius massively exceeds the box's own bounds no matter what margin is
     set — CSS transform doesn't shrink the reserved layout space, only the
     visual render, so a negative margin here was actively making it worse.
     scale(.26) brings the visual spread inside the box's own footprint
     (box half-width ~66-75px on a phone; spread radius 270px * .26 ≈ 70px),
     so it can no longer spill into the title/logo below regardless of gap */
  .game-menu-sphere-hit{ position:static; inset:auto; }
  .game-menu-sphere-visual{ position:relative; left:auto; top:auto; transform:scale(.26); margin:0; }
  .game-menu.sphere-active .game-menu-sphere-visual{ left:auto; transform:scale(.62); }
  .game-menu-content{ width:100%; align-items:center; text-align:center; }
  .game-menu-titlewrap, .game-menu-list{ align-items:center; }
  .game-menu-wash{ background:rgba(255,253,249,.6); }
}
/* narrow phones: the fixed top-right contact links wrap onto their own line
   here (see .game-menu-contact below), so the stage needs even MORE
   clearance, not less — this used to be a smaller value than the rule above
   and silently undid the fix on exactly the devices that needed it most */
@media(max-width:480px){
  .game-menu-stage{ padding-top:calc(150px + env(safe-area-inset-top)); }
  .game-menu-sphere-visual{ transform:scale(.22); }
  .game-menu.sphere-active .game-menu-sphere-visual{ transform:scale(.56); }
}

/* ---------- reveal-on-scroll ---------- */
.reveal{ opacity:0; transform:translateY(28px); transition:opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in-view{ opacity:1; transform:translateY(0); }

/* ---------- type helpers ---------- */
.eyebrow{
  font-family:var(--font-body); font-weight:600; letter-spacing:.14em;
  text-transform:uppercase; font-size:.78rem; color:var(--ink-dim);
  margin-bottom:14px;
}
.eyebrow.center{ text-align:center; }
.center{ text-align:center; margin-left:auto; margin-right:auto; }

/* ---------- nav ---------- */
.nav{
  position:fixed; top:0; left:0; right:0; z-index:500;
  display:flex; align-items:center; justify-content:space-between;
  padding:22px 6vw; transition:background .3s ease;
}
.nav-brand{ display:flex; align-items:center; gap:16px; }
.nav-mark{
  display:inline-flex; align-items:center; border:0; background:none; padding:0;
  transition:opacity .2s ease, transform .2s ease;
}
.nav-mark:hover{ opacity:.75; transform:translateY(-1px); }
.nav-logo{ height:36px; width:auto; display:block; }
.nav-mark span{ color:var(--fuchsia); }
.nav-contact-mini{ display:flex; align-items:center; gap:14px; }
.nav-contact-mini a{ font-size:.78rem; font-weight:600; color:var(--ink-dim); }
.nav-contact-mini a:hover{ color:var(--ink); }
.nav.on-light .nav-contact-mini a{ color:rgba(36,25,9,.55); }
.nav.on-light .nav-contact-mini a:hover{ color:#241909; }
.nav-links{ display:flex; align-items:center; gap:34px; }
.nav-links a{
  font-weight:600; font-size:.92rem; display:flex; align-items:center; gap:8px;
  color:var(--ink-dim); transition:color .2s ease;
}
.nav-links a:hover{ color:var(--ink); }
.dot-ind{ width:7px; height:7px; border-radius:50%; display:inline-block; }
.dot-creative{ background:var(--fuchsia); }
.dot-numbers{ background:var(--blue); }
.dot-human{ background:var(--coral); }
.nav-cta{
  background:var(--ink); color:var(--bg) !important; padding:9px 18px;
  border-radius:100px; font-weight:700 !important;
}
.nav-toggle{ display:none; flex-direction:column; gap:5px; background:none; border:0; }
.nav-toggle span{ width:26px; height:2px; background:var(--ink); display:block; }

/* nav sitting over the beige hero, before scroll darkens it */
.nav.on-light .nav-links a{ color:rgba(36,25,18,.62); }
.nav.on-light .nav-links a:hover{ color:#241909; }
.nav.on-light .nav-cta{ background:#241909; color:var(--beige-1) !important; }
.nav.on-light .nav-toggle span{ background:#241909; }

/* ---------- hero / stuff scene ---------- */
.hero{
  min-height:100svh; display:flex; flex-direction:column; align-items:center; justify-content:center;
  padding:110px 6vw 50px; position:relative; overflow:hidden; gap:6px;
  background:linear-gradient(165deg, var(--beige-1) 0%, var(--peach) 58%, var(--coral) 130%);
  color:#241909;
}
.hero-flex{
  position:relative; z-index:3; width:100%; max-width:1320px; margin:0 auto;
  display:flex; align-items:center; justify-content:space-between; gap:40px;
}
.hero-left{ flex:1 1 480px; max-width:600px; }
.hero-right{ flex:1 1 440px; display:flex; justify-content:center; }
.hero-avatar-row{ display:flex; align-items:center; gap:14px; margin-bottom:18px; }
.hero-avatar{
  width:56px; height:56px; border-radius:50%; object-fit:cover; flex-shrink:0;
  border:3px solid var(--beige-1); box-shadow:0 0 0 3px rgba(36,25,9,.18), 0 8px 20px rgba(36,25,9,.25);
}
.hero-eyebrow{
  font-size:1.05rem; font-weight:700; letter-spacing:.04em; text-transform:none;
  color:rgba(36,25,9,.68); margin-bottom:0;
}
.hero-title{
  font-family:var(--font-display); font-weight:900; font-size:clamp(2.4rem,5.6vw,4.2rem);
  line-height:1.03; letter-spacing:-.02em; margin-bottom:18px; color:#241909;
}
.hero-title .highlight{
  background:linear-gradient(100deg, var(--tomato) 0%, var(--fuchsia) 50%, var(--blue-deep) 100%);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.hero-sub{ font-size:1.05rem; color:rgba(36,25,9,.68); max-width:460px; }
.hero-title-row{ display:flex; align-items:flex-start; gap:14px; }

.stuffscene{
  position:relative; width:min(46vw,560px); height:min(58vh,520px); z-index:2;
  perspective:1400px; touch-action:none; cursor:grab; margin:4px 0;
}
.stuffscene.grabbing{ cursor:grabbing; }
.stuff-orb{
  position:absolute; inset:0; transform-style:preserve-3d;
  will-change:transform;
}
.stuff-item{
  position:absolute; top:50%; left:50%; transform-style:preserve-3d;
  width:104px; margin:-52px 0 0 -52px; border-radius:16px; overflow:hidden;
  cursor:pointer; box-shadow:0 12px 26px rgba(36,25,9,.28);
  border:2px solid rgba(36,25,9,.14); background:var(--bg-soft);
  transition:box-shadow .25s ease, border-color .25s ease, filter .4s ease;
  filter:grayscale(1) brightness(.94);
}
.stuff-item:hover{
  border-color:#241909; box-shadow:0 16px 40px rgba(36,25,9,.4), 0 0 0 3px rgba(243,186,12,.4);
  filter:grayscale(0) brightness(1.04);
}
/* stays in color once opened */
.stuff-item.visited{ filter:grayscale(0); }
.stuff-item img{ width:100%; height:100%; aspect-ratio:1; object-fit:cover; pointer-events:none; }
.stuff-item .stuff-label{
  position:absolute; left:0; right:0; bottom:0; padding:6px 8px 7px;
  font-family:var(--font-display); font-weight:700; font-size:.66rem; line-height:1.15;
  background:linear-gradient(0deg, rgba(0,0,0,.82), transparent); color:#fff; pointer-events:none;
}
.stuff-item.tile{ aspect-ratio:1; display:flex; align-items:center; justify-content:center; padding:10px; text-align:center; }
.stuff-item.tile .stuff-label{ position:static; background:none; padding:0; font-size:.72rem; }
.stuff-item.tile .tile-icon{ font-size:1.6rem; margin-bottom:4px; }

.hero-actions{ display:flex; gap:16px; flex-wrap:wrap; position:relative; z-index:3; margin-top:30px; }
.hero-actions-center{ justify-content:center; margin-top:8px; }

.btn{
  font-family:var(--font-body); font-weight:700; font-size:.92rem;
  padding:14px 26px; border-radius:100px; display:inline-flex; align-items:center; gap:8px;
  transition:transform .25s cubic-bezier(.2,.9,.3,1.3), background .2s ease, color .2s ease, border-color .2s ease;
  border:1.5px solid transparent;
}
.btn:hover{ transform:translateY(-3px); }
.btn-solid{ background:var(--yellow); color:#241909; }
.btn-solid:hover{ background:var(--ink); }
.btn-line{ border-color:var(--line); color:var(--ink); }
.btn-line:hover{ border-color:var(--ink); }
.hero .btn-solid{ background:#241909; color:var(--beige-1); }
.hero .btn-solid:hover{ background:var(--tomato); color:#fff; }
.hero .btn-line{ border-color:rgba(36,25,9,.3); color:#241909; }
.hero .btn-line:hover{ border-color:#241909; }

.scroll-cue{
  position:absolute; bottom:22px; left:50%; transform:translateX(-50%); z-index:3;
  width:26px; height:42px; border:2px solid var(--line); border-radius:100px;
}
.scroll-cue span{
  position:absolute; top:8px; left:50%; width:4px; height:8px; background:var(--yellow);
  border-radius:100px; transform:translateX(-50%); animation:scrollcue 1.6s ease infinite;
}
.hero .scroll-cue{ border-color:rgba(36,25,9,.3); }
.hero .scroll-cue span{ background:#241909; }
@keyframes scrollcue{ 0%{ opacity:1; top:8px;} 70%{ opacity:0; top:22px;} 100%{ opacity:0; top:8px;} }

/* ---------- ambient background blobs (beige base, hovering hue) ---------- */
.ambient-bg{ position:absolute; inset:0; z-index:0; overflow:hidden; }
.blob{ position:absolute; border-radius:50%; filter:blur(80px); opacity:.55; mix-blend-mode:multiply; will-change:transform; }
.blob-a{ width:40vw; height:40vw; background:var(--coral); top:-10%; left:2%; animation:driftA 22s ease-in-out infinite; }
.blob-b{ width:32vw; height:32vw; background:var(--sky); bottom:-12%; right:4%; animation:driftB 25s ease-in-out infinite; opacity:.45; }
.blob-c{ width:26vw; height:26vw; background:var(--tomato); top:10%; right:16%; animation:driftC 19s ease-in-out infinite; opacity:.3; }
.blob-d{ width:34vw; height:34vw; background:var(--peach); bottom:-6%; left:-8%; animation:driftD 24s ease-in-out infinite; opacity:.6; }
.blob-e{ width:22vw; height:22vw; background:var(--honeydew); top:38%; left:38%; animation:driftE 28s ease-in-out infinite; opacity:.5; }
@keyframes driftA{ 0%,100%{ transform:translate(0,0) scale(1);} 50%{ transform:translate(6%,8%) scale(1.15);} }
@keyframes driftB{ 0%,100%{ transform:translate(0,0) scale(1);} 50%{ transform:translate(-7%,-6%) scale(1.1);} }
@keyframes driftC{ 0%,100%{ transform:translate(0,0) scale(1);} 50%{ transform:translate(4%,-8%) scale(.9);} }
@keyframes driftD{ 0%,100%{ transform:translate(0,0) scale(1);} 50%{ transform:translate(-5%,6%) scale(1.12);} }
@keyframes driftE{ 0%,100%{ transform:translate(0,0) scale(1);} 50%{ transform:translate(8%,4%) scale(1.2);} }
.ambient-vignette{
  position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(255,253,249,0) 0%, rgba(255,253,249,0) 72%, var(--bg) 100%);
}
@media(prefers-reduced-motion:reduce){ .blob{ animation:none !important; } }

/* ---------- item modal ---------- */
.stuff-modal{
  position:fixed; inset:0; z-index:3100; display:flex; align-items:center; justify-content:center;
  background:rgba(5,6,8,.72); backdrop-filter:blur(6px);
  opacity:0; visibility:hidden; transition:opacity .3s ease, visibility .3s ease; padding:6vw;
}
.stuff-modal.open{ opacity:1; visibility:visible; }
.stuff-modal-card{
  background:var(--bg-soft); border:1px solid var(--line); border-radius:28px;
  max-width:480px; width:100%; max-height:86vh; overflow-y:auto; padding:34px 30px;
  position:relative; transform:translateY(24px) scale(.97); transition:transform .35s cubic-bezier(.2,.8,.2,1.1);
  box-shadow:0 30px 70px rgba(0,0,0,.5);
}
.stuff-modal.open .stuff-modal-card{ transform:translateY(0) scale(1); }
.stuff-modal-close{
  position:absolute; top:16px; right:16px; width:36px; height:36px; border-radius:50%;
  background:rgba(36,25,9,.08); border:1px solid var(--line); color:var(--ink); font-size:1.3rem;
  line-height:1; display:flex; align-items:center; justify-content:center;
}
.stuff-modal-close:hover{ background:var(--ink); color:var(--bg); }
.stuff-modal-tag{
  display:inline-block; font-family:var(--font-body); font-weight:700; font-size:.72rem;
  letter-spacing:.08em; text-transform:uppercase; padding:6px 12px; border-radius:100px; margin-bottom:16px;
}
.tag-creative{ background:rgba(204,49,242,.16); color:var(--fuchsia); }
.tag-numbers{ background:rgba(53,114,251,.18); color:#7ea3ff; }
.tag-human{ background:rgba(250,133,90,.18); color:var(--coral); }
.stuff-modal-media{ width:100%; border-radius:16px; overflow:hidden; margin-bottom:18px; background:var(--bg); }
.stuff-modal-media img{ width:100%; object-fit:cover; }
.stuff-modal-title{ font-family:var(--font-display); font-weight:900; font-size:1.6rem; margin-bottom:12px; }
.stuff-modal-body{ color:var(--ink-dim); font-size:.98rem; line-height:1.6; margin-bottom:16px; }
.stuff-modal-stats{ display:flex; flex-wrap:wrap; gap:8px; margin-bottom:20px; }
.stuff-modal-stats span{
  font-family:var(--font-display); font-weight:700; font-size:.78rem; padding:7px 12px;
  border-radius:100px; background:rgba(36,25,9,.06); border:1px solid var(--line); color:var(--ink);
}
.stuff-modal-link{ font-weight:700; font-size:.9rem; color:var(--yellow-soft); }
.stuff-modal-link:hover{ text-decoration:underline; }

/* ---------- marquee ---------- */
.marquee-wrap{
  border-top:1.5px solid var(--line); border-bottom:1.5px solid var(--line);
  background:var(--bg-soft); padding:20px 0; overflow:hidden; position:relative; z-index:2;
}
.marquee-track{
  display:inline-flex; gap:22px; white-space:nowrap; align-items:center;
  animation:marquee 34s linear infinite; font-family:var(--font-display); font-weight:700; font-size:1.02rem;
}
.marquee-track span{ color:var(--ink); }
.marquee-track .dot{ color:var(--fuchsia); font-size:.5rem; }
@keyframes marquee{ from{ transform:translateX(0);} to{ transform:translateX(-50%);} }

/* ---------- scroll intro ---------- */
.scroll-intro{
  padding:110px 6vw; max-width:1180px; margin:0 auto; min-height:60vh;
  display:flex; align-items:center; gap:64px;
}
.scroll-intro-photo{ flex:0 0 auto; width:min(34vw,340px); }
.scroll-intro-photo img{ width:100%; border-radius:56px; box-shadow:0 30px 60px rgba(36,25,9,.18); }
.scroll-intro-copy{ flex:1 1 480px; text-align:left; }
.scroll-intro-copy .eyebrow{ margin-bottom:18px; }
.scroll-intro-text{ font-size:clamp(1.3rem,2.6vw,1.9rem); font-weight:500; color:var(--ink); line-height:1.5; }
.scroll-intro-text strong{ color:var(--tomato); font-weight:700; }
.scroll-intro-actions{ display:flex; gap:16px; flex-wrap:wrap; margin-top:34px; }
@media(max-width:980px){
  .scroll-intro{ flex-direction:column; text-align:center; padding:90px 6vw 60px; gap:34px; min-height:auto; }
  .scroll-intro-copy{ text-align:center; }
  .scroll-intro-photo{ width:min(60vw,280px); }
  .scroll-intro-actions{ justify-content:center; }
}

/* ---------- page footer (subpages) ---------- */
.page-foot{
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:16px;
  padding:44px 6vw; max-width:1180px; margin:0 auto;
  border-top:1px solid var(--line);
  font-family:var(--font-body); font-size:.85rem; color:var(--ink-dim);
}
.page-foot-back, .page-foot-contact{
  color:var(--ink); text-decoration:none; font-weight:600;
  transition:color .2s ease, transform .2s ease; display:inline-block;
}
.page-foot-back:hover{ color:var(--tomato); transform:translateX(-3px); }
.page-foot-contact:hover{ color:var(--tomato); transform:translateX(3px); }
@media(max-width:600px){
  .page-foot{ flex-direction:column; text-align:center; gap:10px; }
}

/* ---------- live website preview widget ---------- */
.site-preview{ display:block; margin-top:18px; border-radius:16px; overflow:hidden; border:1px solid var(--line); }
.browser-chrome{
  display:flex; align-items:center; gap:6px; padding:9px 12px; background:rgba(36,25,9,.06);
  border-bottom:1px solid var(--line);
}
.browser-dot{ width:8px; height:8px; border-radius:50%; background:rgba(36,25,9,.22); }
.browser-url{
  margin-left:8px; font-size:.74rem; font-weight:600; color:var(--ink-dim); font-family:var(--font-body);
  background:rgba(36,25,9,.05); padding:3px 10px; border-radius:100px;
}
.site-frame{
  display:block; position:relative; width:100%; aspect-ratio:16/9; overflow:hidden;
  background:#fff; transition:transform .4s ease; border-radius:0 0 12px 12px;
}
.site-preview:hover .site-frame{ transform:scale(1.015); }
.site-frame iframe{
  position:absolute; top:0; left:0; width:1600px; height:900px; border:0;
  transform-origin:top left; pointer-events:none; background:#fff;
}
.site-frame-overlay{
  position:absolute; inset:0; display:flex; align-items:flex-end; justify-content:flex-end;
  padding:16px; background:linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.35) 100%);
  opacity:0; transition:opacity .25s ease;
}
.site-frame:hover .site-frame-overlay, .site-frame:focus-within .site-frame-overlay{ opacity:1; }
.site-preview-cta{
  font-family:var(--font-display); font-weight:800; font-size:.88rem; letter-spacing:.02em;
  padding:11px 22px; border-radius:100px; background:#241909; color:var(--beige-1);
  white-space:nowrap;
}

/* ---------- interactive demo gallery: coded product walkthroughs ---------- */
.demo-strip{
  display:flex; gap:30px; overflow-x:auto; padding-bottom:10px;
  scrollbar-width:none; -ms-overflow-style:none;
}
.demo-strip::-webkit-scrollbar{ display:none; height:0; }
.demo-card{ flex:0 0 560px; }
.demo-card .site-preview{ margin-top:0; box-shadow:0 18px 36px rgba(36,25,9,.14); }
.demo-card-title{
  margin-top:12px; font-family:var(--font-display); font-weight:700; font-size:1rem; color:var(--ink);
}
@media(max-width:900px){ .demo-card{ flex-basis:88%; } }

/* ---------- carousels with custom slide arrows ---------- */
.carousel-block{ margin-bottom:44px; }
.carousel-wrap{ display:flex; align-items:center; gap:6px; }
.carousel-track{ flex:1 1 auto; scroll-behavior:smooth; }
.carousel-arrow.cta{ flex-shrink:0; }

/* arrow button, adapted from Anne's uiverse snippet to the site palette */
.cta{
  position:relative; margin:0; padding:12px 16px; border:none; background:none; cursor:pointer;
  transition:all .2s ease;
}
.cta:before{
  content:""; position:absolute; top:0; left:0; display:block; border-radius:50px;
  background:rgba(98,196,218,.35); width:42px; height:42px; transition:all .3s ease; z-index:0;
}
.cta span{
  position:relative; font-family:var(--font-body); font-size:0; letter-spacing:.05em; color:#1a4650;
}
.cta svg{
  position:relative; margin-left:0; fill:none; stroke-linecap:round; stroke-linejoin:round;
  stroke:#1a4650; stroke-width:2; transition:all .3s ease; z-index:1;
}
.cta:hover:before{ width:64px; background:var(--sky); }
.cta:hover svg{ transform:translateX(2px); }
.cta:active{ transform:scale(.95); }
.carousel-prev svg{ margin-right:0; }

@media(max-width:720px){
  .carousel-arrow{ display:none; }
}

/* ---------- "Hello!" gradient CTA button ---------- */
.hello-btn{
  position:relative; display:inline-flex; align-items:center; justify-content:center;
  text-decoration:none; padding:15px 30px; min-width:150px; height:52px;
  font-weight:700; font-size:.95rem; font-family:var(--font-display); cursor:pointer; border:none;
  overflow:hidden; background:linear-gradient(-45deg, var(--coral) 0%, var(--tomato) 100%);
  transition:box-shadow .3s ease, transform .2s ease;
}
.hb-text{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  color:#fff !important; pointer-events:none; transition:transform .32s cubic-bezier(.215,.61,.355,1);
}
.hb-default{ transform:translateY(0); }
.hb-hover{ transform:translateY(-100%); }
.hello-btn:hover .hb-default{ transform:translateY(100%); }
.hello-btn:hover .hb-hover{ transform:translateY(0); }
.hello-btn:before, .hello-btn:after{
  content:""; position:absolute; width:18px; height:18px; pointer-events:none;
  transition:all .3s cubic-bezier(.215,.61,.355,1);
}
.hello-btn:before{ top:0; left:0; border-top:2px solid rgba(255,255,255,.8); border-left:2px solid rgba(255,255,255,.8); }
.hello-btn:after{ bottom:0; right:0; border-bottom:2px solid rgba(255,255,255,.8); border-right:2px solid rgba(255,255,255,.8); }
.hello-btn:hover{ box-shadow:0 0 24px rgba(250,133,90,.4), 0 0 24px rgba(201,54,56,.4); }
.hello-btn:hover:before, .hello-btn:hover:after{ width:100%; height:100%; }
.hello-btn:active{ transform:scale(.96); }
.hello-btn-small{ width:118px; height:38px; min-width:0; padding:0; font-size:.82rem; }

/* ---------- sphere sections (Creative / Numbers / Human) ---------- */
.sphere{ padding:110px 6vw; overflow:hidden; }
.sphere-watermark{
  position:absolute; top:0; right:2vw; font-family:var(--font-display); font-weight:900;
  font-size:min(32vw,360px); line-height:1; color:rgba(36,25,9,0.035); z-index:0; pointer-events:none;
}
.sphere-inner{ position:relative; z-index:2; max-width:1180px; margin:0 auto; }
.sphere-inner.wide{ max-width:1440px; }
.sphere-head{ max-width:680px; margin-bottom:50px; }
.sphere-title{ font-family:var(--font-display); font-weight:900; font-size:clamp(2.2rem,5.6vw,3.8rem); line-height:1; letter-spacing:-.02em; margin-bottom:16px; }
.sphere-sub{ font-size:1.1rem; color:var(--ink-dim); }
.sphere-list{ margin-top:40px; max-width:820px; }
.sphere-list li{ padding:18px 0; border-top:1px solid var(--line); font-size:1rem; color:var(--ink-dim); line-height:1.55; }
.sphere-list li:last-child{ border-bottom:1px solid var(--line); }
.sphere-list strong{ color:var(--ink); font-weight:700; }

.sphere-creative{ background:radial-gradient(circle at 85% 10%, rgba(204,49,242,.08), transparent 55%); }
.sphere-numbers{ background:radial-gradient(circle at 12% 20%, rgba(53,114,251,.09), transparent 55%); }
.sphere-human{ background:radial-gradient(circle at 88% 82%, rgba(250,133,90,.09), transparent 55%); }

/* feature row (website builds) — stacked full-width, the flagship pieces */
.feature-row{ display:flex; flex-direction:column; gap:36px; margin-bottom:44px; }
.feature-card-wrap{ position:relative; }
.feature-card{
  background:rgba(36,25,9,.04); border:1px solid var(--line); border-radius:var(--radius);
  overflow:hidden; box-shadow:0 26px 54px rgba(36,25,9,.1);
}
.feature-card-body{ padding:34px 34px 22px; display:flex; flex-direction:column; gap:14px; align-items:flex-start; }
.feature-card p{ max-width:720px; }
.feature-card .site-preview{ display:block; width:100%; border-radius:0; border:0; border-top:1px solid var(--line); }
.feature-card p{ color:var(--ink-dim); font-size:1.02rem; line-height:1.55; }
.feature-card strong{ color:var(--ink); }
.feature-logo{ height:30px; width:auto; }
.feature-logo-rr{ height:36px; }
.feature-dark{ background:rgba(204,49,242,.06); }
.feature-live{
  display:inline-flex; align-items:center; gap:6px; font-family:var(--font-body); font-weight:700;
  font-size:.72rem; letter-spacing:.06em; text-transform:uppercase; color:var(--green);
}
.feature-live-dot{ width:7px; height:7px; border-radius:50%; background:var(--green); box-shadow:0 0 0 4px rgba(40,195,69,.18); }
.feature-stats{ display:flex; gap:26px; flex-wrap:wrap; margin-top:4px; }
.feature-stat{ display:flex; flex-direction:column; gap:2px; }
.feature-stat-num{ font-family:var(--font-display); font-weight:800; font-size:1.3rem; color:var(--ink); }
.feature-stat-label{ font-size:.74rem; color:var(--ink-dim); letter-spacing:.02em; }
.feature-note{ font-size:.76rem; color:var(--ink-dim); margin-top:2px; }
.feature-dark .feature-note{ color:var(--ink-dim); }
@media(max-width:640px){
  .feature-card-body{ padding:24px 20px 18px; }
}

/* ---------- act headers: the story beats inside a chapter ---------- */
.act-head{
  display:flex; align-items:flex-start; gap:24px;
  margin:70px 0 38px; padding-top:38px; border-top:1px solid var(--line);
}
.act-head:first-of-type{ margin-top:0; }
.act-num{ font-family:var(--font-display); font-weight:900; font-size:2.4rem; line-height:1; color:rgba(36,25,9,.16); flex-shrink:0; }
.act-eyebrow{ font-family:var(--font-body); font-weight:600; letter-spacing:.14em; text-transform:uppercase; font-size:.78rem; color:var(--ink-dim); margin-bottom:8px; }
.act-title{ font-family:var(--font-display); font-weight:800; font-size:clamp(1.5rem,2.6vw,1.9rem); margin-bottom:12px; }
.act-copy{ color:var(--ink-dim); font-size:1rem; line-height:1.65; max-width:660px; }
.act-copy strong{ color:var(--ink); font-weight:700; }
.act-copy a{ color:var(--ink); text-decoration-color:rgba(36,25,9,.35); }
@media(max-width:640px){
  .act-head{ flex-direction:column; gap:10px; margin:54px 0 28px; padding-top:28px; }
  .act-num{ font-size:1.8rem; }
}

/* sticker mascots pinned to the corner of each site card */
.feature-sticker{
  position:absolute; z-index:3; pointer-events:none;
  filter:drop-shadow(0 12px 18px rgba(0,0,0,.35));
}
.sticker-capy{ width:92px; top:-22px; right:-14px; transform:rotate(8deg); }
.sticker-robin{ width:88px; top:-24px; right:-12px; transform:rotate(-7deg); }
@media(max-width:600px){
  .feature-sticker{ width:64px; }
}

/* mascot showcase + banner strips */
.showcase-label{ font-family:var(--font-display); font-weight:800; font-size:1.1rem; margin-bottom:16px; }
.showcase-note{ color:var(--ink-dim); font-size:.92rem; margin:-10px 0 16px; }
.mascot-showcase, .banner-gallery, .design-book{ margin-bottom:44px; }
.mascot-strip{
  display:flex; gap:14px; overflow-x:auto; padding-bottom:4px;
  scrollbar-width:none; -ms-overflow-style:none;
}
.mascot-strip::-webkit-scrollbar{ display:none; height:0; }
.mascot-strip img{
  width:92px; height:92px; object-fit:contain; background:rgba(36,25,9,.05); flex-shrink:0;
  border:1px solid var(--line); border-radius:16px; padding:10px;
  transition:transform .3s cubic-bezier(.2,.8,.2,1.2);
}
.mascot-strip img:hover{ transform:translateY(-6px) rotate(-3deg); }
.banner-strip{ display:flex; gap:14px; overflow-x:auto; padding-bottom:10px; scrollbar-width:none; -ms-overflow-style:none; }
.banner-strip::-webkit-scrollbar{ display:none; height:0; }
.banner-strip img{
  width:200px; height:112px; object-fit:cover; border-radius:12px; border:1px solid var(--line);
  flex-shrink:0; transition:transform .3s ease;
}
.banner-strip img:hover{ transform:scale(1.04); }
.design-book-grid{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.design-book-grid img{ border-radius:16px; border:1px solid var(--line); }

/* ---------- legacy design gallery: the earlier poster/carousel work ---------- */
.legacy-group{ margin-bottom:30px; }
.legacy-group-label{
  font-family:var(--font-display); font-weight:800; font-size:.95rem; color:var(--ink);
  margin-bottom:2px;
}
.legacy-group-note{ color:var(--ink-dim); font-size:.85rem; margin:0 0 14px; }
.legacy-strip{
  display:flex; gap:16px; overflow-x:auto; padding-bottom:10px;
  scrollbar-width:none; -ms-overflow-style:none;
}
.legacy-strip::-webkit-scrollbar{ display:none; height:0; }
.legacy-card{ flex:0 0 190px; text-decoration:none; display:block; }
.legacy-card-frame{
  position:relative; width:100%; aspect-ratio:4/5; overflow:hidden; border-radius:14px;
  border:1px solid var(--line); background:rgba(36,25,9,.04);
}
.legacy-card-frame img{
  width:100%; height:100%; object-fit:cover; display:block;
  transition:transform .4s cubic-bezier(.22,1,.36,1);
}
.legacy-card:hover .legacy-card-frame img{ transform:scale(1.06); }
.legacy-card-title{
  display:block; margin-top:8px; font-family:var(--font-body); font-weight:700; font-size:.78rem; color:var(--ink);
}
@media(max-width:640px){ .legacy-card{ flex:0 0 148px; } }

/* ---------- full deck strip: every slide of the old portfolio, uncropped ---------- */
.deck-strip{
  display:flex; gap:26px; overflow-x:auto; padding-bottom:10px; margin-bottom:18px;
  scrollbar-width:none; -ms-overflow-style:none;
}
.deck-strip::-webkit-scrollbar{ display:none; height:0; }
.deck-card{ flex:0 0 520px; text-decoration:none; display:block; }
.deck-card-frame{
  display:flex; align-items:center; justify-content:center; width:100%; aspect-ratio:16/9;
  background:#fff; border:1px solid var(--line); border-radius:14px; overflow:hidden;
  box-shadow:0 10px 22px rgba(36,25,9,.08);
  transition:transform .3s ease, box-shadow .3s ease;
}
.deck-card:hover .deck-card-frame{ transform:translateY(-4px); box-shadow:0 18px 32px rgba(36,25,9,.14); }
.deck-card-frame img{ width:100%; height:100%; object-fit:contain; display:block; }
.deck-card-num{
  display:block; margin-top:8px; font-family:var(--font-body); font-weight:600; font-size:.78rem; color:var(--ink-dim);
}
/* ---------- lead magnet cards: gated checklists for Smartly inbound ---------- */
.lead-magnets{ margin-top:22px; padding-top:20px; border-top:1px solid var(--line); }
.lead-magnets-label{ font-family:var(--font-display); font-weight:800; font-size:.92rem; color:var(--ink); margin-bottom:2px; }
.lead-magnets-note{ color:var(--ink-dim); font-size:.78rem; line-height:1.5; margin:0 0 14px; }
.lead-magnet-row{
  display:flex; gap:14px; overflow-x:auto; padding-bottom:6px;
  scrollbar-width:none; -ms-overflow-style:none;
}
.lead-magnet-row::-webkit-scrollbar{ display:none; height:0; }
.lead-magnet-card{
  flex:0 0 168px; text-decoration:none; display:block;
}
.lead-magnet-frame{
  display:flex; align-items:center; justify-content:center; width:100%; aspect-ratio:4/3; overflow:hidden;
  border-radius:20px; border:1px solid var(--line); background:#fff;
  box-shadow:0 10px 20px rgba(36,25,9,.08);
  transition:transform .3s ease, box-shadow .3s ease;
}
.lead-magnet-frame img{ width:100%; height:100%; object-fit:contain; display:block; }
.lead-magnet-card:hover .lead-magnet-frame{ transform:translateY(-4px); box-shadow:0 16px 30px rgba(36,25,9,.14); }
.lead-magnet-title{
  display:block; margin-top:9px; font-family:var(--font-body); font-weight:700; font-size:.76rem; line-height:1.35; color:var(--ink);
}
.lead-magnet-cta{
  display:block; margin-top:3px; font-family:var(--font-body); font-weight:600; font-size:.7rem; color:var(--ink-dim);
}
.lead-magnet-card:hover .lead-magnet-cta{ color:var(--tomato); }
@media(max-width:640px){ .lead-magnet-card{ flex:0 0 140px; } }

.deck-download{ display:inline-flex; }
.deck-card-captioned{ display:block; }
.deck-card-captioned a{ display:block; text-decoration:none; }
.deck-card-caption{
  margin:8px 0 0; font-family:var(--font-body); font-size:.82rem; line-height:1.5; color:var(--ink);
  font-style:italic;
}
@media(max-width:900px){ .deck-card{ flex:0 0 400px; } }
@media(max-width:640px){ .deck-card{ flex:0 0 86%; } }

/* ---------- curve carousel: full-bleed photo strip, straight sides, top sags in / bottom bows out ---------- */
.curve-carousel{ position:relative; }
.curve-carousel-track{
  display:flex; align-items:stretch; overflow-x:auto; overflow-y:hidden; scroll-behavior:smooth; cursor:grab;
  scrollbar-width:none; -ms-overflow-style:none;
  clip-path:url(#curveCarouselClip);
  height:420px;
  width:100vw; position:relative; left:50%; right:50%; margin-left:-50vw; margin-right:-50vw;
}
.curve-carousel-track::-webkit-scrollbar{ display:none; height:0; }
.curve-carousel-track.is-dragging{ cursor:grabbing; scroll-behavior:auto; }
.curve-carousel-item{
  flex:0 0 auto; width:24vw; min-width:260px; height:420px; overflow:hidden;
}
.curve-carousel-item:first-child{ margin-left:6vw; }
.curve-carousel-item:last-child{ margin-right:6vw; }
.curve-carousel-item img{
  width:100%; height:100%; object-fit:cover; display:block;
  transition:transform .5s cubic-bezier(.22,1,.36,1);
}
.curve-carousel-item:hover img{ transform:scale(1.06); }
.curve-carousel-hint{
  display:flex; align-items:center; justify-content:center; gap:8px; margin-top:20px;
  font-family:var(--font-body); font-weight:600; font-size:.8rem; letter-spacing:.05em;
  text-transform:uppercase; color:var(--ink-dim);
}
.curve-carousel-hint svg{ width:14px; height:10px; animation:curveHintNudge 1.6s ease-in-out infinite; }
.curve-carousel-hint path, .curve-carousel-hint polyline{ stroke:var(--ink-dim); stroke-width:1.6px; fill:none; stroke-linecap:round; stroke-linejoin:round; }
@keyframes curveHintNudge{
  0%,100%{ transform:translateX(0); }
  50%{ transform:translateX(4px); }
}
@media(max-width:640px){
  .curve-carousel-track{ height:260px; }
  .curve-carousel-item{ width:58vw; min-width:210px; height:260px; }
  .curve-carousel-item:first-child{ margin-left:5vw; }
  .curve-carousel-item:last-child{ margin-right:5vw; }
}

/* ---------- video preview carousel (YouTube thumbnails, click through) ---------- */
.video-strip{ display:flex; gap:22px; overflow-x:auto; padding-bottom:10px; scrollbar-width:none; -ms-overflow-style:none; }
.video-strip::-webkit-scrollbar{ display:none; height:0; }
.video-card{ flex:0 0 calc((100% - 44px) / 3); display:block; text-decoration:none; }
.video-frame{
  display:block; position:relative; width:100%; aspect-ratio:16/9; border-radius:14px; overflow:hidden;
  border:1px solid var(--line); background:#000;
}
.video-frame img{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  transition:transform .35s ease;
}
.video-frame iframe, .video-frame video{ position:absolute; inset:0; width:100%; height:100%; border:0; }
.video-card:hover .video-frame img{ transform:scale(1.06); }
.video-play{
  position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
  width:52px; height:52px; border-radius:50%; background:rgba(36,25,9,.55); color:#fff;
  display:flex; align-items:center; justify-content:center; font-size:1rem; padding-left:3px;
  transition:background .25s ease, transform .25s ease;
}
.video-card:hover .video-play{ background:var(--tomato); transform:translate(-50%,-50%) scale(1.1); }
.video-card-title{
  display:block; margin-top:10px; font-family:var(--font-display); font-weight:700;
  font-size:.85rem; color:var(--ink); line-height:1.35;
}
.video-card:hover .video-card-title{ color:var(--tomato); }
@media(max-width:900px){ .video-card{ flex:0 0 calc((100% - 22px) / 2); } }
@media(max-width:600px){ .video-card{ flex:0 0 82%; } }

/* ---------- shorts library: pill-tab switcher over vertical short cards ---------- */
.shorts-tabs{ position:relative; display:flex; flex-wrap:wrap; gap:6px; justify-content:center; margin-bottom:28px; }
.shorts-tab-indicator{
  position:absolute; top:0; left:0; width:0; height:0; border-radius:100px; background:#241909;
  transition:left .45s cubic-bezier(.65,0,.35,1), top .45s cubic-bezier(.65,0,.35,1),
    width .45s cubic-bezier(.65,0,.35,1), height .45s cubic-bezier(.65,0,.35,1); z-index:0;
}
.shorts-tab{
  position:relative; z-index:1; font-family:var(--font-body); font-weight:600; font-size:.85rem;
  color:var(--ink-dim); background:none; border:0; border-radius:100px; padding:12px 22px; cursor:pointer;
  transition:color .3s ease; text-align:center;
}
.shorts-tab span{ display:block; font-size:.66rem; font-weight:500; opacity:.7; margin-top:2px; }
.shorts-tab.is-active{ color:#fdf9f2; }
.shorts-tab:hover:not(.is-active){ color:var(--ink); }
.shorts-panel{ display:none; }
.shorts-panel.is-active{ display:block; }
.shorts-strip{ display:flex; gap:16px; overflow-x:auto; padding-bottom:8px; scrollbar-width:none; -ms-overflow-style:none; }
.shorts-strip::-webkit-scrollbar{ display:none; height:0; }
.shorts-card{ flex:0 0 168px; text-decoration:none; display:block; }
.shorts-frame{
  display:block; position:relative; width:100%; aspect-ratio:9/16; border-radius:20px; overflow:hidden;
  border:1px solid var(--line); background:#000;
}
.shorts-frame img{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover; transition:transform .35s ease;
}
.shorts-card:hover .shorts-frame img{ transform:scale(1.06); }
.shorts-frame .video-play{ width:42px; height:42px; font-size:.85rem; }
.shorts-card:hover .shorts-frame .video-play{ background:var(--tomato); transform:translate(-50%,-50%) scale(1.1); }
.shorts-card-title{
  display:block; margin-top:10px; font-family:var(--font-display); font-weight:700;
  font-size:.78rem; color:var(--ink); line-height:1.32;
}
.shorts-card-meta{ display:block; margin-top:3px; font-family:var(--font-body); font-size:.72rem; color:var(--ink-dim); }
.shorts-card:hover .shorts-card-title{ color:var(--tomato); }
@media(max-width:640px){
  .shorts-tabs{ gap:4px; margin-bottom:20px; }
  .shorts-tab{ font-size:.78rem; padding:10px 16px; }
  .shorts-card{ flex:0 0 130px; }
}

/* ---------- hero carousel: one big flagship piece at a time, drag or click through ---------- */
.hero-carousel{ position:relative; }
.hero-carousel-frame{
  position:relative; width:100%; aspect-ratio:16/10; border-radius:28px; overflow:hidden;
  background:#100c08; border:1px solid var(--line); box-shadow:0 24px 50px rgba(36,25,9,.16);
}
.hero-carousel-track{
  display:flex; height:100%; overflow-x:auto; scroll-snap-type:x mandatory; cursor:grab;
  scrollbar-width:none; -ms-overflow-style:none;
}
.hero-carousel-track:active{ cursor:grabbing; }
.hero-carousel-track::-webkit-scrollbar{ display:none; height:0; }
.hero-carousel-slide{
  flex:0 0 100%; scroll-snap-align:start; position:relative; height:100%;
  display:flex; align-items:center; justify-content:center; background:#100c08;
  text-decoration:none;
}
.hero-carousel-slide img{ width:100%; height:100%; object-fit:cover; pointer-events:none; }
.hero-carousel-slide video{ width:100%; height:100%; object-fit:contain; background:#000; }
.hero-carousel-slide.contain{ background:radial-gradient(circle at 50% 40%, #2a2018 0%, #14100b 100%); }
.hero-carousel-slide.contain img{ object-fit:contain; padding:64px; pointer-events:none; }
@media(max-width:640px){ .hero-carousel-slide.contain img{ padding:34px; } }
.hero-carousel-slide .video-play{ position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); pointer-events:none; }
.hero-carousel-caption{
  position:absolute; left:0; right:0; bottom:0; z-index:2; pointer-events:none;
  padding:60px 30px 24px; background:linear-gradient(0deg, rgba(8,6,4,.82) 0%, rgba(8,6,4,.35) 55%, transparent 100%);
  color:#fdf9f2; font-family:var(--font-display); font-weight:700; font-size:1.15rem; line-height:1.3;
}
.hero-carousel-index{
  position:absolute; top:22px; left:24px; z-index:3;
  font-family:var(--font-body); font-weight:600; letter-spacing:.08em;
  font-size:.76rem; color:#fdf9f2; background:rgba(8,6,4,.45); padding:7px 14px; border-radius:20px;
  backdrop-filter:blur(4px); pointer-events:none;
}
.hero-carousel-drag{
  position:absolute; top:20px; right:24px; z-index:3;
  font-family:var(--font-display); font-weight:800; font-size:.7rem; letter-spacing:.08em; text-transform:uppercase;
  color:#241909; background:var(--yellow); padding:8px 16px; border-radius:20px;
  transform:rotate(-4deg); pointer-events:none; box-shadow:0 6px 14px rgba(36,25,9,.25);
}
.hero-carousel-arrow{
  position:absolute; top:50%; transform:translateY(-50%); z-index:3;
  width:50px; height:50px; border-radius:50%; border:0; background:rgba(253,249,242,.92);
  display:flex; align-items:center; justify-content:center; cursor:pointer;
  font-size:1.3rem; color:#241909; transition:background .2s ease, transform .2s ease;
  box-shadow:0 10px 24px rgba(0,0,0,.28);
}
.hero-carousel-arrow:hover{ background:#fff; transform:translateY(-50%) scale(1.08); }
.hero-carousel-arrow svg{ width:15px; height:11px; }
.hero-carousel-arrow path, .hero-carousel-arrow polyline{ stroke:#241909; stroke-width:1.6px; fill:none; stroke-linecap:round; stroke-linejoin:round; }
.hero-carousel-prev{ left:18px; }
.hero-carousel-next{ right:18px; }
@media(max-width:640px){
  .hero-carousel-frame{ aspect-ratio:4/5; border-radius:20px; }
  .hero-carousel-arrow{ width:42px; height:42px; }
  .hero-carousel-caption{ font-size:1rem; padding:44px 20px 18px; }
}

/* ---------- tab carousel: big blob stage + pill tabs below, cards cross-slide (dribbble-style) ---------- */
.tab-carousel{ margin-top:10px; }
.tab-carousel-viewport{ position:relative; padding:0 13vw; }
.tab-carousel-stage{
  position:relative; width:100%; aspect-ratio:16/10; overflow:hidden;
  border-radius:64px 40px 58px 44px; background:#f4f0ea;
  box-shadow:0 34px 64px rgba(36,25,9,.16); border:1px solid var(--line);
}
.tab-carousel-slide{
  position:absolute; inset:0; opacity:0; pointer-events:none; z-index:1;
  display:flex; align-items:center; justify-content:center; text-decoration:none;
  transform:translateX(0) rotate(0deg);
  transition:transform .6s cubic-bezier(.22,1,.36,1), opacity .5s ease;
}
.tab-carousel-slide.is-active{ opacity:1; pointer-events:auto; z-index:2; transform:translateX(0) rotate(0deg); }
.tab-carousel-slide img{ width:100%; height:100%; object-fit:cover; }
.tab-carousel-slide video{ width:100%; height:100%; object-fit:contain; background:#000; }
.tab-carousel-slide .video-play{
  position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
  width:60px; height:60px; border-radius:50%; background:rgba(36,25,9,.55); color:#fff;
  display:flex; align-items:center; justify-content:center; font-size:1.2rem; padding-left:4px;
  transition:background .25s ease, transform .25s ease;
}
.tab-carousel-slide:hover .video-play{ background:var(--tomato); transform:translate(-50%,-50%) scale(1.08); }

/* neighboring slides, peeking in from the sides, permanently tilted */
.tab-carousel-peek{
  position:absolute; top:8%; bottom:8%; width:15vw; min-width:110px; max-width:220px;
  border-radius:40px 26px 36px 28px; overflow:hidden; z-index:0; pointer-events:none;
  box-shadow:0 18px 34px rgba(36,25,9,.12); opacity:.85;
}
.tab-carousel-peek img{ width:100%; height:100%; object-fit:cover; }
.tab-carousel-peek-left{ left:1vw; transform:rotate(-6deg); }
.tab-carousel-peek-right{ right:1vw; transform:rotate(6deg); }
@media(max-width:900px){ .tab-carousel-peek{ display:none; } .tab-carousel-viewport{ padding:0; } }

.tab-carousel-tabs{
  position:relative; display:flex; flex-wrap:wrap; gap:6px; justify-content:center; margin-top:26px;
}
.tab-carousel-tab-indicator{
  position:absolute; top:0; left:0; width:0; height:0; border-radius:100px; background:#241909;
  transition:left .45s cubic-bezier(.65,0,.35,1), top .45s cubic-bezier(.65,0,.35,1),
    width .45s cubic-bezier(.65,0,.35,1), height .45s cubic-bezier(.65,0,.35,1); z-index:0;
}
.tab-carousel-tab{
  position:relative; z-index:1; font-family:var(--font-body); font-weight:600; font-size:.85rem;
  color:var(--ink-dim); background:none; border:0; border-radius:100px; padding:12px 22px; cursor:pointer;
  transition:color .3s ease; text-align:center;
}
.tab-carousel-tab.is-active{ color:#fdf9f2; }
.tab-carousel-tab:hover:not(.is-active){ color:var(--ink); }
@media(max-width:640px){
  .tab-carousel-stage{ border-radius:34px 24px 30px 22px; }
  .tab-carousel-tabs{ gap:4px; margin-top:18px; }
  .tab-carousel-tab{ font-size:.78rem; padding:10px 16px; }
}

/* ---------- charts ---------- */
.chart-block{ margin-bottom:44px; }
.chart-label{ font-family:var(--font-display); font-weight:800; font-size:1.1rem; margin-bottom:6px; }
.chart-note{ color:var(--ink-dim); font-size:.85rem; margin-bottom:18px; }
.chart-row{ display:grid; grid-template-columns:1fr 1fr; gap:32px; margin-bottom:40px; }
.chart-half .chart-label{ margin-bottom:6px; }
.chart-half .chart-note{ margin-bottom:16px; }

/* growth trio */
.chart-trio{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.growth-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:18px 16px; }
.growth-grid .growth-pair{ height:180px; padding:20px 10px 14px; }
.growth-grid .growth-item{ width:46px; }
.growth-pair{
  position:relative; display:flex; align-items:flex-end; justify-content:center; gap:10px;
  background:rgba(36,25,9,.035); border:1px solid var(--line); border-radius:18px;
  padding:22px 14px 16px; height:210px;
}
.growth-item{ display:flex; flex-direction:column; align-items:center; justify-content:flex-end; height:100%; width:56px; gap:8px; }
.growth-bar{
  width:100%; height:0; border-radius:8px 8px 3px 3px; background:linear-gradient(180deg, var(--peach), var(--coral));
  transition:height 1.1s cubic-bezier(.2,.8,.2,1);
}
.growth-item.to .growth-bar{ background:linear-gradient(180deg, var(--coral), var(--tomato)); }
.growth-tag{ font-size:.68rem; font-weight:700; color:var(--ink-dim); text-transform:uppercase; letter-spacing:.06em; }
.growth-num{ font-family:var(--font-display); font-weight:800; font-size:.92rem; }
.growth-arrow{ font-size:1.1rem; color:var(--ink-dim); align-self:center; margin-bottom:30px; }
.growth-badge{
  position:absolute; top:10px; right:14px; font-family:var(--font-display); font-weight:800; font-size:.78rem;
  background:var(--tomato); color:#fff; padding:4px 10px; border-radius:100px;
}
.growth-caption{ text-align:center; font-size:.82rem; color:var(--ink-dim); margin-top:10px; font-weight:600; }

/* horizontal leaderboard bars */
.chart-leaderboard{ display:flex; flex-direction:column; gap:14px; }
.chart-leaderboard-tight{ gap:12px; }
.bar-row{ display:grid; grid-template-columns:200px 1fr 84px; align-items:center; gap:14px; }
.bar-label{ font-size:.86rem; color:var(--ink-dim); font-weight:600; }
.bar-track{ height:14px; border-radius:100px; background:rgba(36,25,9,.07); overflow:hidden; }
.bar-fill{ height:100%; width:0; border-radius:100px; background:linear-gradient(90deg, var(--sky), var(--blue)); transition:width 1.1s cubic-bezier(.2,.8,.2,1); }
.bar-fill.fill-warm{ background:linear-gradient(90deg, var(--peach), var(--coral)); }
.bar-fill.fill-dim{ background:rgba(36,25,9,.22); }
.bar-value{ font-family:var(--font-display); font-weight:800; font-size:.88rem; text-align:right; }

/* RR world map: code-rendered choropleth (D3 + topojson), replaces a raster screenshot */
.rr-map-wrap{
  margin:14px 0; border:1px solid var(--line); border-radius:16px; background:#fff;
  padding:14px; max-width:640px;
}
#rrWorldMap{ width:100%; height:auto; display:block; }
.rr-map-country{ transition:fill .25s ease; }
.rr-map-country.has-data{ cursor:pointer; }
.rr-map-country.has-data:hover{ fill:var(--tomato) !important; }
.rr-map-fallback{ display:none; padding:30px 10px; text-align:center; color:var(--ink-dim); font-size:.85rem; }

/* grouped bar-row variant: two mini tracks (Q1 vs Q2) side by side */
.bar-row-grouped{ grid-template-columns:160px 1fr 60px 1fr 60px; }
.bar-track-mini{ height:10px; }
@media(max-width:640px){ .bar-row-grouped{ grid-template-columns:110px 1fr 46px 1fr 46px; gap:8px; } }

/* kpi tiles: standalone stat cards, reused across Numbers deep-dive sections */
.kpi-grid{ display:flex; flex-wrap:wrap; gap:14px; margin:18px 0 8px; }
.kpi-card{
  flex:1 1 150px; min-width:140px; padding:16px 18px; border:1px solid rgba(201,54,56,.18); border-radius:16px;
  background:rgba(201,54,56,.06);
  transition:background .22s ease, border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}
.kpi-card:hover{
  background:#fff; border-color:var(--tomato); box-shadow:0 10px 22px rgba(201,54,56,.14); transform:translateY(-2px);
}
.kpi-num{ display:block; font-family:var(--font-display); font-weight:800; font-size:1.5rem; color:var(--ink); }
.kpi-label{ display:block; margin-top:2px; font-size:.78rem; color:var(--ink-dim); }

/* stacked composition bar */
.chart-stack{ display:flex; flex-direction:column; gap:16px; }
.stack-track{ display:flex; width:100%; height:34px; border-radius:12px; overflow:hidden; border:1px solid var(--line); }
.stack-seg{ height:100%; width:0; transition:width 1.1s cubic-bezier(.2,.8,.2,1); display:flex; align-items:center; justify-content:center; }
.stack-legend{ display:flex; flex-wrap:wrap; gap:18px; }
.legend-item{ display:flex; align-items:center; gap:8px; font-size:.85rem; color:var(--ink-dim); font-weight:600; }
.legend-swatch{ width:12px; height:12px; border-radius:4px; flex-shrink:0; }

@media(max-width:980px){
  .chart-row{ grid-template-columns:1fr; }
  .chart-trio{ grid-template-columns:1fr; }
  .bar-row{ grid-template-columns:120px 1fr 64px; }
}

/* achievement list — editorial numbered rows, not an icon-card template */
.achieve-list{ margin-top:24px; max-width:900px; }
.achieve-row{
  display:grid; grid-template-columns:64px 1fr 4px; align-items:start; gap:24px;
  padding:24px 0; border-top:1px solid var(--line);
}
.achieve-row:last-child{ border-bottom:1px solid var(--line); }
.achieve-index{
  font-family:var(--font-display); font-weight:800; font-size:1.6rem; line-height:1;
  color:rgba(36,25,9,.22); letter-spacing:-.02em;
}
.achieve-headline{ font-size:1.06rem; color:var(--ink); line-height:1.4; margin-bottom:6px; }
.achieve-headline strong{ color:var(--ink); }
.achieve-sub{ font-size:.88rem; color:var(--ink-dim); line-height:1.5; }
.achieve-tag{ width:4px; height:100%; min-height:36px; border-radius:100px; align-self:stretch; }
@media(max-width:720px){
  .achieve-row{ grid-template-columns:40px 1fr 4px; gap:14px; }
  .achieve-index{ font-size:1.2rem; }
}

/* highlight carousel (replaces flat scoreboard grid) */
.highlight-track{
  display:flex; gap:16px; overflow-x:auto; scroll-snap-type:x mandatory;
  scrollbar-width:none; -ms-overflow-style:none;
}
.highlight-track::-webkit-scrollbar{ display:none; height:0; }
.highlight-card{
  flex:0 0 calc(50% - 8px); min-width:260px; scroll-snap-align:start;
  background:rgba(36,25,9,.035); border:1px solid var(--line); border-radius:18px;
  padding:22px; display:flex; flex-direction:column; gap:8px;
}
.highlight-bar{ height:6px; border-radius:100px; background:rgba(36,25,9,.08); overflow:hidden; margin-bottom:4px; }
.highlight-bar-fill{ height:100%; width:0; border-radius:100px; transition:width 1s cubic-bezier(.2,.8,.2,1); }
.highlight-desc{ font-size:.86rem; font-weight:700; color:var(--ink); line-height:1.4; margin-top:4px; }
@media(max-width:720px){
  .highlight-card{ flex-basis:85%; }
}

/* scoreboard */
.scoreboard{ display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin-bottom:20px; }
.score-card{
  background:rgba(36,25,9,.04); border:1px solid var(--line); border-radius:18px;
  padding:20px 16px; transition:transform .3s cubic-bezier(.2,.8,.3,1.2), background .3s ease, border-color .3s ease;
  display:flex; flex-direction:column; gap:6px;
}
.score-card:hover{ transform:translateY(-5px); background:rgba(53,114,251,.1); border-color:var(--smartly); }
.score-num{ font-family:var(--font-display); font-weight:900; font-size:1.5rem; color:var(--smartly); }
.score-label{ font-size:.76rem; color:var(--ink-dim); font-weight:500; line-height:1.3; }

/* human grid */
.human-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-bottom:20px; }
.human-card{ border-radius:var(--radius); overflow:hidden; border:1px solid var(--line); background:rgba(36,25,9,.03); }
.human-card img{ width:100%; height:170px; object-fit:cover; }
.human-card figcaption{ padding:16px; font-size:.88rem; color:var(--ink-dim); line-height:1.5; }
.human-card strong{ color:var(--ink); }

/* ---------- testimonials (placeholder cards) ---------- */
.testimonials-section{ background:radial-gradient(circle at 15% 85%, rgba(10,60,255,.06), transparent 55%); }
.testimonial-grid{ display:grid; grid-template-columns:repeat(3, 1fr); gap:24px; }
.t-card{
  position:relative; display:flex; align-items:center; justify-content:center;
  width:100%; min-height:300px; padding:32px; border-radius:24px; overflow:hidden;
  line-height:1.6; border:1.5px dashed rgba(36,25,9,.25); background:rgba(36,25,9,.03);
  transition:all .48s cubic-bezier(.23,1,.32,1);
}
.t-card:hover{
  box-shadow:8px 8px var(--blue-deep); border-color:var(--blue-deep); border-style:solid;
  background:rgba(36,25,9,.02); transform:translate(-8px,-8px);
}
.t-content{
  display:flex; flex-direction:column; height:100%; width:100%; justify-content:space-between;
  gap:16px; color:var(--ink); transition:all .48s cubic-bezier(.23,1,.32,1);
}
.t-quotes{ width:36px; height:36px; color:var(--blue-deep); opacity:.3; }
.t-para{ z-index:1; opacity:.65; font-size:.98rem; font-style:italic; transition:all .48s cubic-bezier(.23,1,.32,1); }
.t-footer{ display:flex; flex-direction:column; gap:2px; }
.t-footer strong{ font-family:var(--font-display); font-size:.92rem; color:var(--ink-dim); font-weight:700; }
.t-footer span{ font-size:.8rem; color:var(--ink-dim); opacity:.7; }
@media(max-width:900px){ .testimonial-grid{ grid-template-columns:1fr 1fr; } }
@media(max-width:600px){ .testimonial-grid{ grid-template-columns:1fr; } }

/* ---------- about: story flow ---------- */
.story-section{ padding:0 6vw 90px; }
.story-inner{ max-width:900px; margin:0 auto; }
.story-inner .act-head{ margin:56px 0 0; padding-top:32px; }
.story-inner .act-head:first-of-type{ margin-top:0; padding-top:0; border-top:none; }

/* ---------- about: story flow visuals (paintings, field photos, work photos) ---------- */
.act-gallery{ margin:22px 0 6px; }
.act-gallery-label{
  font-family:var(--font-body); font-weight:700; font-size:.78rem; color:var(--ink-dim);
  text-transform:uppercase; letter-spacing:.06em; margin:0 0 10px;
}
.act-gallery-caption{
  margin:14px 0 0; font-family:var(--font-body); font-size:.88rem; line-height:1.55; color:var(--ink);
  font-style:italic; max-width:640px;
}
@media(max-width:640px){ .act-gallery-card{ flex:0 0 150px; } }

/* ---------- toolkit ---------- */
.toolkit{ padding:110px 6vw; text-align:center; }
.tag-cloud{ display:flex; flex-wrap:wrap; gap:12px; justify-content:center; max-width:900px; margin:0 auto; }
.tag-cloud span{
  border:1px solid var(--line); padding:10px 18px; border-radius:100px; font-size:.9rem;
  font-weight:600; color:var(--ink-dim); transition:all .25s ease;
}
.tag-cloud span:hover{ color:#241909; background:var(--yellow-soft); border-color:var(--yellow-soft); transform:translateY(-3px) rotate(-2deg); }

/* ---------- contact / footer ---------- */
.contact{
  padding:110px 6vw 40px; text-align:center; position:relative; overflow:hidden;
  background:linear-gradient(180deg, transparent, rgba(204,49,242,.06));
}
.contact-bg-text{
  position:absolute; bottom:0; left:-2%; white-space:nowrap;
  font-family:var(--font-display); font-weight:900; font-size:9vw; line-height:1;
  color:transparent; -webkit-text-stroke:1px rgba(36,25,9,0.05); z-index:0;
}
.contact-inner{ position:relative; z-index:2; max-width:720px; margin:0 auto; }
.contact-title{ font-family:var(--font-display); font-weight:900; font-size:clamp(2.2rem,5.5vw,3.6rem); line-height:1.06; margin-bottom:38px; }
.contact-actions{ display:flex; gap:16px; justify-content:center; flex-wrap:wrap; margin-bottom:40px; }
.socials{ display:flex; gap:26px; justify-content:center; }
.socials a{ font-weight:600; color:var(--ink-dim); font-size:.92rem; }
.socials a:hover{ color:var(--ink); }
.peek-mascot{
  position:absolute; width:70px; bottom:0; right:6vw; z-index:1; opacity:0; transform:translateY(30px);
  transition:opacity .5s ease, transform .5s ease; pointer-events:none;
}
.peek-mascot.show{ opacity:1; transform:translateY(0); }
.contact-foot{
  margin-top:100px; display:flex; justify-content:space-between; padding-top:24px;
  border-top:1px solid var(--line); font-size:.82rem; color:var(--ink-dim); position:relative; z-index:2;
}
.egg-trigger{ background:none; border:0; color:var(--ink-dim); font:inherit; padding:0; text-decoration:underline dotted; }
.egg-trigger:hover{ color:var(--fuchsia); }
.egg-toast{
  position:fixed; bottom:30px; left:50%; transform:translateX(-50%) translateY(20px);
  background:var(--ink); color:var(--bg); font-weight:700; font-size:.88rem;
  padding:14px 22px; border-radius:100px; z-index:3000; opacity:0; visibility:hidden;
  transition:all .4s cubic-bezier(.2,.8,.2,1.2); max-width:90vw; text-align:center;
}
.egg-toast.show{ opacity:1; visibility:visible; transform:translateX(-50%) translateY(0); }

/* ---------- responsive ---------- */
@media(max-width:980px){
  .feature-row{ grid-template-columns:1fr; }
  .design-book-grid{ grid-template-columns:1fr; }
  .scoreboard{ grid-template-columns:repeat(2,1fr); }
  .human-grid{ grid-template-columns:1fr; }
  .hero-flex{ flex-direction:column; text-align:center; gap:10px; }
  .hero-left{ max-width:100%; }
  .hero-avatar-row{ justify-content:center; }
  .hero-sub{ margin:0 auto; }
  .hero-actions{ justify-content:center; }
  .stuffscene{ width:92vw; height:52vh; }
}
@media(max-width:720px){
  .nav-links{
    position:fixed; inset:0 0 0 auto; width:78vw; background:var(--bg);
    flex-direction:column; align-items:flex-start; justify-content:center; gap:30px;
    padding:40px; transform:translateX(100%); transition:transform .4s cubic-bezier(.2,.8,.2,1);
    border-left:1px solid var(--line);
  }
  .nav-links.open{ transform:translateX(0); }
  .nav-links a{ font-size:1.3rem; }
  .nav-toggle{ display:flex; }
  .nav-contact-mini{ display:none; }
  .sphere{ padding:50px 6vw 100px; }
  .lg-only{ display:none; }
  .contact-foot{ flex-direction:column; gap:10px; text-align:center; }
  .stuff-item{ width:80px; margin:-40px 0 0 -40px; }
}

/* ---------- rr post grid: LinkedIn carousels, hover-scrub through slides ---------- */
.rr-post-grid{
  display:flex; gap:22px; overflow-x:auto; padding-bottom:12px;
  scrollbar-width:none; -ms-overflow-style:none;
}
.rr-post-grid::-webkit-scrollbar{ display:none; height:0; }
.rr-post-card{ cursor:pointer; flex:0 0 240px; }
.rr-post-head{ display:flex; align-items:center; gap:8px; margin-bottom:8px; }
.rr-post-avatar{
  width:22px; height:22px; border-radius:50%; overflow:hidden; flex-shrink:0;
  background:#fff; border:1px solid var(--line); display:flex; align-items:center; justify-content:center;
}
.rr-post-avatar img{ width:100%; height:100%; object-fit:contain; padding:3px; }
.rr-post-brand{ font-family:var(--font-body); font-weight:700; font-size:.8rem; color:var(--ink); }
.rr-post-more{ margin-left:auto; color:var(--ink-dim); font-size:.7rem; letter-spacing:1px; }
.rr-post-frame{
  position:relative; width:100%; aspect-ratio:1/1; border-radius:16px; overflow:hidden;
  border:1px solid var(--line); background:#100c08; box-shadow:0 14px 28px rgba(36,25,9,.12);
}
.rr-post-slide{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  opacity:0; transition:opacity .7s ease;
}
.rr-post-slide.is-active{ opacity:1; }
.rr-post-dots{
  position:absolute; left:0; right:0; bottom:10px; display:flex; justify-content:center; gap:5px;
  z-index:2; pointer-events:none;
}
.rr-post-dot{
  width:5px; height:5px; border-radius:50%; background:rgba(255,255,255,.45);
  transition:background .15s ease, transform .15s ease;
}
.rr-post-dot.is-active{ background:#fff; transform:scale(1.3); }
.rr-post-title{
  margin-top:10px; font-family:var(--font-display); font-weight:700; font-size:.82rem;
  color:var(--ink); line-height:1.3;
}
.rr-post-card:hover .rr-post-title{ color:var(--tomato); }
.rr-post-meta{ margin-top:3px; font-family:var(--font-body); font-size:.7rem; color:var(--ink-dim); }
@media(max-width:720px){ .rr-post-card{ flex-basis:180px; } .rr-post-grid{ gap:14px; } }

/* rr lightbox */
.rr-lightbox{
  position:fixed; inset:0; z-index:3100; display:flex; align-items:center; justify-content:center;
  opacity:0; visibility:hidden; transition:opacity .3s ease, visibility .3s ease;
}
.rr-lightbox.is-open{ opacity:1; visibility:visible; }
.rr-lightbox-backdrop{ position:absolute; inset:0; background:rgba(16,12,8,.86); }
.rr-lightbox-inner{
  position:relative; z-index:1; width:min(92vw, 480px); display:flex; flex-direction:column; gap:14px;
}
.rr-lightbox-close{
  position:absolute; top:-46px; right:0; width:36px; height:36px; border-radius:50%;
  background:rgba(255,255,255,.12); color:#fff; border:0; font-size:1.4rem; line-height:1;
  cursor:pointer; transition:background .2s ease;
}
.rr-lightbox-close:hover{ background:rgba(255,255,255,.22); }
.rr-lightbox-stage{
  position:relative; width:100%; aspect-ratio:1/1; border-radius:18px; overflow:hidden;
  background:#100c08; box-shadow:0 30px 60px rgba(0,0,0,.4);
}
.rr-lightbox-stage img{ width:100%; height:100%; object-fit:cover; display:block; }
.rr-lightbox-arrow{
  position:absolute; top:50%; transform:translateY(-50%); width:42px; height:42px; border-radius:50%;
  background:rgba(255,255,255,.14); border:0; color:#fff; cursor:pointer;
  display:flex; align-items:center; justify-content:center; transition:background .2s ease;
}
.rr-lightbox-arrow:hover{ background:rgba(255,255,255,.28); }
.rr-lightbox-arrow path, .rr-lightbox-arrow polyline{ stroke:#fff; stroke-width:1.6px; fill:none; stroke-linecap:round; stroke-linejoin:round; }
.rr-lightbox-prev{ left:12px; }
.rr-lightbox-next{ right:12px; }
.rr-lightbox-foot{ text-align:center; }
.rr-lightbox-title{ font-family:var(--font-display); font-weight:700; font-size:.95rem; color:#fdf9f2; }
.rr-lightbox-dots{ display:flex; justify-content:center; gap:6px; margin-top:10px; }
.rr-lightbox-dots span{ width:6px; height:6px; border-radius:50%; background:rgba(255,255,255,.35); cursor:pointer; transition:background .15s ease, transform .15s ease; }
.rr-lightbox-dots span.is-active{ background:#fff; transform:scale(1.3); }
@media(max-width:640px){
  .rr-lightbox-arrow{ width:36px; height:36px; }
  .rr-lightbox-prev{ left:6px; }
  .rr-lightbox-next{ right:6px; }
}

/* ---------- CHC LinkedIn recap-video cards (reuses .video-strip/.video-card look) ---------- */
.li-frame{ display:flex; align-items:center; justify-content:center; }
.li-frame-mark{
  position:absolute; top:12px; left:12px; font-family:var(--font-body); font-weight:800; font-size:.72rem;
  color:#fdf9f2; background:rgba(255,255,255,.14); border-radius:5px; padding:3px 6px; letter-spacing:.02em;
}

/* ---------- chill-music toggle switch (checkbox-wrapper-5) ---------- */
.checkbox-wrapper-5 .check {
  --size: 40px;
  position: relative;
  background: linear-gradient(90deg, #f19af3, #f099b5);
  line-height: 0;
  perspective: 400px;
  font-size: var(--size);
}
.checkbox-wrapper-5 .check input[type="checkbox"],
  .checkbox-wrapper-5 .check label,
  .checkbox-wrapper-5 .check label::before,
  .checkbox-wrapper-5 .check label::after,
  .checkbox-wrapper-5 .check {
  appearance: none;
  display: inline-block;
  border-radius: var(--size);
  border: 0;
  transition: .35s ease-in-out;
  box-sizing: border-box;
  cursor: pointer;
}
.checkbox-wrapper-5 .check label {
  width: calc(2.2 * var(--size));
  height: var(--size);
  background: #d7d7d7;
  overflow: hidden;
}
.checkbox-wrapper-5 .check input[type="checkbox"] {
  position: absolute;
  z-index: 1;
  width: calc(.8 * var(--size));
  height: calc(.8 * var(--size));
  top: calc(.1 * var(--size));
  left: calc(.1 * var(--size));
  background: linear-gradient(45deg, #dedede, #ffffff);
  box-shadow: 0 6px 7px rgba(0,0,0,0.3);
  outline: none;
  margin: 0;
}
.checkbox-wrapper-5 .check input[type="checkbox"]:checked {
  left: calc(1.3 * var(--size));
}
.checkbox-wrapper-5 .check input[type="checkbox"]:checked + label {
  background: transparent;
}
.checkbox-wrapper-5 .check label::before,
  .checkbox-wrapper-5 .check label::after {
  content: "· ·";
  position: absolute;
  overflow: hidden;
  left: calc(.15 * var(--size));
  top: calc(.5 * var(--size));
  height: var(--size);
  letter-spacing: calc(-0.04 * var(--size));
  color: #9b9b9b;
  font-family: "Times New Roman", serif;
  z-index: 2;
  font-size: calc(.6 * var(--size));
  border-radius: 0;
  transform-origin: 0 0 calc(-0.5 * var(--size));
  backface-visibility: hidden;
}
.checkbox-wrapper-5 .check label::after {
  content: "●";
  top: calc(.65 * var(--size));
  left: calc(.2 * var(--size));
  height: calc(.1 * var(--size));
  width: calc(.35 * var(--size));
  font-size: calc(.2 * var(--size));
  transform-origin: 0 0 calc(-0.4 * var(--size));
}
.checkbox-wrapper-5 .check input[type="checkbox"]:checked + label::before,
  .checkbox-wrapper-5 .check input[type="checkbox"]:checked + label::after {
  left: calc(1.55 * var(--size));
  top: calc(.4 * var(--size));
  line-height: calc(.1 * var(--size));
  transform: rotateY(360deg);
}
.checkbox-wrapper-5 .check input[type="checkbox"]:checked + label::after {
  height: calc(.16 * var(--size));
  top: calc(.55 * var(--size));
  left: calc(1.6 * var(--size));
  font-size: calc(.6 * var(--size));
  line-height: 0;
}

/* placement: chill-music row on the game menu */
.game-menu-music{
  display:flex; align-items:center; gap:12px; margin-top:22px;
}
.game-menu-music-label{
  font-family:var(--font-body); font-weight:600; font-size:.82rem; color:rgba(253,249,242,.82);
  letter-spacing:.02em;
}
.game-menu-music .checkbox-wrapper-5 .check{ --size:22px; }

/* placement: top-right contact links on the game menu */
.game-menu-contact{
  position:absolute; top:28px; right:28px; z-index:5; display:flex; align-items:center; gap:16px;
}
.game-menu-contact a{
  font-family:var(--font-body); font-weight:600; font-size:.78rem; color:rgba(36,25,9,.88);
  text-decoration:none; letter-spacing:.02em; transition:color .2s ease;
}
.game-menu-contact a:hover{ color:#241909; }
@media(max-width:640px){
  .game-menu-contact{ top:18px; right:18px; gap:10px; }
  .game-menu-contact a{ font-size:.7rem; }
}

/* placement: compact music toggle in the site nav */
.nav-music{ display:flex; align-items:center; gap:8px; margin-left:14px; }
.nav-music .checkbox-wrapper-5 .check{ --size:20px; }
.nav-music-label{
  font-family:var(--font-body); font-weight:600; font-size:.7rem; color:var(--ink-dim); display:none;
}
@media(min-width:900px){ .nav-music-label{ display:inline; } }
/* Company tabs: compact, pill-shaped filters for the Work and Impact pages */
.portfolio-tab-shell{
  margin:44px 0 18px;
  padding:16px;
  border:1px solid var(--line);
  border-radius:28px;
  background:rgba(255,255,255,.72);
  box-shadow:0 12px 34px rgba(36,25,9,.07);
}
.portfolio-tab-label{
  margin:0 0 10px 10px;
  color:var(--muted);
  font-size:.7rem;
  font-weight:700;
  letter-spacing:.18em;
  text-transform:uppercase;
}
.portfolio-tabs{
  display:flex;
  gap:8px;
  overflow-x:auto;
  scrollbar-width:none;
}
.portfolio-tabs::-webkit-scrollbar{display:none;}
.portfolio-tab{
  flex:1 0 auto;
  min-width:max-content;
  padding:12px 20px;
  border:0;
  border-radius:999px;
  background:transparent;
  color:var(--ink);
  font:700 .9rem/1 Domine,serif;
  cursor:pointer;
  transition:background .2s ease,color .2s ease,transform .2s ease;
}
.portfolio-tab:hover{transform:translateY(-1px);}
.portfolio-tab.is-active{
  background:var(--ink);
  color:var(--bg);
}
.company-intro{
  margin:0 0 24px;
  padding:20px 22px;
  border-left:4px solid var(--blue);
  border-radius:0 18px 18px 0;
  background:rgba(255,255,255,.66);
  color:var(--ink);
}
.company-intro[hidden],[data-portfolio-content][hidden]{display:none!important;}
.company-intro-kicker{
  margin-bottom:6px;
  color:var(--muted);
  font-size:.68rem;
  font-weight:700;
  letter-spacing:.16em;
  text-transform:uppercase;
}
.company-intro p:last-child{line-height:1.65;}
.company-intro a{color:var(--blue);font-weight:700;text-decoration:none;}
.company-intro a:hover{text-decoration:underline;}
@media(max-width:700px){
  .portfolio-tab-shell{margin-top:28px;padding:10px;border-radius:22px;}
  .portfolio-tab{padding:11px 16px;font-size:.82rem;}
  .company-intro{padding:17px 18px;}
}
