/* ==========================================================================
   Mural Machine
   Palette is drawn from the job itself: primed plaster for the page,
   the machine's own CMYK ink set for every accent.
   ========================================================================== */

:root {
  --plaster:      #E7E5E0;
  --plaster-deep: #D9D6CF;
  --plaster-lit:  #F2F1ED;
  --ink:          #16181C;
  --ink-soft:     #4E535C;
  --cyan:         #0093D3;
  --magenta:      #D6006E;
  --yellow:       #F5C400;

  --measure: 66ch;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --stack: clamp(4rem, 9vw, 8rem);

  --display: "Archivo Black", "Helvetica Neue", Arial, sans-serif;
  --text: "Archivo", "Helvetica Neue", Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--plaster);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-synthesis-weight: none;
}

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

a { color: inherit; }

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

.wrap {
  width: min(1180px, 100%);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: #fff;
  padding: .75rem 1rem; z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }

/* --- Press bar: the registration strip you'd find on a press sheet.
       Used as the one recurring structural mark on the page. -------------- */
.pressbar {
  display: flex;
  height: 7px;
  width: 100%;
}
.pressbar span { flex: 1; }
.pressbar span:nth-child(1) { background: var(--cyan); }
.pressbar span:nth-child(2) { background: var(--magenta); }
.pressbar span:nth-child(3) { background: var(--yellow); }
.pressbar span:nth-child(4) { background: var(--ink); }

/* --- Type ------------------------------------------------------------- */
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.02; letter-spacing: -0.015em; margin: 0; }

h1 {
  font-size: clamp(2.9rem, 9.5vw, 6.6rem);
  letter-spacing: -0.03em;
}
h2 { font-size: clamp(1.9rem, 4.6vw, 3.1rem); }
h3 { font-size: 1.0625rem; letter-spacing: 0; line-height: 1.25; }

p { margin: 0 0 1rem; max-width: var(--measure); }
.lede { font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.5; color: var(--ink-soft); }

/* --- Buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .55rem;
  font-family: var(--text); font-weight: 700; font-size: 1rem;
  padding: .95rem 1.6rem;
  border: 2px solid var(--ink);
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s ease, background-color .12s ease, color .12s ease;
}
.btn-primary { background: var(--magenta); border-color: var(--magenta); color: #fff; }
.btn-primary:hover { background: #b30059; border-color: #b30059; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--plaster); }
.btn:active { transform: translateY(1px); }

/* --- Header ------------------------------------------------------------ */
.site-head {
  position: sticky; top: 0; z-index: 40;
  background: rgba(231,229,224,.93);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--plaster-deep);
}
.head-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: .85rem;
}
.wordmark {
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: .19em;
  text-decoration: none;
  white-space: nowrap;
}
.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a { text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav a:not(.btn):hover { text-decoration: underline; text-underline-offset: 4px; }
.nav .btn { padding: .6rem 1.1rem; font-size: .92rem; }
@media (max-width: 800px) {
  .nav a:not(.btn) { display: none; }
}

/* --- Hero -------------------------------------------------------------- */
.hero { padding-top: clamp(3rem, 7vw, 6rem); padding-bottom: var(--stack); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.hero p.lede { margin-top: 1.5rem; max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }
.hero-note { font-size: .9rem; color: var(--ink-soft); margin-top: 1.25rem; }

/* The wall panel: a mural revealed by a print head passing down it. */
.wall {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--plaster-lit);
  border: 1px solid var(--plaster-deep);
  box-shadow: 0 26px 60px -34px rgba(22,24,28,.55);
  overflow: hidden;
}
.wall svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.wall-mask {
  position: absolute; inset: 0;
  background: var(--plaster-lit);
  transform-origin: bottom;
}
.wall-head {
  position: absolute; left: 0; right: 0; top: 0;
  height: 4px; background: var(--magenta);
  box-shadow: 0 0 18px rgba(214,0,110,.55);
  opacity: 0;
}
.wall.is-printing .wall-mask { animation: reveal 2.4s cubic-bezier(.62,.03,.3,1) .35s forwards; }
.wall.is-printing .wall-head { animation: head 2.4s cubic-bezier(.62,.03,.3,1) .35s forwards; }
@keyframes reveal { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(100% 0 0 0); } }
@keyframes head {
  0% { opacity: 0; top: 0; }
  8% { opacity: 1; }
  92% { opacity: 1; }
  100% { opacity: 0; top: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .wall-mask { display: none; }
  .wall-head { display: none; }
}
.wall-caption {
  font-size: .82rem; color: var(--ink-soft);
  margin-top: .7rem; text-align: right;
}

/* --- Section scaffolding ----------------------------------------------- */
section { padding-block: var(--stack); }
section > .wrap > h2 { max-width: 18ch; }
.section-lede { margin-top: 1.1rem; color: var(--ink-soft); font-size: 1.1rem; }

.rule { border: 0; border-top: 1px solid var(--plaster-deep); margin: 0; }

/* --- Claims ------------------------------------------------------------ */
.claims {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(1.75rem, 3.5vw, 3rem);
  margin-top: 3rem;
}
.claim { border-top: 3px solid var(--ink); padding-top: 1rem; }
.claim:nth-child(1) { border-color: var(--cyan); }
.claim:nth-child(2) { border-color: var(--magenta); }
.claim:nth-child(3) { border-color: var(--yellow); }
.claim:nth-child(4) { border-color: var(--ink); }
.claim p { font-size: .97rem; color: var(--ink-soft); margin-top: .6rem; }

/* --- Process (a real sequence, so it is numbered) ---------------------- */
.steps { counter-reset: step; margin-top: 3rem; display: grid; gap: 0; }
.step {
  counter-increment: step;
  display: grid; grid-template-columns: 4.5rem 1fr;
  gap: 1.5rem;
  padding-block: 1.6rem;
  border-top: 1px solid var(--plaster-deep);
  align-items: start;
}
.step:last-child { border-bottom: 1px solid var(--plaster-deep); }
.step::before {
  content: counter(step);
  font-family: var(--display);
  font-size: 2.4rem; line-height: .9;
  color: var(--plaster-deep);
}
.step p { margin: .4rem 0 0; color: var(--ink-soft); font-size: .97rem; }
@media (max-width: 620px) { .step { grid-template-columns: 3rem 1fr; gap: 1rem; } .step::before { font-size: 1.8rem; } }

/* --- Work / gallery ---------------------------------------------------- */
.gallery {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem; margin-top: 3rem;
}
.shot { margin: 0; position: relative; background: var(--plaster-deep); }
.shot img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.shot figcaption {
  font-size: .85rem; color: var(--ink-soft);
  padding-top: .6rem;
}

/* Before / after: responds to the visitor's drag, so the motion is earned */
.compare {
  position: relative; margin-top: 3rem;
  aspect-ratio: 16/9; overflow: hidden;
  background: var(--plaster-deep);
  touch-action: none;
}
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare .after { clip-path: inset(0 0 0 50%); }
.compare-handle {
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 3px; background: var(--magenta); transform: translateX(-50%);
  cursor: ew-resize;
}
.compare-handle::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--magenta); transform: translate(-50%, -50%);
}
.compare-range {
  position: absolute; inset: 0; width: 100%; opacity: 0; cursor: ew-resize; margin: 0;
}
.compare-range:focus-visible + .compare-handle { outline: 3px solid var(--ink); }
.compare-label {
  position: absolute; bottom: .75rem; font-size: .78rem; font-weight: 700;
  background: rgba(22,24,28,.78); color: #fff; padding: .25rem .55rem; border-radius: 2px;
}
.compare-label.l { left: .75rem; }
.compare-label.r { right: .75rem; }

/* --- Sectors ----------------------------------------------------------- */
.sectors { margin-top: 3rem; display: grid; gap: 0; }
.sector {
  display: grid; grid-template-columns: minmax(0, 15rem) 1fr;
  gap: 1.5rem; padding-block: 1.35rem;
  border-top: 1px solid var(--plaster-deep);
}
.sector:last-child { border-bottom: 1px solid var(--plaster-deep); }
.sector p { margin: 0; color: var(--ink-soft); font-size: .97rem; }
@media (max-width: 700px) { .sector { grid-template-columns: 1fr; gap: .35rem; } }

/* --- Pricing ----------------------------------------------------------- */
.price-band { background: var(--ink); color: var(--plaster); }
.price-band h2 { color: var(--plaster-lit); }
.price-band .section-lede { color: #A9AEB6; }
.price-band .rate-note { color: #A9AEB6; }

.rates { width: 100%; border-collapse: collapse; margin-top: 2.5rem; font-size: .97rem; }
.rates caption { text-align: left; font-weight: 700; padding-bottom: .75rem; }
.rates th, .rates td { text-align: left; padding: .85rem .75rem; border-bottom: 1px solid #2C3037; }
.rates th { font-weight: 700; font-size: .85rem; color: #A9AEB6; }
.rates td:first-child { font-weight: 700; }
.rates td:not(:first-child) { white-space: nowrap; }
@media (max-width: 640px) {
  .rates, .rates tbody, .rates tr, .rates td { display: block; width: 100%; }
  .rates thead { display: none; }
  .rates tr { border-bottom: 1px solid #2C3037; padding-block: .75rem; }
  .rates td { border: 0; padding: .15rem .75rem; }
  .rates td[data-label]::before { content: attr(data-label) " — "; color: #A9AEB6; font-weight: 400; }
}

.minimum {
  margin-top: 2.5rem; padding: 1.5rem;
  border: 2px solid var(--yellow);
  max-width: 44rem;
}
.minimum strong { color: var(--yellow); }
.rate-note { font-size: .9rem; margin-top: 1.5rem; }
.price-band .btn-ghost { color: var(--plaster); border-color: var(--plaster); }
.price-band .btn-ghost:hover { background: var(--plaster); color: var(--ink); }

/* --- Trade ------------------------------------------------------------- */
.trade-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem; margin-top: 3rem;
}
.trade-grid p { font-size: .97rem; color: var(--ink-soft); }
.trade-grid h3 { margin-bottom: .5rem; }

/* --- FAQ --------------------------------------------------------------- */
.faq { margin-top: 3rem; max-width: 46rem; }
.faq details { border-top: 1px solid var(--plaster-deep); padding-block: 1.1rem; }
.faq details:last-of-type { border-bottom: 1px solid var(--plaster-deep); }
.faq summary {
  cursor: pointer; font-weight: 700; list-style: none;
  display: flex; justify-content: space-between; gap: 1rem; align-items: baseline;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--display); color: var(--magenta); }
.faq details[open] summary::after { content: "\2013"; }
.faq p { margin: .8rem 0 0; color: var(--ink-soft); font-size: .97rem; }

/* --- Quote form -------------------------------------------------------- */
.quote { background: var(--plaster-lit); border-top: 1px solid var(--plaster-deep); }
.quote-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: start;
}
@media (max-width: 880px) { .quote-grid { grid-template-columns: 1fr; } }

.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: .35rem; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 1rem;
  padding: .75rem .85rem;
  border: 1px solid #B9B5AC; border-radius: 2px;
  background: #fff; color: var(--ink);
}
.field textarea { min-height: 7rem; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--magenta); outline: 2px solid var(--magenta); outline-offset: 0;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: .85rem; color: var(--ink-soft); margin-top: 1rem; }

.contact-direct { margin-top: 2rem; }
.contact-direct a { font-weight: 700; }

/* --- Footer ------------------------------------------------------------ */
.site-foot { background: var(--ink); color: #A9AEB6; padding-block: 3rem 2rem; font-size: .9rem; }
.site-foot .wordmark { color: var(--plaster-lit); display: inline-block; margin-bottom: 1rem; }
.foot-inner { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; }
.site-foot a { color: var(--plaster-lit); }
.foot-legal { font-size: .8rem; margin-top: 2rem; color: #767C86; max-width: 60ch; }

/* --- Thanks page ------------------------------------------------------- */
.thanks { min-height: 60vh; display: grid; place-content: center; text-align: center; }
.thanks p { margin-inline: auto; }

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

/* claims fit */
.claims { grid-template-columns: repeat(auto-fit, minmax(195px, 1fr)); }

/* --- tuning after first live review --- */
h1 { font-size: clamp(2.5rem, 6.2vw, 4.5rem); }
.hero p.lede { max-width: 40ch; }
.wall svg { width: 100% !important; height: 100% !important; }
