@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap");

/* Shared foundation */
:root {
  --paper: #f7f4ed;
  --ink: #20211f;
  --muted: #63655e;
  --line: #d8d9cb;
  --gutter: max(6%, calc((100vw - 1200px) / 2));
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.34, 1.56, 0.64, 1);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(84px + env(safe-area-inset-top, 0px));
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    16px/1.6 "DM Sans",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  width: 100%;
  position: relative;
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}
a,
button {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid #617348;
  outline-offset: 5px;
}
h1,
h2,
h3,
h4 {
  font-weight: 500;
}
h1 {
  font-size: clamp(48px, 5.7vw, 82px);
  line-height: 1.12;
  letter-spacing: -3.5px;
  margin: 0 0 24px;
}
h2 {
  font-size: clamp(38px, 4.3vw, 62px);
  line-height: 1.14;
  letter-spacing: -2px;
  margin: 0;
}
h3 {
  font-size: 23px;
  line-height: 1.3;
  letter-spacing: -0.5px;
}
.serif,
em {
  font: inherit;
}
.section {
  padding: 64px var(--gutter);
  border-top: 1px solid var(--line);
}
.section-kicker {
  font-size: 11px;
  letter-spacing: 1.4px;
  color: var(--muted);
  margin: 0 0 18px;
}
.button,
.small-join {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  white-space: normal;
  user-select: none;
  -webkit-user-select: none;
}
.button {
  padding: 17px 22px;
  font-size: 15px;
  line-height: 1.5;
  transition:
    transform 0.2s var(--ease-smooth),
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}
.button:hover {
  transform: translateY(-2px);
}
.button:active,
.small-join:active {
  transform: translateY(0) scale(0.98);
}
.dark {
  background: var(--ink);
  color: white;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.wordmark img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 2px;
}
.brand-name {
  font-size: 27px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -1.2px;
}
.story,
.participate,
.questions {
  background:
    linear-gradient(rgba(250, 248, 242, 0.83), rgba(250, 248, 242, 0.83)),
    url("assets/ezhunai-paper-olive-bg.webp") center/cover;
}

/* Navigation */
header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding: max(16px, env(safe-area-inset-top, 0px)) var(--gutter) 16px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(249, 248, 242, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #d8ddce;
  transition:
    box-shadow 0.25s var(--ease-smooth),
    background-color 0.25s ease;
}
header.is-scrolled {
  box-shadow: 0 4px 20px rgba(37, 52, 27, 0.08);
}
header > nav > a.active {
  font-weight: 600;
  color: #1f2c1c;
  text-decoration: underline;
  text-underline-offset: 5px;
}
header > .wordmark {
  justify-self: start;
}
header .wordmark img {
  width: 42px;
  height: 42px;
}
header > nav {
  display: flex;
  justify-self: center;
  align-items: center;
  gap: 30px;
}
nav a:hover,
footer a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}
header > .small-join {
  justify-self: end;
  background: #293a2a;
  color: #fff;
  padding: 13px 22px;
  font-size: 14px;
  font-weight: 500;
}
header > .small-join:hover {
  background: #3e553b;
}
.menu,
.nav-mobile-join {
  display: none;
}
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 23px;
  height: 24px;
}
.hamburger i {
  display: block;
  width: 23px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition:
    transform 0.2s,
    opacity 0.2s;
}
.menu[aria-expanded="true"] .hamburger i:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu[aria-expanded="true"] .hamburger i:nth-child(2) {
  opacity: 0;
}
.menu[aria-expanded="true"] .hamburger i:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero: full photograph on the right, fading toward the copy */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 560px;
  padding: 62px var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-content: center;
  background:
    linear-gradient(90deg, rgba(250, 247, 239, 0.3), rgba(245, 244, 230, 0.12)),
    url("assets/ezhunai-paper-olive-bg.webp") center 52% / cover;
}
.hero > h1,
.hero-bottom {
  grid-column: 1;
  position: relative;
  z-index: 1;
}
.hero-bottom p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0;
}
.hero-bottom .button {
  margin-top: 28px;
}
.hero-brand {
  position: absolute;
  inset: 0 0 0 auto;
  width: 68%;
  height: 100%;
  margin: 0;
  z-index: -1;
  pointer-events: none;
}
.hero-brand img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  mask-image: linear-gradient(
    90deg,
    transparent,
    rgba(0, 0, 0, 0.3) 28%,
    #000 75%
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    rgba(0, 0, 0, 0.3) 28%,
    #000 75%
  );
}

/* Story and the core belief */
.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 8%;
  align-items: start;
}
.story-copy {
  font-size: 17px;
  line-height: 1.8;
  color: var(--muted);
}
.story-copy p {
  margin: 0 0 18px;
}
.story-copy p:last-child {
  margin-bottom: 0;
}
.story-belief {
  font-size: 20px;
  line-height: 1.65;
  color: #526248;
  margin: 25px 0 0;
}
.tamil-proverb {
  font-size: 18px;
  line-height: 1.9;
  color: #526248;
  margin: 22px 0 0;
  max-width: 450px;
}
.core-belief {
  text-align: center;
  padding: 32px 0 18px;
  margin-top: 32px;
  border-top: 1px solid var(--line);
}
.core-belief h3 {
  font-size: clamp(27px, 3vw, 38px);
  letter-spacing: -1px;
  margin: 0 0 26px;
  line-height: 1.2;
}
.belief-flow {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 1.5vw, 22px);
  width: max-content;
  max-width: 100%;
}
.belief-flow li {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: clamp(6px, 1.5vw, 22px);
  opacity: 1;
}
.belief-word {
  font-size: clamp(23px, 2.5vw, 30px);
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: -0.6px;
  color: #354d30;
}
.belief-arrow {
  display: block;
  color: #8a9d77;
  font-size: 20px;
  line-height: 1.3;
  margin: 0;
}
.belief-flow.reveal-ready li {
  opacity: 0;
  transform: translateY(-18px);
}
.belief-flow.reveal-ready.is-revealed li {
  animation: belief-reveal 0.65s cubic-bezier(0.2, 0.7, 0.3, 1) both;
  animation-delay: calc(var(--step) * 0.7s);
}
@keyframes belief-reveal {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.name-equation {
  display: grid;
  grid-template-columns: 0.95fr 1fr 25px 1fr 25px 1.3fr;
  align-items: center;
  gap: 22px;
  padding: 26px 28px;
  border: 1px solid #d4dcca;
  border-radius: 14px;
  background: rgba(236, 241, 226, 0.7);
  margin-top: 28px;
}
.name-label {
  font-size: 10px;
  line-height: 1.8;
  letter-spacing: 1.2px;
  color: var(--muted);
}
.name-equation > div > span {
  font-size: 26px;
}
.name-equation h3 {
  font-size: 22px;
  margin: 12px 0 0;
}
.name-equation small {
  font-size: 14px;
  color: var(--muted);
  margin-left: 8px;
  font-weight: 400;
  letter-spacing: 0;
}
.name-equation > div:nth-child(2),
.name-equation > div:nth-child(4) {
  text-align: center;
}
.name-equation > b {
  justify-self: center;
  align-self: center;
  text-align: center;
  line-height: 1;
  font-weight: 400;
  font-size: 25px;
  color: #8b8e82;
}
.name-equation .together {
  text-align: center;
}
.name-equation .together > span {
  font-size: 26px;
}

/* Community platforms and stationary activity cards */
.explore {
  background:
    linear-gradient(rgba(233, 238, 221, 0.86), rgba(233, 238, 221, 0.86)),
    url("assets/ezhunai-paper-olive-bg.webp") center/cover;
}
.community-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 36px;
}
.community-intro > p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}
.platform-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.platform-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
  background: rgba(250, 248, 242, 0.83);
  border: 1px solid #ccd2c0;
  border-radius: 14px;
  min-width: 0;
}
.platform-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  min-height: 40px;
}
.platform-type {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.3px;
  line-height: 1.3;
}
.platform-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
}
.platform-icon img {
  width: 32px;
  height: 32px;
  display: block;
  object-fit: contain;
}
.platform-icon.youtube img {
  width: 34px;
  height: 26px;
}
.platform-icon.instagram {
  width: 36px;
  height: 36px;
  background: radial-gradient(
    circle at 28% 100%,
    #feda75 0%,
    #fa7e1e 20%,
    #d62976 52%,
    #962fbf 75%,
    #4f5bd5 100%
  );
  border-radius: 10px;
}
.platform-icon.instagram svg {
  width: 25px;
  height: 25px;
  stroke-width: 1.8;
  stroke: white;
  fill: none;
}
.instagram-dot {
  fill: white;
  stroke: none;
}
.platform-card h3 {
  font-size: 18px;
  font-weight: 500;
  color: #53624a;
  line-height: 1.4;
  margin: 0 0 14px;
}
.platform-card > p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 24px;
}
.platform-card > a {
  font-size: 14px;
  font-weight: 500;
  margin-top: auto;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.activity-heading {
  margin: 36px 0 20px;
}
.activity-heading h3 {
  margin: 0;
  font-size: 25px;
}
.activity-grid,
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.activity-grid article {
  min-width: 0;
  padding: 26px;
  border: 1px solid #c9d0bc;
  border-radius: 14px;
  background: rgba(248, 248, 239, 0.82);
}
.activity-grid article > span {
  display: block;
  font-size: 11px;
  color: #718061;
  margin-bottom: 16px;
}
.activity-grid h4 {
  font-size: 20px;
  line-height: 1.4;
  letter-spacing: -0.25px;
  margin: 0 0 12px;
}
.activity-grid p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}
.participate-heading {
  margin-bottom: 28px;
}
.steps article {
  min-width: 0;
  border: 1px solid #d4d8ca;
  border-radius: 18px;
  padding: 30px;
  background: rgba(250, 248, 242, 0.9);
}
.step-symbol {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #e6ebdb;
  color: #4d6241;
  margin-bottom: 26px;
}
.step-symbol svg {
  width: 32px;
  height: 32px;
}
.steps h3 {
  font-size: 24px;
  margin: 0 0 14px;
}
.steps p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
  margin: 0;
}

/* Welcome, FAQ and closing invitation */
.belong {
  background: linear-gradient(145deg, #edf1e5, #e2e9d8);
  color: #263325;
}
.belong-intro {
  text-align: center;
  max-width: 850px;
  margin: 0 auto 32px;
}
.belong h2 {
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.2;
  letter-spacing: -1.6px;
}
.belong-highlight {
  display: inline-block;
  color: #71865b;
  margin-top: 7px;
}
.belong-note {
  font-size: 15px;
  line-height: 1.7;
  color: #64715b;
  margin: 20px 0 0;
}
.values {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.values article {
  min-width: 0;
  min-height: 154px;
  padding: 24px;
  border-radius: 14px;
  border: 1px solid #d0dac4;
  background: rgba(252, 253, 247, 0.83);
}
.values article > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e8efdd;
  color: #657b50;
  font-size: 10px;
  margin-bottom: 22px;
}
.values h3 {
  font-size: 18px;
  line-height: 1.5;
  font-weight: 500;
  color: #33432c;
  letter-spacing: -0.4px;
  margin: 0;
}
.questions {
  padding-top: 48px;
  padding-bottom: 48px;
}
.faq-layout {
  max-width: 880px;
  margin: 0 auto;
}
.faq-heading {
  margin-bottom: 26px;
}
.faq-heading .section-kicker {
  margin-bottom: 12px;
}
.faq-heading h2 {
  font-size: clamp(32px, 3.2vw, 44px);
  letter-spacing: -1.3px;
  line-height: 1.2;
}
.faqs {
  background: rgba(251, 250, 246, 0.88);
  border: 1px solid #d9dece;
  border-radius: 16px;
  padding: 8px 24px;
  overflow: hidden;
}
.faqs details {
  border-radius: 8px;
  transition: background-color 0.25s var(--ease-smooth);
}
.faqs details + details {
  border-top: 1px solid #dce0d3;
}
summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 19px 4px;
  font-size: 15px;
  line-height: 1.6;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: color 0.2s ease;
}
summary::-webkit-details-marker {
  display: none;
}
summary:hover {
  color: #293a2a;
}
summary span {
  font-size: 22px;
  display: inline-block;
  transition: transform 0.28s var(--ease-smooth);
}
details[open] summary span {
  transform: rotate(45deg);
}
.faqs details[open] {
  background: rgba(41, 58, 42, 0.025);
}
.faqs details p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
  margin: 0 30px 20px 4px;
  animation: faqSlideDown 0.28s var(--ease-smooth);
}
@keyframes faqSlideDown {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.join {
  padding-top: 32px;
  padding-bottom: 48px;
  background:
    linear-gradient(rgba(222, 232, 203, 0.57), rgba(222, 232, 203, 0.57)),
    url("assets/ezhunai-paper-olive-bg.webp") center 65% / cover;
}
.join-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid #c8d2ba;
  border-radius: 24px;
  padding: 42px 30px;
  background:
    radial-gradient(
      ellipse at 50% 0%,
      rgba(253, 252, 244, 0.9),
      transparent 80%
    ),
    #e4ebd8;
}
.join-logo {
  border-radius: 10px;
  margin-bottom: 22px;
}
.join .section-kicker {
  margin: 0 0 15px;
  color: #637253;
  font-size: 10px;
}
.join h2 {
  font-size: clamp(38px, 5.5vw, 72px);
  letter-spacing: -2.4px;
  line-height: 1.1;
}
.join-description {
  font-size: 16px;
  line-height: 1.8;
  color: #56624b;
  margin: 22px 0 26px;
}
.join .button {
  padding: 16px 26px;
}
.join-caption {
  font-size: 12px;
  color: #6c785f;
  margin: 15px 0 0;
}
footer {
  padding: 32px var(--gutter) max(28px, calc(20px + env(safe-area-inset-bottom, 0px)));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  column-gap: 36px;
  row-gap: 25px;
  align-items: center;
  background: #f0eee5;
}
footer p {
  font-size: 14px;
  color: var(--muted);
}
footer > div {
  display: flex;
  justify-self: end;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 22px;
  font-size: 14px;
}
footer > div a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
footer > div svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.6;
  fill: none;
}
footer small {
  grid-column: 1/-1;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  font-size: 12px;
  color: var(--muted);
}

/* Responsive layouts */
@media (max-width: 1100px) {
  .platform-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
  .platform-card {
    padding: 28px;
  }
  .platform-type,
  .platform-card h3 {
    font-size: 20px;
  }
}
@media (max-width: 1000px) {
  h1 {
    letter-spacing: -2.4px;
  }
  footer {
    grid-template-columns: 1fr auto;
  }
  footer p {
    display: none;
  }
  .name-equation {
    gap: 15px;
  }
  .values {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .values article {
    min-height: 140px;
  }
  .belong h2 {
    font-size: 36px;
  }
  .activity-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .steps {
    gap: 16px;
  }
  .steps article {
    padding: 24px;
  }
  .steps h3 {
    font-size: 21px;
  }
}
@media (max-width: 1000px) and (min-width: 821px) {
  header {
    gap: 18px;
  }
  header > nav {
    gap: 22px;
    font-size: 14px;
  }
  header > .small-join {
    font-size: 12px;
    padding: 12px 17px;
  }
}
@media (max-width: 820px) {
  header {
    grid-template-columns: minmax(0, 1fr) auto;
    padding-top: max(16px, env(safe-area-inset-top, 0px));
    padding-bottom: 16px;
    gap: 20px;
  }
  header > .small-join {
    display: none;
  }
  header > .menu {
    display: grid;
    place-items: center;
    justify-self: end;
    width: 44px;
    height: 44px;
    border: 1px solid #d3dcc9;
    border-radius: 10px;
    background: #f6f8f0;
    color: #33462c;
    padding: 10px;
    margin: 0;
    cursor: pointer;
    transition: transform 0.18s var(--ease-smooth), background-color 0.18s ease;
  }
  header > .menu:active {
    transform: scale(0.94);
  }
  header > nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    padding: 16px var(--gutter) 24px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(250, 251, 245, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid #d4ddca;
    box-shadow: 0 16px 28px rgba(37, 52, 27, 0.09);
    z-index: 30;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition:
      opacity 0.25s var(--ease-smooth),
      transform 0.25s var(--ease-smooth),
      visibility 0.25s;
  }
  header > nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
  header > nav > a {
    font-size: 16px;
    line-height: 1.5;
    padding: 14px 0;
    border-bottom: 1px solid #e1e6d9;
    transition: color 0.15s ease, padding-left 0.15s ease;
  }
  header > nav > a:active {
    padding-left: 4px;
    color: #1f2c1c;
  }
  header > nav > .nav-mobile-join {
    display: block;
    background: #293a2a;
    border-radius: 999px;
    color: #fff;
    text-align: center;
    border: 0;
    padding: 14px 20px;
    margin-top: 18px;
    font-weight: 500;
    transition: transform 0.18s var(--ease-smooth), background-color 0.2s ease;
  }
  header > nav > .nav-mobile-join:active {
    transform: scale(0.98);
  }
}
@media (max-width: 720px) {
  :root {
    --gutter: 6%;
  }
  .brand-name {
    font-size: 25px;
  }
  h1 {
    font-size: clamp(42px, 9.3vw, 64px);
    letter-spacing: -1.8px;
    line-height: 1.15;
  }
  h2 {
    font-size: clamp(36px, 8.5vw, 48px);
    letter-spacing: -1.3px;
  }
  .section {
    padding-top: 44px;
    padding-bottom: 44px;
  }
  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    padding: 38px 6% 0;
    background-position: 32% center;
  }
  .hero > h1 {
    width: 100%;
    margin: 0 0 20px;
    text-align: left;
  }
  .hero > .hero-bottom {
    width: 100%;
    text-align: left;
  }
  .hero-bottom p {
    font-size: 16px;
  }
  .hero-bottom .button {
    margin-top: 24px;
  }
  .hero > .hero-brand {
    position: relative;
    inset: auto;
    flex: none;
    width: calc(100% + 12vw);
    height: clamp(245px, 72vw, 360px);
    margin: 0 -6vw;
    z-index: 0;
    overflow: hidden;
  }
  .hero-brand img {
    mask-image: linear-gradient(
      180deg,
      transparent,
      rgba(0, 0, 0, 0.3) 25%,
      #000 75%
    );
    -webkit-mask-image: linear-gradient(
      180deg,
      transparent,
      rgba(0, 0, 0, 0.3) 25%,
      #000 75%
    );
  }
  .story-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .story-copy {
    font-size: 16px;
  }
  .story-belief {
    font-size: 18px;
  }
  .tamil-proverb {
    font-size: 17px;
  }
  .core-belief {
    padding-top: 28px;
  }
  .core-belief h3 {
    font-size: 28px;
    margin-bottom: 24px;
  }
  .belief-flow,
  .belief-flow li {
    gap: 4px;
  }
  .belief-word {
    font-size: clamp(14px, 3.6vw, 25px);
    letter-spacing: -0.3px;
  }
  .belief-arrow {
    font-size: 14px;
  }
  .name-equation {
    grid-template-columns: 1fr 20px 1fr;
    padding: 23px;
    gap: 16px;
  }
  .name-label {
    grid-column: 1/-1;
  }
  .name-equation .equals {
    grid-column: 1/-1;
  }
  .name-equation .together {
    grid-column: 1/-1;
    padding: 0;
  }
  .name-equation > div > span {
    font-size: 25px;
  }
  .community-intro {
    display: block;
    margin-bottom: 28px;
  }
  .community-intro > p {
    margin-top: 20px;
    font-size: 15px;
  }
  .platform-grid,
  .activity-grid,
  .steps {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .platform-card {
    padding: 25px;
  }
  .platform-type {
    font-size: 21px;
  }
  .platform-card > p {
    font-size: 16px;
  }
  .platform-card > a {
    font-size: 15px;
  }
  .activity-heading h3 {
    font-size: 24px;
  }
  .activity-grid article {
    padding: 24px;
  }
  .steps article {
    padding: 26px;
  }
  .step-symbol {
    width: 50px;
    height: 50px;
    margin-bottom: 24px;
  }
  .steps h3 {
    font-size: 22px;
  }
  .steps p {
    font-size: 15px;
  }
  .belong-intro {
    margin-bottom: 28px;
  }
  .belong h2 {
    font-size: 30px;
    letter-spacing: -1px;
  }
  .belong h2 br {
    display: none;
  }
  .belong-highlight {
    display: block;
    margin-top: 10px;
  }
  .belong-note {
    font-size: 14px;
    margin-top: 17px;
  }
  .values {
    gap: 12px;
  }
  .values article {
    padding: 20px 17px;
    min-height: 152px;
  }
  .values article > span {
    margin-bottom: 18px;
    width: 27px;
    height: 27px;
  }
  .values h3 {
    font-size: 16px;
  }
  .faq-heading {
    margin-bottom: 22px;
  }
  .faq-heading h2 {
    font-size: 32px;
  }
  .faqs {
    padding: 0 19px;
  }
  summary {
    padding: 18px 0;
    font-size: 14px;
  }
  .faqs details p {
    margin-right: 14px;
  }
  .join {
    padding-top: 20px;
    padding-bottom: 36px;
  }
  .join-panel {
    padding: 32px 22px;
    border-radius: 20px;
  }
  .join h2 {
    font-size: 40px;
    letter-spacing: -1.5px;
  }
  .join-description {
    font-size: 15px;
    margin: 20px 0 24px;
  }
  .join .button {
    font-size: 14px;
    padding: 15px 23px;
  }
  .join-logo {
    width: 46px;
    height: 46px;
  }
  footer {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  footer > div {
    justify-self: start;
    justify-content: flex-start;
  }
  dialog {
    padding: 26px 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
  .belief-flow.reveal-ready li,
  .belief-flow.reveal-ready.is-revealed li {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Activity and values cards drift left to right; pause for uninterrupted reading. */
.activity-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.values-controls {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 18px;
}
.motion-toggle {
  border: 1px solid #bfcbb2;
  border-radius: 999px;
  padding: 10px 17px;
  background: #f7f9f0;
  color: #33462c;
  font-size: 12px;
  cursor: pointer;
  flex-shrink: 0;
}
.motion-toggle[hidden] {
  display: none;
}
.card-rail {
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 1%,
    #000 99%,
    transparent
  );
}
.card-rail.is-ready .card-track {
  display: flex;
  width: max-content;
  animation: cards-right 65s linear infinite;
  will-change: transform;
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.card-rail.is-ready .activity-grid,
.card-rail.is-ready .values {
  display: flex;
  flex: none;
  gap: 20px;
  padding-right: 20px;
}
.card-rail.is-ready .activity-grid article {
  width: 300px;
  flex: none;
}
.card-rail.is-ready .values article {
  width: 280px;
  flex: none;
}
#community-values .card-track {
  animation-duration: 50s;
}
.card-rail:hover .card-track,
.card-rail:focus-within .card-track,
.card-rail.is-paused .card-track {
  animation-play-state: paused;
}
@keyframes cards-right {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}
@media (max-width: 720px) {
  .card-rail {
    mask-image: none;
  }
  .card-rail.is-ready .activity-grid article,
  .card-rail.is-ready .values article {
    width: 260px;
  }
  .activity-heading {
    align-items: flex-start;
  }
  .activity-heading h3 {
    font-size: 22px;
  }
  .motion-toggle {
    padding: 9px 13px;
    font-size: 11px;
  }
  .values-controls {
    margin-bottom: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .card-rail.is-ready .card-track {
    display: block;
    width: auto;
    animation: none;
    transform: none;
    will-change: auto;
  }
  .card-rail.is-ready .activity-grid,
  .card-rail.is-ready .values {
    display: grid;
    padding-right: 0;
  }
  .card-rail.is-ready .activity-grid article,
  .card-rail.is-ready .values article {
    width: auto;
  }
  .card-duplicate {
    display: none !important;
  }
  .values-controls {
    display: none;
  }
}

/* Responsive Enhancements for Mobile Devices & Small Screens */
html,
body {
  overflow-x: hidden;
  max-width: 100vw;
}

@media (max-width: 480px) {
  .hero-bottom .button {
    width: 100%;
    text-align: center;
  }
  .name-equation {
    padding: 18px 14px;
    gap: 12px;
  }
  .belief-flow {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 360px) {
  .name-equation {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 10px;
    padding: 16px 10px;
  }
  .name-equation .plus,
  .name-equation .equals {
    margin: 0 auto;
    font-size: 18px;
  }
  .name-equation > div > span {
    font-size: 22px;
  }
  .belief-flow {
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }
  .belief-flow li {
    flex-direction: column;
    gap: 4px;
  }
  .belief-arrow {
    transform: rotate(90deg);
  }
  .button,
  .hero-bottom .button {
    padding: 14px 18px;
    font-size: 14px;
  }
}

/* 404 Not Found Page — Clean & Static */
.error-page {
  min-height: calc(100vh - 160px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px var(--gutter);
  background:
    linear-gradient(rgba(250, 248, 242, 0.88), rgba(250, 248, 242, 0.88)),
    url("assets/ezhunai-paper-olive-bg.webp") center/cover;
}
.error-kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2.5px;
  color: #526248;
  margin-bottom: 18px;
  display: inline-block;
  text-transform: uppercase;
}
.error-page h1 {
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1.15;
  letter-spacing: -2px;
  margin: 0 0 22px;
}
.error-copy {
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.7;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 34px;
}
.error-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.button.outline {
  border: 1px solid #33462c;
  background: transparent;
  color: #20211f;
}
.button.outline:hover {
  background: rgba(51, 70, 44, 0.08);
}
