/* ==========================================================================
   Jahnavi Dalmia · Portfolio
   style.css — loaded AFTER Bootstrap 5.3 so every rule here wins.
   1. Design tokens   2. Bootstrap remap   3. Base & typography
   4. Buttons          5. Header / nav       6. Hero
   7. Sidebar tabs     8. Panels             9. Tab-specific components
   10. Footer          11. Modals           12. Motion   13. Responsive
   ========================================================================== */

/* 1. DESIGN TOKENS -------------------------------------------------------- */
:root {
  --primary-color:   #9a5a6c;   /* mauve: active tab, solid buttons, "in motion" */
  --primary-dark:    #7f4757;
  --secondary-color: #f1e3e5;   /* soft rose: hover tab background */
  --accent-color:    #a8677a;   /* outline buttons / accent text */
  --bg-color:        #faf6f3;   /* warm paper */
  --surface-color:   #fffdfb;
  --text-color:      #1f1519;   /* aubergine-black */
  --muted-color:     #6d6267;
  --line-color:      #e4dad6;

  --font-heading: "Newsreader", "Times New Roman", serif;
  --font-body:    "Figtree", system-ui, sans-serif;

  --border-radius-custom: 4px;
  --shadow-custom: 0 18px 40px -24px rgba(60, 25, 38, .35);
  --ease-out: cubic-bezier(.22, 1, .36, 1);      /* entrances: long, soft landing */
  --ease-smooth: cubic-bezier(.45, 0, .2, 1);     /* hover / active: gentle in AND out */
  --dur-hover: .55s;
  --dur-press: .18s;
}

/* 2. BOOTSTRAP VARIABLE REMAP (no Bootstrap source is edited) ------------- */
:root {
  --bs-primary: var(--primary-color);
  --bs-primary-rgb: 154, 90, 108;
  --bs-secondary: var(--muted-color);
  --bs-secondary-rgb: 109, 98, 103;
  --bs-body-bg: var(--bg-color);
  --bs-body-color: var(--text-color);
  --bs-body-font-family: var(--font-body);
  --bs-border-color: var(--line-color);
  --bs-link-color: var(--primary-color);
  --bs-link-color-rgb: 154, 90, 108;
  --bs-link-hover-color: var(--primary-dark);
  --bs-link-hover-color-rgb: 127, 71, 87;
  --bs-focus-ring-color: rgba(154, 90, 108, .3);
  --bs-border-radius: var(--border-radius-custom);
}

/* 3. BASE & TYPOGRAPHY ---------------------------------------------------- */
html { scroll-behavior: smooth; }
body {
  background: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, .brand { font-family: var(--font-heading); font-weight: 400; letter-spacing: -.015em; color: var(--text-color); }
a { color: var(--primary-color); text-decoration: none; }
::selection { background: var(--secondary-color); color: var(--primary-dark); }

.eyebrow {
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted-color);
  margin-bottom: .5rem;
}
.eyebrow-lg { /* "Thirteen years. One constant." */
  font-size: 1.05rem;
  text-transform: none;
  letter-spacing: .24em;
  font-weight: 400;
  color: #4e4449;
}
.accent { color: var(--primary-color); font-style: normal; }
.text-muted-custom { color: var(--muted-color); }

.skip-link { position: absolute; top: .5rem; left: .5rem; z-index: 2000; background: var(--primary-color); color: #fff; padding: .5rem 1rem; }

/* 4. BUTTONS -------------------------------------------------------------- */
.btn-line, .btn-solid {
  --btn-px: 1.4rem;
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-body);
  font-size: 1rem; font-weight: 400;
  padding: .72rem var(--btn-px);
  border-radius: var(--border-radius-custom);
  position: relative; overflow: hidden; isolation: isolate;
  transition: color var(--dur-hover) var(--ease-smooth), border-color var(--dur-hover) var(--ease-smooth), box-shadow var(--dur-hover) var(--ease-smooth), transform var(--dur-hover) var(--ease-smooth);
  will-change: transform; backface-visibility: hidden;
}
.btn-line { color: var(--accent-color); border: 1px solid #d7b9c1; background: transparent; }
.btn-solid { color: #fff; border: 1px solid var(--primary-color); background: var(--primary-color); }
.btn-line::before, .btn-solid::before { /* sweep fill on hover */
  content: ""; position: absolute; inset: 0; z-index: -1;
  transform: scaleX(0); transform-origin: right;
  transition: transform .7s var(--ease-smooth);
}
.btn-line::before  { background: var(--primary-color); }
.btn-solid::before { background: var(--primary-dark); }
.btn-line:hover, .btn-line:focus-visible { color: #fff; border-color: var(--primary-color); }
.btn-solid:hover, .btn-solid:focus-visible { color: #fff; box-shadow: var(--shadow-custom); }
.btn-line:hover::before, .btn-solid:hover::before,
.btn-line:focus-visible::before, .btn-solid:focus-visible::before { transform: scaleX(1); transform-origin: left; }
.btn-line:active, .btn-solid:active { transform: scale(.975); transition-duration: var(--dur-press); }
.btn-line:focus-visible, .btn-solid:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 3px; }
.btn .arrow { flex: none; transition: transform var(--dur-hover) var(--ease-smooth); }
.btn:hover .arrow { transform: translate(3px, -3px); }
.btn-sm-line { --btn-px: 1.1rem; padding-top: .55rem; padding-bottom: .55rem; font-size: .95rem; }
.btn-expand { gap: .9rem; padding: .78rem 1.35rem; }
.btn-sm-line .when-open { display: none; }
.btn-sm-line[aria-expanded="true"] .when-open { display: inline; }
.btn-sm-line[aria-expanded="true"] .when-closed { display: none; }

/* 5. HEADER / NAV --------------------------------------------------------- */
.site-header { padding-top: 1rem; }
.site-header .navbar { padding: 0 12px; }
.brand { font-size: 2.15rem; color: var(--text-color); line-height: 1; letter-spacing: -.02em; }
.brand:hover { color: var(--text-color); }
.brand-sm { font-size: 1.4rem; }

.main-nav { gap: 1.6rem; }
.main-nav .nav-link {
  color: var(--text-color); font-size: 1rem; padding: .35rem .15rem !important;
  position: relative;
}
.main-nav .nav-link::after { /* underline draws from left on hover */
  content: ""; position: absolute; left: .15rem; right: .15rem; bottom: .1rem; height: 1px;
  background: var(--primary-color); transform: scaleX(0); transform-origin: right;
  transition: transform .6s var(--ease-smooth);
}
.main-nav .nav-link { transition: color .45s var(--ease-smooth); }
.main-nav .nav-link:hover, .main-nav .nav-link.is-current { color: var(--primary-color); }
.main-nav .nav-link:hover::after, .main-nav .nav-link.is-current::after { transform: scaleX(1); transform-origin: left; }
.nav-divider { display: inline-block; width: 1px; height: 38px; background: var(--line-color); margin: 0 2rem 0 2.2rem; }
.site-footer .nav-divider { margin: 0; height: 44px; }

.menu-toggle { border: 0; color: var(--text-color); padding: .25rem; }
.menu-toggle:focus { box-shadow: 0 0 0 .2rem var(--bs-focus-ring-color); }
.mobile-menu { background: var(--bg-color); }
.mobile-link { font-family: var(--font-heading); font-size: 2rem; color: var(--text-color); padding: .4rem 0; border-bottom: 1px solid var(--line-color); }
.mobile-link { transition: color .45s var(--ease-smooth), transform .55s var(--ease-smooth); }
.mobile-link:hover { color: var(--primary-color); transform: translateX(.4rem); }

/* 6. HERO ----------------------------------------------------------------- */
.hero { padding-top: 1.1rem; padding-bottom: 1.6rem; }
.img-frame { margin: 0; overflow: hidden; background: #e9e0dc; position: relative; }
.img-frame img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.4s var(--ease-smooth); will-change: transform; backface-visibility: hidden; }
.img-frame:hover img { transform: scale(1.04); }
.hero-photo { aspect-ratio: 440 / 285; }
.hero-photo img { object-position: 50% 12%; }

.hero-title {
  font-size: clamp(2.8rem, 5.6vw, 5.1rem);
  line-height: .98; letter-spacing: -.035em;
  margin: 0 0 1.1rem;
}
.hero-title .line { display: block; }
.hero-title .accent { font-style: normal; }
.hero-sub { font-size: 1.32rem; color: #4e4449; margin-bottom: .45rem; line-height: 1.35; }

.stats { display: flex; margin: 1.6rem 0 0; }
.stat { padding-right: 2.8rem; margin-right: 2.6rem; border-right: 1px solid var(--line-color); }
.stat:last-child { border: 0; margin: 0; padding: 0; }
.stat dd { margin: 0; }
.stat-num { font-family: var(--font-heading); font-size: 2.3rem; line-height: 1; margin-bottom: .55rem !important; font-variant-numeric: lining-nums; }
.stat-label { font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted-color); }

/* 7. SIDEBAR TABS --------------------------------------------------------- */
.portfolio { border-top: 1px solid var(--line-color); padding-top: 1.4rem; }
.sidebar { padding-right: 1.6rem; border-right: 1px solid var(--line-color); }
.side-nav { flex-direction: column; gap: .5rem; }
.side-link {
  display: block; width: 100%; text-align: left;
  background: transparent; border: 0; border-radius: var(--border-radius-custom);
  color: var(--text-color); font-size: 1.32rem; font-family: var(--font-body);
  padding: .55rem .85rem; line-height: 1.4;
  position: relative; z-index: 1;
  transition: background-color var(--dur-hover) var(--ease-smooth), color .5s var(--ease-smooth);
}
.side-label { display: inline-block; transition: transform var(--dur-hover) var(--ease-smooth); }
.side-link:hover .side-label { transform: translateX(.25rem); }
.side-link:active .side-label { transform: translateX(.25rem) scale(.98); transition-duration: var(--dur-press); }
/* Pill that glides to the active tab (positioned by script.js) */
.side-nav { position: relative; }
.side-indicator {
  position: absolute; top: 0; left: 0; z-index: 0; pointer-events: none;
  background: var(--primary-color); border-radius: var(--border-radius-custom); box-shadow: var(--shadow-custom);
  transition: transform .65s var(--ease-smooth), width .65s var(--ease-smooth), height .65s var(--ease-smooth), opacity .3s;
  will-change: transform;
}
.has-indicator .side-link.active { background: transparent; box-shadow: none; }
/* text turns white as the pill arrives, not before it */
.has-indicator .side-link.active { transition: background-color var(--dur-hover) var(--ease-smooth), color .45s var(--ease-smooth) .22s; }
.side-link:hover { background: var(--secondary-color); color: var(--primary-color); }
.side-link.active { background: var(--primary-color); color: #fff; box-shadow: var(--shadow-custom); }
.side-link.active, .side-link.active:hover { color: #fff; }
.has-indicator .side-link.active:hover { background: transparent; }
.side-link.active:hover .side-label { transform: none; }
.side-link:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 2px; }
.side-quote {
  margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line-color);
  font-family: var(--font-heading); font-style: italic; font-size: 1.1rem; line-height: 1.25; color: var(--muted-color);
}

/* 8. PANELS --------------------------------------------------------------- */
.panels { padding-left: 3rem; padding-bottom: 1.5rem; min-height: 540px; }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.panel-title { font-size: clamp(2.6rem, 4.2vw, 3.5rem); line-height: 1; margin: 0 0 .7rem; letter-spacing: -.03em; cursor: default; }
.prose p { color: #3c3236; }
.lead-serif { font-family: var(--font-heading); font-size: 1.55rem; line-height: 1.3; color: var(--text-color) !important; }
.small-serif { font-size: 1.25rem; }
.verse { border-left: 2px solid var(--secondary-color); padding-left: 1.1rem; font-family: var(--font-heading); font-size: 1.2rem; line-height: 1.5; }
.sub-head { font-size: 1.55rem; margin: 2rem 0 .8rem; }
.quote-serif { font-family: var(--font-heading); font-style: italic; font-size: 1.6rem; line-height: 1.2; color: #3a2f34; }
.pull-quote {
  font-family: var(--font-heading); font-style: italic; font-size: 1.5rem; line-height: 1.3;
  color: var(--primary-dark); border-left: 2px solid var(--primary-color);
  padding: .2rem 0 .2rem 1.2rem; margin: 0 0 1.8rem;
}
.pull-quote-wide { font-size: 1.9rem; margin-top: 2rem; }

/* 9. TAB-SPECIFIC COMPONENTS ---------------------------------------------- */
/* Dance */
.media-landscape { aspect-ratio: 4 / 4.3; }   /* taller so the full mudra + face are visible */
.media-strip { aspect-ratio: 4 / 3.4; width: 100%; border: 0; padding: 0; display: block; }
@media (min-width: 1200px) {
  .col-w46 { flex: 0 0 46.5%; max-width: 46.5%; }
  .col-w51 { flex: 0 0 51%; max-width: 51%; }
}
.feature-title { font-size: clamp(2rem, 3vw, 2.6rem); line-height: 1.05; margin: .1rem 0 1rem; letter-spacing: -.025em; }
.feature-copy { font-size: 1.2rem; color: #5a5055; line-height: 1.45; margin-bottom: 1rem; }
.short-rule { display: block; width: 46px; height: 1px; background: var(--line-color); margin: 1.1rem 0 1.4rem; }
.play-btn {
  position: absolute; inset: 0; margin: auto; width: 50px; height: 50px; border-radius: 50%;
  background: #fff; color: var(--text-color); display: grid; place-items: center; padding-left: 3px;
  box-shadow: 0 8px 26px rgba(0,0,0,.25);
  transition: transform .6s var(--ease-smooth), background .5s var(--ease-smooth), color .5s var(--ease-smooth);
}
.play-btn::after { /* pulse ring */
  content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid rgba(255,255,255,.7);
  animation: pulse 2.4s var(--ease-out) infinite;
}
.play-frame { cursor: pointer; }
.play-frame:hover .play-btn, .play-frame:focus-visible .play-btn { transform: scale(1.12); background: var(--primary-color); color: #fff; }
.play-frame:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 3px; }

/* About */
.shift-list { list-style: none; padding: 0; margin: 0 0 2.2rem; border-top: 1px solid var(--line-color); }
.shift-list li {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .8rem;
  padding: 1.05rem 0; border-bottom: 1px solid var(--line-color);
  font-size: .8rem; letter-spacing: .2em; text-transform: uppercase;
}
.shift-list i { font-style: normal; color: var(--muted-color); transition: transform .6s var(--ease-smooth); }
.shift-list li:hover i { transform: translateX(6px); }
.shift-list .accent { font-weight: 600; }

/* Research */
.paper-card {
  height: 100%; background: var(--surface-color); border: 1px solid var(--line-color);
  border-radius: var(--border-radius-custom); padding: 2rem 2rem 1.8rem; position: relative;
  transition: box-shadow .7s var(--ease-smooth), border-color .7s var(--ease-smooth), transform .7s var(--ease-smooth);
  will-change: transform;
}
.paper-card:hover { box-shadow: var(--shadow-custom); border-color: #dcc6cc; transform: translateY(-4px); }
.paper-no { font-family: var(--font-heading); font-size: 1rem; color: var(--primary-color); letter-spacing: .1em; display: block; margin-bottom: .9rem; }
.card-title-serif { font-size: 1.7rem; line-height: 1.15; margin-bottom: 1rem; }
.paper-card p { color: #4a3f44; }

/* Internships */
.week-accordion { --bs-accordion-bg: transparent; --bs-accordion-border-color: var(--line-color); --bs-accordion-active-bg: transparent; --bs-accordion-active-color: var(--primary-color); --bs-accordion-btn-focus-box-shadow: 0 0 0 .2rem var(--bs-focus-ring-color); border-top: 1px solid var(--line-color); }
.week-accordion .accordion-button { font-family: var(--font-body); font-size: 1.05rem; padding: 1.1rem 0; gap: 1rem; background: transparent; color: var(--text-color); }
.week-accordion .accordion-button:not(.collapsed) { color: var(--primary-color); box-shadow: none; }
.week-accordion .accordion-body { padding: 0 0 1.3rem 4.3rem; color: #4a3f44; }
.week-score { font-family: var(--font-heading); font-size: 1.15rem; min-width: 3.3rem; color: var(--primary-color); }

/* Journey timeline */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 1.45rem; top: .6rem; bottom: .6rem; width: 1px; background: var(--line-color); }
.timeline li { display: grid; grid-template-columns: 3rem 1fr; gap: 1.6rem; padding-bottom: 1.8rem; position: relative; }
.t-no {
  width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; z-index: 1;
  background: var(--bg-color); border: 1px solid #d7b9c1; color: var(--primary-color);
  font-family: var(--font-heading); font-size: 1.05rem;
  transition: background .5s var(--ease-smooth), color .5s var(--ease-smooth), transform .6s var(--ease-smooth);
}
.timeline li:hover .t-no { background: var(--primary-color); color: #fff; transform: scale(1.08); }
.timeline h3 { font-size: 1.5rem; margin: .55rem 0 .4rem; }
.timeline p { color: #4a3f44; max-width: 62ch; margin: 0; }

/* Awards */
.award-highlight {
  display: flex; gap: 1.8rem; align-items: center; padding: 1.6rem 1.8rem;
  background: var(--surface-color); border: 1px solid var(--line-color); border-left: 3px solid var(--primary-color);
  border-radius: var(--border-radius-custom);
}
.award-big { font-family: var(--font-heading); font-size: 4.6rem; line-height: .9; color: var(--primary-color); }
.award-big sup { font-size: .35em; top: -1.4em; }
.list-head { font-family: var(--font-body); font-size: .78rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-color); margin-bottom: .8rem; }
.award-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line-color); }
.award-list li {
  display: grid; grid-template-columns: 1fr auto; column-gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line-color);
  position: relative;
}
.award-list li::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--secondary-color), transparent 70%); opacity: 0; transition: opacity .6s var(--ease-smooth); z-index: -1; }
.award-list li > * { transition: transform .6s var(--ease-smooth); }
.award-list li > p{
    min-height: 54px;
}
.award-list li > span, .award-list li > small { transform-origin: left; }
.award-list li:hover::before { opacity: 1; }
.award-list li:hover > span, .award-list li:hover > small { transform: translateX(.6rem); }
.award-list { isolation: isolate; }
.award-list small { grid-column: 1; color: var(--muted-color); font-size: .85rem; }
.badge-pos { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-weight: 500; font-size: .85rem; color: var(--primary-color); border: 1px solid #d7b9c1; border-radius: 99px; padding: .2rem .75rem; white-space: nowrap; }
.badge-pos.muted { color: var(--muted-color); border-color: var(--line-color); }

/* Gallery */
.gallery-item { display: block; width: 100%; padding: 0; border: 0; background: #e9e0dc; aspect-ratio: 4 / 5; overflow: hidden; position: relative; border-radius: var(--border-radius-custom); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-smooth); will-change: transform; backface-visibility: hidden; }
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.06); }
.g-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1.1rem 1rem; text-align: left;
  font-family: var(--font-heading); font-style: italic; font-size: 1.15rem; color: #fff;
  background: linear-gradient(transparent, rgba(31, 21, 25, .75));
  transform: translateY(30%); opacity: 0; transition: transform .7s var(--ease-smooth), opacity .6s var(--ease-smooth);
}
.gallery-item:hover .g-cap, .gallery-item:focus-visible .g-cap { transform: none; opacity: 1; }

/* 10. FOOTER -------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line-color); padding-top: 1.1rem; padding-bottom: 1.5rem; margin-top: .5rem; }

/* 11. MODALS -------------------------------------------------------------- */
.modal-content { background: var(--bg-color); border: 0; border-radius: var(--border-radius-custom); box-shadow: 0 30px 80px -30px rgba(40, 15, 25, .5); }
.modal-header { border-bottom: 1px solid var(--line-color); padding: 1.6rem 2rem 1.2rem; align-items: flex-start; }
.modal-body { padding: 1.8rem 2rem 2.2rem; }
.modal-backdrop.show { opacity: .55; }
.modal-backdrop { --bs-backdrop-bg: #2a1a20; }
.word-row { font-size: .78rem !important; letter-spacing: .2em; text-transform: uppercase; color: var(--primary-color) !important; margin: 1.4rem 0; }
.split-banner { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1.5rem; align-items: center; text-align: center; margin: 2.2rem 0 1.6rem; padding: 1.4rem 0; border-top: 1px solid var(--line-color); border-bottom: 1px solid var(--line-color); color: var(--muted-color); }
.split-banner strong { font-family: var(--font-heading); font-weight: 400; font-size: 1.6rem; color: var(--primary-color); }
.num-list, .dash-list { padding-left: 1.2rem; color: #4a3f44; }
.num-list li, .dash-list li { margin-bottom: .7rem; padding-left: .3rem; }
.num-list li::marker { font-family: var(--font-heading); color: var(--primary-color); }
.dash-list { list-style: "— "; }
.download-box { background: var(--surface-color); border: 1px solid var(--line-color); padding: 1.5rem; border-radius: var(--border-radius-custom); margin-top: 1.5rem; }
.perf-media { aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--border-radius-custom); }
.perf-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.lightbox-content { overflow: hidden; }
.lightbox-content img { width: 100%; max-height: 78vh; object-fit: contain; background: #1f1519; }
.lightbox-close { position: absolute; top: .8rem; right: .8rem; z-index: 2; background-color: #fff; border-radius: 50%; padding: .6rem; opacity: .9; }

/* 12. MOTION -------------------------------------------------------------- */
/* Scroll reveal: fade + rise + de-blur. Activated by script.js via .is-in */
.js .reveal {
  opacity: 0; transform: translate3d(0, 28px, 0);
  transition: opacity 1.1s var(--ease-out), transform 1.2s var(--ease-out);
  will-change: opacity, transform;
  transition-delay: var(--d, 0s);
}
.js .reveal.is-in { opacity: 1; transform: none; will-change: auto; }

/* Image mask reveal (curtain lifts). The clip sits on the <img>, not the
   observed wrapper, because IntersectionObserver ignores fully clipped boxes. */
.js .reveal[data-reveal="mask"] { opacity: 1; filter: none; transform: none; background: transparent; }
.js .reveal[data-reveal="mask"] img {
  clip-path: inset(0 0 100% 0); transform: scale(1.15);
  transition: clip-path 1.3s var(--ease-out), transform 1.6s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.js .reveal[data-reveal="mask"].is-in img { clip-path: inset(0 0 0 0); transform: scale(1); }
.js .reveal[data-reveal="mask"].is-in:hover img { transform: scale(1.04); transition: transform 1.4s var(--ease-smooth); transition-delay: 0s; }

/* Eyebrow tracking "breathes" open when it enters */
.js .panel-head .eyebrow { letter-spacing: .05em; opacity: 0; transition: letter-spacing 1.4s var(--ease-out), opacity 1s ease; }
.js .tab-pane.is-live .panel-head .eyebrow { letter-spacing: .24em; opacity: 1; transition-delay: .25s; }

/* Split-word text (hero + panel titles): each word rises from behind a mask */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.w > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--i) * 70ms + var(--base, 0ms)); }
.is-split.is-in .w > span { transform: none; }

/* Hover letter wave on section titles */
.ch { display: inline-block; transition: transform .6s var(--ease-smooth), color .6s var(--ease-smooth); transition-delay: calc(var(--c) * 14ms); }
[data-hover-letters]:hover .ch { transform: translateY(-.08em); color: var(--primary-color); }

/* Hero accent gradient sheen on hover */
.hero-title .accent .w > span {
  background: linear-gradient(100deg, var(--primary-color) 40%, #d39aaa 50%, var(--primary-color) 60%) 100% 0 / 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: transform 1.1s var(--ease-out), background-position 1.4s var(--ease-out);
  transition-delay: calc(var(--i) * 70ms + var(--base, 0ms)), 0s;
}
.hero-title:hover .accent .w > span { background-position: 0 0; }

/* Tab switch: pane content glides in */
.tab-pane.fade { transition: opacity .35s var(--ease-smooth); }
.tab-pane.active .panel-head { animation: rise .9s var(--ease-out) both; }
.tab-content { transition: height .6s var(--ease-smooth); }   /* height eased by script.js */

/* Accordion & "Read more": slower, eased height + content fade/slide */
.collapsing { transition: height .6s var(--ease-smooth) !important; }
.accordion-collapse > .accordion-body, .paper-card .collapse > * {
  transition: opacity .55s var(--ease-smooth), transform .6s var(--ease-smooth);
}
.accordion-collapse:not(.show) > .accordion-body,
.paper-card .collapse:not(.show) > * { opacity: 0; transform: translateY(-8px); }
.accordion-collapse.collapsing > .accordion-body,
.paper-card .collapsing > * { opacity: 0; transform: translateY(-8px); }
.accordion-collapse.show > .accordion-body, .paper-card .collapse.show > * { opacity: 1; transform: none; transition-delay: .12s; }
.week-accordion .accordion-button { transition: color .5s var(--ease-smooth); }
.week-accordion .accordion-button::after { transition: transform .6s var(--ease-smooth); }

/* Modals: soft rise + scale instead of Bootstrap's quick drop */
.modal.fade .modal-dialog { transform: translate3d(0, 28px, 0) scale(.985); transition: transform .6s var(--ease-out); }
.modal.show .modal-dialog { transform: none; }
.modal.fade { transition: opacity .4s var(--ease-smooth); }
.modal-backdrop.fade { transition: opacity .45s var(--ease-smooth); }

/* Offcanvas */
.offcanvas { transition: transform .6s var(--ease-smooth) !important; }

@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0% { transform: scale(.9); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal, .js .reveal[data-reveal="mask"] img { opacity: 1; transform: none; clip-path: none; }
  .accordion-collapse > .accordion-body, .paper-card .collapse > * { opacity: 1 !important; transform: none !important; }
  .w > span { transform: none; }
  html { scroll-behavior: auto; }
}

/* 13. RESPONSIVE ---------------------------------------------------------- */
@media (max-width: 1199.98px) {
  .nav-divider { margin: 0 1.2rem; }
  .stat { padding-right: 1.8rem; margin-right: 1.6rem; }
}
@media (max-width: 991.98px) {
  .brand { font-size: 1.8rem; }
  .hero-photo { aspect-ratio: 4 / 5; }
  .sidebar { flex: 0 0 auto; width: calc(100% + 24px); max-width: none; border-right: 0; padding-right: 0; position: sticky; top: 0; z-index: 10; background: var(--bg-color); margin: 0 -12px; padding: .6rem 12px; border-bottom: 1px solid var(--line-color); }
  .side-nav { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: .35rem; scroll-snap-type: x proximity; }
  .side-nav::-webkit-scrollbar { display: none; }
  .side-link { width: auto; white-space: nowrap; font-size: 1rem; padding: .45rem .9rem; scroll-snap-align: start; }
  .panels { padding-left: 0; padding-top: 1.8rem; min-height: 0; }
}
@media (max-width: 767.98px) {
  .hero-photo { aspect-ratio: 1 / 1; max-height: 420px; width: 100%; }
  .hero-sub { font-size: 1.15rem; }
  .stats { justify-content: space-between; }
  .stat { padding-right: 1rem; margin-right: 1rem; }
  .stat-num { font-size: 1.9rem; }
  .stat-label { font-size: .62rem; letter-spacing: .14em; }
  .media-landscape, .media-strip { aspect-ratio: 4 / 4.6; }
  .eyebrow-lg { font-size: .92rem; letter-spacing: .14em; }
  .js .tab-pane.is-live .panel-head .eyebrow { letter-spacing: .14em; }
  .paper-card { padding: 1.5rem; }
  .week-accordion .accordion-body { padding-left: 0; }
  .award-highlight { flex-direction: column; align-items: flex-start; gap: .8rem; }
  .split-banner { grid-template-columns: 1fr; gap: .6rem; }
  .modal-header, .modal-body { padding-left: 1.25rem; padding-right: 1.25rem; }
  .site-footer .btn { --btn-px: 1rem; }
}
