/* ============================================================
   ANA CHANDLEE — Centered editorial layout
   Completely distinct from any two-column resume template.
   ============================================================ */

:root {
  --rose:       #B85C78;
  --rose-mid:   #D4799A;
  --rose-light: #F0D4DE;
  --rose-pale:  #FBF4F7;
  --ink:        #140D10;
  --ink-2:      #3A2530;
  --ink-3:      #8C6E78;
  --rule:       #E8D5DC;
  --cream:      #FDFAF8;
  --white:      #FFFFFF;

  --serif:  "Cormorant Garamond", Georgia, serif;
  --script: "Caveat", cursive;
  --sans:   "DM Sans", system-ui, sans-serif;

  --max: 980px;
  --pad: clamp(24px, 6vw, 80px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; }

/* Canvas trail */
#trail-canvas { position: fixed; inset: 0; pointer-events: none; z-index: 9999; }
@media (hover: none) { #trail-canvas { display: none; } }

/* Floating contact tab */
.floating-contact-btn {
  position: fixed; left: 0; top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  background: var(--rose); color: var(--white);
  font-family: var(--sans); font-size: 12px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 24px 10px; border-radius: 0 10px 10px 0;
  box-shadow: 4px 0 24px rgba(184,92,120,0.30);
  z-index: 60; transition: padding-right 0.2s;
  text-decoration: none;
}
.floating-contact-btn:hover { padding-right: 16px; }
@media (max-width: 768px) { .floating-contact-btn { display: none; } }

/* ============================================================
   NAV — transparent over hero, solid after scroll
   ============================================================ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
nav.scrolled {
  background: rgba(253,250,248,0.92);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--rule);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--pad);
  height: 60px; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: var(--serif); font-size: 22px; font-weight: 600;
  color: var(--rose); letter-spacing: 0.04em;
}
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--ink-3); transition: color 0.15s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  background: var(--rose); color: var(--white) !important;
  padding: 8px 20px; border-radius: 100px; font-weight: 600;
  transition: opacity 0.15s, transform 0.15s;
}
.nav-cta:hover { opacity: 0.85; transform: translateY(-1px); }
.nav-resume { font-size: 13px !important; color: var(--ink-3) !important; }
.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-burger span { display: block; width: 22px; height: 1.5px; background: var(--ink); border-radius: 2px; transition: all 0.2s; }
.nav-mobile { display: none; position: fixed; top: 60px; left: 0; right: 0; background: var(--cream); border-bottom: 1px solid var(--rule); z-index: 79; flex-direction: column; }
.nav-mobile a { padding: 15px var(--pad); font-size: 15px; font-weight: 500; border-bottom: 1px solid var(--rule); color: var(--ink-2); }
.nav-mobile.open { display: flex; }
@media (max-width: 640px) { .nav-links { display: none; } .nav-burger { display: flex; } }

/* ============================================================
   HERO — full viewport, centered
   ============================================================ */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center;
  padding: 120px var(--pad) 80px;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, var(--rose-light) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
}
.hero > * { position: relative; z-index: 1; }

.hero-eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--rose);
  margin-bottom: 40px;
}

/* Arch-shaped photo — the centrepiece */
.hero-photo-wrap { margin-bottom: 40px; }
.hero-photo-carousel { position: relative; display: inline-block; }
.hero-photo {
  width: clamp(200px, 30vw, 320px);
  aspect-ratio: 3/4;
  border-radius: 18px;
  overflow: hidden;
  background: var(--rose-light);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 24px 80px rgba(184,92,120,0.24), 0 2px 8px rgba(184,92,120,0.1);
  border: 5px solid var(--white);
  margin: 0 auto;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-placeholder { font-size: 13px; color: var(--rose); }

.photo-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%; border: none;
  background: var(--white); color: var(--rose); font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,0.10);
  transition: background 0.15s, color 0.15s; z-index: 2;
}
.photo-arrow:hover { background: var(--rose); color: var(--white); }
.photo-arrow--prev { left: -50px; }
.photo-arrow--next { right: -50px; }
.photo-arrow[hidden] { display: none; }
.photo-dots { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
.photo-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--rule); border: none; cursor: pointer; transition: all 0.15s; }
.photo-dot.active { background: var(--rose); width: 20px; border-radius: 3px; }

/* Name */
.hero-name {
  font-family: var(--script);
  font-size: clamp(56px, 12vw, 130px);
  font-weight: 700; line-height: 1;
  color: var(--ink);
  margin-bottom: 18px;
}

.hero-sub {
  font-size: 17px; color: var(--ink-3); font-weight: 300;
  max-width: 44ch; margin: 0 auto 36px; line-height: 1.7;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.cta-primary {
  background: var(--rose); color: var(--white);
  padding: 14px 36px; border-radius: 100px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.02em;
  transition: opacity 0.15s, transform 0.15s;
}
.cta-primary:hover { opacity: 0.85; transform: translateY(-2px); }
.cta-ghost {
  border: 1.5px solid var(--rule); color: var(--ink-2);
  padding: 14px 28px; border-radius: 100px;
  font-size: 14px; font-weight: 500;
  transition: border-color 0.15s, color 0.15s;
}
.cta-ghost:hover { border-color: var(--ink); color: var(--ink); }

/* ============================================================
   STAT STRIP
   ============================================================ */
.stat-strip {
  background: var(--rose);
  padding: 20px 32px;
}
.stat-strip-inner {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(var(--stat-count, 3), 1fr);
  gap: 12px;
  max-width: 720px;
  margin: 0 auto;
}
.stat-item {
  text-align: center;
  padding: 14px 16px;
  border-right: 1px solid rgba(255,255,255,0.2);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: "Playfair Display", Georgia, serif; font-size: clamp(44px, 6vw, 72px);
  font-weight: 700; color: var(--white); line-height: 1; display: block;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(255,255,255,0.8);
  display: block;
}

/* ============================================================
   SHARED SECTION
   ============================================================ */
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.eyebrow {
  display: block; font-size: 11px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--rose); margin-bottom: 18px;
}
.section-title {
  font-family: var(--serif); font-size: clamp(28px, 4vw, 44px);
  font-weight: 400; line-height: 1.2; color: var(--ink);
  margin-bottom: 32px;
}
.text-link { font-size: 14px; font-weight: 500; color: var(--rose); }
.text-link:hover { text-decoration: underline; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   ABOUT
   ============================================================ */
.about-section { padding: 60px var(--pad); }
.about-section .container { max-width: 760px; }
.about-quote {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(22px, 3vw, 32px); line-height: 1.5;
  color: var(--ink-2); border: none; padding: 0;
  margin-bottom: 48px;
}
.about-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.info-chip {
  border: 1px solid var(--rule); border-radius: 100px;
  padding: 7px 16px; font-size: 13.5px;
}
.info-chip strong { color: var(--rose); font-weight: 600; margin-right: 6px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }

/* ============================================================
   EXPERIENCE
   ============================================================ */
.exp-section {
  padding: 60px var(--pad);
  background: var(--rose-pale);
}
.exp-section .eyebrow { color: var(--rose); }
.exp-section .section-title { color: var(--ink); }
.exp-list { list-style: none; border-top: 1px solid var(--rose-light); }
.exp-item {
  display: grid; grid-template-columns: 160px 1fr;
  gap: 40px; padding: 36px 0;
  border-bottom: 1px solid var(--rose-light);
  transition: background 0.15s;
}
.exp-item:hover { background: rgba(184,92,120,0.03); }
.exp-left { display: flex; flex-direction: column; gap: 14px; padding-top: 4px; }
.exp-year { font-size: 13px; color: var(--rose); font-weight: 500; }
.exp-logo {
  height: auto; width: 100%; max-width: 150px; max-height: 80px;
  object-fit: contain; display: block;
}
.exp-content { }
.exp-title { font-size: 19px; font-weight: 600; color: var(--ink); margin-bottom: 3px; }
.exp-org { font-size: 14px; color: var(--ink-3); margin-bottom: 10px; }
.exp-detail { font-size: 14px; color: var(--ink-3); line-height: 1.65; max-width: 60ch; }
@media (max-width: 600px) { .exp-item { grid-template-columns: 1fr; gap: 8px; } .exp-left { flex-direction: row; align-items: center; gap: 16px; } .exp-logo { max-height: 28px; width: auto; } }
/* ============================================================
   WORK (credentials + projects)
   ============================================================ */
.work-section { padding: 60px var(--pad); }
.work-row { padding: 48px 0; }
.work-label { margin-bottom: 32px; }
.work-rule { border: none; border-top: 1px solid var(--rule); }

.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.awards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.cert-card {
  background: var(--white); border: 1px solid var(--rule);
  border-radius: 14px; padding: 22px;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.cert-card:hover { border-color: var(--rose); box-shadow: 0 6px 24px rgba(184,92,120,0.10); }
.cert-name { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.cert-meta { font-size: 13px; color: var(--ink-3); margin-bottom: 12px; }
.cert-link { font-size: 13px; font-weight: 600; color: var(--rose); }
.cert-link:hover { text-decoration: underline; }

.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.project-card {
  background: var(--white); border: 1px solid var(--rule);
  border-radius: 14px; padding: 26px; cursor: default;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.project-card:hover { border-color: var(--rose); box-shadow: 0 6px 24px rgba(184,92,120,0.10); }
.project-name { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.project-tag { font-size: 11px; color: var(--rose); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 10px; }
.project-summary { font-size: 14px; color: var(--ink-3); line-height: 1.6; }
.project-details { font-size: 14px; color: var(--ink-3); line-height: 1.6; max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.35s, opacity 0.3s, margin-top 0.3s; }

.project-links { display: flex; gap: 14px; margin-top: 14px; flex-wrap: wrap; border-top: 1px solid var(--rule); padding-top: 12px; }
.project-link { font-size: 13px; font-weight: 600; color: var(--rose); }
.project-link:hover { text-decoration: underline; }
/* tap-to-expand handled in mobile media query below */

/* ============================================================
   SKILLS
   ============================================================ */
.skills-section { padding: 80px var(--pad); background: var(--rose-pale); }
.skills-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag {
  border: 1px solid var(--rose-light); border-radius: 100px;
  padding: 8px 18px; font-size: 13.5px; font-weight: 400;
  color: var(--ink-2); background: var(--white);
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.tag:hover { border-color: var(--rose); background: var(--rose); color: var(--white); }
@media (max-width: 600px) { .skills-cols { grid-template-columns: 1fr; } }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-section {
  padding: 120px var(--pad);
  background: var(--ink); text-align: center;
  position: relative; overflow: hidden;
}
.contact-section::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 70% at 50% 50%, var(--rose) 0%, transparent 70%);
  opacity: 0.08; pointer-events: none;
}
.contact-section > .container { position: relative; z-index: 1; }
.contact-top { margin-bottom: 20px; }
.contact-word-1 {
  display: block; font-family: var(--script); font-size: clamp(64px, 10vw, 120px);
  font-weight: 700; color: var(--rose); line-height: 1;
}
.contact-word-2 {
  display: block; font-family: var(--serif); font-size: clamp(52px, 9vw, 110px);
  font-weight: 600; color: var(--white); line-height: 1;
}
.contact-sub { font-size: 16px; color: rgba(255,255,255,0.45); margin-bottom: 52px; font-weight: 300; }
.contact-details {
  display: inline-flex; flex-direction: column; gap: 0;
  text-align: left; background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px; overflow: hidden; min-width: 280px;
}
.contact-item {
  padding: 16px 24px; font-size: 15px; color: rgba(255,255,255,0.7);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.contact-item:last-child { border-bottom: none; }
.contact-item:empty { display: none; }
.contact-item a { color: var(--white); font-weight: 500; transition: color 0.15s; }
.contact-item a:hover { color: var(--rose-mid); }

/* ============================================================
   FOOTER
   ============================================================ */
footer { background: var(--ink); border-top: 1px solid rgba(255,255,255,0.06); padding: 24px var(--pad); }
.footer-inner {
  width: 100%;
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; color: rgba(255,255,255,0.3);
}
.footer-inner #footer-copy { flex: 0; white-space: nowrap; }
.footer-inner .social-links {
  position: absolute; left: 50%; transform: translateX(-50%);
}
.footer-inner .footer-edit { flex: 0; }
.footer-edit { font-size: 12px; color: rgba(255,255,255,0.25); transition: color 0.15s; }
.footer-edit:hover { color: var(--rose-mid); }
.social-links { display: flex; gap: 10px; }
.social-links a {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.5); transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.social-links a:hover { border-color: var(--rose-mid); color: var(--white); background: var(--rose); }
.social-links svg { width: 16px; height: 16px; fill: currentColor; }

/* ============================================================
   MOBILE RESPONSIVE
   ============================================================ */
@media (max-width: 600px) {
  /* Fix horizontal overflow */
  html, body { overflow-x: hidden; max-width: 100vw; }

  /* Stats strip — wrap to 2 columns on mobile */
  .stat-strip { padding: 20px 16px; }
  .stat-strip-inner {
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }
  .stat-item {
    padding: 14px 8px;
    border-right: 1px solid rgba(255,255,255,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.2);
  }
  .stat-item:nth-child(even) { border-right: none; }
  .stat-item:nth-last-child(-n+2):not(:nth-child(even)) { border-bottom: none; }
  .stat-item:last-child { border-bottom: none; }
  .stat-num { font-size: clamp(36px, 10vw, 52px); }
  .stat-label { font-size: 10px; }

  /* Hero */
  .hero { padding: 80px 20px 40px; }
  .hero-name { font-size: clamp(36px, 11vw, 56px); }
  .hero-sub { font-size: 15px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .cta-primary, .cta-ghost { text-align: center; justify-content: center; }

  /* About */
  .about-section { padding: 48px 20px; }
  .about-quote { font-size: clamp(17px, 4.5vw, 22px); }

  /* Education / experience timeline */
  .exp-section { padding: 48px 20px; }
  .exp-item { padding: 20px 0; gap: 12px; }

  /* Work section */
  .work-section { padding: 48px 20px; }
  .project-grid { grid-template-columns: 1fr; }

  /* Skills */
  .skills-section { padding: 48px 20px; }

  /* Contact */
  .contact-section { padding: 80px 20px; }

  /* Footer — stack vertically on mobile */
  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  .footer-inner .social-links {
    position: static;
    transform: none;
  }

  /* Education — clean stacked layout on mobile */
  .exp-item {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 24px 0;
  }
  .exp-left {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }
  .exp-logo { max-height: 28px; width: auto; }
  .exp-year { font-size: 12px; }
  .exp-title { font-size: 16px; }
  .exp-org { font-size: 13px; margin-bottom: 6px; }
  .exp-detail { font-size: 13px; }

  /* Mobile tap-to-expand: show details by default hidden, toggle on tap */
  .project-card { cursor: pointer; }
  .project-card .project-details {
    max-height: 0; opacity: 0; margin-top: 0;
  }
  .project-card.expanded .project-details {
    max-height: 400px; opacity: 1; margin-top: 12px;
  }
  .project-more {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--rose);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-top: 10px;
  }
  .project-card.expanded .project-more { display: none; }
}

/* Desktop hover — only on devices that support hover */
@media (hover: hover) {
  .project-more { display: none; }
  .project-card:hover .project-details { max-height: 260px; opacity: 1; margin-top: 12px; }
}
