/* =========================================================
   BASE — reset, typography, utility classes
   ========================================================= */

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

html {
  scroll-behavior: auto; /* Lenis handles smooth scroll */
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background var(--dur-med) var(--ease-out), color var(--dur-med) var(--ease-out);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
svg { display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-primary);
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-weight: 700;
}
html[data-theme="dark"] h1, html[data-theme="dark"] h2, html[data-theme="dark"] h3, html[data-theme="dark"] h4 { color: var(--color-white); }

h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 600; }

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

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 1.75rem;
}

.text-gradient {
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-secondary-dark);
  background: rgba(0, 174, 239, 0.09);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.1rem;
}

.section-head {
  max-width: 680px;
  margin: 0 0 3.5rem;
}
.section-head h2 { margin-bottom: 1rem; }

section {
  padding: var(--space-section) 0;
  position: relative;
}

/* Reveal-on-scroll base state (animated via GSAP) */
[data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  will-change: transform, opacity;
}
[data-mask-reveal] { overflow: hidden; }

/* Cursor: hide native cursor on devices with fine pointer */
@media (hover: hover) and (pointer: fine) {
  body, a, button { cursor: none; }
}

::selection { background: var(--color-accent); color: var(--color-primary); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Placeholder photo blocks (swap for real photography) */
.ph-block {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: inherit;
  color: rgba(255,255,255,0.85);
  font-size: 2.5rem;
  background: var(--gradient-brand);
}
.ph-block--counsellor { background: linear-gradient(150deg, #1A1A1A, #4A4A4A); }
.ph-block--campus { background: linear-gradient(150deg, #3A3A3A, #1A1A1A); color: var(--color-primary); }
