/*
 * Dynamo Labs — Website Styles
 * All colours defined as CSS custom properties in :root
 * To update the palette: change values in :root only
 * To update typography: change --font-display and --font-body only
 * Generated: March 2026
 */


/* ============================================================
   CUSTOM PROPERTIES
   ============================================================ */

:root {
  /* Colours */
  --color-bg:           #F7F5F1;
  --color-bg-alt:       #EFEDE8;
  --color-text:         #1A1A18;
  --color-text-muted:   #6B6B63;
  --color-accent:       #1E4D2B;
  --color-accent-light: #2A6B3C;
  --color-white:        #FFFFFF;
  --color-border:       #D9D6CF;

  /* Typography */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Instrument Sans', sans-serif;

  /* Spacing */
  --spacing-section:    clamp(64px, 10vw, 120px);
  --spacing-container:  clamp(20px, 4vw, 40px);
  --container-max:      1200px;

  /* Navigation */
  --nav-height: 72px;
}


/* ============================================================
   RESET & BASE
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

hr {
  border: none;
}


/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1, h2 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.08;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(3rem, 6vw, 5.5rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: -0.015em;
}

h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-text);
}

p {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.75;
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 20px;
  display: block;
}


/* ============================================================
   LAYOUT
   ============================================================ */

.container {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--spacing-container);
  padding-right: var(--spacing-container);
}

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


/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1;
  padding: 14px 22px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.15s ease, color 0.2s ease;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

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

.btn-primary:hover {
  background-color: var(--color-accent-light);
}

.btn-white {
  background-color: var(--color-white);
  color: var(--color-accent);
}

.btn-white:hover {
  transform: scale(1.025);
}

.text-link {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-accent);
  text-decoration: none;
  transition: text-decoration 0.1s;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 2px;
}


/* ============================================================
   NAVIGATION
   ============================================================ */

.nav-wrapper {
  position: sticky;
  top: 0;
  z-index: 200;
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}

.nav {
  display: flex;
  align-items: center;
  height: var(--nav-height);
  gap: 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--color-text);
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
  margin-right: auto;
}

.logo:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
  border-radius: 2px;
}

.logo-mark {
  width: 9px;
  height: 9px;
  background-color: var(--color-accent);
  display: inline-block;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  margin-right: 32px;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.nav-links a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.nav-mobile-cta {
  display: none;
}

.nav-cta {
  flex-shrink: 0;
}

/* Hamburger button */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: 16px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background-color: var(--color-text);
  transform-origin: center;
  transition: transform 0.28s ease, opacity 0.2s ease;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Hamburger → close animation */
.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}


/* ============================================================
   HERO
   ============================================================ */

.hero {
  background-color: var(--color-bg);
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-content {
  padding-top: 48px;
  padding-bottom: 48px;
  max-width: 820px;
}

.hero-content .section-label {
  margin-bottom: 28px;
  color: rgba(26, 26, 24, 0.5); /* --color-text at 50% opacity — warmer tone than --color-text-muted */
}

.hero-content h1 {
  margin-bottom: 32px;
}

.hero-sub {
  color: var(--color-text-muted);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  max-width: 560px;
  margin-bottom: 44px;
  line-height: 1.75;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

/* Hero entrance animation — staggered */
@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-animate {
  opacity: 0;
  animation: heroFadeIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-content .section-label { animation-delay: 0s;    }
.hero-content h1             { animation-delay: 0.1s;  }
.hero-content .hero-sub      { animation-delay: 0.22s; }
.hero-content .hero-ctas     { animation-delay: 0.34s; }


/* ============================================================
   POSITIONING / PULL QUOTE
   ============================================================ */

.positioning {
  background-color: var(--color-bg-alt);
}

.positioning-text {
  max-width: 720px;
  margin: 0 auto;
}

.positioning-text p {
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--color-text);
}

.pull-quote {
  margin-top: 72px;
  text-align: center;
}

.pull-quote blockquote {
  border: none;
  padding: 0;
}

.pull-quote blockquote p {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  color: var(--color-text);
  line-height: 1.35;
  letter-spacing: -0.01em;
  max-width: 860px;
  margin: 0 auto 20px;
}

.pull-quote cite {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}


/* ============================================================
   PROCESS
   ============================================================ */

.process {
  background-color: var(--color-bg);
}

.process h2 {
  margin-bottom: 64px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px;
  margin-bottom: 64px;
}

.step-number {
  display: block;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 3.5rem;
  /* --color-accent at 30% opacity */
  color: rgba(30, 77, 43, 0.28);
  line-height: 1;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.step-rule {
  border-top: 1px solid var(--color-border);
  margin-bottom: 22px;
}

.process-step h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: 14px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.process-step p {
  font-size: 0.975rem;
  color: var(--color-text-muted);
  line-height: 1.75;
}

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


/* ============================================================
   WHY DYNAMO
   ============================================================ */

.why {
  background-color: var(--color-bg-alt);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 96px;
  align-items: start;
}

.why-left h2 {
  margin-top: 10px;
  line-height: 1.1;
}

.why-item {
  padding: 36px 0;
}

.why-item:first-child {
  padding-top: 0;
}

.why-item:last-child {
  padding-bottom: 0;
}

.why-item h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 10px;
  line-height: 1.45;
}

.why-item p {
  font-size: 0.975rem;
  color: var(--color-text-muted);
  line-height: 1.75;
}

.why-rule {
  border-top: 1px solid var(--color-border);
}



/* ============================================================
   INSIGHTS
   ============================================================ */

.insights {
  background-color: var(--color-bg-alt);
}

.insights h2 {
  margin-bottom: 56px;
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.insight-card {
  border-top: 1px solid var(--color-border);
  padding-top: 28px;
}

.post-meta {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--color-text-muted);
  margin-bottom: 14px;
  letter-spacing: 0.06em;
  line-height: 1.5;
}

.insight-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: 12px;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.insight-card h3 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.insight-card h3 a:hover {
  color: var(--color-accent);
}

.insight-card h3 a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.post-teaser {
  font-size: 0.925rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}


/* ============================================================
   CTA BANNER
   ============================================================ */

.cta-banner {
  background-color: var(--color-accent);
  text-align: center;
}

.cta-content {
  max-width: 680px;
}

.cta-banner h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--color-white);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.cta-banner > .cta-content > p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 40px;
}

.cta-email {
  margin-top: 28px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
}

.cta-email a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.cta-email a:hover {
  opacity: 0.85;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cta-email a:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 3px;
  border-radius: 2px;
}


/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background-color: var(--color-text);
  color: var(--color-white);
  padding-top: 72px;
  padding-bottom: 44px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  margin-bottom: 32px;
  border-bottom: 1px solid rgba(217, 214, 207, 0.2);
}

.footer-wordmark {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--color-white);
  margin-bottom: 10px;
}

.footer-wordmark .logo-mark {
  background-color: var(--color-accent-light);
}

.footer-tagline {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-body);
  line-height: 1.5;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding-top: 4px;
}

.footer-nav a {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.2s ease;
  line-height: 1.5;
}

.footer-nav a:hover {
  color: var(--color-white);
}

.footer-nav a:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.4);
  outline-offset: 3px;
  border-radius: 2px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 4px;
}

.footer-contact a,
.footer-contact p {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  line-height: 1.5;
  transition: color 0.2s ease;
}

.footer-contact a:hover {
  color: var(--color-white);
}

.footer-contact a:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.4);
  outline-offset: 3px;
  border-radius: 2px;
}

.footer-bottom p {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.5;
}


/* ============================================================
   SCROLL FADE-IN ANIMATION
   ============================================================ */

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}


/* ============================================================
   RESPONSIVE — TABLET & MOBILE (max-width: 768px)
   ============================================================ */

@media (max-width: 768px) {

  /* Navigation */
  .nav-links {
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0 var(--spacing-container);
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.3s ease;
    margin-right: 0;
  }

  .nav-links.is-open {
    max-height: 420px;
    opacity: 1;
    pointer-events: auto;
    padding-top: 20px;
    padding-bottom: 24px;
  }

  .nav-links li {
    width: 100%;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-links li:last-child {
    border-bottom: none;
    padding-top: 16px;
  }

  .nav-links a {
    display: block;
    padding: 14px 0;
    font-size: 1rem;
  }

  .nav-mobile-cta {
    display: block;
  }

  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  /* Hero */
  .hero {
    min-height: auto;
    display: block;      /* drop flex entirely — no centering dead space */
    padding-top: 36px;
    padding-bottom: 48px;
  }

  .hero-content {
    padding-top: 0;
    padding-bottom: 0;
    max-width: 100%;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  /* Pull quote — remove forced line break on mobile */
  .quote-break {
    display: none;
  }

  /* Ensure pull quote text stays within container padding */
  .pull-quote blockquote p {
    max-width: 100%;
  }

  /* Process */
  .process-grid {
    grid-template-columns: 1fr;
    gap: 44px;
    margin-bottom: 48px;
  }

  /* Why */
  .why-grid {
    grid-template-columns: 1fr;
    gap: 0;              /* heading flows directly into items with no gap */
  }

  .why-left {
    margin-bottom: 32px; /* explicit separation between heading block and items */
  }

  .why-item:first-child {
    padding-top: 0;      /* first item sits flush under the heading */
  }

  .why-item {
    padding: 28px 0;
  }

  /* Insights */
  .insights-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .insight-card {
    padding-bottom: 36px;
    margin-bottom: 0;
  }

  /* Footer */
  .footer-top {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}


/* ============================================================
   RESPONSIVE — SMALL MOBILE (max-width: 480px)
   ============================================================ */

@media (max-width: 480px) {
  h1 {
    font-size: 2.6rem;
    line-height: 1.05;
  }

  h2 {
    font-size: 2rem;
  }

  .pull-quote blockquote p {
    font-size: 1.5rem;
  }
}
