/* ==========================================================================
   BuildBlock Template Library — gallery
   ========================================================================== */

:root {
  --g-bg: #f3f0e8;
  --g-paper: #fbf9f3;
  --g-ink: #0f0f13;
  --g-muted: #69676c;
  --g-line: #dcd7ca;
  --g-dark: #09090d;
  --g-dark-soft: #111117;
  --g-blue: #2f5bff;
  --g-blue-light: #6f8cff;
  --g-lime: #c9ff4a;
  --g-white: #ffffff;
  --g-display: "Instrument Serif", Georgia, serif;
  --g-body: "Manrope", system-ui, -apple-system, sans-serif;
  --g-wrap: 1340px;
  --g-gutter: clamp(20px, 4.2vw, 52px);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--g-bg);
  color: var(--g-ink);
  font-family: var(--g-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; }
p { margin: 0; }

::selection { background: var(--g-lime); color: #0a0a0a; }
:focus-visible { outline: 2px solid var(--g-blue); outline-offset: 4px; }

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

.skip {
  position: fixed;
  z-index: 200;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 4px;
  background: var(--g-lime);
  color: #0a0a0a;
  font-size: .8rem;
  font-weight: 800;
  transform: translateY(-180%);
  transition: transform .2s ease;
}
.skip:focus { transform: translateY(0); }

.g-wrap {
  width: min(var(--g-wrap), calc(100% - var(--g-gutter) * 2));
  margin-inline: auto;
}

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

.g-head {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  background: rgba(9, 9, 13, .9);
  color: #fff;
  backdrop-filter: blur(16px);
}
.g-head__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: 78px;
}
.g-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -.035em;
  white-space: nowrap;
}
.g-brand__mark {
  display: grid;
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 3px;
  border-radius: 0;
  background: transparent;
}
.g-brand__mark i { display: block; background: #fff; }
.g-brand__mark i:nth-child(2) { background: var(--g-blue-light); }
.g-brand__mark i:nth-child(4) { background: var(--g-lime); }
.g-brand__dot { color: var(--g-lime); }
.g-nav { display: flex; align-items: center; gap: 30px; }
.g-nav a {
  position: relative;
  color: rgba(255, 255, 255, .62);
  font-size: .77rem;
  font-weight: 600;
  letter-spacing: .015em;
  transition: color .2s ease;
}
.g-nav a:hover, .g-nav a.is-active { color: #fff; }
.g-nav a.is-active::after {
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--g-lime);
  content: "";
}
.g-head__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.g-head__cta:hover { background: var(--g-lime); color: #0a0a0a; border-color: var(--g-lime); }

/* ---------- Hero ---------- */

.g-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(74px, 9vw, 132px) 0 0;
  background:
    radial-gradient(circle at 76% 25%, rgba(47, 91, 255, .27), transparent 31%),
    radial-gradient(circle at 15% 100%, rgba(201, 255, 74, .08), transparent 28%),
    var(--g-dark);
  color: #fff;
}
.g-hero::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 95%);
  content: "";
  pointer-events: none;
}
.g-hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  align-items: center;
  gap: clamp(35px, 6vw, 80px);
  padding-bottom: clamp(70px, 8vw, 105px);
}
.g-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, .62);
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.g-kicker span {
  width: 23px;
  height: 2px;
  background: var(--g-lime);
}
.g-kicker--dark { color: var(--g-muted); }
.g-kicker--dark span { background: var(--g-blue); }

.g-hero h1 {
  max-width: 16ch;
  font-family: var(--g-display);
  font-size: clamp(3.4rem, 5.8vw, 6.8rem);
  font-weight: 400;
  letter-spacing: -.04em;
  line-height: .88;
}
.g-hero h1 em {
  color: var(--g-lime);
  font-style: italic;
}
.g-hero__lede {
  max-width: 53ch;
  margin-top: 27px;
  color: rgba(255, 255, 255, .61);
  font-size: clamp(.94rem, 1.2vw, 1.06rem);
  line-height: 1.75;
}
.g-hero__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 13px; margin-top: 31px; }
.g-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 47px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.2;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.g-btn:hover { transform: translateY(-2px); }
.g-btn--light { background: var(--g-lime); color: #0a0a0a; }
.g-btn--light:hover { background: #fff; }
.g-btn--ghost { border-color: rgba(255, 255, 255, .25); color: #fff; }
.g-btn--ghost:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .45); }
.g-hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 49px;
  padding-top: 23px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.g-hero__stats strong {
  display: block;
  color: #fff;
  font-family: var(--g-display);
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  font-weight: 400;
  line-height: 1;
}
.g-hero__stats span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, .44);
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .07em;
  line-height: 1.4;
  text-transform: uppercase;
}

.g-hero__visual {
  position: relative;
  min-height: 560px;
}
.hero-shot {
  position: absolute;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 10px;
  background: #17171c;
  box-shadow: 0 35px 75px rgba(0, 0, 0, .55);
  transition: transform .4s cubic-bezier(.2, .7, .2, 1), box-shadow .4s ease;
}
.hero-shot:hover { z-index: 20; box-shadow: 0 40px 90px rgba(0, 0, 0, .65); }
.hero-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.hero-shot > span {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(9, 9, 13, .8);
  color: rgba(255, 255, 255, .84);
  font-size: .53rem;
  font-weight: 600;
  letter-spacing: .03em;
  opacity: 0;
  backdrop-filter: blur(8px);
  transition: opacity .2s ease;
}
.hero-shot:hover > span { opacity: 1; }
.hero-shot i { font-style: normal; }
.hero-shot--1 { z-index: 3; top: 2%; left: 1%; width: 64%; aspect-ratio: 4 / 3; transform: rotate(-5deg); }
.hero-shot--1:hover { transform: rotate(-2.5deg) translateY(-5px); }
.hero-shot--2 { z-index: 2; top: 25%; right: 0; width: 58%; aspect-ratio: 4 / 3; transform: rotate(5.5deg); }
.hero-shot--2:hover { transform: rotate(3deg) translateY(-5px); }
.hero-shot--3 { z-index: 4; bottom: 1%; left: 15%; width: 58%; aspect-ratio: 4 / 3; transform: rotate(-1.5deg); }
.hero-shot--3:hover { transform: rotate(0deg) translateY(-5px); }
.g-hero__stamp {
  position: absolute;
  z-index: 5;
  right: 1%;
  bottom: 0;
  display: grid;
  width: 134px;
  height: 134px;
  place-content: center;
  border: 1px solid rgba(10, 10, 10, .25);
  border-radius: 50%;
  background: var(--g-lime);
  color: #0a0a0a;
  text-align: center;
  transform: rotate(7deg);
  box-shadow: 0 20px 45px rgba(0, 0, 0, .24);
}
.g-hero__stamp span {
  font-family: var(--g-display);
  font-size: 3.9rem;
  line-height: .7;
}
.g-hero__stamp small {
  margin-top: 11px;
  font-size: .53rem;
  font-weight: 800;
  letter-spacing: .07em;
  line-height: 1.25;
  text-transform: uppercase;
}

/* ---------- Ticker ---------- */

.g-ticker {
  position: relative;
  overflow: hidden;
  padding: 12px 0;
  border-top: 1px solid rgba(201, 255, 74, .3);
  background: var(--g-lime);
  color: #0a0a0a;
}
.g-ticker__track {
  display: flex;
  width: max-content;
  gap: 60px;
  white-space: nowrap;
  font-size: .63rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  animation: g-ticker 55s linear infinite;
}
.g-ticker__track span::after { margin-left: 60px; content: "✳"; }
@keyframes g-ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .g-ticker__track { animation: none; } }

/* ---------- Featured row ---------- */

.g-featured {
  padding: clamp(72px, 9vw, 120px) 0;
  background: var(--g-paper);
}
.g-section-head {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: end;
  gap: 35px;
  margin-bottom: clamp(35px, 4.5vw, 54px);
}
.g-section-head > p {
  max-width: 45ch;
  justify-self: end;
  color: var(--g-muted);
  font-size: .88rem;
  line-height: 1.75;
}
.g-section-title {
  max-width: 17ch;
  font-family: var(--g-display);
  font-size: clamp(2.6rem, 4.4vw, 4.6rem);
  font-weight: 400;
  letter-spacing: -.03em;
  line-height: .96;
}
.g-section-title em { color: var(--g-blue); font-style: italic; }
.bb-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.bb-feature {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--g-line);
  border-radius: 7px;
  background: #fff;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.bb-feature:hover { transform: translateY(-4px); border-color: #b9b2a2; box-shadow: 0 16px 32px rgba(15, 15, 19, .09); }
.bb-feature > img {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
  object-position: top center;
  border-bottom: 1px solid var(--g-line);
  transition: transform .5s ease;
}
.bb-feature:hover > img { transform: scale(1.025); }
.bb-feature > span {
  display: block;
  padding: 12px 13px 0;
  font-size: .87rem;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.3;
}
.bb-feature > small {
  display: block;
  padding: 3px 13px 13px;
  color: var(--g-muted);
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
}

/* ---------- Library ---------- */

.g-library {
  padding: clamp(70px, 9vw, 120px) 0 clamp(82px, 10vw, 140px);
  border-top: 1px solid var(--g-line);
  background: var(--g-bg);
}
.g-library__head {
  display: grid;
  grid-template-columns: 1fr .8fr;
  align-items: end;
  gap: 35px;
  margin-bottom: 36px;
}
.g-library__intro {
  justify-self: end;
  max-width: 44ch;
  color: var(--g-muted);
  font-size: .86rem;
  line-height: 1.75;
}
.g-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  padding: 12px;
  border: 1px solid var(--g-line);
  border-radius: 9px;
  background: rgba(255, 255, 255, .55);
}
.g-search {
  display: flex;
  min-width: 280px;
  flex: 1;
  align-items: center;
  gap: 9px;
  padding: 0 11px;
  color: var(--g-muted);
}
.g-search input {
  width: 100%;
  padding: 9px 0;
  border: 0;
  background: transparent;
  color: var(--g-ink);
  font-size: .78rem;
  outline: 0;
}
.g-search input::placeholder { color: #8e8b83; }
.g-search input::-webkit-search-cancel-button { appearance: none; }
.g-select {
  position: relative;
}
.g-select::after {
  position: absolute;
  top: 50%;
  right: 13px;
  color: var(--g-muted);
  content: "⌄";
  font-size: .72rem;
  pointer-events: none;
  transform: translateY(-54%);
}
.g-select select {
  min-width: 170px;
  padding: 10px 32px 10px 13px;
  border: 1px solid var(--g-line);
  border-radius: 6px;
  outline: 0;
  background: #fff;
  color: var(--g-ink);
  font-size: .72rem;
  font-weight: 600;
  appearance: none;
  cursor: pointer;
}
.g-reset {
  padding: 10px 13px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--g-muted);
  font-size: .72rem;
  font-weight: 600;
  cursor: pointer;
}
.g-reset:hover { color: var(--g-ink); text-decoration: underline; text-underline-offset: 5px; }
.filter-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 15px;
  padding-bottom: 2px;
}
.filter-chip {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--g-line);
  border-radius: 999px;
  background: transparent;
  color: var(--g-muted);
  font-size: .67rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.filter-chip span { color: #99958b; font-size: .55rem; }
.filter-chip:hover { border-color: #aba494; color: var(--g-ink); }
.filter-chip.is-active { background: var(--g-ink); border-color: var(--g-ink); color: #fff; }
.filter-chip.is-active span { color: rgba(255, 255, 255, .55); }
.g-resultline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 26px 0 16px;
  color: var(--g-muted);
  font-size: .67rem;
}
.g-resultline p { font-weight: 600; color: var(--g-ink); }
.g-resultline span { font-size: .61rem; }

.tpl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
}
.tpl-grid[hidden] { display: none; }
.tpl-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--g-line);
  border-radius: 8px;
  background: var(--g-paper);
  box-shadow: 0 1px 0 rgba(15, 15, 19, .02);
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}
.tpl-card:hover { transform: translateY(-4px); border-color: #bdb6a7; box-shadow: 0 18px 35px rgba(15, 15, 19, .08); }
.tpl-card__chrome {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 10px;
  border-bottom: 1px solid var(--g-line);
  background: #ede9df;
}
.tpl-card__chrome > span { width: 5px; height: 5px; border-radius: 50%; background: #c3bdae; }
.tpl-card__chrome > span:first-child { background: #e7a198; }
.tpl-card__chrome > span:nth-child(2) { background: #e5cd8e; }
.tpl-card__chrome > span:nth-child(3) { background: #a6cda3; }
.tpl-card__chrome em {
  margin-left: auto;
  color: #8b867b;
  font-size: .52rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: .08em;
}
.tpl-card__shot {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-bottom: 1px solid var(--g-line);
  background: #dcd8cd;
}
.tpl-card__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform .55s cubic-bezier(.2, .7, .2, 1);
}
.tpl-card:hover .tpl-card__shot img { transform: scale(1.025); }
.tpl-card__hover {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(9, 9, 13, .86);
  color: #fff;
  font-size: .59rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(4px);
  backdrop-filter: blur(8px);
  transition: opacity .22s ease, transform .22s ease;
}
.tpl-card__shot:hover .tpl-card__hover { opacity: 1; transform: translateY(0); }
.tpl-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 15px 16px 16px;
}
.tpl-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #8a857b;
  font-size: .55rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.tpl-card__meta span:last-child { text-align: right; color: #9b968a; font-weight: 600; }
.tpl-card h3 {
  margin: 8px 0 3px;
  font-size: 1.13rem;
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.2;
}
.tpl-card h3 a:hover { color: var(--g-blue); }
.tpl-card__body > p {
  margin: 0 0 15px;
  color: var(--g-muted);
  font-size: .74rem;
  line-height: 1.5;
}
.tpl-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  margin-top: auto;
  padding-bottom: 3px;
  border-bottom: 1px solid #c8c2b4;
  color: var(--g-ink);
  font-size: .63rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.tpl-card__link:hover { border-color: var(--g-blue); color: var(--g-blue); }
.tpl-card[hidden] { display: none; }
.g-empty {
  padding: 70px 20px;
  border: 1px dashed #c7c0b1;
  border-radius: 8px;
  text-align: center;
}
.g-empty p { margin-bottom: 18px; font-family: var(--g-display); font-size: 2rem; }
.g-empty button {
  padding: 10px 15px;
  border: 1px solid var(--g-ink);
  border-radius: 999px;
  background: var(--g-ink);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  cursor: pointer;
}

/* ---------- CTA ---------- */

.g-cta {
  position: relative;
  overflow: hidden;
  padding: clamp(85px, 10vw, 150px) 0;
  background:
    radial-gradient(circle at 83% 45%, rgba(47, 91, 255, .34), transparent 34%),
    radial-gradient(circle at 15% 110%, rgba(201, 255, 74, .11), transparent 30%),
    var(--g-dark);
  color: #fff;
}
.g-cta::before {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 100% 68px;
  content: "";
  pointer-events: none;
}
.g-cta__inner { position: relative; max-width: 850px; }
.g-cta h2 {
  max-width: 13ch;
  font-family: var(--g-display);
  font-size: clamp(3rem, 6vw, 6.4rem);
  font-weight: 400;
  letter-spacing: -.04em;
  line-height: .92;
}
.g-cta h2 em { color: var(--g-lime); font-style: italic; }
.g-cta p:not(.g-kicker) {
  max-width: 49ch;
  margin-top: 24px;
  color: rgba(255, 255, 255, .56);
  font-size: .94rem;
  line-height: 1.75;
}
.g-cta__inner > div { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 31px; }

/* ---------- Footer ---------- */

.g-foot { padding: 51px 0 24px; background: #060608; color: #fff; }
.g-foot__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}
.g-brand--foot { color: #fff; }
.g-foot__inner p {
  max-width: 35ch;
  margin-top: 13px;
  color: rgba(255, 255, 255, .4);
  font-size: .69rem;
  line-height: 1.65;
}
.g-foot__links { display: flex; flex-wrap: wrap; gap: 13px 24px; }
.g-foot__links a { color: rgba(255, 255, 255, .5); font-size: .69rem; }
.g-foot__links a:hover { color: var(--g-lime); }
.g-foot__bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 44px;
  padding-top: 17px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .3);
  font-size: .58rem;
}

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

@media (max-width: 1120px) {
  .g-hero__grid { grid-template-columns: 1fr 1fr; }
  .g-hero__visual { min-height: 470px; }
  .g-hero h1 { font-size: clamp(3.3rem, 6.5vw, 5.5rem); }
  .bb-features { grid-template-columns: repeat(2, 1fr); }
  .tpl-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .g-head__inner {
    flex-wrap: wrap;
    gap: 10px 18px;
    min-height: 0;
    padding: 11px 0 0;
  }
  .g-nav {
    order: 3;
    display: flex;
    width: 100%;
    justify-content: flex-start;
    gap: 24px;
    padding: 9px 0 11px;
    border-top: 1px solid rgba(255, 255, 255, .1);
  }
  .g-nav a { font-size: .68rem; }
  .g-nav a.is-active::after { bottom: -3px; }
  .g-head__cta { margin-left: auto; }
  .g-hero { padding-top: 54px; }
  .g-hero__grid { grid-template-columns: 1fr; padding-bottom: 68px; }
  .g-hero h1 { max-width: 13ch; font-size: clamp(3.3rem, 9vw, 5.8rem); }
  .g-hero__visual { min-height: 520px; max-width: 630px; width: 100%; margin: 8px auto 0; }
  .g-section-head, .g-library__head { grid-template-columns: 1fr; gap: 21px; }
  .g-section-head > p, .g-library__intro { justify-self: start; }
  .g-controls { align-items: stretch; }
  .g-search { flex-basis: 100%; border-bottom: 1px solid var(--g-line); }
  .g-search input { padding: 10px 0 13px; font-size: 16px; }
  .g-select { flex: 1; }
  .g-select select { font-size: 16px; }
  .g-select select { width: 100%; }
  .g-reset { flex: 0 0 auto; }
  .g-foot__inner { display: block; }
  .g-foot__links { margin-top: 25px; }
  .g-foot__bottom { display: block; line-height: 1.8; }
  .g-foot__bottom span { display: block; }
}

@media (max-width: 640px) {
  .g-hero { padding-top: 47px; }
  .g-hero h1 { font-size: clamp(3rem, 12.6vw, 4.7rem); }
  .g-hero__lede { font-size: .9rem; }
  .g-hero__actions { align-items: stretch; flex-direction: column; }
  .g-btn { width: 100%; }
  .g-hero__stats { grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 35px; }
  .g-hero__visual { min-height: 335px; margin-top: 21px; }
  .hero-shot { border-radius: 6px; }
  .g-hero__stamp { width: 88px; height: 88px; }
  .g-hero__stamp span { font-size: 2.6rem; }
  .g-hero__stamp small { margin-top: 7px; font-size: .4rem; }
  .g-ticker { padding: 10px 0; }
  .g-ticker__track { font-size: .55rem; gap: 35px; }
  .g-ticker__track span::after { margin-left: 35px; }
  .bb-features { grid-template-columns: 1fr 1fr; gap: 9px; }
  .bb-feature > span { padding: 10px 10px 0; font-size: .76rem; }
  .bb-feature > small { padding: 2px 10px 10px; font-size: .5rem; }
  .tpl-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .tpl-card__chrome { height: 22px; padding: 0 8px; }
  .tpl-card__chrome em { font-size: .44rem; }
  .tpl-card__body { padding: 10px 10px 11px; }
  .tpl-card__meta { display: block; font-size: .44rem; letter-spacing: .05em; }
  .tpl-card__meta span:last-child { display: none; }
  .tpl-card h3 { margin: 6px 0 2px; font-size: .88rem; }
  .tpl-card__body > p { display: none; }
  .tpl-card__link { margin-top: 8px; font-size: .56rem; }
  .tpl-card__hover { display: none; }
  .g-controls { padding: 9px; }
  .g-select { min-width: 0; }
  .filter-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-inline: calc(var(--g-gutter) * -1);
    padding-inline: var(--g-gutter);
    padding-bottom: 6px;
    scrollbar-width: thin;
  }
  .g-resultline { align-items: flex-start; }
  .g-resultline span { display: none; }
  .g-section-title { font-size: clamp(2.35rem, 10.4vw, 3.3rem); }
  .g-cta h2 { font-size: clamp(2.75rem, 12.6vw, 4.2rem); }
  .g-cta__inner > div { flex-direction: column; align-items: stretch; }
  .g-foot { padding-top: 39px; }
  .g-foot__links { gap: 12px 17px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
