/* naturemuseum.in — home page styles */
:root {
  --ink: #1B3522;
  --ink-2: #2C4A34;
  --bg: #F5F7F1;
  --muted: #46564C;
  --body: #2E3E35;
  --line: #E3E8DF;
  --sky: #CDE6F2;
  --sun: #F9E4A6;
  --pink: #F7D3CC;
  --sage: #D3E6CC;
  --lav: #E0D8F0;
  --teal: #C4E8DF;
  --sand: #F0DFC8;
  --sky-2: #E8F4FA; --sage-2: #E6F1E1; --sand-2: #F8ECDB; --sun-2: #FCF0C9; --teal-2: #DDF2EC; --pink-2: #FBE4DF;
  --rust: #8A2A0E;
  --ochre: #D68A2F;
  --olive: #8A8434;
  --radius: 26px;
  --wrap: 1280px;
  --gutter: clamp(16px, 3vw, 40px);
  --display: 'Oswald', 'Arial Narrow', sans-serif;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--ink); }
a:hover { color: #2F6F95; }
:focus-visible { outline: 3px solid #2F6F95; outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; z-index: 50; }
.skip:focus { left: 8px; }

.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.display { font-family: var(--display); font-weight: 600; text-transform: uppercase; line-height: 1.02; margin: 0; }
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--ink); color: #fff; padding: 12px 22px; border-radius: 999px;
  font-weight: 700; text-decoration: none; border: 2px solid var(--ink);
}
.btn:hover { background: #2C4A34; color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.chip { background: #fff; padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* Under-construction notice */
.notice { background: var(--sun); color: var(--ink); font-size: 13.5px; border-bottom: 1px solid rgba(27, 53, 34, .12); }
.notice .wrap { display: flex; align-items: center; gap: 10px; padding-top: 7px; padding-bottom: 7px; }
.notice svg { flex-shrink: 0; color: #7A5410; }
.notice__text { flex: 1; margin: 0; line-height: 1.4; }
.notice__close { flex-shrink: 0; background: none; border: 0; padding: 4px; border-radius: 6px; color: var(--ink); cursor: pointer; line-height: 0; }
.notice__close:hover { background: rgba(27, 53, 34, .08); }
.notice[hidden] { display: none; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(245, 247, 241, .94);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand__badge { width: 46px; height: 46px; border-radius: 14px; background: var(--olive); display: grid; place-items: center; flex-shrink: 0; }
.brand__name { font-family: var(--display); font-weight: 600; font-size: 26px; letter-spacing: .06em; text-transform: uppercase; line-height: 1; white-space: nowrap; }
.brand__name span { color: #6F6A22; font-weight: 500; }
.nav { display: flex; align-items: center; gap: 28px; font-weight: 500; font-size: 16px; }
.nav a { text-decoration: none; }
.nav .btn { padding: 10px 20px; }
.menu-btn { display: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--ink); align-items: center; justify-content: center; cursor: pointer; }
.mobile-nav { display: none; flex-direction: column; gap: 2px; padding: 4px var(--gutter) 20px; font-family: var(--display); font-size: 24px; text-transform: uppercase; }
.mobile-nav a { text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mobile-nav .btn { margin-top: 12px; justify-content: center; font-family: var(--sans); font-size: 17px; text-transform: none; }
.mobile-nav.is-open { display: flex; }

/* Hero carousel */
.hero { padding-top: 20px; }
.carousel { position: relative; height: 600px; border-radius: 32px; overflow: hidden; background: #DDE6D8; }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility .8s; }
.slide.is-active { opacity: 1; visibility: visible; }
.slide > img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.03); transition: transform 6s ease; }
.slide.is-active > img { transform: scale(1); }
.caption {
  position: absolute; left: 21px; bottom: 21px; max-width: 312px;
  border-radius: 14px; padding: 17px 20px 15px;
  box-shadow: 0 10px 30px rgba(27, 53, 34, .18);
  transform: translateY(16px); opacity: 0; transition: transform .7s ease .2s, opacity .7s ease .2s;
}
.slide.is-active .caption { transform: none; opacity: 1; }
.caption .eyebrow { font-size: 10px; }
.caption h1, .caption h2 { font-size: clamp(20px, 2.5vw, 34px); margin: 4px 0 5px; line-height: 1.04; }
.caption p { margin: 0 0 9px; color: #33402F; font-size: 12px; line-height: 1.5; }
.caption a { font-weight: 700; font-size: 12px; }
.caption--sky { background: var(--sky); } .caption--sky .eyebrow { color: #22597A; }
.caption--lav { background: var(--lav); } .caption--lav .eyebrow { color: #4E3F80; }
.caption--teal { background: var(--teal); } .caption--teal .eyebrow { color: #1A6858; }
.caption--pink { background: var(--pink); } .caption--pink .eyebrow { color: #8E3524; }
.caption--sun { background: var(--sun); } .caption--sun .eyebrow { color: #7A5410; }
.caption--sage { background: var(--sage); } .caption--sage .eyebrow { color: #2E5A2F; }
.arrows { position: absolute; right: 28px; bottom: 32px; display: flex; gap: 10px; z-index: 2; }
.arrow { width: 52px; height: 52px; border-radius: 50%; border: 0; background: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 18px rgba(27, 53, 34, .18); }
.arrow--next { background: var(--ink); }
.dots { display: flex; justify-content: center; gap: 2px; padding-top: 10px; }
.dot { width: 40px; height: 36px; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; padding: 0; }
.dot span { display: block; width: 10px; height: 10px; border-radius: 999px; background: #AEBBB2; transition: width .3s ease, background .3s ease; }
.dot[aria-current="true"] span { width: 30px; background: var(--ink); }

/* Illustrated slide (no photo yet) */
.slide__art { position: absolute; inset: 0; background: var(--lav); display: flex; align-items: center; justify-content: flex-end; padding: 40px 5% 40px 40px; }
.slide__art svg { width: min(56%, 580px); height: auto; }
.bar { transform-box: fill-box; transform-origin: center; animation: eq 1.6s ease-in-out infinite; }
.b2 { animation-delay: -.2s; } .b3 { animation-delay: -.5s; } .b4 { animation-delay: -.9s; } .b5 { animation-delay: -.3s; } .b6 { animation-delay: -1.1s; } .b7 { animation-delay: -.7s; }
@keyframes eq { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }

/* About */
.about { padding-top: 40px; }
.about__card {
  position: relative; overflow: hidden; display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center;
  padding: clamp(26px, 4vw, 56px); border-radius: 32px; background: var(--sky);
}
.about__waves { position: absolute; right: -50px; top: -50px; opacity: .6; }
.about__head { flex: 1 1 100%; display: flex; flex-direction: column; gap: 14px; position: relative; padding-right: clamp(0px, 8vw, 150px); }
.about__head .eyebrow { color: #22597A; }
.about__head h2 { font-size: clamp(32px, 4.2vw, 58px); }
.about__text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 16px; position: relative; }
.about__text p { margin: 0; max-width: 640px; color: #24384A; }
.about__text .lead { font-size: 19px; }
.about__cues { flex: 1 1 260px; display: flex; flex-direction: column; gap: 12px; position: relative; }
.cue { display: flex; align-items: center; gap: 16px; background: #fff; border-radius: 20px; padding: 16px 20px; }
.cue__icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; flex-shrink: 0; }
.cue strong { display: block; font-family: var(--display); font-weight: 600; font-size: 22px; text-transform: uppercase; line-height: 1.1; }
.cue small { display: block; font-size: 15px; color: var(--muted); }

/* Squiggle dividers */
.squiggle { display: flex; justify-content: center; padding: 36px 0 8px; }

/* Projects bento */
.projects { padding-top: 24px; padding-bottom: 24px; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 32px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(34px, 4vw, 56px); line-height: 1; }
.section-head p { margin: 0; max-width: 460px; color: var(--muted); }
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: minmax(240px, auto); gap: 20px; }
.tile {
  display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: var(--radius);
  text-decoration: none; color: var(--ink); overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.tile:hover { color: var(--ink); transform: translateY(-5px) rotate(-.4deg); box-shadow: 0 16px 32px rgba(27, 53, 34, .14); }
.tile h3 { font-family: var(--display); font-weight: 600; font-size: 28px; line-height: 1.05; text-transform: uppercase; margin: 6px 0 0; }
.tile p { margin: 0; color: var(--body); }
.tile .more { margin-top: auto; font-weight: 700; }
.tile__photo { position: relative; border-radius: 18px; overflow: hidden; }
.tile__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.tile:hover .tile__photo img { transform: scale(1.04); }
.tile--row { flex-direction: row; flex-wrap: wrap; gap: 22px; }
.tile__body { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.tile--row .tile__photo { flex: 1 1 240px; min-height: 240px; }
.tile--museum .tile__photo { min-height: 280px; }
.span-3 > .tile__photo { flex: 1 1 auto; min-height: 230px; margin-top: 6px; }
.photo-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 2px dashed rgba(27, 53, 34, .28); border-radius: 18px; background: rgba(255, 255, 255, .35); color: rgba(27, 53, 34, .62); font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.lifeforms { list-style: none; margin: 6px 0 2px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 4px; }
.lifeforms li { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 46px; }
.lifeforms small { font-size: 10.5px; font-weight: 700; color: var(--body); }
.lifeform { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; transition: transform .25s ease; }
.tile:hover .lifeform { transform: translateY(-2px); }
.tile:hover .lifeforms li:nth-child(2n) .lifeform { transform: translateY(2px); }
.span-2 { grid-column: span 2; } .span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; } .rows-2 { grid-row: span 2; }
.bg-sky { background: var(--sky); } .bg-sun { background: var(--sun); } .bg-sage { background: var(--sage); }
.bg-teal { background: var(--teal); } .bg-sand { background: var(--sand); } .bg-pink { background: var(--pink); } .bg-lav { background: var(--lav); }
.museum-logo { align-self: flex-start; width: min(100%, 320px); background: #fff; border-radius: 18px; overflow: hidden; }
.museum-logo img { width: 100%; height: auto; }
.tile--museum .eyebrow { color: #7A5410; }
.tile--museum p { color: #3B3320; }
.tile--museum .btn { align-self: flex-start; margin-top: auto; }

/* Species of the day */
.species { padding-top: 24px; padding-bottom: 64px; }
.species h2.display { font-size: clamp(34px, 4vw, 56px); line-height: 1; text-align: center; margin-bottom: 24px; }
.split { display: flex; border-radius: 32px; overflow: hidden; background: #fff; box-shadow: 0 12px 36px rgba(27, 53, 34, .08); }
.split__img { flex: 0 0 55%; min-height: 380px; position: relative; background: #101510; }
.split__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split__body { flex: 1 1 auto; padding: clamp(26px, 3.6vw, 52px); display: flex; flex-direction: column; gap: 12px; }
.split__body .eyebrow { color: #2E5A2F; }
.split__body h3 { font-size: clamp(32px, 3.6vw, 50px); }
.split__body .sci { margin: 0; font-size: 16px; color: var(--muted); }
.split__body p { margin: 0; color: var(--body); }
.split__body .chip { background: #EEF4EA; }
.split__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 12px; }

/* Footer */
.site-footer { background: var(--ink); color: var(--bg); }
.site-footer .wrap { padding-top: 56px; padding-bottom: 28px; }
.foot-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.foot-col { display: flex; flex-direction: column; gap: 8px; }
.foot-col a { color: var(--bg); text-decoration: none; }
.foot-col a:hover { color: var(--sun); }
.foot-col h4 { margin: 0 0 4px; font-family: var(--display); font-weight: 500; font-size: 18px; letter-spacing: .06em; text-transform: uppercase; color: var(--sun); }
.foot-col .note { color: #C9D4CC; font-size: 15px; margin: 0; }
.foot-brand { font-family: var(--display); font-weight: 600; font-size: 28px; letter-spacing: .06em; text-transform: uppercase; line-height: 1; }
.foot-brand span { color: #D9D27A; font-weight: 500; }
.socials { display: flex; gap: 10px; }
.socials a { width: 46px; height: 46px; border-radius: 50%; background: var(--ink-2); display: grid; place-items: center; }
.foot-col .btn--sun { align-self: flex-start; margin-top: 4px; background: var(--sun); border-color: var(--sun); color: var(--ink); }
.initiative { display: inline-flex; align-items: center; gap: 10px; color: #AFBDB3; text-decoration: none; }
.initiative img { height: 48px; width: auto; transition: transform .25s ease; }
.initiative:hover { color: var(--bg); }
.initiative:hover img { transform: rotate(-2deg) scale(1.04); }
.foot-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid #34503C; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; color: #AFBDB3; }

/* Motion */
@keyframes pulse { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.pulse { animation: pulse 2.4s ease-in-out infinite; }
.pulse-2 { animation: pulse 2.4s ease-in-out .4s infinite; }
.pulse-3 { animation: pulse 2.4s ease-in-out .8s infinite; }

/* Tablet */
@media (max-width: 880px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento { grid-auto-flow: row dense; }
  .bento > * { grid-column: span 1; grid-row: auto; }
  .bento > .span-4 { grid-column: span 2; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Phone */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .carousel { height: 545px; border-radius: 20px; background: #E8EEE4; }
  .slide > img { height: 360px; object-position: var(--pos-m, 50% 50%) !important; }
  .slide__art { bottom: auto; height: 360px; justify-content: center; padding: 20px 16px 36px; }
  .slide__art svg { width: 92%; }
  .brand__name { font-size: 22px; }
  .caption { top: 336px; left: 12px; right: 12px; bottom: 12px; max-width: none; padding: 13px 14px 12px; }
  .caption .eyebrow { font-size: 10px; }
  .caption h1, .caption h2 { font-size: 22px; }
  .caption p { font-size: 13px; }
  .caption a { font-size: 13px; }
  .notice__text { font-size: 12.5px; }
  .arrows { display: none; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .bento > *, .bento > .span-4 { grid-column: auto; }
  .span-3 > .tile__photo { min-height: 190px; }
  .about__head { padding-right: 0; }
  .about__head h2 { font-size: 30px; }
  .about__waves { width: 170px; height: 170px; right: -80px; top: -40px; }
  .split { flex-direction: column; }
  .split__img { flex-basis: auto; min-height: 260px; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
