:root {
  --bg: #0f1419;
  --bg-soft: #0f1419;
  --panel: #ffffff;
  --panel-alt: #f0f4f8;
  --panel-deep: #e8f0f7;
  --primary: #1e5a96;
  --primary-strong: #0f3a52;
  --secondary: #4169e1;
  --accent: #5a7dff;
  --accent-soft: #7a9dff;
  --text: #1a1a1a;
  --text-soft: #576b7d;
  --border: rgba(30, 90, 150, 0.1);
  --shadow: 0 8px 24px rgba(30, 90, 150, 0.15);
  --radius: 12px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: linear-gradient(135deg, #f0f4f8 0%, #ffffff 50%, #faf6f1 100%);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
}

.section-spacing {
  padding: 5rem 0;
}

.instagram-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  justify-content: center;
}

.instagram-profile {
  flex-shrink: 0;
}

.profile-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary);
  box-shadow: 0 8px 24px rgba(124, 92, 255, 0.3);
}

.instagram-text {
  max-width: 400px;
}

@media (max-width: 768px) {
  .instagram-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .profile-photo {
    width: 120px;
    height: 120px;
  }
}

.section-light {
  background: linear-gradient(180deg, #f0f4f8 0%, #faf6f1 100%);
}

.section-dark {
  background: linear-gradient(135deg, #0f1419 0%, #1a2835 100%);
  color: #f0f4f8;
}

.narrow {
  max-width: 780px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.14rem;
  text-transform: uppercase;
  color: var(--primary-strong);
  font-weight: 700;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  font-family: "Georgia", serif;
  font-size: clamp(2.1rem, 3.4vw, 3.4rem);
  line-height: 1.12;
  margin-bottom: 1rem;
  letter-spacing: -0.05em;
  color: var(--bg);
}

.fine-print {
  margin-top: 0.5rem;
  font-size: 0.82rem;
  color: rgba(29, 35, 56, 0.68);
  line-height: 1.5;
  letter-spacing: 0.01em;
  font-weight: 500;
}

h2 {
  font-family: "Georgia", serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.04em;
  color: var(--bg);
}

h3 {
  font-size: 1.3rem;
  margin-bottom: 0.7rem;
}

p {
  color: var(--text-soft);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(135deg, #ffffff 0%, #f0f4f8 100%);
  border-bottom: 1px solid rgba(30, 90, 150, 0.12);
  box-shadow: 0 2px 8px rgba(30, 90, 150, 0.08);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 800;
  color: var(--bg-soft);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  box-shadow: var(--shadow);
}

.brand-text {
  font-size: 0.96rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--text-soft);
  font-weight: 600;
  transition: color 0.2s ease;
  position: relative;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--bg-soft);
}

.site-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.45rem;
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0.25rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.5rem;
  height: 2px;
  background: var(--text);
  margin: 0.35rem 0;
  border-radius: 999px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0.9rem 1.5rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #2874b6 100%);
  color: white;
  box-shadow: 0 8px 20px rgba(30, 90, 150, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(30, 90, 150, 0.35);
}

.button-secondary {
  background: rgba(65, 105, 225, 0.1);
  color: var(--secondary);
  border: 2px solid var(--secondary);
  transition: all 0.2s ease;
}

.button-secondary:hover {
  background: var(--secondary);
  color: white;
}

.button-small {
  padding: 0.7rem 1.1rem;
  font-size: 0.85rem;
}

.full-width {
  width: 100%;
}

.hero {
  padding-top: 4.5rem;
}

.hero-grid,
.split-layout,
.two-columns,
.contact-layout {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.hero-grid {
  grid-template-columns: 1.4fr 0.8fr;
}

.split-layout,
.two-columns {
  grid-template-columns: 1.2fr 0.8fr;
}

.contact-layout {
  grid-template-columns: 1.2fr 0.8fr;
}

.hero-copy p {
  font-size: 1.08rem;
  max-width: 60ch;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.8rem;
}

.hero-badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  padding: 0;
  margin: 0;
}

.hero-badges li {
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(65, 105, 225, 0.08);
  border: 1px solid rgba(65, 105, 225, 0.25);
  color: var(--secondary);
  font-weight: 600;
}

.hero-panel {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(240, 244, 248, 0.8) 100%);
  border: 1px solid rgba(30, 90, 150, 0.15);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: 0 8px 24px rgba(30, 90, 150, 0.12);
  backdrop-filter: blur(8px);
}

.badge-card {
  background: linear-gradient(135deg, #ffffff 0%, #f0f4f8 100%);
  border: 1px solid rgba(30, 90, 150, 0.12);
  border-radius: var(--radius);
  padding: 1.2rem 1.1rem;
  margin-bottom: 1.1rem;
  box-shadow: 0 4px 16px rgba(30, 90, 150, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.badge-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(30, 90, 150, 0.15);
}

.badge-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15rem;
  color: var(--text-soft);
  margin-bottom: 0.3rem;
}

.stat-blocks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.stat-blocks div {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 15px;
  padding: 1rem 0.8rem;
  text-align: center;
}

.stat-blocks strong {
  display: block;
  font-size: 1.15rem;
  color: var(--bg-soft);
}

.stat-blocks span {
  font-size: 0.8rem;
  color: var(--text-soft);
}

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

.light-heading h2,
.light-heading .eyebrow {
  color: #fff;
}

/* Portrait panel styles */
.portrait-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.portrait-image {
  width: 100%;
  max-width: 360px;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 18px 40px rgba(19, 25, 46, 0.12);
  border: 1px solid var(--border);
}

.portrait-credit {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-soft);
}

@media (max-width: 900px) {
  .split-layout {
    grid-template-columns: 1fr;
  }
  .portrait-image {
    max-width: 280px;
  }
  .portrait-credit {
    text-align: center;
  }
}

.card-grid {
  display: grid;
  gap: 1.5rem;
}

.three-columns {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card,
.format-card,
.location-panel,
.contact-form-card,
.contact-info-card,
.feature-box,
.quote-panel,
.instagram-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.7rem;
  box-shadow: var(--shadow);
}

.info-card {
  min-height: 100%;
}

.icon-circle {
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.15), rgba(255, 143, 112, 0.2));
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.quote-panel {
  background: linear-gradient(160deg, #171c35 0%, #201d46 100%);
  color: white;
  padding: 2rem;
}

.quote-panel p,
.quote-panel span {
  color: rgba(255, 255, 255, 0.85);
}

.check-list {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: var(--text-soft);
}

.check-list li + li {
  margin-top: 0.65rem;
}

.portrait-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100%;
}

.portrait-image {
  width: min(100%, 440px);
  max-height: 620px;
  object-fit: cover;
  object-position: center top;
  border-radius: 22px;
  border: 1px solid rgba(19, 25, 46, 0.12);
  box-shadow: var(--shadow);
  display: block;
}

.portrait-caption {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-soft);
  text-align: center;
}

.feature-box {
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.08), rgba(255, 143, 112, 0.1));
}

.gradient-box {
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.14), rgba(255, 209, 102, 0.18));
}

.lead {
  font-size: 1.1rem;
  color: var(--text);
  font-weight: 500;
}

.timeline {
  display: grid;
  gap: 1.4rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--border);
}

.timeline-year {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 42px;
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.09);
  color: var(--primary-strong);
  font-weight: 800;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.tag-cloud span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  background: white;
  border: 1px solid rgba(124, 92, 255, 0.12);
  border-radius: 999px;
  font-weight: 600;
  color: var(--primary-strong);
  box-shadow: 0 10px 18px rgba(19, 25, 46, 0.05);
}

.format-card {
  position: relative;
}

.format-card.featured {
  background: linear-gradient(160deg, rgba(124, 92, 255, 0.08), rgba(255, 143, 112, 0.06));
}

.format-tag {
  display: inline-block;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 143, 112, 0.12);
  color: #a85139;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.format-card ul,
.contact-list {
  margin: 1rem 0 0;
  padding-left: 1.15rem;
  color: var(--text-soft);
}

.location-panel {
  min-height: 100%;
}

.highlight-panel {
  background: linear-gradient(180deg, rgba(124, 92, 255, 0.08), rgba(255, 209, 102, 0.12));
}

.page-hero {
  background: radial-gradient(circle at top left, rgba(124, 92, 255, 0.18), transparent 35%),
    radial-gradient(circle at bottom right, rgba(255, 143, 112, 0.18), transparent 30%);
  padding-top: 4rem;
}

.field-group {
  margin-bottom: 1.2rem;
}

label {
  display: block;
  margin-bottom: 0.45rem;
  font-weight: 700;
  color: var(--bg-soft);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(19, 25, 46, 0.14);
  background: rgba(255, 255, 255, 0.65);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(124, 92, 255, 0.7);
  box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.12);
}

textarea {
  resize: vertical;
  min-height: 140px;
}

.error-text {
  display: block;
  min-height: 1rem;
  margin-top: 0.4rem;
  font-size: 0.77rem;
  color: #d9333f;
}

.input-error {
  border-color: rgba(217, 51, 63, 0.8);
  box-shadow: 0 0 0 4px rgba(217, 51, 63, 0.08);
}

.form-success {
  margin-top: 1rem;
  background: rgba(35, 167, 116, 0.08);
  border: 1px solid rgba(35, 167, 116, 0.2);
  color: #0e7b52;
  padding: 1rem 1.2rem;
  border-radius: 14px;
  font-weight: 600;
}

.form-error {
  margin-top: 1rem;
  background: rgba(217, 51, 63, 0.08);
  border: 1px solid rgba(217, 51, 63, 0.2);
  color: #d9333f;
  padding: 1rem 1.2rem;
  border-radius: 14px;
  font-weight: 600;
}

.mini-note {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
}

.instagram-card {
  background: linear-gradient(180deg, rgba(19, 25, 46, 0.96), rgba(35, 39, 61, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.instagram-intro {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.2rem;
}

.instagram-profile-preview {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.2s ease, background 0.2s ease;
}

.instagram-profile-preview:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.09);
}

.instagram-profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.instagram-profile-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.instagram-profile-text strong {
  color: white;
  font-size: 1rem;
}

.instagram-profile-text span {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.instagram-actions {
  text-align: center;
}

.site-footer {
  background: #0e1327;
  color: white;
  padding-top: 3.25rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 1.5rem;
  padding-bottom: 2rem;
}

.site-footer h3,
.site-footer h4,
.site-footer p,
.site-footer a,
.site-footer li {
  color: rgba(255, 255, 255, 0.8);
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li + li {
  margin-top: 0.45rem;
}

.footer-link-instagram {
  display: inline-block;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-weight: 600;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem 0 1.5rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.68);
}

.legal-note {
  margin-top: 0.5rem;
  font-size: 0.72rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.62);
}

.publication-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.publication-card {
  display: grid;
  gap: 1rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.publication-cover {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.2), rgba(255, 143, 112, 0.2));
  color: var(--bg-soft);
  font-weight: 800;
  font-size: 1.2rem;
  text-align: center;
  padding: 1rem;
  overflow: hidden;
}

.publication-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
}

.publication-card p {
  margin-bottom: 0;
}

.publication-meta {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04rem;
  text-transform: uppercase;
  color: var(--primary-strong);
}

.publication-actions {
  margin-top: auto;
}

.placeholder-box {
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.12), rgba(255, 209, 102, 0.12));
  border: 1px dashed rgba(124, 92, 255, 0.25);
  border-radius: 18px;
  padding: 2rem 1rem;
  text-align: center;
  color: var(--primary-strong);
  font-weight: 700;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.resource-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.resource-card h3 {
  margin-bottom: 0.5rem;
}

.resource-card p {
  margin-bottom: 1rem;
}

.link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.inline-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.08);
  border: 1px solid rgba(124, 92, 255, 0.15);
  color: var(--primary-strong);
  font-weight: 700;
}

@media (max-width: 980px) {
  .hero-grid,
  .split-layout,
  .two-columns,
  .contact-layout,
  .footer-grid,
  .three-columns {
    grid-template-columns: 1fr;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 1rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    background: rgba(247, 248, 255, 0.97);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }
}

@media (max-width: 640px) {
  .section-spacing {
    padding: 4rem 0;
  }

  .hero {
    padding-top: 3rem;
  }

  .stat-blocks {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .nav-wrapper {
    gap: 0.7rem;
  }

  .brand-text {
    display: none;
  }

  .button {
    width: 100%;
  }

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

  .portrait-panel {
    margin-top: 1.5rem;
  }

  .portrait-image {
    width: min(100%, 360px);
    max-height: 480px;
  }
}
