:root {
  --bg-ivory: #f7f1e8;
  --bg-beige: #efe4d7;
  --bg-taupe: #d9cdc0;
  --bg-stone: #ebe3da;
  --bg-greige: #f1ece6;
  --ink: #201b18;
  --ink-soft: #645c56;
  --accent: #7b8a73;
  --accent-deep: #64715e;
  --accent-soft: rgba(123, 138, 115, 0.12);
  --white: #ffffff;
  --border: rgba(32, 27, 24, 0.08);
  --shadow-soft: 0 24px 60px rgba(52, 42, 33, 0.1);
  --shadow-card: 0 18px 40px rgba(69, 57, 47, 0.08);
  --radius-xl: 36px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max-width: 1200px;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --transition: 220ms ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink-soft);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.8), transparent 30%),
    radial-gradient(circle at right 12%, rgba(123, 138, 115, 0.08), transparent 22%),
    linear-gradient(180deg, #fbf8f4 0%, #f7f1e8 36%, #f5efe8 100%);
  line-height: 1.7;
  min-height: 100vh;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto auto 12% -120px;
  width: 320px;
  height: 320px;
  background: rgba(255, 255, 255, 0.46);
  filter: blur(18px);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

body::after {
  inset: 18% -140px auto auto;
  width: 380px;
  height: 380px;
  background: rgba(123, 138, 115, 0.08);
}

h1,
h2,
h3,
h4,
strong {
  color: var(--ink);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(3rem, 6vw, 5.6rem);
}

h2 {
  font-size: clamp(2.2rem, 4vw, 3.8rem);
}

h3 {
  font-size: clamp(1.45rem, 2.3vw, 2rem);
}

p {
  margin: 0 0 1rem;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.container {
  width: min(var(--max-width), calc(100% - 2.4rem));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--ink);
  color: var(--white);
  padding: 0.9rem 1rem;
  z-index: 10000;
}

.skip-link:focus {
  top: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.9rem 1.45rem;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition:
    transform var(--transition),
    background-color var(--transition),
    color var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 12px 28px rgba(100, 113, 94, 0.22);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--accent-deep);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.75);
  color: var(--ink);
  border-color: var(--border);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: rgba(32, 27, 24, 0.16);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: rgba(255, 255, 255, 0.5);
}

.btn-full {
  width: 100%;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  color: var(--accent-deep);
}

.text-link::after {
  content: "->";
  transition: transform var(--transition);
}

.text-link:hover::after,
.text-link:focus-visible::after {
  transform: translateX(4px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header-top-strip {
  height: 10px;
  background:
    linear-gradient(180deg, rgba(170, 161, 151, 0.78), rgba(189, 180, 170, 0.72));
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 1.4rem;
  margin-left: 1.8rem;
}

.header-login-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 600;
}

.header-login-icon {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-login-link:hover,
.header-login-link:focus-visible {
  color: var(--ink);
}

.main-header {
  background: rgba(251, 248, 244, 0.82);
  border-bottom: 1px solid rgba(32, 27, 24, 0.06);
}

.header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 84px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.brand-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.brand-text {
  display: grid;
  gap: 0.1rem;
}

.brand-text strong {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1;
}

.brand-text small {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  margin-left: auto;
}

.site-nav a {
  position: relative;
  font-size: 0.96rem;
  color: var(--ink-soft);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.66);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.28rem;
}

.menu-toggle span {
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  transition: transform var(--transition), opacity var(--transition);
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.home-hero,
.page-hero {
  padding: clamp(4.5rem, 8vw, 7.2rem) 0 3rem;
}

.home-hero {
  padding: 0 0 3rem;
}

.hero-grid,
.page-hero-grid,
.editorial-grid,
.profile-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: center;
}

.hero-copy,
.page-hero-grid > div:first-child {
  max-width: 640px;
}

body[data-page="about"] .page-hero-grid,
body[data-page="booking"] .page-hero-grid,
body[data-page="contact"] .page-hero-grid,
body[data-page="portal"] .page-hero-grid {
  position: relative;
  padding: clamp(1.8rem, 5vw, 3rem);
  border-radius: 48px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(239, 228, 215, 0.56));
  border: 1px solid rgba(32, 27, 24, 0.07);
  border-left: 2px solid rgba(123, 138, 115, 0.26);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  isolation: isolate;
}

body[data-page="about"] .page-hero-grid::before,
body[data-page="booking"] .page-hero-grid::before,
body[data-page="contact"] .page-hero-grid::before,
body[data-page="portal"] .page-hero-grid::before,
body[data-page="about"] .page-hero-grid::after,
body[data-page="booking"] .page-hero-grid::after,
body[data-page="contact"] .page-hero-grid::after,
body[data-page="portal"] .page-hero-grid::after {
  content: none;
}

body[data-page="about"] .page-hero-grid > *,
body[data-page="booking"] .page-hero-grid > *,
body[data-page="contact"] .page-hero-grid > *,
body[data-page="portal"] .page-hero-grid > * {
  position: relative;
  z-index: 1;
}

.home-hero-bleed {
  position: relative;
  min-height: clamp(620px, 82vh, 860px);
  margin-inline: calc(50% - 50vw);
  overflow: hidden;
  background: var(--bg-greige);
}

.home-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.home-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(247, 241, 232, 0.76) 0%, rgba(247, 241, 232, 0.48) 36%, rgba(247, 241, 232, 0.1) 68%),
    linear-gradient(180deg, rgba(251, 248, 244, 0.18) 0%, rgba(32, 27, 24, 0.18) 100%);
}

.home-hero-content {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 2rem;
  align-items: center;
  align-content: center;
  padding-block: clamp(2rem, 5vw, 3.5rem);
}

.home-hero-panel {
  max-width: 700px;
  align-self: center;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.home-hero-panel h1,
.home-hero-panel .lead {
  text-shadow: 0 4px 28px rgba(251, 248, 244, 0.18);
}

.home-hero-side {
  position: relative;
  display: grid;
  align-content: end;
  justify-items: end;
  gap: 1rem;
  min-height: 100%;
  align-self: end;
}

.eyebrow,
.section-tag,
.pathway-kicker,
.fee-label,
.profile-tag,
.floating-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.lead {
  font-size: 1.08rem;
  max-width: 40rem;
  margin-top: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 2.5rem 0 1.6rem;
}

.home-hero-panel .hero-actions {
  justify-content: flex-start;
}

.portrait-shell {
  position: relative;
  padding: 2rem 1.4rem 1.4rem;
}

.portrait-card,
.page-hero-media,
.sidebar-card,
.detail-card,
.pathway-card,
.fee-card,
.profile-card,
.quote-panel,
.service-list-card,
.notice-panel,
.contact-form-card,
.contact-side-card {
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(32, 27, 24, 0.07);
  box-shadow: var(--shadow-soft);
}

.portrait-card {
  border-radius: 48px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(239, 228, 215, 0.78));
}

body[data-page="about"] main .section > .container,
body[data-page="services"] main .section > .container,
body[data-page="booking"] main .section > .container,
body[data-page="contact"] main .section > .container,
body[data-page="portal"] main .section > .container,
body[data-page="welcome"] main .section > .container {
  position: relative;
}

body[data-page="about"] main .section.section-soft > .container,
body[data-page="services"] main .section.section-soft > .container,
body[data-page="booking"] main .section.section-soft > .container,
body[data-page="contact"] main .section.section-soft > .container,
body[data-page="portal"] main .section.section-soft > .container,
body[data-page="welcome"] main .section.section-soft > .container {
  padding: clamp(1.5rem, 4vw, 2.6rem);
  border-radius: 42px;
  background: linear-gradient(180deg, rgba(244, 237, 229, 0.88), rgba(239, 228, 215, 0.68));
  border: 1px solid rgba(32, 27, 24, 0.06);
  border-left: 2px solid rgba(123, 138, 115, 0.22);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  isolation: isolate;
}

body[data-page="about"] main .section.section-stone > .container,
body[data-page="services"] main .section.section-stone > .container,
body[data-page="booking"] main .section.section-stone > .container,
body[data-page="contact"] main .section.section-stone > .container,
body[data-page="portal"] main .section.section-stone > .container,
body[data-page="welcome"] main .section.section-stone > .container {
  padding: clamp(1.5rem, 4vw, 2.6rem);
  border-radius: 42px;
  background: linear-gradient(180deg, rgba(241, 236, 230, 0.92), rgba(235, 227, 218, 0.74));
  border: 1px solid rgba(32, 27, 24, 0.06);
  border-left: 2px solid rgba(123, 138, 115, 0.18);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  isolation: isolate;
}

body[data-page="about"] main .section.section-soft > .container::before,
body[data-page="services"] main .section.section-soft > .container::before,
body[data-page="booking"] main .section.section-soft > .container::before,
body[data-page="contact"] main .section.section-soft > .container::before,
body[data-page="portal"] main .section.section-soft > .container::before,
body[data-page="welcome"] main .section.section-soft > .container::before,
body[data-page="about"] main .section.section-stone > .container::before,
body[data-page="services"] main .section.section-stone > .container::before,
body[data-page="booking"] main .section.section-stone > .container::before,
body[data-page="contact"] main .section.section-stone > .container::before,
body[data-page="portal"] main .section.section-stone > .container::before,
body[data-page="welcome"] main .section.section-stone > .container::before,
body[data-page="about"] main .section.section-soft > .container::after,
body[data-page="services"] main .section.section-soft > .container::after,
body[data-page="booking"] main .section.section-soft > .container::after,
body[data-page="contact"] main .section.section-soft > .container::after,
body[data-page="portal"] main .section.section-soft > .container::after,
body[data-page="welcome"] main .section.section-soft > .container::after,
body[data-page="about"] main .section.section-stone > .container::after,
body[data-page="services"] main .section.section-stone > .container::after,
body[data-page="booking"] main .section.section-stone > .container::after,
body[data-page="contact"] main .section.section-stone > .container::after,
body[data-page="portal"] main .section.section-stone > .container::after,
body[data-page="welcome"] main .section.section-stone > .container::after {
  content: none;
}

body[data-page="about"] main .section > .container > *,
body[data-page="services"] main .section > .container > *,
body[data-page="booking"] main .section > .container > *,
body[data-page="contact"] main .section > .container > *,
body[data-page="portal"] main .section > .container > *,
body[data-page="welcome"] main .section > .container > * {
  position: relative;
  z-index: 1;
}

.portrait-image {
  width: 100%;
  aspect-ratio: 0.86;
  object-fit: cover;
  object-position: center top;
}

.hero-scene-image {
  aspect-ratio: 1.16;
  object-position: center center;
}

.floating-card.home-hero-hours {
  position: relative;
  left: auto;
  bottom: auto;
  width: 100%;
  max-width: 300px;
  background: rgba(247, 241, 232, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 24px rgba(52, 42, 33, 0.04);
}

.home-hero-mark {
  position: relative;
  top: auto;
  right: auto;
}

.floating-card {
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(300px, 76%);
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  background: rgba(247, 241, 232, 0.9);
  border: 1px solid rgba(32, 27, 24, 0.08);
  box-shadow: var(--shadow-card);
}

.floating-card p:last-child {
  margin-bottom: 0;
}

.floating-mark {
  position: absolute;
  top: 0;
  right: 0;
  width: 140px;
  height: 140px;
  padding: 1.1rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-card);
}

.home-hero-mark {
  top: 2rem;
  right: 2rem;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 28px rgba(52, 42, 33, 0.06);
}

.floating-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.section {
  padding: clamp(4rem, 6vw, 6rem) 0;
}

.section-soft {
  background: linear-gradient(180deg, rgba(239, 228, 215, 0.48), rgba(255, 255, 255, 0.2));
}

.section-stone {
  background: linear-gradient(180deg, rgba(235, 227, 218, 0.78), rgba(247, 241, 232, 0.45));
}

.section-heading {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 2.2rem;
}

.section-heading::after {
  content: "";
  width: 76px;
  height: 1px;
  margin-top: 0.35rem;
  background: linear-gradient(90deg, rgba(123, 138, 115, 0.58), rgba(123, 138, 115, 0));
}

.section-heading.center {
  max-width: 48rem;
  margin-inline: auto;
  text-align: center;
}

.section-heading.center::after {
  margin-inline: auto;
}

.section-heading.center .section-tag {
  justify-self: center;
}

.pathways-grid,
.fees-preview,
.topics-grid,
.pillars-grid,
.studio-grid,
.contact-cards,
.steps-grid {
  display: grid;
  gap: 1.35rem;
}

.pathways-grid,
.fees-preview,
.contact-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.pathways-grid {
  grid-template-rows: repeat(5, auto);
}

.pathways-grid > .pathway-card {
  display: grid;
  grid-row: span 5;
  grid-template-rows: subgrid;
  gap: 0.5rem;
}

.pathways-grid > .pathway-card .check-list {
  margin: 0.5rem 0;
}

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

.pathway-card,
.fee-card,
.detail-card,
.step-card,
.topic-card,
.studio-panel {
  border-radius: var(--radius-lg);
  padding: 1.6rem;
}

.step-card {
  position: relative;
  display: grid;
  gap: 0.55rem;
  align-content: start;
  min-height: 100%;
  padding: 0.35rem 0.35rem 0 0;
  border-radius: 0;
  background: none;
  border: none;
  box-shadow: none;
}

.step-number {
  position: relative;
  top: auto;
  left: auto;
  display: block;
  width: auto;
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(5.2rem, 11vw, 8rem);
  font-weight: 600;
  line-height: 0.78;
  letter-spacing: -0.08em;
  text-align: center;
  transform: none;
  color: rgba(123, 138, 115, 0.22);
  pointer-events: none;
  z-index: 0;
}

.step-number::after {
  content: none;
}

.step-card h3 {
  position: relative;
  z-index: 1;
  max-width: 15rem;
  padding-top: 0;
}

.step-card p {
  position: relative;
  z-index: 1;
}

.home-contact-section {
  padding-top: 1.6rem;
  scroll-margin-top: 7.5rem;
}

.home-contact-eyebrow {
  margin-bottom: 1.1rem;
}

.home-contact-composition {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  grid-template-areas:
    "address connect"
    "address hours";
  gap: 1.1rem 1.25rem;
  align-items: start;
}

.home-contact-panel {
  display: grid;
  align-content: start;
  gap: 0.9rem;
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: var(--shadow-soft);
}

.home-contact-address {
  grid-area: address;
  min-height: 100%;
  padding-right: clamp(1.8rem, 4vw, 2.4rem);
  border-radius: 42px 38px 64px 36px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(235, 227, 218, 0.74));
  border: 1px solid rgba(32, 27, 24, 0.08);
}

.home-contact-connect {
  grid-area: connect;
  gap: 0.7rem;
  align-self: start;
  margin-top: 0;
  padding-block: clamp(1.6rem, 3vw, 2.1rem);
  border-radius: 32px 32px 44px 32px;
  background: linear-gradient(160deg, #56614f, #66725e 58%, #74816d);
  color: rgba(255, 255, 255, 0.86);
  box-shadow: 0 26px 56px rgba(73, 88, 67, 0.22);
}

.home-contact-hours {
  grid-area: hours;
  gap: 1rem;
  align-self: start;
  margin-top: 0.2rem;
  border-radius: 22px 42px 22px 30px;
  background: linear-gradient(180deg, rgba(223, 210, 196, 0.94), rgba(247, 241, 232, 0.98));
  border: 1px solid rgba(32, 27, 24, 0.1);
}

.home-contact-icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  margin-bottom: 0.35rem;
  color: #55624f;
}

.home-contact-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-contact-connect .home-contact-icon {
  color: rgba(247, 241, 232, 0.94);
}

.home-contact-display {
  max-width: 8ch;
  margin-bottom: 0.35rem;
  font-family: var(--font-serif);
  font-size: clamp(2.7rem, 5.3vw, 4.9rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.home-contact-note {
  max-width: 19rem;
  margin-bottom: 0;
  font-size: 1.02rem;
}

.home-contact-link {
  font-family: var(--font-serif);
  font-size: clamp(1.65rem, 3.2vw, 2.5rem);
  line-height: 0.98;
  color: rgba(255, 255, 255, 0.98);
  overflow-wrap: anywhere;
}

.home-contact-link:hover,
.home-contact-link:focus-visible {
  color: rgba(247, 241, 232, 0.76);
}

.home-contact-action {
  justify-self: start;
  margin-top: 0.75rem;
  padding: 0.78rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(247, 241, 232, 0.28);
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.96);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home-contact-action:hover,
.home-contact-action:focus-visible {
  background: rgba(255, 255, 255, 0.18);
}

.home-contact-hours-line {
  display: grid;
  gap: 0.16rem;
  margin: 0;
}

.home-contact-hours-line span {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.home-contact-hours-line strong {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.1vw, 2.55rem);
  line-height: 1.04;
  font-weight: 600;
  color: var(--ink);
}

.detail-card {
  display: grid;
  gap: 0.7rem;
  align-content: start;
}

.accent-card,
.studio-panel,
.contact-side-card {
  background: linear-gradient(180deg, rgba(123, 138, 115, 0.15), rgba(255, 255, 255, 0.76));
}

.check-list {
  display: grid;
  gap: 0.72rem;
  margin: 1.4rem 0;
}

.check-list li {
  position: relative;
  padding-left: 1.5rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: var(--accent);
}

.quote-panel {
  border-radius: var(--radius-xl);
  padding: 2rem;
}

.profile-card,
.detail-card,
.service-list-card,
.quote-panel,
.notice-panel,
.booking-form-card,
.sidebar-card,
.contact-form-card,
.contact-side-card,
.portal-intro-card,
.portal-auth-card,
.portal-panel,
.portal-stat-card,
.welcome-panel,
.welcome-context-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.profile-card > *,
.detail-card > *,
.service-list-card > *,
.quote-panel > *,
.notice-panel > *,
.booking-form-card > *,
.sidebar-card > *,
.contact-form-card > *,
.contact-side-card > *,
.portal-intro-card > *,
.portal-auth-card > *,
.portal-panel > *,
.portal-stat-card > *,
.welcome-panel > *,
.welcome-context-card > * {
  position: relative;
  z-index: 1;
}

.profile-card::before,
.detail-card::before,
.service-list-card::before,
.quote-panel::before,
.notice-panel::before,
.booking-form-card::before,
.sidebar-card::before,
.contact-form-card::before,
.contact-side-card::before,
.portal-intro-card::before,
.portal-auth-card::before,
.portal-panel::before,
.portal-stat-card::before,
.welcome-panel::before,
.welcome-context-card::before {
  content: none;
}

.quote-line {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.08;
  color: var(--ink);
}

.quote-support,
.micro-copy {
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.studio-panel,
.topic-card {
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(32, 27, 24, 0.07);
  box-shadow: var(--shadow-card);
}

.topic-title {
  display: block;
  margin-bottom: 0.7rem;
  font-family: var(--font-serif);
  font-size: 1.55rem;
  color: var(--ink);
}

.fee-card strong {
  display: block;
  margin-bottom: 0.4rem;
  font-family: var(--font-serif);
  font-size: 2rem;
  line-height: 1.1;
}

.contact-banner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 1.5rem;
  align-items: center;
  padding: 2rem;
  border-radius: var(--radius-xl);
}

.notice-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: center;
  padding: 2rem;
  border-radius: var(--radius-xl);
}

.contact-banner-details,
.contact-banner-hours,
.footer-links {
  display: grid;
  gap: 0.55rem;
}

.page-hero-media {
  display: grid;
  place-items: center;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

body[data-page="booking"] .page-hero-media,
body[data-page="portal"] .page-hero-media {
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
}

.page-hero-media img {
  width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-mark {
  width: min(280px, 60%);
  margin: 0 auto;
  padding: 2rem;
  object-fit: contain;
}

.page-hero-media .hero-mark {
  width: min(280px, 60%);
  min-height: auto;
  object-fit: contain;
  object-position: center;
}

.page-hero-mark {
  position: relative;
  top: auto;
  right: auto;
  width: 258px;
  height: 258px;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: 0 18px 40px rgba(69, 57, 47, 0.08);
}

.page-hero-mark .hero-mark {
  width: 100%;
}

.profile-card,
.detail-card,
.service-list-card,
.contact-form-card,
.contact-side-card {
  border-radius: var(--radius-lg);
}

.profile-card,
.contact-form-card,
.contact-side-card {
  padding: 1.8rem;
}

.service-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: start;
}

.service-card-wrap {
  display: grid;
  justify-items: center;
}

.service-list-card {
  width: min(100%, 860px);
  padding: 1.5rem;
}

.service-card-tag {
  display: flex;
  justify-content: center;
  width: fit-content;
  margin: 0 auto 1.2rem;
  font-size: 0.94rem;
  letter-spacing: 0.18em;
}

.service-card-intro {
  margin-bottom: 1rem;
  text-align: center;
}

#iv-drips .service-list-card {
  display: grid;
  justify-items: center;
  gap: 0.9rem;
  text-align: center;
}

#iv-drips .ingredient-grid {
  justify-content: center;
  margin-inline: auto;
  max-width: 34rem;
}

.price-list {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.price-list li,
.sidebar-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(32, 27, 24, 0.08);
}

.price-list li:last-child,
.sidebar-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.price-list span,
.sidebar-list strong {
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap;
}

.ingredient-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.ingredient-grid span {
  display: inline-flex;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--ink);
  font-size: 0.9rem;
}

.booking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.8fr);
  gap: 1.5rem;
  align-items: start;
}

.booking-form-card,
.sidebar-card {
  border-radius: var(--radius-xl);
  padding: 1.6rem;
}

.booking-form-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(32, 27, 24, 0.07);
  box-shadow: var(--shadow-soft);
}

.booking-sidebar {
  display: grid;
  gap: 1rem;
}

.sidebar-card {
  margin-bottom: 0;
}

.booking-form-header {
  margin-bottom: 1.5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(32, 27, 24, 0.12);
  border-radius: 18px;
  padding: 0.95rem 1rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  transition: border-color var(--transition), box-shadow var(--transition), background-color var(--transition);
}

textarea {
  resize: vertical;
  min-height: 150px;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(123, 138, 115, 0.8);
  box-shadow: 0 0 0 4px rgba(123, 138, 115, 0.14);
}

.status {
  margin-top: 1rem;
  min-height: 1.6rem;
  font-size: 0.95rem;
}

.status.success {
  color: #456242;
}

.status.error {
  color: #8c4343;
}

.status a {
  text-decoration: underline;
}

.booking-list {
  display: grid;
  gap: 1rem;
}

.booking-item {
  display: grid;
  gap: 0.3rem;
  padding: 1.2rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(32, 27, 24, 0.08);
  background: rgba(255, 255, 255, 0.68);
}

.booking-item-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.booking-item-status {
  display: inline-flex;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.empty-state {
  padding: 1.4rem;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(32, 27, 24, 0.18);
  background: rgba(255, 255, 255, 0.4);
}

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

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.portal-shell {
  display: grid;
  gap: 1.5rem;
}

.portal-intro-card,
.portal-auth-card,
.portal-panel,
.portal-stat-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(32, 27, 24, 0.07);
  box-shadow: var(--shadow-soft);
}

.portal-intro-card,
.portal-panel {
  border-radius: var(--radius-xl);
  padding: 1.8rem;
}

.portal-auth-card,
.portal-stat-card {
  border-radius: var(--radius-lg);
  padding: 1.6rem;
}

.portal-feature-list,
.portal-auth-grid,
.portal-stats-grid,
.portal-dashboard-grid,
.portal-records-grid {
  display: grid;
  gap: 1rem;
}

.portal-feature-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0.5rem;
}

.portal-feature-list li {
  padding: 1.1rem;
  border-radius: var(--radius-md);
  background: rgba(247, 241, 232, 0.62);
  border: 1px solid rgba(32, 27, 24, 0.05);
}

.portal-feature-list strong {
  display: block;
  margin-bottom: 0.45rem;
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--ink);
}

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

.portal-form {
  margin-top: 1.2rem;
}

.device-note {
  margin-top: -0.2rem;
}

.portal-dashboard-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1.5rem;
}

.portal-stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 1.5rem;
}

.portal-stat-card {
  background: linear-gradient(180deg, rgba(247, 241, 232, 0.82), rgba(235, 227, 218, 0.72));
}

.portal-stat-label {
  display: inline-flex;
  margin-bottom: 0.8rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.portal-stat-card strong {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1;
  color: var(--ink);
}

.portal-dashboard-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  margin-bottom: 1.5rem;
}

.portal-panel-head {
  margin-bottom: 1rem;
}

.portal-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.4rem 0 1rem;
}

.portal-email-lock {
  background: rgba(239, 228, 215, 0.64);
}

.welcome-page-hero {
  padding: 0 0 3rem;
}

.welcome-hero-bleed {
  position: relative;
  min-height: clamp(620px, 82vh, 860px);
  margin-inline: calc(50% - 50vw);
  overflow: hidden;
  background: var(--bg-greige);
}

.welcome-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.welcome-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(247, 241, 232, 0.72) 0%, rgba(247, 241, 232, 0.46) 36%, rgba(247, 241, 232, 0.08) 70%),
    linear-gradient(180deg, rgba(251, 248, 244, 0.14) 0%, rgba(32, 27, 24, 0.16) 100%);
}

.welcome-hero-content {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2rem;
  align-items: end;
  align-content: center;
  padding-block: clamp(2rem, 5vw, 3.5rem);
}

.welcome-hero-panel {
  max-width: 700px;
}

.welcome-hero-panel h1,
.welcome-hero-panel .welcome-lead {
  text-shadow: 0 6px 28px rgba(251, 248, 244, 0.16);
}

.welcome-hero-side {
  display: grid;
  justify-items: end;
}

.welcome-context-card {
  position: relative;
  width: 100%;
  max-width: 320px;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius-lg);
  background: rgba(247, 241, 232, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 14px 34px rgba(52, 42, 33, 0.06);
}

.welcome-panel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.3rem;
}

.welcome-panel {
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(32, 27, 24, 0.07);
  box-shadow: var(--shadow-card);
}

.client-enquiry-list {
  display: grid;
  gap: 1rem;
}

.client-enquiry-item {
  display: grid;
  gap: 0.45rem;
  padding: 1.2rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(32, 27, 24, 0.08);
  background: rgba(255, 255, 255, 0.68);
}

.client-enquiry-item-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

.client-enquiry-subject {
  color: var(--ink);
}

.client-enquiry-date {
  white-space: nowrap;
  font-size: 0.84rem;
  color: var(--ink-soft);
}

.client-enquiry-message {
  margin-bottom: 0;
}

.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;
}

.studio-page-hero {
  padding: 0 0 3rem;
  margin-top: 0;
}

.studio-hero-bleed {
  position: relative;
  min-height: clamp(620px, 78vh, 840px);
  margin-inline: calc(50% - 50vw);
  overflow: hidden;
  background: var(--bg-greige);
}

.studio-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.studio-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(247, 241, 232, 0.68) 0%, rgba(247, 241, 232, 0.28) 42%, rgba(247, 241, 232, 0.08) 72%),
    linear-gradient(180deg, rgba(32, 27, 24, 0.02) 0%, rgba(32, 27, 24, 0.12) 100%);
}

.studio-hero-content {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: clamp(2rem, 5vw, 3.5rem);
}

.studio-hero-panel {
  max-width: 760px;
  padding: 0;
  text-align: center;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.studio-hero-panel h1,
.studio-hero-panel .studio-lead,
.studio-hero-panel .eyebrow {
  text-shadow: 0 8px 34px rgba(251, 248, 244, 0.32);
}

.studio-lead {
  max-width: 42rem;
  margin-inline: auto;
}

.studio-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.studio-actions.center {
  margin-top: 1.6rem;
}

.studio-episode-section {
  padding-top: 3rem;
}

.episode-card {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(32, 27, 24, 0.07);
  box-shadow: var(--shadow-card);
}

.episode-copy {
  max-width: 38rem;
  margin-inline: auto;
}

.episode-initial {
  color: var(--accent);
}

.episode-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 1.4rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.studio-platform-bar {
  padding: 1.2rem 0;
  background: rgba(239, 228, 215, 0.74);
  border-block: 1px solid rgba(32, 27, 24, 0.05);
}

.studio-platform-wrap {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem 2rem;
  color: var(--ink);
}

.studio-platform-label {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--ink);
  white-space: nowrap;
}

.studio-platform-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.95rem 1.5rem;
}

.studio-platform-links span {
  font-weight: 600;
  color: var(--ink-soft);
}

.studio-values-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
}

.studio-value-card {
  padding: 2rem 1.5rem;
  text-align: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(85, 98, 79, 0.3);
  box-shadow: 0 10px 24px rgba(69, 57, 47, 0.05);
}

.studio-value-card h3 {
  margin-bottom: 0.8rem;
}

.studio-value-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  margin-bottom: 1.15rem;
}

.studio-value-icon svg,
.studio-community-icon svg {
  display: block;
  width: 46px;
  height: 46px;
  fill: none;
  stroke: #55624f;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.studio-about-band {
  background: linear-gradient(180deg, rgba(241, 236, 230, 0.84), rgba(235, 227, 218, 0.76));
}

.studio-about-copy {
  max-width: 46rem;
  margin: 0 auto;
  text-align: center;
}

.studio-community-card {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3rem);
  text-align: center;
  border-radius: 24px;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.45), transparent 38%),
    linear-gradient(180deg, rgba(239, 228, 215, 0.9), rgba(247, 241, 232, 0.82));
  border: 1px solid rgba(32, 27, 24, 0.07);
  box-shadow: var(--shadow-soft);
}

.studio-community-card p {
  max-width: 36rem;
  margin-inline: auto;
}

.studio-community-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  margin-bottom: 1rem;
}

.studio-newsletter-form {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  max-width: 540px;
  margin: 1.4rem auto 0;
}

.studio-newsletter-form input {
  flex: 1;
  min-width: 0;
  background: rgba(255, 255, 255, 0.9);
}

.site-footer {
  position: relative;
  padding: 1.5rem 0 calc(1.2rem + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(32, 27, 24, 0.07);
  background:
    radial-gradient(circle at top right, rgba(123, 138, 115, 0.09), transparent 28%),
    linear-gradient(180deg, rgba(251, 248, 244, 0.92), rgba(241, 236, 230, 0.86));
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  left: 2rem;
  top: 0;
  width: 96px;
  height: 1px;
  background: linear-gradient(90deg, rgba(123, 138, 115, 0.24), rgba(123, 138, 115, 0));
  pointer-events: none;
}

.footer-grid,
.footer-bottom {
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1.2rem;
}

.footer-brand {
  margin-bottom: 0;
}

.footer-note {
  max-width: 24rem;
  text-align: right;
  font-size: 0.86rem;
}

.footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 0.9rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(32, 27, 24, 0.07);
  font-size: 0.86rem;
  text-align: center;
}

.mobile-bottom-nav {
  display: none;
  position: fixed;
  left: max(1rem, env(safe-area-inset-left));
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 999;
  border: 1px solid rgba(32, 27, 24, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 36px rgba(69, 57, 47, 0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.55rem;
  gap: 0.2rem;
  justify-content: space-around;
}

.mobile-bottom-nav a {
  display: grid;
  flex: 1;
  justify-items: center;
  gap: 0.24rem;
  min-width: 0;
  padding: 0.5rem 0.45rem;
  border-radius: 999px;
  font-size: 0.66rem;
  color: var(--ink-soft);
}

.mobile-bottom-nav a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--ink);
}

.mobile-bottom-nav span {
  white-space: nowrap;
}

.mobile-bottom-nav svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .header-wrap {
    gap: 1rem;
  }

  .site-nav {
    gap: 1rem;
  }

  .site-nav a {
    font-size: 0.9rem;
  }

  .header-actions {
    gap: 1rem;
    margin-left: 1rem;
  }

  .header-cta {
    padding: 0.82rem 1.15rem;
  }

  .header-login-link {
    font-size: 0.88rem;
  }

  .hero-grid,
  .page-hero-grid,
  .editorial-grid,
  .profile-grid,
  .contact-grid,
  .booking-layout,
  .service-layout,
  .contact-banner,
  .notice-panel,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .page-hero-grid > div:first-child,
  .hero-copy,
  .profile-copy {
    margin-inline: auto;
  }

  .page-hero-grid > div:first-child {
    max-width: 42rem;
  }

  .page-hero-media,
  .portrait-shell {
    width: min(100%, 460px);
    margin-inline: auto;
  }

  .pathways-grid,
  .fees-preview,
  .topics-grid,
  .pillars-grid,
  .studio-grid,
  .studio-values-grid,
  .portal-feature-list,
  .portal-stats-grid,
  .welcome-panel-grid,
  .contact-cards,
  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-contact-composition {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "address connect"
      "hours hours";
  }

  .home-contact-connect,
  .home-contact-hours {
    transform: none;
  }

  .home-contact-hours {
    max-width: 42rem;
  }

  .portal-dashboard-grid,
  .portal-records-grid {
    grid-template-columns: 1fr;
  }

  .booking-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .booking-sidebar > :last-child {
    grid-column: 1 / -1;
  }

  .home-hero-content {
    grid-template-columns: 1fr;
    align-items: end;
    align-content: end;
  }

  .home-hero-image {
    object-position: right center;
  }

  .welcome-hero-content {
    grid-template-columns: 1fr;
  }

  .page-hero-mark {
    width: 224px;
    height: 224px;
  }

  .home-hero-side {
    display: none;
  }

  .home-hero-mark {
    top: 4rem;
  }

  .welcome-hero-side {
    justify-items: start;
  }

  .studio-hero-content {
    align-items: end;
  }
}

@media (max-width: 960px) {
  body::before,
  body::after {
    display: none;
  }

  .header-top-strip {
    display: none;
  }

  .main-header {
    background:
      linear-gradient(180deg, rgba(170, 161, 151, 0.85) 0%, rgba(189, 180, 170, 0.72) 8px, rgba(251, 248, 244, 0.95) 8px);
    border-bottom: 1px solid rgba(32, 27, 24, 0.08);
  }

  .header-wrap {
    min-height: 72px;
  }

  .header-actions {
    display: none;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 1rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    border: 1px solid rgba(32, 27, 24, 0.08);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-soft);
    max-height: calc(100svh - 7rem);
    overflow: auto;
  }

  .site-nav.active {
    display: flex;
  }

  .site-nav a {
    padding: 0.35rem 0;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .mobile-bottom-nav {
    display: flex;
  }

  .site-footer {
    padding-bottom: calc(7rem + env(safe-area-inset-bottom));
  }

  .home-contact-composition {
    grid-template-columns: 1fr;
    grid-template-areas:
      "address"
      "connect"
      "hours";
  }

  .home-contact-hours {
    max-width: none;
  }

  .page-hero-grid > div:first-child {
    text-align: center;
  }

  .page-hero-grid .lead {
    margin-inline: auto;
  }

  .page-hero-media,
  .portrait-shell {
    width: min(100%, 420px);
  }

  .portal-auth-grid {
    grid-template-columns: 1fr;
  }

  .studio-platform-wrap {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .studio-platform-links {
    justify-content: center;
  }

  .footer-grid {
    flex-direction: column;
    gap: 1.5rem;
  }

  .footer-note {
    text-align: left;
    max-width: none;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(var(--max-width), calc(100% - 1.4rem));
  }

  .header-wrap {
    min-height: 68px;
    gap: 1rem;
  }

  .brand-logo {
    width: 46px;
    height: 46px;
  }

  .brand-text strong {
    font-size: 1rem;
  }

  .brand-text small {
    font-size: 0.68rem;
  }

  .home-hero,
  .page-hero,
  .section {
    padding-top: 3.8rem;
  }

  .home-hero {
    padding-top: 0;
  }

  .studio-page-hero {
    padding-top: 0;
  }

  .home-hero-bleed {
    min-height: 640px;
  }

  .studio-hero-bleed,
  .welcome-hero-bleed {
    min-height: 640px;
  }

  .home-hero-overlay {
    background:
      linear-gradient(180deg, rgba(247, 241, 232, 0.3) 0%, rgba(247, 241, 232, 0.62) 55%, rgba(247, 241, 232, 0.82) 100%),
      linear-gradient(180deg, rgba(32, 27, 24, 0.02) 0%, rgba(32, 27, 24, 0.14) 100%);
  }

  .studio-hero-overlay {
    background:
      linear-gradient(180deg, rgba(247, 241, 232, 0.18) 0%, rgba(247, 241, 232, 0.56) 58%, rgba(247, 241, 232, 0.8) 100%),
      linear-gradient(180deg, rgba(32, 27, 24, 0.02) 0%, rgba(32, 27, 24, 0.1) 100%);
  }

  .home-hero-content {
    padding-block: 1.25rem 1.6rem;
  }

  .studio-hero-content {
    padding-block: 1.25rem 1.6rem;
    align-items: end;
  }

  .home-hero-panel {
    max-width: 100%;
    padding: 1.2rem;
    border-radius: 24px;
  }

  .studio-hero-panel {
    max-width: 100%;
    padding: 0;
    border-radius: 0;
  }

  .welcome-hero-panel {
    max-width: 100%;
  }

  .home-hero-hours {
    max-width: 100%;
  }

  .form-grid,
  .pathways-grid,
  .fees-preview,
  .topics-grid,
  .pillars-grid,
  .studio-grid,
  .studio-values-grid,
  .portal-feature-list,
  .portal-auth-grid,
  .portal-stats-grid,
  .portal-dashboard-grid,
  .portal-records-grid,
  .welcome-panel-grid,
  .contact-cards,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .studio-newsletter-form {
    flex-direction: column;
  }

  .studio-newsletter-form button {
    width: 100%;
  }

  .welcome-context-card {
    max-width: 100%;
  }

  .portrait-shell {
    padding-inline: 0;
    padding-top: 1rem;
  }

  .floating-card {
    position: relative;
    width: 100%;
    margin-top: -1.8rem;
  }

  .floating-mark {
    width: 112px;
    height: 112px;
    top: -0.8rem;
    right: 0.4rem;
  }

  .home-hero-mark {
    top: 3.5rem;
    right: 1rem;
  }

  .page-hero-media,
  .portrait-shell {
    width: min(100%, 360px);
  }

  .page-hero-mark {
    width: 180px;
    height: 180px;
    padding: 1.5rem;
  }

  .quote-panel,
  .booking-form-card,
  .sidebar-card,
  .pathway-card,
  .fee-card,
  .detail-card,
  .topic-card,
  .studio-panel,
  .service-list-card,
  .notice-panel,
  .portal-intro-card,
  .portal-auth-card,
  .portal-panel,
  .portal-stat-card,
  .contact-form-card,
  .contact-side-card {
    padding: 1.25rem;
    border-radius: 24px;
  }

  .home-contact-panel {
    padding: 1.25rem 1.2rem 1.35rem;
    border-radius: 28px;
  }

  .home-contact-display {
    max-width: none;
    font-size: clamp(2.15rem, 10vw, 3.2rem);
  }

  .home-contact-link {
    font-size: clamp(1.35rem, 7vw, 2rem);
  }

  .home-contact-action {
    justify-self: stretch;
    text-align: center;
  }

  .home-contact-hours-line strong {
    font-size: clamp(1.45rem, 8vw, 2rem);
  }

  .booking-sidebar {
    grid-template-columns: 1fr;
  }

  .booking-sidebar > :last-child {
    grid-column: auto;
  }

  .price-list li,
  .sidebar-list li,
  .booking-item-top,
  .client-enquiry-item-top {
    flex-direction: column;
    align-items: start;
  }

  .client-enquiry-date {
    white-space: normal;
  }

  .home-hero-panel .hero-actions,
  .welcome-actions,
  .studio-actions,
  .portal-quick-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .home-hero-panel .hero-actions,
  .welcome-actions {
    width: min(100%, 20rem);
  }

  .studio-actions {
    width: min(100%, 22rem);
    margin-inline: auto;
  }

  .hero-actions .btn,
  .studio-actions .btn,
  .portal-quick-links .btn {
    width: 100%;
  }

  .portal-quick-links {
    width: 100%;
  }

  .studio-platform-label {
    font-size: 1.15rem;
  }

  .episode-card {
    padding: 1.5rem 1.2rem;
  }

  .contact-banner,
  .notice-panel {
    padding: 1.4rem;
  }

  .portal-dashboard-head {
    flex-direction: column;
    align-items: start;
  }

  .mobile-bottom-nav a {
    font-size: 0.62rem;
    padding-inline: 0.28rem;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 400px) {
  .container {
    width: calc(100% - 1rem);
  }

  .header-wrap {
    min-height: 60px;
    gap: 0.75rem;
  }

  .brand {
    gap: 0.6rem;
  }

  .brand-logo {
    width: 40px;
    height: 40px;
  }

  .brand-text strong {
    font-size: 0.88rem;
  }

  .brand-text small {
    font-size: 0.62rem;
  }

  .menu-toggle {
    width: 40px;
    height: 40px;
  }

  .site-nav {
    left: 0.5rem;
    right: 0.5rem;
  }

  .btn {
    padding: 0.8rem 1.2rem;
    font-size: 0.82rem;
  }

  h1 {
    font-size: clamp(1.6rem, 7vw, 2.4rem);
  }

  h2 {
    font-size: clamp(1.3rem, 5.5vw, 1.85rem);
  }

  .mobile-bottom-nav {
    left: 0.5rem;
    right: 0.5rem;
    padding: 0.4rem 0.5rem;
  }

  .mobile-bottom-nav a {
    font-size: 0.58rem;
    padding-inline: 0.2rem;
  }

  .mobile-bottom-nav svg {
    width: 20px;
    height: 20px;
  }

  .pathway-card,
  .fee-card,
  .detail-card,
  .topic-card,
  .studio-panel,
  .contact-form-card,
  .contact-side-card {
    padding: 1rem;
    border-radius: 20px;
  }

  .floating-mark {
    width: 90px;
    height: 90px;
  }

  .home-hero-mark {
    top: 3rem;
    right: 0.5rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal,
  .reveal.visible {
    opacity: 1;
    transform: none;
  }
}
