.home-brand { position: relative; }
.home-header .nav-wrap { padding-block: 10px; }
.home-brand .logo-image { width: 245px; }
#home-verse { position: relative; }
@media (min-width: 901px) {
  .home-header .nav-wrap { display: grid; grid-template-columns: auto minmax(0, 1fr); row-gap: 14px; }
  .home-brand { grid-column: 1; grid-row: 1 / span 2; }
  .home-header .nav-links { grid-column: 2; grid-row: 1 / span 2; flex-wrap: wrap; justify-content: flex-end; row-gap: 12px; }
  .home-header .nav-cta { grid-column: 2; grid-row: 2; justify-self: end; align-self: start; }
}
@media (min-width: 1181px) {
  .home-header .nav-links { grid-row: 1; align-self: end; }
}
@media (max-width: 760px) {
  .home-brand .logo-image { width: 210px; }
}
@media (max-width: 560px) {
  .home-header .nav-wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
  .home-brand { grid-column: 1 / -1; grid-row: 1; flex-direction: column; align-items: flex-start; }
  .home-brand .logo-image { align-self: center; }
  .home-header .nav-toggle { grid-column: 2; grid-row: 1; justify-self: end; z-index: 1; }
}
.brand-home { display: block; }
/* Keep the emblem clickable while giving the verse its own control. */
.brand-home::before { content: ""; position: absolute; inset: 0; }
.site-header .brand-verse {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  min-height: 24px;
  margin-bottom: 3px;
  padding: 1px 7px;
  border: 1px solid #bc945e;
  border-radius: 4px;
  color: #f6ce94;
  font-size: .6875rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: .025em;
  white-space: nowrap;
  cursor: pointer;
  list-style: none;
}
.brand-verse::-webkit-details-marker { display: none; }
.brand-verse::after { content: ""; width: 5px; height: 5px; border: solid currentColor; border-width: 0 1px 1px 0; transform: rotate(45deg); }
#home-verse[open] .brand-verse::after { transform: rotate(225deg); }
.brand-verse:hover, #home-verse[open] .brand-verse { background: #34302a; }
.home-brand :is(summary, a):focus-visible { outline: 2px solid #f6ce94; outline-offset: 2px; }
.verse-card {
  position: absolute;
  z-index: 2;
  top: calc(100% + .5rem);
  left: 0;
  width: min(20rem, calc(100vw - 44px));
  padding: 18px 20px;
  border: 1px solid #967853;
  border-radius: 5px;
  background: var(--ink2);
  color: var(--cream);
  box-shadow: 0 8px 24px #0005;
}
.verse-card blockquote { margin: 0 0 .6rem; font: 1.1rem/1.5 Georgia, serif; }
.verse-card cite { font: 600 .75rem/1.5 var(--font); color: #f6ce94; }
.verse-card cite a { text-decoration: underline; text-underline-offset: 3px; }

/* The original working video is the background of the opening section. */
.hero-video-section { isolation: isolate; }
.hero-video-section::before { display: none; }
.hero-background { position: absolute; inset: 0; z-index: 0; background: #0a1218 url('media/dennyweld-working-poster.jpg') 50% 30% / cover no-repeat; }
.hero-background video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero-shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg,#071218e8 0%,#071218bb 32%,#07121840 66%,#07121880 100%),radial-gradient(ellipse at 57% 43%,transparent 22%,#050d1455 70%,#050d14d9 100%),linear-gradient(0deg,#08131cb3,transparent 35%,transparent 80%,#08131c66); }
.hero-video-section .container.hero-layout { display: block; position: relative; z-index: 2; padding: 94px 0 128px; min-height: 650px; }
.hero-video-section .hero-inner { width: 57%; max-width: 660px; }
.hero-video-section h1 { font-size: clamp(2.9rem,5vw,4.55rem); line-height: 1.04; }
.hero-video-section .hero-desc { color: #e2e8e7; max-width: 530px; }
.hero-video-section .btn.outline { background: #0a161b66; }
.hero-video-section .hero-stats { max-width: 540px; }
.hero-video-controls { position: absolute; z-index: 3; bottom: 25px; right: max(24px,calc((100vw - 1180px)/2)); display: flex; gap: 18px; align-items: center; }
.hero-video-controls > span { font-size: .6rem; font-weight: 850; letter-spacing: .16em; text-shadow: 0 1px 8px #000; }
.hero-video-controls button { color: #fff; border: 1px solid #ffffff80; border-radius: 3px; background: #0b151cba; padding: 11px 14px; font: 700 .7rem/1.4 Arial,sans-serif; cursor: pointer; }
.hero-video-controls button:hover { background: #101e29; }
.hero-video-controls button:focus-visible { outline: 3px solid #f3ad58; outline-offset: 4px; }
.compact-gallery { padding: 64px 0; }
.compact-gallery .section-heading { align-items: center; margin-bottom: 25px; }
.compact-gallery h2 { font-size: clamp(2rem,4vw,3rem); margin: 12px 0 0; }
.gallery-more { font-size: .85rem; font-weight: 800; color: #77501f; text-decoration: underline; text-underline-offset: 5px; }
.photo-grid-compact { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.photo-grid-compact .project-visual { aspect-ratio: 4/3; }
.photo-grid-compact .project-info { padding: 13px; }
.photo-grid-compact .project-info h3 { font-size: .95rem; }
.photo-grid-compact .project-info p,.photo-grid-compact .project-info .eyebrow { display: none; }
.photo-grid-compact .gallery-empty { padding: 28px; margin: 0; border: 1px dashed #a8b8b6; background: #eff2ef; }
.updates-teaser { background: #e4eae6; padding: 42px 0; border-top: 1px solid #cad5cf; }
.updates-teaser .container { display: flex; gap: 30px; align-items: center; justify-content: space-between; }
.updates-teaser h2 { font-size: clamp(1.8rem,3.2vw,2.6rem); margin: 12px 0; }
.updates-teaser p { margin: 0; max-width: 620px; color: #53666b; }
.updates-teaser .btn { flex-shrink: 0; }
.updates-hero { padding: 68px 0 58px; }
.updates-origin { display: flex; gap: 12px; align-items: center; font-size: .8rem; color: #ccdad7; }
.updates-origin .google-g { font-size: 1.65rem; }
.updates-section { padding-top: 45px; }
.updates-toolbar { display: flex; justify-content: space-between; gap: 26px; align-items: end; }
.updates-toolbar .gallery-filter-buttons { flex-wrap: wrap; }
.updates-search { display: grid; gap: 6px; color: #475b61; font-size: .75rem; font-weight: 800; min-width: 245px; }
.updates-search input { padding: 12px 14px; border: 1px solid #b3c2bf; border-radius: 4px; font: inherit; background: #fff; color: #172b31; }
.updates-count { font-size: .8rem; color: #607278; margin: 22px 0; }
.updates-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 25px; align-items: start; }
.update-card { background: #fff; border: 1px solid #d3deda; overflow: hidden; }
.update-card[hidden],#updates-empty[hidden] { display: none; }
.update-photo { display: block; width: 100%; height: 235px; object-fit: contain; background: #17262d; }
.update-content { padding: 23px; }
.update-meta { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: #64787d; font-size: .69rem; margin-bottom: 17px; }
.update-meta > span { color: #946020; font-weight: 850; text-transform: uppercase; letter-spacing: .05em; }
.update-content h2 { font-size: 1.45rem; line-height: 1.18; letter-spacing: -.035em; margin: 0 0 15px; }
.update-excerpt,.update-body { font-size: .88rem; line-height: 1.65; color: #52676c; }
.update-excerpt { margin-bottom: 19px; }
.update-detail { border-top: 1px solid #dce4e1; }
.update-detail summary { display: flex; justify-content: space-between; padding: 14px 0; font-size: .8rem; font-weight: 800; color: #233d45; cursor: pointer; list-style: none; }
.update-detail summary::-webkit-details-marker { display: none; }
.update-detail[open] summary span { transform: rotate(45deg); }
.update-body p { margin: 0 0 14px; overflow-wrap: anywhere; }
.update-source { display: inline-block; font-size: .75rem; font-weight: 800; color: #855419; padding-top: 9px; text-decoration: underline; text-underline-offset: 4px; }
.updates-bottom { margin-top: 36px; border-top: 1px solid #cad5d0; padding-top: 25px; display: flex; gap: 25px; justify-content: space-between; align-items: center; }
.updates-bottom p { font-size: .8rem; color: #5c7076; max-width: 660px; }
.updates-bottom .btn { flex-shrink: 0; }
@media(max-width:1000px) {
  .updates-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .updates-toolbar { align-items: start; flex-direction: column; }
  .updates-search { width: 100%; }
  .hero-video-section .hero-inner { width: 65%; }
  .hero-video-section h1 { font-size: clamp(2.7rem,5.6vw,4.2rem); }
}
@media(max-width:760px) {
  .hero-background video { width: 100%; object-position: 48% 40%; }
  .hero-shade { background: linear-gradient(90deg,#08151dc9,#08151d88 60%,#08151dc0),linear-gradient(0deg,#08151dec 0%,#08151d22 65%,#08151d80); }
  .hero-video-section .container.hero-layout { padding: 66px 0 105px; min-height: 680px; }
  .hero-video-section .hero-inner { width: 100%; max-width: 580px; }
  .hero-video-section h1 { font-size: clamp(2.6rem,10.2vw,4.3rem); }
  .hero-video-section .hero-desc { font-size: .96rem; }
  .hero-video-section .eyebrow { font-size: .58rem; }
  .hero-video-controls { left: 16px; right: 16px; justify-content: space-between; bottom: 22px; gap: 10px; }
  .hero-video-controls > span { font-size: .55rem; }
  .hero-video-controls button { font-size: .65rem; padding: 10px 12px; }
  .compact-gallery { padding: 42px 0; }
  .gallery-more { display: inline-block; margin-top: 18px; }
  .photo-grid-compact { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .updates-teaser .container,.updates-bottom { align-items: start; flex-direction: column; }
  .updates-grid { grid-template-columns: 1fr; }
  .update-photo { height: 260px; }
  .updates-hero h1 { font-size: clamp(2.5rem,9vw,4rem); }
  .updates-origin { font-size: .7rem; }
}
