@font-face {
  font-family: "Mulish";
  src: url("../fonts/Mulish-VariableFont_wght.ttf") format("truetype");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #1c1c1a;
  --panel: #24231f;
  --panel-strong: #2b2924;
  --line: rgba(226, 211, 176, 0.18);
  --text: #f3ecdd;
  --muted: #c7bda8;
  --soft: #9c927f;
  --accent: #d6bd83;
  --accent-dark: #8a7650;
  --green: #8f9a76;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  --max: 1180px;
  --logo-y: 42%;
  --font-main: "Mulish", "Aptos", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(143, 154, 118, 0.12), transparent 34rem),
    linear-gradient(180deg, #1c1c1a 0%, #20201d 44%, #1a1a18 100%);
  color: var(--text);
  font-family: var(--font-main);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

.site-header {
  position: relative;
  overflow: hidden;
  background: #161615;
  border-bottom: 1px solid var(--line);
}

.brand-hero {
  position: relative;
  min-height: clamp(360px, 46vw, 650px);
  margin: 0;
  overflow: hidden;
  background: #d7d5d0;
}

.brand-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(180deg, transparent, rgba(5, 5, 4, 0.86) 82%, var(--bg));
  pointer-events: none;
}

.brand-hero-image {
  width: 100%;
  height: clamp(360px, 46vw, 650px);
  object-fit: cover;
  object-position: center 44%;
  filter: grayscale(1) contrast(0.95) brightness(1.08);
}

.brand-mark {
  position: absolute;
  z-index: 1;
  left: clamp(28px, 8vw, 132px);
  top: var(--logo-y);
  display: inline-flex;
  width: fit-content;
  text-decoration: none;
  transform: translateY(-50%);
}

.brand-logo {
  width: clamp(118px, 13vw, 190px);
  border-radius: 50%;
  filter: drop-shadow(0 14px 28px rgba(255, 255, 255, 0.12));
}

.section-shell {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.nowrap {
  white-space: nowrap;
}

.page-title {
  padding: clamp(46px, 7vw, 88px) 0 clamp(22px, 4vw, 36px);
}

.details-section {
  padding: clamp(34px, 6vw, 76px) 0 clamp(48px, 7vw, 94px);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-main);
  font-weight: 700;
  letter-spacing: 0;
  hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
}

h1 {
  max-width: 980px;
  font-size: clamp(2.55rem, 6.6vw, 5.75rem);
  line-height: 1.02;
}

.copy-section {
  padding: clamp(30px, 6vw, 72px) 0;
  border-top: 1px solid rgba(226, 211, 176, 0.1);
  border-bottom: 1px solid rgba(226, 211, 176, 0.1);
  background: rgba(16, 16, 14, 0.54);
}

.text-shell {
  max-width: 790px;
  margin-left: max(20px, calc((100vw - var(--max)) / 2));
  margin-right: auto;
}

.text-shell h2 {
  margin-bottom: 26px;
  color: #f1e7d4;
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  line-height: 1.16;
}

.text-shell p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: clamp(1.03rem, 1.5vw, 1.17rem);
}

.text-shell p:last-child {
  margin-bottom: 0;
}

.programs-section {
  padding: clamp(28px, 5vw, 58px) 0 clamp(46px, 7vw, 88px);
}

.section-heading {
  max-width: 100%;
  margin-bottom: clamp(28px, 5vw, 48px);
}

.section-heading h2 {
  color: #f1e7d4;
  font-size: clamp(1.9rem, 4vw, 3.3rem);
  line-height: 1.12;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 36px);
}

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

.program-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 0;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
}

.program-card h3 {
  margin-top: 18px;
  color: #f3ead9;
  font-size: clamp(1.24rem, 2vw, 1.55rem);
  font-weight: 700;
  line-height: 1.15;
}

.program-card p {
  margin: 8px 0 26px;
  color: #f1eadc;
  font-size: clamp(1rem, 1.35vw, 1.08rem);
  line-height: 1.5;
}

.card-meta {
  width: fit-content;
  margin-top: 18px;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 46px;
  margin-top: auto;
  padding: 13px 20px;
  border: 1px solid #f5efe3;
  border-radius: 0;
  background: #f5efe3;
  color: #151412;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.button:hover,
.button:focus-visible {
  border-color: var(--accent);
  background: var(--accent);
  transform: translateY(-1px);
}

.button.is-disabled {
  cursor: default;
  opacity: 0.68;
  pointer-events: none;
}

.faq-section {
  padding: clamp(46px, 7vw, 86px) 0 clamp(28px, 5vw, 54px);
}

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

.faq-item {
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid rgba(226, 211, 176, 0.16);
  border-radius: 8px;
  background: rgba(36, 35, 31, 0.72);
}

.faq-item h3 {
  color: #f3ead9;
  font-size: clamp(1.16rem, 1.6vw, 1.42rem);
  line-height: 1.22;
}

.faq-item p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.58;
}

.detail-box {
  min-height: clamp(520px, 58vw, 760px);
  padding: clamp(26px, 4vw, 46px);
  border: 1px solid rgba(226, 211, 176, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(214, 189, 131, 0.09), transparent 42%),
    var(--panel);
  box-shadow: var(--shadow);
}

.detail-header {
  margin-bottom: clamp(28px, 4vw, 42px);
}

.summary-title {
  display: block;
  max-width: 860px;
  color: #f3ead9;
  font-size: clamp(2rem, 4.4vw, 4.4rem);
  font-weight: 700;
  line-height: 1.02;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: clamp(28px, 5vw, 64px);
}

.detail-copy p {
  margin: 0 0 18px;
  color: #efe7d8;
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  line-height: 1.68;
  hyphens: auto;
}

.detail-copy p:last-child {
  margin-bottom: 0;
}

.detail-facts {
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid rgba(226, 211, 176, 0.16);
  border-radius: 8px;
  background: rgba(5, 5, 4, 0.28);
}

.detail-facts h2 {
  margin-bottom: 24px;
  color: #f3ead9;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  font-weight: 700;
  line-height: 1.16;
}

.detail-facts dl {
  display: grid;
  gap: 16px;
  margin: 0;
}

.detail-facts div {
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(226, 211, 176, 0.12);
}

.detail-facts div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.detail-facts dt {
  margin-bottom: 5px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-facts dd {
  margin: 0;
  color: #eee5d6;
  font-size: 0.98rem;
  line-height: 1.55;
}

.detail-facts a {
  color: #f5ead4;
  text-underline-offset: 0.18em;
}

.contact-section {
  padding: clamp(18px, 4vw, 46px) 0 clamp(44px, 7vw, 92px);
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.88fr) minmax(360px, 1.12fr);
  gap: clamp(28px, 5vw, 64px);
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

.contact-panel h2 {
  max-width: 560px;
  color: #f3ead9;
  font-size: clamp(1.8rem, 3vw, 2.75rem);
  font-weight: 700;
  line-height: 1.14;
}

.contact-panel p {
  max-width: 520px;
  margin: 22px 0 0;
  color: var(--muted);
}

.contact-form {
  display: grid;
  gap: 18px;
}

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

.contact-form label {
  display: grid;
  gap: 8px;
  color: #f1eadc;
  font-size: 0.95rem;
  font-weight: 400;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(226, 211, 176, 0.24);
  border-radius: 4px;
  background: rgba(5, 5, 4, 0.32);
  color: var(--text);
  font: inherit;
  padding: 13px 14px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  outline: 2px solid rgba(214, 189, 131, 0.18);
  outline-offset: 0;
}

.form-check {
  grid-template-columns: 18px 1fr;
  align-items: start;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.form-check a {
  color: #f5ead4;
  text-underline-offset: 0.18em;
}

.form-check input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
}

.form-trap {
  position: absolute;
  left: -10000px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #161615;
}

.footer-inner {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 28px 0;
  color: var(--soft);
  font-size: 0.95rem;
}

.footer-inner p {
  margin: 0;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-inner a {
  color: var(--muted);
  text-decoration: none;
}

.footer-inner a:hover,
.footer-inner a:focus-visible {
  color: var(--accent);
}

.legal-page {
  min-height: 100vh;
  padding: clamp(38px, 7vw, 88px) 0;
}

.legal-shell {
  width: min(calc(100% - 40px), 900px);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.legal-shell h1 {
  margin-bottom: clamp(28px, 5vw, 52px);
  font-size: clamp(2.35rem, 6vw, 4.7rem);
}

.legal-shell h2 {
  margin: 34px 0 14px;
  color: #f3ead9;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: 400;
  line-height: 1.18;
}

.legal-shell h3 {
  margin: 24px 0 10px;
  color: var(--accent);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.25;
}

.legal-shell p {
  margin: 0 0 16px;
  color: #efe7d8;
  font-size: 1rem;
  line-height: 1.68;
}

.legal-shell a {
  color: #f5ead4;
  text-underline-offset: 0.18em;
}

.back-link {
  display: inline-flex;
  margin-bottom: 24px;
  color: #aebc8c;
  font-weight: 400;
  text-decoration: none;
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--accent);
}

@media (max-width: 900px) {
  .brand-hero,
  .brand-hero-image {
    height: clamp(340px, 62vw, 560px);
    min-height: clamp(340px, 62vw, 560px);
  }

  .brand-hero-image {
    object-position: 54% 44%;
  }

  .brand-mark {
    left: clamp(22px, 7vw, 58px);
    top: var(--logo-y);
    transform: translateY(-50%);
  }

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

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

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

@media (max-width: 640px) {
  body {
    width: 100%;
  }

  .section-shell,
  .footer-inner {
    width: min(calc(100% - 28px), var(--max));
  }

  h1,
  h2,
  h3 {
    overflow-wrap: normal;
    word-break: normal;
  }

  .eyebrow {
    max-width: 100%;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    overflow-wrap: normal;
    word-break: normal;
  }

  .brand-hero,
  .brand-hero-image {
    width: 100vw;
    max-width: 100vw;
    height: 430px;
    min-height: 430px;
  }

  .brand-hero-image {
    object-position: 56% center;
  }

  .brand-mark {
    left: auto;
    right: 10px;
    top: 10px;
    bottom: auto;
    transform: none;
  }

  .brand-logo {
    width: 92px;
  }

  .page-title {
    padding: 34px 0 18px;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.15rem, 11vw, 3.4rem);
    line-height: 1.08;
  }

  .section-heading h2 {
    max-width: 100%;
    font-size: clamp(1.85rem, 9vw, 2.75rem);
    line-height: 1.12;
  }

  .text-shell {
    margin-left: auto;
  }

  .program-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .program-card {
    padding-bottom: 34px;
  }

  .program-card + .program-card {
    margin-top: 34px;
    padding-top: 34px;
    border-top: 1px solid rgba(214, 189, 131, 0.58);
  }

  .program-card:last-child {
    border-bottom: 1px solid rgba(214, 189, 131, 0.58);
  }

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

  .faq-item {
    padding: 22px;
  }

  .details-section {
    padding: 26px 0 46px;
  }

  .detail-box {
    min-height: 0;
    padding: 24px;
  }

  .detail-header {
    margin-bottom: 24px;
  }

  .summary-title {
    max-width: 100%;
    font-size: clamp(1.75rem, 8.2vw, 2.45rem);
    line-height: 1.12;
  }

  .detail-copy p {
    margin-bottom: 16px;
    font-size: 1rem;
    line-height: 1.58;
  }

  .detail-facts {
    margin-top: 8px;
    padding: 20px;
    border-color: rgba(226, 211, 176, 0.12);
    background: rgba(5, 5, 4, 0.16);
  }

  .detail-facts h2 {
    margin-bottom: 20px;
    font-size: 1.28rem;
    line-height: 1.22;
  }

  .detail-facts dl {
    gap: 14px;
  }

  .detail-facts div {
    padding-bottom: 14px;
  }

  .detail-facts dd {
    font-size: 0.96rem;
    line-height: 1.5;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
