/* ============================================
   GINGER CREATIVE - Main Stylesheet
   Edinburgh's friendliest creative studio
   ============================================ */

/* ── CSS Custom Properties ── */
:root {
  /* Brand Colors */
  --coral: #CF6F7A;
  --coral-light: #e8a3ab;
  --coral-dark: #b55a64;
  --orange: #F5832A;
  --orange-light: #f9a965;
  --orange-dark: #d96d1a;
  --grey: #D9D9D9;
  --grey-light: #F5F5F5;
  --grey-dark: #666666;
  --skin: #D8C4AE;
  --mustard: #E6B325;
  --teal: #2AADAD;
  --teal-dark: #1E8A8A;

  /* Semantic Colors */
  --bg: #FFFDF9;
  --bg-alt: var(--grey-light);
  --text: #2D2D2D;
  --text-light: #555555;
  --text-on-dark: #FFFDF9;

  /* Typography */
  --font-display: 'Pacifico', cursive;
  --font-body: 'Poppins', sans-serif;

  --fs-hero: clamp(2.5rem, 6vw, 4.5rem);
  --fs-h1: clamp(2rem, 4vw, 3.5rem);
  --fs-h2: clamp(1.5rem, 3vw, 2.5rem);
  --fs-h3: clamp(1.25rem, 2vw, 1.75rem);
  --fs-body: clamp(1rem, 1.2vw, 1.125rem);
  --fs-small: 0.875rem;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;

  /* Layout */
  --container-max: 1200px;
  --container-narrow: 800px;
  --container-pad: clamp(1rem, 4vw, 2rem);
  --radius: 12px;
  --radius-lg: 24px;

  /* Transitions */
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.25, 0.1, 0.25, 1);
  --dur-fast: 200ms;
  --dur-med: 400ms;
  --dur-slow: 800ms;

  /* Doodle */
  --doodle-stroke: 2.5px;
  --doodle-color: var(--coral);
  --doodle-opacity: 0.5;
}


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

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

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

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

a {
  color: var(--coral);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-smooth);
}

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

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--text);
  font-weight: 400;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

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


/* ── Layout ── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: var(--space-lg) 0;
}

@media (min-width: 900px) {
  .section {
    padding: var(--space-xl) 0;
  }
}

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

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

.section--coral h2,
.section--coral h3 {
  color: var(--text-on-dark);
}

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

.section--teal h2,
.section--teal h3 {
  color: var(--text-on-dark);
}

.grid {
  display: grid;
  gap: var(--space-md);
}

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

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

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

@media (min-width: 600px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

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


/* ── Header / Navigation ── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: var(--space-sm) 0;
  transition: background-color var(--dur-med) var(--ease-smooth),
              box-shadow var(--dur-med) var(--ease-smooth);
}

.header.scrolled {
  background-color: rgba(255, 253, 249, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 1001;
}

.logo img {
  height: 50px;
  width: auto;
}

.logo span {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--coral);
}

.nav-links {
  display: none;
  gap: var(--space-md);
  align-items: center;
}

.nav-links a {
  color: var(--text);
  font-weight: 500;
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--coral);
  border-radius: 2px;
  transition: width var(--dur-fast) var(--ease-bounce);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

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

@media (min-width: 900px) {
  .nav-links {
    display: flex;
  }
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 1001;
  padding: 5px;
}

.hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--text);
  border-radius: 3px;
  transition: transform var(--dur-fast) var(--ease-smooth),
              opacity var(--dur-fast) var(--ease-smooth);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

@media (min-width: 900px) {
  .hamburger {
    display: none;
  }
}

/* Mobile Nav Overlay */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: var(--teal);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-med) var(--ease-smooth);
}

.mobile-nav.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav a {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--text-on-dark);
  transition: transform var(--dur-fast) var(--ease-bounce);
}

.mobile-nav a:hover {
  color: var(--mustard);
  transform: scale(1.1);
}


/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: transform var(--dur-fast) var(--ease-bounce),
              background-color var(--dur-fast) var(--ease-smooth),
              box-shadow var(--dur-fast) var(--ease-smooth);
}

.btn:hover {
  transform: scale(1.05);
}

.btn-primary {
  background: var(--coral);
  color: var(--text-on-dark);
  box-shadow: 3px 3px 0 var(--coral-dark);
}

.btn-primary:hover {
  background: var(--orange);
  color: var(--text-on-dark);
  box-shadow: 4px 4px 0 var(--orange-dark);
}

.btn-secondary {
  background: transparent;
  color: var(--coral);
  border: 2px dashed var(--coral);
}

.btn-secondary:hover {
  background: var(--coral);
  color: var(--text-on-dark);
}

.btn-white {
  background: var(--bg);
  color: var(--coral);
  box-shadow: 3px 3px 0 rgba(0,0,0,0.15);
}

.btn-white:hover {
  background: var(--text-on-dark);
  color: var(--orange);
}


/* ── Cards ── */
.card {
  background: white;
  padding: var(--space-md);
  border-radius: var(--radius);
  transition: transform var(--dur-fast) var(--ease-bounce),
              box-shadow var(--dur-fast) var(--ease-smooth);
}

.card:hover {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.sketch-border {
  border: 2.5px solid var(--coral);
  border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
}

.card:nth-child(odd) {
  transform: rotate(-1deg);
}

.card:nth-child(even) {
  transform: rotate(1deg);
}

.card:hover {
  transform: rotate(0deg) translateY(-4px) !important;
}

.card__icon {
  width: 60px;
  height: 60px;
  margin-bottom: var(--space-sm);
}

.card__icon svg {
  width: 100%;
  height: 100%;
  stroke: var(--coral);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  margin-bottom: var(--space-xs);
  color: var(--coral);
}

.card p {
  color: var(--text-light);
  font-size: var(--fs-small);
}


/* ── Hero Section ── */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  align-items: center;
}

@media (min-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr 1fr;
  }
}

.hero__content {
  text-align: center;
}

@media (min-width: 900px) {
  .hero__content {
    text-align: left;
  }
}

.hero__title {
  font-size: var(--fs-hero);
  color: var(--text);
  margin-bottom: var(--space-sm);
  position: relative;
}

.hero__title .highlight {
  color: var(--coral);
  position: relative;
  display: inline-block;
}

.hero__subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--text-light);
  margin-bottom: var(--space-md);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
}

.hero__buttons {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

@media (min-width: 900px) {
  .hero__buttons {
    justify-content: flex-start;
  }
}

.hero__image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__image img {
  max-width: 400px;
  width: 100%;
  animation: float 6s ease-in-out infinite;
}

@media (max-width: 899px) {
  .hero__image img {
    max-width: 250px;
  }
}

/* Page Hero (inner pages) */
.page-hero {
  padding: calc(80px + var(--space-lg)) 0 var(--space-lg);
  background: var(--teal);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero h1 {
  color: var(--text-on-dark);
  margin-bottom: var(--space-sm);
}

.page-hero p {
  color: rgba(255,253,249,0.85);
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  max-width: 600px;
  margin: 0 auto;
}


/* ── Section Headers ── */
.section__header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.section__header h2 {
  margin-bottom: var(--space-xs);
  position: relative;
  display: inline-block;
}

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

/* Squiggle underline for headings */
.squiggle {
  position: relative;
}

.squiggle::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 8px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 8'%3E%3Cpath d='M0 4 Q15 0 30 4 Q45 8 60 4 Q75 0 90 4 Q105 8 120 4' stroke='%23CF6F7A' stroke-width='2.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}


/* ── Portfolio Grid ── */
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 600px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.portfolio-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--grey);
  cursor: pointer;
}

.portfolio-item__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-med) var(--ease-smooth);
}

.portfolio-item__overlay {
  position: absolute;
  inset: 0;
  background: rgba(207, 111, 122, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease-smooth);
  padding: var(--space-sm);
  text-align: center;
}

.portfolio-item:hover .portfolio-item__image {
  transform: scale(1.05);
}

.portfolio-item:hover .portfolio-item__overlay {
  opacity: 1;
}

.portfolio-item__overlay h3 {
  color: white;
  font-size: var(--fs-h3);
  margin-bottom: var(--space-xs);
}

.portfolio-item__overlay p {
  color: rgba(255,255,255,0.9);
  font-size: var(--fs-small);
}

.portfolio-item__overlay .btn {
  margin-top: var(--space-sm);
}

/* Filter Bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  justify-content: center;
  margin-bottom: var(--space-md);
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  border: 2px dashed var(--coral);
  border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--coral);
  background: transparent;
  transition: all var(--dur-fast) var(--ease-bounce);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--coral);
  color: white;
  border-style: solid;
}

.portfolio-item[data-visible="false"] {
  display: none;
}


/* ── Testimonials ── */
.testimonial-card {
  background: white;
  padding: var(--space-md);
  border-radius: var(--radius);
  border: 2.5px solid var(--coral-light);
  border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--coral-light);
  position: absolute;
  top: -10px;
  left: 20px;
  line-height: 1;
}

.testimonial-card p {
  font-style: italic;
  color: var(--text-light);
  margin-bottom: var(--space-sm);
  padding-top: var(--space-sm);
}

.testimonial-card .author {
  font-weight: 600;
  color: var(--text);
  font-style: normal;
  font-size: var(--fs-small);
}

.testimonial-card .role {
  color: var(--coral);
  font-size: var(--fs-small);
  font-style: normal;
}


/* ── About Section ── */
.about-preview {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  align-items: center;
}

@media (min-width: 900px) {
  .about-preview {
    grid-template-columns: 300px 1fr;
    gap: var(--space-lg);
  }
}

.about-preview__image {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 4px solid var(--teal);
  overflow: hidden;
  margin: 0 auto;
  background: var(--skin);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-preview__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-preview h3 {
  color: var(--coral);
  margin-bottom: var(--space-xs);
}


/* ── CTA Section ── */
.cta-section {
  text-align: center;
  padding: var(--space-xl) 0;
  position: relative;
}

.cta-section h2 {
  color: var(--text-on-dark);
  margin-bottom: var(--space-sm);
}

.cta-section p {
  margin-bottom: var(--space-md);
  opacity: 0.9;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-md);
}


/* ── Services Detail ── */
.service-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  align-items: center;
  padding: var(--space-lg) 0;
  border-bottom: 2px dashed var(--grey);
}

@media (min-width: 900px) {
  .service-detail {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }

  .service-detail:nth-child(even) .service-detail__content {
    order: 2;
  }

  .service-detail:nth-child(even) .service-detail__visual {
    order: 1;
  }
}

.service-detail__content h3 {
  color: var(--coral);
  font-size: var(--fs-h2);
  margin-bottom: var(--space-sm);
}

.service-detail__content p {
  margin-bottom: var(--space-sm);
  color: var(--text-light);
}

.service-detail__list {
  margin: var(--space-sm) 0;
}

.service-detail__list li {
  padding: 0.4rem 0 0.4rem 2rem;
  position: relative;
  color: var(--text-light);
}

.service-detail__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--coral);
  font-weight: 700;
}

.service-detail__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon-large {
  width: 200px;
  height: 200px;
  background: var(--bg-alt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px dashed var(--coral-light);
}

.service-icon-large svg {
  width: 80px;
  height: 80px;
  stroke: var(--coral);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* ── Process Steps ── */
.process {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  text-align: center;
  position: relative;
}

@media (min-width: 600px) {
  .process {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .process {
    grid-template-columns: repeat(4, 1fr);
  }
}

.process__step {
  position: relative;
}

.process__number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--coral);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0 auto var(--space-sm);
}

.process__step h3 {
  color: var(--coral);
  margin-bottom: var(--space-xs);
}

.process__step p {
  font-size: var(--fs-small);
  color: var(--text-light);
}


/* ── Contact Form ── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 900px) {
  .contact-layout {
    grid-template-columns: 1.5fr 1fr;
  }
}

.form-group {
  margin-bottom: var(--space-sm);
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: var(--fs-small);
  margin-bottom: 0.3rem;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2.5px solid var(--grey);
  border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
  background: white;
  font-size: var(--fs-body);
  transition: border-color var(--dur-fast) var(--ease-smooth),
              box-shadow var(--dur-fast) var(--ease-smooth);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(42, 173, 173, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

.form-group .error-msg {
  color: var(--coral-dark);
  font-size: var(--fs-small);
  margin-top: 0.25rem;
  display: none;
}

.form-group.error input,
.form-group.error textarea {
  border-color: var(--coral);
}

.form-group.error .error-msg {
  display: block;
}

.form-success {
  text-align: center;
  padding: var(--space-lg);
  display: none;
}

.form-success.show {
  display: block;
}

.form-success h3 {
  color: var(--teal);
  margin-bottom: var(--space-sm);
}

.contact-info {
  padding: var(--space-md);
}

.contact-info h3 {
  color: var(--coral);
  margin-bottom: var(--space-md);
}

.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.contact-info__item svg {
  width: 24px;
  height: 24px;
  stroke: var(--coral);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
  margin-top: 3px;
}

.contact-info__item a {
  color: var(--text);
  font-weight: 500;
}

.contact-info__item a:hover {
  color: var(--coral);
}


/* ── Footer ── */
.footer {
  background: var(--teal);
  color: var(--text-on-dark);
  padding: var(--space-lg) 0 var(--space-md);
  position: relative;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

@media (min-width: 600px) {
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer h4 {
  font-family: var(--font-display);
  color: var(--text-on-dark);
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}

.footer p {
  opacity: 0.85;
  font-size: var(--fs-small);
  line-height: 1.6;
}

.footer a {
  color: var(--text-on-dark);
  opacity: 0.85;
  font-size: var(--fs-small);
}

.footer a:hover {
  opacity: 1;
  color: var(--mustard);
}

.footer ul li {
  margin-bottom: 0.5rem;
}

.footer__bottom {
  border-top: 1px solid rgba(255,253,249,0.2);
  padding-top: var(--space-sm);
  text-align: center;
  font-size: var(--fs-small);
  opacity: 0.7;
}

.footer .logo span {
  color: var(--text-on-dark);
}


/* ── Blob Divider ── */
.blob-divider {
  position: relative;
  height: 60px;
  overflow: hidden;
}

.blob-divider svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
}


/* ── Doodle Decorative Elements ── */
.doodle-dots {
  position: relative;
}

.doodle-dots::before {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mustard);
  box-shadow:
    20px -10px 0 var(--coral),
    45px 5px 0 var(--orange),
    15px 25px 0 var(--mustard),
    60px 20px 0 var(--coral-light),
    35px 40px 0 var(--orange-light);
  opacity: var(--doodle-opacity);
  z-index: 0;
}

.doodle-circle {
  position: absolute;
  border: 2.5px dashed var(--coral-light);
  border-radius: 50%;
  opacity: var(--doodle-opacity);
  pointer-events: none;
}

/* SVG path drawing animation */
.doodle-path {
  stroke-dasharray: var(--path-length, 1000);
  stroke-dashoffset: var(--path-length, 1000);
  transition: stroke-dashoffset 1.5s var(--ease-smooth);
}

.is-visible .doodle-path {
  stroke-dashoffset: 0;
}


/* ── Scroll Animations ── */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--dur-slow) var(--ease-smooth),
              transform var(--dur-slow) var(--ease-bounce);
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity var(--dur-slow) var(--ease-smooth),
              transform var(--dur-slow) var(--ease-bounce);
}

.animate-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.animate-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity var(--dur-slow) var(--ease-smooth),
              transform var(--dur-slow) var(--ease-bounce);
}

.animate-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger children */
.stagger > *:nth-child(1) { transition-delay: 0ms; }
.stagger > *:nth-child(2) { transition-delay: 100ms; }
.stagger > *:nth-child(3) { transition-delay: 200ms; }
.stagger > *:nth-child(4) { transition-delay: 300ms; }
.stagger > *:nth-child(5) { transition-delay: 400ms; }
.stagger > *:nth-child(6) { transition-delay: 500ms; }


/* ── Keyframe Animations ── */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(2deg); }
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-3deg); }
  75% { transform: rotate(3deg); }
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}

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

@keyframes spin {
  to { transform: rotate(360deg); }
}


/* ── About Page Specific ── */
.founder-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  align-items: center;
}

@media (min-width: 900px) {
  .founder-section {
    grid-template-columns: 300px 1fr;
    gap: var(--space-lg);
  }
}

.founder-photo {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  border: 4px solid var(--coral);
  overflow: hidden;
  margin: 0 auto;
  background: var(--skin);
  display: flex;
  align-items: center;
  justify-content: center;
}

.founder-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.philosophy-card {
  text-align: center;
  padding: var(--space-md);
}

.philosophy-card__icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--coral);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-sm);
}

.philosophy-card__icon svg {
  width: 32px;
  height: 32px;
  stroke: white;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.philosophy-card h3 {
  color: var(--coral);
  margin-bottom: var(--space-xs);
}

.philosophy-card p {
  color: var(--text-light);
  font-size: var(--fs-small);
}

.pull-quote {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  color: var(--coral);
  text-align: center;
  padding: var(--space-md) 0;
  position: relative;
}

.pull-quote::before,
.pull-quote::after {
  font-size: 4rem;
  color: var(--coral-light);
  opacity: 0.5;
  line-height: 1;
}

.pull-quote::before {
  content: '\201C';
}

.pull-quote::after {
  content: '\201D';
}


/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .animate-on-scroll,
  .animate-left,
  .animate-right {
    opacity: 1;
    transform: none;
  }

  .hero__image img {
    animation: none;
  }
}
