/* =========================================================
   NOIRI Studio — pixel-faithful clone
   Reference: noiristudio.framer.website @ 1521px content width
   ========================================================= */

/* ---------- Tokens ---------- */
:root{
  --bg:#0A0A0A;
  --fg:#F8F8F8;
  --fg-2:#E3E3E3;
  --muted:#767676;
  --ghost:rgba(248,248,248,0.05);
  --line:rgba(248,248,248,0.14);

  --sans:"General Sans","General Sans Placeholder",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --display:"Montserrat",var(--sans);

  --pad-x:38px;            /* side gutter */
  --maxw:1920px;           /* content cap */
  --sec-y:96px;            /* section vertical padding */
  --gap:24px;              /* grid gap */
  --block-gap:48px;        /* content block gap */
  --nav-h:74px;

  --ease:cubic-bezier(0.22,0.61,0.36,1);
}

/* ---------- Reset ---------- */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  background:var(--bg);
  color:var(--fg);
  font-family:var(--sans);
  font-size:16px;
  line-height:1.5;
  font-weight:400;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  overflow-x:hidden;
}
img{display:block;max-width:100%;height:auto}
a{color:inherit;text-decoration:none}
button{font-family:inherit;cursor:pointer;background:none;border:none;color:inherit}
ul{list-style:none}
::selection{background:#f8f8f8;color:#0a0a0a}

/* ---------- Layout helpers ---------- */
.container{
  width:100%;
  max-width:var(--maxw);
  margin:0 auto;
  padding-left:var(--pad-x);
  padding-right:var(--pad-x);
}
.section{padding-top:var(--sec-y);padding-bottom:var(--sec-y);background:var(--bg)}
/* content slides up and covers the sticky hero */
.stack{position:relative;z-index:1;background:var(--bg)}

/* ---------- Shared type ---------- */
.label{
  display:inline-flex;align-items:center;gap:12px;
  font-size:16px;line-height:24px;font-weight:500;color:var(--fg);
}
.label__dot{width:9px;height:9px;background:var(--fg);display:inline-block;flex:none}
.heading{
  font-size:50px;line-height:62.5px;font-weight:600;letter-spacing:-0.5px;color:var(--fg);
}
.body{
  font-size:16px;line-height:24px;font-weight:400;color:var(--fg-2);max-width:520px;
}
.link-underline{
  display:inline-block;font-size:14px;line-height:1.25;font-weight:600;color:var(--fg);
  text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:1px;
  transition:opacity .3s var(--ease);width:fit-content;
}
.link-underline:hover{opacity:.6}
.block-head{display:flex;flex-direction:column;gap:12px;margin-bottom:var(--block-gap)}
.block-cta{margin-top:48px}

/* =========================================================
   NAV
   ========================================================= */
.nav{
  position:fixed;top:0;left:0;width:100%;z-index:100;height:var(--nav-h);
  display:flex;align-items:center;color:var(--fg);
  transition:color .35s var(--ease);
}
/* adaptive: dark text over light sections (zoom / pre-footer) */
.nav--dark{color:#0A0A0A}
.nav__inner{display:flex;align-items:center;justify-content:space-between}
.nav__logo{font-size:16px;font-weight:600;letter-spacing:.2px;color:inherit}
.nav__links{display:flex;align-items:center;gap:25px}
.nav__links a{font-size:14px;font-weight:400;line-height:17.5px;color:inherit;transition:opacity .25s}
.nav__links a:hover{opacity:.6}
.nav__burger{display:none;width:34px;height:34px;flex-direction:column;justify-content:center;gap:6px;align-items:center}
.nav__burger span{display:block;width:22px;height:1.5px;background:currentColor;transition:transform .35s var(--ease),opacity .35s}
.nav__burger.is-open span:nth-child(1){transform:translateY(3.75px) rotate(45deg)}
.nav__burger.is-open span:nth-child(2){transform:translateY(-3.75px) rotate(-45deg)}

.mobile-menu{
  position:fixed;inset:0;z-index:90;background:rgba(10,10,10,.98);
  display:flex;flex-direction:column;justify-content:center;gap:8px;padding:0 38px;
  transform:translateY(-100%);visibility:hidden;
  transition:transform .5s var(--ease),visibility 0s linear .5s;
}
/* blur applied only while open — avoids a constant full-screen backdrop layer */
.mobile-menu.is-open{transform:translateY(0);visibility:visible;backdrop-filter:blur(20px);transition:transform .5s var(--ease),visibility 0s}
.mobile-menu a{font-family:var(--display);font-size:40px;font-weight:800;letter-spacing:-1px;padding:8px 0;opacity:.9}

/* =========================================================
   HERO
   ========================================================= */
.hero{
  position:sticky;top:0;height:100vh;height:100svh;min-height:640px;
  overflow:hidden;display:flex;z-index:0;
}
.hero__media{position:absolute;inset:0;z-index:0}
.hero__media img{width:100%;height:100%;object-fit:cover;object-position:center 38%;transform:scale(1.04)}
.hero__media::after{content:"";position:absolute;inset:0;background:
  linear-gradient(90deg,rgba(10,10,10,.6) 0%,rgba(10,10,10,.2) 40%,rgba(10,10,10,0) 70%),
  linear-gradient(180deg,rgba(10,10,10,.6) 0%,rgba(10,10,10,.22) 24%,rgba(10,10,10,.08) 46%,rgba(10,10,10,.22) 64%,rgba(10,10,10,.72) 100%)}
@keyframes heroFloat{from{transform:scale(1.02)}to{transform:scale(1.09)}}

.hero__inner{position:relative;z-index:2;width:100%;align-self:stretch;display:flex;flex-direction:column;padding-top:var(--nav-h)}
.hero__title{
  font-family:var(--display);font-weight:900;font-size:100px;line-height:120px;letter-spacing:-1px;color:var(--fg);
  margin-top:22px;
}
.hero__title span{display:block}
.hero__words{
  position:absolute;right:var(--pad-x);top:50%;transform:translateY(-46%);
  text-align:right;display:flex;flex-direction:column;gap:10px;
}
.hero__words li{font-size:16px;line-height:24px;color:var(--fg)}
.hero__bottom{margin-top:auto;display:flex;align-items:flex-end;justify-content:space-between;padding-bottom:44px;gap:24px}
.hero__intro{display:flex;flex-direction:column;gap:36px}
.hero__desc{font-size:16px;line-height:24px;font-weight:400;color:var(--fg);max-width:400px}
.hero__tag{font-size:14px;line-height:20.3px;color:var(--fg-2);white-space:nowrap}

/* =========================================================
   ABOUT
   ========================================================= */
.about__grid{display:grid;grid-template-columns:1fr 1fr;gap:var(--gap);align-items:center}
.about__text{display:flex;flex-direction:column;align-items:flex-start;gap:24px}
.about__text .heading{margin-top:4px}
.about__text .body{margin-bottom:4px}
.about__media{width:100%;height:650px;overflow:hidden}
.about__media img{width:100%;height:100%;object-fit:cover}

/* =========================================================
   PROJECTS
   ========================================================= */
.projects__grid{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--gap)}
.project__media{width:100%;aspect-ratio:466/421;overflow:hidden;margin-bottom:18px}
.project__media img{width:100%;height:100%;object-fit:cover;transition:transform 1.1s var(--ease)}
.project:hover .project__media img{transform:scale(1.05)}
.project__title{font-size:16px;font-weight:600;line-height:24px;color:var(--fg)}
.project__cat{font-size:14px;line-height:20.3px;color:var(--fg-2);margin-top:2px}

/* =========================================================
   SERVICES
   ========================================================= */
.services{padding-bottom:144px}
/* heading block top-left, intro block lower-right (matches original) */
.services__head{display:flex;flex-direction:column;gap:56px;margin-bottom:var(--block-gap)}
.services__head>div:first-child{display:flex;flex-direction:column;align-items:flex-start;gap:12px;align-self:flex-start}
.services__intro{display:flex;flex-direction:column;gap:20px;align-items:flex-start;max-width:440px;align-self:flex-end;text-align:left}
.services__grid{display:grid;grid-template-columns:repeat(4,1fr);gap:var(--gap)}
.service__media{width:100%;aspect-ratio:343/602;overflow:hidden;margin-bottom:12px}
.service__media img{width:100%;height:100%;object-fit:cover;transition:transform 1.1s var(--ease)}
.service:hover .service__media img{transform:scale(1.04)}
.service__label{font-size:16px;font-weight:600;line-height:24px;color:var(--fg)}
.service{transform:translateZ(0)}

/* =========================================================
   ZOOM (sticky expand on scroll)
   ========================================================= */
.zoom{height:200vh;position:relative;background:var(--bg)}
.zoom__sticky{position:sticky;top:0;height:100vh;display:flex;align-items:center;justify-content:center;overflow:hidden;background:var(--bg)}
/* full-size frame scaled down — animated with transform (GPU, no reflow) */
.zoom__frame{width:100%;height:100%;overflow:hidden;will-change:transform;transform:scale(.6);transform-origin:center center;backface-visibility:hidden}
.zoom__frame img{width:100%;height:100%;object-fit:cover}

/* =========================================================
   PROCESS (pinned scrub)
   ========================================================= */
.process{background:var(--bg);position:relative}
.process__introwrap{padding-top:var(--sec-y);display:flex;flex-direction:column;gap:24px}
.process__lead{font-size:50px;line-height:65px;font-weight:500;color:var(--fg);max-width:1100px;margin-top:8px}
.process__lead .w{color:var(--ghost);transition:color .15s linear}
.process__lead .w.on{color:var(--fg)}

.process__pin{height:400vh;position:relative}
.process__stage{position:sticky;top:0;height:100vh;display:flex;align-items:center;justify-content:center;overflow:hidden}
.process__names{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;pointer-events:none}
.process__name{
  position:absolute;font-family:var(--display);font-weight:900;font-size:90px;line-height:99px;
  text-align:center;color:var(--ghost);white-space:nowrap;letter-spacing:-1px;
  transition:color .45s var(--ease),transform .6s var(--ease);transform:scale(.96);
}
.process__name.is-active{color:var(--fg);transform:scale(1)}
.process__imgs{position:relative;width:200px;height:250px;z-index:2}
.process__img{
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
  opacity:0;transform:scale(1.08);transition:opacity .55s var(--ease),transform .8s var(--ease);
}
.process__img.is-active{opacity:1;transform:scale(1)}

/* =========================================================
   TESTIMONIAL
   ========================================================= */
.testimonial__row{display:grid;grid-template-columns:542px 1fr;gap:80px;align-items:center}
.testimonial__media{width:542px;height:650px;overflow:hidden}
.testimonial__media img{width:100%;height:100%;object-fit:cover}
.testimonial__body{display:flex;flex-direction:column;gap:40px;max-width:650px}
.testimonial__quote{font-size:22px;line-height:33px;font-weight:400;color:var(--fg)}
.testimonial__name{font-size:16px;font-weight:600;line-height:24px}
.testimonial__role{font-size:14px;line-height:20.3px;color:var(--fg-2);margin-top:2px}

/* =========================================================
   FAQ
   ========================================================= */
.faq__grid{display:grid;grid-template-columns:1fr 650px;gap:72px;align-items:start}
.faq__intro{display:flex;flex-direction:column;gap:24px}
.faq__list{width:100%}
.faq__item{border-bottom:1px solid var(--line)}
.faq__q{
  width:100%;display:flex;align-items:center;justify-content:space-between;gap:24px;
  padding:25px 0;text-align:left;font-size:16px;font-weight:600;line-height:24px;color:var(--fg);
}
.faq__icon{position:relative;width:18px;height:18px;flex:none}
.faq__icon::before,.faq__icon::after{content:"";position:absolute;background:var(--fg);transition:transform .35s var(--ease),opacity .35s}
.faq__icon::before{top:50%;left:0;width:100%;height:1.6px;transform:translateY(-50%)}
.faq__icon::after{left:50%;top:0;width:1.6px;height:100%;transform:translateX(-50%)}
.faq__item.is-open .faq__icon::after{transform:translateX(-50%) rotate(90deg);opacity:0}
.faq__a{overflow:hidden;height:0;transition:height .4s var(--ease)}
.faq__a p{padding:0 0 25px;font-size:16px;line-height:24px;color:var(--fg-2);max-width:560px}

/* =========================================================
   CONTACT
   ========================================================= */
.contact__grid{display:grid;grid-template-columns:1fr 650px;gap:72px;align-items:start}
.contact__intro{display:flex;flex-direction:column;gap:24px}
.contact__form{display:flex;flex-direction:column;gap:32px;width:100%}
.field{display:flex;flex-direction:column;gap:14px}
.field label{font-size:16px;font-weight:600;line-height:24px;color:var(--fg)}
.field input,.field textarea{
  width:100%;background:transparent;border:none;border-bottom:1px solid var(--line);
  color:var(--fg);font-family:inherit;font-size:16px;line-height:1.4;padding:0 0 12px;outline:none;
  transition:border-color .3s var(--ease);
}
.field textarea{min-height:100px;resize:vertical;padding-top:8px}
.field input::placeholder,.field textarea::placeholder{color:var(--muted)}
.field input:focus,.field textarea:focus{border-color:var(--fg)}
.contact__send{margin-top:8px;align-self:flex-start}

/* =========================================================
   PRE-FOOTER IMAGE
   ========================================================= */
.prefooter{padding:0 0 0}
.prefooter__media{width:100%;aspect-ratio:1156/511;overflow:hidden}
.prefooter__media img{width:100%;height:100%;object-fit:cover}

/* =========================================================
   FOOTER
   ========================================================= */
.footer{padding:120px 0 0;overflow:hidden;position:relative;z-index:1;background:var(--bg)}
.footer__top{display:flex;justify-content:space-between;gap:48px;flex-wrap:wrap;margin-bottom:64px}
.footer__email{font-size:50px;line-height:65px;font-weight:500;color:var(--fg);transition:opacity .3s}
.footer__email:hover{opacity:.7}
.footer__reach{font-size:16px;line-height:24px;color:var(--fg-2);margin-top:14px}
.footer__nav{display:flex;gap:96px}
.footer__nav ul{display:flex;flex-direction:column;gap:18px}
.footer__nav a{font-size:16px;line-height:24px;color:var(--fg-2);transition:color .25s}
.footer__nav a:hover{color:var(--fg)}
.footer__big{width:100%;line-height:.78;padding-bottom:12px}
.footer__big span{
  display:block;font-family:var(--sans);font-weight:700;color:var(--fg);
  font-size:155px;line-height:.86;letter-spacing:-3px;white-space:nowrap;
  transform-origin:left center;
}

/* =========================================================
   REVEAL ANIMATIONS
   ========================================================= */
[data-reveal]{opacity:0;transform:translateY(34px);transition:opacity .9s var(--ease),transform .9s var(--ease)}
[data-reveal].is-visible{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){
  [data-reveal]{opacity:1;transform:none;transition:none}
  .hero__media img{animation:none}
  html{scroll-behavior:auto}
}

/* =========================================================
   RESPONSIVE — Tablet
   ========================================================= */
@media (max-width:1100px){
  :root{--sec-y:80px}
  .heading{font-size:40px;line-height:50px}
  .hero__title{font-size:78px;line-height:88px}
  .process__lead{font-size:38px;line-height:50px}
  .process__name{font-size:64px;line-height:72px}
  .testimonial__row{grid-template-columns:1fr 1fr;gap:40px}
  .testimonial__media{width:100%;height:560px}
  .faq__grid{grid-template-columns:1fr;gap:48px}
  .faq__list,.contact__grid .contact__form{max-width:none}
  .contact__grid{grid-template-columns:1fr;gap:48px}
  .services__head{flex-direction:column;align-items:flex-start;gap:28px}
  .services__intro{align-self:flex-start;max-width:520px}
  .footer__email{font-size:40px;line-height:52px}
  .footer__big span{font-size:120px}
}

/* =========================================================
   RESPONSIVE — Mobile
   ========================================================= */
@media (max-width:760px){
  :root{--pad-x:22px;--sec-y:64px;--gap:16px;--block-gap:32px}

  .nav__links{display:none}
  .nav__burger{display:flex}

  .heading{font-size:32px;line-height:40px;letter-spacing:-.5px}
  .body{font-size:15px;line-height:23px}
  .label{font-size:15px}

  /* Hero */
  .hero{height:100svh;min-height:560px}
  .hero__media img{object-position:center 30%}
  .hero__media::after{background:
    linear-gradient(180deg,rgba(10,10,10,.78) 0%,rgba(10,10,10,.4) 26%,rgba(10,10,10,.15) 45%,rgba(10,10,10,.35) 66%,rgba(10,10,10,.85) 100%)}
  .hero__title{font-size:52px;line-height:58px;margin-top:8px}
  .hero__words{position:static;transform:none;text-align:left;flex-direction:row;flex-wrap:wrap;gap:8px 16px;margin-top:24px}
  .hero__words li{font-size:14px;opacity:.85}
  .hero__words li::after{content:"·";margin-left:16px;opacity:.4}
  .hero__words li:last-child::after{content:""}
  .hero__bottom{flex-direction:column;align-items:flex-start;gap:24px;padding-bottom:32px}
  .hero__desc{font-size:15px;line-height:22px;max-width:none}
  .hero__tag{white-space:normal}

  /* About */
  .about__grid{grid-template-columns:1fr;gap:32px}
  .about__media{height:auto;aspect-ratio:710/650;order:-1}

  /* Projects */
  .projects__grid{grid-template-columns:1fr;gap:32px}
  .project__media{aspect-ratio:4/3;margin-bottom:14px}

  /* Services */
  .services{padding-bottom:64px}
  .services__grid{grid-template-columns:1fr 1fr;gap:16px}
  .service{transform:none!important}

  /* Zoom — simpler on mobile */
  .zoom{height:auto}
  .zoom__sticky{position:relative;height:auto;padding:0}
  .zoom__frame{width:100%!important;height:auto!important;aspect-ratio:1459/818;border-radius:0!important;transform:none!important}

  /* Process — vertical reveal instead of pin */
  .process__lead{font-size:26px;line-height:36px}
  .process__pin{height:auto}
  .process__stage{position:relative;height:auto;flex-direction:column;gap:48px;padding:48px 0}
  .process__names{position:static;display:flex;flex-direction:column;align-items:center;gap:0}
  .process__name{position:relative;font-size:34px;line-height:44px;color:var(--ghost)}
  .process__name.is-active{color:var(--fg)}
  .process__imgs{width:220px;height:280px}

  /* Testimonial */
  .testimonial__row{grid-template-columns:1fr;gap:28px}
  .testimonial__media{height:auto;aspect-ratio:542/650;width:100%}
  .testimonial__quote{font-size:19px;line-height:29px}

  /* FAQ / Contact */
  .faq__grid,.contact__grid{gap:36px}
  .faq__q{font-size:15px;gap:16px}

  /* Footer */
  .footer{padding-top:80px}
  .footer__top{flex-direction:column;gap:40px;margin-bottom:48px}
  .footer__email{font-size:30px;line-height:40px}
  .footer__nav{gap:48px}
  .footer__big span{font-size:54px;letter-spacing:-1px;white-space:nowrap}
}

@media (max-width:420px){
  .hero__title{font-size:44px;line-height:50px}
  .footer__big span{font-size:42px}
  .mobile-menu a{font-size:32px}
}
@media (max-width:340px){
  .services__grid{grid-template-columns:1fr}
}

/* =========================================================
   CUSTOM CURSOR (desktop / fine-pointer only) — matches Framer's cursor:none
   ========================================================= */
.cursor-dot,.cursor-ring{display:none}
@media (hover:hover) and (pointer:fine){
  *{cursor:none !important}
  .cursor-dot,.cursor-ring{
    display:block;position:fixed;top:0;left:0;border-radius:50%;
    pointer-events:none;z-index:100000;will-change:transform;
  }
  /* no mix-blend-mode — it forces full-page recomposite every frame; adapt color via JS instead */
  .cursor-dot{width:6px;height:6px;margin:-3px 0 0 -3px;background:#f8f8f8;box-shadow:0 0 0 1px rgba(0,0,0,.12);
    transition:width .22s var(--ease),height .22s var(--ease),background .25s,opacity .3s}
  .cursor-ring{width:34px;height:34px;margin:-17px 0 0 -17px;border:1px solid rgba(248,248,248,.6);
    transition:width .28s var(--ease),height .28s var(--ease),margin .28s var(--ease),border-color .28s,opacity .3s}
  body.cursor-hover .cursor-ring{width:60px;height:60px;margin:-30px 0 0 -30px;border-color:rgba(248,248,248,.95)}
  body.cursor-hover .cursor-dot{width:0;height:0}
  body.cursor-hidden .cursor-dot,body.cursor-hidden .cursor-ring{opacity:0}
  /* over light sections (zoom / pre-footer) — flip to dark */
  body.cursor-on-light .cursor-dot{background:#0a0a0a;box-shadow:0 0 0 1px rgba(255,255,255,.2)}
  body.cursor-on-light .cursor-ring{border-color:rgba(10,10,10,.65)}
}
