:root {
  --paper: #f5f6f0;
  --ink: #12302f;
  --teal: #0e3b3a;
  --teal-2: #17504d;
  --turmeric: #e3a72b;
  --moss: #5c7a4a;
  --muted: #4b5f5d;
  --line: #cfd6cc;
  --display: "Young Serif", Georgia, "Times New Roman", serif;
  --body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --pad: clamp(1.25rem, 5vw, 4rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--turmeric); outline-offset: 3px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .5rem 1rem; z-index: 20; }
.skip:focus { left: 0; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.1; margin: 0; }
h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
h3 { font-size: 1.75rem; }
p { margin: 0 0 1em; max-width: 62ch; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .85rem var(--pad);
  background: rgba(245, 246, 240, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-family: var(--display); font-size: 1.25rem; }
.site-header nav { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: flex-end; }
.site-header nav a { text-decoration: none; font-weight: 500; font-size: .98rem; padding: .25rem 0; border-bottom: 2px solid transparent; }
.site-header nav a:hover { border-bottom-color: var(--turmeric); }

/* Hero */
.hero { 
  background: var(--teal); color: #eef2ea;
  padding: clamp(4rem, 12vw, 9rem) var(--pad) clamp(3rem, 8vw, 6rem); 
}
.hero h1 { 
  font-size: clamp(3.2rem, 11vw, 8.5rem); letter-spacing: -0.02em; color: var(--teal); 
}
.lede { 
  margin-top: 1.75rem; font-size: clamp(1.15rem, 2vw, 1.4rem); color: #eef2ea; /*max-width: 36ch;*/ 
}

/* What we do */
.what {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 2rem 4rem;
  padding: clamp(3rem, 7vw, 5.5rem) var(--pad);
  border-top: 1px solid var(--line);
}

/* Our Mission */
.mission {
  background: var(--teal); color: #eef2ea;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 2rem 4rem;
  padding: clamp(3rem, 7vw, 5.5rem) var(--pad);
  border-top: 1px solid var(--line);
}

/* Our Founder */
/* Our Founder */
.founder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);  /* same as Our Mission */
  gap: 2rem 4rem;
  align-items: start;
  padding: clamp(3rem, 7vw, 5.5rem) var(--pad);
  border-top: 1px solid var(--line);
}
.founder h2 {
  grid-column: 1;
  grid-row: 1;               /* heading: left column, top */
}
.founder-photo {
  grid-column: 1;
  grid-row: 2;               /* photo: left column, under the heading */
  margin: 0;
  max-width: 220px;          /* photo size: change this number to resize */
}
.founder-body {
  grid-column: 2;
  grid-row: 1 / span 2;      /* text: right column, beside heading and photo */
}
.founder-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: 4px;
  border-bottom: 4px solid var(--turmeric);
}
.founder-photo figcaption {
  margin-top: .75rem;
  display: grid;
  gap: .1rem;
}
.founder-photo figcaption span {
  color: var(--muted);
  font-size: .95rem;
}

@media (max-width: 760px) {
  .founder { grid-template-columns: 1fr; }
  .founder h2,
  .founder-photo,
  .founder-body {
    grid-column: auto;       /* undo the placements: stack in HTML order */
    grid-row: auto;
  }
}

/* Initiatives */
.initiatives {
  background: var(--teal); color: #eef2ea;
  padding: clamp(3.5rem, 8vw, 6rem) var(--pad) clamp(3.5rem, 8vw, 6rem);
}
.init-intro { color: #b9cdc6; margin-top: .75rem; }
.roots { display: block; width: 100%; height: 140px; color: var(--turmeric); margin-top: 1.5rem; overflow: visible; }
.roots path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.roots .fine { opacity: .55; }
.js .roots path { stroke-dashoffset: 1; }
.js .roots.drawn path { transition: stroke-dashoffset 1.8s cubic-bezier(.4, 0, .2, 1); stroke-dashoffset: 0; }
.js .roots.drawn .fine { transition-delay: .9s; }

.panels { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; }
.panel { padding: 1.75rem 0 0; border-top: 2px solid var(--turmeric); }
.panel p { color: #d3e0da; margin-top: .9rem; }
#udyogasakha { border-top-color: #8fb37a; }

/* Community engagements carousel */
.community {
  padding: clamp(3rem, 7vw, 5.5rem) var(--pad);
  border-top: 1px solid var(--line);
}
.community-head {
  display: flex; align-items: end; justify-content: space-between;
  gap: 1rem; margin-bottom: 2rem;
}
.carousel-controls { display: flex; gap: .5rem; }
.car-btn {
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  border: 2px solid var(--teal); background: transparent; color: var(--teal);
  font-size: 1.2rem; cursor: pointer;
  transition: background .15s, color .15s;
}
.car-btn:hover:not(:disabled) { background: var(--teal); color: #fff; }
.car-btn:disabled { opacity: .35; cursor: default; }

.carousel {
  list-style: none; margin: 0; padding: 0 0 .5rem;
  display: flex; gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: thin;
}
.slide { flex: 0 0 min(80%, 26rem); scroll-snap-align: start; }
.slide figure { margin: 0; }
.slide img {
  width: 100%; height: auto;
  aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 4px; background: var(--line);
}
.slide figcaption { margin-top: .6rem; font-size: .95rem; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .carousel { scroll-behavior: auto; }
}

/* Buttons */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font: 600 1rem var(--body);
  padding: .75rem 1.4rem; border-radius: 4px; border: 2px solid var(--turmeric);
  background: var(--turmeric); color: var(--teal);
  transition: background .15s, color .15s;
}
.btn:hover { background: transparent; color: var(--turmeric); }
.initiatives .btn:hover { color: var(--turmeric); }
#udyogasakha .btn { background: #8fb37a; border-color: #8fb37a; }
#udyogasakha .btn:hover { background: transparent; color: #8fb37a; }
.contact .btn { background: var(--teal); border-color: var(--teal); color: #fff; }
.contact .btn:hover { background: transparent; color: var(--teal); }

/* Contact */
.contact {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 2rem 4rem;
  padding: clamp(3.5rem, 8vw, 6rem) var(--pad);
}
.contact-text p { margin-top: 1rem; }
.contact-text a { font-weight: 600; text-decoration-color: var(--turmeric); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.form { display: grid; gap: 1.1rem; }
.form label { display: grid; gap: .35rem; font-weight: 500; font-size: .98rem; }
.form input, .form textarea {
  font: inherit; color: inherit; width: 100%;
  padding: .7rem .8rem; background: #fff;
  border: 1.5px solid #9fb0a8; border-radius: 4px;
}
.form input:focus, .form textarea:focus { border-color: var(--teal); outline: 3px solid rgba(227, 167, 43, .55); outline-offset: 0; }
.form .btn { justify-self: start; }
.form-note { font-size: .9rem; color: var(--muted); margin: 0; }

/* Footer */
.site-footer {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 2rem;
  padding: 1.5rem var(--pad); border-top: 1px solid var(--line);
  font-size: .92rem; color: var(--muted);
}
.site-footer p { margin: 0; }

/* Responsive */
@media (max-width: 760px) {
  .what, .contact { grid-template-columns: 1fr; }
  .panels { grid-template-columns: 1fr; gap: 2.5rem; }
  .roots { display: none; }
  .panel { margin-top: 0; }
  .init-intro { margin-bottom: 2rem; }
  .site-header nav { gap: 1rem; font-size: .92rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .roots path { stroke-dashoffset: 0; transition: none !important; }
}
