/* ============================================================
   HALATE — Shared Stylesheet
   ============================================================ */

:root {
  --black:       #0A0A0A;
  --charcoal:    #1A1A1A;
  --charcoal-2:  #2A2A2A;
  --bone:        #F5F1E8;
  --bone-dim:    rgba(245, 241, 232, 0.62);
  --bone-faint:  rgba(245, 241, 232, 0.32);
  --halation:    #E89B3B;
  --rule:        rgba(245, 241, 232, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--black);
  color: var(--bone);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--halation); transition: color 0.2s ease; }

/* ====== NAV ====== */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 28px 56px; z-index: 100;
  backdrop-filter: blur(8px);
  background: rgba(10, 10, 10, 0.6);
  border-bottom: 1px solid var(--rule);
  transition: padding 0.3s ease;
}
nav.scrolled { padding: 18px 56px; }
nav .logo {
  font-family: 'Fraunces', serif; font-size: 24px; font-weight: 500;
  letter-spacing: -0.01em; position: relative;
  text-shadow:
    0 0 2px rgba(200, 15, 5, 0.50),
    0 0 5px rgba(160, 5,  2, 0.18);
}
nav .logo::after {
  content: ''; position: absolute; top: 5px; right: -6px;
  width: 5px; height: 5px; background: var(--halation); border-radius: 50%;
  box-shadow: 0 0 12px rgba(232, 155, 59, 0.7);
}
nav ul { display: flex; gap: 36px; list-style: none; }
nav ul a {
  font-size: 13px; text-transform: uppercase;
  letter-spacing: 0.12em; font-weight: 400;
  color: var(--bone-dim); transition: color 0.2s ease;
}
nav ul a:hover, nav ul a.active { color: var(--bone); }

/* ====== HERO ====== */
.hero {
  min-height: 100vh; display: flex; flex-direction: column;
  justify-content: center; align-items: center; text-align: center;
  padding: 0 56px; position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse at center, rgba(232, 155, 59, 0.08) 0%, transparent 50%),
    var(--black);
}
.hero-content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center;
  will-change: transform;
}
.hero h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(64px, 11vw, 180px);
  font-weight: 400; letter-spacing: -0.03em; line-height: 0.95;
  position: relative;
  text-shadow:
    0 0 2px  rgba(210, 20, 5, 0.75),
    0 0 6px  rgba(180, 8,  3, 0.30);
}
.hero h1::after {
  content: ''; position: absolute;
  width: clamp(14px, 1.8vw, 28px); height: clamp(14px, 1.8vw, 28px);
  background: var(--halation); border-radius: 50%;
  top: clamp(10px, 2vw, 32px);
  right: clamp(-20px, -2vw, -34px);
  box-shadow: 0 0 40px rgba(232, 155, 59, 0.8), 0 0 80px rgba(232, 155, 59, 0.4);
  transform: translate(var(--orb-tx, 0px), var(--orb-ty, 0px));
  transition: transform 1s cubic-bezier(0.23, 1, 0.32, 1);
  will-change: transform;
}
/* Parallax background layer */
.hero-bg {
  position: absolute; inset: -20%;
  background: radial-gradient(ellipse at center, rgba(232, 155, 59, 0.08) 0%, transparent 50%);
  will-change: transform;
  z-index: 1;
}

/* ====== PAGE HERO (inner pages) ====== */
.page-hero {
  min-height: 50vh; display: flex; flex-direction: column;
  justify-content: flex-end; padding: 120px 56px 80px;
  position: relative; overflow: hidden;
  background: var(--black);
  border-bottom: 1px solid var(--rule);
}
.page-hero::before {
  content: ''; position: absolute; inset: -20%;
  background: radial-gradient(ellipse at 30% 60%, rgba(232, 155, 59, 0.07) 0%, transparent 55%);
  will-change: transform; z-index: 0;
}
.page-hero-content { position: relative; z-index: 2; }
.page-hero .section-label { margin-bottom: 20px; }
.page-hero h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(48px, 7vw, 110px);
  font-weight: 400; letter-spacing: -0.03em; line-height: 0.95;
}

/* ====== SECTIONS ====== */
section { padding: 140px 56px; max-width: 1400px; margin: 0 auto; }
.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--halation); margin-bottom: 24px;
}
.section-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(40px, 5.5vw, 80px);
  font-weight: 400; letter-spacing: -0.02em; line-height: 1.0;
  margin-bottom: 64px; max-width: 900px;
}
.section-title em { color: var(--halation); font-style: italic; }

/* ====== WORK GRID ====== */
.work-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px;
}
.work-card {
  background: var(--charcoal); border: 1px solid var(--rule);
  transition: border-color 0.3s ease, transform 0.3s ease;
  cursor: pointer; overflow: hidden; display: block;
}
.work-card:hover { border-color: var(--halation); transform: translateY(-4px); color: var(--bone); }
.work-thumb {
  aspect-ratio: 16 / 9; background: var(--charcoal-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--bone-faint); font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  position: relative; overflow: hidden;
}
.work-thumb-inner {
  position: absolute; inset: -10%;
  background-size: cover; background-position: center;
  transition: transform 0.6s ease;
  will-change: transform;
}
.work-card:hover .work-thumb-inner { transform: scale(1.04); }
/* Looping video layer — sits over the gradient, under the label.
   Idle, it shows its poster (the first frame); it plays only on hover. */
.work-thumb-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 1;
  transition: transform 0.6s ease;
  will-change: transform; pointer-events: none;
}
.work-card:hover .work-thumb-video { transform: scale(1.04); }
/* The centered overlay label is unreadable over moving footage — hide it on
   video cards. Gradient-only cards (e.g. "coming soon") keep their label. */
.work-thumb[data-video] .work-thumb-label { display: none; }
.work-thumb.asus .work-thumb-inner    { background: linear-gradient(135deg, #1a1a2e, #16213e); }
.work-thumb.redshark .work-thumb-inner { background: linear-gradient(135deg, #2a0e0e, #1a1a1a); }
.work-thumb.tba1 .work-thumb-inner    { background: linear-gradient(135deg, #1a2e1a, #0e1a1a); }
.work-thumb.tba2 .work-thumb-inner    { background: linear-gradient(135deg, #2e2a1a, #1a160e); }
.work-thumb-label {
  position: relative; z-index: 2;
}
.work-meta { padding: 28px 32px; }
.work-client {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--halation);
  margin-bottom: 8px;
}
.work-title {
  font-family: 'Fraunces', serif; font-size: 26px;
  font-weight: 400; letter-spacing: -0.01em; margin-bottom: 6px;
}
.work-type { font-size: 13px; color: var(--bone-dim); }

/* ====== FILTER TABS ====== */
.filter-bar {
  display: flex; gap: 4px; margin-bottom: 56px; flex-wrap: wrap;
}
.filter-btn {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.15em; text-transform: uppercase;
  padding: 10px 20px; border: 1px solid var(--rule);
  background: transparent; color: var(--bone-dim);
  cursor: pointer; transition: all 0.2s ease;
}
.filter-btn:hover { border-color: var(--bone-faint); color: var(--bone); }
.filter-btn.active { border-color: var(--halation); color: var(--halation); background: rgba(232,155,59,0.06); }
.work-card[data-hidden] { display: none; }

/* ====== SERVICES ====== */
.services {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--rule);
}
.service {
  background: var(--black); padding: 56px 40px;
  transition: background 0.3s ease;
}
.service:hover { background: var(--charcoal); }
.service-num {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  color: var(--halation); letter-spacing: 0.2em; margin-bottom: 32px;
}
.service h3 {
  font-family: 'Fraunces', serif; font-size: 32px;
  font-weight: 400; letter-spacing: -0.01em; margin-bottom: 20px;
}
.service p { color: var(--bone-dim); font-size: 15px; line-height: 1.7; }
/* Service card as a link to its category page */
a.service { display: block; color: inherit; }
a.service:hover { color: var(--bone); }        /* cancel the global orange link hover */
.service h3 { transition: color 0.2s ease; }
.service:hover h3 { color: var(--halation); }
.service-link {
  display: inline-block; margin-top: 28px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--halation);
  opacity: 0.8; transition: opacity 0.2s ease;
}
.service:hover .service-link { opacity: 1; }

/* ====== ABOUT ====== */
.about {
  display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: start;
}
.about-text {
  font-family: 'Fraunces', serif; font-size: 24px; line-height: 1.4;
  font-weight: 300;
}
.about-text em { color: var(--halation); font-style: italic; }
.founders { display: flex; flex-direction: column; gap: 32px; }
.founder {
  padding-bottom: 32px; border-bottom: 1px solid var(--rule);
}
.founder:last-child { border-bottom: none; }
.founder-name {
  font-family: 'Fraunces', serif; font-size: 22px;
  font-weight: 400; margin-bottom: 6px;
}
.founder-role {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  color: var(--halation); letter-spacing: 0.15em;
  text-transform: uppercase; margin-bottom: 12px;
}
.founder-bio { font-size: 14px; color: var(--bone-dim); line-height: 1.7; }

/* ====== PROJECT DETAIL ====== */
.project-hero {
  min-height: 70vh; display: flex; align-items: flex-end;
  padding: 120px 56px 80px; position: relative; overflow: hidden;
}
.project-hero-bg {
  position: absolute; inset: -20%;
  will-change: transform; z-index: 0;
}
.project-hero-content { position: relative; z-index: 2; max-width: 900px; }
.project-client {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  color: var(--halation); letter-spacing: 0.2em; text-transform: uppercase;
  margin-bottom: 20px;
}
.project-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(48px, 7vw, 110px);
  font-weight: 400; letter-spacing: -0.03em; line-height: 0.95;
  margin-bottom: 40px;
}
.project-meta-row {
  display: flex; gap: 48px; flex-wrap: wrap;
}
.project-meta-item { display: flex; flex-direction: column; gap: 6px; }
.project-meta-label {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--bone-faint);
}
.project-meta-value { font-size: 15px; color: var(--bone); }

/* Real embedded player (Vimeo) — responsive 16:9 */
.project-embed {
  position: relative; width: 100%; padding-top: 56.25%;
  background: var(--charcoal); border: 1px solid var(--rule); overflow: hidden;
}
.project-embed iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}

.project-body {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  padding: 100px 56px; max-width: 1400px; margin: 0 auto;
}
.project-body-full {
  padding: 80px 56px; max-width: 1400px; margin: 0 auto;
  position: relative; z-index: 11;
}
.project-block h3 {
  font-family: 'Fraunces', serif; font-size: 32px;
  font-weight: 400; letter-spacing: -0.01em; margin-bottom: 24px;
}
.project-block p {
  font-size: 16px; color: var(--bone-dim); line-height: 1.8;
}
.project-block p + p { margin-top: 16px; }

.next-project {
  display: flex; align-items: center; justify-content: space-between;
  padding: 80px 56px; border-top: 1px solid var(--rule);
  max-width: 1400px; margin: 0 auto;
  transition: opacity 0.2s ease;
}
.next-project:hover { opacity: 0.7; }
.next-project-label {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--bone-faint);
  margin-bottom: 12px;
}
.next-project-title {
  font-family: 'Fraunces', serif; font-size: 40px;
  font-weight: 400; letter-spacing: -0.02em;
}
.next-arrow {
  font-size: 48px; color: var(--halation); line-height: 1;
}

/* ====== CONTACT ====== */
.contact { text-align: center; padding-top: 120px; padding-bottom: 100px; }
.contact .big-link {
  font-family: 'Fraunces', serif;
  font-size: clamp(40px, 6vw, 88px);
  font-weight: 400; letter-spacing: -0.02em; line-height: 1.1;
  color: var(--bone); display: inline-block; position: relative;
  border-bottom: 1px solid var(--rule); padding-bottom: 8px;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.contact .big-link:hover { color: var(--halation); border-color: var(--halation); }
.contact .meta {
  margin-top: 48px; display: flex; justify-content: center;
  gap: 48px; flex-wrap: wrap;
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--bone-faint);
}

/* ====== CONTACT FORM ====== */
.form-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  max-width: 800px; text-align: left; margin: 64px auto 0;
}
.form-grid .full { grid-column: 1 / -1; }
.form-field { display: flex; flex-direction: column; gap: 10px; }
.form-field label {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--bone-faint);
}
.form-field input, .form-field select, .form-field textarea {
  background: var(--charcoal); border: 1px solid var(--rule);
  color: var(--bone); font-family: 'Inter', sans-serif; font-size: 15px;
  padding: 14px 18px; outline: none;
  transition: border-color 0.2s ease;
  -webkit-appearance: none;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--halation);
}
.form-field select { cursor: pointer; }
.form-field select option { background: var(--charcoal); }
.form-field textarea { resize: vertical; min-height: 140px; line-height: 1.6; }
.form-submit {
  grid-column: 1 / -1; margin-top: 8px;
  display: flex; justify-content: flex-end;
}
.btn {
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 16px 40px; border: 1px solid var(--halation);
  background: transparent; color: var(--halation);
  cursor: pointer; transition: all 0.25s ease;
}
.btn:hover { background: var(--halation); color: var(--black); }

/* ============================================================
   FILM GATE WEAVE
   Organic sub-pixel drift mimicking mechanical film transport.
   Irregular keyframe spacing keeps it from feeling like a loop.
   ============================================================ */

/* Drum / smaller elements — barely there */
@keyframes weave-fine {
  0%    { transform: translate( 0px,    0px  ) rotate( 0.000deg); }
  14%   { transform: translate( 0.4px, -0.2px) rotate( 0.012deg); }
  29%   { transform: translate(-0.5px,  0.3px) rotate(-0.018deg); }
  43%   { transform: translate( 0.3px,  0.4px) rotate( 0.008deg); }
  61%   { transform: translate(-0.4px, -0.2px) rotate(-0.014deg); }
  77%   { transform: translate( 0.5px,  0.1px) rotate( 0.016deg); }
  100%  { transform: translate( 0px,    0px  ) rotate( 0.000deg); }
}

.weave-fine {
  animation: weave-fine 5.7s ease-in-out infinite;
  will-change: transform;
}

/* ============================================================
   ANIMATION SYSTEM
   ============================================================ */

/* ── 1. Word-split: each word clips upward into view ── */
.word-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  /* Generous padding so ascenders, descenders & skew never clip.
     Negative margins cancel out the extra space in the layout. */
  padding-top:    0.22em;
  margin-top:    -0.22em;
  padding-bottom: 0.18em;
  margin-bottom: -0.18em;
  padding-left:   0.04em;
  padding-right:  0.04em;
}
.word-inner {
  display: inline-block;
  transform: translateY(110%) skewY(4deg);
  opacity: 0;
  will-change: transform, opacity;
}
.split-revealed .word-inner {
  transform: translateY(0) skewY(0deg);
  opacity: 1;
  transition:
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    opacity   0.5s ease;
}

/* ── 2. Section label: slides in from the left ── */
.section-label {
  transform: translateX(-20px);
  opacity: 0;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}
.section-label.label-revealed {
  transform: translateX(0);
  opacity: 1;
}

/* ── 3. Blur-fade-up: body text, meta, subtle content ── */
.blur-up {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(6px);
  will-change: opacity, transform, filter;
  transition:
    opacity    0.9s ease,
    transform  0.9s cubic-bezier(0.16, 1, 0.3, 1),
    filter     0.9s ease;
}
.blur-up.blur-revealed {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* ── 4. Stagger children (cards, services, process steps) ── */
.stagger-item {
  opacity: 0;
  transform: translateY(40px);
  will-change: opacity, transform;
  transition:
    opacity   0.8s ease,
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.stagger-item.stagger-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── 5. Line draw: horizontal rule extends across ── */
.line-draw {
  display: block;
  width: 0;
  height: 1px;
  background: var(--rule);
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  margin-bottom: 56px;
}
.line-draw.line-revealed { width: 100%; }

/* ── 6. Hero load animation (fires on DOMContentLoaded) ── */
.hero-content { opacity: 0; }
.hero-content.hero-loaded { opacity: 1; transition: opacity 0.01s; }

/* ── 7. Legacy .reveal (kept for any plain wrappers) ── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ====== FOOTER ====== */
footer {
  border-top: 1px solid var(--rule);
  padding: 40px 56px;
  /* 1fr auto 1fr keeps the middle column page-centered regardless of the
     differing widths of the copyright (left) and site/back link (right). */
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--bone-faint);
}
footer > :first-child { justify-self: start; }
footer > :last-child  { justify-self: end; }
.footer-links {
  display: flex; justify-content: center; gap: 28px;
}
.footer-links a {
  color: var(--bone-faint); transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--halation); }

/* Social icons (footer right cell) */
.footer-social {
  display: flex; align-items: center; justify-content: flex-end; gap: 18px;
}
.footer-social a {
  display: inline-flex; color: var(--bone-faint);
  transition: color 0.2s ease, transform 0.2s ease;
}
.footer-social a:hover { color: var(--halation); transform: translateY(-2px); }
.footer-social svg {
  width: 16px; height: 16px; fill: currentColor; display: block;
}
/* Project pages pair a back-link with the icons in the same cell */
.footer-right {
  display: flex; align-items: center; justify-content: flex-end; gap: 26px;
}
.footer-backlink {
  color: var(--bone-faint); transition: color 0.2s ease; white-space: nowrap;
}
.footer-backlink:hover { color: var(--halation); }

/* ====== NOW PLAYING SCRUBBER ====== */
.now-playing {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 500; pointer-events: none;
}
.np-label {
  display: block; padding: 0 20px 5px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--bone-faint); text-align: right;
  opacity: 0; transition: opacity 0.4s ease;
}
.now-playing.active .np-label { opacity: 1; }
.np-track {
  height: 2px; background: rgba(245, 241, 232, 0.06);
}
.np-fill {
  height: 100%; width: 0%;
  background: var(--halation);
  box-shadow: 0 0 8px rgba(232, 155, 59, 0.5);
  transition: width 0.15s linear;
}

/* ====== HAMBURGER BUTTON ====== */
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 6px; flex-direction: column; gap: 5px;
  z-index: 200; position: relative;
}
.nav-toggle span {
  display: block; width: 22px; height: 1px;
  background: var(--bone);
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), opacity 0.2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ====== RESPONSIVE ====== */
@media (max-width: 900px) {
  nav { padding: 20px 24px; backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(10,10,10,0.9); }
  nav.scrolled { padding: 14px 24px; }
  .nav-toggle { display: flex; }

  /* Full-screen overlay menu */
  nav ul {
    position: fixed; inset: 0;
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(12px);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 40px; z-index: 150;
    opacity: 0; pointer-events: none;
    transition: opacity 0.35s ease;
  }
  nav ul.open { opacity: 1; pointer-events: auto; }
  nav ul li { list-style: none; }
  nav ul a {
    font-family: 'Fraunces', serif;
    font-size: clamp(32px, 8vw, 52px);
    font-weight: 300; font-style: italic;
    letter-spacing: -0.01em; text-transform: none;
    color: var(--bone-dim);
    transition: color 0.2s ease;
  }
  nav ul a:hover, nav ul a.active { color: var(--bone); }

  .hero { padding: 0 24px; }
  .hero .meta { left: 24px; right: 24px; bottom: 24px; }
  section { padding: 80px 24px; }
  .page-hero { padding: 100px 24px 60px; }
  .work-grid, .services, .about { grid-template-columns: 1fr; gap: 24px; }
  .services { gap: 1px; }
  .project-body { grid-template-columns: 1fr; gap: 48px; padding: 60px 24px; }
  .project-body-full { padding: 60px 24px; }
  .project-hero { padding: 100px 24px 60px; }
  .next-project { padding: 60px 24px; }
  .form-grid { grid-template-columns: 1fr; }
  .contact .meta { flex-direction: column; gap: 16px; }
  footer { padding: 24px; grid-template-columns: 1fr; gap: 16px; text-align: center; justify-items: center; }
  footer > :first-child, footer > :last-child { justify-self: center; }
  /* Stacked footer: centre the icons instead of right-aligning them */
  .footer-social, .footer-right { justify-content: center; }
  .footer-right { flex-direction: column; gap: 16px; }
}

/* ====== REDUCED MOTION ====== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .weave-fine, .drum-outer { animation: none; }
  .word-inner { transform: none; opacity: 1; }
  .blur-up, .stagger-item, .section-label, .reveal {
    opacity: 1; transform: none; filter: none; transition: none;
  }
  .line-draw { width: 100%; transition: none; }
}

/* Small phones */
@media (max-width: 480px) {
  .hero h1 { font-size: clamp(52px, 14vw, 80px); }
  .page-hero h1 { font-size: clamp(36px, 11vw, 60px); }
  .big-link { font-size: clamp(36px, 10vw, 60px); }
  .section-title { font-size: clamp(28px, 9vw, 48px); }
  .hero .meta { font-size: 9px; }
}
