/* Iron Mountain Contractors. Theme tokens first, then this page's own classes.
   Never restyle .sc-stage, .sc-copy or [data-sc-*]: those are the engine. */
:root {
  --sc-canvas:     #0E0F10;
  --sc-surface:    #17191B;
  --sc-ink:        #ECEEEF;
  --sc-ink-soft:   #A9AFB3;
  --sc-accent:     #CDD2D5;
  --sc-accent-ink: #0E0F10;
  --sc-font-display: "Geist", system-ui, sans-serif;
  --sc-font-text:    "Geist", system-ui, sans-serif;

  --surface-2: #1F2225;
  --field:     #0E0F10;
  --field-line:#41464A;
  --line:      rgba(205, 210, 213, 0.2);
  --chrome-edge: inset 0 1px 0 rgba(255, 255, 255, 0.55);
  --bar-h: 76px;
  --maxw: 1240px;
  --pad: clamp(20px, 4vw, 24px);
  --gap-section: clamp(104px, 13vw, 176px);
}

body { line-height: 1.65; letter-spacing: 0.005em; }
[hidden] { display: none !important; }

/* Without the engine nothing should stay hidden. */
.no-js [data-sc-in], .no-js [data-sc-stagger] > *, .no-js [data-sc-cue] { opacity: 1; transform: none; }

.skip {
  position: fixed; left: 12px; top: 12px; z-index: 100;
  background: var(--sc-accent); color: var(--sc-accent-ink);
  padding: 10px 16px; border-radius: 999px; font-weight: 600;
  transform: translateY(-160%); transition: transform 200ms var(--sc-ease-out);
}
.skip:focus-visible { transform: none; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-top: var(--gap-section); }
/* Straight after a pinned act the stage needs a viewport to leave; full
   section padding on top of that is a near-empty screen. */
.services.section { padding-top: clamp(40px, 6vw, 72px); }

.h2 {
  margin: 0;
  font-size: clamp(2.2rem, 1.4rem + 3vw, 3.75rem);
  line-height: 1.02; letter-spacing: -0.035em; font-weight: 600;
  text-wrap: balance;
}
.soft { margin: 0; color: var(--sc-ink-soft); text-wrap: pretty; }
.link { font-weight: 500; text-decoration: underline; text-underline-offset: 0.3em; }
.link:hover { color: #fff; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px;
  border: 0; border-radius: 999px;
  background: var(--sc-accent); color: var(--sc-accent-ink);
  font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  box-shadow: var(--chrome-edge), 0 18px 40px -18px rgba(0, 0, 0, 0.8);
  transition: background-color 160ms var(--sc-ease-out), box-shadow 160ms var(--sc-ease-out);
}
.btn:hover { background: #E2E6E8; }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 0.95rem; box-shadow: var(--chrome-edge); }
.btn--lg { min-height: 60px; padding: 0 34px; font-size: 1.125rem; }
.btn--ghost {
  background: transparent; color: var(--sc-ink);
  box-shadow: inset 0 0 0 1.5px #6E7478;
}
.btn--ghost:hover { background: rgba(236, 238, 239, 0.08); }

/* -------------------------------------------------------------------- bar */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--bar-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-inline: max(var(--pad), calc((100vw - var(--maxw)) / 2 + var(--pad)));
  transition: background-color 240ms var(--sc-ease-out), box-shadow 240ms var(--sc-ease-out);
}
.bar.is-solid {
  background: rgba(14, 15, 16, 0.78);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 var(--line);
}
.bar__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 600; font-size: 1.08rem; letter-spacing: -0.005em; white-space: nowrap; }
.bar__brand img { width: 60px; height: 48px; object-fit: contain; }
.bar__nav { display: flex; gap: 28px; font-size: 0.98rem; }
.bar__nav a { text-decoration: none; color: #C4C9CC; }
.bar__nav a:hover { color: #fff; }
.bar__end { display: flex; align-items: center; gap: 20px; }
.bar__phone { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: #C4C9CC; min-height: 44px; }
.bar__phone:hover { color: #fff; }

@media (max-width: 1080px) { .bar__nav { display: none; } }
@media (max-width: 640px) {
  :root { --bar-h: 64px; }
  .bar__brand span { display: none; }
  .bar__brand img { width: 52px; height: 42px; }
  .bar__phone span { display: none; }
  .bar__phone { width: 44px; justify-content: center; border-radius: 999px; box-shadow: inset 0 0 0 1.5px #4C5256; }
  .bar__end { gap: 10px; }
}

/* ------------------------------------------------------------------- hero */
.hero__stage {
  display: flex; flex-direction: column; align-items: center;
  padding: calc(var(--bar-h) + clamp(20px, 5vh, 64px)) 0 clamp(16px, 3vh, 28px);
}
.hero__photo {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
  clip-path: inset(var(--ct, 58%) var(--cr, 24px) var(--cb, 24px) var(--cl, 24px) round var(--cr-r, 22px));
}
.hero__photo img {
  width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 60%;
  transform: translate3d(0, var(--shift, 0px), 0) scale(var(--push, 1)); transform-origin: 50% 58%;
}
.hero__photo--full { clip-path: none; opacity: 0; }
.hero__scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  opacity: var(--open, 0);
  background:
    radial-gradient(120% 80% at 0% 100%, rgba(14, 15, 16, 0.94) 0%, rgba(14, 15, 16, 0.82) 32%, rgba(14, 15, 16, 0.4) 58%, rgba(14, 15, 16, 0) 78%),
    linear-gradient(to top, rgba(14, 15, 16, 0.55) 0%, rgba(14, 15, 16, 0) 45%),
    linear-gradient(to right, rgba(14, 15, 16, 0.62) 0%, rgba(14, 15, 16, 0.42) 40%, rgba(14, 15, 16, 0) 60%);
}

.hero__intro {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--maxw); padding-inline: var(--pad);
  text-align: center; display: flex; flex-direction: column; align-items: center;
  opacity: var(--intro-o, 1); transform: translate3d(0, var(--intro-y, 0px), 0);
}
.hero__title {
  margin: 0; max-width: 12ch;
  font-size: clamp(2.7rem, 1rem + 5.4vw, 5.6rem);
  line-height: 0.98; letter-spacing: -0.04em; font-weight: 600; text-wrap: balance;
}
.hero__lede {
  margin: clamp(16px, 3vh, 28px) 0 0; max-width: 46ch;
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.3rem); line-height: 1.55;
  color: var(--sc-ink-soft); text-wrap: pretty;
}
.hero__ctas { margin-top: clamp(22px, 4vh, 40px); display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* The measured box the photo is clipped to before it opens. Carries the image's
   accessible name and the frame's edge light. */
.hero__frame {
  position: relative; z-index: 1;
  flex: 1 1 auto; min-height: 180px;
  width: calc(100% - 2 * var(--pad)); max-width: calc(var(--maxw) - 2 * var(--pad));
  margin-top: clamp(24px, 4.5vh, 48px);
  border-radius: 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 0 0 1px rgba(205, 210, 213, 0.14);
  opacity: calc(1 - var(--open, 0) * 3);
  pointer-events: none;
}

.hero__inside {
  position: absolute; z-index: 2;
  left: max(var(--pad), calc((100vw - var(--maxw)) / 2 + var(--pad)));
  right: var(--pad);
  bottom: clamp(40px, 11vh, 120px);
  max-width: 40rem;
}
.hero__inside-title {
  margin: 0; font-size: clamp(2.6rem, 1.3rem + 5vw, 5.5rem);
  line-height: 0.98; letter-spacing: -0.04em; font-weight: 600;
}
.hero__trust {
  margin: 24px 0 0; padding: 0; list-style: none;
  display: flex; flex-wrap: wrap; gap: 8px 28px; color: #C9CED1; font-size: 1rem;
}

@media (max-width: 860px) {
  .hero__photo img { object-position: 62% 55%; }
}

/* --------------------------------------------------------------- services */
.services__grid { display: flex; flex-wrap: wrap; gap: 48px 80px; }
.services__lead { flex: 1 1 360px; }
.services__lead .h2 { max-width: 13ch; }
.services__lead .soft { margin-top: 24px; max-width: 40ch; }
.services__list { flex: 999 1 540px; min-width: 0; margin: 0; padding: 0; list-style: none; }
.services__list li {
  display: flex; flex-wrap: wrap; gap: 6px 32px;
  padding: 28px 0; border-top: 1px solid var(--line);
}
.services__list li:last-child { border-bottom: 1px solid var(--line); }
.services__list h3 { margin: 0; flex: 0 0 240px; font-size: 1.5rem; line-height: 1.25; letter-spacing: -0.02em; font-weight: 600; }
.services__list p { margin: 0; flex: 1 1 280px; color: var(--sc-ink-soft); }

/* ------------------------------------------------------------------- work */
.work__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 24px; }
.work__grid { margin-top: 48px; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 20px; }
.tile { margin: 0; min-width: 0; }
.tile--wide { flex: 0 0 calc(58.333% - 10px); }
.tile--narrow { flex: 0 0 calc(41.667% - 10px); }
.tile--drop { margin-top: 96px; }
.tile__frame {
  position: relative; overflow: hidden; border-radius: 18px;
  height: clamp(300px, 36vw, 520px);
  background: var(--sc-surface);
  box-shadow: 0 30px 60px -36px rgba(0, 0, 0, 0.9);
}
.tile--narrow .tile__frame { height: clamp(300px, 29vw, 424px); }
.tile__frame img {
  position: absolute; left: 0; top: -12%;
  width: 100%; height: 124%; max-width: none; object-fit: cover;
}
.tile figcaption { margin-top: 14px; font-size: 0.95rem; color: var(--sc-ink-soft); display: flex; flex-wrap: wrap; gap: 2px 12px; }
.tile figcaption strong { color: var(--sc-ink); font-weight: 500; }
@media (max-width: 860px) {
  .tile--wide, .tile--narrow { flex-basis: 100%; }
  .tile--drop { margin-top: 0; }
}

/* ---------------------------------------------------------------- process */
.process__stage { display: flex; align-items: center; }
.process__title { max-width: 16ch; }
.process__rule {
  position: relative; height: 2px; margin-top: clamp(40px, 7vh, 64px);
  background: rgba(205, 210, 213, 0.16);
}
.process__rule::after {
  content: ""; position: absolute; inset: 0; background: var(--sc-accent);
  transform-origin: 0 50%;
  transform: scaleX(clamp(0, calc(var(--sc-p, 0) * 2.4), 1));
}
.process__steps { margin: 0; padding: 28px 0 0; list-style: none; display: flex; flex-wrap: wrap; gap: 32px 40px; }
.process__steps li { flex: 1 1 260px; }
.process__steps h3 { margin: 0; font-size: 1.375rem; line-height: 1.25; letter-spacing: -0.02em; font-weight: 600; }
.process__steps p { margin: 12px 0 0; color: var(--sc-ink-soft); max-width: 34ch; }
@media (max-width: 860px) {
  .process__steps { gap: 24px; padding-top: 24px; }
  .process__steps p { margin-top: 6px; }
}

/* ------------------------------------------------------------------ quote */
.quote { position: relative; margin-top: var(--gap-section); isolation: isolate; }
.quote__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.quote__bg img {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none;
  object-fit: cover; object-position: 50% 60%;
}
.quote__dusk { filter: brightness(0.62) saturate(0.85); }
/* Night falls as the visitor arrives: the same house, darker, cooler, the
   windows the last warm thing in the frame. */
.quote__night {
  filter: brightness(0.3) saturate(0.55) contrast(1.15) hue-rotate(-8deg);
  opacity: clamp(0, calc((var(--sc-p, 0) - 0.12) * 3), 1);
}
.quote__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, var(--sc-canvas) 0%, rgba(14, 15, 16, 0) 22%, rgba(14, 15, 16, 0) 62%, var(--sc-canvas) 92%);
}
.quote__wrap { padding-block: clamp(120px, 16vw, 200px) clamp(80px, 10vw, 140px); }

.qf {
  display: flex; flex-wrap: wrap;
  border-radius: 22px; overflow: hidden;
  background: var(--sc-surface);
  border: 1px solid rgba(205, 210, 213, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 40px 80px -40px rgba(0, 0, 0, 0.95);
}
.qf__side {
  position: relative; z-index: 3;
  flex: 1 1 400px; padding: clamp(28px, 5vw, 56px);
  display: flex; flex-direction: column; gap: 18px;
}
.qf__title { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.1rem); max-width: 12ch; }
.qf__trust { margin: 0; font-size: 0.95rem; color: var(--sc-ink-soft); }
.qf__status { margin: auto 0 0; min-height: 1.6em; font-size: 0.95rem; color: #C9CED1; }
.qf__nav { display: flex; gap: 12px; }
.qf__nav .btn { flex: 1 1 auto; min-height: 56px; font-size: 1.06rem; }
.qf__back { flex: 0 0 auto !important; }
.qf__dots { display: flex; justify-content: center; gap: 8px; }
.qf__dots span { width: 8px; height: 8px; border-radius: 50%; background: #464B4F; transition: background-color 200ms var(--sc-ease-out); }
.qf__dots span.is-on { background: var(--sc-accent); }

.qf__fields {
  position: relative; z-index: 3;
  flex: 1 1 460px; min-width: 0;
  background: var(--surface-2); padding: clamp(28px, 5vw, 56px);
}
.qf__step { margin: 0; padding: 0; border: 0; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.qf__step + .qf__step { margin-top: 40px; }
.qf__step legend { padding: 0; margin-bottom: 20px; font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }
.qf__row { display: flex; flex-wrap: wrap; gap: 20px 16px; }
.qf__row label { flex: 1 1 180px; }
.qf label { display: flex; flex-direction: column; gap: 8px; font-size: 0.95rem; font-weight: 500; color: #C4C9CC; }
.qf input, .qf select, .qf textarea {
  width: 100%; min-height: 50px;
  background: var(--field); color: var(--sc-ink);
  border: 1px solid var(--field-line); border-radius: 10px;
  padding: 12px 14px; font-size: 1rem; font-weight: 400;
  transition: border-color 160ms var(--sc-ease-out);
}
.qf textarea { resize: vertical; min-height: 140px; }
.qf ::placeholder { color: #7D8387; }
.qf input:hover, .qf select:hover, .qf textarea:hover { border-color: #5E6468; }
.qf input:focus-visible, .qf select:focus-visible, .qf textarea:focus-visible { outline-offset: 1px; border-color: var(--sc-accent); }
.qf [aria-invalid="true"] { border-color: #E39A8F; }
.qf__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.qf__done h3 { margin: 0 0 12px; font-size: 1.6rem; letter-spacing: -0.02em; font-weight: 600; }
.qf__done:focus { outline: none; }

/* Stepped mode, only once JS has taken over. Without it every step shows and
   the form posts normally. */
.qf.is-stepped .qf__step { display: none; }
.qf.is-stepped .qf__step.is-current { display: flex; margin-top: 0; }
.qf:not(.is-stepped) .qf__next, .qf:not(.is-stepped) .qf__dots { display: none; }
.qf.is-stepped .qf__submit { display: none; }
.qf.is-stepped.is-last .qf__submit { display: inline-flex; }
.qf.is-stepped.is-last .qf__next { display: none; }
.qf.is-sent .qf__nav, .qf.is-sent .qf__dots { display: none; }

/* ----------------------------------------------------------------- footer */
.foot { position: relative; border-top: 1px solid rgba(205, 210, 213, 0.14); background: rgba(11, 12, 13, 0.92); }
.foot__inner { padding-block: 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.foot__inner img { width: 140px; height: 112px; object-fit: contain; }
.foot__meta { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 12px 40px; color: var(--sc-ink-soft); }
.foot__meta a { text-decoration: none; }
.foot__meta a:hover { color: #fff; }
.foot__small { flex: 1 1 100%; margin: 0; font-size: 0.85rem; color: #8D9397; }

/* ----------------------------------------------------------------- phone */
@media (max-width: 860px) {
  /* Copy spans the frame width here, so the density becomes a band. */
  .hero__scrim {
    background: linear-gradient(to top, rgba(14, 15, 16, 0.96) 0%, rgba(14, 15, 16, 0.9) 30%, rgba(14, 15, 16, 0.55) 52%, rgba(14, 15, 16, 0) 72%);
  }
  .hero__inside { bottom: clamp(28px, 7vh, 64px); }

  /* The Next button belongs under the fields it advances, not above them. */
  .qf { flex-direction: column; flex-wrap: nowrap; }
  .qf__side { display: contents; }
  .qf__side > * { margin-inline: clamp(20px, 5vw, 28px); }
  .qf__title { order: 1; margin-top: 32px; }
  .qf__side > .soft { order: 2; margin-top: 12px; }
  .qf__trust { order: 3; margin-top: 10px; margin-bottom: 24px; }
  .qf__fields { order: 4; flex: 0 0 auto; padding: 28px clamp(20px, 5vw, 28px); }
  .qf__nav .btn { padding-inline: 18px; white-space: nowrap; font-size: 1rem; }
  .qf__status { order: 5; margin-top: 20px; min-height: 0; }
  .qf__nav { order: 6; margin-top: 12px; }
  .qf__dots { order: 7; margin-top: 16px; margin-bottom: 28px; }
}

/* ---------------------------------------------------- questionnaire page */
.q-intro { padding-top: calc(var(--bar-h) + clamp(48px, 9vw, 120px)); display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 64px; }
.q-intro__title { margin: 0; flex: 1 1 420px; font-size: clamp(2.7rem, 1.2rem + 5vw, 5.2rem); line-height: 0.98; letter-spacing: -0.04em; font-weight: 600; max-width: 10ch; text-wrap: balance; }
.q-intro__lede { flex: 0 1 460px; font-size: clamp(1.05rem, 0.98rem + 0.3vw, 1.2rem); }
.q-body { padding-block: clamp(40px, 6vw, 72px) clamp(80px, 10vw, 140px); }

/* overflow: clip, not hidden, so the side panel can stay in view while a
   long step scrolls. */
.qf--long { overflow: clip; align-items: flex-start; }
.qf--long .qf__side { flex: 0 1 360px; position: sticky; top: calc(var(--bar-h) + 16px); }
.qf--long .qf__fields { flex: 1 1 520px; align-self: stretch; }
.qf__steplist { margin: 0; padding: 0; list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 4px; }
.qf__steplist li {
  counter-increment: s; display: flex; align-items: center; gap: 14px;
  min-height: 44px; color: #8D9397; font-weight: 500;
}
.qf__steplist li::before {
  content: counter(s); flex: 0 0 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-size: 0.85rem; font-variant-numeric: tabular-nums;
  box-shadow: inset 0 0 0 1.5px #464B4F; color: #A9AFB3;
}
.qf__steplist li.is-done { color: var(--sc-ink-soft); }
.qf__steplist li.is-done::before { content: "✓"; box-shadow: inset 0 0 0 1.5px #6E7478; }
.qf__steplist li.is-current { color: var(--sc-ink); }
.qf__steplist li.is-current::before { background: var(--sc-accent); color: var(--sc-accent-ink); box-shadow: var(--chrome-edge); }
.qf:not(.is-stepped) .qf__steplist { display: none; }
.qf__aside { margin: 8px 0 0; font-size: 0.92rem; color: var(--sc-ink-soft); }

/* nested groups inside a step */
.qf__group, .qf__block { margin: 0; padding: 0; border: 0; min-width: 0; }
.qf__group legend { padding: 0; margin-bottom: 10px; font-size: 0.95rem; font-weight: 500; color: #C4C9CC; }
.qf__step .qf__step legend, .qf__group legend { font-size: 0.95rem; }
.qf__block { display: flex; flex-direction: column; gap: 20px; padding: 24px 0 4px; border-top: 1px solid var(--line); }
.qf__block legend { padding: 0; margin-bottom: 16px; font-size: 1.05rem; font-weight: 600; color: var(--sc-ink); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.qf label.chip {
  flex-direction: row; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 16px 0 12px; border-radius: 999px;
  background: var(--field); box-shadow: inset 0 0 0 1px var(--field-line);
  font-weight: 500; color: var(--sc-ink); cursor: pointer;
  transition: background-color 160ms var(--sc-ease-out), box-shadow 160ms var(--sc-ease-out);
}
.qf label.chip:hover { box-shadow: inset 0 0 0 1px #6E7478; }
.qf label.chip input { width: 18px; height: 18px; min-height: 0; margin: 0; padding: 0; flex: 0 0 auto; accent-color: var(--sc-accent); }
.qf label.chip:has(input:checked) { background: #2A2E31; box-shadow: inset 0 0 0 1.5px var(--sc-accent); }
.qf label.chip:has(input:focus-visible) { outline: 2px solid var(--sc-accent); outline-offset: 2px; }
.qf label.chip input:focus-visible { outline: none; }
.qf__done h2 { margin: 0 0 12px; font-size: 1.8rem; letter-spacing: -0.02em; font-weight: 600; }
.qf__done .btn { margin-top: 16px; }

@media (max-width: 860px) {
  .qf--long .qf__side { position: static; }
  .qf--long .qf__steplist { order: 0; flex-direction: row; gap: 8px; margin: 28px clamp(20px, 5vw, 28px) 4px; }
  .qf--long .qf__steplist li { font-size: 0; gap: 0; min-height: 30px; }
  .qf--long .qf__steplist li.is-current { font-size: 0.95rem; gap: 10px; }
  .qf--long .qf__aside { order: 8; margin: 0 clamp(20px, 5vw, 28px) 28px; }
  .qf--long .qf__nav + .qf__aside { margin-top: 16px; }
}
