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

:root {
  --blue: #3D5A80;
  --blue-light: #4A6A8E;
  --gold: #D4A853;
  --gold-muted: #9A7A2E;
  --cream: #F5F2ED;
  --cream-dark: #EDE8E0;
  --charcoal: #3A3335;
  --white: #FDFCFA;
  --border-visible: #D5D0C8;
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Barlow', sans-serif;
  color: var(--charcoal);
  background-color: var(--cream);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Crect width='4' height='4' fill='%23F5F2ED'/%3E%3Crect width='1' height='1' x='1' y='1' fill='%23EDE8E0' opacity='0.3'/%3E%3C/svg%3E");
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  animation: fadeIn 0.3s ease-in;
}

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

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

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

a:hover {
  color: var(--gold-muted);
}

p + p {
  margin-top: 1rem;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* === Typography === */
h1, h2, h3 {
  font-weight: 700;
  color: var(--blue);
  line-height: 1.2;
}

h1 {
  font-size: 2.4rem;
}

h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.handwritten {
  font-family: 'Caveat Brush', cursive;
  font-size: 2rem;
  font-weight: 400;
  color: var(--gold-muted);
  position: relative;
  display: inline-block;
}

.handwritten::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  animation: drawLine 0.8s ease-out 0.3s forwards;
}

@keyframes drawLine {
  to { transform: scaleX(1); }
}

.subtitle {
  font-size: 1.1rem;
  color: var(--blue-light);
  margin-top: 0.5rem;
}

/* === Section Dividers === */
.intro::after,
.brands::after {
  content: '';
  display: block;
  width: 120px;
  height: 3px;
  margin: 3rem auto 0;
  background: var(--gold);
  border-radius: 2px;
  opacity: 0.5;
}

/* === Header / Nav === */
header {
  background: var(--white);
  border-bottom: 1px solid var(--cream-dark);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@keyframes logoBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-logo:hover {
  color: var(--blue);
}

.nav-logo img {
  display: block;
  animation: logoBob 4s ease-in-out 3;
}

.nav-wordmark {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--blue);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--blue);
  padding-bottom: 4px;
  border-bottom: 3px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  border-bottom-color: var(--gold);
  color: var(--blue);
}

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

/* === Sections === */
section {
  max-width: 960px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

/* === Hero === */
.hero {
  text-align: center;
  padding: 5rem 2rem 4rem;
  background: var(--white);
  border-bottom: 1px solid var(--cream-dark);
  max-width: 100%;
  position: relative;
  overflow: hidden;
}

/* === Hero Clouds === */
@keyframes driftRight {
  0% { transform: translateX(-20px); }
  50% { transform: translateX(20px); }
  100% { transform: translateX(-20px); }
}

@keyframes driftLeft {
  0% { transform: translateX(20px); }
  50% { transform: translateX(-20px); }
  100% { transform: translateX(20px); }
}

.hero-cloud {
  position: absolute;
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}

.cloud-1 {
  width: 120px;
  top: 15%;
  left: 5%;
  animation: driftRight 12s ease-in-out infinite;
}

.cloud-2 {
  width: 90px;
  top: 10%;
  right: 8%;
  animation: driftLeft 15s ease-in-out infinite;
}

.cloud-3 {
  width: 100px;
  bottom: 25%;
  left: 12%;
  animation: driftRight 18s ease-in-out infinite;
  animation-delay: -4s;
}

.cloud-4 {
  width: 80px;
  bottom: 20%;
  right: 15%;
  animation: driftLeft 14s ease-in-out infinite;
  animation-delay: -7s;
}


.hero-content {
  display: block;
  padding-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.hero-content::after {
  content: '';
  display: block;
  width: 200px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin: 2rem auto 0;
}

.hero-logo {
  max-width: 480px;
  width: 100%;
}

/* === Intro === */
.intro {
  text-align: center;
  max-width: 700px;
}

.intro h2 {
  font-family: 'Caveat Brush', cursive;
  font-weight: 400;
  font-size: 1.8rem;
  color: var(--gold-muted);
  margin-bottom: 1rem;
  display: inline-block;
  position: relative;
}

.intro h2::after {
  display: none;
}

.intro p {
  font-size: 1.05rem;
  color: var(--charcoal);
}

/* === Brand Grid === */
.brands {
  padding-top: 3rem;
}

.brands > h2 {
  text-align: center;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue-light);
  margin-bottom: 0.5rem;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.brand-card {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 180px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

@media (hover: hover) {
  .brand-card:hover {
    border-color: var(--gold);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px) rotate(-0.5deg);
  }
}

.brand-watermark {
  display: block;
  width: 150px;
  height: 100px;
  object-fit: contain;
  margin: 0 auto 0.75rem;
}

.brand-card h3 {
  color: var(--blue);
}

.brand-card p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  color: var(--charcoal);
}

.brand-card a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gold-muted);
  display: inline-block;
  padding-top: 0.5rem;
  border-top: 1px solid var(--cream-dark);
  width: 100%;
  position: relative;
}

.brand-card a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.brand-card:hover a::after {
  transform: scaleX(1);
}

.brand-card a:hover {
  color: var(--blue);
}

.brand-card a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 2px;
}

/* === Consulting CTA === */
.consulting {
  text-align: center;
  max-width: 640px;
  padding-top: 3rem;
  padding-bottom: 4rem;
}

.consulting-illustration {
  max-width: 280px;
  width: 100%;
  margin: 1rem auto 1.5rem;
  opacity: 0.7;
}

.consulting p {
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.cta {
  display: inline-block;
  background: var(--gold-muted);
  color: var(--white);
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.75rem 2rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: background 0.2s, transform 0.2s;
}

.cta:hover {
  background: var(--blue);
  color: var(--white);
  transform: scale(1.04);
}

.cta:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* === Page Header === */
.page-header {
  text-align: center;
  padding-top: 3rem;
  padding-bottom: 2rem;
}

/* === About People === */
.about-people {
  padding-top: 2rem;
}

.person {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 3rem;
}

.person.reverse {
  flex-direction: row-reverse;
}

.person.reverse .person-accent {
  order: 3;
}

.person-image {
  flex: 0 0 240px;
}

.person-image img {
  width: 240px;
  border-radius: 42% 56% 49% 51% / 48% 44% 56% 52%;
  border: 2px solid var(--border-visible);
  transition: border-radius 0.6s ease;
}

.person-image img:hover {
  border-radius: 50% 44% 53% 47% / 46% 52% 48% 54%;
}

.person-bio {
  max-width: 560px;
}

.person-bio h2 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.person-bio p {
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.person-accent {
  flex: 0 0 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bio-accent {
  max-width: 150px;
  opacity: 0.6;
}

/* === About Story === */
.about-story {
  max-width: 700px;
  margin: 0 auto;
  padding-top: 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.story-illustration {
  max-width: 480px;
  width: 100%;
  margin: 1rem auto 1.5rem;
}

.about-story p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

/* === Manifesto === */
.manifesto {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.manifesto p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

/* === Contact Form === */
.contact-section {
  max-width: 560px;
  margin: 0 auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-family: 'Caveat Brush', cursive;
  font-weight: 400;
  font-size: 1.15rem;
  color: var(--blue);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: 'Barlow', sans-serif;
  font-size: 1rem;
  padding: 0.65rem 0.85rem;
  border: 2px solid var(--border-visible);
  border-radius: 4px 8px 6px 10px;
  box-shadow: 1px 1px 0 var(--cream-dark);
  background: var(--white);
  color: var(--charcoal);
  transition: border-color 0.2s, box-shadow 0.2s, border-radius 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 2px 2px 0 var(--gold-muted);
  border-radius: 6px 4px 10px 8px;
}

.form-group textarea {
  resize: vertical;
}

.contact-success {
  text-align: center;
  padding: 3rem 0;
}

.contact-success p {
  margin-top: 1rem;
  font-size: 1.05rem;
}

/* === Footer === */
footer {
  background: var(--white);
  border-top: 1px solid var(--cream-dark);
  margin-top: 3rem;
}

.footer-content {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--blue-light);
}

.footer-logo {
  opacity: 0.4;
  margin-bottom: 0.5rem;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 0.75rem;
}

.footer-nav a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--blue-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.footer-content a[href^="mailto"] {
  color: var(--blue-light);
  font-size: 0.85rem;
}

.footer-content a[href^="mailto"]:hover {
  color: var(--gold-muted);
}

.footer-content p + p {
  margin-top: 0.5rem;
}

/* === Contact Illustration === */
.contact-illustration {
  max-width: 300px;
  width: 100%;
  margin: 1rem auto -1rem;
  opacity: 0.7;
}

/* === Full-Page Floating Elements === */
@keyframes floatAcross {
  0% { transform: translateX(-100px) translateY(0); opacity: 0; }
  10% { opacity: 0.12; }
  90% { opacity: 0.12; }
  100% { transform: translateX(calc(100vw + 100px)) translateY(-40px); opacity: 0; }
}

@keyframes floatAcrossReverse {
  0% { transform: translateX(calc(100vw + 100px)) translateY(0); opacity: 0; }
  10% { opacity: 0.12; }
  90% { opacity: 0.12; }
  100% { transform: translateX(-100px) translateY(-30px); opacity: 0; }
}

.floater-heart {
  width: 180px;
  top: 50%;
  left: 5%;
  animation: driftRight 16s ease-in-out infinite;
  animation-delay: -3s;
  opacity: 0.12;
}

.floater-rainbow {
  width: 280px;
  top: 35%;
  right: 3%;
  left: auto;
  animation: driftLeft 20s ease-in-out infinite;
  animation-delay: -5s;
  opacity: 0.12;
}

/* === Accessibility === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* === Responsive === */
@media (max-width: 860px) {
  .person,
  .person.reverse {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .person-image {
    flex: none;
  }

  .person-bio {
    max-width: 100%;
  }

  .person-accent {
    flex: none;
    order: 3;
  }

  .bio-accent {
    max-width: 120px;
    margin-top: 1rem;
  }

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

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

  .page-floater {
    display: none;
  }
}

@media (max-width: 640px) {
  html {
    font-size: 16px;
  }

  nav {
    padding: 0.75rem 1.25rem;
  }

  .nav-links {
    gap: 1.25rem;
  }

  .nav-links a {
    padding: 0.5rem 0;
  }

  section {
    padding: 2rem 1.25rem;
  }

  .hero {
    padding: 2.5rem 1.25rem;
  }

  .hero-logo {
    max-width: 340px;
  }

  h1 {
    font-size: 1.8rem;
  }

  .handwritten {
    font-size: 1.6rem;
  }

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

  .brand-card a {
    padding: 0.5rem 0;
    display: inline-block;
  }
}

@media (max-width: 400px) {
  .nav-links {
    gap: 0.75rem;
  }
  .nav-links a {
    font-size: 0.85rem;
  }
}
