/* ===================================================
   SHUKLAMBARA DASA — Design System
   "Nothing is happening — yet everything is happening."
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Jost:wght@300;400&display=swap');

/* ── Tokens ── */
:root {
  --white: #FFFFFF;
  --off-white: #FAF9F6;
  --cream: #F5F0EB;
  --soft-beige: #EDE8E0;
  --muted-gold: rgba(195, 170, 120, 0.25);
  --gold-text: rgba(165, 140, 90, 0.6);
  --text-primary: #3A3632;
  --text-secondary: #7A756E;
  --text-light: #A8A29E;
  --border-light: rgba(195, 170, 120, 0.15);

  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Jost', 'Helvetica Neue', sans-serif;

  --content-width: 680px;
  --content-wide: 900px;
  --transition-slow: 1.2s cubic-bezier(0.25, 0, 0.25, 1);
  --transition-medium: 0.8s cubic-bezier(0.25, 0, 0.25, 1);
  --transition-fast: 0.4s cubic-bezier(0.25, 0, 0.25, 1);
}

/* ── Reset ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--text-primary);
  background-color: var(--off-white);
  line-height: 1.8;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: 0.03em;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--text-primary);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--text-primary);
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  color: var(--text-secondary);
}

p {
  font-size: 1rem;
  line-height: 2;
  color: var(--text-secondary);
  max-width: var(--content-width);
}

a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--text-primary);
}

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

/* ── Page Wrapper ── */
.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 2rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.nav-brand:hover {
  color: var(--text-primary);
}

.nav-toggle {
  background: none;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 1px;
  background-color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.nav-toggle:hover span {
  background-color: var(--text-primary);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* ── Nav Overlay ── */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--off-white);
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-medium);
}

.nav-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.nav-links {
  list-style: none;
  text-align: center;
}

.nav-links li {
  margin: 1.5rem 0;
}

.nav-links a {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
  display: inline-block;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background-color: var(--gold-text);
  transition: width var(--transition-fast);
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a:hover::after {
  width: 60%;
}

.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a.active::after {
  width: 40%;
}

/* ── Main Content ── */
main {
  flex: 1;
}

/* ── Section Defaults ── */
.section {
  padding: 8rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section--left {
  text-align: left;
  align-items: flex-start;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 6rem 2rem;
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.section-title {
  margin-bottom: 2rem;
}

.section-text {
  margin: 0 auto;
}

.section-divider {
  width: 40px;
  height: 1px;
  background-color: var(--border-light);
  margin: 4rem auto;
}

/* ── Hero Section ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  position: relative;
}

.hero-image {
  width: clamp(280px, 40vw, 440px);
  margin-bottom: 4rem;
  opacity: 0;
  animation: gentleFadeIn 2s var(--transition-slow) forwards;
  animation-delay: 0.5s;
}

.hero h1 {
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: gentleFadeIn 2s ease forwards;
  animation-delay: 1s;
}

.hero p {
  opacity: 0;
  animation: gentleFadeIn 2s ease forwards;
  animation-delay: 1.5s;
  margin: 0 auto;
}

.hero .scroll-hint {
  position: absolute;
  bottom: 3rem;
  opacity: 0;
  animation: gentleFadeIn 2s ease forwards;
  animation-delay: 2.5s;
}

.scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.scroll-hint span {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-light);
}

.scroll-hint-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text-light), transparent);
  animation: scrollPulse 2.5s ease infinite;
}

/* ── Content Image ── */
.content-image {
  width: 100%;
  max-width: var(--content-width);
  margin: 3rem auto;
  border-radius: 2px;
}

.content-image--small {
  max-width: 360px;
}

.content-image--wide {
  max-width: var(--content-wide);
}

/* ── Quote / Pull Quote ── */
.pull-quote {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-style: italic;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: var(--content-width);
  margin: 4rem auto;
  padding: 3rem 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  text-align: center;
}

/* ── Cards ── */
.card {
  background-color: var(--white);
  border: 1px solid var(--border-light);
  padding: 3rem;
  margin: 1.5rem 0;
  max-width: var(--content-width);
  width: 100%;
  text-align: left;
  transition: border-color var(--transition-fast);
}

.card:hover {
  border-color: var(--muted-gold);
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.card-text {
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--text-secondary);
}

/* ── Gallery ── */
.gallery {
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: 0 2rem;
}

.gallery-item {
  margin: 6rem 0;
  text-align: center;
}

.gallery-item img {
  max-width: 100%;
  margin: 0 auto 1.5rem;
}

.gallery-item--offset-right {
  padding-left: 10%;
}

.gallery-item--offset-left {
  padding-right: 10%;
}

.gallery-caption {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-style: italic;
  color: var(--text-light);
  letter-spacing: 0.04em;
}

/* ── Event List ── */
.event-item {
  max-width: var(--content-width);
  width: 100%;
  padding: 3rem 0;
  border-bottom: 1px solid var(--border-light);
  text-align: left;
  margin: 0 auto;
}

.event-item:first-child {
  border-top: 1px solid var(--border-light);
}

.event-date {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.8rem;
}

.event-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}

.event-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── Blog ── */
.blog-entry {
  max-width: var(--content-width);
  margin: 0 auto 6rem;
  padding: 0 2rem;
  text-align: left;
}

.blog-date {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.blog-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 300;
  color: var(--text-primary);
  margin-bottom: 2rem;
  line-height: 1.4;
}

.blog-body {
  font-size: 1rem;
  line-height: 2.1;
  color: var(--text-secondary);
}

.blog-body p {
  margin-bottom: 1.5rem;
}

.blog-separator {
  width: 30px;
  height: 1px;
  background-color: var(--border-light);
  margin: 4rem auto;
}

/* ── Contact ── */
.contact-info {
  max-width: var(--content-width);
  margin: 0 auto;
  text-align: center;
}

.contact-name {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.contact-detail {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0.5rem 0;
}

.contact-detail a {
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 2px;
  transition: all var(--transition-fast);
}

.contact-detail a:hover {
  color: var(--text-primary);
  border-bottom-color: var(--gold-text);
}

.contact-form {
  max-width: 480px;
  margin: 4rem auto 0;
  text-align: left;
}

.form-group {
  margin-bottom: 2rem;
}

.form-group label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.6rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 0;
  border: none;
  border-bottom: 1px solid var(--border-light);
  background: transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  border-bottom-color: var(--gold-text);
}

.form-group textarea {
  resize: none;
  min-height: 120px;
  line-height: 1.8;
}

.form-submit {
  background: none;
  border: 1px solid var(--border-light);
  padding: 0.8rem 2.5rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.form-submit:hover {
  border-color: var(--gold-text);
  color: var(--text-primary);
}

/* ── Social Icons ── */
.social-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-top: 3rem;
}

.social-links a {
  color: var(--text-light);
  transition: color var(--transition-fast);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.social-links a:hover {
  color: var(--text-primary);
}

/* ── Footer ── */
.footer {
  padding: 4rem 2rem;
  text-align: center;
  background-color: var(--off-white);
}

.footer-credit {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-credit a {
  color: var(--text-light);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-credit a:hover {
  color: var(--text-secondary);
}

.footer-contact {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.footer-contact a {
  color: var(--text-light);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-contact a:hover {
  color: var(--text-secondary);
}

.footer-contact .separator {
  margin: 0 0.8rem;
  color: var(--border-light);
}

.footer-social {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--text-light);
  transition: color var(--transition-fast);
}

.footer-social a:hover {
  color: var(--text-secondary);
}

.footer-social svg {
  width: 16px;
  height: 16px;
}

/* ── Code Entry Portal ── */
.portal {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--cream);
  position: relative;
}

.portal-inner {
  text-align: center;
  max-width: 320px;
  width: 100%;
  padding: 2rem;
}

.portal-input {
  width: 100%;
  padding: 1rem 0;
  border: none;
  border-bottom: 1px solid var(--border-light);
  background: transparent;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  text-align: center;
  outline: none;
  transition: all var(--transition-medium);
}

.portal-input::placeholder {
  color: var(--text-light);
  font-style: italic;
}

.portal-input.error {
  opacity: 0.4;
  transition: opacity 0.6s ease;
}

.portal-input.error-recover {
  opacity: 1;
  transition: opacity 1s ease;
}

/* ── Dissolve Transition ── */
.dissolve-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--white);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.5s ease;
}

.dissolve-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* ── Page Transition ── */
.page-enter {
  opacity: 0;
  animation: pageReveal 1.5s ease forwards;
  animation-delay: 0.2s;
}

/* ── Fade In on Scroll ── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Animations ── */
@keyframes gentleFadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pageReveal {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scrollPulse {
  0%, 100% {
    opacity: 0.3;
    transform: scaleY(0.7);
  }
  50% {
    opacity: 0.8;
    transform: scaleY(1);
  }
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav {
    padding: 1.5rem 2rem;
  }

  .section {
    padding: 5rem 1.5rem;
  }

  .hero {
    padding: 4rem 1.5rem;
  }

  .hero-image {
    width: clamp(220px, 60vw, 340px);
    margin-bottom: 3rem;
  }

  .pull-quote {
    padding: 2rem 0;
    margin: 3rem auto;
  }

  .card {
    padding: 2rem;
  }

  .gallery-item {
    margin: 4rem 0;
  }

  .gallery-item--offset-right,
  .gallery-item--offset-left {
    padding: 0;
  }

  .event-item {
    padding: 2rem 0;
  }

  .blog-entry {
    margin-bottom: 4rem;
  }

  .social-links {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .footer {
    padding: 3rem 1.5rem;
  }

  .footer-contact .separator {
    display: none;
  }

  .footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
  }
}

@media (max-width: 480px) {
  .nav-brand {
    font-size: 0.9rem;
  }

  .nav-links a {
    font-size: 1.3rem;
  }

  .hero-image {
    width: 80vw;
  }
}
