/* ==========================================================
   THREEZERO — Shared Stylesheet
   Layout & content: Dua. Typography/motion/interaction: merged pass.
   ONE shared stylesheet across index / services / work / about / contact.
   Classes and IDs are load-bearing — do not rename.
   ========================================================== */

/* ==========================================================
   1. VARIABLES
   ========================================================== */
:root {
  --bg: #0d0d0d;
  --bg-alt: #141414;
  --bg-raised: #171717;
  --text: #f5f5f0;
  --text-dim: #9a9a92;
  --accent: #e0a530;
  --accent-light: #f0c063;
  --border: #2a2a2a;
  --border-soft: rgba(255, 255, 255, .08);
  --border-strong: rgba(255, 255, 255, .15);
  --maxw: 1200px;
  --maxw-wide: 1300px;
  --hero-maxw: 1400px;
  --hero-top: 180px;
  --hero-bottom: 120px;
  --section-padding: 140px;
  --section-padding-tight: 48px;
  --container-padding: 24px;
  --canvas-width: 100%;
  --gap: 24px;
  --ease: cubic-bezier(.16, .8, .24, 1);
  --radius: 4px;
}

/* ==========================================================
   2. RESET
   ========================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: color .3s var(--ease); }

img { max-width: 100%; display: block; }

button { font: inherit; }

/* ==========================================================
   3. TYPOGRAPHY
   ========================================================== */
body {
  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;
}

h1, h2, h3 {
  font-weight: 600;
  letter-spacing: -0.06em;
  margin: 0;
}

p { line-height: 1.7; margin: 0; }

.eyebrow {
  display: block;
  font-size: .75rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section p.lede,
p.lede {
  color: var(--text-dim);
  max-width: 560px;
  font-size: 1.05rem;
}

/* ==========================================================
   4. LAYOUT
   ========================================================== */
.wrap {
  max-width: var(--maxw-wide);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section {
  padding: var(--section-padding) 0;
  border-bottom: 1px solid var(--border);
}

.section--alt { background: var(--bg-alt); }
.section--tight { padding: var(--section-padding-tight) 0; }

.section h1, .section h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.05;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

/* ==========================================================
   5. NAVBAR
   ========================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px 70px;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition:
    background .4s var(--ease),
    border-color .4s var(--ease),
    backdrop-filter .4s var(--ease),
    transform .4s var(--ease);
}

.nav.scrolled {
  background: rgba(13, 13, 13, .88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border-soft);
}

.nav--hidden { transform: translateY(-100%); }

.nav__logo {
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -1px;
}

.nav__links {
  display: flex;
  gap: 60px;
  list-style: none;
  margin: 0;
  padding: 0;
  text-transform: uppercase;
  font-size: 15px;
  letter-spacing: 2px;
}

.nav__links a { color: #d8d8d8; }
.nav__links a:hover,
.nav__links a.active { color: var(--accent); }

.nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-soft);
  color: #fff;
  font-size: .85rem;
  padding: 8px 16px;
  cursor: pointer;
  transition: .3s var(--ease);
}

.nav__toggle.active { color: var(--accent); border-color: var(--accent); }

@media (max-width: 768px) {
  .nav { padding: 25px; }

  .nav__toggle { display: block; }

  .nav__links {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: #111;
    flex-direction: column;
    padding: 25px;
    gap: 20px;
  }

  .nav__links.is-open { display: flex; }
}

/* ==========================================================
   6. BUTTONS
   ========================================================== */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: var(--accent);
  color: #14110a;
  font-weight: 600;
  font-size: .9rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition:
    transform .3s var(--ease),
    box-shadow .3s var(--ease),
    background .3s var(--ease);
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .3), transparent);
  transition: left .6s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
  background: var(--accent-light);
  box-shadow: 0 12px 30px rgba(224, 165, 48, .25);
}

.btn:hover::before { left: 120%; }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  background: rgba(224,165,48,0.08);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 25px rgba(224,165,48,.25);
  transform: translateY(-2px);
}

.hero .btn, .cta-clay .btn { padding: 18px 35px; font-size: 18px; }

.text-center { text-align: center; }
.centered-copy { max-width: 560px; margin: 0 auto 24px; }

/* ==========================================================
   7. HERO
   ========================================================== */
.hero {
  padding: 180px 0 120px;
  position: relative;
  overflow: hidden;
  transition: transform .25s ease;
}

.hero .wrap { max-width: var(--hero-maxw); }

.hero .eyebrow { margin-bottom: 35px; }

.hero h1 {
  font-size: clamp(80px, 12vw, 170px);
  line-height: .88;
  letter-spacing: -0.07em;
  font-weight: 700;
  max-width: 1200px;
  margin: 40px 0 80px;
}

.hero-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
}

.hero-bottom p {
  max-width: 450px;
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--text-dim);
}

@media (max-width: 800px) {
  .hero-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 500px) {
  .hero h1 { font-size: clamp(48px, 14vw, 80px); margin: 24px 0 48px; }
}

/* ==========================================================
   FEATURED SECTION
========================================================== */

.featured{
    position:relative;
    padding:40px 0 90px;
}

/* ==========================
   HEADER
========================== */

.featured-header{
    max-width:900px;
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    text-align:left;
    margin-bottom:45px;
}

.featured-title{
    max-width:900px;
    margin:20px 0;
    font-size:clamp(5rem,8vw,7.5rem);
    line-height:.9;
    letter-spacing:-.06em;
}

.featured-desc{
    max-width:680px;
    margin:0 0 30px;
    color:var(--text-dim);
    font-size:1.08rem;
    line-height:1.9;
}

.featured-header .btn{
    margin-top:10px;
    align-self:flex-start;
}

/* ==========================
   PREVIEW
========================== */

.featured-preview{
    position:relative;
    width:100%;
    margin-top:45px;
}

/* ==========================
   BROWSER
========================== */

.browser{
    position:relative;
    width:100%;
    border-radius:28px;
    overflow:hidden;
    background:#141414;
    border:1px solid rgba(255,255,255,.07);
    box-shadow:0 25px 60px rgba(0,0,0,.28);
    transition:.45s ease;
}

.browser::before{
    content:"";
    position:absolute;
    inset:0;
    border:2px solid #e0a530;
    border-radius:28px;
    opacity:0;
    pointer-events:none;
    transition:.35s ease;
}

.browser:hover::before{
    opacity:1;
}

.browser:hover{
    transform:translateY(-8px);
    box-shadow:0 40px 90px rgba(0,0,0,.45);
}
/* ==========================
   IMAGE
========================== */

.browser-image{

    aspect-ratio:16/9;

    overflow:hidden;

    background:#111;

}

.browser-image img{

    width:100%;

    height:100%;

    object-fit:cover;

    display:block;

    transition:transform .8s ease;

}

/* ==========================
   FOOTER
========================== */

.browser-info{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:17px 20px;

    border-top:1px solid rgba(255,255,255,.06);

}

.browser-info small{

    color:#888;

    text-transform:uppercase;

    letter-spacing:.15em;

    font-size:.72rem;

}

.browser-info h4{

    margin-top:6px;

    font-size:1rem;

}

.browser-info span{

    color:#888;

}

/* ==========================
   HOVER
========================== */

.browser:hover{

    transform:translateY(-8px);

    box-shadow:0 45px 120px rgba(0,0,0,.45);

}

.browser:hover .browser-image img{

    transform:scale(1.05);

}

/* ==========================
   MOBILE
========================== */

@media (max-width:900px){

    .featured{

        padding:90px 0;

    }

    .featured-header{

        margin-bottom:45px;

    }

    .featured-title{

        font-size:2.8rem;

    }

    .featured-desc{

        max-width:100%;

    }

}

/* ==========================================================
   10. SERVICES
   ========================================================== */


/* ==========================================================
   HOMEPAGE SERVICES — NUMBERED ROW LIST
   ========================================================== */

.services-list{
    max-width:var(--maxw-wide);
    margin:80px auto 0;
    padding:0 24px;
}

.service-row{
    display:grid;
    grid-template-columns:70px 1fr;
    gap:24px;

    padding:44px 0;

    border-top:1px solid var(--border-soft);

    color:#fff;
    text-decoration:none;

    position:relative;
    overflow:hidden;

    transition:
        background .65s var(--ease),
        padding .65s var(--ease),
        border-color .65s var(--ease);
}

.service-row:last-child{
    border-bottom:1px solid var(--border-soft);
}


/* ---------- Number ---------- */

.service-number,
.service-row span:first-child{
    color:var(--accent);
    font-size:.95rem;
    letter-spacing:.18em;
    padding-top:8px;
}


/* ---------- Content ---------- */

.service-content{
    display:flex;
    flex-direction:column;
}

.service-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:40px;
}


/* ---------- Heading ---------- */

.service-header h3,
.service-row h3{
    margin:0;

    font-size:clamp(2rem,3vw,3rem);

    font-weight:600;

    line-height:1.05;

    letter-spacing:-.04em;

    transition:
        color .45s var(--ease),
        transform .55s var(--ease);
}


/* ---------- Arrow ---------- */

.arrow{
    flex-shrink:0;

    text-align:right;

    font-size:2rem;

    color:#d4d4d4;

    transition:
        transform .55s var(--ease),
        color .45s var(--ease);
}


/* ==========================================================
   EXPAND CONTENT
   ========================================================== */

.service-expand{

    display:grid;

    grid-template-columns:1fr 340px;

    gap:70px;

    max-height:0;

    opacity:0;

    overflow:hidden;

    margin-top:0;

    transition:
        max-height .7s var(--ease),
        opacity .45s var(--ease),
        margin-top .6s var(--ease);
}


.service-text{

    transform:translateY(18px);

    transition:transform .6s var(--ease);
}


.service-text p{

    max-width:560px;

    color:var(--text-dim);

    line-height:1.9;

    font-size:1.4rem;
}


/* ---------- Visual Placeholder ---------- */

.service-visual{

    min-height:170px;

    border-radius:18px;

    border:1px dashed rgba(255,255,255,.08);

    background:
        radial-gradient(
            circle at center,
            rgba(224,165,48,.08),
            transparent 70%
        );
}


/* ==========================================================
   ACTIVE STATE
   ========================================================== */

.service-row.active{

    background:
        linear-gradient(
            90deg,
            rgba(224,165,48,.05),
            transparent
        );

    padding:58px 0;
}

.service-row.active .service-header h3,
.service-row.active h3{

    color:var(--accent);

    transform:translateX(10px);
}

.service-row.active .arrow{

    color:var(--accent);

    transform:translateX(14px);
}

.service-row.active .service-expand{

    max-height:260px;

    opacity:1;

    margin-top:38px;
}

.service-row.active .service-text{

    transform:translateY(0);
}


/* ==========================================================
   HOVER EXPAND
   ========================================================== */

.service-row:hover{

    background:
        linear-gradient(
            90deg,
            rgba(224,165,48,.05),
            transparent
        );

    padding:60px 0;
}

.service-row:hover .service-header h3,
.service-row:hover h3{

    color:var(--accent);

    transform:translateX(10px);
}

.service-row:hover .arrow{

    transform:translateX(14px);

    color:var(--accent);
}

.service-row:hover .service-expand{

    max-height:260px;

    opacity:1;

    margin-top:34px;
}

.service-row:hover .service-text{

    transform:translateY(0);
}


/* ==========================================================
   MOBILE — HOMEPAGE SERVICES
   ========================================================== */

@media (max-width:900px){

    .service-header{
        gap:20px;
    }

    .service-expand{

        grid-template-columns:1fr;

        gap:24px;
    }

    .service-visual{
        display:none;
    }
}


@media (max-width:768px){

    .service-row{

        grid-template-columns:50px 1fr;

        padding:34px 0;
    }

    .service-header h3,
    .service-row h3{

        font-size:1.7rem;
    }

    .arrow{

        font-size:1.6rem;
    }

    .service-row:hover{

        padding:42px 0;
    }

    .service-row:hover .service-expand{

        margin-top:22px;

        max-height:220px;
    }

    .service-text p{

        font-size:1.1rem;
    }
}


/* ==========================================================
   EDITORIAL NUMBERED BLOCK — SERVICES PAGE
   Locomotive-style
   ========================================================== */

.service-block{

    min-height:80vh;

    display:flex;

    flex-direction:column;

    justify-content:center;

    border-bottom:1px solid var(--border);

    padding:64px 0;

    position:relative;

    /*
       No overflow constraint here on purpose:
       overflow-x:hidden paired with overflow-y:visible
       silently computes to overflow-y:auto per CSS spec.
       This was causing every block to become its own
       scroll container and creating the double-scroll bug.
    */

    perspective:1400px;

    transition:
        background .5s var(--ease);
}


/* ==========================================================
   GLOW / BACKGROUND EFFECTS
   ========================================================== */

.service-block::before{

    content:"";

    position:absolute;

    width:400px;

    height:400px;

    right:-200px;

    top:50%;

    transform:translateY(-50%);

    background:rgba(224,165,48,.06);

    filter:blur(100px);

    pointer-events:none;

    transition:
        opacity .5s var(--ease);
}


.service-block::after{

    content:"";

    position:absolute;

    width:320px;

    height:320px;

    left:-160px;

    bottom:-160px;

    background:rgba(255,255,255,.025);

    filter:blur(90px);

    pointer-events:none;
}


/* ---------- Alternating Glow ---------- */

.service-block:nth-of-type(even)::before{

    left:-200px;

    right:auto;
}

.service-block:nth-of-type(even)::after{

    right:-160px;

    left:auto;
}


/* ==========================================================
   SERVICE BLOCK HOVER
   ========================================================== */

.service-block:hover{

    background:
        linear-gradient(
            90deg,
            rgba(224,165,48,.05),
            transparent
        );
}

.service-block:hover::before{

    opacity:1.4;
}


/* ==========================================================
   BLOCK TOP
   ========================================================== */

.service-block__top{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:24px;

    font-size:.8rem;

    letter-spacing:.1em;

    text-transform:uppercase;

    color:var(--text-dim);
}


.service-block__number{

    color:var(--accent);

    font-weight:700;

    transition:
        text-shadow .4s var(--ease);
}


.service-block:hover .service-block__number{

    text-shadow:
        0 0 18px rgba(224,165,48,.55);
}


/* ==========================================================
   BLOCK HEADING
   ========================================================== */

.service-block h2{

    font-size:clamp(3rem,10vw,7rem);

    line-height:1.05;

    padding-top:.08em;

    transition:
        color .5s var(--ease);
}


.service-block:hover h2{

    color:var(--accent);
}


/* ==========================================================
   WORD STAGGER REVEAL
   Words are injected by script.js
   ========================================================== */

.service-block h2 .word{

    display:inline-block;

    opacity:0;

    transform:translateY(35px);

    transition:
        opacity .6s var(--ease),
        transform .6s var(--ease);

    will-change:
        opacity,
        transform;
}


.service-block.show h2 .word{

    opacity:1;

    transform:none;
}


/* ==========================================================
   BLOCK REVEAL
   ========================================================== */

.service-block.reveal{

    transform:none;

    transition:
        opacity .6s var(--ease);
}


/* ==========================================================
   3D TILT TARGET
   Mouse-tracked rotation via script.js
   ========================================================== */

.service-block .wrap{

    position:relative;

    z-index:20;

    transition:
        transform .5s var(--ease);

    transform-style:preserve-3d;

    will-change:transform;
}
.card{
    position:relative;
    overflow:hidden;
    transition:
        transform .45s var(--ease),
        border-color .45s var(--ease),
        box-shadow .45s var(--ease);
}


.card:hover{

    transform:translateY(-10px);

    border-color:var(--accent);

    box-shadow:
    0 25px 60px rgba(224,165,48,.18);

}



.card::before{

    content:"";

    position:absolute;

    inset:0;

    background:
    linear-gradient(
        120deg,
        transparent,
        rgba(224,165,48,.12),
        transparent
    );

    transform:translateX(-100%);

    transition:.7s ease;

}



.card:hover::before{

    transform:translateX(100%);

}

/* ==========================================================
   MOBILE — SERVICE BLOCKS
   ========================================================== */

@media (max-width:800px){

    .service-block{

        min-height:auto;

        padding:90px 0;
    }

    .service-block h2{

        font-size:3rem;
    }
}

/* ==========================================================
   11. WORK / CASE STUDIES
   ========================================================== */

/* ---- Large case list (homepage) ---- */
.work-title {
  font-size: clamp(60px, 8vw, 120px);
  line-height: .9;
  letter-spacing: -.06em;
  margin: 40px 0 90px;
}

.case-list { display: flex; flex-direction: column; gap: 100px; }

.case-item { color: #fff; display: block; }

.case-image {
  height: 700px;
  background: #181818;
  border: 1px solid var(--border-soft);
  position: relative;
  border-radius: 28px;
isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #777;
  text-transform: uppercase;
  letter-spacing: .2em;
  overflow: hidden;
  will-change: transform;
transform-origin: center;
  transition:
transform .7s var(--ease),
border-color .5s var(--ease),
box-shadow .5s var(--ease);
}

.case-image{
    position:relative;
    overflow:hidden;
    border-radius:28px;
    border:1px solid rgba(255,255,255,.07);
}

.case-image::after{
    content:"";
    position:absolute;
    inset:0;
    border-radius:28px;
    padding:1px;
    background:linear-gradient(
        90deg,
        transparent,
        transparent 35%,
        #e0a530 50%,
        transparent 65%,
        transparent
    );
    background-size:250% 100%;
    animation:borderMove 4s linear infinite;

    -webkit-mask:
      linear-gradient(#000 0 0) content-box,
      linear-gradient(#000 0 0);
    -webkit-mask-composite:xor;
    mask-composite:exclude;

    opacity:0;
    transition:.35s;
}

.case-item:hover .case-image::after{
    opacity:1;
}
.case-item:hover .case-image{
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 45px 120px rgba(0,0,0,.45);
}

.case-info {
  margin-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.case-info h3 { font-size: 2.5rem; margin: 0; transition: color .35s var(--ease); }
.case-item:hover .case-info h3 { color: var(--accent); }
.case-item {
  transition: transform .45s var(--ease);
}

.case-item:hover {
  transform: translateY(-10px);
}
.case-info p { color: var(--text-dim); margin: 0; }

@media (max-width: 800px) {
  .case-image { height: 350px; }
  .case-info { flex-direction: column; align-items: flex-start; gap: 15px; }
  .case-info h3 { font-size: 1.8rem; }
}


/* ==========================================================
   12. ABOUT
   ========================================================== */

/* ---- Magazine layout (homepage) ---- */
.about-title {
  font-size: clamp(60px, 9vw, 130px);
  line-height: .9;
  letter-spacing: -.06em;
  max-width: 1000px;
  margin: 50px 0 100px;
}

.about-layout { display: grid; grid-template-columns: 1.4fr .8fr; gap: 80px; align-items: end; }

.about-image {
  height: 650px;
  background: #181818;
  border: 1px solid var(--border-soft);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #777;
  letter-spacing: .2em;
  text-transform: uppercase;
  overflow: hidden;
}

.about-text p { font-size: 1.3rem; line-height: 1.7; color: var(--text-dim); margin-bottom: 40px; }

@media (max-width: 900px) {
  .about-layout { grid-template-columns: 1fr; }
  .about-image { height: 400px; }
}

/* ==========================================================
   13. CTA
   ========================================================== */

/* ---- Left-aligned big CTA (homepage) ---- */
.cta-clay { padding: 180px 0; }

.cta-clay h2 {
  font-size: clamp(70px, 11vw, 160px);
  line-height: .88;
  letter-spacing: -.07em;
  margin: 40px 0 70px;
}

/* ---- Legacy centered CTA (kept for other pages) ---- */
.cta-section { padding: 160px 0; text-align: center; }
.cta-content { max-width: 900px; margin: 0 auto; }
.cta-content h2 {
  font-size: clamp(3rem, 7vw, 7rem);
  line-height: .95;
  letter-spacing: -.05em;
  margin: 25px auto;
}
.cta-content p {
  max-width: 600px;
  margin: 0 auto 45px;
  color: var(--text-dim);
  font-size: 1.2rem;
}

/* ==========================================================
   14. FOOTER
   ========================================================== */

/* ---- Homepage footer ---- */
.footer-clay { padding: 100px 0 40px; border-top: 1px solid var(--border-strong); }

.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; }

.footer-logo { font-size: 3rem; font-weight: 700; letter-spacing: -.05em; display: inline-block; }

.footer-nav { display: flex; flex-direction: column; gap: 18px; }
.footer-nav a {
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: .85rem;
  color: #aaa;
  transition: color .3s var(--ease);
}
.footer-nav a:hover { color: #fff; }

.footer-bottom {
  margin-top: 80px;
  padding-top: 25px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-between;
  color: #777;
  font-size: .85rem;
}

@media (max-width: 700px) {
  .footer-top, .footer-bottom { flex-direction: column; gap: 16px; align-items: flex-start; }
}

/* ---- Legacy multi-column footer (kept for other pages) ---- */
.footer {
  padding: 100px 0 35px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  font-size: .85rem;
  color: var(--text-dim);
}
.footer__links { display: flex; gap: 24px; list-style: none; padding: 0; margin: 0; }
.footer__links a:hover { color: var(--accent); }

.footer-grid { display: grid; grid-template-columns: 1.2fr .7fr 1.5fr; gap: 80px; }
.footer-contact { display: flex; flex-direction: column; gap: 10px; margin-bottom: 40px; }
.footer-contact a { color: #d5d5d5; }
.footer-social { display: flex; gap: 25px; }
.footer-social a { color: #999; transition: color .3s var(--ease); }
.footer-social a:hover { color: #fff; }
.footer-menu { display: flex; flex-direction: column; gap: 18px; }
.footer-menu a {
  color: #cfcfcf;
  text-transform: uppercase;
  letter-spacing: .15em;
  transition: color .3s var(--ease);
}
.footer-menu a:hover { color: #fff; }
.footer-locations { display: grid; grid-template-columns: repeat(2, 1fr); gap: 45px; }
.footer-locations h4 { margin-bottom: 10px; font-size: 1rem; }
.footer-locations p { color: #8f8f8f; line-height: 1.7; }
.footer-policy { display: flex; gap: 35px; }
.footer-policy a { color: #888; }
.footer-policy a:hover { color: #fff; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr; gap: 60px; }
  .footer-locations { grid-template-columns: 1fr; }
}

/* ==========================================================
   15. GRID / CARD / THUMB UTILITIES  (kept for other pages)
   ========================================================== */
.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 800px) {
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
}

.card {
  border: 1px solid var(--border);
  padding: 24px;
  background: var(--bg-alt);
  transition: transform .4s var(--ease), border-color .4s var(--ease);
}
.card:hover { transform: translateY(-10px); border-color: var(--accent); }
.card h3 { margin: 0 0 8px; font-size: 1.1rem; }
.card p { margin: 0; color: var(--text-dim); font-size: .9rem; }

.thumb {
  aspect-ratio: 4 / 5;
  background: #1c1c1c;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: .8rem;
  margin-bottom: 16px;
  overflow: hidden;
}
.thumb--wide { aspect-ratio: 16 / 10; }

/* ==========================================================
   16. SCROLL-REVEAL & ENTRANCE ANIMATION
   ========================================================== */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.show { opacity: 1; transform: none; }

.hero .eyebrow, .hero h1, .hero-bottom {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 1s var(--ease) forwards;
}
.hero .eyebrow { animation-delay: .1s; }
.hero h1 { animation-delay: .25s; }
.hero-bottom { animation-delay: .45s; }

@keyframes fadeUp {
  to { opacity: 1; transform: none; }
}

/* ==========================================================
   17. CURSOR GLOW
   ========================================================== */
.cursor-glow {
  position: fixed;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(224, 165, 48, .18), rgba(224, 165, 48, .08) 30%, transparent 70%);
  filter: blur(20px);
  transform: translate(-50%, -50%);
  z-index: 9999;
  opacity: 0;
  transition: opacity .3s ease;
}
body:hover .cursor-glow { opacity: 1; }

/* ==========================================================
   18. ACCESSIBILITY
   ========================================================== */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .cursor-glow { display: none; }
}

@media (hover: none) {
  .cursor-glow { display: none; }
}

/* ==========================================================
   18B. FORM (contact page)
   ========================================================== */
.form-field { display: block; margin-bottom: 28px; }

.form-field span {
  display: block;
  font-size: .75rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text);
  font: inherit;
  border-radius: var(--radius);
  transition: border-color .3s var(--ease), background .3s var(--ease);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-raised);
}

.form-field textarea { resize: vertical; min-height: 140px; }

.contact-direct h3 { margin-bottom: 24px; }
.contact-direct p { color: var(--text-dim); margin-bottom: 14px; }
.contact-direct a { color: var(--text); transition: color .3s var(--ease); }
.contact-direct a:hover { color: var(--accent); }

/* ==========================================================
   19. GRAIN TEXTURE
   ========================================================== */
.grain {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: .05;
  /* static — no drift animation. The earlier animated version is what was
     reading as "moving around when scrolling" */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.35' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 260px 260px;
}

@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
}

/* ==========================================================
   20. HERO PARTICLE CANVAS (Three.js — signature moment)
   ========================================================== */
.hero .wrap { position: relative; z-index: 20; }

.hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  pointer-events: none;
  opacity: .7;
}

.hero.hero--ring .hero-canvas {
  opacity: 1;
}

.hero.hero--ring .hero-ray {
  position: absolute;
  pointer-events: none;
  z-index: 12;
  opacity: .32;
  filter: blur(32px);
  transition: opacity .3s ease;
}

.hero-ray--one {
  top: 8%;
  right: 12%;
  width: 34%;
  height: 68%;
  background: radial-gradient(circle at 24% 12%, rgba(255, 216, 132, .28), transparent 42%);
  animation: hero-ray-glow 6.5s ease-in-out infinite alternate;
}

.hero-ray--two {
  bottom: 14%;
  right: 28%;
  width: 16%;
  height: 34%;
  background: radial-gradient(circle at 50% 20%, rgba(255, 205, 120, .18), transparent 55%);
  animation: hero-ray-glow 8.5s ease-in-out infinite alternate-reverse;
}

.hero.hero--ring h1 {
  font-family: "Poppins", "Inter", sans-serif;
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.9;
}

.hero.hero--ring h1,
.hero.hero--ring .hero-bottom,
.hero.hero--ring .hero .eyebrow {
  position: relative;
  z-index: 21;
}

.hero.hero--ring .hero-cards {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 15;
}

.hero.hero--ring .hero-card {
  position: absolute;
  border-radius: 26px;
  padding: 24px;
  background: rgba(10, 10, 12, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.22);
  color: #f5f5f0;
  pointer-events: auto;
}

.hero.hero--ring .hero-card--preview {
  top: 14%;
  right: 8%;
  width: min(340px, 32vw);
}

.hero.hero--ring .hero-card--chat {
  top: 46%;
  right: 10%;
  width: min(260px, 27vw);
}

.hero-card--stats {
  bottom: 12%;
  right: 18%;
  width: min(220px, 20vw);
}

.hero.hero--ring .hero-card__eyebrow {
  display: block;
  color: var(--accent);
  font-size: .75rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hero.hero--ring .hero-card h3 {
  margin: 0 0 18px;
  font-size: 1.05rem;
  line-height: 1.3;
}

.hero.hero--ring .hero-card__thumb {
  width: 100%;
  height: 140px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.08);
}

.hero-card p,
.hero-card__chat-row,
.hero-card__meta span {
  margin: 0;
  color: #d6d6d1;
  font-size: .92rem;
  line-height: 1.7;
}

.hero-card__chat-row {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.hero-card__stat {
  margin: 18px 0 14px;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -.02em;
}

.hero-card__meta {
  display: grid;
  gap: 10px;
}

.hero-card__meta span {
  display: block;
}

@keyframes hero-ray-glow {
  0% { opacity: .28; filter: blur(28px); }
  100% { opacity: .38; filter: blur(36px); }
}

@keyframes hero-card-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.hero-card--preview { animation: hero-card-bob 8.4s ease-in-out infinite; }
.hero-card--chat { animation: hero-card-bob 10s ease-in-out infinite alternate; }
.hero-card--stats { animation: hero-card-bob 9.2s ease-in-out infinite alternate-reverse; }

/* Reusable ambient-sphere canvas — drop into ANY section (not just
   service-block) for the small 2-ball motif. Positioned right-half. */
.section-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  pointer-events: none;
  opacity: .85;
}

/* Any section holding a sphere canvas needs its own text lifted above it
   and above the grain layer — works site-wide without per-page overrides */
.section:has(.section-canvas),
.hero {
  position: relative;
}

.section:has(.section-canvas) > .wrap {
  position: relative;
  z-index: 20;
}

@media (max-width: 800px) {
  /* Keep them present but unobtrusive on mobile; radius scaling happens in script.js. */
  .hero-canvas { opacity: .5; }
  .section-canvas { opacity: .55; }
}
/* ==========================================================
   WORK PAGE — CASE STUDIES
========================================================== */

.grid--2{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:50px;
}


.case-item{
    display:block;
    color:var(--text);
    transition:.45s var(--ease);
}


.case-item:hover{
    transform:translateY(-10px);
}


/* IMAGE BOX */

.thumb--wide{

    aspect-ratio:16/9;

    display:flex;

    align-items:center;

    justify-content:center;

    background:
    linear-gradient(
        135deg,
        #171717,
        #222
    );

    border:1px solid var(--border-soft);

    border-radius:20px;

    color:#777;

    font-size:1rem;

    letter-spacing:.15em;

    text-transform:uppercase;

    overflow:hidden;

    transition:.45s var(--ease);

}


.case-item:hover .thumb--wide{

    border-color:var(--accent);

    box-shadow:
    0 30px 80px rgba(0,0,0,.45);

}


/* CATEGORY */

.case-item p{

    margin-top:20px;

    color:var(--accent);

    text-transform:uppercase;

    letter-spacing:.18em;

    font-size:.75rem;

}


/* TITLE */

.case-item h3{

    margin-top:8px;

    font-size:2rem;

    letter-spacing:-.04em;

}



/* MOBILE */

@media(max-width:800px){

    .grid--2{

        grid-template-columns:1fr;

        gap:35px;

    }


    .case-item h3{

        font-size:1.6rem;

    }

}

/* ==========================================================
   SCROLL REVEAL
========================================================== */

.reveal{
    opacity:0;
    transform:translateY(50px);
    transition:
        opacity .8s ease,
        transform .8s ease;
}

.reveal.show{
    opacity:1;
    transform:translateY(0);
}
/* ==========================================================
   ABOUT MEMBER
========================================================== */

.about-member{

    display:grid;

    grid-template-columns:1.2fr .8fr;

    align-items:center;

    gap:80px;

}

.about-member__content h2{

    font-size:clamp(4rem,8vw,7rem);

    line-height:.9;

    margin:15px 0;

}

.about-member__content h5{

    font-size:1rem;

    font-weight:500;

    letter-spacing:.2em;

    text-transform:uppercase;

    color:var(--accent);

    margin-bottom:30px;

}

.about-member__content p{

    max-width:560px;

}

.about-member__visual{

    position:relative;

    height:500px;

}

.member-canvas{

    width:100%;

    height:100%;

    display:block;

}
.member-canvas{
    width:100%;
    height:100%;
    display:block;
    filter: drop-shadow(0 0 40px rgba(224,165,48,.15));
}
.team-member{
    display:grid;
    grid-template-columns:1.1fr 0.9fr;
    align-items:center;
    gap:80px;
    position:relative;
}

.member-info{
    position:relative;
    z-index:2;
}

.member-visual{
    position:relative;
    width:100%;
    height:520px;
}

.member-canvas{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    display:block;
}

@media(max-width:900px){

.about-member{

grid-template-columns:1fr;

gap:40px;

}

.about-member__visual{

height:320px;

}

}
/* ==========================================================
   WORK CARDS — VERTICAL IMAGE SCROLL ON HOVER
   ========================================================== */

/* Card itself */
.grid--2 .case-item {
  display: block;
  position: relative;
  color: var(--text);
  transition:
    transform .6s var(--ease),
    box-shadow .6s var(--ease);
}

/* Subtle card lift */
.grid--2 .case-item:hover {
  transform: translateY(-8px);
}


/* ==========================================================
   PREVIEW WINDOW
   ========================================================== */

.grid--2 .thumb--wide {
  position: relative;

  /* Fixed preview height */
  height: 300px;
  aspect-ratio: auto;

  overflow: hidden;

  display: block;

  padding: 0;
  margin: 0;

  background: #171717;

  border: 1px solid var(--border-soft);
  border-radius: 20px;

  isolation: isolate;

  transition:
    border-color .6s var(--ease),
    box-shadow .6s var(--ease);
}


/* Hover border + shadow */
.grid--2 .case-item:hover .thumb--wide {
  border-color: rgba(224, 165, 48, .7);

  box-shadow:
    0 30px 80px rgba(0, 0, 0, .45);
}


/* ==========================================================
   LONG WEBSITE SCREENSHOT
   ========================================================== */

.grid--2 .thumb--wide img {
  display: block;

  width: 100%;
  height: auto;

  max-width: none;

  /* IMPORTANT:
     No scaling — only vertical movement */
  transform: translateY(0);

  transition:
    transform 4s cubic-bezier(.16, .8, .24, 1);

  will-change: transform;
}


/* ==========================================================
   HOVER — SCROLL IMAGE UP
   ========================================================== */

.grid--2 .case-item:hover .thumb--wide img {
  /*
     Adjust this value according to screenshot length.

     Example:
     420px preview + 1200px screenshot
     => approximately -780px
  */

  transform: translateY(
    calc(-1 * (100% - 420px))
  );
}


/* ==========================================================
   IMAGE FADE / VIGNETTE
   ========================================================== */

.grid--2 .thumb--wide::after {
  content: "";

  position: absolute;
  inset: 0;

  pointer-events: none;

  background:
    linear-gradient(
      to bottom,
      rgba(0,0,0,.08),
      transparent 12%,
      transparent 88%,
      rgba(0,0,0,.12)
    );

  z-index: 2;

  opacity: .7;

  transition: opacity .5s ease;
}

.grid--2 .case-item:hover .thumb--wide::after {
  opacity: .25;
}


/* ==========================================================
   CONTENT BELOW IMAGE
   ========================================================== */

.grid--2 .case-item > p,
.grid--2 .case-item > h3,
.grid--2 .case-item .case-content {
  transition:
    opacity .6s var(--ease),
    transform .6s var(--ease);
}


/* Normal content */
.grid--2 .case-item > p {
  margin-top: 20px;
}

.grid--2 .case-item > h3 {
  margin-top: 8px;
}


/* On hover content fades/slides down */
.grid--2 .case-item:hover > p,
.grid--2 .case-item:hover > h3,
.grid--2 .case-item:hover .case-content {
  opacity: 0;
  transform: translateY(18px);
}


/* ==========================================================
   META ADS / IMAGE CARD
   ========================================================== */

/* This specifically keeps your Meta Ads image visible */
.grid--2 .thumb--wide img {
  visibility: visible;
  opacity: 1;
}


/* ==========================================================
   COMING SOON CARDS
   ========================================================== */

.grid--2 .thumb--wide:not(:has(img)) {
  color: #777;
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 800px) {

  .grid--2 {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .grid--2 .thumb--wide {
    height: 360px;
    border-radius: 16px;
  }

  .grid--2 .thumb--wide img {
    transition-duration: 3.5s;
  }

  .grid--2 .case-item:hover {
    transform: translateY(-5px);
  }

}


/* ==========================================================
   TOUCH DEVICES
   Don't force hover-scroll on phones
   ========================================================== */

@media (hover: none) {

  .grid--2 .case-item:hover {
    transform: none;
  }

  .grid--2 .case-item:hover .thumb--wide {
    box-shadow: none;
    border-color: var(--border-soft);
  }

  .grid--2 .case-item:hover > p,
  .grid--2 .case-item:hover > h3,
  .grid--2 .case-item:hover .case-content {
    opacity: 1;
    transform: none;
  }

}
/* ==========================================================
   KEEP WORK CARD TEXT ALWAYS VISIBLE
   ========================================================== */

.grid--2 .case-item > p,
.grid--2 .case-item > h3,
.grid--2 .case-item .case-content,
.grid--2 .case-item .case-content p,
.grid--2 .case-item .case-content h3 {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

/* Keep text visible on hover too */
.grid--2 .case-item:hover > p,
.grid--2 .case-item:hover > h3,
.grid--2 .case-item:hover .case-content,
.grid--2 .case-item:hover .case-content p,
.grid--2 .case-item:hover .case-content h3 {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}