/* ==========================================================================
   Nick's Contracting
   Palette comes from the jobs themselves: charcoal brick, pale block,
   limestone, and the hi-vis orange of a mason's string line.
   ========================================================================== */

:root {
  --char: #1c1d1f;
  --char-2: #26282b;
  --char-3: #3a3d41;
  --footer: #121314;
  --stone: #f3f2ef;
  --mortar: #e6e4df;
  --white: #ffffff;
  --block: #8b8e8c;
  --text: #1c1d1f;
  --text-soft: #4a4d50;
  --on-dark: #f3f2ef;
  --on-dark-soft: rgba(243, 242, 239, 0.74);
  --orange: #ff6a1a;
  --orange-hover: #ff8340;
  --orange-deep: #a33600; /* orange for text on light backgrounds (AA+) */
  --line: rgba(28, 29, 31, 0.14);
  --line-dark: rgba(243, 242, 239, 0.16);

  --display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --sans: "Hanken Grotesk", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --nav: 76px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 4px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  /* running-bond brick, drawn as hairlines */
  --bond: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='48'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.045' stroke-width='1'%3E%3Cpath d='M0 .5h96M0 24.5h96M.5 0v24M48.5 24v24'/%3E%3C/g%3E%3C/svg%3E");
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--stone);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.wrap {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  background: var(--orange);
  color: var(--char);
  font-weight: 700;
}
.skip:focus { top: 1rem; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

section[id] { scroll-margin-top: calc(var(--nav) - 4px); }

/* ---------- Type ---------- */

h1, h2, h3 {
  font-family: var(--display);
  font-stretch: 108%;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.02;
  text-wrap: balance;
}

h2 { font-size: clamp(2.1rem, 4.6vw, 3.75rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.015em; line-height: 1.15; }

p { text-wrap: pretty; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-deep);
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 1.75rem;
  height: 2px;
  background: currentColor;
}

.hero .eyebrow,
.work .eyebrow,
.estimate .eyebrow { color: var(--orange); }

.section-head { max-width: 40rem; }
.section-head h2 + p { margin-top: 1.1rem; color: var(--text-soft); font-size: 1.1rem; }
.work .section-head h2 + p { color: var(--on-dark-soft); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 54px;
  padding: 0.85rem 1.5rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.btn svg { width: 1.15rem; height: 1.15rem; flex: none; }
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--orange); color: var(--char); }
.btn-primary:hover { background: var(--orange-hover); }

.btn-outline { background: transparent; color: var(--on-dark); border-color: rgba(243, 242, 239, 0.4); }
.btn-outline:hover { border-color: var(--orange); color: var(--orange); }

.btn-dark { color: var(--text); border-color: var(--char); }
.btn-dark:hover { background: var(--char); color: var(--orange); border-color: var(--char); }

.btn-full { width: 100%; }

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav);
  color: var(--on-dark);
  transition: background-color 0.3s, box-shadow 0.3s;
}
.nav.is-solid {
  background: rgba(28, 29, 31, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line-dark);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin-right: auto;
  text-decoration: none;
}
.brand img { width: 40px; height: auto; }
.brand-text { display: block; line-height: 1; }
.brand-text strong {
  display: block;
  font-family: var(--display);
  font-stretch: 112%;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}
.brand-text em {
  display: block;
  margin-top: 0.28rem;
  font-family: var(--mono);
  font-style: normal;
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
}

.nav-links { display: flex; gap: 2rem; }
.nav-links a {
  position: relative;
  padding: 0.4rem 0;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--on-dark-soft);
  transition: color 0.2s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-links a:hover,
.nav-links a.is-on { color: var(--on-dark); }
.nav-links a:hover::after,
.nav-links a.is-on::after { transform: scaleX(1); }

.nav-call {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.62rem 1.05rem;
  border-radius: var(--radius);
  background: var(--orange);
  color: var(--char);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background-color 0.2s;
}
.nav-call:hover { background: var(--orange-hover); }
.nav-call svg { width: 1.05rem; height: 1.05rem; }

.nav-toggle {
  display: none;
  position: relative;
  width: 46px; height: 46px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.nav-toggle i {
  position: absolute;
  left: 11px; right: 11px;
  height: 2px;
  background: var(--on-dark);
  transition: transform 0.25s var(--ease), top 0.25s var(--ease);
}
.nav-toggle i:nth-of-type(1) { top: 18px; }
.nav-toggle i:nth-of-type(2) { top: 26px; }
.nav-toggle[aria-expanded="true"] i:nth-of-type(1) { top: 22px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] i:nth-of-type(2) { top: 22px; transform: rotate(-45deg); }

/* the string line: page progress */
.progress {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  opacity: 0;
  transition: opacity 0.3s;
}
.nav.is-solid .progress { opacity: 1; }
.progress i {
  display: block;
  height: 100%;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
}

.mobile-menu {
  position: fixed;
  inset: var(--nav) 0 0 0;
  z-index: 49;
  display: flex;
  flex-direction: column;
  padding: 1rem var(--gutter) 2rem;
  background: var(--char);
  color: var(--on-dark);
  overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--display);
  font-stretch: 108%;
  font-weight: 800;
  font-size: 1.9rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.mobile-menu .mobile-call {
  margin-top: 1.5rem;
  padding: 1rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--orange);
  color: var(--char);
  font-family: var(--sans);
  font-stretch: 100%;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0;
  text-align: center;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(100svh, 980px);
  padding: calc(var(--nav) + 2.5rem) 0 4rem;
  background:
    radial-gradient(900px 520px at 85% 40%, rgba(255, 106, 26, 0.09), transparent 70%),
    var(--bond),
    var(--char);
  color: var(--on-dark);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}

.hero h1 {
  font-size: clamp(2.9rem, 6vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

/* the string line, pulled taut between two line blocks */
.string {
  position: relative;
  height: 2px;
  margin: 1.9rem 0 1.7rem;
  background: var(--orange);
  transform-origin: left;
}
.string::before,
.string::after {
  content: "";
  position: absolute;
  top: -7px;
  width: 7px;
  height: 16px;
  border-radius: 1px;
  background: var(--stone);
}
.string::before { left: 0; }
.string::after { right: 0; }

.lede {
  max-width: 34rem;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.6;
  color: var(--on-dark-soft);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.hero-note {
  margin-top: 1.4rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(243, 242, 239, 0.55);
}

.hero-art {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  min-width: 0;
}
.art {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--char-2);
}
.art img { width: 100%; height: 100%; object-fit: cover; }
.art-tall { grid-row: 1 / 3; }
.art-top { aspect-ratio: 4 / 3; }
.art-bot { aspect-ratio: 1 / 1; }
.art figcaption {
  position: absolute;
  left: 0.7rem; bottom: 0.7rem;
  padding: 0.3rem 0.6rem;
  border-radius: 2px;
  background: rgba(18, 19, 20, 0.78);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark);
}

/* hero entrance: one orchestrated moment */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes settle { from { opacity: 0; transform: translateY(30px) scale(0.985); } to { opacity: 1; transform: none; } }

.hero-copy > * { animation: rise 0.8s var(--ease) both; }
.hero-copy > .eyebrow { animation-delay: 0.05s; }
.hero-copy > h1 { animation-delay: 0.15s; }
.hero-copy > .string { animation: draw 1s var(--ease) 0.45s both; }
.hero-copy > .lede { animation-delay: 0.6s; }
.hero-copy > .hero-actions { animation-delay: 0.72s; }
.hero-copy > .hero-note { animation-delay: 0.84s; }
.art { animation: settle 0.9s var(--ease) both; }
.art-tall { animation-delay: 0.3s; }
.art-top { animation-delay: 0.45s; }
.art-bot { animation-delay: 0.6s; }

/* ---------- Craft ---------- */

.craft { padding: clamp(4.5rem, 9vw, 8rem) 0; background: var(--stone); }
.craft-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.craft-photo { position: relative; }
.craft-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 40% 50%;
  border-radius: var(--radius);
}
.craft-photo figcaption {
  margin-top: 0.8rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.craft-copy h2 { max-width: 16ch; }
.craft-lede { max-width: 36rem; margin-top: 1.4rem; font-size: 1.12rem; color: var(--text-soft); }

.principles { margin-top: 2.4rem; border-top: 1px solid var(--line); }
.principles li {
  display: grid;
  grid-template-columns: 3.4rem 1fr;
  gap: 1.4rem;
  align-items: start;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
}
.principles svg { width: 3.4rem; height: 3.4rem; color: var(--orange-deep); stroke-width: 1.5; }
.principles h3 { margin-bottom: 0.3rem; }
.principles p { color: var(--text-soft); max-width: 30rem; }

/* ---------- Services ---------- */

.services { padding: clamp(4.5rem, 9vw, 8rem) 0; background: var(--mortar); }
.services .section-head { margin-bottom: clamp(2rem, 4vw, 3.4rem); }

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 1px 0 rgba(28, 29, 31, 0.06), 0 12px 28px -18px rgba(28, 29, 31, 0.35);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 1px 0 rgba(28, 29, 31, 0.06), 0 22px 40px -20px rgba(28, 29, 31, 0.45); }
.card > img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.card:hover > img { transform: scale(1.03); }
.card > img.pos-window { object-position: 45% 30%; }
.card > img.pos-stone { object-position: 45% 40%; }
.card > img.pos-porch { object-position: 30% 22%; }

.card-body { display: flex; flex-direction: column; flex: 1; padding: 1.4rem 1.5rem 1.5rem; }
.card h3 { font-size: 1.45rem; }
.card p { margin-top: 0.6rem; color: var(--text-soft); font-size: 1rem; }

.card-link {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 1.1rem;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--orange-deep);
}
.card-link span { display: inline-block; transition: transform 0.25s var(--ease); }
.card-link:hover span { transform: translateX(5px); }
.card-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.card-stack { display: grid; grid-template-rows: 1fr 1fr; gap: 1.25rem; }
.card-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.6rem 1.5rem;
  background: var(--char);
  color: var(--on-dark);
  box-shadow: none;
}
.card-text p { color: var(--on-dark-soft); }
.card-text .card-link { margin-top: 0; color: var(--orange); }

/* ---------- Work ---------- */

.work {
  padding: clamp(4.5rem, 9vw, 8rem) 0;
  background: var(--bond), var(--char);
  color: var(--on-dark);
}
.work-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  min-height: 44px;
  padding: 0.5rem 1.15rem;
  border: 1.5px solid rgba(243, 242, 239, 0.28);
  border-radius: 999px;
  background: transparent;
  color: var(--on-dark);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.chip:hover { border-color: var(--orange); color: var(--orange); }
.chip.is-on { background: var(--orange); border-color: var(--orange); color: var(--char); }

.gallery {
  --row: clamp(104px, 11.6vw, 140px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: var(--row);
  gap: 1rem;
}
.tile { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--char-2); }
.tile.tall { grid-row: span 4; }
.tile.wide { grid-row: span 2; }
.tile[hidden] { display: none; }
.tile button {
  position: relative;
  display: block;
  width: 100%; height: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: zoom-in;
}
.tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.tile img.pos-stone-tall { object-position: 38% 50%; }
.tile button:hover img { transform: scale(1.04); }
.tile figcaption {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 3rem 1rem 0.95rem;
  background: linear-gradient(to top, rgba(12, 12, 13, 0.82), rgba(12, 12, 13, 0));
  color: var(--on-dark);
}
.tile figcaption strong { font-family: var(--display); font-stretch: 108%; font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; }
.tile figcaption span { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange); }

/* filtered: simple, even tiles */
.gallery.is-filtered { grid-auto-rows: auto; }
.gallery.is-filtered .tile { grid-row: auto; aspect-ratio: 4 / 3; }

.work-cta { margin-top: 2.5rem; text-align: center; }

/* ---------- Process ---------- */

.process { padding: clamp(4.5rem, 9vw, 8rem) 0; background: var(--stone); }
.process .section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  counter-reset: step;
}
/* string line running through the steps */
.steps::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 1.5rem;
  height: 2px;
  background: var(--orange);
}
.step-n {
  position: relative;
  display: grid;
  place-items: center;
  width: 3rem; height: 3rem;
  margin-bottom: 1.5rem;
  border-radius: 50%;
  background: var(--char);
  color: var(--orange);
  font-family: var(--display);
  font-stretch: 108%;
  font-weight: 800;
  font-size: 1.25rem;
  box-shadow: 0 0 0 6px var(--stone);
}
.steps h3 { font-size: 1.35rem; }
.steps p { margin-top: 0.6rem; color: var(--text-soft); max-width: 18rem; }

/* ---------- FAQ ---------- */

.faq { padding: clamp(4.5rem, 9vw, 8rem) 0; background: var(--mortar); }
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.faq .section-head { position: sticky; top: calc(var(--nav) + 2rem); }
.faq .btn { margin-top: 1.8rem; }

.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  position: relative;
  padding: 1.35rem 3rem 1.35rem 0;
  font-family: var(--display);
  font-stretch: 104%;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before,
.faq-list summary::after {
  content: "";
  position: absolute;
  right: 0.35rem; top: 50%;
  width: 1rem; height: 2px;
  background: var(--orange-deep);
  transition: transform 0.3s var(--ease);
}
.faq-list summary::after { transform: rotate(90deg); }
.faq-list details[open] summary::after { transform: rotate(0); }
.faq-list details p { padding: 0 3rem 1.5rem 0; color: var(--text-soft); max-width: 40rem; }

/* ---------- Estimate ---------- */

.estimate {
  padding: clamp(4.5rem, 9vw, 8rem) 0;
  background:
    radial-gradient(800px 480px at 10% 0%, rgba(255, 106, 26, 0.1), transparent 70%),
    var(--bond),
    var(--char);
  color: var(--on-dark);
}
.estimate-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.estimate h2 { font-size: clamp(2.4rem, 5.4vw, 4.6rem); max-width: 12ch; }
.estimate-lede { max-width: 28rem; margin-top: 1.3rem; font-size: 1.12rem; color: var(--on-dark-soft); }

.phone-block {
  display: inline-flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 2.2rem 0 2rem;
  text-decoration: none;
  font-family: var(--display);
  font-stretch: 112%;
  font-weight: 800;
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--orange);
  transition: color 0.2s;
}
.phone-block span {
  font-family: var(--mono);
  font-stretch: 100%;
  font-weight: 500;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
}
.phone-block:hover { color: var(--orange-hover); }

.contact-list { display: grid; gap: 0.9rem; max-width: 28rem; padding-top: 1.6rem; border-top: 1px solid var(--line-dark); }
.contact-list li { display: flex; gap: 0.8rem; align-items: flex-start; color: var(--on-dark-soft); }
.contact-list svg { flex: none; width: 1.3rem; height: 1.3rem; margin-top: 0.2rem; color: var(--orange); }
.contact-list a { color: var(--on-dark); text-underline-offset: 4px; }
.contact-list a:hover { color: var(--orange); }

.ticket {
  display: grid;
  gap: 1.1rem;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border-radius: var(--radius);
  background: var(--stone);
  color: var(--text);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6);
}
.ticket-title { font-size: 1.6rem; }
.ticket-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.ticket label { display: grid; gap: 0.4rem; min-width: 0; }
.ticket label span { font-size: 0.86rem; font-weight: 700; }
.ticket label em { font-style: normal; font-weight: 500; color: var(--text-soft); }

.ticket input,
.ticket select,
.ticket textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid rgba(28, 29, 31, 0.28);
  border-radius: var(--radius);
  background: var(--white);
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ticket textarea { resize: vertical; min-height: 132px; }
.ticket input:hover, .ticket select:hover, .ticket textarea:hover { border-color: rgba(28, 29, 31, 0.55); }
.ticket input:focus-visible, .ticket select:focus-visible, .ticket textarea:focus-visible {
  outline: none;
  border-color: var(--char);
  box-shadow: 0 0 0 3px rgba(255, 106, 26, 0.55);
}
.ticket.was-submitted :is(input, select, textarea):invalid { border-color: #b3261e; }

.form-note { font-size: 0.88rem; color: var(--text-soft); }
.form-error { font-size: 0.92rem; font-weight: 600; color: #b3261e; }
.form-done {
  padding: 1.2rem 1.3rem;
  border-radius: var(--radius);
  background: var(--char);
  color: var(--on-dark);
}
.form-done[hidden], .form-error[hidden] { display: none; }
.form-done strong { font-family: var(--display); font-stretch: 108%; font-size: 1.2rem; }
.form-done p { margin-top: 0.4rem; font-size: 0.95rem; color: var(--on-dark-soft); }
.form-done-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }
.form-done .btn { min-height: 46px; padding: 0.55rem 1.1rem; font-size: 0.95rem; }

/* ---------- Footer ---------- */

.footer { background: var(--footer); color: var(--on-dark); padding-top: clamp(3rem, 6vw, 5rem); }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem;
}
.footer-brand p { max-width: 24rem; margin-top: 1.1rem; color: var(--on-dark-soft); font-size: 0.98rem; }
.footer-brand .creed {
  margin-top: 1.4rem;
  font-family: var(--display);
  font-stretch: 108%;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  color: var(--orange);
}
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 0.55rem; color: var(--on-dark-soft); }
.footer-col h4 {
  margin: 0 0 0.5rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
}
.footer-col a { text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: var(--orange); }
.footer-col .footer-phone {
  font-family: var(--display);
  font-stretch: 110%;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--on-dark);
}
.footer-base {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.4rem;
  padding-bottom: 1.8rem;
  border-top: 1px solid var(--line-dark);
  font-size: 0.85rem;
  color: rgba(243, 242, 239, 0.55);
}

/* ---------- Mobile dock ---------- */

.dock {
  display: none;
  position: fixed;
  left: 0.75rem; right: 0.75rem;
  bottom: calc(0.75rem + env(safe-area-inset-bottom));
  z-index: 40;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: 10px;
  background: rgba(18, 19, 20, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transform: translateY(140%);
  transition: transform 0.4s var(--ease);
}
.dock.is-on { transform: none; }
.dock a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 50px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
}
.dock svg { width: 1.1rem; height: 1.1rem; }
.dock-call { flex: 1; background: var(--orange); color: var(--char); }
.dock-est { flex: 1; border: 1.5px solid rgba(243, 242, 239, 0.35); color: var(--on-dark); }

/* ---------- Lightbox ---------- */

.lightbox {
  width: min(1100px, 94vw);
  max-width: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--on-dark);
  overflow: visible;
}
.lightbox::backdrop { background: rgba(10, 10, 11, 0.92); }
.lightbox figure { display: grid; gap: 0.8rem; }
.lightbox img { width: 100%; max-height: 80vh; object-fit: contain; border-radius: var(--radius); }
.lightbox figcaption { text-align: center; font-size: 0.95rem; color: var(--on-dark-soft); }
.lb-close, .lb-nav {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(243, 242, 239, 0.14);
  color: var(--on-dark);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.lb-close:hover, .lb-nav:hover { background: var(--orange); color: var(--char); }
.lb-close { top: -3.4rem; right: 0; }
.lb-nav { top: 40%; padding-bottom: 0.25rem; }
.lb-prev { left: -4rem; }
.lb-next { right: -4rem; }

/* ---------- Scroll reveal (only when JS is on) ---------- */

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .service-grid .reveal:nth-child(3n+2) { transition-delay: 0.08s; }
.js .service-grid .reveal:nth-child(3n+3) { transition-delay: 0.16s; }
.js .steps .reveal:nth-child(2) { transition-delay: 0.1s; }
.js .steps .reveal:nth-child(3) { transition-delay: 0.2s; }
.js .steps .reveal:nth-child(4) { transition-delay: 0.3s; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1100px) {
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-stack { grid-template-rows: none; grid-template-columns: 1fr 1fr; grid-column: 1 / -1; }
  .nav-links { gap: 1.4rem; }
}

@media (max-width: 980px) {
  :root { --nav: 68px; }

  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-inner { gap: 0.5rem; }
  .nav-call { width: 46px; height: 46px; padding: 0; justify-content: center; border-radius: 50%; }
  .nav-call span { display: none; }
  .nav-call svg { width: 1.25rem; height: 1.25rem; }
  .nav { background: linear-gradient(to bottom, rgba(18, 19, 20, 0.7), transparent); }

  .hero { min-height: 0; padding: calc(var(--nav) + 1.6rem) 0 3rem; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 2.2rem; }
  .hero h1 { font-size: clamp(2.5rem, 10.5vw, 4rem); }
  .string { margin: 1.5rem 0 1.3rem; }

  .craft-grid, .faq-grid, .estimate-grid { grid-template-columns: minmax(0, 1fr); }
  .craft-photo img { aspect-ratio: 4 / 3; }
  .craft-copy h2 { max-width: none; }
  .faq .section-head { position: static; }

  .steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .steps::before { left: 1.5rem; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .steps li { position: relative; padding: 0 0 2.2rem 4.4rem; }
  .steps li:last-child { padding-bottom: 0; }
  .step-n { position: absolute; left: 0; top: 0; margin: 0; }
  .steps p { max-width: 30rem; }

  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-brand { grid-column: 1 / -1; }

  .dock { display: flex; }
  .footer { padding-bottom: 5.5rem; }
}

@media (max-width: 700px) {
  body { font-size: 1.02rem; }

  .hero-actions .btn { width: 100%; }
  .hero-note { line-height: 1.7; }
  .hero-art { gap: 0.55rem; }
  .art figcaption { left: 0.5rem; bottom: 0.5rem; font-size: 0.6rem; padding: 0.22rem 0.45rem; }

  .service-grid { grid-template-columns: minmax(0, 1fr); }
  .card-stack { grid-template-columns: minmax(0, 1fr); }
  .card > img { aspect-ratio: 16 / 11; }

  .ticket-row { grid-template-columns: minmax(0, 1fr); }
  .principles li { grid-template-columns: 2.8rem 1fr; gap: 1rem; }
  .principles svg { width: 2.8rem; height: 2.8rem; }

  .faq-list summary { font-size: 1.05rem; padding-right: 2.4rem; }
  .faq-list details p { padding-right: 0; }

  /* gallery becomes a swipeable strip */
  .work-head { align-items: flex-start; }
  .gallery,
  .gallery.is-filtered {
    display: flex;
    gap: 0.75rem;
    margin-inline: calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 0.4rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery .tile,
  .gallery.is-filtered .tile {
    flex: 0 0 78%;
    aspect-ratio: 4 / 5;
    grid-row: auto;
    scroll-snap-align: start;
  }

  .lb-nav { top: auto; bottom: -3.6rem; }
  .lb-prev { left: calc(50% - 4rem); }
  .lb-next { right: calc(50% - 4rem); }
  .lightbox figcaption { padding-bottom: 4rem; }

  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
