/* ==========================================================================
   Option 2 · One Line
   Light and modern. Every illustration is one unbroken line at the same
   2.5px weight (--line-weight in base.css) that draws itself on scroll.
   Loads after base.css and components.css.
   ========================================================================== */

/* === Theme ================================================================ */
.theme-oneline {
  --page-bg: var(--paper);
  --page-fg: var(--text);
  --heading: var(--ink);
  --surface: var(--white);
  --surface-line: var(--line);
  --header-bg: var(--paper);
  --header-fg: var(--ink);
  --line-color: var(--orange);
}
.theme-oneline .site-header { border-bottom: 1px solid var(--line); }
.theme-oneline .site-logo, .theme-oneline .menu-panel__top img { background: var(--charcoal); border-radius: 10px; padding: 6px 10px; }
.theme-oneline .site-logo img { height: 32px; }
.theme-oneline .menu-panel { --header-bg: var(--paper); --header-fg: var(--ink); }
.theme-oneline .menu-panel__links a { border-bottom-color: var(--line); }
.theme-oneline .menu-panel__links a[aria-current="page"] { color: var(--orange-ink); }
.theme-oneline .site-nav a[aria-current="page"] { border-bottom-color: var(--orange); }
.line-art { color: var(--line-color); }
.btn--line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.ol-ctas { display: grid; gap: 10px; }
@media (min-width: 768px) { .ol-ctas { display: flex; flex-wrap: wrap; } }

/* === Hero slider ============================================================ */
.ol-hero { padding: 16px 0 48px; }
.ol-hero__tabs { display: flex; align-items: center; gap: 18px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1) 18px; padding: 0 var(--gutter); }
.ol-hero__tabs::-webkit-scrollbar { display: none; }
.ol-hero__tab { flex-shrink: 0; white-space: nowrap; position: relative; min-height: 44px; padding: 0 0 8px; border: 0; background: none; cursor: pointer; font-weight: 700; font-size: 15px; color: #8A8A8A; }
.ol-hero__tab[aria-selected="true"] { color: var(--ink); }
.ol-hero__track { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--line); }
.ol-hero__fill { display: block; height: 100%; background: var(--orange); transform: scaleX(0); transform-origin: left; }
.ol-hero__pause { margin-left: auto; min-height: 36px; padding: 0 14px; border-radius: var(--pill); border: 1px solid #CFC7BB; background: transparent; font-size: 13px; font-weight: 600; cursor: pointer; }
.ol-hero__slides { display: grid; }
.ol-hero__slide { grid-area: 1 / 1; display: grid; gap: 20px; opacity: 0; visibility: hidden; transition: opacity 450ms var(--ease-out), visibility 0s linear 450ms; }
.ol-hero__slide.is-active { opacity: 1; visibility: visible; transition: opacity 450ms var(--ease-out); }
/* Photo with the one-line drawing overlapping its edge */
.ol-hero__art { position: relative; padding-bottom: 18%; }
.ol-hero__photo { aspect-ratio: 4 / 3; border-radius: var(--radius-l); overflow: hidden; width: 86%; }
.ol-hero__line { position: absolute; right: -4%; bottom: 0; width: 62%; }
.ol-hero__kicker { color: var(--orange-ink); font-size: 20px; }
.ol-hero__title { font-size: clamp(34px, 8.6vw, 62px); }
.ol-hero__text { display: flex; flex-direction: column; gap: 14px; }
.ol-hero__body { max-width: 54ch; font-size: 18px; }
/* Replay the line drawing every time a slide becomes active */
@media (prefers-reduced-motion: no-preference) {
  .ol-hero__slide.is-active .draw .m { animation: draw 2.2s var(--ease-in-out) 200ms both; }
  .ol-hero__slide.is-active .ol-hero__text > * { animation: rise 500ms var(--ease-out) both; }
  .ol-hero__slide.is-active .ol-hero__text > :nth-child(2) { animation-delay: 50ms; }
  .ol-hero__slide.is-active .ol-hero__text > :nth-child(n+3) { animation-delay: 100ms; }
}
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@media (min-width: 1100px) {
  .ol-hero { padding: 32px 0 72px; }
  .ol-hero__slide { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 64px; }
}

/* === Positioning statement + who we are ====================================== */
.ol-about { border-top: 1px solid var(--line); padding-top: var(--section); }
.ol-about__statement { font-size: clamp(27px, 5.6vw, 50px); line-height: 1.22; max-width: 26ch; }
.ol-pill { display: inline-block; width: 1.8em; height: .8em; border-radius: var(--pill); overflow: hidden; vertical-align: -0.06em; }
/* Full-width lines keep their figure large on phones: the SVG is cropped (slice), not shrunk */
.ol-wide, .ol-van-line, .ol-foot-line { width: 100%; height: clamp(120px, 20vw, 260px); }
.ol-wide { margin: 24px 0 8px; }
.ol-about__text { max-width: 860px; padding-bottom: var(--section); display: grid; gap: 16px; }
.ol-about__title { font-size: clamp(24px, 4.4vw, 34px); }

/* === Initiatives accordion =================================================== */
.ol-inits { background: var(--white); border-top: 1px solid var(--line); }
.ol-acc { border-bottom: 1px solid #D9D4CC; }
.acc-item { border-top: 1px solid #D9D4CC; }
.acc-item > button {
  width: 100%; display: grid; grid-template-columns: 60px minmax(0, 1fr) 44px; gap: 14px; align-items: center;
  padding: 18px 0; border: 0; background: none; text-align: left; cursor: pointer; color: var(--ink);
}
.acc-item__title { display: flex; flex-direction: column; gap: 2px; }
.acc-item__title .display { font-size: clamp(22px, 4.6vw, 38px); }
.acc-item__title .marathi { font-size: 16px; color: var(--muted); }
.acc-item__sign { position: relative; width: 44px; height: 44px; border-radius: var(--pill); border: 1.5px solid var(--ink); transition: transform var(--t-ui) var(--ease-out), background-color var(--t-ui) var(--ease-out); }
.acc-item__sign::before, .acc-item__sign::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 2px; background: currentColor; transform: translate(-50%, -50%); }
.acc-item__sign::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc-item > button[aria-expanded="true"] .acc-item__sign { background: var(--orange); border-color: var(--orange); transform: rotate(45deg); }
/* Height animates with grid rows 0fr → 1fr (state change, 300ms) */
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 300ms var(--ease-out); }
.acc-panel > div { overflow: hidden; }
.acc-item > button[aria-expanded="true"] + .acc-panel { grid-template-rows: 1fr; }
.acc-panel__inner { display: grid; gap: 18px; padding-bottom: 28px; }
.acc-panel__img { aspect-ratio: 4 / 3; border-radius: var(--radius-m); overflow: hidden; }
.acc-panel__text { display: flex; flex-direction: column; gap: 12px; }
.acc-panel__value { font-weight: 600; color: var(--ink); }
@media (min-width: 768px) { .acc-panel__inner { grid-template-columns: 1fr 1fr; gap: 28px; } }

/* === Impact timeline ========================================================= */
.ol-timeline { position: relative; display: grid; gap: 36px; padding-left: 34px; }
.ol-timeline::before { content: ""; position: absolute; left: 8px; top: 8px; bottom: 8px; width: var(--line-weight); background: var(--orange); border-radius: 2px; }
.ol-timeline .proof__item { position: relative; }
.ol-timeline .proof__item::before { content: ""; position: absolute; left: -34px; top: 14px; width: 18px; height: 18px; border-radius: var(--pill); background: var(--paper); border: var(--line-weight) solid var(--orange); }
@media (min-width: 768px) { .ol-timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; } }
@media (min-width: 1100px) { .ol-timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* === Van finder (dark band, heart line underneath) ============================== */
.theme-oneline .van { background: var(--charcoal); color: #D4D4D4; --heading: #FFFFFF; --muted-fg: #BDBDBD; padding-bottom: 0; }
.theme-oneline .van .chip { background: transparent; color: #FFFFFF; border-color: #FFFFFF; }
.theme-oneline .van .chip[aria-pressed="true"] { background: #FFFFFF; color: var(--charcoal); }
.theme-oneline .van__kicker { color: var(--orange-soft); }
.theme-oneline .van__card { border-left: var(--line-weight) solid var(--orange); border-radius: 0; padding: 4px 0 4px 16px; }
.theme-oneline .van__place { color: #FFFFFF; }
.theme-oneline .van__link { color: var(--orange-soft); }
.ol-van-line { margin-top: 24px; }

/* === Testimonials ============================================================== */
.ol-voices { border-top: 1px solid var(--line); }
.ol-voices__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.ol-voices__quill { width: 140px; flex-shrink: 0; margin-bottom: 12px; }
.ol-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 8px; }
.ol-strip::-webkit-scrollbar { display: none; }
.ol-strip .voice { scroll-snap-align: start; background: var(--white); border-style: solid; border-color: var(--line); }
@media (min-width: 768px) { .ol-strip { grid-auto-columns: 40%; } }
@media (min-width: 1100px) { .ol-strip { grid-auto-columns: 30%; margin: 0; padding: 0 0 8px; } }

/* === Donate ======================================================================= */
.ol-give { background: var(--cream); }
.ol-give__grid { display: grid; gap: 28px; }
.ol-give__intro { display: flex; flex-direction: column; gap: 14px; }
.ol-give__intro .h2 { margin-bottom: 0; }
.ol-give__art { width: min(100%, 300px); }
.ol-give__meter { height: var(--line-weight); margin-top: 18px; background: #E4D3BF; border-radius: 2px; overflow: hidden; }
.ol-give__fill { display: block; height: 100%; background: var(--orange); transform-origin: left; transform: scaleX(.5); transition: transform 500ms var(--ease-out); }
.ol-give__caption { font-size: 14px; color: var(--muted); margin-top: 8px; }
@media (min-width: 1100px) { .ol-give__grid { grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; } }

/* === Be part of the change ========================================================= */
.ol-change__grid { display: grid; gap: 28px; }
.ol-change__art { color: var(--ink); max-width: 460px; }
.ol-change__grid p { max-width: 44ch; margin-bottom: 18px; }
@media (min-width: 1100px) { .ol-change__grid { grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; } }

/* Footer line */
.ol-foot-line { padding-top: 20px; height: clamp(90px, 14vw, 190px); }
