/* Inner-page content patterns. Loaded after styles.css (tokens + chrome). */

/* --- Progressive enhancement: content shows by default; reveal only with JS --- */

.js .reveal {
  opacity: 0;
  transform: translateY(1.1em);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --- Page beat (every inner page opens with one) --- */

.page-head {
  padding: clamp(7rem, 18vh, 14rem) clamp(1.5rem, 6vw, 8rem) 6vh;
}

.page-title {
  font-weight: 900;
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 20ch;
}

.page-lede {
  margin-top: 1.6rem;
  font-size: clamp(1.3rem, 2.4vw, 2rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
  max-width: 32ch;
}

.btn-learn {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.72em 1.5em;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 3px;
  transition: opacity 0.2s ease;
}

.btn-learn::after {
  content: " ↗";
}

.btn-learn:hover,
.btn-learn:focus-visible {
  opacity: 0.82;
}

/* --- Generic content section + prose --- */

.section {
  padding: 6vh clamp(1.5rem, 6vw, 8rem);
}

.prose {
  max-width: 60ch;
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  font-weight: 400;
  line-height: 1.65;
  color: var(--prose);
}

.prose + .prose {
  margin-top: 1.2rem;
}

.label + .prose {
  margin-top: 0.5rem;
}

.principles {
  list-style: none;
  margin-top: 1.5rem;
  max-width: 58ch;
}

.principles li {
  padding: 1.1rem 0;
  border-top: 1px solid var(--hair);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.4;
  color: var(--fg);
}

/* --- Team roster --- */

.roster-group {
  padding: 2vh clamp(1.5rem, 6vw, 8rem) 4vh;
}

.roster-group .member {
  margin-top: 4.5vh;
}

.member {
  display: flex;
  gap: clamp(1.2rem, 3vw, 2.5rem);
  align-items: flex-start;
}

.member-portrait {
  flex: 0 0 auto;
  width: clamp(88px, 12vw, 150px);
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 0.5rem;
  border-radius: 8px;
  background: var(--portrait-bg);
  border: 1px solid rgba(255, 107, 53, 0.28);
  color: var(--accent-text);
  font-weight: 900;
  font-size: clamp(1rem, 2vw, 1.4rem);
  /* When a real photo replaces the initials block, swap to <img> and add:
     object-fit: cover; filter: grayscale(1) contrast(1.05) brightness(0.92); */
}

.member-body {
  min-width: 0;
}

.member-name {
  display: inline-block;
  font-weight: 900;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.02em;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-size: 0% 84%;
  background-position: 0 64%;
  transition:
    background-size 0.5s var(--ease-sweep),
    color 0.3s ease;
}

.member:hover .member-name,
.member:focus-within .member-name {
  background-size: 100% 84%;
  color: var(--on-accent);
}

.member-role {
  margin: 0.7rem 0;
}

/* --- Perspectives index --- */

.perspective-list {
  padding: 2vh clamp(1.5rem, 6vw, 8rem) 8vh;
  display: flex;
  flex-direction: column;
}

.perspective-item {
  padding: 4vh 0;
  border-top: 1px solid var(--hair);
}

.perspective-item:first-child {
  border-top: 0;
}

.perspective-title {
  margin: 0.6rem 0 0.9rem;
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.perspective-link {
  display: inline-block;
  color: var(--fg);
  font-weight: 900;
  text-decoration: none;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-size: 0% 84%;
  background-position: 0 64%;
  transition:
    background-size 0.5s var(--ease-sweep),
    color 0.3s ease;
}

.perspective-link:hover,
.perspective-link:focus-visible {
  background-size: 100% 84%;
  color: var(--on-accent);
}

.perspective-more {
  display: inline-block;
  margin-top: 1rem;
  color: var(--accent-text);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
}

/* --- Perspective article --- */

.article-body {
  padding-top: 2vh;
}

.article-body .prose {
  max-width: 64ch;
}

.back-link {
  color: var(--fg-dim);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: color 0.25s ease;
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--accent-text);
}

/* --- Contact --- */

.contact-lg {
  font-size: clamp(1.8rem, 6vw, 4rem);
}

.claim-lg {
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 500;
  color: var(--fg);
  max-width: 24ch;
}

/* --- Footer spacing on inner pages (landing footer gets its padding from .beat) --- */

.site-foot {
  padding: 10vh clamp(1.5rem, 6vw, 8rem) 14vh;
}

/* --- Inline prose links --- */

.prose a {
  color: var(--accent-text);
  text-decoration: none;
  border-bottom: 1px solid var(--hair);
  transition: border-color 0.25s ease;
}

.prose a:hover,
.prose a:focus-visible {
  border-color: var(--accent-text);
}

/* --- Legal pages (terms, privacy) --- */

.legal-note {
  margin-top: 1.4rem;
  padding: 0.9rem 1.1rem;
  max-width: 62ch;
  border: 1px solid var(--hair);
  border-radius: 8px;
  color: var(--fg-dim);
  font-size: 0.9rem;
  line-height: 1.55;
}

.legal-meta {
  margin-top: 1rem;
  color: var(--fg-faint);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

/* --- Enquiry form (Aprende) --- */

/* Internal-anchor variant of the button: no leaving-site arrow. */
.btn-learn--local::after {
  content: none;
}

.enq-form {
  margin-top: 2rem;
  max-width: 44ch;
}

.enq-field {
  margin-top: 1.1rem;
}

.enq-label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--fg-dim);
}

.enq-input {
  width: 100%;
  padding: 0.7em 0.85em;
  background: transparent;
  color: var(--fg);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.4;
  border: 1px solid var(--hair);
  border-radius: 6px;
  transition: border-color 0.25s ease;
}

.enq-input:focus-visible {
  outline: none;
  border-color: var(--accent-text);
}

textarea.enq-input {
  resize: vertical;
  min-height: 6em;
}

/* Off-screen honeypot: present for bots, invisible to people and assistive tech. */
.enq-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.enq-send {
  display: inline-block;
  margin-top: 1.6rem;
  padding: 0.72em 1.6em;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border: 0;
  border-radius: 3px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.enq-send:hover,
.enq-send:focus-visible {
  opacity: 0.82;
}

.enq-send:disabled {
  opacity: 0.5;
  cursor: default;
}

.enq-status {
  margin-top: 1rem;
  min-height: 1.2em;
  max-width: 44ch;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--fg-dim);
}

.enq-status[data-tone="ok"] {
  color: var(--accent-text);
}

.enq-status[data-tone="err"] {
  color: var(--fg);
}
