/* ============================================================================
   Demolition Masters NY — design system
   Thesis, tokens and component rules: DESIGN-DNA.md
   Reimplemented from the local Potu template. No template code is used.
   ========================================================================== */

/* ---------------------------------------------------------------- fonts --- */
/* Satoshi, self-hosted. Zero external requests is a hard constraint. */
@font-face {
  font-family: 'Satoshi';
  src: url('/assets/fonts/Satoshi-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('/assets/fonts/Satoshi-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('/assets/fonts/Satoshi-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('/assets/fonts/Satoshi-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------- tokens --- */
:root {
  --ink: #141414;
  --ink-deep: #0c0c0c;
  --panel: #1c1c1c;
  --lime: #acd400;
  --lime-bright: #c2ed12;
  --white: #ffffff;
  --bone: #f4f4f1;
  --rule-light: #dcdcd6;
  --rule-dark: rgba(255, 255, 255, 0.12);
  --body: #4a4a48;
  --body-dark: rgba(255, 255, 255, 0.62);

  --font: 'Satoshi', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  --edge: clamp(16px, 4vw, 48px);      /* page-edge inset */
  --gut: clamp(20px, 3vw, 40px);       /* column gutter */
  --band: clamp(56px, 8vw, 132px);     /* section rhythm */
  --measure: 68ch;

  --r-lg: clamp(20px, 3vw, 44px);      /* big panels */
  --r-pill: 999px;

  --hdr: 76px;
}

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

/* `overflow-x: clip`, never `hidden`.
   `hidden` turns the element into a SCROLL CONTAINER. Two consequences bit here:
   (1) `position: sticky` descendants — the header — anchor to that container
       instead of the viewport, which is fragile and browser-dependent;
   (2) it forces `documentElement.scrollWidth === clientWidth`, so the usual
       "scrollWidth minus innerWidth" overflow probe is guaranteed to read 0 and
       can never detect a real overflow. The check becomes structurally blind.
   `clip` does the same visual job without creating a scroll container, so the
   sticky header stays correct and the overflow probe stays honest. Where `clip`
   is unsupported it falls back to `visible`, which is safe: measured overflow on
   this site is 0 at every breakpoint, so nothing depends on the clip. */
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--body);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3, h4, h5, h6 { margin: 0; color: var(--ink); line-height: 1.1; font-weight: 700; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
li { margin-bottom: 0.5em; }
li:last-child { margin-bottom: 0; }
img, picture, svg, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; }
strong, b { font-weight: 700; color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
  border-radius: 2px;
}
.on-dark :focus-visible, .dark :focus-visible { outline-color: var(--lime); }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--lime);
  color: var(--ink);
  padding: 14px 22px;
  font-weight: 700;
  border-radius: 0 0 12px 0;
}
.skip:focus { left: 0; }

.vh {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------- layout --- */
.wrap {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding-inline: var(--edge);
}
.narrow { max-width: 900px; }

section { position: relative; }
.band { padding-block: var(--band); }
.band-sm { padding-block: calc(var(--band) * 0.62); }

/* Any surface that paints a dark ground must also carry the dark text context.
   Keeping this list in one place is what prevents an ink-coloured ghost button or
   an ink-coloured heading from being rendered invisible on a dark panel. */
.dark,
.hero,
.subhead,
.band-art,
.cta,
.seq-row,
.form-panel { color: var(--body-dark); }

.dark h1, .dark h2, .dark h3, .dark h4,
.hero h1, .hero h2, .hero h3,
.subhead h1, .subhead h2, .subhead h3,
.band-art h2, .band-art h3,
.cta h2, .cta h3,
.seq-row h3,
.form-panel h2, .form-panel h3 { color: var(--white); }

.dark strong, .hero strong, .subhead strong, .band-art strong, .cta strong, .seq-row strong { color: var(--white); }

.dark { background: var(--ink); }
.bone { background: var(--bone); }

/* The one dark-panel component that is sometimes rendered light. */
.bone .seq-row,
.seq-row.light { color: var(--body); }
.bone .seq-row h3,
.seq-row.light h3 { color: var(--ink); }

/* ----------------------------------------------------------- typography --- */
.display {
  font-size: clamp(2.5rem, 7.4vw, 6.5rem);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -0.028em;
  max-width: 18ch;
}
.display .muted { display: block; color: #9a9a96; }
.dark .display .muted { color: rgba(255, 255, 255, 0.42); }

.h2 {
  font-size: clamp(1.9rem, 4vw, 4rem);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.022em;
  max-width: 20ch;
}
.h3 {
  font-size: clamp(1.3rem, 2.1vw, 2.125rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.h4 { font-size: 1.25rem; line-height: 1.3; font-weight: 700; }

.eyebrow {
  display: block;
  font-size: 0.8125rem;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: clamp(14px, 2vw, 24px);
}
.dark .eyebrow, .eyebrow.lime { color: var(--lime); }

.lead { font-size: clamp(1.0625rem, 1.5vw, 1.3125rem); line-height: 1.6; max-width: 60ch; }
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1.1em; }

/* A short lime rule that sits above a heading. The accent as a fill, never as type. */
.tick::before {
  content: '';
  display: block;
  width: 56px;
  height: 6px;
  background: var(--lime);
  margin-bottom: clamp(18px, 2.4vw, 30px);
}

/* --------------------------------------------------------------- header --- */
.util {
  background: var(--ink-deep);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  line-height: 1.4;
}
.util .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 9px;
}
.util a { color: rgba(255, 255, 255, 0.9); text-decoration: none; font-weight: 500; display: inline-block; padding: 5px 0; }
.util a:hover { color: var(--lime); }
.util .u-hours { display: flex; align-items: center; gap: 9px; }
.util svg { width: 15px; height: 15px; flex: none; }

.hdr {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--ink);
  border-bottom: 1px solid var(--rule-dark);
}
.hdr .wrap {
  display: flex;
  align-items: center;
  gap: var(--gut);
  min-height: var(--hdr);
  padding-block: 12px;
}
/* Brand lockup: the SVG mark plus a typographic wordmark.
   Constrained by HEIGHT so the mark can never inflate the header — width follows
   from the intrinsic ratio, so it is never stretched or cropped. The previous
   build squeezed a 1280x960 raster into a 46px square with object-fit: cover,
   which cropped the artwork to an unreadable fragment. */
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; flex: none; }
.brand-mark { height: 34px; width: auto; flex: none; display: block; }
.brand-word {
  display: block;
  font-weight: 900;
  font-size: 1.0625rem;
  line-height: 1.05;
  color: var(--white);
  letter-spacing: -0.025em;
  text-transform: uppercase;
}
/* The global `strong, b` rule paints ink, which is invisible on the ink header.
   The wordmark sets its own colour rather than inheriting that. */
.brand-word b { font-weight: 900; color: inherit; }
.brand-word em {
  display: block;
  font-style: normal;
  font-weight: 700;
  font-size: 0.6875rem;
  letter-spacing: 0.34em;
  color: var(--lime);
  margin-top: 2px;
}

.nav { margin-left: auto; }
.nav ul { display: flex; align-items: center; gap: clamp(14px, 1.7vw, 30px); list-style: none; margin: 0; padding: 0; }
.nav li { margin: 0; }
.nav a {
  display: block;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.nav a:hover { color: var(--white); border-bottom-color: var(--lime); }
.nav a[aria-current='page'] { color: var(--white); border-bottom-color: var(--lime); }

.hdr-call {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--lime);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
  padding: 11px 20px;
  border-radius: var(--r-pill);
  white-space: nowrap;
  flex: none;
  transition: background 0.2s ease;
}
.hdr-call:hover { background: var(--lime-bright); }
.hdr-call svg { width: 16px; height: 16px; }

.burger {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--rule-dark);
  border-radius: 10px;
  width: 46px; height: 46px;
  /* Sole route to the mobile nav. Without this it is a shrinkable flex item and
     the 320px header squeezes it to 27px wide. */
  flex: none;
  color: var(--white);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.burger svg { width: 22px; height: 22px; }

/* Off-canvas drawer. Its close control exists only at this breakpoint. */
/* Closed drawer is visibility:hidden, not just translated: a translated panel is
   still focusable and still in the accessibility tree, which would leave dead
   controls reachable by keyboard on every page. */
.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(340px, 86vw);
  background: var(--ink);
  border-left: 1px solid var(--rule-dark);
  z-index: 120;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.28s ease, visibility 0.28s ease;
  display: flex;
  flex-direction: column;
  padding: 20px var(--edge) 40px;
  overflow-y: auto;
}
.drawer[data-open='true'] { transform: translateX(0); visibility: visible; }
.drawer-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.drawer-close {
  background: transparent;
  border: 1px solid var(--rule-dark);
  border-radius: 10px;
  width: 46px; height: 46px;
  color: var(--white);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.drawer-close svg { width: 20px; height: 20px; }
.drawer nav ul { list-style: none; margin: 0 0 26px; padding: 0; }
.drawer nav li { margin: 0; border-bottom: 1px solid var(--rule-dark); }
.drawer nav a {
  display: block;
  padding: 15px 0;
  color: var(--white);
  text-decoration: none;
  font-size: 1.0625rem;
  font-weight: 500;
}
.drawer nav a:hover { color: var(--lime); }
.scrim {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 110;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}
.scrim[data-open='true'] { opacity: 1; visibility: visible; }

/* -------------------------------------------------------------- buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: inherit;
  font-size: 1.0625rem;
  font-weight: 700;
  text-decoration: none;
  padding: 15px 28px;
  border-radius: var(--r-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform 0.2s ease; }
.btn-primary { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.btn-primary:hover { background: var(--lime-bright); border-color: var(--lime-bright); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
/* Same list as the dark-surface rule above: a ghost button on a dark ground needs
   the light treatment or it renders as near-invisible ink on near-black. */
.dark .btn-ghost,
.hero .btn-ghost,
.subhead .btn-ghost,
.band-art .btn-ghost,
.seq-row .btn-ghost { color: var(--white); border-color: rgba(255, 255, 255, 0.55); }
.dark .btn-ghost:hover,
.hero .btn-ghost:hover,
.subhead .btn-ghost:hover,
.band-art .btn-ghost:hover,
.seq-row .btn-ghost:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
/* Inside the lime CTA pill the ghost button sits on lime, so it stays ink. */
.cta-pill .btn-ghost { color: var(--ink); border-color: var(--ink); }
.cta-pill .btn-ghost:hover { background: var(--ink); color: var(--lime); border-color: var(--ink); }
.btn-arrow:hover svg { transform: rotate(45deg); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ----------------------------------------------------------------- hero --- */
.hero { position: relative; background: var(--ink); color: var(--body-dark); overflow: hidden; }
.hero-art { position: absolute; inset: 0; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.hero-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(12, 12, 12, 0.94) 0%, rgba(12, 12, 12, 0.82) 46%, rgba(12, 12, 12, 0.55) 100%);
}
.hero .wrap { position: relative; z-index: 1; padding-block: clamp(56px, 9vw, 128px); }
.hero .display { color: var(--white); }
.hero .lead { color: rgba(255, 255, 255, 0.76); margin-top: clamp(20px, 2.6vw, 32px); }
.hero .btn-row { margin-top: clamp(26px, 3.4vw, 42px); }

.hero-strip {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--rule-dark);
  background: rgba(12, 12, 12, 0.72);
}
.hero-strip ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  list-style: none;
  margin: 0;
  padding-block: 16px;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.72);
}
.hero-strip li { margin: 0; display: flex; align-items: center; gap: 9px; }
.hero-strip svg { width: 15px; height: 15px; color: var(--lime); flex: none; }

/* page sub-header for interior pages */
.subhead { position: relative; background: var(--ink); overflow: hidden; }
.subhead .hero-art::after {
  background: linear-gradient(100deg, rgba(12, 12, 12, 0.93) 0%, rgba(12, 12, 12, 0.78) 60%, rgba(12, 12, 12, 0.6) 100%);
}
.subhead .wrap { position: relative; z-index: 1; padding-block: clamp(44px, 6.5vw, 92px); }
.subhead h1 {
  color: var(--white);
  font-size: clamp(2rem, 5vw, 4.25rem);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.025em;
  max-width: 20ch;
}
.subhead .lead { color: rgba(255, 255, 255, 0.76); margin-top: 20px; }
.subhead .btn-row { margin-top: 30px; }

/* ----------------------------------------------------------- breadcrumbs --- */
.crumbs { font-size: 0.875rem; margin-bottom: clamp(18px, 2.4vw, 26px); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
/* The separator is inline content at the head of the crumb's text flow, not a
   flex sibling. As a flex item it centred itself against a crumb that wrapped to
   two lines and stood alone in the margin, detached from the words it belongs to. */
.crumbs li { margin: 0; color: rgba(255, 255, 255, 0.55); }
.crumbs li + li::before { content: '/'; color: rgba(255, 255, 255, 0.32); margin-right: 8px; }
.crumbs a { color: rgba(255, 255, 255, 0.8); text-decoration: none; }
.crumbs a:hover { color: var(--lime); }

/* --------------------------------------------------- editorial split row --- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
}
.split-media img { width: 100%; border-radius: var(--r-lg); }
.split.reverse .split-media { order: 2; }

/* ------------------------------------------------- THE service index list --- */
.index-head {
  display: flex;
  flex-wrap: wrap;
  gap: 20px var(--gut);
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: clamp(32px, 5vw, 64px);
}
.index-head .lead { color: var(--body-dark); }

.group + .group { margin-top: clamp(38px, 5vw, 68px); }
.group-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--lime);
}
.group-head h3 { color: var(--white); font-size: clamp(1.125rem, 1.7vw, 1.5rem); }
.group-head p { margin: 0; font-size: 0.9375rem; color: rgba(255, 255, 255, 0.5); max-width: 62ch; }

.idx { list-style: none; margin: 0; padding: 0; }
.idx li { margin: 0; border-bottom: 1px solid var(--rule-dark); }
/* Flex, not grid: these rows are emitted both with and without the index numeral
   (the 32-service index has one; related and area lists do not). A fixed
   three-column grid put the name in the numeral's column whenever it was absent. */
.idx a {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  padding: clamp(15px, 1.7vw, 21px) 0;
  text-decoration: none;
  transition: padding-inline 0.2s ease;
}
.idx .num {
  flex: 0 0 auto;
  width: 34px;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--lime);
  font-variant-numeric: tabular-nums;
}
.idx .name {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--white);
  font-size: clamp(1.125rem, 1.9vw, 1.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.idx .scope { display: block; font-size: 0.9375rem; font-weight: 400; color: rgba(255, 255, 255, 0.5); line-height: 1.5; margin-top: 5px; letter-spacing: 0; }
.idx .go {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--rule-dark);
  display: inline-flex; align-items: center; justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  flex: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.idx .go svg { width: 17px; height: 17px; }
.idx a:hover { padding-inline: 14px; }
.idx a:hover .name { color: var(--lime); }
.idx a:hover .go { background: var(--lime); color: var(--ink); border-color: var(--lime); transform: rotate(45deg); }

/* ------------------------------------------------------------------ rail ---
   Horizontal scroll-snap carousel of image tiles. Used where a short, related
   set of services deserves to be seen rather than scanned — area pages, related
   services, the guide index. The 32-item service index stays a ruled list: a
   rail is for a handful of things, not for a full catalogue.
   Works with no JS at all (native scroll + snap); the arrow controls are
   revealed by script only when the track actually overflows. */
.rail { position: relative; }
.rail-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(22px, 3vw, 36px);
}
.rail-nav { display: none; gap: 10px; flex: none; }
.rail-nav[data-ready='true'] { display: flex; }
.rail-btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--rule-light);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}
.dark .rail-btn { border-color: var(--rule-dark); color: var(--white); }
.rail-btn svg { width: 18px; height: 18px; }
.rail-btn:hover:not(:disabled) { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.rail-btn:disabled { opacity: 0.32; cursor: default; }

.rail-track {
  display: flex;
  gap: clamp(14px, 1.8vw, 24px);
  list-style: none;
  margin: 0;
  padding: 0 0 6px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--lime) transparent;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.rail-track::-webkit-scrollbar { height: 6px; }
.rail-track::-webkit-scrollbar-track { background: rgba(128, 128, 128, 0.18); border-radius: 99px; }
.rail-track::-webkit-scrollbar-thumb { background: var(--lime); border-radius: 99px; }

.tile {
  flex: 0 0 clamp(238px, 27vw, 340px);
  margin: 0;
  scroll-snap-align: start;
}
.tile > a {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  background: var(--panel);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.25s ease, background 0.25s ease;
}
.bone .tile > a, section:not(.dark) .tile > a { background: var(--white); border: 1px solid var(--rule-light); }
.dark .tile > a { background: var(--panel); border: 0; }
.tile > a:hover { transform: translateY(-4px); }

.tile-art { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink); }
.tile-art img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.tile > a:hover .tile-art img { transform: scale(1.05); }

.tile-body { padding: clamp(18px, 2vw, 26px); display: flex; flex-direction: column; gap: 9px; flex: 1 1 auto; }
.tile-name {
  font-size: 1.1875rem;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.dark .tile-name { color: var(--white); }
.tile-scope { font-size: 0.9375rem; line-height: 1.5; color: var(--body); margin: 0; }
.dark .tile-scope { color: rgba(255, 255, 255, 0.58); }
.tile-go {
  margin-top: auto;
  padding-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}
.dark .tile-go { color: var(--lime); }
.tile-go svg { width: 15px; height: 15px; transition: transform 0.2s ease; }
.tile > a:hover .tile-go svg { transform: rotate(45deg); }

@media (max-width: 720px) {
  .tile { flex-basis: min(78vw, 300px); }
  .rail-nav { display: none !important; }
}

/* --------------------------------------------------------- sequence rows --- */
.seq { display: grid; gap: clamp(14px, 1.8vw, 20px); }
.seq-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(18px, 3vw, 38px);
  align-items: start;
  background: var(--panel);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3.2vw, 42px) clamp(24px, 4vw, 56px);
}
.bone .seq-row { background: var(--white); border: 1px solid var(--rule-light); }
.seq-num {
  width: clamp(48px, 5vw, 68px);
  height: clamp(48px, 5vw, 68px);
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: clamp(1.125rem, 1.8vw, 1.625rem);
  flex: none;
}
.seq-row h3 { margin-bottom: 10px; }
.seq-row p { margin: 0; max-width: 74ch; }

/* ------------------------------------------------------------- fact rows --- */
.facts { border-top: 1px solid var(--rule-light); }
.fact {
  display: grid;
  grid-template-columns: minmax(180px, 260px) 1fr;
  gap: 10px clamp(24px, 4vw, 56px);
  padding: clamp(20px, 2.4vw, 30px) 0;
  border-bottom: 1px solid var(--rule-light);
}
.dark .facts { border-color: var(--rule-dark); }
.dark .fact { border-color: var(--rule-dark); }
.fact dt { font-weight: 700; color: var(--ink); font-size: 1.0625rem; }
.dark .fact dt { color: var(--lime); }
.fact dd { margin: 0; max-width: 78ch; }

/* ------------------------------------------------------------ check list --- */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { margin: 0; display: grid; grid-template-columns: 22px 1fr; gap: 13px; align-items: start; }
.checks svg { width: 22px; height: 22px; color: var(--lime); margin-top: 3px; }
.dark .checks svg { color: var(--lime); }

.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.6vw, 34px); }
.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.8vw, 40px); }

/* Bordered note block: the page's one NYC complication. */
.note {
  border-left: 6px solid var(--lime);
  background: var(--bone);
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
  padding: clamp(24px, 3.4vw, 44px) clamp(24px, 4vw, 52px);
}
.dark .note { background: var(--panel); }
.note h3 { margin-bottom: 12px; }
.note p { max-width: 76ch; }

/* --------------------------------------------------------- image bands ---- */
.band-art { position: relative; background: var(--ink); overflow: hidden; }
.band-art .hero-art::after {
  background: linear-gradient(180deg, rgba(12, 12, 12, 0.86) 0%, rgba(12, 12, 12, 0.78) 100%);
}
.band-art .wrap { position: relative; z-index: 1; padding-block: clamp(56px, 8vw, 120px); }
.band-art h2 { color: var(--white); }
.band-art p { color: rgba(255, 255, 255, 0.74); }

/* ------------------------------------------------------------ utilities --- */
/* A small closed set, so the markup carries no inline style attributes and the
   Content-Security-Policy can forbid inline styles outright. */
.gap-above { margin-top: clamp(22px, 3vw, 34px); }
.gap-below { margin-bottom: clamp(26px, 3.6vw, 46px); }
.gap-below-lg { margin-bottom: clamp(30px, 4.4vw, 64px); }
.gap-below-sm { margin-bottom: 14px; }
.rule-top { border-top: 1px solid var(--rule-dark); }
.on-ink { background: var(--ink); }
.byline { color: rgba(255, 255, 255, 0.5); font-size: 0.9375rem; margin-top: 18px; }
.on-dark-strong { color: var(--white); font-weight: 700; }
.on-dark-link { color: var(--white); }
.btn-on-lime { border-color: var(--ink); color: var(--ink); }
.btn-on-lime:hover { background: var(--ink); color: var(--lime); }

/* Ruled link rows used for area and quick-link lists. */
.rowlink {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid var(--rule-light);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.rowlink svg { width: 19px; height: 19px; color: var(--lime); flex: none; }
.rowlink:hover { color: var(--body); }
.dark .rowlink { color: var(--white); border-bottom-color: var(--rule-dark); }

/* --------------------------------------------- full-bleed article figure --- */
/* One deliberate compositional break inside a long-form guide: the narrow
   reading column closes, a wide image runs, the column resumes. */
.bleed {
  margin: 0 0 clamp(30px, 4vw, 52px);
  padding-inline: var(--edge);
}
.bleed img { width: 100%; border-radius: var(--r-lg); max-height: 62vh; object-fit: cover; }
.bleed figcaption {
  max-width: 900px;
  margin: 14px auto 0;
  font-size: 0.9375rem;
  color: var(--body);
  line-height: 1.55;
}

/* ------------------------------------------------------------------ faq --- */
.faq { max-width: 980px; margin-inline: auto; }
.faq-panel {
  background: var(--bone);
  border-radius: var(--r-lg);
  padding: clamp(26px, 4vw, 60px);
}
.dark .faq-panel { background: var(--panel); }
.acc { border-top: 1px solid var(--rule-light); }
.dark .acc { border-color: var(--rule-dark); }
.acc details { border-bottom: 1px solid var(--rule-light); }
.dark .acc details { border-bottom-color: var(--rule-dark); }
.acc summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(18px, 2.2vw, 26px) 0;
  font-size: clamp(1.0625rem, 1.6vw, 1.375rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}
.dark .acc summary { color: var(--white); }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .sign {
  flex: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--rule-light);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.dark .acc summary .sign { border-color: var(--rule-dark); }
.acc summary .sign svg { width: 14px; height: 14px; }
.acc details[open] summary .sign { transform: rotate(180deg); background: var(--lime); border-color: var(--lime); color: var(--ink); }
.acc .answer { padding-bottom: clamp(18px, 2.2vw, 28px); max-width: 78ch; }

/* ------------------------------------------------------------- CTA band --- */
.cta { background: var(--ink); }
.cta .h2 { color: var(--white); }
.cta p { color: var(--body-dark); max-width: 62ch; margin-top: 18px; }
.cta-pill {
  margin-top: clamp(28px, 4vw, 46px);
  background: var(--lime);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3.4vw, 40px) clamp(24px, 4vw, 52px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px clamp(24px, 4vw, 48px);
}
.cta-pill .num {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: clamp(1.625rem, 3.6vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
  padding: 10px 0;
}
.cta-pill .num svg { width: clamp(24px, 3vw, 38px); height: clamp(24px, 3vw, 38px); }
.cta-pill .num:hover { text-decoration: underline; text-underline-offset: 6px; }
.cta-pill .aside { color: rgba(20, 20, 20, 0.78); font-weight: 500; max-width: 34ch; margin: 0; }

/* ----------------------------------------------------------------- form --- */
.form-panel {
  background: var(--panel);
  border-radius: var(--r-lg);
  padding: clamp(26px, 4vw, 52px);
}
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 8px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1.0625rem;
  color: var(--white);
  background: transparent;
  border: 1px solid var(--rule-dark);
  border-radius: 12px;
  padding: 13px 16px;
}
.field textarea { min-height: 132px; resize: vertical; }
/* 0.34 alpha composites to about 2.8:1 on the panel, which is below AA for text
   a user has to read before typing. 0.55 lands at 5.4:1. */
.field input::placeholder, .field textarea::placeholder { color: rgba(255, 255, 255, 0.55); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--lime); outline: none; }
.field select option { background: var(--ink); color: var(--white); }
.form-note { font-size: 0.875rem; color: rgba(255, 255, 255, 0.5); margin-top: 16px; }
.form-note a { color: rgba(255, 255, 255, 0.8); }

/* ------------------------------------------------------------------ map --- */
.map-frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--rule-light);
  aspect-ratio: 16 / 10;
  background: var(--bone);
}
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-caption { font-size: 0.9375rem; margin-top: 14px; color: var(--body); }

/* --------------------------------------------------------------- footer --- */
.ftr { background: var(--ink-deep); color: rgba(255, 255, 255, 0.6); }
.ftr .wrap { padding-block: clamp(44px, 6vw, 84px); }

/* The location map ships in the footer on every page. */
.ftr-map {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 1.35fr;
  gap: clamp(24px, 3.4vw, 48px);
  align-items: center;
  padding-bottom: clamp(40px, 5vw, 64px);
  margin-bottom: clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--rule-dark);
}
/* Outranks the .ftr h2 column-heading style, which is a small uppercase lime label. */
.ftr .ftr-map-text h2 {
  color: var(--white);
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-transform: none;
  font-weight: 700;
  margin-bottom: 14px;
}
.ftr-map-text p { font-size: 1rem; line-height: 1.65; margin-bottom: 8px; max-width: 34ch; }
.ftr-map-text .btn { margin-top: 18px; }
.ftr-map-frame { border-color: var(--rule-dark); aspect-ratio: 16 / 9; }
.ftr-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: clamp(28px, 4vw, 56px);
}
.ftr h2 { font-size: 1rem; color: var(--lime); letter-spacing: 0.13em; text-transform: uppercase; margin-bottom: 18px; font-weight: 700; }
.ftr ul { list-style: none; margin: 0; padding: 0; }
.ftr li { margin-bottom: 2px; }
/* Block links with real vertical padding: a 22px text line is not a tap target. */
.ftr li a { display: block; padding: 9px 0; }
/* A container default must never outrank a component that sets its own colour.
   `.ftr a` is 0-1-1 and beat both `.btn-primary` (0-1-0) and `.ftr-phone` (0-1-0),
   repainting the footer estimate button's label 72% white on lime: 1.47:1.
   `:where()` drops the container to 0-0-1, so any component inside the footer keeps
   the colour its own class gives it. */
:where(.ftr) a { color: rgba(255, 255, 255, 0.72); text-decoration: none; }
:where(.ftr) a:hover { color: var(--lime); }
.ftr-phone:hover { color: var(--lime); }
.ftr-brand .brand-mark { height: 44px; width: auto; margin-bottom: 16px; }
.ftr-brand p { max-width: 40ch; font-size: 0.9375rem; }
.ftr address { font-style: normal; font-size: 0.9375rem; line-height: 2.1; }
.ftr address a { display: inline-block; padding: 6px 0; }
.ftr-phone { display: inline-flex; align-items: center; gap: 10px; color: var(--white); font-weight: 700; font-size: 1.25rem; text-decoration: none; margin-bottom: 8px; padding: 6px 0; }
.ftr-phone svg { width: 19px; height: 19px; color: var(--lime); }
.ftr-bar {
  border-top: 1px solid var(--rule-dark);
  font-size: 0.875rem;
}
.ftr-bar .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  align-items: center;
  justify-content: space-between;
  padding-block: 22px;
}
.ftr-bar ul { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; margin: 0; padding: 0; }
.ftr-bar li { margin: 0; }

/* -------------------------------------------------- sticky mobile call --- */
.callbar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 100;
  background: var(--lime);
  border-top: 1px solid rgba(20, 20, 20, 0.16);
}
.callbar div { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 9px 12px; align-items: center; }
.callbar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-decoration: none;
  font-weight: 700;
  color: var(--ink);
  padding: 11px 16px;
  border-radius: var(--r-pill);
  font-size: 1rem;
}
.callbar a.sec { background: var(--ink); color: var(--lime); }
.callbar svg { width: 17px; height: 17px; }

/* --------------------------------------------------------- reveal motion ---
   Nothing is hidden by default. site.js adds .js-reveal only once it has
   confirmed this browser can reveal the content again, and it carries a
   failsafe. A section can therefore never be trapped at opacity 0. */
.rv { transition: opacity 0.6s ease, transform 0.6s ease; }
html.js-reveal .rv { opacity: 0; transform: translateY(18px); }
html.js-reveal .rv.in { opacity: 1; transform: none; }
html.reveal-off .rv { transition: none !important; opacity: 1 !important; transform: none !important; }

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

/* ---------------------------------------------------------- breakpoints ---
   Four steps: 1080 (footer), 900 (nav becomes a drawer, two-up becomes one-up),
   720 (sticky call bar appears), 520 (header collapses to icons).
   Nothing below relies on a fixed pixel width, so no breakpoint can produce
   horizontal overflow. */

@media (max-width: 1080px) {
  .ftr-grid { grid-template-columns: 1fr 1fr; }
}

/* Above the drawer's breakpoint the whole off-canvas mechanism does not exist:
   the panel and its scrim are removed from the render tree entirely, so its
   close control is never a dead control on desktop. */
@media (min-width: 901px) {
  .drawer, .scrim { display: none; }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .burger { display: inline-flex; }
  .split { grid-template-columns: 1fr; }
  /* On mobile a split row must always lead with the image, so it still breaks
     up the prose. DESIGN-DNA.md §9. */
  .split.reverse .split-media { order: 0; }
  .cols-3 { grid-template-columns: 1fr; }
  .fact { grid-template-columns: 1fr; }
  .seq-row { grid-template-columns: 1fr; }
  .idx .num { width: 28px; }
}

@media (max-width: 720px) {
  body { padding-bottom: 68px; }
  .callbar { display: block; }
  .util .u-hours { display: none; }
  .util .wrap { justify-content: center; }
  .cols-2 { grid-template-columns: 1fr; }
  .cta-pill { flex-direction: column; align-items: flex-start; }
  .idx .scope { font-size: 0.875rem; }
  .ftr-grid { grid-template-columns: 1fr; gap: 30px; }
  .ftr-bar .wrap { justify-content: flex-start; }
  .ftr-map { grid-template-columns: 1fr; }
  .ftr-map-frame { aspect-ratio: 4 / 3; }
}

/* The header has to fit a logo, a wordmark, a call control and a menu button.
   Below this width the call control drops its label and keeps its accessible
   name in aria-label, which is what stops the document overflowing sideways. */
@media (max-width: 520px) {
  .brand-word em { display: none; }
  .brand-mark { height: 28px; }
  .brand-word { font-size: 0.9375rem; }
  .hdr-call-label { display: none; }
  .hdr-call { padding: 12px; }
  .hdr .wrap { gap: 12px; }
  .hero-strip ul { gap: 8px 18px; font-size: 0.875rem; }
  .idx .num { display: none; }
  .btn { width: 100%; justify-content: center; }
  .btn-row { display: grid; grid-template-columns: 1fr; gap: 12px; }
  .callbar div { grid-template-columns: 1fr auto; }
}

/* Very narrow phones: keep the wordmark from crowding the controls. */
@media (max-width: 380px) {
  .brand-word { font-size: 0.875rem; }
  .callbar a { font-size: 0.9375rem; padding: 11px 12px; }
}

/* Below 340 the header asks for more width than it has: gutter + lockup + call
   control + menu button exceeded 320 by 19px. A shrinkable menu button hid that
   by compressing to 27px, and pinning its size only moved the shortfall into the
   clip. Neither is a fix, so the demand comes down here instead: the lockup and
   the two gaps give back more than the shortfall, and every control keeps its
   full size and its 16px gutter. */
@media (max-width: 359px) {
  .hdr .wrap { gap: 8px; }
  .brand { gap: 8px; }
  .brand-word { font-size: 0.8125rem; }
}

/* ------------------------------------------------------------------ print - */
@media print {
  .hdr, .util, .drawer, .scrim, .callbar, .cta, .ftr { display: none !important; }
  body { color: #000; padding-bottom: 0; }
  html.js-reveal .rv { opacity: 1 !important; transform: none !important; }
}
