/* Prime Music Institute — modern dark theme */

:root {
  --bg-deep: #f8f9fb;
  --bg: #ffffff;
  --bg-elevated: #ffffff;
  --border: #e4e8ee;
  --text: #1e2430;
  --text-muted: #5d6472;
  --accent: #7a5b2f;
  --accent-dim: rgba(122, 91, 47, 0.1);
  --accent-glow: rgba(122, 91, 47, 0.18);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Outfit", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s var(--ease-out);
}

a:hover {
  opacity: 0.85;
}

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

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

.container.narrow {
  width: min(720px, 92vw);
}

/* Header */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: #0a0a0a;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.header-inner {
  width: 100%;
  max-width: 100%;
  margin-inline: 0;
  padding-left: clamp(1rem, 4vw, 2rem);
  padding-right: clamp(1rem, 4vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-right: auto;
  flex-shrink: 1;
  min-width: 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  color: #f5f5f5;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.logo-img {
  display: block;
  height: clamp(48px, 9.5vw, 68px);
  width: auto;
  max-width: min(300px, 78vw);
  object-fit: contain;
}

.logo-wordmark {
  display: block;
  height: clamp(36px, 6vw, 52px);
  width: auto;
  max-width: min(360px, 42vw);
  object-fit: contain;
}

@media (max-width: 520px) {
  .logo-img {
    max-width: min(260px, 82vw);
    height: clamp(42px, 12vw, 58px);
  }

  .logo-wordmark {
    max-width: min(200px, 46vw);
    height: clamp(28px, 8vw, 40px);
  }
}

@media (max-width: 380px) {
  .logo-wordmark {
    display: none;
  }
}

.site-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 2rem;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  font-weight: 400;
}

.site-nav a:hover {
  color: var(--accent);
  opacity: 1;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: rgba(255, 255, 255, 0.88);
  transition: transform 0.25s var(--ease-out), opacity 0.2s;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: #0a0a0a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.25rem 1.5rem 1.5rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s var(--ease-out), opacity 0.25s, visibility 0.25s;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Hero */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-h) + 3rem) 1.5rem 5rem;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    url("assets/images/piano.jpg") center center / cover no-repeat;
  filter: saturate(0.95) contrast(1.02);
  z-index: -2;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 50%, rgba(255, 250, 240, 0.42) 0%, rgba(255, 250, 240, 0) 65%),
    linear-gradient(180deg, rgba(20, 14, 4, 0.18) 0%, rgba(20, 14, 4, 0.04) 35%, rgba(20, 14, 4, 0.32) 100%);
  z-index: -1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 56rem;
  margin-inline: auto;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 9.2vw, 6.5rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0 0 1.4rem;
  color: #ffffff;
  text-shadow: 0 2px 32px rgba(0, 0, 0, 0.55), 0 1px 4px rgba(0, 0, 0, 0.45);
  white-space: nowrap;
}

.hero-title .accent {
  color: #f3d9a8;
  font-style: italic;
  font-weight: 400;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.6vw, 1.6rem);
  font-style: italic;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 2.5rem;
  line-height: 1.4;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55), 0 1px 3px rgba(0, 0, 0, 0.4);
}

.hero-eyebrow,
.hero-instruments,
.hero-lead {
  display: none;
}

@media (max-width: 640px) {
  .hero-title {
    white-space: normal;
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.25s var(--ease-out), border-color 0.25s, color 0.25s, transform 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-deep);
  border-color: var(--accent);
}

.btn-primary:hover {
  opacity: 1;
  filter: brightness(1.06);
}

.btn-cta {
  background: var(--accent);
  color: #ffffff;
  border: 1px solid var(--accent);
  padding: 1.05rem 2.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  border-radius: 4px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32), 0 2px 6px rgba(122, 91, 47, 0.45);
  transition: background 0.25s var(--ease-out), transform 0.2s var(--ease-out),
    box-shadow 0.25s var(--ease-out), filter 0.25s var(--ease-out);
}

.btn-cta:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.36), 0 3px 10px rgba(122, 91, 47, 0.55);
  opacity: 1;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  opacity: 1;
}

.btn-block {
  width: 100%;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-scroll-line {
  width: 1px;
  height: 3rem;
  background: linear-gradient(180deg, var(--accent), transparent);
}

@media (max-width: 768px) {
  .hero-scroll {
    display: none;
  }
}

/* Sections */

.section {
  padding: clamp(4rem, 12vw, 7rem) 0;
}

.section-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
}

.accent-soft {
  color: var(--accent);
  font-style: italic;
  font-weight: 400;
}

.section-text {
  color: var(--text-muted);
  font-weight: 300;
  margin: 0;
  font-size: 1.05rem;
}

.section-intro {
  color: var(--text-muted);
  font-weight: 300;
  margin: 0;
  max-width: 36rem;
}

.section-head {
  margin-bottom: 3rem;
}

.about {
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about .section-label {
  font-size: 0.78rem;
  letter-spacing: 0.27em;
}

.about .section-title {
  font-size: clamp(2.15rem, 5.2vw, 3rem);
  line-height: 1.2;
  margin-bottom: 1.45rem;
}

.about .section-text {
  font-size: clamp(1.02rem, 1.55vw, 1.15rem);
  line-height: 1.72;
  font-weight: 400;
  color: var(--text);
}

.about .stat-num {
  font-size: clamp(2rem, 3vw, 2.3rem);
}

.about .stat-label {
  font-size: 0.92rem;
  line-height: 1.5;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 3rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border);
  padding-top: 2.5rem;
}

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (max-width: 600px) {
  .stats {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }
}

/* Programs */

.program-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (max-width: 640px) {
  .program-grid {
    grid-template-columns: 1fr;
  }
}

.program-card {
  padding: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.program-card:hover {
  border-color: rgba(122, 91, 47, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(24, 38, 67, 0.12);
}

.program-image {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
  filter: saturate(0.9) contrast(1.03);
}

.program-content {
  padding: 1.4rem 1.5rem 1.5rem;
}

.program-image--woodwinds {
  object-position: center center;
}

.program-icon {
  font-size: 1.2rem;
  color: var(--accent);
  margin-bottom: 0.6rem;
  opacity: 0.9;
}

.program-card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.6vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 0.85rem;
}

.program-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 300;
}

/* Faculty */

.faculty {
  background: linear-gradient(180deg, #f8f9fb 0%, #ffffff 50%, #f8f9fb 100%);
}

.faculty-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .faculty-grid {
    grid-template-columns: 1fr;
    max-width: 24rem;
    margin-inline: auto;
  }
}

.faculty-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.faculty-card:hover {
  border-color: rgba(196, 165, 116, 0.25);
}

.faculty-photo {
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(145deg, rgba(196, 165, 116, 0.2) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg-elevated), #eceef2);
}

.faculty-photo--has-img {
  background: #eceef2;
  padding: 0;
}

.faculty-photo--has-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.faculty-photo--t3 img {
  object-position: center center;
}

.faculty-photo--t4 img {
  object-position: center 30%;
}

.faculty-photo--3 {
  background:
    linear-gradient(145deg, rgba(140, 100, 120, 0.12) 0%, transparent 50%),
    linear-gradient(180deg, #f0f2f5, #e8ebf0);
}

.faculty-photo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 30% 25%, rgba(196, 165, 116, 0.22), transparent 60%),
    linear-gradient(180deg, #f4eedf 0%, #ece2cb 100%);
}

.faculty-photo-initials {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 3.4rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent);
  opacity: 0.85;
}

.faculty-card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.4vw, 1.75rem);
  font-weight: 700;
  margin: 0;
  padding: 0.45rem 1.25rem 0;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}

.faculty-role {
  margin: 1.25rem 0 0;
  padding: 0 1.25rem;
  min-height: 0.95rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.faculty-bio {
  margin: 0;
  padding: 0 1.25rem 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 300;
}

.faculty-bio--rich {
  padding-bottom: 1.65rem;
  line-height: 1.58;
}

.faculty-bio-lead {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 300;
}

.faculty-bio-section {
  margin: 1.05rem 0 0.1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.faculty-bio-section:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.faculty-bio-list {
  margin: 0.55rem 0 0;
  padding: 0 0 0 1.15rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 400;
}

.faculty-bio-list > li {
  margin-bottom: 0.45rem;
}

.faculty-bio-sublist {
  margin: 0.4rem 0 0.35rem;
  padding: 0 0 0 1rem;
  list-style: circle;
}

.faculty-bio-sublist li {
  margin-bottom: 0.25rem;
}

.faculty-bio-highlight {
  margin: 1.05rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  color: var(--text);
}

.faculty-bio-highlight strong {
  font-weight: 600;
  color: var(--accent);
}

/* Collapsible bio sections */

.faculty-details {
  margin-top: 0.35rem;
}

.faculty-details > .faculty-details-body {
  /* Smooth-ish height feel by reserving padding */
  padding-top: 0.25rem;
}

.faculty-toggle {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  user-select: none;
  transition: color 0.18s ease;
}

.faculty-toggle::-webkit-details-marker {
  display: none;
}

.faculty-toggle:hover,
.faculty-toggle:focus-visible {
  color: var(--text);
  outline: none;
}

.faculty-toggle:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.faculty-toggle-label--less {
  display: none;
}

.faculty-details[open] > .faculty-toggle .faculty-toggle-label--more {
  display: none;
}

.faculty-details[open] > .faculty-toggle .faculty-toggle-label--less {
  display: inline;
}

.faculty-toggle-icon {
  display: inline-block;
  font-size: 0.85rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.faculty-details[open] > .faculty-toggle .faculty-toggle-icon {
  transform: rotate(-180deg);
}

/* The first section inside the body shouldn't draw its own top border
   (it already has clear separation from the toggle) */
.faculty-details-body > .faculty-bio-section:first-child {
  margin-top: 0.35rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

/* Contact */

.contact {
  border-top: 1px solid var(--border);
  background: #ffffff;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 4rem);
  align-items: start;
}

@media (max-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

.contact-details {
  font-style: normal;
  margin-top: 2rem;
}

.contact-details p {
  display: grid;
  gap: 0.25rem;
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
}

.detail-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

#pmi-contact-hours {
  white-space: pre-line;
}

.contact-details a {
  color: var(--text);
}

.contact-form {
  padding: 2rem;
  background: #f8f9fb;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.field {
  display: block;
  margin-bottom: 1.25rem;
}

.field span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 2px;
  transition: border-color 0.2s;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.field textarea {
  resize: vertical;
  min-height: 6rem;
}

.form-note {
  margin: 1rem 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.form-status {
  margin: 1rem 0 0;
  min-height: 1.25rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.form-status:empty {
  display: none;
}

.form-status.is-info {
  color: var(--text);
}

.form-status.is-success {
  color: #16a34a;
  font-weight: 600;
}

.form-status.is-error {
  color: #dc2626;
  font-weight: 500;
}

.contact-form button[disabled] {
  opacity: 0.7;
  cursor: progress;
}

/* Footer */

.site-footer {
  padding: 2.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #0a0a0a;
}

.footer-inner {
  width: 100%;
  max-width: 100%;
  margin-inline: 0;
  padding-left: clamp(1rem, 4vw, 2rem);
  padding-right: clamp(1rem, 4vw, 2rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 1;
  min-width: 0;
}

.footer-logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.footer-icon {
  display: block;
  height: clamp(42px, 8vw, 56px);
  width: auto;
  max-width: min(260px, 58vw);
  object-fit: contain;
}

.footer-wordmark {
  display: block;
  height: clamp(32px, 5.5vw, 48px);
  width: auto;
  max-width: min(320px, 48vw);
  object-fit: contain;
}

/* Floating Instagram (bottom-right) */

.instagram-fab-host {
  position: fixed;
  right: clamp(1rem, 4vw, 1.5rem);
  bottom: clamp(1rem, 4vw, 1.5rem);
  z-index: 100;
}

.instagram-fab-host[hidden] {
  display: none !important;
}

.instagram-fab-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  color: #f4eedf;
  background: linear-gradient(145deg, #c4a574 0%, #8b6f4a 100%);
  box-shadow:
    0 4px 18px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.12);
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.instagram-fab-link:hover,
.instagram-fab-link:focus-visible {
  color: #fff;
  transform: scale(1.07);
  box-shadow:
    0 6px 24px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.2);
  filter: brightness(1.05);
  outline: none;
}

.instagram-fab-icon {
  display: block;
  flex-shrink: 0;
}

@media (max-width: 520px) {
  .footer-icon {
    max-width: min(220px, 52vw);
    height: clamp(38px, 10vw, 50px);
  }

  .footer-wordmark {
    max-width: min(200px, 46vw);
    height: clamp(28px, 8vw, 40px);
  }
}

@media (max-width: 380px) {
  .footer-wordmark {
    display: none;
  }
}

.footer-copy {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.02em;
}

/* Reveal: 기본은 항상 표시(JS·파일 경로 문제로 빈 화면이 되지 않도록) */
.reveal {
  opacity: 1;
  transform: none;
}

/* JS가 로드되면 스크롤 페이드만 적용 */
html.js-reveal-pending .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}

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

.reveal-delay-1 {
  transition-delay: 0.07s;
}

.reveal-delay-2 {
  transition-delay: 0.14s;
}

.reveal-delay-3 {
  transition-delay: 0.21s;
}

.reveal-delay-4 {
  transition-delay: 0.28s;
}

.hero .reveal.is-visible {
  transition-delay: 0s;
}

.hero .reveal-delay-1.is-visible {
  transition-delay: 0.07s;
}

.hero .reveal-delay-2.is-visible {
  transition-delay: 0.14s;
}

.hero .reveal-delay-3.is-visible {
  transition-delay: 0.21s;
}

.hero .reveal-delay-4.is-visible {
  transition-delay: 0.28s;
}

/* CTA banner (home page) */

.cta-banner {
  padding: clamp(4rem, 9vw, 7rem) 1.5rem;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, var(--accent-glow), transparent 70%),
    linear-gradient(180deg, #ffffff 0%, var(--bg-deep) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-banner-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 0.85rem;
  color: var(--text);
}

.cta-banner-lead {
  margin: 0 auto 2.25rem;
  max-width: 36rem;
  font-size: clamp(1rem, 1.65vw, 1.15rem);
  line-height: 1.65;
  color: var(--text-muted);
}

.btn-cta-dark {
  background: var(--text);
  color: #ffffff;
  border: 1px solid var(--text);
  padding: 1.05rem 2.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  border-radius: 4px;
  box-shadow: 0 12px 32px rgba(20, 24, 32, 0.22), 0 2px 6px rgba(20, 24, 32, 0.18);
  transition: background 0.25s var(--ease-out), transform 0.2s var(--ease-out),
    box-shadow 0.25s var(--ease-out), filter 0.25s var(--ease-out);
}

.btn-cta-dark:hover {
  filter: brightness(1.18);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(20, 24, 32, 0.3), 0 3px 10px rgba(20, 24, 32, 0.22);
  opacity: 1;
}

/* Pricing page */

.pricing-hero {
  padding: calc(var(--header-h) + 4rem) 1.5rem 2.5rem;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 60% at 50% 0%, var(--accent-glow), transparent 70%),
    linear-gradient(180deg, #ffffff 0%, var(--bg-deep) 100%);
}

.pricing-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.6vw, 3.4rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 1.1rem;
  color: var(--text);
}

.pricing-hero-lead {
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 38rem;
  margin: 0 auto;
}

.section.pricing {
  background: var(--bg);
}

.pricing-block {
  margin-bottom: 3.5rem;
}

.pricing-block:last-of-type {
  margin-bottom: 2rem;
}

.pricing-block-head {
  margin-bottom: 1.25rem;
}

.pricing-block-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 0.45rem;
  color: var(--text);
}

.pricing-block-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  font-size: 0.96rem;
}

.pricing-table thead {
  background: var(--accent-dim);
}

.pricing-table th,
.pricing-table td {
  padding: 0.95rem 1.1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

.pricing-table thead th {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid var(--border);
}

.pricing-table tbody tr:last-child th,
.pricing-table tbody tr:last-child td {
  border-bottom: none;
}

.pricing-table tbody th {
  font-weight: 500;
  color: var(--text);
}

.pricing-table tbody td {
  color: var(--text-muted);
}

.pricing-table .cell-cost {
  text-align: right;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

.pricing-table thead th.cell-cost {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
}

@media (max-width: 640px) {
  .pricing-table {
    font-size: 0.9rem;
  }

  .pricing-table th,
  .pricing-table td {
    padding: 0.75rem 0.7rem;
  }

  .pricing-table .cell-cost {
    font-size: 1.05rem;
  }
}

.pricing-note {
  margin: 1.5rem 0 2.25rem;
  padding: 1rem 1.2rem;
  background: var(--bg-deep);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.pricing-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
}

/* FAQ */
.section.faq {
  background: var(--bg-deep);
}

.faq-list {
  margin-top: 2.5rem;
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.faq-item[open] {
  border-color: var(--accent);
  box-shadow: 0 6px 24px var(--accent-dim);
}

.faq-item > summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 1.02rem;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  outline: none;
}

.faq-item > summary::-webkit-details-marker {
  display: none;
}

.faq-item > summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1;
  color: var(--accent);
  transition: transform 0.2s var(--ease-out);
}

.faq-item[open] > summary::after {
  content: "−";
}

.faq-item > p {
  margin: 0.85rem 0 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.faq-item > p a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
