/* ============================================================
   JAMES MORGAN — Brand Website
   Faithful translation of the one-pager into a responsive site.

   Colors (from brand logo):
     Navy   #04142E
     Yellow #F5C400
     White  #FFFFFF
     Gray   #F2F2F2
   ============================================================ */

:root {
  --navy: #04142E;
  --header-navy: #04142E;
  --yellow: #F5C400;
  --white: #FFFFFF;
  --gray: #F2F2F2;
  --text-muted: #5a6478;
  --container: 1200px;
  --gutter: clamp(24px, 5vw, 96px);
  --section-pad: clamp(72px, 10vw, 120px);
}


/* --- Reset & Base ----------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--navy);
  background-color: var(--white);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section {
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
}

.section--white { background-color: var(--white); color: var(--navy); }
.section--navy  { background-color: var(--header-navy); color: var(--white); }
.section--gray  { background-color: var(--gray); color: var(--navy); }

.text-yellow { color: var(--yellow); }
.text-navy   { color: var(--navy); }


/* --- Shared typography ------------------------------------ */

.section-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.15;
  color: var(--navy);
}

.section-title--navy {
  color: var(--navy);
}

.section-header {
  margin-bottom: clamp(40px, 6vw, 64px);
}

.section-rule {
  width: 48px;
  height: 3px;
  margin-top: 16px;
}

.section-rule--yellow {
  background-color: var(--yellow);
}


/* --- Reveal animation ------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Always show header + hero — site must not depend on JavaScript */
.site-header,
#hero .reveal {
  opacity: 1;
  transform: none;
}


/* ============================================================
   SITE HEADER
   ============================================================ */

.site-header {
  background-color: var(--header-navy);
  padding: clamp(20px, 3vw, 28px) var(--gutter);
  display: flex;
  justify-content: center;
  align-items: center;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: clamp(16px, 2vw, 28px);
  text-decoration: none;
  color: var(--white);
}

.brand-logo {
  height: clamp(56px, 8vw, 72px);
  width: auto;
  flex-shrink: 0;
  display: block;
}

.brand-tagline-primary {
  font-size: clamp(11px, 1.2vw, 13px);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.35;
  color: var(--white);
}

.brand-tagline-secondary {
  font-size: clamp(10px, 1.1vw, 12px);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.65);
}


/* ============================================================
   1. HERO
   ============================================================ */

.hero {
  padding: clamp(32px, 4vw, 48px) var(--gutter) clamp(48px, 6vw, 72px);
  background-color: var(--white);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 4vw, 48px);
  align-items: stretch;
  max-width: var(--container);
  margin: 0 auto;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-self: stretch;
}

.hero-copy {
  flex-shrink: 0;
}

.hero-name {
  font-size: clamp(3.25rem, 8vw, 5.75rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-name-first {
  display: block;
  color: var(--navy);
}

.hero-name-last {
  display: block;
  color: var(--yellow);
}

.hero-hook {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  font-weight: 400;
  line-height: 1.55;
  color: var(--navy);
  margin-bottom: 18px;
  max-width: 34em;
}

.hero-bio {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  font-weight: 400;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 34em;
}

.hero-bio strong {
  font-weight: 600;
}

/* Subtle cycling content categories */
.hero-rotator {
  margin-top: auto;
  padding-top: clamp(20px, 3vw, 28px);
  min-height: 1.5em;
}

.hero-rotator-text {
  display: inline-block;
  font-size: clamp(1.0625rem, 2.4vw, 2rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(4, 20, 46, 0.85);
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    color 0.9s ease;
}

.hero-rotator-text.is-entering {
  opacity: 0;
  transform: translateY(12px);
}

.hero-rotator-text.is-leaving {
  opacity: 0;
  transform: translateY(-12px);
  color: var(--yellow);
}

.hero-rotator:hover .hero-rotator-text:not(.is-entering):not(.is-leaving) {
  color: var(--yellow);
}

@media (prefers-reduced-motion: reduce) {
  .hero-rotator-text {
    transition: none;
  }
}

.hero-portrait {
  margin: 0;
  display: flex;
  justify-content: flex-end;
  align-self: stretch;
}

.hero-portrait-image {
  width: 100%;
  max-width: 480px;
  margin-left: auto;
  aspect-ratio: 960 / 1577;
  object-fit: cover;
  object-position: 58% center;
  display: block;
}


/* ============================================================
   2. PHILOSOPHY
   ============================================================ */

.philosophy-inner {
  display: grid;
  grid-template-columns: 1fr auto 1.2fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
}

/* Even spacing above and below the yellow rule */
.philosophy-left .section-label {
  margin-bottom: 0;
}

.philosophy-left .section-rule {
  margin-top: clamp(18px, 2.5vw, 24px);
  margin-bottom: clamp(18px, 2.5vw, 24px);
}

.philosophy-lead {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  font-weight: 400;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  max-width: 22em;
}

.philosophy-divider {
  width: 2px;
  align-self: stretch;
  min-height: 120px;
  background-color: var(--yellow);
}

.philosophy-headline {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.philosophy-sub {
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}

.philosophy-sub em {
  font-style: italic;
  font-weight: 500;
  color: var(--white);
}


/* ============================================================
   INTRO VIDEO
   ============================================================ */

.intro.section {
  padding-top: clamp(48px, 8vw, 80px);
  padding-bottom: clamp(16px, 3vw, 24px);
}

.intro-video {
  max-width: 960px;
  margin: 0 auto;
  opacity: 1;
  transform: none;
}

.intro-video-player {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  background-color: var(--navy);
  border: 1px solid rgba(4, 20, 46, 0.08);
}


/* ============================================================
   SAMPLE WORK VIDEOS
   ============================================================ */

.work-videos.section {
  padding-top: clamp(16px, 3vw, 24px);
  padding-bottom: clamp(16px, 3vw, 24px);
}

.work-videos-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 280px));
  justify-content: center;
  gap: clamp(28px, 4vw, 48px);
}

.work-video {
  flex: 0 0 auto;
  width: min(100%, 300px);
  text-align: center;
}

.work-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  background-color: var(--navy);
  border: 1px solid rgba(4, 20, 46, 0.08);
  overflow: hidden;
}

.work-video-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background-color: var(--navy);
}

.work-video-label {
  margin-top: 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
}


/* ============================================================
   3. WHY BRANDS HIRE ME
   ============================================================ */

.why.section {
  padding-top: clamp(24px, 4vw, 40px);
  padding-bottom: clamp(24px, 4vw, 40px);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(32px, 4vw, 48px) clamp(24px, 3vw, 40px);
}

.why-item {
  text-align: center;
}

.icon-circle {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
}

.icon-circle svg {
  width: 32px;
  height: 32px;
}

.why-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--navy);
}

.why-text {
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--text-muted);
}


/* ============================================================
   4. CONTENT I CREATE
   ============================================================ */

.content.section {
  padding-top: clamp(24px, 4vw, 40px);
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 32px);
  margin-bottom: clamp(56px, 8vw, 80px);
}

.content-card {
  text-align: center;
  padding: clamp(24px, 3vw, 32px) 16px;
  background-color: var(--white);
  border: 1px solid rgba(4, 20, 46, 0.08);
  transition: border-color 0.25s ease;
}

.content-card:hover {
  border-color: rgba(4, 20, 46, 0.18);
}

.content-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--gray);
  color: var(--navy);
}

.content-icon svg {
  width: 28px;
  height: 28px;
}

.content-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.45;
  color: var(--navy);
}


/* ============================================================
   5. CALL TO ACTION
   ============================================================ */

.cta-inner {
  display: grid;
  grid-template-columns: 1.05fr auto 1fr;
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}

.cta-message {
  padding-top: 0;
}

.cta-headline {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0;
}

.cta-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 12px;
}

.cta-headline-white {
  display: block;
  color: var(--white);
}

.cta-headline-yellow {
  display: block;
  color: var(--yellow);
}

.cta-logo {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  align-self: start;
}

.cta-logo-image {
  height: clamp(96px, 14vw, 140px);
  width: auto;
  display: block;
  flex-shrink: 0;
}

.cta-contact {
  text-align: right;
  align-self: start;
}

.cta-email {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  font-weight: 400;
  color: var(--white);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.cta-email:hover {
  opacity: 0.75;
}


/* ============================================================
   RESPONSIVE — Tablet
   ============================================================ */

@media (max-width: 1024px) {

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-content {
    min-height: auto;
  }

  .hero-rotator {
    margin-top: clamp(28px, 5vw, 40px);
  }

  .hero-portrait-image {
    margin-left: 0;
    max-width: 420px;
  }

  .philosophy-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .philosophy-divider {
    width: 48px;
    height: 3px;
    min-height: 0;
    align-self: auto;
  }

  .work-videos-grid {
    grid-template-columns: repeat(2, minmax(0, 280px));
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .content-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cta-contact {
    text-align: center;
  }

}


/* ============================================================
   RESPONSIVE — Mobile
   ============================================================ */

@media (max-width: 640px) {

  .brand-lockup {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .content-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-name {
    font-size: clamp(2.75rem, 14vw, 3.5rem);
  }

  .hero-rotator-text {
    font-size: clamp(0.9375rem, 3.8vw, 1.25rem);
    letter-spacing: 0.12em;
  }

  .work-videos-grid {
    grid-template-columns: minmax(0, 280px);
  }

  .work-video {
    width: min(100%, 280px);
  }

}
