/* ==========================================================================
   Acharya — v2 PROTOTYPE stylesheet (minimalist / Apple-lane exploration)
   NOT part of the one-stylesheet production rule in Docs/DEVELOPER_BRIEF.md —
   this file exists only inside /new-site/v2/ for side-by-side comparison.
   If this direction is approved, its tokens fold back into site.css and this
   file is deleted. Mobile-first: base = 360–420px, min-width steps at
   480 / 768 / 1024 / 1440.
   ========================================================================== */

:root {
  /* Near-monochrome palette. Orange appears in exactly three places on this
     page: the CTA buttons, the duotone hero photo, and lit-up words in the
     scroll statement. Nowhere else. */
  --ink:        #0B0B0C;   /* body/headings on white, ~19.5:1 */
  --ink-soft:   #55565B;   /* secondary text on white, ~7.1:1 */
  --paper:      #FFFFFF;
  --paper-soft: #F4F4F2;
  --line:       #E4E4E1;
  --surface-dark: #0B0B0C;
  --on-dark:    #F4F4F2;
  --accent:     #F49323;   /* brand orange — CTAs + reveal moments only */
  --accent-dark:#9A5300;   /* orange text on white, 5.8:1 — same AA pair as production site.css */
  --accent-on-dark: #F8AC4F; /* 9.3:1 on dark, same as production site.css */
  --focus:      #1A56DB;

  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  /* Bigger, fewer sizes than the production scale — Apple-style typographic
     confidence. Mobile-first values; scaled up at breakpoints below. */
  --text-hero: 2.4rem;
  --text-display: 1.9rem;
  --text-h2: 1.5rem;
  --text-body: 1.0625rem;
  --text-small: 0.9rem;

  --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px;
  --space-6: 32px; --space-7: 48px; --space-8: 64px; --space-9: 96px;

  --header-h: 56px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body.v2 {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

.v2 img { max-width: 100%; height: auto; display: block; }
.v2 p { margin: 0 0 var(--space-4); color: var(--ink-soft); }
.v2 h1, .v2 h2, .v2 h3 { font-family: var(--font-head); line-height: 1.1; margin: 0; color: var(--ink); letter-spacing: -0.01em; }

.v2 a { color: var(--accent-dark); }
.v2 :focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  .v2 *, .v2 *::before, .v2 *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

.v2-skip {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--ink); color: var(--on-dark); padding: var(--space-3) var(--space-4);
}
.v2-skip:focus { left: var(--space-3); top: var(--space-3); }

.v2-container { max-width: 1180px; margin: 0 auto; padding: 0 var(--space-4); }

/* ---------- Prototype banner (internal use only, remove on approval) ---------- */
.v2-banner {
  background: var(--ink); color: var(--on-dark); text-align: center;
  font-size: var(--text-small); padding: var(--space-2) var(--space-4);
}
.v2-banner a { color: var(--accent-on-dark); }

/* ---------- Header ---------- */
.v2-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(255,255,255,0);
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
}
.v2-header.is-scrolled {
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--line);
}
.v2-header .v2-container { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.v2-header img { height: 20px; width: auto; }
.v2-nav-links { display: none; }
.v2-header nav ul { list-style: none; display: flex; gap: var(--space-6); margin: 0; padding: 0; }
.v2-header nav a { color: var(--ink); text-decoration: none; font-size: var(--text-small); }
.v2-header nav a:hover { color: var(--accent-dark); }

.v2-header-cta {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 0 var(--space-4);
  border-radius: 999px; background: var(--ink); color: var(--on-dark) !important;
  text-decoration: none; font-size: var(--text-small); font-weight: 500;
}

.v2-menu-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; background: none; border: 0; cursor: pointer; color: var(--ink);
}

/* ---------- Hero with duotone → colour scroll reveal ---------- */
.v2-hero {
  position: relative;
  height: 92vh;
  min-height: 480px;
  overflow: hidden;
  display: flex; align-items: flex-end;
}
.v2-hero-media { position: absolute; inset: 0; }
.v2-hero-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 65%;
}
/* Bottom layer: desaturated / tinted toward the brand orange — a cheap,
   dependency-free "duotone" using chained CSS filters (no SVG filter needed,
   works in every evergreen mobile browser). */
.v2-hero-media .is-duo {
  filter: grayscale(1) contrast(1.15) brightness(0.85) sepia(0.45) hue-rotate(-15deg) saturate(2.4);
}
/* Top layer: true colour, starts invisible. JS raises its opacity as the
   hero scrolls past — this is the "image changes from two-tone to full
   colour" effect. If JS is off or reduced-motion is set, this file's own
   .no-js / reduced-motion rule below shows full colour immediately. */
.v2-hero-media .is-color { opacity: 0; will-change: opacity; }
.v2-hero-media .v2-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11,11,12,.78) 0%, rgba(11,11,12,.25) 45%, rgba(11,11,12,0) 70%);
}
@media (prefers-reduced-motion: reduce) {
  .v2-hero-media .is-color { opacity: 1; }
}
.no-js .v2-hero-media .is-color { opacity: 1; }
.no-js .v2-hero-media .is-duo { display: none; }

.v2-hero-content {
  position: relative; z-index: 2;
  padding: 0 var(--space-4) var(--space-8);
  color: var(--on-dark);
  width: 100%;
}
.v2-hero-content h1 {
  font-size: var(--text-hero);
  color: var(--on-dark);
  max-width: 14ch;
  margin-bottom: var(--space-4);
}
.v2-hero-content p {
  color: rgba(244,244,242,.88);
  max-width: 34ch;
  font-size: 1rem;
  margin-bottom: var(--space-6);
}
.v2-scroll-cue {
  position: absolute; left: 50%; bottom: var(--space-5); transform: translateX(-50%);
  color: rgba(244,244,242,.7); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-size: .75rem; letter-spacing: .04em; text-transform: uppercase;
}
.v2-scroll-cue svg { animation: v2-bob 1.8s ease-in-out infinite; }
@keyframes v2-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ---------- Buttons ---------- */
.v2-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 var(--space-6);
  border-radius: 999px; text-decoration: none; font-weight: 600; font-size: var(--text-body);
  border: 1px solid transparent; transition: transform .15s ease, background .15s ease;
}
.v2-btn-primary { background: var(--accent); color: #1A1200; }
.v2-btn-primary:hover { background: #FFA83D; }
.v2-btn-ghost-on-dark { border-color: rgba(244,244,242,.55); color: var(--on-dark); }
.v2-btn-ghost-on-dark:hover { border-color: var(--on-dark); background: rgba(244,244,242,.08); }
.v2-btn-ghost { border-color: var(--line); color: var(--ink); }
.v2-btn-ghost:hover { border-color: var(--ink); }
.v2-hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* ---------- Sticky word-reveal statement ---------- */
.v2-statement-wrap {
  position: relative;
  height: 220vh;
  background-color: var(--paper);
  background-size: cover;
  background-position: center center;
}
.v2-statement-pin {
  position: sticky; top: 0; height: 50vh;
  display: flex; align-items: center; justify-content: center;
  padding: 0 var(--space-5);
}
.v2-statement {
  max-width: 20ch; text-align: center;
  font-family: var(--font-head);
  font-size: var(--text-display);
  line-height: 1.3;
}
.v2-statement .word { opacity: .16; transition: opacity .2s linear; }
.v2-statement .word.is-lit { opacity: 1; }
.v2-statement .word.is-accent.is-lit { color: var(--accent-dark); }
@media (max-width: 767px) {
  .v2-statement-wrap {
    height: 160vh;
    background-size: 100% auto;
    background-position: top center;
  }
}
@media (prefers-reduced-motion: reduce) {
  .v2-statement-wrap { height: auto; padding: var(--space-9) 0; }
  .v2-statement-pin { position: static; height: auto; }
  .v2-statement .word { opacity: 1; }
  .v2-statement .word.is-accent { color: var(--accent-dark); }
}

/* ---------- Reveal-on-scroll (fade + rise) ---------- */
.v2-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.v2-reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .v2-reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Section rhythm ---------- */
.v2-section { padding: var(--space-9) 0; }
.v2-section-dark { background: var(--surface-dark); color: var(--on-dark); }
.v2-section-dark h2, .v2-section-dark p { color: var(--on-dark); }
.v2-kicker {
  display: block; font-size: var(--text-small); color: var(--ink-soft);
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: var(--space-3);
}
.v2-section-dark .v2-kicker { color: rgba(244,244,242,.6); }
.v2-section-head { max-width: 40ch; margin-bottom: var(--space-7); }
.v2-section-head h2 { font-size: var(--text-display); margin-bottom: var(--space-3); }

/* ---------- Institution minimal grid ---------- */
.v2-inst-grid {
  display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line);
  border: 1px solid var(--line);
}
.v2-inst-card {
  position: relative; background: var(--paper); aspect-ratio: 2/3; overflow: hidden;
  text-decoration: none; display: flex; align-items: flex-end;
}
.v2-inst-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter .3s ease, transform .4s ease; }
.v2-inst-card:hover img, .v2-inst-card:focus-visible img { filter: grayscale(0); transform: scale(1.04); }
.v2-inst-card .v2-scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(11,11,12,.75), rgba(11,11,12,0) 60%);}
.v2-inst-card span { position: relative; z-index: 1; color: var(--on-dark); padding: var(--space-4); font-family: var(--font-head); font-size: .95rem; }

/* ---------- Campus-life vertical story ---------- */
.v2-story-item { display: grid; gap: var(--space-4); align-items: center; margin-bottom: var(--space-8); }
.v2-story-item img { border-radius: 16px; aspect-ratio: 4/3; object-fit: cover; }
.v2-story-item h3 { font-size: var(--text-h2); margin-bottom: var(--space-2); }
.v2-story-item:last-child { margin-bottom: 0; }

/* ---------- Closing CTA ---------- */
.v2-closing { text-align: center; }
.v2-closing h2 { font-size: var(--text-display); max-width: 16ch; margin: 0 auto var(--space-6); }
.v2-closing .v2-hero-actions { justify-content: center; }

/* ---------- Footer ---------- */
.v2-footer { border-top: 1px solid var(--line); padding: var(--space-7) 0; }
.v2-footer .v2-container { display: flex; flex-direction: column; gap: var(--space-4); font-size: var(--text-small); color: var(--ink-soft); }
.v2-footer a { color: var(--ink-soft); }
.v2-footer-links { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.v2-back-link { display: inline-block; margin-top: var(--space-2); font-weight: 600; color: var(--accent-dark); }

/* ---------- Floating single CTA (mobile thumb reach) ---------- */
.v2-float-cta {
  position: fixed; right: var(--space-4); bottom: var(--space-4); z-index: 90;
  min-height: 48px; padding: 0 var(--space-5);
  border-radius: 999px; background: var(--ink); color: var(--on-dark);
  display: inline-flex; align-items: center; font-weight: 600; text-decoration: none;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.v2-float-cta:hover { background: #000; }

/* =========================== Breakpoints =========================== */
@media (min-width: 480px) {
  :root { --text-hero: 2.8rem; --text-display: 2.1rem; }
}

@media (min-width: 768px) {
  :root {
    --text-hero: 3.6rem; --text-display: 2.5rem; --text-h2: 1.75rem;
  }
  .v2-nav-links { display: block; }
  .v2-menu-btn { display: none; }
  .v2-hero-content p { font-size: 1.125rem; }
  .v2-inst-grid { grid-template-columns: repeat(3, 1fr); }
  .v2-story-item { grid-template-columns: 1fr 1fr; }
  .v2-story-item:nth-child(even) .v2-story-media { order: 2; }
}

@media (min-width: 1024px) {
  :root { --text-hero: 4.4rem; --text-display: 3rem; }
  .v2-inst-grid { grid-template-columns: repeat(4, 1fr); }
  .v2-hero-content { padding-bottom: var(--space-9); }
}

@media (min-width: 1440px) {
  .v2-container { max-width: 1320px; }
}

/* colour */
.v2-inst-card img{
    filter: grayscale(100%);
    transition: filter .6s ease;
}
.v2-inst-card.active img{
    filter: grayscale(0%);
}
/* Desktop */
@media (min-width:768px) {
    .v2-inst-card:hover img {
        filter: grayscale(0);
    }
}
/* Mobile */
@media (max-width:767px) {
    .v2-inst-card.active img {
        filter: grayscale(0);
    }
}
