/* ==========================================================================
   Fort Collins Tailor: design system
   Editorial atelier: ivory paper, ink, tailor's green (from the storefront sign)
   ========================================================================== */

:root {
  --paper: #f4f0e8;
  --paper-2: #ebe5d9;
  --paper-3: #e1d9ca;
  --ink: #141413;
  --ink-2: #2f2e2b;
  --muted: #6d685f;
  --line: rgba(20, 20, 19, 0.14);
  --line-strong: rgba(20, 20, 19, 0.32);
  --green: #1d3a2b;
  --green-2: #27503b;
  --green-ink: #e9efe9;
  --brass: #a8834e;

  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --max: 1280px;
  --gutter: clamp(16px, 4vw, 56px);
  --section: clamp(72px, 10vw, 152px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
::selection { background: var(--green); color: var(--paper); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px; font-size: 14px;
}
.skip-link:focus { top: 16px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(56px, 7vw, 96px); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 6vw, 96px); align-items: center; }

/* ---------- Type ---------- */
.display, h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.02em; line-height: 1.02; }
/* Bodoni Moda's optical-size axis thins hairlines at large sizes; pin it lower
   everywhere the serif appears so strokes stay sturdy. */
.display, h1, h2, h3, .wordmark__name, .marquee__item, .brands__list li, .stat__value,
.quote, .footer__big, .prose p:first-child, .visit address, .visit a.tel, .num, .nav__links a {
  font-variation-settings: "opsz" 28;
}
.wordmark__name, .marquee__item, .brands__list li, .stat__value, .quote, .footer__big, .visit address, .visit a.tel { font-weight: 500; }
h1 { font-size: clamp(3.75rem, 9.4vw, 8.75rem); line-height: 0.92; letter-spacing: -0.035em; }
h2 { font-size: clamp(2.25rem, 5.2vw, 4.5rem); }
h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.1; }
h1 em, h2 em, h3 em, .display em { font-style: italic; }
.lede { font-size: clamp(1.075rem, 1.4vw, 1.25rem); line-height: 1.6; color: var(--ink-2); max-width: 36ch; }
.muted { color: var(--muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--sans); font-size: 12px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.eyebrow--plain::before { display: none; }

.num {
  font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--brass);
  letter-spacing: 0.02em;
}

/* ---------- Buttons ---------- */
/* Buttons fill with a colour sweep from the left on hover */
.btn {
  --bg: var(--ink); --fg: var(--paper);
  --sweep: var(--green); --sweep-fg: var(--paper);
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 26px;
  background: var(--bg); color: var(--fg);
  font-size: 14px; font-weight: 500; letter-spacing: 0.04em;
  border: 1px solid var(--bg);
  transition: color 0.45s var(--ease), border-color 0.45s var(--ease), transform 0.3s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--sweep);
  transform: scaleX(0); transform-origin: right center;
  transition: transform 0.6s var(--ease-expo);
}
.btn:hover::before { transform: scaleX(1); transform-origin: left center; }
.btn:hover { color: var(--sweep-fg); border-color: var(--sweep); }
.btn:active { transform: scale(0.98); }
.btn--ghost { --bg: transparent; --fg: var(--ink); --sweep: var(--ink); border-color: var(--line-strong); }
.btn--light { --bg: var(--paper); --fg: var(--ink); --sweep: var(--ink); }
.btn--outline-light { --bg: transparent; --fg: var(--paper); --sweep: var(--paper); --sweep-fg: var(--ink); border-color: rgba(244, 240, 232, 0.4); }
.btn .arrow { display: inline-block; transition: transform 0.45s var(--ease-expo); }
.btn:hover .arrow { transform: translateX(6px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Text links: underline draws across on hover */
.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 500; letter-spacing: 0.04em;
  padding-bottom: 6px;
  background:
    linear-gradient(var(--ink), var(--ink)) left bottom / 0% 1px no-repeat,
    linear-gradient(var(--line-strong), var(--line-strong)) left bottom / 100% 1px no-repeat;
  transition: background-size 0.6s var(--ease-expo), gap 0.4s var(--ease-expo);
}
.link-arrow:hover { background-size: 100% 1px, 100% 1px; gap: 16px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), transform 0.5s var(--ease-expo);
}
.site-header.is-hidden { transform: translateY(-101%); }
/* Brass "thread" showing scroll progress along the bottom of the header */
.scroll-progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--brass); transform-origin: left center; transform: scaleX(var(--progress, 0));
  pointer-events: none;
}
/* Blur lives on a pseudo-element: backdrop-filter on the header itself would
   become the containing block for the fixed mobile menu and clip it. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(244, 240, 232, 0.86);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  backdrop-filter: saturate(1.2) blur(14px);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }

.wordmark { display: inline-flex; flex-direction: column; line-height: 1; }
.wordmark__name { font-family: var(--serif); font-size: 23px; letter-spacing: -0.01em; }
.wordmark__name em { font-style: italic; }
.wordmark__tag { margin-top: 6px; font-size: 9.5px; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted); }

.nav { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 40px); }
.nav__links { display: flex; gap: clamp(18px, 2.4vw, 34px); }
.nav__links a {
  position: relative; font-size: 14px; font-weight: 500; letter-spacing: 0.02em; padding-block: 6px;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { min-height: 42px; padding: 0 18px; font-size: 13px; }
.nav__phone { display: none; }

.menu-toggle { display: none; width: 44px; height: 44px; position: relative; }
.menu-toggle span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--ink); transition: transform 0.35s var(--ease), opacity 0.2s; }
.menu-toggle span:nth-child(1) { top: 17px; }
.menu-toggle span:nth-child(2) { top: 26px; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

/* ---------- Measuring tape motif ---------- */
.tape {
  height: 22px; width: 100%;
  background:
    repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 80px) left top / 100% 22px no-repeat,
    repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 40px) left top / 100% 14px no-repeat,
    repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 8px) left top / 100% 7px no-repeat;
  border-top: 1px solid var(--ink);
  opacity: 0.55;
}
.tape--light {
  background:
    repeating-linear-gradient(90deg, var(--paper) 0 1px, transparent 1px 80px) left top / 100% 22px no-repeat,
    repeating-linear-gradient(90deg, var(--paper) 0 1px, transparent 1px 40px) left top / 100% 14px no-repeat,
    repeating-linear-gradient(90deg, var(--paper) 0 1px, transparent 1px 8px) left top / 100% 7px no-repeat;
  border-top-color: var(--paper);
  opacity: 0.35;
}
.stitch { border: 0; height: 1px; margin: 0; background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 12px); }

/* ---------- Photos ---------- */
.photo { position: relative; overflow: hidden; background: var(--paper-3); }
.photo img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.06) brightness(1.03);
  transition: filter 0.8s var(--ease), transform 1.2s var(--ease);
}
.photo:hover img { filter: grayscale(0) contrast(1) brightness(1); transform: scale(1.03); }
.photo::after { /* subtle film grain to unify mixed-quality source images */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.18; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}
.ratio-4x5 { aspect-ratio: 4 / 5; }
.ratio-3x4 { aspect-ratio: 3 / 4; }
.ratio-4x3 { aspect-ratio: 4 / 3; }
.ratio-3x2 { aspect-ratio: 3 / 2; }
.ratio-16x9 { aspect-ratio: 16 / 9; }
figcaption { margin-top: 12px; font-size: 12px; letter-spacing: 0.06em; color: var(--muted); }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(40px, 6vw, 88px); padding-bottom: clamp(56px, 8vw, 120px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 5vw, 80px); align-items: end; }
.hero__copy { display: flex; flex-direction: column; gap: clamp(24px, 3vw, 36px); }
.hero__copy h1 { margin-top: 4px; }
.hero__media { position: relative; padding-bottom: 18%; }
.hero__media .photo--main { width: 82%; margin-left: auto; aspect-ratio: 4 / 5; }
.hero__media .photo--inset {
  position: absolute; left: 0; bottom: 0; width: 54%; aspect-ratio: 4 / 3;
  outline: 10px solid var(--paper);
}
.hero__media .photo--main img { object-position: 50% 12%; }
.hero__badge {
  position: absolute; right: calc(-1 * clamp(24px, 2.6vw, 40px)); top: 2%;
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-size: 11px; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted);
}

.status {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 500; color: var(--ink-2);
}
.status__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); box-shadow: 0 0 0 4px rgba(109, 104, 95, 0.15); }
.status.is-open .status__dot { background: #3f8a5f; box-shadow: 0 0 0 4px rgba(63, 138, 95, 0.18); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(63, 138, 95, 0.05); } }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding-block: 22px; }
.marquee__track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.marquee__group { display: flex; align-items: center; gap: 48px; padding-right: 48px; }
.marquee__item { font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.75rem); white-space: nowrap; }
.marquee__item:nth-child(even) { font-style: italic; color: var(--muted); }
.marquee__sep { width: 7px; height: 7px; border: 1px solid var(--brass); transform: rotate(45deg); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Section heads ---------- */
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; margin-bottom: clamp(40px, 6vw, 80px); }
.section-head__title { display: flex; flex-direction: column; gap: 20px; }
.section-head p { max-width: 46ch; color: var(--ink-2); justify-self: end; }

/* ---------- Service cards ---------- */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); }
.service { display: flex; flex-direction: column; gap: 22px; }
.service__top { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.service__top span:last-child { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.service p { color: var(--ink-2); }
.service .link-arrow { align-self: flex-start; margin-top: auto; }
.service:nth-child(2) { margin-top: clamp(0px, 6vw, 88px); }

/* ---------- Feature / stats ---------- */
.feature__media { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.feature__media .photo:first-child { grid-column: 1 / -1; }
.feature__copy { display: flex; flex-direction: column; gap: 28px; }
.feature__copy p { color: var(--ink-2); max-width: 44ch; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.stat { padding: 24px 20px 0 0; }
.stat + .stat { padding-left: 20px; border-left: 1px solid var(--line); }
.stat__value { font-family: var(--serif); font-size: clamp(1.75rem, 2.7vw, 2.6rem); line-height: 1; letter-spacing: -0.02em; white-space: nowrap; }
.stat__label { margin-top: 10px; font-size: 13px; color: var(--muted); line-height: 1.4; }

/* ---------- Brands ---------- */
.brands { background: var(--paper-2); }
.brands__list {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 0.15em 0.85em; text-align: center; max-width: 1080px; margin: 40px auto 0;
  font-size: clamp(1.4rem, 3vw, 2.5rem);
}
.brands__list li { font-family: var(--serif); line-height: 1.25; letter-spacing: -0.01em; white-space: nowrap; }
.brands__list li:nth-child(3n+2) { font-style: italic; color: var(--green-2); }
.brands .note { margin-top: 32px; text-align: center; font-size: 13px; color: var(--muted); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; counter-reset: step; }
.step { padding: 36px clamp(20px, 3vw, 40px) 0 0; border-top: 1px solid var(--ink); display: flex; flex-direction: column; gap: 14px; }
.step + .step { padding-left: clamp(20px, 3vw, 40px); }
.step p { color: var(--ink-2); max-width: 32ch; }

/* ---------- Visit (green) ---------- */
.visit { background: var(--green); color: var(--green-ink); }
.visit .eyebrow, .visit .muted { color: rgba(233, 239, 233, 0.66); }
.visit__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: stretch; }
.visit__info { display: flex; flex-direction: column; gap: 36px; }
.visit address { font-style: normal; font-family: var(--serif); font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.25; }
.visit a.tel { font-family: var(--serif); font-size: clamp(1.5rem, 2.4vw, 2rem); border-bottom: 1px solid rgba(233, 239, 233, 0.35); }
.visit a.tel:hover { border-color: var(--green-ink); }
.hours { width: 100%; border-collapse: collapse; font-size: 15px; }
.hours th, .hours td { text-align: left; padding: 12px 0; border-bottom: 1px solid rgba(233, 239, 233, 0.16); font-weight: 400; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.is-today th, .hours tr.is-today td { color: #fff; font-weight: 600; }
.hours tr.is-today th::after { content: "Today"; margin-left: 10px; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; padding: 3px 7px; border: 1px solid rgba(255, 255, 255, 0.5); vertical-align: 2px; }
.map { position: relative; min-height: 380px; background: var(--green-2); overflow: hidden; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05) opacity(0.92); }

/* light variant of hours (contact page) */
.hours--light th, .hours--light td { border-bottom-color: var(--line); }
.hours--light tr.is-today th, .hours--light tr.is-today td { color: var(--ink); }
.hours--light tr.is-today th::after { border-color: var(--line-strong); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding-top: clamp(48px, 8vw, 112px); padding-bottom: clamp(40px, 6vw, 80px); }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 40px clamp(32px, 6vw, 96px); align-items: end; }
.page-hero h1 { font-size: clamp(3rem, 6.6vw, 6.25rem); margin-top: 22px; }
.page-hero .lede { max-width: 40ch; }

.band { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-auto-rows: clamp(200px, 24vw, 340px); gap: 16px; }
.band .photo { height: 100%; }

/* ---------- Lists ---------- */
.list-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 4vw, 64px); }
.list-col h3 { display: flex; align-items: baseline; gap: 14px; padding-bottom: 18px; margin-bottom: 8px; border-bottom: 1px solid var(--ink); }
.list-col li { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; }
.list-col li { align-items: center; transition: padding 0.45s var(--ease-expo), color 0.3s var(--ease); }
.list-col li::after { content: ""; flex: none; width: 14px; height: 1px; background: var(--line-strong); transition: width 0.45s var(--ease-expo), background 0.3s var(--ease); }
.list-col li:hover { padding-left: 10px; color: var(--green-2); }
.list-col li:hover::after { width: 36px; background: var(--brass); }

.callout {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px 48px; align-items: center;
  padding: clamp(28px, 4vw, 48px); background: var(--ink); color: var(--paper);
}
.callout h3 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.callout p { color: rgba(244, 240, 232, 0.72); max-width: 52ch; }
.callout .num { font-size: 18px; }

.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.split--reverse { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
.sticky { position: sticky; top: 110px; }
.prose { display: flex; flex-direction: column; gap: 22px; color: var(--ink-2); max-width: 56ch; }
.prose p:first-child { font-family: var(--serif); font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.3; color: var(--ink); letter-spacing: -0.01em; }

.details { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.detail { padding: 28px 24px 28px 0; display: flex; flex-direction: column; gap: 10px; }
.detail + .detail { padding-left: 24px; border-left: 1px solid var(--line); }
.details--2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.details--2 .detail:nth-child(odd) { padding-left: 0; border-left: 0; }
.details--2 .detail:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
.details--2 .detail:nth-child(n+3) { border-top: 1px solid var(--line); }
.detail h3 { font-size: 1.6rem; }
.detail p { font-size: 15px; color: var(--muted); }

.checklist li { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.checklist li::before { content: ""; flex: none; width: 7px; height: 7px; border: 1px solid var(--brass); transform: rotate(45deg) translateY(-2px); }

.quote { font-family: var(--serif); font-size: clamp(2rem, 4.6vw, 4rem); line-height: 1.12; letter-spacing: -0.02em; max-width: 20ch; }
.quote em { color: var(--green-2); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(244, 240, 232, 0.72); padding-top: clamp(64px, 8vw, 112px); padding-bottom: 32px; font-size: 15px; }
.footer__big { font-family: var(--serif); color: var(--paper); font-size: clamp(2.5rem, 7vw, 6rem); line-height: 0.98; letter-spacing: -0.03em; }
.footer__big em { font-style: italic; color: var(--brass); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-top: clamp(48px, 6vw, 88px); padding-top: 40px; border-top: 1px solid rgba(244, 240, 232, 0.16); }
.footer__grid h4 { font-size: 11px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(244, 240, 232, 0.45); margin-bottom: 18px; }
.footer__grid li + li { margin-top: 8px; }
.footer__grid a:hover { color: var(--paper); }
.footer__bottom { margin-top: 64px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: rgba(244, 240, 232, 0.45); }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.12s !important; }
.reveal-delay-2 { transition-delay: 0.24s !important; }

/* ==========================================================================
   Motion & interaction
   ========================================================================== */

/* Headlines rise line by line from behind a mask (lines are wrapped by main.js) */
.js .reveal.reveal--lines { opacity: 1; transform: none; }
.line {
  display: block; overflow: hidden;
  padding: 0.1em 0.08em 0.16em; margin: -0.1em -0.08em -0.16em;
}
.line > span { display: inline-block; transform: translateY(115%) rotate(2deg); transform-origin: left bottom; transition: transform 1.15s var(--ease-expo); }
.is-visible .line > span { transform: none; }

/* Photos wipe open from the bottom, image settling from a slight zoom */
/* (The clip sits on the image, not the frame: a fully clipped frame would never
   register with IntersectionObserver and so would never be revealed.) */
.js .photo { transition: background-color 0.6s var(--ease); }
.js .photo:not(.is-visible) { background-color: transparent; }
.js .photo:not(.is-visible)::after { opacity: 0; }
.js .photo img {
  clip-path: inset(100% 0 0 0); transform: scale(1.18);
  transition: clip-path 1.4s var(--ease-expo), transform 1.8s var(--ease-expo), filter 0.8s var(--ease);
}
.js .photo.is-visible img { clip-path: inset(0); transform: scale(1); }
.js .photo.is-visible:hover img { transform: scale(1.05); }

/* Measuring tape and stitched rules draw themselves in */
.js .tape, .js .stitch { transform: scaleX(0); transform-origin: left center; transition: transform 1.8s var(--ease-expo); }
.js .tape.is-visible, .js .stitch.is-visible { transform: scaleX(1); }

/* Hero parallax (offset set by main.js) */
.hero__media .photo--main, .hero__media .photo--inset { translate: 0 var(--py, 0px); will-change: translate; }

/* Header details */
.wordmark__name em { transition: color 0.4s var(--ease); }
.wordmark:hover .wordmark__name em { color: var(--green-2); }

/* Service cards: whole card is the hover target */
.service .photo::before {
  content: "→"; position: absolute; right: 18px; bottom: 18px; z-index: 2;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--paper); color: var(--ink); font-size: 20px;
  transform: scale(0) rotate(-90deg); transition: transform 0.6s var(--ease-expo);
}
.service:hover .photo::before { transform: scale(1) rotate(0); }
.js .service:hover .photo.is-visible img, .service:hover .photo img { filter: grayscale(0) contrast(1) brightness(1); transform: scale(1.06); }
.service h3, .service .num { transition: transform 0.5s var(--ease-expo), color 0.4s var(--ease); }
.service:hover h3 { transform: translateX(8px); }
.service:hover .num { color: var(--green-2); }
.service__top { position: relative; }
.service__top::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: left center; transition: transform 0.7s var(--ease-expo);
}
.service:hover .service__top::after { transform: scaleX(1); }

/* Brand names: spotlight the one under the cursor */
.brands__list li { transition: opacity 0.4s var(--ease), color 0.4s var(--ease), transform 0.5s var(--ease-expo); cursor: default; }
.brands__list:hover li { opacity: 0.25; }
.brands__list li:hover { opacity: 1; color: var(--ink); transform: translateY(-3px); }

/* Marquee slows to a stop under the cursor */
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__sep { transition: transform 0.6s var(--ease-expo); }
.marquee:hover .marquee__sep { transform: rotate(225deg); }

/* Steps: green line runs across the top on hover */
.step { position: relative; }
.step::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 3px; background: var(--green-2);
  transform: scaleX(0); transform-origin: left center; transition: transform 0.8s var(--ease-expo);
}
.step:hover::before { transform: scaleX(1); }
.step h3 { transition: transform 0.5s var(--ease-expo); }
.step:hover h3 { transform: translateX(6px); }

/* Detail tiles and checklists */
.detail h3, .detail .num { transition: color 0.4s var(--ease), transform 0.5s var(--ease-expo); }
.detail:hover h3 { color: var(--green-2); transform: translateX(6px); }
.checklist li { transition: padding 0.45s var(--ease-expo), color 0.3s var(--ease); }
.checklist li::before { transition: transform 0.6s var(--ease-expo), background 0.3s var(--ease); }
.checklist li:hover { padding-left: 8px; color: var(--green-2); }
.checklist li:hover::before { background: var(--brass); transform: rotate(225deg) translateY(2px); }

/* Stats lift slightly on hover */
.stat__value { transition: color 0.4s var(--ease), transform 0.5s var(--ease-expo); }
.stat:hover .stat__value { color: var(--green-2); transform: translateY(-4px); }

/* Callout button sits on ink, so sweep green instead */
.callout .btn--light { --sweep: var(--green-2); --sweep-fg: var(--paper); }

/* Footer links nudge on hover */
.footer__grid a { display: inline-block; transition: color 0.3s var(--ease), transform 0.4s var(--ease-expo); }
.footer__grid a:hover { transform: translateX(6px); }

/* Visit: phone number underline */
.visit a.tel { transition: border-color 0.3s var(--ease), letter-spacing 0.6s var(--ease-expo); }
.visit a.tel:hover { letter-spacing: 0.01em; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail:nth-child(3) { padding-left: 0; border-left: 0; }
  .detail:nth-child(n+3) { border-top: 1px solid var(--line); }
}

@media (max-width: 900px) {
  .menu-toggle { display: block; z-index: 60; }
  .nav__cta { display: none; }
  .nav__links {
    position: fixed; inset: 0; z-index: 55;
    flex-direction: column; justify-content: center; gap: 4px;
    padding: 96px var(--gutter) 48px;
    background: var(--paper);
    opacity: 0; visibility: hidden; transition: opacity 0.35s var(--ease), visibility 0.35s;
  }
  .nav__links a { font-family: var(--serif); font-size: clamp(2.5rem, 11vw, 3.5rem); font-weight: 400; letter-spacing: -0.02em; line-height: 1.15; }
  .nav__links a::after { display: none; }
  .nav__links a[aria-current="page"] { font-style: italic; color: var(--green-2); }
  .nav__phone { display: block; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
  .nav__links .nav__phone a { font-family: var(--sans); font-size: 16px; font-weight: 500; letter-spacing: 0.02em; }
  .menu-open .nav__links { opacity: 1; visibility: visible; }
  .menu-open { overflow: hidden; }
  .wordmark { position: relative; z-index: 60; }

  .hero__grid, .page-hero__grid, .grid-2, .visit__grid, .split, .split--reverse, .section-head { grid-template-columns: minmax(0, 1fr); }
  .section-head p { justify-self: start; }
  .hero__media { max-width: 560px; }
  .hero__badge { display: none; }
  .services { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .service:nth-child(2) { margin-top: 0; }
  .service .photo { aspect-ratio: 3 / 2; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step, .step + .step { padding: 28px 0 32px; }
  .list-cols { grid-template-columns: minmax(0, 1fr); }
  .callout { grid-template-columns: minmax(0, 1fr); }
  .band { grid-template-columns: 1fr 1fr; grid-auto-rows: clamp(140px, 34vw, 300px); }
  .band .photo:first-child { grid-column: 1 / -1; }
  .sticky { position: static; }
  .map { min-height: 320px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .header-inner { height: 66px; }
  .wordmark__name { font-size: 20px; }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stat, .stat + .stat { padding: 20px 0; border-left: 0; border-bottom: 1px solid var(--line); display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
  .stat__label { margin-top: 0; text-align: right; }
  .details { grid-template-columns: minmax(0, 1fr); }
  .detail, .detail + .detail { padding: 22px 0; border-left: 0; border-top: 1px solid var(--line); }
  .detail:first-child { border-top: 0; }
  .details--2 { grid-template-columns: minmax(0, 1fr) !important; }
  .details--2 .detail:nth-child(n) { padding: 22px 0; border-left: 0; }
  .details--2 .detail:nth-child(n+2) { border-top: 1px solid var(--line); }
  .footer__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .btn-row .btn { flex: 1 1 100%; }
  .hero__media .photo--inset { outline-width: 6px; }
  .marquee { padding-block: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .photo img { clip-path: none; }
  .js .photo img, .line > span, .js .tape, .js .stitch { transform: none !important; }
  .hero__media .photo--main, .hero__media .photo--inset { translate: none; }
}

@media print {
  .site-header, .marquee, .map, .menu-toggle { display: none !important; }
  body { background: #fff; }
}
