/* Justrelax — spa & wellness template
   Tokens, layout primitives and components */

:root {
  --ink: #141110;
  --ink-soft: #3b332c;
  --muted: #746a60;
  --cream: #f7f3ee;
  --cream-deep: #efe7dc;
  --paper: #fffdfa;
  --sand: #e6d9c8;
  --accent: #a9793f;
  --dark: #0f0c0a;
  --line: rgba(20, 17, 16, 0.14);
  --line-strong: rgba(20, 17, 16, 0.28);
  --line-light: rgba(255, 255, 255, 0.18);
  --container: 1280px;
  --pad: clamp(20px, 4vw, 48px);
  --header-h: 88px;
  --serif: "Cormorant Garamond", "Times New Roman", Times, serif;
  --sans: "Jost", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.5rem, 6.6vw, 6.1rem);
}

h2 {
  font-size: clamp(1.9rem, 4vw, 3.5rem);
}

h3 {
  font-size: clamp(1.22rem, 1.7vw, 1.6rem);
  font-weight: 400;
  line-height: 1.16;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.section {
  padding: clamp(56px, 7vw, 118px) 0;
}

.section--paper {
  background: var(--paper);
}

.section--sand {
  background: var(--cream-deep);
}

.section--tight {
  padding: clamp(40px, 5vw, 72px) 0;
}

.eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.lead {
  font-size: clamp(1rem, 1.15vw, 1.1rem);
  color: var(--ink-soft);
  max-width: 46ch;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
  margin-bottom: clamp(28px, 4vw, 56px);
}

.section-head__title {
  max-width: 18ch;
}

.section-head__aside {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

@media (max-width: 820px) {
  .section-head {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

/* ---------- buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 26px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}

.btn:hover {
  background: var(--ink);
  color: var(--cream);
}

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

.btn--solid:hover {
  background: transparent;
  color: var(--ink);
}

.btn--light {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

.btn--light:hover {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.link-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 6px;
  transition: border-color 0.4s var(--ease), gap 0.4s var(--ease);
}

.link-line:hover {
  border-color: var(--ink);
  gap: 16px;
}

.link-line--light {
  border-color: var(--line-light);
  color: #fff;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  min-height: var(--header-h);
  background: var(--dark);
  color: #fff;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-overlay {
  background: linear-gradient(180deg, rgba(10, 8, 7, 0.72) 0%, rgba(10, 8, 7, 0.18) 62%, rgba(10, 8, 7, 0) 100%);
}

.site-header.is-scrolled {
  background: var(--dark);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}

.brand {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1;
  color: inherit;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 40px);
}

.nav__link {
  position: relative;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.86);
  padding: 6px 0;
  transition: color 0.3s var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}

.nav__link:hover,
.nav__link.is-active {
  color: #fff;
}

.nav__link:hover::after,
.nav__link.is-active::after {
  transform: scaleX(1);
}

.nav__cta {
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 2px;
  padding: 12px 20px;
  color: #fff;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}

.nav__cta:hover {
  background: #fff;
  color: var(--ink);
}

.nav__cta::after {
  display: none;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  margin-left: auto;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.nav-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1px;
  background: #fff;
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease);
}

.nav-toggle span:nth-child(1) {
  top: 18px;
}

.nav-toggle span:nth-child(2) {
  top: 26px;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  transform: translateY(-4px) rotate(-45deg);
}

@media (max-width: 960px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    padding: 96px var(--pad) 48px;
    background: var(--dark);
    overflow-y: auto;
  }

  .nav.is-open {
    display: flex;
  }

  .nav__link {
    font-family: var(--serif);
    font-size: 2rem;
    letter-spacing: 0.02em;
    text-transform: none;
    color: #fff;
    padding: 10px 0;
  }

  .nav__link::after {
    display: none;
  }

  .nav__cta {
    margin-top: 20px;
    font-family: var(--sans);
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 14px 24px;
  }

  .nav-toggle {
    position: relative;
    z-index: 75;
  }

  body.is-nav-open .site-header {
    background: var(--dark);
    border-bottom-color: transparent;
  }

  .slider-head {
    flex-wrap: wrap;
    align-items: flex-start;
  }
}

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

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 100svh;
  padding: calc(var(--header-h) + 40px) 0 clamp(48px, 8vw, 96px);
  overflow: hidden;
  background: var(--dark);
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9);
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 8, 7, 0.55) 0%, rgba(10, 8, 7, 0.32) 42%, rgba(10, 8, 7, 0.62) 100%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 0 var(--pad);
}

.hero__title {
  color: #fff;
  font-size: clamp(2.6rem, 6.8vw, 6.2rem);
  line-height: 0.98;
  max-width: 20ch;
  margin: 0 auto;
  text-wrap: balance;
}

.hero__sub {
  margin: clamp(20px, 2.4vw, 34px) auto 0;
  max-width: 46ch;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: clamp(26px, 3vw, 40px);
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- page head (inner pages) ---------- */

.site-main {
  min-height: 60vh;
}

.page-head {
  padding: calc(var(--header-h) + clamp(46px, 7vw, 104px)) 0 clamp(24px, 3vw, 44px);
}

.page-head__inner {
  display: grid;
  gap: 20px;
}

.page-head h1 {
  max-width: 22ch;
}

.page-head .lead {
  max-width: 52ch;
}

.page-head__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  align-items: center;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- editorial intro ---------- */

.editorial {
  max-width: 34em;
  margin: 0 auto;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.9vw, 2.7rem);
  font-weight: 300;
  line-height: 1.24;
  letter-spacing: -0.01em;
  text-align: center;
  text-wrap: pretty;
}

.editorial__img {
  display: inline-block;
  height: 0.95em;
  width: 2.1em;
  margin: 0 0.18em;
  border-radius: 999px;
  object-fit: cover;
  vertical-align: -0.12em;
}

@media (max-width: 640px) {
  .editorial__img {
    width: 1.6em;
  }
}

/* ---------- stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 40px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(28px, 3.6vw, 46px) 0;
}

.stat {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.stat__value {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4.4vw, 4rem);
  line-height: 1;
}

.stat__label {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  max-width: 12ch;
}

@media (max-width: 720px) {
  .stats {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .stat {
    justify-content: space-between;
  }
}

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

.card-grid {
  display: grid;
  gap: clamp(16px, 2vw, 28px);
}

.card-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .card-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .card-grid--3,
  .card-grid--2 {
    grid-template-columns: 1fr;
  }
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  transition: border-color 0.4s var(--ease);
}

.service-card:hover {
  border-color: var(--ink);
}

.service-card__media {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--sand);
}

.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.service-card:hover .service-card__media img {
  transform: scale(1.04);
}

.service-card__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.service-card__price {
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.service-card__text {
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.65;
}

/* procedures: one lead card + two stacked */

.proc-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  grid-template-rows: auto auto;
  gap: clamp(16px, 2vw, 28px);
}

.proc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  padding: 22px;
  min-height: 240px;
  overflow: hidden;
  color: #fff;
  background: var(--dark);
  isolation: isolate;
}

.proc-card:nth-child(1) {
  grid-row: span 2;
  min-height: 420px;
  padding: 30px;
}

.proc-card__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.proc-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.proc-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10, 8, 7, 0.05) 30%, rgba(10, 8, 7, 0.78) 100%);
}

.proc-card:hover .proc-card__media img {
  transform: scale(1.04);
}

.proc-card h3 {
  color: #fff;
  font-size: clamp(1.5rem, 2.6vw, 2.4rem);
}

.proc-card__meta {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

@media (max-width: 860px) {
  .proc-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .proc-card:nth-child(1) {
    grid-row: auto;
    min-height: 320px;
  }
}

/* ---------- statement ---------- */

.statement {
  max-width: 35em;
  margin: 0 auto;
  text-align: center;
}

.statement__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin-bottom: clamp(26px, 3.4vw, 46px);
}

.statement__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.statement h2 {
  max-width: 24ch;
  margin: 0 auto;
}

/* ---------- specialists slider ---------- */

.slider-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(24px, 3vw, 40px);
}

.slider-nav {
  display: flex;
  gap: 10px;
}

.slider-btn {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}

.slider-btn:hover {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

.slider-btn svg {
  width: 16px;
  height: 16px;
}

.slider-track {
  display: flex;
  gap: clamp(14px, 2vw, 26px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.slider-track::-webkit-scrollbar {
  display: none;
}

.team-card {
  flex: 0 0 calc((100% - 2 * clamp(14px, 2vw, 26px)) / 3);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.team-card__media {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--sand);
}

.team-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.team-card:hover .team-card__media img {
  transform: scale(1.04);
}

.team-card__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.team-card__role {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

@media (max-width: 900px) {
  .team-card {
    flex: 0 0 62%;
  }
}

@media (max-width: 560px) {
  .team-card {
    flex: 0 0 78%;
  }
}

/* ---------- newsletter ---------- */

.subscribe {
  display: grid;
  grid-template-columns: 1.1fr 0.7fr 1fr;
  gap: clamp(24px, 3vw, 48px);
  align-items: center;
}

.subscribe__media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.subscribe__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.subscribe h2 {
  max-width: 16ch;
}

@media (max-width: 980px) {
  .subscribe {
    grid-template-columns: 1fr;
  }

  .subscribe__media {
    aspect-ratio: 16 / 9;
    order: 3;
  }
}

.form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label,
.field legend {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.95rem;
  line-height: 1.5;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.field textarea {
  min-height: 132px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(169, 121, 63, 0.16);
}

.field__hint {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0;
  text-transform: none;
}

.field__error {
  font-size: 0.8rem;
  color: #a4261f;
  letter-spacing: 0;
  text-transform: none;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.86rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.check input {
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  flex: 0 0 auto;
  accent-color: var(--ink);
}

.form-note {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
}

.form-note a {
  border-bottom: 1px solid var(--line-strong);
}

.form-status {
  display: none;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  font-size: 0.9rem;
  line-height: 1.6;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-success {
  border-color: rgba(46, 94, 60, 0.4);
  background: rgba(46, 94, 60, 0.07);
  color: #24512f;
}

.form-status.is-error {
  border-color: rgba(164, 38, 31, 0.4);
  background: rgba(164, 38, 31, 0.06);
  color: #8e231c;
}

.form-status--light {
  color: #fff;
  border-color: var(--line-light);
}

.form-status--light.is-success {
  background: rgba(255, 255, 255, 0.1);
  color: #f2f0ea;
  border-color: rgba(255, 255, 255, 0.4);
}

/* ---------- social row ---------- */

.social-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 32px);
}

.social-link {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.4s var(--ease);
}

.social-link:hover {
  border-color: var(--ink);
}

.social-link h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.9rem);
}

.social-link span {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 700px) {
  .social-row {
    grid-template-columns: 1fr;
  }
}

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

.site-footer {
  background: var(--dark);
  color: #fff;
  padding: clamp(48px, 6vw, 84px) 0 28px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  padding-bottom: clamp(34px, 5vw, 64px);
  border-bottom: 1px solid var(--line-light);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-brand .brand {
  font-size: 2rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.66);
  max-width: 34ch;
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-content: flex-start;
}

.footer-link {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.3s var(--ease);
}

.footer-link:hover,
.footer-link.is-active {
  color: #fff;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 24px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.footer-contact a:hover {
  color: #fff;
}

@media (max-width: 820px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
}

/* ---------- detail pages ---------- */

.detail-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}

.detail-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--sand);
}

.detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.price {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  line-height: 1;
}

.detail-body,
.rich-text {
  max-width: 62ch;
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: var(--ink-soft);
}

.rich-text {
  display: block;
  white-space: pre-line;
}

.section-head__title h2 {
  margin-top: 14px;
}

.section-head__media {
  width: 100%;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  background: var(--sand);
}

.section-head__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-actions {
  display: flex;
  gap: 16px;
  margin-top: clamp(24px, 3vw, 40px);
}

.page-head__meta a {
  border-bottom: 1px solid var(--line-strong);
}

.page-head__meta a:hover {
  border-color: var(--ink);
}

.spec-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.spec-list li {
  display: flex;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.spec-list li strong {
  font-weight: 500;
  color: var(--ink);
  min-width: 108px;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-top: 4px;
}

@media (max-width: 860px) {
  .detail-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- blog ---------- */

.post-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.post-card__media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--sand);
}

.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.post-card:hover .post-card__media img {
  transform: scale(1.04);
}

.post-card__meta {
  display: flex;
  gap: 12px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.post-card h3 {
  font-size: clamp(1.3rem, 2vw, 1.75rem);
}

.post-card p {
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.post-hero {
  aspect-ratio: 16 / 8;
  overflow: hidden;
  margin: clamp(20px, 3vw, 36px) 0 clamp(28px, 4vw, 48px);
  background: var(--sand);
}

.post-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-body {
  max-width: 66ch;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--ink-soft);
  white-space: pre-line;
}

.post-title {
  max-width: 26ch;
}

/* ---------- about ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
}

.about-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.about-media div {
  overflow: hidden;
  background: var(--sand);
}

.about-media div:nth-child(1) {
  aspect-ratio: 3 / 4;
  grid-column: span 2;
}

.about-media div:nth-child(2),
.about-media div:nth-child(3) {
  aspect-ratio: 1 / 1;
}

.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.value-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}

.value {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.value h3 {
  font-size: 1.25rem;
}

.value p {
  color: var(--ink-soft);
  font-size: 0.94rem;
}

@media (max-width: 860px) {
  .about-grid,
  .value-list {
    grid-template-columns: 1fr;
  }
}

/* ---------- contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 4vw, 72px);
  align-items: start;
}

.contact-aside {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.info-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.info-block .eyebrow {
  margin-bottom: 4px;
}

.info-block a:hover {
  color: var(--accent);
}

.contact-map {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--sand);
}

.contact-map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- prose / info pages ---------- */

.prose {
  max-width: 68ch;
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: var(--ink-soft);
}

.prose h2 {
  margin-top: 18px;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
}

.prose a {
  border-bottom: 1px solid var(--line-strong);
}

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

.cta-band {
  background: var(--dark);
  color: #fff;
  padding: clamp(56px, 7vw, 104px) 0;
}

.cta-band h2 {
  color: #fff;
  max-width: 22ch;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.72);
  max-width: 46ch;
}

.cta-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.cta-band__text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ---------- reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .service-card__media img,
  .proc-card__media img,
  .team-card__media img,
  .post-card__media img {
    transition: none;
  }
}

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


/* select-inset-fix:20261116:v1 */
/* Single native selects only; keep site colours, borders, sizing and interaction. */
select:not([multiple]):is(:not([size]),[size="0"],[size="1"]){
 -webkit-appearance:none!important; -moz-appearance:none!important; appearance:none!important;
 padding-inline-end:44px!important;
 background-image:linear-gradient(45deg,transparent 50%,currentColor 50%),linear-gradient(135deg,currentColor 50%,transparent 50%)!important;
 background-position:right 22px center,right 16px center!important;
 background-size:6px 6px,6px 6px!important; background-repeat:no-repeat!important;
}
select:not([multiple]):is(:not([size]),[size="0"],[size="1"]):dir(rtl){background-position:left 16px center,left 22px center!important}
@media (forced-colors:active){select:not([multiple]):is(:not([size]),[size="0"],[size="1"]){-webkit-appearance:auto!important;-moz-appearance:auto!important;appearance:auto!important;background-image:none!important}}
