/* ============================================================
   Nexifi — Paper, daylight, ink
   Editorial / studio bookkeeping site
   ============================================================ */

:root {
  --paper: #f6f1e7;
  --paper-deep: #ebe4d6;
  --paper-lift: #fffdf8;
  --ink: #1c1915;
  --ink-soft: #3d3830;
  --ink-mute: #6b645a;
  --rule: #d4cbb8;
  --accent: #b85a3a;
  --accent-deep: #8f4228;
  --sky: #5a7a92;
  --sky-soft: #dce8f0;
  --sage: #6e7f62;
  --sage-soft: #e4eadc;
  --shadow: 0 12px 40px rgba(28, 25, 21, 0.08);
  --shadow-tight: 0 4px 16px rgba(28, 25, 21, 0.06);
  --radius: 14px;
  --radius-sm: 8px;
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Newsreader", Georgia, "Times New Roman", serif;
  --font-ui: "Outfit", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 72px;
  --max: 1120px;
  --narrow: 720px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .page-transition {
    opacity: 1 !important;
    transform: none !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(220, 232, 240, 0.55), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(228, 234, 220, 0.4), transparent 50%);
  background-attachment: fixed;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--accent);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(2.4rem, 5.5vw, 3.75rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.45rem);
}

p {
  margin: 0 0 1.15em;
}

p:last-child {
  margin-bottom: 0;
}

.lead {
  font-size: clamp(1.2rem, 2.2vw, 1.4rem);
  line-height: 1.55;
  color: var(--ink-soft);
}

.muted {
  color: var(--ink-mute);
}

.eyebrow {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 0.85rem;
}

/* ---------- Layout ---------- */
.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.wrap-narrow {
  width: min(100% - 2.5rem, var(--narrow));
  margin-inline: auto;
}

.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section-tight {
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid color-mix(in srgb, var(--rule) 70%, transparent);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.brand-tag {
  display: none;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-left: 0.15rem;
}

@media (min-width: 900px) {
  .brand-tag {
    display: inline;
  }
}

.nav {
  display: none;
  align-items: center;
  gap: 0.15rem;
}

@media (min-width: 820px) {
  .nav {
    display: flex;
  }
}

.nav a {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-soft);
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.nav a:hover {
  background: var(--paper-deep);
  color: var(--ink);
}

.nav a[aria-current="page"] {
  background: var(--ink);
  color: var(--paper);
}

.nav a[aria-current="page"]:hover {
  background: var(--ink);
  color: var(--paper);
}

.nav-cta {
  margin-left: 0.35rem !important;
  background: var(--accent) !important;
  color: #fff !important;
}

.nav-cta:hover {
  background: var(--accent-deep) !important;
  color: #fff !important;
}

.nav-cta[aria-current="page"] {
  background: var(--accent-deep) !important;
}

.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  background: var(--paper-lift);
  cursor: pointer;
  color: var(--ink);
}

@media (min-width: 820px) {
  .menu-btn {
    display: none;
  }
}

.menu-btn svg {
  width: 20px;
  height: 20px;
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--paper);
  padding: 1.5rem;
  z-index: 99;
  flex-direction: column;
  gap: 0.35rem;
  border-top: 1px solid var(--rule);
}

.mobile-nav.is-open {
  display: flex;
}

.mobile-nav a {
  font-family: var(--font-ui);
  font-size: 1.15rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
}

.mobile-nav a[aria-current="page"] {
  background: var(--paper-deep);
}

.mobile-nav a.nav-cta {
  margin-top: 0.75rem;
  background: var(--accent);
  color: #fff;
  text-align: center;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--rule);
  background: var(--paper-deep);
  padding: 3rem 0 2rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-nav a {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--ink-soft);
}

.footer-nav a:hover {
  color: var(--accent);
}

.footer-label {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 0.75rem;
}

.legal-box {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--ink-mute);
  background: color-mix(in srgb, var(--paper) 70%, transparent);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
}

.legal-box strong {
  color: var(--ink-soft);
  font-weight: 600;
}

.legal-box ul {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
}

.legal-box li {
  margin-bottom: 0.25rem;
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--ink-mute);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}

.btn-primary:hover {
  background: var(--accent);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}

.btn-ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
  background: var(--paper-lift);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
}

.btn-accent:hover {
  background: var(--accent-deep);
  color: #fff;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* ---------- Cards / surfaces ---------- */
.card {
  background: var(--paper-lift);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow-tight);
}

.card-hover {
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--sky) 35%, var(--rule));
}

.paper-panel {
  background: var(--paper-lift);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow-tight);
  overflow: hidden;
}

/* ---------- Page transition ---------- */
.page-transition {
  opacity: 0;
  transform: translateY(12px);
  animation: pageIn 0.65s var(--ease) forwards;
}

@keyframes pageIn {
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   HOME
   ============================================================ */
.home-hero {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem);
}

@media (min-width: 900px) {
  .home-hero {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
  }
}

.hero-canvas-wrap {
  position: relative;
  aspect-ratio: 1 / 1.05;
  max-height: 520px;
  border-radius: calc(var(--radius) + 4px);
  background:
    linear-gradient(160deg, var(--paper-lift), var(--paper-deep)),
    var(--paper-deep);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-canvas-wrap canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.hero-canvas-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  pointer-events: none;
}

.hero-canvas-fallback svg {
  width: min(78%, 320px);
  height: auto;
  opacity: 0.95;
}

.hero-note {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  right: 1rem;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--ink-mute);
  background: color-mix(in srgb, var(--paper-lift) 90%, transparent);
  backdrop-filter: blur(8px);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
}

.doorways {
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .doorways {
    grid-template-columns: repeat(2, 1fr);
  }
}

.doorway {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 1.4rem 1.5rem;
  background: var(--paper-lift);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}

.doorway::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.35s var(--ease);
}

.doorway:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--rule));
  box-shadow: var(--shadow);
  color: inherit;
}

.doorway:hover::before {
  transform: scaleY(1);
}

.doorway-kicker {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 0.4rem;
}

.doorway h3 {
  margin-bottom: 0.4rem;
}

.doorway p {
  font-size: 1rem;
  color: var(--ink-mute);
  margin: 0;
}

.doorway-arrow {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.home-legal-note {
  margin-top: 3rem;
}

/* ============================================================
   STORY
   ============================================================ */
.story-hero {
  padding: clamp(3rem, 7vw, 5rem) 0 2rem;
}

.story-body {
  max-width: 40rem;
}

.story-body p {
  font-size: 1.2rem;
  line-height: 1.7;
}

.story-pull {
  margin: 2.5rem 0;
  padding: 1.5rem 0 1.5rem 1.5rem;
  border-left: 3px solid var(--accent);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.story-aside {
  margin: 3rem 0;
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .story-aside {
    grid-template-columns: 1fr 1fr;
  }
}

.meaning-card {
  padding: 1.5rem;
  background: var(--paper-lift);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.meaning-card .icon-slot {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  color: var(--sky);
}

.story-end {
  margin-top: 3rem;
  padding: 2rem;
  background: linear-gradient(135deg, var(--sky-soft), var(--sage-soft));
  border-radius: var(--radius);
  border: 1px solid var(--rule);
}

/* ============================================================
   SERVICES
   ============================================================ */
.services-hero {
  padding: clamp(3rem, 7vw, 4.5rem) 0 1rem;
}

.service-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 2rem 0 1rem;
}

.service-toc a {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-soft);
  background: var(--paper-lift);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
}

.service-toc a:hover {
  border-color: var(--sky);
  color: var(--sky);
}

.service-block {
  display: grid;
  gap: 1.75rem;
  align-items: center;
  padding: 2.75rem 0;
  border-top: 1px solid var(--rule);
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

@media (min-width: 800px) {
  .service-block {
    grid-template-columns: 140px 1fr;
    gap: 2.5rem;
  }

  .service-block:nth-child(even) {
    grid-template-columns: 1fr 140px;
  }

  .service-block:nth-child(even) .service-visual {
    order: 2;
  }

  .service-block:nth-child(even) .service-copy {
    order: 1;
  }
}

.service-visual {
  width: 120px;
  height: 120px;
  margin: 0 auto;
  color: var(--ink);
}

.service-visual svg {
  width: 100%;
  height: 100%;
}

.service-copy h3 {
  margin-bottom: 0.5rem;
}

.service-copy p {
  color: var(--ink-soft);
  max-width: 36rem;
}

.service-meta {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--ink-mute);
  margin-top: 0.85rem;
}

/* ============================================================
   CADENCE
   ============================================================ */
.cadence-hero {
  padding: clamp(3rem, 7vw, 4.5rem) 0 1rem;
}

.rhythm {
  display: grid;
  gap: 0;
  margin-top: 2.5rem;
  position: relative;
}

.rhythm::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 28px;
  bottom: 28px;
  width: 2px;
  background: linear-gradient(var(--accent), var(--sky), var(--sage));
  opacity: 0.45;
}

@media (min-width: 800px) {
  .rhythm::before {
    left: 50%;
    margin-left: -1px;
  }
}

.rhythm-step {
  display: grid;
  gap: 1rem;
  padding: 1.5rem 0 1.5rem 4rem;
  position: relative;
}

@media (min-width: 800px) {
  .rhythm-step {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 1.75rem 0;
  }

  .rhythm-step:nth-child(odd) .step-card {
    grid-column: 1;
    margin-right: 2rem;
  }

  .rhythm-step:nth-child(even) .step-card {
    grid-column: 2;
    margin-left: 2rem;
  }

  .rhythm-step:nth-child(odd) .step-spacer {
    grid-column: 2;
  }

  .rhythm-step:nth-child(even) .step-spacer {
    grid-column: 1;
    grid-row: 1;
  }
}

.step-dot {
  position: absolute;
  left: 14px;
  top: 2rem;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--accent);
  z-index: 1;
}

@media (min-width: 800px) {
  .step-dot {
    left: 50%;
    margin-left: -10px;
    top: 2.25rem;
  }

  .rhythm-step:nth-child(2) .step-dot {
    border-color: var(--sky);
  }

  .rhythm-step:nth-child(3) .step-dot {
    border-color: color-mix(in srgb, var(--sky) 50%, var(--sage));
  }

  .rhythm-step:nth-child(4) .step-dot {
    border-color: var(--sage);
  }
}

.step-card {
  background: var(--paper-lift);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow-tight);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.step-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.step-num {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.exchange-grid {
  display: grid;
  gap: 1rem;
  margin-top: 3rem;
}

@media (min-width: 700px) {
  .exchange-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.exchange-card {
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--rule);
}

.exchange-card.send {
  background: var(--sky-soft);
}

.exchange-card.receive {
  background: var(--sage-soft);
}

.exchange-card h3 {
  margin-bottom: 0.85rem;
}

.exchange-card ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--ink-soft);
}

.exchange-card li {
  margin-bottom: 0.45rem;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-hero {
  padding: clamp(3rem, 7vw, 4.5rem) 0 1rem;
}

.contact-layout {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

@media (min-width: 850px) {
  .contact-layout {
    grid-template-columns: 1fr 0.9fr;
    align-items: start;
  }
}

.contact-form {
  display: grid;
  gap: 1.1rem;
}

.field label {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin-bottom: 0.4rem;
}

.field input,
.field textarea {
  width: 100%;
  font-family: var(--font-ui);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper-lift);
  border: 1.5px solid var(--rule);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--sky);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--sky) 22%, transparent);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
  font-family: var(--font-body);
  line-height: 1.5;
}

.form-note {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--ink-mute);
}

.thank-you {
  display: none;
  padding: 2rem;
  text-align: center;
  background: var(--sage-soft);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.thank-you.is-visible {
  display: block;
  animation: pageIn 0.5s var(--ease);
}

.thank-you h3 {
  margin-bottom: 0.5rem;
}

/* form hide handled by formOut animation + JS */
.form-shell.is-sent .contact-form {
  pointer-events: none;
}

.form-shell.is-sent .thank-you {
  display: block;
}

.contact-aside .legal-box {
  background: var(--paper-lift);
}

/* ---------- Misc ---------- */
.divider-ornament {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--rule);
  margin: 2rem 0;
}

.divider-ornament::before,
.divider-ornament::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1rem;
  z-index: 200;
  font-family: var(--font-ui);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

main {
  min-height: calc(100vh - var(--header-h) - 220px);
}

.site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ============================================================
   MOTION SYSTEM — visible craft (light paper Nexifi)
   ============================================================ */

/* Paper wipe between pages */
.paper-wipe {
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
  display: flex;
  flex-direction: column;
}
.paper-wipe__sheet {
  flex: 1;
  background: linear-gradient(180deg, #f6f1e7 0%, #ebe4d6 55%, #e4dcc8 100%);
  transform: translateY(101%);
  transition: transform 0.34s cubic-bezier(0.65, 0, 0.35, 1);
  box-shadow: 0 -8px 40px rgba(28, 25, 21, 0.12);
  position: relative;
}
.paper-wipe__sheet::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 18%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.45;
}
.paper-wipe.is-covering {
  pointer-events: all;
}
.paper-wipe.is-covering .paper-wipe__sheet {
  transform: translateY(0);
}
.paper-wipe.is-revealing .paper-wipe__sheet {
  transform: translateY(-101%);
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Initial state before enter */
body:not(.is-ready) .site-header {
  opacity: 0;
  transform: translateY(-12px);
}
body:not(.is-ready) .enter-item {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(4px);
}

body.is-ready .site-header {
  opacity: 1;
  transform: none;
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

/* CSS enter fallback (no GSAP) */
body.css-motion .enter-item {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(4px);
}
body.css-motion.is-entered .enter-item {
  animation: enterUp 0.75s var(--ease) forwards;
}
body.css-motion.is-entered .enter-item:nth-child(1) { animation-delay: 0.05s; }
body.css-motion.is-entered .enter-item:nth-child(2) { animation-delay: 0.14s; }
body.css-motion.is-entered .enter-item:nth-child(3) { animation-delay: 0.24s; }
body.css-motion.is-entered .enter-item:nth-child(4) { animation-delay: 0.34s; }
body.css-motion.is-entered .enter-item:nth-child(5) { animation-delay: 0.44s; }
body.css-motion.is-entered .enter-d1 { animation-delay: 0.08s; }
body.css-motion.is-entered .enter-d2 { animation-delay: 0.18s; }
body.css-motion.is-entered .enter-d3 { animation-delay: 0.28s; }
body.css-motion.is-entered .enter-d4 { animation-delay: 0.38s; }
body.css-motion.is-entered .enter-d5 { animation-delay: 0.48s; }
body.css-motion.is-entered .enter-d6 { animation-delay: 0.58s; }

@keyframes enterUp {
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* Kill old generic page fade — motion handled by enter system */
.page-transition {
  opacity: 1;
  transform: none;
  animation: none;
}

/* ---------- Stronger scroll reveals ---------- */
.reveal {
  opacity: 0;
  transform: translateY(36px) scale(0.98);
  filter: blur(2px);
  transition:
    opacity 0.75s var(--ease),
    transform 0.75s var(--ease),
    filter 0.75s var(--ease),
    clip-path 0.85s var(--ease);
  clip-path: inset(12% 0 0 0);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
  filter: none;
  clip-path: inset(0 0 0 0);
}
.reveal-left {
  transform: translateX(-40px) translateY(12px);
  clip-path: inset(0 18% 0 0);
}
.reveal-left.is-in {
  transform: none;
  clip-path: inset(0 0 0 0);
}
.reveal-right {
  transform: translateX(40px) translateY(12px);
  clip-path: inset(0 0 0 18%);
}
.reveal-right.is-in {
  transform: none;
  clip-path: inset(0 0 0 0);
}
.reveal-scale {
  transform: scale(0.92);
  clip-path: inset(8% 8% 8% 8%);
}
.reveal-scale.is-in {
  transform: none;
  clip-path: inset(0 0 0 0);
}

/* Stagger delays via custom property */
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.reveal[data-delay="5"] { transition-delay: 0.4s; }

/* ---------- Nav underline draw ---------- */
.nav a:not(.nav-cta) {
  position: relative;
}
.nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.2rem;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
  border-radius: 1px;
}
.nav a:not(.nav-cta):hover::after,
.nav a:not(.nav-cta):focus-visible::after {
  transform: scaleX(1);
}
.nav a[aria-current="page"]:not(.nav-cta)::after {
  display: none;
}

/* ---------- Button shine / press ---------- */
.btn {
  position: relative;
  overflow: hidden;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: skewX(-18deg);
  transition: left 0.55s var(--ease);
  pointer-events: none;
}
.btn:hover::after {
  left: 120%;
}
.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(28, 25, 21, 0.12);
}
.btn:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: none;
}

/* ---------- Doorway / card hover ink-line ---------- */
.doorway {
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.doorway::after {
  content: "";
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  bottom: 1.15rem;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
  opacity: 0.2;
}
.doorway:hover::after {
  transform: scaleX(1);
}
.doorway-arrow {
  transition: transform 0.35s var(--ease), gap 0.35s var(--ease);
}
.doorway:hover .doorway-arrow {
  transform: translateX(6px);
}

.meaning-card {
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.meaning-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--sky) 40%, var(--rule));
}

/* ---------- Home hero canvas — larger moment ---------- */
.hero-canvas-wrap {
  aspect-ratio: 1 / 1.02;
  max-height: 580px;
  min-height: 320px;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.hero-canvas-wrap:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 20px 50px rgba(28, 25, 21, 0.12);
}
@media (min-width: 900px) {
  .home-hero {
    grid-template-columns: 0.95fr 1.05fr;
  }
  .hero-canvas-wrap {
    min-height: 420px;
  }
}

/* Floating paper dust accents on home */
.hero-float {
  position: absolute;
  width: 10px;
  height: 14px;
  background: var(--paper-lift);
  border: 1px solid var(--rule);
  border-radius: 2px;
  opacity: 0.7;
  animation: floatPaper 5.5s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}
.hero-float.f2 { width: 8px; height: 11px; animation-duration: 7s; animation-delay: -2s; }
.hero-float.f3 { width: 12px; height: 9px; animation-duration: 6.2s; animation-delay: -3.5s; }
@keyframes floatPaper {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(8px, -18px) rotate(8deg); }
}

/* ---------- Story: line reveal + ink stroke ---------- */
.story-line {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(2px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease), filter 0.65s var(--ease);
}
.story-line.is-in {
  opacity: 1;
  transform: none;
  filter: none;
}

.ink-stroke-wrap {
  margin: 2rem 0 0.5rem;
  overflow: visible;
}
.ink-stroke {
  width: min(100%, 280px);
  height: 28px;
  display: block;
}
.ink-stroke path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-dasharray: 320;
  stroke-dashoffset: 320;
  transition: stroke-dashoffset 1.1s var(--ease);
}
.ink-stroke-wrap.is-in .ink-stroke path {
  stroke-dashoffset: 0;
}

.story-pull {
  position: relative;
  overflow: hidden;
}
.story-pull::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.8s var(--ease);
}
.story-pull.is-in::after,
.story-pull.reveal.is-in::after {
  transform: scaleY(1);
}

.page-edge {
  position: relative;
}
.page-edge::before {
  content: "";
  position: absolute;
  right: -1.25rem;
  top: -0.5rem;
  bottom: -0.5rem;
  width: 18px;
  background: linear-gradient(90deg, transparent, rgba(184, 90, 58, 0.08));
  border-radius: 0 8px 8px 0;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  pointer-events: none;
}
.page-edge.is-in::before {
  opacity: 1;
  transform: none;
}

/* ---------- Services: cascade + icon motion ---------- */
.service-block {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.service-block.is-in {
  opacity: 1;
  transform: none;
}
.service-block:nth-child(even).is-in .service-visual {
  animation: iconBob 3.2s ease-in-out infinite;
}
.service-block:nth-child(odd).is-in .service-visual {
  animation: iconSway 3.6s ease-in-out infinite;
}

.service-visual {
  transition: transform 0.45s var(--ease);
}
.service-block:hover .service-visual {
  transform: scale(1.08) rotate(-2deg);
  animation-play-state: paused;
}
.service-visual svg {
  transition: filter 0.35s var(--ease);
}
.service-block:hover .service-visual svg {
  filter: drop-shadow(0 8px 12px rgba(28, 25, 21, 0.12));
}

@keyframes iconBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
@keyframes iconSway {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(3deg) translateY(-4px); }
}

.service-toc a {
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease), background 0.25s var(--ease);
}
.service-toc a:hover {
  transform: translateY(-2px);
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* ---------- Cadence: drawing spine + sequential pop ---------- */
.rhythm::before {
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 1.2s var(--ease);
}
.rhythm.is-drawing::before {
  transform: scaleY(1);
}

.rhythm-step {
  opacity: 0;
  transform: translateY(28px) scale(0.96);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.rhythm-step.is-in {
  opacity: 1;
  transform: none;
}
.step-dot {
  transform: scale(0);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s;
}
.rhythm-step.is-in .step-dot {
  transform: scale(1);
  animation: dotPulse 2.4s ease-in-out infinite 0.4s;
}
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(184, 90, 58, 0.35); }
  50% { box-shadow: 0 0 0 8px rgba(184, 90, 58, 0); }
}

.exchange-card {
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.exchange-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

/* ---------- Contact form motion ---------- */
.field {
  position: relative;
}
.field label {
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}
.field:focus-within label {
  color: var(--sky);
  transform: translateY(-1px);
}
.field input,
.field textarea {
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease), background 0.25s var(--ease);
}
.field input:focus,
.field textarea:focus {
  transform: translateY(-2px);
  background: #fff;
}
.field::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: var(--sky);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
  border-radius: 1px;
  pointer-events: none;
}
.field:focus-within::after {
  transform: scaleX(1);
}

.thank-you {
  opacity: 0;
  transform: translateY(16px) scale(0.96);
}
.form-shell.is-sent .thank-you {
  display: block !important;
  animation: thanksIn 0.55s var(--ease) forwards;
}
@keyframes thanksIn {
  0% { opacity: 0; transform: translateY(20px) scale(0.94); }
  60% { opacity: 1; transform: translateY(-4px) scale(1.02); }
  100% { opacity: 1; transform: none; }
}
.thank-you .check-burst {
  width: 52px;
  height: 52px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--sage);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: burstPop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}
@keyframes burstPop {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.form-shell.is-sent .contact-form {
  animation: formOut 0.35s var(--ease) forwards;
}
@keyframes formOut {
  to { opacity: 0; transform: translateY(-12px); height: 0; overflow: hidden; margin: 0; padding: 0; }
}

/* Brand mark subtle idle */
.brand-mark {
  transition: transform 0.4s var(--ease);
}
.brand:hover .brand-mark {
  transform: rotate(-6deg) scale(1.06);
}

/* Header slide on enter handled in JS; keep sticky polish */
.site-header {
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled {
  box-shadow: 0 8px 24px rgba(28, 25, 21, 0.06);
}

/* ============================================================
   prefers-reduced-motion — everything instant/static
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .paper-wipe,
  .paper-wipe__sheet {
    transition: none !important;
    display: none !important;
  }
  body:not(.is-ready) .site-header,
  body:not(.is-ready) .enter-item,
  .enter-item,
  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale,
  .story-line,
  .service-block,
  .rhythm-step,
  .thank-you {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    clip-path: none !important;
    animation: none !important;
    transition: none !important;
  }
  .rhythm::before {
    transform: none !important;
  }
  .ink-stroke path {
    stroke-dashoffset: 0 !important;
    transition: none !important;
  }
  .step-dot {
    transform: none !important;
    animation: none !important;
  }
  .service-visual,
  .hero-float,
  .btn::after,
  .hero-canvas-wrap:hover {
    animation: none !important;
    transform: none !important;
  }
  .form-shell.is-sent .thank-you {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .form-shell.is-sent .contact-form {
    display: none;
    animation: none !important;
  }
}

/* ============================================================
   ART SYSTEM — magazine still-life plates
   ============================================================ */

.art-plate {
  position: relative;
  margin: 0;
}
.art-plate__frame {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid var(--rule);
  background: var(--paper-deep);
  box-shadow: var(--shadow);
  isolation: isolate;
}
.art-plate__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 253, 248, 0.35);
  border-radius: inherit;
  z-index: 2;
}
.art-plate__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.06);
  transition: transform 1.1s var(--ease);
  will-change: transform;
}
.art-plate.is-in .art-plate__img,
.art-plate.enter-item.is-shown .art-plate__img {
  transform: scale(1);
}
.art-plate__frame:hover .art-plate__img {
  transform: scale(1.08);
}
.art-plate__caption {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
  margin-top: 0.65rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.art-plate__caption em {
  font-style: normal;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.68rem;
}

/* Clip / mask reveal */
.art-reveal {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 0.95s cubic-bezier(0.65, 0, 0.35, 1);
}
.art-reveal.is-in,
body.is-entered .art-reveal.enter-item {
  clip-path: inset(0 0 0 0);
}
.art-reveal--left {
  clip-path: inset(0 100% 0 0);
}
.art-reveal--left.is-in {
  clip-path: inset(0 0 0 0);
}

/* Ken Burns idle (when in view) */
.ken-burns.is-alive .art-plate__img {
  animation: kenBurns 18s ease-in-out infinite alternate;
}
@keyframes kenBurns {
  from { transform: scale(1) translate(0, 0); }
  to { transform: scale(1.1) translate(-1.5%, -1%); }
}

/* Parallax applied to frame via JS transform */
.art-plate__frame {
  transition: transform 0.15s linear;
}

/* Full-bleed hero plate */
.art-plate--bleed {
  width: 100%;
  max-width: none;
  margin: 0;
  border-radius: 0;
}
.art-plate--bleed .art-plate__frame {
  border-radius: 0;
  border-left: none;
  border-right: none;
  min-height: clamp(280px, 58vw, 560px);
  max-height: 640px;
}
.art-plate--bleed .art-plate__caption {
  width: min(100% - 2.5rem, var(--max));
  margin: 0.75rem auto 0;
}

/* Framed large plate inside wrap */
.art-plate--hero .art-plate__frame {
  aspect-ratio: 16 / 10;
  min-height: 260px;
  max-height: 520px;
}
.art-plate--chapter .art-plate__frame {
  aspect-ratio: 4 / 3;
  min-height: 220px;
}
.art-plate--square .art-plate__frame {
  aspect-ratio: 1 / 1;
  max-height: 480px;
}
.art-plate--tall .art-plate__frame {
  aspect-ratio: 3 / 4;
  max-height: 560px;
}

/* Floating 3D ledger over photo */
.ledger-float {
  position: absolute;
  right: clamp(0.75rem, 4vw, 2.5rem);
  bottom: clamp(0.75rem, 4vw, 2rem);
  width: min(42%, 280px);
  aspect-ratio: 1 / 1.05;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 253, 248, 0.65);
  background: color-mix(in srgb, var(--paper-lift) 72%, transparent);
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  box-shadow: 0 16px 40px rgba(28, 25, 21, 0.18);
  overflow: hidden;
  z-index: 5;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.ledger-float:hover {
  transform: translateY(-6px) rotate(-1deg);
  box-shadow: 0 22px 50px rgba(28, 25, 21, 0.22);
}
.ledger-float canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}
.ledger-float .hero-canvas-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.ledger-float .hero-canvas-fallback svg {
  width: 78%;
  height: auto;
}
.ledger-float .hero-note {
  display: none;
}
@media (max-width: 640px) {
  .ledger-float {
    width: min(48%, 160px);
    right: 0.65rem;
    bottom: 0.65rem;
  }
}

/* Wash atmosphere band */
.wash-band {
  position: relative;
  padding: clamp(3rem, 7vw, 5rem) 0;
  overflow: hidden;
}
.wash-band__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.28;
  transform: scale(1.05);
  pointer-events: none;
  filter: saturate(0.9);
}
.wash-band__inner {
  position: relative;
  z-index: 1;
}

/* Editorial split */
.editorial {
  display: grid;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 900px) {
  .editorial {
    grid-template-columns: 1fr 1.05fr;
    gap: 3rem;
  }
  .editorial--flip {
    grid-template-columns: 1.05fr 1fr;
  }
  .editorial--flip .editorial__art {
    order: 2;
  }
  .editorial__art.sticky-art {
    position: sticky;
    top: calc(var(--header-h) + 1.25rem);
  }
}

/* Home: intro under plate */
.home-intro {
  padding: clamp(2.25rem, 5vw, 3.5rem) 0 1rem;
}
.home-intro .lead {
  max-width: 36rem;
}

/* Story magazine header */
.story-mast {
  padding: clamp(2.5rem, 6vw, 4rem) 0 1rem;
}
.story-mast h1 {
  max-width: 16ch;
}
.chapter-label {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

/* Services hero with plate */
.services-mast {
  display: grid;
  gap: 2rem;
  padding: clamp(2.5rem, 6vw, 4rem) 0 1.5rem;
  align-items: end;
}
@media (min-width: 900px) {
  .services-mast {
    grid-template-columns: 1fr 1.1fr;
    gap: 2.5rem;
  }
}
.service-block {
  background: var(--paper-lift);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  margin: 1rem 0;
  box-shadow: var(--shadow-tight);
  display: grid;
  gap: 1.25rem;
  align-items: center;
}
@media (min-width: 800px) {
  .service-block {
    grid-template-columns: 120px 1fr;
    gap: 1.75rem;
    padding: 1.75rem 1.75rem;
  }
  .service-block:nth-child(even) {
    grid-template-columns: 1fr 120px;
  }
  .service-block:nth-child(even) .service-visual { order: 2; }
  .service-block:nth-child(even) .service-copy { order: 1; }
}
/* Override older service-block border-top stacking */
.wrap > .service-block {
  border-top: 1px solid var(--rule);
}

/* Cadence art beat */
.cadence-beat {
  margin: 2.5rem 0 1rem;
}
@media (min-width: 800px) {
  .cadence-beat {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    align-items: center;
  }
}
.cadence-beat__quote {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin: 0;
}

/* Contact art + form */
.contact-layout {
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .contact-layout {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 2rem;
  }
}
.contact-art .art-plate__frame {
  aspect-ratio: 4 / 5;
  max-height: 520px;
}

/* Doorway mini thumbs optional */
.doorway-thumb {
  width: 100%;
  height: 88px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 0.9rem;
  border: 1px solid var(--rule);
}
.doorway-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.doorway:hover .doorway-thumb img {
  transform: scale(1.08);
}

@media (prefers-reduced-motion: reduce) {
  .ken-burns.is-alive .art-plate__img,
  .art-plate__img,
  .art-reveal,
  .art-reveal--left,
  .ledger-float {
    animation: none !important;
    transition: none !important;
    clip-path: none !important;
    transform: none !important;
  }
  .art-parallax .art-plate__img {
    transform: none !important;
  }
}


/* Contact form column */
.contact-form-col {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Soften older home-hero grid when unused */
.home-intro h1 {
  margin-bottom: 0.5em;
}

/* Service framed cards — ensure older border-top rules don't fight */
.wrap > .service-block {
  border-top-color: transparent;
}

/* Art plate enter: start clipped until is-in */
body:not(.is-entered) .art-reveal.enter-item {
  clip-path: inset(100% 0 0 0);
}

/* ============================================================
   Call page + legal pages (Nexifi)
   ============================================================ */
.call-number {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.15;
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}
.call-number:hover {
  color: var(--accent);
  transform: scale(1.02);
}
.call-panel {
  background: linear-gradient(160deg, var(--paper-lift), var(--sky-soft));
}

.legal-hero {
  padding: clamp(2.5rem, 6vw, 4rem) 0 0.5rem;
}
.legal-prose {
  font-size: 1.05rem;
  line-height: 1.7;
  padding-top: 1.5rem;
}
.legal-prose h2 {
  font-size: clamp(1.2rem, 2vw, 1.4rem);
  margin-top: 2rem;
  margin-bottom: 0.55rem;
}
.legal-prose p {
  color: var(--ink-soft);
}
.legal-contact {
  margin-top: 2.5rem;
  padding: 1.25rem 1.35rem;
  background: var(--paper-lift);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.legal-contact a {
  font-weight: 600;
}

/* ---------- Footer: accepted payment cards ---------- */
.pay-marks {
  margin-top: 1.25rem;
}
.pay-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 0.6rem;
}
.pay-label svg {
  display: none;
}
.pay-cards {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 4px;
}

/* ---------- Footer email ---------- */
.footer-email {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent-deep);
  text-decoration: none;
  word-break: break-all;
}
.footer-email:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Footer now has two columns (legal box removed) */
@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr;
  }
}
