/* ============================================
   PFT — Shared brand stylesheet
   ============================================ */

:root {
  --bg: #0A0A0A;
  --surface: #141414;
  --surface-2: #1A1A1A;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #F5F4EE;
  --text-dim: #B0AFA8;
  --text-faint: #75746E;
  --accent: #00D26A;
  --accent-glow: rgba(0, 210, 106, 0.35);
  --warn: #FF4D4D;
  --gold: #D4A845;
  --gold-glow: rgba(212, 168, 69, 0.35);
  --font-display: 'Instrument Serif', 'Times New Roman', serif;
  --font-mono: 'JetBrains Mono', 'Menlo', monospace;
  --font-sans: 'Inter Tight', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.035;
  mix-blend-mode: overlay;
}

a { color: inherit; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 2; }

/* === Header === */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo::after {
  content: ''; width: 6px; height: 6px;
  background: var(--gold); box-shadow: 0 0 10px var(--gold-glow);
}
.logo-mark {
  background: var(--text); color: var(--bg);
  font-family: var(--font-mono); font-weight: 700;
  font-size: 18px; letter-spacing: -0.02em;
  padding: 5px 11px 4px; line-height: 1;
}
.nav-links {
  display: flex; gap: 30px;
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.nav-links a {
  color: var(--text-dim); text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }

/* === Buttons === */
.btn {
  font-family: var(--font-mono); font-size: 12px;
  font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 13px 22px;
  border: 1px solid var(--text); background: var(--text);
  color: var(--bg); text-decoration: none; cursor: pointer;
  transition: all 0.2s; display: inline-flex;
  align-items: center; gap: 8px; line-height: 1;
}
.btn:hover { background: transparent; color: var(--text); }
.btn-gold {
  background: var(--gold); border-color: var(--gold);
  color: #1A1207; font-weight: 700; letter-spacing: 0.1em;
  box-shadow: 0 0 0 1px var(--gold), 0 8px 24px rgba(212, 168, 69, 0.18);
}
.btn-gold:hover {
  background: transparent; color: var(--gold); border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold), 0 0 24px rgba(212, 168, 69, 0.32);
}
.btn-ghost {
  background: transparent; color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--text); color: var(--bg); }

/* === Page hero (used on About, Curriculum, etc) === */
.page-hero { padding: 100px 0 80px; border-bottom: 1px solid var(--border); }
.page-tag {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 32px;
  display: inline-flex; align-items: center; gap: 14px;
}
.page-tag::before { content: ''; width: 32px; height: 1px; background: var(--gold); }
.page-hero h1 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(56px, 9vw, 132px); line-height: 0.94;
  letter-spacing: -0.035em; margin-bottom: 32px; max-width: 1100px;
}
.page-hero h1 em { font-style: italic; color: var(--gold); }
.page-hero p {
  font-size: 22px; color: var(--text-dim); max-width: 680px;
  line-height: 1.5; margin-bottom: 40px;
}
.page-hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* === Section base === */
.section { padding: 100px 0; border-bottom: 1px solid var(--border); }
.section-label {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 32px;
  display: flex; align-items: center; gap: 16px;
}
.section-label::before { content: ''; width: 32px; height: 1px; background: var(--text-dim); }
.section-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(40px, 6vw, 72px); line-height: 1;
  letter-spacing: -0.025em; margin-bottom: 28px;
}
.section-title em { font-style: italic; color: var(--gold); }
.section-intro {
  color: var(--text-dim); font-size: 19px;
  max-width: 660px; line-height: 1.6; margin-bottom: 64px;
}

/* === Generic CTA strip === */
.cta-strip {
  text-align: center; padding: 100px 32px;
  background: var(--surface); border: 1px solid var(--gold);
  box-shadow: 0 0 60px rgba(212, 168, 69, 0.08);
  position: relative; overflow: hidden;
}
.cta-strip::before {
  content: ''; position: absolute; top: 0; left: 50%;
  transform: translateX(-50%); width: 280px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.cta-strip h2 {
  font-family: var(--font-display); font-size: clamp(40px, 6vw, 72px);
  letter-spacing: -0.025em; line-height: 1;
  margin-bottom: 24px; font-weight: 400;
}
.cta-strip h2 em { font-style: italic; color: var(--gold); }
.cta-strip p {
  color: var(--text-dim); font-size: 18px; max-width: 540px;
  margin: 0 auto 32px; line-height: 1.55;
}

/* === Footer === */
footer { padding: 80px 0 40px; border-top: 1px solid var(--border); }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 64px;
}
.footer-col h4 {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 22px; font-weight: 500;
}
.footer-col a {
  display: block; color: var(--text); text-decoration: none;
  padding: 7px 0; font-size: 14px; transition: color 0.2s;
}
.footer-col a:hover { color: var(--gold); }
.footer-tagline {
  color: var(--text-dim); font-size: 14px;
  max-width: 340px; line-height: 1.6; margin-top: 18px;
}
.disclaimer-block { padding-top: 36px; border-top: 1px solid var(--border); }
.disclaimer-label {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-faint); margin-bottom: 14px;
}
.disclaimer {
  font-size: 12px; color: var(--text-faint);
  line-height: 1.7; max-width: 980px;
}
.footer-bottom {
  display: flex; justify-content: space-between;
  padding-top: 36px; margin-top: 36px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 11px;
  color: var(--text-faint); letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* === Form inputs === */
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-label {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-dim);
}
.form-input, .form-select, .form-textarea {
  padding: 14px 16px; background: var(--bg);
  border: 1px solid var(--border-strong);
  color: var(--text); font-family: var(--font-mono);
  font-size: 13px; transition: border-color 0.2s;
  font-family: inherit;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--gold);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-faint); }
.form-textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.form-select { appearance: none; -webkit-appearance: none; cursor: pointer; }

/* === Mobile === */
@media (max-width: 900px) {
  .container { padding: 0 20px; }
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .section { padding: 70px 0; }
  .footer-bottom { flex-direction: column; gap: 12px; }
  .page-hero { padding: 70px 0 50px; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
  .cta-strip { padding: 60px 20px; }
}

/* ============================================
   Scroll-triggered animations
   ============================================ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.animate-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================
   Mobile hamburger menu
   ============================================ */
.mobile-toggle {
  display: none;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  align-items: flex-end;
  z-index: 101;
  position: relative;
}
.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s, width 0.3s;
  transform-origin: center;
}
.mobile-toggle span:nth-child(2) { width: 16px; }
.mobile-toggle span:nth-child(3) { width: 20px; }
.mobile-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  width: 24px;
  background: var(--gold);
}
.mobile-toggle.is-open span:nth-child(2) { opacity: 0; }
.mobile-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  width: 24px;
  background: var(--gold);
}

.mobile-panel {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding-top: 80px;
}
.mobile-panel.is-open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-panel-inner {
  width: 100%;
  max-width: 480px;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 36px;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s, padding-left 0.2s;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a.active {
  color: var(--gold);
  padding-left: 12px;
}
.mobile-nav a.active::before {
  content: '◆ ';
  color: var(--gold);
  font-size: 0.5em;
  vertical-align: middle;
}
.mobile-panel-cta {
  padding-top: 32px;
}

@media (max-width: 900px) {
  .mobile-toggle { display: flex; }
  /* Hide the inline CTA on mobile — it lives in the menu panel now */
  header .nav > .btn:last-child { display: none; }
}

/* ============================================
   Custom cursor (desktop only)
   ============================================ */
.pft-cursor,
.pft-cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
}
.pft-cursor {
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  transition: width 0.25s, height 0.25s, border-color 0.25s;
}
.pft-cursor.is-active {
  width: 44px;
  height: 44px;
  border-width: 2px;
  margin-top: -8px;
  margin-left: -8px;
}
.pft-cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--gold-glow);
}

/* Hide the native cursor on supported elements */
@media (hover: hover) and (pointer: fine) {
  html, html a, html button {
    cursor: none;
  }
  /* Restore cursor on form fields for usability */
  input, textarea, select {
    cursor: text;
  }
  input[type=range], select { cursor: pointer; }
}

/* ============================================
   Page transition (fade in on load)
   ============================================ */
@keyframes pageEnter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
header, .page-hero, .hero {
  animation: pageEnter 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.page-hero, .hero { animation-delay: 0.08s; }
