/* ============================================================
   STUDIO ROO — Art & Design
   "The Drafting Table" — navy ink on flecked paper,
   scroll-driven sign-painter craft
   ============================================================ */

:root {
  --paper: #EDEAE3;
  --paper-deep: #E3DFD5;
  --ink: #1E3358;
  --ink-deep: #141F36;
  --brick: #C8502E;
  --pen: #2456C4;
  --display: "Fraunces", Georgia, serif;
  --script: "Yellowtail", cursive;
  --hand: "Caveat", cursive;
  --sans: "Archivo", Arial, sans-serif;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

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

html { scroll-behavior: smooth; background: var(--paper); }

body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    /* dark flecks — paper inclusions (denser) */
    url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='240'%20height='240'%3E%3Cfilter%20id='s'%3E%3CfeTurbulence%20type='turbulence'%20baseFrequency='0.68'%20numOctaves='1'%20seed='9'%20stitchTiles='stitch'/%3E%3CfeComponentTransfer%3E%3CfeFuncA%20type='discrete'%20tableValues='0%200%200%200%200%200%200%201'/%3E%3C/feComponentTransfer%3E%3CfeColorMatrix%20values='0%200%200%200%200.1%200%200%200%200%200.16%200%200%200%200%200.29%200%200%200%200.7%200'/%3E%3C/filter%3E%3Crect%20width='240'%20height='240'%20filter='url(%23s)'/%3E%3C/svg%3E"),
    /* lighter flecks — smaller, second pass */
    url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='190'%20height='190'%3E%3Cfilter%20id='s2'%3E%3CfeTurbulence%20type='turbulence'%20baseFrequency='0.9'%20numOctaves='1'%20seed='23'%20stitchTiles='stitch'/%3E%3CfeComponentTransfer%3E%3CfeFuncA%20type='discrete'%20tableValues='0%200%200%200%200%200%201'/%3E%3C/feComponentTransfer%3E%3CfeColorMatrix%20values='0%200%200%200%200.12%200%200%200%200%200.19%200%200%200%200%200.33%200%200%200%200.4%200'/%3E%3C/filter%3E%3Crect%20width='190'%20height='190'%20filter='url(%23s2)'/%3E%3C/svg%3E"),
    /* fine overall grain */
    url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='170'%20height='170'%3E%3Cfilter%20id='g'%3E%3CfeTurbulence%20type='fractalNoise'%20baseFrequency='0.9'%20numOctaves='2'%20seed='4'/%3E%3CfeColorMatrix%20values='0%200%200%200%200.12%200%200%200%200%200.16%200%200%200%200%200.26%200%200%200%200.09%200'/%3E%3C/filter%3E%3Crect%20width='170'%20height='170'%20filter='url(%23g)'/%3E%3C/svg%3E"),
    /* soft paper unevenness */
    url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='360'%20height='360'%3E%3Cfilter%20id='b'%3E%3CfeTurbulence%20type='fractalNoise'%20baseFrequency='0.014'%20numOctaves='3'%20seed='11'/%3E%3CfeColorMatrix%20values='0%200%200%200%200.13%200%200%200%200%200.2%200%200%200%200%200.34%200%200%200%200.06%200'/%3E%3C/filter%3E%3Crect%20width='360'%20height='360'%20filter='url(%23b)'/%3E%3C/svg%3E");
  background-size: 240px 240px, 190px 190px, 170px 170px, 360px 360px;
  background-position: 0 0, 55px 40px, 40px 30px, 0 0;
  overflow-x: hidden;
}

::selection { background: var(--brick); color: var(--paper); }

img { max-width: 100%; display: block; }
a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--pen);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--paper);
  display: grid; place-items: center;
  transition: transform .7s var(--ease-out), visibility 0s .7s;
}
.preloader.done { transform: translateY(-101%); visibility: hidden; }
.preloader__inner { text-align: center; }
.preloader__badge {
  width: min(170px, 40vw);
  animation: stampIn .55s var(--ease-out) both;
}
.preloader__line { width: 150px; margin: .6rem auto 0; overflow: visible; }
.preloader__line path {
  stroke-dasharray: 240; stroke-dashoffset: 240;
  animation: penDraw .6s .4s var(--ease-out) forwards;
}
@keyframes stampIn {
  0% { opacity: 0; transform: scale(1.6) rotate(-6deg); }
  60% { opacity: 1; transform: scale(.96) rotate(1deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}

/* ---------- custom cursor ---------- */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 190;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--brick);
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width .25s, height .25s, background .25s, opacity .25s;
  opacity: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-size: 0; font-weight: 700; letter-spacing: .1em;
  color: var(--paper);
}
.cursor.on { opacity: .9; }
.cursor.grow { width: 44px; height: 44px; background: var(--ink); opacity: .92; }
.cursor.view { width: 64px; height: 64px; background: var(--brick); font-size: .6rem; }
.cursor.view::after { content: "VIEW"; }
@media (hover: none), (prefers-reduced-motion: reduce) {
  .cursor { display: none; }
}

/* ---------- pen progress line ---------- */
.penline {
  position: fixed; top: 0; bottom: 0; left: clamp(8px, 2vw, 26px);
  width: 12px; z-index: 90;
  pointer-events: none;
}
.penline svg { width: 100%; height: 100%; overflow: visible; }
.penline__pencil {
  position: absolute; left: -4px; top: 0;
  font-size: 1.15rem; color: var(--pen);
  transform: translateY(-2px) rotate(100deg);
}
@media (max-width: 720px) { .penline { display: none; } }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem clamp(1.2rem, 4vw, 3rem);
  background: transparent;
  transition: background .35s, box-shadow .35s, padding .35s;
}
.nav.scrolled {
  background: rgba(237, 234, 227, .96);
  box-shadow: 0 1px 0 rgba(30, 51, 88, .25);
  padding-top: .55rem; padding-bottom: .55rem;
}
/* blur only on desktop: backdrop-filter would make the fixed
   mobile menu position against the nav instead of the viewport */
@media (min-width: 721px) {
  .nav.scrolled { background: rgba(237, 234, 227, .9); backdrop-filter: blur(6px); }
}
.nav__logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.nav__logo img { width: 40px; height: 44px; object-fit: contain; }
.nav__logo-text {
  font-family: var(--script); font-size: 1.45rem; line-height: 1;
  transform: translateY(2px);
}
.nav__links { display: flex; align-items: center; gap: clamp(.9rem, 2.2vw, 1.9rem); }
.nav__links a {
  text-decoration: none;
  font-size: .78rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  position: relative; padding: .3rem 0;
}
.nav__links a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px; background: var(--brick);
  transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease-out);
}
.nav__links a:not(.nav__cta):hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta {
  border: 2px solid var(--ink);
  padding: .55rem 1.1rem !important;
  transition: background .3s, color .3s;
}
.nav__cta:hover { background: var(--ink); color: var(--paper); }
.nav__burger {
  display: none;
  width: 44px; height: 44px;
  background: none; border: none; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 7px;
}
.nav__burger span {
  display: block; width: 26px; height: 3px; background: var(--ink);
  transition: transform .3s var(--ease-out), background .3s;
}
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-5px) rotate(-45deg); }

/* ---------- shared ---------- */
.section { padding: clamp(4.5rem, 9vw, 8rem) clamp(1.6rem, 5vw, 4rem); }

.section__head { text-align: center; max-width: 820px; margin: 0 auto clamp(2rem, 4vw, 3.5rem); }

.section__title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2rem, 5.2vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -.01em;
  margin: .8rem 0 1rem;
}

.label {
  display: inline-flex; align-items: center; gap: .9rem;
  font-size: .75rem; font-weight: 700;
  letter-spacing: .3em; text-transform: uppercase;
}
.label__dot { width: 34px; height: 2px; background: currentColor; position: relative; }
.label__dot::after {
  content: ""; position: absolute; top: 50%; width: 6px; height: 6px;
  border-radius: 50%; background: currentColor; transform: translateY(-50%);
}
.label__dot:first-child::after { right: -3px; }
.label__dot:last-child::after { left: -3px; }

.btn {
  display: inline-block;
  font-family: var(--sans); font-size: .8rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none;
  padding: 1rem 1.8rem;
  border: 2px solid var(--ink);
  position: relative; overflow: hidden;
  cursor: pointer;
  background: transparent; color: var(--ink);
}
.btn span { position: relative; z-index: 1; transition: color .35s; }
.btn::before {
  content: ""; position: absolute; inset: 0;
  background: var(--ink);
  transform: translateY(101%);
  transition: transform .35s var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn:hover span, .btn:focus-visible span { color: var(--paper); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink::before { background: var(--brick); }
.btn--paper { border-color: var(--paper); color: var(--paper); }
.btn--paper::before { background: var(--paper); }
.btn--paper:hover span, .btn--paper:focus-visible span { color: var(--ink); }

/* pen annotations */
.pen-note { position: relative; display: inline-block; white-space: nowrap; }
.pen-underline {
  position: absolute; left: 0; right: 0; bottom: -.18em;
  width: 100%; color: var(--brick);
  pointer-events: none;
}
.pen-underline path, .pen-arrow path {
  stroke-dasharray: 1000; stroke-dashoffset: 1000;
}
.drawn .pen-underline path, .drawn.pen-arrow path, .drawn .pen-arrow path {
  animation: penDraw 1.1s var(--ease-out) forwards;
}
@keyframes penDraw { to { stroke-dashoffset: 0; } }

.pen-script { font-family: var(--hand); font-size: 1.5rem; color: var(--brick); }
.pen-script--paper { color: #E8906F; }
.pen-arrow { width: 70px; color: var(--brick); overflow: visible; }

/* giant ink-fill headlines */
.fill-text {
  position: relative;
  display: block;
  font-family: var(--sans); font-weight: 900;
  font-size: clamp(3rem, 11vw, 9rem);
  letter-spacing: .06em;
  line-height: 1;
  white-space: nowrap;
  text-align: center;
  user-select: none;
}
.fill-text__ghost {
  display: block;
  color: transparent;
  -webkit-text-stroke: 2px rgba(30, 51, 88, .5);
}
.fill-text__ink {
  position: absolute; inset: 0;
  display: block;
  color: var(--ink);
  clip-path: inset(0 100% 0 0);
  will-change: clip-path;
}
.fill-text__ink--paper { color: var(--paper); }
.services .fill-text__ghost { -webkit-text-stroke-color: rgba(237, 234, 227, .45); }

/* reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* load sequence */
.load-rise { opacity: 0; transform: translateY(28px); }
body.ready .load-rise {
  animation: riseIn .8s var(--ease-out) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes riseIn { to { opacity: 1; transform: translateY(0); } }
.load-draw { opacity: 0; }
body.ready .load-draw { opacity: 1; transition: opacity .2s; transition-delay: var(--d, 0s); }

/* ---------- pinned scrub sections (JS sets outer height) ---------- */
.pin { position: relative; }
.pin__stage {
  position: sticky; top: 0;
  height: 100svh;
  overflow: hidden;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}

/* ---------- hero ---------- */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 7rem clamp(1.6rem, 5vw, 4rem) 5rem;
  position: relative;
  overflow: hidden;
}
.hero__cropmark {
  position: absolute; width: 26px; height: 26px;
  border: 0 solid var(--ink); opacity: .55;
}
.hero__cropmark--tl { top: 92px; left: 40px; border-top-width: 2px; border-left-width: 2px; }
.hero__cropmark--tr { top: 92px; right: 26px; border-top-width: 2px; border-right-width: 2px; }
.hero__cropmark--bl { bottom: 26px; left: 40px; border-bottom-width: 2px; border-left-width: 2px; }
.hero__cropmark--br { bottom: 26px; right: 26px; border-bottom-width: 2px; border-right-width: 2px; }
.hero__side {
  position: absolute; top: 50%;
  font-size: .68rem; font-weight: 600; letter-spacing: .32em;
  opacity: .55; white-space: nowrap;
}
.hero__side--l { left: 34px; transform: translateY(-50%) rotate(180deg); writing-mode: vertical-rl; }
.hero__side--r { right: 14px; transform: translateY(-50%); writing-mode: vertical-rl; }

.hero__layer { position: absolute; inset: 0; pointer-events: none; will-change: transform; }
.spark {
  position: absolute;
  font-size: 1.2rem; color: var(--ink); opacity: 0;
}
.spark--pen { color: var(--pen); font-size: 1.6rem; }
.hero__bolt {
  position: absolute;
  font-size: 2rem; color: var(--brick); opacity: 0;
  transform: rotate(12deg);
}
body.ready .spark { animation: twinkle 4.5s ease-in-out infinite; }
body.ready .spark:nth-child(2n) { animation-delay: 1.4s; font-size: 1rem; }
body.ready .spark:nth-child(3n) { animation-delay: 2.6s; }
body.ready .hero__bolt { animation: twinkle 6s 1.8s ease-in-out infinite; }
@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(.6) rotate(-8deg); }
  50% { opacity: .55; transform: scale(1) rotate(6deg); }
}

.hero__eyebrow {
  font-size: .8rem; font-weight: 700;
  letter-spacing: .34em; text-transform: uppercase;
}
.hero__monogram {
  width: clamp(84px, 11vw, 120px);
  margin: 1.6rem auto 1rem;
}
.hero__title { display: flex; flex-direction: column; position: relative; }
.hero__script {
  font-family: var(--script); font-weight: 400;
  font-size: clamp(2.4rem, 6.5vw, 4.6rem);
  line-height: 1;
  transform: rotate(-2deg);
}
body.ready .hero__script.load-rise { animation-name: riseInTilt; }
@keyframes riseInTilt { to { opacity: 1; transform: translateY(0) rotate(-2deg); } }

/* paint-swipe slab: outline sits under, ink version wipes across */
.hero__slab {
  position: relative;
  font-family: var(--display); font-weight: 900;
  font-size: clamp(2.2rem, 11vw, 8rem);
  line-height: .95;
  letter-spacing: .01em;
  margin-top: .1em;
}
.hero__slab-outline {
  display: block;
  color: transparent;
  -webkit-text-stroke: 2px rgba(30, 51, 88, .38);
  opacity: 0;
}
body.ready .hero__slab-outline { animation: fadeIn .4s .55s forwards; }
@keyframes fadeIn { to { opacity: 1; } }
.hero__slab-paint {
  position: absolute; inset: 0;
  display: block;
  color: var(--ink);
  clip-path: inset(-10% 100% -10% 0);
}
body.ready .hero__slab-paint { animation: paintSwipe 1s .75s var(--ease-out) forwards; }
@keyframes paintSwipe { to { clip-path: inset(-10% -2% -10% 0); } }
.hero__dot { color: var(--brick); }

.hero__circle {
  position: absolute;
  left: -9%; right: -9%; top: -22%; bottom: -26%;
  width: 118%; height: 148%;
  color: var(--brick);
  overflow: visible;
  pointer-events: none;
}
.hero__circle path { stroke-dasharray: 1600; stroke-dashoffset: 1600; }
body.ready .hero__circle.loaded path { animation: penDrawBig 1.3s var(--ease-out) forwards; }
@keyframes penDrawBig { to { stroke-dashoffset: 0; } }

.hero__sub { margin: 1.8rem auto 2.2rem; max-width: 520px; }
.hero__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.hero__scroll {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .1rem;
  text-decoration: none;
  font-size: .68rem; letter-spacing: .3em; text-transform: uppercase;
  opacity: .7;
}
.hero__pencil { font-size: 1.3rem; display: block; }
body.ready .hero__pencil { animation: bob 2.2s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(7px) rotate(8deg); } }

/* ---------- ticker ---------- */
.ticker {
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  padding: .95rem 0;
  border-top: 2px solid var(--ink-deep);
  border-bottom: 2px solid var(--ink-deep);
  transform: rotate(-.6deg) scale(1.01);
}
.ticker__track { display: flex; width: max-content; animation: marquee 26s linear infinite; }
.ticker__track span {
  font-family: var(--sans); font-weight: 800;
  font-size: 1.05rem; letter-spacing: .34em;
  white-space: nowrap; padding-right: 1rem;
}
.ticker__track i { font-style: normal; color: var(--brick); padding: 0 .8rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- process (pinned card deck) ---------- */
.process .pin__stage { gap: 1rem; padding: 5.5rem 1.5rem 2rem; }
.process__deck {
  position: relative;
  width: min(560px, 92vw);
  height: min(400px, 52svh);
  perspective: 1400px;
  transform-style: preserve-3d;
}
.process__card {
  position: absolute; inset: 0;
  background: #fff;
  box-shadow: 0 14px 34px rgba(20, 31, 54, .18);
  padding: clamp(1.4rem, 4vw, 2.6rem);
  display: flex; flex-direction: column; justify-content: center; gap: .7rem;
  transform: rotate(var(--tilt, 0deg));
  transform-origin: top center;      /* hinge at the tape */
  backface-visibility: hidden;       /* page vanishes past 90° */
  will-change: transform;
}
.process__tape {
  position: absolute; top: -13px; left: 50%;
  width: 92px; height: 26px;
  transform: translateX(-50%) rotate(var(--tilt, 0deg));
  background: rgba(200, 80, 46, .32);
  box-shadow: 0 1px 3px rgba(20, 31, 54, .12);
  clip-path: polygon(2% 8%, 98% 0, 100% 92%, 0 100%);
}
.process__step {
  font-size: .72rem; font-weight: 800;
  letter-spacing: .3em; text-transform: uppercase;
  color: var(--brick);
}
.process__card h3 {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(1.7rem, 4.5vw, 2.6rem);
}
.process__card p { max-width: 46ch; font-size: 1rem; }
.process__note {
  align-self: flex-end;
  font-family: var(--hand); font-size: 1.4rem;
  color: var(--pen);
  transform: rotate(-3deg);
}
.process__count {
  position: absolute; bottom: -3.2rem; left: 50%; transform: translateX(-50%);
  font-family: var(--display); font-weight: 900; font-size: 1.6rem;
  display: flex; align-items: baseline; gap: .3rem;
}
.process__count em { font-style: normal; font-size: 1rem; opacity: .55; }

/* ---------- work gallery (pinned horizontal) ---------- */
.gallery { background: var(--paper-deep); }
.gallery .pin__stage { justify-content: center; align-items: flex-start; }
.gallery__bigword { margin: 5.2rem 0 0 clamp(1.6rem, 5vw, 4rem); text-align: left; }
.gallery__hint {
  margin: .2rem 0 1.6rem clamp(1.6rem, 5vw, 4rem);
  display: flex; align-items: center; gap: .8rem;
}
.gallery__track {
  display: flex; align-items: center;
  gap: clamp(1.6rem, 3vw, 3rem);
  padding: 1.6rem clamp(1.6rem, 5vw, 4rem) 0;
  will-change: transform;
}
.work__card {
  flex: 0 0 auto;
  width: clamp(260px, 30vw, 400px);
  text-decoration: none;
  background: #fff;
  padding: .8rem .8rem 1rem;
  box-shadow: 0 10px 26px rgba(20, 31, 54, .18);
  transform: rotate(var(--r, 0deg));
  position: relative;
  transition: transform .45s var(--ease-out), box-shadow .45s;
}
.work__card:nth-child(2n) { margin-top: 2.4rem; }
.work__card:hover {
  transform: rotate(0) translateY(-8px) scale(1.02);
  box-shadow: 0 24px 44px rgba(20, 31, 54, .28);
  z-index: 2;
}
.work__tape {
  position: absolute; top: -13px; left: 50%;
  width: 92px; height: 26px;
  transform: translateX(-50%) rotate(var(--r, 0deg));
  background: rgba(200, 80, 46, .32);
  box-shadow: 0 1px 3px rgba(20, 31, 54, .12);
  clip-path: polygon(2% 8%, 98% 0, 100% 92%, 0 100%);
}
.work__card figure { overflow: hidden; aspect-ratio: 4 / 3; }
.work__card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease-out);
}
.work__card:hover img { transform: scale(1.06); }
.work__meta {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; padding-top: .8rem;
}
.work__meta h3 {
  font-family: var(--display); font-weight: 600;
  font-size: 1.02rem; line-height: 1.25;
}
.work__meta span {
  font-size: .64rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--brick);
  white-space: nowrap;
}
.gallery__end {
  flex: 0 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  padding: 0 4vw;
  text-align: center;
}

/* ---------- mural wipe ---------- */
.mural { background: var(--ink-deep); color: var(--paper); }
.mural__stage { padding: 0; }
.mural__before {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .6rem;
  text-align: center;
  will-change: opacity, transform;
}
.mural__boring {
  font-family: var(--sans); font-weight: 900;
  font-size: clamp(3rem, 10vw, 8.5rem);
  line-height: .96; letter-spacing: .02em;
  color: var(--paper);
}
.mural__boring-sub { font-size: 1.7rem; }
.mural__reveal {
  position: absolute; inset: 0;
  clip-path: inset(0 100% 0 0);
  will-change: clip-path;
}
.mural__reveal img {
  width: 100%; height: 100%; object-fit: cover;
}
.mural__roller {
  position: absolute; top: 0; bottom: 0; left: 100%;
  width: 10px;
  background: var(--brick);
  box-shadow: 0 0 24px rgba(200, 80, 46, .8);
  opacity: 0;
  transition: opacity .3s;
}
.mural__after {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.6rem;
  text-align: center;
  background: linear-gradient(rgba(20, 31, 54, .55), rgba(20, 31, 54, .72));
  opacity: 0;
  will-change: opacity;
  padding: 1.5rem;
}
.mural__quote {
  font-family: var(--sans); font-weight: 900;
  font-size: clamp(2rem, 6vw, 4.6rem);
  line-height: 1.05;
  color: var(--paper);
  text-shadow: 0 2px 18px rgba(20, 31, 54, .6);
}
.mural__quote-script {
  display: block;
  font-family: var(--script); font-weight: 400;
  font-size: .55em;
  color: #E8906F;
  transform: rotate(-2deg);
  margin-bottom: .2em;
}

/* ---------- services ---------- */
.services { background: var(--ink); color: var(--paper); position: relative; overflow: hidden; }
.services__bigword { margin-bottom: .4rem; }
.services__tag { text-align: center; margin-bottom: clamp(2rem, 4vw, 3.4rem); }
.services__list { list-style: none; max-width: 900px; margin: 0 auto; }
.service {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "num name note" "num desc note";
  column-gap: 1.6rem;
  align-items: center;
  padding: 1.7rem .8rem;
  border-bottom: 1px dashed rgba(237, 234, 227, .35);
  position: relative;
  transition: padding-left .4s var(--ease-out);
}
.service:first-child { border-top: 1px dashed rgba(237, 234, 227, .35); }
.service::before {
  content: ""; position: absolute; inset: 0;
  background: var(--ink-deep);
  transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease-out);
  z-index: 0;
}
.service:hover { padding-left: 1.6rem; }
.service:hover::before { transform: scaleX(1); }
.service > * { position: relative; z-index: 1; }
.service__num { grid-area: num; font-size: 1.1rem; color: var(--brick); }
.service__name {
  grid-area: name;
  font-family: var(--display); font-weight: 900;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  letter-spacing: .02em;
}
.service__desc { grid-area: desc; opacity: .85; font-size: .98rem; max-width: 560px; }
.service__note {
  grid-area: note;
  font-family: var(--hand); font-size: 1.35rem;
  color: var(--brick);
  transform: rotate(-3deg);
  opacity: 0;
  transition: opacity .35s, transform .35s var(--ease-out);
}
.service:hover .service__note { opacity: 1; transform: rotate(-6deg) translateY(-2px); }

/* ---------- story ---------- */
.story__grid {
  display: grid;
  grid-template-columns: minmax(300px, 460px) 1fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
  max-width: 1150px; margin: 0 auto;
}
.story__media { position: relative; }
.story__lockup { transform: rotate(-2deg); }

/* founder photo — taped print on the drafting table */
.story__photo {
  position: relative;
  background: #fff;
  padding: .8rem .8rem 0;
  box-shadow: 0 16px 40px rgba(20, 31, 54, .2);
  transform: rotate(-1.6deg);
  transition: transform .5s var(--ease-out);
}
.story__media:hover .story__photo { transform: rotate(0); }
.story__photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 8%;
  display: block;
}
.story__photo figcaption {
  display: flex; flex-direction: column;
  padding: .85rem .3rem 1rem;
}
.story__photo-name {
  font-family: var(--display); font-weight: 900;
  font-size: 1.15rem; color: var(--ink); line-height: 1;
}
.story__photo-role {
  font-size: .64rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--brick); margin-top: .35rem;
}
.story__tape {
  position: absolute; z-index: 3;
  width: 104px; height: 30px;
  background: rgba(200, 80, 46, .28);
  box-shadow: 0 1px 4px rgba(20, 31, 54, .12);
  clip-path: polygon(2% 8%, 98% 0, 100% 92%, 0 100%);
}
.story__tape--tl { top: -14px; left: -20px; transform: rotate(-26deg); }
.story__tape--br { bottom: 46px; right: -22px; transform: rotate(-24deg); }

.story__stamp { position: absolute; top: -34px; right: -22px; width: 116px; height: 116px; z-index: 4; }
.story__stamp svg { width: 100%; height: 100%; animation: spin 22s linear infinite; }
.story__stamp text {
  font-family: var(--sans); font-size: 11px; font-weight: 700;
  letter-spacing: .14em; fill: var(--brick);
}
@keyframes spin { to { transform: rotate(360deg); } }
.story__text p { margin-bottom: 1.1rem; max-width: 56ch; }
.story__text .section__title { margin-bottom: 1.4rem; }
.story__facts {
  list-style: none;
  display: grid; grid-template-columns: repeat(4, auto);
  gap: 1.4rem 2.2rem;
  margin: 1.8rem 0;
}
.story__facts strong {
  display: block;
  font-family: var(--display); font-weight: 900;
  font-size: 1.9rem; line-height: 1;
}
.story__facts span {
  font-size: .68rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  opacity: .75;
}

/* ---------- faq ---------- */
.faq { background: var(--paper-deep); }
.faq__list { max-width: 760px; margin: 0 auto; }
.faq__item { border-bottom: 2px solid var(--ink); }
.faq__item:first-child { border-top: 2px solid var(--ink); }
.faq__item summary {
  list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.35rem .4rem;
  cursor: pointer;
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__plus { position: relative; width: 18px; height: 18px; flex-shrink: 0; }
.faq__plus::before, .faq__plus::after {
  content: ""; position: absolute; background: var(--brick);
  transition: transform .35s var(--ease-out);
}
.faq__plus::before { top: 8px; left: 0; width: 18px; height: 3px; }
.faq__plus::after { top: 0; left: 8px; width: 3px; height: 18px; }
.faq__item[open] .faq__plus::after { transform: rotate(90deg) scaleY(0); }
.faq__item[open] .faq__plus::before { transform: rotate(180deg); }
.faq__item p {
  padding: 0 .4rem 1.4rem;
  max-width: 62ch;
  animation: faqIn .45s var(--ease-out);
}
.faq__item a { color: var(--brick); font-weight: 600; }
@keyframes faqIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- contact ---------- */
.contact {
  background: var(--ink-deep);
  background-image: radial-gradient(ellipse at 30% 0%, rgba(36, 86, 196, .18), transparent 55%);
  color: var(--paper);
}
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  max-width: 1150px; margin: 0 auto;
  align-items: start;
}
.contact .section__title { color: var(--paper); }
.contact__script {
  font-family: var(--script); font-weight: 400;
  font-size: .62em; display: inline-block;
  transform: rotate(-2deg);
  color: var(--brick);
}
.contact__book {
  display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap;
  margin-top: 1.6rem;
}
.contact__or { transform: rotate(-2deg); }
.contact__socials { list-style: none; margin-top: 1.8rem; }
.contact__socials li { border-bottom: 1px dashed rgba(237, 234, 227, .3); }
.contact__socials a {
  display: block; padding: .75rem .2rem;
  text-decoration: none;
  font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  transition: padding-left .3s var(--ease-out), color .3s;
}
.contact__socials a:hover { padding-left: .9rem; color: #E8906F; }
.contact__form { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: .35rem; grid-column: span 2; }
.field--half { grid-column: span 1; }
.field label {
  font-size: .68rem; font-weight: 700;
  letter-spacing: .26em; text-transform: uppercase;
  opacity: .8;
}
.field input, .field textarea {
  font-family: var(--sans); font-size: 1rem;
  color: var(--paper);
  background: rgba(237, 234, 227, .06);
  border: 1px solid rgba(237, 234, 227, .35);
  padding: .85rem .9rem;
  transition: border-color .3s, background .3s;
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brick);
  background: rgba(237, 234, 227, .1);
}
.field ::placeholder { color: rgba(237, 234, 227, .45); }
.contact__submit { grid-column: span 2; justify-self: start; }
.contact__stamp { position: absolute; inset: 0; display: none; place-items: center; text-align: center; }
.contact__stamp.show { display: grid; }
.contact__stamp .stampbox {
  border: 3px solid var(--brick);
  color: var(--brick);
  padding: 1.2rem 2rem;
  font-family: var(--sans); font-weight: 800; font-size: 1.4rem; letter-spacing: .3em;
  transform: rotate(-7deg);
  animation: stampIn .5s var(--ease-out) both;
  background: rgba(20, 31, 54, .85);
}
.contact__stamp small {
  display: block; margin-top: .8rem;
  font-family: var(--hand); font-size: 1.25rem; letter-spacing: .02em;
  color: var(--paper);
}
.contact__form.sent .field, .contact__form.sent .contact__submit { opacity: .08; pointer-events: none; }

/* ---------- footer ---------- */
.footer { text-align: center; padding: clamp(3.5rem, 7vw, 6rem) 1.5rem 2.5rem; }
.footer__badge { width: 130px; margin: 0 auto 1.2rem; transform: rotate(-3deg); }
.footer__line { font-family: var(--sans); font-weight: 800; letter-spacing: .3em; font-size: .9rem; }
.footer__line i { font-style: normal; color: var(--brick); }
.footer__small { font-size: .78rem; opacity: .65; margin-top: .5rem; }
.footer__credit { font-size: .72rem; letter-spacing: .08em; opacity: .55; margin-top: .3rem; }
.footer__credit a { color: var(--brick); font-weight: 600; text-decoration: none; }
.footer__credit a:hover { text-decoration: underline; }
.footer__top {
  display: inline-block; margin-top: 1.6rem;
  font-family: var(--hand); font-size: 1.35rem;
  color: var(--brick); text-decoration: none;
}
.footer__top:hover { text-decoration: underline; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .story__grid { grid-template-columns: 1fr; }
  .story__media { max-width: 420px; margin: 0 auto; }
  .contact__inner { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav__burger { display: flex; }
  .nav__links {
    position: fixed; inset: 0;
    background: var(--ink);
    flex-direction: column; justify-content: center;
    gap: 2rem;
    transform: translateY(-102%);
    transition: transform .5s var(--ease-out);
  }
  .nav__links.open { transform: translateY(0); }
  .nav__links a { color: var(--paper); font-size: 1.05rem; }
  .nav__cta { border-color: var(--paper); }
  .nav__burger { position: relative; z-index: 5; }
  .nav.menu-open .nav__burger span { background: var(--paper); }
  .hero__side { display: none; }
  .hero__cropmark { display: none; }
  .service { grid-template-columns: auto 1fr; grid-template-areas: "num name" "num desc"; }
  .service__note { display: none; }
  .story__facts { grid-template-columns: repeat(2, auto); }
  .field--half { grid-column: span 2; }
  .work__card { width: min(78vw, 340px); }
}

/* ---------- reduced motion: static, fully readable ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001s !important;
  }
  .load-rise, .load-draw, .reveal, .hero__slab-outline { opacity: 1 !important; transform: none !important; }
  .hero__slab-paint { clip-path: inset(-10% -2% -10% 0) !important; }
  .hero__circle path, .pen-underline path, .pen-arrow path, .preloader__line path { stroke-dashoffset: 0 !important; }
  .fill-text__ink { clip-path: inset(0 0 0 0) !important; }
  .ticker__track { animation: none !important; }
  .preloader, .penline, .cursor { display: none !important; }
  /* pinned sections flatten to normal flow */
  .pin { height: auto !important; }
  .pin__stage { position: static; height: auto; overflow: visible; padding: 3rem 0; }
  .gallery__track { flex-wrap: wrap; transform: none !important; justify-content: center; }
  .process__deck { height: auto; display: grid; gap: 1.4rem; }
  .process__card { position: static; opacity: 1 !important; transform: none !important; }
  .process__count { display: none; }
  .mural .pin__stage { min-height: 70vh; }
  .mural__before { display: none; }
  .mural__reveal { clip-path: none !important; position: relative; height: 60vh; }
  .mural__roller { display: none; }
  .mural__after { opacity: 1 !important; }
}

/* mural intro sequencing: script line lands first, wall second */
.mural__lead {
  font-family: var(--script);
  font-size: clamp(1.7rem, 3.6vw, 2.8rem);
  color: #E8906F;
  transform: rotate(-2deg);
}
.m-stage1 {
  opacity: 0; translate: 0 18px;
  transition: opacity .7s var(--ease-out), translate .7s var(--ease-out);
}
.m-stage2 {
  opacity: 0; translate: 0 18px;
  transition: opacity .7s var(--ease-out) .55s, translate .7s var(--ease-out) .55s;
}
.mural.seen .m-stage1, .mural.seen .m-stage2 { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) {
  .m-stage1, .m-stage2 { opacity: 1 !important; translate: 0 0 !important; }
}
