/* Theme-it visual refresh. Loaded after the original template styles. */
:root {
  --ink: #143b2d;
  --copy: #375549;
  --green: #196142;
  --lime: #d3f59a;
  --line: rgba(25, 75, 48, 0.14);
  --paper: #f1f6ee;
  --surface: rgba(255, 255, 255, 0.56);
  --radius: 28px;
  --shadow: 0 20px 60px rgba(27, 64, 42, 0.08), inset 0 1px 0 #fff;
}
html { scroll-padding-top: 110px; }
body {
  background: radial-gradient(ellipse at 0 16%, #dceccf 0, transparent 40rem),
    radial-gradient(ellipse at 100% 45%, #e2eee6 0, transparent 48rem), var(--paper);
  color: var(--copy);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.8;
  -webkit-text-size-adjust: 100%;
}
input, select, textarea, button {
  font: inherit;
  color: inherit;
}
h1, h2, h3, h4, h5, h6 {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.15;
  text-transform: none;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 5vw, 5rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3.5rem); }
h3 { font-size: clamp(1.25rem, 1.7vw, 1.65rem); letter-spacing: -0.025em; }
strong, b { font-weight: 700; }
p { margin-bottom: 1.3em; text-align: inherit; }
a { color: var(--green); border-bottom-style: solid; border-bottom-color: #9bbba8; }
a:hover { color: #0b472d; }
::selection { color: #153d2a; background: var(--lime); }
.container { width: min(1160px, calc(100% - 64px)); max-width: none; }
.container.medium { width: min(860px, calc(100% - 64px)); }
.eyebrow {
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.6;
  text-transform: uppercase;
}
header.special, header.major {
  margin-bottom: 3rem;
  padding: 0;
}
header.special::before, header.special::after { content: none; }
header.special .icon {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 1.4rem;
  background: #e0edd9;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--green);
}
header.special .icon::before { font-size: 1.4rem; opacity: 1; }
header.special h2 + p { padding-top: 1rem; }
header.special > p { max-width: 720px; margin-inline: auto; }
:is(#main, .main) { background-image: none; padding: 5rem 0; }
body.index #main { padding-top: 5rem; }
/* Buttons: solid green actions, glossy borders, clear keyboard focus. */
.button, input[type="submit"], input[type="button"], button:not(.close):not(.cutout-button) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 52px;
  width: auto;
  max-width: 100%;
  padding: 0.85rem 1.65rem;
  background: linear-gradient(160deg, #28754e, #155439);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 100px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.28), 0 6px 18px rgba(19,78,48,0.14);
  color: #fff;
  font-size: 0.87rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.4;
  text-transform: none;
  cursor: pointer;
  transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
.button.primary, input[type="submit"].special {
  background: linear-gradient(150deg, #286b45, #124e34);
  border-color: #2c6d4a;
  color: #fff !important;
}
.button.small { min-width: 0; padding: 0.75rem 1.35rem; font-size: 0.8rem; }
.button.fit { width: auto; }
.button:hover, .button.primary:hover, input[type="submit"]:hover {
  background: #103e2a !important;
  color: #fff !important;
  border-color: #357653 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 10px 24px rgba(19,78,48,0.2);
}
@media (hover: hover) {
  .button:hover, input[type="submit"]:hover { transform: translateY(-2px); }
}
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible,
[role="button"]:focus-visible { outline: 3px solid #2a7d50; outline-offset: 4px; }
ul.buttons { margin: 0; }
ul.buttons li { padding: 0; margin: 0 0.4rem 0.5rem; }
/* A dark glass navigation surface anchors the light, softly textured pages. */
#header, #header.alt {
  position: fixed;
  display: flex;
  align-items: center;
  gap: 1.3rem;
  width: calc(100% - 40px);
  max-width: 1400px;
  min-height: 76px;
  top: 16px;
  left: 50%;
  margin: 0;
  padding: 0.65rem 1.4rem;
  transform: translateX(-50%);
  background: #163c2f;
  background-image: none;
  border: 1px solid rgba(255,255,255,0.23);
  border-radius: 24px;
  box-shadow: 0 12px 40px rgba(12,41,27,0.18), inset 0 1px 0 rgba(255,255,255,0.14);
  animation: none;
}
#header > a { display: flex; flex: 0 0 auto; border: 0; }
#header .logo {
  display: block;
  position: static;
  width: 65px;
  height: auto;
  max-height: 52px;
  object-fit: contain;
  scale: 1;
  filter: none;
}
#header .brand-tagline { flex: 1; margin: 0; font-size: 0.9rem; font-weight: 500; letter-spacing: -0.02em; }
#header .logo-text { padding: 0; color: #edf5e9; font-weight: 500; }
#header .logo-text strong { color: var(--lime); font-weight: 800; }
#header nav, #header.alt nav { position: static; margin: 0; font-size: 0.76rem; letter-spacing: 0; }
#header nav > ul { display: flex; align-items: center; gap: 0.3rem; margin: 0; }
#header nav ul li { margin: 0; }
#header nav ul li > a, #header.alt nav ul li > a {
  padding: 0.65rem 0.85rem;
  border-radius: 100px;
  color: #f0f6ed;
  font-weight: 600;
  text-transform: none;
}
#header nav ul li.current > a { font-weight: 700; }
#header nav ul li.instagram > a, #header nav ul li.facebook > a, #header nav ul li.youtube > a {
  color: #f1f6ed;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
}
#header nav ul li > a span { color: inherit; font-weight: inherit; }
#header nav ul li:hover > a, #header.alt nav ul li:hover > a,
#header nav ul li.active > a { border: 1px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.14); }
#header a:focus-visible { outline-color: var(--lime); }
/* Existing project artwork stays visible beneath a forest-green hero treatment. */
body.home #banner {
  min-height: 660px;
  padding: 10rem 2rem 5rem;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  background-image: linear-gradient(100deg, rgba(7,30,23,0.38), rgba(7,30,23,0.8)), url("../images/hero-1920.webp");
  background-position: center;
  background-size: cover;
  background-attachment: scroll;
  box-shadow: none;
}
body.home #banner .inner {
  width: min(610px, 53%);
  margin-right: max(0px, calc((100vw - 1280px) / 2));
  padding: clamp(2rem, 4vw, 3.5rem);
  background: #183c2f;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 36px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 24px 70px rgba(0,0,0,0.16);
  text-align: left;
  opacity: 1;
  animation: none;
}
body.home #banner .inner header { display: block; padding: 0; margin: 0 0 1.2rem; border: 0; }
body.home #banner .inner .eyebrow { color: #d3f59a; font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; }
body.home #banner .inner h1 {
  margin: 0;
  padding: 0;
  border: 0;
  color: #fff;
  font-size: clamp(4rem, 6.7vw, 6.5rem);
  font-weight: 800;
  letter-spacing: -0.075em;
  line-height: 1.04;
  text-transform: none;
}
body.home #banner .inner h1 span { color: var(--lime); }
body.home #banner .inner > p { text-align: left; color: #e4eee2; font-size: 1rem; line-height: 1.8; letter-spacing: 0; text-transform: none; }
body.home #banner .inner > p br { display: none; }
body.home #banner .inner footer { margin-top: 1.6rem; }
body.home #banner .buttons.stacked { display: flex; flex-wrap: wrap; gap: 0.65rem; }
body.home #banner .buttons.stacked li { display: block; margin: 0; padding: 0; }
body.home #banner .button { padding: 0.85rem 1.1rem; background: var(--lime); color: var(--ink); border-color: rgba(255,255,255,0.5); font-size: 0.82rem; }
body.home #banner .buttons li + li .button { background: rgba(255,255,255,0.08); color: #fff; }
body.home .cutout-button { border-radius: 100px; border: 1px solid #b9dbba; min-width: 100px; height: 38px; top: 7rem; left: 2rem; font-size: 0.65rem; font-weight: 700; background: #214c36; }
body.home .cutout-container { top: 15rem; left: clamp(1rem, 8vw, 10rem); transform: scale(0.62); transform-origin: top left; }
body:not(.home) #banner { height: 180px !important; padding: 0; box-shadow: none; background-attachment: scroll; background-position: center 44%; border-radius: 0 0 48px 48px; }
body.home #main > header.special > h2 { max-width: 920px; margin: 0 auto 1rem; }
body.home #main > header.special > h2 + h2 { font-size: clamp(1.3rem, 2.1vw, 1.8rem); font-weight: 500; color: var(--copy); }
body.home #main > header.special > p { max-width: 720px; }
.wrapper { margin-bottom: 3rem; padding: 2.5rem; }
.wrapper.style2, .wrapper.style3, .wrapper.style4 {
  border: 1px solid #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--surface);
  background-image: none;
  color: var(--copy);
}
#stuff { padding: 1.25rem; }
#stuff footer { padding: 1.75rem 1rem 0.5rem; text-align: center; }
#stuff .iframe-p { max-width: 680px; margin: 0 auto 1.5rem; }
iframe.youtube, iframe.youtube.card {
  display: block;
  width: 100% !important;
  max-width: 100%;
  height: auto !important;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  background: #19392b;
  border: 0;
}
.project-collection { padding: 2.5rem; }
.project-collection .row > div > section { text-align: left; margin-bottom: 1.5rem; }
.project-collection img.myImages { aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; }
.project-collection h3 { margin: 1.3rem 0 0.8rem; }
.project-collection p { font-size: 0.95rem; }
/* Gallery cards give projects their own space instead of heavy image borders. */
body.pictures #main > .grid {
  width: min(1320px, calc(100% - 64px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  align-items: stretch;
}
body.pictures .grid-item {
  min-width: 0;
  padding: 0.85rem;
  border: 1px solid #fff;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
body.pictures .grid-item img.grid-icon {
  display: block;
  width: 100%;
  height: 280px;
  max-height: none;
  object-fit: contain;
  border: 0;
  border-radius: 18px;
  box-shadow: none;
  background: #e6ede2;
}
body.pictures .grid-item h2 { margin: 1.15rem 0.5rem 0.6rem; border: 0; font-size: 1rem; line-height: 1.45; text-align: left; letter-spacing: -0.02em; }
body.pictures #main h1 { margin-bottom: 1rem; }
/* About: an actual two-column story, followed by equal-height people cards. */
body.about .about-intro { margin-bottom: 3rem; }
body.about .about-intro .eyebrow { margin-bottom: 1rem; }
body.about .founder-card {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid #fff;
  border-radius: 36px;
  box-shadow: var(--shadow);
}
.founder-photo { align-self: stretch; min-width: 0; }
.founder-photo .founder-portrait {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 480px;
  max-height: 660px;
  object-fit: cover;
  object-position: center;
  border-radius: 24px;
}
.founder-story { padding: 2rem 2.5rem 2rem 0; }
.founder-story h2 { margin: 0 0 1.5rem; font-size: clamp(1.8rem, 2.8vw, 2.6rem); }
.founder-story p { font-size: 0.97rem; }
.founder-story > p:last-child { margin: 1.8rem 0 0; color: var(--green); }
.team-section { margin-top: 5rem; }
.team-heading { margin-bottom: 2rem; }
.team-heading h2 { margin-bottom: 0; }
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
body.about .team-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 1.25rem;
  border: 1px solid #fff;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: left;
}
body.about .team-card .profile {
  display: block;
  width: 100%;
  height: 260px;
  margin: 0 0 1.5rem;
  object-fit: cover;
  object-position: center 30%;
  border: 0;
  border-radius: 18px;
  box-shadow: none;
}
body.about .team-card h3 { margin: 0 0 0.75rem; font-weight: 800; font-size: 1.3rem; }
body.about .team-card p { margin-bottom: 1.5rem; font-size: 0.92rem; }
.team-card footer { margin-top: auto; }
.team-card ul.buttons li { margin: 0; }
/* FAQ and contact: quiet solid surfaces keep long copy and inputs readable. */
body.contact #faq { padding-bottom: 0; }
body.contact #faq > header { margin-bottom: 0; }
body.contact #faq h2 + h2 { margin-top: 0.65rem; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--copy); }
body.contact #faq .wrapper { padding: 1.5rem 0 0; margin-bottom: 0; background: transparent; border: 0; box-shadow: none; }
body.contact .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem !important; margin: 2rem 0 0; }
body.contact .grid-item.faq { padding: 1.6rem; border: 1px solid #fff; border-radius: 22px; background: var(--surface); text-align: left; }
body.contact .grid-item.faq h3 { text-align: left; margin: 0 0 0.8rem; border: 0; box-shadow: none; font-size: 1.1rem; font-weight: 800; line-height: 1.4; }
body.contact .grid-item.faq p { font-size: 0.92rem; margin: 0; }
body.contact #main { padding-top: 4rem; }
body.contact #main > header { margin-bottom: 2rem !important; }
body.contact .wrapper.style4 { padding: clamp(1.3rem, 4vw, 3rem); }
#feedback label { text-align: left; display: block; margin-bottom: 0.5rem; color: var(--ink); font-size: 0.8rem; font-weight: 700; }
#feedback input:not([type="hidden"]):not([type="submit"]), #feedback textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  background: #f4f8f1;
  border: 1px solid #c8d7c6;
  border-radius: 14px;
  box-shadow: inset 0 2px 3px rgba(26,65,36,0.025);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.6;
}
#feedback input:focus, #feedback textarea:focus { background: #fff; border-color: #36794f; }
#feedback textarea { resize: vertical; min-height: 190px; }
#feedback ::placeholder { color: #617968; opacity: 1; top: 0; }
#feedback .buttons { margin-top: 0.5rem; }
#feedback [type="submit"] { min-width: 180px; }
.form-status { border-radius: 16px; font-size: 0.9rem; }
.contact-email { color: var(--copy); font-size: 0.85rem; }
#footer { padding: 3rem 1.5rem; border-top: 1px solid var(--line); background: #e6eee2; color: #526956; }
#footer .top-scroll { display: inline-flex; padding: 0.55rem 1.1rem; background: #fff; color: var(--ink); border: 1px solid #cbdcc4; border-radius: 100px; box-shadow: none; font-size: 0.75rem; font-weight: 700; }
#footer ul.icons { margin: 1.5rem 0; }
#footer .icon.circle { box-shadow: none !important; border: 1px solid var(--line); }
#footer .copyright { font-size: 0.73rem; line-height: 1.7; }
/* Glass stays limited to navigation and the hero; content needs little blur. */
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  #header, #header.alt { background: rgba(17, 48, 36, 0.72); -webkit-backdrop-filter: blur(20px) saturate(140%); backdrop-filter: blur(20px) saturate(140%); }
  body.home #banner .inner { background: rgba(22, 57, 43, 0.5); -webkit-backdrop-filter: blur(18px) saturate(125%); backdrop-filter: blur(18px) saturate(125%); }
}
.modal { background: rgba(7, 24, 17, 0.96); }
.modal .modal-content { border-radius: 18px; box-shadow: 0 24px 80px rgba(0,0,0,0.4); }
.modal #caption { height: auto; max-width: 700px; padding: 1.5rem 0 2rem; font-size: 0.95rem; line-height: 1.6; color: #eef5e9; }
.modal .close.x { border-radius: 50%; background: #224a34; box-shadow: inset 0 1px 0 rgba(255,255,255,0.2); }
@media (min-width: 1500px) { body.pictures #main > .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1100px) {
  #header nav li.instagram, #header nav li.facebook, #header nav li.youtube { display: none; }
  .team-card .button.small { min-width: 0; }
  body.about .team-card .profile { height: 230px; }
  body.home #banner .inner { width: 58%; }
  body.home .cutout-container { left: 0; }
}
@media (max-width: 980px) {
  body.pictures #main > .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.home .cutout-container, body.home .cutout-button { display: none; }
  body.home #banner { justify-content: center; }
  body.home #banner .inner { width: min(610px, 100%); margin: 0; }
  body.about .founder-card { gap: 2rem; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
  .founder-story { padding: 1rem 1rem 1rem 0; }
  .founder-photo .founder-portrait { min-height: 540px; }
  .team-grid { gap: 1rem; }
}
@media (max-width: 840px) {
  #header, #header.alt { display: none; }
  #navButton { height: 80px; pointer-events: none; }
  #navButton .mobile-home { pointer-events: auto; position: absolute; display: inline-flex; align-items: center; justify-content: center; top: 16px; left: 82px; min-height: 44px; padding: 0.4rem 1rem; border: 1px solid #fff; border-radius: 100px; background: #eff6eb; color: var(--ink); font-size: 0.95rem; font-weight: 800; letter-spacing: -0.05em; }
  #navButton .toggle { pointer-events: auto; width: 72px; height: 76px; }
  #navButton .toggle::before { width: 48px; height: 48px; top: 14px; left: 16px; line-height: 48px; opacity: 1; color: var(--ink); }
  #navButton .toggle::after { width: 48px; height: 48px; top: 14px; left: 16px; border: 1px solid #fff; border-radius: 17px; background: rgba(240,248,235,0.96); box-shadow: 0 6px 25px rgba(20,58,35,0.12); }
  #navButton .toggle:focus-visible { outline-color: #27643f; }
  #navPanel { padding: 1rem 0.5rem; background: #173c2c; border-right: 1px solid #44654d; }
  #navPanel .link:nth-child(n) { height: auto; padding: 0.85rem 1rem; margin: 0.25rem 0; line-height: 1.4; text-indent: 0; border: 0; border-radius: 12px; background: transparent; color: #eff7eb; font-size: 0.9rem; font-weight: 600; text-transform: none; }
  #navPanel .link:hover, #navPanel .link:focus-visible { background: #325d3d; }
  #navPanel .link:focus-visible { outline-color: var(--lime); outline-offset: -3px; }
  body.home #banner { min-height: 580px; padding: 7rem 1.5rem 3rem; justify-content: center; }
  body.home #banner .inner { width: min(610px, 100%); margin: 0; padding: 2.5rem; }
  body.home .cutout-container, body.home .cutout-button { display: none; }
  body:not(.home) #banner { height: 135px !important; border-radius: 0 0 32px 32px; }
  .container, .container.medium { width: calc(100% - 40px); }
  :is(#main, .main), body.index #main { padding: 3rem 0; }
  .wrapper { padding: 1.5rem; }
  body.about .founder-card { grid-template-columns: 1fr; gap: 0; padding: 1rem; }
  .founder-photo .founder-portrait { height: 430px; min-height: 0; max-height: none; object-position: center 35%; }
  .founder-story { padding: 2rem 1rem 1rem; }
  .team-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  body.about .team-card { padding: 1.5rem; }
  body.about .team-card .profile { height: 320px; object-position: center 30%; }
  .team-section { margin-top: 3rem; }
  .video-collection { padding: 0; }
  .video-collection .row > div { margin-bottom: 1.25rem; }
  body.pictures #main > .grid { width: calc(100% - 40px); }
}
@media (max-width: 600px) {
  body { font-size: 15px; }
  h1 { font-size: 2.7rem; }
  h2 { font-size: 2rem; }
  .container, .container.medium { width: calc(100% - 32px); }
  body.home #banner { min-height: 600px; padding: 7rem 1rem 3rem; }
  body.home #banner .inner { padding: 2rem 1.4rem; border-radius: 28px; }
  body.home #banner .inner h1 { font-size: clamp(3.4rem, 15vw, 5rem); }
  body.home #banner .buttons.stacked { flex-direction: column; }
  body.home #banner .buttons li, body.home #banner .button { width: 100%; }
  body.home #banner .inner footer { margin-top: 1.3rem; }
  header.special { margin-bottom: 2rem; }
  .wrapper { padding: 1.25rem; border-radius: 24px; }
  .project-collection .row > div > section { margin-bottom: 2rem; }
  #stuff { padding: 0.75rem; }
  #stuff footer { padding-inline: 0.5rem; }
  body.pictures #main > .grid { width: calc(100% - 32px); grid-template-columns: 1fr; }
  body.pictures .grid-item img.grid-icon { height: 300px; }
  .founder-photo .founder-portrait { height: 350px; }
  .founder-story { padding: 1.75rem 0.5rem 0.5rem; }
  .founder-story h2 { font-size: 1.9rem; }
  body.about .team-card .profile { height: 290px; }
  body.contact .grid { grid-template-columns: 1fr; }
  body.contact .grid-item.faq { padding: 1.25rem; }
  #footer .copyright li { display: block; margin: 0.5rem 0; padding: 0; border: 0; }
  .modal .close.tip, .modal .close.swipe-tip { max-width: 150px; text-align: right; line-height: 1.4; }
}
@media (prefers-reduced-transparency: reduce) {
  #header, #header.alt, body.home #banner .inner { background: #173c2c; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  .button:hover, input[type="submit"]:hover { transform: none; }
}

#header nav ul li:is(.instagram, .facebook, .youtube) > a span { color: inherit; font-weight: inherit; }

.team-card header, .team-card ul.buttons { text-align: left; }

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .founder-card, body.contact .wrapper.style4 { -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
}
@media (prefers-reduced-transparency: reduce) {
  :root { --surface: #f8fbf5; }
  .founder-card, body.contact .wrapper.style4 { -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* Compact featured upload, with the next three uploads in lightweight cards. */
#stuff.featured-video {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: center;
  padding: 1.25rem;
}
.featured-video-copy { min-width: 0; padding: 0.5rem 1rem 0.5rem 0; }
.featured-video-copy .eyebrow { margin-bottom: 0.75rem; }
.featured-video-copy h2 { font-size: clamp(1.4rem, 2.5vw, 2rem); margin: 0 0 0.75rem; }
.video-date { display: block; margin-bottom: 0.9rem; font-size: 0.75rem; font-weight: 600; color: #536c5d; }
.video-date[hidden], [data-channel-video][hidden] { display: none !important; }
.video-description { font-size: 0.9rem; overflow-wrap: anywhere; }
.featured-video-copy .video-description, .video-card .video-description {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.video-media {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 200px;
  width: 100%;
  max-width: 640px;
  border-radius: 20px;
  background: #173c2c;
  overflow: hidden;
  justify-self: center;
}
.video-preview { position: absolute; inset: 0; display: block; border: 0; color: white; border-radius: inherit; }
.video-preview img { display: block; width: 100%; height: 100%; object-fit: cover; }
.video-preview::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 50%, rgba(0,0,0,0.22)); }
.video-play {
  position: absolute;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  display: grid; place-items: center;
  width: 62px; height: 62px;
  border-radius: 50%; border: 1px solid rgba(255,255,255,0.8);
  background: rgba(15,48,33,0.78);
  box-shadow: 0 6px 30px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.4);
  z-index: 1;
}
.video-play::after { content: ''; display: block; margin-left: 4px; border-top: 10px solid transparent; border-bottom: 10px solid transparent; border-left: 16px solid #fff; }
.video-preview:hover .video-play { background: #196142; }
.video-preview:focus-visible { outline: 4px solid #d3f59a; outline-offset: -6px; }
.video-media > iframe.youtube { position: absolute; inset: 0; width: 100% !important; height: 100% !important; min-height: 200px; aspect-ratio: auto; border-radius: inherit; }
.video-collection { padding: 0; margin-bottom: 3rem; }
.video-collection > header { margin: 0 0 1.75rem; text-align: left; }
.video-collection > header h2 { margin-bottom: 1rem; }
#video-feed-status { margin: 0; font-size: 0.85rem; min-height: 1.8em; }
.recent-video-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.4rem; }
.video-card { display: flex; flex-direction: column; min-width: 0; padding: 1rem; background: var(--surface); border: 1px solid rgba(255,255,255,0.8); border-radius: 28px; box-shadow: var(--shadow); }
.video-card .video-media { min-height: 200px; border-radius: 18px; }
.video-card-copy { display: flex; flex: 1; flex-direction: column; padding: 1.25rem 0.3rem 0.3rem; }
.video-card-copy h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.video-text-link { width: fit-content; margin-top: auto; font-size: 0.85rem; font-weight: 700; }
@media (max-width: 980px) { .recent-video-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 840px) {
  #stuff.featured-video { grid-template-columns: 1fr; }
  .featured-video-copy { padding: 0.5rem; }
}
@media (max-width: 600px) {
  #stuff.featured-video { padding: 0.75rem; }
  .recent-video-grid { grid-template-columns: 1fr; }
  .video-card .video-media { max-width: none; }
}

/* Clear page routes and accessible content entry. */
.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 10010; padding: 0.8rem 1.2rem; border-radius: 12px; background: #fff; color: #143b2d; font-weight: 700; }
.skip-link:focus { top: 1rem; }
#header nav a[aria-current="page"] { background: rgba(211,245,154,0.18); box-shadow: inset 0 -2px 0 #d3f59a; }
#navPanel a[aria-current="page"] { background: #325d3d; box-shadow: inset 3px 0 #d3f59a; }
#main:focus, #contact-content:focus { outline: none; }
.about-intro h1, body.contact #main h1 { font-size: clamp(2rem, 3.6vw, 3.5rem); }
.home-summary { font-size: clamp(1.2rem, 2vw, 1.6rem); line-height: 1.5; }
.footer-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 1.5rem 0; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
body.contact #faq { padding: 0 0 4rem; }
body.contact #faq > header { margin-bottom: 2rem; }
body.contact #faq .wrapper { margin-top: 1.5rem; }
body.contact .grid-item.faq h3 { font-size: 1.2rem; }
.form-guidance { font-size: 0.9rem; text-align: left; }
.optional { font-weight: 400; }
/* Controls stay visible, including on phones, without covering the photograph. */
.gallery-controls { display: flex; justify-content: center; gap: 1rem; padding: 0 1rem 2rem; }
.modal .gallery-controls button { min-width: 120px; min-height: 44px; padding: 0.65rem 1rem; background: #234c36; color: #fff; border: 1px solid #a1bba5; border-radius: 100px; }
.modal .gallery-controls button:disabled { opacity: 0.4; cursor: default; transform: none; }
.modal .gallery-controls button:focus-visible { outline-color: #d3f59a; }
.modal #caption { padding: 1rem 1rem 1.25rem; }
.modal .modal-content { max-height: 58vh; }
@media (max-width: 600px) { .modal .close.tip, .modal .close.swipe-tip { display: none; } }

.about-intro h1, body.contact #main h1 { margin: 0 0 1.25rem; }
#header .brand-tagline a { border-bottom: 0; }
body.contact #main { padding-top: 3rem; }

/* Bounded photo areas prevent intrinsic portrait heights from stretching cards. */
.project-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.project-grid > section { min-width: 0; text-align: left; }
.project-collection .project-grid img.myImages { display: block; width: 100%; height: 220px; max-height: 35svh; aspect-ratio: auto; object-fit: contain; background: #e6ede2; border-radius: 16px; }
.project-grid h3 { font-size: 1.05rem; line-height: 1.4; margin: 1rem 0 0.65rem; }
.project-grid p { font-size: 0.85rem; line-height: 1.65; }
.showcase-contact { max-width: 780px; padding: 0 0 3rem; text-align: center; }
.showcase-contact h2 { font-size: clamp(1.4rem, 2.5vw, 2rem); margin-bottom: 1rem; }
.showcase-contact > p { font-size: 1rem; }
.showcase-contact .contact-email { font-size: 0.9rem; overflow-wrap: anywhere; }
@media (max-width: 1100px) { .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .project-grid { grid-template-columns: 1fr; gap: 1.75rem; } }

/* Quiet interaction details: short transitions, no scroll handlers or loops. */
:root { --ease-out: cubic-bezier(0.22, 1, 0.36, 1); }
#header nav > ul > li > a, .footer-nav a, .video-text-link {
  transition: color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}
.video-card, body.pictures .grid-item, body.about .team-card {
  transition: border-color 220ms ease, box-shadow 220ms ease;
}
body.contact input:not([type="hidden"]):not([type="submit"]), body.contact textarea {
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
body.contact #feedback input:not([type="hidden"]):not([type="submit"]):focus, body.contact #feedback textarea:focus {
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(42,125,80,0.1);
}
.video-text-link:focus-visible, .footer-nav a:focus-visible { color: #103e2a; }
@media (prefers-reduced-motion: no-preference) {
  @keyframes themeit-arrive {
    from { opacity: 0.85; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
  body.home #banner .inner { animation: themeit-arrive 480ms var(--ease-out) both; }
  .about-intro, body.pictures #main > header.special, body.contact #main > header.special {
    animation: themeit-arrive 420ms var(--ease-out) both;
  }
  .button { position: relative; overflow: hidden; }
  .button::after {
    content: ''; position: absolute; inset: 0 auto 0 -45%; width: 40%;
    background: linear-gradient(110deg, transparent, rgba(255,255,255,0.18), transparent);
    transform: translateX(0); pointer-events: none;
  }
  .button:focus-visible::after { transform: translateX(480%); transition: transform 600ms var(--ease-out); }
  @media (hover: hover) and (pointer: fine) {
    .video-card, body.pictures .grid-item, body.about .team-card {
      transition: transform 260ms var(--ease-out), border-color 220ms ease, box-shadow 220ms ease;
    }
    .video-card:not(:has(iframe)):hover, body.pictures .grid-item:hover, body.about .team-card:hover {
      transform: translateY(-3px);
      border-color: rgba(73,127,84,0.3);
      box-shadow: 0 16px 36px rgba(27,64,42,0.12), inset 0 1px 0 #fff;
    }
    .project-grid img.myImages, .video-preview img { transition: transform 400ms var(--ease-out); }
    .project-grid img.myImages:hover { transform: translateY(-2px); }
    .video-preview:hover img { transform: scale(1.035); }
    .video-play { transition: transform 260ms var(--ease-out), background-color 180ms ease; }
    .video-preview:hover .video-play { transform: translate(-50%, -50%) scale(1.06); }
    .button:hover::after { transform: translateX(480%); transition: transform 600ms var(--ease-out); }
    .button:active, input[type="submit"]:active { transform: translateY(0); }
    .video-text-link:hover, .footer-nav a:hover { color: #103e2a; box-shadow: 0 2px 0 #196142; }
  }
}
@media (prefers-reduced-motion: reduce) {
  body.home #banner .inner, .about-intro, body.pictures #main > header.special, body.contact #main > header.special { animation: none; }
  .button::after { content: none; }
  .button, input[type="submit"], .video-card, body.pictures .grid-item, body.about .team-card,
  .project-grid img.myImages, .video-preview img, .video-play { transition: none; }
}

/* A quiet, branded destination for confirmed contact submissions. */
#main.thank-you-main { max-width: 820px; padding: 3rem 0 4rem; }
.thank-you-card { margin: 0; padding: clamp(1.5rem, 5vw, 4rem); text-align: center; }
.thank-you-mark { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 1.5rem; border-radius: 24px; border: 1px solid #c3d9b7; background: #d3f59a; color: #196142; font-size: 1.8rem; box-shadow: inset 0 1px 0 #fff; }
.thank-you-card .eyebrow { font-size: 0.65rem; }
.thank-you-card h1 { margin: 0 0 1.5rem; font-size: clamp(2rem, 5vw, 3.8rem); }
.thank-you-card > p:not(.eyebrow) { max-width: 560px; margin-inline: auto; }
.thank-you-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.6rem; padding-top: 1rem; }
.thank-you-actions li { margin: 0 !important; }
.thank-you-actions .thank-you-secondary { background: #edf5e8; color: #143b2d; border-color: #c4d6bf; }
.thank-you-card .thank-you-note { margin: 1.75rem 0 0; font-size: 0.85rem; }
@media (max-width: 600px) { .thank-you-actions { flex-direction: column; } .thank-you-actions .button { width: 100%; } }

/* Smaller source artwork on phones; keep the same overlay and crop. */
@media (max-width: 840px) {
  body.home #banner { background-image: linear-gradient(100deg, rgba(7,30,23,0.38), rgba(7,30,23,0.8)), url("../images/hero-960.webp"); }
}
#footer .fa-instagram { color: #8a4d00; }
#footer .fa-instagram:hover { color: #603500; }
.photo-link { position: relative; display: block; border: 0; border-radius: 18px; cursor: zoom-in; }
.photo-link:focus-visible { outline: 3px solid #2a7d50; outline-offset: 4px; }
.photo-hint { position: absolute; bottom: 0.65rem; right: 0.65rem; padding: 0.25rem 0.65rem; border-radius: 100px; background: #173c2c; color: #fff; font-size: 0.7rem; font-weight: 700; line-height: 1.7; pointer-events: none; }
.gallery-guidance { font-size: 0.85rem; }
body.pictures .project-description { margin: 0.5rem; font-size: 0.85rem; line-height: 1.6; text-align: left; }
.project-video-link { display: inline-flex; align-items: center; min-height: 44px; margin: 0.25rem 0.5rem; font-size: 0.85rem; font-weight: 700; }
.privacy-note { margin: 0 0 1.5rem; text-align: left; font-size: 0.85rem; }
.privacy-note summary { width: fit-content; padding: 0.5rem 0; color: var(--green); font-weight: 700; cursor: pointer; }
.privacy-note summary:focus-visible { outline: 3px solid #2a7d50; outline-offset: 4px; border-radius: 4px; }
.privacy-note p { margin: 0.65rem 0 0; }
.video-sync-note { font-size: 0.75rem; color: var(--copy); }
.video-channel-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 0.85rem; font-weight: 700; }

@media (max-width: 840px) {
  body.navPanel-visible { overflow-y: hidden; }
  #navPanel .nav-close { display: flex; min-height: 44px; margin: 0 0 0.75rem auto; padding: 0.55rem 1rem; border: 1px solid #83a68a; background: #234c36; color: #fff; }
  #navPanel .nav-close:focus-visible { outline-color: #d3f59a; }
}
