/* ── Reset & Base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --white:    #ffffff;
  --off-white:#f4f4f4;
  --light:    #eeeeee;
  --grey-1:   #cccccc;
  --grey-2:   #999999;
  --grey-3:   #555555;
  --dark:     #121212;
  --dark-2:   #343434;
  --accent:   #800004;
  --accent-light: rgba(128,0,4,0.08);
  --accent-mid:   rgba(128,0,4,0.15);

  --font: 'Roboto', system-ui, sans-serif;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--off-white);
  color: var(--dark);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Nav ──────────────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 4rem;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s, box-shadow 0.4s;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  padding: 1.25rem 0;
}

#nav.scrolled {
  background: rgba(255,255,255,0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--light);
}

.nav-logo {
  display: flex;
  align-items: center;
  position: relative;
}

.nav-logo-text {
  height: 28px;
  width: auto;
}


.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.875rem;
  color: var(--grey-2);
  transition: color 0.2s;
}

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

.nav-cta {
  color: var(--white) !important;
  background: var(--accent);
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  font-weight: 500;
  transition: opacity 0.2s !important;
}

.nav-cta:hover { opacity: 0.85; }

/* ── Panels ───────────────────────────────────────────── */
.panel {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 4rem;
  position: relative;
  overflow: hidden;
  background-color: var(--off-white);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.panel-alt { background-color: var(--white); }

/* ── Panel background colours ─────────────────────────── */
#problem  { background-color: var(--white); }
#process  { background-color: var(--white); }
#contact  { background-color: var(--white); }

/* ── Hero ─────────────────────────────────────────────── */
#hero { justify-content: center; }

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(16px);
}

.hero-headline {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--dark);
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(24px);
}

.highlight { color: var(--accent); }

.hero-sub {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--grey-3);
  font-weight: 300;
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(16px);
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--grey-2);
  transition: color 0.2s;
  opacity: 0;
}

.scroll-cue:hover { color: var(--dark); }

/* ── Section typography ───────────────────────────────── */
.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
  text-align: center;
}

.section-headline {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--dark);
  margin-bottom: 1.5rem;
  text-align: center;
}

.section-body {
  font-size: 1.1rem;
  color: var(--grey-3);
  line-height: 1.7;
  max-width: 540px;
  text-align: center;
  margin: 0 auto;
}

.panel-content { max-width: 1100px; margin: 0 auto; width: 100%; position: relative; z-index: 1; }
.panel-content.centered { text-align: center; }
.panel-content.centered .section-body { margin: 0 auto; }

/* ── Scroll animation targets ─────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
}

/* ── Problem — stats ──────────────────────────────────── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1100px;
  margin: 4rem auto 0;
  width: 100%;
  position: relative;
  z-index: 1;
}

.stat {
  border: 1px solid var(--light);
  border-radius: 12px;
  padding: 2rem;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  text-align: center;
}

.stat-number {
  display: block;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--grey-2);
  line-height: 1.5;
}

/* ── Process ──────────────────────────────────────────── */
.process-header {
  max-width: 1100px;
  margin: 0 auto 4rem;
  width: 100%;
  position: relative;
  z-index: 1;
}

.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}

.step {
  flex: 1;
  opacity: 0;
  transform: translateY(32px);
}

.step-connector {
  flex-shrink: 0;
  width: 40px;
  display: flex;
  align-items: flex-start;
  padding-top: 2.4rem;
}

.step-connector svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.step-icon { font-size: 2rem; margin-bottom: 1.25rem; }

.step[data-step]::before {
  content: attr(data-step);
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.step-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
  color: var(--dark);
}

.step-body {
  font-size: 0.9rem;
  color: var(--grey-2);
  line-height: 1.6;
}

/* ── Work grid ────────────────────────────────────────── */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1100px;
  margin: 3rem auto 0;
  width: 100%;
}

.work-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--light);
  border-radius: 12px;
  padding: 2rem;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s, transform 0.2s;
}

.work-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  transform: translateY(-4px);
}

.work-card--giv2 {
  background: #ffffff;
  border-color: #e0f7f7;
}

.work-card--giv2 .work-card-tag { color: #3ecfcf; }
.work-card--giv2 a.work-card-link { color: #3ecfcf; }
.work-card--giv2:hover { border-color: #3ecfcf; }

.work-card--giv2 .work-card-logo {
  height: 56px;
}

.work-card--teachm {
  background: #f7f4fb;
  border-color: #ddd3ec;
}

.work-card--teachm .work-card-tag { color: #7F5A9B; }
.work-card--teachm .work-card-body { color: var(--grey-2); }
.work-card--teachm .work-card-link { color: var(--grey-1); }
.work-card--teachm:hover { border-color: #7F5A9B; }

.work-card--musikian {
  background: #1a1c24;
  border-color: #575b71;
}

.work-card--musikian .work-card-tag { color: #fdae3b; }
.work-card--musikian .work-card-body { color: #bcbdc1; }
.work-card--musikian a.work-card-link { color: #fdae3b; }
.work-card--musikian:hover { border-color: #fdae3b; }

.work-card-logo {
  height: 28px;
  width: auto;
  margin: 1.5rem 0;
  display: flex;
  align-items: center;
  flex: 1;
}

.work-card-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.work-card-title {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  color: var(--dark);
}

.work-card-body {
  font-size: 0.9rem;
  color: var(--grey-2);
  line-height: 1.6;
  margin-top: auto;
  margin-bottom: 1.5rem;
}

.work-card-link { font-size: 0.875rem; color: var(--grey-1); }
a.work-card-link { color: var(--accent); transition: opacity 0.2s; }
a.work-card-link:hover { opacity: 0.7; }

/* ── Contact ──────────────────────────────────────────── */
.contact-content {
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
  text-align: center;
}

.contact-form {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--off-white);
  border: 1px solid var(--light);
  border-radius: 8px;
  padding: 0.875rem 1rem;
  color: var(--dark);
  font-family: var(--font);
  font-size: 0.9rem;
  transition: border-color 0.2s;
  outline: none;
  resize: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--grey-1); }

.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--accent); }

.btn-submit {
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 0.875rem 2rem;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  align-self: center;
}

.btn-submit:hover { opacity: 0.85; transform: translateY(-1px); }
.btn-submit:active { transform: translateY(0); }

/* ── Footer ───────────────────────────────────────────── */
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 4rem;
  border-top: 1px solid var(--light);
  font-size: 0.8rem;
  color: var(--grey-2);
  background: var(--white);
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 900px) {
  .panel { padding: 7rem 2rem; background-attachment: scroll; }
  #nav { padding: 0 1.5rem; }
  .nav-inner { padding: 1rem 0; }
  footer { padding: 1.5rem 1.5rem; flex-direction: column; gap: 0.5rem; text-align: center; }
  .stat-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .steps { flex-direction: column; gap: 2.5rem; }
  .step-connector { display: none; }
  .step {
    opacity: 1;
    transform: none;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 0.75rem 1.5rem;
    align-items: center;
  }
  .step[data-step]::before { grid-column: 1; grid-row: 1; margin-bottom: 0.5rem; }
  .step-icon { grid-column: 1; grid-row: 2; font-size: 1.75rem; margin-bottom: 0; }
  .step-title { grid-column: 2; grid-row: 1; margin-bottom: 0.5rem; }
  .step-body { grid-column: 2; grid-row: 2; }

}

@media (max-width: 600px) {
  /* Hide nav links on mobile — only show CTA */
  .nav-links li:not(:last-child) { display: none; }
  /* Shrink and cap logo so it can't push the CTA off screen */
  .nav-logo-text { height: 20px; max-width: 140px; }
  .form-row { grid-template-columns: 1fr; }
  .hero-headline { font-size: 3rem; }
  .section-headline { font-size: clamp(1.75rem, 7vw, 2.5rem); }
  .panel { padding: 6rem 1.5rem; }
}
