/* ============================================================
   Slate, shared shell.
   Tokens, nav, mobile menu, footer, motion. One source of truth
   for every page. Page-specific CSS stays in the page.

   Palette rule: two values only. One ink, one paper. No accent,
   no third value, no ramp. Client work shown on the site keeps
   its own colours; the chrome never does.
   ============================================================ */

:root {
  --bg: #ffffff;                 /* paper */
  --ink: #000000;                /* ink */
  --muted: #616069;              /* secondary type, 5.9:1 on paper */
  --body: #2e2e33;               /* body copy, 13.4:1 on paper */
  --pill: #000000;
  --brand: #000000;              /* Slate has no accent */
  --navy: #000000;               /* "dark" sections are pure ink */
  --cloud: #ffffff;
  --line: rgba(0, 0, 0, 0.14);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);

  --fs-cta: clamp(2.6rem, 5.1389vw, 4.625rem);       /* 74px at 1440 */
  --fs-section: clamp(2.05rem, 3.6111vw, 3.25rem);   /* 52px at 1440 */
  --fs-sub: clamp(1.5rem, 2.8vw, 2.5rem);
  --fs-service: clamp(1.5rem, 2.3vw, 2.15rem);
  --fs-body: clamp(1.125rem, 1.3889vw, 1.375rem);    /* 18px floor, 20px at 1440 */

  --gutter: clamp(32px, 4.5vw, 76px);
  --sec-pad: clamp(80px, 12vh, 172px);
  --radius: 3px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Switzer", "Switzer Fallback", system-ui, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
img, video { display: block; max-width: 100%; }

/* Announced to screen readers, invisible on screen. Used for aria-live status
   text where a visible label would be noise (the copy-address confirmation).
   Not a layout tool: it must never wrap anything that needs to be seen. */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; white-space: nowrap;
  clip: rect(0 0 0 0); clip-path: inset(50%);
}

/* keyboard focus visibility (mouse/touch users unaffected) */
a:focus-visible, button:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.section--dark a:focus-visible, .section--dark button:focus-visible,
body.menu-open .nav-toggle:focus-visible { outline-color: #ffffff; }

/* ---------------------------------------------- nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 30px var(--gutter);
  transition: transform 0.35s var(--ease);
}
/* frosted progressive-blur band: invisible at the top, fades in over content */
.nav::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 150px;
  z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0));
  -webkit-backdrop-filter: blur(0px); backdrop-filter: blur(0px);
  -webkit-mask-image: linear-gradient(to bottom, #000 42%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(to bottom, #000 42%, rgba(0, 0, 0, 0) 100%);
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.19, 1, 0.22, 1),
              -webkit-backdrop-filter 0.8s cubic-bezier(0.19, 1, 0.22, 1),
              backdrop-filter 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}
body.scrolled .nav::before { opacity: 1; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
body.menu-open .nav::before { opacity: 0; }
body.nav-hidden .nav { transform: translateY(-120%); }

.brand { display: flex; align-items: center; text-decoration: none; }
.brand-logo { height: 35px; width: auto; display: block; transition: filter 0.35s var(--ease); }
body.menu-open .brand-logo { filter: invert(1); }

.cluster { display: flex; align-items: center; gap: clamp(22px, 2.6vw, 44px); }
.links { display: flex; align-items: center; gap: clamp(16px, 1.8vw, 28px); font-size: 20px; font-weight: 500; }
.links a {
  color: var(--ink); text-decoration: none; opacity: 0.9;
  display: inline-flex; align-items: center; gap: 6px;
  transition: opacity 0.25s var(--ease);
}
.links a:hover { opacity: 1; }
.links a.active { opacity: 1; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1.5px; }
.pill {
  background: var(--pill); color: #fff; font-weight: 500; font-size: 17px;
  padding: 14px 26px; border-radius: 100px; text-decoration: none;
  box-shadow: inset 0 0 0 1px #000;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease);
}
.pill:hover { transform: translateY(-2px) scale(1.02); background: #fff; color: #000; }

/* hamburger (mobile only) */
.nav-toggle {
  display: none; position: relative; z-index: 7;
  width: 44px; height: 44px; margin-right: -10px;
  background: none; border: 0; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span {
  position: absolute; left: 11px; top: 50%; margin-top: -1px;
  width: 22px; height: 2px; border-radius: 2px; background: var(--ink);
  transition: transform 0.4s var(--ease), background 0.3s var(--ease);
}
.nav-toggle span:first-child { transform: translateY(-4px); }
.nav-toggle span:last-child { transform: translateY(4px); }
body.menu-open .nav-toggle span { background: var(--cloud); }
body.menu-open .nav-toggle span:first-child { transform: translateY(0) rotate(45deg); }
body.menu-open .nav-toggle span:last-child { transform: translateY(0) rotate(-45deg); }

/* full-screen mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 15;
  background: var(--navy); color: var(--cloud);
  display: flex; flex-direction: column; justify-content: center;
  gap: clamp(10px, 1.8vh, 22px); padding: 0 clamp(28px, 8vw, 60px);
  opacity: 0; visibility: hidden; transform: translateY(-14px);
  transition: opacity 0.5s var(--ease-out-expo), transform 0.6s var(--ease-out-expo), visibility 0s linear 0.5s;
}
body.menu-open .mobile-menu {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity 0.5s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}
.mobile-menu a {
  color: var(--cloud); text-decoration: none;
  font-size: clamp(2rem, 8.5vw, 3.25rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1;
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}
body.menu-open .mobile-menu a { opacity: 1; transform: none; }
.mobile-menu a:nth-child(1) { transition-delay: 0.10s; }
.mobile-menu a:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu a:nth-child(3) { transition-delay: 0.20s; }
.mobile-menu a:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu a:nth-child(5) { transition-delay: 0.30s; }
.mobile-menu a.mm-contact {
  margin-top: clamp(14px, 3vh, 32px); font-size: clamp(1.15rem, 4.4vw, 1.5rem);
  color: var(--cloud); text-decoration: underline; text-underline-offset: 6px; transition-delay: 0.42s;
}
@media (max-width: 1240px) {
  .links { display: none; }
  .cluster .pill { display: none; }
  .nav-toggle { display: inline-flex; }
  body.menu-open { overflow: hidden; }
}
@media (min-width: 1241px) { .mobile-menu { display: none; } }

/* ---------------------------------------------- shared section furniture */
.section { padding: var(--sec-pad) var(--gutter); }
.section--dark { background: var(--navy); color: var(--cloud); }
.eyebrow { font-size: 0.9rem; font-weight: 600; letter-spacing: 0.02em; color: var(--muted); }
.section--dark .eyebrow { color: rgba(255, 255, 255, 0.55); }
.arrow-link {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: var(--fs-body); font-weight: 600; color: var(--ink); text-decoration: none;
  border-bottom: 1px solid currentColor; padding-bottom: 3px;
  transition: gap 0.3s var(--ease);
}
.arrow-link:hover { gap: 20px; }
.arrow-link svg { width: 22px; height: 22px; }
.section--dark .arrow-link { color: var(--cloud); }

/* page header used by the interior pages */
.page-head { padding: clamp(150px, 22vh, 260px) var(--gutter) clamp(50px, 8vh, 90px); }
.page-head h1 {
  font-weight: 500; font-size: clamp(2.4rem, 6.4vw, 6rem);
  line-height: 1.02; letter-spacing: -0.025em; max-width: 16ch;
}
.page-head p {
  font-size: var(--fs-sub); font-weight: 500; line-height: 1.2; letter-spacing: -0.01em;
  color: var(--muted); max-width: 30ch; margin-top: clamp(20px, 3vh, 36px);
}

/* ---------------------------------------------- footer */
.footer { background: var(--bg); padding: clamp(80px, 12vh, 170px) var(--gutter) 38px; position: relative; z-index: 2; }
.footer-top { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(44px, 6vw, 100px); align-items: start; }
.footer-cta h2 { font-size: var(--fs-cta); font-weight: 600; line-height: 1.02; letter-spacing: -0.025em; max-width: 18ch; }
.footer-contact { margin-top: clamp(22px, 3vh, 40px); display: flex; flex-direction: column; gap: 6px; }
.footer-contact a {
  font-size: var(--fs-body); color: var(--ink); text-decoration: none;
  border-bottom: 1px solid transparent; width: fit-content; transition: border-color 0.3s;
}
.footer-contact a:hover { border-color: var(--ink); }
.footer-right { display: flex; flex-direction: column; gap: clamp(30px, 4vh, 56px); padding-top: 10px; }
.footer-nav { display: flex; gap: clamp(40px, 6vw, 90px); }
.footer-col { display: flex; flex-direction: column; gap: 13px; }
.footer-col a { font-size: 1.05rem; color: var(--ink); text-decoration: none; opacity: 0.78; transition: opacity 0.25s; }
.footer-col a:hover { opacity: 1; }
.footer-locations { display: flex; gap: clamp(30px, 5vw, 80px); }
.footer-loc b { display: block; font-weight: 700; font-size: 1.05rem; }
.footer-loc span { font-size: 0.95rem; color: var(--muted); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  margin-top: clamp(50px, 8vh, 96px); padding-top: 26px;
  border-top: 1px solid var(--line); font-size: 0.9rem; color: var(--muted);
}
.footer-legal { display: flex; gap: 22px; }
.footer-legal a { color: var(--muted); text-decoration: none; transition: color 0.25s; }
.footer-legal a:hover { color: var(--ink); }

/* live-time studio stamp */
.stamp {
  position: fixed; left: var(--gutter); bottom: 28px; z-index: 4;
  font-size: 13px; font-weight: 500; letter-spacing: 0.02em; color: var(--ink);
  display: flex; align-items: baseline; gap: 7px;
  opacity: 0; transition: opacity 1s var(--ease) 0.8s;
}
body.loaded .stamp { opacity: 0.85; }
body.nav-hidden .stamp, body.menu-open .stamp { opacity: 0; }
.stamp .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); align-self: center; }
.stamp b { font-weight: 700; font-variant-numeric: tabular-nums; }
.stamp sup { font-size: 10px; color: #4a4952; letter-spacing: 0.08em; }   /* pre-compensated for the .stamp 0.85 opacity */

@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* Touch targets. The footer links render 19 to 22px tall, which is fine for a
   cursor and fiddly for a thumb, and they are the densest cluster of links on
   the site. Padding grows the hit area to ~44px; the gap shrinks by the same
   amount so the footer does not visibly loosen. */
@media (max-width: 760px) {
  .arrow-link { padding-top: 8px; padding-bottom: 10px; }
  .footer-col { gap: 0; }
  .footer-col a { padding: 11px 0; }
  .footer-legal { gap: 8px 22px; flex-wrap: wrap; }
  .footer-legal a { padding: 10px 0; }
  .footer-contact a { padding: 8px 0; }
}

/* The live studio stamp is a desktop flourish. It is position:fixed with no
   mobile handling, so on a phone it sits on top of body copy: caught it
   overlapping a paragraph mid-sentence on the service pages. There is no room
   in a 390px gutter to move it to, and a permanent label covering text is worse
   than no label, so below the tablet breakpoint it simply does not render. */
@media (max-width: 760px) { .stamp { display: none; } }
@media (max-width: 768px) {
  .footer-nav, .footer-locations { flex-wrap: wrap; }
}

/* ---------------------------------------------- scroll reveal */
@media (prefers-reduced-motion: no-preference) {
  [data-r] { opacity: 0; will-change: opacity, transform; }
  [data-r="up"], [data-r="head"] { transform: translateY(24px); transition: opacity 0.7s var(--ease-out-expo), transform 0.8s var(--ease-out-expo); }
  [data-r="img"] { transform: scale(1.06); transition: opacity 0.7s ease, transform 0.85s var(--ease-out-expo); }
  [data-r].in { opacity: 1; transform: none; }
}

/* reduced motion: disable every transition/animation, keep the page functional */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
