:root {
  color-scheme: light;
  --ink: #16332d;
  --pine: #102d27;
  --deep: #0b211d;
  --cream: #f5f1e9;
  --copper: #b47b58;
  --sage: #cdd8cb;
  --sand: #e4d8c6;
  --wine: #733f4d;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
}

body,
button,
a {
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 50;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: var(--pine);
  color: var(--cream);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 83% 7%, rgba(205, 216, 203, 0.64), transparent 25rem),
    linear-gradient(120deg, #f5f1e9 0%, #f5f1e9 57%, #edebe2 100%);
}

.site-header {
  border-bottom: 1px solid rgba(22, 51, 45, 0.08);
}

.ambient {
  pointer-events: none;
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(22, 51, 45, 0.08);
  border-radius: 999px;
}

.ambient-top {
  top: 8rem;
  right: -10rem;
  width: 32rem;
  height: 32rem;
}

.ambient-top::after {
  content: '';
  position: absolute;
  inset: 2.5rem;
  border: 1px solid rgba(180, 123, 88, 0.16);
  border-radius: inherit;
}

.ambient-bottom {
  bottom: 24rem;
  left: -22rem;
  width: 38rem;
  height: 38rem;
  border-color: rgba(180, 123, 88, 0.1);
}

.ambient-bottom::before,
.ambient-bottom::after {
  content: '';
  position: absolute;
  border-radius: 999px;
}

.ambient-bottom::before {
  inset: 5rem;
  border: 1px solid rgba(22, 51, 45, 0.07);
}

.ambient-bottom::after {
  inset: 11rem;
  background: rgba(205, 216, 203, 0.2);
}

.hero-section {
  position: relative;
}

.hero-grid {
  position: relative;
}

.hero-orbit {
  pointer-events: none;
  position: absolute;
  border: 1px solid rgba(180, 123, 88, 0.28);
  border-radius: 999px;
}

.hero-orbit-one {
  top: -2rem;
  right: -3rem;
  width: 17rem;
  height: 17rem;
}

.hero-orbit-two {
  right: -8rem;
  bottom: -2rem;
  width: 25rem;
  height: 25rem;
  border-color: rgba(22, 51, 45, 0.12);
}

.profile-card {
  isolation: isolate;
}

.profile-wash {
  z-index: -1;
  transform: rotate(4deg);
}

.profile-frame {
  background: var(--pine);
}

.profile-image {
  transition: transform 800ms cubic-bezier(0.22, 1, 0.36, 1), filter 500ms ease;
  filter: saturate(0.88) contrast(0.97);
}

.profile-card:hover .profile-image {
  transform: scale(1.035);
  filter: saturate(1) contrast(1);
}

.profile-image-overlay {
  background: linear-gradient(180deg, transparent 38%, rgba(11, 33, 29, 0.92) 100%);
}

.profile-caption {
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.42);
}

.about-image,
.training-visual,
.activity-visual {
  isolation: isolate;
}

.about-image img,
.training-visual img,
.activity-image {
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1), filter 500ms ease;
}

.about-image:hover img,
.training-visual:hover img,
.activity-visual:hover .activity-image {
  transform: scale(1.035);
  filter: saturate(1.08);
}

.training-image-wrap::after {
  content: '';
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(16, 45, 39, 0.16), transparent 45%, rgba(16, 45, 39, 0.03));
}

.training-visual figcaption {
  z-index: 1;
}

.photo-stamp {
  font-family: 'Manrope', Arial, sans-serif;
}

.dark-section {
  isolation: isolate;
}

.dark-ring {
  pointer-events: none;
  position: absolute;
  border: 1px solid rgba(228, 216, 198, 0.12);
  border-radius: 999px;
}

.dark-ring-top {
  top: -15rem;
  right: -10rem;
  width: 36rem;
  height: 36rem;
}

.formation-card {
  min-height: 33rem;
  transition: transform 300ms ease, box-shadow 300ms ease;
}

.formation-card:hover {
  transform: translateY(-0.35rem);
  box-shadow: 0 1.5rem 3rem rgba(22, 51, 45, 0.12);
}

.card-watermark {
  pointer-events: none;
  position: absolute;
  top: 2.5rem;
  right: 2.25rem;
  color: rgba(22, 51, 45, 0.08);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 10rem;
  font-weight: 600;
  line-height: 0.7;
}

.card-watermark-light {
  color: rgba(228, 216, 198, 0.08);
}

.course-number {
  position: relative;
}

.source-link {
  border-bottom: 1px solid transparent;
  padding-bottom: 0.15rem;
}

.source-link:hover {
  border-color: currentColor;
}

.activity-stamp {
  position: relative;
}

.activity-stamp::after {
  content: '';
  position: absolute;
  inset: 0.55rem;
  border: 1px solid rgba(180, 123, 88, 0.22);
  border-radius: inherit;
}

.activity-stamp {
  z-index: 1;
}

.activity-row {
  transition: padding-left 250ms ease, background-color 250ms ease;
}

.activity-row:hover {
  padding-left: 0.75rem;
  background: rgba(205, 216, 203, 0.22);
}

.contact-section {
  position: relative;
  isolation: isolate;
}

.contact-pattern {
  pointer-events: none;
  position: absolute;
  top: -10rem;
  right: -8rem;
  width: 32rem;
  height: 32rem;
  border: 1px solid rgba(228, 216, 198, 0.15);
  border-radius: 999px;
}

.contact-pattern::after {
  content: '';
  position: absolute;
  inset: 3rem;
  border: 1px solid rgba(180, 123, 88, 0.35);
  border-radius: inherit;
}

.contact-link:hover .contact-icon {
  transform: rotate(-6deg);
}

.contact-icon {
  transition: background-color 250ms ease, color 250ms ease, transform 250ms ease;
}

.reveal {
  opacity: 1;
  transform: translateY(0);
}

html.js .reveal {
  opacity: 0;
  transform: translateY(1.1rem);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

html.js .reveal-delay-1 {
  transition-delay: 80ms;
}

html.js .reveal-delay-2 {
  transition-delay: 160ms;
}

html.js .reveal-delay-3 {
  transition-delay: 240ms;
}

html.js .reveal-delay-4 {
  transition-delay: 320ms;
}

@media (max-width: 1023px) {
  .hero-orbit-one {
    right: -1rem;
  }

  .hero-orbit-two {
    right: -4rem;
  }
}

@media (max-width: 639px) {
  .ambient-top {
    top: 11rem;
    right: -16rem;
    width: 25rem;
    height: 25rem;
  }

  .ambient-bottom {
    bottom: 35rem;
    left: -24rem;
  }

  .hero-orbit-one {
    top: -1rem;
    right: -4rem;
    width: 13rem;
    height: 13rem;
  }

  .hero-orbit-two {
    right: -7rem;
    bottom: -1rem;
    width: 19rem;
    height: 19rem;
  }

  .hero-facts {
    gap: 0.5rem;
  }

  .formation-card {
    min-height: auto;
  }

  .card-watermark {
    top: 2rem;
    right: 1.5rem;
    font-size: 8rem;
  }

  .contact-section {
    border-radius: 1.5rem;
  }
}

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

  html.js .reveal,
  html.js .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .profile-image,
  .brand-mark,
  .header-cta,
  .primary-button,
  .formation-card,
  .activity-row,
  .contact-link,
  .contact-icon {
    transition: none;
  }
}
