/* ==========================================================================
   Irulan — quiet studio template
   Tokens derived from the reference design system (paper / ink / Lora + Inter)
   ========================================================================== */

:root {
  --paper: #faf8f4;
  --paper-2: #ede8e0;
  --lift: #f2ede6;
  --lift-2: #f1ede1;
  --snow: #fffefa;
  --ink: #3d2e1e;
  --ink-92: rgba(61, 46, 30, 0.92);
  --ink-88: rgba(61, 46, 30, 0.88);
  --ink-70: rgba(61, 46, 30, 0.70);
  --ink-56: rgba(61, 46, 30, 0.56);
  --ink-40: rgba(61, 46, 30, 0.40);
  --ink-24: rgba(61, 46, 30, 0.24);
  --ink-16: rgba(61, 46, 30, 0.16);
  --ink-08: rgba(61, 46, 30, 0.08);
  --dark: #2c2a25;
  --dark-2: #1d1d1d;
  --accent: #6e6254;
  --lib: rgba(250, 248, 244, 0.82);
  --lib-70: rgba(250, 248, 244, 0.70);
  --lib-56: rgba(250, 248, 244, 0.56);
  --lib-16: rgba(250, 248, 244, 0.16);

  --serif: "Lora", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --container: 1440px;
  --narrow: 912px;
  --pad: 32px;
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 16px;
  --sec: 120px;
  --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(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button {
  font: inherit;
  color: inherit;
}

[hidden] {
  display: none !important;
}

/* ---------- Typography ---------- */

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(36px, 4.6vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(28px, 3.6vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.032em;
}

h3 {
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.26;
  letter-spacing: -0.028em;
}

h4 {
  font-size: clamp(19px, 1.8vw, 26px);
  line-height: 1.28;
}

h5 {
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.3;
}

p {
  margin: 0;
}

em {
  font-style: italic;
}

.lead {
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.5;
  color: var(--ink-70);
}

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11px;
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-56);
}

.eyebrow--light {
  color: var(--lib-56);
}

.small {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-56);
}

/* ---------- Layout ---------- */

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

.container--narrow {
  max-width: var(--narrow);
}

.container--mid {
  max-width: 1180px;
}

.section {
  padding-block: var(--sec);
}

.section--tight {
  padding-block: 80px;
}

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

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

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

.section--dark .lead,
.section--dark .small {
  color: var(--lib-70);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.section-head__title {
  max-width: 640px;
}

.section-head .eyebrow {
  margin-bottom: 20px;
}

.section-head .lead {
  margin-top: 20px;
  max-width: 460px;
}

.grid {
  display: grid;
  gap: 24px;
}

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

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

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

.split {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: 80px;
  align-items: start;
}

.split__aside {
  padding-top: 6px;
}

.split__body {
  min-width: 0;
}

.split__body h2 {
  margin-bottom: 4px;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.rule {
  border: 0;
  border-top: 1px solid var(--ink-16);
  margin: 0;
}

.rule--light {
  border-top-color: var(--lib-16);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 24px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  background: transparent;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: 0.005em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s ease,
    color 0.25s ease, border-color 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.btn--dark {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.btn--dark:hover {
  background: #2b2016;
  border-color: #2b2016;
}

.btn--light {
  background: var(--snow);
  border-color: var(--snow);
  color: var(--ink);
}

.btn--light:hover {
  background: #f2ede6;
  border-color: #f2ede6;
}

.btn--ghost {
  border-color: var(--ink-24);
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--ink);
}

.btn--sm {
  padding: 11px 18px;
  font-size: 14px;
}

.btn--block {
  width: 100%;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border: 1px solid var(--ink-24);
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease,
    border-color 0.25s ease, transform 0.25s var(--ease);
}

.icon-btn svg {
  width: 17px;
  height: 17px;
}

.icon-btn:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
  transform: translateY(-2px);
}

.icon-btn--light {
  border-color: rgba(250, 248, 244, 0.45);
  color: var(--paper);
}

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

.icon-btn--sm {
  width: 40px;
  height: 40px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ink-24);
  font-size: 15px;
  font-weight: 500;
  transition: gap 0.25s var(--ease), border-color 0.25s ease;
}

.link-arrow svg {
  width: 15px;
  height: 15px;
}

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

.link-arrow--light {
  border-bottom-color: var(--lib-16);
}

.link-arrow--light:hover {
  border-color: var(--snow);
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 90;
  padding: 16px var(--pad) 0;
  pointer-events: none;
}

.site-header__bar {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1240px;
  margin-inline: auto;
  padding: 9px 12px 9px 20px;
  border: 1px solid rgba(61, 46, 30, 0.07);
  border-radius: var(--r-md);
  background: rgba(250, 248, 244, 0.9);
  -webkit-backdrop-filter: blur(16px) saturate(115%);
  backdrop-filter: blur(16px) saturate(115%);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled .site-header__bar {
  background: rgba(250, 248, 244, 0.98);
  box-shadow: 0 14px 40px rgba(61, 46, 30, 0.1);
}

.brand {
  display: inline-flex;
  align-items: flex-start;
  gap: 9px;
  flex: 0 0 auto;
}

.brand__mark {
  width: 26px;
  height: 26px;
  color: var(--ink);
  margin-top: 2px;
}

.brand__word {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.brand__tm {
  font-family: var(--sans);
  font-size: 8px;
  line-height: 1;
  color: var(--ink-56);
  margin-left: 1px;
  margin-top: 4px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.site-nav a {
  position: relative;
  padding-block: 6px;
  font-size: 14px;
  line-height: 1.2;
  color: var(--ink-88);
  transition: color 0.2s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

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

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--ink-16);
  border-radius: var(--r-sm);
  background: transparent;
  cursor: pointer;
}

.menu-toggle__bars {
  position: relative;
  width: 16px;
  height: 10px;
}

.menu-toggle__bars span {
  position: absolute;
  left: 0;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.2s ease;
}

.menu-toggle__bars span:first-child {
  top: 0;
}

.menu-toggle__bars span:last-child {
  bottom: 0;
}

.site-header.is-open .menu-toggle__bars span:first-child {
  transform: translateY(4.2px) rotate(45deg);
}

.site-header.is-open .menu-toggle__bars span:last-child {
  transform: translateY(-4.2px) rotate(-45deg);
}

/* Mobile drawer — closed by default, opened only through .is-open */
.nav-drawer {
  display: none;
  position: fixed;
  top: 76px;
  left: 16px;
  right: 16px;
  z-index: 95;
  max-height: calc(100dvh - 100px);
  overflow-y: auto;
  padding: 8px 24px 24px;
  border: 1px solid var(--ink-08);
  border-radius: var(--r-md);
  background: var(--snow);
  box-shadow: 0 28px 60px rgba(61, 46, 30, 0.18);
}

.site-header.is-open .nav-drawer {
  display: block;
}

.nav-drawer a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--ink-08);
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.2;
}

.nav-drawer a span {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-40);
}

.nav-drawer a.btn {
  margin-top: 20px;
  padding: 15px 20px;
  border-bottom: 0;
  font-family: var(--sans);
  font-size: 16px;
  justify-content: center;
}

.nav-drawer a.btn span {
  display: none;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 12px 18px;
  border-radius: var(--r-sm);
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* ---------- Hero (home) ---------- */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100svh;
  padding-top: 132px;
  overflow: hidden;
  background: #241a12;
  color: var(--paper);
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(30, 21, 15, 0.66) 0%,
    rgba(30, 21, 15, 0.32) 34%,
    rgba(28, 20, 14, 0.52) 72%,
    rgba(22, 15, 10, 0.84) 100%
  );
}

.hero__guides {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      90deg,
      transparent calc(25% - 0.5px),
      rgba(250, 248, 244, 0.12) calc(25% - 0.5px),
      rgba(250, 248, 244, 0.12) calc(25% + 0.5px),
      transparent calc(25% + 0.5px)
    ),
    linear-gradient(
      90deg,
      transparent calc(50% - 0.5px),
      rgba(250, 248, 244, 0.12) calc(50% - 0.5px),
      rgba(250, 248, 244, 0.12) calc(50% + 0.5px),
      transparent calc(50% + 0.5px)
    ),
    linear-gradient(
      90deg,
      transparent calc(75% - 0.5px),
      rgba(250, 248, 244, 0.12) calc(75% - 0.5px),
      rgba(250, 248, 244, 0.12) calc(75% + 0.5px),
      transparent calc(75% + 0.5px)
    );
}

.hero__content {
  position: relative;
  z-index: 2;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  gap: 26px;
  max-width: 760px;
  padding-bottom: 52px;
}

.hero__title {
  font-size: clamp(38px, 5.1vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--paper);
}

.hero__lead {
  max-width: 600px;
  font-size: clamp(15px, 1.4vw, 20px);
  line-height: 1.5;
  color: rgba(250, 248, 244, 0.84);
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(250, 248, 244, 0.2);
}

.hero__stat {
  padding: 26px 32px 44px;
  border-left: 1px solid rgba(250, 248, 244, 0.2);
}

.hero__stat:first-child {
  border-left: 0;
  padding-left: 0;
}

.hero__stat b {
  display: block;
  font-family: var(--serif);
  font-size: clamp(26px, 2.7vw, 40px);
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.hero__stat span {
  display: block;
  margin-top: 10px;
  max-width: 20ch;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(250, 248, 244, 0.66);
}

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  padding: 196px 0 72px;
  background: var(--paper);
}

.page-hero--lift {
  background: var(--lift);
}

.page-hero__inner {
  max-width: 880px;
}

.page-hero h1 {
  margin-top: 22px;
  max-width: 18ch;
}

.page-hero .lead {
  margin-top: 26px;
  max-width: 560px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-40);
}

.breadcrumb a:hover {
  color: var(--ink);
}

/* ---------- Rows (services) ---------- */

.rows {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ink-16);
  counter-reset: service-row;
}

.rows .row-no::before {
  counter-increment: service-row;
  content: counter(service-row, decimal-leading-zero);
}

.rows__item {
  border-bottom: 1px solid var(--ink-16);
}

.row-link {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.05fr) 48px;
  align-items: center;
  gap: 24px;
  padding: 30px 12px;
  transition: background-color 0.3s var(--ease), color 0.3s ease;
}

.row-link:hover {
  background: var(--lift);
}

.row-no {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--ink-40);
}

.row-title {
  font-family: var(--serif);
  font-size: clamp(21px, 2.1vw, 30px);
  line-height: 1.22;
}

.row-text {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-70);
}

.row-arrow {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--ink-16);
  border-radius: 50%;
  transition: background-color 0.3s ease, color 0.3s ease,
    border-color 0.3s ease;
}

.row-arrow svg {
  width: 14px;
  height: 14px;
}

.row-link:hover .row-arrow {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.row-meta {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-40);
}

/* ---------- Cards ---------- */

.card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.card__media {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md);
  aspect-ratio: 4 / 5;
  background: var(--paper-2);
}

.card__media--wide {
  aspect-ratio: 3 / 2;
}

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

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

.card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 20px;
}

.card__meta {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-56);
}

.card__title {
  font-family: var(--serif);
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.24;
}

.card__text {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-70);
}

.card--link:hover .card__title {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

/* ---------- Quotes ---------- */

.quotes {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--lib-16);
}

.quote {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 32px 0;
  border-bottom: 1px solid var(--lib-16);
}

.quote p {
  font-family: var(--serif);
  font-size: clamp(19px, 1.8vw, 26px);
  line-height: 1.42;
  font-style: italic;
  color: var(--paper);
}

.quote cite {
  font-family: var(--sans);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lib-56);
}

/* ---------- Prose (article / service detail) ---------- */

.prose {
  max-width: 720px;
}

.prose > *:first-child {
  margin-top: 0;
}

.prose h2 {
  margin: 56px 0 20px;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.24;
}

.prose h3 {
  margin: 40px 0 14px;
  font-size: clamp(19px, 1.9vw, 24px);
  line-height: 1.3;
}

.prose p {
  margin-bottom: 20px;
  font-size: 18px;
  line-height: 1.68;
  color: var(--ink-88);
}

.prose ul,
.prose ol {
  margin: 0 0 24px;
  padding-left: 20px;
  font-size: 18px;
  line-height: 1.68;
  color: var(--ink-88);
}

.prose li {
  margin-bottom: 10px;
}

.prose li::marker {
  color: var(--ink-40);
}

.prose blockquote {
  margin: 40px 0;
  padding: 6px 0 6px 28px;
  border-left: 2px solid var(--accent);
  font-family: var(--serif);
  font-size: clamp(21px, 2.2vw, 28px);
  line-height: 1.42;
  font-style: italic;
  color: var(--ink);
}

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

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

.detail-hero {
  padding: 180px 0 0;
}

.detail-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 64px;
  align-items: end;
}

.detail-hero h1 {
  margin-top: 22px;
  max-width: 17ch;
}

.detail-hero__media {
  overflow: hidden;
  border-radius: var(--r-md);
  aspect-ratio: 4 / 3;
  background: var(--paper-2);
}

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

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--ink-16);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-56);
}

.detail-body {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 80px;
  align-items: start;
}

.detail-aside {
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-right: 24px;
}

.detail-aside__row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--ink-08);
}

.detail-aside__row span {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-40);
}

.detail-aside__row strong {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
}

/* ---------- FAQ ---------- */

.faq {
  border-top: 1px solid var(--ink-16);
}

.faq__item {
  border-bottom: 1px solid var(--ink-16);
}

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 26px 0;
  list-style: none;
  cursor: pointer;
  font-family: var(--serif);
  font-size: clamp(18px, 1.7vw, 24px);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: "";
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  background-image: linear-gradient(currentColor, currentColor),
    linear-gradient(currentColor, currentColor);
  background-size: 14px 1px, 1px 14px;
  background-position: center, center;
  background-repeat: no-repeat;
  transition: transform 0.35s var(--ease);
}

.faq__item[open] summary::after {
  transform: rotate(90deg);
}

.faq__answer {
  max-width: 760px;
  padding: 0 0 28px;
  font-size: 16px;
  line-height: 1.68;
  color: var(--ink-70);
}

/* ---------- CTA ---------- */

.cta {
  padding-block: 136px;
  background: var(--paper-2);
  text-align: center;
}

.cta__title {
  margin: 22px auto 36px;
  max-width: 20ch;
  font-size: clamp(30px, 4.4vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.cta__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 84px 0 32px;
  background: var(--dark);
  color: var(--paper);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 64px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--lib-16);
}

.footer-lead h2 {
  margin-top: 18px;
  max-width: 15ch;
  font-size: clamp(24px, 2.6vw, 38px);
  line-height: 1.16;
}

.footer-lead .small {
  margin-top: 18px;
  max-width: 34ch;
  color: var(--lib-56);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.footer-cols h4 {
  margin-bottom: 18px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lib-56);
}

.footer-cols a,
.footer-cols p {
  display: block;
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(250, 248, 244, 0.84);
}

.footer-cols a:hover {
  color: var(--snow);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 28px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--lib-56);
}

.footer-bottom__links {
  display: flex;
  gap: 20px;
}

/* ---------- Forms ---------- */

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

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

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

.field label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-56);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--ink-16);
  border-radius: var(--r-sm);
  background: var(--snow);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.4;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink-40);
  box-shadow: 0 0 0 3px rgba(110, 98, 84, 0.12);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink-40);
}

.form__foot {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.form__note {
  max-width: 42ch;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-56);
}

.form-message {
  display: none;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  font-size: 14px;
  line-height: 1.55;
}

.form-message.is-error {
  display: block;
  border: 1px solid rgba(166, 63, 58, 0.24);
  background: rgba(166, 63, 58, 0.08);
  color: #a63f3a;
}

.form-message.is-success {
  display: block;
  border: 1px solid rgba(78, 171, 82, 0.3);
  background: rgba(78, 171, 82, 0.1);
  color: #3b743f;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
}

.info-list > div {
  padding: 18px 0;
  border-bottom: 1px solid var(--ink-08);
}

.info-list dt {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-40);
  margin-bottom: 6px;
}

.info-list dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-88);
}

/* ---------- Schedule ---------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 44px;
}

.chip {
  padding: 9px 16px;
  border: 1px solid var(--ink-16);
  border-radius: 100px;
  background: transparent;
  font-size: 13px;
  line-height: 1.2;
  color: var(--ink-70);
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease,
    border-color 0.25s ease;
}

.chip:hover {
  border-color: var(--ink-40);
}

.chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.schedule {
  border-top: 1px solid var(--ink-16);
}

.schedule__head,
.schedule__row {
  display: grid;
  grid-template-columns: 108px minmax(0, 1.35fr) minmax(0, 0.9fr) minmax(0, 0.95fr) 132px;
  gap: 20px;
  align-items: center;
}

.schedule__head {
  padding: 14px 4px;
  border-bottom: 1px solid var(--ink-16);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-40);
}

.schedule__row {
  padding: 22px 4px;
  border-bottom: 1px solid var(--ink-08);
  transition: background-color 0.25s ease;
}

.schedule__row:hover {
  background: var(--lift);
}

.schedule__time {
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  color: var(--ink-88);
}

.schedule__name {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.25;
}

.schedule__sub {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-40);
}

.schedule__cell {
  font-size: 14px;
  color: var(--ink-70);
}

.schedule__action {
  justify-self: start;
}

.schedule__empty {
  padding: 60px 0;
  font-size: 16px;
  color: var(--ink-56);
}

/* ---------- Pricing ---------- */

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.plan {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 32px;
  border: 1px solid var(--ink-16);
  border-radius: var(--r-md);
  background: var(--snow);
}

.plan--featured {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.plan__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--serif);
  font-size: 44px;
  line-height: 1;
}

.plan__price small {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-40);
}

.plan--featured .plan__price small,
.plan--featured .plan__text,
.plan--featured .plan li {
  color: rgba(250, 248, 244, 0.72);
}

.plan__text {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-70);
}

.plan ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--ink-08);
  list-style: none;
  font-size: 15px;
  line-height: 1.5;
}

.plan--featured ul {
  border-top-color: var(--lib-16);
}

.plan li {
  display: flex;
  gap: 10px;
  color: var(--ink-88);
}

.plan li::before {
  content: "";
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  margin-top: 8px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
}

.plan .btn {
  margin-top: auto;
}

.plan--featured .btn--ghost {
  border-color: rgba(250, 248, 244, 0.4);
  color: var(--paper);
}

.plan--featured .btn--ghost:hover {
  border-color: var(--snow);
  background: rgba(250, 248, 244, 0.08);
}

.rate-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.rate-table th,
.rate-table td {
  padding: 18px 0;
  text-align: left;
  border-bottom: 1px solid var(--ink-08);
}

.rate-table th {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-40);
}

.rate-table td:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.rate-table tr:hover td {
  background: var(--lift);
}

/* ---------- Team & values ---------- */

.team {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.team__item {
  display: flex;
  flex-direction: column;
}

.team__media {
  overflow: hidden;
  border-radius: var(--r-md);
  aspect-ratio: 3 / 4;
  background: var(--paper-2);
}

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

.team__name {
  margin-top: 18px;
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.25;
}

.team__role {
  margin-top: 4px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-40);
}

.team__note {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-70);
}

.values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding-top: 44px;
  border-top: 1px solid var(--ink-16);
}

.value h3 {
  margin-bottom: 12px;
  font-size: clamp(20px, 1.9vw, 24px);
}

.value p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-70);
}

/* ---------- Misc ---------- */

.band {
  overflow: hidden;
  border-radius: var(--r-md);
  aspect-ratio: 21 / 8;
  background: var(--paper-2);
}

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

.notfound {
  padding: 200px 0 140px;
}

.notfound__code {
  font-family: var(--serif);
  font-size: clamp(44px, 6vw, 84px);
  line-height: 1;
  color: var(--ink-24);
}

.notfound h1 {
  margin-top: 20px;
  max-width: 22ch;
}

.notfound .lead {
  margin-top: 20px;
  max-width: 46ch;
}

.notfound__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.sample-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 8px 12px;
  border: 1px dashed var(--ink-24);
  border-radius: var(--r-sm);
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink-56);
}

/* ---------- Spacing helpers ---------- */

.mt-24 {
  margin-top: 24px;
}

.mt-40 {
  margin-top: 40px;
}

.mb-40 {
  margin-bottom: 40px;
}

.page-hero + .section {
  padding-top: 16px;
}

.detail-hero + .section {
  padding-top: 56px;
}

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

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: 72px;
  align-items: start;
}

.contact-media {
  overflow: hidden;
  margin-top: 32px;
  border-radius: var(--r-md);
  aspect-ratio: 4 / 3;
  background: var(--paper-2);
}

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

@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }
}

/* ---------- Entrance motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js-anim .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  }

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

  .js-anim .reveal[data-delay="1"] {
    transition-delay: 0.08s;
  }

  .js-anim .reveal[data-delay="2"] {
    transition-delay: 0.16s;
  }

  .js-anim .reveal[data-delay="3"] {
    transition-delay: 0.24s;
  }
}

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

  .btn:hover,
  .icon-btn:hover {
    transform: none;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .detail-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .detail-aside {
    position: static;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    padding-right: 0;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--ink-08);
  }
}

@media (max-width: 1024px) {
  :root {
    --pad: 24px;
    --sec: 96px;
  }

  .site-nav {
    gap: 22px;
  }

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

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

  .detail-hero__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    align-items: start;
  }

  .footer-top {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
  }

  .schedule__head,
  .schedule__row {
    grid-template-columns: 90px minmax(0, 1.4fr) minmax(0, 0.9fr) 120px;
  }

  .schedule__level {
    display: none;
  }

  .schedule__head .schedule__level {
    display: none;
  }
}

@media (max-width: 900px) {
  .site-nav {
    display: none;
  }

  .site-header .btn--dark {
    display: none;
  }

  .site-header .icon-btn--sm {
    display: none;
  }

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

  .site-header__bar {
    padding: 8px 10px 8px 16px;
  }

  .hero {
    min-height: 92svh;
    padding-top: 118px;
  }

  .hero__stat {
    padding: 20px 16px 32px;
  }

  .hero__stat:first-child {
    padding-left: 0;
  }

  .section-head {
    margin-bottom: 44px;
    gap: 28px;
  }

  .cta {
    padding-block: 88px;
  }

  .row-link {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    gap: 16px;
    padding: 24px 4px;
  }

  .row-text {
    display: none;
  }

  .page-hero {
    padding: 152px 0 56px;
  }

  .detail-hero {
    padding-top: 140px;
  }
}

@media (max-width: 720px) {
  :root {
    --sec: 72px;
  }

  .grid--2,
  .grid--3,
  .grid--4,
  .plans,
  .values,
  .team {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .footer-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }

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

  .hero__stat {
    padding: 16px 10px 26px;
  }

  .hero__stat b {
    font-size: 22px;
  }

  .hero__stat span {
    font-size: 11px;
    line-height: 1.35;
  }

  .hero__inner {
    gap: 20px;
    padding-bottom: 36px;
  }

  .hero__actions {
    flex-wrap: wrap;
  }

  /* Schedule collapses into stacked cards */
  .schedule__head {
    display: none;
  }

  .schedule__row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 16px;
    padding: 20px 0;
  }

  .schedule__name {
    grid-column: 1 / -1;
    grid-row: 1;
    font-size: 19px;
  }

  .schedule__time {
    grid-column: 1;
    grid-row: 2;
  }

  .schedule__cell {
    grid-column: 1 / -1;
    font-size: 13px;
  }

  .schedule__level {
    display: block;
  }

  .schedule__action {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
  }

  .detail-aside {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .plan {
    padding: 26px;
  }

  .band {
    aspect-ratio: 4 / 3;
  }

  .cta__actions .btn {
    width: 100%;
  }
}


/* 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}}
