:root {
  --bg: #070504;
  --text: #f7f2e8;
  --muted: #d8cfc0;
  --line: rgba(247, 242, 232, 0.7);
  --glass: rgba(6, 4, 3, 0.38);
  --warm: #cf8f58;
  --warm-deep: #9f5d27;
  --panel: #11100d;
  --program-card: rgba(240, 222, 197, 0.06);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
}

body {
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 75% 20%, rgba(225, 129, 47, 0.14), transparent 40%),
    radial-gradient(circle at 10% 90%, rgba(157, 112, 57, 0.16), transparent 42%),
    var(--bg);
  overflow: hidden;
}

.noise-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.15;
  z-index: 2;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1px),
    radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-position: 0 0, 16px 16px;
  background-size: 32px 32px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 12;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(8px);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  width: 2.3rem;
  height: 2.3rem;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0.22rem;
  font-weight: 700;
}

.brand-text {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.2rem, 2.4vw, 1.8rem);
  letter-spacing: 0.03em;
}

.header-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.lang-switch {
  display: inline-flex;
  gap: 0.3rem;
}

.lang-btn {
  min-width: 2.6rem;
  text-align: center;
}

.lang-btn.is-active {
  background: rgba(207, 143, 88, 0.35);
  border-color: rgba(255, 214, 164, 0.7);
}

.outline-btn {
  text-decoration: none;
  font: inherit;
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.2);
  padding: 0.55rem 0.9rem;
  transition: transform 0.25s ease, background-color 0.25s ease;
  cursor: pointer;
}

.outline-btn:hover {
  transform: translateY(-1px);
  background: rgba(215, 156, 96, 0.25);
}

.hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  isolation: isolate;
}

.hero-slides,
.slide {
  position: absolute;
  inset: 0;
}

.slide {
  opacity: 0;
  transition: opacity 900ms ease;
}

.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 5, 4, 0.82) 5%, rgba(7, 5, 4, 0.2) 52%, rgba(7, 5, 4, 0.3));
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.05);
}

.slide.is-active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.line-art {
  width: min(72vw, 760px);
  max-height: 65vh;
}

.line-art path,
.line-art circle {
  stroke: rgba(255, 255, 255, 0.58);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 700;
  stroke-dashoffset: 700;
  animation: draw 4.5s ease forwards;
}

.line-art circle {
  fill: rgba(255, 255, 255, 0.5);
  stroke-dasharray: 0;
  stroke-dashoffset: 0;
  animation: pulse 1.8s ease-in-out infinite alternate;
}

.hero-copy {
  position: absolute;
  z-index: 5;
  left: 6%;
  bottom: 14%;
  max-width: 36rem;
  padding: 1.2rem;
  background: var(--glass);
  border-left: 2px solid rgba(240, 186, 123, 0.7);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms ease 200ms, transform 700ms ease 200ms;
  pointer-events: none;
}

.slide.is-active .hero-copy {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  animation: none;
}

.eyebrow {
  margin: 0 0 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.7rem;
  color: var(--muted);
}

.hero-copy h1 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.5rem, 7vw, 5.1rem);
  line-height: 0.95;
  font-weight: 600;
  font-size: 40px;
}

.hero-copy p {
  margin: 0.8rem 0 0;
  line-height: 1.6;
  color: #f2e5d2;
}

.hero-excerpt {
  display: -webkit-box;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.85rem;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(240, 186, 123, 0.6);
  color: rgba(240, 186, 123, 0.9);
  font: inherit;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  padding: 0 0 0.1rem;
  transition: color 0.2s, border-color 0.2s;
}

.read-more-btn:hover {
  color: #ffd8a2;
  border-color: #ffd8a2;
}

.read-more-btn.is-hidden {
  display: none;
}

/* ── Read-more modal ── */
.read-more-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(4, 3, 2, 0.7);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.read-more-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-inner {
  position: relative;
  max-width: 56rem;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  background: linear-gradient(145deg, #16120e, #1f1710);
  border: 1px solid rgba(240, 186, 123, 0.25);
  border-left: 3px solid rgba(240, 186, 123, 0.7);
  padding: 2.4rem 2rem 2rem;
  transform: translateY(28px) scale(0.97);
  transition: transform 0.38s ease;
}

.read-more-modal.is-open .modal-inner {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--text);
  width: 2rem;
  height: 2rem;
  font-size: 1.3rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s;
}

.modal-close:hover {
  background: rgba(240, 186, 123, 0.2);
}

.modal-eyebrow {
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.68rem;
  color: var(--muted);
}

.modal-title {
  margin: 0 0 1.2rem;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 600;
  line-height: 1.1;
}

.modal-body {
  margin: 0;
  line-height: 1.9;
  color: #e8d9c4;
  font-size: 1rem;
}

.arrow,
.scroll-hint {
  border: 0;
  background: rgba(0, 0, 0, 0.22);
  color: var(--text);
  cursor: pointer;
}

.arrow {
  position: absolute;
  z-index: 6;
  top: 50%;
  translate: 0 -50%;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  font-size: 2.5rem;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background-color 0.2s ease, scale 0.2s ease;
}

.arrow:hover {
  background: rgba(199, 132, 60, 0.35);
  scale: 1.03;
}

.arrow-left {
  left: 1.2rem;
}

.arrow-right {
  right: 1.2rem;
}

.scroll-hint {
  display: none;
}

.slide-counter {
  position: absolute;
  z-index: 6;
  right: 1.4rem;
  bottom: 3.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: rgba(247, 242, 232, 0.75);
}

.counter-sep {
  display: block;
  width: 24px;
  height: 1px;
  background: currentColor;
}

.dot-nav {
  position: absolute;
  z-index: 6;
  bottom: 1.5rem;
  left: 50%;
  translate: -50% 0;
  display: flex;
  gap: 0.55rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 1px solid rgba(247, 242, 232, 0.65);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, width 0.3s ease;
}

.dot.is-active {
  background: var(--text);
  width: 22px;
}

.contact-drawer {
  position: fixed;
  inset: 0 auto 0 0;
  width: min(430px, 92vw);
  background: var(--panel);
  color: var(--text);
  z-index: 20;
  transform: translateX(-100%);
  transition: transform 0.35s ease;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  flex-direction: column;
}

.contact-drawer.is-open {
  transform: translateX(0);
}

.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.drawer-head h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
}

.drawer-head button {
  font: inherit;
  color: var(--text);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  width: 2rem;
  height: 2rem;
  cursor: pointer;
}

.drawer-body {
  padding: 1.2rem;
  overflow-y: auto;
  display: grid;
  gap: 1.4rem;
}

.drawer-body h3 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.45rem;
}

.drawer-body p {
  line-height: 1.7;
  color: #e5d8c5;
}

.drawer-body a {
  color: #ffcf93;
}

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 18;
  background: rgba(0, 0, 0, 0.5);
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes pulse {
  from {
    opacity: 0.4;
  }

  to {
    opacity: 1;
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(8px);
  }
}

@media (max-width: 980px) {
  .site-header {
    padding: max(0.75rem, env(safe-area-inset-top)) 0.9rem 0.75rem;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .header-actions {
    gap: 0.45rem;
    max-width: min(72vw, 420px);
  }

  .outline-btn {
    padding: 0.45rem 0.6rem;
    font-size: 0.85rem;
  }

  .hero-copy {
    left: 1rem;
    right: 1rem;
    bottom: 5.2rem;
    max-width: none;
    padding: 1rem;
  }

  .line-art {
    width: min(87vw, 640px);
  }

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

@media (max-width: 820px) {
  .site-header {
    flex-direction: column;
    align-items: stretch;
  }

  .brand {
    justify-content: center;
  }

  .header-actions {
    max-width: 100%;
    justify-content: center;
  }

  .outline-btn {
    min-height: 2.1rem;
  }

  .hero-copy {
    bottom: 4.8rem;
    border-left-width: 1px;
  }

  .hero-copy h1 {
    font-size: clamp(1.9rem, 7.2vw, 2.8rem);
    line-height: 1.02;
  }

  .hero-copy p {
    font-size: 0.92rem;
    line-height: 1.55;
  }

  .slide-counter {
    right: 1rem;
    bottom: 4rem;
  }

  .dot-nav {
    bottom: max(1rem, env(safe-area-inset-bottom));
  }

  .arrow {
    top: auto;
    bottom: max(1.1rem, env(safe-area-inset-bottom));
    translate: 0 0;
    width: 2.6rem;
    height: 2.6rem;
    font-size: 2rem;
    background: rgba(0, 0, 0, 0.34);
  }

  .arrow-left {
    left: 1rem;
  }

  .arrow-right {
    right: 1rem;
  }

  .modal-inner {
    padding: 2.1rem 1rem 1.15rem;
    max-height: 84vh;
  }

  .modal-body {
    font-size: 0.95rem;
    line-height: 1.7;
  }
}

@media (max-width: 600px) {
  .site-header {
    padding: max(0.65rem, env(safe-area-inset-top)) 0.7rem 0.55rem;
  }

  .header-actions {
    gap: 0.35rem;
  }

  .outline-btn {
    padding: 0.4rem 0.55rem;
    font-size: 0.76rem;
  }

  .arrow {
    width: 2.35rem;
    height: 2.35rem;
    font-size: 1.7rem;
  }

  .hero-copy {
    left: 0.7rem;
    right: 0.7rem;
    bottom: 4.25rem;
    padding: 0.85rem 0.8rem;
  }

  .eyebrow {
    letter-spacing: 0.16em;
    font-size: 0.62rem;
  }

  .hero-copy h1 {
    font-size: clamp(1.45rem, 8.2vw, 2.15rem);
  }

  .hero-copy p {
    font-size: 0.86rem;
  }

  .slide-counter {
    right: 0.75rem;
    bottom: 3.45rem;
    font-size: 0.66rem;
  }

  .dot-nav {
    gap: 0.42rem;
  }

  .dot {
    width: 7px;
    height: 7px;
  }

  .dot.is-active {
    width: 16px;
  }

  .read-more-modal {
    padding: 0.75rem;
  }

  .modal-close {
    top: 0.7rem;
    right: 0.7rem;
  }

  .modal-title {
    margin-bottom: 0.8rem;
    font-size: clamp(1.3rem, 8vw, 1.9rem);
  }

  .contact-drawer {
    width: 100vw;
    max-width: 100vw;
  }

  .drawer-head h2 {
    font-size: 1.6rem;
  }
}

.brand-logo {
    height: 2.3rem;
}