:root {
  --green: #103f13;
  --green-2: #245b29;
  --green-deep: #0c240f;
  --ivory: #f5f4ef;
  --ivory-2: #ebe8e0;
  --sand: #d8cdb7;
  --sand-deep: #c9bba0;
  --ink: #242824;
  --muted: #3e4a3e;
  --white: #ffffff;
  --line: rgba(36, 40, 36, 0.14);
  --header-h: 108px;
  --logo-h: 80px;
  --sans: "Familjen Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

button, input { font: inherit; }

a { color: inherit; }

h1, h2, h3, p { text-wrap: pretty; }

h1, h2, h3 {
  font-weight: 600;
  letter-spacing: -0.032em;
  line-height: 1.02;
  margin: 0;
}

p { margin: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--sand); color: var(--green); }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 80;
  background: var(--white);
  color: var(--green);
  padding: 0.6rem 0.9rem;
}

.skip:focus { top: 1rem; }

.wrap {
  width: min(1380px, calc(100% - 2.5rem));
  margin-inline: auto;
}

section[id] { scroll-margin-top: calc(var(--header-h) + 0.75rem); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0 0 0.9rem;
  color: var(--green-2);
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: currentColor;
  flex: none;
}

.eyebrow-light { color: var(--sand); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.7rem 1.15rem;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-fill { background: var(--green); color: var(--white); }
.btn-fill:hover { background: var(--green-2); }

.btn-light { background: var(--white); color: var(--green); }
.btn-light:hover { background: var(--sand); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}
.btn-ghost:hover { background: var(--white); color: var(--green); }

.btn-sand { background: var(--sand); color: var(--green); }
.btn-sand:hover { background: var(--white); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 650;
  font-size: 0.95rem;
  border-bottom: 1px solid currentColor;
  width: fit-content;
}

.link-arrow::after { content: "→"; }

.index-tag {
  position: absolute;
  z-index: 1;
  top: 0.8rem;
  left: 0.8rem;
  background: var(--ivory);
  color: var(--green);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1;
  padding: 0.38rem 0.46rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(245, 244, 239, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
}

.site-header.is-stuck { border-bottom-color: var(--line); }

.header-bar {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.logo { display: flex; flex: none; line-height: 0; }
.logo img { height: var(--logo-h); width: auto; }

.nav-desktop { margin-left: auto; }
.nav-desktop ul { display: flex; align-items: center; gap: 1.35rem; }
.nav-desktop a {
  position: relative;
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 550;
}
.nav-desktop a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.4rem;
  width: 100%;
  height: 1px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-desktop a:hover::after,
.nav-desktop a[aria-current="true"]::after { transform: scaleX(1); }

.header-bar > .btn { flex: none; margin-left: 0.4rem; }

.burger-btn {
  display: none;
  margin-left: auto;
  width: 48px;
  height: 48px;
  border: 0;
  background: transparent;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.burger {
  position: relative;
  width: 22px;
  height: 12px;
}

.burger::before,
.burger::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--green);
  transition: transform 0.2s ease, top 0.2s ease, bottom 0.2s ease;
}

.burger::before { top: 0; }
.burger::after { bottom: 0; }

.menu-open .burger::before { top: 5px; transform: rotate(40deg); }
.menu-open .burger::after { bottom: 5px; transform: rotate(-40deg); }

.nav-panel {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--ivory);
  padding: calc(var(--header-h) + 1rem) 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
}

.nav-panel[hidden] { display: none; }

.nav-panel a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  text-decoration: none;
  font-size: clamp(2rem, 8vw, 3.15rem);
  letter-spacing: -0.035em;
  font-weight: 560;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--line);
}

.nav-panel nav a span {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--green-2);
  font-weight: 650;
}

.nav-panel .btn { align-self: flex-start; }

.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--white);
  isolation: isolate;
  background: var(--green-deep);
}

.hero-bg,
.hero-shade { position: absolute; inset: 0; }

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 45%;
  z-index: -2;
}

.hero-shade {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(8, 20, 10, 0.18), transparent 16%),
    linear-gradient(90deg, rgba(8, 18, 10, 0.82) 0%, rgba(8, 18, 10, 0.55) 38%, rgba(8, 18, 10, 0.12) 68%),
    linear-gradient(0deg, rgba(8, 18, 10, 0.62), transparent 32%);
}

.hero-content { padding: 3rem 0 1.75rem; }

.hero h1 {
  max-width: 11.5em;
  margin: 0.35rem 0 1.15rem;
  font-size: clamp(2.7rem, 6.4vw, 6.35rem);
  font-weight: 600;
  line-height: 0.94;
  letter-spacing: -0.04em;
}

.hero h1 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 450;
  letter-spacing: -0.03em;
  color: var(--sand);
}

.lead {
  max-width: 36rem;
  font-size: 1.125rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.6rem;
}

.hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  padding: 0.95rem 0 1.15rem;
  font-size: 0.92rem;
}

.hero-meta ul { display: flex; flex-wrap: wrap; }

.hero-meta li {
  padding: 0 0.95rem;
  border-left: 1px solid rgba(255, 255, 255, 0.35);
}

.hero-meta li:first-child { padding-left: 0; border-left: 0; }

.hero-meta p { letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.78rem; font-weight: 650; }

.section { padding: clamp(4.5rem, 8vw, 7.5rem) 0; }

.section-tight { padding-top: 0; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 1.75rem;
}

.section-head h2 {
  font-size: clamp(2.3rem, 4.4vw, 4.15rem);
  max-width: 14ch;
}

.deck {
  max-width: 26rem;
  color: var(--muted);
  padding-bottom: 0.35rem;
}

.intro-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.intro-figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 45%;
}

.intro-figure figcaption {
  margin-top: 0.75rem;
  color: var(--green-2);
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.intro-copy h2 { font-size: clamp(2.4rem, 4vw, 3.8rem); margin-bottom: 1.1rem; }
.intro-copy > p { max-width: 38rem; color: var(--ink); }

.spec { margin-top: 1.75rem; border-top: 1px solid var(--line); }
.spec li {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.spec span { font-weight: 650; color: var(--green); }

.services-grid {
  display: grid;
  grid-template-columns: 1.28fr 1fr 1fr;
  grid-auto-rows: minmax(248px, auto);
  gap: 0.7rem;
}

.card:nth-child(1) { grid-row: span 2; }
.card:not(.card-note) { position: relative; min-height: 248px; }
.card:not(.card-note) > a { position: absolute; inset: 0; color: var(--white); text-decoration: none; overflow: hidden; }
.card-media { position: absolute; inset: 0; background: #172017; }
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.card-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.4rem 1.15rem 1.1rem;
  background: linear-gradient(to top, rgba(8, 16, 9, 0.88) 0%, rgba(8, 16, 9, 0.35) 62%, transparent 100%);
}
.card-body h3 { font-size: 1.35rem; margin-bottom: 0.3rem; }
.card-body p { font-size: 0.95rem; line-height: 1.4; color: rgba(255, 255, 255, 0.88); }

@media (hover: hover) {
  .card:not(.card-note):hover img,
  .folio-item:hover img,
  .material:hover .material-media img { transform: scale(1.045); }
}

.card-note { grid-column: 1 / -1; background: var(--sand); }
.card-note > a {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: end;
  min-height: 240px;
  padding: 2.1rem 2.3rem;
  color: var(--green);
  text-decoration: none;
}
.card-note h3 { font-size: clamp(2rem, 3vw, 3.1rem); max-width: 12ch; }
.card-note p:not(.eyebrow) { margin-bottom: 1.1rem; max-width: 34rem; }
.card-note .eyebrow { color: var(--green); }

.tech {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  background: var(--green);
  color: var(--white);
}

.tech-media { min-height: 640px; background: var(--green-deep); }
.tech-media img { width: 100%; height: 100%; object-fit: cover; min-height: 640px; }

.tech-copy {
  padding: clamp(2.5rem, 5vw, 4.75rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tech .eyebrow { color: var(--sand); }
.tech h2 { font-size: clamp(2.2rem, 3.5vw, 3.55rem); margin-bottom: 1rem; }
.tech-copy > p { color: rgba(255, 255, 255, 0.88); max-width: 38rem; }

.steps { margin-top: 1.75rem; }
.steps li {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 0.85rem;
  padding: 0.85rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}
.steps span { color: var(--sand); font-weight: 650; padding-top: 0.15rem; }
.steps h3 { font-size: 1.15rem; margin-bottom: 0.15rem; }
.steps p { color: rgba(255, 255, 255, 0.8); font-size: 0.98rem; }

.materials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.material-preview {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: zoom-in;
}
.material-preview:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
.material-media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--ivory-2);
}
.material-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.material-body { padding: 0.95rem 0.1rem 0; }
.material h3 { font-size: 1.45rem; margin-bottom: 0.4rem; }
.material p { color: var(--muted); font-size: 0.98rem; margin-bottom: 0.85rem; }
.material .link-arrow {
  color: var(--green);
  text-decoration: none;
}
.material .link-arrow:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.folio-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  grid-auto-rows: 230px;
  gap: 0.7rem;
}

.folio-grid.is-editorial .folio-item[data-feature="tall"] { grid-row: span 2; }
.folio-grid.is-editorial .folio-item[data-feature="wide"] { grid-column: 1 / -1; }

.folio-item {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  overflow: hidden;
  cursor: pointer;
  background: #172017;
  color: var(--white);
  text-align: left;
}
.folio-item[hidden] { display: none !important; }
.folio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.folio-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 2rem 1rem 0.9rem;
  background: linear-gradient(to top, rgba(8, 16, 9, 0.82), transparent);
}
.folio-cap span {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 650;
  color: var(--sand);
}
.folio-cap strong { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.02em; }

.filters { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; justify-content: flex-end; padding-bottom: 0.4rem; }
.filters button {
  background: none;
  border: 0;
  border-bottom: 1px solid transparent;
  padding: 0.25rem 0;
  color: var(--muted);
  cursor: pointer;
}
.filters button[aria-pressed="true"] {
  color: var(--green);
  border-bottom-color: var(--green);
  font-weight: 650;
}

.diffs-section { background: #ebe6da; }
.diffs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 3.5rem;
}
.diffs li {
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  gap: 0.8rem;
  padding: 1.35rem 0;
  border-top: 1px solid rgba(16, 63, 19, 0.2);
}
.diffs span { font-size: 1.15rem; font-weight: 650; color: var(--green); padding-top: 0.15rem; }
.diffs h3 { font-size: 1.3rem; margin-bottom: 0.3rem; }
.diffs p { color: var(--muted); }

.proof-section {
  background: var(--ivory-2);
  border-top: 1px solid var(--line);
}
.proof-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 2.5rem;
  align-items: end;
}
.proof-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}
.btn-ghost-ink {
  background: transparent;
  color: var(--green);
  border: 1px solid rgba(16, 63, 19, 0.28);
}
.btn-ghost-ink:hover { background: var(--white); }

.cta { background: var(--green); color: var(--white); padding: clamp(4.5rem, 8vw, 7.25rem) 0; }
.cta-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 2.5rem;
  align-items: end;
}
.cta h2 { font-size: clamp(2.5rem, 4.8vw, 4.5rem); max-width: 16ch; }
.cta p { color: rgba(255, 255, 255, 0.88); margin-bottom: 1.4rem; }
.cta-address {
  max-width: 32rem;
  font-size: 0.98rem;
  line-height: 1.45;
  margin-bottom: 1.5rem !important;
  color: rgba(255, 255, 255, 0.78) !important;
}
.cta-address a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.cta-address a:hover { color: var(--white); }
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.cta .btn:focus-visible,
.hero .btn:focus-visible,
.wa-float:focus-visible { outline-color: var(--white); }

.site-footer { background: var(--ivory); padding-top: 4.25rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr 0.8fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer-brand img { height: 72px; width: auto; margin-bottom: 1rem; }
.footer-brand p { max-width: 26rem; color: var(--muted); }
.footer-label {
  margin-bottom: 0.8rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
}
.site-footer li + li { margin-top: 0.4rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.contact-list li a { line-height: 1.45; }
.legal { background: var(--green); color: var(--white); }
.legal p { padding: 0.85rem 0; font-size: 0.85rem; }

.wa-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 45;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0 1rem;
  background: var(--green);
  color: var(--white);
  text-decoration: none;
  font-weight: 650;
}
.wa-float:hover { background: var(--green-2); }

.dock { display: none; }

.lightbox {
  border: 0;
  padding: 0;
  width: min(980px, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
  background: var(--ivory);
  color: var(--ink);
}
.lightbox::backdrop { background: rgba(8, 16, 10, 0.84); }
.lightbox figure { margin: 0; }
.lightbox img {
  width: 100%;
  max-height: min(70dvh, 740px);
  object-fit: contain;
  background: #121612;
}
.lightbox figcaption { padding: 1rem 1.2rem 1.25rem; }
.lightbox .count {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--green-2);
  margin-bottom: 0.3rem;
}
.lightbox h3 { font-size: 1.5rem; margin-bottom: 0.35rem; }
.lightbox-text { color: var(--muted); max-width: 46rem; }
.lightbox-close,
.lightbox-nav {
  border: 0;
  background: var(--ivory);
  color: var(--green);
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
}
.lightbox-close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 2;
  padding: 0 0.8rem;
  font-weight: 650;
}
.lightbox-nav {
  position: absolute;
  top: 38%;
  font-size: 1.3rem;
}
.lightbox-nav.prev { left: 0.6rem; }
.lightbox-nav.next { right: 0.6rem; }

@media (max-width: 1120px) {
  :root { --header-h: 84px; --logo-h: 62px; }
  .nav-desktop,
  .header-bar > .btn { display: none; }
  .burger-btn { display: inline-flex; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .card:nth-child(1) { grid-row: auto; min-height: 420px; }
  .card:nth-child(1) > a { position: absolute; }
  .materials-grid { grid-template-columns: 1fr 1fr; }
  .folio-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 240px; }
  .folio-grid.is-editorial .folio-item[data-feature="tall"],
  .folio-grid.is-editorial .folio-item[data-feature="wide"] { grid-column: auto; grid-row: auto; }
  .intro-grid,
  .tech,
  .cta-grid,
  .proof-grid,
  .diffs,
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand,
  .cta h2 { grid-column: 1 / -1; }
  .proof-actions { justify-content: flex-start; }
  .tech-media,
  .tech-media img { min-height: 420px; }
  .card-note > a { grid-template-columns: 1fr; gap: 1rem; }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .hero {
    min-height: calc(100dvh - var(--header-h) - 72px);
  }
  .wa-float { display: none; }
  .dock {
    display: grid;
    grid-template-columns: 1fr 52px;
    gap: 0.5rem;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 55;
    padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom));
    background: rgba(245, 244, 239, 0.96);
    border-top: 1px solid var(--line);
  }
  .dock .btn { width: 100%; }
  .menu-open .dock { display: none; }
  .menu-open { overflow: hidden; padding-bottom: 0; }
}

@media (max-width: 720px) {
  .wrap { width: min(1380px, calc(100% - 1.7rem)); }
  .section-head { flex-direction: column; align-items: flex-start; gap: 0.8rem; }
  .filters { justify-content: flex-start; }
  .hero h1 { font-size: clamp(2.55rem, 12vw, 3.4rem); }
  .hero-actions .btn { width: 100%; }
  .hero-meta { align-items: flex-start; flex-direction: column; }
  .intro-grid,
  .services-grid,
  .materials-grid,
  .folio-grid,
  .diffs,
  .footer-grid,
  .cta-grid,
  .proof-grid,
  .tech { grid-template-columns: 1fr; }
  .footer-brand,
  .cta h2 { grid-column: auto; }
  .materials-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0.75rem;
    padding-bottom: 0.4rem;
  }
  .material { flex: 0 0 82%; scroll-snap-align: start; }
  .folio-grid { grid-auto-rows: 260px; }
  .spec li { grid-template-columns: 1fr; gap: 0.15rem; }
  .tech-media, .tech-media img { min-height: 280px; }
  .card:nth-child(1) { min-height: 360px; }
  .card:not(.card-note) { min-height: 280px; }
  .lightbox-nav { top: auto; bottom: 5.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .card-media img,
  .folio-item img,
  .material-media img { transform: none !important; }
}

/* WordPress compatibility */
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}
.logo img,
.custom-logo {
  height: var(--logo-h);
  width: auto;
  display: block;
}
.nav-desktop .menu,
.nav-desktop ul {
  display: flex;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.entry-content {
  max-width: 42rem;
  color: var(--muted);
}
.entry-content > * + * { margin-top: 1rem; }
.entry-content a { color: var(--green); }
