/* ═══════════════════════════════════════════════════════
   MONKEY PICTURES — SHARED STYLESHEET
   Edit here → every page updates automatically
═══════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red:        #E8001E;
  --black:      #0A0A0A;
  --white:      #FFFFFF;
  --off-white:  #F7F5F2;
  --font-heading: 'Anton', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --nav-height: 72px;
  --ease-out:   cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--black);
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 2px; }

/* ── Scroll reveal ── */
.reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Buttons ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red); color: var(--white);
  font-family: var(--font-body); font-size: 13px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; padding: 14px 28px; border-radius: 4px;
  border: none; cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.btn-primary:hover { background: #c5001a; transform: translateY(-1px); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.8); font-family: var(--font-body);
  font-size: 13px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; padding: 14px 0; transition: color 0.2s;
  background: none; border: none; cursor: pointer;
}
.btn-ghost:hover { color: var(--white); }
.btn-ghost svg { transition: transform 0.2s; }
.btn-ghost:hover svg { transform: translateX(4px); }

/* ════════════════════════════════════
   NAVBAR
════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0; left: 50%;
  transform: translate(-50%, 0);
  width: 100vw;
  z-index: 1250;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px;
  height: var(--nav-height);
  border-radius: 30px;
  background: transparent;
  transition:
    width       0.7s var(--ease-out),
    top         0.7s var(--ease-out),
    height      0.6s var(--ease-out),
    padding     0.7s var(--ease-out),
    background  0.55s var(--ease-out),
    box-shadow  0.55s var(--ease-out),
    border      0.55s var(--ease-out),
    transform   0.55s var(--ease-out);
}

#navbar.nav-hidden { transform: translate(-50%, -140%); }

#navbar.scrolled {
  top: 16px;
  width: min(640px, calc(100vw - 48px));
  height: 52px;
  padding: 0 28px;
  border-radius: 30px;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  box-shadow: 0 8px 40px rgba(0,0,0,0.12), 0 1px 0 rgba(255,255,255,0.8) inset;
  border: 1px solid rgba(255,255,255,0.6);
}

/* On pages with white background the pill triggers immediately */
#navbar.always-pill {
  top: 16px;
  width: min(640px, calc(100vw - 48px));
  height: 52px;
  padding: 0 28px;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  box-shadow: 0 8px 40px rgba(0,0,0,0.12), 0 1px 0 rgba(255,255,255,0.8) inset;
  border: 1px solid rgba(255,255,255,0.6);
}

.nav-logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.nav-logo img { height: 21px; width: auto; display: block; transition: height 0.6s var(--ease-out); }
#navbar.scrolled .nav-logo img,
#navbar.always-pill .nav-logo img { height: 18px; }

.nav-links { display: flex; gap: 36px; list-style: none; align-items: center; }

.nav-links a,
.nav-links button {
  font-family: var(--font-body); font-size: 13px; font-weight: 500;
  letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--black); text-decoration: none;
  background: none; border: none; cursor: pointer; padding: 0;
  opacity: 0.55; transition: opacity 0.2s;
}
.nav-links a:hover,
.nav-links button:hover { opacity: 1; }

/* Active page indicator */
.nav-links a.active { opacity: 1; }

.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 6px; background: none; border: none;
}
.nav-hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--black); transition: all 0.3s var(--ease-out); transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ════════════════════════════════════
   MOBILE MENU
════════════════════════════════════ */

/* Scrim behind the card */
/* Scrim — sits above content but navbar stays on top */
#mobile-menu-scrim {
  position: fixed; inset: 0; z-index: 1210;
  background: rgba(0,0,0,0.28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s var(--ease-out);
}
#mobile-menu-scrim.open { opacity: 1; pointer-events: all; }

/* Bottom sheet */
#mobile-menu {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 88vh;
  z-index: 1211;
  background: #fff;
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -8px 48px rgba(0,0,0,0.14);
  padding: 12px 20px 0;
  overflow-y: auto;
  opacity: 1; pointer-events: none;
  transform: translateY(100%);
  transition: transform 0.45s var(--ease-out);
  touch-action: pan-y;
  display: flex; flex-direction: column;
}
#mobile-menu.open {
  pointer-events: all;
  transform: translateY(0);
}
#mobile-menu.is-dragging {
  transition: none; /* instant during drag */
}

/* Drag handle — real element so touch events work */
.menu-handle {
  width: 100%;
  padding: 12px 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  flex-shrink: 0;
}
.menu-handle::after {
  content: '';
  display: block;
  width: 40px; height: 4px;
  background: rgba(10,10,10,0.15);
  border-radius: 2px;
}
.menu-handle:active { cursor: grabbing; }

/* 2×2 grid of large tile buttons */
#mobile-menu .mobile-menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  flex: 1; /* take up remaining space so footer is pushed down */
  align-content: start;
}

/* ── In-menu contact form (mirrors footer style, dark on white) ── */
.menu-contact {
  margin-top: 16px;
  display: flex; flex-direction: column; gap: 10px;
  flex-shrink: 0;
}
/* Email row: one unified box, divider between input and button */
.menu-contact-row {
  display: flex; gap: 0;
  border: 1px solid rgba(10,10,10,0.25);
  height: 36px;
  align-items: center;
}
.menu-contact-row:focus-within { border-color: rgba(10,10,10,0.6); }

.menu-contact input[type="email"] {
  flex: 1; background: transparent; border: none; outline: none;
  padding: 0 16px;
  height: 36px; line-height: 36px;
  font-family: var(--font-body); font-size: 13px; font-weight: 300;
  color: var(--black); -webkit-appearance: none;
}
.menu-contact input[type="email"]::placeholder { color: rgba(10,10,10,0.35); }

.menu-contact textarea {
  background: transparent;
  border: 1px solid rgba(10,10,10,0.25);
  border-radius: 0; padding: 11px 16px;
  font-family: var(--font-body); font-size: 13px; font-weight: 300;
  color: var(--black); outline: none; resize: none; height: 80px;
  transition: border-color 0.2s; -webkit-appearance: none; width: 100%; box-sizing: border-box;
}
.menu-contact textarea::placeholder { color: rgba(10,10,10,0.35); }
.menu-contact textarea:focus { border-color: rgba(10,10,10,0.6); }

.menu-contact-send {
  background: transparent !important; color: var(--black);
  font-family: var(--font-body); font-size: 12px; font-weight: 600;
  letter-spacing: 0.09em; text-transform: uppercase;
  padding: 0 16px;
  height: 36px; line-height: 36px;
  border: none; border-left: 1px solid rgba(10,10,10,0.25);
  border-radius: 0; -webkit-appearance: none; appearance: none;
  -webkit-tap-highlight-color: transparent;
  box-shadow: none; outline: none;
  cursor: pointer; white-space: nowrap; flex-shrink: 0;
  transition: background 0.2s;
}
.menu-contact-send:hover,
.menu-contact-send:focus,
.menu-contact-send:active { background: transparent !important; }

.menu-contact-confirm {
  font-size: 11px; color: rgba(10,10,10,0.45);
  opacity: 0; transition: opacity 0.4s; height: 0; overflow: hidden;
}
.menu-contact-confirm.show { opacity: 1; height: auto; }

/* ── In-menu social links ── */
.menu-socials {
  display: flex; gap: 8px;
  margin-top: 8px; flex-shrink: 0;
}
.menu-social-link {
  flex: 1;
  display: flex !important; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 12px !important;
  border-radius: 0 !important;
  background: none !important;
  font-size: 13px !important; font-weight: 500 !important;
  letter-spacing: 0.04em; text-transform: uppercase !important;
  color: var(--black) !important; text-decoration: none;
  transition: background 0.2s !important;
}
.menu-social-link:hover { background: rgba(10,10,10,0.05) !important; }
.menu-social-link svg { flex-shrink: 0; }

/* Legal footer row */
.menu-legal {
  padding: 20px 4px 32px;
  display: flex; flex-wrap: nowrap; align-items: center; gap: 0 12px;
  border-top: 1px solid rgba(10,10,10,0.07);
  margin-top: 20px;
  flex-shrink: 0;
  white-space: nowrap;
}
.menu-legal span,
.menu-legal a {
  font-family: var(--font-body);
  font-size: 11px !important; font-weight: 400 !important;
  color: rgba(10,10,10,0.35) !important;
  letter-spacing: 0.02em;
  text-transform: none !important;
  text-decoration: none;
  background: none !important;
  padding: 0 !important; border-radius: 0 !important;
  display: inline !important;
  line-height: 1; transition: color 0.2s;
}
.menu-legal a:hover { color: var(--black) !important; }
/* Neutralise the #mobile-menu a.active highlight inside the legal footer row */
.menu-legal a.active {
  background: none !important;
  font-weight: 400 !important;
}
.menu-legal span::after {
  content: '·'; margin-left: 12px; color: rgba(10,10,10,0.2);
}

#mobile-menu a,
#mobile-menu button {
  display: flex; align-items: center; justify-content: center;
  padding: 28px 16px;
  border-radius: 20px;
  font-family: var(--font-body); font-size: 17px; font-weight: 500;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--black);
  text-decoration: none;
  background: rgba(10,10,10,0.04);
  border: none; cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
#mobile-menu a:hover,
#mobile-menu button:hover { background: rgba(10,10,10,0.08); }
#mobile-menu a.active {
  background: rgba(10,10,10,0.08);
  color: var(--black);
  font-weight: 700;
}

/* ════════════════════════════════════
   OVERLAY PANELS (INFO / PROCESS)
════════════════════════════════════ */
.overlay-panel {
  position: fixed; inset: 0; z-index: 1100;
  background: var(--black);
  opacity: 0; pointer-events: none;
  transition: opacity 0.45s var(--ease-out);
  overflow-y: auto; display: flex; flex-direction: column;
}
.overlay-panel.open { opacity: 1; pointer-events: all; }

.overlay-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; height: var(--nav-height); flex-shrink: 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.overlay-nav-logo { display: flex; align-items: center; }
.overlay-nav-logo img { height: 22px; width: auto; display: block; }

.overlay-close {
  background: none; border: 1.5px solid rgba(255,255,255,0.18);
  border-radius: 50%; width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--white);
  transition: border-color 0.2s, background 0.2s; flex-shrink: 0;
}
.overlay-close:hover { border-color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.06); }

.overlay-label {
  font-size: 11px; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--red); display: flex; align-items: center; gap: 10px; margin-bottom: 24px;
}
.overlay-label::before { content: ''; display: block; width: 20px; height: 1.5px; background: var(--red); }

/* INFO overlay */
.info-body {
  flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  padding: 80px 48px 100px; align-items: start;
  max-width: 1200px; width: 100%; margin: 0 auto;
}
.info-heading {
  font-family: var(--font-heading); font-size: clamp(48px, 6vw, 80px);
  line-height: 0.93; letter-spacing: 0.01em; color: var(--white);
}
.info-text {
  margin-top: 28px; font-size: 16px; font-weight: 300;
  line-height: 1.8; color: rgba(255,255,255,0.5);
}
.info-right-col { display: flex; flex-direction: column; gap: 64px; padding-top: 8px; }
.info-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 32px; }
.stat-number { font-family: var(--font-heading); font-size: 56px; color: var(--red); line-height: 1; }
.stat-label { margin-top: 6px; font-size: 13px; font-weight: 300; color: rgba(255,255,255,0.4); line-height: 1.5; }
.info-contact-block h4 {
  font-size: 11px; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(255,255,255,0.28); margin-bottom: 14px;
}
.info-email-link {
  display: inline-block; font-family: var(--font-heading); font-size: 26px;
  color: var(--white); text-decoration: none; border-bottom: 2px solid var(--red);
  line-height: 1.2; transition: color 0.2s;
}
.info-email-link:hover { color: var(--red); }
.info-address {
  margin-top: 18px; font-size: 13px; font-weight: 300;
  line-height: 1.8; color: rgba(255,255,255,0.3);
}
.info-imprint-btn {
  margin-top: 10px; background: none; border: none; cursor: pointer;
  font-family: var(--font-body); font-size: 11px; font-weight: 500;
  letter-spacing: 0.07em; text-transform: uppercase;
  color: rgba(255,255,255,0.22); padding: 0; text-decoration: underline; transition: color 0.2s;
}
.info-imprint-btn:hover { color: rgba(255,255,255,0.55); }
.info-imprint-body { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease-out); }
.info-imprint-body.open { max-height: 400px; }
.info-imprint-inner {
  margin-top: 18px; font-size: 12px; font-weight: 300;
  line-height: 1.8; color: rgba(255,255,255,0.22);
}

/* PROCESS overlay */
.process-body {
  flex: 1; padding: 72px 48px 100px;
  max-width: 1400px; width: 100%; margin: 0 auto;
}
.process-intro {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  margin-bottom: 80px; align-items: end;
}
.process-heading {
  font-family: var(--font-heading); font-size: clamp(52px, 7vw, 96px);
  line-height: 0.92; letter-spacing: 0.01em; color: var(--white);
}
.process-intro-text {
  font-size: 15px; font-weight: 300; line-height: 1.75;
  color: rgba(255,255,255,0.45); max-width: 440px; align-self: end;
}
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.process-item {
  padding: 56px 44px; background: rgba(255,255,255,0.04); border-radius: 4px;
  display: flex; flex-direction: column; gap: 20px; transition: background 0.3s;
}
.process-item:hover { background: rgba(255,255,255,0.07); }
.process-number { font-family: var(--font-heading); font-size: 56px; color: var(--red); line-height: 1; }
.process-name { font-family: var(--font-heading); font-size: 32px; line-height: 1.02; letter-spacing: 0.01em; color: var(--white); }
.process-desc { font-size: 14px; font-weight: 300; line-height: 1.75; color: rgba(255,255,255,0.48); }
.process-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 12px; }
.process-tag {
  font-size: 10px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 10px; border: 1px solid rgba(255,255,255,0.14); border-radius: 20px;
  color: rgba(255,255,255,0.45);
}

/* ════════════════════════════════════
   FOOTER — RED, FULL-HEIGHT
════════════════════════════════════ */
footer {
  background: var(--red); color: var(--white);
  min-height: 100dvh; display: flex; flex-direction: column;
  padding: 52px 56px 0; position: relative; overflow: hidden;
}

/* Brand header — sits above the columns */
.ft-brand { margin-bottom: 56px; }
.ft-logo { color: var(--white); line-height: 1; margin-bottom: 16px; }
.ft-logo img { height: 30px; width: auto; display: block; filter: brightness(0) invert(1); }
.ft-copy { margin-top: 6px; font-size: 12px; font-weight: 300; color: rgba(255,255,255,0.55); letter-spacing: 0.01em; }

/* 4-column grid: Studio · Navigate · Follow · Form */
.ft-top {
  display: grid; grid-template-columns: 1fr 1fr 1fr 1.4fr;
  gap: 48px; align-items: start;
}

.ft-form { display: flex; flex-direction: column; gap: 10px; }
.ft-input-row { display: flex; gap: 0; }

.ft-form input[type="email"] {
  flex: 1; background: transparent;
  border: 1px solid rgba(255,255,255,0.45); border-right: none;
  border-radius: 4px 0 0 4px; padding: 11px 16px;
  font-family: var(--font-body); font-size: 13px; font-weight: 300;
  color: var(--white); outline: none;
  transition: border-color 0.2s; -webkit-appearance: none;
}
.ft-form input[type="email"]::placeholder { color: rgba(255,255,255,0.4); }
.ft-form input[type="email"]:focus { border-color: rgba(255,255,255,0.9); }

.ft-form textarea {
  background: transparent; border: 1px solid rgba(255,255,255,0.45);
  border-radius: 4px; padding: 11px 16px;
  font-family: var(--font-body); font-size: 13px; font-weight: 300;
  color: var(--white); outline: none; resize: none; height: 80px;
  transition: border-color 0.2s; -webkit-appearance: none;
}
.ft-form textarea::placeholder { color: rgba(255,255,255,0.4); }
.ft-form textarea:focus { border-color: rgba(255,255,255,0.9); }

.ft-send {
  background: rgba(255,255,255,0.15); color: var(--white);
  font-family: var(--font-body); font-size: 12px; font-weight: 600;
  letter-spacing: 0.09em; text-transform: uppercase;
  padding: 11px 20px; border: 1px solid rgba(255,255,255,0.45); border-left: none;
  border-radius: 0 4px 4px 0; cursor: pointer; white-space: nowrap; transition: background 0.2s;
}
.ft-send:hover { background: rgba(255,255,255,0.28); }

.ft-send-standalone {
  align-self: flex-start; background: rgba(255,255,255,0.15); color: var(--white);
  font-family: var(--font-body); font-size: 12px; font-weight: 600;
  letter-spacing: 0.09em; text-transform: uppercase;
  padding: 10px 22px; border: 1px solid rgba(255,255,255,0.45);
  border-radius: 4px; cursor: pointer; transition: background 0.2s;
}
.ft-send-standalone:hover { background: rgba(255,255,255,0.28); }

#ft-confirm { font-size: 12px; color: rgba(255,255,255,0.6); opacity: 0; transition: opacity 0.4s; margin-top: 2px; }

.ft-col-label {
  font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.45); margin-bottom: 14px;
}
.ft-address { font-size: 14px; font-weight: 300; line-height: 1.9; color: rgba(255,255,255,0.75); }
.ft-address a { color: var(--white); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.3); transition: border-color 0.2s; }
.ft-address a:hover { border-color: white; }

.ft-links { display: flex; flex-direction: column; gap: 10px; }
.ft-links a,
.ft-links button {
  font-size: 14px; font-weight: 400; color: rgba(255,255,255,0.75);
  text-decoration: none; background: none; border: none; cursor: pointer;
  padding: 0; font-family: var(--font-body); text-align: left;
  transition: color 0.2s; letter-spacing: 0.01em;
}
.ft-links a:hover,
.ft-links button:hover { color: var(--white); }

.ft-wordmark-wrap {
  margin-top: auto; pointer-events: none; user-select: none;
  margin-bottom: -4px; line-height: 0;
}
.ft-wordmark { display: block; width: 100%; height: auto; opacity: 1; filter: brightness(0) invert(1); }

/* ════════════════════════════════════
   RESPONSIVE
════════════════════════════════════ */
@media (max-width: 1024px) {
  .process-grid { grid-template-columns: 1fr 1fr; }
  .ft-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .ft-brand { margin-bottom: 40px; }
}

@media (max-width: 768px) {
  #navbar { padding: 0 24px; }
  #navbar.scrolled { width: calc(100vw - 32px); top: 10px; padding: 0 20px; }
  #navbar.always-pill { width: calc(100vw - 32px); top: 10px; padding: 0 20px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .overlay-nav { padding: 0 24px; }
  .info-body { grid-template-columns: 1fr; gap: 48px; padding: 40px 24px 80px; }
  .process-body { padding: 40px 24px 80px; }
  .process-intro { grid-template-columns: 1fr; gap: 20px; margin-bottom: 48px; }
  .process-grid { grid-template-columns: 1fr; }
  footer { padding: 44px 24px 0; }
  .ft-brand { margin-bottom: 32px; }
  .ft-top { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 520px) {
  .ft-top { grid-template-columns: 1fr; }
}
