/* V22 Scrollytelling — Highway 1 Digital */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Source+Sans+3:wght@400;600;700&display=optional');

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

:root {
  --navy: #1b2838;
  --off-white: #faf8f5;
  --copper: #8a6540;
  --copper-light: #a07a55;
  --slate: #8a9bae;
  --navy-light: #2a3a4e;
  --font-heading: 'Instrument Serif', Georgia, serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--off-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Progress bar */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--copper);
  z-index: 1000;
  width: 0%;
  transition: width 0.1s linear;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--navy);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 9999;
  border-radius: 0 0 4px 4px;
}
.skip-link:focus { top: 0; }

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(27, 40, 56, 0.08);
  transition: transform 0.3s ease;
}
.nav--hidden { transform: translateY(-100%); }
.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.nav__links { display: flex; gap: 2rem; }
.nav__links a {
  color: var(--navy);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.nav__links a:hover { opacity: 1; }
.nav__cta { display: flex; align-items: center; }
.nav__toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav__toggle span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 5px 0; transition: 0.3s; }

@media (max-width: 768px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .nav__links--open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--off-white); padding: 1rem 2rem 2rem; border-bottom: 1px solid rgba(27,40,56,0.08); }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}
.btn--copper {
  background: var(--copper);
  color: #fff;
}
.btn--copper:hover {
  background: var(--copper-light);
  transform: translateY(-1px);
}
.btn--outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn--outline:hover {
  background: var(--navy);
  color: var(--off-white);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.container--narrow {
  max-width: 800px;
}

/* ===================== */
/* SCROLLYTELLING HERO   */
/* ===================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--off-white);
}
.hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, var(--navy) 100%);
  z-index: 0;
}
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 70%, rgba(196, 149, 106, 0.15), transparent 60%);
}
.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem;
}
.hero__eyebrow {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--copper);
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
}
.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(30px);
}
.hero__title em {
  font-style: italic;
  color: var(--copper);
}
.hero__subtitle {
  font-size: 1.25rem;
  max-width: 500px;
  margin: 0 auto 2.5rem;
  opacity: 0.8;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(20px);
}
.hero__cta {
  opacity: 0;
  transform: translateY(20px);
}
.hero__scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--copper);
  opacity: 0;
}
.hero__scroll-hint span {
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--copper), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* Reveal animations */
.reveal-hero { animation: revealUp 0.8s ease forwards; }
.reveal-hero-delay-1 { animation: revealUp 0.8s 0.15s ease forwards; }
.reveal-hero-delay-2 { animation: revealUp 0.8s 0.3s ease forwards; }
.reveal-hero-delay-3 { animation: revealUp 0.8s 0.45s ease forwards; }
.reveal-hero-delay-4 { animation: revealUp 0.8s 0.7s ease forwards; }

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

/* ===================== */
/* CHAPTER SECTIONS      */
/* ===================== */
.chapter {
  padding: 6rem 0;
  contain: layout style;
}
.chapter--navy {
  background: var(--navy);
  color: var(--off-white);
}
.chapter--white {
  background: var(--off-white);
  color: var(--navy);
}
.chapter--copper-bg {
  background: var(--copper);
  color: #fff;
}
.chapter__number {
  font-family: var(--font-heading);
  font-size: clamp(5rem, 10vw, 10rem);
  line-height: 1;
  color: var(--copper);
  opacity: 0.15;
  margin-bottom: -2rem;
  display: block;
}
.chapter--navy .chapter__number { color: var(--copper); opacity: 0.2; }

.chapter__label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--copper);
  margin-bottom: 1rem;
}
.chapter--navy .chapter__label { color: var(--copper-light); }

.chapter__heading {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
.chapter__text {
  font-size: 1.15rem;
  max-width: 600px;
  line-height: 1.8;
  opacity: 0.85;
}
.chapter__text + .chapter__text { margin-top: 1.5rem; }

/* Split layout */
.chapter__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.chapter__split--reverse .chapter__media { order: -1; }

@media (max-width: 768px) {
  .chapter__split { grid-template-columns: 1fr; gap: 2rem; }
  .chapter__split--reverse .chapter__media { order: 0; }
  .chapter { padding: 4rem 0; }
}

/* Media visuals — abstract CSS illustrations per chapter */
.chapter__media {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--off-white);
}
/* Ch1: Purpose — layered cards suggesting collaboration */
.chapter__media--purpose {
  background: linear-gradient(135deg, #e8e2d8, #f2efe9);
}
.chapter__media--purpose::before,
.chapter__media--purpose::after {
  content: '';
  position: absolute;
  border-radius: 8px;
  border: 2px solid var(--copper);
}
.chapter__media--purpose::before {
  width: 55%; height: 65%;
  top: 15%; left: 10%;
  background: rgba(138,101,64,0.08);
  transform: rotate(-3deg);
}
.chapter__media--purpose::after {
  width: 55%; height: 65%;
  top: 20%; left: 30%;
  background: var(--off-white);
  box-shadow: 0 4px 20px rgba(27,40,56,0.08);
  transform: rotate(2deg);
}
/* Ch2: Services — grid of blocks suggesting a dashboard */
.chapter__media--services {
  background: linear-gradient(135deg, #e8e2d8, #f2efe9);
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  padding: 12%;
}
.chapter__media--services::before {
  content: '';
  grid-column: 1 / -1;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--copper), var(--copper-light));
  opacity: 0.15;
}
.chapter__media--services::after {
  content: '';
  border-radius: 6px;
  background: var(--navy);
  opacity: 0.08;
}
/* Ch3: Approach — concentric circles suggesting precision */
.chapter__media--approach {
  background: var(--navy-light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.chapter__media--approach::before {
  content: '';
  width: 60%; aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid rgba(138,101,64,0.3);
  box-shadow:
    inset 0 0 0 20px rgba(138,101,64,0.05),
    inset 0 0 0 40px rgba(138,101,64,0.03),
    0 0 0 30px rgba(138,101,64,0.08),
    0 0 0 60px rgba(138,101,64,0.04);
}

/* Full-bleed image section */
.full-bleed {
  width: 100%;
  min-height: 60vh;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.full-bleed__overlay {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--off-white);
  padding: 4rem 2rem;
}
.full-bleed__quote {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-style: italic;
  line-height: 1.4;
  max-width: 700px;
  margin: 0 auto;
}
.full-bleed__attr {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--copper-light);
  font-weight: 600;
}

/* Stats row */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
.stat { text-align: center; }
.stat__number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--copper);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat__label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.7;
}

@media (max-width: 600px) {
  .stats { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* Scroll reveal — always visible, animation is additive enhancement */
.reveal { }
.reveal--animate {
  animation: revealSlide 0.6s ease both;
}
.reveal--animate.reveal--delay-1 { animation-delay: 0.1s; }
.reveal--animate.reveal--delay-2 { animation-delay: 0.2s; }
.reveal--animate.reveal--delay-3 { animation-delay: 0.3s; }
@keyframes revealSlide {
  from { opacity: 0.4; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__eyebrow, .hero__title, .hero__subtitle, .hero__cta, .hero__scroll-hint {
    opacity: 1; transform: none; animation: none;
  }
  @keyframes scrollPulse { 0%, 100% { opacity: 1; transform: none; } }
}

/* ===================== */
/* SERVICES PAGE         */
/* ===================== */
.page-hero {
  padding: 8rem 0 3rem;
  background: var(--navy);
  color: var(--off-white);
  text-align: center;
}
.page-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.02em;
}
.page-hero p {
  margin-top: 1rem;
  font-size: 1.15rem;
  opacity: 0.8;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 50vh;
  contain: layout style;
}
.service-block:nth-child(even) { direction: rtl; }
.service-block:nth-child(even) > * { direction: ltr; }

.service-block__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem;
}
/* Service block media — abstract visuals per service */
.service-block__media {
  position: relative;
  overflow: hidden;
}
.service-block__media--web {
  background: linear-gradient(160deg, #e8e2d8 0%, #f2efe9 50%, #e8e2d8 100%);
}
.service-block__media--web::before {
  content: '</>'; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-heading); font-size: 6rem; font-style: italic;
  color: var(--copper); opacity: 0.12;
}
.service-block__media--seo {
  background: linear-gradient(160deg, #e8e2d8, #f2efe9);
}
.service-block__media--seo::before {
  content: ''; position: absolute;
  width: 60%; height: 4px; background: var(--copper); opacity: 0.2;
  top: 35%; left: 20%; border-radius: 2px;
  box-shadow: 0 16px 0 rgba(138,101,64,0.15), 0 32px 0 rgba(138,101,64,0.1), 0 48px 0 rgba(138,101,64,0.07);
}
.service-block__media--social {
  background: linear-gradient(160deg, #f2efe9, #e8e2d8);
}
.service-block__media--social::before,
.service-block__media--social::after {
  content: ''; position: absolute; border-radius: 50%;
  border: 2px solid var(--copper); opacity: 0.15;
}
.service-block__media--social::before {
  width: 35%; aspect-ratio: 1; top: 25%; left: 20%;
}
.service-block__media--social::after {
  width: 25%; aspect-ratio: 1; top: 40%; left: 45%;
  border-color: var(--navy); opacity: 0.1;
}
.service-block__media--reputation {
  background: linear-gradient(160deg, #e8e2d8, #f2efe9);
}
.service-block__media--reputation::before {
  content: ''; position: absolute;
  width: 50px; height: 50px; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border: 3px solid var(--copper); opacity: 0.15;
  border-radius: 4px; transform: translate(-50%, -50%) rotate(45deg);
  box-shadow: 0 0 0 15px rgba(138,101,64,0.06), 0 0 0 30px rgba(138,101,64,0.03);
}
.service-block__media--branding {
  background: linear-gradient(160deg, #f2efe9, #e8e2d8);
}
.service-block__media--branding::before {
  content: 'H1'; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-heading); font-size: 8rem;
  color: var(--navy); opacity: 0.06; letter-spacing: -0.05em;
}
.service-block:nth-child(odd) { background: var(--off-white); }
.service-block:nth-child(even) { background: #f2efe9; }

.service-block__number {
  font-family: var(--font-heading);
  font-size: 4rem;
  color: var(--copper);
  opacity: 0.2;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.service-block__title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}
.service-block__desc {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  opacity: 0.85;
}
.service-block__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.service-block__list li {
  background: rgba(196, 149, 106, 0.1);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
}

@media (max-width: 768px) {
  .service-block { grid-template-columns: 1fr; }
  .service-block:nth-child(even) { direction: ltr; }
  .service-block__media { min-height: 200px; }
  .service-block__content { padding: 2.5rem 2rem; }
}

/* ===================== */
/* CONTACT PAGE          */
/* ===================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  padding: 4rem 0;
}

.form-card {
  background: #fff;
  padding: 3rem;
  border-radius: 8px;
  border: 1px solid rgba(27, 40, 56, 0.08);
}
.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid rgba(27, 40, 56, 0.15);
  border-radius: 4px;
  background: var(--off-white);
  color: var(--navy);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--copper);
  box-shadow: 0 0 0 3px rgba(196, 149, 106, 0.15);
}
.form-group textarea { min-height: 140px; resize: vertical; }

.info-card {
  background: var(--navy);
  color: var(--off-white);
  padding: 3rem;
  border-radius: 8px;
  align-self: start;
}
.info-card h2,
.info-card h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 2rem;
}
.info-card__item {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(250, 248, 245, 0.1);
}
.info-card__item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.info-card__item strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #c4a882;
  margin-bottom: 0.4rem;
}
.info-card__item a {
  color: var(--off-white);
  text-decoration: none;
  transition: color 0.2s;
}
.info-card__item a:hover { color: var(--copper); }

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; padding: 2rem 0; }
  .form-card { padding: 2rem; }
  .info-card { padding: 2rem; }
}

/* CTA Section */
.cta {
  text-align: center;
  padding: 5rem 2rem;
  margin: 3rem 0;
  background: var(--navy);
  border-radius: 12px;
  color: var(--off-white);
}
.cta h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}
.cta p {
  font-size: 1.1rem;
  opacity: 0.8;
  margin-bottom: 2rem;
}

/* Footer */
.footer {
  padding: 3rem 0;
  border-top: 1px solid rgba(27, 40, 56, 0.08);
  margin-bottom: 70px;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer__logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--navy);
}
.footer__copy {
  font-size: 0.85rem;
  opacity: 0.75;
}

@media (max-width: 768px) {
  .footer__inner { flex-direction: column; gap: 0.5rem; text-align: center; }
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--off-white);
  border-top: 1px solid rgba(27, 40, 56, 0.08);
  z-index: 100;
  padding: 0.5rem 0;
  justify-content: space-around;
}
.mobile-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  text-decoration: none;
  color: var(--navy);
  font-size: 0.7rem;
  font-weight: 600;
  opacity: 0.5;
  transition: opacity 0.2s;
  padding: 0.4rem 1rem;
}
.mobile-nav__item--active { opacity: 1; color: var(--copper); }
.mobile-nav__item svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 768px) {
  .mobile-nav { display: flex; }
}

/* Focus */
:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 2px;
}
