:root {
  --black: #050809;
  --ink: #0b1012;
  --gold: #c88a3d;
  --gold-bright: #e4b467;
  --paper: #f4eee4;
  --muted: #c9b9a5;
  --line: rgba(200, 138, 61, 0.34);
  --scroll-offset: 7rem;
  --toc-tab-width: 4.1rem;
  --toc-panel-width: 16rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--paper);
  background:
    radial-gradient(circle at 72% 22%, rgba(201, 140, 58, 0.16), transparent 26rem),
    linear-gradient(145deg, #020303 0%, #0b1113 45%, #050606 100%);
  font-family: "Source Serif 4", Georgia, serif;
}

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

.site-shell {
  min-height: 100vh;
  overflow-x: hidden;
  padding-top: 4.9rem;
  position: relative;
}

.site-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 90px 90px;
  mask-image: radial-gradient(circle at center, #000, transparent 76%);
}

.site-header {
  align-items: center;
  backdrop-filter: blur(14px);
  background: rgba(5, 8, 9, 0.88);
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  left: 0;
  padding: 0.65rem clamp(1.25rem, 4vw, 4rem);
  position: fixed;
  right: 0;
  top: 0;
  z-index: 1000;
}

.brand {
  align-items: center;
  display: flex;
  gap: 1rem;
}

.brand-text {
  display: inline-block;
  padding-bottom: 1.05rem;
  position: relative;
}

.brand-mark {
  align-items: center;
  display: inline-flex;
  height: 3.5rem;
  justify-content: center;
  position: relative;
  width: 3.5rem;
}

.brand-mark img {
  display: block;
  height: 3.5rem;
  width: 3.5rem;
}

.brand-name,
.brand-subtitle,
.main-nav,
h1,
h2,
h3,
.primary-button,
.dark-button,
.trial-link {
  font-family: Cinzel, Georgia, serif;
  text-transform: uppercase;
}

.brand-name {
  color: var(--gold-bright);
  display: block;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.09em;
  line-height: 0.9;
}

.brand-subtitle {
  bottom: 0;
  color: #fff;
  display: block;
  font-family: "Noto Serif JP", serif;
  font-size: 0.72rem;
  left: 0;
  letter-spacing: 0;
  margin-top: 0;
  position: absolute;
  right: 0;
  text-align: justify;
  text-align-last: justify;
}

.main-nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.9rem, 2.5vw, 1.9rem);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.nav-dropdown {
  position: relative;
  z-index: 1;
}

.nav-dropdown:hover,
.nav-dropdown:focus-within {
  z-index: 30;
}

.nav-dropdown::after {
  content: "";
  height: 1.1rem;
  left: -0.5rem;
  position: absolute;
  right: -0.5rem;
  top: 100%;
}

.main-nav a {
  color: var(--paper);
  display: inline-block;
  position: relative;
}

.main-nav a.active {
  color: var(--gold-bright);
}

.main-nav a:not(.trial-link)::after {
  background: var(--gold);
  bottom: -0.85rem;
  content: "";
  height: 1px;
  left: 50%;
  opacity: 0;
  position: absolute;
  transform: translateX(-50%);
  transition: width 180ms ease, opacity 180ms ease;
  width: 0;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  opacity: 1;
  width: 100%;
}

.trial-link {
  border: 1px solid var(--gold);
  background: rgba(228, 180, 103, 0.08);
  color: var(--gold-bright);
  padding: 0.75rem 1.25rem;
}

.dropdown-menu {
  background: rgba(3, 7, 8, 0.96);
  border: 1px solid rgba(228, 180, 103, 0.34);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.35);
  display: grid;
  gap: 0.15rem;
  left: 50%;
  min-width: 17.5rem;
  opacity: 0;
  padding: 0.7rem;
  pointer-events: none;
  position: absolute;
  top: calc(100% + 0.85rem);
  transform: translate(-50%, -0.4rem);
  transition:
    opacity 140ms ease 70ms,
    transform 140ms ease 70ms,
    visibility 0s linear 210ms;
  visibility: hidden;
  z-index: 20;
}

.dropdown-menu a,
.dropdown-plus {
  color: var(--paper);
  display: block;
  padding: 0.62rem 0.75rem;
  text-transform: none;
  white-space: nowrap;
}

.dropdown-accordion + .dropdown-accordion {
  margin-top: 0.2rem;
}

.dropdown-row {
  align-items: center;
  display: flex;
  gap: 0.35rem;
}

.dropdown-row .dropdown-group {
  flex: 1;
  margin-top: 0;
}

.dropdown-plus {
  align-items: center;
  background: transparent;
  border: 1px solid rgba(228, 180, 103, 0.45);
  color: var(--gold-bright);
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 1.55rem;
  font-family: Cinzel, Georgia, serif;
  font-size: 1rem;
  height: 1.55rem;
  justify-content: center;
  line-height: 1;
  padding: 0;
  width: 1.55rem;
}

.dropdown-plus:hover,
.dropdown-accordion.is-open .dropdown-plus {
  background: rgba(228, 180, 103, 0.12);
}

.dropdown-sub {
  display: grid;
  gap: 0.1rem;
  padding: 0.15rem 0 0.35rem;
}

.dropdown-sub[hidden] {
  display: none;
}

.dropdown-menu a.dropdown-group {
  color: var(--gold-bright);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-top: 0.35rem;
  text-transform: uppercase;
}

.dropdown-menu a.dropdown-child {
  padding-left: 1.15rem;
}

.dropdown-menu a::after {
  display: none;
}

.dropdown-menu a:hover {
  background: rgba(228, 180, 103, 0.1);
  color: var(--gold-bright);
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
  transition-delay: 0s;
  visibility: visible;
}

.hero {
  display: grid;
  gap: clamp(2.25rem, 3vw, 3.5rem);
  grid-template-columns: minmax(15rem, 0.62fr) minmax(16rem, 0.85fr) minmax(15rem, 0.9fr);
  min-height: 28.25rem;
  padding: 1.4rem clamp(1.25rem, 5vw, 4rem) 1.15rem;
  position: relative;
}

.hero::before {
  background: linear-gradient(90deg, rgba(5, 8, 9, 0.98) 0%, rgba(5, 8, 9, 0.84) 44%, rgba(5, 8, 9, 0.28) 100%);
  content: "";
  inset: -8rem 0 0 0;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.hero-copy,
.hero-emblem {
  position: relative;
  z-index: 2;
}

.hero-copy {
  padding-top: 3rem;
}

.eyebrow {
  color: var(--gold-bright);
  font-family: Cinzel, Georgia, serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  margin: 0 0 1rem;
  text-transform: uppercase;
}

.hero-copy h1 {
  color: #fff;
  font-size: clamp(2.35rem, 4.1vw, 3.9rem);
  letter-spacing: 0.02em;
  line-height: 0.91;
  margin: 0;
}

.hero-copy h1 span {
  color: var(--gold-bright);
  display: block;
}

.brush-line {
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  height: 3px;
  margin: 1.05rem 0 0.9rem;
  max-width: 11rem;
}

.hero-copy h2 {
  color: var(--gold-bright);
  font-size: clamp(0.95rem, 1.25vw, 1.1rem);
  letter-spacing: 0.04em;
  margin: 0 0 0.55rem;
}

.hero-copy p,
.content-section p,
.values p,
.cta-band p {
  color: var(--paper);
  font-size: 0.98rem;
  line-height: 1.45;
}

.hero-copy p {
  max-width: 25rem;
  margin-bottom: 0;
}

.primary-button,
.dark-button {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-top: 0.85rem;
  padding: 0.78rem 1.35rem;
}

.primary-button {
  background: rgba(228, 180, 103, 0.08);
  border: 1px solid var(--gold);
  color: var(--gold-bright);
  cursor: pointer;
}

.primary-button:hover {
  background: rgba(228, 180, 103, 0.16);
}

.hero-emblem {
  align-self: center;
  justify-self: center;
  text-align: center;
  transform: translate(1.4rem, -0.35rem);
}

.emblem-ring {
  align-items: center;
  display: inline-flex;
  height: clamp(11.4rem, 18.2vw, 14.6rem);
  justify-content: center;
  width: clamp(11.4rem, 18.2vw, 14.6rem);
}

.lion-image {
  display: block;
  height: 100%;
  width: 100%;
}

.jp-title {
  color: var(--gold-bright);
  font-family: "Noto Serif JP", serif;
  font-size: clamp(2rem, 3.65vw, 3.25rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0.65rem 0 0;
}

.roman-title {
  color: #fff;
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(1.02rem, 1.8vw, 1.3rem);
  font-weight: 700;
  letter-spacing: 0.44em;
  margin: 0.15rem 0 0;
}

.roman-title span {
  color: #fff;
  letter-spacing: 0.18em;
}

.hero-action {
  bottom: -6.6rem;
  min-height: 0;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: -1.4rem;
  width: min(68vw, 64rem);
  z-index: 1;
}

.hero-action::before {
  background:
    linear-gradient(90deg, var(--black) 0%, rgba(5, 8, 9, 0.9) 19%, rgba(5, 8, 9, 0.42) 42%, transparent 64%),
    radial-gradient(circle at 31% 43%, rgba(5, 8, 9, 0.96) 0%, rgba(5, 8, 9, 0.84) 18%, rgba(5, 8, 9, 0.2) 40%, transparent 62%),
    linear-gradient(180deg, var(--black) 0%, transparent 14%, transparent 72%, rgba(5, 8, 9, 0.94) 100%),
    radial-gradient(circle at 54% 43%, transparent 34%, rgba(5, 8, 9, 0.72) 100%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.seoi-image {
  display: block;
  filter: drop-shadow(0 1.6rem 1.4rem rgba(0, 0, 0, 0.65));
  height: 100%;
  min-height: 35rem;
  object-fit: cover;
  object-position: center right;
  width: 100%;
}

.values {
  backdrop-filter: blur(6px);
  background: rgba(3, 7, 8, 0.72);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: -0.45rem;
  position: relative;
  z-index: 2;
}

.values article {
  align-items: center;
  display: flex;
  gap: 0.85rem;
  min-height: 6.5rem;
  padding: 0.8rem clamp(0.85rem, 1.7vw, 1.4rem);
}

.values article + article {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.value-icon {
  display: block;
  flex: 0 0 auto;
  height: 4rem;
  width: 4rem;
}

.values h3 {
  color: var(--gold-bright);
  font-size: 0.9rem;
  margin: 0 0 0.25rem;
}

.values p {
  font-size: 0.82rem;
  margin: 0;
}

.cta-band {
  align-items: center;
  background:
    url("assets/banner-bg.jpg"),
    linear-gradient(90deg, rgba(5, 8, 9, 0.92), rgba(5, 8, 9, 0.72));
  background-position: center;
  background-size: cover;
  color: var(--paper);
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr auto;
  min-height: 8.25rem;
  padding: 1.35rem clamp(1.25rem, 10vw, 12rem);
  position: relative;
  z-index: 5;
}

.cta-band::before,
.cta-band::after {
  background: #050809;
  content: "";
  height: 1.2rem;
  left: 0;
  position: absolute;
  right: 0;
}

.cta-band::before {
  top: 0;
  clip-path: polygon(0 0, 100% 0, 100% 40%, 80% 20%, 56% 48%, 34% 14%, 12% 45%, 0 28%);
}

.cta-band::after {
  bottom: 0;
  clip-path: polygon(0 52%, 14% 30%, 33% 68%, 57% 24%, 76% 54%, 100% 18%, 100% 100%, 0 100%);
}

.cta-content {
  justify-self: center;
  text-align: center;
}

.cta-band h2 {
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  margin: 0;
}

.cta-band p {
  color: var(--paper);
  font-size: 0.92rem;
  margin: 0.25rem 0 0;
}

.dark-button {
  background: #081012;
  color: var(--gold-bright);
  margin: 0;
}

.content-section {
  margin: 0 auto;
  max-width: 58rem;
  padding: 5rem 1.5rem 0;
  position: relative;
  text-align: center;
  z-index: 1;
}

.content-section h2 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.1rem);
  margin: 0 auto 1rem;
}

.content-section p {
  margin-left: auto;
  margin-right: auto;
  max-width: 44rem;
}

.contact {
  padding-bottom: 5rem;
}

.page-main {
  margin: 0 auto;
  max-width: 68rem;
  min-height: calc(100vh - 8.5rem);
  padding: clamp(3rem, 7vw, 6rem) 1.5rem 3rem;
  position: relative;
  z-index: 1;
}

.site-shell:has(.toc-panel) .page-main {
  padding-right: calc(var(--toc-tab-width) + 0.35rem);
}

.page-hero h1,
.about-copy h1 {
  color: #fff;
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  line-height: 0.95;
  margin: 0 0 1.5rem;
}

.about-copy h2 {
  color: #fff;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1;
  margin: 0 0 1.2rem;
}

.about-copy h2 a {
  color: inherit;
  text-decoration: none;
}

.about-copy h2 a:hover {
  color: var(--gold-bright);
}

.page-card {
  background: transparent;
  border-left: 3px solid var(--gold-bright);
  max-width: 48rem;
  padding: clamp(1.25rem, 3vw, 2rem);
}

.page-card p {
  color: var(--paper);
  font-size: 1.08rem;
  line-height: 1.65;
  margin: 0;
}

.page-card p + p {
  margin-top: 1rem;
}

.page-card a,
.page-card code {
  color: var(--gold-bright);
}

.trial-form {
  display: grid;
  gap: 1.35rem;
}

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

.trial-form label,
.trial-form legend {
  color: var(--gold-bright);
  font-family: Cinzel, Georgia, serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.trial-form input,
.trial-form select,
.trial-form textarea {
  background: rgba(5, 8, 9, 0.72);
  border: 1px solid rgba(228, 180, 103, 0.36);
  color: var(--paper);
  display: block;
  font: inherit;
  margin-top: 0.45rem;
  padding: 0.85rem 0.9rem;
  resize: vertical;
  width: 100%;
}

.trial-form input:focus,
.trial-form select:focus,
.trial-form textarea:focus {
  border-color: var(--gold-bright);
  outline: none;
}

.contact-cta {
  margin-top: 1.75rem;
}

.contact-form-section {
  scroll-margin-top: var(--scroll-offset);
}

.contact-form-section h1 {
  color: #fff;
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  line-height: 0.95;
  margin: 0 0 1.5rem;
}

.privacy-check a {
  color: var(--gold-bright);
}

.trial-form fieldset {
  border: 1px solid rgba(228, 180, 103, 0.28);
  margin: 0;
  padding: 1.2rem;
}

.privacy-check {
  align-items: flex-start;
  color: var(--paper) !important;
  display: flex;
  gap: 0.75rem;
  line-height: 1.45;
  text-transform: none !important;
}

.privacy-check input {
  margin-top: 0.15rem;
  width: auto;
}

.trial-form button {
  justify-self: start;
}

.trial-form .primary-button:disabled,
.trial-form button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.discipline-main,
.course-main {
  display: grid;
  gap: clamp(4rem, 8vw, 6.5rem);
  max-width: 72rem;
}

.course-group {
  margin-bottom: calc(-1 * clamp(1.5rem, 4vw, 3rem));
  scroll-margin-top: var(--scroll-offset);
}

.course-group h1,
.course-group h2 {
  color: #fff;
  line-height: 0.98;
  margin: 0;
}

.course-group h1 {
  font-size: clamp(2.6rem, 6vw, 5.2rem);
}

.course-group h2 {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
}

.course-group-lead {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.55;
  margin: 1rem 0 0;
  max-width: 42rem;
}

.teachers-main {
  gap: clamp(2.75rem, 5vw, 4.5rem);
}

.teachers-main .course-group {
  margin-bottom: 0;
}

.teachers-list {
  border-left: 1px solid rgba(228, 180, 103, 0.3);
  display: grid;
  gap: 1.35rem;
  list-style: none;
  margin: 1.6rem 0 0;
  max-width: 44rem;
  padding: 0.15rem 0 0.15rem 1.4rem;
}

.teachers-list > li {
  scroll-margin-top: var(--scroll-offset);
}

.teacher-name {
  color: var(--gold-bright);
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(1.02rem, 1.8vw, 1.2rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.25;
  margin: 0;
}

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

.teacher-name a:hover {
  color: var(--paper);
}

.teacher-role {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.45;
  margin: 0.3rem 0 0;
}

.teacher-bio {
  display: grid;
  gap: 0.75rem;
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
}

.teacher-bio p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.45;
  margin: 0;
}

.discipline-section h1,
.discipline-section h2,
.course-section h1,
.course-section h2 {
  color: #fff;
  line-height: 0.98;
  margin: 0 0 1.4rem;
}

.discipline-section h1,
.course-section h1 {
  font-size: clamp(2.6rem, 6vw, 5.2rem);
}

.discipline-section h2,
.course-section h2 {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
}

.discipline-section.photo-left .about-copy,
.course-section.photo-left .about-copy {
  text-align: left;
}

.discipline-section.photo-left .page-card,
.course-section.photo-left .page-card {
  border-left: 3px solid var(--gold-bright);
  border-right: 0;
  margin-left: 0;
}

.toc-panel {
  background: rgba(3, 7, 8, 0.96);
  border: 1px solid rgba(228, 180, 103, 0.34);
  border-right: 0;
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.42);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - var(--scroll-offset) - 2rem);
  overflow: hidden;
  padding: 1rem 0.85rem 1rem 1.35rem;
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%) translateX(calc(100% - var(--toc-tab-width)));
  transition: transform 180ms ease;
  width: var(--toc-panel-width);
  z-index: 30;
}

.toc-panel:hover,
.toc-panel:focus-within {
  transform: translateY(-50%) translateX(0);
}

.toc-tab {
  color: var(--gold-bright);
  font-family: Cinzel, Georgia, serif;
  font-size: 0.76rem;
  font-weight: 700;
  left: 0.9rem;
  letter-spacing: 0.08em;
  position: absolute;
  text-transform: uppercase;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: center;
}

.toc-panel nav {
  display: grid;
  flex: 1 1 auto;
  gap: 0.5rem;
  margin-left: 3.35rem;
  max-height: 100%;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 0.2rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(228, 180, 103, 0.35) transparent;
}

.toc-panel nav::-webkit-scrollbar {
  width: 0.4rem;
}

.toc-panel nav::-webkit-scrollbar-thumb {
  background: rgba(228, 180, 103, 0.35);
  border-radius: 999px;
}

.toc-panel a {
  color: var(--paper);
  font-family: Cinzel, Georgia, serif;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.toc-panel a:hover {
  color: var(--gold-bright);
}

.toc-panel a.toc-group,
.toc-panel a.dropdown-group {
  color: var(--gold-bright);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-top: 0;
  text-transform: uppercase;
}

.toc-panel .dropdown-row {
  gap: 0.25rem;
}

.toc-panel .dropdown-row .dropdown-group {
  flex: 1;
  min-width: 0;
}

.toc-panel .dropdown-plus {
  flex: 0 0 1.4rem;
  height: 1.4rem;
  width: 1.4rem;
}

.toc-panel .dropdown-child {
  display: block;
  padding: 0.2rem 0 0.2rem 0.7rem;
}

.toc-panel .dropdown-sub {
  gap: 0.15rem;
  padding: 0.1rem 0 0.25rem;
}

.toc-panel .dropdown-accordion + .dropdown-accordion {
  margin-top: 0.15rem;
}

.about-main {
  display: grid;
  gap: clamp(4rem, 8vw, 7rem);
  max-width: 78rem;
}

.about-section {
  align-items: center;
  display: grid;
  gap: clamp(1.5rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.15fr);
  scroll-margin-top: var(--scroll-offset);
}

.discipline-section,
.course-section {
  scroll-margin-top: var(--scroll-offset);
}

.about-section.photo-right {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.9fr);
}

.about-section.photo-left .about-copy {
  text-align: right;
}

.about-section.photo-left .page-card {
  border-left: 0;
  border-right: 3px solid var(--gold-bright);
  margin-left: auto;
}

.about-section.photo-right .about-copy {
  text-align: left;
}

.about-section.no-photo,
.about-section.photo-right.no-photo {
  grid-template-columns: 1fr;
}

.about-section.no-photo .about-copy {
  width: 100%;
}

.about-section.no-photo .page-card {
  max-width: 100%;
}

.discipline-section.photo-left .about-copy {
  text-align: left;
}

.discipline-section.photo-left .page-card {
  border-left: 3px solid var(--gold-bright);
  border-right: 0;
  margin-left: 0;
}

.discipline-section.photo-right .about-copy {
  text-align: right;
}

.discipline-section.photo-right .page-card {
  border-left: 0;
  border-right: 3px solid var(--gold-bright);
  margin-left: auto;
}

.course-section .page-card h3 {
  color: var(--gold-bright);
  font-size: 1rem;
  margin: 1.25rem 0 0.35rem;
  text-transform: uppercase;
}

.course-section .section-photo {
  height: clamp(18rem, 34vw, 30rem);
  min-height: 0;
}

.section-photo {
  align-items: center;
  aspect-ratio: 4 / 5;
  background:
    linear-gradient(rgba(5, 8, 9, 0.58), rgba(5, 8, 9, 0.58)),
    radial-gradient(circle at center, rgba(228, 180, 103, 0.18), transparent 62%);
  border: 1px solid rgba(228, 180, 103, 0.3);
  color: rgba(244, 238, 228, 0.74);
  display: flex;
  font-family: Cinzel, Georgia, serif;
  font-size: 0.85rem;
  justify-content: center;
  letter-spacing: 0.08em;
  margin: 0;
  min-height: 18rem;
  overflow: hidden;
  text-align: center;
  text-transform: uppercase;
}

.section-photo img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.site-footer {
  color: rgba(244, 238, 228, 0.78);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  padding: 0.7rem 1.25rem 1.1rem;
  position: relative;
  text-align: center;
  z-index: 3;
}

.site-footer p {
  margin: 0;
}

.site-footer p + p {
  margin-top: 0.35rem;
}

.site-footer a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.site-footer a:hover {
  color: var(--gold-bright);
}

.privacy-lead {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.55;
  margin: -0.5rem 0 1.75rem;
  max-width: 42rem;
}

.privacy-card {
  max-width: 52rem;
}

.privacy-card h2 {
  color: var(--gold-bright);
  font-family: Cinzel, Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 1.75rem 0 0.7rem;
  text-transform: none;
}

.privacy-card h2:first-of-type {
  margin-top: 1.25rem;
}

.privacy-intro {
  color: var(--muted) !important;
}

.privacy-version {
  color: var(--muted) !important;
  font-size: 0.95rem !important;
  margin-top: 1.75rem !important;
}

@media (max-width: 1020px) {
  :root {
    --scroll-offset: 10.25rem;
  }

  .site-shell {
    padding-top: 8.5rem;
  }

  .site-header,
  .main-nav {
    justify-content: center;
  }

  .site-header {
    flex-direction: column;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

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

  .hero-emblem {
    transform: none;
  }

  .hero-copy p,
  .brush-line {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-action {
    display: none;
  }

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

  .values article:nth-child(3) {
    border-left: 0;
  }

  .toc-panel {
    display: none;
  }

  .site-shell:has(.toc-panel) .page-main {
    padding-right: 1.5rem;
  }

  .about-section,
  .about-section.photo-right {
    grid-template-columns: 1fr;
  }

  .about-section.photo-left .section-photo {
    order: 2;
  }

  .about-section.photo-left .about-copy,
  .about-section.photo-right .about-copy {
    text-align: left;
  }

  .about-section.photo-left .page-card {
    border-left: 3px solid var(--gold-bright);
    border-right: 0;
    margin-left: 0;
  }
}

@media (max-width: 680px) {
  :root {
    --scroll-offset: 14.75rem;
  }

  .site-shell {
    padding-top: 13rem;
  }

  .brand {
    flex-direction: column;
    text-align: center;
  }

  .main-nav {
    gap: 1rem;
  }

  .trial-link {
    padding: 0.75rem 1rem;
  }

  .hero {
    padding-top: 1.5rem;
  }

  .hero-copy h1 {
    font-size: 3rem;
  }

  .roman-title {
    letter-spacing: 0.28em;
  }

  .values,
  .cta-band {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .values article,
  .values article + article {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .cta-band {
    text-align: center;
  }
}
