/* ============================================================
   JAYSENCY — Branding Agency
   Design system: warm paper / deep ink / cobalt accent
   ============================================================ */

:root {
  --paper: #f3f0ea;
  --paper-2: #eae6dd;
  --ink: #101012;
  --ink-soft: #17171a;
  --accent: #2f4bff;
  --accent-soft: #6d83ff;
  --muted: #6b675f;
  --line: rgba(16, 16, 18, 0.14);

  --bg: var(--paper);
  --fg: var(--ink);
  --muted-c: var(--muted);
  --line-c: var(--line);
  --accent-c: var(--accent);
  --eye: var(--paper);

  --font-display: "Archivo", "Avenir Next", Futura, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --container: min(92vw, 1400px);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* Engage Archivo's expanded width; fonts without a wdth axis ignore this */
  font-stretch: 125%;
}

html, body { overflow-x: clip; }

/* Scroll lock: overflow on body alone never reaches the viewport once the
   root's overflow-x is non-visible, so lock the root itself. */
html:has(body.is-locked) { overflow: hidden; }
html { scrollbar-gutter: stable; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

body.is-locked { overflow: hidden; }

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

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

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

html { scrollbar-color: rgba(16, 16, 18, 0.35) transparent; scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(16, 16, 18, 0.3); border-radius: 999px; }

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.container { width: var(--container); margin-inline: auto; }

.skip-link {
  position: fixed;
  top: 0.75rem; left: 0.75rem;
  z-index: 1000;
  padding: 0.75rem 1.25rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.85rem;
  transform: translateY(-200%);
  transition: transform 0.3s var(--ease);
}
.skip-link:focus-visible { transform: none; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(5.5rem, 11vw, 9.5rem); }

.section--ink {
  --bg: var(--ink);
  --fg: var(--paper);
  --muted-c: rgba(243, 240, 234, 0.55);
  --line-c: rgba(243, 240, 234, 0.16);
  --accent-c: var(--accent-soft);
  --eye: var(--ink);
  background: var(--bg);
  color: var(--fg);
}
/* Consecutive ink sections: halve the invisible double-padding seam */
.section--ink + .section--ink { padding-top: clamp(2.5rem, 5vw, 4rem); }

.section__label {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-c);
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
}
.section__label span {
  color: var(--accent-c);
  font-family: var(--font-display);
}
.section__label span::after { content: " /"; color: var(--muted-c); }

.section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.6vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 24ch;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
  text-wrap: balance;
}

.serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.01em;
  font-size: 1.02em; /* optical compensation against Syne */
}

/* ---------- Split-text animation ---------- */
.wm {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  /* Roomy window so serif-italic descenders (g, y) and overhangs never clip */
  padding: 0 0.14em 0.3em;
  margin: 0 -0.14em -0.3em;
}
.wm .w {
  display: inline-block;
  transform: translateY(120%);
  transition: transform 1.1s var(--ease);
  transition-delay: var(--wd, 0ms);
}
[data-split].in-view .w { transform: translateY(0); }

/* ---------- Reveal-on-scroll (JS-gated so a JS failure never hides content) ---------- */
.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(2.5rem);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
  transition-delay: var(--rd, 0ms);
}
.has-js [data-reveal].in-view { opacity: 1; transform: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1.05rem 1.9rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
  transition:
    color 0.45s var(--ease),
    border-color 0.45s var(--ease),
    background-size 0.55s var(--ease),
    transform 0.3s var(--ease);
}
.btn--primary {
  background:
    linear-gradient(var(--accent), var(--accent)) no-repeat 0 100% / 100% 0%,
    var(--ink);
  color: var(--paper);
}
.btn--primary:hover { background-size: 100% 100%; }

.btn--ghost {
  background: linear-gradient(var(--ink), var(--ink)) no-repeat 0 100% / 100% 0%;
  border-color: var(--line-c);
  color: var(--fg);
}
.btn--ghost:hover { background-size: 100% 100%; color: var(--paper); border-color: var(--ink); }

.btn--paper {
  background:
    linear-gradient(var(--accent), var(--accent)) no-repeat 0 100% / 100% 0%,
    var(--paper);
  color: var(--ink);
}
.btn--paper:hover { background-size: 100% 100%; color: var(--paper); }

.btn__arrow { transition: transform 0.35s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ---------- Preloader (only shown when JS is running) ---------- */
.preloader { display: none; }
.has-js .preloader {
  position: fixed;
  inset: 0;
  z-index: 990;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.9s var(--ease) 0.15s;
}
.preloader.is-done { transform: translateY(-101%); }
.preloader__inner { display: flex; align-items: center; gap: 1rem; --eye: var(--ink); }
.preloader__bird { width: 52px; height: 52px; color: var(--paper); animation: birdFloat 2.4s ease-in-out infinite; }
.preloader__word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
}
.preloader__count {
  position: absolute;
  bottom: 1.5rem;
  right: 2.25rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 8vw, 5rem);
  color: rgba(243, 240, 234, 0.22);
  line-height: 1;
}
@keyframes birdFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ---------- Custom cursor ---------- */
.cursor { position: fixed; inset: 0; z-index: 995; pointer-events: none; }
.cursor__dot,
.cursor__ring {
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  transform: translate(-100px, -100px);
}
.cursor__dot {
  width: 6px; height: 6px;
  background: var(--accent);
}
.cursor__ring {
  width: 38px; height: 38px;
  border: 1px solid rgba(120, 120, 128, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    width 0.35s var(--ease),
    height 0.35s var(--ease),
    background-color 0.35s var(--ease),
    border-color 0.35s var(--ease);
}
.cursor__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.cursor.is-hover .cursor__ring {
  width: 56px; height: 56px;
  border-color: var(--accent);
}
.cursor.has-label .cursor__ring {
  width: 84px; height: 84px;
  background: var(--accent);
  border-color: var(--accent);
}
.cursor.has-label .cursor__label { opacity: 1; }
.cursor.has-label .cursor__dot { opacity: 0; }
.cursor { display: none; }
body.has-cursor .cursor { display: block; }
body.has-cursor,
body.has-cursor a,
body.has-cursor button,
body.has-cursor [role="button"],
body.has-cursor input,
body.has-cursor textarea,
body.has-cursor label { cursor: none; }

/* ---------- Grain ---------- */
.noise {
  position: fixed;
  inset: -5%;
  width: 110%;
  height: 110%;
  z-index: 965;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 9s steps(10) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -2%); }
  80% { transform: translate(3%, 3%); }
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 890;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.35rem clamp(1.25rem, 4vw, 3rem);
  mix-blend-mode: difference;
  color: #fff;
  transition: transform 0.55s var(--ease), opacity 0.4s ease;
}
.nav.is-hidden { transform: translateY(-120%); }
.nav.is-hidden:focus-within { transform: none; }
.nav.is-gone { opacity: 0; pointer-events: none; }

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  --eye: #000;
}
.nav__bird { width: 30px; height: 30px; color: #fff; }
.nav__word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.nav__links { display: flex; gap: 2rem; }
.nav__links a {
  position: relative;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.25rem 0;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav__right { display: flex; align-items: center; gap: 1rem; }
.nav__cta {
  padding: 0.7rem 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.nav__cta:hover { background: #fff; color: #000; border-color: #fff; }

.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  width: 44px;
  height: 44px;
  padding: 10px;
}
.nav__burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  transition: transform 0.4s var(--ease);
}
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

/* ---------- Fullscreen menu ---------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 880;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 2rem;
  overflow-y: auto;
  padding: clamp(1.5rem, 6vw, 4rem);
  padding-top: max(5.5rem, 8vh);
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform 0.7s var(--ease), visibility 0s linear 0.7s;
}
.menu.is-open {
  transform: translateY(0);
  visibility: visible;
  transition: transform 0.7s var(--ease);
}
.menu__links { display: flex; flex-direction: column; gap: 0.4rem; margin-block: auto; }
.menu__links a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 9vw, 3.6rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  text-decoration: none;
  padding: 0.35rem 0;
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.menu.is-open .menu__links a { opacity: 1; transform: none; }
.menu.is-open .menu__links a:nth-child(1) { transition-delay: 0.15s; }
.menu.is-open .menu__links a:nth-child(2) { transition-delay: 0.22s; }
.menu.is-open .menu__links a:nth-child(3) { transition-delay: 0.29s; }
.menu.is-open .menu__links a:nth-child(4) { transition-delay: 0.36s; }
.menu.is-open .menu__links a:nth-child(5) { transition-delay: 0.43s; }
.menu__index {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-soft);
  letter-spacing: 0.1em;
}
.menu__foot {
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.95rem;
}
.menu__foot a { color: rgba(243, 240, 234, 0.7); text-decoration: none; }
.menu__foot a:hover { color: var(--paper); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 5.5rem;
  padding-bottom: 6rem;
  overflow: hidden;
}
.hero__bird {
  position: absolute;
  top: 8vh;
  right: -4vw;
  width: clamp(320px, 46vw, 720px);
  height: auto;
  aspect-ratio: 186 / 190;
  color: var(--ink);
  opacity: 0.07;
  pointer-events: none;
  will-change: transform;
}
.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: clamp(1.5rem, 3.5vw, 2.5rem);
}
.pulse-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(47, 75, 255, 0.45); }
  70% { box-shadow: 0 0 0 12px rgba(47, 75, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 75, 255, 0); }
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.9rem, 9vw, 8.5rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  max-width: 15ch;
}
.hero__title .serif { color: var(--accent); }
.hero__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: clamp(2rem, 5vh, 3.5rem);
}
.hero__sub {
  max-width: 46ch;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__foot {
  position: absolute;
  bottom: 1.75rem;
  left: 0; right: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__scroll {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}
.hero__scroll-line {
  width: 1px;
  height: 2.6rem;
  background: var(--muted);
  transform-origin: top;
  animation: scrollLine 2s var(--ease) infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- About ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.about__lead {
  /* Original delicate lead — Instrument Serif, as first designed */
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.35;
  max-width: 24ch;
}
.about__body p {
  color: var(--muted-c);
  line-height: 1.75;
  max-width: 58ch;
}
.about__body p + p { margin-top: 1.4rem; }

.stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  margin-top: clamp(3.5rem, 8vw, 6rem);
}
.stat {
  border-top: 1px solid var(--line-c);
  padding-top: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.stat__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat__cap { color: var(--muted-c); font-size: 0.92rem; }

/* ---------- Services ---------- */
.services__list { position: relative; }
.service { border-top: 1px solid var(--line-c); }
.service:last-of-type { border-bottom: 1px solid var(--line-c); }
.service__head {
  width: 100%;
  display: grid;
  grid-template-columns: 3.5rem 1fr auto 44px;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
  padding: clamp(1.5rem, 3vw, 2.1rem) 0;
  text-align: left;
}
.service__index {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted-c);
}
.service__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 2.6vw, 2.1rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  transition: transform 0.45s var(--ease), color 0.45s var(--ease);
}
.service:hover .service__name,
.service.is-open .service__name { transform: translateX(0.6rem); color: var(--accent-c); }
.service__tags { color: var(--muted-c); font-size: 0.88rem; white-space: nowrap; }
.service__icon {
  position: relative;
  width: 44px; height: 44px;
  border: 1px solid var(--line-c);
  border-radius: 50%;
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.45s var(--ease);
}
.service__icon::before,
.service__icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  background: currentColor;
  transition: background-color 0.3s;
}
.service__icon::before { width: 14px; height: 1.5px; transform: translate(-50%, -50%); }
.service__icon::after { width: 1.5px; height: 14px; transform: translate(-50%, -50%); }
.service:hover .service__icon { border-color: var(--accent-c); }
.service.is-open .service__icon { transform: rotate(45deg); background: var(--accent-c); border-color: var(--accent-c); }
.service.is-open .service__icon::before,
.service.is-open .service__icon::after { background: var(--paper); }
.service__panel {
  height: 0;
  overflow: hidden;
  visibility: hidden;
  transition: height 0.6s var(--ease), visibility 0s linear 0.6s;
}
.service.is-open .service__panel {
  visibility: visible;
  transition: height 0.6s var(--ease);
}
.service__panel p {
  color: var(--muted-c);
  max-width: 58ch;
  line-height: 1.75;
  padding: 0 0 2rem calc(3.5rem + clamp(1rem, 2.5vw, 2rem));
}

.service-preview {
  position: absolute;
  top: 0; left: 0;
  width: 270px;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  overflow: hidden;
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  transform: scale(0.75) rotate(-5deg);
  transition: opacity 0.35s var(--ease), transform 0.5s var(--ease);
  will-change: transform;
  display: none;
}
.service-preview.is-visible { opacity: 1; transform: scale(1) rotate(-4deg); }
.service-preview__art { width: 100%; height: 100%; transition: background 0.3s; }
.service-preview__art.preview--zero { background: linear-gradient(135deg, #2f4bff, #8fd3ff); }
.service-preview__art.preview--rebrand { background: linear-gradient(135deg, #16255c, #2f4bff); }
.service-preview__art.preview--web { background: linear-gradient(135deg, #101012, #4b4b58); }
.service-preview__art.preview--social { background: linear-gradient(135deg, #6d83ff, #cdd6ff); }
.service-preview__art.preview--content { background: linear-gradient(135deg, #0b163f, #6d83ff); }

/* ---------- Work ---------- */
/* Editorial grid: ten identical 4:3 tiles in two columns — five even
   rows, no featured tile, no orphan (carousel below 761px). */
.work__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(3rem, 6vw, 5rem) clamp(0.75rem, 1.4vw, 1.25rem);
}
.work-card { cursor: pointer; }
.work-card__art {
  display: block;
  width: 100%;
  padding: 0;
  position: relative;
  aspect-ratio: 4 / 3;
  border: none;
  border-radius: 0;
  overflow: hidden;
  background: var(--ink-soft);
}
.work-card__art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease), opacity 0.4s var(--ease);
}
.work-card:hover .work-card__art img,
.work-card__art:focus-visible img { transform: scale(1.025); }

.work-card__name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0;
  margin-top: 1.1rem;
}
.work-card__cap {
  color: var(--muted-c);
  font-size: 0.98rem;
  line-height: 1.55;
  max-width: 52ch;
  margin-top: 0.15rem;
}

/* ---------- Process ---------- */
.steps { list-style: none; }
.step {
  display: grid;
  grid-template-columns: clamp(4rem, 8vw, 7rem) 1fr;
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: start;
  padding: clamp(1.8rem, 3.5vw, 2.6rem) 0;
  border-top: 1px solid var(--line-c);
}
.steps .step:last-child { border-bottom: 1px solid var(--line-c); }
.step__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--accent-c);
  line-height: 1.1;
}
.step__body h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.step__body p { color: var(--muted-c); max-width: 54ch; line-height: 1.7; }

/* ---------- Testimonials ---------- */
/* Grid-stacked slides: container height = tallest quote, so rotation
   never shifts the layout below. */
.quotes { display: grid; max-width: 62rem; touch-action: pan-y; }
.quote {
  grid-column: 1;
  grid-row: 1;
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  pointer-events: none;
}
.quote.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.quote blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.6rem, 3.6vw, 2.7rem);
  line-height: 1.32;
  letter-spacing: -0.01em;
  max-width: 30ch;
}
.quote figcaption { margin-top: 1.75rem; color: var(--muted-c); font-size: 0.98rem; }
.quote figcaption strong { color: var(--fg); font-weight: 600; }
/* Each dot is a real 44px button (non-overlapping hit areas);
   the visible dot is drawn inside it. */
.quotes__dots { display: flex; margin-top: 1.9rem; margin-left: -17px; grid-column: 1; grid-row: 2; }
.quotes__dots button {
  position: relative;
  width: 44px; height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  border-radius: 999px;
}
.quotes__dots button::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 10px; height: 10px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  border: 1px solid var(--muted-c);
  transition: width 0.4s var(--ease), background-color 0.3s, border-color 0.3s;
}
.quotes__dots button.is-active::after {
  width: 30px;
  background: var(--accent-c);
  border-color: var(--accent-c);
}

/* ---------- CTA / Contact ---------- */
.cta { position: relative; overflow: hidden; }
.cta__bird {
  position: absolute;
  right: -6vw;
  bottom: -8vh;
  width: clamp(300px, 38vw, 600px);
  aspect-ratio: 186 / 190;
  color: var(--paper);
  opacity: 0.05;
  pointer-events: none;
}
.cta__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}
.cta__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 7.5vw, 6.5rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin-bottom: 1.75rem;
}
.cta__title .serif { color: var(--accent-soft); }
.cta__sub { color: var(--muted-c); max-width: 42ch; line-height: 1.7; margin-bottom: 2.25rem; }
.cta__mail {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  letter-spacing: -0.01em;
  text-decoration: none;
  border-bottom: 1px solid var(--line-c);
  padding-bottom: 0.3rem;
  transition: color 0.35s, border-color 0.35s;
}
.cta__mail:hover { color: var(--accent-soft); border-color: var(--accent-soft); }

.cta__form .field { margin-bottom: 1.9rem; }
.cta__form label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-c);
  margin-bottom: 0.5rem;
}
.cta__form input,
.cta__form textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(243, 240, 234, 0.35);
  padding: 0.75rem 0;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 1.05rem;
  transition: border-color 0.35s;
  border-radius: 0;
}
.cta__form input::placeholder,
.cta__form textarea::placeholder { color: rgba(243, 240, 234, 0.5); }
.cta__form input:focus,
.cta__form textarea:focus {
  outline: none;
  border-color: var(--accent-soft);
}
.cta__form textarea { resize: vertical; min-height: 96px; }
.form-note { margin-top: 1.1rem; color: var(--accent-soft); font-size: 0.95rem; min-height: 1.4em; }

/* ---------- Footer ---------- */
.footer { padding-top: clamp(3rem, 6vw, 5rem); }
.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}
.footer__bird { width: 52px; height: 52px; color: var(--paper); }
.footer__col--brand p { color: var(--muted-c); margin-top: 1.25rem; line-height: 1.6; }
.footer__col h3 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-c);
  margin-bottom: 1.1rem;
}
.footer__col a {
  display: block;
  text-decoration: none;
  font-size: 0.98rem;
  padding: 0.28rem 0;
  color: var(--paper);
  width: fit-content;
  transition: color 0.3s, transform 0.35s var(--ease);
}
.footer__col a:hover { color: var(--accent-soft); transform: translateX(4px); }
.footer__time { color: var(--muted-c); font-size: 0.9rem; margin-top: 1rem; }

.footer__wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 10vw, 9.6rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(243, 240, 234, 0.28);
  -webkit-user-select: none;
  user-select: none;
  margin-block: clamp(1rem, 4vw, 3rem);
  transition: color 0.8s var(--ease);
}
.footer__wordmark:hover { color: rgba(243, 240, 234, 0.12); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  border-top: 1px solid var(--line-c);
  padding: 1.4rem 0 1.8rem;
  font-size: 0.88rem;
  color: var(--muted-c);
}
.footer__bottom a { color: var(--paper); text-decoration: none; }
.footer__bottom a:hover { color: var(--accent-soft); }

/* ---------- Work modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 940;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.75rem, 3vw, 2.5rem);
  visibility: hidden;
  transition: visibility 0s linear 0.55s;
}
.modal.is-open { visibility: visible; transition: none; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 12, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.modal.is-open .modal__backdrop { opacity: 1; }
.modal__panel {
  position: relative;
  width: min(94vw, 880px);
  max-height: 90svh;
  overflow-y: auto;
  border-radius: 24px;
  background: var(--ink-soft);
  color: var(--paper);
  display: block;
  opacity: 0;
  transform: translateY(2.5rem) scale(0.97);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.modal.is-open .modal__panel { opacity: 1; transform: none; }
.modal__close {
  position: absolute;
  top: 1rem; right: 1rem;
  z-index: 3;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(243, 240, 234, 0.25);
  background: rgba(10, 10, 12, 0.35);
  color: var(--paper);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s var(--ease), background-color 0.3s;
}
.modal__close:hover { transform: rotate(90deg); background: rgba(10, 10, 12, 0.6); }
/* Full-width banner: the image is contained, never cropped */
.modal__art {
  height: min(48svh, 430px);
  min-height: 240px;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--ink);
}
.modal__art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.modal__body { padding: clamp(1.75rem, 4vw, 3rem); }
.modal__meta {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(243, 240, 234, 0.55);
}
.modal__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.02em;
  margin: 0.6rem 0 1.1rem;
}
.modal__text { color: rgba(243, 240, 234, 0.65); line-height: 1.75; }
.modal__results { list-style: none; margin: 1.75rem 0 2.25rem; }
.modal__results li {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.8rem 0;
  border-top: 1px solid rgba(243, 240, 234, 0.14);
  font-size: 0.98rem;
}
.modal__results li::before { content: "✦"; color: var(--accent-soft); font-size: 0.8rem; }
.modal__actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.modal__visit {
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--paper);
  border-bottom: 1px solid rgba(243, 240, 234, 0.35);
  padding-bottom: 0.2rem;
  transition: color 0.3s, border-color 0.3s;
}
.modal__visit:hover { color: var(--accent-soft); border-color: var(--accent-soft); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .work__grid { gap: 2.5rem 2rem; }
}

@media (min-width: 901px) {
  .service-preview { display: block; }
}

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .about__grid { grid-template-columns: 1fr; }
  .about__lead { max-width: 34ch; }
  .stats { grid-template-columns: 1fr 1fr; }
  .cta__grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .modal__panel { max-height: 88svh; }
  .modal__art { height: min(38svh, 320px); }
}

@media (max-width: 760px) {
  /* Work tiles become a swipeable, snap-scrolling carousel */
  .work__grid {
    display: flex;
    gap: 0.9rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    margin-inline: -4vw;
    padding-inline: 4vw;
    scrollbar-width: none;
  }
  .work__grid::-webkit-scrollbar { display: none; }
  .work-card {
    flex: 0 0 84%;
    scroll-snap-align: center;
  }
  .work-card__art img { object-fit: cover; }
  .hero__foot .hero__meta { display: none; }
}

@media (max-width: 600px) {
  .service__head { grid-template-columns: 1fr 44px; }
  .service__index { display: none; }
  .service__tags { display: none; }
  .service__panel p { padding-left: 0; }
  .step { grid-template-columns: 3rem 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 2.25rem; }
  .hero__title { font-size: clamp(2.6rem, 12.5vw, 4rem); }
}

/* ---------- Static render mode (?static=1) ---------- */
body.is-static [data-reveal],
body.is-static .wm .w {
  transition: none !important;
  opacity: 1 !important;
  transform: none !important;
}
body.is-static .noise,
body.is-static .hero__scroll-line,
body.is-static .pulse-dot { animation: none !important; }
/* Pin viewport-unit sizes so tall full-page captures keep natural layout */
body.is-static .hero { min-height: 56rem; }
body.is-static .hero__bird { top: 5rem; }
body.is-static .cta__bird { bottom: -4rem; }

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal],
  .wm .w { opacity: 1 !important; transform: none !important; }
  .noise { animation: none; }
  html { scroll-behavior: auto; }
}
