/* ==================================================
   SOLIDR LTD: The Reveal
   Studio black, bone type, one brass accent, photography as the material.
================================================== */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url("../fonts/bricolage-grotesque-latin-variable.woff2") format("woff2-variations");
}

@font-face {
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/work-sans-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/work-sans-latin-500-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/work-sans-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/work-sans-latin-700-normal.woff2") format("woff2");
}

:root {
  --ink: #16130f;
  --ink-2: #1f1a14;
  --ink-rule: rgba(242, 236, 226, 0.14);
  --bone: #f2ece2;
  --bone-2: #cfc6b8;
  --bone-rule: rgba(22, 19, 15, 0.14);
  --brass: #d29a2a;
  --brass-deep: #8a5e0c;
  --brass-tint: rgba(210, 154, 42, 0.16);
  --success: #2f7a3e;
  --error: #b8362a;

  --font-display: "Bricolage Grotesque", "Arial Narrow", sans-serif;
  --font-body: "Work Sans", system-ui, sans-serif;

  --gutter: clamp(20px, 4vw, 56px);
  --frame: clamp(14px, 2vw, 24px);
  --topbar-h: 76px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--topbar-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  accent-color: var(--brass);
  caret-color: var(--brass);
}

::selection {
  background: var(--brass);
  color: var(--ink);
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  text-wrap: balance;
}

p {
  margin: 0;
}

:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--bone);
  color: var(--ink);
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform 0.2s var(--ease-out);
}

.skip-link:focus {
  transform: none;
}

/* ==================================================
   BUTTONS
================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 20px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out), border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

.btn--lg {
  min-height: 56px;
  padding: 0 28px;
  font-size: 1.0625rem;
}

.btn--brass {
  background: var(--brass);
  border-color: var(--brass);
  color: var(--ink);
}

.btn--brass:hover {
  background: var(--bone);
  border-color: var(--bone);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(242, 236, 226, 0.55);
  color: var(--bone);
}

.btn--ghost:hover {
  border-color: var(--bone);
  background: var(--ink-2);
  transform: translateY(-2px);
}

.btn--ink {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bone);
}

.btn--ink:hover {
  background: var(--brass-deep);
  border-color: var(--brass-deep);
  color: var(--bone);
  transform: translateY(-2px);
}

.btn:disabled {
  opacity: 0.6;
  cursor: progress;
  transform: none;
}

/* ==================================================
   TOP BAR
================================================== */

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--topbar-h);
  padding: 0 var(--gutter);
  color: var(--bone);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
}

.topbar.is-scrolled {
  background: var(--ink);
  border-bottom-color: var(--ink-rule);
}

.topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-plate {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 4px;
  background: var(--bone);
  border-radius: 8px;
}

.topbar__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}

.topbar__name-ltd {
  font-weight: 400;
  color: var(--bone-2);
}

.topbar__nav {
  display: flex;
  gap: 28px;
}

.topbar__nav a {
  position: relative;
  padding: 6px 0;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--bone-2);
  transition: color 0.2s;
}

.topbar__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}

.topbar__nav a:hover {
  color: var(--bone);
}

.topbar__nav a:hover::after {
  transform: scaleX(1);
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.topbar__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  color: var(--bone);
}

.topbar__phone:hover {
  color: var(--brass);
}

/* ==================================================
   PROGRESS RAIL
================================================== */

.rail {
  position: fixed;
  right: var(--frame);
  bottom: var(--frame);
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--bone);
}

.rail__count {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}

.rail__sep {
  margin: 0 4px;
  color: var(--bone-2);
}

.rail__track {
  position: relative;
  width: 2px;
  height: 28vh;
  background: rgba(242, 236, 226, 0.22);
  overflow: hidden;
}

.rail__fill {
  position: absolute;
  inset: 0;
  background: var(--brass);
  transform: scaleY(0);
  transform-origin: top;
}

/* ==================================================
   SCENES: the reveal
   --p runs 0 → 1 as the visitor scrolls through the scene.
================================================== */

.scene {
  --p: 0;
  position: relative;
  height: 220vh;
  height: 220svh;
}

.scene--hero {
  height: 170vh;
  height: 170svh;
}

.scene__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--ink);
}

.scene__media {
  position: absolute;
  inset: 0;
  margin: 0;
}

.scene__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Bare shell at --p 0: desaturated, dim, a little flat. Finished at 1. */
  filter:
    grayscale(calc(1 - var(--p)))
    brightness(calc(0.55 + 0.45 * var(--p)))
    contrast(calc(1.15 - 0.15 * var(--p)));
  transform: scale(calc(1.08 - 0.08 * var(--p)));
  transform-origin: center;
  will-change: filter, transform;
}

/* Optional "before" photograph of the same room: add it as a second <img>
   with this class before the finished one and it cross-fades out as --p rises. */
.scene__media .scene__before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
  transform: none;
  opacity: calc(1 - var(--p));
  z-index: 1;
}

/* Flat ink veil over the shell, lifting as the room finishes. */
.scene__shell {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--ink);
  opacity: calc(0.2 * (1 - var(--p)));
  pointer-events: none;
}

.scene__note {
  position: absolute;
  right: calc(var(--frame) + 12px);
  top: calc(var(--topbar-h) + 10px);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--bone-2);
}

/* Letterbox frame: a thin bone rule inset from the edge. */
.scene__frame {
  position: absolute;
  inset: var(--frame);
  z-index: 3;
  border: 1px solid rgba(242, 236, 226, 0.35);
  pointer-events: none;
}

/* ---------- Scene 01: the promise ---------- */

.hero {
  position: absolute;
  left: calc(var(--frame) + var(--gutter));
  right: calc(var(--frame) + var(--gutter));
  bottom: calc(var(--frame) + clamp(28px, 5vh, 64px));
  max-width: 920px;
  /* The promise gives way to the room: copy fades once the grade is half done. */
  opacity: clamp(0, calc(1 - (var(--p) - 0.55) * 2.4), 1);
}

.hero__plate {
  display: inline-block;
  max-width: 640px;
  margin-top: clamp(18px, 2.4vh, 28px);
  padding: 20px 24px 22px;
  background: var(--ink);
  border-left: 1px solid var(--brass);
}

.hero__title {
  font-size: clamp(2.75rem, 7.6vw, 7rem);
  font-weight: 700;
  font-stretch: 88%;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--bone);
}

.hero__sub {
  max-width: 54ch;
  font-size: clamp(1.0625rem, 1.35vw, 1.25rem);
  line-height: 1.55;
  color: var(--bone);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
}

.hero__hint {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: clamp(22px, 4vh, 44px);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--bone-2);
  opacity: calc(1 - var(--p) * 2.5);
}

.hero__hint-arrow {
  display: inline-block;
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--brass), transparent);
  animation: hint 1.8s var(--ease-out) infinite;
}

@keyframes hint {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  40% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(1); transform-origin: top; opacity: 0; }
}

/* ---------- Scenes 02–04: lower-third captions ---------- */

.caption {
  --reveal: clamp(0, calc((var(--p) - 0.45) * 3.2), 1);
  position: absolute;
  left: calc(var(--frame) + var(--gutter));
  bottom: calc(var(--frame) + clamp(28px, 5vh, 64px));
  max-width: 560px;
  padding: 22px 26px 20px;
  background: var(--ink);
  border-left: 1px solid var(--brass);
  opacity: var(--reveal);
  transform: translateY(calc((1 - var(--reveal)) * 24px));
}

.caption__title {
  font-size: clamp(2rem, 4.4vw, 3.75rem);
  font-stretch: 90%;
}

.caption__text {
  margin-top: 12px;
  max-width: 46ch;
  color: var(--bone);
}

.caption__note {
  margin-top: 14px;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--bone-2);
}

/* ==================================================
   BANDS: process, services, contact
================================================== */

.band {
  position: relative;
  padding: clamp(80px, 12vh, 140px) 0;
}

.band--ink {
  background: var(--ink);
}

.band--ruled {
  border-top: 1px solid var(--ink-rule);
}

.band__head {
  max-width: 760px;
  margin-bottom: clamp(40px, 6vh, 72px);
}

.band__title {
  font-size: clamp(2.25rem, 5vw, 4.25rem);
  font-stretch: 90%;
}

.band__lede {
  margin-top: 18px;
  max-width: 56ch;
  font-size: 1.125rem;
  color: var(--bone-2);
}

/* ---------- Steps ---------- */

.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ink-rule);
}

.step {
  padding: 28px 24px 8px 0;
  border-right: 1px solid var(--ink-rule);
}

.step + .step {
  padding-left: 24px;
}

.step:last-child {
  border-right: 0;
}

.step__title {
  counter-increment: step;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-stretch: 92%;
}

.step__title::before {
  content: counter(step) ". ";
  color: var(--brass);
}

.step__text {
  margin-top: 12px;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--bone-2);
}

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

.index {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(32px, 6vw, 96px);
}

.index__heading {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ink-rule);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  color: var(--bone-2);
}

.index__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.index__list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--ink-rule);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.25rem, 1.8vw, 1.625rem);
  font-stretch: 94%;
  letter-spacing: -0.01em;
  transition: padding-left 0.3s var(--ease-out), color 0.3s;
}

.index__list li:hover {
  padding-left: 8px;
  color: var(--brass);
}

.index__foot {
  margin-top: 28px;
  font-size: 0.9375rem;
  color: var(--bone-2);
}

/* ---------- Contact ---------- */

.band--contact {
  padding-top: 0;
  padding-bottom: clamp(48px, 8vh, 96px);
}

.contact {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(32px, 6vw, 80px);
  padding: clamp(32px, 5vw, 72px);
  background: var(--bone);
  color: var(--ink);
  border-radius: 12px;
}

.contact__title {
  font-size: clamp(2.5rem, 5.6vw, 5rem);
  font-stretch: 88%;
  letter-spacing: -0.03em;
}

.contact__text {
  margin-top: 20px;
  max-width: 44ch;
  font-size: 1.0625rem;
  color: #3a332a;
}

.contact__details {
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.contact__details li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}

.contact__details svg {
  color: var(--brass-deep);
}

.contact__details a {
  text-decoration: none;
  text-underline-offset: 4px;
}

.contact__details a:hover {
  text-decoration: underline;
  color: var(--brass-deep);
}

.form {
  display: grid;
  gap: 18px;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form__field {
  display: grid;
  gap: 8px;
}

.form__label {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.form__label em {
  font-style: normal;
  font-weight: 400;
  color: #6b6155;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--bone-rule);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form textarea {
  resize: vertical;
  min-height: 140px;
}

.form input::placeholder,
.form textarea::placeholder {
  color: #6b6155;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--brass-deep);
  box-shadow: 0 0 0 4px var(--brass-tint);
}

.form__select {
  position: relative;
  display: block;
}

.form__select select {
  appearance: none;
  padding-right: 44px;
  cursor: pointer;
}

.form__select select:invalid {
  color: #6b6155;
}

.form__select svg {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--ink);
}

.form__submit {
  justify-self: start;
  margin-top: 6px;
}

.form-status {
  min-height: 1.4em;
  font-weight: 600;
  font-size: 0.9375rem;
}

.form-status--pending {
  color: var(--brass-deep);
}

.form-status--success {
  color: var(--success);
}

.form-status--error {
  color: var(--error);
}

/* ==================================================
   FOOTER
================================================== */

.footer {
  padding: 40px 0 48px;
  border-top: 1px solid var(--ink-rule);
}

.footer__inner {
  display: grid;
  gap: 14px;
}

.footer__strap {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.125rem;
  color: var(--bone);
}

.footer__meta {
  max-width: 64ch;
  font-size: 0.8125rem;
  color: var(--bone-2);
}

/* ==================================================
   RESPONSIVE
================================================== */

@media (max-width: 1100px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 32px;
  }

  .step:nth-child(3) {
    border-right: 0;
  }

  .step:nth-child(4) {
    padding-left: 0;
  }
}

@media (max-width: 900px) {
  .topbar__nav {
    display: none;
  }

  .index,
  .contact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  :root {
    --topbar-h: 68px;
  }

  .topbar__phone,
  .topbar__name-ltd {
    display: none;
  }

  .logo-plate {
    width: 42px;
    height: 42px;
  }

  .btn--lg {
    width: 100%;
  }

  .rail {
    right: calc(var(--frame) + 10px);
    bottom: auto;
    top: calc(var(--topbar-h) + 10px);
    gap: 0;
  }

  .rail__track {
    display: none;
  }

  .scene__note {
    top: auto;
    bottom: calc(var(--frame) + 8px);
    right: var(--frame);
  }

  .hero {
    right: var(--frame);
    bottom: calc(var(--frame) + 24px);
  }

  .hero__title {
    font-size: clamp(2.5rem, 12.5vw, 3.5rem);
  }

  .hero__hint {
    display: none;
  }

  .caption {
    --reveal: clamp(0, calc((var(--p) - 0.15) * 3.2), 1);
    right: var(--frame);
    max-width: none;
    padding: 18px 20px 16px;
  }

  .hero__plate {
    display: block;
    padding: 16px 16px 18px;
  }

  .steps {
    grid-template-columns: 1fr;
    row-gap: 0;
  }

  .step {
    padding: 22px 0;
    border-right: 0;
    border-bottom: 1px solid var(--ink-rule);
  }

  .step + .step {
    padding-left: 0;
  }

  .form__row {
    grid-template-columns: 1fr;
  }

  .form__submit {
    justify-self: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .scene {
    --p: 1;
  }

  .hero__hint-arrow {
    animation: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }

  .btn:hover {
    transform: none;
  }
}
