/* ============================================
   NICK LENZI — nicklenzi.com
   Visual Redesign — Editorial Magazine Feel
   Libre Baskerville + Inter | Dark/Light Rhythm
   ============================================ */

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

:root {
  /* Core Palette — refined, confident, limited */
  --navy: #0F2139;
  --navy-mid: #1A3151;
  --cream: #F7F3ED;
  --warm-white: #FDFCFA;
  --accent: #C4653A;
  --accent-hover: #A8522D;
  --accent-light: #E8D5C4;
  --text-primary: #0F2139;
  --text-body: #3A3A3A;
  --text-light: #6B6B6B;
  --text-on-dark: rgba(255, 255, 255, 0.88);
  --text-on-dark-muted: rgba(255, 255, 255, 0.6);
  --border-light: #E5E0D8;
  --border-dark: rgba(255, 255, 255, 0.12);

  /* Spacing */
  --section-pad: 100px;
  --section-pad-sm: 64px;
  --container-max: 1100px;
  --content-width: 720px;
  --gap: 24px;

  /* Brand stripe */
  --stripe-height: 4px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-body);
  background-color: var(--warm-white);
}

/* Brand stripe at top of page */
body::before {
  content: '';
  display: block;
  width: 100%;
  height: var(--stripe-height);
  background: var(--accent);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-hover);
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  color: var(--text-primary);
  line-height: 1.25;
  font-weight: 700;
}

h1 {
  font-size: 2.75rem;
  letter-spacing: -0.015em;
  line-height: 1.15;
}

h2 {
  font-size: 2rem;
  margin-bottom: 24px;
}

h3 {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 16px;
}

h4 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 12px;
}

p {
  margin-bottom: 1.25em;
  font-size: 1rem;
}

.text-large {
  font-size: 1.125rem;
  line-height: 1.8;
}

.text-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: block;
}

/* --- Layout --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Sections: dark/light rhythm --- */
.section {
  padding: var(--section-pad) 0;
}

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

.section--navy {
  background-color: var(--navy);
  color: var(--text-on-dark);
}

.section--navy h2,
.section--navy h3,
.section--navy h4 {
  color: #fff;
}

.section--navy p {
  color: var(--text-on-dark);
}

.section--navy a:not(.btn) {
  color: var(--accent-light);
}

.section--navy a:not(.btn):hover {
  color: #fff;
}

.section--navy .text-label {
  color: var(--accent-light);
}

.section--white {
  background-color: #fff;
}

/* --- Photo Divider — full-bleed parallax strip between sections --- */
.photo-divider {
  width: 100%;
  height: 320px;
  overflow: hidden;
  position: relative;
  background-size: cover;
  background-position: center 40%;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

.photo-divider--short {
  height: 220px;
}

.photo-divider--tall {
  height: 420px;
}

/* Photo strip — multiple images in a row */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  width: 100%;
  overflow: hidden;
}

.photo-strip img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: var(--stripe-height);
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(253, 252, 250, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow 0.3s ease;
}

.nav--scrolled {
  box-shadow: 0 1px 16px rgba(0, 0, 0, 0.06);
}

.nav__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav__logo img {
  height: 44px;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav__links a {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-body);
  text-decoration: none;
  transition: color 0.2s ease;
  letter-spacing: 0.01em;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--accent);
}

.nav__links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.nav__links li {
  position: relative;
}

.nav__cta {
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--accent);
  color: #fff !important;
  padding: 10px 24px;
  border-radius: 5px;
  transition: background 0.2s ease, transform 0.15s ease;
}

.nav__cta:hover {
  background: var(--accent-hover);
  color: #fff !important;
  transform: translateY(-1px);
}

/* Mobile nav toggle */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: all 0.3s ease;
  border-radius: 1px;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 14px 32px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  border: none;
  letter-spacing: 0.01em;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(196, 101, 58, 0.25);
}

.btn--outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn--outline:hover {
  background: var(--accent);
  color: #fff;
}

.btn--white {
  background: #fff;
  color: var(--navy);
}

.btn--white:hover {
  background: var(--cream);
  color: var(--navy);
  transform: translateY(-2px);
}

/* --- Hero --- */
.hero {
  padding: calc(64px + var(--stripe-height) + 40px) 0 0;
  position: relative;
  overflow: hidden;
  background: var(--cream);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  min-height: 480px;
}

.hero__content {
  max-width: 520px;
  padding: 48px 0;
}

.hero__label {
  margin-bottom: 20px;
}

.hero h1 {
  margin-bottom: 24px;
}

.hero__subtitle {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-light);
  margin-bottom: 36px;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__image {
  position: relative;
  height: 100%;
  min-height: 480px;
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

/* --- Proof Points --- */
.proof {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  text-align: center;
}

.proof__item {
  padding: 40px 16px;
  border-right: 1px solid var(--border-dark);
}

.proof__item:last-child {
  border-right: none;
}

.proof__number {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 2.25rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: 8px;
}

.proof__label {
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  color: var(--text-on-dark-muted);
  line-height: 1.4;
  letter-spacing: 0.01em;
}

/* --- Cards --- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  background: #fff;
  border-radius: 8px;
  padding: 36px 32px;
  border: 1px solid var(--border-light);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.07);
}

.card__icon {
  width: 44px;
  height: 44px;
  background: var(--cream);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
  font-size: 1.25rem;
}

.card h3 {
  font-size: 1.25rem;
}

.card p {
  color: var(--text-light);
  font-size: 0.9375rem;
  margin-bottom: 16px;
}

.card__link {
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.card__link:hover {
  gap: 10px;
}

/* --- Testimonials --- */
.testimonial {
  background: var(--cream);
  border-radius: 8px;
  padding: 36px;
  border-left: 3px solid var(--accent);
  position: relative;
}

.section--cream .testimonial {
  background: #fff;
}

.testimonial__quote {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 1.0625rem;
  font-style: italic;
  line-height: 1.7;
  color: var(--text-body);
  margin-bottom: 20px;
}

.testimonial__author {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--navy);
  letter-spacing: 0.02em;
}

.testimonial__role {
  font-size: 0.8125rem;
  color: var(--text-light);
}

.testimonial__person {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}

.testimonial__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

/* --- Content Grid (two-column text+image layouts) --- */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.content-grid--reverse > :first-child {
  order: 2;
}

.content-grid--reverse > :last-child {
  order: 1;
}

.content-grid img {
  border-radius: 8px;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* --- Article / Long-form content --- */
.article {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px;
}

.article p {
  font-size: 1.0625rem;
  line-height: 1.85;
  margin-bottom: 1.5em;
}

.article h2 {
  margin-top: 56px;
  margin-bottom: 20px;
}

.article h3 {
  margin-top: 40px;
}

.article img {
  border-radius: 8px;
}

/* --- Resource List --- */
.resource-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.resource-item {
  background: #fff;
  border-radius: 8px;
  padding: 28px 32px;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: flex-start;
  gap: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.section--cream .resource-item {
  background: #fff;
}

.resource-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.resource-item__number {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--cream);
  width: 36px;
  height: 36px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.resource-item__content h3 {
  font-size: 1.125rem;
  margin-bottom: 6px;
}

.resource-item__content p {
  font-size: 0.9375rem;
  color: var(--text-light);
  margin-bottom: 8px;
}

/* --- Email Signup --- */
.signup {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.signup h2 {
  margin-bottom: 12px;
}

.signup p {
  color: var(--text-light);
  margin-bottom: 28px;
}

/* --- Page Header (interior pages) --- */
.page-header {
  padding: calc(64px + var(--stripe-height) + 48px) 0 64px;
  text-align: center;
  background: var(--cream);
}

.page-header h1 {
  margin-bottom: 16px;
}

.page-header p {
  font-size: 1.0625rem;
  color: var(--text-light);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* --- Service Blocks (Work With Nick) --- */
.services {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.service {
  background: #fff;
  border-radius: 8px;
  padding: 44px 48px;
  border: 1px solid var(--border-light);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: start;
}

.service__number {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.25;
  line-height: 1;
}

.service__content h3 {
  font-size: 1.375rem;
  margin-bottom: 12px;
}

.service__content p {
  color: var(--text-light);
  margin-bottom: 0;
}

.service__content p + p {
  margin-top: 1em;
}

/* --- Divider --- */
.divider {
  width: 40px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin-bottom: 20px;
}

/* --- Footer --- */
.footer {
  background: var(--navy);
  color: var(--text-on-dark-muted);
  padding: 56px 0 32px;
}

.footer__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
}

.footer__brand {
  max-width: 320px;
}

.footer__brand-name {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.footer__brand p {
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer__social {
  display: flex;
  gap: 16px;
}

.footer__social a {
  color: var(--text-on-dark-muted);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.footer__social a:hover {
  color: #fff;
}

.footer__links {
  display: flex;
  gap: 48px;
}

.footer__col h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}

.footer__col ul {
  list-style: none;
}

.footer__col ul li {
  margin-bottom: 10px;
}

.footer__col ul a {
  color: var(--text-on-dark-muted);
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.footer__col ul a:hover {
  color: #fff;
}

.footer__bottom {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 24px 24px 0;
  margin-top: 40px;
  border-top: 1px solid var(--border-dark);
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-on-dark-muted);
}

/* --- Forms (shared across contact + booking pages) --- */
.form-group {
  margin-bottom: 24px;
}

.form-group label,
.form-group > .form-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  padding: 12px 16px;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  background: #fff;
  color: var(--text-body);
  transition: border-color 0.2s ease;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

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

.form-group textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}

.form-group .form-hint {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 4px;
}

.meeting-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 4px;
}

.meeting-option {
  position: relative;
}

.meeting-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.meeting-option label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 12px;
  border: 2px solid var(--border-light);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  font-weight: 500;
  margin-bottom: 0;
}

.meeting-option label:hover {
  border-color: var(--accent);
  background: rgba(196, 101, 58, 0.04);
}

.meeting-option input[type="radio"]:checked + label {
  border-color: var(--accent);
  background: rgba(196, 101, 58, 0.06);
  color: var(--navy);
}

.meeting-option__emoji {
  font-size: 1.5rem;
  line-height: 1;
}

.meeting-option__text {
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
}

.location-group {
  display: none;
  margin-top: -4px;
}

.location-group.visible {
  display: block;
}

.form-error {
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  color: #c0392b;
  margin-top: 8px;
  display: none;
}

.form-error.visible {
  display: block;
}

.confirmation {
  text-align: center;
  padding: 48px 32px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 8px;
}

.confirmation__check {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.confirmation__check svg {
  width: 32px;
  height: 32px;
  color: var(--accent);
}

.confirmation h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.confirmation p {
  color: var(--text-light);
  max-width: 420px;
  margin: 0 auto;
}

.pac-container {
  font-family: 'Inter', sans-serif;
  border-radius: 6px;
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  margin-top: 4px;
}

.pac-item {
  padding: 10px 14px;
  font-size: 0.875rem;
  cursor: pointer;
}

.pac-item:hover {
  background: var(--cream);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hero__content {
    max-width: 100%;
    padding: 48px 0 32px;
  }

  .hero__image {
    position: relative;
    min-height: 360px;
    margin: 0 -24px;
    width: calc(100% + 48px);
  }

  .hero__image img {
    position: relative;
    object-position: center 15%;
  }

  .proof {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

  .service {
    padding: 32px;
  }

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

  .photo-divider {
    background-attachment: scroll;
  }
}

@media (max-width: 768px) {
  :root {
    --section-pad: 64px;
  }

  h1 { font-size: 1.875rem; }
  h2 { font-size: 1.5rem; }

  .nav {
    top: var(--stripe-height);
  }

  .nav__links {
    display: none;
    position: fixed;
    top: calc(64px + var(--stripe-height));
    left: 0;
    right: 0;
    background: var(--warm-white);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  }

  .nav__links.open {
    display: flex;
  }

  .nav__toggle {
    display: block;
  }

  .hero {
    padding-top: calc(64px + var(--stripe-height) + 24px);
  }

  .hero__image {
    min-height: 280px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .proof__item {
    padding: 24px 12px;
  }

  .proof__number {
    font-size: 1.75rem;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .photo-divider {
    height: 220px;
  }

  .photo-divider--tall {
    height: 280px;
  }

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

  .photo-strip img {
    height: 180px;
  }

  .footer__inner {
    flex-direction: column;
  }

  .footer__links {
    flex-direction: column;
    gap: 32px;
  }

  .service {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 28px 24px;
  }

  .service__number {
    font-size: 2rem;
  }

  .resource-item {
    flex-direction: column;
    gap: 12px;
    padding: 24px;
  }

  .page-header {
    padding-top: calc(64px + var(--stripe-height) + 32px);
  }

  .meeting-options {
    grid-template-columns: 1fr;
  }

  .meeting-option label {
    flex-direction: row;
    gap: 10px;
    padding: 14px 16px;
  }

  .confirmation {
    padding: 36px 20px;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.625rem; }

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

  .proof__number {
    font-size: 1.5rem;
  }

  .photo-strip {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================================
   Motion system — subtle, editorial, accessible
   Added June 2026. Hooks onto existing classes only; no markup
   changes required beyond adding .reveal to elements you want
   to animate on scroll. Honors prefers-reduced-motion.
   ============================================================ */

/* --- Hero load-in: staggered fade + slight rise --- */
.hero__label,
.hero h1,
.hero__subtitle,
.hero__actions,
.hero__image {
  opacity: 0;
  transform: translateY(16px);
  animation: heroRise 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero__label   { animation-delay: 0.05s; }
.hero h1       { animation-delay: 0.18s; }
.hero__subtitle{ animation-delay: 0.34s; }
.hero__actions { animation-delay: 0.50s; }
.hero__image   { animation-delay: 0.32s; transform: translateY(24px); }

@keyframes heroRise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Scroll reveal: elements tagged .reveal fade up into view --- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

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

/* Stagger children of a .reveal-group as each becomes visible */
.reveal-group.is-visible > .reveal { opacity: 1; transform: translateY(0); }
.reveal-group > .reveal:nth-child(1) { transition-delay: 0.00s; }
.reveal-group > .reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal-group > .reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal-group > .reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal-group > .reveal:nth-child(5) { transition-delay: 0.32s; }

/* --- Nav settle on load --- */
.nav {
  animation: navSettle 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes navSettle {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- Accessibility: respect reduced-motion --- */
@media (prefers-reduced-motion: reduce) {
  .hero__label,
  .hero h1,
  .hero__subtitle,
  .hero__actions,
  .hero__image,
  .nav {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .reveal,
  .reveal.is-visible,
  .reveal-group > .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
