/* ============================================================
   ARTICO PROJECTS — shared light theme
   Warm off-white "plaster/concrete" base, Jost display type.
   ============================================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

:root {
  --paper:      #EBE7E0;   /* warm off-white base  */
  --paper-2:    #E2DDD3;   /* recessed panel       */
  --paper-3:    #D7D1C5;   /* deeper panel         */
  --paper-card: #F3F0EA;   /* lifted card          */
  --ink:        #1B1A17;   /* warm near-black      */
  --ink-soft:   #3A382F;
  --muted:      #6B665C;   /* legible warm grey    */
  --muted-2:    #8A857A;
  --line:       rgba(27,26,23,0.14);
  --line-soft:  rgba(27,26,23,0.08);
  --display: 'Jost', sans-serif;
  --sans:    'Jost', sans-serif;
}

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
  overflow-y: visible;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* --- concrete / plaster texture ------------------------------------ */
/* fine grain */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("grain.png");
  background-size: 240px 240px;
  opacity: 0.55;
  mix-blend-mode: multiply;
}
/* broad plaster mottling */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(80% 60% at 12% 8%, rgba(255,255,255,0.45), transparent 60%),
    radial-gradient(70% 70% at 88% 95%, rgba(120,112,98,0.10), transparent 60%),
    radial-gradient(50% 50% at 65% 35%, rgba(120,112,98,0.06), transparent 70%);
  mix-blend-mode: multiply;
}
/* keep real content above the texture */
nav, header, section, footer, main { position: relative; z-index: 1; }

/* --- reveal animation ---------------------------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: .12s; }
.reveal-d2 { transition-delay: .24s; }
.reveal-d3 { transition-delay: .36s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* --- shared utility type ------------------------------------------- */
.overline { font-family: var(--sans); font-size: 10px; font-weight: 500; letter-spacing: 0.34em; text-transform: uppercase; color: var(--muted); }
.display   { font-family: var(--display); font-weight: 300; letter-spacing: -0.01em; line-height: 1.02; color: var(--ink); }

/* ============================================================
   NAV
   ============================================================ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 48px;
  background: rgba(235,231,224, calc(var(--nav-p, 0) * 0.86));
  backdrop-filter: blur(calc(var(--nav-p, 0) * 20px)) saturate(1.1);
  transition: background .5s ease, backdrop-filter .5s ease, border-color .4s, padding .4s;
  border-bottom: 1px solid transparent;
}
nav.scrolled { border-bottom-color: var(--line); padding-top: 12px; padding-bottom: 12px; }

/* stacked A + ARTICO lockup (single official asset) */
.brand { display: inline-flex; align-items: center; text-decoration: none; line-height: 1; }
.brand img { height: 38px; width: auto; display: block; transition: height .4s; }
nav.scrolled .brand img { height: 32px; }

.nav-links { display: flex; gap: 38px; list-style: none; }
.nav-links a { font-family: var(--sans); font-size: 10px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); text-decoration: none; transition: color .3s; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }

/* home nav sitting over the dark cinematic hero: go light until scrolled */
nav.over-hero:not(.scrolled) .brand img { filter: invert(1) brightness(1.9); }
nav.over-hero:not(.scrolled) .nav-links a { color: rgba(243,240,234,0.82); }
nav.over-hero:not(.scrolled) .nav-links a:hover, nav.over-hero:not(.scrolled) .nav-links a.active { color: #fff; }
nav.over-hero:not(.scrolled) .btn { color: #F3F0EA; border-color: rgba(243,240,234,0.5); }
nav.over-hero:not(.scrolled) .btn::before { background: #F3F0EA; }
nav.over-hero:not(.scrolled) .btn:hover { color: var(--ink); border-color: #F3F0EA; }

/* ghost/fill button */
.btn {
  position: relative; overflow: hidden; display: inline-block;
  background: transparent; color: var(--ink);
  padding: 11px 26px;
  font-family: var(--sans); font-size: 10px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  border: 1px solid rgba(27,26,23,0.35); border-radius: 4px; text-decoration: none; cursor: pointer;
  transition: color .4s, border-color .4s; z-index: 1;
}
.btn::before { content: ''; position: absolute; inset: 0; background: var(--ink); transform: translateX(-101%); transition: transform .45s cubic-bezier(.16,1,.3,1); z-index: -1; }
.btn:hover::before { transform: translateX(0); }
.btn:hover { color: var(--paper); border-color: var(--ink); }
.btn-lg { padding: 16px 40px; font-size: 11px; letter-spacing: 0.3em; }

/* text link with arrow */
.link-arrow { display: inline-flex; align-items: center; gap: 14px; font-size: 11px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink); text-decoration: none; transition: opacity .3s; }
.link-arrow:hover { opacity: .55; }
.link-arrow span { display: inline-block; transition: transform .3s; }
.link-arrow:hover span { transform: translateX(6px); }

/* ============================================================
   MOBILE NAV (hamburger + overlay) — injected by site.js
   ============================================================ */
.nav-toggle { display: none; }
.mobile-menu { display: none; }

@media (max-width: 900px) {
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5.5px;
    width: 44px; height: 44px; padding: 11px 10px; margin: -11px -10px -11px 0;
    background: none; border: none; cursor: pointer; position: relative; z-index: 130;
  }
  .nav-toggle span { display: block; width: 24px; height: 1.5px; background: var(--ink); transition: transform .38s cubic-bezier(.16,1,.3,1), opacity .2s; }
  /* sitting over the dark home hero → light bars */
  nav.over-hero:not(.scrolled) .nav-toggle span { background: #F3F0EA; }
  /* once the menu is open the backdrop is light → force dark bars + dark logo */
  body.menu-open .nav-toggle span,
  body.menu-open nav.over-hero:not(.scrolled) .nav-toggle span { background: var(--ink); }
  body.menu-open nav.over-hero:not(.scrolled) .brand img { filter: none; }
  body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* hide the desktop top-bar CTA on mobile — it lives in the menu instead */
  nav > .btn { display: none; }

  .mobile-menu {
    display: flex; flex-direction: column; justify-content: center;
    position: fixed; inset: 0; z-index: 95;
    background: var(--paper);
    padding: 100px 26px 40px;
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .42s cubic-bezier(.16,1,.3,1), transform .42s cubic-bezier(.16,1,.3,1), visibility .42s;
  }
  body.menu-open { overflow: hidden; }
  body.menu-open .mobile-menu { opacity: 1; visibility: visible; transform: none; }
  .mobile-menu .m-links { list-style: none; display: flex; flex-direction: column; gap: 2px; }
  .mobile-menu .m-link {
    font-family: var(--display); font-weight: 300; font-size: clamp(34px, 11vw, 46px);
    letter-spacing: -0.01em; line-height: 1.18; color: var(--ink); text-decoration: none;
    display: inline-block; padding: 7px 0;
    opacity: 0; transform: translateY(16px);
    transition: opacity .5s cubic-bezier(.16,1,.3,1), transform .5s cubic-bezier(.16,1,.3,1), color .3s;
  }
  body.menu-open .mobile-menu .m-link { opacity: 1; transform: none; }
  .mobile-menu .m-links li:nth-child(1) .m-link { transition-delay: .08s; }
  .mobile-menu .m-links li:nth-child(2) .m-link { transition-delay: .14s; }
  .mobile-menu .m-links li:nth-child(3) .m-link { transition-delay: .20s; }
  .mobile-menu .m-links li:nth-child(4) .m-link { transition-delay: .26s; }
  .mobile-menu .m-links li:nth-child(5) .m-link { transition-delay: .32s; }
  .mobile-menu .m-cta { margin-top: 36px; align-self: stretch; width: 100%; text-align: center; box-sizing: border-box; padding: 14px 16px; font-size: 9px; letter-spacing: 0.12em; white-space: normal; line-height: 1.4; }
  .mobile-menu .m-meta { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding-top: 40px; }
  .mobile-menu .m-meta a { font-size: 13px; font-weight: 400; letter-spacing: 0.04em; color: var(--muted); text-decoration: none; }
  .mobile-menu .m-meta a:hover { color: var(--ink); }
}

/* ============================================================
   FOOTER
   ============================================================ */
footer.site-footer { background: linear-gradient(180deg, rgba(16,15,13,0.82) 0%, rgba(16,15,13,0.72) 45%, rgba(16,15,13,0.88) 100%), url(../uploads/luxury-games-room-fit-out-wilmslow.jpg) center/cover no-repeat #14130f; padding: 96px 48px 44px; position: relative; overflow: hidden; }
.footer-brand { position: absolute; bottom: -0.06em; left: -0.02em; font-family: var(--display); font-weight: 300; font-size: clamp(90px, 15vw, 200px); color: rgba(243,240,234,0.08); pointer-events: none; user-select: none; line-height: .8; letter-spacing: 0.04em; }
.footer-inner { position: relative; z-index: 1; max-width: 1500px; }
.footer-headline { font-family: var(--display); font-weight: 300; font-size: clamp(44px, 7vw, 104px); color: #F6F3EE; line-height: .94; letter-spacing: 0.01em; margin-bottom: 36px; text-transform: uppercase; }
footer.site-footer .btn { color: #F3F0EA; border-color: rgba(243,240,234,0.5); }
footer.site-footer .btn::before { background: #F3F0EA; }
footer.site-footer .btn:hover { color: var(--ink); border-color: #F3F0EA; }
.footer-bottom { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; column-gap: 18px; row-gap: 14px; padding-top: 30px; margin-top: 64px; border-top: 1px solid rgba(243,240,234,0.18); }
.footer-copy { justify-self: start; font-size: 10px; letter-spacing: 0.2em; color: rgba(243,240,234,0.5); text-transform: uppercase; }
.footer-credit { justify-self: center; font-size: 10px; letter-spacing: 0.2em; color: rgba(243,240,234,0.62); text-transform: uppercase; white-space: nowrap; text-decoration: none; transition: color .3s; }
a.footer-credit:hover { color: rgba(243,240,234,0.95); }
.footer-links { justify-self: end; display: flex; gap: 36px; }
.footer-link { font-size: 10px; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; color: rgba(243,240,234,0.7); text-decoration: none; transition: color .3s; }
.footer-link:hover { color: #fff; }

/* ============================================================
   TWEAKS PANEL (home only)
   ============================================================ */
#tweaks-panel { display: none; position: fixed; bottom: 24px; right: 24px; z-index: 9000; background: var(--paper-card); border: 1px solid var(--line); padding: 22px; min-width: 230px; font-family: var(--sans); box-shadow: 0 24px 60px rgba(27,26,23,0.16); }
#tweaks-panel.open { display: block; }
.tweaks-title { font-size: 9px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.tweak-row { margin-bottom: 14px; }
.tweak-label { font-size: 9px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 6px; display: block; }
.tweak-select { width: 100%; background: var(--paper); border: none; border-bottom: 2px solid var(--line); color: var(--ink); padding: 7px 6px; font-size: 11px; font-family: var(--sans); cursor: pointer; }

/* ============================================================
   PROJECT IMAGE PLACEHOLDER (no photo yet)
   ============================================================ */
.ph {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background:
    repeating-linear-gradient(135deg, var(--paper-2) 0 14px, var(--paper-3) 14px 28px);
}
.ph span { font-family: var(--sans); font-size: 10px; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted-2); }

@media (max-width: 900px) {
  nav { padding: 14px 22px; }
  .nav-links { display: none; }
  .btn { padding: 9px 20px; font-size: 9px; letter-spacing: 0.18em; }
  .btn-lg { padding: 12px 28px; font-size: 10px; letter-spacing: 0.22em; }
  footer.site-footer { padding: 64px 22px 36px; }
  .footer-bottom { grid-template-columns: 1fr; row-gap: 12px; }
  .footer-bottom > * { justify-self: start; }
}
