:root {
  --black: #080705;
  --deep-black: #0d0b08;
  --panel: #17140f;
  --panel-light: #201b14;
  --ivory: #f0e7d8;
  --muted: #bdb19f;
  --gold: #b78b44;
  --gold-light: #d2aa68;
  --gold-soft: rgba(183, 139, 68, 0.34);
  --red: #8e2b1e;
  --line: rgba(240, 231, 216, 0.12);
  --page-width: 1380px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ivory);
  background:
    radial-gradient(
      circle at 75% 8%,
      rgba(142, 43, 30, 0.12),
      transparent 28%
    ),
    radial-gradient(
      circle at top,
      rgba(183, 139, 68, 0.07),
      transparent 32%
    ),
    linear-gradient(
      180deg,
      #080705 0%,
      #12100d 52%,
      #080705 100%
    );
  font-family: "Manrope", Arial, sans-serif;
}

body.modal-open {
  overflow: hidden;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

/* =========================================================
   HEADER
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  min-height: 72px;
  padding: 0 clamp(18px, 4vw, 60px);
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--gold-soft);
  background: rgba(8, 7, 5, 0.9);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: var(--gold);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-symbol {
  font-size: 17px;
}

.main-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

.main-nav a {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--gold);
}

.menu-toggle {
  display: none;
  padding: 9px 13px;
  color: var(--ivory);
  border: 1px solid var(--gold-soft);
  background: transparent;
  cursor: pointer;
}

/* =========================================================
   SHARED
   ========================================================= */

.page-section,
.future-section,
.site-footer {
  width: min(
    var(--page-width),
    calc(100% - clamp(24px, 5vw, 76px))
  );
  margin: 0 auto;
}

.page-section {
  padding: clamp(82px, 10vw, 140px) 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.section-heading {
  max-width: 780px;
  margin: 0 auto clamp(46px, 7vw, 82px);
  text-align: center;
}

.section-heading h2,
.intro-heading h2,
.approach-heading h2,
.future-panel h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 600;
  line-height: 0.96;
  text-transform: uppercase;
}

.section-heading > p:last-child,
.intro-copy p,
.approach-card p,
.future-panel p {
  color: var(--muted);
  line-height: 1.8;
}

.button {
  display: inline-flex;
  min-height: 50px;
  padding: 0 22px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold-soft);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    color 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

.button-primary {
  color: #080705;
  border-color: var(--gold);
  background: var(--gold);
}

.button-secondary {
  color: var(--ivory);
  background: transparent;
}

.button:hover {
  color: #080705;
  border-color: var(--ivory);
  background: var(--ivory);
  transform: translateY(-2px);
}

/* =========================================================
   HERO
   ========================================================= */

.workshops-hero {
  position: relative;
  min-height: 86vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(
      180deg,
      rgba(8, 7, 5, 0.2),
      rgba(8, 7, 5, 0.96)
    ),
    radial-gradient(
      circle at 25% 30%,
      rgba(183, 139, 68, 0.16),
      transparent 26%
    ),
    radial-gradient(
      circle at 76% 42%,
      rgba(142, 43, 30, 0.2),
      transparent 29%
    ),
    linear-gradient(
      135deg,
      #1a160f,
      #080705 66%
    );
}

.workshops-hero::after {
  position: absolute;
  inset: 26px;
  content: "";
  pointer-events: none;
  border: 1px solid rgba(183, 139, 68, 0.25);
}

.hero-decoration {
  position: absolute;
  width: min(680px, 72vw);
  aspect-ratio: 1;
  border: 1px solid rgba(183, 139, 68, 0.13);
  border-radius: 50%;
}

.hero-decoration::before,
.hero-decoration::after {
  position: absolute;
  inset: 11%;
  content: "";
  border: 1px solid rgba(183, 139, 68, 0.09);
  border-radius: 50%;
}

.hero-decoration::after {
  inset: 24%;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(960px, calc(100% - 40px));
  padding: 140px 0 105px;
  text-align: center;
}

.hero-content h1 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(58px, 10vw, 124px);
  font-weight: 600;
  line-height: 0.79;
  text-transform: uppercase;
}

.hero-content h1 span {
  display: block;
  color: var(--gold);
  font-size: 0.66em;
  letter-spacing: 0.09em;
}

.hero-intro {
  max-width: 700px;
  margin: 30px auto 0;
  color: var(--muted);
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.85;
}

.hero-link {
  display: inline-flex;
  gap: 13px;
  margin-top: 36px;
  padding-bottom: 7px;
  align-items: center;
  color: var(--gold);
  border-bottom: 1px solid rgba(183, 139, 68, 0.45);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
}

/* =========================================================
   INTRODUCTION
   ========================================================= */

.workshops-introduction {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(42px, 8vw, 115px);
  align-items: start;
  border-bottom: 1px solid var(--line);
}

.intro-heading h2 {
  max-width: 620px;
}

.intro-copy {
  padding-top: 24px;
}

.intro-copy p {
  margin: 0 0 20px;
  font-size: 16px;
}

/* =========================================================
   WORKSHOP GRID
   ========================================================= */

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

.loading-state,
.error-state,
.empty-state {
  grid-column: 1 / -1;
  padding: 52px 28px;
  color: var(--muted);
  border: 1px solid var(--line);
  text-align: center;
}

.workshop-card {
  position: relative;
  min-height: 650px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--gold-soft);
  background: var(--panel);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.workshop-card:hover {
  border-color: var(--gold);
  box-shadow: 0 36px 88px rgba(0, 0, 0, 0.44);
  transform: translateY(-7px);
}

.workshop-card-image {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.workshop-card:hover .workshop-card-image {
  transform: scale(1.045);
}

.workshop-card-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(
      180deg,
      rgba(8, 7, 5, 0.04) 0%,
      rgba(8, 7, 5, 0.17) 35%,
      rgba(8, 7, 5, 0.8) 70%,
      rgba(8, 7, 5, 0.99) 100%
    ),
    linear-gradient(
      90deg,
      rgba(8, 7, 5, 0.36),
      transparent 65%
    );
}

.workshop-card::after {
  position: absolute;
  inset: 15px;
  z-index: -1;
  content: "";
  pointer-events: none;
  border: 1px solid rgba(240, 231, 216, 0.15);
}

.workshop-card-content {
  width: 100%;
  padding: 46px;
}

.workshop-card-status {
  display: inline-flex;
  margin: 0 0 18px;
  padding: 8px 12px;
  color: var(--gold-light);
  border: 1px solid rgba(183, 139, 68, 0.46);
  background: rgba(8, 7, 5, 0.48);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.workshop-card h3 {
  max-width: 650px;
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(42px, 5vw, 66px);
  font-weight: 600;
  line-height: 0.91;
}

.workshop-card-summary {
  max-width: 620px;
  margin: 20px 0 27px;
  color: rgba(240, 231, 216, 0.76);
  line-height: 1.75;
}

.workshop-card-meta {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
}

.workshop-meta-item {
  display: inline-flex;
  min-height: 38px;
  padding: 8px 13px;
  align-items: center;
  border: 1px solid rgba(240, 231, 216, 0.15);
  background: rgba(8, 7, 5, 0.52);
  font-size: 12px;
}

.workshop-card-action {
  display: inline-flex;
  gap: 10px;
  margin-top: 28px;
  align-items: center;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* One workshop fills the page */
.workshop-grid:has(.workshop-card:only-child) {
  grid-template-columns: 1fr;
}

/* =========================================================
   APPROACH
   ========================================================= */

.approach-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(45px, 8vw, 105px);
  align-items: start;
}

.approach-heading {
  position: sticky;
  top: 112px;
}

.approach-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.approach-card {
  padding: 32px;
  border: 1px solid var(--line);
  background: rgba(23, 20, 15, 0.72);
}

.approach-number {
  color: var(--red);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 38px;
  font-weight: 700;
}

.approach-card h3 {
  margin: 30px 0 10px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 36px;
  line-height: 1;
}

/* =========================================================
   FUTURE WORKSHOPS
   ========================================================= */

.future-section {
  padding: 24px 0 clamp(90px, 11vw, 150px);
}

.future-panel {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 45px;
  padding: clamp(40px, 7vw, 90px);
  align-items: center;
  border: 1px solid var(--gold-soft);
  background:
    radial-gradient(
      circle at 90% 20%,
      rgba(142, 43, 30, 0.22),
      transparent 33%
    ),
    linear-gradient(
      145deg,
      #19150f,
      #090806
    );
}

.future-panel p:not(.eyebrow) {
  max-width: 690px;
}

/* =========================================================
   MODAL
   ========================================================= */

.workshop-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 24px;
}

.workshop-modal.open {
  display: grid;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 3, 2, 0.86);
  backdrop-filter: blur(8px);
}

.modal-panel {
  position: relative;
  z-index: 2;
  width: min(1120px, 100%);
  max-height: calc(100vh - 48px);
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.15fr);
  overflow-y: auto;
  border: 1px solid var(--gold-soft);
  background: #100e0b;
  box-shadow: 0 44px 120px rgba(0, 0, 0, 0.68);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  width: 44px;
  height: 44px;
  color: var(--ivory);
  border: 1px solid rgba(240, 231, 216, 0.24);
  border-radius: 50%;
  background: rgba(8, 7, 5, 0.72);
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
}

.modal-image-wrap {
  position: sticky;
  top: 0;
  min-height: 100%;
  overflow: hidden;
}

.modal-image-wrap img {
  width: 100%;
  height: 100%;
  min-height: 780px;
  display: block;
  object-fit: cover;
  object-position: center;
}

.modal-image-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(8, 7, 5, 0.08),
      rgba(8, 7, 5, 0.65)
    );
}

.modal-image-label {
  position: absolute;
  bottom: 30px;
  left: 30px;
  padding: 9px 13px;
  color: var(--gold);
  border: 1px solid var(--gold-soft);
  background: rgba(8, 7, 5, 0.7);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.modal-content {
  padding: clamp(40px, 5vw, 70px);
}

.modal-status {
  display: inline-flex;
  margin: 0 0 17px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.modal-content h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(45px, 5vw, 68px);
  font-weight: 600;
  line-height: 0.91;
}

.modal-summary {
  margin: 22px 0 30px;
  color: var(--muted);
  line-height: 1.8;
}

.modal-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 0 35px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.modal-fact {
  min-height: 102px;
  display: flex;
  padding: 19px;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.modal-fact span {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.modal-fact strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 25px;
  font-weight: 600;
}

.modal-section {
  margin-top: 35px;
}

.modal-section-label {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.modal-section p,
.programme-list,
.inclusion-list {
  color: var(--muted);
  line-height: 1.75;
}

.modal-section p {
  margin: 0 0 15px;
}

.programme-list,
.inclusion-list {
  margin: 0;
  padding-left: 22px;
}

.programme-list li,
.inclusion-list li {
  margin-bottom: 12px;
  padding-left: 5px;
}

.programme-list li::marker,
.inclusion-list li::marker {
  color: var(--gold);
}

.modal-highlight {
  margin-top: 35px;
  padding: 24px;
  border: 1px solid var(--gold-soft);
  background: rgba(183, 139, 68, 0.07);
}

.modal-highlight p {
  margin: 0;
  color: var(--ivory);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 23px;
  line-height: 1.45;
}

.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.registration-note {
  margin: 20px 0 0;
  color: rgba(189, 177, 159, 0.65);
  font-size: 11px;
  line-height: 1.6;
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 38px;
  padding: 50px 0 30px;
  border-top: 1px solid var(--gold-soft);
  color: var(--muted);
}

.footer-logo {
  color: var(--gold);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 29px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-footer p {
  line-height: 1.7;
}

.footer-links,
.footer-contact {
  display: flex;
  gap: 12px;
  flex-direction: column;
}

.footer-links strong,
.footer-contact strong {
  color: var(--ivory);
}

.footer-links a,
.footer-contact a {
  text-decoration: none;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--gold);
}

.copyright {
  grid-column: 1 / -1;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

/* =========================================================
   REVEAL ANIMATION
   ========================================================= */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.75s ease,
    transform 0.75s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 980px) {
  .menu-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    top: 72px;
    right: 18px;
    display: none;
    width: min(290px, calc(100% - 36px));
    padding: 19px;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--gold-soft);
    background: rgba(8, 7, 5, 0.98);
  }

  .main-nav.open {
    display: flex;
  }

  .workshops-introduction,
  .approach-section,
  .future-panel {
    grid-template-columns: 1fr;
  }

  .approach-heading {
    position: static;
  }

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

  .workshop-card {
    min-height: 580px;
  }

  .modal-panel {
    grid-template-columns: 1fr;
  }

  .modal-image-wrap {
    position: relative;
    min-height: 340px;
  }

  .modal-image-wrap img {
    height: 340px;
    min-height: 340px;
  }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 680px) {
  .site-header {
    min-height: 62px;
  }

  .brand {
    font-size: 17px;
  }

  .brand-symbol {
    display: none;
  }

  .main-nav {
    top: 62px;
  }

  .workshops-hero {
    min-height: auto;
  }

  .workshops-hero::after {
    inset: 12px;
  }

  .hero-content {
    width: calc(100% - 34px);
    padding: 125px 0 90px;
  }

  .hero-content h1 {
    font-size: clamp(50px, 17vw, 75px);
    line-height: 0.84;
  }

  .hero-intro {
    font-size: 14px;
    line-height: 1.7;
  }

  .section-heading h2,
  .intro-heading h2,
  .approach-heading h2,
  .future-panel h2 {
    font-size: clamp(39px, 12vw, 56px);
  }

  .workshop-card {
    min-height: 530px;
  }

  .workshop-card-content {
    padding: 33px 27px;
  }

  .workshop-card h3 {
    font-size: clamp(40px, 13vw, 53px);
  }

  .workshop-card-summary {
    font-size: 14px;
    line-height: 1.65;
  }

  .workshop-card-meta {
    gap: 8px;
  }

  .workshop-meta-item {
    font-size: 11px;
  }

  .future-panel {
    padding: 38px 24px;
  }

  .workshop-modal {
    padding: 0;
  }

  .modal-panel {
    width: 100%;
    max-height: 100vh;
    min-height: 100vh;
    border: 0;
  }

  .modal-image-wrap,
  .modal-image-wrap img {
    height: 280px;
    min-height: 280px;
  }

  .modal-content {
    padding: 34px 23px 50px;
  }

  .modal-content h2 {
    font-size: clamp(42px, 13vw, 57px);
  }

  .modal-facts {
    grid-template-columns: 1fr;
  }

  .modal-fact {
    min-height: 82px;
  }

  .modal-actions {
    flex-direction: column;
  }

  .modal-actions .button {
    width: 100%;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .copyright {
    grid-column: auto;
  }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .workshop-card,
  .workshop-card-image,
  .button {
    transition: none;
  }
}
