/* Motion layer for the home page: preloader, capsule nav, framed showreel, guides, rack-focus headline, skill cloud. */
:root{--pad:4.7vw;--line:rgba(240,240,238,.11);--lime:#c4ef16}

/* Page guides sit behind every section, never over images or video */
.guides{position:fixed;inset:0;z-index:0;pointer-events:none}
.guides i{position:absolute;top:0;bottom:0;width:1px;background:var(--line)}
.guides i:nth-child(1){left:var(--pad)}.guides i:nth-child(2){right:var(--pad)}.guides i:nth-child(3){left:50%}
.has-motion main{position:relative;z-index:1}
.has-motion .vision-section,.has-motion .work-section,.has-motion .contact-section{background:transparent}

/* Corner markers and section labels */
.frame{position:relative}
.mk{position:absolute;z-index:3;width:13px;height:13px;pointer-events:none}
.mk:before,.mk:after{content:"";position:absolute;background:#f0f0ee}
.mk:before{left:6px;top:0;width:1px;height:13px}.mk:after{top:6px;left:0;width:13px;height:1px}
.mk.tl{left:calc(var(--pad) - 6px);top:-6px}.mk.tr{right:calc(var(--pad) - 6px);top:-6px}
.sec-lbl{position:absolute;z-index:3;top:34px;left:calc(var(--pad) + 22px);font-size:11px;font-weight:600;letter-spacing:.2em;text-transform:uppercase;color:#8e9aa2}
.sec-lbl-r{left:auto;right:calc(var(--pad) + 22px)}

/* Capsule navigation */
.capsule{position:fixed;z-index:60;top:18px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:30px;padding:8px 8px 8px 22px;border:1px solid rgba(255,255,255,.1);border-radius:99px;background:rgba(10,14,17,.55);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);font-size:13px;font-weight:600;white-space:nowrap}
.cap-wm{font-family:'Barlow Condensed',Impact,sans-serif;font-size:17px;font-weight:700;letter-spacing:.03em}
.cap-role{margin-left:6px;color:var(--lime)}.capsule.light .cap-role{color:#5e7a00}
.cap-links{display:flex;gap:24px;color:#cfd6da}.cap-links a:hover{opacity:1;color:#fff}
.cap-cta{padding:10px 16px;border-radius:99px;background:var(--lime);color:#0a0d0f;font-weight:700;transition:background .25s}
.cap-cta:hover{opacity:1;background:#d9ff3c}

/* Showreel: full screen first section */
.has-motion .hero{min-height:560px;height:100svh}
.hero-tc{position:absolute;z-index:3;top:86px;left:var(--pad);font-size:11px;font-weight:600;letter-spacing:.2em;color:#e6ebec;transition:opacity 1.2s}
.hero-tc-r{left:auto;right:var(--pad)}
.hero-title{position:absolute;z-index:3;left:var(--pad);bottom:7vh;margin:0;font-family:'Barlow Condensed',Impact,sans-serif;font-weight:700;font-size:15vw;line-height:.8;text-transform:uppercase;letter-spacing:-.005em;transition:opacity 1.2s}
.hero-title span{display:inline-block}
.has-motion .hero-title span{transform:translateY(110%);opacity:0;transition:transform .7s cubic-bezier(.2,.7,.1,1),opacity .5s}
.has-motion .hero-title.is-in span{transform:none;opacity:1;transition:transform .9s cubic-bezier(.2,.7,.1,1),opacity .9s}
.has-motion .hero-title.is-in span:nth-child(2){transition-delay:.12s}
.hero-side{position:absolute;z-index:3;right:var(--pad);bottom:8.5vh;text-align:right;font-size:17px;line-height:1.55;color:#dfe4e6;transition:opacity 1.2s}
.hero-side p{margin:0}
.hero.is-watching .hero-tc{opacity:0}
.has-motion .media-status{z-index:3}

/* Manifesto: each word racks into focus */
.has-motion .vision-section{min-height:0;padding:22vh var(--pad);flex-direction:column}
.mani{margin:0 auto;font-size:9.4vw;line-height:.86;text-align:center;text-transform:uppercase}
.mani .w{display:inline-block;will-change:filter,opacity,transform}
.mani .lime{color:var(--lime)}
.has-motion .vision-copy{margin:60px auto 0;max-width:540px;text-align:center}

/* Work */
.has-motion .work-section{padding-top:14vh}

/* Craft: light section with capability pills */
.craft-section{position:relative;padding:22vh var(--pad) 18vh;background:#f0f0ee;color:#0a0d0f;text-align:center}
.craft-section .sec-lbl{color:#5b656b}
.craft-section .mk:before,.craft-section .mk:after{background:#0a0d0f}
.craft-section h2{margin:0;font-size:8.4vw;line-height:.85;text-transform:uppercase;color:#0a0d0f}
.craft-section .cloud{max-width:1000px;margin:70px auto 0;gap:22px 18px;justify-content:center}
.craft-section .pill{padding:16px 26px;font-size:20px;border-color:#0a0d0f;color:#0a0d0f;background:#f0f0ee}
.craft-section .pill.k{background:#0a0d0f;color:#f0f0ee;border-color:#0a0d0f}
.craft-section .pill.l{background:var(--lime);color:#0a0d0f;border-color:#0a0d0f}
.capsule.light{background:rgba(240,240,238,.78);color:#0a0d0f;border-color:rgba(0,0,0,.08)}.capsule.light .cap-links{color:#33393d}

/* Carousel progress line */
.work-bar{position:relative;height:1px;margin:34px var(--pad) 0;background:var(--line)}
.work-bar i{position:absolute;left:0;top:-1px;width:18%;height:3px;background:var(--lime);will-change:transform}

.cloud{position:relative;display:flex;flex-wrap:wrap;align-items:flex-start;gap:16px 14px;max-width:640px;margin-top:20px;padding:4px 0 10px}
.pill{position:relative;padding:13px 22px;border:1.5px solid rgba(240,240,238,.75);border-radius:99px;font-size:16px;font-weight:700;white-space:nowrap;color:#f0f0ee;background:#0a1014;user-select:none;will-change:transform}
.pill.k{background:#f0f0ee;color:#0a0d0f;border-color:#f0f0ee}
.pill.l{background:var(--lime);color:#0a0d0f;border-color:var(--lime)}

/* Contact headline */
.talk{font-size:clamp(90px,12vw,230px);line-height:.82;text-transform:uppercase}
.talk .o{color:transparent;-webkit-text-stroke:2px #f0f0ee}
.contact-heading>.small-label{margin-bottom:18px}

/* Custom cursor ring (mouse only) */
.cursor{position:fixed;z-index:120;left:0;top:0;width:34px;height:34px;margin:-17px 0 0 -17px;border:1.5px solid var(--lime);border-radius:50%;pointer-events:none;mix-blend-mode:difference;opacity:0;transition:opacity .3s,width .2s,height .2s,margin .2s}
.cursor.on{opacity:1}
.cursor.big{width:56px;height:56px;margin:-28px 0 0 -28px}


@media(max-width:700px){
  :root{--pad:6vw}
  .capsule{gap:14px;padding:7px 7px 7px 16px;font-size:12px}.cap-links{display:none}.cap-wm{font-size:15px}
  .hero-tc{top:78px;font-size:9px}
  .hero-title{font-size:22vw;bottom:24vh}
  .hero-side{left:var(--pad);right:auto;bottom:7vh;text-align:left;font-size:15px}
  .mani{font-size:13vw}
  .sec-lbl{font-size:9px;top:22px}
  .cloud{gap:12px 10px}.pill,.craft-section .pill{font-size:14px;padding:11px 17px}
  .craft-section h2{font-size:15vw}.cap-role{margin-left:4px}
  .craft-section{padding:16vh var(--pad) 12vh}
  .talk{font-size:clamp(70px,22vw,120px)}
}
@media(prefers-reduced-motion:reduce){
  
  .has-motion .hero-title span{transform:none;opacity:1}
  .cursor{display:none}
}

.work-section{overflow-anchor:none}

/* Selected work fills the screen: bigger cards sized from the viewport height */
@media(min-width:701px){
  .has-motion .work-section{min-height:100svh;display:flex;flex-direction:column;justify-content:center;padding:100px 0 44px}
  .has-motion .work-section .section-head{margin-bottom:22px}
  .has-motion .project-card{flex-basis:clamp(380px,calc((100svh - 425px) * 4 / 3),74vw)}
  .has-motion .project-card h3{font-size:20px;margin-top:18px}
  .has-motion .project-card p{font-size:12px}
  .has-motion .work-bar{margin-top:28px}
}

/* Craft rebalance: compact headline, big capability pills */
.craft-section{padding:18vh var(--pad) 16vh}
.craft-section h2{font-size:clamp(56px,6.2vw,150px);line-height:.88}
.craft-section .cloud{max-width:min(1500px,64vw);margin-top:56px;gap:20px 16px}
.craft-section .pill{padding:clamp(13px,1.05vw,22px) clamp(22px,1.8vw,36px);font-size:clamp(18px,1.5vw,32px);border-width:2px}
@media(max-width:700px){.craft-section h2{font-size:12vw}.craft-section .cloud{max-width:none;margin-top:40px;gap:12px 10px}.craft-section .pill{font-size:16px;padding:12px 18px}}

/* Contact: label lines up with the letterform of LET'S; TALK lights up on hover */
.contact-heading>.small-label{font-size:12px}
.talk .o{transition:color .45s ease,-webkit-text-stroke-color .45s ease;cursor:default}
.talk:hover .o,.talk .o:hover{color:var(--lime);-webkit-text-stroke-color:var(--lime)}
