:root {
  --mint: #c9f3df;
  --peach: #ffd6c8;
  --lavender: #ddd7ff;
  --cream: #fff7ee;
  --blush: #ffeaf0;
  --ink: #4f5167;
  --muted: #777891;
  --white-soft: #fffaf5;
  --shadow-out: 14px 14px 34px rgba(159, 139, 126, 0.18), -12px -12px 28px rgba(255, 255, 255, 0.82);
  --shadow-in: inset 9px 9px 18px rgba(159, 139, 126, 0.14), inset -9px -9px 18px rgba(255, 255, 255, 0.75);
  --radius-xl: 42px;
  --radius-lg: 30px;
  --radius-pill: 999px;
  --header-height: 84px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  font-family: "Nunito", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 10%, rgba(201, 243, 223, 0.75), transparent 32%),
    radial-gradient(circle at 92% 8%, rgba(221, 215, 255, 0.75), transparent 31%),
    radial-gradient(circle at 52% 98%, rgba(255, 214, 200, 0.72), transparent 38%),
    var(--cream);
  line-height: 1.65;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.55) 0 10px, transparent 11px),
    radial-gradient(circle at 78% 66%, rgba(255, 255, 255, 0.38) 0 14px, transparent 15px);
  opacity: 1;.55;
  z-index: -1;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
a {
  font-family: inherit;
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 100;
  width: min(1180px, calc(100% - 28px));
  min-height: 66px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 14px 12px 18px;
  background: rgba(255, 250, 245, 0.78);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-out);
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 20px;
  text-decoration: none;
  font-family: "Quicksand", sans-serif;
  font-weight: 700;
  color: var(--ink);
  background: linear-gradient(145deg, var(--mint), var(--lavender));
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-in);
  white-space: nowrap;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.primary-nav a {
  padding: 9px 13px;
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 800;
  color: var(--muted);
  border-radius: var(--radius-pill);
  transition: transform 0.28s cubic-bezier(.34, 1.56, .64, 1), background 0.28s ease, color 0.28s ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: var(--ink);
  background: rgba(221, 215, 255, 0.58);
  transform: translateY(-2px) scale(1.04);
  outline: none;
}

.menu-toggle {
  display: none;
  border: 0;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  color: var(--ink);
  background: var(--peach);
  font-weight: 800;
  box-shadow: var(--shadow-in);
  cursor: pointer;
}

.hero-section {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: calc(var(--header-height) + 80px) 22px 80px;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.78) brightness(1.08);
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(255, 247, 238, 0.66), rgba(255, 247, 238, 0.86)),
    radial-gradient(circle at center, rgba(221, 215, 255, 0.52), rgba(255, 214, 200, 0.35));
}

.hero-overlay {
  width: min(880px, 100%);
  padding: clamp(28px, 5vw, 58px);
  text-align: center;
  border-radius: 58px;
  background: rgba(255, 250, 245, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow-out);
  animation: floaty 7s ease-in-out infinite;
}

.eyebrow {
  margin: 0 0 12px;
  color: #7b6e98;
  font-family: "Quicksand", sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: "Quicksand", sans-serif;
  line-height: 1.08;
  color: var(--ink);
}

h1 {
  max-width: 780px;
  margin: 0 auto 22px;
  font-size: clamp(2.55rem, 6vw, 5.7rem);
  letter-spacing: -0.06em;
}

h2 {
  margin: 0 0 20px;
  font-size: clamp(2.1rem, 4vw, 3.8rem);
  letter-spacing: -0.045em;
}

h3 {
  margin: 18px 0 10px;
  font-size: 1.28rem;
}

p {
  font-size: 1.02rem;
}

.hero-overlay p:not(.eyebrow) {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions,
.tab-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.soft-button,
.tab-button,
.story-button,
.profile-button,
.faq-question,
.gallery-thumb,
.menu-toggle {
  transition: transform 0.32s cubic-bezier(.34, 1.56, .64, 1), box-shadow 0.28s ease, background 0.28s ease;
}

.soft-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-weight: 900;
  background: linear-gradient(145deg, var(--peach), var(--lavender));
  box-shadow: var(--shadow-out);
}

.soft-button.secondary {
  background: linear-gradient(145deg, var(--mint), var(--white-soft));
}

.soft-button.centered {
  width: fit-content;
  margin: 18px auto 0;
}

.soft-button:hover,
.soft-button:focus-visible,
.tab-button:hover,
.story-button:hover,
.profile-button:hover,
.faq-question:hover,
.gallery-thumb:hover,
.menu-toggle:hover {
  transform: translateY(-4px) scale(1.035);
  outline: none;
}

.section {
  width: min(1180px, calc(100% - 34px));
  margin: 0 auto;
  padding: clamp(64px, 8vw, 108px) 0;
}

.clay-section {
  margin-top: 28px;
  margin-bottom: 28px;
  padding: clamp(36px, 5vw, 68px);
  border-radius: 58px;
  background: rgba(255, 250, 245, 0.62);
  box-shadow: var(--shadow-out);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.section-intro {
  max-width: 880px;
  margin: 0 auto 34px;
  text-align: center;
}

.mission-section {
  display: grid;
  grid-template-columns: 1fr 0.88fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}

.mission-copy {
  min-width: 0;
}

.soft-list {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.soft-list li {
  padding: 14px 18px;
  background: rgba(201, 243, 223, 0.52);
  border-radius: 22px;
  box-shadow: var(--shadow-in);
}

.mission-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.mission-images img {
  width: 100%;
  min-height: 420px;
  object-fit: cover;
  border-radius: 46px;
  box-shadow: var(--shadow-out);
}

.mission-images img:nth-child(2) {
  margin-top: 48px;
}

.service-grid,
.solution-grid,
.testimonial-grid,
.team-grid,
.portfolio-grid,
.lightbox-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-card,
.visual-card,
.testimonial-card,
.team-card,
.portfolio-card,
.support-card,
.faq-item,
.focus-stage {
  border-radius: var(--radius-xl);
  background: rgba(255, 250, 245, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow-out);
}

.service-card {
  padding: 28px;
  min-height: 280px;
}

.service-card:nth-child(3n + 1) {
  background: rgba(201, 243, 223, 0.62);
}

.service-card:nth-child(3n + 2) {
  background: rgba(255, 214, 200, 0.62);
}

.service-card:nth-child(3n + 3) {
  background: rgba(221, 215, 255, 0.62);
}

.clay-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  min-height: 92px;
  padding: 18px;
  text-align: center;
  border-radius: 34px;
  font-family: "Quicksand", sans-serif;
  font-weight: 700;
  color: var(--ink);
  background: rgba(255, 250, 245, 0.55);
  box-shadow: var(--shadow-in);
}

.service-card,
.visual-card,
.testimonial-card,
.team-card,
.portfolio-card {
  transition: transform 0.36s cubic-bezier(.34, 1.56, .64, 1), box-shadow 0.28s ease;
}

.service-card:hover,
.visual-card:hover,
.testimonial-card:hover,
.team-card:hover,
.portfolio-card:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow: 18px 18px 42px rgba(159, 139, 126, 0.2), -14px -14px 34px rgba(255, 255, 255, 0.9);
}

.visual-card,
.portfolio-card,
.testimonial-card,
.team-card {
  overflow: hidden;
}

.visual-card img,
.portfolio-card img,
.testimonial-card img {
  width: 100%;
  height: 245px;
  object-fit: cover;
}

.visual-card p,
.portfolio-card p,
.testimonial-card p,
.team-card p {
  margin-left: 22px;
  margin-right: 22px;
}

.mini-title,
.portfolio-heading,
.team-name {
  font-family: "Quicksand", sans-serif;
  font-weight: 800;
  color: var(--ink);
}

.portfolio-panel,
.gallery-panel {
  margin-top: 42px;
  padding: clamp(24px, 4vw, 40px);
  border-radius: 46px;
  background: rgba(255, 234, 240, 0.44);
  box-shadow: var(--shadow-in);
}

.portfolio-heading {
  margin: 0 0 10px;
  font-size: 1.35rem;
}

.tab-button,
.story-button,
.profile-button {
  border: 0;
  cursor: pointer;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  color: var(--ink);
  font-weight: 900;
  background: rgba(255, 250, 245, 0.86);
  box-shadow: var(--shadow-out);
}

.tab-button.active,
.story-button[aria-expanded="true"],
.profile-button[aria-expanded="true"] {
  background: linear-gradient(145deg, var(--mint), var(--lavender));
  box-shadow: var(--shadow-in);
}

.tab-pane {
  display: none;
  margin-top: 24px;
}

.tab-pane.active {
  display: block;
}

.focus-stage {
  margin: 24px 0;
  overflow: hidden;
}

.focus-stage img {
  width: 100%;
  height: clamp(320px, 52vw, 560px);
  object-fit: cover;
}

.focus-stage figcaption {
  padding: 16px 24px 22px;
  font-weight: 800;
}

.gallery-thumb {
  border: 0;
  padding: 8px;
  cursor: pointer;
  border-radius: 32px;
  background: rgba(255, 250, 245, 0.72);
  box-shadow: var(--shadow-out);
}

.gallery-thumb.active {
  background: linear-gradient(145deg, var(--mint), var(--peach));
  box-shadow: var(--shadow-in);
}

.gallery-thumb img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 26px;
}

.story-frame {
  position: relative;
}

.story-frame img {
  height: 250px;
}

.story-button {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  white-space: nowrap;
}

.story-button:hover {
  transform: translateX(-50%) translateY(-4px) scale(1.035);
}

.quote {
  font-weight: 800;
}

.story-transcript {
  display: none;
  padding-bottom: 20px;
  color: var(--muted);
}

.story-transcript.open {
  display: block;
}

.team-card {
  padding-bottom: 24px;
  text-align: center;
}

.team-card img {
  width: calc(100% - 32px);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin: 16px auto 0;
  border-radius: 36px;
  box-shadow: var(--shadow-in);
}

.profile-details {
  margin-top: 24px;
  padding: 24px;
  border-radius: 36px;
  background: rgba(201, 243, 223, 0.42);
  box-shadow: var(--shadow-in);
}

.profile-panel {
  display: none;
}

.profile-panel.active {
  display: block;
}

.faq-layout {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 24px;
  align-items: start;
}

.accordion {
  display: grid;
  gap: 16px;
}

.faq-item {
  overflow: hidden;
}

.faq-question {
  width: 100%;
  border: 0;
  cursor: pointer;
  padding: 20px 24px;
  text-align: left;
  color: var(--ink);
  background: rgba(221, 215, 255, 0.48);
  font-size: 1.03rem;
  font-weight: 900;
  border-radius: var(--radius-xl);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  padding: 0 24px;
  transition: grid-template-rows 0.3s ease, padding 0.3s ease;
}

.faq-answer p {
  overflow: hidden;
  margin: 0;
}

.faq-answer.open {
  grid-template-rows: 1fr;
  padding: 0 24px 22px;
}

.support-card {
  padding: 28px;
  background: rgba(255, 214, 200, 0.5);
}

.site-footer {
  width: min(1180px, calc(100% - 34px));
  margin: 20px auto 34px;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-radius: 38px;
  background: rgba(255, 250, 245, 0.72);
  box-shadow: var(--shadow-out);
}

.site-footer p {
  margin: 0;
  font-weight: 800;
}

.site-footer a {
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: var(--mint);
  text-decoration: none;
  font-weight: 900;
  box-shadow: var(--shadow-in);
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-12px) scale(1.006);
  }
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    border-radius: 34px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .primary-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    padding: 14px;
    border-radius: 30px;
    background: rgba(255, 250, 245, 0.95);
    box-shadow: var(--shadow-out);
  }

  .primary-nav.open {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .mission-section,
  .faq-layout {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .solution-grid,
  .testimonial-grid,
  .team-grid,
  .portfolio-grid,
  .lightbox-grid {
    grid-template-columns: 1fr;
  }

  .mission-images img {
    min-height: 340px;
  }
}

@media (max-width: 680px) {
  :root {
    --header-height: 74px;
  }

  .site-header {
    top: 10px;
    width: calc(100% - 18px);
  }

  .brand-pill {
    padding: 10px 14px;
    font-size: 0.95rem;
  }

  .hero-section {
    padding: calc(var(--header-height) + 70px) 14px 58px;
  }

  .hero-overlay,
  .clay-section {
    border-radius: 36px;
  }

  .hero-actions,
  .tab-buttons {
    align-items: stretch;
    flex-direction: column;
  }

  .soft-button,
  .tab-button {
    width: 100%;
  }

  .section {
    width: min(100% - 22px, 1180px);
    padding: 54px 0;
  }

  .clay-section {
    padding: 24px;
  }

  .mission-images {
    grid-template-columns: 1fr;
  }

  .mission-images img:nth-child(2) {
    margin-top: 0;
  }

  .visual-card img,
  .portfolio-card img,
  .testimonial-card img,
  .story-frame img {
    height: 220px;
  }

  .site-footer {
    flex-direction: column;
    text-align: center;
  }
}

/* Visible state helpers */
+ .animate-fade-in-up.visible,
+ .animate-fade-in-left.visible,
+ .animate-fade-in-right.visible,
+ .animate-bounce-y.visible,
+ .section-scroll-animate.visible,
+ .text-animate-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Universal Icon Fixes for Buttons */
button svg, .carousel-next svg, .carousel-prev svg, .slider-next svg, .slider-prev svg,
.next svg, .prev svg, .tab-button svg, .tab-btn svg {
    display: inline-block;
    vertical-align: middle;
    pointer-events: none;
    width: 1em;
    height: 1em;
    fill: currentColor;
}

button i, .carousel-next i, .carousel-prev i, .slider-next i, .slider-prev i,
.next i, .prev i, .tab-button i, .tab-btn i {
    display: inline-block;
    vertical-align: middle;
    pointer-events: none;
    font-style: normal;
}

button .icon, .carousel-next .icon, .carousel-prev .icon,
.slider-next .icon, .slider-prev .icon, .tab-button .icon {
    display: inline-block;
    vertical-align: middle;
    pointer-events: none;
}

/* Ensure carousel buttons are clickable even with icons */
.carousel-next, .carousel-prev, .slider-next, .slider-prev,
.next, .prev, .next-btn, .prev-btn {
    cursor: pointer;
    position: relative;
}

.carousel-next *, .carousel-prev *, .slider-next *, .slider-prev *,
.next *, .prev *, .next-btn *, .prev-btn * {
    pointer-events: none;
}

/* Tab button icon fixes */
.tab-button, .tab-btn, .tab {
    cursor: pointer;
    position: relative;
}

.tab-button *, .tab-btn *, .tab * {
    pointer-events: none;
}

/* Ensure icons don't block clicks */
button > svg, button > i, button > .icon,
.carousel-next > svg, .carousel-prev > svg,
.tab-button > svg, .tab-button > i {
    pointer-events: none !important;
}

/* Enhanced: Team grid stabilization */
+ .team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
+ @media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
+ @media (max-width: 600px) { .team-grid { grid-template-columns: 1fr; } }

/* Safe visibility overrides (auto-added) */
:root, html, body, main, header, footer, section, .container, .content {
  opacity: 1 !important;
  visibility: visible !important;
}
