/* ============================================================
   ShutterArc Productions — design tokens & shared styles
   Palette locked to the client's real logo only: #FFBB02 yellow
   on near-black, plus white/grey neutrals for text. No invented
   accent colors (an earlier ember-orange/cyan draft was replaced
   2026-08-10 once the real logo came in).
   ============================================================ */
:root {
  --void: #0b0d10;
  --ink: #15181d;
  --ink-2: #1d2129;
  --ember: #ffbb02;       /* primary accent — sampled from the logo, kept the token name to avoid a repo-wide rename */
  --ember-dim: #cc9502;
  --arc-cyan: #ffbb02;    /* alias so focus rings etc. stay in-palette without touching every call site */
  --paper: #f5f4f0;
  --stone: #9c9a94;
  --stone-dim: #6c6a65;
  --line: rgba(245, 244, 240, 0.12);

  --display: "Fraunces", Georgia, serif;
  --body: "Space Grotesk", "Segoe UI", sans-serif;

  --container: min(1240px, 92vw);
  --radius: 2px;
}

* { box-sizing: border-box; }
/* Safety-net backstop: no single element should ever be able to push the
   page into horizontal scroll (decorative absolutely-positioned effects
   with negative insets are the usual culprit — see .stat .flash). */
html, body { overflow-x: hidden; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--void);
  color: var(--paper);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* ---------------- Film grain ----------------
   A barely-there noise texture over the whole site — reinforces the
   "cinematic production house" positioning without fighting
   readability. Fixed + pointer-events:none so it never intercepts
   clicks; SVG feTurbulence generates the noise inline, no image
   request. Kept faint (4% opacity) deliberately — this is texture,
   not a visual effect competing with the actual photography. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 998;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: overlay;
  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)'/%3E%3C/svg%3E");
}
@media (prefers-reduced-motion: reduce) {
  body::before { display: none; }
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--ember); color: var(--void); }

:focus-visible {
  outline: 2px solid var(--arc-cyan);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  margin: 0;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.eyebrow {
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ember);
}

.wrap { width: var(--container); margin-inline: auto; }

/* ---------------- Header ---------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--container-pad, 4vw);
  background: linear-gradient(to bottom, rgba(11,13,16,0.85), transparent);
}
.site-header.solid {
  background: rgba(11, 13, 16, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img { width: 34px; height: 34px; border-radius: 7px; }
.brand-word {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand-sub {
  display: block;
  font-family: var(--body);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--stone);
}
.nav { display: flex; align-items: center; gap: 2.2rem; }
.nav a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--paper);
  position: relative;
  padding-bottom: 4px;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 1px;
  background: var(--ember);
  transition: right 0.25s ease;
}
.nav a:hover::after, .nav a[aria-current="page"]::after { right: 0; }
.nav-toggle { display: none; }

@media (max-width: 760px) {
  .nav { position: fixed; inset: 0; background: var(--void); flex-direction: column; justify-content: center; gap: 2.4rem; transform: translateX(100%); transition: transform 0.35s ease; }
  .nav.open { transform: translateX(0); }
  .nav a { font-size: 1.1rem; }
  .nav-toggle {
    display: block; position: relative; z-index: 101;
    width: 34px; height: 24px; background: none; border: none; cursor: pointer;
  }
  .nav-toggle span, .nav-toggle::before, .nav-toggle::after {
    content: ""; position: absolute; left: 0; width: 34px; height: 2px; background: var(--paper);
  }
  .nav-toggle::before { top: 0; }
  .nav-toggle span { top: 11px; }
  .nav-toggle::after { top: 22px; }
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1px solid var(--paper);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { background: var(--paper); color: var(--void); }
.btn-primary {
  background: var(--ember);
  border-color: var(--ember);
  color: var(--void);
}
.btn-primary:hover { background: var(--paper); border-color: var(--paper); color: var(--void); }

/* ---------------- Footer ---------------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 4.5rem 0 2.5rem;
  margin-top: 8rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 3rem;
}
.footer-grid h3 { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--stone); font-family: var(--body); margin-bottom: 1rem; }
.footer-grid p, .footer-grid a { color: var(--stone); font-size: 0.9rem; }
.footer-grid a { display: block; margin-bottom: 0.5rem; transition: color 0.2s ease; }
.footer-grid a:hover { color: var(--ember); }
.footer-bottom {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  color: var(--stone-dim);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  align-items: baseline;
}
.footer-credit a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-credit a:hover { color: var(--stone); }
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------------- Scroll reveal ----------------
   Generic opacity+translate+scale reveal, IntersectionObserver-driven
   from main.js. transition-duration is already zeroed under
   prefers-reduced-motion by the block above, so this degrades to an
   instant appearance automatically. Applied uniformly from main.js
   across every page, not per-section, so the motion feels the same
   everywhere you scroll. */
.reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.98);
  transition: opacity 0.8s cubic-bezier(.22,1,.36,1), transform 0.8s cubic-bezier(.22,1,.36,1);
}
.reveal.in-view { opacity: 1; transform: translateY(0) scale(1); }
/* Every eyebrow tag gets a brief flash-in as it lands — the same
   shutter-flash motif as the stats, applied consistently sitewide
   instead of being a one-off effect. */
.eyebrow.reveal.in-view { animation: eyebrowFlash 0.7s ease; }
@keyframes eyebrowFlash {
  0% { text-shadow: 0 0 20px rgba(255,187,2,0.9); }
  100% { text-shadow: 0 0 0 rgba(255,187,2,0); }
}

/* ---------------- Hover lift + glow ----------------
   Shared across value cards, process steps, service rows, stats and
   shoot tiles — one consistent hover language site-wide instead of
   one-off effects per section. */
.value-card, .process-step, .service-row, .stat {
  transition: transform 0.35s cubic-bezier(.22,1,.36,1), filter 0.35s ease;
}
.value-card:hover, .process-step:hover, .stat:hover {
  transform: translateY(-6px);
  filter: drop-shadow(0 10px 24px rgba(255, 187, 2, 0.14));
}
.service-row:hover { transform: translateX(6px); }

/* ---------------- Magnetic button glow ----------------
   A spotlight that tracks the cursor inside primary buttons — main.js
   writes --mx/--my per pointermove. Purely decorative, never affects
   layout or click targets. */
.btn { position: relative; overflow: hidden; }
.btn::before {
  content: "";
  position: absolute;
  left: var(--mx, 50%); top: var(--my, 50%);
  width: 180px; height: 180px;
  /* Both .btn and .btn-primary flip to a near-white background on
     hover (see :hover rules above) — a white spotlight would vanish
     against that, so this uses the brand ember instead, which reads
     as a warm highlight against white and still shows against the
     void/ember resting states. */
  background: radial-gradient(circle, rgba(255,187,2,0.55), transparent 70%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.btn:hover::before { opacity: 1; }
.btn > * { position: relative; z-index: 1; }

/* ---------------- Page hero (inner pages) ---------------- */
.page-hero {
  padding: 11rem 0 4rem;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
.page-hero .eyebrow { margin-bottom: 1.1rem; display: block; }
.page-hero p.lede { max-width: 46ch; color: var(--stone); font-size: 1.05rem; margin-top: 1.2rem; }

/* ---------------- Utility: lazy image w/ blur-up ---------------- */
.pic {
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.pic img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.pic img.loaded { opacity: 1; }

/* ---------------- Process steps (services + home) ---------------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.process-step .num { font-family: var(--display); font-size: 2.2rem; color: var(--ember); }
.process-step h4 { font-size: 1.05rem; margin-top: 0.6rem; }
.process-step p { color: var(--stone); font-size: 0.88rem; margin-top: 0.5rem; }
@media (max-width: 800px) { .process { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .process { grid-template-columns: 1fr; } }

/* ---------------- Iris page transition ----------------
   Was hardcoded into index.html's own <style> block and only ever
   fired once, on the home page's first load. Moved here + injected
   by main.js on every page, so the same shutter-blade open plays on
   every page load, and a matching close plays before any internal
   navigation — one consistent system instead of a home-only intro
   trick. */
.iris-overlay {
  position: fixed; inset: 0; z-index: 999;
  display: flex; align-items: center; justify-content: center;
  background: var(--void);
  pointer-events: none;
}
.iris-overlay svg { width: 46vmin; height: 46vmin; }
.iris-overlay .blade { transform-origin: 50px 50px; }

/* Opening (page just loaded): blades scale out to reveal the page. */
.iris-overlay.opening .blade { animation: bladeOpen 1.1s cubic-bezier(.6,0,.2,1) forwards; }
.iris-overlay.opening .blade:nth-child(1) { animation-delay: 0s; }
.iris-overlay.opening .blade:nth-child(2) { animation-delay: 0.03s; }
.iris-overlay.opening .blade:nth-child(3) { animation-delay: 0.06s; }
.iris-overlay.opening .blade:nth-child(4) { animation-delay: 0.09s; }
.iris-overlay.opening .blade:nth-child(5) { animation-delay: 0.12s; }
.iris-overlay.opening .blade:nth-child(6) { animation-delay: 0.15s; }
.iris-overlay.opening .blade:nth-child(7) { animation-delay: 0.18s; }
@keyframes bladeOpen { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(2.6); opacity: 0; } }
.iris-overlay.opening { animation: overlayGone 0s linear 1.3s forwards; }
@keyframes overlayGone { to { visibility: hidden; } }

/* Closing (about to navigate away): blades scale in to cover the page. */
.iris-overlay.closing { visibility: visible; animation: none; }
.iris-overlay.closing .blade {
  transform: scale(2.6); opacity: 0;
  animation: bladeClose 0.42s cubic-bezier(.6,0,.2,1) forwards;
}
.iris-overlay.closing .blade:nth-child(1) { animation-delay: 0.12s; }
.iris-overlay.closing .blade:nth-child(2) { animation-delay: 0.09s; }
.iris-overlay.closing .blade:nth-child(3) { animation-delay: 0.06s; }
.iris-overlay.closing .blade:nth-child(4) { animation-delay: 0.03s; }
.iris-overlay.closing .blade:nth-child(5) { animation-delay: 0s; }
.iris-overlay.closing .blade:nth-child(6) { animation-delay: 0.03s; }
.iris-overlay.closing .blade:nth-child(7) { animation-delay: 0.06s; }
@keyframes bladeClose { 0% { transform: scale(2.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .iris-overlay.opening, .iris-overlay.closing, .iris-overlay .blade { animation: none !important; visibility: hidden !important; }
}

/* ---------------- Custom shutter cursor ----------------
   Replaces the OS pointer with a small iris ring that trails the
   mouse and snaps shut on click — literal to the brand name.
   Desktop/mouse only (pointer: fine); touch devices keep native
   behavior entirely, this block just never activates. Text fields
   get the real cursor back via .has-shutter-cursor input etc. below,
   since a custom pointer can't show a text caret. */
@media (pointer: fine) {
  .has-shutter-cursor,
  .has-shutter-cursor a,
  .has-shutter-cursor button,
  .has-shutter-cursor .btn {
    cursor: none;
  }
  .has-shutter-cursor input,
  .has-shutter-cursor textarea,
  .has-shutter-cursor select {
    cursor: auto;
  }
}
#shutter-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 30px; height: 30px;
  margin: -15px 0 0 -15px;
  pointer-events: none;
  z-index: 999;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.12s cubic-bezier(.34,1.56,.64,1);
  will-change: transform;
}
#shutter-cursor.active { opacity: 1; }
#shutter-cursor svg { width: 100%; height: 100%; display: block; }

/* ---------------- Floating WhatsApp button ---------------- */
.float-whatsapp {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 90;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25d366; /* WhatsApp's own brand green — deliberately the one
                           spot on the site outside the yellow/black palette,
                           since it's a recognizable third-party affordance,
                           not a brand color choice of ours. */
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
  transition: transform 0.25s cubic-bezier(.34,1.56,.64,1);
}
.float-whatsapp:hover { transform: scale(1.08); }
@media (max-width: 600px) {
  .float-whatsapp { right: 16px; bottom: 16px; width: 50px; height: 50px; }
}

/* ---------------- Section rhythm ---------------- */
section { padding: 6rem 0; }
@media (max-width: 760px) { section { padding: 4rem 0; } }
