/* Full-bleed local video with an always-available photographic fallback. */
.home-page .reef-hero{min-height:760px;min-height:min(820px,100svh);padding:160px clamp(24px,7vw,112px) 100px;background:var(--navy);color:white;align-items:center}
.reef-hero-background{position:absolute;inset:0;z-index:-1;overflow:hidden;background:var(--navy)}
.reef-hero-background::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(6,43,58,.88),rgba(6,43,58,.60) 43%,rgba(6,43,58,.12) 100%)}
.reef-hero-background video,.reef-hero-poster{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center}
.reef-hero-background video[hidden]{display:none}
.home-page .reef-hero-copy{width:100%;max-width:730px;padding:0}
.home-page .reef-hero h1{font-size:clamp(43px,5.1vw,74px);max-width:720px;color:white;line-height:1.05}
.home-page .reef-hero h1 span{color:white}
.home-page .reef-hero-copy>p{color:#f1f5f5;max-width:510px;font-size:17px;line-height:1.65}
.home-page .reef-primary-link{background:white;color:var(--navy)}
.home-page .reef-primary-link:hover{background:#e4f0ef;color:var(--navy)}
.home-page .reef-secondary-link{color:white;border-color:#ffffff85}
#peixes{scroll-margin-top:100px}
/* A single card and dialog implementation serves both species listings. */
.animal-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:36px 24px;max-width:1400px;margin:auto}
.animal-card{min-width:0}
.animal-card-link{display:block;height:100%;color:var(--navy);text-decoration:none}
.animal-card-link:focus-visible{outline:3px solid var(--blue);outline-offset:5px}
.animal-card-link:hover h3{color:var(--blue-dark)}
.animal-card-image{aspect-ratio:4/3;display:flex;align-items:center;justify-content:center;background:#fff;overflow:hidden}
.animal-card-image img{display:block;width:100%;height:100%;object-fit:contain;object-position:center;transform:none}
.animal-card-image>span{color:var(--muted);font-size:14px;padding:20px}
.animal-card-caption{padding-top:16px}
.animal-card-caption h3{font-size:20px;margin:0 0 5px;line-height:1.25}
.animal-card-caption p{font-size:14px;margin:0;color:var(--muted)}
.animal-dialog{padding:0;border:0;border-radius:0;width:min(1080px,calc(100% - 48px));max-width:none;max-height:90dvh;background:white;color:var(--ink);overscroll-behavior:contain;overflow:auto}
.animal-dialog::backdrop{background:rgba(6,30,40,.72)}
.animal-dialog-bar{position:sticky;top:0;z-index:2;display:flex;justify-content:flex-end;height:56px;background:white;padding:6px 12px}
.animal-dialog-bar button{display:grid;place-items:center;width:44px;height:44px;padding:10px;border:0;background:white;cursor:pointer}
.animal-dialog-layout{display:grid;grid-template-columns:1fr 1fr;gap:32px;padding:12px 36px 32px}
.animal-dialog-media{min-width:0}
.animal-dialog-media>img{display:block;width:100%;height:auto;max-height:430px;object-fit:contain;object-position:center}
.animal-dialog-gallery{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:16px}
.animal-dialog-gallery img{width:100%;height:auto;aspect-ratio:4/3;object-fit:contain}
.animal-dialog-copy{min-width:0;overflow-wrap:anywhere}
.animal-dialog-copy h2{font-size:clamp(28px,3vw,40px);line-height:1.1;margin:0 0 12px}
.animal-dialog-copy p{font-size:16px;line-height:1.65}
.animal-dialog-copy .animal-category{color:var(--blue-dark);font-size:13px;margin:0 0 12px}
.animal-facts{margin:24px 0}
.animal-facts>div{margin-top:18px}
.animal-facts dt{font-weight:650}
.animal-facts dd{margin:5px 0 0;line-height:1.65}
.animal-permalink{display:inline-block;margin-top:12px;color:var(--blue-dark);text-decoration:underline;text-underline-offset:4px}
.animal-dialog-navigation{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 24px;border-top:1px solid var(--line)}
.animal-dialog-navigation button{font:inherit;font-size:14px;background:none;border:0;color:var(--blue-dark);padding:10px 0;cursor:pointer}
.animal-dialog-navigation button:disabled{opacity:.4;cursor:default}
.animal-dialog-navigation span{font-size:12px;white-space:nowrap}
.animal-dialog :focus-visible{outline:3px solid var(--blue);outline-offset:3px}
.species-main-image>img,.species-gallery .gallery-grid img{object-fit:contain;object-position:center;background:white}
/* Institutional text and five genuine photographs form one editorial section. */
.home-page .reef-about{display:block;padding:90px clamp(24px,6vw,96px);background:#f1f4f2}
.home-page .reef-about-copy{max-width:1000px;margin:0 auto 42px;padding:0;columns:2;column-gap:64px}
.home-page .reef-about-copy h2,.home-page .reef-about-copy .reef-kicker{column-span:all}
.home-page .reef-about-copy h2{margin-bottom:25px}
.home-page .reef-about-copy>p:not(.reef-kicker){break-inside:avoid;margin:0 0 18px;font-size:16px;line-height:1.75}
.home-page .reef-about-copy .reef-text-link{margin-top:0}
.reef-company-gallery{display:grid;grid-template-columns:1.3fr .7fr 1fr;grid-template-rows:300px 260px 220px;gap:18px;max-width:1320px;margin:auto}
.reef-company-gallery figure{margin:0;min-width:0;overflow:hidden}
.reef-company-gallery figure:first-child{grid-column:1/3}
.reef-company-gallery figure:nth-child(2){grid-column:3;grid-row:1/3}
.reef-company-gallery img{display:block;width:100%;height:100%;object-fit:cover}
.reef-company-gallery figure:nth-child(5){display:block;grid-column:2/4;grid-row:3}
.reef-company-gallery figure:nth-child(4){grid-column:1;grid-row:2/4}
.reef-company-gallery figure:nth-child(3){grid-column:2;grid-row:2}
.reef-protocols{padding:88px clamp(24px,6vw,96px);background:white}
.reef-protocols-heading{max-width:720px}
.reef-protocols h2{font-size:clamp(34px,4vw,54px);line-height:1.1;margin:0 0 20px}
.reef-protocols-heading>p:last-child{font-size:17px;color:var(--muted)}
.reef-protocols-list{display:grid;grid-template-columns:1fr 1fr;gap:60px;margin-top:40px}
.reef-protocols-list article{border-top:1px solid var(--line);padding-top:24px}
.reef-protocols-list h3{font-size:26px;margin:0 0 14px}
.reef-protocols-list p{max-width:510px;font-size:16px;line-height:1.7}
.reef-protocols-list a{font-size:15px;color:var(--blue-dark);text-decoration:underline;text-underline-offset:5px}
.reef-protocols-source{font-size:13px;color:var(--muted);margin:30px 0 0}
@media(max-width:1050px){.animal-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.reef-company-gallery{grid-template-rows:240px 200px 160px}}
@media(max-width:700px){
 .home-page .reef-hero{min-height:700px;min-height:92svh;display:flex;flex-direction:row;align-items:center;padding:132px 24px 100px}
 .home-page .reef-hero-copy{padding:0;max-width:100%;width:100%}
 .home-page .reef-hero h1{font-size:clamp(38px,8vw,52px)}
 .home-page .reef-hero h1 br{display:initial}
 .home-page .reef-hero h1 span{margin:0;display:inline}
 .home-page .reef-hero-copy>p{font-size:16px;margin:24px 0}
 .reef-hero-background video{object-position:60% center}
 .reef-hero-background::after{background:linear-gradient(90deg,rgba(6,43,58,.82),rgba(6,43,58,.42))}
 .home-page .reef-hero-actions{align-items:flex-start;flex-direction:column;gap:18px}
 .animal-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:30px 16px}
 .animal-card-caption h3{font-size:17px}
 .animal-card-caption p{font-size:13px}
 .animal-dialog{width:calc(100% - 20px);max-height:92dvh}
 .animal-dialog-layout{grid-template-columns:1fr;gap:24px;padding:8px 20px 24px}
 .animal-dialog-media>img{max-height:260px}
 .animal-dialog-navigation{padding:12px;gap:6px}
 .animal-dialog-navigation button{font-size:12px}
 .home-page .reef-about{padding:64px 22px}
 .home-page .reef-about-copy{columns:1}
 .reef-company-gallery{grid-template-columns:1fr 1fr;grid-template-rows:auto;gap:12px}
 .reef-company-gallery figure,.reef-company-gallery figure:nth-child(n){grid-column:auto;grid-row:auto;aspect-ratio:3/4}
 .reef-company-gallery figure:first-child,.reef-company-gallery figure:last-child{grid-column:1/-1;aspect-ratio:4/3}
 .reef-company-gallery figure:nth-child(3){aspect-ratio:3/4}
 .reef-company-gallery figure:nth-child(4){grid-column:1/-1;aspect-ratio:4/3}
 .reef-protocols{padding:64px 22px}
 .reef-protocols-list{grid-template-columns:1fr;gap:30px;margin-top:30px}
}
@media(max-width:380px){.animal-grid{grid-template-columns:1fr}.home-page .reef-hero{padding-inline:20px}.home-page .reef-hero h1{font-size:36px}}
@media(prefers-reduced-motion:reduce){.reef-hero-background video{display:none}html{scroll-behavior:auto!important}}
