:root {
  --um-ink: #16181b;
  --um-ink-soft: #2c2e32;
  --um-paper: #f3efe6;
  --um-paper-deep: #e8e2d4;
  --um-rule: #d4cdbf;
  --um-muted: #6a645c;
  --um-accent: #1f4f4a;
  --um-font: "Outfit", ui-sans-serif, system-ui, sans-serif;
  --um-display: "Fraunces", ui-serif, Georgia, serif;
  --um-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --um-shadow: 0 0 0 1px rgb(22 24 27 / 0.08), 0 1px 2px -1px rgb(22 24 27 / 0.06), 0 2px 8px rgb(22 24 27 / 0.04);
}

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

html { -webkit-font-smoothing: antialiased; }

body.um-body {
  margin: 0;
  background: var(--um-paper);
  color: var(--um-ink);
  font-family: var(--um-font);
  line-height: 1.5;
}

img, video { max-width: 100%; display: block; outline: 1px solid rgb(22 24 27 / 0.1); outline-offset: -1px; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--um-display);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.12;
  text-wrap: balance;
  margin: 0 0 0.4rem;
}
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 0.8rem; text-wrap: pretty; }
button:not(:disabled), [role="button"]:not(:disabled) { cursor: pointer; }

.um-skip {
  position: absolute; left: -999px; top: 0;
}
.um-skip:focus { left: 1rem; top: 1rem; z-index: 100; background: var(--um-paper); padding: 0.5rem 1rem; }

.um-wrap { width: min(72rem, calc(100% - 2rem)); margin-inline: auto; }
@media (min-width: 640px) { .um-wrap { width: min(72rem, calc(100% - 3rem)); } }

.um-kicker {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--um-muted);
  margin-bottom: 0.75rem;
}
.um-kicker-light { color: rgb(243 239 230 / 0.62); }
.um-center { text-align: center; }
.um-muted { color: var(--um-muted); }
.um-mt { margin-top: 1.5rem; }

.um-header {
  position: sticky; top: 0; z-index: 50;
  transition: background-color 300ms var(--um-ease), color 300ms var(--um-ease);
}
.um-header.is-inverted { color: var(--um-paper); background: transparent; }
.um-header.is-solid { background: rgb(243 239 230 / 0.95); color: var(--um-ink); box-shadow: 0 1px 0 var(--um-rule); }
.um-header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 4.5rem; gap: 1rem; }
.um-logo { display: flex; align-items: center; gap: 0.6rem; font-family: var(--um-display); font-size: 1.15rem; }
.um-logo-light { color: var(--um-paper); }
.um-mark {
  width: 1.6rem; height: 1.6rem; display: inline-block;
  background:
    linear-gradient(var(--um-paper), var(--um-paper)) 0 55% / 28% 45% no-repeat,
    linear-gradient(var(--um-paper), var(--um-paper)) 36% 32% / 28% 68% no-repeat,
    linear-gradient(#7aa39a, #7aa39a) 72% 12% / 28% 88% no-repeat;
}
.um-header.is-solid .um-mark,
.um-header:not(.is-inverted) .um-mark {
  background:
    linear-gradient(var(--um-ink), var(--um-ink)) 0 55% / 28% 45% no-repeat,
    linear-gradient(var(--um-ink), var(--um-ink)) 36% 32% / 28% 68% no-repeat,
    linear-gradient(var(--um-accent), var(--um-accent)) 72% 12% / 28% 88% no-repeat;
}
.um-nav { display: none; align-items: center; gap: 1.6rem; font-size: 0.9rem; }
.um-nav ul { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.um-nav a { opacity: 0.82; }
.um-nav a:hover { opacity: 1; }
.um-nav-toggle {
  background: none; border: 0; color: inherit; min-height: 44px; font: inherit; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.72rem;
}
@media (min-width: 860px) {
  .um-nav { display: flex; }
  .um-nav-toggle { display: none; }
}
.um-nav.is-open {
  display: flex; flex-direction: column; align-items: stretch;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--um-paper); color: var(--um-ink); padding: 1rem 1.25rem 1.4rem;
  box-shadow: 0 12px 24px rgb(22 24 27 / 0.08);
}
.um-nav.is-open ul { flex-direction: column; gap: 0; }
.um-nav.is-open li a { display: flex; min-height: 44px; align-items: center; }

.um-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-height: 44px; padding: 0 1.25rem; border-radius: 0.6rem; font: 500 0.9rem/1 var(--um-font);
  transition: transform 150ms ease-out, background-color 150ms, color 150ms;
}
.um-btn:active { transform: scale(0.96); }
.um-btn-ink { background: var(--um-ink); color: var(--um-paper); }
.um-btn-paper { background: var(--um-paper); color: var(--um-ink); }
.um-btn-outline { box-shadow: 0 0 0 1px var(--um-rule); }
.um-btn-ghost { box-shadow: 0 0 0 1px rgb(243 239 230 / 0.28); color: var(--um-paper); }
.um-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

.um-hero {
  position: relative; min-height: 100dvh; display: flex; align-items: flex-end;
  background: var(--um-ink); color: var(--um-paper); margin-top: -4.5rem; overflow: hidden;
}
.um-hero-video, .um-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.7; }
.um-hero-shade { position: absolute; inset: 0; background: linear-gradient(to top, var(--um-ink), rgb(22 24 27 / 0.5) 50%, rgb(22 24 27 / 0.25)); }
.um-hero-copy { position: relative; padding: 8rem 0 4rem; max-width: 40rem; margin-left: auto; margin-right: auto; width: min(72rem, calc(100% - 2rem)); }
.um-hero-copy h1 { max-width: 18ch; }
.um-lead { max-width: 36rem; color: rgb(243 239 230 / 0.8); font-size: 1.05rem; }
.um-hero-copy.is-ready > * { animation: um-rise 700ms var(--um-ease) both; }
.um-hero-copy.is-ready > *:nth-child(1) { animation-delay: 40ms; }
.um-hero-copy.is-ready > *:nth-child(2) { animation-delay: 140ms; }
.um-hero-copy.is-ready > *:nth-child(3) { animation-delay: 240ms; }
.um-hero-copy.is-ready > *:nth-child(4) { animation-delay: 340ms; }

.um-marquee-wrap { border-block: 1px solid var(--um-rule); background: var(--um-paper-deep); padding: 1.4rem 0 1.6rem; overflow: hidden; }
.um-marquee-track { display: flex; gap: 3rem; width: max-content; animation: um-marquee 32s linear infinite; font-family: var(--um-display); font-size: 1.3rem; color: rgb(22 24 27 / 0.7); }

.um-section { padding: 4.5rem 0; }
.um-cards-4 { display: grid; gap: 1.1rem; margin-top: 2.5rem; }
@media (min-width: 800px) { .um-cards-4 { grid-template-columns: 1fr 1fr; } }
.um-cover-split { position: absolute; inset: 0; display: grid; }
@media (min-width: 700px) { .um-cover-split { grid-template-columns: 1fr 1fr; } }
.um-cover-split img { position: relative; width: 100%; height: 100%; min-height: 38vh; object-fit: cover; }
.um-offer { display: grid; overflow: hidden; border-radius: 1rem; background: var(--um-paper-deep); box-shadow: var(--um-shadow); margin-top: 1.5rem; }
@media (min-width: 900px) { .um-offer { grid-template-columns: minmax(0, 22rem) 1fr; } }
.um-offer > img { width: 100%; height: 16rem; object-fit: cover; }
@media (min-width: 900px) { .um-offer > img { height: 100%; min-height: 18rem; } }
.um-offer-body { padding: 1.5rem 1.6rem 1.8rem; }
.um-points { list-style: none; margin: 1.1rem 0 0; padding: 0; }
.um-points li { border-top: 1px solid var(--um-rule, rgb(22 24 27 / 0.12)); padding: 0.75rem 0; font-size: 0.92rem; }
.um-gallery { display: grid; gap: 1rem; margin-top: 1.5rem; }
@media (min-width: 700px) { .um-gallery { grid-template-columns: 1fr 1fr; } }
.um-gallery figure { margin: 0; overflow: hidden; border-radius: 1rem; background: #fff; }
.um-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.um-gallery figcaption { padding: 0.75rem 1rem; color: var(--um-muted); font-size: 0.9rem; }
.um-founder { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .um-founder { grid-template-columns: 0.8fr 1.2fr; } }
.um-founder > img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-radius: 1rem; }
@media (min-width: 800px) { .um-cards-3 { grid-template-columns: repeat(3, 1fr); } }
.um-card { overflow: hidden; border-radius: 1rem; background: var(--um-paper-deep); box-shadow: var(--um-shadow); color: inherit; }
.um-card-media { aspect-ratio: 4/3; overflow: hidden; }
.um-card-media img, .um-portrait img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--um-ease); }
.um-card:hover .um-card-media img { transform: scale(1.03); }
.um-portrait { aspect-ratio: 3/4; }
.um-card-body { padding: 1.2rem; }
.um-card-body p { color: var(--um-muted); font-size: 0.92rem; }

.um-band-ink { background: var(--um-ink); color: var(--um-paper); padding: 4.5rem 0; }
.um-band-paper { background: var(--um-paper-deep); border-block: 1px solid var(--um-rule); padding: 4.5rem 0; }
.um-split { display: grid; gap: 2.5rem; }
@media (min-width: 900px) {
  .um-split { grid-template-columns: 1fr 1fr; align-items: start; }
  .um-split-center { align-items: center; }
}
.um-method { list-style: none; margin: 0; padding: 0; }
.um-method li { display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; border-top: 1px solid rgb(243 239 230 / 0.12); padding-top: 1.6rem; margin-top: 1.6rem; }
.um-method li:first-child { border: 0; margin-top: 0; padding-top: 0; }
.um-method span { font-family: var(--um-display); font-size: 1.5rem; color: rgb(243 239 230 / 0.4); }

.um-programme-list, .um-stack { display: grid; gap: 1rem; margin-top: 2.2rem; }
.um-programme-row, .um-programme-card {
  display: grid; gap: 1.1rem; align-items: center;
  background: var(--um-paper-deep); border-radius: 1rem; padding: 1rem; box-shadow: var(--um-shadow); color: inherit;
}
.um-programme-row img, .um-programme-card img { width: 100%; height: 8rem; object-fit: cover; border-radius: 0.6rem; }
@media (min-width: 720px) {
  .um-programme-row { grid-template-columns: 9rem 1fr auto; }
  .um-programme-card { grid-template-columns: minmax(0, 18rem) 1fr; }
  .um-programme-row img { width: 9rem; height: 6rem; }
}
.um-programme-price { display: flex; justify-content: space-between; gap: 1rem; }
@media (min-width: 720px) { .um-programme-price { flex-direction: column; align-items: flex-end; } }
.um-linkish { color: var(--um-accent); font-size: 0.9rem; }
.um-price { font-family: var(--um-display); font-size: 1.5rem; }
.um-price small { display: block; font-family: var(--um-font); font-size: 0.75rem; color: var(--um-muted); }
.um-price-inline { font-size: 0.95rem; }
.um-price-inline span { color: rgb(243 239 230 / 0.55); }
.um-rounded { border-radius: 1rem; width: 100%; object-fit: cover; aspect-ratio: 4/3; }

.um-faculty-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-top: 2rem; }
@media (min-width: 800px) { .um-faculty-grid { grid-template-columns: repeat(4, 1fr); } }
.um-faculty-list { display: grid; gap: 1.5rem; }
.um-faculty-row { display: grid; gap: 1.2rem; background: var(--um-paper-deep); border-radius: 1rem; overflow: hidden; box-shadow: var(--um-shadow); }
.um-faculty-row img { width: 100%; height: 16rem; object-fit: cover; }
@media (min-width: 700px) {
  .um-faculty-row { grid-template-columns: 13rem 1fr; }
  .um-faculty-row img { height: 100%; }
  .um-faculty-row > div { padding: 1.5rem; }
}

.um-collab-grid { display: grid; gap: 1.25rem; margin-top: 2rem; }
@media (min-width: 700px) { .um-collab-grid { grid-template-columns: 1fr 1fr; } }
.um-collab-card {
  background: var(--um-paper); border-radius: 1rem; padding: 1.5rem; box-shadow: var(--um-shadow);
}
.um-collab-list { list-style: none; margin: 1rem 0 0; padding: 0; }
.um-collab-list li { border-bottom: 1px solid var(--um-rule); padding: 0.65rem 0; font-size: 0.95rem; }
.um-collab-list li:last-child { border-bottom: 0; }
.um-collab-modes { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 0.75rem; }
@media (min-width: 700px) { .um-collab-modes { grid-template-columns: 1fr 1fr; } }
.um-collab-modes li {
  background: var(--um-paper); border-radius: 1rem; padding: 1.1rem 1.25rem; box-shadow: var(--um-shadow);
}
.um-collab-modes h3 { font-size: 1.15rem; }
.um-collab-modes p { margin: 0.35rem 0 0; color: var(--um-muted); font-size: 0.9rem; }

.um-cta { position: relative; overflow: hidden; color: var(--um-paper); min-height: 22rem; display: flex; align-items: flex-end; }
.um-cta img, .um-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.um-cta-shade, .um-cover-shade { position: absolute; inset: 0; background: rgb(22 24 27 / 0.55); }
.um-cta-copy, .um-cover-copy { position: relative; padding: 4.5rem 0; max-width: 36rem; }
.um-cover { position: relative; min-height: 70vh; display: flex; align-items: flex-end; background: var(--um-ink); color: var(--um-paper); }
.um-page-hero { background: var(--um-paper-deep); border-bottom: 1px solid var(--um-rule); padding: 4rem 0; }

.um-panel { background: var(--um-paper-deep); border-radius: 1rem; padding: 1.6rem; box-shadow: var(--um-shadow); }
.um-facts { margin: 1.5rem 0 0; }
.um-facts div { margin-bottom: 1rem; }
.um-facts dt { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--um-muted); }
.um-form { display: grid; gap: 0.9rem; }
.um-form label { display: grid; gap: 0.35rem; font-size: 0.75rem; letter-spacing: 0.04em; color: var(--um-muted); }
.um-form input, .um-form textarea {
  font: 0.95rem var(--um-font); color: var(--um-ink);
  background: var(--um-paper); border: 0; border-radius: 0.6rem;
  min-height: 2.75rem; padding: 0.65rem 0.85rem;
  box-shadow: inset 0 0 0 1px var(--um-rule);
}
.um-form textarea { min-height: 8rem; }
.um-form input:focus, .um-form textarea:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--um-accent); }

.um-prose { max-width: 42rem; color: var(--um-muted); font-size: 0.95rem; }
.um-prose-light { color: rgb(243 239 230 / 0.78); }
.um-footer { background: var(--um-ink); color: var(--um-paper); margin-top: auto; }
.um-footer-grid { display: grid; gap: 2rem; padding: 3.2rem 0; }
@media (min-width: 800px) { .um-footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.um-footer-base { border-top: 1px solid rgb(243 239 230 / 0.1); }
.um-footer-base-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; padding: 1.1rem 0; font-size: 0.75rem; color: rgb(243 239 230 / 0.45); }

.um-intro {
  position: fixed; inset: 0; z-index: 200; overflow: hidden; color: var(--um-paper);
}
.um-intro-panels { display: flex; height: 100%; }
.um-intro-panel { position: relative; flex: 1; overflow: hidden; background: var(--um-ink); }
.um-intro-panel + .um-intro-panel { box-shadow: inset 1px 0 0 rgb(243 239 230 / 0.12); }
.um-intro-panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; animation: um-ken 3.4s var(--um-ease) both; }
.um-intro-panel span {
  position: absolute; left: 0.85rem; right: 0.85rem; bottom: 1.25rem;
  font-family: var(--um-display); letter-spacing: 0.22em; text-transform: uppercase;
  font-size: clamp(0.95rem, 2.4vw, 1.65rem);
}
.um-intro-brand {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 1.5rem;
  background: linear-gradient(180deg, rgb(22 24 27 / 0.18), rgb(22 24 27 / 0.5) 42%, rgb(22 24 27 / 0.18));
}
.um-intro-name { font-family: var(--um-display); font-size: clamp(1.8rem, 5vw, 3rem); letter-spacing: 0.2em; text-transform: uppercase; animation: um-rise 680ms var(--um-ease) both; animation-delay: 280ms; }
.um-intro-line { height: 1px; width: min(14rem, 44vw); margin-top: 2rem; background: var(--um-paper); transform-origin: center; animation: um-line 560ms var(--um-ease) both; animation-delay: 420ms; }
.um-intro-tag { margin-top: 1.75rem; max-width: 22rem; font-family: var(--um-display); font-size: clamp(1.05rem, 2.4vw, 1.35rem); animation: um-rise 680ms var(--um-ease) both; animation-delay: 620ms; }
.um-intro-brand .um-kicker { animation: um-rise 680ms var(--um-ease) both; animation-delay: 140ms; }
.um-intro-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.um-intro-catch { margin-top: 1rem; max-width: 28rem; font-weight: 650; }
.um-intro-skip {
  position: absolute; left: 50%; bottom: max(1.25rem, env(safe-area-inset-bottom)); transform: translateX(-50%);
  z-index: 5; min-height: 52px; min-width: 9.5rem; padding: 0.85rem 1.75rem;
  border: 2px solid #f3efe6; border-radius: 999px; background: #16181b; color: #f3efe6;
  letter-spacing: 0.16em; text-transform: uppercase; font: 650 1rem/1 var(--um-font); cursor: pointer;
}
.um-intro.is-leaving .um-intro-panel { animation: um-panel-up 980ms var(--um-ease) forwards; }
.um-intro.is-leaving .um-intro-panel:nth-child(2) { animation-delay: 110ms; }
.um-intro.is-leaving .um-intro-panel:nth-child(3) { animation-delay: 220ms; }
.um-intro.is-leaving .um-intro-brand { animation: um-brand-out 420ms var(--um-ease) forwards; }

/* Tutor LMS + WooCommerce — keep on-brand */
.tutor-wrap, .tutor-container, .woocommerce { font-family: var(--um-font); color: var(--um-ink); }
.tutor-btn, .tutor-btn-primary, .woocommerce #respond input#submit, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button {
  background: var(--um-ink) !important; color: var(--um-paper) !important; border: 0 !important; border-radius: 0.6rem !important;
}
.tutor-course-card, .woocommerce ul.products li.product { background: var(--um-paper-deep); border-radius: 1rem; overflow: hidden; box-shadow: var(--um-shadow); }

@keyframes um-rise {
  from { opacity: 0; transform: translateY(12px); filter: blur(4px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@keyframes um-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes um-panel-up { to { transform: translateY(-102%); } }
@keyframes um-brand-out { to { opacity: 0; transform: translateY(-8px); filter: blur(4px); } }
@keyframes um-ken { from { transform: scale(1.1); } to { transform: scale(1); } }
@keyframes um-marquee { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.um-cover .um-cover-split { position: absolute; inset: 0; display: grid; z-index: 0; }
@media (min-width: 700px) { .um-cover .um-cover-split { grid-template-columns: 1fr 1fr; } }
.um-cover .um-cover-split img { position: relative; inset: auto; width: 100%; height: 100%; min-height: 38vh; object-fit: cover; opacity: 1; }
.um-section .um-method li,
.um-band-paper .um-method li { border-top-color: rgb(22 24 27 / 0.12); }
.um-section .um-method span,
.um-band-paper .um-method span { color: var(--um-muted); }

.um-shot { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.um-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.um-shot-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgb(22 24 27 / 0.85), rgb(22 24 27 / 0.2) 50%, rgb(22 24 27 / 0.1)); }
.um-shot-copy { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.1rem 1.15rem; color: var(--um-paper); }
.um-shot-copy h3 { margin: 0.15rem 0 0; color: var(--um-paper); }
.um-quote { max-width: 46rem; margin: 2rem 0 0; padding: 1.6rem; border-radius: 1rem; background: var(--um-paper-deep); box-shadow: var(--um-shadow); }
.um-quote p { font-family: var(--um-display); font-size: 1.15rem; line-height: 1.35; margin: 0; }
.um-quote footer { margin-top: 1.5rem; font-size: 0.9rem; }
.um-quote footer span { color: var(--um-muted); font-size: 0.78rem; }
