:root {
  --forest: #1d2f26;
  --forest-deep: #0f1b15;
  --forest-black: #09110d;
  --gold: #c8a76d;
  --gold-dark: #806536;
  --parchment: #e8dfc9;
  --ivory: #f4efe5;
  --chalk: #f7f6f2;
  --khaki: #9a9178;
  --graphite: #2b2b2b;
  --burgundy: #3e1d25;
  --burgundy-deep: #271116;
  --line-dark: rgba(200, 167, 109, 0.42);
  --line-light: rgba(29, 47, 38, 0.22);
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --content: 77.5rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --z-header: 20;
  --z-menu: 30;
  --z-modal: 50;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: clip;
  background: var(--ivory);
  color: var(--graphite);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.125rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open, body.modal-open { overflow: hidden; }

img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { font: inherit; }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

section { position: relative; width: 100%; }
section[id] { scroll-margin-top: 6rem; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  transform: translateY(-180%);
  padding: 0.65rem 1rem;
  background: var(--ivory);
  color: var(--forest-deep);
  font-family: Montserrat, Arial, sans-serif;
  font-size: 0.78rem;
  text-decoration: none;
}

.skip-link:focus { transform: none; }

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: var(--z-header);
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3rem);
  min-height: 7.6rem;
  padding: 0.65rem var(--gutter);
  color: var(--ivory);
  transition: background-color 420ms var(--ease), border-color 420ms var(--ease);
}

.site-header.is-scrolled {
  min-height: 5.25rem;
  background: rgba(9, 17, 13, 0.96);
  border-bottom: 1px solid rgba(200, 167, 109, 0.22);
}

.site-header.is-scrolled .brand { height: 3.5rem; }

.brand {
  width: 9.5rem;
  height: 6.5rem;
  display: grid;
  place-items: center;
}

.brand img {
  width: auto;
  max-width: none;
  height: 6rem;
  object-fit: contain;
  filter: invert(78%) sepia(36%) saturate(535%) hue-rotate(358deg) brightness(88%);
  transition: transform 500ms var(--ease);
}

.site-header.is-scrolled .brand img { height: 3.65rem; }

.brand:hover img { transform: rotate(-3deg) scale(1.025); }

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(0.65rem, 1.5vw, 1.8rem);
  width: 100%;
  max-width: 55rem;
  justify-self: center;
}

.site-nav a, .header-cta {
  font-family: Montserrat, Arial, sans-serif;
  font-size: clamp(0.68rem, 0.72vw, 0.8rem);
  font-weight: 500;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a {
  position: relative;
  padding: 0.7rem 0;
  color: rgba(244, 239, 229, 0.88);
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0.4rem;
  left: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 320ms var(--ease);
}

.site-nav a:hover::after, .site-nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }

.header-cta {
  display: inline-flex;
  min-height: 2.9rem;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.3rem;
  border: 1px solid var(--gold);
  color: var(--ivory);
  transition: background-color 280ms var(--ease), color 280ms var(--ease);
}

.header-cta:hover, .header-cta:focus-visible { background: var(--gold); color: var(--forest-deep); }
.menu-toggle { display: none; }

/* Shared CTA */
.portal-button {
  display: inline-flex;
  min-height: 3.4rem;
  align-items: center;
  gap: 1.2rem;
  padding: 0.35rem 0.38rem 0.35rem 1.45rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0;
  text-decoration: none;
}

.portal-button i {
  display: grid;
  width: 2.55rem;
  height: 2.55rem;
  place-items: center;
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 1.1rem;
  font-style: normal;
  transition: transform 320ms var(--ease);
}

.portal-button:hover i, .portal-button:focus-visible i { transform: translateY(0.16rem); }
.portal-button--gold { color: var(--gold); }
.portal-button--gold i { background: var(--gold); color: var(--forest-deep); }

/* Hero */
.hero-section {
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--forest-black);
  color: var(--ivory);
}

.hero-media, .hero-shade { position: absolute; inset: 0; }

.hero-media {
  background-image: url("assets/clavis-key-hero.webp");
  background-position: 70% 44%;
  background-size: cover;
  transform: scale(1.04);
  animation: hero-settle 1.8s var(--ease) both;
}

.hero-shade {
  background: linear-gradient(90deg, rgba(7, 14, 10, 0.98) 0%, rgba(7, 14, 10, 0.84) 37%, rgba(7, 14, 10, 0.17) 70%, rgba(7, 14, 10, 0.28) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(42rem, calc(100% - (2 * var(--gutter))));
  margin-left: clamp(6rem, 11vw, 12rem);
  padding: 9.5rem 0 4rem;
  animation: hero-copy-in 1.1s 140ms var(--ease) both;
}

.hero-content h1 {
  max-width: 12ch;
  margin-bottom: 1.7rem;
  color: var(--parchment);
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(2.7rem, 5.1vw, 5.7rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.hero-rule {
  display: flex;
  width: min(24rem, 78%);
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.7rem;
}

.hero-rule span { flex: 1; height: 1px; background: var(--line-dark); }
.hero-rule i { width: 0.42rem; height: 0.42rem; border: 1px solid var(--gold); transform: rotate(45deg); }

.hero-copy {
  max-width: 35rem;
  margin-bottom: 1rem;
  color: rgba(244, 239, 229, 0.9);
  font-size: clamp(1.15rem, 1.7vw, 1.42rem);
  line-height: 1.58;
}

.hero-invitation {
  margin-bottom: 2rem;
  color: var(--gold);
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  font-style: italic;
}

@keyframes hero-settle { from { transform: scale(1.1); filter: brightness(0.72); } to { transform: scale(1.04); filter: brightness(1); } }
@keyframes hero-copy-in { from { opacity: 0; transform: translateY(1.25rem); } to { opacity: 1; transform: none; } }

/* Scroll story */
.diagnosis-section {
  min-height: 100svh;
  padding: clamp(7rem, 12vw, 11rem) var(--gutter);
  overflow: clip;
  background: #eee7da;
  color: var(--forest-deep);
}

.js .diagnosis-section { min-height: 302svh; padding: 0; }
.diagnosis-section.story-motion { min-height: 302svh; padding: 0; }

.story-sticky {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 4.5rem var(--gutter) 2.5rem;
}

.story-motion .story-sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; }

.story-sticky::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/clavis-story-program.webp") center 42% / cover no-repeat;
  filter: grayscale(1) sepia(0.18);
  opacity: 0.045;
  pointer-events: none;
}

.story-signature {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
}

.story-signature i {
  position: absolute;
  display: block;
  border: 1px solid rgba(128, 101, 54, 0.22);
  border-radius: 50%;
}

.story-signature i:nth-child(1) { width: 12rem; height: 12rem; top: 17%; left: -6rem; }
.story-signature i:nth-child(2) { width: 5rem; height: 5rem; top: 24%; left: 2.2rem; }
.story-signature i:nth-child(3) { width: 18rem; height: 18rem; right: -9rem; bottom: 8%; }

.story-portal {
  position: absolute;
  z-index: 2;
  top: clamp(9.5rem, 15vh, 10.5rem);
  left: 50%;
  width: clamp(12.5rem, 18vw, 17rem);
  aspect-ratio: 0.78;
  transform: translateX(-50%);
  overflow: hidden;
  border: 1px solid rgba(128, 101, 54, 0.34);
  border-radius: 10rem 10rem 0.2rem 0.2rem;
  background: var(--forest-deep);
}

.story-photo { width: 100%; height: 100%; margin: 0; }
.story-motion .story-photo { position: absolute; inset: 0; }
.story-photo img { width: 100%; height: 100%; object-fit: cover; }
.story-photo:nth-child(2) img { object-position: 63% center; }

.story-scenes { width: min(70rem, 100%); }
.story-scene { margin: 4rem auto; text-align: center; }
.story-motion .story-scenes { position: absolute; z-index: 2; inset: 0; min-height: 0; margin: auto; }

.story-motion .story-scene {
  position: absolute;
  top: clamp(28rem, 58vh, 35rem);
  left: 50%;
  width: 100%;
  margin: 0;
  transform: translateX(-50%);
}

.story-title {
  max-width: 24ch;
  margin: 0 auto 1.3rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.4rem, 4.3vw, 4.4rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: 0;
}

.story-title--mid { max-width: 27ch; font-size: clamp(2.15rem, 3.6vw, 3.5rem); line-height: 1.08; }
.story-title--bridge { max-width: 22ch; color: var(--forest); font-size: clamp(2.3rem, 4vw, 3.9rem); }

.story-lines {
  max-width: 42rem;
  margin: 0 auto;
  color: #4c584f;
  font-size: clamp(1.12rem, 1.6vw, 1.4rem);
  line-height: 1.55;
}

.story-pause {
  margin-bottom: 0.9rem;
  color: var(--gold-dark);
  font-size: clamp(1.5rem, 2.4vw, 2.15rem);
  font-style: italic;
}

.story-next {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  color: var(--forest-deep);
  font-size: 1.8rem;
  text-decoration: none;
  transform: translateX(-50%);
}

.story-motion .story-anim {
  opacity: var(--story-opacity, 1);
  filter: blur(var(--story-blur, 0));
  will-change: opacity, filter, transform;
}

.story-motion .story-photo.story-anim {
  transform: scale(var(--story-scale, 1));
}

.story-motion .story-scene .story-anim {
  transform: translate3d(0, var(--story-y, 0), 0);
}

.story-motion .story-next.story-anim {
  transform: translateX(-50%) translate3d(0, var(--story-y, 0), 0);
}

/* Other side */
.other-side-section {
  min-height: clamp(48rem, 94svh, 63rem);
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--forest-black);
  color: var(--ivory);
}

.other-side-image {
  position: absolute;
  inset: 0;
  background-image: url("assets/clavis-key-burgundy.webp");
  background-position: center;
  background-size: cover;
  opacity: 0.64;
}

.other-side-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(9, 17, 13, 0.98) 0%, rgba(9, 17, 13, 0.88) 49%, rgba(9, 17, 13, 0.22) 100%);
}

.other-side-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(22rem, 0.78fr);
  gap: clamp(3rem, 8vw, 8rem);
  width: min(var(--content), calc(100% - (2 * var(--gutter))));
  margin: auto;
  padding: clamp(6rem, 10vw, 9rem) 0;
}

.other-side-lead h2 {
  max-width: 18ch;
  margin-bottom: 2rem;
  color: var(--parchment);
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(2.7rem, 3.8vw, 4.4rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

.other-side-lead > p {
  max-width: 35rem;
  margin: 0;
  color: rgba(244, 239, 229, 0.75);
  font-size: clamp(1.2rem, 1.7vw, 1.5rem);
}
.other-side-lead em { color: var(--parchment); }

.change-sequence { align-self: center; padding-top: clamp(4rem, 11vh, 8rem); }
.change-sequence > p { margin-bottom: 1.7rem; color: var(--gold); font-size: 1.3rem; font-style: italic; }
.change-sequence div { padding: 1rem 0; border-top: 1px solid rgba(200, 167, 109, 0.35); font-size: clamp(1.6rem, 2.6vw, 2.6rem); }
.change-sequence div:last-child { border-bottom: 1px solid rgba(200, 167, 109, 0.35); }
.change-sequence div:nth-child(3) { padding-left: 2rem; }
.change-sequence div:nth-child(4) { padding-left: 4rem; }

.other-side-close {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 7vw, 7rem);
  margin-top: clamp(2rem, 5vw, 4rem);
  padding-top: 2.1rem;
  border-top: 1px solid rgba(200, 167, 109, 0.25);
}
.other-side-close p { max-width: 34rem; margin: 0; color: rgba(244, 239, 229, 0.74); font-size: 1.2rem; }

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

/* Scope */
.scope-section {
  padding-bottom: clamp(5rem, 7vw, 7rem);
  overflow: hidden;
  background: var(--chalk);
  color: var(--forest-deep);
}

.scope-intro {
  display: grid;
  width: min(var(--content), calc(100% - (2 * var(--gutter))));
  margin: 0 auto clamp(2.75rem, 4vw, 4rem);
  padding: clamp(3.75rem, 6vw, 5.5rem) 0 clamp(2.5rem, 4vw, 3.75rem);
  border-bottom: 1px solid var(--line-light);
}

.scope-intro h2 {
  grid-column: 1 / -1;
  max-width: 22ch;
  margin: 0 auto clamp(2.5rem, 4vw, 3.75rem);
  color: var(--forest-deep);
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(2.2rem, 4vw, 4.25rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-align: center;
}

.scope-principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.scope-principle { position: relative; max-width: 27ch; margin: 0; padding-top: 1.15rem; color: #465047; font-size: clamp(1.08rem, 1.35vw, 1.24rem); line-height: 1.5; }
.scope-principle::before { content: ""; position: absolute; top: 0; left: 0; width: 2.4rem; height: 1px; background: var(--gold-dark); }
.scope-principle--cooperation { grid-column: 1; grid-row: 1; }
.scope-principle--method { grid-column: 2; grid-row: 1; justify-self: center; }
.scope-principle--history { grid-column: 3; grid-row: 1; justify-self: end; }

.scope-radial {
  position: relative;
  width: min(64rem, calc(100% - (2 * var(--gutter))));
  min-height: 40rem;
  margin: auto;
}

.scope-prompt {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 2;
  margin: 0;
  color: var(--gold-dark);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-style: italic;
  transform: translateX(-50%);
  white-space: nowrap;
}

.scope-orbit {
  position: absolute;
  top: 5.3rem;
  left: 50%;
  width: 29rem;
  height: 29rem;
  border: 1px solid rgba(128, 101, 54, 0.32);
  border-radius: 50%;
  transform: translateX(-50%);
  animation: orbit-breathe 7s ease-in-out infinite alternate;
}

.scope-orbit::before, .scope-orbit::after {
  content: "";
  position: absolute;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--gold);
}
.scope-orbit::before { top: 8%; left: 17%; }
.scope-orbit::after { right: 9%; bottom: 20%; }

@keyframes orbit-breathe { from { transform: translateX(-50%) rotate(-1deg) scale(0.99); } to { transform: translateX(-50%) rotate(1deg) scale(1.01); } }

.scope-key {
  position: absolute;
  top: 11.3rem;
  left: 50%;
  z-index: 1;
  width: 17rem;
  height: 17rem;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(128, 101, 54, 0.5);
  border-radius: 50% 50% 0.4rem 0.4rem;
  background: var(--forest-deep);
  box-shadow: 0 1.5rem 4rem rgba(15, 27, 21, 0.16), 0 0 0 0.8rem rgba(200, 167, 109, 0.08);
  transform: translateX(-50%);
}
.scope-key img { width: 100%; height: 100%; object-fit: cover; object-position: center; transform: scale(1.01); }

.scope-primary { list-style: none; margin: 0; padding: 0; }
.scope-primary li {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: 12.5rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(29, 47, 38, 0.25);
  color: #3d473f;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 0.76rem;
  line-height: 1.35;
}
.scope-primary li:nth-child(1) { --x: 5%; --y: 20%; }
.scope-primary li:nth-child(2) { --x: 77%; --y: 17%; }
.scope-primary li:nth-child(3) { --x: 1%; --y: 39%; }
.scope-primary li:nth-child(4) { --x: 81%; --y: 37%; }
.scope-primary li:nth-child(5) { --x: 1%; --y: 61%; }
.scope-primary li:nth-child(6) { --x: 81%; --y: 59%; }
.scope-primary li:nth-child(7) { --x: 11%; --y: 81%; }
.scope-primary li:nth-child(8) { --x: 72%; --y: 81%; }
.scope-primary li::before { content: ""; position: absolute; right: 0; bottom: -0.25rem; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--gold); }
.scope-primary li:nth-child(even)::before { right: auto; left: 0; }

.scope-more {
  width: min(64rem, calc(100% - (2 * var(--gutter))));
  margin: 2.5rem auto 0;
  border-top: 1px solid var(--line-light);
}
.scope-more[hidden] { display: none; }
.scope-more ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0; padding: 0; list-style-position: inside; }
.scope-more li { padding: 1rem 1.2rem; border-bottom: 1px solid var(--line-light); color: #475249; font-family: Montserrat, Arial, sans-serif; font-size: 0.75rem; }

.scope-toggle {
  display: flex;
  min-width: 15rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 2rem auto 0;
  padding: 0.5rem 0.5rem 0.5rem 1.2rem;
  border: 1px solid var(--forest);
  border-radius: 999px;
  background: transparent;
  color: var(--forest);
  cursor: pointer;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 0.72rem;
}
.scope-toggle i { display: grid; width: 2rem; height: 2rem; place-items: center; border-radius: 50%; background: var(--forest); color: var(--ivory); font-size: 1.15rem; font-style: normal; transition: transform 320ms var(--ease); }
.scope-toggle[aria-expanded="true"] i { transform: rotate(45deg); }

/* About */
.about-section {
  padding: clamp(5.5rem, 8vw, 8rem) var(--gutter);
  overflow: hidden;
  background: #d7ceb9;
  color: var(--forest-deep);
}

.about-section::before {
  content: "";
  position: absolute;
  right: -8rem;
  bottom: -10rem;
  width: 42rem;
  height: 46rem;
  background: url("assets/clavis-key-hero.webp") 78% center / cover no-repeat;
  opacity: 0.075;
  filter: saturate(0.65) contrast(0.9);
  -webkit-mask-image: linear-gradient(to top, #000 25%, transparent 92%);
  mask-image: linear-gradient(to top, #000 25%, transparent 92%);
}

.about-section::after {
  content: "";
  position: absolute;
  top: 3rem;
  right: -2rem;
  width: 16rem;
  height: 16rem;
  background: url("assets/logo-hc.svg") center / contain no-repeat;
  opacity: 0.045;
}

.about-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(22rem, 0.9fr) minmax(0, 1fr);
  gap: clamp(4rem, 9vw, 9rem);
  width: min(var(--content), 100%);
  align-items: center;
  margin: auto;
}

.about-visual { position: relative; padding: 0 5rem 5rem 0; }
.about-main-photo { height: min(43rem, 65vw); margin: 0; overflow: hidden; border-radius: 14rem 14rem 0.25rem 0.25rem; }
.about-main-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }

.about-detail-photo {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 12.75rem;
  aspect-ratio: 0.78;
  margin: 0;
  overflow: hidden;
  border: 2px solid var(--gold);
  border-radius: 7rem 7rem 0.25rem 0.25rem;
  background: var(--forest-deep);
}
.about-detail-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 24%; transform: scale(1.02); }

.about-copy { max-width: 39rem; }
.about-copy h2 { margin-bottom: 1.3rem; font-family: Cinzel, Georgia, serif; font-size: clamp(2.8rem, 5vw, 5.25rem); font-weight: 400; line-height: 1.05; letter-spacing: -0.025em; }
.about-name { margin-bottom: 1.8rem; color: #3f493f; font-size: clamp(1.35rem, 2vw, 1.7rem); }
.about-name strong { font-weight: 500; }
.about-rule { width: 5rem; height: 1px; margin-bottom: 2rem; background: var(--gold-dark); }
.about-copy > p:not(.about-name) { max-width: 64ch; margin-bottom: 1.5rem; color: #404940; font-size: clamp(1.12rem, 1.55vw, 1.3rem); line-height: 1.62; }
.about-copy .about-emphasis { color: var(--forest-deep); font-size: clamp(1.3rem, 2vw, 1.65rem); line-height: 1.5; }

/* Hypnosis */
.hypnosis-section {
  padding: clamp(6rem, 10vw, 10rem) var(--gutter);
  overflow: hidden;
  background: var(--chalk);
  color: var(--forest-deep);
}

.hypnosis-section::before {
  content: "";
  position: absolute;
  right: -9rem;
  bottom: -8rem;
  width: 34rem;
  height: 43rem;
  background: url("assets/clavis-door-portal.webp") center / cover no-repeat;
  opacity: 0.045;
  -webkit-mask-image: linear-gradient(to left, #000 35%, transparent 94%);
  mask-image: linear-gradient(to left, #000 35%, transparent 94%);
}

.focus-rings { position: absolute; top: -8rem; right: -8rem; width: 24rem; aspect-ratio: 1; opacity: 0.62; }
.focus-rings--lower { top: auto; right: auto; bottom: -10rem; left: -9rem; transform: scale(0.8); }
.focus-rings i { position: absolute; inset: var(--ring, 0); display: block; border: 1px solid rgba(128, 101, 54, 0.34); border-radius: 50%; }
.focus-rings i:nth-child(2) { --ring: 17%; }
.focus-rings i:nth-child(3) { --ring: 34%; background: rgba(200, 167, 109, 0.08); }

.hypnosis-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(21rem, 0.85fr);
  gap: clamp(4rem, 9vw, 9rem);
  width: min(var(--content), 100%);
  margin: auto;
}

.hypnosis-explanation h2 { margin-bottom: 2rem; font-family: Cinzel, Georgia, serif; font-size: clamp(2.75rem, 4.9vw, 5.15rem); font-weight: 400; line-height: 1.05; letter-spacing: -0.025em; }
.hypnosis-lead { margin-bottom: 2rem; color: var(--forest); font-size: clamp(1.4rem, 2.2vw, 1.85rem); line-height: 1.5; }
.hypnosis-example { max-width: 40rem; padding: 1.8rem 0; border-top: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); }
.hypnosis-example p { margin-bottom: 1rem; color: #3f4b43; font-size: clamp(1.08rem, 1.45vw, 1.26rem); }
.hypnosis-example p:last-child { margin-bottom: 0; }
.hypnosis-conscious { margin-top: 2rem; color: var(--gold-dark); font-size: 1.35rem; font-style: italic; }

.safety-sequence { align-self: center; }
.safety-sequence p { margin: 0; padding: 1.1rem 0; border-top: 1px solid rgba(29, 47, 38, 0.28); color: var(--forest-deep); font-size: clamp(1.55rem, 2.6vw, 2.5rem); line-height: 1.2; }
.safety-sequence p:last-child { border-bottom: 1px solid rgba(29, 47, 38, 0.28); color: var(--burgundy); font-style: italic; }
.hypnosis-close { grid-column: 1 / -1; max-width: 52rem; margin: 3rem auto 0; color: var(--forest-deep); font-size: clamp(1.6rem, 2.8vw, 2.7rem); line-height: 1.25; text-align: center; }

/* Certificates */
.certificates-section {
  position: relative;
  padding: clamp(5.5rem, 8vw, 8rem) var(--gutter);
  overflow: hidden;
  background: var(--forest-black);
  color: var(--ivory);
}

.certificates-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/clavis-certificates-surface.webp") center / cover no-repeat;
  opacity: 0.18;
}

.certificates-section::after { content: ""; position: absolute; top: -13rem; right: -11rem; width: 34rem; height: 34rem; border: 1px solid rgba(200, 167, 109, 0.16); border-radius: 50%; box-shadow: 0 0 0 5rem rgba(200, 167, 109, 0.025), 0 0 0 10rem rgba(200, 167, 109, 0.018); pointer-events: none; }

.certificates-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(22rem, 0.8fr) minmax(0, 1.2fr); gap: clamp(3rem, 5vw, 5rem); width: min(var(--content), 100%); margin: auto; align-items: center; }
.certificates-intro { max-width: 34rem; margin: 0; }
.certificates-intro h2 { max-width: 14ch; margin: 0 0 2rem; color: var(--parchment); font-family: Cinzel, Georgia, serif; font-size: clamp(2.65rem, 3.5vw, 3.65rem); font-weight: 400; line-height: 1.04; letter-spacing: 0; }
.certificates-intro p { max-width: 32rem; margin: 0; color: rgba(244, 239, 229, 0.76); font-size: clamp(1.05rem, 1.35vw, 1.2rem); line-height: 1.7; }

.certificate-showcase { display: grid; grid-template-columns: minmax(0, 1fr) minmax(12rem, 0.46fr); gap: clamp(1.25rem, 3vw, 2.75rem); align-items: end; min-width: 0; }
.certificate-feature { min-width: 0; }
.certificate-preview { display: block; width: 100%; padding: 0; border: 0; background: transparent; color: inherit; cursor: zoom-in; }
.certificate-mat { display: grid; min-height: clamp(22rem, 36vw, 34rem); place-items: center; padding: clamp(1rem, 2.2vw, 2rem); overflow: hidden; border: 1px solid rgba(200, 167, 109, 0.38); border-radius: 0.25rem; background: #d8d1c4; box-shadow: 0 2rem 5rem rgba(2, 7, 5, 0.38); transform: rotate(-1.2deg); }
.certificate-mat img { width: 100%; max-height: clamp(20rem, 31vw, 29rem); object-fit: contain; box-shadow: 0 0.8rem 2rem rgba(18, 16, 12, 0.18); transition: transform 500ms var(--ease), opacity 220ms ease; }
.certificate-preview:hover .certificate-mat img, .certificate-preview:focus-visible .certificate-mat img { transform: scale(1.012); }
.certificate-preview:focus-visible { outline: 2px solid var(--gold); outline-offset: 0.45rem; }
.certificate-caption { display: grid; grid-template-columns: 2.5rem 1fr; gap: 1rem; align-items: baseline; margin: 1.15rem 0 0; }
.certificate-caption i, .certificate-index i { color: var(--gold); font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; }
.certificate-caption strong { color: var(--parchment); font-family: Montserrat, Arial, sans-serif; font-size: 0.78rem; font-weight: 500; }

.certificate-index { display: grid; gap: 0.8rem; border: 0; }
.certificate-index button { display: grid; grid-template-columns: 1.8rem minmax(0, 1fr); gap: 0.75rem; align-items: end; width: 100%; min-height: 8.5rem; padding: 1rem; overflow: hidden; border: 1px solid rgba(200, 167, 109, 0.28); border-radius: 0.2rem; background: rgba(244, 239, 229, 0.035); color: rgba(244, 239, 229, 0.62); cursor: pointer; text-align: left; transition: color 260ms ease, border-color 260ms ease, transform 320ms var(--ease); }
.certificate-index strong { font-family: Montserrat, Arial, sans-serif; font-size: 0.72rem; font-weight: 500; line-height: 1.4; transition: transform 260ms var(--ease); }
.certificate-index img { grid-column: 1 / -1; grid-row: 1; width: calc(100% + 2rem); height: 5.4rem; margin: -1rem -1rem 0; object-fit: cover; opacity: 0.56; filter: saturate(0.55); transition: opacity 260ms ease, filter 260ms ease; }
.certificate-index i, .certificate-index strong { grid-row: 2; }
.certificate-index button[aria-pressed="true"], .certificate-index button:hover, .certificate-index button:focus-visible { color: var(--parchment); border-color: rgba(200, 167, 109, 0.72); background: rgba(200, 167, 109, 0.07); transform: translateX(-0.35rem); }
.certificate-index button[aria-pressed="true"] strong, .certificate-index button:hover strong, .certificate-index button:focus-visible strong { transform: translateX(0.35rem); }
.certificate-index button[aria-pressed="true"] img, .certificate-index button:hover img, .certificate-index button:focus-visible img { opacity: 1; filter: none; }
.certificate-index button:focus-visible { outline: 1px solid var(--gold); outline-offset: 0.2rem; }

.certificate-dialog { width: min(76rem, calc(100% - 2rem)); max-height: 92svh; padding: 3.2rem 1rem 1rem; border: 1px solid var(--gold); border-radius: 0.35rem; background: var(--forest-black); color: var(--ivory); }
.certificate-dialog::backdrop { background: rgba(5, 11, 8, 0.92); }
.certificate-dialog img { width: 100%; max-height: calc(92svh - 5rem); object-fit: contain; }
.dialog-close { position: absolute; top: 0.65rem; right: 0.75rem; width: 2.3rem; height: 2.3rem; border: 1px solid var(--gold); border-radius: 50%; background: transparent; color: var(--ivory); cursor: pointer; font-size: 1.35rem; line-height: 1; }

/* Process */
.process-section {
  padding: clamp(6rem, 11vw, 11rem) var(--gutter);
  overflow: clip;
  background: var(--burgundy-deep);
  color: var(--ivory);
}

.process-sticky { position: relative; }

.process-sticky::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 14% 18%, rgba(200, 167, 109, 0.1), transparent 26%), linear-gradient(135deg, #32141c 0%, var(--burgundy-deep) 52%, #180a0e 100%);
  pointer-events: none;
}

.process-visual { position: absolute; z-index: 1; inset: 0 0 0 48%; overflow: hidden; border-left: 1px solid rgba(200, 167, 109, 0.28); background: var(--forest-black); pointer-events: none; }
.process-visual::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(90deg, rgba(39, 17, 22, 0.5), transparent 34%); pointer-events: none; }
.process-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: var(--process-image-opacity, 0); transform: scale(var(--process-image-scale, 1.03)); transition: opacity 90ms linear; will-change: opacity, transform; }
.process-visual img:first-child { --process-image-opacity: 1; }
.process-line { position: absolute; z-index: 3; top: 0; bottom: 0; left: 3rem; width: 1px; background: rgba(200, 167, 109, 0.25); }
.process-line::after { content: ""; position: absolute; inset: 0; background: var(--gold-dark); transform: scaleY(var(--process-progress, 1)); transform-origin: top; }
.process-steps { position: relative; z-index: 1; width: min(72rem, 100%); margin: auto; padding: 0; list-style: none; }
.process-step { display: grid; grid-template-columns: 4rem minmax(0, 31rem) 1fr; min-height: 15rem; align-items: center; }
.process-number { grid-column: 1; grid-row: 1; display: grid; width: 3.3rem; height: 3.3rem; place-items: center; justify-self: center; border: 1px solid var(--gold); border-radius: 50%; background: var(--burgundy-deep); color: var(--gold); font-family: Cinzel, Georgia, serif; font-size: 1rem; }
.process-copy, .process-step:nth-child(even) .process-copy { grid-column: 2; grid-row: 1; max-width: 31rem; padding: 0 2.5rem 0 1.75rem; text-align: left; }
.process-copy h2 { margin-bottom: 1rem; font-family: Cinzel, Georgia, serif; font-size: clamp(1.75rem, 2.8vw, 2.7rem); font-weight: 400; line-height: 1.15; letter-spacing: -0.015em; }
.process-copy p { margin-bottom: 0.8rem; color: rgba(244, 239, 229, 0.72); font-size: clamp(1.02rem, 1.35vw, 1.18rem); }
.process-copy p:last-child { margin-bottom: 0; }
.process-copy a { color: var(--parchment); text-decoration-color: var(--gold); text-underline-offset: 0.25em; }
.process-copy a + a { display: block; width: fit-content; margin: 0.35rem 0 0 auto; }
.process-step:nth-child(even) .process-copy a + a { margin-left: 0; }

.process-section.process-motion { min-height: 240svh; padding: 0; }
.process-motion .process-sticky { position: sticky; top: 0; height: 100svh; display: grid; place-items: center; overflow: hidden; padding: clamp(6rem, 10vh, 8rem) var(--gutter) clamp(3rem, 7vh, 5rem); }
.process-motion .process-line { top: 18%; bottom: 18%; left: max(var(--gutter), calc((100% - 72rem) / 2)); }
.process-motion .process-steps { height: min(31rem, 64vh); }
.process-motion .process-step { position: absolute; inset: 0; min-height: 0; opacity: var(--process-opacity, 1); transform: translate3d(0, var(--process-y, 0), 0); filter: blur(var(--process-blur, 0)); will-change: opacity, transform, filter; }

/* Pricing */
.pricing-section {
  display: grid;
  grid-template-columns: minmax(20rem, 0.72fr) minmax(0, 1fr);
  min-height: 31rem;
  background: var(--burgundy-deep);
  color: var(--ivory);
}
.pricing-photo { min-height: 31rem; overflow: hidden; background: var(--parchment); }
.pricing-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; filter: saturate(0.72) contrast(1.04); }
.pricing-content { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(3.25rem, 5vw, 5rem); background: var(--forest-deep); }
.pricing-content::before { content: ""; position: absolute; top: 50%; right: 0; width: clamp(5rem, 10vw, 10rem); height: 1px; background: var(--gold); transform: rotate(-30deg); opacity: 0.5; }
.pricing-content h2 { margin-bottom: 0.65rem; color: var(--parchment); font-family: Cinzel, Georgia, serif; font-size: clamp(2.35rem, 4vw, 4.2rem); font-weight: 400; line-height: 1.05; letter-spacing: -0.02em; }
.price { display: flex; align-items: baseline; gap: 0.65rem; margin-bottom: 1.5rem; color: var(--gold); font-size: clamp(2.2rem, 4vw, 4rem); }
.price strong { font-family: Cinzel, Georgia, serif; font-size: clamp(4.5rem, 7vw, 6.5rem); font-weight: 400; line-height: 0.95; letter-spacing: -0.03em; }
.pricing-rule { width: min(100%, 28rem); height: 1px; margin-bottom: 2rem; background: var(--line-dark); }
.pricing-button { margin-bottom: 2rem; }
.pricing-button:hover i, .pricing-button:focus-visible i { transform: translateX(0.2rem); }
.prepayment { max-width: 31rem; margin: 0; color: rgba(244, 239, 229, 0.75); font-size: 1.15rem; }

/* Final CTA and footer */
.contact-section {
  min-height: 58svh;
  display: grid;
  place-items: center;
  padding: clamp(5rem, 8vw, 7rem) var(--gutter);
  overflow: hidden;
  background: var(--chalk);
  color: var(--forest-deep);
}
.contact-portal { position: absolute; top: 7%; bottom: 0; left: 50%; width: min(33rem, 78vw); border: 1px solid rgba(128, 101, 54, 0.24); border-bottom: 0; border-radius: 22rem 22rem 0 0; transform: translateX(-50%); }
.contact-portal::before, .contact-portal::after { content: ""; position: absolute; top: 45%; width: 1px; height: 7rem; background: rgba(128, 101, 54, 0.32); }
.contact-portal::before { left: 28%; transform: rotate(28deg); }
.contact-portal::after { right: 28%; transform: rotate(-28deg); }
.contact-inner { position: relative; z-index: 1; width: min(100%, 72rem); margin: auto; text-align: center; }
.contact-inner h2 { max-width: 21ch; margin: 0 auto 2.5rem; font-family: Cinzel, Georgia, serif; font-size: clamp(2.45rem, 4.5vw, 4.7rem); font-weight: 400; line-height: 1.08; letter-spacing: -0.03em; }
.contact-inner h2 em { display: block; color: var(--burgundy); font-family: "Cormorant Garamond", Georgia, serif; font-weight: 400; text-transform: none; }
.contact-decision { display: flex; width: min(100%, 34rem); align-items: center; justify-content: center; margin: auto; padding-top: 2rem; border-top: 1px solid var(--line-light); }
.contact-button { flex: 0 0 auto; background: var(--forest); color: var(--ivory); }
.contact-button i { background: var(--gold); color: var(--forest-deep); }
.contact-button:hover i, .contact-button:focus-visible i { transform: translateX(0.2rem); }
.contact-details { display: flex; justify-content: center; gap: 2rem; margin-top: 2rem; color: var(--gold-dark); font-size: 1rem; }
.contact-details a { text-decoration-color: rgba(128, 101, 54, 0.55); text-underline-offset: 0.3em; }

.site-footer { padding: clamp(3rem, 5vw, 4.5rem) var(--gutter); background: var(--forest-black); color: var(--ivory); }
.footer-inner { display: grid; grid-template-columns: minmax(14rem, 0.8fr) minmax(15rem, 0.9fr) minmax(16rem, 0.65fr); gap: clamp(2rem, 5vw, 5rem); width: min(var(--content), 100%); align-items: center; margin: auto; }
.footer-brand { width: clamp(13rem, 18vw, 18rem); justify-self: start; }
.footer-brand img { width: 100%; filter: invert(78%) sepia(36%) saturate(535%) hue-rotate(358deg) brightness(88%); }
.footer-meta { display: flex; flex-direction: column; gap: 1.5rem; padding-bottom: 0.5rem; }
.footer-person { display: flex; flex-direction: column; gap: 0.35rem; }
.footer-person strong { color: var(--parchment); font-family: Cinzel, Georgia, serif; font-size: 1.2rem; font-weight: 400; }
.footer-person span { color: rgba(244, 239, 229, 0.65); }
.footer-contact { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-contact a { color: rgba(244, 239, 229, 0.74); font-family: Montserrat, Arial, sans-serif; font-size: 0.72rem; text-decoration: none; }
.footer-contact a:hover, .footer-contact a:focus-visible { color: var(--gold); }
.footer-action { display: flex; min-height: 4.5rem; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1rem 1rem 1rem 1.35rem; border: 1px solid rgba(200, 167, 109, 0.65); color: var(--parchment); font-family: Montserrat, Arial, sans-serif; font-size: 0.76rem; text-decoration: none; transition: background-color 280ms var(--ease), color 280ms var(--ease); }
.footer-action i { color: var(--gold); font-family: Georgia, serif; font-size: 1.2rem; font-style: normal; transition: transform 280ms var(--ease); }
.footer-action:hover, .footer-action:focus-visible { background: var(--gold); color: var(--forest-deep); }
.footer-action:hover i, .footer-action:focus-visible i { color: var(--forest-deep); transform: translateX(0.2rem); }

@media (max-width: 72rem) {
  .site-header { grid-template-columns: 8rem 1fr auto; }
  .brand { width: 8rem; }
  .site-nav { gap: 0.75rem; }
  .site-nav a:nth-child(1), .site-nav a:nth-child(5) { display: none; }
  .hero-content { margin-left: clamp(3rem, 8vw, 6rem); }
  .certificates-inner { grid-template-columns: minmax(16rem, 0.62fr) minmax(0, 1.38fr); gap: 3rem; }
  .certificate-showcase { grid-template-columns: minmax(0, 1fr) minmax(10.5rem, 0.48fr); gap: 1.5rem; }
}

@media (max-width: 56rem) {
  body { font-size: 1.05rem; }
  .site-header { grid-template-columns: 6.25rem 1fr auto; min-height: 5.8rem; padding-block: 0.35rem; }
  .site-header.is-scrolled { min-height: 4.8rem; }
  .brand { width: 6.25rem; height: 4.8rem; }
  .brand img { height: 5.2rem; }
  .site-header.is-scrolled .brand img { height: 4rem; }
  .header-cta { display: none; }
  .menu-toggle { position: relative; z-index: calc(var(--z-menu) + 1); display: grid; width: 2.9rem; height: 2.9rem; place-items: center; justify-self: end; padding: 0; border: 1px solid var(--gold); border-radius: 50%; background: transparent; }
  .menu-toggle span { position: absolute; width: 1.1rem; height: 1px; background: var(--ivory); transition: transform 260ms var(--ease); }
  .menu-toggle span:first-child { transform: translateY(-0.22rem); }
  .menu-toggle span:last-child { transform: translateY(0.22rem); }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }
  .site-nav { position: fixed; z-index: var(--z-menu); inset: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; padding: 7rem var(--gutter) 3rem; background: var(--forest-black); transform: translateX(100%); transition: transform 480ms var(--ease); }
  .site-nav.is-open { transform: none; }
  .site-nav a, .site-nav a:nth-child(1), .site-nav a:nth-child(5) { display: block; width: 100%; padding: 0.65rem 0; border-bottom: 1px solid rgba(200, 167, 109, 0.22); color: var(--parchment); font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(1.55rem, 7vw, 2.4rem); font-weight: 400; }

  .hero-section { align-items: end; }
  .hero-media { background-position: 64% 30%; }
  .hero-shade { background: linear-gradient(180deg, rgba(7, 14, 10, 0.08) 5%, rgba(7, 14, 10, 0.58) 46%, rgba(7, 14, 10, 0.98) 82%); }
  .hero-content { width: calc(100% - (2 * var(--gutter))); margin: 0 auto; padding: 8rem 0 2.5rem; }
  .hero-content h1 { max-width: 11ch; font-size: clamp(2.35rem, 10.5vw, 4rem); }
  .hero-copy { font-size: 1.05rem; }

  .js .diagnosis-section, .diagnosis-section.story-motion { min-height: 276svh; }
  .story-sticky { padding: 3rem var(--gutter) 1.5rem; }
  .story-portal { top: 6.6rem; width: 10.25rem; }
  .story-motion .story-scene { top: 48%; }
  .story-title { font-size: clamp(2.15rem, 10vw, 3.35rem); }
  .story-title--mid { font-size: clamp(1.85rem, 8.6vw, 2.8rem); }
  .story-title--bridge { font-size: clamp(2rem, 9vw, 3rem); }
  .story-lines { font-size: 1rem; }
  .story-signature i:nth-child(2) { display: none; }

  .other-side-section { min-height: auto; }
  .other-side-image { background-position: 65% center; opacity: 0.5; }
  .other-side-section::after { background: rgba(9, 17, 13, 0.76); }
  .other-side-inner { grid-template-columns: 1fr; gap: 2.5rem; padding: 6rem 0; }
  .other-side-lead h2 { font-size: clamp(2.35rem, 10vw, 3.8rem); }
  .change-sequence { padding-top: 0; }
  .change-sequence div:nth-child(3), .change-sequence div:nth-child(4) { padding-left: 0; }
  .other-side-close { grid-template-columns: 1fr; gap: 1.2rem; }

  .scope-intro { margin-bottom: 2.25rem; padding-top: 3rem; padding-bottom: 2rem; }
  .scope-principles { grid-template-columns: 1fr; gap: 1rem; }
  .scope-principle, .scope-principle--cooperation, .scope-principle--method, .scope-principle--history { grid-column: 1; grid-row: auto; justify-self: start; }
  .scope-principle--cooperation { order: 1; }
  .scope-principle--method { order: 2; }
  .scope-principle--history { order: 3; }
  .scope-intro h2 { margin-bottom: 2rem; font-size: clamp(2rem, 8.8vw, 3rem); text-align: left; }
  .scope-radial { min-height: auto; padding-top: 4.5rem; }
  .scope-prompt { width: 100%; text-align: center; white-space: normal; }
  .scope-orbit { top: 7rem; width: min(20rem, 90vw); height: min(20rem, 90vw); }
  .scope-key { position: relative; top: auto; left: auto; width: 12rem; height: 12rem; margin: 2rem auto 4rem; transform: none; }
  .scope-primary { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
  .scope-primary li { position: relative; inset: auto; width: auto; min-height: 4rem; padding: 0.8rem 0.65rem; border-bottom: 1px solid var(--line-light); font-size: 0.68rem; }
  .scope-primary li:nth-child(even) { padding-left: 1rem; border-left: 1px solid var(--line-light); }
  .scope-primary li::before { display: none; }
  .scope-more ol { grid-template-columns: 1fr; }

  .about-inner { grid-template-columns: 1fr; gap: 3.5rem; }
  .about-visual { padding: 0 3.5rem 3.5rem 0; }
  .about-main-photo { height: min(38rem, 125vw); }
  .about-detail-photo { width: 10rem; }
  .about-copy h2 { font-size: clamp(2.65rem, 11vw, 4rem); }

  .hypnosis-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hypnosis-explanation h2 { font-size: clamp(2.45rem, 10vw, 3.8rem); }
  .hypnosis-close { margin-top: 1rem; }

  .certificates-inner { grid-template-columns: 1fr; gap: 3rem; }
  .certificates-intro { margin-bottom: 0; }
  .certificates-intro h2 { font-size: clamp(2.1rem, 8.7vw, 3.25rem); }
  .certificate-showcase { grid-template-columns: 1fr; gap: 2.5rem; }
  .certificate-mat { min-height: min(76vw, 30rem); padding: clamp(1rem, 5vw, 2rem); }
  .certificate-mat img { max-height: min(67vw, 26rem); }
  .certificate-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .certificate-index button { grid-template-columns: 1.5rem minmax(0, 1fr); min-height: 8.5rem; padding: 0.7rem; }
  .certificate-index img { width: calc(100% + 1.4rem); height: 4.5rem; margin: -0.7rem -0.7rem 0; }
  .certificate-index strong { font-size: 0.62rem; }

  .process-visual { inset: 0; border: 0; opacity: 1; }
  .process-visual::after { background: rgba(39, 17, 22, 0.58); }
  .process-visual img { object-position: center; }
  .process-line, .process-motion .process-line { left: calc(var(--gutter) + 1.65rem); }
  .process-step { grid-template-columns: 3.3rem 1fr; min-height: 0; padding: 0 0 4rem; }
  .process-step:last-child { padding-bottom: 0; }
  .process-number { grid-column: 1; align-self: start; }
  .process-copy, .process-step:nth-child(even) .process-copy { grid-column: 2; padding: 0 0 0 1.4rem; text-align: left; }
  .process-copy a + a { margin-left: 0; overflow-wrap: anywhere; }

  .pricing-section { grid-template-columns: 1fr; min-height: 0; }
  .pricing-photo { min-height: 34svh; max-height: 24rem; }
  .pricing-content { padding: 3.5rem var(--gutter); }
  .price strong { font-size: clamp(4.8rem, 24vw, 7rem); }

  .contact-section { min-height: auto; }
  .contact-portal { width: 92vw; }
  .contact-inner h2 { font-size: clamp(2.2rem, 9vw, 3.5rem); }
  .contact-decision { flex-direction: column; gap: 1.8rem; }
  .contact-details { flex-direction: column; gap: 0.6rem; }

  .site-footer { padding-block: 2.75rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; align-items: start; }
  .footer-brand { width: 11rem; }
  .footer-meta { gap: 1rem; }
  .footer-action { width: 100%; }
}

@media (max-width: 24rem) {
  .hero-content h1 { font-size: 2.15rem; }
  .portal-button { width: 100%; justify-content: space-between; }
  .scope-primary { grid-template-columns: 1fr; }
  .scope-primary li:nth-child(even) { padding-left: 0.65rem; border-left: 0; }
  .about-visual { padding-right: 2rem; }
  .about-detail-photo { width: 8.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .diagnosis-section.story-motion { min-height: auto; padding: 6rem var(--gutter); }
  .js .diagnosis-section { min-height: auto; padding: 6rem var(--gutter); }
  .story-motion .story-sticky { position: relative; height: auto; overflow: visible; }
  .story-motion .story-scenes { min-height: 0; }
  .story-motion .story-scene { position: relative; top: auto; left: auto; margin: 4rem auto; transform: none !important; }
  .story-motion .story-photo { position: relative; }
  .story-portal { position: relative; top: auto; left: auto; margin: 0 auto; transform: none; }
  .story-anim { opacity: 1 !important; filter: none !important; transform: none !important; }
  .process-section.process-motion { min-height: auto; padding: 6rem var(--gutter); }
  .process-motion .process-sticky { position: relative; height: auto; display: block; overflow: visible; padding: 0; }
  .process-motion .process-sticky::before { display: none; }
  .process-motion .process-line { top: 0; bottom: 0; }
  .process-motion .process-steps { height: auto; }
  .process-motion .process-step { position: relative; inset: auto; opacity: 1 !important; transform: none !important; filter: none !important; }
}
.footer-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.5rem; width: min(var(--content), 100%); margin: clamp(2rem, 4vw, 3rem) auto 0; padding-top: 1.5rem; border-top: 1px solid rgba(200, 167, 109, 0.18); color: rgba(244, 239, 229, 0.5); font-family: Montserrat, Arial, sans-serif; font-size: 0.68rem; letter-spacing: 0.02em; }
.footer-legal a, .footer-legal button { color: rgba(244, 239, 229, 0.5); text-decoration: none; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.footer-legal a:hover, .footer-legal a:focus-visible, .footer-legal button:hover, .footer-legal button:focus-visible { color: var(--gold); }

/* Cookie consent banner */
.cookie-banner { position: fixed; inset: auto 0 0; z-index: var(--z-modal); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 2rem; padding: 1.25rem var(--gutter); background: var(--forest-black); border-top: 1px solid rgba(200, 167, 109, 0.32); box-shadow: 0 -1rem 3rem rgba(2, 7, 5, 0.4); }
.cookie-banner p { max-width: 42rem; margin: 0; color: rgba(244, 239, 229, 0.82); font-family: Montserrat, Arial, sans-serif; font-size: 0.78rem; line-height: 1.6; }
.cookie-banner p a { color: var(--gold); }
.cookie-banner-actions { display: flex; flex: 0 0 auto; gap: 0.75rem; }
.cookie-banner-actions button { padding: 0.65rem 1.4rem; border: 1px solid rgba(200, 167, 109, 0.5); border-radius: 0.2rem; background: transparent; color: var(--ivory); font-family: Montserrat, Arial, sans-serif; font-size: 0.72rem; letter-spacing: 0.02em; cursor: pointer; transition: background-color 220ms var(--ease), color 220ms var(--ease); }
.cookie-banner-accept { background: var(--gold); border-color: var(--gold); color: var(--forest-deep); }
.cookie-banner-accept:hover, .cookie-banner-accept:focus-visible { background: var(--gold-dark); border-color: var(--gold-dark); }
.cookie-banner-decline:hover, .cookie-banner-decline:focus-visible { background: rgba(244, 239, 229, 0.08); }
@media (max-width: 640px) { .cookie-banner { flex-direction: column; align-items: stretch; text-align: center; } .cookie-banner-actions { justify-content: center; } }
