/* =================================================================
   Artywork — shared styles (used by all pages)
   ================================================================= */
:root {
  --bg:        #FAFAF5;
  --bg-2:      #F2EFE6;
  --ink:       #0F0E0D;
  --ink-2:     #2A2825;
  --mute:      #6B6864;
  --mute-2:    #908C86;
  --line:      rgba(15, 14, 13, 0.10);
  --line-2:    rgba(15, 14, 13, 0.18);
  --orange:    #EB733E;
  --orange-2:  #C95A29;
  --orange-3:  #FBE3D4;

  --font:      'Jost', system-ui, sans-serif;
  --max:       1240px;
  --pad-x:     clamp(20px, 5vw, 64px);
  --pad-y:     clamp(80px, 11vw, 150px);

  --ease:      cubic-bezier(0.32, 0.72, 0, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
::selection { background: var(--orange); color: var(--bg); }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: 0; background: none; cursor: pointer; color: inherit; }

/* TYPOGRAPHY PRIMITIVES */
.h-display { font-size: clamp(48px, 9vw, 132px); font-weight: 500; line-height: 0.96; letter-spacing: -0.035em; }
.h-section { font-size: clamp(36px, 5.5vw, 76px); font-weight: 500; line-height: 1.0; letter-spacing: -0.03em; }
.lead { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.55; color: var(--mute); max-width: 56ch; font-weight: 400; }
.label {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink); display: inline-flex; align-items: center; gap: 10px;
}
.label::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.work { color: var(--orange); font-weight: 600; }

/* LAYOUT */
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }
section { padding-top: var(--pad-y); padding-bottom: var(--pad-y); position: relative; }
section + section { padding-top: 0; }

.sec-head { text-align: center; max-width: 820px; margin: 0 auto clamp(56px, 8vw, 96px); }
.sec-head .label { margin-bottom: 22px; }
.sec-head .lead { margin: 22px auto 0; text-align: center; }

/* NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 18px var(--pad-x);
  display: flex; justify-content: space-between; align-items: center;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), padding 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(250, 250, 245, 0.85);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
  padding-top: 14px; padding-bottom: 14px;
}
.logo {
  display: flex; align-items: center; gap: 12px;
  font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; font-size: 16px;
  position: relative; z-index: 110;
}
.logo img { height: 30px; width: auto; }
.logo .arty { color: var(--ink); }
.logo .work { color: var(--orange); font-weight: 600; }

.nav-links { display: flex; align-items: center; gap: 38px; font-size: 14px; color: var(--ink); }
.nav-links a { position: relative; padding: 6px 0; transition: color 0.25s ease; }
.nav-links a:hover { color: var(--orange); }
.nav-links a.active { color: var(--orange); }
.nav-links a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--orange);
}
.nav-links .cta {
  background: var(--ink); color: var(--bg);
  padding: 12px 22px; border-radius: 999px; font-size: 13px; font-weight: 500;
  transition: background 0.25s ease, color 0.25s ease;
}
.nav-links .cta:hover { background: var(--orange); color: var(--ink); }
.nav-links .cta::after { display: none; }

.menu-btn {
  display: none; width: 36px; height: 36px;
  flex-direction: column; justify-content: center; align-items: flex-end; gap: 5px;
}
.menu-btn span {
  display: block; width: 22px; height: 1.5px; background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.2s ease, width 0.3s var(--ease);
}
.menu-btn span:nth-child(2) { width: 16px; }
.menu-btn.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); width: 22px; }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); width: 22px; }

@media (max-width: 860px) {
  .menu-btn { display: flex; position: relative; z-index: 110; }
  .nav-links {
    position: fixed; inset: 0;
    width: 100vw; height: 100vh; height: 100dvh;
    background: var(--bg); z-index: 100;
    flex-direction: column; justify-content: center; align-items: center;
    gap: 32px; font-size: 22px;
    opacity: 0; pointer-events: none; visibility: hidden;
    transition: opacity 0.35s var(--ease), visibility 0s linear 0.35s;
  }
  .nav-links.open {
    opacity: 1; pointer-events: auto; visibility: visible;
    transition: opacity 0.35s var(--ease), visibility 0s linear 0s;
  }
  .nav-links .cta { font-size: 16px; padding: 16px 32px; }
}
body.menu-open { overflow: hidden; }
body.menu-open .nav { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--bg);
  padding: 16px 28px; border-radius: 999px;
  font-size: 14px; font-weight: 500; letter-spacing: 0.04em;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--orange); color: var(--ink); transform: translateY(-2px); box-shadow: 0 12px 28px -10px rgba(235, 115, 62, 0.45); }
.btn .arr { transition: transform 0.25s var(--ease); font-size: 16px; line-height: 1; }
.btn:hover .arr { transform: translate(3px, -1px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-2); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); box-shadow: 0 12px 28px -10px rgba(15, 14, 13, 0.35); }

/* FOOTER */
footer { border-top: 1px solid var(--line); padding: 32px var(--pad-x); }
.foot-row {
  max-width: var(--max); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  font-size: 13px; color: var(--mute);
}
.foot-row .logo-mini {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink); font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; font-size: 13px;
}
.foot-row .logo-mini img { height: 22px; }
.foot-row .logo-mini .work { color: var(--orange); font-weight: 600; }

/* REVEAL */
.rev {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.rev.in { opacity: 1; transform: translateY(0); }
.rev-stagger > * {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.rev-stagger.in > * { opacity: 1; transform: translateY(0); }
.rev-stagger.in > *:nth-child(1) { transition-delay: 0.05s; }
.rev-stagger.in > *:nth-child(2) { transition-delay: 0.14s; }
.rev-stagger.in > *:nth-child(3) { transition-delay: 0.24s; }
.rev-stagger.in > *:nth-child(4) { transition-delay: 0.34s; }
.rev-stagger.in > *:nth-child(5) { transition-delay: 0.42s; }
.rev-stagger.in > *:nth-child(6) { transition-delay: 0.50s; }
.rev-stagger.in > *:nth-child(7) { transition-delay: 0.58s; }
.rev-stagger.in > *:nth-child(8) { transition-delay: 0.66s; }
.rev-stagger.in > *:nth-child(9) { transition-delay: 0.74s; }
.rev-stagger.in > *:nth-child(10) { transition-delay: 0.82s; }
.rev-stagger.in > *:nth-child(11) { transition-delay: 0.90s; }
.rev-stagger.in > *:nth-child(12) { transition-delay: 0.98s; }
.rev-stagger.in > *:nth-child(13) { transition-delay: 1.06s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* MODAL */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(15, 14, 13, 0.55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  z-index: 200;
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0s linear 0.4s;
  display: flex; align-items: center; justify-content: center;
  padding: 24px; overflow-y: auto;
}
.modal-backdrop.open { opacity: 1; visibility: visible; transition: opacity 0.4s var(--ease), visibility 0s linear 0s; }
.modal {
  background: var(--bg); border-radius: 24px;
  width: 100%; max-width: 580px;
  padding: clamp(28px, 4vw, 48px);
  position: relative;
  transform: translateY(24px) scale(0.98);
  transition: transform 0.5s var(--ease);
  max-height: 92vh; overflow-y: auto;
  box-shadow: 0 40px 80px -20px rgba(15, 14, 13, 0.4);
}
.modal-backdrop.open .modal { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute; top: 18px; right: 18px;
  width: 38px; height: 38px;
  border-radius: 50%; background: var(--bg-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; line-height: 1;
  transition: background 0.25s ease, transform 0.25s ease;
  color: var(--ink);
}
.modal-close:hover { background: var(--ink); color: var(--bg); transform: rotate(90deg); }
.modal-eyebrow {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--orange);
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 16px;
}
.modal-eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.modal-title {
  font-size: clamp(28px, 3.4vw, 40px); font-weight: 500;
  line-height: 1.05; letter-spacing: -0.025em;
  margin-bottom: 12px;
}
.modal-title .work { color: var(--orange); }
.modal-sub { color: var(--mute); font-size: 15.5px; line-height: 1.55; margin-bottom: 28px; }
.modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 28px; }
.modal-action {
  background: var(--ink); color: var(--bg);
  padding: 16px 20px; border-radius: 14px;
  font-size: 14px; font-weight: 500; text-align: center;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.modal-action:hover { background: var(--orange); color: var(--ink); transform: translateY(-2px); }
.modal-action.secondary { background: transparent; color: var(--ink); border: 1px solid var(--line-2); }
.modal-action.secondary:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.modal-or {
  display: flex; align-items: center; gap: 14px;
  margin: 8px 0 24px;
  color: var(--mute); font-size: 12px;
  letter-spacing: 0.18em; text-transform: uppercase;
}
.modal-or::before, .modal-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.form-grid { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute);
}
.field input, .field select, .field textarea {
  font-family: var(--font); font-size: 15px;
  color: var(--ink); background: var(--bg-2);
  border: 1px solid transparent; border-radius: 12px;
  padding: 13px 14px;
  transition: border-color 0.25s ease, background 0.25s ease;
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--ink); background: var(--bg);
}
.field textarea { resize: vertical; min-height: 90px; line-height: 1.5; }
.form-submit {
  margin-top: 6px;
  background: var(--ink); color: var(--bg);
  padding: 14px 24px; border-radius: 999px;
  font-size: 14px; font-weight: 500; letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
  width: 100%;
}
.form-submit:hover { background: var(--orange); color: var(--ink); transform: translateY(-1px); }
.form-success { display: none; text-align: center; padding: 32px 0; }
.form-success.show { display: block; }
.form-success .check {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--orange); color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  margin: 0 auto 16px;
}
.form-success p { color: var(--mute); font-size: 15.5px; line-height: 1.5; }
@media (max-width: 540px) {
  .modal-actions { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* INNER PAGE HERO */
.page-hero {
  padding-top: clamp(150px, 18vw, 220px);
  padding-bottom: clamp(40px, 5vw, 64px);
  text-align: center;
}
.page-hero .crumb {
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--mute); margin-bottom: 18px;
  display: inline-flex; align-items: center; gap: 8px;
}
.page-hero .crumb a { color: var(--mute); }
.page-hero .crumb a:hover { color: var(--orange); }
.page-hero .crumb .sep { color: var(--line-2); }
.page-hero .crumb .here { color: var(--ink); font-weight: 500; }
.page-hero h1 {
  font-size: clamp(44px, 8vw, 116px);
  font-weight: 500; line-height: 0.97;
  letter-spacing: -0.035em;
  margin-bottom: 22px;
}
.page-hero h1 .work { color: var(--orange); }
.page-hero .lead { margin: 0 auto; }

/* PAGE NAV (next/prev) */
.page-nav {
  border-top: 1px solid var(--line);
  padding: clamp(40px, 5vw, 60px) 0;
  text-align: center;
}
.page-nav .pn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}
.page-nav a {
  display: block;
  padding: 22px 24px;
  border-radius: 14px;
  background: var(--bg-2);
  text-align: left;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
  position: relative;
}
.page-nav a:hover { background: var(--ink); color: var(--bg); transform: translateY(-2px); }
.page-nav a:hover .pn-label,
.page-nav a:hover .pn-name { color: inherit; }
.page-nav a:hover .pn-name .work { color: var(--orange); }
.page-nav .pn-label {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--mute); margin-bottom: 6px;
  display: flex; align-items: center; gap: 6px;
}
.page-nav .pn-name {
  font-size: 18px; font-weight: 500;
  letter-spacing: -0.01em;
  display: inline-flex; align-items: center; gap: 8px;
}
.page-nav .pn-name .work { color: var(--orange); }
.page-nav .next { text-align: right; }
@media (max-width: 700px) {
  .page-nav .pn-grid { grid-template-columns: 1fr; }
  .page-nav .next { text-align: left; }
}

/* ============================================================
   PAGE-HERO HAND-DRAWN ANIMATIONS LIBRARY
   ------------------------------------------------------------
   Used on services, who, process, voices, and other secondary
   pages. Adds a quiet layer of geometric animation in the page
   hero only. Each page picks different shapes from the library.
   ============================================================ */

.ph-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  animation: ph-canvas-fade-in 1.6s ease-out 0.4s forwards;
}
@keyframes ph-canvas-fade-in { to { opacity: 1; } }
.ph-canvas svg {
  width: 100%;
  height: 100%;
  display: block;
}
.ph-line, .ph-circle, .ph-thread, .ph-rect, .ph-poly {
  fill: none;
  stroke: #2D5043;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.28;
}
.ph-circle.is-orange, .ph-line.is-orange, .ph-poly.is-orange {
  stroke: var(--orange);
  opacity: 0.22;
}
.ph-dot {
  fill: var(--orange);
  opacity: 0.45;
}
.ph-dot.is-ink { fill: var(--ink); opacity: 0.32; }
.ph-dot.is-green { fill: #2D5043; opacity: 0.42; }

/* The page-hero needs position: relative for canvas to anchor. */
.page-hero {
  position: relative;
  overflow: hidden;
}
.page-hero > .wrap {
  /* No position-relative; rely on DOM order so wrap content sits above canvas */
  position: static;
}

/* ============================================================
   SHAPE ANIMATIONS — each one independent timing.
   Trigger via: <element class="ph-... ph-anim-XXX">
   ============================================================ */

/* Pulse (gentle scale) */
.ph-anim-pulse {
  animation: ph-pulse 8s ease-in-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}
@keyframes ph-pulse {
  0%, 100% { transform: scale(1); opacity: 0.28; }
  50%      { transform: scale(1.15); opacity: 0.40; }
}

/* Counter pulse — opposite to pulse */
.ph-anim-counter-pulse {
  animation: ph-counter-pulse 8s ease-in-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}
@keyframes ph-counter-pulse {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.32; }
  50%      { transform: scale(0.7) rotate(-20deg); opacity: 0.18; }
}

/* Slow rotation */
.ph-anim-rotate-slow {
  animation: ph-rotate-slow 30s linear infinite;
  transform-origin: center;
  transform-box: fill-box;
}
@keyframes ph-rotate-slow {
  to { transform: rotate(360deg); }
}

/* Drift in a slow figure-eight */
.ph-anim-drift {
  animation: ph-drift 16s ease-in-out infinite;
}
@keyframes ph-drift {
  0%, 100% { transform: translate(0, 0); }
  25%      { transform: translate(8px, -4px); }
  50%      { transform: translate(-4px, 6px); }
  75%      { transform: translate(-6px, -3px); }
}

/* Draw-and-erase — uses stroke-dasharray on lines and paths */
.ph-anim-draw {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: ph-draw 9s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}
@keyframes ph-draw {
  0%   { stroke-dashoffset: 400; opacity: 0; }
  20%  { opacity: 0.32; }
  50%  { stroke-dashoffset: 0; opacity: 0.32; }
  80%  { opacity: 0.32; }
  100% { stroke-dashoffset: -400; opacity: 0; }
}

/* Sway — rotational wobble */
.ph-anim-sway {
  animation: ph-sway 11s ease-in-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}
@keyframes ph-sway {
  0%, 100% { transform: rotate(-8deg); }
  50%      { transform: rotate(8deg); }
}

/* Breathe — opacity pulse only */
.ph-anim-breathe {
  animation: ph-breathe 7s ease-in-out infinite;
}
@keyframes ph-breathe {
  0%, 100% { opacity: 0.18; }
  50%      { opacity: 0.40; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .ph-anim-pulse, .ph-anim-counter-pulse, .ph-anim-rotate-slow,
  .ph-anim-drift, .ph-anim-draw, .ph-anim-sway, .ph-anim-breathe {
    animation-duration: 0.01s !important;
    animation-iteration-count: 1 !important;
  }
}
