/* ===================================================
   Kerr Dakwahene — Portfolio
   Palette: deep red, warm gold, black, white
   =================================================== */

:root {
  --red: #9e1b22;
  --red-deep: #7a1218;
  --gold: #c9a24a;
  --gold-soft: #e6d3a3;
  --black: #0e0d0c;
  --charcoal: #1a1817;
  --white: #ffffff;
  --ivory: #faf7f1;
  --text: #2a2725;
  --muted: #6d6863;

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;

  --radius: 4px;
  --shadow: 0 20px 50px -25px rgba(14, 13, 12, 0.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--black); overscroll-behavior: none; }
body { overscroll-behavior: none; }

body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--text);
  background: var(--ivory);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: min(1140px, 100% - 2.5rem); margin-inline: auto; }
.center { text-align: center; margin-top: 3rem; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; color: var(--black); }
h1 { font-size: clamp(3rem, 7vw, 5.5rem); }
h2 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); margin-bottom: 1.2rem; }
h3 { font-size: 1.5rem; }
h1 em, h2 em { font-style: italic; color: var(--gold); }
p + p { margin-top: 1rem; }

.eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.eyebrow--red { color: var(--red); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.9rem 1.8rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--sans);
}
.btn--sm { padding: 0.6rem 1.2rem; }
.btn--gold { background: var(--gold); color: var(--black); }
.btn--gold:hover { background: var(--gold-soft); }
.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover { background: var(--red-deep); }
.btn--ghost { border-color: rgba(255,255,255,0.35); color: var(--white); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn--outline-dark { border-color: var(--black); color: var(--black); }
.btn--outline-dark:hover { background: var(--black); color: var(--white); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background 0.35s ease;
}
.nav.scrolled {
  background: rgba(14, 13, 12, 0.97);
  border-bottom: 1px solid rgba(201, 162, 74, 0.2);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.3rem 0; transition: padding 0.35s ease;
}
.nav.scrolled .nav__inner { padding: 0.85rem 0; }

/* Email bar — always visible at the very top */
.topbar { background: var(--red); color: var(--white); font-size: 0.8rem; }
.topbar__inner { display: flex; justify-content: flex-end; align-items: center; gap: 1rem; padding: 0.5rem 0; }
.topbar__label { letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.68rem; color: var(--gold-soft); }
.topbar__email { font-weight: 500; letter-spacing: 0.03em; display: inline-flex; align-items: center; gap: 0.45rem; }
.topbar__email:hover { color: var(--gold-soft); }
.topbar__icon { color: var(--gold-soft); }
.nav__logo {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.02em;
}
.nav__logo span { color: var(--gold); font-style: italic; margin-left: 0.3rem; }
.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links a:not(.btn) {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.05em;
  position: relative;
}
.nav__links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -4px;
  width: 0; height: 1px; background: var(--gold); transition: width 0.3s;
}
.nav__links a:not(.btn):hover { color: var(--white); }
.nav__links a:not(.btn):hover::after { width: 100%; }

.nav__toggle { display: none; background: none; border: 0; cursor: pointer; width: 28px; height: 18px; position: relative; }
.nav__toggle span { position: absolute; left: 0; width: 100%; height: 1.5px; background: var(--white); transition: 0.3s; }
.nav__toggle span:first-child { top: 4px; }
.nav__toggle span:last-child { bottom: 4px; }
.nav__toggle.open span:first-child { top: 8px; transform: rotate(45deg); }
.nav__toggle.open span:last-child { bottom: 8px; transform: rotate(-45deg); }

/* ---------- Placeholders ---------- */
.placeholder {
  width: 100%;
  height: 100%;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(201,162,74,0.12), rgba(158,27,34,0.08)),
    #efe9de;
  border: 1px dashed rgba(201, 162, 74, 0.6);
  border-radius: var(--radius);
  color: var(--muted);
}
.placeholder--portrait { aspect-ratio: 4 / 5; }
.placeholder--square { aspect-ratio: 1 / 1; }
.placeholder--dark { background: linear-gradient(135deg, #24201e, #141211); color: rgba(255,255,255,0.55); border-color: rgba(201,162,74,0.35); }
.placeholder__icon { font-size: 2.2rem; color: var(--gold); line-height: 1; }
.placeholder__label { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; }
.placeholder__hint { font-size: 0.72rem; letter-spacing: 0.08em; opacity: 0.75; }

/* Make real images fill placeholder slots nicely */
.hero__photo img, .about__photo img, .podcast__cover img {
  width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius);
}
.hero__photo img, .about__photo img { aspect-ratio: 4 / 5; object-position: center top; }
.podcast__cover img { aspect-ratio: 1 / 1; }
.podcast__tagline {
  font-family: var(--serif); font-style: italic; font-size: 1.35rem;
  color: var(--gold); margin: -0.4rem 0 1.2rem;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(ellipse at 85% 20%, rgba(158,27,34,0.35), transparent 55%),
    radial-gradient(ellipse at 10% 90%, rgba(201,162,74,0.12), transparent 50%),
    var(--black);
  color: var(--white);
  padding: 10rem 0 5rem;
}
.hero__inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; align-items: center; }
.hero h1 { color: var(--white); margin-bottom: 1rem; font-size: clamp(2rem, 4.2vw, 3.3rem); white-space: nowrap; }
.hero__roles {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0;
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 2rem;
}
.hero__roles span + span::before {
  content: ""; display: inline-block; width: 1px; height: 0.9em;
  background: rgba(201,162,74,0.6); margin: 0 1.1rem 0 0.8rem; vertical-align: -0.1em;
}
.hero__lead { font-size: 1.1rem; color: rgba(255,255,255,0.72); max-width: 520px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2.5rem; }
@media (min-width: 821px) { .hero__actions .btn { padding-inline: 1.1rem; font-size: 0.72rem; letter-spacing: 0.08em; } }
.hero { position: relative; overflow: hidden; }
.hero__text { position: relative; z-index: 2; }
.hero__photo { position: absolute; top: 0; right: 0; bottom: 0; width: 48%; z-index: 1; }
.hero__photo .placeholder { position: relative; z-index: 1; background: linear-gradient(160deg, #2a2523, #161413); color: rgba(255,255,255,0.6); }
/* Photos run to the edge of the screen and fade softly into the page */
.hero__photo img, .about__photo img {
  display: block; height: 100%; aspect-ratio: auto; border-radius: 0;
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.hero__photo img {
  object-position: center 20%;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 35%), linear-gradient(to bottom, transparent 8%, #000 30%, #000 80%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 35%), linear-gradient(to bottom, transparent 8%, #000 30%, #000 80%, transparent);
}
.about__photo img {
  object-position: center 15%;
  -webkit-mask-image: linear-gradient(to left, transparent, #000 30%), linear-gradient(to bottom, #000 75%, transparent);
          mask-image: linear-gradient(to left, transparent, #000 30%), linear-gradient(to bottom, #000 75%, transparent);
}

/* ---------- Sections ---------- */
.section { padding: 7rem 0; }
.section__head { text-align: center; max-width: 620px; margin: 0 auto 4rem; }
.section__head .eyebrow { justify-content: center; }
.section__sub { color: var(--muted); }

/* About */
.about { background: var(--white); position: relative; overflow: hidden; }
.about__inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 5rem; align-items: center; }
.about__photo { position: absolute; top: 0; left: 0; bottom: 0; width: 46%; }
.about__text { grid-column: 2; position: relative; }
.about__text p { color: var(--muted); }
.about__text strong { color: var(--red); font-weight: 500; }
.stats { display: flex; gap: 3rem; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid #ece6da; }
.stats div { display: flex; flex-direction: column; }
.stats__num { font-family: var(--serif); font-size: 2.6rem; font-weight: 600; color: var(--gold); line-height: 1; }
.stats__label { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 0.5rem; }

/* Consulting */
.consulting { background: var(--ivory); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.card {
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: var(--radius);
  border-top: 2px solid var(--gold);
  box-shadow: var(--shadow);
  transition: transform 0.35s ease, border-color 0.35s ease;
}
.card:hover { transform: translateY(-6px); border-color: var(--red); }
.card__num { font-family: var(--serif); font-size: 1rem; color: var(--gold); font-style: italic; }
.card h3 { margin: 0.8rem 0 0.8rem; }
.card p { font-size: 0.92rem; color: var(--muted); }

/* Podcast */
.podcast {
  background:
    radial-gradient(ellipse at 0% 0%, rgba(201,162,74,0.12), transparent 50%),
    var(--charcoal);
  color: rgba(255,255,255,0.75);
}
.podcast h2 { color: var(--white); }
.podcast__inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 5rem; align-items: center; }
.podcast__cover { box-shadow: 0 30px 60px -20px rgba(158,27,34,0.5); border-radius: var(--radius); }
.episodes { list-style: none; margin: 2rem 0; border-top: 1px solid rgba(255,255,255,0.1); }
.episodes li {
  display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: 1rem;
  padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.episodes__no { font-size: 0.72rem; letter-spacing: 0.15em; color: var(--gold); }
.episodes__title { font-family: var(--serif); font-size: 1.2rem; color: var(--white); }
.episodes__play {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; font-size: 0.7rem;
  border: 1px solid rgba(201,162,74,0.5); color: var(--gold); transition: 0.3s;
}
.episodes__play:hover { background: var(--red); border-color: var(--red); color: var(--white); }
.episodes__play { background: none; cursor: pointer; font-family: inherit; }
.episodes__play.playing { background: var(--red); border-color: var(--red); color: var(--white); }
.episodes__title small { display: block; margin-top: 0.3rem; font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.1em; color: rgba(255,255,255,0.45); }
.episodes__progress { grid-column: 1 / -1; height: 3px; background: rgba(255,255,255,0.1); border-radius: 2px; cursor: pointer; display: none; }
.episodes__progress span { display: block; height: 100%; width: 0; background: var(--gold); border-radius: 2px; }
.episodes li.active .episodes__progress { display: block; }
.platforms { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem; font-size: 0.85rem; }
.platforms span { color: rgba(255,255,255,0.5); }
.platforms a { color: var(--gold); border-bottom: 1px solid transparent; transition: 0.3s; }
.platforms a:hover { border-color: var(--gold); }

/* YouTube */
.youtube { background: var(--white); }
.feature {
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 3rem; align-items: center;
  max-width: 1080px; margin: 0 auto;
}
.feature__video { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--black); }
.feature__video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.feature__label { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--red); margin-bottom: 0.9rem; }
.feature__text h3 { font-size: 1.8rem; margin-bottom: 1rem; }
.feature__text p:not(.feature__label) { color: var(--muted); }
.feature__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }

/* Connect */
.connect { background: var(--black); }
.connect h2 { color: var(--white); }
.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem 3rem; }
.socials a { display: block; padding: 0.4rem; color: var(--gold); transition: color 0.3s, transform 0.3s; }
.socials svg { display: block; width: 34px; height: 34px; fill: currentColor; }
.socials a:hover { color: var(--white); transform: translateY(-3px); }

/* Contact */
.contact { background: var(--ivory); }
.contact__inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 5rem; align-items: start; }
.contact__text p { color: var(--muted); }
.contact__email a { font-family: var(--serif); font-size: 1.5rem; color: var(--red); border-bottom: 1px solid var(--gold); }
.form {
  background: var(--white); padding: 2.5rem; border-radius: var(--radius);
  box-shadow: var(--shadow); display: grid; gap: 1.2rem;
  border-top: 2px solid var(--red);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form label { display: grid; gap: 0.4rem; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.form input, .form select, .form textarea {
  font: inherit; font-size: 0.95rem; text-transform: none; letter-spacing: normal; color: var(--text);
  padding: 0.8rem 0.9rem; border: 1px solid #e3dccd; border-radius: var(--radius); background: var(--ivory);
  transition: border-color 0.3s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--gold); }
.form .btn { justify-self: start; }
.form__note { font-size: 0.85rem; color: var(--red); }
.form__note a { text-decoration: underline; font-weight: 500; }
.form__honey { display: none; }
.form .btn:disabled { opacity: 0.6; cursor: wait; }

/* Footer */
.footer { background: var(--black); padding: 2.5rem 0; border-top: 1px solid rgba(201,162,74,0.2); }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.footer p { font-size: 0.8rem; color: rgba(255,255,255,0.45); }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .feature { grid-template-columns: 1fr; gap: 2rem; max-width: 680px; }
  .feature__text { text-align: center; }
  .feature__actions { justify-content: center; }
}

@media (max-width: 820px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: 0 0 0 auto; width: min(300px, 80%);
    flex-direction: column; align-items: flex-start; justify-content: center;
    padding: 2rem 2.5rem; gap: 1.6rem;
    background: var(--black); border-left: 1px solid rgba(201,162,74,0.25);
    transform: translateX(100%); transition: transform 0.4s ease;
  }
  .nav__links.open { transform: none; }
  .nav__links a:not(.btn) { font-size: 1.05rem; }
  .nav__toggle { z-index: 60; }

  .hero__inner, .about__inner, .podcast__inner, .contact__inner { grid-template-columns: 1fr; gap: 3.5rem; }
  /* Hero: full-bleed portrait fading into the name */
  .hero { min-height: 0; display: block; padding: 7.4rem 0 4.5rem; text-align: center; }
  .hero__inner { width: 100%; gap: 0; }
  .hero__photo { position: static; width: auto; order: -1; max-width: none; justify-self: stretch; }
  .hero__photo img {
    height: auto; aspect-ratio: 4 / 5; max-height: 72vh; object-position: center 15%;
    -webkit-mask-image: linear-gradient(to bottom, #000 50%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 50%, transparent 100%);
  }
  .hero__text { position: relative; z-index: 3; margin-top: -4.5rem; padding: 0 1.25rem; }
  .hero h1 { font-size: clamp(1.5rem, 7.6vw, 3.3rem); margin-bottom: 0.8rem; }
  .hero__roles {
    justify-content: center; margin-bottom: 1.6rem;
    font-size: clamp(0.6rem, 2.9vw, 0.72rem); letter-spacing: clamp(0.14em, 1vw, 0.26em);
  }
  .hero__roles span + span::before { margin: 0 0.7rem 0 0.5rem; }
  .hero__lead { margin-inline: auto; font-size: 1rem; }
  .hero__actions { justify-content: center; margin-top: 2rem; }
  .podcast__cover { max-width: 420px; }
  .about { padding-top: 0; }
  .about__photo { position: static; width: auto; margin: 0 -1.25rem; }
  .about__photo img {
    height: auto; aspect-ratio: 4 / 5; max-height: 75vh;
    -webkit-mask-image: linear-gradient(to bottom, #000 65%, transparent);
            mask-image: linear-gradient(to bottom, #000 65%, transparent);
  }
  .about__text { grid-column: auto; }
  .section { padding: 5rem 0; }
}

@media (max-width: 560px) {
  .cards, .form__row { grid-template-columns: 1fr; }
  .socials { gap: 1.2rem 1.3rem; }
  .socials a { padding: 0.25rem; }
  .socials svg { width: 30px; height: 30px; }
  .topbar__inner { justify-content: center; }
  .topbar__label { display: none; }
  .stats { gap: 1.5rem; }
  .stats__num { font-size: 2rem; }
  .form { padding: 1.8rem; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { text-align: center; }
}
