.space-detail-page { background: var(--paper); }

.space-detail-hero {
  position: relative;
  min-height: calc(90vh - 86px);
  margin-top: 86px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--white);
  background: var(--charcoal);
  border-bottom: 2px solid var(--orange);
}

.space-detail-hero-image,
.space-detail-hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.space-detail-hero-image {
  object-fit: cover;
  object-position: center 50%;
}

.space-detail-hero-overlay {
  background:
    linear-gradient(90deg, rgba(15,14,13,.9) 0%, rgba(15,14,13,.68) 38%, rgba(15,14,13,.12) 72%),
    linear-gradient(to top, rgba(15,14,13,.76), transparent 58%);
}

.space-detail-hero-content {
  position: relative;
  z-index: 2;
  padding-block: clamp(90px, 12vh, 150px);
}

.space-detail-hero-content h1 {
  max-width: 780px;
  margin: 16px 0 28px;
  font-family: var(--display);
  font-size: clamp(3.7rem, 8vw, 7.5rem);
  font-weight: 700;
  letter-spacing: .01em;
  line-height: .84;
  text-transform: uppercase;
}

.space-detail-hero-content h1 em {
  color: var(--orange-bright);
  font-style: normal;
}

.space-detail-hero-content > p:not(.eyebrow) {
  max-width: 550px;
  margin: 0 0 34px;
  color: rgba(255,255,255,.78);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  line-height: 1.5;
}

.space-hero-caption {
  position: absolute;
  z-index: 2;
  right: max(24px, calc((100vw - min(1180px, calc(100vw - 48px))) / 2));
  bottom: 34px;
  display: flex;
  gap: 24px;
  color: rgba(255,255,255,.72);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.space-hero-caption span + span {
  position: relative;
  padding-left: 25px;
}

.space-hero-caption span + span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--orange);
}

.space-introduction { background: var(--paper); }

.space-introduction-grid {
  display: grid;
  grid-template-columns: .88fr 1.12fr;
  gap: clamp(70px, 10vw, 150px);
  align-items: start;
}

.space-introduction h2 {
  max-width: 590px;
  font-size: clamp(3rem, 5.2vw, 5.6rem);
}

.space-introduction-copy {
  max-width: 610px;
  padding-top: 34px;
}

.space-introduction-copy .lead {
  margin-top: 0;
  color: var(--charcoal);
}

.space-introduction-copy > p:not(.lead) { color: #65615c; }

.space-pillars {
  margin-top: 38px;
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid var(--line);
}

.space-pillars span {
  padding: 9px 14px;
  border: 1px solid rgba(224,91,28,.35);
  border-radius: 99px;
  color: var(--orange);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.space-gallery-section {
  padding-top: 0;
  background: var(--paper);
}
.space-gallery-section { display: none; }
.barber-gallery-section { display: block; background: #f3f1ed; }
.barber-gallery-heading { margin-bottom: 44px; padding-top: 52px; display: grid; grid-template-columns: 1fr .8fr; gap: 60px; align-items: end; border-top: 1px solid var(--line); }
.barber-gallery-heading h2 { margin: 0; font-size: clamp(3rem, 5vw, 5rem); }
.barber-gallery-heading > p { max-width: 470px; margin: 0 0 5px; color: #66615d; font-family: Georgia, "Times New Roman", serif; font-size: 1.08rem; line-height: 1.55; }
.barber-gallery { display: grid; grid-template-columns: 1.35fr .7fr .7fr; grid-template-rows: 330px 330px; gap: 18px; }
.barber-gallery figure { position: relative; min-width: 0; margin: 0; overflow: hidden; background: var(--charcoal); border-radius: 29px 8px 29px 8px; }
.barber-gallery-feature { grid-row: 1 / -1; }
.barber-gallery-tall { grid-row: 1 / -1; border-radius: 8px 29px 8px 29px !important; }
.barber-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease, filter .5s ease; }
.barber-gallery figure:hover img { transform: scale(1.035); filter: saturate(1.05); }
.barber-gallery-feature img { object-position: center; }
.barber-gallery-tall img { object-position: center; }
.barber-gallery-small img { object-position: center; }
.barber-gallery figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(12,12,12,.76), transparent 55%); pointer-events: none; }
.barber-gallery figcaption { position: absolute; z-index: 1; left: 23px; right: 23px; bottom: 20px; display: flex; align-items: end; justify-content: space-between; gap: 12px; color: white; }
.barber-gallery figcaption span { font-family: var(--display); font-size: clamp(1.4rem, 2.3vw, 2.2rem); line-height: 1; text-transform: uppercase; }
.barber-gallery figcaption small { color: rgba(255,255,255,.7); font-size: .68rem; font-weight: 800; letter-spacing: .09em; text-align: right; text-transform: uppercase; }
@media (max-width: 920px) { .barber-gallery { grid-template-columns: 1.15fr .85fr; grid-template-rows: 420px 260px; } .barber-gallery-feature { grid-row: 1 / -1; } .barber-gallery-tall { grid-row: auto; } .barber-gallery-small:last-child { grid-column: 2; } }
@media (max-width: 560px) { .barber-gallery-heading { display: block; } .barber-gallery-heading > p { margin-top: 15px; } .barber-gallery { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 390px 220px 220px; gap: 12px; } .barber-gallery-feature { grid-column: 1 / -1; grid-row: auto; } .barber-gallery-tall { grid-column: 1 / -1; grid-row: auto; } .barber-gallery-small:last-child { grid-column: auto; } .barber-gallery figcaption { left: 15px; right: 15px; bottom: 14px; display: block; } .barber-gallery figcaption span { display: block; font-size: 1.25rem; } .barber-gallery figcaption small { display: block; margin-top: 5px; font-size: .56rem; text-align: left; } }

.aesthetic-gallery-section { display: block; padding-top: 0; background: var(--paper); }
.aesthetic-gallery-heading { margin-bottom: 44px; padding-top: 52px; display: grid; grid-template-columns: 1fr .8fr; gap: 60px; align-items: end; border-top: 1px solid var(--line); }
.aesthetic-gallery-heading h2 { margin: 0; font-size: clamp(3rem, 5vw, 5rem); }
.aesthetic-gallery-heading > p { max-width: 470px; margin: 0 0 5px; color: #66615d; font-family: Georgia, "Times New Roman", serif; font-size: 1.08rem; line-height: 1.55; }
.aesthetic-gallery { display: grid; grid-template-columns: 1.35fr .8fr .8fr; grid-template-rows: 460px; gap: 18px; }
.aesthetic-gallery figure { position: relative; min-width: 0; margin: 0; overflow: hidden; background: var(--charcoal); border-radius: 8px 29px 8px 29px; }
.aesthetic-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease, filter .5s ease; }
.aesthetic-gallery figure:hover img { transform: scale(1.035); filter: saturate(1.05); }
.aesthetic-gallery figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(12,12,12,.76), transparent 55%); pointer-events: none; }
.aesthetic-gallery figcaption { position: absolute; z-index: 1; left: 23px; right: 23px; bottom: 20px; display: flex; align-items: end; justify-content: space-between; gap: 12px; color: white; }
.aesthetic-gallery figcaption span { font-family: var(--display); font-size: clamp(1.4rem, 2.3vw, 2.2rem); line-height: 1; text-transform: uppercase; }
.aesthetic-gallery figcaption small { color: rgba(255,255,255,.7); font-size: .68rem; font-weight: 800; letter-spacing: .09em; text-align: right; text-transform: uppercase; }
@media (max-width: 920px) { .aesthetic-gallery { grid-template-columns: 1.15fr .85fr; grid-template-rows: 300px 300px; } .aesthetic-gallery-main { grid-row: 1 / -1; } }
@media (max-width: 560px) { .aesthetic-gallery-heading { display: block; } .aesthetic-gallery-heading > p { margin-top: 15px; } .aesthetic-gallery { grid-template-columns: 1fr; grid-template-rows: 340px 240px 240px; gap: 12px; } .aesthetic-gallery-main { grid-row: auto; } .aesthetic-gallery figcaption { left: 15px; right: 15px; bottom: 14px; display: block; } .aesthetic-gallery figcaption span { display: block; font-size: 1.25rem; } .aesthetic-gallery figcaption small { display: block; margin-top: 5px; font-size: .56rem; text-align: left; } }

.manicure-gallery-section { background: #f3f1ed; }
.manicure-gallery-heading { margin-bottom: 44px; padding-top: 52px; display: grid; grid-template-columns: 1fr .8fr; gap: 60px; align-items: end; border-top: 1px solid var(--line); }
.manicure-gallery-heading h2 { margin: 0; font-size: clamp(3rem, 5vw, 5rem); }
.manicure-gallery-heading > p { max-width: 470px; margin: 0 0 5px; color: #66615d; font-family: Georgia, "Times New Roman", serif; font-size: 1.08rem; line-height: 1.55; }
.manicure-gallery { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); gap: 18px; align-items: stretch; }
.manicure-gallery-photo { position: relative; min-height: 560px; margin: 0; overflow: hidden; background: var(--charcoal); border-radius: 29px 8px 29px 8px; }
.manicure-gallery-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .7s ease, filter .5s ease; }
.manicure-gallery-photo:hover img { transform: scale(1.035); filter: saturate(1.05); }
.manicure-gallery-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(12,12,12,.8), transparent 55%); pointer-events: none; }
.manicure-gallery-photo figcaption { position: absolute; z-index: 1; left: 23px; right: 23px; bottom: 20px; display: flex; align-items: end; justify-content: space-between; gap: 12px; color: var(--white); }
.manicure-gallery-photo figcaption span { font-family: var(--display); font-size: clamp(1.4rem, 2.3vw, 2.2rem); line-height: 1; text-transform: uppercase; }
.manicure-gallery-photo figcaption small { color: rgba(255,255,255,.7); font-size: .68rem; font-weight: 800; letter-spacing: .09em; text-align: right; text-transform: uppercase; }
.manicure-gallery-note { align-self: end; min-height: 310px; padding: clamp(30px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; background: var(--charcoal); border-radius: 8px 29px 8px 29px; color: var(--white); }
.manicure-gallery-note h3 { max-width: 340px; margin: 20px 0 18px; color: var(--white); font-size: clamp(2.1rem, 3.8vw, 3.8rem); line-height: .95; }
.manicure-gallery-note p { max-width: 340px; margin: 0; color: rgba(255,255,255,.7); font-family: Georgia, "Times New Roman", serif; font-size: 1.05rem; line-height: 1.55; }
@media (max-width: 760px) { .manicure-gallery { grid-template-columns: 1fr; } .manicure-gallery-photo { min-height: 440px; } .manicure-gallery-note { min-height: 260px; } }
@media (max-width: 560px) { .manicure-gallery-heading { display: block; } .manicure-gallery-heading > p { margin-top: 15px; } .manicure-gallery-photo { min-height: 360px; } .manicure-gallery-photo figcaption { left: 15px; right: 15px; bottom: 14px; display: block; } .manicure-gallery-photo figcaption span { display: block; font-size: 1.25rem; } .manicure-gallery-photo figcaption small { display: block; margin-top: 5px; font-size: .56rem; text-align: left; } .manicure-gallery-note { padding: 28px 22px; } }

.lavabo-gallery-section { background: var(--charcoal); color: var(--white); }
.lavabo-gallery-heading { margin-bottom: 44px; display: grid; grid-template-columns: 1fr .8fr; gap: 60px; align-items: end; }
.lavabo-gallery-heading h2 { margin: 0; color: var(--white); font-size: clamp(3rem, 5vw, 5rem); }
.lavabo-gallery-heading > p { max-width: 470px; margin: 0 0 5px; color: rgba(255,255,255,.7); font-family: Georgia, "Times New Roman", serif; font-size: 1.08rem; line-height: 1.55; }
.lavabo-gallery { display: grid; grid-template-columns: 1.35fr .85fr; grid-template-rows: 460px; gap: 18px; }
.lavabo-gallery figure { position: relative; min-width: 0; margin: 0; overflow: hidden; background: #161515; border-radius: 29px 8px 29px 8px; }
.lavabo-gallery-detail { border-radius: 8px 29px 8px 29px !important; }
.lavabo-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease, filter .5s ease; }
.lavabo-gallery figure:hover img { transform: scale(1.035); filter: saturate(1.05); }
.lavabo-gallery figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,8,8,.8), transparent 55%); pointer-events: none; }
.lavabo-gallery figcaption { position: absolute; z-index: 1; left: 23px; right: 23px; bottom: 20px; display: flex; align-items: end; justify-content: space-between; gap: 12px; color: var(--white); }
.lavabo-gallery figcaption span { font-family: var(--display); font-size: clamp(1.4rem, 2.3vw, 2.2rem); line-height: 1; text-transform: uppercase; }
.lavabo-gallery figcaption small { color: rgba(255,255,255,.7); font-size: .68rem; font-weight: 800; letter-spacing: .09em; text-align: right; text-transform: uppercase; }
@media (max-width: 560px) { .lavabo-gallery-heading { display: block; } .lavabo-gallery-heading > p { margin-top: 15px; } .lavabo-gallery { grid-template-columns: 1fr; grid-template-rows: 330px 240px; gap: 12px; } .lavabo-gallery figcaption { left: 15px; right: 15px; bottom: 14px; display: block; } .lavabo-gallery figcaption span { display: block; font-size: 1.25rem; } .lavabo-gallery figcaption small { display: block; margin-top: 5px; font-size: .56rem; text-align: left; } }

.space-gallery-heading {
  margin-bottom: 48px;
  padding-top: 52px;
  display: grid;
  grid-template-columns: 1fr .8fr;
  gap: 60px;
  align-items: end;
  border-top: 1px solid var(--line);
}

.space-gallery-heading h2 {
  font-size: clamp(3rem, 5vw, 5rem);
}

.space-gallery-heading > p {
  max-width: 470px;
  margin: 0 0 5px;
  color: #66615d;
}

.space-gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}

.space-photo,
.space-photo-stack {
  min-width: 0;
}

.space-photo {
  position: relative;
  margin: 0;
  min-height: 430px;
  overflow: hidden;
  border-radius: 34px 8px 34px 8px;
  background: var(--charcoal);
}

.space-photo-main {
  grid-column: span 8;
  min-height: 720px;
}

.space-photo-corridor {
  grid-column: span 4;
  min-height: 720px;
}

.space-photo-treatment {
  grid-column: span 7;
  min-height: 680px;
}

.space-photo-stack {
  grid-column: span 5;
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 20px;
}

.space-photo-stack .space-photo { min-height: 330px; }

.space-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .75s cubic-bezier(.2,.7,.2,1), filter .75s ease;
}

.space-photo-main img { object-position: center 55%; }
.space-photo-treatment img { object-position: center 58%; }
.space-photo-corridor img { object-position: center 45%; }
.space-photo-stack .space-photo:first-child img { object-position: center 62%; }
.space-photo-stack .space-photo:last-child img { object-position: center 60%; }

.space-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(12,12,12,.72), rgba(12,12,12,0) 42%);
}

.space-photo:hover img {
  transform: scale(1.025);
  filter: saturate(1.05);
}

.space-photo figcaption {
  position: absolute;
  z-index: 2;
  left: 28px;
  right: 28px;
  bottom: 24px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  color: var(--white);
}

.space-photo figcaption span {
  font-family: var(--display);
  font-size: clamp(1.55rem, 2.6vw, 2.6rem);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.space-photo figcaption small {
  color: rgba(255,255,255,.7);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-align: right;
  text-transform: uppercase;
}

.space-tour-section {
  color: var(--cream);
  background: var(--charcoal);
  overflow: hidden;
}

.space-tour-grid {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: clamp(60px, 8vw, 110px);
  align-items: center;
}

.space-tour-copy h2 {
  margin-bottom: 24px;
  font-size: clamp(3rem, 5vw, 5.4rem);
}

.space-tour-copy > p:not(.eyebrow) {
  max-width: 430px;
  color: rgba(239,232,219,.66);
}

.space-tour-options {
  margin-top: 44px;
  border-top: 1px solid rgba(255,255,255,.15);
}

.space-tour-option {
  position: relative;
  width: 100%;
  min-height: 76px;
  padding: 18px 44px 18px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  color: rgba(255,255,255,.52);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.15);
  cursor: pointer;
  text-align: left;
  transition: color .22s ease, padding-left .22s ease;
}

.space-tour-option::after {
  content: "▶";
  position: absolute;
  right: 4px;
  top: 50%;
  color: var(--orange);
  font-size: .75rem;
  transform: translateY(-50%);
}

.space-tour-option:hover,
.space-tour-option.is-active {
  padding-left: 14px;
  color: var(--white);
}

.space-tour-option span {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  text-transform: uppercase;
}

.space-tour-option small {
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.space-video-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.space-video-frame {
  position: relative;
  width: 100%;
  min-height: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.space-video-frame::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: min(100%, 390px);
  aspect-ratio: 464 / 832;
  border-radius: 58px;
  background: radial-gradient(ellipse at center, rgba(228,91,28,.28), transparent 68%);
  filter: blur(22px);
  transform: translate(18px, 24px) scale(.94);
  pointer-events: none;
}

.space-phone {
  position: relative;
  z-index: 1;
  width: clamp(250px, 27vw, 356px);
  aspect-ratio: 464 / 832;
  padding: 10px;
  border: 2px solid #4b4b4b;
  border-radius: 48px;
  background: linear-gradient(145deg, #292929 0%, #090909 42%, #1c1c1c 100%);
  box-shadow:
    0 34px 70px rgba(0,0,0,.48),
    0 0 0 1px rgba(228,91,28,.25),
    inset 2px 2px 0 rgba(255,255,255,.1),
    inset -3px -3px 0 rgba(0,0,0,.7);
}

.space-phone::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: 15px;
  left: 50%;
  width: 72px;
  height: 21px;
  border-radius: 999px;
  background: #050505;
  box-shadow: inset 0 1px 2px rgba(255,255,255,.08), 0 1px 1px rgba(0,0,0,.8);
  transform: translateX(-50%);
  pointer-events: none;
}

.space-phone::after {
  content: "";
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 15px;
  width: 76px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,.86);
  transform: translateX(-50%);
  pointer-events: none;
}

.space-phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 38px;
  background: #080808;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.16);
}

.space-phone-screen video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Ao maximizar, o tour respeita os limites do viewport sem cortar o retrato. */
.space-phone-screen video:fullscreen,
.space-phone-screen video:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  object-fit: contain;
  background: #080808;
}

.space-video-idle {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  color: var(--orange-bright);
  background: #080808;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 1.8s cubic-bezier(.22,.61,.36,1), visibility 1.8s ease;
  will-change: opacity;
}
.space-phone-screen.is-idle .space-video-idle {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0s, visibility 0s;
}
.space-phone-screen.is-transitioning .space-video-idle {
  opacity: 1;
  visibility: visible;
  pointer-events: none;
}
.space-phone-screen.is-intro-transition .space-video-idle {
  transition: opacity 0s, visibility 0s;
}
.space-video-idle img {
  display: block;
  width: min(58%, 152px);
  height: auto;
  object-fit: contain;
  opacity: .95;
}
.space-video-idle span {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
#space-video-idle-title { font-size: 1.3rem; }
.space-video-play {
  width: 50%;
  aspect-ratio: 1;
  height: auto;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--orange-bright);
  background: transparent;
  border: 6px solid currentColor;
  border-radius: 50%;
  cursor: pointer;
  margin: 20px 0;
}
.space-video-play:focus-visible { outline: 2px solid var(--white); outline-offset: 4px; }
.space-video-play-icon {
  display: block;
  width: 22%;
  height: 28%;
  margin-left: 3%;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.space-video-play-label {
  color: var(--white);
  font-family: var(--display);
  font-size: clamp(5.3px, .43vw, 6.4px);
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: none;
}
.space-video-play-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.space-video-meta {
  width: min(100%, 356px);
  padding: 22px 4px 0;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: baseline;
}

.space-video-meta span {
  color: var(--orange-bright);
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 700;
  text-transform: uppercase;
}

.space-video-meta p {
  margin: 0;
  color: rgba(239,232,219,.62);
  text-align: right;
}
.space-video-meta p.is-two-line-copy { font-size: .94rem; }

.space-closing { background: var(--paper); }

.space-closing-card {
  position: relative;
  min-height: 330px;
  padding: clamp(48px, 7vw, 88px);
  display: flex;
  justify-content: space-between;
  gap: 50px;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  border-radius: 36px 8px 36px 8px;
  background:
    radial-gradient(circle at 85% 15%, rgba(224,91,28,.52), transparent 34%),
    linear-gradient(120deg, #1c1b1a 0%, #302d2b 62%, #5b2d19 100%);
}

.space-closing-card::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -130px;
  width: 360px;
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 50%;
}

.space-closing-card > * { position: relative; z-index: 1; }

.space-closing-card h2 {
  max-width: 760px;
  font-size: clamp(2.8rem, 5vw, 5.1rem);
}

.space-closing-card .button { flex: 0 0 auto; }

@media (max-width: 920px) {
  .space-detail-hero { min-height: 760px; margin-top: 74px; }
  .space-detail-hero-overlay {
    background:
      linear-gradient(90deg, rgba(15,14,13,.84), rgba(15,14,13,.32)),
      linear-gradient(to top, rgba(15,14,13,.78), transparent 65%);
  }
  .space-detail-hero-content { padding-block: 90px; }
  .space-hero-caption { display: none; }
  .space-introduction-grid,
  .space-gallery-heading,
  .space-tour-grid {
    grid-template-columns: 1fr;
  }
  .space-introduction-grid,
  .space-tour-grid { gap: 48px; }
  .space-introduction-copy { padding-top: 0; }
  .space-gallery-heading { gap: 22px; }
  .space-photo-main,
  .space-photo-corridor,
  .space-photo-treatment,
  .space-photo-stack {
    grid-column: 1 / -1;
  }
  .space-photo-main { min-height: 650px; }
  .space-photo-corridor,
  .space-photo-treatment { grid-column: span 6; min-height: 580px; }
  .space-photo-stack {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
  }
  .space-photo-stack .space-photo { min-height: 430px; }
  .space-closing-card { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 620px) {
  .space-detail-hero { min-height: 690px; }
  .space-detail-hero-image { object-position: 62% center; }
  .space-detail-hero-content h1 { font-size: clamp(3.25rem, 16vw, 5.1rem); }
  .space-detail-hero-content > p:not(.eyebrow) { font-size: 1.06rem; }
  .space-introduction h2,
  .space-gallery-heading h2,
  .space-tour-copy h2,
  .space-closing-card h2 { font-size: clamp(2.55rem, 12vw, 3.7rem); }
  .space-gallery { grid-template-columns: 1fr; }
  .space-photo-main,
  .space-photo-corridor,
  .space-photo-treatment,
  .space-photo-stack {
    grid-column: 1;
  }
  .space-photo-main,
  .space-photo-corridor,
  .space-photo-treatment { min-height: 520px; }
  .space-photo-stack {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .space-photo-stack .space-photo { min-height: 430px; }
  .space-photo figcaption {
    left: 22px;
    right: 22px;
    bottom: 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
  }
  .space-photo figcaption small { text-align: left; }
  .space-tour-option { align-items: flex-start; flex-direction: column; gap: 2px; }
  .space-video-meta { align-items: flex-start; flex-direction: column; gap: 5px; }
  .space-video-meta p { text-align: left; }
  .space-closing-card { min-height: 390px; padding: 42px 28px; }
  .space-closing-card .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .space-photo img,
  .space-tour-option { transition: none; }
}

/* Ajustes da nova composição da página Espaço. */
.space-detail-hero-content h1 { line-height: .96; }
.space-detail-hero-content h1 span,
.space-detail-hero-content h1 em { display: block; }
.space-detail-hero-content h1 em { margin-top: 4px; }

.space-introduction {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--white);
  background: var(--charcoal);
}
.space-introduction > .shell { position: relative; z-index: 2; }
.space-introduction-bg,
.space-introduction-overlay { position: absolute; inset: 0; }
.space-introduction-bg { z-index: 0; }
.space-introduction-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 50%; filter: saturate(.72) contrast(1.05); }
.space-introduction-overlay {
  z-index: 1;
  background:
    linear-gradient(100deg, rgba(14,13,12,.96) 0%, rgba(14,13,12,.9) 40%, rgba(14,13,12,.72) 100%),
    linear-gradient(to top, rgba(14,13,12,.72), rgba(14,13,12,.12));
}
.space-introduction h2 { color: var(--white); }
.space-introduction-copy .lead { color: rgba(255,255,255,.9); }
.space-introduction-copy > p:not(.lead) { color: rgba(255,255,255,.72); }
.space-introduction .space-pillars { border-color: rgba(255,255,255,.25); }
.space-introduction .space-pillars span { color: var(--white); border-color: rgba(255,255,255,.35); }

.space-gallery-section {
  display: block;
  padding-top: 104px;
  background: #f3f1ed;
}
.space-gallery-heading {
  margin-bottom: 42px;
  padding-top: 0;
  display: grid;
  grid-template-columns: 1fr .8fr;
  gap: 60px;
  align-items: end;
  border-top: 0;
}
.space-gallery-heading h2 { margin: 0; font-size: clamp(3rem, 5vw, 5rem); }
.space-gallery-heading > p { max-width: 470px; margin: 0 0 5px; color: #66615d; font-family: Georgia, "Times New Roman", serif; font-size: 1.08rem; line-height: 1.55; }
.space-gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.space-gallery-card {
  min-width: 0;
  padding: 0;
  display: block;
  overflow: hidden;
  color: var(--charcoal);
  text-align: left;
  background: var(--paper);
  border: 1px solid rgba(39,38,37,.13);
  border-radius: 26px 8px 26px 8px;
  box-shadow: 0 16px 38px rgba(39,38,37,.07);
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.space-gallery-card:nth-child(4n + 2),
.space-gallery-card:nth-child(4n + 4) { border-radius: 8px 26px 8px 26px; }
.space-gallery-card:hover { transform: translateY(-5px); border-color: rgba(224,91,28,.45); box-shadow: 0 24px 52px rgba(39,38,37,.14); }
.space-gallery-card:focus-visible { outline: 3px solid rgba(224,91,28,.5); outline-offset: 4px; }
.space-gallery-card-media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--charcoal); }
.space-gallery-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .65s cubic-bezier(.2,.7,.2,1), filter .45s ease; }
.space-gallery-card:hover .space-gallery-card-media img { transform: scale(1.045); filter: saturate(1.05); }
.space-gallery-card-body { min-height: 76px; padding: 16px 18px 17px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.space-gallery-card-body strong { font-family: var(--display); font-size: 1.28rem; line-height: .95; text-transform: uppercase; }
.space-gallery-card-body small { display: none; }

.space-lightbox[hidden] { display: none; }
.space-lightbox { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 24px; }
.space-lightbox-backdrop { position: absolute; inset: 0; background: rgba(13,12,11,.9); backdrop-filter: blur(8px); }
.space-lightbox-dialog { position: relative; z-index: 1; max-width: min(94vw, 1120px); max-height: 94vh; display: flex; flex-direction: column; align-items: center; gap: 13px; }
.space-lightbox-dialog img { display: block; max-width: 94vw; max-height: 83vh; width: auto; height: auto; object-fit: contain; border-radius: 20px 6px 20px 6px; box-shadow: 0 28px 80px rgba(0,0,0,.45); }
.space-lightbox-dialog p { margin: 0; color: var(--white); font-family: var(--display); font-size: 1.3rem; line-height: 1; text-align: center; text-transform: uppercase; }
.space-lightbox-close { position: absolute; z-index: 2; top: -18px; right: -18px; width: 42px; height: 42px; display: grid; place-items: center; color: var(--charcoal); background: var(--white); border: 0; border-radius: 50%; box-shadow: 0 8px 20px rgba(0,0,0,.25); cursor: pointer; font-size: 1.7rem; line-height: 1; }
.space-lightbox-close:hover { color: var(--white); background: var(--orange); }
.space-lightbox-close:focus-visible { outline: 3px solid var(--orange-bright); outline-offset: 3px; }
body.space-lightbox-open { overflow: hidden; }

@media (max-width: 920px) {
  .space-gallery-heading { grid-template-columns: 1fr; gap: 22px; }
  .space-gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .space-detail-hero-content h1 { line-height: .94; }
  .space-gallery-section { padding-top: 82px; }
  .space-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .space-gallery-card-body { min-height: 68px; padding: 13px 14px 14px; display: block; }
  .space-gallery-card-body strong { display: block; font-size: 1.05rem; }
  .space-gallery-card-body small { display: block; margin-top: 6px; text-align: left; font-size: .58rem; }
  .space-lightbox { padding: 18px; }
  .space-lightbox-dialog img { max-width: 90vw; max-height: 78vh; }
  .space-lightbox-close { top: -12px; right: -5px; width: 38px; height: 38px; }
}
@media (max-width: 420px) {
  .space-gallery-grid { grid-template-columns: 1fr; }
}

/* Abertura da página alinhada ao padrão chumbo das páginas internas. */
.space-detail-hero {
  min-height: 360px;
  align-items: center;
  background: var(--charcoal);
}
.space-detail-hero-content {
  display: block;
  padding-block: 35px;
}
.space-detail-hero-main { max-width: 780px; }
.space-detail-hero-content h1 {
  max-width: none;
  margin: 14px 0 22px;
  font-size: clamp(3.1rem, 6vw, 6rem);
  line-height: .9;
}
.space-detail-hero-content h1 em { white-space: nowrap; }
.space-detail-hero-main > p:not(.eyebrow) {
  max-width: 550px;
  margin: 0;
  color: rgba(255,255,255,.78);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
  line-height: 1.5;
}

@media (max-width: 920px) {
  .space-detail-hero {
    min-height: 0;
    margin-top: 74px;
  }
  .space-detail-hero-content { padding: 90px 0 72px; }
}
@media (max-width: 620px) {
  .space-detail-hero-content { padding: 72px 0 54px; }
}

/* Carregamento dos vídeos sem poster: a moldura permanece escura até o vídeo estar pronto. */
.space-phone-screen {
  position: relative;
  background: #080808;
}
.space-phone-screen.is-loading video {
  visibility: hidden;
}
.space-video-loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 17px;
  color: var(--orange-bright);
  background: #080808;
  opacity: 1;
  visibility: visible;
  transition: opacity .28s ease, visibility .28s ease;
}
.space-phone-screen:not(.is-loading) .space-video-loading {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.space-phone-screen.is-transitioning .space-video-loading {
  opacity: 1;
  visibility: visible;
  pointer-events: none;
}
.space-phone-screen.is-idle .space-video-loading {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: none;
}
.space-phone-screen.is-idle video,
.space-phone-screen.is-transitioning video {
  visibility: hidden;
}
.space-video-loading-mark {
  position: relative;
  width: min(58%, 152px);
  height: auto;
  display: grid;
  place-items: center;
}
.space-video-loading-mark::before {
  content: none;
  position: absolute;
  inset: 0;
  border: 1px solid rgba(224,91,28,.35);
  border-top-color: var(--orange-bright);
  border-radius: 50%;
  animation: space-loading-spin 1.15s linear infinite;
}
.space-video-loading-mark img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  opacity: .95;
  animation: space-loading-pulse 1.7s ease-in-out infinite;
}
.space-video-loading > span:last-child {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
@keyframes space-loading-spin {
  to { transform: rotate(360deg); }
}
@keyframes space-loading-pulse {
  0%, 100% { opacity: .58; transform: scale(.96); }
  50% { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .space-video-loading-mark::before,
  .space-video-loading-mark img { animation: none; }
}
