/* Branding and identity */
.branding {
  padding: clamp(42px, 5vw, 78px) var(--gutter) clamp(44px, 6vw, 88px);
  color: var(--text);
}
.fan + .branding, .branding + .branding { border-top: 1px solid var(--rule); }
.branding-title {
  margin: 0 0 clamp(24px, 2.8vw, 42px);
  font: 700 clamp(38px, 4.3vw, 72px)/1.03 Inter, Arial, sans-serif;
  letter-spacing: -.06em;
  text-wrap: balance;
}
.branding-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.6fr);
  gap: clamp(14px, 1.5vw, 24px);
}
.brand-service {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #191c19;
  border-radius: clamp(16px, 1.45vw, 24px);
}
.brand-media { overflow: hidden; }
.brand-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
:is(.brand-logo, .brand-identity) .brand-media { height: clamp(216px, 21vw, 332px); }
.site-landing .brand-media { aspect-ratio: 25 / 26; }
.site-company .brand-media { aspect-ratio: 2.5; }
.automation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.5vw, 24px);
}
.auto-documents {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  align-items: center;
}
.automation .brand-media img { height: auto; }
.automation .brand-copy p { margin-bottom: 0; }
.brand-copy {
  flex: 1;
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(20px, 2vw, 34px);
}
.brand-copy :is(h2, h3, h4) {
  margin: 0;
  font: 700 clamp(24px, 2.1vw, 36px)/1.1 Inter, Arial, sans-serif;
  letter-spacing: -.048em;
}
.brand-copy p {
  margin: 12px 0 24px;
  max-width: 50ch;
  color: var(--muted);
  font-size: clamp(16px, 1.25vw, 20px);
  line-height: 1.45;
  text-wrap: pretty;
}
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  margin-top: auto;
  padding: 10px 17px;
  min-height: 44px;
  max-width: 100%;
  background: var(--lime);
  color: #10130b;
  border-radius: 100px;
  font-size: 16px;
  line-height: 1.2;
  transition: background-color .18s ease;
}
.brand-link span { font-family: Arial, sans-serif; transition: transform .18s ease; }
@media (hover: hover) {
  .brand-link:hover { background: #e6ffa1; }
  .brand-link:hover span { transform: translate(2px, -2px); }
}
.brand-link:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.brand-copy .site-price { margin: 9px 0 0; color: var(--text); font-size: clamp(18px, 1.5vw, 24px); }
:is(.brand-book, .site-catalog) { grid-column: 1 / -1; display: grid; grid-template-columns: 1.2fr 1fr; }
:is(.brand-book, .site-catalog) .brand-media { aspect-ratio: 2 / 1; min-height: 100%; }
@media (min-width: 681px) and (max-width: 980px) {
  .branding-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.4fr); }
  .business-sites .branding-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
  :is(.brand-book, .site-catalog) .brand-media { aspect-ratio: auto; }
  .site-landing .brand-media { aspect-ratio: 1.25; }
  .site-catalog { display: flex; }
  .site-catalog .brand-media { min-height: 0; }
  .site-catalog .brand-media img { height: auto; }
}
@media (max-width: 680px) {
  .automation-grid { grid-template-columns: minmax(0, 1fr); }
  .auto-documents { display: flex; align-items: stretch; }
  .branding-title { font-size: clamp(36px, 8.8vw, 52px); }
  .branding-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  :is(.brand-book, .site-catalog) { display: flex; }
  .brand-logo .brand-media { height: auto; aspect-ratio: 1.48; }
  :is(.brand-identity, .brand-book) .brand-media { aspect-ratio: auto; height: auto; min-height: 0; }
  :is(.brand-identity, .brand-book) .brand-media img { height: auto; }
  .site-landing .brand-media { aspect-ratio: 1.25; }
  :is(.site-company, .site-catalog) .brand-media { aspect-ratio: auto; min-height: 0; }
  :is(.site-company, .site-catalog) .brand-media img { height: auto; }
  .brand-copy p { margin-bottom: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .brand-link, .brand-link span { transition: none; }
}
