/* ==========================================================================
   MARBLE MAGIK CORPORATION — ARCHITECTURAL DESIGN SYSTEM
   Pure HTML / CSS / JS · Zero-Elevation Flat Swiss Grid · Natural Stone Tone
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-stone: #f6f5f0;
  --bg-sand: #edeae1;
  --bg-dark: #131613;
  --bg-dark-2: #1b1f1b;

  --ink: #131613;
  --ink-body: #424740;
  --ink-muted: #6d736a;
  --ink-on-dark: #f4f3ee;
  --ink-on-dark-muted: #a4aba1;

  --line: #e2dfd6;
  --line-strong: #c6c2b6;
  --line-dark: #2a2f2a;

  --brand: #5ba142;
  --brand-hover: #488532;
  --brand-soft: #eef6eb;
  --brand-line: #bedbb3;

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Consolas, monospace;

  --container: 1320px;
  --gutter: 28px;
  --header-h: 78px;
  --topbar-h: 38px;
  --radius-sm: 2px;
  --radius-md: 4px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.lock-scroll {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

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

/* --------------------------------------------------------------------------
   Layout Primitives & Typography Utilities
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--brand);
  flex-shrink: 0;
}

.eyebrow--light {
  color: #d3d8d0;
}

.mono-tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 40px;
  align-items: end;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 44px;
}

.section-title {
  font-size: clamp(28px, 3.3vw, 42px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.026em;
  color: var(--ink);
  margin-top: 12px;
}

.section-desc {
  font-size: 16px;
  line-height: 1.68;
  color: var(--ink-body);
  max-width: 54ch;
}

.section-head-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  justify-self: end;
}

/* --------------------------------------------------------------------------
   Buttons (Crisp Flat Architectural Controls)
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}

.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.18s ease;
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn--primary {
  background-color: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
}

.btn--primary:hover {
  background-color: var(--brand-hover);
  border-color: var(--brand-hover);
}

.btn--outline {
  background-color: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn--outline:hover {
  background-color: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
}

.btn--light {
  background-color: #ffffff;
  border-color: #ffffff;
  color: var(--ink);
}

.btn--light:hover {
  background-color: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
}

.btn--ghost-light {
  background-color: rgba(19, 22, 19, 0.55);
  border-color: rgba(255, 255, 255, 0.42);
  color: #ffffff;
}

.btn--ghost-light:hover {
  background-color: #ffffff;
  border-color: #ffffff;
  color: var(--ink);
}

.btn--sm {
  min-height: 40px;
  padding: 9px 16px;
  font-size: 12px;
}

/* --------------------------------------------------------------------------
   Top Utility Bar
   -------------------------------------------------------------------------- */

.topbar {
  background-color: var(--bg-dark);
  color: var(--ink-on-dark-muted);
  border-bottom: 1px solid var(--line-dark);
  font-size: 12px;
}

.topbar__inner {
  min-height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar__left,
.topbar__right {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--ink-on-dark-muted);
  transition: color 0.16s ease;
}

.topbar__item:hover {
  color: #ffffff;
}

.topbar__dot {
  width: 6px;
  height: 6px;
  background-color: var(--brand);
  display: inline-block;
}

.topbar__sep {
  color: #363c36;
  user-select: none;
}

/* --------------------------------------------------------------------------
   Site Header & Interactive Mega-Menus
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background-color: var(--bg);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo img {
  height: 48px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: stretch;
  height: 100%;
  gap: 4px;
}

.nav-item {
  position: static;
  display: flex;
  align-items: center;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 100%;
  padding-inline: 14px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 2px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.nav-link:hover,
.nav-item.is-open > .nav-link {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

.nav-chevron {
  width: 12px;
  height: 12px;
  transition: transform 0.18s ease;
}

.nav-item.is-open > .nav-link .nav-chevron {
  transform: rotate(180deg);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Downloads Dropdown */
.downloads-menu {
  position: relative;
}

.downloads-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding-inline: 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  background-color: var(--bg-stone);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}

.downloads-trigger:hover,
.downloads-menu.is-open .downloads-trigger {
  background-color: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
}

.downloads-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 340px;
  background-color: var(--bg);
  border: 1px solid var(--ink);
  display: none;
  z-index: 110;
}

.downloads-menu.is-open .downloads-panel {
  display: block;
}

.downloads-panel__head {
  padding: 12px 16px;
  background-color: var(--bg-stone);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.download-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.15s ease;
}

.download-item:last-child {
  border-bottom: none;
}

.download-item:hover {
  background-color: var(--brand-soft);
}

.download-item__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 3px;
}

.download-item__sub {
  font-size: 12.5px;
  color: var(--ink-muted);
  line-height: 1.45;
}

.download-item__badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  padding: 4px 8px;
  border: 1px solid var(--brand-line);
  background-color: var(--bg);
  color: var(--brand-hover);
  flex-shrink: 0;
}

/* Full-Width Architectural Mega-Panels */
.mega-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background-color: var(--bg);
  border-bottom: 1px solid var(--ink);
  display: none;
  z-index: 100;
}

.nav-item.is-open > .mega-panel {
  display: block;
}

.mega-grid--products {
  display: grid;
  grid-template-columns: 250px 280px minmax(0, 1fr);
  min-height: 390px;
  border-inline: 1px solid var(--line);
}

.mega-col {
  padding: 24px;
  border-right: 1px solid var(--line);
}

.mega-col:last-child {
  border-right: none;
}

.mega-col--tinted {
  background-color: var(--bg-stone);
}

.mega-col__label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.mega-tab-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  padding: 11px 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-body);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  margin-bottom: 4px;
  transition: background-color 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}

.mega-tab-btn:hover {
  background-color: var(--bg);
  color: var(--ink);
  border-color: var(--line);
}

.mega-tab-btn.is-active {
  background-color: var(--ink);
  color: #ffffff;
  border-color: var(--ink);
}

.mega-sub-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-body);
  border-left: 2px solid transparent;
  transition: background-color 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}

.mega-sub-btn:hover {
  background-color: var(--bg-stone);
  color: var(--ink);
}

.mega-sub-btn.is-active {
  background-color: var(--brand-soft);
  color: var(--ink);
  font-weight: 600;
  border-left-color: var(--brand);
}

.mega-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.mega-preview-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.mega-link-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-hover);
}

.mega-link-action:hover {
  text-decoration: underline;
}

.mega-packshot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.packshot-card {
  border: 1px solid var(--line);
  background-color: var(--bg);
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.packshot-card:hover {
  border-color: var(--brand);
  background-color: var(--bg-stone);
}

.packshot-card__img {
  height: 126px;
  background-color: var(--bg-stone);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.packshot-card__img img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.packshot-card__code {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--brand-hover);
  letter-spacing: 0.06em;
}

.packshot-card__name {
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

/* Solutions Mega Grid */
.mega-grid--solutions {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  min-height: 380px;
  border-inline: 1px solid var(--line);
}

.solutions-list-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3px;
}

.solution-detail-box {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.solution-detail-desc {
  font-size: 14.5px;
  color: var(--ink-body);
  max-width: 66ch;
}

.solution-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.solution-tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 5px 10px;
  background-color: var(--bg-stone);
  border: 1px solid var(--line);
  color: var(--ink-body);
}

/* Stories Mega Grid */
.mega-grid--stories {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  border-inline: 1px solid var(--line);
}

.mega-story-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.mega-story-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  background-color: var(--bg);
  align-items: center;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.mega-story-card:hover {
  border-color: var(--brand);
  background-color: var(--bg-stone);
}

.mega-story-card img {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border: 1px solid var(--line);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding-inline: 14px;
  border: 1px solid var(--line-strong);
  background-color: var(--bg);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mobile-toggle__bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 16px;
}

.mobile-toggle__bars span {
  display: block;
  height: 1.5px;
  width: 100%;
  background-color: var(--ink);
}

/* --------------------------------------------------------------------------
   Section 1: Hero Showcase
   -------------------------------------------------------------------------- */

.hero {
  border-bottom: 1px solid var(--line);
  background-color: var(--bg);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  border-inline: 1px solid var(--line);
}

.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 52px 44px 40px 40px;
  border-right: 1px solid var(--line);
  gap: 36px;
}

.hero__title {
  font-size: clamp(34px, 3.8vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-top: 18px;
}

.hero__word-wrap {
  display: inline-block;
  color: var(--brand);
  border-bottom: 3px solid var(--brand);
  padding-bottom: 2px;
  transition: opacity 0.2s ease;
}

.hero__word-wrap.is-switching {
  opacity: 0.2;
}

.hero__subtitle {
  margin-top: 20px;
  font-size: 17.5px;
  line-height: 1.6;
  color: var(--ink-body);
  min-height: 28px;
}

/* Word switcher pills */
.hero__modes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  margin-top: 26px;
  background-color: var(--bg-stone);
}

.hero__mode-btn {
  padding: 9px 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-muted);
  border-right: 1px solid var(--line);
  text-align: center;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.hero__mode-btn:last-child {
  border-right: none;
}

.hero__mode-btn:hover {
  color: var(--ink);
  background-color: var(--bg);
}

.hero__mode-btn.is-active {
  background-color: var(--ink);
  color: #ffffff;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero__trust {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  padding-top: 24px;
  gap: 20px;
}

.hero__trust-item {
  border-left: 2px solid var(--brand);
  padding-left: 14px;
}

.hero__trust-num {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.hero__trust-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 4px;
}

/* Hero Right Media Frame */
.hero__showcase {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-stone);
}

.hero__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: #e9e7df;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}

.hero__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 22px;
  background-color: var(--bg);
  border-top: 1px solid var(--line);
  margin-top: auto;
}

.hero__bar-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.hero__counter {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  flex-shrink: 0;
}

.hero__caption {
  font-size: 13px;
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero__bar-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.hero__progress {
  width: 88px;
  height: 2px;
  background-color: var(--line);
  overflow: hidden;
}

.hero__progress-fill {
  display: block;
  height: 100%;
  width: 50%;
  background-color: var(--brand);
  transition: width 0.35s ease;
}

.icon-square-btn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  background-color: var(--bg);
  color: var(--ink);
  border-radius: var(--radius-sm);
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.icon-square-btn:hover {
  background-color: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
}

.icon-square-btn svg {
  width: 16px;
  height: 16px;
}

/* --------------------------------------------------------------------------
   Section 2: Categories (Transform Your Space with Expert Solutions)
   -------------------------------------------------------------------------- */

.section-categories {
  padding-block: 88px;
  border-bottom: 1px solid var(--line);
  background-color: var(--bg);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.category-card {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background-color: var(--bg);
  transition: background-color 0.18s ease;
}

.category-card:hover {
  background-color: var(--bg-stone);
}

.category-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 26px;
  border-bottom: 1px solid var(--line);
}

.category-card__index {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--brand-hover);
}

.category-card__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.category-card__media {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background-color: var(--bg-stone);
}

.category-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.45s ease;
}

.category-card:hover .category-card__media img {
  transform: scale(1.025);
}

.category-card__body {
  padding: 28px 26px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.category-card__title {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.category-card__subtitle {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--brand-hover);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.category-card__desc {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.62;
  color: var(--ink-body);
}

.category-card__specs {
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: grid;
  gap: 9px;
}

.category-card__specs li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
}

.spec-check {
  width: 16px;
  height: 16px;
  border: 1px solid var(--brand-line);
  background-color: var(--brand-soft);
  color: var(--brand-hover);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  flex-shrink: 0;
}

.category-card__foot {
  margin-top: auto;
  padding-top: 24px;
}

.category-card__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color 0.15s ease;
}

.category-card:hover .category-card__btn {
  color: var(--brand-hover);
}

/* --------------------------------------------------------------------------
   Section 3: Building Excellence (Stats & Heritage)
   -------------------------------------------------------------------------- */

.section-excellence {
  padding-block: 88px;
  background-color: var(--bg-stone);
  border-bottom: 1px solid var(--line);
}

.excellence-grid {
  display: grid;
  grid-template-columns: minmax(0, 5.2fr) minmax(0, 6.8fr);
  gap: 56px;
  align-items: stretch;
}

.excellence-media-frame {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-strong);
  background-color: var(--bg);
}

.excellence-media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: #e6e4dc;
}

.excellence-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.055);
  transform-origin: center bottom;
}

.excellence-media-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.excellence-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 36px;
}

.excellence-copy .section-desc {
  margin-top: 18px;
  font-size: 17px;
}

.stats-ledger {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
  background-color: var(--bg);
}

.stat-cell {
  padding: 32px 28px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.stat-cell__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stat-cell__value {
  font-size: clamp(38px, 4.2vw, 54px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.stat-cell__value span {
  color: var(--brand);
}

.stat-cell__label {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-body);
}

/* --------------------------------------------------------------------------
   Section 4: Magik Stories (Projects & Events)
   -------------------------------------------------------------------------- */

.section-stories {
  padding-block: 88px;
  background-color: var(--bg);
  border-bottom: 1px solid var(--line);
}

.stories-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

.filter-tabs {
  display: inline-flex;
  border: 1px solid var(--line-strong);
  background-color: var(--bg-stone);
}

.filter-tab {
  padding: 11px 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-body);
  border-right: 1px solid var(--line-strong);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.filter-tab:last-child {
  border-right: none;
}

.filter-tab:hover {
  background-color: var(--bg);
  color: var(--ink);
}

.filter-tab.is-active {
  background-color: var(--ink);
  color: #ffffff;
}

.stories-note {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.stories-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.story-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background-color: var(--bg);
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.story-card[hidden] {
  display: none;
}

.story-card:hover {
  border-color: var(--ink);
  background-color: var(--bg-stone);
}

.story-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background-color: var(--bg-stone);
}

.story-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.story-card:hover .story-card__media img {
  transform: scale(1.03);
}

.story-card__img--kannaur {
  object-position: center 28%;
}

.story-card__img--bangalore {
  object-position: center 22%;
}

.story-card__img--goa {
  object-position: center 36%;
}

.story-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background-color: var(--bg);
  color: var(--ink);
  border: 1px solid var(--ink);
}

.story-card__badge--project {
  background-color: var(--ink);
  color: #ffffff;
}

.story-card__badge--event {
  background-color: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
}

.story-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.story-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-muted);
  margin-bottom: 10px;
}

.story-card__title {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.story-card__desc {
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--ink-body);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.story-card__footer {
  margin-top: auto;
  padding-top: 18px;
}

.story-card__metrics {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
}

.story-card__stat {
  color: var(--ink);
  font-weight: 500;
}

.story-card__trigger {
  color: var(--brand-hover);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* --------------------------------------------------------------------------
   Section 5: Explore Our Blog
   -------------------------------------------------------------------------- */

.section-blog {
  padding-block: 88px;
  background-color: var(--bg-stone);
  border-bottom: 1px solid var(--line);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  border: 1px solid var(--line-strong);
  transition: border-color 0.18s ease;
}

.blog-card:hover {
  border-color: var(--ink);
}

.blog-card__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background-color: var(--bg-sand);
}

.blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.blog-card:hover .blog-card__media img {
  transform: scale(1.03);
}

.blog-card__body {
  padding: 26px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card__kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 12px;
}

.blog-card__kicker span:first-child {
  color: var(--brand-hover);
}

.blog-card__title {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.blog-card__excerpt {
  margin-top: 12px;
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--ink-body);
}

.blog-card__action {
  margin-top: auto;
  padding-top: 20px;
}

.blog-read-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink);
  padding-top: 14px;
  border-top: 1px solid var(--line);
  width: 100%;
  justify-content: space-between;
}

.blog-card:hover .blog-read-btn {
  color: var(--brand-hover);
}

/* --------------------------------------------------------------------------
   Section 6: Architectural CTA Banner
   -------------------------------------------------------------------------- */

.section-cta {
  position: relative;
  background-color: var(--bg-dark);
  border-bottom: 1px solid var(--line-dark);
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.28;
}

.cta-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(19, 22, 19, 0.92) 0%, rgba(19, 22, 19, 0.76) 55%, rgba(19, 22, 19, 0.58) 100%);
}

.cta-inner {
  position: relative;
  z-index: 1;
  padding-block: 88px;
}

.cta-frame {
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 52px;
  background-color: rgba(19, 22, 19, 0.52);
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) auto;
  gap: 40px;
  align-items: center;
}

.cta-title {
  font-size: clamp(30px, 3.5vw, 46px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin-top: 14px;
}

.cta-desc {
  margin-top: 16px;
  font-size: 16.5px;
  line-height: 1.65;
  color: #d7dcd4;
  max-width: 58ch;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 230px;
}

/* --------------------------------------------------------------------------
   Section 7: Client Testimonials
   -------------------------------------------------------------------------- */

.section-testimonials {
  padding-block: 88px;
  background-color: var(--bg);
  border-bottom: 1px solid var(--line);
}

.testimonials-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.testimonials-viewport {
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border: 1px solid var(--line);
  background-color: var(--bg);
}

.testimonials-viewport::-webkit-scrollbar {
  display: none;
}

.testimonials-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 0px) / 3);
}

.review-card {
  padding: 32px 28px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  min-height: 270px;
  background-color: var(--bg);
  transition: background-color 0.16s ease;
}

.review-card:hover {
  background-color: var(--bg-stone);
}

.review-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.review-card__stars {
  display: inline-flex;
  gap: 3px;
  color: var(--brand);
  font-size: 14px;
  letter-spacing: 1px;
}

.review-card__num {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-muted);
}

.review-card__quote {
  font-size: 15.5px;
  line-height: 1.68;
  color: var(--ink);
}

.review-card__author {
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.review-card__name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
}

.review-card__role {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-hover);
}

/* --------------------------------------------------------------------------
   Section 8: Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background-color: var(--bg-dark);
  color: var(--ink-on-dark);
}

.footer-kickoff {
  border-bottom: 1px solid var(--line-dark);
  background-color: var(--bg-dark-2);
}

.footer-kickoff__inner {
  padding-block: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-kickoff__title {
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #ffffff;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.05fr 0.85fr 0.95fr 1.45fr;
  border-inline: 1px solid var(--line-dark);
}

.footer-col {
  padding: 48px 30px;
  border-right: 1px solid var(--line-dark);
}

.footer-col:last-child {
  border-right: none;
}

.footer-logo-plate {
  display: inline-block;
  background-color: #ffffff;
  padding: 10px 14px;
  border: 1px solid var(--line-dark);
}

.footer-logo-plate img {
  height: 44px;
  width: auto;
}

.footer-brand-desc {
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-on-dark-muted);
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
}

.social-btn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-dark);
  background-color: var(--bg-dark-2);
  color: var(--ink-on-dark);
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.social-btn:hover {
  background-color: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
}

.social-btn svg {
  width: 16px;
  height: 16px;
}

.footer-heading {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 22px;
}

.footer-links {
  display: grid;
  gap: 11px;
}

.footer-links a,
.footer-links button {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-on-dark-muted);
  text-align: left;
  transition: color 0.15s ease;
}

.footer-links a:hover,
.footer-links button:hover {
  color: #ffffff;
}

.footer-contact-list {
  display: grid;
  gap: 18px;
}

.footer-contact-item__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-on-dark-muted);
  margin-bottom: 4px;
}

.footer-contact-item__val {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
}

.footer-contact-item__val:hover {
  color: var(--brand);
}

.footer-offices {
  display: grid;
  gap: 18px;
}

.office-item {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-dark);
}

.office-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.office-item__title {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 5px;
}

.office-item__addr {
  font-size: 13px;
  line-height: 1.58;
  color: var(--ink-on-dark-muted);
}

.footer-bottom {
  border-top: 1px solid var(--line-dark);
}

.footer-bottom__inner {
  padding-block: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--ink-on-dark-muted);
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
}

.footer-legal a:hover,
.footer-legal button:hover {
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   Flat Architectural Drawers & Modals (Zero Elevation, Hairline Framed)
   -------------------------------------------------------------------------- */

.overlay-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(19, 22, 19, 0.72);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.overlay-backdrop.is-open {
  display: flex;
}

.modal-sheet {
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  overflow-y: auto;
  background-color: var(--bg);
  border: 1px solid var(--ink);
  display: flex;
  flex-direction: column;
}

.modal-sheet--wide {
  max-width: 1060px;
}

.modal-sheet__head {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 26px;
  background-color: var(--bg-stone);
  border-bottom: 1px solid var(--line-strong);
}

.modal-sheet__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.modal-sheet__body {
  padding: 28px 26px 32px;
}

/* Catalogue Drawer Grid */
.catalogue-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.cat-chip {
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
  background-color: var(--bg);
  color: var(--ink-body);
}

.cat-chip.is-active {
  background-color: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
}

.catalogue-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

/* Detail Modal (Stories / Blogs) */
.detail-hero-img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border: 1px solid var(--line);
  margin-bottom: 24px;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  margin-bottom: 24px;
}

.detail-meta-cell {
  padding: 12px 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background-color: var(--bg-stone);
}

.detail-meta-cell__k {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

.detail-meta-cell__v {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  margin-top: 3px;
}

.detail-prose p {
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--ink-body);
  margin-bottom: 16px;
}

.detail-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.detail-list-box {
  padding: 18px 20px;
  border: 1px solid var(--line);
  background-color: var(--bg-stone);
}

.detail-list-box h4 {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  margin-bottom: 12px;
}

.detail-list-box li {
  font-size: 14px;
  color: var(--ink-body);
  padding-block: 5px;
  border-bottom: 1px solid var(--line);
}

.detail-list-box li:last-child {
  border-bottom: none;
}

/* Contact Inquiry Form */
.inquiry-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-field label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.form-field input,
.form-field select,
.form-field textarea {
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  background-color: var(--bg);
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  color: var(--ink);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--brand);
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 8px;
}

.form-feedback {
  grid-column: 1 / -1;
  padding: 12px 16px;
  border: 1px solid var(--brand-line);
  background-color: var(--brand-soft);
  color: var(--ink);
  font-size: 14px;
  display: none;
}

.form-feedback.is-visible {
  display: block;
}

/* Mobile Navigation Drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 180;
  background-color: rgba(19, 22, 19, 0.65);
  display: none;
  justify-content: flex-end;
}

.mobile-drawer.is-open {
  display: flex;
}

.mobile-drawer__panel {
  width: min(420px, 100%);
  height: 100%;
  background-color: var(--bg);
  border-left: 1px solid var(--ink);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.mobile-drawer__body {
  padding: 18px 22px 32px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-nav-group {
  border-bottom: 1px solid var(--line);
}

.mobile-nav-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 14px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
}

.mobile-nav-sub {
  display: none;
  padding: 4px 0 16px 12px;
  border-left: 2px solid var(--brand);
  margin-bottom: 12px;
}

.mobile-nav-group.is-open .mobile-nav-sub {
  display: grid;
  gap: 10px;
}

.mobile-nav-sub a,
.mobile-nav-sub button {
  font-size: 13.5px;
  color: var(--ink-body);
  text-align: left;
}

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

@media (max-width: 1140px) {
  .main-nav {
    display: none;
  }

  .mobile-toggle {
    display: inline-flex;
  }

  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__content {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 40px 28px;
  }

  .excellence-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .excellence-media-frame {
    max-width: 560px;
  }

  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-col:nth-child(2) {
    border-right: none;
  }

  .footer-col:nth-child(1),
  .footer-col:nth-child(2) {
    border-bottom: 1px solid var(--line-dark);
  }

  .testimonials-track {
    grid-auto-columns: 50%;
  }

  .catalogue-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .topbar__left {
    display: none;
  }

  .topbar__inner {
    justify-content: center;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .section-head-right {
    justify-self: start;
  }

  .categories-grid {
    grid-template-columns: 1fr;
  }

  .stories-grid,
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-frame {
    grid-template-columns: 1fr;
    padding: 36px 28px;
  }

  .cta-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .detail-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-columns {
    grid-template-columns: 1fr;
  }

  .catalogue-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 18px;
    --header-h: 68px;
  }

  .topbar__right {
    gap: 10px;
    justify-content: center;
    padding-block: 6px;
  }

  .topbar__right a[href^="mailto:"],
  .topbar__right .topbar__sep:nth-of-type(2) {
    display: none;
  }

  .hero__ctas .btn {
    width: 100%;
  }

  .brand-logo img {
    height: 40px;
  }

  .downloads-trigger span {
    display: none;
  }

  .downloads-panel {
    right: -48px;
    width: min(320px, calc(100vw - 24px));
  }

  .section-categories,
  .section-excellence,
  .section-stories,
  .section-blog,
  .section-testimonials,
  .cta-inner {
    padding-block: 60px;
  }

  .hero__content {
    padding: 32px 20px;
  }

  .hero__modes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero__mode-btn:nth-child(2) {
    border-right: none;
  }

  .hero__mode-btn:nth-child(1),
  .hero__mode-btn:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }

  .hero__caption {
    display: none;
  }

  .stats-ledger {
    grid-template-columns: 1fr;
  }

  .stories-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .filter-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .filter-tab {
    padding-inline: 8px;
    text-align: center;
    font-size: 11px;
  }

  .testimonials-track {
    grid-auto-columns: 100%;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-col {
    padding: 32px 20px;
    border-right: none;
    border-bottom: 1px solid var(--line-dark);
  }

  .footer-col:last-child {
    border-bottom: none;
  }

  .inquiry-form {
    grid-template-columns: 1fr;
  }

  .catalogue-grid {
    grid-template-columns: 1fr;
  }
}
