/* 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;
  --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; }

/* 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: 21px; letter-spacing: .03em; text-transform: uppercase; line-height: 1.02; }
.brand__name span { color: #C9772A; }
.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: 32px; bottom: 32px; max-width: 480px;
  border-radius: 22px; padding: 26px 30px 24px;
  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 h1, .caption h2 { font-size: clamp(30px, 3.8vw, 52px); margin: 6px 0 8px; line-height: 1.04; }
.caption p { margin: 0 0 14px; color: #33402F; }
.caption a { font-weight: 700; }
.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); }

/* About */
.about { padding-top: 40px; }
.about__card {
  position: relative; overflow: hidden; display: flex; flex-wrap: wrap; gap: 28px 48px; align-items: center;
  padding: clamp(28px, 4.5vw, 64px); border-radius: 32px; background: var(--sky);
}
.about__waves { position: absolute; right: -50px; top: -50px; opacity: .6; }
.about__text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 16px; position: relative; }
.about__text .eyebrow { color: #22597A; }
.about__text h2 { font-size: clamp(34px, 4.4vw, 60px); max-width: 720px; }
.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; }
.tile--tall .tile__photo { flex: 1; min-height: 220px; margin-top: 8px; }
.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-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: .03em; text-transform: uppercase; line-height: 1.02; }
.foot-brand span { color: #E7A65A; }
.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); }
.foot-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid #34503C; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; 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-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: 600px; border-radius: 20px; background: #E8EEE4; }
  .slide > img { height: 330px; object-position: var(--pos-m, 50% 50%) !important; }
  .caption { top: 306px; left: 12px; right: 12px; bottom: 12px; max-width: none; padding: 18px 18px 16px; }
  .caption h1, .caption h2 { font-size: 30px; }
  .arrows { display: none; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .bento > *, .bento > .span-4 { grid-column: auto; }
  .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; }
}
