/* =====================================================
   Shared stylesheet for the whole site.
   Edit colors, fonts, spacing here and every page updates.
   ===================================================== */

:root {
  --cream: #F2EBDD;
  --cream-dark: #E8DFC8;
  --ink: #1A1814;
  --ink-soft: #4A453C;
  --burgundy: #8B2A2A;
  --mustard: #D9A441;
  --terracotta: #C45A2C;
  --rule: rgba(26, 24, 20, 0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body.no-copy {
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'Manrope', sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
  background-image:
    radial-gradient(circle at 20% 10%, rgba(217, 164, 65, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 80% 60%, rgba(139, 42, 42, 0.06) 0%, transparent 45%);
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 1; opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.09 0 0 0 0 0.08 0 0 0 0.15 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============ TOP NAV (stacked: name above, links below centered) ============ */
nav.topnav {
  position: fixed;
  top: 0; left: 0; right: 0;
  padding: 1rem 2.5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 100;
  background: rgba(242, 235, 221, 0.78);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  padding-bottom: 0.35rem;
}
.brand .name {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 1.8rem;
  line-height: 1;
}
.brand .name em {
  font-style: italic;
  color: var(--burgundy);
  font-weight: 400;
}
.brand .tagline {
  font-family: 'Figtree', sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink-soft);
  margin-top: 0.25rem;
}

.nav-bottom {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding-bottom: 0.5rem;
}

.nav-links {
  display: flex;
  gap: 0.4rem;
  list-style: none;
}

.nav-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  border-radius: 100px;
  color: #4B0082;
  text-decoration: none;
  font-family: 'Manrope', sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover {
  background: var(--cream-dark);
}

.nav-links a.active {
  background: #4B0082;
  color: #ffffff;
}

.nav-right {
  position: absolute;
  right: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.availability {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: 'Figtree', sans-serif;
  font-size: 0.7rem;
  color: var(--ink-soft);
}
.availability::before {
  content: ''; width: 7px; height: 7px;
  border-radius: 50%;
  background: #4CAF50;
  box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.2);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  50% { box-shadow: 0 0 0 7px rgba(76, 175, 80, 0.05); }
}

/* ============ MAIN ============ */
main {
  padding-top: 8rem;
  position: relative;
  z-index: 2;
  min-height: 100vh;
}

.page {
  max-width: 1300px;
  margin: 0 auto;
  padding: 3rem 2.5rem 5rem;
  animation: pageIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-header {
  margin-bottom: 2rem;
  display: flex; align-items: baseline;
  gap: 1.5rem;
}
.page-num {
  font-family: 'Figtree', sans-serif;
  font-size: 0.85rem;
  color: var(--burgundy);
  letter-spacing: 0.1em;
}
.page-label {
  font-family: 'Figtree', sans-serif;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink-soft);
}

h1.page-title {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 3rem;
  font-variation-settings: "SOFT" 50;
}
h1.page-title em {
  font-style: italic; color: var(--burgundy);
  font-weight: 300;
  font-variation-settings: "SOFT" 100;
}
h1.page-title .underline {
  position: relative; display: inline-block;
}
h1.page-title .underline::after {
  content: ''; position: absolute;
  bottom: 0.1em; left: -2%;
  width: 104%; height: 0.32em;
  background: var(--mustard); z-index: -1;
  transform: skew(-2deg) rotate(-1deg);
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  border-radius: 100px;
  font-family: 'Manrope', sans-serif;
  font-weight: 500; font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer; border: none;
}
.btn-primary { background: #4B0082; color: #ffffff; border: 1px solid #4B0082; }
.btn-secondary {
  background: #4B0082; color: #ffffff;
  border: 1px solid #4B0082;
}

/* ============ HOME ============ */
.home-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 5rem;
  align-items: center;
}
.home-grid .video-section {
  grid-column: 1 / -1;
}
.home-tag {
  font-family: 'Figtree', sans-serif;
  font-size: 1.1rem;
  text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--burgundy);
  margin-bottom: 2rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.home-tag::before {
  content: ''; width: 32px; height: 1px; background: var(--burgundy);
}
.home-sub {
  font-size: 1.35rem;
  color: var(--ink);
  font-weight: 300;
  max-width: 560px;
  margin-bottom: 2.5rem;
  line-height: 1.75;
}
.home-sub em {
  font-style: italic;
  font-family: 'Fraunces', serif;
  font-weight: 400;
  color: var(--burgundy);
  font-variation-settings: "SOFT" 100;
}
.home-cta { display: flex; gap: 1rem; }

.home-visual { position: relative; overflow: visible; align-self: flex-start; margin-top: 3.65rem; }
.venn { width: 110%; max-width: 110%; height: auto; display: block; mix-blend-mode: multiply; }

/* ============ ABOUT ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 5rem; align-items: start;
}
.about-text p {
  font-size: 1.12rem; color: var(--ink-soft);
  margin-bottom: 1.5rem; line-height: 1.75;
}
.about-text p a {
  color: var(--burgundy);
  text-decoration: underline;
  text-decoration-color: rgba(139, 42, 42, 0.35);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}
.about-text p a:hover {
  text-decoration-color: var(--burgundy);
}
.about-text p:first-child::first-letter {
  font-family: 'Fraunces', serif;
  font-size: 4rem; float: left;
  line-height: 0.85; margin: 0.1rem 0.6rem 0 0;
  color: var(--burgundy); font-style: italic; font-weight: 300;
}

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.stat {
  padding: 1.75rem;
  background: var(--cream-dark);
  border-radius: 16px;
  border: 1px solid var(--rule);
  transition: transform 0.3s, box-shadow 0.3s;
}
.stat:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(26, 24, 20, 0.08);
}
.stat-number {
  font-family: 'Fraunces', serif;
  font-size: 2rem; line-height: 1;
  color: var(--burgundy); margin-bottom: 0.4rem;
  font-weight: 400;
}
.stat-label {
  font-family: 'Figtree', sans-serif;
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--ink-soft);
}

.section-divider {
  margin: 5rem 0 1.25rem;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.section-divider h2 {
  font-family: 'Fraunces', serif;
  font-size: 2.75rem; font-weight: 400;
}
.section-divider h2 em {
  font-style: italic; color: var(--burgundy);
}
.section-divider .badge {
  font-family: 'Figtree', sans-serif;
  font-size: 1rem; text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--ink-soft);
}

.values-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
}
.value-card {
  padding: 1.5rem 0;
  border-top: 2px solid var(--ink);
}
.value-num {
  font-family: 'Figtree', sans-serif;
  font-size: 0.9rem; color: var(--burgundy);
  letter-spacing: 0.1em;
  margin-bottom: 0.8rem;
}
.value-heading {
  font-family: 'Fraunces', serif;
  font-size: 1.3rem; font-weight: 400;
  margin-bottom: 0.5rem;
}
.value-desc { font-size: 0.95rem; color: var(--ink-soft); }
.value-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 0.6rem;
}
.value-list li {
  font-size: 0.95rem; line-height: 1.6; color: var(--ink-soft);
  padding-left: 1.3rem; position: relative;
}
.value-list li::before {
  content: ''; position: absolute; left: 0; top: 0.6em;
  width: 7px; height: 7px;
  background: var(--burgundy); border-radius: 50%;
}

/* Experience (now part of about) */
.experience-list { border-top: 1px solid var(--rule); }
.exp-item {
  display: grid;
  grid-template-columns: 180px 1fr 180px;
  gap: 2rem; padding: 2rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
  transition: padding 0.3s, background 0.3s;
}
.exp-item:hover {
  padding-left: 1rem; padding-right: 1rem;
  background: var(--cream-dark);
}
.exp-period {
  font-family: 'Figtree', sans-serif;
  font-size: 0.85rem; color: var(--ink-soft);
}
.exp-role {
  font-family: 'Fraunces', serif;
  font-size: 1.4rem; font-weight: 400;
  margin-bottom: 0.3rem;
}
.exp-role em { font-style: italic; color: var(--burgundy); }
.exp-detail { color: var(--ink-soft); font-size: 0.95rem; }
.exp-location {
  font-family: 'Figtree', sans-serif;
  font-size: 0.8rem; color: var(--ink-soft); text-align: right;
}

/* ============ PROJECTS ============ */
.projects-grid { display: grid; gap: 1.5rem; }
.project {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 2rem; padding: 2.5rem 0;
  border-top: 1px solid var(--rule);
  align-items: start;
  transition: all 0.4s; cursor: pointer;
  text-decoration: none; color: inherit;
}
.project:last-child { border-bottom: 1px solid var(--rule); }
.project:hover {
  padding-left: 1rem; padding-right: 1rem;
  background: var(--cream-dark);
}
.project:hover .project-title { color: var(--burgundy); }
.project-num {
  font-family: 'Figtree', sans-serif;
  font-size: 0.85rem; color: var(--ink-soft);
  padding-top: 0.5rem;
}
.project-title {
  font-family: 'Fraunces', serif;
  font-size: 1.75rem; font-weight: 400;
  line-height: 1.1; margin-bottom: 0.6rem;
  transition: color 0.3s;
}
.project-desc {
  color: var(--ink-soft); max-width: 560px;
  font-size: 0.98rem; margin-bottom: 0.8rem;
}
.project-tags { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.tag {
  font-family: 'Figtree', sans-serif;
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em;
  padding: 0.3rem 0.7rem; border-radius: 100px;
  background: var(--cream);
  border: 1px solid var(--rule);
  color: var(--ink-soft);
}
.project-arrow {
  font-family: 'Fraunces', serif;
  font-size: 1.8rem; color: var(--ink-soft);
  transition: transform 0.3s, color 0.3s;
}
.project:hover .project-arrow {
  transform: translateX(8px) rotate(-45deg);
  color: var(--burgundy);
}

/* ============ PROJECT DETAIL PAGE ============ */
.project-detail {
  max-width: 800px;
  margin: 0 auto;
}
.back-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: 'Figtree', sans-serif;
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--ink-soft);
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color 0.3s, transform 0.3s;
}
.back-link:hover { color: var(--burgundy); transform: translateX(-4px); }
.project-detail h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1; letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  font-weight: 400;
}
.project-detail h1 em { font-style: italic; color: var(--burgundy); }
.project-meta {
  display: flex; gap: 1.5rem; flex-wrap: wrap;
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
}
.meta-item {
  font-family: 'Figtree', sans-serif;
  font-size: 0.78rem;
}
.meta-item .label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  margin-bottom: 0.3rem;
}
.meta-item .value { color: var(--ink); }
.project-detail p {
  font-size: 1.1rem; color: var(--ink-soft);
  margin-bottom: 1.5rem; line-height: 1.75;
}
.project-detail h2 {
  font-family: 'Fraunces', serif;
  font-size: 1.75rem; font-weight: 400;
  margin: 3rem 0 1rem;
}
.project-detail h2 em { font-style: italic; color: var(--burgundy); }

/* ============ CONTACT ============ */
.contact-box {
  background: var(--ink); color: var(--cream);
  border-radius: 32px;
  padding: 4rem;
  position: relative; overflow: hidden;
  display: flex; align-items: center;
}
.contact-box::before {
  content: ''; position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--burgundy) 0%, transparent 70%);
  top: -200px; right: -200px;
  opacity: 0.6; border-radius: 50%;
}
.contact-box::after {
  content: ''; position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--mustard) 0%, transparent 70%);
  bottom: -150px; left: -100px;
  opacity: 0.2; border-radius: 50%;
}
.contact-content { position: relative; z-index: 2; max-width: 900px; width: 100%; }
.contact-content .page-label { color: var(--mustard); }
.contact-content .page-num { color: var(--mustard); }
.contact-content h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 0.95; margin-bottom: 2rem;
  font-weight: 400; color: var(--ink);
  max-width: 750px;
}
.contact-content h1 em {
  font-style: italic;
  font-family: 'Fraunces', serif;
  color: var(--burgundy); font-weight: 300;
  font-variation-settings: "SOFT" 100;
}
.contact-sub {
  font-size: 1.3rem;
  color: var(--ink);
  max-width: 600px;
}
.contact-links {
  display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: flex-start;
  margin-top: 2.5rem;
}
.contact-link {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 1rem 1.6rem; border-radius: 100px;
  background: #4B0082;
  border: 1px solid #4B0082;
  color: #ffffff; text-decoration: none;
  font-size: 0.95rem; transition: all 0.3s;
}
.contact-link-email {
  background: #4B0082; color: #ffffff;
  border-color: #4B0082;
}

/* ============ MOBILE ============ */
.menu-toggle {
  display: none;
  background: transparent; border: none;
  font-size: 1.4rem; cursor: pointer;
  color: var(--ink);
}

@media (max-width: 900px) {
  nav.topnav {
    padding: 0.75rem 0.5rem 0;
    flex-direction: column;
    align-items: center;
  }
  .brand {
    flex-direction: column;
    align-items: center;
    padding-bottom: 0.2rem;
  }
  .brand .name { font-size: 1.4rem; }
  .brand .tagline { display: block; }
  .menu-toggle { display: none; }
  .nav-bottom {
    display: flex;
    justify-content: center;
    padding: 0 0 0.5rem;
  }
  .nav-links {
    flex-wrap: nowrap;
    justify-content: center;
    gap: 0.05rem;
  }
  .nav-links a { padding: 0.35rem 0.35rem; font-size: 0.68rem; white-space: nowrap; }
  .nav-right { display: none; }

  main { padding-top: 7rem; }

  .page { padding: 2rem 1.25rem 3rem; }
  .home-grid {
    grid-template-columns: 1fr; gap: 1rem;
    min-height: auto;
  }
  .home-text { order: 1; }
  .home-grid .video-section { order: 2; grid-column: 1; padding-bottom: 0.5rem; }
  .home-visual { order: 3; margin-top: 0; }

  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .stats { grid-template-columns: 1fr 1fr; }
  .values-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .project { grid-template-columns: 50px 1fr; gap: 1rem; }
  .project-arrow { display: none; }
  .exp-item { grid-template-columns: 1fr; gap: 0.5rem; }
  .exp-location { text-align: left; }

  .contact-box { padding: 3rem 1.5rem; border-radius: 24px; }

  .back-to-top { width: 42px; height: 42px; right: 1.25rem; bottom: 1.25rem; }
  .back-to-list { width: 42px; height: 42px; right: 1.25rem; bottom: 4.625rem; }
}

/* ============ BACK TO TOP ============ */
.back-to-top {
  position: fixed;
  right: 2rem; bottom: 2rem;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: #36393f;
  color: #cea8f0;
  font-size: 1.25rem;
  font-weight: 400;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  opacity: 0; visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s, background 0.2s;
  z-index: 40;
}
.back-to-top:hover { background: #36393f; }
.back-to-top.visible {
  opacity: 1; visibility: visible; transform: translateY(0);
}

.back-to-list {
  position: fixed;
  right: 2rem; bottom: 5.75rem;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: #36393f;
  color: #cea8f0;
  font-size: 1.25rem;
  font-weight: 400;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  cursor: pointer;
  opacity: 0; visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s, background 0.2s;
  z-index: 40;
}
.back-to-list:hover { background: #36393f; }
.back-to-list.visible {
  opacity: 1; visibility: visible; transform: translateY(0);
}


/* ============ VIDEO SECTION ============ */
.video-section {
  padding: 1rem 0 3rem;
  text-align: center;
}
.video-heading {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 2rem;
  color: var(--ink);
  margin-bottom: 2rem;
}
.video-heading em {
  font-style: italic;
  color: var(--burgundy);
  font-weight: 300;
  font-variation-settings: "SOFT" 100;
}
.foresight-icon {
  display: inline-block;
  color: var(--burgundy);
  font-style: normal;
}
.video-wrapper {
  position: relative;
  width: 100%;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.12);
}
.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
