/* ==========================================================================
   SILVER PALM EVENTS — Design System
   Palette: near-black ink, warm ivory, muted palm/olive accent, brass hairline
   Type: Fraunces (editorial serif, display) + Archivo (technical sans)
   ========================================================================== */

:root {
  --ink: #14140f;
  --ink-soft: #24241c;
  --paper: #f1ece0;
  --paper-dim: #e7e0cf;
  --grey: #8d8a7d;
  --line: rgba(20, 20, 15, 0.14);
  --line-on-dark: rgba(241, 236, 224, 0.16);
  --olive: #4a5740;
  --olive-deep: #333c2c;
  --brass: #a9895a;

  --font-serif: 'Fraunces', Georgia, serif;
  --font-sans: 'Archivo', Helvetica, Arial, sans-serif;

  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --section-y: clamp(4rem, 9vw, 8.5rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 500; margin: 0; letter-spacing: -0.01em; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; }
.section--tight { padding: clamp(3rem, 6vw, 5rem) 0; }

/* -------------------- Buttons -------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0.95em 1.8em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--olive-deep); }
.btn--solid-light { background: var(--paper); color: var(--ink); }
.btn--solid-light:hover { background: var(--brass); color: var(--ink); }
.btn--line { border-color: var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.btn--line-light { border-color: var(--line-on-dark); color: var(--paper); }
.btn--line-light:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* -------------------- Header / Nav -------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.1rem var(--gutter);
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}
.site-header.is-scrolled {
  background: rgba(241, 236, 224, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand__logo { height: 115px; width: auto; }
body.dark-hero .site-header:not(.is-scrolled) .brand__logo { filter: invert(1) brightness(2); }

.main-nav { display: flex; align-items: center; gap: 2.4rem; }
.main-nav ul { display: flex; gap: 2rem; }
.main-nav a {
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, opacity 0.3s ease;
}
body.dark-hero .site-header:not(.is-scrolled) .main-nav a { color: var(--paper); }
body.dark-hero .site-header:not(.is-scrolled) .nav-cta { border-color: var(--line-on-dark); color: var(--paper); }
.main-nav a:hover, .main-nav a.is-active { border-color: currentColor; }
.nav-toggle { display: none; }

/* -------------------- Hero -------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--paper);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img, .hero__media.ph-img { width: 100%; height: 100%; object-fit: cover; }
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,20,15,0.35) 0%, rgba(20,20,15,0.35) 40%, rgba(20,20,15,0.85) 100%);
  z-index: 1;
}
.hero__content {
  position: relative; z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(3rem, 8vw, 6rem);
  width: 100%;
}
.hero__eyebrow { font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.75; margin-bottom: 1.4rem; }
.hero__headline {
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1.05;
  max-width: 16ch;
  margin-bottom: 1.4rem;
}
.hero__sub { font-size: clamp(1rem, 1.4vw, 1.2rem); max-width: 42ch; opacity: 0.9; margin-bottom: 2.2rem; }
.hero__ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

/* small page hero (non-home) */
.page-hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: flex-end;
  color: var(--paper);
}
.page-hero__content { position: relative; z-index: 2; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter) clamp(2.5rem, 6vw, 4rem); width: 100%; }
.page-hero__eyebrow { font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.75; margin-bottom: 1rem; }
.page-hero__title { font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: 20ch; }

/* -------------------- Placeholder imagery -------------------- */
.ph-img {
  position: relative;
  background: linear-gradient(135deg, #1c1c16 0%, #2b2b21 45%, #14140f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 220px;
}
.ph-img::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(169,137,90,0.18), transparent 55%),
              radial-gradient(circle at 75% 80%, rgba(74,87,64,0.28), transparent 55%);
}
.ph-img span {
  position: relative;
  color: rgba(241,236,224,0.55);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  padding: 0 1rem;
  font-family: var(--font-sans);
}

/* -------------------- Eyebrow / labels -------------------- */
.eyebrow { display: block; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey); margin-bottom: 1rem; }

/* -------------------- Intro / statement sections -------------------- */
.intro-section { }
.intro-section__grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.intro-section h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height: 1.15; }
.intro-section__body p { font-size: 1.05rem; color: var(--ink-soft); max-width: 56ch; }
.closing-line { font-family: var(--font-serif); font-style: italic; font-size: 1.15rem; margin-top: 1.6rem; color: var(--olive-deep); }

/* -------------------- Founders -------------------- */
.founders { background: var(--ink); color: var(--paper); }
.founders__intro { max-width: 60ch; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.founders__intro h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-bottom: 1rem; }
.founders__intro p { color: rgba(241,236,224,0.72); }
.founder-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
.founder-card__photo { aspect-ratio: 4/5; border-radius: 2px; overflow: hidden; margin-bottom: 1.6rem; }
.founder-card__photo img, .founder-card__photo.ph-img { width: 100%; height: 100%; object-fit: cover; }
.founder-card__name { font-size: 1.7rem; margin-bottom: 0.4rem; }
.founder-card__title { font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brass); margin-bottom: 1.2rem; }
.founder-card__bio p { color: rgba(241,236,224,0.78); font-size: 0.98rem; max-width: 46ch; }
.founder-card .btn { margin-top: 1.6rem; }

/* -------------------- Difference / statement banner -------------------- */
.statement {
  background: var(--olive-deep);
  color: var(--paper);
  text-align: left;
}
.statement h2 { font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.08; margin-bottom: 1.8rem; }
.statement__body { max-width: 52ch; }
.statement__body p { color: rgba(241,236,224,0.8); font-size: 1.05rem; }

/* -------------------- Services -------------------- */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.service-card { background: var(--paper); padding: clamp(2rem, 4vw, 3rem); }
.service-card__num { font-family: var(--font-serif); font-style: italic; color: var(--grey); font-size: 1rem; margin-bottom: 1.2rem; display: block; }
.service-card h3 { font-size: 1.5rem; margin-bottom: 0.8rem; }
.service-card p { color: var(--ink-soft); max-width: 42ch; }

.additional-list { margin-top: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--line); padding-top: 2rem; }
.additional-list__label { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey); margin-bottom: 1.2rem; }
.additional-list ul { display: flex; flex-wrap: wrap; gap: 0.6rem 0; }
.additional-list li { font-family: var(--font-serif); font-size: 1.15rem; padding-right: 1.6rem; margin-right: 1.4rem; border-right: 1px solid var(--line); }
.additional-list li:last-child { border-right: none; }

/* -------------------- Stats / international experience -------------------- */
.stats-section h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-bottom: 2.5rem; max-width: 20ch; }
.stats-row { display: flex; gap: clamp(2.5rem, 8vw, 6rem); flex-wrap: wrap; margin-bottom: 2.5rem; }
.stat__num { font-family: var(--font-serif); font-size: clamp(2.6rem, 6vw, 4.2rem); line-height: 1; color: var(--olive); }
.stat__label { font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--grey); margin-top: 0.6rem; max-width: 18ch; }
.stats-locations { font-size: 0.85rem; letter-spacing: 0.1em; color: var(--grey); margin-bottom: 1.2rem; }
.stats-body { max-width: 58ch; color: var(--ink-soft); }

/* -------------------- Selected experience (horizontal) -------------------- */
.experience-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 2.5rem; gap: 1rem; flex-wrap: wrap; }
.experience-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.experience-scroller { display: flex; gap: 1.4rem; overflow-x: auto; padding-bottom: 1rem; scroll-snap-type: x proximity; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); }
.experience-scroller::-webkit-scrollbar { height: 4px; }
.experience-scroller::-webkit-scrollbar-thumb { background: var(--line); }
.exp-card { flex: 0 0 clamp(260px, 32vw, 380px); scroll-snap-align: start; }
.exp-card__img { aspect-ratio: 4/5; margin-bottom: 1rem; overflow: hidden; }
.exp-card__img img, .exp-card__img.ph-img { width: 100%; height: 100%; object-fit: cover; }
.exp-card__title { font-size: 1.2rem; margin-bottom: 0.3rem; }
.exp-card__meta { font-size: 0.82rem; color: var(--grey); line-height: 1.5; }

/* -------------------- Institutions -------------------- */
.institutions { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.institutions__label { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey); margin-bottom: 1.6rem; }
.institutions__grid { display: flex; flex-wrap: wrap; gap: 0.5rem 2.4rem; }
.institutions__grid span { font-family: var(--font-serif); font-size: 1.1rem; color: var(--ink-soft); }

/* -------------------- Music / studio section -------------------- */
.music-section { background: var(--ink); color: var(--paper); }
.music-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.music-grid__img { aspect-ratio: 4/3; overflow: hidden; }
.music-grid__img img, .music-grid__img.ph-img { width: 100%; height: 100%; object-fit: cover; }
.music-section h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-bottom: 1.4rem; }
.music-section p { color: rgba(241,236,224,0.75); max-width: 44ch; }
.music-feature { margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid var(--line-on-dark); }
.music-feature__name { font-family: var(--font-serif); font-size: 1.3rem; }
.music-feature__loc { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brass); }
.music-section .btn { margin-top: 1.8rem; }

/* -------------------- Process -------------------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.process-step__num { font-family: var(--font-serif); font-style: italic; font-size: 1.1rem; color: var(--olive); display: block; margin-bottom: 1rem; }
.process-step h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }
.process-step p { color: var(--ink-soft); font-size: 0.95rem; }

/* -------------------- Final CTA -------------------- */
.final-cta { position: relative; color: var(--paper); overflow: hidden; }
.final-cta__media { position: absolute; inset: 0; z-index: 0; }
.final-cta__media img, .final-cta__media.ph-img { width: 100%; height: 100%; object-fit: cover; }
.final-cta__scrim { position: absolute; inset: 0; background: rgba(20,20,15,0.72); z-index: 1; }
.final-cta__inner { position: relative; z-index: 2; text-align: center; padding: clamp(4.5rem, 12vw, 8rem) var(--gutter); max-width: 700px; margin: 0 auto; }
.final-cta h2 { font-size: clamp(2.2rem, 6vw, 4rem); margin-bottom: 1.4rem; }
.final-cta p { color: rgba(241,236,224,0.82); margin-bottom: 2.2rem; }
.final-cta__ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* -------------------- Footer -------------------- */
.site-footer { background: var(--ink); color: var(--paper); padding: clamp(3rem, 6vw, 5rem) var(--gutter) 2rem; }
.site-footer__inner { max-width: var(--container); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--line-on-dark); }
.footer-logo { height: 26px; filter: invert(1) brightness(2); margin-bottom: 1.2rem; }
.footer-tag { font-size: 0.9rem; color: rgba(241,236,224,0.7); max-width: 32ch; }
.footer-locations { font-size: 0.8rem; letter-spacing: 0.08em; color: var(--brass); margin-top: 0.8rem; }
.footer-nav ul { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-nav a { font-size: 0.9rem; color: rgba(241,236,224,0.75); }
.footer-nav a:hover { color: var(--paper); }
.footer-contact { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-contact a { font-size: 0.9rem; color: rgba(241,236,224,0.75); }
.site-footer__legal { max-width: var(--container); margin: 1.6rem auto 0; font-size: 0.78rem; color: rgba(241,236,224,0.45); }

/* -------------------- Reveal animation -------------------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* -------------------- Generic content page blocks -------------------- */
.prose { max-width: 62ch; }
.prose p { color: var(--ink-soft); font-size: 1.05rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.history-list { border-top: 1px solid var(--line); margin-top: 2rem; }
.history-list li { display: flex; justify-content: space-between; gap: 1.5rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.history-list .role { color: var(--ink); }
.history-list .org { color: var(--grey); }
.history-list .years { color: var(--grey); white-space: nowrap; font-family: var(--font-serif); font-style: italic; }

.countries-grid { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; margin-top: 1.5rem; }
.countries-grid span { font-family: var(--font-serif); font-size: 1.05rem; }

/* -------------------- Project archive / case study -------------------- */
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); }
.project-card__img { aspect-ratio: 3/4; overflow: hidden; margin-bottom: 1.2rem; }
.project-card__img img, .project-card__img.ph-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.project-card:hover .project-card__img img { transform: scale(1.04); }
.project-card__title { font-size: 1.3rem; margin-bottom: 0.3rem; }
.project-card__meta { font-size: 0.85rem; color: var(--grey); }

.case-study__header { max-width: 70ch; margin-bottom: 2.5rem; }
.case-study__meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1.6rem; margin-top: 1.4rem; font-size: 0.85rem; color: var(--grey); }
.case-study__meta strong { color: var(--ink); font-weight: 500; }
.case-study__img { aspect-ratio: 16/9; margin-bottom: 2.5rem; overflow: hidden; }
.case-study__img img, .case-study__img.ph-img { width: 100%; height: 100%; object-fit: cover; }
.case-study__back { display: inline-block; margin-bottom: 2rem; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--grey); }
.case-study__back:hover { color: var(--ink); }

/* -------------------- Contact -------------------- */
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.contact-form .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--grey); margin-bottom: 0.5rem; }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 0.85em 0;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  border-radius: 0;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--olive); }
.contact-form .btn { margin-top: 0.6rem; }
.form-note { font-size: 0.85rem; color: var(--grey); margin-top: 1rem; }
.alert { padding: 1rem 1.2rem; border-radius: 4px; margin-bottom: 1.5rem; font-size: 0.92rem; }
.alert--success { background: rgba(74,87,64,0.12); color: var(--olive-deep); }
.alert--error { background: rgba(160,60,50,0.1); color: #7a2c22; }

/* -------------------- Responsive -------------------- */
@media (max-width: 900px) {
  .founder-grid, .music-grid, .two-col, .services-grid, .project-grid { grid-template-columns: 1fr; }
  .intro-section__grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer__inner { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 32px; height: 32px; background: none; border: none; cursor: pointer; padding: 0; z-index: 101;
  }
  .nav-toggle span { display: block; height: 1.5px; background: currentColor; width: 100%; }
  body.dark-hero .site-header:not(.is-scrolled) .nav-toggle { color: var(--paper); }
  .main-nav {
    position: fixed; inset: 0; z-index: 99;
    background: var(--ink); color: var(--paper);
    flex-direction: column; justify-content: center; align-items: flex-start;
    padding: 2rem var(--gutter);
    transform: translateX(100%);
    transition: transform 0.4s ease;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 1.4rem; margin-bottom: 2rem; }
  .main-nav a { font-size: 1.3rem; color: var(--paper); }
  .nav-cta { border-color: var(--line-on-dark); color: var(--paper); }
  .process-grid { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; }
}
