:root {
  --color-chalk: #f7f5f1;
  --color-sand: #e8e0d4;
  --color-sand-deep: #d4c8b6;
  --color-copper: #c4784a;
  --color-copper-dark: #a35f38;
  --color-slate: #2c3540;
  --color-slate-mid: #3d4a57;
  --color-slate-soft: #5a6876;
  --color-blue: #3d7ea6;
  --color-blue-soft: #5a9bc0;
  --color-offwhite: #fbfaf7;
  --color-white: #ffffff;
  --color-error: #9b3b2e;
  --color-success: #2f6b4f;

  --font-serif: "Instrument Serif", "Times New Roman", serif;
  --font-sans: "DM Sans", "Helvetica Neue", sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3.5rem;
  --space-2xl: 5.5rem;
  --space-3xl: 8rem;

  --max: 72rem;
  --radius: 2px;
  --shadow-soft: 0 8px 28px rgba(44, 53, 64, 0.08);
  --shadow-card: 0 4px 18px rgba(44, 53, 64, 0.06);
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--color-slate);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(61, 126, 166, 0.08), transparent 50%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(196, 120, 74, 0.07), transparent 45%),
    linear-gradient(180deg, var(--color-chalk) 0%, var(--color-sand) 48%, var(--color-chalk) 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

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

a {
  color: var(--color-blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.25s var(--ease);
}

a:hover {
  color: var(--color-copper-dark);
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--color-slate);
  margin: 0 0 var(--space-md);
}

h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.85rem); }

p { margin: 0 0 var(--space-md); }

ul, ol { margin: 0 0 var(--space-md); padding-left: 1.25rem; }

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

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.wrap--narrow {
  width: min(100% - 2.5rem, 46rem);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(247, 245, 241, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(44, 53, 64, 0.08);
}

.site-header__inner {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.site-header__brand {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--color-slate);
  text-decoration: none;
  white-space: nowrap;
}

.site-header__brand:hover {
  color: var(--color-copper);
}

.site-header__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.site-header__list a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-slate-mid);
  text-decoration: none;
  position: relative;
}

.site-header__list a:not(.site-header__cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2em;
  width: 100%;
  height: 1px;
  background: var(--color-copper);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.site-header__list a:not(.site-header__cta):hover::after {
  transform: scaleX(1);
}

.site-header__cta {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.1rem;
  background: var(--color-copper);
  color: var(--color-white) !important;
  border-radius: 999px;
  text-decoration: none;
}

.site-header__cta:hover {
  background: var(--color-slate);
}

.site-header__toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--color-slate);
  width: 2.6rem;
  height: 2.6rem;
  border-radius: var(--radius);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.site-header__toggle-bar {
  display: block;
  width: 1.1rem;
  height: 1.5px;
  background: var(--color-slate);
}

@media (max-width: 900px) {
  .site-header__toggle { display: flex; }
  .site-header__nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--color-offwhite);
    border-bottom: 1px solid rgba(44, 53, 64, 0.1);
    padding: var(--space-md) 1.25rem var(--space-lg);
    display: none;
  }
  .site-header__nav.is-open { display: block; }
  .site-header__list {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
  }
}

/* Buttons & links */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn--copper {
  background: var(--color-copper);
  color: var(--color-white);
}

.btn--copper:hover {
  background: var(--color-slate);
  color: var(--color-white);
}

.btn--slate {
  background: var(--color-slate);
  color: var(--color-white);
}

.btn--slate:hover {
  background: var(--color-copper);
  color: var(--color-white);
}

.btn--ghost {
  background: transparent;
  border-color: var(--color-slate);
  color: var(--color-slate);
}

.btn--ghost:hover {
  background: var(--color-slate);
  color: var(--color-white);
}

.link-underline {
  color: var(--color-slate);
  font-weight: 500;
  text-decoration: none;
  background-image: linear-gradient(var(--color-copper), var(--color-copper));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 1px;
  transition: background-size 0.35s var(--ease), color 0.25s var(--ease);
}

.link-underline:hover {
  background-size: 100% 1px;
  color: var(--color-copper-dark);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
}

/* Cards */
.card {
  background: var(--color-offwhite);
  border: 1px solid rgba(44, 53, 64, 0.14);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

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

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

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

.card__body {
  padding: var(--space-md) var(--space-md) var(--space-lg);
}

.card__meta {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-slate-soft);
  margin-bottom: var(--space-xs);
}

.card__title {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  margin-bottom: var(--space-sm);
}

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

.card__title a:hover {
  color: var(--color-copper);
}

/* Sections */
.section {
  padding: var(--space-2xl) 0;
}

.section--tight {
  padding: var(--space-xl) 0;
}

.section__eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-blue);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.section__head {
  max-width: 36rem;
  margin-bottom: var(--space-xl);
}

.section__head--wide {
  max-width: 48rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-xl);
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.grid-2-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

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

/* Hero variants */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  will-change: transform;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(247, 245, 241, 0.94) 0%, rgba(247, 245, 241, 0.78) 42%, rgba(247, 245, 241, 0.25) 100%),
    linear-gradient(0deg, rgba(44, 53, 64, 0.35) 0%, transparent 45%);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: var(--space-3xl) 0 var(--space-2xl);
  max-width: 38rem;
  margin-left: max(1.25rem, calc((100% - var(--max)) / 2));
}

.hero__brand {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 7vw, 5rem);
  line-height: 1.02;
  margin-bottom: var(--space-md);
  color: var(--color-slate);
}

.hero__lede {
  font-size: 1.15rem;
  color: var(--color-slate-mid);
  max-width: 30rem;
  margin-bottom: var(--space-lg);
}

.page-hero {
  padding: var(--space-2xl) 0 var(--space-xl);
}

.page-hero--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: end;
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-xl);
}

.page-hero--split .page-hero__media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid rgba(44, 53, 64, 0.12);
}

.page-hero--split .page-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 900px) {
  .page-hero--split {
    grid-template-columns: 1fr;
  }
  .page-hero--split .page-hero__media {
    aspect-ratio: 16 / 10;
    order: -1;
  }
}

/* Split band */
.split-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 28rem;
}

.split-band__visual {
  position: relative;
  overflow: hidden;
  background: var(--color-sand);
}

.split-band__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 22rem;
}

.split-band__caption {
  position: absolute;
  left: var(--space-md);
  bottom: var(--space-md);
  background: rgba(251, 250, 247, 0.92);
  padding: 0.45rem 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-slate-soft);
  border: 1px solid rgba(44, 53, 64, 0.1);
}

.split-band__text {
  background: var(--color-offwhite);
  border-top: 1px solid rgba(44, 53, 64, 0.1);
  border-bottom: 1px solid rgba(44, 53, 64, 0.1);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.split-band--reverse .split-band__visual { order: 2; }

@media (max-width: 900px) {
  .split-band,
  .split-band--reverse {
    grid-template-columns: 1fr;
  }
  .split-band--reverse .split-band__visual { order: 0; }
}

/* Process steps */
.process {
  display: grid;
  gap: var(--space-md);
}

.process__item {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid rgba(44, 53, 64, 0.12);
}

.process__num {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--color-copper);
  line-height: 1;
}

/* Quotes */
.quote {
  background: var(--color-offwhite);
  border: 1px solid rgba(44, 53, 64, 0.14);
  padding: var(--space-lg);
  box-shadow: var(--shadow-soft);
}

.quote__text {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  line-height: 1.4;
  margin-bottom: var(--space-md);
}

.quote__meta {
  font-size: 0.9rem;
  color: var(--color-slate-soft);
}

.quote__service {
  color: var(--color-blue);
  font-weight: 500;
}

/* Forms */
.form {
  display: grid;
  gap: var(--space-md);
}

.form__field {
  display: grid;
  gap: 0.4rem;
}

.form__field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-slate-mid);
}

.form__field input,
.form__field select,
.form__field textarea {
  font: inherit;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(44, 53, 64, 0.22);
  background: var(--color-white);
  color: var(--color-slate);
  border-radius: var(--radius);
}

.form__field textarea {
  min-height: 9rem;
  resize: vertical;
}

.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus {
  outline: 2px solid var(--color-blue);
  outline-offset: 1px;
}

.form__error {
  color: var(--color-error);
  font-size: 0.85rem;
  margin: 0;
}

.form-message {
  margin: var(--space-sm) 0 0;
  font-size: 0.92rem;
}

.form-message.is-success { color: var(--color-success); }
.form-message.is-error { color: var(--color-error); }

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-xl);
}

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

.contact-card {
  background: var(--color-slate);
  color: var(--color-sand);
  padding: var(--space-xl);
}

.contact-card a {
  color: var(--color-sand);
}

.contact-card h2 {
  color: var(--color-chalk);
}

/* Pricing */
.rate-row {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: var(--space-md);
  padding: var(--space-lg) 0;
  border-bottom: 1px solid rgba(44, 53, 64, 0.14);
  align-items: start;
}

.rate-row__price {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--color-copper);
  text-align: right;
}

@media (max-width: 700px) {
  .rate-row {
    grid-template-columns: 1fr;
  }
  .rate-row__price { text-align: left; }
}

/* Schedule */
.schedule-list {
  display: grid;
  gap: var(--space-md);
}

.schedule-item {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr auto;
  gap: var(--space-md);
  align-items: center;
  padding: var(--space-md) var(--space-lg);
  background: var(--color-offwhite);
  border: 1px solid rgba(44, 53, 64, 0.12);
}

.schedule-item__course {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin: 0;
}

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

/* Legal */
.legal {
  padding-bottom: var(--space-2xl);
}

.legal h2 {
  margin-top: var(--space-xl);
  font-size: 1.75rem;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: var(--space-md) 0 var(--space-lg);
}

.legal th,
.legal td {
  border: 1px solid rgba(44, 53, 64, 0.15);
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.legal th {
  background: var(--color-sand);
  font-weight: 600;
}

/* Footer */
.site-footer {
  background: var(--color-slate);
  color: var(--color-sand);
  margin-top: var(--space-2xl);
  padding-top: var(--space-2xl);
}

.site-footer a {
  color: var(--color-sand);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--color-blue-soft);
}

.site-footer__inner {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.3fr 1.4fr 0.9fr;
  gap: var(--space-xl);
  padding-bottom: var(--space-xl);
}

.site-footer__name {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--color-chalk);
  margin-bottom: var(--space-sm);
}

.site-footer__tag {
  color: var(--color-sand-deep);
  max-width: 22rem;
}

.site-footer__heading {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-blue-soft);
  margin-bottom: var(--space-sm);
  font-weight: 600;
}

.site-footer__links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

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

.site-footer__links li {
  margin-bottom: 0.45rem;
}

.site-footer__newsletter-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.site-footer__newsletter input {
  flex: 1;
  min-width: 10rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(232, 224, 212, 0.35);
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-chalk);
  font: inherit;
  border-radius: var(--radius);
}

.site-footer__label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
  color: var(--color-sand-deep);
}

.site-footer__social {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.site-footer__bar {
  border-top: 1px solid rgba(232, 224, 212, 0.12);
  padding: var(--space-md) 0;
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  font-size: 0.88rem;
  color: var(--color-sand-deep);
}

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

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--color-offwhite);
  border-top: 1px solid rgba(44, 53, 64, 0.16);
  box-shadow: 0 -8px 30px rgba(44, 53, 64, 0.12);
  padding: var(--space-md) 0;
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner__inner {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  display: flex;
  gap: var(--space-lg);
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.cookie-banner__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}

.cookie-banner__copy {
  flex: 1;
  min-width: 16rem;
}

.cookie-banner__copy p:last-child {
  margin-bottom: 0;
  font-size: 0.95rem;
  color: var(--color-slate-mid);
}

.cookie-banner__actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* Reveal motion */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

[data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal-delay="3"] { transition-delay: 0.3s; }

/* 404 */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding: var(--space-2xl) 0;
}

.error-page__code {
  font-family: var(--font-serif);
  font-size: clamp(5rem, 16vw, 9rem);
  line-height: 0.9;
  color: var(--color-copper);
  margin-bottom: var(--space-md);
}

/* Article */
.article-hero {
  padding: var(--space-2xl) 0 var(--space-lg);
}

.article-hero__meta {
  font-size: 0.85rem;
  color: var(--color-slate-soft);
  margin-bottom: var(--space-sm);
}

.article-cover {
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto var(--space-xl);
  aspect-ratio: 21 / 9;
  overflow: hidden;
  border: 1px solid rgba(44, 53, 64, 0.1);
}

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

.prose {
  width: min(100% - 2.5rem, 42rem);
  margin-inline: auto;
  padding-bottom: var(--space-2xl);
}

.prose p {
  font-size: 1.08rem;
}

.service-detail__hero-img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin-bottom: var(--space-xl);
  border: 1px solid rgba(44, 53, 64, 0.1);
}

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

.detail-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin: var(--space-xl) 0;
  padding: var(--space-lg);
  background: var(--color-offwhite);
  border: 1px solid rgba(44, 53, 64, 0.12);
}

.detail-meta dt {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-slate-soft);
  margin-bottom: 0.25rem;
}

.detail-meta dd {
  margin: 0;
  font-weight: 500;
}

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

.list-check {
  list-style: none;
  padding: 0;
}

.list-check li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.55rem;
}

.list-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--color-copper);
}
