/* Inner pages — About, Work, Why Us, Insights */
.page-hero .lead { margin-top: 20px; max-width: 36rem; }

.page-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.page-split--reverse .page-split__media { order: 2; }
.page-split--reverse .page-split__body { order: 1; }
.page-split__media {
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-soft);
  aspect-ratio: 4 / 3;
  max-height: 360px;
  max-width: min(100%, 480px);
  width: 100%;
  justify-self: center;
  align-self: center;
}
.page-split__media img,
.page-split__media video {
  width: 100%;
  height: 100%;
  min-height: unset;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.page-split__media--contain img,
.page-split__media--contain video {
  object-fit: contain;
  object-position: center;
  padding: 8px;
}
.page-split__media video { border-radius: inherit; }

.service-deliverables {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 24px;
  margin-top: 20px;
  padding: 0;
  list-style: none;
}
.service-deliverables li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.5;
}
.service-deliverables li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
}
.page-split__body .lead + .lead { margin-top: 16px; }

.page-split__body .eyebrow + .h2,
.page-split__body .eyebrow + .h3 {
  margin-top: 12px;
}

.page-split__body .h2 + .lead,
.page-split__body .h3 + .lead {
  margin-top: clamp(20px, 2.8vw, 32px);
}

.page-split__body .h2 + .topic-pills,
.page-split__body .lead + .topic-pills {
  margin-top: clamp(24px, 3vw, 32px);
}

.section-intro {
  margin-bottom: clamp(28px, 4vw, 40px);
}

.section-intro .h2 + .lead,
.section-intro .h3 + .lead {
  margin-top: clamp(14px, 2vw, 20px);
  max-width: 38rem;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stat-card {
  padding: 28px 22px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--border);
  text-align: center;
}
.stat-card strong {
  display: block;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--orange);
  margin-bottom: 6px;
}
.stat-card span {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.45;
}

.icon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.icon-card {
  padding: 28px 24px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #fff;
  transition: border-color 300ms var(--ease), transform 300ms var(--ease);
}
.icon-card:hover {
  border-color: rgba(255, 82, 0, 0.35);
  transform: translateY(-3px);
}
.icon-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--orange-soft);
  color: var(--orange);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.icon-card__icon svg {
  width: 24px;
  height: 24px;
}
.icon-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.icon-card p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.value-card {
  display: flex;
  gap: 18px;
  padding: 24px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--border);
}
.value-card__num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--dark);
  font-size: 14px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.value-card h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}
.value-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.insight-card {
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
  transition: transform 300ms var(--ease), box-shadow 300ms var(--ease);
}
.insight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}
.insight-card__img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-soft);
}
.insight-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.insight-card__body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.insight-card__tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}
.insight-card h3 {
  font-size: 1.15rem;
  line-height: 1.3;
  margin-bottom: 10px;
}
.insight-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 16px;
  flex: 1;
}
.insight-card__link {
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
}
.insight-card__link:hover { color: var(--orange); }

.quote-block {
  padding: clamp(36px, 5vw, 56px);
  border-radius: 20px;
  background: linear-gradient(135deg, #fff 0%, var(--bg-soft) 100%);
  border: 1px solid var(--border);
  border-left: 4px solid var(--orange);
}
.quote-block p {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.55;
  color: var(--dark);
  margin: 0 0 16px;
  font-weight: 500;
}
.quote-block cite {
  font-style: normal;
  font-size: 14px;
  color: var(--muted);
}

.work-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.work-showcase .work-card {
  aspect-ratio: 4 / 3;
  min-height: unset;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #111;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  transition: transform 350ms var(--ease), box-shadow 350ms var(--ease), border-color 350ms var(--ease);
}
.work-showcase .work-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.12);
  border-color: rgba(255, 82, 0, 0.25);
}
.work-showcase .work-card.tall {
  grid-row: span 1;
  aspect-ratio: 4 / 3;
  min-height: unset;
}
.work-showcase .work-card img {
  object-fit: cover;
  object-position: center;
}
.work-showcase .work-card--web {
  background: #f0f0ee;
}
.work-showcase .work-card--web img {
  object-fit: cover;
  object-position: top center;
}
.work-showcase .work-card--brand {
  background: #fff;
}
.work-showcase .work-card--brand img {
  object-fit: contain;
  padding: 20px;
  background: #fff;
}
.work-showcase .work-overlay {
  opacity: 1;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.35) 42%, transparent 72%);
  padding: 18px 20px;
}
.work-showcase .work-card--brand .work-overlay,
.work-showcase .work-card--web .work-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
}
.work-showcase .work-overlay strong {
  font-size: 1.05rem;
  line-height: 1.25;
}
.work-showcase .work-meta {
  margin-bottom: 4px;
}
.work-showcase--highlights {
  grid-template-columns: repeat(6, 1fr);
}
.work-showcase--highlights .work-card:nth-child(1) { grid-column: span 2; }
.work-showcase--highlights .work-card:nth-child(2) { grid-column: span 2; }
.work-showcase--highlights .work-card:nth-child(3) { grid-column: span 2; }
.work-showcase--highlights .work-card:nth-child(4) { grid-column: 2 / span 2; }
.work-showcase--highlights .work-card:nth-child(5) { grid-column: 4 / span 2; }

.work-grid .work-card[data-cat*="web"] img {
  object-fit: cover;
  object-position: top center;
}
.work-grid .work-card[data-cat*="web"] {
  background: #f5f5f3;
}

/* Portfolio filter grid — uniform cards */
.work-grid--portfolio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.work-grid--portfolio .work-card {
  aspect-ratio: 4 / 3;
  min-height: unset !important;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  transition: transform 350ms var(--ease), box-shadow 350ms var(--ease), opacity 350ms var(--ease), border-color 350ms var(--ease);
}

.work-grid--portfolio .work-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.12);
  border-color: rgba(255, 82, 0, 0.25);
}

.work-grid--portfolio .work-card img {
  object-fit: cover;
  object-position: center;
}

.work-grid--portfolio .work-card--web img {
  object-fit: cover;
  object-position: top center;
}

.work-grid--portfolio .work-card--brand {
  background: #fff;
}

.work-grid--portfolio .work-card--brand img {
  object-fit: contain;
  padding: 16px;
  background: #fff;
}

.work-grid--portfolio .work-overlay {
  opacity: 1;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.35) 42%, transparent 72%);
  padding: 18px 20px;
}

.work-grid--portfolio .work-overlay strong {
  font-size: 1.05rem;
  line-height: 1.25;
}

.work-grid--filterable .work-card.is-filtered-out {
  display: none;
}

.work-grid--filterable.is-empty::after {
  content: "No projects in this category yet.";
  display: block;
  grid-column: 1 / -1;
  padding: 48px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  border: 1px dashed var(--border);
  border-radius: 16px;
  background: var(--bg-soft);
}

.portfolio-load-more {
  display: flex;
  justify-content: center;
  margin-top: clamp(28px, 4vw, 40px);
}

.portfolio-load-more[hidden] {
  display: none !important;
}

.portfolio-load-more .btn {
  min-width: 180px;
  border: 1.5px solid var(--dark);
  background: #fff;
  color: var(--dark);
  border-radius: 999px;
  padding: 12px 28px;
  font-weight: 600;
}

.portfolio-load-more .btn:hover {
  background: var(--dark);
  color: #fff;
}

.filters {
  margin-bottom: clamp(24px, 4vw, 36px);
}

/* Portfolio — image tabs matching index service sliders */
.filters--visual {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(10px, 2vw, 16px);
  margin: clamp(24px, 4vw, 36px) 0;
}

.filters--visual .filter-tab {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: clamp(96px, 14vw, 128px);
  padding: 6px;
  border: 2px solid var(--border);
  border-radius: 14px;
  background: #fff;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.filters--visual .filter-tab.is-active {
  background: #fff;
  color: inherit;
  border-color: var(--dark);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.filters--visual .filter-tab:hover {
  border-color: rgba(255, 82, 0, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.filters--visual .filter-tab__thumb {
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-soft);
}

.filters--visual .filter-tab__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.filters--visual .filter-tab__thumb--mosaic {
  display: grid;
  grid-template-columns: repeat(var(--mosaic-cols, 4), 1fr);
  gap: 1px;
  aspect-ratio: 4 / 3;
  background: rgba(0, 0, 0, 0.08);
}

.filters--visual .filter-tab__thumb--mosaic img {
  width: 100%;
  height: 100%;
  min-height: 0;
  min-width: 0;
  aspect-ratio: 1;
  object-fit: cover;
}

.filters--visual .filter-tab__label {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  color: var(--muted);
  padding: 0 2px 2px;
}

.filters--visual .filter-tab.is-active .filter-tab__label {
  color: var(--dark);
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.compare-col {
  padding: 28px;
  border-radius: 16px;
  border: 1px solid var(--border);
}
.compare-col--us {
  background: #fff;
  border-color: rgba(255, 82, 0, 0.25);
  box-shadow: 0 12px 32px rgba(255, 82, 0, 0.06);
}
.compare-col h3 { margin-bottom: 16px; font-size: 1.1rem; }
.compare-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.compare-col li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.5;
}
.compare-col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  box-sizing: border-box;
}
.compare-col--us li::before {
  background: var(--orange-soft);
  border-color: var(--orange);
}
.compare-col--us li::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 18px;
  height: 18px;
  box-sizing: border-box;
  background-color: var(--orange);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M5 12.5l5 5L19 7.5' stroke='black' stroke-width='2.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M5 12.5l5 5L19 7.5' stroke='black' stroke-width='2.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  -webkit-mask-size: 11px 11px;
  mask-size: 11px 11px;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.topic-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.topic-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  color: var(--dark);
}
.topic-pill svg {
  width: 18px;
  height: 18px;
  color: var(--orange);
  flex-shrink: 0;
}

.page-cta {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.page-cta .lead { margin: 16px auto 24px; }

/* Legal pages — Privacy, Terms, Cookies */
.page-hero--legal .lead { max-width: 42rem; }

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.legal-nav a {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  transition: border-color 300ms var(--ease), background 300ms var(--ease), color 300ms var(--ease);
}
.legal-nav a:hover {
  border-color: rgba(255, 82, 0, 0.35);
  color: var(--orange);
}
.legal-nav a.is-active {
  background: var(--dark);
  border-color: var(--dark);
  color: #fff;
}

.legal-body { padding-top: 0; }

.legal-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.legal-sidebar__card {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  padding: 24px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--border);
}
.legal-sidebar__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}
.legal-toc {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 20px;
}
.legal-toc a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.4;
  transition: background 200ms var(--ease), color 200ms var(--ease);
}
.legal-toc a:hover {
  background: var(--orange-soft);
  color: var(--dark);
}
.legal-sidebar__updated {
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.legal-sidebar__updated strong {
  display: block;
  margin-top: 4px;
  font-size: 15px;
  color: var(--dark);
}

.legal-content {
  padding: clamp(28px, 4vw, 44px);
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.04);
}
.legal-intro {
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.legal-intro p {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 56rem;
}
.legal-intro a {
  color: var(--orange);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-intro a:hover { color: var(--dark); }

.legal-section {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.legal-section:last-of-type { border-bottom: none; }
.legal-section__num {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 8px;
}
.legal-section h2 {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  margin-bottom: 12px;
  line-height: 1.3;
}
.legal-section p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 10px;
  max-width: 52rem;
}
.legal-section p:last-child { margin-bottom: 0; }
.legal-section ul {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}
.legal-section li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 8px;
}
.legal-section li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}
.legal-section a {
  color: var(--orange);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-section a:hover { color: var(--dark); }

.legal-contact-card {
  margin-top: 32px;
  padding: clamp(24px, 4vw, 32px);
  border-radius: 16px;
  background: linear-gradient(135deg, var(--orange-soft) 0%, #fff 100%);
  border: 1px solid rgba(255, 82, 0, 0.2);
  border-left: 4px solid var(--orange);
}
.legal-contact-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.legal-contact-card p {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.55;
}
.legal-contact-card .btn { margin-top: 4px; }

@media (max-width: 1024px) {
  .page-split,
  .page-split--reverse .page-split__media,
  .page-split--reverse .page-split__body { grid-template-columns: 1fr; }
  .page-split--reverse .page-split__media,
  .page-split--reverse .page-split__body { order: unset; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .icon-grid { grid-template-columns: repeat(2, 1fr); }
  .insight-grid { grid-template-columns: 1fr 1fr; }
  .work-showcase { grid-template-columns: 1fr 1fr; }
  .work-showcase .work-card.tall { grid-row: span 1; min-height: unset; }
  .work-showcase--highlights {
    grid-template-columns: repeat(2, 1fr);
  }
  .work-showcase--highlights .work-card:nth-child(n) {
    grid-column: span 1;
  }
  .work-grid--portfolio {
    grid-template-columns: repeat(2, 1fr);
  }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-sidebar__card { position: static; }
  .page-split__media {
    max-width: 100%;
    max-height: 320px;
  }
}

@media (max-width: 640px) {
  .stat-row,
  .icon-grid,
  .value-grid,
  .insight-grid,
  .compare-grid,
  .work-showcase,
  .work-showcase--highlights,
  .work-grid--portfolio { grid-template-columns: 1fr; }
  .service-deliverables { grid-template-columns: 1fr; }
}
