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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Gentium Plus', Georgia, serif;
  background: linear-gradient(180deg, #fefdfb 0%, #faf8f5 50%, #fefdfb 100%);
  background-attachment: fixed;
  color: #2c2420;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Accent color */
.accent {
  color: #b8860b;
  font-weight: 500;
}

/* Links */
a {
  color: #b8860b;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

a:not(.cta-button)::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: #b8860b;
  transition: width 0.3s ease;
}

a:not(.cta-button):hover::after {
  width: 100%;
}

a:hover {
  color: #9a7209;
}

/* Container */
.container {
  max-width: 1440px;
  margin: 0 auto;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(80px, 12vw, 220px) clamp(24px, 5vw, 197px);
}

.logo {
  font-family: 'Gentium Plus', Georgia, serif;
  font-size: clamp(24px, 4vw, 36px);
  color: #b8860b;
  margin-bottom: clamp(60px, 12vh, 120px);
  letter-spacing: 0.02em;
}

.logo-image {
  width: clamp(140px, 15vw, 192px);
  height: auto;
  margin-bottom: clamp(60px, 12vh, 120px);
}

/* Interactive Logo */
.interactive-logo {
  padding: clamp(40px, 5vw, 80px);
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-left: calc(-1 * clamp(40px, 5vw, 80px));
  margin-bottom: clamp(20px, 8vh, 60px);
}

.interactive-logo svg {
  overflow: visible;
}

.interactive-logo .logo-svg {
  width: clamp(140px, 15vw, 192px);
  height: auto;
}

.interactive-logo .text-svg {
  width: clamp(140px, 15vw, 192px);
  height: auto;
  margin-top: 14px;
}

.interactive-logo .logo-piece,
.interactive-logo .text-piece {
  fill: #b8860b;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-origin: center;
}

/* Small logo variant for apply/thank-you pages */
.interactive-logo.logo-small {
  padding: clamp(40px, 5vw, 80px);
  margin-left: calc(-1 * clamp(40px, 5vw, 80px));
  margin-bottom: clamp(20px, 4vh, 40px);
}

.interactive-logo.logo-small .logo-svg {
  width: clamp(100px, 10vw, 120px);
}

.interactive-logo.logo-small .text-svg {
  width: clamp(100px, 10vw, 120px);
  margin-top: 10px;
}

/* Centered logo variant for thank-you page */
.interactive-logo.logo-centered {
  align-items: center;
  margin-left: 0;
}

.headline {
  font-family: 'Gentium Plus', Georgia, serif;
  font-size: clamp(44px, 7.2vw, 76px);
  font-weight: 400;
  color: #2c2420;
  line-height: 1.15;
  margin-bottom: 28px;
  max-width: 1000px;
}

.subheadline {
  font-family: 'Work Sans', sans-serif;
  font-size: clamp(20px, 3vw, 34px);
  font-weight: 400;
  color: #6b5d54;
  max-width: 875px;
}

/* Dividers */
.divider {
  height: 1px;
  max-width: 400px;
  margin: 0 clamp(24px, 5vw, 197px);
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(184, 134, 11, 0.3) 20%,
    rgba(184, 134, 11, 0.5) 50%,
    rgba(184, 134, 11, 0.3) 80%,
    transparent 100%
  );
}

/* Sections - Full Screen */
.section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(80px, 15vh, 160px) clamp(24px, 5vw, 197px);
}

.section-title {
  font-family: 'Work Sans', sans-serif;
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 500;
  color: #b8860b;
  margin-bottom: clamp(32px, 6vh, 64px);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section-content {
  font-size: clamp(20px, 2.5vw, 32px);
  line-height: 1.5;
  max-width: 932px;
}

.section-content p {
  margin-bottom: 1.5em;
}

.section-content p:last-child {
  margin-bottom: 0;
}

/* Opening and Vision sections */
.opening,
.vision {
  font-size: clamp(20px, 2.5vw, 32px);
  line-height: 1.5;
  max-width: 875px;
}

.opening p:first-child,
.vision p:first-child {
  margin-bottom: 1.5em;
}

/* Methodology section */
.methodology {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 4vh, 40px);
}

.method-item {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 24px);
  padding: clamp(16px, 2vh, 24px);
  position: relative;
  transition: all 0.3s ease;
}

/* Corner brackets for methodology */
.method-item::before,
.method-item::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: #b8860b;
  border-style: solid;
  opacity: 0;
  transition: all 0.35s ease;
}

.method-item::before {
  top: 0;
  left: 0;
  border-width: 1.5px 0 0 1.5px;
}

.method-item::after {
  bottom: 0;
  right: 0;
  border-width: 0 1.5px 1.5px 0;
}

.method-item:hover::before,
.method-item:hover::after {
  opacity: 0.7;
  width: 28px;
  height: 28px;
}

.method-icon {
  color: #b8860b;
  width: clamp(48px, 6vw, 64px);
  height: clamp(48px, 6vw, 64px);
  flex-shrink: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.method-item:hover .method-icon {
  transform: scale(1.1);
}

.method-content {
  flex: 1;
}

.method-content strong {
  font-weight: 700;
  color: #2c2420;
}

/* Who This Is For section */
.who-section {
  border-left: 3px solid #b8860b;
  padding-left: clamp(24px, 4vw, 48px);
}

.who-section .emphasis {
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 500;
  color: #b8860b;
  margin-top: 1em;
  font-style: italic;
}

/* Lists */
.section-content ul {
  list-style-type: none;
  margin-left: 0;
  margin-top: 1em;
  margin-bottom: 2em;
}

.section-content li {
  margin-bottom: 0.75em;
  padding-left: 1.5em;
  position: relative;
}

.section-content li::before {
  content: '~';
  position: absolute;
  left: 0;
  color: #b8860b;
  font-weight: 500;
}

/* Closing note */
.closing-note {
  font-style: italic;
  color: #6b5d54;
  margin-top: 1.5em;
}

/* CTA Button */
.cta-button {
  display: inline-block;
  font-family: 'Work Sans', sans-serif;
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 500;
  color: #fefdfb;
  background-color: #b8860b;
  border: 2px solid #b8860b;
  padding: 18px 40px;
  text-decoration: none;
  border-radius: 0;
  transition: all 0.3s ease;
  margin-top: 1.5em;
  position: relative;
}

/* Three expanding frames with golden ratio gaps: 8px → 13px → 21px */
.cta-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border: 1.5px solid #b8860b;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: all 0.35s ease;
  pointer-events: none;
}

.cta-button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border: 1.5px solid #b8860b;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: all 0.35s ease 0.08s;
  pointer-events: none;
}

.cta-button:hover {
  background-color: transparent;
  color: #b8860b;
}

.cta-button:hover::before {
  width: calc(100% + 16px);
  height: calc(100% + 16px);
  opacity: 0.7;
}

.cta-button:hover::after {
  width: calc(100% + 42px);
  height: calc(100% + 42px);
  opacity: 0.45;
}

/* Third frame wrapper */
.cta-button-wrapper {
  position: relative;
  display: inline-block;
  margin-top: 1.5em;
}

.cta-button-wrapper .cta-button {
  margin-top: 0;
}

.cta-button-wrapper::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border: 1.5px solid #b8860b;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: all 0.35s ease 0.16s;
  pointer-events: none;
}

.cta-button-wrapper:hover::before {
  width: calc(100% + 84px);
  height: calc(100% + 84px);
  opacity: 0.25;
}

.cta-button-wrapper:active::before {
  opacity: 0;
}

.cta-button:active {
  transform: scale(0.98);
}

.cta-button:active::before,
.cta-button:active::after {
  opacity: 0;
}

/* About Section */
.about {
  min-height: auto;
  padding-top: clamp(100px, 15vh, 180px);
  padding-bottom: clamp(100px, 15vh, 180px);
}

.about .section-content {
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 8vh, 80px);
}

.bio {
  padding: clamp(24px, 3vw, 32px);
  position: relative;
  transition: all 0.3s ease;
}

/* Corner brackets */
.bio::before,
.bio::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: #b8860b;
  border-style: solid;
  opacity: 0;
  transition: all 0.35s ease;
}

.bio::before {
  top: 0;
  left: 0;
  border-width: 1.5px 0 0 1.5px;
}

.bio::after {
  bottom: 0;
  right: 0;
  border-width: 0 1.5px 1.5px 0;
}

.bio:hover::before,
.bio:hover::after {
  opacity: 0.7;
  width: 32px;
  height: 32px;
}

.bio-name {
  font-family: 'Work Sans', sans-serif;
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 600;
  color: #b8860b;
  margin-bottom: 1em;
}

.bio p {
  font-size: clamp(18px, 2vw, 24px);
}

.animating-tension {
  font-style: italic;
  color: #b8860b;
  border-left: 2px solid rgba(184, 134, 11, 0.3);
  padding-left: 1em;
  margin-top: 1em;
  margin-bottom: 1em;
}

/* Footer */
.footer {
  padding: 24px clamp(24px, 5vw, 197px) 60px;
  text-align: center;
  font-family: 'Work Sans', sans-serif;
  font-size: 14px;
  color: #6b5d54;
}

.mobile-break {
  display: none;
}

.footer-logo {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 24px;
}

.footer-logo-mobile {
  display: none;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero,
  .section {
    min-height: 100vh;
    padding-top: 100px;
    padding-bottom: 100px;
  }

  .logo {
    margin-bottom: 48px;
  }

  .method-item {
    padding: 12px;
  }

  .method-item::before,
  .method-item::after {
    width: 16px;
    height: 16px;
  }

  .method-item:hover::before,
  .method-item:hover::after {
    width: 20px;
    height: 20px;
  }

  .who-section {
    padding-left: 20px;
  }

  .bio {
    padding: 20px;
  }

  .bio::before,
  .bio::after {
    width: 20px;
    height: 20px;
  }

  .bio:hover::before,
  .bio:hover::after {
    width: 24px;
    height: 24px;
  }

  .divider {
    max-width: 200px;
  }

  .footer-logo-desktop {
    display: none;
  }

  .footer-logo-mobile {
    display: block;
  }

  .form-submit,
  .section-content {
    text-align: center;
  }

  .section-content p,
  .section-content ul {
    text-align: left;
  }

  .about .section-content {
    text-align: left;
  }

  .bio-name {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .hero,
  .section {
    min-height: 100vh;
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .logo {
    margin-bottom: 32px;
  }

  .cta-button {
    padding: 16px 24px;
    min-width: calc(100vw - 48px);
  }

  .cta-button-wrapper {
    display: block;
  }

  .method-item {
    flex-direction: column;
    gap: 8px;
  }

  .divider {
    max-width: 120px;
  }

  .mobile-break {
    display: block;
  }
}

/* Apply Page */
.apply-hero {
  min-height: auto;
  padding-top: clamp(40px, 6vw, 80px);
  padding-bottom: clamp(60px, 8vh, 100px);
}

.apply-note {
  font-family: 'Work Sans', sans-serif;
  font-size: clamp(14px, 1.5vw, 16px);
  color: #6b5d54;
  margin-top: 1em;
}

.logo-small {
  width: clamp(100px, 10vw, 120px);
  margin-bottom: clamp(40px, 6vh, 60px);
}

.logo-link {
  display: inline-block;
}

.logo-link::after {
  display: none;
}

.apply-section {
  min-height: auto;
  padding-top: clamp(32px, 4vh, 48px);
  padding-bottom: clamp(100px, 15vh, 180px);
}

/* Application Form */
.application-form {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 4vh, 40px);
  max-width: 600px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-family: 'Work Sans', sans-serif;
  font-size: clamp(14px, 1.5vw, 16px);
  font-weight: 500;
  color: #6b5d54;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group .optional {
  text-transform: none;
  font-weight: 400;
  opacity: 0.7;
}

.form-group input,
.form-group textarea {
  font-family: 'Gentium Plus', Georgia, serif;
  font-size: clamp(18px, 2vw, 22px);
  color: #2c2420;
  background: transparent;
  border: 1.5px solid rgba(184, 134, 11, 0.3);
  padding: 16px 20px;
  transition: all 0.3s ease;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #b8860b;
  box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(107, 93, 84, 0.5);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-submit {
  margin-top: 1em;
}

.form-submit button.cta-button {
  cursor: pointer;
  font-family: 'Work Sans', sans-serif;
}

.form-submit button.cta-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Form Messages */
.form-message {
  text-align: center;
  padding: clamp(40px, 6vh, 80px) 0;
}

.form-message p {
  font-size: clamp(24px, 3vw, 36px);
  margin-bottom: 0.5em;
}

.form-message .closing-note {
  margin-top: 0.5em;
}

.back-link {
  display: inline-block;
  margin-top: 2em;
  font-family: 'Work Sans', sans-serif;
  font-size: clamp(14px, 1.5vw, 16px);
}

/* Thank You Page */
.thank-you-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.thank-you-section .logo-link {
  margin-bottom: clamp(40px, 8vh, 80px);
}

.thank-you-section .interactive-logo.logo-centered {
  margin-bottom: 0;
}

/* Print Styles */
@media print {
  body {
    background: white;
    color: black;
  }

  .hero,
  .section {
    min-height: auto;
    page-break-inside: avoid;
  }

  .divider {
    border-top: 1px solid #ccc;
    background: none;
  }

  .cta-button {
    border: 2px solid #2c2420;
    background: transparent;
    color: #2c2420;
    box-shadow: none;
  }
}
