/* ==========================================================================
   BASE.CSS — loads on every single page, always.
   Two kinds of rules live here, clearly separated below:
     1. SITE CHROME — header/nav, mobile menu, footer. Literally the same
        markup on every page (header.php / footer.php), so it only needs to
        exist once.
     2. SHARED COMPONENTS — small reusable pieces used by 2+ pages (a page
        "head" banner, the services grid wrapper, the team grid wrapper,
        the big hero-style heading). Keeping these here (instead of copy-
        pasted into every page file) means changing the brand look in one
        place updates every page that uses it.

   Everything page-specific (hero art, work rail, milestones, contact form
   layout, blog grid, etc.) lives in its own small file in this folder —
   home.css, agency.css, services.css, contact.css, blog.css,
   blog-single.css — and is only loaded on the page that needs it. See
   functions.php → django_theme_assets() for which file loads where.
   ========================================================================== */

:root{
  --black: #0a0908;
  --near-black: #131211;
  --card-dark: #1b1a18;
  --cream: #eeeae1;
  --cream-dim: #b8b3a8;
  --orange: #ff5a1f;
  --teal: #6fc7bf;
  --light-bg: #e9e6df;
  --line: rgba(238,234,225,0.14);
}

*{margin:0;padding:0;box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  background:var(--black);
  color:var(--cream);
  font-family:'Inter',sans-serif;
  overflow-x:hidden;
}
a{color:inherit;text-decoration:none;}

::selection{background:var(--orange);color:var(--black);}

/* grain texture, shared */
.grain{
  position:absolute; inset:0;
  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)' opacity='0.35'/%3E%3C/svg%3E");
  mix-blend-mode:overlay;
  pointer-events:none;
}

/* -------------------------------------------------------------------------
   SITE CHROME
   ------------------------------------------------------------------------- */

/* ---------- NAV (site-wide header, header.php) ---------- */
.site-header{
  position:fixed; top:0; left:0; right:0; z-index:100;
  display:flex; align-items:center; justify-content:space-between;
  padding:28px clamp(20px,5vw,64px);
  mix-blend-mode:difference;
}
.logo{
  font-size:22px; font-weight:800; letter-spacing:0.5px;
}
.logo span{color:var(--orange);}
.nav-right{display:flex; align-items:center; gap:22px;}
.socials{display:flex; gap:16px;}
.socials a{
  width:34px; height:34px; border-radius:50%;
  border:1px solid var(--line);
  display:flex; align-items:center; justify-content:center;
  font-size:13px;
  transition:background .4s cubic-bezier(.22,1,.36,1), transform .4s cubic-bezier(.22,1,.36,1), border-color .4s cubic-bezier(.22,1,.36,1);
}
.socials a:hover{background:var(--orange); color:var(--black); border-color:var(--orange); transform:translateY(-2px);}
.burger{
  width:34px; height:20px; position:relative; cursor:pointer;
  background:none; border:none; padding:0;
  z-index:210;
}
.burger span{
  position:absolute; left:0; width:100%; height:2px; background:var(--cream);
  transition:all .4s cubic-bezier(.22,1,.36,1);
}
.burger span:nth-child(1){top:0;}
.burger span:nth-child(2){top:9px; width:70%;}
.burger span:nth-child(3){bottom:0;}
.burger:hover span{width:100%;}
.burger.open span:nth-child(1){top:9px; transform:rotate(45deg);}
.burger.open span:nth-child(2){opacity:0; width:0;}
.burger.open span:nth-child(3){bottom:9px; transform:rotate(-45deg);}

/* ---------- MOBILE / DROPDOWN MENU ---------- */
.menu-overlay{
  position:fixed; inset:0; z-index:200;
  display:flex; justify-content:flex-end; align-items:flex-start;
  padding:clamp(16px,4vw,32px);
  background:rgba(6,5,4,0.55);
  opacity:0; pointer-events:none;
  transition:opacity .4s cubic-bezier(.22,1,.36,1);
}
.menu-overlay.open{opacity:1; pointer-events:auto;}
.menu-panel{
  width:min(340px, 100%);
  background:var(--cream);
  color:var(--black);
  border-radius:16px;
  padding:26px 26px 22px;
  box-shadow:0 24px 70px rgba(0,0,0,0.5);
  position:relative;
  margin-top:64px;
  transform:translateY(-16px);
  opacity:0;
  transition:transform .45s cubic-bezier(.22,1,.36,1), opacity .45s cubic-bezier(.22,1,.36,1);
}
.menu-overlay.open .menu-panel{transform:translateY(0); opacity:1;}
.menu-close{
  position:absolute; top:20px; right:22px;
  background:none; border:none; font-size:18px; cursor:pointer; color:var(--black);
  line-height:1;
}
.menu-links{
  display:flex; flex-direction:column;
  margin-top:6px;
}
.menu-links a{
  font-family:'Fraunces',serif; font-size:22px; font-weight:500;
  padding:11px 0;
  border-bottom:1px solid rgba(0,0,0,0.08);
  transition:color .3s cubic-bezier(.22,1,.36,1), padding-left .3s cubic-bezier(.22,1,.36,1);
}
.menu-links a:hover{color:var(--orange); padding-left:6px;}
.menu-links a:last-child{border-bottom:none;}
.menu-row{
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:10px;
  margin-top:20px; padding-top:18px; border-top:1px solid rgba(0,0,0,0.12);
  font-family:'IBM Plex Mono',monospace; font-size:13px;
}
.menu-row a:hover{color:var(--orange);}
.menu-row .talk{font-weight:700;}
.menu-social{
  display:flex; gap:20px;
  margin:18px -26px -22px; padding:16px 26px;
  background:rgba(0,0,0,0.05);
  border-radius:0 0 16px 16px;
  font-family:'Inter',sans-serif; font-size:13px; color:#555;
}
.menu-social a:hover{color:var(--orange);}

/* ---------- FOOTER (site-wide footer, footer.php) ---------- */
.site-footer{
  background:var(--light-bg); color:var(--black);
  padding:90px clamp(20px,5vw,64px) 30px;
}
.footer-head{
  display:flex; justify-content:space-between; align-items:flex-start;
  margin-bottom:34px;
}
.footer-logo{font-size:20px; font-weight:800;}
.footer-logo span{color:var(--orange);}
.footer-socials{
  display:flex; flex-direction:column; gap:6px; align-items:flex-end;
  font-family:'Inter',sans-serif; font-size:14px;
}
.footer-socials a:hover{color:var(--orange);}
.footer-cta{
  font-family:'Fraunces',serif; font-weight:500; font-size:clamp(48px,9vw,120px);
  display:flex; align-items:center; gap:18px;
  cursor:pointer;
  margin-bottom:50px;
}
.footer-cta .fold{
  width:0; height:0; border-style:solid; border-width:0 26px 26px 0;
  border-color:transparent var(--black) transparent transparent;
  align-self:flex-start; margin-top:16px;
}
.footer-nav{
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:16px;
  padding:26px 0; border-top:1px solid rgba(0,0,0,0.15);
  font-family:'Fraunces',serif; font-size:18px;
}
.footer-nav a:hover{color:var(--orange);}
.footer-bottom{
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:14px;
  padding-top:22px; border-top:1px solid rgba(0,0,0,0.15);
  font-family:'IBM Plex Mono',monospace; font-size:12.5px; color:#555;
}
.footer-bottom .contact-mid{display:flex; gap:14px; align-items:center;}
.footer-bottom a:hover{color:var(--orange);}
.footer-copyright{
  text-align:center; margin-top:18px;
  font-family:'IBM Plex Mono',monospace; font-size:11.5px; color:#888;
}

/* -------------------------------------------------------------------------
   SHARED COMPONENTS (used by 2+ pages — keep them here, not duplicated
   into every page file)
   ------------------------------------------------------------------------- */

/* Big hero-style heading — homepage hero + Contact page heading reuse this
   for the typography; each page still sets its own size/colour on top via
   a more specific selector (e.g. .contact-main .hero-heading). */
.hero-heading{
  font-family:'Inter',sans-serif; font-weight:500;
  font-size:clamp(34px,6vw,72px); line-height:1.08;
  color:var(--cream);
}

/* Small eyebrow label — Agency's "Full Roster" label today, free to reuse
   anywhere else that needs the same small caps treatment. */
.section-label{
  font-family:'IBM Plex Mono',monospace; font-size:12px; letter-spacing:0.12em;
  text-transform:uppercase; color:var(--orange); margin-bottom:22px;
  padding:0 clamp(20px,5vw,64px);
}

/* "Page head" banner — eyebrow + h1 + intro paragraph. Used at the top of
   Agency, Services and Blog (listing + single). */
.team-page-head{
  padding:150px clamp(20px,5vw,64px) 70px;
}
.team-page-head .eyebrow{
  font-family:'IBM Plex Mono',monospace; font-size:13px; letter-spacing:0.12em;
  text-transform:uppercase; color:var(--cream-dim); margin-bottom:14px;
}
.team-page-head h1{
  font-family:'Fraunces',serif; font-weight:500;
  font-size:clamp(34px,6vw,64px); line-height:1.05; max-width:16ch;
}
.team-page-head p{
  font-family:'IBM Plex Mono',monospace; font-size:14px; color:var(--cream-dim);
  max-width:56ch; margin-top:18px; line-height:1.7;
}

/* "Selected Work" section — used by the homepage and, now, the Services
   page (below the service sections). .django-work-rail itself (the
   individual cards, scroll behaviour) is owned by the Django Work
   plugin's own frontend.css — this just wraps it with a heading and the
   left/right gutter. */
.work{
  padding:120px 0 100px;
  background:var(--black);
  position:relative;
}
.work-head{
  padding:0 clamp(20px,5vw,64px);
  display:flex; justify-content:space-between; align-items:flex-end;
  margin-bottom:44px;
}
.work-head h2{
  font-family:'Fraunces',serif; font-weight:500; font-size:clamp(27px,3.6vw,47px);
}
.work-head a{
  font-family:'IBM Plex Mono',monospace; font-size:13px;
  border-bottom:1px solid var(--cream-dim); padding-bottom:2px;
  color:var(--cream-dim); white-space:nowrap;
  transition:color .4s cubic-bezier(.22,1,.36,1), border-color .4s cubic-bezier(.22,1,.36,1);
}
.work-head a:hover{color:var(--orange); border-color:var(--orange);}
.work .django-work-rail{
  padding:0 clamp(20px,5vw,64px) 20px;
}

/* Services grid wrapper (heading + "view all" button) — the homepage's
   Services section and the standalone Services page both use this; the
   cards themselves are the Django Services plugin's own frontend.css. */
.services{
  background:var(--light-bg); color:var(--black);
  padding:60px clamp(20px,5vw,64px) 130px;
  border-top:1px solid rgba(0,0,0,0.12);
}
/* font-size aligned to match .whatwedo .eyebrow — both are PT Serif section
   labels sitting above their respective content blocks */
.services-head{
  font-family:'Fraunces',serif; font-weight:500; font-size:clamp(27px,3.6vw,47px); margin-bottom:50px; max-width:14ch;
}
.services-view-all{
  margin-top:36px; text-align:center;
}
.services-view-all a{
  display:inline-block;
  font-family:'IBM Plex Mono',monospace; font-weight:400; font-size:13px;
  border-bottom:1px solid var(--black); padding-bottom:3px;
  transition:color .35s cubic-bezier(.22,1,.36,1), border-color .35s cubic-bezier(.22,1,.36,1);
}
.services-view-all a:hover{color:var(--orange); border-color:var(--orange);}

/* Team grid wrapper ("see full team" link under the strip) — the homepage
   strip and the Agency page's full roster both sit inside this; the cards
   themselves are the Django Team plugin's own frontend.css. */
.team{
  background:var(--black);
  padding:0 0 120px;
}
.team-more{
  padding:8px clamp(20px,5vw,64px) 0;
  text-align:right;
}
.team-more a{
  font-family:'IBM Plex Mono',monospace; font-size:13px;
  border-bottom:1px solid var(--cream-dim); padding-bottom:2px;
  color:var(--cream-dim); white-space:nowrap;
  transition:color .4s cubic-bezier(.22,1,.36,1), border-color .4s cubic-bezier(.22,1,.36,1);
}
.team-more a:hover{color:var(--orange); border-color:var(--orange);}

/* Scroll-rail dots — injected by main.js under any horizontally-scrolling
   rail (homepage Recent Work, homepage Team strip, Agency's full Team rail)
   so it's visually obvious the row keeps going instead of looking like a
   dead-end. main.js only adds these when a rail actually overflows, so a
   rail with few items (nothing to scroll) never gets dots at all. */
.rail-dots{
  display:flex; justify-content:center; align-items:center; gap:9px;
  margin-top:20px;
  padding:0 clamp(20px,5vw,64px);
}
.rail-dots button{
  width:7px; height:7px; padding:0; margin:0;
  border:none; border-radius:50%;
  background:rgba(238,234,225,0.25);
  cursor:pointer;
  transition:background .3s cubic-bezier(.22,1,.36,1), transform .3s cubic-bezier(.22,1,.36,1);
}
.rail-dots button:hover{background:rgba(238,234,225,0.5);}
.rail-dots button.is-active{
  background:var(--orange);
  transform:scale(1.35);
}

/* Scroll-reveal utility — [data-reveal] elements fade/slide in via
   main.js's IntersectionObserver, used across every page. */
[data-reveal]{opacity:0; transform:translateY(24px); transition:opacity .9s cubic-bezier(.22,1,.36,1), transform .9s cubic-bezier(.22,1,.36,1);}
[data-reveal].in{opacity:1; transform:translateY(0);}

/* -------------------------------------------------------------------------
   MOBILE — chrome + shared components only. Each page file has its own
   mobile block for its own sections.
   ------------------------------------------------------------------------- */
@media (max-width:760px){
  .work{padding:45px 0 60px;}
  .work-head{padding:0 20px; margin-bottom:28px; align-items:flex-start; flex-direction:column; gap:10px;}
  .work .django-work-rail{padding:0 20px 16px 20px;}

  .services{padding:40px 20px 80px;}

  .team{padding:0 0 70px;}
  .team-more{padding:4px 20px 0; text-align:left;}

  .team-page-head{padding:110px 20px 46px;}

  .site-footer{padding:50px 20px 24px;}
  .footer-head{margin-bottom:26px;}
  .footer-logo{font-size:17px;}
  .footer-socials{font-size:12px; gap:4px;}
  .footer-cta{font-size:clamp(34px,11vw,48px); margin-bottom:30px;}
  .footer-cta .fold{border-width:0 18px 18px 0; margin-top:10px;}
  .footer-nav{
    flex-wrap:nowrap; justify-content:space-between; gap:6px;
    padding:18px 0; font-size:12.5px;
  }
  .footer-bottom{
    flex-direction:column; align-items:center; text-align:center; gap:10px;
    padding-top:18px;
  }
  .footer-bottom .contact-mid{flex-wrap:wrap; justify-content:center;}
  .footer-copyright{margin-top:14px; padding-top:14px; border-top:1px solid rgba(0,0,0,0.12);}
}

/* ---------- SERVICES SUBMENU -------------------------------------------- */

.menu-service-item{
  border-bottom:1px solid rgba(0,0,0,0.08);
}

.menu-service-main{
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.menu-service-main > a{
  flex:1;
}

/* Plus button */
.menu-service-toggle{
  width:44px;
  height:44px;
  flex-shrink:0;
  display:flex;
  align-items:center;
  justify-content:center;
  border:0;
  background:none;
  color:var(--black);
  cursor:pointer;
  padding:0;
}

.menu-service-plus{
  font-size:24px;
  line-height:1;
  font-weight:400;
  transition:transform .35s cubic-bezier(.22,1,.36,1);
}

.menu-service-item.is-open .menu-service-plus{
  transform:rotate(45deg);
}

/* Hidden submenu */
.menu-submenu{
  max-height:0;
  overflow:hidden;
  opacity:0;
  transition:
    max-height .4s cubic-bezier(.22,1,.36,1),
    opacity .3s ease;
}

.menu-service-item.is-open .menu-submenu{
  max-height:300px;
  opacity:1;
}

/* Submenu links */
.menu-submenu a{
  display:block;
  padding:7px 0 7px 14px !important;
  border-bottom:none !important;
  font-size:15px !important;
  font-weight:400 !important;
  color:#555 !important;
  transition:
    color .3s ease,
    padding-left .3s cubic-bezier(.22,1,.36,1);
}

.menu-submenu a:hover{
  color:var(--orange) !important;
  padding-left:20px !important;
}
