/* ==========================================================================
   WALLACE MEDIA WALLS
   Monochrome, but layered. Nine greys, two light temperatures, one accent
   that is only ever light: the warm bloom an LED strip throws onto plaster.
   ========================================================================== */

:root {
  /* greys, dark to light */
  --ink:       #050505;
  --void:      #0a0a0b;
  --graphite:  #121213;
  --slate:     #1b1b1d;
  --ash:       #2a2a2c;
  --pewter:    #4b4b4e;
  --steel:     #6e6e72;
  --silver:    #97979b;
  --mist:      #c3c2c0;
  --bone:      #e9e7e3;
  --chalk:     #f4f3f0;
  --paper:     #ffffff;

  /* light, not colour */
  --glow:      233, 211, 168;   /* warm LED */
  --day:       168, 188, 201;   /* cool daylight */

  --line-dark:   rgba(255, 255, 255, 0.10);
  --line-dark-2: rgba(255, 255, 255, 0.18);
  --line-light:  rgba(0, 0, 0, 0.12);

  --display: "Jost", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --gutter: 22px;
  --max: 1400px;
  --rhythm: clamp(76px, 9vw, 156px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.66;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* film grain over the whole page: stops the black reading as flat digital */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  background-image: url("../assets/grain.png");
  background-size: 96px 96px;
  opacity: 0.5;
  mix-blend-mode: overlay;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 300;
  margin: 0;
  line-height: 1.07;
  letter-spacing: 0.02em;
  color: var(--paper);
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

::selection { background: rgba(var(--glow), 0.85); color: var(--ink); }

:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--paper); color: var(--ink);
  padding: 12px 18px; z-index: 300; font-size: 14px;
}
.skip:focus { left: 12px; top: 12px; }

/* --------------------------------------------------------- layout ------- */

.wrap {
  width: 100%; max-width: var(--max); margin: 0 auto;
  padding-left: var(--gutter); padding-right: var(--gutter);
}
.wrap--narrow { max-width: 880px; }

.band {
  position: relative;
  padding-top: var(--rhythm);
  padding-bottom: var(--rhythm);
}
.band--tight { padding-top: clamp(46px, 5.5vw, 80px); padding-bottom: clamp(46px, 5.5vw, 80px); }
.band--void { background: var(--void); }
.band--graphite { background: var(--graphite); }
.band--slate { background: var(--slate); }
.band--light { background: var(--chalk); color: #1a1a1a; }
.band--light h1, .band--light h2, .band--light h3, .band--light h4 { color: #0d0d0d; }

/* a single hairline of light where two dark bands meet */
.band--void::before,
.band--graphite::before,
.band--slate::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-dark-2) 22%, var(--line-dark-2) 78%, transparent);
}

/* warm bloom, used once or twice per page, never as decoration alone */
.glow-top::after,
.glow-bottom::after {
  content: "";
  position: absolute;
  left: 50%; transform: translateX(-50%);
  width: min(1100px, 92%); height: 420px;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(var(--glow), 0.075), rgba(var(--glow), 0) 68%);
}
.glow-top::after { top: -120px; }
.glow-bottom::after { bottom: -140px; }

/* --------------------------------------------------------- type --------- */

.display-xl {
  font-family: var(--display); font-weight: 200;
  font-size: clamp(2.3rem, 6.4vw, 5rem);
  letter-spacing: 0.055em; line-height: 1.03; text-transform: uppercase;
}
.display-l {
  font-family: var(--display); font-weight: 200;
  font-size: clamp(1.95rem, 4.3vw, 3.3rem);
  letter-spacing: 0.07em; line-height: 1.1; text-transform: uppercase;
}
.display-m {
  font-family: var(--display); font-weight: 300;
  font-size: clamp(1.35rem, 2.3vw, 1.95rem);
  letter-spacing: 0.08em; line-height: 1.16; text-transform: uppercase;
}
.display-s {
  font-family: var(--display); font-weight: 400;
  font-size: 1rem; letter-spacing: 0.17em; text-transform: uppercase;
}
.statement {
  font-family: var(--display); font-weight: 200;
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  letter-spacing: 0.005em; line-height: 1.15; text-transform: none;
}

.lede {
  font-size: clamp(1.06rem, 1.6vw, 1.28rem);
  line-height: 1.58; max-width: 34em; color: var(--mist);
}
.band--light .lede { color: rgba(0, 0, 0, 0.68); }

.muted { color: var(--steel); }
.band--light .muted { color: rgba(0, 0, 0, 0.5); }
.measure { max-width: 62ch; color: var(--mist); }
.band--light .measure { color: rgba(0, 0, 0, 0.72); }

.index {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--display); font-size: 0.72rem; letter-spacing: 0.3em;
  color: var(--steel); text-transform: uppercase; margin-bottom: 22px;
}
.index::before {
  content: ""; width: 26px; height: 1px;
  background: linear-gradient(90deg, rgba(var(--glow), 0.6), var(--pewter));
}
.band--light .index { color: rgba(0, 0, 0, 0.45); }
.band--light .index::before { background: linear-gradient(90deg, rgba(0,0,0,0.45), rgba(0,0,0,0.15)); }

.section-head { display: grid; gap: 20px; margin-bottom: clamp(36px, 4.6vw, 66px); }
@media (min-width: 900px) {
  .section-head { grid-template-columns: minmax(0, 1fr) minmax(0, 0.88fr); align-items: end; gap: 48px; }
}

/* --------------------------------------------------------- buttons ------ */

.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 58px; padding: 0 34px;
  font-family: var(--display); font-size: 0.86rem; font-weight: 400;
  letter-spacing: 0.2em; text-transform: uppercase; text-align: center;
  border: 1px solid var(--paper); background: var(--paper); color: var(--ink);
  cursor: pointer;
  transition: background 0.4s var(--ease), color 0.4s var(--ease),
              border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.btn:hover {
  background: transparent; color: var(--paper);
  box-shadow: 0 0 34px -8px rgba(var(--glow), 0.35);
}
.btn--ghost { background: transparent; color: var(--paper); border-color: var(--line-dark-2); }
.btn--ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); box-shadow: none; }

.band--light .btn, .cta-band .btn { background: var(--ink); color: var(--chalk); border-color: var(--ink); }
.band--light .btn:hover, .cta-band .btn:hover { background: transparent; color: var(--ink); box-shadow: none; }
.band--light .btn--ghost, .cta-band .btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-light); }
.band--light .btn--ghost:hover, .cta-band .btn--ghost:hover { background: var(--ink); color: var(--chalk); border-color: var(--ink); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
@media (max-width: 540px) { .btn { width: 100%; padding: 0 18px; } }

.textlink {
  font-family: var(--display); font-size: 0.82rem; letter-spacing: 0.2em;
  text-transform: uppercase; padding-bottom: 6px;
  border-bottom: 1px solid var(--line-dark-2); display: inline-block;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.textlink:hover { border-color: rgba(var(--glow), 0.7); }
.band--light .textlink { border-bottom-color: var(--line-light); }
.inline-link { border-bottom: 1px solid currentColor; padding-bottom: 1px; }

/* --------------------------------------------------------- header ------- */

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  padding: 18px 0; border-bottom: 1px solid transparent;
  transition: background 0.45s var(--ease), padding 0.45s var(--ease),
              border-color 0.45s var(--ease), backdrop-filter 0.45s var(--ease);
}
.site-header.is-stuck {
  background: rgba(5, 5, 5, 0.86);
  backdrop-filter: blur(14px) saturate(120%);
  padding: 11px 0; border-bottom-color: var(--line-dark);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: block; }
.brand img { height: 48px; width: auto; transition: height 0.45s var(--ease); }
.site-header.is-stuck .brand img { height: 38px; }
@media (max-width: 700px) {
  .brand img { height: 40px; }
  .site-header.is-stuck .brand img { height: 34px; }
}

.nav-desktop { display: none; }
@media (min-width: 1040px) {
  .nav-desktop { display: flex; align-items: center; gap: 32px; }
  .nav-desktop a {
    position: relative;
    font-family: var(--display); font-size: 0.76rem; letter-spacing: 0.2em;
    text-transform: uppercase; color: var(--mist); padding: 6px 0;
    transition: color 0.3s var(--ease);
  }
  .nav-desktop a::after {
    content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
    background: linear-gradient(90deg, rgba(var(--glow), 0.9), var(--paper));
    transition: right 0.42s var(--ease-out);
  }
  .nav-desktop a:hover, .nav-desktop a[aria-current="page"] { color: var(--paper); }
  .nav-desktop a:hover::after, .nav-desktop a[aria-current="page"]::after { right: 0; }
  .nav-desktop a.btn {
    min-height: 44px; padding: 0 24px; font-size: 0.74rem; color: var(--ink);
  }
  .nav-desktop a.btn::after { display: none; }
  .nav-desktop a.btn:hover { color: var(--paper); }
}

.menu-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; align-items: flex-end;
  gap: 7px; width: 48px; height: 48px; padding: 0; background: none; border: 0; cursor: pointer;
}
.menu-toggle span {
  display: block; width: 27px; height: 1px; background: var(--paper);
  transition: transform 0.4s var(--ease), width 0.4s var(--ease);
}
.menu-toggle span:last-child { width: 17px; }
@media (min-width: 1040px) { .menu-toggle { display: none; } }
body.nav-open .menu-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
body.nav-open .menu-toggle span:last-child { width: 27px; transform: translateY(-4px) rotate(-45deg); }

.nav-mobile {
  position: fixed; inset: 0; z-index: 80;
  background: var(--ink);
  padding: 116px var(--gutter) 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  transform: translateY(-100%); visibility: hidden;
  transition: transform 0.55s var(--ease-out), visibility 0.55s;
  overflow-y: auto;
}
.nav-mobile::before {
  content: ""; position: absolute; inset: auto 0 0 0; height: 420px; pointer-events: none;
  background: radial-gradient(ellipse at 50% 100%, rgba(var(--glow), 0.09), transparent 70%);
}
body.nav-open .nav-mobile { transform: translateY(0); visibility: visible; }
body.nav-open { overflow: hidden; }
.nav-mobile ul { list-style: none; margin: 0; padding: 0; position: relative; }
.nav-mobile li { border-top: 1px solid var(--line-dark); }
.nav-mobile li:last-child { border-bottom: 1px solid var(--line-dark); }
.nav-mobile a {
  display: block; padding: 19px 0;
  font-family: var(--display); font-weight: 300; font-size: 1.45rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--paper);
}
.nav-mobile a.btn { font-size: 0.86rem; font-weight: 400; letter-spacing: 0.2em; padding: 0 20px; }
.nav-mobile .btn-row { margin-top: 36px; flex-direction: column; position: relative; }
@media (min-width: 1040px) { .nav-mobile { display: none; } }

/* --------------------------------------------------------- hero --------- */

.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: flex-end; overflow: hidden; background: var(--ink);
}
.hero__media { position: absolute; inset: 0; }
.hero__media img, .hero__media video {
  width: 100%; height: 100%; object-fit: cover; object-position: 18% 50%; opacity: 0.82;
  transform: scale(1.06);
  animation: heroDrift 26s var(--ease-out) forwards;
}
@keyframes heroDrift { to { transform: scale(1); } }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(5,5,5,0.80) 0%, rgba(5,5,5,0.42) 42%, rgba(5,5,5,0.06) 72%),
    radial-gradient(ellipse at 50% 62%, rgba(var(--glow), 0.10), transparent 58%),
    linear-gradient(180deg, rgba(5,5,5,0.62) 0%, rgba(5,5,5,0.10) 38%, rgba(5,5,5,0.90) 100%);
}
.hero__inner { position: relative; z-index: 2; width: 100%; padding-top: 150px; padding-bottom: clamp(44px, 6vw, 88px); }
.hero h1 { max-width: 24ch; }
.hero h1 span { display: block; }
.hero__sub { margin-top: 26px; max-width: 30em; font-size: clamp(1rem, 1.45vw, 1.18rem); color: var(--mist); }

/* the LED line: one orchestrated moment on load */
.hero__line {
  height: 1px; margin-top: clamp(36px, 5vw, 64px);
  background: linear-gradient(90deg, rgba(var(--glow), 0.8), rgba(255,255,255,0.28) 40%, transparent);
  transform-origin: left; transform: scaleX(0);
  animation: drawLine 1.5s 0.3s var(--ease-out) forwards;
}
@keyframes drawLine { to { transform: scaleX(1); } }

.hero__foot {
  margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px 32px;
  font-family: var(--display); font-size: 0.72rem; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--steel);
}

.page-hero {
  position: relative; overflow: hidden;
  padding-top: 186px; padding-bottom: clamp(54px, 7vw, 94px);
  border-bottom: 1px solid var(--line-dark);
  background: linear-gradient(180deg, var(--graphite), var(--ink));
}
.page-hero::before {
  content: ""; position: absolute; top: -180px; left: 50%; transform: translateX(-50%);
  width: min(900px, 90%); height: 460px; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(var(--glow), 0.09), transparent 68%);
}
.page-hero .wrap { position: relative; }
.page-hero h1 { max-width: 18ch; }
.page-hero .lede { margin-top: 24px; }

/* --------------------------------------------------------- figures ------ */

.frame {
  position: relative; display: block; overflow: hidden; background: var(--graphite);
}
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.3s var(--ease-out); }
.frame::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  box-shadow: inset 0 0 90px rgba(0, 0, 0, 0.55);
}
.frame--bezel::after {
  content: ""; position: absolute; inset: 14px; z-index: 2; pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
}
a.frame:hover img, .card:hover .frame img, .style:hover .frame img,
.service:hover .service__thumb img { transform: scale(1.045); }

.ratio-16-9 { aspect-ratio: 16 / 9; }
.ratio-3-2  { aspect-ratio: 3 / 2; }
.ratio-4-5  { aspect-ratio: 4 / 5; }
.ratio-1-1  { aspect-ratio: 1 / 1; }
figure { margin: 0; }

.caption {
  margin-top: 13px; font-family: var(--display); font-size: 0.7rem;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--steel);
}
.tag {
  position: absolute; left: 13px; top: 13px; z-index: 3;
  font-family: var(--display); font-size: 0.6rem; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--bone);
  background: rgba(5, 5, 5, 0.62); backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.2); padding: 7px 11px;
}

/* --------------------------------------------------------- trust strip -- */

.trust {
  display: grid; gap: 1px; background: var(--line-dark);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 900px) { .trust { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.trust > div { background: var(--ink); padding: 30px 26px; }
.trust h3 {
  font-family: var(--display); font-size: 0.82rem; font-weight: 400;
  letter-spacing: 0.18em; text-transform: uppercase;
}
.trust p { margin-top: 10px; font-size: 0.9rem; color: var(--steel); line-height: 1.55; }
@media (max-width: 560px) {
  .trust > div { padding: 22px 17px; }
  .trust h3 { font-size: 0.74rem; letter-spacing: 0.12em; }
  .trust p { font-size: 0.84rem; margin-top: 8px; }
}

/* --------------------------------------------------------- split -------- */

.split { display: grid; gap: clamp(30px, 4.6vw, 70px); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--wide-left { grid-template-columns: 1.12fr 0.88fr; }
  .split--wide-right { grid-template-columns: 0.88fr 1.12fr; }
  .split--top { align-items: start; }
}

/* --------------------------------------------------------- services ----- */

.services { border-top: 1px solid var(--line-light); }
.service {
  display: grid; gap: 16px; padding: 32px 0;
  border-bottom: 1px solid var(--line-light); align-items: start;
  transition: background 0.4s var(--ease);
}
@media (min-width: 880px) {
  .service {
    grid-template-columns: 3rem minmax(0, 1fr) minmax(0, 1.1fr) 13rem;
    gap: 30px; align-items: center; padding: 26px 0;
  }
}
.service__num { font-family: var(--display); font-size: 0.72rem; letter-spacing: 0.2em; color: rgba(0,0,0,0.4); }
.service__name {
  font-family: var(--display); font-weight: 300;
  font-size: clamp(1.3rem, 2.1vw, 1.7rem); letter-spacing: 0.06em; text-transform: uppercase;
}
.service__copy { color: rgba(0, 0, 0, 0.68); font-size: 0.97rem; }
.service__thumb { display: none; }
@media (min-width: 880px) { .service__thumb { display: block; } }
.band:not(.band--light) .services { border-top-color: var(--line-dark); }
.band:not(.band--light) .service { border-bottom-color: var(--line-dark); }
.band:not(.band--light) .service__copy { color: var(--silver); }
.band:not(.band--light) .service__num { color: var(--pewter); }

/* --------------------------------------------------------- styles ------- */

.styles {
  display: grid; gap: 1px; background: var(--line-dark);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 780px)  { .styles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1140px) { .styles { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.style { position: relative; background: var(--void); display: block; transition: background 0.45s var(--ease); }
.style:hover { background: var(--graphite); }
.style .frame { aspect-ratio: 4 / 5; }
.style__body { padding: 22px 20px 30px; position: relative; }
.style__body::before {
  content: ""; position: absolute; top: 0; left: 20px; right: 20px; height: 1px;
  background: linear-gradient(90deg, rgba(var(--glow), 0), rgba(var(--glow), 0));
  transition: background 0.45s var(--ease);
}
.style:hover .style__body::before { background: linear-gradient(90deg, rgba(var(--glow), 0.7), transparent); }
.style__body h3 { font-size: 1.02rem; letter-spacing: 0.18em; font-weight: 400; text-transform: uppercase; }
.style__body p { margin-top: 10px; font-size: 0.88rem; color: var(--steel); line-height: 1.55; }

/* --------------------------------------------------------- cards -------- */

.cards { display: grid; gap: clamp(26px, 3.2vw, 46px); grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.card { display: block; }
.card h3 { margin-top: 18px; font-size: 1.1rem; letter-spacing: 0.14em; font-weight: 400; text-transform: uppercase; }
.card p { margin-top: 8px; font-size: 0.93rem; color: var(--steel); }
.band--light .card p { color: rgba(0, 0, 0, 0.55); }

/* --------------------------------------------------------- reasons ------ */

.reasons { display: grid; border-top: 1px solid var(--line-dark); }
@media (min-width: 780px) { .reasons { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(38px, 5.5vw, 92px); } }
@media (min-width: 1140px) { .reasons { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.reason { padding: 28px 0; border-bottom: 1px solid var(--line-dark); }
.reason h3 { font-size: 0.92rem; letter-spacing: 0.2em; font-weight: 400; text-transform: uppercase; }
.reason p { margin-top: 11px; font-size: 0.94rem; color: var(--silver); max-width: 34ch; }
.band--light .reasons { border-top-color: var(--line-light); }
.band--light .reason { border-bottom-color: var(--line-light); }
.band--light .reason p { color: rgba(0, 0, 0, 0.6); }

/* --------------------------------------------------------- process ------ */

.steps { border-top: 1px solid var(--line-light); }
.step { display: grid; gap: 11px; padding: 28px 0; border-bottom: 1px solid var(--line-light); }
@media (min-width: 880px) { .step { grid-template-columns: 5rem 16rem minmax(0, 1fr); gap: 38px; align-items: baseline; } }
.step__num { font-family: var(--display); font-size: 0.78rem; letter-spacing: 0.24em; color: rgba(0,0,0,0.38); }
.step__name { font-family: var(--display); font-size: 1.15rem; font-weight: 300; letter-spacing: 0.16em; text-transform: uppercase; }
.step__copy { color: rgba(0, 0, 0, 0.68); font-size: 0.97rem; }
.band:not(.band--light) .steps { border-top-color: var(--line-dark); }
.band:not(.band--light) .step { border-bottom-color: var(--line-dark); }
.band:not(.band--light) .step__copy { color: var(--silver); }
.band:not(.band--light) .step__num { color: var(--pewter); }

/* --------------------------------------------------------- materials ---- */

.materials { display: grid; gap: 1px; background: var(--line-dark); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 740px) { .materials { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .materials { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.material { background: var(--void); }
.material .frame { aspect-ratio: 1 / 1; }
.material .frame::before { box-shadow: inset 0 0 26px rgba(0,0,0,0.30); }
.gallery-strip .frame::before { box-shadow: inset 0 0 30px rgba(0,0,0,0.35); }
.material span {
  display: block; padding: 14px 6px 18px;
  font-family: var(--display); font-size: 0.72rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--steel);
}
.band--light .materials { background: var(--line-light); }
.band--light .material { background: var(--chalk); }
.band--light .material span { color: rgba(0, 0, 0, 0.5); }

/* -------------------------------------------------- before / after ------ */

.ba-slider {
  position: relative; width: 100%; aspect-ratio: 3 / 2;
  overflow: hidden; background: var(--graphite); touch-action: none; cursor: ew-resize;
  --pos: 50%; --inset: 50%;
  -webkit-user-select: none; user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.ba-slider img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  pointer-events: none; -webkit-user-drag: none; user-select: none; display: block;
}
/* after image is revealed from the handle to the right edge: BEFORE left, AFTER right */
.ba-slider__after { clip-path: inset(0 0 0 var(--pos, 50%)); will-change: clip-path; }
.ba-slider.is-dragging .ba-slider__after { transition: none; }
.ba-slider:not(.is-dragging) .ba-slider__after { transition: clip-path 0.12s linear; }

.ba-slider__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); transform: translateX(-50%);
  width: 2px; z-index: 3; pointer-events: none;
  background: linear-gradient(180deg,
    rgba(var(--glow), 0) 0%,
    rgba(255,255,255,0.9) 18%,
    rgba(255,255,255,0.9) 82%,
    rgba(var(--glow), 0) 100%);
  box-shadow: 0 0 22px rgba(var(--glow), 0.45);
}
.ba-slider:not(.is-dragging) .ba-slider__handle { transition: left 0.12s linear; }
.ba-slider__handle::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 48px; height: 48px; margin: -24px 0 0 -24px;
  border: 1px solid rgba(255, 255, 255, 0.9); border-radius: 50%;
  background: rgba(10, 10, 11, 0.45); backdrop-filter: blur(6px);
  box-shadow: 0 2px 18px rgba(0,0,0,0.5), 0 0 18px rgba(var(--glow), 0.3);
}
/* left-right arrows so it reads as a horizontal drag control */
.ba-slider__handle::before {
  content: "\2039\00a0\203A"; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%); z-index: 2;
  font-family: var(--display); font-size: 15px; line-height: 1; letter-spacing: 1px;
  color: rgba(255,255,255,0.92); white-space: nowrap;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}
.ba-label {
  position: absolute; bottom: 16px; z-index: 4; pointer-events: none;
  font-family: var(--display); font-size: 0.66rem; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--bone);
  background: rgba(5, 5, 5, 0.55); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.14); padding: 7px 12px;
  transition: opacity 0.3s var(--ease);
}
.ba-label--before { left: 16px; }
.ba-label--after { right: 16px; }

/* --------------------------------------------------------- gallery ------ */

.gallery-strip {
  display: grid; gap: 1px; background: var(--line-dark);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (min-width: 900px) { .gallery-strip { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.gallery-strip a { background: var(--void); position: relative; }
.gallery-strip .frame { aspect-ratio: 1 / 1; }

/* --------------------------------------------------------- reviews ------ */

.review-block {
  border: 1px solid var(--line-dark); padding: clamp(34px, 5.5vw, 76px) clamp(22px, 4.5vw, 64px);
  text-align: center; position: relative; background: var(--void);
}
.review-block p { margin-top: 18px; }
.stars {
  display: inline-flex; gap: 7px; margin-bottom: 22px;
  color: var(--pewter); font-size: 0.85rem; letter-spacing: 0.3em;
}

/* --------------------------------------------------------- faq ---------- */

.faq { border-top: 1px solid var(--line-light); }
.faq details { border-bottom: 1px solid var(--line-light); }
.faq summary {
  list-style: none; cursor: pointer; padding: 25px 46px 25px 0; position: relative;
  font-family: var(--display); font-size: clamp(1rem, 1.6vw, 1.16rem); font-weight: 400; letter-spacing: 0.04em;
  transition: color 0.3s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 13px; height: 1px; background: currentColor; }
.faq summary::before {
  content: ""; position: absolute; right: 12px; top: 50%; width: 1px; height: 13px; margin-top: -6px;
  background: currentColor; transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.faq details[open] summary::before { opacity: 0; transform: rotate(90deg); }
.faq__answer { padding: 0 0 30px; max-width: 68ch; color: rgba(0, 0, 0, 0.7); font-size: 1rem; }
.band:not(.band--light) .faq { border-top-color: var(--line-dark); }
.band:not(.band--light) .faq details { border-bottom-color: var(--line-dark); }
.band:not(.band--light) .faq__answer { color: var(--silver); }

/* --------------------------------------------------------- cost --------- */

.cost { display: grid; gap: 1px; background: var(--line-dark); grid-template-columns: repeat(2, minmax(0,1fr)); }
@media (min-width: 960px) { .cost { grid-template-columns: repeat(3, minmax(0,1fr)); } }
.cost > div { background: var(--graphite); padding: 28px 24px; }
.cost h3 { font-family: var(--display); font-size: 0.82rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 400; }
.cost p { margin-top: 10px; font-size: 0.9rem; color: var(--steel); line-height: 1.55; }

/* --------------------------------------------------------- form --------- */

.form-grid { display: grid; gap: 24px 28px; grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .full { grid-column: 1 / -1; }
}
.field label, .fieldset-label {
  display: block; font-family: var(--display); font-size: 0.72rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--steel); margin-bottom: 9px;
}
.field input, .field select, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line-dark-2);
  color: var(--paper); font-family: var(--body); font-size: 1rem; padding: 12px 0;
  border-radius: 0; min-height: 48px; transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-bottom-color: rgba(var(--glow), 0.85);
  box-shadow: 0 12px 24px -22px rgba(var(--glow), 0.9);
}
.field input::placeholder, .field textarea::placeholder { color: var(--pewter); }
.field input[type="file"] {
  border: 1px dashed var(--line-dark-2); padding: 18px; font-size: 0.86rem; color: var(--steel); cursor: pointer;
}
.choices { display: flex; flex-wrap: wrap; gap: 10px; border: 0; padding: 0; margin: 0; }
.choices legend { padding: 0; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span {
  display: inline-block; padding: 11px 20px; border: 1px solid var(--line-dark-2);
  font-family: var(--display); font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--silver); transition: all 0.32s var(--ease);
}
.choice span:hover { border-color: rgba(var(--glow), 0.5); color: var(--paper); }
.choice input:checked + span { border-color: var(--paper); color: var(--ink); background: var(--paper); }
.choice input:focus-visible + span { outline: 1px solid var(--paper); outline-offset: 3px; }
.form-note { font-size: 0.83rem; color: var(--steel); margin-top: 18px; }
.form-status { margin-top: 18px; padding: 15px 18px; border: 1px solid var(--line-dark-2); font-size: 0.9rem; display: none; }
.form-status.is-visible { display: block; }

/* --------------------------------------------------------- cta band ----- */

.cta-band {
  position: relative; overflow: hidden;
  background: var(--chalk); color: #141414; text-align: center;
  padding-top: var(--rhythm); padding-bottom: var(--rhythm);
}
.cta-band h2 { color: #0d0d0d; }
.cta-band .lede { margin: 20px auto 0; color: rgba(0, 0, 0, 0.66); }
.cta-band .btn-row { justify-content: center; }

.cta-band--dark { background: var(--void); color: var(--bone); }
.cta-band--dark h2 { color: var(--paper); }
.cta-band--dark .lede { color: var(--mist); }
.cta-band--dark .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.cta-band--dark .btn:hover { background: transparent; color: var(--paper); box-shadow: 0 0 34px -8px rgba(var(--glow), 0.35); }
.cta-band--dark .btn--ghost { background: transparent; color: var(--paper); border-color: var(--line-dark-2); }
.cta-band--dark .btn--ghost:hover { background: var(--paper); color: var(--ink); }

/* --------------------------------------------------------- footer ------- */

.site-footer {
  position: relative; background: var(--ink); border-top: 1px solid var(--line-dark);
  padding-top: clamp(54px, 6.5vw, 86px); padding-bottom: 38px;
}
.footer-top { display: grid; gap: 42px; }
@media (min-width: 940px) { .footer-top { grid-template-columns: 1.35fr 1fr 1fr 1fr; gap: 44px; } }
.site-footer img.footer-logo { height: 74px; width: auto; }
.footer-col h4 {
  font-family: var(--display); font-size: 0.7rem; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--steel); margin-bottom: 17px; font-weight: 400;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 11px; }
.footer-col a, .footer-col li { font-size: 0.93rem; color: var(--mist); }
.footer-col a:hover { color: var(--paper); }
.footer-bottom {
  margin-top: clamp(44px, 5.5vw, 68px); padding-top: 22px; border-top: 1px solid var(--line-dark);
  display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between;
  font-size: 0.78rem; color: var(--pewter);
}

/* --------------------------------------------------------- whatsapp ----- */

.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 95;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 15px 24px 15px 19px;
  background: var(--paper); color: var(--ink); border: 1px solid var(--paper);
  font-family: var(--display); font-size: 0.76rem; letter-spacing: 0.18em; text-transform: uppercase;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.55);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.wa-float svg { width: 20px; height: 20px; flex: none; }
.wa-float:hover { transform: translateY(-2px); box-shadow: 0 22px 54px rgba(0, 0, 0, 0.6); }
body.nav-open .wa-float, body.nav-open .action-bar { opacity: 0; pointer-events: none; }

/* mobile: two actions, always reachable by thumb */
.action-bar { display: none; }
@media (max-width: 720px) {
  .wa-float { display: none; }
  .action-bar {
    position: fixed; inset: auto 0 0 0; z-index: 95;
    display: grid; grid-template-columns: 1fr 1fr;
    background: rgba(5, 5, 5, 0.92); backdrop-filter: blur(14px);
    border-top: 1px solid var(--line-dark-2);
    transition: opacity 0.35s var(--ease);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .action-bar a {
    display: flex; align-items: center; justify-content: center; gap: 9px;
    min-height: 62px; font-family: var(--display); font-size: 0.76rem;
    letter-spacing: 0.16em; text-transform: uppercase;
  }
  .action-bar a:first-child { background: var(--paper); color: var(--ink); }
  .action-bar a:last-child { color: var(--paper); }
  .action-bar svg { width: 19px; height: 19px; }
  .site-footer { padding-bottom: 96px; }
  .hero__inner { padding-bottom: 96px; }
}

/* --------------------------------------------------------- lightbox ----- */

.lightbox {
  position: fixed; inset: 0; z-index: 210; display: none;
  align-items: center; justify-content: center; padding: 28px;
  background: rgba(5, 5, 5, 0.94); backdrop-filter: blur(10px);
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(1200px, 94vw); max-height: 86vh; width: auto; object-fit: contain; }
.lightbox__close {
  position: absolute; top: 20px; right: 22px; width: 46px; height: 46px;
  background: none; border: 1px solid var(--line-dark-2); color: var(--paper); cursor: pointer;
  font-size: 20px; line-height: 1;
}
.lightbox__cap {
  position: absolute; bottom: 26px; left: 0; right: 0; text-align: center;
  font-family: var(--display); font-size: 0.72rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--steel);
}

/* --------------------------------------------------------- misc --------- */

.reveal { opacity: 0; transform: translateY(20px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }

.list-plain { list-style: none; margin: 0; padding: 0; }
.list-plain li { padding: 13px 0; border-bottom: 1px solid var(--line-dark); font-size: 0.96rem; color: var(--mist); }
.band--light .list-plain li { border-bottom-color: var(--line-light); color: rgba(0,0,0,0.72); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__media img { transform: none; }
  .hero__line { transform: scaleX(1); }
}

/* ----------------------------------------------------- mobile polish --- */
/* Remove the inset template-style outlines from feature images. */
.frame--bezel::after { display: none; }

@media (max-width: 1039px) {
  /* Premium mobile header: it belongs to the hero, softly blends into the
     image and never becomes a floating bar over page content. */
  .site-header,
  .site-header.is-stuck,
  .site-header.is-hidden {
    position: absolute;
    transform: translateY(0);
    opacity: 1;
    padding: 18px 0 28px;
    background: linear-gradient(180deg,
      rgba(5,5,5,0.72) 0%,
      rgba(5,5,5,0.42) 46%,
      rgba(5,5,5,0.15) 76%,
      rgba(5,5,5,0) 100%);
    border-bottom: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: opacity 0.34s var(--ease), transform 0.34s var(--ease);
    will-change: opacity, transform;
  }
  .site-header::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -1px; height: 18px;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(5,5,5,0.08), rgba(5,5,5,0));
  }
  .site-header.is-mobile-scrolled {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
  }
  .site-header.is-stuck .brand img { height: 40px; }
  body.nav-open .site-header,
  body.nav-open .site-header.is-mobile-scrolled {
    position: fixed;
    opacity: 1;
    transform: none !important;
    pointer-events: auto;
    padding: 18px 0;
    background: var(--ink);
    border-bottom: 0;
    z-index: 100;
  }
  body.nav-open .site-header::after { display: none; }

  /* Ensure CTA text remains legible inside the full-screen mobile menu. */
  .nav-mobile a.btn:not(.btn--ghost) { color: var(--ink); }
  .nav-mobile a.btn--ghost { color: var(--paper); }
}

@media (max-width: 779px) {
  /* Keep the five-card mobile grid balanced without placing imagery beside
     copy. Luxe spans the full width, with the image above the text. */
  .styles .style:last-child {
    grid-column: 1 / -1;
    display: block;
    min-width: 0;
  }
  .styles .style:last-child .frame {
    aspect-ratio: 16 / 9;
    min-height: 0;
  }
  .styles .style:last-child .style__body {
    display: block;
    padding: 22px 20px 30px;
    background: var(--void);
  }
}
