/* ==========================================================================
   Illustration Garage — shared stylesheet (v2)
   Palette: deep navy + warm cream, two-tone editorial system
   Type: Space Grotesk (display) + Inter (body)
   ========================================================================== */

:root {
  --cream: #F3ECDC;
  --paper: #FBF8F1;
  --ink: #1B2A54;
  --ink-soft: #55618C;
  --orange: #1B2A54;
  --orange-dark: #12203F;
  --forest: #1B2A54;
  --forest-dark: #12203F;
  --mustard: #1B2A54;
  --sky: #1B2A54;
  --line: rgba(27, 42, 84, 0.14);
  --shadow: 0 8px 24px rgba(27, 42, 84, 0.08);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .display {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); letter-spacing: -0.015em; }
h3 { font-size: 1.28rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 18px;
}
.eyebrow::before { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, opacity 0.15s ease;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  box-shadow: var(--shadow);
}
.btn-primary:hover { transform: translateY(-2px); opacity: 0.92; }
.btn-outline {
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}
.btn-outline:hover { background: rgba(27,42,84,0.06); transform: translateY(-2px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1.5px solid var(--ink);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  max-width: var(--max);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brand .mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.nav-badge {
  background: #1B2A54;
  border-radius: 12px;
  height: 56px;
  padding: 9px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-badge img {
  height: 100%;
  width: auto;
  display: block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 0.98rem;
  padding: 10px 16px;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-links a:hover { background: rgba(27,42,84,0.06); }
.nav-links a.active { background: var(--ink); color: var(--paper); }
.nav-cta {
  border: 1.5px solid var(--ink) !important;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--ink); display: block; }

@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--cream);
    border-bottom: 1.5px solid var(--ink);
    padding: 10px 20px 20px;
    gap: 4px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 72px 0 60px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero-copy p.lead { font-size: 1.12rem; max-width: 46ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-art { position: relative; }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 340px; margin: 0 auto; }
}

/* ---------- Dividers (kept minimal — thin rule only) ---------- */
.divider { display: block; width: 100%; line-height: 0; }
.divider svg { width: 100%; height: auto; display: block; }
.rule { border: none; border-top: 1.5px solid var(--ink); margin: 0; opacity: 0.9; }

/* ---------- Sections ---------- */
section.block { padding: 76px 0; }
section.block.tight-top { padding-top: 0; }
.section-head { max-width: 640px; margin-bottom: 46px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.bg-forest { background: var(--ink); color: var(--paper); }
.bg-forest h2, .bg-forest h3 { color: var(--paper); }
.bg-forest p { color: rgba(251,248,241,0.78); }
.bg-forest .eyebrow { color: var(--paper); }
/* Cards/tags keep dark text even inside a dark section, since they sit on their own light surface */
.bg-forest .card h3, .bg-forest .card h4 { color: var(--ink); }
.bg-forest .card p { color: var(--ink-soft); }
.bg-forest .tag { color: var(--ink); }
.bg-cream { background: var(--cream); }
.bg-paper { background: var(--paper); }
.bg-mustard-tint { background: var(--paper); }

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 920px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .card-grid { grid-template-columns: 1fr; } }

.card-grid.five-up {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.card-grid.five-up .card {
  flex: 1 1 300px;
  max-width: 350px;
}
@media (max-width: 620px) { .card-grid.five-up .card { flex-basis: 100%; max-width: 100%; } }

.card {
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(27,42,84,0.14); }
.card .icon {
  width: 50px; height: 50px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.card p { margin-bottom: 0; }
.icon.orange, .icon.forest, .icon.mustard, .icon.sky { background: var(--ink); }

.tag-list { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 8px 16px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  background: var(--paper);
}

/* ---------- Work / portfolio grid ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
@media (max-width: 720px) { .work-grid { grid-template-columns: 1fr; } }

.work-card {
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease;
}
.work-card:hover { transform: translateY(-4px); }
.work-thumb {
  aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1.5px solid var(--ink);
}
.work-body { padding: 22px 24px; }
.work-body .tag { font-size: 0.76rem; padding: 5px 12px; margin-bottom: 10px; display: inline-block; }
.work-body h3 { margin-bottom: 6px; }
.work-body p { margin-bottom: 0; font-size: 0.95rem; }

/* ---------- Stats / strip ---------- */
.strip {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}
.strip .stat { text-align: left; }
.strip .stat .num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--paper);
}
.strip .stat .label { font-family: 'Space Grotesk', sans-serif; font-weight: 500; color: rgba(251,248,241,0.78); }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
@media (max-width: 920px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 10px; }
.step .step-num {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
  background: var(--paper);
  margin-bottom: 14px;
}

/* ---------- Values ---------- */
.values-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 640px) { .values-grid { grid-template-columns: 1fr; } }

/* ---------- Team / people ---------- */
.people-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 820px) { .people-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .people-grid { grid-template-columns: 1fr; } }
.people-card { text-align: center; }
.people-avatar {
  width: 112px; height: 112px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  margin: 0 auto 16px;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--ink);
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  padding: 64px 0;
  text-align: center;
  color: var(--paper);
}
.cta-band h2 { color: var(--paper); }
.cta-band p { color: rgba(251,248,241,0.82); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 0.92rem; }
.form-field input, .form-field select, .form-field textarea {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  padding: 13px 16px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  resize: vertical;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(27,42,84,0.14);
}

.contact-info { display: flex; flex-direction: column; gap: 22px; }
.contact-info .item { display: flex; gap: 14px; align-items: flex-start; }
.contact-info .item .icon { width: 44px; height: 44px; flex-shrink: 0; margin-bottom: 0; }
.contact-info .item h4 { margin: 0 0 4px; }
.contact-info .item p { margin: 0; }

.contact-layout { display: grid; grid-template-columns: 1.3fr 0.9fr; gap: 48px; align-items: start; }
@media (max-width: 860px) {
  .contact-layout { grid-template-columns: 1fr; gap: 36px; }
}
.social-row { display: flex; gap: 12px; margin-top: 8px; }
.social-row a {
  width: 40px; height: 40px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--paper);
  transition: background 0.15s ease, transform 0.15s ease;
}
.social-row a:hover { background: var(--ink); transform: translateY(-2px); }
.social-row a:hover svg { stroke: var(--paper); }
.social-disabled {
  width: 40px; height: 40px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--paper);
  opacity: 0.32;
  cursor: default;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(251,248,241,0.78);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(251,248,241,0.16);
}
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--paper);
  font-size: 0.98rem;
  margin-bottom: 14px;
}
.site-footer .brand { color: var(--paper); }
.site-footer a:hover { color: var(--paper); opacity: 0.8; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 22px;
  font-size: 0.86rem;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 56px 0 48px; text-align: center; }
.page-hero .section-head { margin: 0 auto; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Opening logo animation ---------- */
#intro-splash {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--paper);
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.5s ease;
}
html.ig-intro-active #intro-splash { display: flex; }
html.ig-intro-active,
html.ig-intro-active body { overflow: hidden; height: 100%; }
#intro-splash.intro-hide { opacity: 0; }

.intro-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 0 24px;
}
.intro-icon {
  position: relative;
  width: min(190px, 40vw);
  aspect-ratio: 644 / 687;
}
.intro-glow {
  position: absolute;
  left: 50%;
  top: 30%;
  width: 150%;
  height: 95%;
  transform: translate(-50%, -8%) scale(0.85);
  background: radial-gradient(ellipse at 50% 0%, rgba(243,236,220,0.95), rgba(243,236,220,0) 68%);
  filter: blur(16px);
  opacity: 0;
  pointer-events: none;
}
.intro-fixture,
.intro-beam {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.intro-fixture { opacity: 0.32; filter: brightness(0.55); }
.intro-beam { clip-path: inset(0 0 100% 0); }

.intro-word {
  width: min(220px, 46vw);
  height: auto;
  display: block;
  opacity: 0.12;
  transform: translateY(6px);
}
.intro-tagline {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0;
  opacity: 0;
}

@keyframes igFlicker {
  0%   { opacity: 0.32; filter: brightness(0.55); }
  8%   { opacity: 0.55; filter: brightness(0.8); }
  17%  { opacity: 0.3;  filter: brightness(0.5); }
  33%  { opacity: 0.8;  filter: brightness(1.05); }
  45%  { opacity: 0.35; filter: brightness(0.6); }
  63%  { opacity: 1;    filter: brightness(1.18); }
  78%  { opacity: 0.88; filter: brightness(0.97); }
  100% { opacity: 1;    filter: brightness(1); }
}
@keyframes igGlow {
  0%   { opacity: 0; transform: translate(-50%, -8%) scale(0.85); }
  60%  { opacity: 0.9; }
  100% { opacity: 0.55; transform: translate(-50%, -8%) scale(1); }
}
@keyframes igBeam {
  0%   { clip-path: inset(0 0 100% 0); }
  100% { clip-path: inset(0 0 0% 0); }
}
@keyframes igWordIn {
  0%   { opacity: 0.12; transform: translateY(6px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes igTagIn {
  0%   { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes igFinalPulse {
  0%   { opacity: 1; }
  40%  { opacity: 0.9; }
  100% { opacity: 1; }
}

html.ig-intro-active #intro-splash.intro-run .intro-fixture {
  animation: igFlicker 0.7s ease-in-out 0.3s 1 both;
  will-change: opacity, filter;
}
html.ig-intro-active #intro-splash.intro-run .intro-glow {
  animation: igGlow 0.9s cubic-bezier(.16,.84,.44,1) 1.0s 1 both;
  will-change: opacity, transform;
}
html.ig-intro-active #intro-splash.intro-run .intro-beam {
  animation: igBeam 0.8s cubic-bezier(.16,.84,.44,1) 1.0s 1 both;
  will-change: clip-path;
}
html.ig-intro-active #intro-splash.intro-run .intro-word {
  animation: igWordIn 0.6s ease-out 1.7s 1 both;
}
html.ig-intro-active #intro-splash.intro-run .intro-tagline {
  animation: igTagIn 0.6s ease-out 1.9s 1 both;
}
html.ig-intro-active #intro-splash.intro-run .intro-icon {
  animation: igFinalPulse 0.5s ease-in-out 2.3s 1 both;
}

/* Mobile: same story, slightly quicker */
@media (max-width: 640px) {
  html.ig-intro-active #intro-splash.intro-run .intro-fixture { animation-duration: 0.55s; animation-delay: 0.2s; }
  html.ig-intro-active #intro-splash.intro-run .intro-glow    { animation-duration: 0.7s;  animation-delay: 0.75s; }
  html.ig-intro-active #intro-splash.intro-run .intro-beam    { animation-duration: 0.6s;  animation-delay: 0.75s; }
  html.ig-intro-active #intro-splash.intro-run .intro-word    { animation-duration: 0.5s;  animation-delay: 1.35s; }
  html.ig-intro-active #intro-splash.intro-run .intro-tagline { animation-duration: 0.5s;  animation-delay: 1.5s; }
  html.ig-intro-active #intro-splash.intro-run .intro-icon    { animation-duration: 0.4s;  animation-delay: 1.85s; }
}

/* Reduced motion: no flicker/reveal choreography, just a brief fade to the finished logo */
@media (prefers-reduced-motion: reduce) {
  html.ig-intro-active #intro-splash.intro-run .intro-fixture,
  html.ig-intro-active #intro-splash.intro-run .intro-glow,
  html.ig-intro-active #intro-splash.intro-run .intro-beam,
  html.ig-intro-active #intro-splash.intro-run .intro-word,
  html.ig-intro-active #intro-splash.intro-run .intro-tagline,
  html.ig-intro-active #intro-splash.intro-run .intro-icon {
    animation: none !important;
  }
  html.ig-intro-active #intro-splash .intro-fixture { opacity: 1; filter: none; }
  html.ig-intro-active #intro-splash .intro-beam { clip-path: inset(0 0 0% 0); }
  html.ig-intro-active #intro-splash .intro-glow { opacity: 0; }
  html.ig-intro-active #intro-splash .intro-word { opacity: 1; transform: none; }
  html.ig-intro-active #intro-splash .intro-tagline { opacity: 1; }
  #intro-splash { transition: opacity 0.25s ease; }
}

/* ---------- Garage wall (About > "The rules of the garage") ---------- */
.garage-wall {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  align-items: stretch;
  margin-top: 8px;
}
.rule-item {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  color: var(--ink);
  padding: 22px 20px 20px;
  box-shadow: 0 14px 30px rgba(10,16,34,0.28);
}
.rule-1 { border-radius: 6px 22px 8px 20px; }
.rule-2 { border-radius: 18px 8px 20px 6px; }
.rule-3 { border-radius: 22px 6px 18px 10px; }
.rule-4 { border-radius: 8px 20px 6px 18px; }

.rule-item.reveal {
  opacity: 0;
  transform: translateY(26px) rotate(var(--rot, 0deg));
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.rule-item.reveal.in {
  opacity: 1;
  transform: translateY(0) rotate(var(--rot, 0deg));
}

.rule-item h3 { margin-bottom: 6px; font-size: 1.08rem; color: var(--ink); }
.rule-item p { color: var(--ink-soft); margin-bottom: 12px; font-size: 0.9rem; line-height: 1.42; }

.rule-num {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
  opacity: 0.65;
}
.rule-ghost-num {
  position: absolute;
  right: 10px;
  top: -4px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 4.6rem;
  line-height: 1;
  color: var(--ink);
  opacity: 0.1;
  transform: rotate(-6deg);
  pointer-events: none;
  z-index: 0;
}
.rule-2 > *:not(.rule-ghost-num) { position: relative; z-index: 1; }

.rule-tape {
  position: absolute;
  top: -13px;
  width: 58px;
  height: 22px;
  background: rgba(27,42,84,0.16);
  border: 1px solid rgba(27,42,84,0.22);
  transform: rotate(var(--tape-rot, -6deg));
  z-index: 2;
}
.rule-pin {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ink);
  border: 3px solid var(--cream);
  box-shadow: 0 3px 6px rgba(10,16,34,0.4);
  z-index: 2;
}

.rule-illust { width: 78px; height: auto; margin-bottom: 10px; }
.ig-illust-lg { width: 148px; }

.rule-scribble-wrap { position: relative; display: inline-block; margin-top: auto; }
.rule-scribble {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.15;
  color: var(--ink);
  display: inline-block;
}
.rule-underline { display: block; width: 170px; height: 12px; margin-top: -2px; }

.rule-stamp {
  display: inline-block;
  margin-top: auto;
  border: 1.5px dashed rgba(27,42,84,0.5);
  border-radius: 8px;
  padding: 6px 12px;
  transform: rotate(-3deg);
}

.rule-annotations { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.rule-scribble-strike { position: relative; display: inline-block; opacity: 0.75; margin-top: auto; }
.rule-strike-line { position: absolute; left: -4px; top: 30%; width: calc(100% + 8px); height: 20px; pointer-events: none; }
.rule-scribble-lg { font-size: 1.7rem; transform: rotate(-2deg); }
.rule-scribble-arrow { display: inline-block; margin-top: auto; font-size: 1.25rem; }

/* draw-in / loop line animation (shared) */
.ig-draw-line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.rule-item.in .ig-draw-line { animation: igDrawLoop 4.5s ease-in-out infinite; }
.ig-draw-once { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 0.9s ease 0.5s; }
.rule-item.in .ig-draw-once { stroke-dashoffset: 0; }

@keyframes igDrawLoop {
  0%   { stroke-dashoffset: 1; }
  35%  { stroke-dashoffset: 0; }
  72%  { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 1; }
}

.ig-wiggle { display: inline-block; }
.rule-item.in .ig-wiggle { animation: igWiggle 6s ease-in-out infinite; }
@keyframes igWiggle { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }

.rule-item.in .ig-twinkle { animation: igTwinkle 2.6s ease-in-out infinite; }
@keyframes igTwinkle { 0%, 100% { opacity: 0.35; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1.15); } }

.rule-item.in .ig-eye-look { animation: igEyeLook 3.4s ease-in-out infinite; }
@keyframes igEyeLook { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(2px); } }

.rule-item.in .ig-clock-minute { animation: igClockMinute 26s linear infinite; }
@keyframes igClockMinute { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.rule-item.in .ig-clock-hour { animation: igClockHourTick 5s ease-in-out infinite; }
@keyframes igClockHourTick { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }

.rule-item.in .ig-cursor { animation: igCursorBob 3.2s ease-in-out infinite; }
@keyframes igCursorBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

@media (max-width: 980px) {
  .garage-wall { grid-template-columns: repeat(2, 1fr); gap: 26px 22px; }
  .rule-ghost-num { font-size: 4.2rem; }
}

@media (max-width: 620px) {
  .garage-wall { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .rule-item.in .ig-draw-line,
  .rule-item.in .ig-wiggle,
  .rule-item.in .ig-twinkle,
  .rule-item.in .ig-eye-look,
  .rule-item.in .ig-clock-minute,
  .rule-item.in .ig-clock-hour,
  .rule-item.in .ig-cursor {
    animation: none !important;
  }
  .ig-draw-line { stroke-dashoffset: 0; }
  .ig-draw-once { transition: none; stroke-dashoffset: 0; }
}

/* ---------- Services menu (Services page) ---------- */
.svc-wall {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
  margin-top: 4px;
}
.svc-item {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  color: var(--ink);
  padding: 18px 18px 16px;
  box-shadow: 0 10px 22px rgba(27,42,84,0.1);
}
.svc-1 { border-radius: 6px 20px 8px 18px; }
.svc-2 { border-radius: 18px 6px 20px 8px; }
.svc-3 { border-radius: 8px 18px 6px 20px; }
.svc-4 { border-radius: 20px 6px 18px 8px; }
.svc-5 { border-radius: 6px 18px 8px 20px; }
.svc-6 { border-radius: 10px 22px 10px 22px; }

.svc-item.reveal {
  opacity: 0;
  transform: translateY(24px) rotate(var(--rot, 0deg));
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.svc-item.reveal.in {
  opacity: 1;
  transform: translateY(0) rotate(var(--rot, 0deg));
}

.svc-item h3 { margin-bottom: 4px; font-size: 0.98rem; color: var(--ink); }
.svc-item p { color: var(--ink-soft); margin-bottom: 0; font-size: 0.8rem; line-height: 1.38; }

.svc-num {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.76rem;
  opacity: 0.6;
  margin-bottom: 6px;
}

.svc-illust { width: 46px; height: auto; margin-bottom: 8px; }
.svc-illust-tall { width: 40px; }
.svc-illust-lg { width: 50px; }

.svc-note {
  display: block;
  margin-top: 8px;
  font-size: 0.98rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.svc-item:hover .svc-note { opacity: 1; transform: translateY(0); }

/* item 2: heart */
.svc-heart { transform-origin: 55px 96px; transition: transform 0.3s ease; }
.svc-item.in .svc-heart { animation: igHeartPulse 3.2s ease-in-out infinite; }
.svc-2:hover .svc-heart { transform: scale(1.18); }
@keyframes igHeartPulse { 0%, 100% { opacity: 0.85; transform: scale(1); } 50% { opacity: 1; transform: scale(1.05); } }

/* item 3: character (reuses .ig-wiggle keyframe) */
.svc-3:hover .svc-character { animation-duration: 2.4s; }

/* item 4: poster scraps */
.svc-scrap { transition: transform 0.35s ease; transform-box: fill-box; transform-origin: center; }
.svc-scrap-a { transform: rotate(-4deg); }
.svc-scrap-b { transform: rotate(3deg); }
.svc-4:hover .svc-scrap-a { transform: rotate(-9deg) translate(-3px, -2px); }
.svc-4:hover .svc-scrap-b { transform: rotate(7deg) translate(3px, 2px); }

/* item 5: camera corners */
.svc-corner { transition: transform 0.3s ease; }
.svc-corner-tl { transform-origin: 20px 22px; }
.svc-corner-tr { transform-origin: 90px 22px; }
.svc-corner-bl { transform-origin: 20px 68px; }
.svc-corner-br { transform-origin: 90px 68px; }
.svc-5:hover .svc-corner-tl { transform: translate(-3px, -3px); }
.svc-5:hover .svc-corner-tr { transform: translate(3px, -3px); }
.svc-5:hover .svc-corner-bl { transform: translate(-3px, 3px); }
.svc-5:hover .svc-corner-br { transform: translate(3px, 3px); }

/* item 6: compass (reuses .ig-wiggle / .ig-twinkle keyframes) */
.svc-6:hover .svc-compass-needle { animation-duration: 2.4s; }

/* shared draw-in / ambient-motion triggers for this section */
.svc-item.in .ig-draw-line { animation: igDrawLoop 4.5s ease-in-out infinite; }
.svc-item.in .ig-draw-once { stroke-dashoffset: 0; }
.svc-item.in .ig-wiggle { animation: igWiggle 6s ease-in-out infinite; }
.svc-item.in .ig-twinkle { animation: igTwinkle 2.6s ease-in-out infinite; }

@media (max-width: 900px) {
  .svc-wall { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .svc-wall { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .svc-item.in .ig-draw-line,
  .svc-item.in .ig-wiggle,
  .svc-item.in .ig-twinkle,
  .svc-item.in .svc-heart {
    animation: none !important;
  }
}

/* ---------- Style rack (Services page > "Styles on the rack") ----------
   Compact "contact sheet" treatment: small uniform proof-sheet tiles,
   no tape/pins/handwritten annotations (see .style-lettering /
   .style-footnote note below for the two intentional exceptions). */
.svc-compact { padding: 56px 0; }
.svc-compact .section-head { margin-bottom: 28px; }
@media (max-width: 700px) { .svc-compact { padding: 48px 0; } }

.style-sheet {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  margin-top: 6px;
  background: rgba(251,248,241,0.12);
}
.style-item {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  padding: 16px 8px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.style-item.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.style-item.reveal.in { opacity: 1; transform: translateY(0); }

.style-item:hover, .style-item:focus-visible {
  background: var(--cream);
  transform: translateY(-3px);
  box-shadow: 0 14px 24px rgba(10,16,34,0.3);
  z-index: 2;
}
.style-item.selected {
  background: var(--cream);
  box-shadow: inset 0 0 0 2px var(--ink), 0 14px 24px rgba(10,16,34,0.3);
  z-index: 2;
}
.style-item.selected::after {
  content: '✓ picked';
  position: absolute;
  top: -10px;
  right: 8px;
  background: var(--ink);
  color: var(--cream);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.58rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 999px;
  transform: rotate(3deg);
}

.style-idx {
  position: absolute;
  top: 8px;
  left: 9px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.6rem;
  letter-spacing: 0.05em;
  color: rgba(27,42,84,0.4);
}

.style-illust {
  width: 100%;
  max-width: 52px;
  height: auto;
  display: block;
  margin: 4px auto 8px;
  transition: transform 0.3s ease;
}
.style-item:hover .style-illust { transform: scale(1.08); }

.style-label {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.25;
}

/* The lettering specimen and closing line are the section's own two
   handwritten touches (they ARE the content, not decoration copied
   from the About page) and are kept intentionally small. */
.style-lettering {
  display: block;
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 0.95;
  color: var(--ink);
  margin-bottom: 4px;
  transform: rotate(-2deg);
}

.style-combo {
  text-align: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--paper);
  min-height: 1.6em;
  margin: 22px 0 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.style-combo.show { opacity: 1; }

.style-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 16px 0 0;
}
.style-cta-note {
  color: rgba(251,248,241,0.85);
  font-size: 1.05rem;
  transform: rotate(-1.5deg);
  display: inline-block;
}
.style-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--cream);
  box-shadow: 0 8px 18px rgba(10,16,34,0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.style-cta-btn:hover, .style-cta-btn:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 12px 22px rgba(10,16,34,0.45);
}
.style-cta-arrow { display: inline-block; transition: transform 0.2s ease; }
.style-cta-btn:hover .style-cta-arrow, .style-cta-btn:focus-visible .style-cta-arrow { transform: translateX(4px); }

.style-footnote {
  text-align: center;
  display: block;
  font-family: 'Caveat', cursive;
  font-weight: 700;
  color: rgba(251,248,241,0.85);
  font-size: 1.05rem;
  margin: 8px 0 0;
}

.style-reg {
  position: absolute;
  top: 8px;
  right: 9px;
  width: 8px;
  height: 8px;
  border: 1px solid rgba(27,42,84,0.35);
  border-radius: 50%;
}
.style-reg::before, .style-reg::after { content: ''; position: absolute; background: rgba(27,42,84,0.35); }
.style-reg::before { left: 50%; top: -3px; width: 1px; height: 14px; transform: translateX(-50%); }
.style-reg::after { top: 50%; left: -3px; height: 1px; width: 14px; transform: translateY(-50%); }

.style-item.in .ig-draw-line { animation: igDrawLoop 4.5s ease-in-out infinite; }

@media (max-width: 980px) {
  .style-sheet { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 620px) {
  .style-sheet { grid-template-columns: repeat(2, 1fr); }
  .style-item:last-child { grid-column: span 2; }
}

@media (prefers-reduced-motion: reduce) {
  .style-item.in .ig-draw-line { animation: none !important; }
  .style-item:hover { transform: none; }
  .style-item:hover .style-illust { transform: none; }
}

/* ---------- Pricing (Services page > "How pricing works") ----------
   Compact two-column "garage estimate sheet" treatment: a work-order
   style document, not the About page's tape/pin/doodle language. */
.estimate-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.estimate-note { color: var(--ink-soft); font-style: italic; margin-top: -6px; }

.estimate-sheet-inner {
  position: relative;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  padding: 24px 24px 26px;
  max-width: 380px;
  margin: 0 auto;
  transform: rotate(-0.8deg);
  box-shadow: 7px 9px 0 rgba(27,42,84,0.08), 0 18px 34px rgba(10,16,34,0.14);
}
.estimate-sheet-inner::before {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(27,42,84,0.15);
  pointer-events: none;
}
.estimate-sheet-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(135deg, rgba(27,42,84,0.025) 0px, rgba(27,42,84,0.025) 1px, transparent 1px, transparent 7px);
  pointer-events: none;
}
.estimate-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.76rem;
  color: var(--ink);
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 10px;
  margin-bottom: 12px;
}
.estimate-no { font-weight: 500; opacity: 0.5; letter-spacing: 0.02em; }
.estimate-row {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px dotted rgba(27,42,84,0.28);
  font-family: 'Inter', sans-serif;
  font-size: 0.84rem;
  color: var(--ink);
}
.estimate-row span:first-child { color: var(--ink-soft); }
.estimate-fill {
  flex: 1;
  max-width: 130px;
  min-height: 1.1em;
  border-bottom: 1px solid rgba(27,42,84,0.32);
  text-align: right;
  font-weight: 600;
}
.estimate-stamp {
  position: absolute;
  right: -12px;
  top: -14px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 2px solid rgba(27,42,84,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.6rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(27,42,84,0.6);
  transform: rotate(9deg);
  line-height: 1.15;
  background: rgba(27,42,84,0.03);
}

@media (max-width: 900px) {
  .estimate-grid { grid-template-columns: 1fr; gap: 36px; }
  .estimate-sheet-inner { transform: rotate(0deg); margin-top: 8px; }
}

/* ==========================================================================
   HOMEPAGE ONLY (index.html) — bold / experimental / immersive
   ========================================================================== */

.hg-stack { position: relative; }

/* ---------- Hero ---------- */
.hg-hero {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 580px;
  overflow: hidden;
  background: var(--ink);
  display: flex;
  align-items: center;
  z-index: 1;
}
.hg-hero-inner {
  position: relative;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}
.hg-hero-copy { position: relative; z-index: 3; max-width: 760px; }

.hg-headline {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.98;
  font-size: clamp(2.6rem, 7.2vw, 5.4rem);
  margin: 0 0 26px;
  color: var(--cream);
}
.hg-word {
  display: block;
  opacity: 0;
  transform: translateY(38px);
  transition: opacity 0.8s cubic-bezier(.19,1,.22,1), transform 0.8s cubic-bezier(.19,1,.22,1);
}
body.hg-ready .hg-word { opacity: 1; transform: translateY(0); }
body.hg-ready .hg-word:nth-child(1) { transition-delay: 0.05s; }
body.hg-ready .hg-word:nth-child(2) { transition-delay: 0.18s; }
body.hg-ready .hg-word:nth-child(3) { transition-delay: 0.31s; }

.hg-lead {
  font-size: 1.1rem;
  max-width: 46ch;
  color: rgba(251,248,241,0.78);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease 0.5s, transform 0.7s ease 0.5s;
}
body.hg-ready .hg-lead { opacity: 1; transform: translateY(0); }

.hg-hero-actions {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  margin-top: 30px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease 0.64s, transform 0.7s ease 0.64s;
}
body.hg-ready .hg-hero-actions { opacity: 1; transform: translateY(0); }

.hg-hero .btn-primary {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
}

.hg-secondary-link {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  color: var(--cream);
  border-bottom: 1.5px solid var(--cream);
  padding-bottom: 2px;
  transition: opacity 0.2s ease;
}
.hg-secondary-link:hover { opacity: 0.6; }

/* ---------- Studio animation: cursor -> tools -> making -> creation ----------
   A bold, irregular navy workspace shape sits behind an illustrated cursor
   that picks up small navy/cream tools and assembles a tiny creation on a
   cream canvas card. Navy carries most of the visual weight here; cream is
   used for the canvas, strokes/details and small highlights only. */
.hg-studio-anim {
  position: absolute;
  top: 50%;
  right: 4%;
  transform: translateY(-50%);
  width: clamp(320px, 33vw, 420px);
  height: 70vh;
  min-height: 380px;
  max-height: 560px;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}
body.hg-ready .hg-studio-anim { opacity: 1; }


.hsa-canvas {
  position: absolute;
  left: 27%;
  top: 40%;
  width: 46%;
  height: 34%;
  background: var(--cream);
  border: 1.5px solid rgba(27,42,84,0.5);
  box-shadow: 0 10px 22px rgba(10,16,34,0.28);
  transform: scale(0.001);
  transform-origin: 50% 50%;
  transition: transform 0.6s cubic-bezier(.28,.9,.32,1.1);
}
body.hg-ready .hsa-canvas { transition-delay: 0.5s; }
#hgStudioAnim.hsa-canvas-in .hsa-canvas { transform: scale(1); }
#hgStudioAnim.hsa-resetting .hsa-canvas { transform: scale(0.001); transition-duration: 0.5s; transition-delay: 0s; }

.hsa-canvas-shape { position: absolute; left: 14%; top: 16%; width: 46%; height: 46%; opacity: 0; transform: scale(0.5); transform-origin: 50% 50%; transition: opacity 0.5s ease, transform 0.5s cubic-bezier(.28,.9,.32,1.1); }
.hsa-canvas-shape path { fill: #1B2A54; }
#hgStudioAnim.hsa-shape-in .hsa-canvas-shape { opacity: 1; transform: scale(1); }

.hsa-canvas-glyph {
  position: absolute;
  right: 10%;
  bottom: 8%;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: #1B2A54;
  opacity: 0;
  transform: translateY(8px) scale(0.8);
  transform-origin: 100% 100%;
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(.28,.9,.32,1.1);
}
#hgStudioAnim.hsa-glyph-in .hsa-canvas-glyph { opacity: 1; transform: translateY(0) scale(1); }

.hsa-canvas-outline {
  position: absolute;
  inset: -8px;
  border: 1.5px solid #1B2A54;
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(.28,.9,.32,1.1);
}
#hgStudioAnim.hsa-revealed .hsa-canvas-outline { opacity: 0.7; transform: scale(1); }
#hgStudioAnim.hsa-revealed .hsa-canvas { transform: scale(1.07); }

.hsa-seed {
  position: absolute;
  left: 0;
  top: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #F3ECDC;
  border: 1.5px solid #1B2A54;
  opacity: 0;
  transform: translate(0, 0) scale(0.6);
  transition: transform 0.9s cubic-bezier(.3,.6,.2,1), opacity 0.35s ease;
}
#hgStudioAnim.hsa-seed-out .hsa-seed { opacity: 1; transform: translate(0,0) scale(1); }
#hgStudioAnim.hsa-seed-travel .hsa-seed { opacity: 1; }
#hgStudioAnim.hsa-seed-gone .hsa-seed { opacity: 0; transition: opacity 0.3s ease; }

.hsa-tool {
  position: absolute;
  left: 0;
  top: 0;
  width: 15%;
  max-width: 46px;
  opacity: 0;
  transform: translate(var(--tx, 0), var(--ty, 0)) scale(0.5) rotate(-8deg);
  transform-origin: 50% 50%;
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(.28,.9,.32,1.1);
  filter: drop-shadow(0 3px 5px rgba(10,16,34,0.22));
}
.hsa-tool svg { width: 100%; height: 100%; display: block; }
#hgStudioAnim.hsa-tools-in .hsa-tool { opacity: 1; transform: translate(var(--tx, 0), var(--ty, 0)) scale(1) rotate(0deg); }
#hgStudioAnim.hsa-tool-palette-gone .hsa-tool-palette,
#hgStudioAnim.hsa-tool-type-gone .hsa-tool-type,
#hgStudioAnim.hsa-decor-gone .hsa-tool-crop,
#hgStudioAnim.hsa-decor-gone .hsa-tool-star,
#hgStudioAnim.hsa-decor-gone .hsa-tool-bezier,
#hgStudioAnim.hsa-decor-gone .hsa-tool-pencil {
  opacity: 0;
  transform: translate(var(--tx, 0), var(--ty, 0)) scale(0.5) rotate(8deg);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.hsa-tool.hsa-grabbed { transform: translate(var(--tx, 0), var(--ty, 0)) scale(1.12) rotate(-4deg) !important; filter: drop-shadow(0 8px 10px rgba(10,16,34,0.32)); }
.hsa-tool.hsa-dragging { transition: transform 0.6s cubic-bezier(.4,.1,.2,1), opacity 0.35s ease 0.4s; }

.hsa-click-fx {
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  margin-left: -20px;
  margin-top: -20px;
  opacity: 0;
  pointer-events: none;
}
.hsa-ripple {
  position: absolute;
  inset: 0;
  border: 1.5px solid #F3ECDC;
  border-radius: 50%;
  opacity: 0;
}
.hsa-spark { position: absolute; inset: 0; opacity: 0; }
#hgStudioAnim.hsa-click .hsa-click-fx { opacity: 1; }
#hgStudioAnim.hsa-click .hsa-ripple { animation: hsaRipple 0.55s ease-out; }
#hgStudioAnim.hsa-click .hsa-spark { animation: hsaSpark 0.5s ease-out; }
@keyframes hsaRipple { 0% { opacity: 0.8; transform: scale(0.3); } 100% { opacity: 0; transform: scale(1.6); } }
@keyframes hsaSpark { 0% { opacity: 0; transform: scale(0.5) rotate(-10deg); } 40% { opacity: 1; transform: scale(1.1) rotate(4deg); } 100% { opacity: 0; transform: scale(1.3) rotate(8deg); } }

.hsa-cursor {
  position: absolute;
  left: 0;
  top: 0;
  width: 15%;
  max-width: 46px;
  opacity: 0;
  transform: translate(40px, -30px) scale(0.7);
  transition: transform 0.85s cubic-bezier(.5,.15,.2,1), opacity 0.4s ease;
  filter: drop-shadow(0 4px 7px rgba(10,16,34,0.3));
  z-index: 3;
}
.hsa-cursor svg { width: 100%; height: 100%; display: block; }
#hgStudioAnim.hsa-cursor-in .hsa-cursor { opacity: 1; }
.hsa-cursor.hsa-squish { transition: transform 0.14s ease; }
.hsa-cursor.hsa-squish svg { transform: scale(0.85, 1.12); }

@media (max-width: 980px) {
  .hg-studio-anim { width: clamp(240px, 40vw, 320px); right: 2%; }
}
@media (max-width: 880px) {
  .hg-studio-anim { display: none; }
  .hg-hero { height: 100svh; }
}

@media (prefers-reduced-motion: reduce) {
  .hg-studio-anim { transition: none !important; opacity: 1 !important; }
  .hsa-canvas { transition: none !important; transform: scale(1) !important; }
  .hsa-canvas-shape { transition: none !important; opacity: 1 !important; transform: scale(1) !important; }
  .hsa-canvas-glyph { transition: none !important; opacity: 1 !important; transform: translateY(0) scale(1) !important; }
  .hsa-canvas-outline { transition: none !important; opacity: 0.7 !important; transform: scale(1) !important; }
  .hsa-seed, .hsa-click-fx { display: none !important; }
  .hsa-tool { display: none !important; }
  .hsa-cursor { display: none !important; }
}

/* ---------- Studio statement (slides up and covers the hero) ---------- */
.hg-studio {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--ink);
  padding: 60px 0;
}
.hg-studio-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.hg-eyebrow {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper);
  opacity: 0.7;
  margin-bottom: 18px;
}
.hg-eyebrow-dark { color: var(--ink); opacity: 0.6; }
.hg-studio-h2 {
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  color: var(--paper);
  margin-bottom: 18px;
}
.hg-studio-p { color: rgba(251,248,241,0.8); font-size: 1.1rem; max-width: 56ch; margin: 0 auto; }

/* ---------- Selected work ---------- */
.hg-work { background: var(--cream); padding: 100px 0 96px; }
.hg-work-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 46px;
}
.hg-work-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin: 6px 0 0; }
.hg-see-all {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 2px;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}
.hg-see-all:hover { opacity: 0.6; }

.hg-work-stage { position: relative; min-height: 620px; }
.hg-work-piece {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 10px;
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1);
}
.hg-work-piece:hover { transform: translateY(-6px); }
.hg-work-icon {
  width: 34%;
  height: auto;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.92;
  transition: transform 0.4s ease;
}
.hg-work-piece:hover .hg-work-icon { transform: translate(-50%, -50%) scale(1.08); }

.hg-work-featured { width: 62%; aspect-ratio: 4 / 3; z-index: 1; }
.hg-work-secondary {
  position: absolute;
  width: 34%;
  aspect-ratio: 1 / 1;
  right: 4%;
  bottom: -8%;
  z-index: 2;
  box-shadow: 0 20px 40px rgba(10,16,34,0.25);
}
.hg-work-side {
  position: absolute;
  width: 26%;
  aspect-ratio: 3 / 4;
  right: -4%;
  top: 6%;
  z-index: 0;
  transform: rotate(3deg);
}

.hg-work-caption { position: absolute; left: 24px; bottom: 22px; z-index: 2; }
.hg-work-tag {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper);
  opacity: 0.75;
  margin-bottom: 6px;
}
.hg-work-caption-dark .hg-work-tag { color: var(--ink); opacity: 0.6; }
.hg-work-piece h3 { font-size: clamp(1.2rem, 2.2vw, 1.7rem); color: var(--paper); margin: 0; }
.hg-work-caption-dark h3 { color: var(--ink); }

@media (max-width: 880px) {
  .hg-work { padding: 72px 0; }
  .hg-work-stage { min-height: auto; display: flex; flex-direction: column; gap: 20px; }
  .hg-work-featured, .hg-work-secondary, .hg-work-side {
    position: relative; width: 100%; right: auto; left: auto; top: auto; bottom: auto; transform: none; aspect-ratio: 4 / 3;
  }
}

/* ---------- Home teaser: compact "From the garage" strip (replaces the old large
   featured-work showcase; links out to the full Work page instead of duplicating it) ---------- */
.hg-teaser { background: var(--cream); padding: 88px 0 84px; }
.hg-teaser-head { max-width: 540px; margin-bottom: 40px; }
.hg-teaser-h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); margin: 8px 0 10px; }
.hg-teaser-lead { font-size: 1rem; color: var(--ink-soft); margin: 0; line-height: 1.5; }

.hg-teaser-strip { display: flex; align-items: flex-start; gap: 24px; flex-wrap: wrap; margin-bottom: 30px; }
.hg-teaser-item {
  display: block;
  width: 200px;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(.22,.7,.2,1);
}
.hg-teaser-item:hover, .hg-teaser-item:focus-visible { transform: translateY(-5px); }
.hg-teaser-item-b { margin-top: 26px; transform: rotate(-0.6deg); }
.hg-teaser-item-c { margin-top: 6px; transform: rotate(0.5deg); }
.hg-teaser-item-b:hover, .hg-teaser-item-b:focus-visible { transform: translateY(-5px) rotate(0deg); }
.hg-teaser-item-c:hover, .hg-teaser-item-c:focus-visible { transform: translateY(-5px) rotate(0deg); }

.hg-teaser-media {
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--paper);
}
.hg-teaser-media img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s cubic-bezier(.22,.7,.2,1);
}
.hg-teaser-item:hover .hg-teaser-media img, .hg-teaser-item:focus-visible .hg-teaser-media img { transform: scale(1.04); }

.hg-teaser-label {
  display: block;
  margin-top: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
}
.hg-teaser-see-all { display: inline-block; }

@media (max-width: 640px) {
  .hg-teaser { padding: 64px 0; }
  .hg-teaser-strip { flex-direction: column; gap: 22px; }
  .hg-teaser-item, .hg-teaser-item-b, .hg-teaser-item-c { width: 100%; max-width: 260px; margin-top: 0; }
}

/* ---------- Bridge: what we make ---------- */
.hg-bridge { background: var(--paper); padding: 84px 0; }
.hg-bridge-line {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  color: var(--ink);
  line-height: 1.25;
  margin: 4px 0 30px;
}
.hg-bridge-line span { display: inline-block; transition: color 0.2s ease, transform 0.2s ease; }
.hg-bridge-line span:hover { color: var(--ink-soft); transform: translateY(-2px); }

/* ---------- Personality ---------- */
.hg-personality { background: var(--cream); padding: 100px 0; }
.hg-personality-grid { display: grid; grid-template-columns: 1fr 0.8fr; gap: 60px; align-items: center; }
.hg-personality-h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: 18px; }
.hg-sketch-wrap { position: relative; width: 100%; aspect-ratio: 1; max-width: 340px; margin: 0 auto; }
.hg-sketch-rough, .hg-sketch-final { position: absolute; inset: 0; width: 100%; height: 100%; }
.hg-sketch-rough { opacity: 1; transition: opacity 1.1s ease; }
.hg-sketch-final { opacity: 0; transition: opacity 1.1s ease 0.35s; }
.hg-sketch-wrap.in .hg-sketch-rough { opacity: 0.22; }
.hg-sketch-wrap.in .hg-sketch-final { opacity: 1; }

@media (max-width: 880px) {
  .hg-personality { padding: 72px 0; }
  .hg-personality-grid { grid-template-columns: 1fr; }
  .hg-sketch-wrap { margin-top: 30px; }
}

/* ---------- Final CTA ---------- */
.hg-final-cta { background: var(--ink); color: var(--paper); padding: 120px 0; text-align: center; }
.hg-final-cta h2 { color: var(--paper); font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 14px; }
.hg-final-cta p { color: rgba(251,248,241,0.82); font-size: 1.2rem; margin-bottom: 34px; }
@media (max-width: 880px) { .hg-final-cta { padding: 84px 0; } }

@media (prefers-reduced-motion: reduce) {
  .hg-word, .hg-lead, .hg-hero-actions { transition-duration: 0.25s !important; transition-delay: 0s !important; }
  .hg-cursor-object { transition: opacity 0.25s ease !important; }
}

/* ==========================================================================
   WORK PAGE (work.html) — creative studio portfolio
   ========================================================================== */

body.wk-lock { overflow: hidden; }

/* ---------- Filters ---------- */
.wk-filters { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 6px; }
.wk-filter-btn {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 0.88rem;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.wk-filter-btn.active, .wk-filter-btn:hover { background: var(--ink); color: var(--paper); }
.wk-filter-btn:active { transform: scale(0.96); }
.wk-hidden { display: none !important; }

/* ---------- Shared section chrome ---------- */
.wk-label-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.wk-label-row .wk-line { flex: 0 0 34px; height: 1.5px; background: var(--ink); opacity: 0.4; }
.wk-selected {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.55;
}
.wk-num {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  opacity: 0.45;
  display: inline-block;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.wk-mini-tag {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1.5px solid rgba(27,42,84,0.3);
  color: var(--ink-soft);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.wk-view {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  color: inherit;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateX(-6px);
  cursor: pointer;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
button.wk-view:hover { opacity: 0.7; }
.wk-view-arrow { display: inline-block; transition: transform 0.25s ease; }

/* ---------- Image plates (placeholder visuals — swap for real photos) ----------
   Each .wk-plate is an easy drop-in target: replace its background/icon with
   an <img> or a background-image and the layout keeps working unchanged. */
.wk-media { position: relative; overflow: hidden; }
.wk-plate {
  position: absolute;
  inset: -8%;
  width: 116%;
  height: 116%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  transform: translate(var(--mx, 0px), var(--my, 0px)) scale(var(--mscale, 1));
  transition: transform 0.5s cubic-bezier(.22,.7,.2,1);
  will-change: transform;
}
.wk-plate.wk-plate-cream { background: var(--cream); }
.wk-plate svg { width: 38%; height: 38%; opacity: 0.9; }
/* Contain variant: used wherever the full, uncropped image must stay visible inside a
   fixed frame (feature scroller slides, closer media, detail hero plates). The plate's
   own background colour (ink or cream, via .wk-plate-cream) shows through as letterboxing. */
.wk-plate-contain { inset: 0; width: 100%; height: 100%; }
.wk-parallax { position: absolute; inset: 0; will-change: transform; }

/* Natural, uncropped image: used inside project cards so each photo keeps its own
   real aspect ratio instead of being forced into a fixed-height crop. */
.image-natural { width: 100%; height: auto; display: block; }

/* ---------- Generic project card ---------- */
.wk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 6px; align-items: start; }
.wk-grid.wk-grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 880px) {
  .wk-grid, .wk-grid.wk-grid-2 { grid-template-columns: 1fr; }
}

/* ---------- Asymmetric masonry rows (editorial composition for the Work page) ----------
   Two cards side by side, sized unevenly, never stretched to match each other's height —
   each column keeps whatever height its own content naturally needs, which is what
   produces the uneven vertical rhythm instead of a uniform grid. */
.wk-masonry-row { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 22px; align-items: start; margin-top: 6px; }
.wk-masonry-row.wk-masonry-row--narrow-first { grid-template-columns: 280px 420px; justify-content: start; }
/* display:contents flattens the stack wrapper out of the box tree so Michri and Wonderland
   become direct grid items of .wk-masonry-row (columns 2 and 3) sitting beside Sorella in one
   compact row, instead of piling up into a tall second column. */
.wk-masonry-stack { display: contents; }
@media (max-width: 880px) {
  .wk-masonry-row, .wk-masonry-row.wk-masonry-row--narrow-first { grid-template-columns: 1fr; gap: 22px; }
}

/* Compact card media: a fixed, tier-based aspect-ratio frame with object-fit:contain keeps
   every card short and predictable regardless of how tall a given artwork's native aspect
   ratio is. The full image always stays visible, uncropped and undistorted (contain, never
   cover) — a portrait shot just gets a little breathing room on either side instead of
   stretching the whole card to its native height. */
.wk-masonry-row .wk-card-media { background: var(--cream); }
.wk-masonry-row .wk-card-media.wk-media-lg { aspect-ratio: 4 / 3.1; }
.wk-masonry-row .wk-card-media.wk-media-md { aspect-ratio: 4 / 3.4; }
.wk-masonry-row .wk-card-media.wk-media-sm { aspect-ratio: 5 / 4.4; }
.wk-masonry-row .wk-card-media img.image-natural {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
@media (max-width: 880px) {
  .wk-masonry-row .wk-card-media.wk-media-lg,
  .wk-masonry-row .wk-card-media.wk-media-md,
  .wk-masonry-row .wk-card-media.wk-media-sm { aspect-ratio: 4 / 3; }
}
.wk-masonry-row .wk-card-body { padding: 15px 17px 16px; gap: 5px; }
.wk-masonry-row .wk-card-body p { font-size: 0.85rem; line-height: 1.42; }

/* Oversized, faint project number sitting behind the card title — a design element
   rather than plain metadata. Kept low-opacity so it never competes with legibility. */
.wk-card-num-bg {
  position: absolute;
  top: 2px;
  right: 16px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 3.4rem);
  line-height: 1;
  color: var(--ink);
  opacity: 0.05;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}
.wk-card-body { position: relative; }
.wk-card-top, .wk-card-body h3, .wk-card-body p, .wk-card-foot { position: relative; z-index: 1; }

.wk-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(.22,.7,.2,1), box-shadow 0.3s ease;
}
.wk-card:hover, .wk-card:focus-visible { transform: translateY(-6px); box-shadow: 0 18px 34px rgba(27,42,84,0.18); }
.wk-card:hover .wk-plate, .wk-card:focus-visible .wk-plate { transform: translate(var(--mx, 0px), var(--my, 0px)) scale(1.06); }
.wk-card:hover .wk-view, .wk-card:focus-visible .wk-view { opacity: 1; transform: translateX(0); }
.wk-card:hover .wk-view-arrow { transform: translateX(4px); }
.wk-card:hover .wk-num { opacity: 0.9; transform: translateX(2px); }
.wk-card:hover .wk-mini-tag { opacity: 0.7; transform: translateY(-2px); }
.wk-card:hover h3 { transform: translateX(3px); }

.wk-card-media { position: relative; border-bottom: 1.5px solid var(--ink); background: var(--cream); overflow: hidden; }
.wk-card-media img.image-natural { transition: transform 0.5s cubic-bezier(.22,.7,.2,1); }
.wk-card:hover .wk-card-media img.image-natural, .wk-card:focus-visible .wk-card-media img.image-natural { transform: scale(1.03); }
.wk-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.wk-card-top { display: flex; align-items: center; justify-content: space-between; }
.wk-card-body h3 { margin: 2px 0 0; font-size: 1.18rem; transition: transform 0.25s ease; }
.wk-card-body p { margin: 0; font-size: 0.92rem; }
.wk-card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 10px; }

/* staggered entrance (rides the sitewide .reveal / .in system) */
.wk-card.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s cubic-bezier(.22,.7,.2,1), transform 0.7s cubic-bezier(.22,.7,.2,1); }
.wk-card.reveal.in { opacity: 1; transform: translateY(0); }
.wk-card.reveal .wk-plate { transform: translate(var(--mx, 0px), var(--my, 0px)) scale(1.14); transition: transform 0.8s cubic-bezier(.22,.7,.2,1) 0.08s; }
.wk-card.reveal.in .wk-plate { transform: translate(var(--mx, 0px), var(--my, 0px)) scale(1.02); }
.wk-card.reveal .wk-num { opacity: 0; transition: opacity 0.5s ease 0.18s; }
.wk-card.reveal.in .wk-num { opacity: 0.45; }
.wk-card.reveal h3 { opacity: 0; transform: translateY(10px); transition: opacity 0.5s ease 0.26s, transform 0.5s ease 0.26s; }
.wk-card.reveal.in h3 { opacity: 1; transform: translateY(0); }
.wk-card.reveal p { opacity: 0; transition: opacity 0.5s ease 0.34s; }
.wk-card.reveal.in p { opacity: 1; }

/* Subtle rotation on select cards for a touch of hand-arranged personality; straightens
   on hover/focus. Declared AFTER .wk-card.reveal.in above so it wins the equal-specificity
   cascade tie-break (both are 3-class selectors; later source order wins) and the tilt
   actually survives the scroll-reveal entrance instead of being reset by it. */
.wk-card--tilt-a.reveal.in { transform: rotate(-0.6deg) translateY(0); }
.wk-card--tilt-b.reveal.in { transform: rotate(0.5deg) translateY(0); }
.wk-card--tilt-c.reveal.in { transform: rotate(-0.4deg) translateY(0); }
.wk-card--tilt-a.reveal.in:hover, .wk-card--tilt-a.reveal.in:focus-visible,
.wk-card--tilt-b.reveal.in:hover, .wk-card--tilt-b.reveal.in:focus-visible,
.wk-card--tilt-c.reveal.in:hover, .wk-card--tilt-c.reveal.in:focus-visible {
  transform: rotate(0deg) translateY(-6px);
}

/* clip-path mask reveal for large/hero visuals */
.wk-mask.reveal { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); transition: clip-path 1s cubic-bezier(.22,.7,.2,1); }
.wk-mask.reveal.in { clip-path: inset(0 0 0% 0); }

/* ---------- Featured project (The Notebook Company) ---------- */
.wk-feature { padding-top: 88px; }
.wk-feature-head { margin-bottom: 30px; max-width: 680px; }
.wk-feature-title { font-size: clamp(2rem, 4.4vw, 3.1rem); margin: 8px 0 14px; }
.wk-feature-desc { max-width: 600px; }
.wk-feature-tagrow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

.wk-feature-scroller { position: relative; height: 380vh; }
.wk-feature-pin {
  position: sticky;
  top: 90px;
  height: 78vh;
  max-height: 620px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--ink);
  box-shadow: var(--shadow);
}
.wk-feature-track { display: flex; height: 100%; width: 100%; will-change: transform; }
.wk-feature-slide { position: relative; flex: 0 0 100%; height: 100%; display: flex; }
.wk-feature-slide-media { position: relative; flex: 1 1 62%; overflow: hidden; }
.wk-feature-slide-info {
  flex: 0 0 300px;
  padding: 38px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--ink);
  color: var(--paper);
}
.wk-moment-label {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 10px;
}
.wk-feature-slide-info p { color: rgba(251,248,241,0.85); margin: 0; font-size: 0.98rem; }

.wk-feature-progress { display: flex; gap: 6px; margin-top: 20px; }
.wk-feature-dot { width: 22px; height: 3px; border-radius: 2px; background: rgba(27,42,84,0.2); transition: background 0.25s ease, width 0.25s ease; }
.wk-feature-dot.active { background: var(--ink); width: 34px; }

@media (max-width: 880px) {
  .wk-feature-scroller { height: auto; }
  .wk-feature-pin {
    position: static;
    height: auto;
    max-height: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .wk-feature-track { width: auto; transform: none !important; }
  .wk-feature-slide { flex-direction: column; scroll-snap-align: start; width: 86vw; flex: 0 0 86vw; height: auto; }
  .wk-feature-slide-media { aspect-ratio: 4 / 3; }
  .wk-feature-slide-info { flex: none; padding: 22px; }
  .wk-feature-progress { display: none; }
}

/* ---------- Influencer Campaigns ---------- */
.wk-influencer-collage { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 34px; }
.wk-campaign-tile {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1.5px solid var(--ink);
  aspect-ratio: 3 / 4;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.35s cubic-bezier(.22,.7,.2,1), box-shadow 0.35s ease;
}
.wk-campaign-tile:hover, .wk-campaign-tile:focus-visible { transform: translateY(-8px) scale(1.015); z-index: 2; box-shadow: 0 22px 40px rgba(27,42,84,0.28); }
.wk-campaign-tile:hover .wk-plate, .wk-campaign-tile:focus-visible .wk-plate { transform: scale(1.08); }
.wk-campaign-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  background: linear-gradient(to top, rgba(27,42,84,0.92), rgba(27,42,84,0.15) 60%, rgba(27,42,84,0) 100%);
  color: var(--paper);
}
.wk-campaign-idx { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 0.78rem; opacity: 0.6; margin-bottom: auto; }
.wk-campaign-name { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.16rem; transform: translateY(8px); opacity: 0.85; transition: transform 0.3s cubic-bezier(.22,.7,.2,1), opacity 0.3s ease; }
.wk-campaign-sub { font-size: 0.8rem; color: rgba(251,248,241,0.72); margin-top: 2px; }
.wk-campaign-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.35s ease, opacity 0.3s ease; }
.wk-campaign-meta span { font-family: 'Space Grotesk', sans-serif; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; border: 1px solid rgba(251,248,241,0.4); }
.wk-campaign-tile:hover .wk-campaign-name, .wk-campaign-tile:focus-visible .wk-campaign-name { transform: translateY(0); opacity: 1; }
.wk-campaign-tile:hover .wk-campaign-meta, .wk-campaign-tile:focus-visible .wk-campaign-meta { max-height: 90px; opacity: 1; }

.wk-campaign-tile.reveal { opacity: 0; transform: translateY(30px) scale(0.97); transition: opacity 0.7s cubic-bezier(.22,.7,.2,1), transform 0.7s cubic-bezier(.22,.7,.2,1); }
.wk-campaign-tile.reveal.in { opacity: 1; transform: translateY(0) scale(1); }

@media (max-width: 880px) {
  .wk-influencer-collage { grid-template-columns: 1fr; }
}

/* ---------- Poster Studies (gallery wall) ---------- */
.wk-posters-section { overflow: visible; }
.wk-poster-wall {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  padding: 34px 10px 56px;
  position: relative;
}
.wk-poster {
  position: relative;
  width: 15%;
  min-width: 128px;
  max-width: 178px;
  aspect-ratio: 1414 / 2000;
  margin: 0 -12px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--ink);
  overflow: visible;
  background: var(--paper);
  cursor: pointer;
  transform-origin: bottom center;
  transition: transform 0.4s cubic-bezier(.22,.7,.2,1), box-shadow 0.4s ease;
  box-shadow: 0 10px 22px rgba(27,42,84,0.16);
}
.wk-poster-frame { position: absolute; inset: 0; border-radius: var(--radius-sm); overflow: hidden; background: var(--paper); }
.wk-poster-img { width: 100%; height: 100%; object-fit: contain; display: block; }
.wk-poster:nth-child(6n+1) { transform: rotate(-4deg) translateY(10px); }
.wk-poster:nth-child(6n+2) { transform: rotate(2deg) translateY(-6px); }
.wk-poster:nth-child(6n+3) { transform: rotate(-2deg) translateY(4px); }
.wk-poster:nth-child(6n+4) { transform: rotate(3deg) translateY(-10px); }
.wk-poster:nth-child(6n+5) { transform: rotate(-3deg) translateY(6px); }
.wk-poster:nth-child(6n+6) { transform: rotate(1.5deg) translateY(-4px); }
.wk-poster:hover, .wk-poster:focus-visible {
  transform: translateY(-24px) rotate(0deg) scale(1.1) !important;
  z-index: 6;
  box-shadow: 0 26px 46px rgba(27,42,84,0.34);
}
.wk-poster.wk-push-left { transform: translateX(-14px) scale(0.97); opacity: 0.82; }
.wk-poster.wk-push-right { transform: translateX(14px) scale(0.97); opacity: 0.82; }
.wk-poster-title {
  position: absolute;
  left: 0; right: 0; bottom: -28px;
  text-align: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  white-space: nowrap;
  pointer-events: none;
}
.wk-poster:hover .wk-poster-title, .wk-poster:focus-visible .wk-poster-title { opacity: 1; transform: translateY(0); }

.wk-poster.reveal { opacity: 0; transform: translateY(30px) scale(0.9) rotate(0deg) !important; transition: opacity 0.6s cubic-bezier(.22,.7,.2,1), transform 0.6s cubic-bezier(.22,.7,.2,1); }

@media (max-width: 880px) {
  .wk-poster-wall { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; justify-content: flex-start; padding: 24px 20px 50px; gap: 18px; -webkit-overflow-scrolling: touch; }
  .wk-poster { margin: 0; flex: 0 0 60vw; max-width: 220px; scroll-snap-align: center; transform: none !important; }
  .wk-poster-title { opacity: 1; transform: none; position: static; margin-top: 10px; }
}

/* ---------- Poster lightbox ---------- */
.wk-lightbox {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: rgba(27,42,84,0.94);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}
.wk-lightbox.is-open { opacity: 1; visibility: visible; transition: opacity 0.3s ease; }
.wk-lightbox-stage {
  position: relative;
  width: min(480px, 82vw);
  aspect-ratio: 1414 / 2000;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1.5px solid var(--cream);
  box-shadow: 0 30px 60px rgba(0,0,0,0.4);
  transform: scale(0.92);
  transition: transform 0.35s cubic-bezier(.22,.7,.2,1);
}
.wk-lightbox.is-open .wk-lightbox-stage { transform: scale(1); }
.wk-lightbox-cap { margin-top: 18px; text-align: center; color: var(--paper); }
.wk-lightbox-cap .wk-num { color: var(--paper); opacity: 0.55; }
.wk-lightbox-cap h3 { color: var(--paper); margin: 4px 0 0; }
.wk-lightbox-close, .wk-lightbox-prev, .wk-lightbox-next {
  position: fixed;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--cream);
  background: transparent;
  color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.wk-lightbox-close:hover, .wk-lightbox-prev:hover, .wk-lightbox-next:hover { background: rgba(251,248,241,0.14); }
.wk-lightbox-close { top: 24px; right: 26px; }
.wk-lightbox-prev { left: 26px; top: 50%; transform: translateY(-50%); }
.wk-lightbox-next { right: 26px; top: 50%; transform: translateY(-50%); }
.wk-lightbox-prev:hover { transform: translateY(-50%) translateX(-3px); }
.wk-lightbox-next:hover { transform: translateY(-50%) translateX(3px); }
@media (max-width: 620px) {
  .wk-lightbox { padding: 20px; }
  .wk-lightbox-prev, .wk-lightbox-next { display: none; }
}

/* ---------- Active project indicator ---------- */
.wk-active-indicator {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 8px 15px 8px 11px;
  box-shadow: var(--shadow);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}
.wk-active-indicator.show { opacity: 1; transform: translateY(0); }
.wk-active-indicator .wk-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ink); flex: none; }
@media (max-width: 880px) { .wk-active-indicator { display: none; } }

/* ---------- Illustration Garage closer ---------- */
.wk-closer {
  background: var(--ink);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--ink);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  box-shadow: var(--shadow);
}
.wk-closer-copy { padding: 46px; display: flex; flex-direction: column; justify-content: center; color: var(--paper); }
.wk-closer-copy h2, .wk-closer-copy .eyebrow { color: var(--paper); }
.wk-closer-copy p { color: rgba(251,248,241,0.82); }
.wk-closer-media { position: relative; min-height: 300px; }
@media (max-width: 880px) {
  .wk-closer { grid-template-columns: 1fr; }
  .wk-closer-media { min-height: 240px; order: -1; }
  .wk-closer-copy { padding: 34px; }
}

/* ---------- End-of-work microcopy ---------- */
.wk-endnote { text-align: center; font-size: 0.98rem; opacity: 0.7; margin: 0; }

/* ---------- Short editorial transition into Poster Studies ---------- */
.wk-transition-line {
  text-align: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- Project detail overlay ---------- */
.wk-detail {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: var(--paper);
  visibility: hidden;
  opacity: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  clip-path: circle(0% at var(--ox, 50%) var(--oy, 50%));
  transition: clip-path 0.6s cubic-bezier(.22,.7,.2,1), opacity 0.15s ease, visibility 0s linear 0.6s;
}
.wk-detail.is-open {
  visibility: visible;
  opacity: 1;
  clip-path: circle(145% at var(--ox, 50%) var(--oy, 50%));
  transition: clip-path 0.6s cubic-bezier(.22,.7,.2,1), opacity 0.15s ease;
}
.wk-detail-inner { max-width: 880px; margin: 0 auto; padding: 96px 28px 110px; }
.wk-detail-close {
  position: fixed;
  top: 22px; right: 26px;
  z-index: 111;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}
.wk-detail-close:hover { transform: rotate(90deg); }
.wk-detail-title { font-size: clamp(2rem, 4.4vw, 3.3rem); margin: 10px 0 18px; }
.wk-detail-intro { max-width: 640px; font-size: 1.05rem; }
/* Sizes itself to whatever image it holds instead of forcing every project's hero
   photo (portrait, square, landscape) into one shared ratio. The image renders at its
   own intrinsic aspect ratio, only ever scaled down (never upscaled) to fit the detail
   panel width and a sensible max height. */
.wk-detail-hero-plate {
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--ink);
  margin: 30px 0 10px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.wk-detail-hero-plate img {
  display: block;
  max-width: 100%;
  max-height: 68vh;
  width: auto;
  height: auto;
}
/* Holds every remaining image for a project (beyond the single lead hero photo) so the
   full set is reachable by scrolling the detail panel. Each frame reuses the exact hero
   treatment above, just stacked with its own gap instead of the hero's own margin. */
.wk-detail-gallery { display: flex; flex-direction: column; gap: 16px; margin: 0 0 20px; }
.wk-detail-gallery .wk-detail-hero-plate { margin: 0; }
.wk-detail-block { display: grid; grid-template-columns: 190px 1fr; gap: 30px; padding: 26px 0; border-top: 1.5px solid var(--line); }
.wk-detail-block:first-of-type { border-top: none; }
.wk-detail-block-label { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.55; }
.wk-detail-block p { margin: 0; }
.wk-detail-video { grid-column: 1 / -1; max-height: 520px; object-fit: contain; }
.wk-detail-worklist { display: flex; flex-wrap: wrap; gap: 10px; margin: 34px 0 6px; }
.wk-detail-closing { font-size: 1.28rem; font-family: 'Space Grotesk', sans-serif; font-weight: 600; margin-top: 24px; }
.wk-detail-campaign { border: 1.5px solid var(--ink); border-radius: var(--radius-md); padding: 26px; margin-bottom: 22px; background: var(--paper); scroll-margin-top: 90px; }
.wk-detail-campaign-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.wk-detail-campaign h3 { margin: 0; }
.wk-detail-campaign .wk-mini-tag { opacity: 1; }
.wk-detail-campaign-details { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
@media (max-width: 700px) {
  .wk-detail-block { grid-template-columns: 1fr; gap: 8px; }
  .wk-detail-inner { padding: 84px 20px 90px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .wk-card, .wk-card.reveal, .wk-card.reveal.in,
  .wk-plate, .wk-mask.reveal, .wk-campaign-tile, .wk-campaign-tile.reveal,
  .wk-poster, .wk-poster.reveal,
  .wk-detail, .wk-lightbox, .wk-lightbox-stage {
    transition-duration: 0.01s !important;
  }
  .wk-feature-track { transition: none !important; }
  .wk-num, h3, p, .wk-plate { transform: none !important; }
}
