/* ==========================================================================
   Ayeesha Mae D. Panotolan — Portfolio
   ========================================================================== */

:root {
  --paper: #f5e6de;
  --paper-card: #fbf1eb;
  --ink: #12141f;
  --coral: #f4634a;
  --coral-dark: #d94a32;
  --gold: #c99a3d;
  --plum: #8c5c74;
  --plum-dark: #6f4560;
  --line: rgba(18, 20, 31, 0.14);
  --shadow: 0 12px 30px rgba(18, 20, 31, 0.1);

  --font-display: "Instrument Serif", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --wrap: 1160px;
  --radius: 16px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
ul, ol { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 1000;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 12px;
}

/* Visible focus ring everywhere */
:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--coral);
  color: #fff8f5;
}
.btn-primary:hover { background: var(--coral-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }
.btn-link {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--plum);
  text-decoration: underline;
  text-underline-offset: 4px;
  padding: 13px 4px;
}
.btn-link:hover { color: var(--plum-dark); }
.btn-large { padding: 16px 34px; font-size: 1.05rem; }

/* ---------- Section scaffolding ---------- */
section { padding: 96px 0; }
.section-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--plum);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
  line-height: 1.15;
  max-width: 18ch;
}
.section-sub {
  margin-top: 10px;
  color: rgba(18,20,31,0.65);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 230, 222, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
}
.brand-dot { color: var(--coral); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.95rem;
  font-weight: 500;
}
.site-nav a:hover { color: var(--plum); }
.site-nav a.is-active { color: var(--coral-dark); }
.nav-cv {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 8px 16px;
  border: 1px solid var(--ink);
  border-radius: 999px;
}
.nav-cv:hover { background: var(--ink); color: var(--paper); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle-bar {
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding-top: 72px; padding-bottom: 56px; overflow: hidden; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding-top: 40px;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--plum);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero-name {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.02;
  font-weight: 400;
}
.hero-tagline {
  font-family: var(--font-mono);
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  color: var(--coral-dark);
  margin-top: 18px;
}
.hero-intro {
  margin-top: 22px;
  max-width: 52ch;
  font-size: 1.05rem;
  color: rgba(18,20,31,0.82);
}
.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

/* ---- Fanned browser-window cards ---- */
.hero-stack {
  position: relative;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.window-fan {
  position: relative;
  width: 100%;
  max-width: 340px;
  height: 100%;
}
.window-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 260px;
  border-radius: 12px;
  background: var(--paper-card);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  overflow: hidden;
  opacity: 0;
  transform: translate(-50%, -50%) rotate(0deg) scale(0.85);
  animation: fan-in 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}
.window-card a { display: block; }

.wc-1 { --rot: -14deg; --tx: -78px; --ty: 26px; z-index: 1; animation-delay: 0.05s; }
.wc-2 { --rot: -4deg;  --tx: -20px; --ty: -18px; z-index: 2; animation-delay: 0.2s; }
.wc-3 { --rot: 6deg;   --tx: 34px;  --ty: 10px; z-index: 3; animation-delay: 0.35s; }
.wc-4 { --rot: 15deg;  --tx: 86px;  --ty: -22px; z-index: 4; animation-delay: 0.5s; }

@keyframes fan-in {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) translate(0, 40px) rotate(0deg) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) translate(var(--tx), var(--ty)) rotate(var(--rot)) scale(1);
  }
}
.window-card:hover,
.window-card:focus-within {
  z-index: 5;
  transform: translate(-50%, -50%) translate(var(--tx), var(--ty)) rotate(0deg) scale(1.06);
  transition: transform 0.25s ease;
}

.wc-titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  background: rgba(18,20,31,0.05);
  border-bottom: 1px solid var(--line);
}
.wc-dot { width: 8px; height: 8px; border-radius: 50%; }
.wc-dot-red { background: var(--coral); }
.wc-dot-gold { background: var(--gold); }
.wc-dot-green { background: #7a9b6e; }
.wc-url {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: rgba(18,20,31,0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wc-body {
  height: 108px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 14px;
}
.wc-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #fff;
  background: rgba(18,20,31,0.35);
  padding: 4px 9px;
  border-radius: 999px;
}
.wc-body-behance { background: linear-gradient(135deg, var(--plum), var(--plum-dark)); }
.wc-body-figma   { background: linear-gradient(135deg, var(--coral), #f28a6f); }
.wc-body-canva   { background: linear-gradient(135deg, var(--gold), #e0b563); }
.wc-body-live    { background: linear-gradient(135deg, var(--ink), #34384f); }

/* ==========================================================================
   About
   ========================================================================== */
.about-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  align-items: start;
}
.about-photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.about-copy > p { margin-top: 18px; max-width: 62ch; }
.skills-heading {
  margin-top: 40px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(18,20,31,0.6);
}
.tag-list {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--plum);
  background: rgba(140, 92, 116, 0.1);
  border: 1px solid rgba(140, 92, 116, 0.25);
  padding: 6px 12px;
  border-radius: 999px;
}
.tag-outline {
  color: var(--ink);
  background: transparent;
  border-color: var(--line);
}
.about-education {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  line-height: 1.8;
}
.honor { color: var(--gold); font-family: var(--font-mono); font-size: 0.85em; }

/* ==========================================================================
   Experience — horizontal campaign log
   ========================================================================== */
.experience .wrap { margin-bottom: 40px; }
.timeline-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 24px;
}
.timeline {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 12px 12px 28px;
  scrollbar-width: thin;
  scrollbar-color: var(--plum) transparent;
}
.timeline::-webkit-scrollbar { height: 8px; }
.timeline::-webkit-scrollbar-thumb { background: rgba(140,92,116,0.35); border-radius: 999px; }

.timeline-entry {
  scroll-snap-align: start;
  flex: 0 0 300px;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
}
.timeline-entry::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 24px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--coral);
}
.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--plum);
}
.timeline-role {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  margin-top: 8px;
}
.timeline-org {
  margin-top: 4px;
  font-size: 0.85rem;
  font-weight: 600;
}
.timeline-mode {
  font-weight: 400;
  color: rgba(18,20,31,0.55);
}
.timeline-entry ul {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.timeline-entry li {
  font-size: 0.88rem;
  line-height: 1.5;
  padding-left: 16px;
  position: relative;
  color: rgba(18,20,31,0.85);
}
.timeline-entry li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--gold);
}

.timeline-arrow {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  font-size: 1.1rem;
  transition: background 0.15s ease, color 0.15s ease;
}
.timeline-arrow:hover { background: var(--ink); color: var(--paper); }

/* ==========================================================================
   Portfolio
   ========================================================================== */
.case-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.case-card {
  display: block;
  position: relative;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.case-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  margin-top: 18px;
}
.case-card p {
  margin-top: 10px;
  font-size: 0.92rem;
  color: rgba(18,20,31,0.75);
}
.case-link {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--plum);
}

.stamp {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 6px 12px;
  border: 2px solid currentColor;
  border-radius: 6px;
  transform: rotate(-4deg);
}
.stamp-coral { color: var(--coral-dark); }
.stamp-gold { color: var(--gold); }
.stamp-plum { color: var(--plum); }

/* ==========================================================================
   Video Editing
   ========================================================================== */
.video-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.video-card {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.video-card .case-link { align-self: flex-start; }
.video-caption {
  font-size: 0.85rem;
  color: rgba(18,20,31,0.75);
}
.ig-embed-wrap,
.yt-embed-wrap {
  border-radius: 10px;
  overflow: hidden;
  background: rgba(18,20,31,0.04);
}
.ig-embed-wrap {
  min-height: 400px;
  display: flex;
  justify-content: center;
}
.ig-embed-wrap iframe { border-radius: 10px !important; }
.yt-embed-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
}
.yt-embed-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================================================
   Education / Certifications / Leadership
   ========================================================================== */
.education-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
.edu-subhead {
  margin-top: 36px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(18,20,31,0.6);
}
.edu-list { margin-top: 16px; display: flex; flex-direction: column; gap: 14px; }
.edu-list li { font-size: 0.95rem; }
.edu-date {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--plum);
  margin-bottom: 2px;
}
.cert-list { margin-top: 16px; }

.leadership-list { margin-top: 16px; display: flex; flex-direction: column; gap: 20px; }
.leadership-list li { font-size: 0.95rem; }
.leadership-list .edu-date {
  display: inline-block;
  margin-left: 8px;
}
.leadership-list p {
  margin-top: 6px;
  font-size: 0.88rem;
  color: rgba(18,20,31,0.75);
  line-height: 1.6;
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-inner { text-align: center; }
.contact-inner .section-label,
.contact-inner .section-title { margin-left: auto; margin-right: auto; }
.contact-copy {
  margin-top: 18px;
  font-size: 1.05rem;
  color: rgba(18,20,31,0.75);
}
.contact-details {
  margin-top: 36px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
}
.contact-item { display: flex; flex-direction: column; gap: 6px; }
.contact-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--plum);
}
.contact-value { font-size: 1.05rem; font-weight: 600; }
a.contact-item:hover .contact-value { color: var(--coral-dark); }
.contact-actions {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: rgba(18,20,31,0.6);
}
.footer-inner a:hover { color: var(--plum); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-stack { height: 340px; order: -1; }
  .about-inner { grid-template-columns: 1fr; }
  .about-photo { width: 180px; }
  .education-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 720px) {
  section { padding: 64px 0; }
  .site-nav {
    position: fixed;
    inset: 72px 0 auto 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .site-nav a { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-toggle { display: flex; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .timeline-arrow { display: none; }
  .timeline-wrap { padding: 0; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 18px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .contact-details { gap: 24px; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .window-card {
    animation: none !important;
    opacity: 1;
    transform: translate(-50%, -50%) translate(var(--tx), var(--ty)) rotate(var(--rot)) scale(1);
  }
  .window-card:hover, .window-card:focus-within {
    transform: translate(-50%, -50%) translate(var(--tx), var(--ty)) rotate(var(--rot)) scale(1);
  }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
