:root {
  --bg: #fcfcfd;
  --bg-soft: rgba(255, 255, 255, 0.72);
  --text: #15161a;
  --muted: #666c78;
  --line: rgba(21, 22, 26, 0.08);
  --line-strong: rgba(21, 22, 26, 0.16);
  --shadow: 0 24px 80px rgba(30, 38, 64, 0.1);
  --radius: 26px;
  --radius-sm: 20px;
  --gradient: linear-gradient(135deg, #00a7e8 0%, #4d6fff 38%, #7a43ff 68%, #9f35ff 100%);
  --ease: 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); }
body {
  font-family: Inter, system-ui, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; }
button, input, textarea { font: inherit; }

.ambient {
  position: fixed;
  inset: auto;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.26;
  pointer-events: none;
  z-index: 0;
  animation: drift 12s ease-in-out infinite alternate;
}

.ambient-a {
  width: 240px;
  height: 240px;
  top: 8%;
  left: -60px;
  background: rgba(0, 167, 232, 0.18);
}

.ambient-b {
  width: 320px;
  height: 320px;
  right: -120px;
  top: 38%;
  background: rgba(122, 67, 255, 0.14);
  animation-duration: 16s;
}

.page-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 36px 20px 60px;
  max-width: 720px;
  margin: 0 auto;
}

/* ── Hero ── */
.hero {
  padding: 26px 0 0;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.wordmark {
  margin: 0;
  font-size: clamp(3rem, 14vw, 6.4rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  max-width: 100%;
}

.hero-sub {
  max-width: 42rem;
  margin: 20px 0 0;
  font-size: clamp(1rem, 2.5vw, 1.16rem);
  line-height: 1.5;
}

.hero-affiliation {
  margin: 10px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0.01em;
}

/* ── CTA ── */
.cta {
  margin: 20px 0 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.cta-label {
  margin: 0;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
  letter-spacing: 0.01em;
}

.cta-or {
  font-weight: 400;
  color: var(--muted);
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.instagram-handle {
  display: block;
  align-self: stretch;
  font-size: clamp(1.2rem, 6vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  padding-bottom: 0.06em;
  text-align: center;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-decoration: none;
  transition: opacity var(--ease);
}

.instagram-handle:hover,
.instagram-handle:focus-visible {
  opacity: 0.82;
  outline: none;
}

.open-form {
  appearance: none;
  border: 1.5px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  border-radius: 999px;
  padding: 12px 26px;
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background var(--ease), color var(--ease), border-color var(--ease), transform var(--ease);
}

.open-form:hover,
.open-form:focus-visible {
  background: var(--text);
  color: white;
  border-color: var(--text);
  transform: translateY(-1px);
  outline: none;
}

/* ── Hero body paragraph ── */
.hero-body {
  max-width: 42rem;
  margin: 8px 0 34px;
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ── Section cards ── */
.sections {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 0 0 34px;
}

.section-card {
  background: var(--bg-soft);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 40px rgba(30, 38, 64, 0.04);
  padding: 22px 20px 18px;
  transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
  display: flex;
  flex-direction: column;
}

.section-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 18px 44px rgba(30, 38, 64, 0.08);
}

.section-card h2 {
  margin: 0 0 10px;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
}

.section-summary,
.modal-content p,
.modal-content li,
.form-status {
  line-height: 1.7;
}

.section-summary {
  margin: 0 0 14px;
  color: var(--muted);
  flex: 1;
}

.detail-button {
  appearance: none;
  border: 1px solid var(--line);
  background: white;
  color: var(--text);
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  transition: border-color var(--ease), transform var(--ease), background var(--ease);
}

.detail-button:hover,
.detail-button:focus-visible {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  outline: none;
}

/* ── Contact form (inside modal) ── */
.contact-form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.form-row {
  display: grid;
  gap: 8px;
}

.form-row label {
  font-size: 0.92rem;
  color: var(--muted);
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,0.92);
  color: var(--text);
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  transform: translateY(-1px);
  border-color: rgba(77, 111, 255, 0.5);
  box-shadow: 0 0 0 4px rgba(77, 111, 255, 0.08);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.form-actions button {
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 12px 22px;
  background: var(--text);
  color: white;
  cursor: pointer;
  font-weight: 600;
  transition: transform var(--ease), opacity var(--ease);
}

.form-actions button:hover,
.form-actions button:focus-visible {
  transform: translateY(-1px);
  opacity: 0.88;
  outline: none;
}

.form-status {
  min-height: 1.4em;
  margin: 0;
  color: var(--muted);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.secondary-link {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
  border-bottom: 1px solid transparent;
  transition: border-color var(--ease);
}

.secondary-link:hover,
.secondary-link:focus-visible {
  border-color: currentColor;
  outline: none;
}

/* ── Modals ── */
.info-modal {
  width: min(720px, calc(100vw - 28px));
  border: none;
  border-radius: var(--radius);
  padding: 0;
  box-shadow: var(--shadow);
}

.info-modal::backdrop {
  background: rgba(10, 12, 18, 0.44);
  backdrop-filter: blur(10px);
}

.modal-content {
  padding: 32px 26px 28px;
}

.modal-intro {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.6;
}

.close-modal {
  position: absolute;
  top: 14px;
  right: 16px;
  border: none;
  background: transparent;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
}

.modal-content h2 {
  margin: 0 0 14px;
  font-size: 2rem;
  letter-spacing: -0.03em;
}

.modal-content ul {
  padding-left: 20px;
  margin: 14px 0 0;
}

.modal-links {
  margin: 20px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.link-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--text);
  opacity: 0.55;
  transition: opacity var(--ease);
}

.modal-link:hover .link-icon {
  opacity: 0.9;
}

.link-text {
  font-size: 0.96rem;
  font-weight: 500;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 800ms cubic-bezier(0.22, 1, 0.36, 1), transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 90ms; }
.delay-2 { transition-delay: 160ms; }
.delay-3 { transition-delay: 230ms; }
.delay-4 { transition-delay: 300ms; }
.delay-5 { transition-delay: 370ms; }

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(18px, -16px, 0) scale(1.08); }
}

@media (min-width: 820px) {
  .sections {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .page-shell {
    padding: 56px 48px 80px;
  }

  .hero {
    padding: 48px 0 0;
  }

  .wordmark {
    font-size: clamp(5rem, 10vw, 9rem);
  }

  .hero-sub {
    font-size: 1.28rem;
    max-width: 56rem;
    margin-top: 24px;
  }

  .hero-affiliation {
    font-size: 1rem;
    margin-top: 14px;
  }

  .sections {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .section-card {
    padding: 28px 24px 22px;
  }

  .section-card h2 {
    font-size: 1.28rem;
    margin-bottom: 12px;
  }

  .hero-body {
    font-size: 1.06rem;
    max-width: 56rem;
  }
}

@media (max-width: 640px) {
  .page-shell { padding-top: 28px; }
}
