/* =============================================
   Lilly Fox — v2: Soft & Cutesy Modern
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;500&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300&display=swap');

/* ── Variables ─────────────────────────────── */
:root {
  --bg:         #fef5f1;
  --bg-card:    #fce8df;
  --bg-footer:  #f8d9cc;
  --text:       #2a1815;
  --muted:      #a07870;
  --accent:     #c97b68;
  --accent-lt:  #f0c4b4;
  --max:        1200px;
  --header-h:   80px;
  --radius:     14px;
  --shadow:     0 6px 32px rgba(180, 80, 60, .10);
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'DM Sans', system-ui, sans-serif;
  --font-hand:  'Caveat', cursive;
  --ease:       cubic-bezier(.4, 0, .2, 1);
}

/* ── Reset ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.75;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img   { max-width: 100%; height: auto; display: block; }
a     { color: inherit; text-decoration: none; }

/* ── Fade animation ────────────────────────── */
.fade {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.fade.visible { opacity: 1; transform: none; }

/* ── Subtle grain overlay ──────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .018;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px 128px;
}
body > * { position: relative; z-index: 1; }

/* =============================================
   HEADER
   ============================================= */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  height: var(--header-h);
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  transition: box-shadow .3s var(--ease);
}
header.scrolled { box-shadow: 0 2px 20px rgba(180, 80, 60, .09); }

.header-inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.85rem;
  letter-spacing: .02em;
  color: var(--text);
  white-space: nowrap;
}

nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
nav a {
  font-size: .78rem;
  font-weight: 400;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .2s;
  position: relative;
}
nav a:not(.nav-icon)::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transition: width .25s var(--ease);
}
nav a:not(.nav-icon):hover { color: var(--text); }
nav a:not(.nav-icon):hover::before { width: 100%; }
nav a.active { color: var(--text); }
nav a.active:not(.nav-icon)::before { width: 100%; }
.nav-icons {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  background: var(--bg-card);
  border-radius: 999px;
  padding: .4rem .85rem;
  line-height: 0;
}
.nav-icon { color: var(--accent); transition: color .2s; }
.nav-icon:hover { color: var(--text); }
.nav-icon svg { width: 18px; height: 18px; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: transform .3s var(--ease), opacity .3s;
  border-radius: 2px;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* =============================================
   FOOTER
   ============================================= */
footer {
  position: relative;
  background: var(--bg-footer);
  padding: 3rem 2rem 2.5rem;
  text-align: center;
  margin-top: auto;
  overflow: hidden;
}
footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/footer-wallpaper.svg') center / 100% auto no-repeat;
  opacity: .35;
  pointer-events: none;
  z-index: 0;
}
footer > * {
  position: relative;
  z-index: 1;
}
.footer-name {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: .04em;
  margin-bottom: 1.1rem;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
}
.footer-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  color: var(--text);
  transition: background .2s, transform .2s;
}
.footer-links a:hover {
  background: rgba(255,255,255,.85);
  transform: translateY(-2px);
}
.footer-links svg { width: 17px; height: 17px; }

/* ── Decorative accents ────────────────────── */
.dashed-divider {
  border: none;
  border-top: 1.5px dashed var(--accent-lt);
}
.star-row {
  text-align: center;
  font-size: .7rem;
  letter-spacing: .5em;
  color: var(--accent);
  padding: .6rem 0;
  user-select: none;
}

/* =============================================
   HOME PAGE
   ============================================= */
.home-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: calc(100vh - var(--header-h) - 60px);
}

.home-photo-wrap {
  padding: 2.5rem 2rem 2.5rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.home-photo-inner {
  position: relative;
  width: 100%;
  max-width: 440px;
}
.home-photo-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 3/4;
}
.home-photo-inner::before {
  content: '';
  position: absolute;
  inset: 12px -12px -12px 12px;
  border: 1.5px solid var(--accent-lt);
  border-radius: calc(var(--radius) + 2px);
  z-index: -1;
}

.home-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 3.5rem 4rem 3rem;
}
.home-tag {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--bg-card);
  color: var(--accent);
  border-radius: 999px;
  padding: .3rem 1rem;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  width: fit-content;
}
.home-tag::before { content: '✦'; font-size: .55rem; }

.home-name {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 4vw, 3.8rem);
  line-height: 1.05;
  margin-bottom: .5rem;
}
.home-tagline {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 300;
  font-style: italic;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 1.75rem;
}
.home-bio {
  font-size: .9rem;
  line-height: 1.9;
  color: #6a4840;
  max-width: 480px;
  margin-bottom: 2rem;
}
.home-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .65rem 1.5rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .05em;
  transition: transform .2s, box-shadow .2s;
}
.btn-pill:hover { transform: translateY(-2px); }
.btn-pill-solid  { background: var(--accent); color: #fff; }
.btn-pill-outline { background: transparent; border: 1.5px solid var(--accent); color: var(--accent); }

/* =============================================
   INTERIOR PAGES
   ============================================= */
.page-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3.5rem 2.5rem 3.5rem;
}

/* Two-col layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 4rem;
  align-items: start;
}

.text-col h1 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 1rem;
}
.text-col h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  margin-top: 2.5rem;
  margin-bottom: .85rem;
}
.text-col p {
  font-size: .88rem;
  line-height: 1.85;
  color: #6a4840;
  margin-bottom: 1rem;
}
.text-col ul {
  list-style: disc;
  padding-left: 1.3rem;
  margin-top: .4rem;
}
.text-col ul li {
  font-size: .88rem;
  line-height: 1.8;
  color: #6a4840;
}

.photo-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: calc(var(--header-h) + 2rem);
}
.photo-col img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Research */
.research-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 4rem;
  align-items: start;
}
.research-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 1.5rem;
}
.research-abstract {
  font-size: .88rem;
  line-height: 1.9;
  color: #6a4840;
}
.research-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: sticky;
  top: calc(var(--header-h) + 2rem);
}
.research-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: calc(var(--header-h) + 2rem);
}
.btn-outline {
  display: block;
  text-align: center;
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  padding: .85rem 2rem;
  font-family: var(--font-sans);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  transition: background .2s, color .2s;
}
.btn-outline:hover { background: var(--accent); color: #fff; }

.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: #1a0d0a;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-facade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  cursor: pointer;
  background-size: cover;
  background-position: center;
  padding: 0;
}
.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 45px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.5));
  transition: transform .15s;
}
.video-facade:hover .play-icon {
  transform: translate(-50%, -50%) scale(1.12);
}
.video-caption {
  text-align: center;
  font-size: .8rem;
  color: var(--muted);
  margin-top: .5rem;
}

/* Choreography */
.choreo-section { margin-bottom: 4rem; }
.choreo-section-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 400;
  text-align: center;
  letter-spacing: .04em;
  margin-bottom: 2.5rem;
}
.choreo-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 820px;
  margin: 0 auto;
}
.choreo-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  align-items: center;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 2px 16px rgba(180,80,60,.06);
}
.choreo-details h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: .4rem;
}
.choreo-details p {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.65;
}

/* =============================================
   PAGE FLIP ARROWS
   ============================================= */
.page-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .8rem 1.2rem;
  background: rgba(254,245,241,.9);
  border: 1px solid var(--accent-lt);
  border-radius: 999px;
  color: var(--muted);
  backdrop-filter: blur(6px);
  white-space: nowrap;
  transition: color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease);
  text-decoration: none;
}
.page-arrow:hover { color: var(--accent); background: var(--bg-card); }
.page-arrow svg { width: 15px; height: 15px; flex-shrink: 0; }
.page-arrow-text { display: flex; flex-direction: column; gap: 1px; }
.page-arrow-dir {
  font-size: .6rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1;
}
.page-arrow-name {
  font-size: .78rem;
  line-height: 1.3;
}
.page-arrow--right { right: 1.25rem; flex-direction: row-reverse; }
.page-arrow--right:hover { transform: translateY(-50%) translateX(2px); }
.page-arrow--left  { left: 1.25rem; }
.page-arrow--left:hover  { transform: translateY(-50%) translateX(-2px); }

/* ── Footer flowers (alternative decoration — re-enable by uncommenting
      the .footer-flowers div in each HTML file's <footer>) ─────────── */
.footer-flowers {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: .6rem;
  margin-bottom: 1.5rem;
  color: var(--accent-lt);
}
.footer-flowers svg { display: block; }
.footer-flowers svg:nth-child(1) { width: 30px; height: 30px; }
.footer-flowers svg:nth-child(2) { width: 22px; height: 22px; transform: translateY(5px); }
.footer-flowers svg:nth-child(3) { width: 38px; height: 38px; transform: translateY(-3px); }
.footer-flowers svg:nth-child(4) { width: 20px; height: 20px; transform: translateY(7px); }
.footer-flowers svg:nth-child(5) { width: 28px; height: 28px; transform: translateY(2px); }

/* ── Sticky note ─────────────────────────────*/
.sticky-note {
  position: absolute;
  z-index: 10;
  background: #fff9ee;
  border-radius: 2px;
  padding: .9rem 1.1rem 1rem;
  box-shadow: 2px 5px 14px rgba(180,80,60,.13), 0 1px 3px rgba(180,80,60,.08);
  font-family: var(--font-hand);
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--text);
  max-width: 175px;
}
.sticky-note::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent-lt);
  border-radius: 2px 2px 0 0;
}
.home-photo-inner .sticky-note {
  bottom: -16px;
  right: -22px;
  transform: rotate(3.5deg);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .home-split { grid-template-columns: 1fr; min-height: auto; }
  .home-photo-wrap { padding: 2rem 2rem 1rem; }
  .home-photo-inner { max-width: 360px; }
  .home-content { padding: 2rem 2rem 3rem; align-items: center; text-align: center; }
  .two-col { grid-template-columns: 1fr; gap: 2.5rem; }
  .photo-col { position: static; flex-direction: row; }
  .photo-col img { flex: 1; }
  .research-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .research-sidebar { position: static; }
  .choreo-item { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .page-arrow { display: none; }
  header { padding: 0 1.25rem; }
  .hamburger { display: flex; }
  nav {
    display: none;
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.25rem;
    z-index: 99;
  }
  nav.open { display: flex; animation: nav-fade-up .3s var(--ease) both; }
  nav.closing { display: flex; animation: nav-fade-down .25s var(--ease) both; }
  @keyframes nav-fade-up {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  @keyframes nav-fade-down {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(12px); }
  }
  nav a { font-size: .9rem; }
  .nav-icons { flex-direction: row; gap: 1.5rem; }
  .page-wrap { padding: 3rem 1.25rem 3rem; }
  .photo-col { flex-direction: column; }
}
