/* ================================================================
   ARCHIT COLLECTIVE v2 — Design System
   Cream/Beige + Red | Playfair Display + Inter
================================================================ */

/* ── TOKENS ─────────────────────────────────────────────────── */
:root {
  --cream:    #FAF8F4;
  --cream-2:  #F3F0EA;
  --cream-3:  #EAE6DC;
  --ink:      #1A1710;
  --ink-2:    rgba(26,23,16,0.65);
  --ink-3:    rgba(26,23,16,0.38);
  --red:      #9C1915;
  --red-2:    #c42420;
  --red-soft: rgba(156,25,21,0.08);
  --red-mid:  rgba(156,25,21,0.18);
  --white:    #FFFFFF;
  --border:   rgba(26,23,16,0.1);
  --border-2: rgba(26,23,16,0.06);
  --shadow-s: 0 2px 10px rgba(26,23,16,0.08);
  --shadow-m: 0 8px 32px rgba(26,23,16,0.1);
  --shadow-l: 0 24px 72px rgba(26,23,16,0.14);
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;
  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 20px;
}

/* ── RESET ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ── TYPOGRAPHY ──────────────────────────────────────────────── */
h1,h2,h3,h4,h5 { font-family: var(--font-serif); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
p { max-width: 65ch; }

/* ── LAYOUT UTILS ────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 max(24px, env(safe-area-inset-left,0px)); }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 max(24px, env(safe-area-inset-left,0px)); }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }

/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius-s);
  font-size: .88rem; font-weight: 600; letter-spacing: .01em;
  transition: all .2s; cursor: pointer;
}
.btn-primary { background: var(--ink); color: var(--cream); }
.btn-primary:hover { background: #0D0B08; transform: translateY(-1px); box-shadow: var(--shadow-m); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-2); transform: translateY(-1px); box-shadow: 0 8px 32px rgba(156,25,21,0.3); }
.btn-outline { border: 1.5px solid var(--border); color: var(--ink-2); background: transparent; }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); background: var(--cream-2); }
.btn-sm { padding: 10px 20px; font-size: .82rem; }
.btn-lg { padding: 18px 36px; font-size: .95rem; }

/* ── LABEL / EYEBROW ─────────────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .68rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--red); margin-bottom: 16px;
}
.eyebrow::before { content: ''; width: 24px; height: 1.5px; background: var(--red); flex-shrink: 0; }

/* ── HEADER ──────────────────────────────────────────────────── */
#header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  background: rgba(250,248,244,0.92); backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--border-2);
  transition: box-shadow .3s;
}
#header.scrolled { box-shadow: var(--shadow-s); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; padding: 0 max(32px, env(safe-area-inset-left,0px));
}

/* Logo */
.logo { display: flex; flex-direction: column; }
.logo-name { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 700; color: var(--ink); line-height: 1; }
.logo-tag { font-size: .58rem; letter-spacing: .18em; text-transform: uppercase; color: var(--red); margin-top: 2px; }

/* Nav */
.nav { display: flex; align-items: center; gap: 2px; }
.nav > a, .nav-item > a {
  font-size: .84rem; font-weight: 500; color: var(--ink-2);
  padding: 8px 14px; border-radius: var(--radius-s);
  transition: color .2s, background .2s;
  display: flex; align-items: center; gap: 5px;
}
.nav > a:hover, .nav-item > a:hover, .nav > a.active { color: var(--ink); background: var(--cream-2); }
.nav .arrow { font-size: .6rem; color: var(--ink-3); transition: transform .2s; }
.nav-item:hover .arrow { transform: rotate(180deg); }

/* Nav CTA */
.nav-cta {
  margin-left: 12px; background: var(--red); color: #fff!important;
  padding: 10px 22px; border-radius: var(--radius-s);
  font-size: .84rem; font-weight: 600;
  transition: background .2s, transform .15s!important;
}
.nav-cta:hover { background: var(--red-2)!important; transform: translateY(-1px)!important; }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  width: 36px; height: 36px; align-items: center; justify-content: center;
}
.hamburger span { display: block; width: 22px; height: 1.5px; background: var(--ink); transition: .3s; }
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
@media(max-width:900px){
  .nav{display:none;}
  .hamburger{display:flex;}
}

/* ── FULL-WIDTH MEGA MENU ─────────────────────────────────────── */
.nav-item { position: static; }

.mega-menu {
  position: fixed; top: 68px; left: 0; right: 0;
  background: var(--white);
  border-top: 1px solid var(--border-2);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(26,23,16,0.1);
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .22s, transform .22s, visibility .22s;
  z-index: 800;
}
.nav-item:hover .mega-menu,
.mega-menu:hover {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0);
}

.mega-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 36px max(32px, env(safe-area-inset-left,0px));
  display: grid; gap: 40px;
}
.mega-inner.cols-3 { grid-template-columns: 220px 1fr 220px; }
.mega-inner.cols-4 { grid-template-columns: repeat(4, 1fr); }
.mega-inner.cols-2 { grid-template-columns: 260px 1fr; }

.mega-col-label {
  font-size: .64rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-3);
  margin-bottom: 16px; padding-bottom: 10px;
  border-bottom: 1px solid var(--border-2);
}
.mega-featured {
  background: var(--cream-2); border-radius: var(--radius-m);
  padding: 24px; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 200px; overflow: hidden; position: relative;
}
.mega-featured-label {
  font-size: .64rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--red); margin-bottom: 8px;
}
.mega-featured-title {
  font-family: var(--font-serif); font-size: 1.3rem; font-weight: 700;
  color: var(--ink); margin-bottom: 10px;
}
.mega-featured-link {
  font-size: .78rem; font-weight: 600; color: var(--red);
  display: flex; align-items: center; gap: 6px;
}

.mega-links { display: flex; flex-direction: column; gap: 2px; }
.mega-link {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 12px; border-radius: var(--radius-s);
  transition: background .18s;
  color: var(--ink);
}
.mega-link:hover { background: var(--cream); }
.mega-link-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--red-soft); border: 1px solid var(--red-mid);
  display: flex; align-items: center; justify-content: center;
  font-size: .58rem; font-weight: 800; letter-spacing: .04em;
  color: var(--red); flex-shrink: 0;
}
.mega-link-title { font-size: .86rem; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.mega-link-desc { font-size: .74rem; color: var(--ink-3); line-height: 1.4; }
.mega-link:hover .mega-link-title { color: var(--red); }

.mega-simple-links { display: flex; flex-direction: column; gap: 2px; }
.mega-simple-link {
  display: flex; align-items: center;
  padding: 9px 12px; border-radius: var(--radius-s);
  font-size: .84rem; font-weight: 500; color: var(--ink-2);
  transition: background .18s, color .18s;
  position: relative;
}
.mega-simple-link::before {
  content: '→'; font-size: .7rem; color: var(--red);
  opacity: 0; margin-right: 8px; transform: translateX(-4px);
  transition: opacity .18s, transform .18s;
}
.mega-simple-link:hover { background: var(--cream); color: var(--ink); }
.mega-simple-link:hover::before { opacity: 1; transform: translateX(0); }
.mega-simple-link span { display: none; }

/* ── MOBILE MENU ─────────────────────────────────────────────── */
.mobile-menu {
  display: none; position: fixed; inset: 0; top: 68px;
  background: var(--cream); z-index: 850;
  overflow-y: auto; padding: 24px max(24px, env(safe-area-inset-left,0px));
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block; padding: 14px 0;
  font-size: 1.1rem; font-weight: 500; color: var(--ink);
  border-bottom: 1px solid var(--border-2);
  transition: color .2s;
}
.mobile-menu a:hover { color: var(--red); }
.mobile-menu .m-cta {
  margin-top: 24px; display: block; text-align: center;
  background: var(--red); color: #fff; padding: 16px;
  border-radius: var(--radius-s); font-weight: 600; border: none;
}

/* ── HERO ────────────────────────────────────────────────────── */
.hero {
  padding-top: 68px; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 50%, var(--cream-3) 0%, transparent 60%),
    var(--cream);
}

.service-icon:empty, .brand-icon:empty { display: none; }

/* ── WORK GRID ───────────────────────────────────────────────── */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; }
@media(max-width:640px){ .work-grid { grid-template-columns: 1fr; } }

.work-item {
  position: relative; overflow: hidden; aspect-ratio: 4/3;
  background: var(--cream-2); cursor: pointer; display: block;
}
.work-item-img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s cubic-bezier(.25,.46,.45,.94);
}
.work-item-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--cream-2) 0%, var(--cream-3) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 0;
}
.work-item-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, transparent, transparent 24px, rgba(26,23,16,0.04) 24px, rgba(26,23,16,0.04) 25px);
}
.work-item:hover .work-item-img { transform: scale(1.05); }
.work-item-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26,23,16,0.75) 0%, transparent 50%);
  opacity: 0; transition: opacity .3s;
  display: flex; align-items: flex-end; padding: 28px;
}
.work-item:hover .work-item-overlay { opacity: 1; }
.work-item-label {
  font-size: .68rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(255,255,255,0.65); margin-bottom: 6px;
}
.work-item-title { font-family: var(--font-serif); font-size: 1.3rem; color: #fff; }
.work-item-featured { grid-column: span 2; aspect-ratio: 16/7; }
@media(max-width:640px){ .work-item-featured { grid-column: span 1; aspect-ratio: 4/3; } }

/* ── SERVICE CARD ────────────────────────────────────────────── */
.services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--border-2); }
@media(max-width:768px){ .services-grid { grid-template-columns: repeat(2,1fr); } }
@media(max-width:480px){ .services-grid { grid-template-columns: 1fr; } }

.service-card {
  background: var(--cream); padding: 36px 32px;
  transition: background .2s;
}
.service-card:hover { background: var(--white); }
.service-num {
  font-family: var(--font-serif); font-size: 2.4rem; font-weight: 700;
  color: var(--cream-3); line-height: 1; margin-bottom: 20px;
  transition: color .2s;
}
.service-card:hover .service-num { color: var(--red-soft); }
.service-icon { font-size: 1.6rem; margin-bottom: 16px; }
.service-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; color: var(--ink); }
.service-desc { font-size: .84rem; color: var(--ink-2); line-height: 1.65; }
.service-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .78rem; font-weight: 600; color: var(--red);
  margin-top: 20px; transition: gap .2s;
}
.service-card:hover .service-link { gap: 10px; }

/* ── TESTIMONIAL ─────────────────────────────────────────────── */
.testimonials-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
@media(max-width:768px){ .testimonials-grid { grid-template-columns: 1fr; } }
.testimonial-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-m); padding: 28px;
}
.testimonial-stars { color: #F59E0B; font-size: .8rem; letter-spacing: 2px; margin-bottom: 16px; }
.testimonial-text { font-size: .9rem; color: var(--ink-2); line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--red); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .9rem;
}
.testimonial-name { font-size: .86rem; font-weight: 600; }
.testimonial-role { font-size: .74rem; color: var(--ink-3); }

/* ── STAT ROW ────────────────────────────────────────────────── */
.stats-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 32px; }
@media(max-width:640px){ .stats-row { grid-template-columns: repeat(2,1fr); } }
.stat-item { text-align: center; }
.stat-num {
  font-family: var(--font-serif); font-size: 3rem; font-weight: 700;
  color: var(--ink); line-height: 1;
}
.stat-num em { color: var(--red); font-style: normal; }
.stat-label { font-size: .78rem; color: var(--ink-3); margin-top: 6px; }

/* ── BRANDS GRID ─────────────────────────────────────────────── */
.brands-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 2px; background: var(--border-2); }
@media(max-width:768px){ .brands-grid { grid-template-columns: repeat(2,1fr); } }
.brand-cell {
  background: var(--cream); padding: 36px 24px; text-align: center;
  transition: background .2s;
}
.brand-cell:hover { background: var(--white); }
.brand-icon { font-size: 2rem; margin-bottom: 14px; }
.brand-name { font-family: var(--font-serif); font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.brand-desc { font-size: .74rem; color: var(--ink-3); line-height: 1.5; }

/* ── BLOG CARD ───────────────────────────────────────────────── */
.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
@media(max-width:768px){ .blog-grid { grid-template-columns: 1fr; } }
.blog-card { background: var(--white); border-radius: var(--radius-m); overflow: hidden; border: 1px solid var(--border-2); transition: box-shadow .2s; }
.blog-card:hover { box-shadow: var(--shadow-m); }
.blog-thumb { aspect-ratio: 16/9; background: var(--cream-2); display: flex; align-items: center; justify-content: center; font-size: 2rem; overflow: hidden; }
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-body { padding: 20px; }
.blog-cat { font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: 8px; }
.blog-title { font-family: var(--font-serif); font-size: 1.1rem; font-weight: 700; color: var(--ink); margin-bottom: 10px; line-height: 1.3; }
.blog-excerpt { font-size: .82rem; color: var(--ink-2); line-height: 1.6; margin-bottom: 16px; }
.blog-meta { font-size: .72rem; color: var(--ink-3); display: flex; gap: 10px; }

/* ── CONTACT FORM ────────────────────────────────────────────── */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media(max-width:600px){ .form-row { grid-template-columns: 1fr; } }
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 13px 16px; border-radius: var(--radius-s);
  background: var(--white); border: 1.5px solid var(--border);
  color: var(--ink); font-size: .9rem; font-family: var(--font-sans);
  transition: border-color .2s; outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--red); }
.form-textarea { resize: vertical; min-height: 120px; }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231A1710' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }

/* ── POPUP ───────────────────────────────────────────────────── */
.popup-overlay {
  position: fixed; inset: 0; background: rgba(26,23,16,0.5); backdrop-filter: blur(4px);
  z-index: 2000; display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: .25s;
}
.popup-overlay.open { opacity: 1; visibility: visible; }
.popup-box {
  background: var(--white); border-radius: var(--radius-l); padding: 48px 40px;
  max-width: 520px; width: 90%; position: relative;
  transform: translateY(12px); transition: transform .25s;
  box-shadow: var(--shadow-l);
}
.popup-overlay.open .popup-box { transform: translateY(0); }
.popup-close {
  position: absolute; top: 20px; right: 20px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--cream-2); border: none; cursor: pointer;
  font-size: 1.1rem; color: var(--ink-2); transition: background .2s;
  display: flex; align-items: center; justify-content: center;
}
.popup-close:hover { background: var(--cream-3); }

/* ── FOOTER ──────────────────────────────────────────────────── */
#footer {
  background: var(--ink);
  padding: 72px 0 0;
  color: rgba(250,248,244,0.75);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; padding-bottom: 48px;
  border-bottom: 1px solid rgba(250,248,244,0.08);
}
@media(max-width:768px){ .footer-grid { grid-template-columns: 1fr 1fr; } }
@media(max-width:480px){ .footer-grid { grid-template-columns: 1fr; } }

.footer-brand { }
.footer-logo { font-family: var(--font-serif); font-size: 1.4rem; font-weight: 700; color: #FAF8F4; margin-bottom: 12px; }
.footer-tagline { font-size: .82rem; line-height: 1.65; max-width: 280px; margin-bottom: 24px; }
.footer-social { display: flex; gap: 10px; }
.footer-social-link {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(250,248,244,0.06); border: 1px solid rgba(250,248,244,0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; transition: background .2s;
  color: rgba(250,248,244,0.65);
}
.footer-social-link:hover { background: var(--red); color: #fff; }

.footer-col-title {
  font-size: .64rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(250,248,244,0.35);
  margin-bottom: 20px;
}
.footer-col a {
  display: block; font-size: .84rem; color: rgba(250,248,244,0.65);
  margin-bottom: 10px; transition: color .2s;
}
.footer-col a:hover { color: #FAF8F4; }

.footer-bottom {
  padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
  font-size: .74rem; color: rgba(250,248,244,0.3);
}

/* ── PAGE HERO ───────────────────────────────────────────────── */
.page-hero {
  padding: calc(68px + 72px) 0 72px;
  background: var(--cream);
  border-bottom: 1px solid var(--border-2);
}
.page-hero-eyebrow { margin-bottom: 16px; }
.page-hero-title { font-size: clamp(2.4rem, 5vw, 4.8rem); color: var(--ink); margin-bottom: 20px; }
.page-hero-desc { font-size: 1.05rem; color: var(--ink-2); max-width: 560px; line-height: 1.75; }

/* ── UTILS ───────────────────────────────────────────────────── */
.text-red { color: var(--red); }
.text-muted { color: var(--ink-2); }
.text-center { text-align: center; }
.mt-auto { margin-top: auto; }
.w-full { width: 100%; }
.divider { height: 1px; background: var(--border-2); }
.tag {
  display: inline-flex; padding: 4px 10px; border-radius: 100px;
  font-size: .68rem; font-weight: 600; letter-spacing: .06em;
  background: var(--cream-2); color: var(--ink-2); border: 1px solid var(--border);
}
.tag-red { background: var(--red-soft); color: var(--red); border-color: var(--red-mid); }
.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-m); padding: 28px;
}
.alert-success {
  background: rgba(16,185,129,0.08); border: 1px solid rgba(16,185,129,0.2);
  border-radius: var(--radius-s); padding: 14px 18px;
  font-size: .88rem; color: #059669;
}
.alert-error {
  background: rgba(156,25,21,0.08); border: 1px solid rgba(156,25,21,0.2);
  border-radius: var(--radius-s); padding: 14px 18px;
  font-size: .88rem; color: var(--red);
}

/* ── PROSE (blog/case study body) ───────────────────────────── */
.prose { font-size: 1rem; color: var(--ink-2); line-height: 1.85; max-width: 680px; }
.prose h2 { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700; color: var(--ink); margin: 36px 0 14px; }
.prose h3 { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 700; color: var(--ink); margin: 28px 0 10px; }
.prose p { margin-bottom: 20px; }
.prose ul, .prose ol { padding-left: 22px; margin-bottom: 20px; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--ink); font-weight: 700; }
.prose em { font-style: italic; }
.prose a { color: var(--red); text-decoration: underline; text-decoration-color: var(--red-mid); }
.prose blockquote { border-left: 3px solid var(--red); padding-left: 20px; margin: 24px 0; font-style: italic; color: var(--ink-2); }

/* ── PAGE LOADER ─────────────────────────────────────────────── */
#loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--cream);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px;
  transition: opacity .5s, visibility .5s;
}
#loader.hidden { opacity: 0; visibility: hidden; }
.loader-name { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700; color: var(--ink); letter-spacing: .04em; }
.loader-bar { width: 120px; height: 2px; background: var(--border); border-radius: 2px; overflow: hidden; }
.loader-progress { height: 100%; width: 0; background: var(--red); transition: width .6s ease; }

/* ── RESPONSIVE HELPERS ──────────────────────────────────────── */
@media(max-width:900px){
  .section { padding: 64px 0; }
  .stats-row { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .work-item-featured { grid-column: span 1; }
}
@media(max-width:600px){
  .section { padding: 48px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .brands-grid { grid-template-columns: repeat(2,1fr); }
  .blog-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
}

/* ── SITE v3 — collective style (overrides above) ───────────── */
.container, .container-wide, .hm-wrap, .footer-wrap, .topbar-inner, .header-inner, .mega-inner {
  width: 90%; max-width: none; margin-left: auto; margin-right: auto; padding-left: 0; padding-right: 0;
}
:root {
  --font-serif: 'Inter', system-ui, sans-serif;
  --font-sans:  'Inter', system-ui, sans-serif;
}
h1, h2, h3, h4, h5 { font-family: var(--font-sans); font-weight: 800; letter-spacing: -0.05em; line-height: 1.04; }
.eyebrow { color: var(--red); font-weight: 900; letter-spacing: .2em; }

.topbar { background: #090909; color: #d7d7d7; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; padding: 13px 0; }
.topbar-inner { width: min(1200px, calc(100% - 48px)); margin: 0 auto; display: flex; justify-content: space-between; gap: 20px; }

#header {
  position: sticky; top: 0; left: auto; right: auto;
  background: rgba(255,255,255,.94); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0,0,0,.07);
}
#header.scrolled { box-shadow: 0 6px 24px rgba(0,0,0,.05); }
.header-inner {
  width: min(1200px, calc(100% - 48px)); margin: 0 auto;
  height: 82px; padding: 0;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 11px; font-weight: 900; letter-spacing: -.06em; font-size: 21px; color: var(--ink); }
.logo-mark {
  width: 36px; height: 36px; flex-shrink: 0;
  background: var(--red); color: #fff;
  display: grid; place-items: center;
  font-size: 17px; font-weight: 900; border-radius: 7px; transform: rotate(-8deg);
}
.logo-text { line-height: 1.1; white-space: nowrap; font-size: 17px; }
.logo-img { height: 60px; width: auto; display: block; }
.js-anim [data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.js-anim [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js-anim [data-reveal] { opacity: 1; transform: none; transition: none; } }
#footer .logo-img { height: 70px; }
#footer .footer-brand { text-align: left; justify-self: start; }
#footer .footer-brand .logo { display: block; justify-content: flex-start; }
.logo-text small { display: block; font-size: 8px; letter-spacing: .23em; color: #777; margin-top: 3px; font-weight: 700; }

.nav { display: flex; align-items: center; gap: 22px; font-size: 12px; font-weight: 700; }
.nav a { color: var(--ink-2); transition: color .2s; white-space: nowrap; }
.nav a:hover, .nav a.active { color: var(--red); }
.nav .nav-cta {
  margin-left: 6px; background: var(--red); color: #fff;
  padding: 14px 18px; font-size: 11px; letter-spacing: .09em; text-transform: uppercase; font-weight: 800;
  border-radius: 0;
}
.nav .nav-cta:hover { background: #74110e; color: #fff; }

.nav-item { position: static; padding: 30px 0; margin: -30px 0; display: flex; align-items: center; }
.nav-item > a { display: inline-flex; align-items: center; gap: 6px; }
.nav-item .arrow { font-size: .6rem; color: var(--ink-3); transition: transform .2s; }
.nav-item:hover .arrow { transform: rotate(180deg); }
.mega-menu {
  position: absolute; top: 100%; left: 0; right: 0;
  background: #fff; border-top: 1px solid rgba(0,0,0,.07);
  box-shadow: 0 24px 60px rgba(0,0,0,.08);
  opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-6px);
  transition: opacity .22s, transform .22s, visibility .22s; z-index: 800;
}
.nav-item:hover .mega-menu, .mega-menu:hover { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
.mega-inner {
  width: min(1200px, calc(100% - 48px)); margin: 0 auto; padding: 36px 0 40px;
  display: grid; gap: 40px; max-width: none;
}
.mega-cols-4 { grid-template-columns: 1fr 1fr 1fr 240px; }
.mega-cols-3 { grid-template-columns: 1fr 1fr 280px; }
.mega-cols-5 { grid-template-columns: repeat(5, 1fr); gap: 10px; }
.mega-cols-4 .mega-links .mega-link, .mega-cols-3 .mega-simple-link { color: var(--ink); }
.mega-featured { background: var(--cream-2); min-height: 0; }
.mega-brand {
  background: #fff; border: 1px solid #ece9e5; padding: 22px 18px; min-height: 150px;
  display: flex; flex-direction: column; justify-content: space-between; color: var(--ink); transition: .25s;
}
.mega-brand:hover { background: #111; color: #fff; transform: translateY(-4px); }
.mega-brand:hover span { color: #aaa; }
.mega-brand small { font-size: 9px; color: var(--red); letter-spacing: .12em; font-weight: 900; }
.mega-brand b { font-size: 16px; letter-spacing: -.04em; font-weight: 800; }
.mega-brand span { font-size: 10px; color: var(--ink-3); }
@media(max-width:900px){ .mega-menu { display: none; } }
@media(max-width:900px){ .nav { display: none; } .hamburger { display: flex; } }

.mobile-menu { top: 82px; background: #fff; }
.mobile-menu a { font-weight: 700; letter-spacing: -.02em; }
.mobile-menu .m-cta { border-radius: 0; text-transform: uppercase; font-size: .9rem; letter-spacing: .09em; }

.page-hero { background: #080808; border-bottom: 0; padding: 88px 0 80px; color: #fff; }
.page-hero-eyebrow { color: #c9a6a4; }
.page-hero-title { color: #fff; font-size: clamp(44px, 6vw, 78px); letter-spacing: -.065em; }
.page-hero-desc { color: #b6b6b6; }

#footer { background: #080808; color: #fff; padding: 88px 0 32px; }
.footer-wrap { width: min(1200px, calc(100% - 48px)); margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 56px; padding-bottom: 64px; }
#footer .logo { color: #fff; }
#footer .logo-text small { color: #888; }
.footer-tagline { color: #888; font-size: 12px; line-height: 1.8; max-width: 290px; margin-top: 20px; }
.footer-col h4 { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: #aaa; margin: 5px 0 20px; font-weight: 800; font-family: var(--font-sans); }
.footer-col a, .footer-address { display: block; font-size: 12px; color: #888; margin: 13px 0; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-social { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.footer-social a { margin: 0; }
.footer-bottom { border-top: 1px solid #252525; padding-top: 26px; display: flex; justify-content: space-between; gap: 15px; color: #666; font-size: 10px; letter-spacing: .06em; flex-wrap: wrap; }
@media(max-width:900px){ .footer-grid { grid-template-columns: 1fr 1fr; } }
@media(max-width:480px){ .footer-grid { grid-template-columns: 1fr; gap: 40px; padding-bottom: 44px; } #footer { padding: 64px 0 28px; } .topbar-right { display: none; } .topbar-inner { justify-content: center; } }

@media(max-width:680px){
  [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  [style*="gap:80px"], [style*="gap:90px"] { gap: 36px !important; }
  [style*="gap:40px"] { gap: 24px !important; }
  section[style*="padding:"] { padding-top: 56px !important; padding-bottom: 56px !important; }
  section[style*="padding:96px"] { padding-top: 64px !important; padding-bottom: 64px !important; }
  .page-hero { padding: 56px 0 48px; }
  .page-hero-title { font-size: clamp(36px, 10vw, 52px); }
  .page-hero-desc { font-size: 1rem; }
  h1 { font-size: clamp(36px, 10vw, 52px) !important; }
  h2 { font-size: clamp(28px, 8vw, 38px) !important; }
  .work-grid, .services-grid, .brands-grid, .blog-grid, .testimonials-grid { grid-template-columns: 1fr !important; }
  .eyebrow { letter-spacing: .14em; }
  body, p, a, div, h1, h2, h3 { overflow-wrap: anywhere; }
  .footer-col a { overflow-wrap: anywhere; }
  .hm-stats { grid-template-columns: 1fr 1fr 1fr !important; }
  .container { padding-left: 20px; padding-right: 20px; }
}

/* ── MOBILE MENU (accordion + animations) ───────────────────── */
.mobile-menu {
  display: block; position: fixed; left: 0; right: 0; bottom: 0; top: 82px;
  background: #fff; overflow-y: auto; padding: 8px 20px 36px;
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s; z-index: 850;
}
.mobile-menu.open { opacity: 1; visibility: visible; transform: none; }
.mobile-menu > a, .mobile-menu .mm-toggle {
  display: flex; justify-content: space-between; align-items: center; width: 100%;
  padding: 17px 0; font-size: 1.05rem; font-weight: 800; letter-spacing: -.02em;
  color: var(--ink); background: none; border: 0; border-bottom: 1px solid rgba(0,0,0,.07); text-align: left;
  opacity: 0; transform: translateY(10px);
  transition: opacity .4s ease, transform .4s ease, color .2s;
}
.mobile-menu.open > a, .mobile-menu.open .mm-toggle { opacity: 1; transform: none; }
.mobile-menu.open > :nth-child(1) { transition-delay: .04s; }
.mobile-menu.open > :nth-child(2) { transition-delay: .08s; }
.mobile-menu.open > :nth-child(3) { transition-delay: .12s; }
.mobile-menu.open > :nth-child(4) { transition-delay: .16s; }
.mobile-menu.open > :nth-child(5) { transition-delay: .2s; }
.mobile-menu.open > :nth-child(6) { transition-delay: .24s; }
.mobile-menu.open > :nth-child(7) { transition-delay: .28s; }
.mobile-menu .mm-toggle:hover, .mobile-menu > a:hover { color: var(--red); }
.mm-plus { font-size: 1.3rem; font-weight: 400; color: var(--red); line-height: 1; transition: transform .3s ease; }
.mm-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s ease; }
.mm-group.open > .mm-panel { grid-template-rows: 1fr; }
.mm-inner { overflow: hidden; display: flex; flex-direction: column; padding-left: 4px; }
.mm-inner a {
  padding: 12px 0 12px 12px; font-size: .92rem; font-weight: 600; color: var(--ink-2);
  border-left: 2px solid transparent; opacity: 0; transform: translateX(-8px);
  transition: opacity .3s ease, transform .3s ease, color .2s, border-color .2s;
}
.mm-group.open .mm-inner a { opacity: 1; transform: none; }
.mm-group.open .mm-inner a:nth-child(2) { transition-delay: .04s; }
.mm-group.open .mm-inner a:nth-child(3) { transition-delay: .08s; }
.mm-group.open .mm-inner a:nth-child(4) { transition-delay: .12s; }
.mm-group.open .mm-inner a:nth-child(5) { transition-delay: .16s; }
.mm-group.open .mm-inner a:nth-child(6) { transition-delay: .2s; }
.mm-group.open .mm-inner a:nth-child(7) { transition-delay: .24s; }
.mm-group.open .mm-inner a:nth-child(8) { transition-delay: .28s; }
.mm-inner a:hover { color: var(--red); border-left-color: var(--red); }
.mobile-menu .m-cta {
  display: block; text-align: center; margin-top: 24px; padding: 17px; border: 0;
  background: var(--red); color: #fff; font-size: .92rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 800;
}
.mobile-menu .m-cta:hover { color: #fff; }
@media(min-width: 901px){ .mobile-menu { display: none; } }

/* ── MOBILE HEADER & FOOTER LOGO ────────────────────────────── */
@media(max-width: 680px){
  .header-inner { height: 68px; }
  .logo-img { height: 40px; }
  #footer .logo-img { height: 50px; }
  .mobile-menu { top: 68px; }
  .hamburger { width: 32px; height: 32px; }
  body.sb-collapsed .admin-main { margin-left: 0; }
}
