/* Amphibious Achievement — static site styles.
   Colors, type, and spacing follow the original Squarespace (Bedford) theme. */

:root {
  --ink: #1f1f1f;
  --heading: #1c1c1c;
  --muted: #9c9999;
  --header-bg: #201a16;
  --footer-bg: #272321;
  --prefooter-bg: #f0f0f0;
  --overlay: rgba(32, 26, 22, 0.5);
  --font-body: "Monda", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-ui: "Ubuntu", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--footer-bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.5px;
  line-height: 1.6em;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

a { color: inherit; }

h1, h2, h3 { margin: 1em 0 0.5em; text-rendering: optimizeLegibility; }
h1 { font-family: var(--font-body); font-size: 42px; font-weight: 400; line-height: 1.2em; color: var(--heading); }
h2 { font-family: var(--font-body); font-size: 32px; font-weight: 300; line-height: 1.2em; color: var(--ink); }
h3 { font-family: var(--font-body); font-size: 18px; font-weight: 700; letter-spacing: 4px; line-height: 1.3em; text-transform: uppercase; color: var(--ink); }

.center { text-align: center; }

/* ---------- Header ---------- */

#header {
  position: relative;
  z-index: 1000;
  width: 100%;
  padding: 0 20px;
  line-height: 1em;
  background-color: var(--header-bg);
}
.has-banner #header { position: absolute; top: 0; left: 0; background-color: transparent; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  animation: header-anim 1s ease-in-out;
}

.logo { flex: 0 0 auto; width: 235px; max-width: 60%; margin: 0; font-size: 0; }
.logo a { display: inline-block; }
.logo img { display: block; width: auto; max-width: 100%; height: auto; max-height: 100px; }

.main-nav { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; }

.main-nav > div { position: relative; display: inline-block; }

.main-nav a,
.main-nav .folder-toggle {
  display: block;
  padding: 0.75em 1.15em;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 2px;
  line-height: 1em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  cursor: pointer;
  transition: color 0.1s ease-in-out;
}
.main-nav a:hover,
.main-nav .folder:hover .folder-toggle,
.main-nav .active > a { color: var(--muted); }

.main-nav .subnav {
  position: absolute;
  top: 100%;
  left: 50%;
  min-width: 240px;
  padding: 0.75em 0;
  background-color: var(--header-bg);
  text-align: left;
  transform: translateX(-50%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease-in-out, visibility 0s 0.15s;
}
.main-nav .folder:hover .subnav,
.main-nav .folder:focus-within .subnav { opacity: 1; visibility: visible; transition: opacity 0.15s ease-in-out; }
.main-nav .subnav a { padding: 0.75em 1.5em; }

.main-nav .nav-button a {
  margin-left: 1em;
  padding: 1em 1.5em;
  border: 2px solid #fff;
  background-color: transparent;
  color: #fff;
  transition: background-color 0.1s ease-in-out, color 0.1s ease-in-out;
}
.main-nav .nav-button a:hover { background-color: #fff; color: #181818; }

/* Fixed header that slides in once the page is scrolled */
#fixedHeader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  padding: 0 20px;
  background-color: rgba(32, 26, 22, 0.95);
  transform: translateY(-100%);
  transition: transform 0.3s ease-in-out;
}
#fixedHeader .header-inner { padding: 10px 0; animation: none; }
#fixedHeader .logo img { max-height: 50px; }
body.scrolled #fixedHeader { transform: translateY(0); }

/* ---------- Mobile nav ---------- */

.mobile-nav-toggle {
  display: none;
  position: relative;
  flex: 0 0 auto;
  width: 22px;
  height: 16px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.mobile-nav-toggle span {
  position: absolute;
  right: 0;
  width: 22px;
  height: 2px;
  background-color: #fff;
  transition: transform 0.15s ease-in-out, top 0.15s 0.15s ease-in-out, opacity 0s 0.15s;
}
.mobile-nav-toggle span:nth-child(1) { top: 0; }
.mobile-nav-toggle span:nth-child(2) { top: 7px; }
.mobile-nav-toggle span:nth-child(3) { top: 14px; }
body.nav-open .mobile-nav-toggle span { transition: top 0.15s ease-in-out, transform 0.15s 0.15s ease-in-out, opacity 0s 0.15s; }
body.nav-open .mobile-nav-toggle span:nth-child(1) { top: 7px; transform: rotate(45deg); }
body.nav-open .mobile-nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .mobile-nav-toggle span:nth-child(3) { top: 7px; transform: rotate(-45deg); }

#sidecarNav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1100;
  width: 260px;
  max-width: 85vw;
  padding: 72px 36px;
  overflow-y: auto;
  background-color: var(--header-bg);
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
}
body.nav-open #sidecarNav { transform: translateX(0); }
#sidecarNav a,
#sidecarNav .folder-toggle {
  display: block;
  padding: 0.75em 0;
  font-family: var(--font-ui);
  font-size: 13px;
  letter-spacing: 2px;
  line-height: 1em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  cursor: pointer;
}
#sidecarNav a:hover { color: var(--muted); }
#sidecarNav .folder-toggle::before { content: "+"; display: inline-block; width: 0.75em; padding-right: 0.25em; }
#sidecarNav .folder.open .folder-toggle::before { content: "\2013"; }
#sidecarNav .subnav { display: none; padding: 0 1em 1em; }
#sidecarNav .folder.open .subnav { display: block; }
#sidecarNav .subnav a { padding: 0 0 0.75em; }
#sidecarNav .close-nav {
  position: absolute;
  top: 20px;
  right: 20px;
  border: 0;
  background: none;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.body-overlay {
  position: fixed;
  inset: 0;
  z-index: 1050;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0s 0.3s;
}
body.nav-open .body-overlay { opacity: 1; visibility: visible; transition: opacity 0.3s ease-in-out; }

/* ---------- Banner ---------- */

.banner {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 180px 0 155px;
  background-color: var(--header-bg);
  background-position: center;
  background-size: cover;
}
.banner .color-overlay { position: absolute; inset: 0; z-index: 1; background-color: var(--overlay); }

.desc-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 956px;
  margin: 0 auto;
  padding: 32px;
  text-align: center;
  animation: feature-text-anim 0.75s ease-in-out;
}
.desc-wrapper .banner-title {
  display: block;
  margin: 20px auto;
  font-family: var(--font-body);
  font-size: clamp(38px, 7vw, 79px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.1em;
  color: #fff;
}
.desc-wrapper .banner-sub {
  margin: 20px auto;
  font-size: 28px;
  letter-spacing: 4px;
  line-height: 1.3em;
  text-transform: uppercase;
  color: var(--muted);
}
.desc-wrapper .banner-button {
  display: inline-block;
  margin: 10px 0;
  padding: 1em 1.75em;
  border: 2px solid var(--muted);
  font-family: var(--font-ui);
  font-size: 16px;
  letter-spacing: 2px;
  line-height: 1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: background-color 0.1s ease-in-out, color 0.1s ease-in-out;
}
.desc-wrapper .banner-button:hover { background-color: var(--muted); color: #111; }

@keyframes feature-text-anim { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes header-anim { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Page content ---------- */

main { background-color: #fff; }

.page {
  max-width: 1020px;
  margin: 0 auto;
  padding: 96px 32px;
}

.page p { margin: 0 0 1em; }
.page a:not(.button) { border-bottom: 1px solid rgba(31, 31, 31, 0.3); text-decoration: none; }
.page a:not(.button):hover { border-bottom-color: var(--ink); }
.page a:has(> img) { border-bottom: 0; }

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-justify { text-align: justify; }

/* Squarespace-style 12-column layout: rows of columns holding content blocks */
.row { display: flex; margin: 0 -17px; }
.col { flex: 0 0 auto; width: var(--w, 100%); min-width: 0; padding: 0 17px; }

.block { padding: 17px 0; }
.block > :last-child { margin-bottom: 0; }
.html-block > :first-child { margin-top: 0; }
.spacer { min-height: 34px; }

hr { margin: 0; border: 0; border-top: 1px solid rgba(0, 0, 0, 0.12); }

/* Image blocks */
.image-block { margin: 0 auto; }
.img-frame { position: relative; overflow: hidden; }
.img-frame img { display: block; width: 100%; height: auto; }
.img-frame[style*="aspect-ratio"] img { height: 100%; object-fit: cover; }
.image-block figcaption { padding-top: 14px; font-size: 13px; line-height: 1.6em; }
.image-block figcaption p { margin: 0 0 0.5em; }

/* Caption revealed over the photo on hover (e.g. mentor bios); shown below the photo on touch screens */
.image-block.layout-hover { position: relative; }
@media (hover: hover) {
  .caption-hover {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.92);
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
  }
  .image-block.layout-hover:hover .caption-hover { opacity: 1; }
}

/* Buttons */
.button-wrap.align-left { text-align: left; }
.button-wrap.align-center { text-align: center; }
.button-wrap.align-right { text-align: right; }
.button {
  display: inline-block;
  font-family: var(--font-ui);
  line-height: 1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.1s ease-in-out, color 0.1s ease-in-out, opacity 0.1s ease-in-out;
}
.button-small {
  padding: 13px 26px;
  background-color: #1f1f1f;
  color: #fff;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 3px;
}
.button-small:hover { opacity: 0.8; }
.button-medium,
.button-large {
  border: 2px solid #111;
  color: #111;
  font-weight: 400;
  letter-spacing: 2px;
}
.button-medium { padding: 21px 34px; font-size: 15px; }
.button-large { padding: 25px 46px; font-size: 20px; letter-spacing: 3px; }
.button-medium:hover,
.button-large:hover { background-color: #111; color: #fff; }

.video-embed { position: relative; width: 100%; padding-bottom: 56.206%; background: #000; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Slideshow galleries */
.slideshow { position: relative; }
.slideshow .slides { position: relative; width: 100%; aspect-ratio: 3 / 2; overflow: hidden; background: #eee; }
.slideshow .slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease-in-out; }
.slideshow .slide.active { opacity: 1; z-index: 1; }
.slideshow .slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slideshow .meta {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 2;
  max-width: 60%;
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 14px;
  line-height: 1.4em;
}
.slideshow .control {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 44px;
  height: 60px;
  margin-top: -30px;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.15s;
}
.slideshow .control:hover { opacity: 1; }
.slideshow .control::before {
  content: "";
  display: block;
  width: 16px;
  height: 16px;
  margin: 0 auto;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}
.slideshow .prev { left: 4px; }
.slideshow .prev::before { transform: rotate(45deg); }
.slideshow .next { right: 4px; }
.slideshow .next::before { transform: rotate(-135deg); }
.slideshow .thumbnails { display: flex; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.slideshow .thumbnails button { padding: 0; border: 0; background: none; cursor: pointer; opacity: 0.6; transition: opacity 0.15s; }
.slideshow .thumbnails button.active,
.slideshow .thumbnails button:hover { opacity: 1; }
.slideshow .thumbnails img { display: block; height: 80px; width: auto; }

.gallery-stacked img { display: block; width: 100%; height: auto; }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery-grid img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; cursor: zoom-in; }

.gallery-masonry { display: flex; gap: 10px; align-items: flex-start; }
.masonry-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.masonry-col img { display: block; width: 100%; height: auto; cursor: zoom-in; }

/* Folder pages (Join Us): sidebar of sibling pages next to the content */
.page-folder { display: flex; gap: 56px; align-items: flex-start; }
.folder-nav { flex: 0 0 200px; }
.folder-nav-label { margin: 0 0 0.6em; font-size: 32px; font-weight: 400; line-height: 1.2em; color: var(--heading); }
.folder-nav-links a { display: block; margin-bottom: 0.9em; font-size: 15px; line-height: 1.35em; }
.page .folder-nav-links a { border-bottom: 0; color: var(--muted); }
.page .folder-nav-links a:hover,
.page .folder-nav-links a.active { color: var(--ink); }
.folder-nav-toggle { display: none; }
.page-content { flex: 1 1 auto; min-width: 0; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 16px;
  background: rgba(255, 255, 255, 0.96);
}
.lightbox img { max-height: 100%; max-width: 100%; object-fit: contain; box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15); }
.lightbox button {
  position: absolute;
  border: 0;
  background: none;
  color: #111;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  padding: 12px;
}
.lightbox .lb-close { top: 8px; right: 12px; }
.lightbox .lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 8px; top: 50%; transform: translateY(-50%); }

/* ---------- Pre-footer & footer ---------- */

#preFooter { background-color: var(--prefooter-bg); color: var(--ink); }
.pre-footer-inner { max-width: 1020px; margin: 0 auto; padding: 32px; }

.social-links { display: flex; justify-content: center; gap: 8px; }
.social-links a { display: block; width: 20px; height: 20px; color: #000; transition: opacity 0.15s; }
.social-links a:hover { opacity: 0.6; }
.social-links svg { display: block; width: 100%; height: 100%; fill: currentColor; }

#footer { background-color: var(--footer-bg); color: rgba(255, 255, 255, 0.4); }
.footer-inner { max-width: 1020px; margin: 0 auto; padding: 64px 32px; font-size: 14px; }
.footer-inner a { color: rgba(255, 255, 255, 0.6); text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.3); }
.footer-inner a:hover { color: #fff; border-bottom-color: #fff; }
.footer-inner figure { max-width: 512px; margin: 48px auto 0; }
.footer-inner figure img { display: block; width: 100%; }
.footer-inner figcaption { padding-top: 16px; font-size: 12px; letter-spacing: 1px; }

.back-to-top { display: none; text-align: center; margin-bottom: 24px; }

/* ---------- Responsive ---------- */

@media (max-height: 768px) {
  .banner { padding: 60px 0 20px; }
}

@media (max-width: 1100px) {
  .header-inner > .main-nav { display: none; }
  .mobile-nav-toggle { display: block; }
}

@media (max-width: 767px) {
  .page-folder { display: block; }
  .folder-nav { margin-bottom: 32px; border: 1px solid rgba(0, 0, 0, 0.12); }
  .folder-nav-label { display: none; }
  .folder-nav-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 14px 16px;
    border: 0;
    background: none;
    font-family: var(--font-ui);
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--ink);
    cursor: pointer;
  }
  .folder-nav-toggle::after { content: "+"; font-size: 18px; }
  .folder-nav.open .folder-nav-toggle::after { content: "\2013"; }
  .folder-nav-links { display: none; padding: 0 16px 6px; }
  .folder-nav.open .folder-nav-links { display: block; }
}

@media (max-width: 640px) {
  .logo img { max-height: 50px; }
  .banner { padding: 100px 0 40px; }
  .desc-wrapper { padding: 20px; }
  .desc-wrapper .banner-sub { font-size: 18px; letter-spacing: 3px; margin: 12px auto; }
  .page { padding: 40px 20px; }
  h1 { font-size: 30px; }
  h2 { font-size: 26px; }
  h3 { letter-spacing: 2px; }
  .row { display: block; margin: 0; }
  .col { width: auto; padding: 0; }
  .col-empty { display: none; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gallery-masonry { flex-direction: column; }
  .slideshow .thumbnails img { height: 56px; }
  .pre-footer-inner, .footer-inner { padding: 20px; text-align: center; }
  .footer-inner { padding-block: 40px; }
  .back-to-top { display: block; }
}
