/* Metacortex — sistema visual flat, ortogonal e modular */
:root {
  --gray-950: #181D26;
  --gray-925: #1C252B;
  --gray-900: #23272D;
  --gray-850: #2B333C;
  --gray-800: #2E3741;
  --gray-750: #343B45;
  --gray-700: #3A424C;
  --gray-650: #444B54;
  --gray-600: #4B535A;
  --gray-550: #555B64;
  --gray-300: #8B8F95;
  --gray-150: #CBD0D4;
  --white-cold: #F7FBFE;
  --gradient-signal: linear-gradient(90deg, #2AFA9A 0%, #53DD96 32%, #57FC57 64%, #92F748 100%);
  --gradient-signal-deep: linear-gradient(90deg, rgba(42, 250, 154, .22) 0%, rgba(83, 221, 150, .18) 32%, rgba(87, 252, 87, .18) 64%, rgba(146, 247, 72, .22) 100%);
  --line: rgba(203, 208, 212, .16);
  --line-strong: rgba(203, 208, 212, .28);
  --content: 1320px;
  --header-height: 64px;
  color-scheme: dark;
}

*, *::before, *::after {
  box-sizing: border-box;
  border-radius: 0 !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
  background: var(--gray-950);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--gray-950);
  color: var(--gray-150);
  font-family: 'Geist Sans', Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.62;
  letter-spacing: -.004em;
  padding-bottom: 88px;
}

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

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

a:hover {
  color: var(--white-cold);
}

button, summary, a {
  -webkit-tap-highlight-color: transparent;
}

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

::selection {
  color: var(--gray-950);
  background: #92F748;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 12px 16px;
  border: 1px solid var(--white-cold);
  background: var(--gray-650);
  color: var(--white-cold);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-shell {
  min-width: 0;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--line-strong);
  background: var(--gray-925);
}

.site-header::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--gradient-signal);
}

.brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white-cold);
  text-decoration: none;
}

.brand-mark {
  position: relative;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  overflow: hidden;
  background: var(--gray-900);
}

.brand-mark img {
  width: 58px;
  max-width: none;
  height: 40px;
  object-fit: cover;
  object-position: center;
  transform: translateX(-9px);
  filter: contrast(1.45) saturate(1.15) brightness(.82);
}

.brand-copy {
  display: grid;
  min-width: 0;
  line-height: 1.12;
}

.brand-copy strong {
  font-size: 15px;
  font-weight: 560;
  letter-spacing: -.01em;
}

.brand-copy small {
  margin-top: 4px;
  overflow: hidden;
  color: var(--gray-300);
  font-size: 9px;
  font-weight: 540;
  letter-spacing: .08em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-details {
  position: static;
}

.nav-details summary {
  min-width: 82px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  background: var(--gray-850);
  color: var(--white-cold);
  cursor: pointer;
  font-size: 13px;
  font-weight: 520;
  list-style: none;
}

.nav-details summary::-webkit-details-marker {
  display: none;
}

.menu-indicator {
  position: relative;
  width: 14px;
  height: 14px;
  border-top: 1px solid var(--gray-150);
  border-right: 1px solid var(--gray-150);
}

.nav-details[open] .menu-indicator {
  border-top: 0;
  border-right: 0;
  border-bottom: 1px solid var(--gray-150);
  border-left: 1px solid var(--gray-150);
}

.nav-content {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  padding: 8px 16px 16px;
  border-bottom: 1px solid var(--line-strong);
  background: var(--gray-850);
}

.nav-content nav ul {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.nav-content nav a {
  position: relative;
  min-height: 50px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  color: var(--gray-150);
  font-size: 14px;
  font-weight: 480;
  text-decoration: none;
}

.nav-content nav a::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 0;
  background: var(--gradient-signal);
}

.nav-content nav a:hover,
.nav-content nav a:focus-visible {
  background: var(--gray-750);
  color: var(--white-cold);
}

.nav-content nav a:hover::before,
.nav-content nav a:focus-visible::before {
  width: 3px;
}

.rail-cta {
  width: 100%;
  margin-top: 12px;
}

main {
  min-width: 0;
}

.section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  scroll-margin-top: calc(var(--header-height) + 16px);
  padding: 88px 16px;
  border-bottom: 1px solid var(--line);
  background-color: var(--gray-900);
}

.section-alt {
  background-color: var(--gray-850);
}

.section::before {
  content: '';
  position: absolute;
  z-index: -2;
  top: 24px;
  right: 0;
  width: min(34vw, 360px);
  height: 240px;
  opacity: .45;
  background-image: linear-gradient(rgba(203, 208, 212, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(203, 208, 212, .045) 1px, transparent 1px);
  background-size: 40px 40px;
}

.section::after {
  content: '';
  position: absolute;
  z-index: 1;
  right: 16px;
  bottom: 0;
  width: min(184px, 42vw);
  height: 3px;
  background: var(--gradient-signal);
}

.section:target {
  border-left: 3px solid transparent;
  border-image: var(--gradient-signal) 1;
}

.section-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--content);
  margin: 0 auto;
}

.motif {
  position: absolute;
  z-index: 0;
  top: 40px;
  right: 8px;
  width: 180px;
  height: 120px;
  color: var(--gray-150);
  opacity: .065;
  pointer-events: none;
}

.motif rect,
.motif line,
.motif polyline {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.hero {
  padding-top: 72px;
  background: var(--gray-850);
}

.hero::after {
  right: auto;
  left: 16px;
  width: min(280px, 64vw);
}

.hero-layout,
.split-layout,
.architecture-layout,
.expertise-layout,
.control-layout,
.contact-layout {
  display: grid;
  gap: 40px;
}

.hero-copy {
  align-self: center;
}

.eyebrow,
.diagram-label,
.class-label {
  margin: 0 0 14px;
  color: var(--gray-300);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .11em;
  line-height: 1.3;
  text-transform: uppercase;
}

.class-label,
.diagram-label {
  display: block;
  margin-bottom: 10px;
}

h1, h2, h3, p {
  overflow-wrap: break-word;
}

h1, h2, h3 {
  margin-top: 0;
  color: var(--white-cold);
  font-weight: 480;
}

h1 {
  max-width: 920px;
  margin-bottom: 24px;
  font-size: clamp(2.35rem, 10.3vw, 4.85rem);
  line-height: .99;
  letter-spacing: -.04em;
}

h2 {
  max-width: 900px;
  margin-bottom: 24px;
  font-size: clamp(1.9rem, 7.6vw, 3.35rem);
  line-height: 1.04;
  letter-spacing: -.032em;
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(1.18rem, 4.6vw, 1.55rem);
  line-height: 1.18;
  letter-spacing: -.018em;
}

p {
  max-width: 72ch;
  margin-top: 0;
  margin-bottom: 18px;
}

.lead {
  color: var(--gray-150);
  font-size: clamp(1.08rem, 3.5vw, 1.32rem);
  line-height: 1.5;
  letter-spacing: -.01em;
}

.support-line {
  margin-top: 28px;
  padding-left: 16px;
  border-left: 3px solid transparent;
  border-image: var(--gradient-signal) 1;
  color: var(--white-cold);
  font-size: 17px;
  font-weight: 480;
}

.section-head {
  max-width: 920px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.section-actions {
  margin-top: 40px;
}

.btn {
  position: relative;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px 13px;
  border: 1px solid var(--line-strong);
  background: var(--gray-750);
  color: var(--white-cold);
  font-size: 14px;
  font-weight: 520;
  line-height: 1.25;
  text-align: left;
  text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease;
}

.btn::after {
  content: '';
  position: absolute;
  right: -1px;
  bottom: -1px;
  left: -1px;
  height: 2px;
  background: var(--gradient-signal);
}

.btn:hover {
  border-color: rgba(247, 251, 254, .45);
  background: var(--gray-650);
  color: var(--white-cold);
}

.btn:hover::after {
  height: 3px;
}

.btn:active {
  padding-top: 12px;
  padding-bottom: 12px;
}

.btn-secondary {
  background: transparent;
}

.media-frame {
  position: relative;
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--line-strong);
  background: var(--gray-950);
}

.media-frame::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: var(--gradient-signal);
}

.media-frame img {
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
  filter: grayscale(1) saturate(.25) contrast(1.12);
  opacity: .72;
}

.media-frame--hero {
  align-self: stretch;
  min-height: 280px;
}

.media-frame--hero img {
  min-height: 280px;
  filter: grayscale(.68) saturate(.55) contrast(1.08);
  opacity: .78;
}

.media-frame figcaption,
.media-sequence > figcaption,
.cloud-diagram > figcaption,
.memory-diagram > figcaption,
.architecture-diagram > figcaption {
  color: var(--gray-300);
  font-size: 12px;
  line-height: 1.5;
}

.media-frame figcaption {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  background: var(--gray-950);
}

.media-sequence {
  display: grid;
  gap: 12px;
  margin: 40px 0 0;
}

.media-sequence > figcaption {
  grid-column: 1 / -1;
  margin-top: 4px;
}

.media-sequence .media-frame img {
  aspect-ratio: 16 / 9;
}

.media-sequence--architecture .media-frame img {
  aspect-ratio: 4 / 3;
}

.media-frame--portrait img {
  object-position: center 24%;
}

.problem-field {
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
  background: var(--gray-800);
}

.problem-field article {
  min-height: 180px;
  padding: 24px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.problem-field p,
.product-item p,
.applications-grid p,
.method-grid p,
.architecture-diagram p,
.memory-diagram p {
  margin-bottom: 0;
}

.wide-field {
  grid-column: 1 / -1;
}

.cloud-diagram {
  position: relative;
  display: grid;
  gap: 16px;
  margin: 48px 0 0;
}

.cloud-base,
.cloud-inference {
  min-height: 220px;
  padding: 28px;
  border: 1px solid var(--line-strong);
  background: var(--gray-750);
}

.cloud-base {
  background: var(--gray-700);
}

.cloud-inference {
  position: relative;
  background: var(--gray-800);
}

.cloud-inference::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--gradient-signal);
}

.cloud-link {
  position: relative;
  height: 24px;
}

.cloud-link::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 40px;
  width: 3px;
  background: var(--gradient-signal);
}

.cloud-diagram > figcaption {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.offer-field {
  display: grid;
  gap: 24px;
  margin-top: 48px;
  padding: 28px;
  border: 1px solid var(--line-strong);
  border-top: 3px solid transparent;
  border-image: var(--gradient-signal) 1;
  background: var(--gray-650);
}

.offer-field p {
  margin-bottom: 0;
}

.product-grid {
  display: grid;
  margin-top: 16px;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}

.product-item {
  min-height: 290px;
  padding: 28px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: var(--gray-800);
}

.product-item:nth-child(2),
.product-item:nth-child(3) {
  background: var(--gray-750);
}

.control-band {
  display: grid;
  gap: 20px;
  padding: 28px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
  background: var(--gray-650);
}

.control-band p {
  margin-bottom: 0;
}

.memory-types {
  display: grid;
  margin-top: 48px;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}

.memory-types article {
  padding: 26px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: var(--gray-750);
}

.memory-types article:nth-child(2) {
  background: var(--gray-700);
}

.memory-types article:nth-child(3) {
  background: var(--gray-650);
}

.memory-types p {
  margin-bottom: 0;
}

.memory-diagram {
  margin: 48px 0 0;
}

.memory-diagram ol,
.architecture-diagram ol,
.method-grid {
  margin: 0;
  padding: 0;
  list-style: none;
}

.memory-diagram ol {
  position: relative;
  display: grid;
  gap: 12px;
}

.memory-diagram ol::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 19px;
  width: 3px;
  background: var(--gradient-signal);
}

.memory-diagram li,
.method-grid li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line-strong);
  background: var(--gray-800);
}

.memory-diagram li > span,
.method-grid li > span,
.architecture-diagram li > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  background: var(--gray-950);
  color: var(--white-cold);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
}

.memory-diagram > figcaption,
.architecture-diagram > figcaption {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--gray-950);
}

.architecture-diagram {
  margin: 36px 0 0;
}

.architecture-diagram ol {
  border-top: 1px solid var(--line-strong);
  border-right: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}

.architecture-diagram li {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 16px;
  padding: 22px;
  border-bottom: 1px solid var(--line-strong);
  background: var(--gray-750);
}

.architecture-diagram li:nth-child(even) {
  background: var(--gray-800);
}

.architecture-diagram li:nth-child(6)::after {
  content: '';
  position: absolute;
  top: -1px;
  bottom: -1px;
  left: 0;
  width: 3px;
  background: var(--gradient-signal);
}

.applications-grid {
  display: grid;
  margin-top: 48px;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}

.applications-grid article {
  min-height: 230px;
  padding: 26px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: var(--gray-750);
}

.applications-grid article:nth-child(even) {
  background: var(--gray-700);
}

.limit-note {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--gray-300);
  font-size: 14px;
}

.risk-band {
  margin-top: 16px;
  padding: 28px;
  border: 1px solid var(--line-strong);
  border-left: 3px solid transparent;
  border-image: var(--gradient-signal) 1;
  background: var(--gray-650);
}

.risk-band p {
  margin-bottom: 0;
}

.demonstrator-field {
  align-self: start;
  padding: 28px;
  border: 1px solid var(--line-strong);
  border-top: 3px solid transparent;
  border-image: var(--gradient-signal) 1;
  background: var(--gray-750);
}

.demonstrator-field p:last-child {
  margin-bottom: 0;
}

.method-grid {
  display: grid;
  gap: 12px;
  margin-top: 48px;
}

.method-grid li {
  position: relative;
  min-height: 190px;
  background: var(--gray-750);
}

.method-grid li::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: var(--gradient-signal);
}

.method-grid li:nth-child(even) {
  background: var(--gray-700);
}

.control-section {
  background: var(--gray-650);
}

.principles-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(24, 29, 38, .32);
  list-style: none;
}

.principles-list li {
  position: relative;
  padding: 20px 20px 20px 38px;
  border-right: 1px solid rgba(24, 29, 38, .32);
  border-bottom: 1px solid rgba(24, 29, 38, .32);
  border-left: 1px solid rgba(24, 29, 38, .32);
  color: var(--white-cold);
}

.principles-list li::before {
  content: '';
  position: absolute;
  top: 27px;
  left: 18px;
  width: 7px;
  height: 7px;
  background: var(--gradient-signal);
}

.closing-statement {
  grid-column: 1 / -1;
  max-width: none;
  margin: 0;
  padding: 24px;
  border: 1px solid rgba(24, 29, 38, .32);
  background: var(--gray-850);
  color: var(--white-cold);
  font-size: 18px;
}

.contact-section {
  padding-bottom: 112px;
}

.contact-actions {
  display: grid;
  gap: 12px;
  align-content: start;
}

.contact-actions .btn {
  width: 100%;
  justify-content: flex-start;
}

.contact-number {
  margin-top: 28px;
  padding: 18px 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  color: var(--gray-300);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
}

.contact-number a {
  display: block;
  margin-top: 6px;
  color: var(--white-cold);
  font-size: 16px;
}

.site-footer {
  display: grid;
  gap: 16px;
  padding: 32px 16px 112px;
  border-top: 1px solid var(--line-strong);
  background: var(--gray-925);
  color: var(--gray-300);
  font-size: 13px;
}

.site-footer div {
  display: grid;
}

.site-footer strong {
  color: var(--white-cold);
  font-size: 16px;
  font-weight: 520;
}

.site-footer p {
  margin: 0;
}

.fixed-whatsapp {
  position: fixed;
  z-index: 30;
  right: 16px;
  bottom: max(16px, env(safe-area-inset-bottom));
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  background: var(--gray-650);
  color: var(--white-cold);
  font-size: 14px;
  font-weight: 540;
  text-decoration: none;
}

.fixed-whatsapp::after {
  content: '';
  position: absolute;
  right: -1px;
  bottom: -1px;
  left: -1px;
  height: 3px;
  background: var(--gradient-signal);
}

.fixed-whatsapp span {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gray-150);
  font-size: 12px;
}

.fixed-whatsapp:hover {
  border-color: var(--gray-150);
  background: var(--gray-550);
}

@media (min-width: 560px) {
  .section {
    padding-right: 24px;
    padding-left: 24px;
  }

  .hero::after {
    left: 24px;
  }

  .site-header,
  .nav-content,
  .site-footer {
    padding-right: 24px;
    padding-left: 24px;
  }

  .problem-field,
  .product-grid,
  .memory-types,
  .applications-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .media-sequence--two,
  .media-sequence--three,
  .media-sequence--architecture {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .media-sequence--three > :nth-child(3),
  .media-sequence--architecture > :first-child {
    grid-column: 1 / -1;
  }

  .actions .btn {
    width: auto;
  }
}

@media (min-width: 768px) {
  :root {
    --header-height: 72px;
  }

  .section {
    padding-top: 112px;
    padding-bottom: 112px;
  }

  .hero-layout,
  .split-layout,
  .expertise-layout,
  .contact-layout {
    grid-template-columns: minmax(0, 7fr) minmax(280px, 5fr);
    align-items: start;
  }

  .hero-layout {
    align-items: stretch;
  }

  .hero-copy {
    padding-right: 24px;
  }

  .wide-field,
  .expertise-layout > .media-sequence {
    grid-column: 1 / -1;
  }

  .cloud-diagram {
    grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1.2fr);
    align-items: stretch;
  }

  .cloud-link {
    height: auto;
  }

  .cloud-link::before {
    top: 50%;
    right: 0;
    bottom: auto;
    left: 0;
    width: auto;
    height: 3px;
  }

  .cloud-diagram > figcaption {
    grid-column: 1 / -1;
  }

  .offer-field,
  .control-band {
    grid-template-columns: minmax(220px, 4fr) minmax(0, 8fr);
    align-items: start;
  }

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

  .memory-diagram ol {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
  }

  .memory-diagram ol::before {
    top: 18px;
    right: 20px;
    bottom: auto;
    left: 20px;
    width: auto;
    height: 3px;
  }

  .memory-diagram li {
    min-height: 245px;
    grid-template-columns: 1fr;
    align-content: start;
    border-right: 0;
  }

  .memory-diagram li:last-child {
    border-right: 1px solid var(--line-strong);
  }

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

  .applications-grid article {
    grid-column: span 2;
  }

  .applications-grid .application-large {
    grid-column: span 3;
  }

  .applications-grid article:last-child {
    grid-column: span 2;
  }

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

  .control-layout {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }

  .site-footer {
    grid-template-columns: 1fr auto auto;
    align-items: end;
    padding-bottom: 104px;
  }
}

@media (min-width: 1024px) {
  :root {
    --rail-width: 232px;
    --header-height: 0px;
  }

  html {
    scroll-padding-top: 24px;
  }

  body {
    padding-bottom: 0;
  }

  .site-shell {
    display: grid;
    grid-template-columns: var(--rail-width) minmax(0, 1fr);
    align-items: start;
  }

  .site-header {
    position: sticky;
    top: 0;
    min-height: 100vh;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 40px;
    padding: 28px 20px 24px;
    border-right: 1px solid var(--line-strong);
    border-bottom: 0;
  }

  .site-header::after {
    top: 0;
    right: -1px;
    bottom: 0;
    left: auto;
    width: 3px;
    height: auto;
  }

  .brand {
    align-items: flex-start;
  }

  .brand-mark {
    flex-basis: 46px;
    width: 46px;
    height: 46px;
  }

  .brand-mark img {
    width: 66px;
    height: 46px;
    transform: translateX(-10px);
  }

  .brand-copy {
    padding-top: 3px;
  }

  .nav-details {
    min-height: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  .nav-details summary {
    display: none;
  }

  .nav-details:not([open]) > .nav-content,
  .nav-details[open] > .nav-content {
    display: flex;
  }

  .nav-content {
    position: static;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 32px;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .nav-content nav ul {
    border-top: 0;
  }

  .nav-content nav a {
    min-height: 48px;
    padding-right: 12px;
    padding-left: 14px;
    border-bottom-color: rgba(203, 208, 212, .1);
    font-size: 13px;
  }

  .rail-cta {
    min-height: 58px;
    justify-content: flex-start;
    margin-top: auto;
    font-size: 12px;
  }

  main {
    grid-column: 2;
  }

  .section {
    scroll-margin-top: 24px;
    padding: 128px 48px;
  }

  .section::after {
    right: 48px;
  }

  .hero {
    min-height: 760px;
    display: grid;
    align-items: center;
    padding-top: 104px;
    padding-bottom: 104px;
  }

  .hero::after {
    right: auto;
    left: 48px;
  }

  .motif {
    top: 64px;
    right: 36px;
    width: 240px;
    height: 160px;
  }

  .hero-layout {
    grid-template-columns: minmax(0, 8fr) minmax(300px, 4fr);
    gap: 48px;
  }

  h1 {
    font-size: clamp(3.65rem, 5.2vw, 5.1rem);
  }

  h2 {
    font-size: clamp(2.45rem, 3.6vw, 3.55rem);
  }

  .media-frame--hero,
  .media-frame--hero img {
    min-height: 470px;
  }

  .split-layout {
    grid-template-columns: minmax(0, 7fr) minmax(360px, 5fr);
    gap: 56px;
  }

  .problem-field {
    align-self: start;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .problem-field article {
    min-height: 230px;
  }

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

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

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

  .media-sequence--three > :nth-child(3) {
    grid-column: auto;
  }

  .architecture-layout {
    grid-template-columns: minmax(0, 8fr) minmax(300px, 4fr);
    gap: 24px 40px;
  }

  .architecture-layout > .section-head {
    grid-column: 1 / -1;
  }

  .architecture-diagram {
    margin-top: 20px;
  }

  .architecture-diagram li {
    grid-template-columns: 48px minmax(0, 1fr);
    min-height: 112px;
    align-items: start;
    padding: 22px 26px;
  }

  .media-sequence--architecture {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    margin-top: 20px;
  }

  .media-sequence--architecture > :first-child {
    grid-column: 1 / -1;
  }

  .expertise-layout {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 56px;
  }

  .expertise-layout > .media-sequence {
    grid-column: 1 / -1;
  }

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

  .contact-layout {
    grid-template-columns: minmax(0, 7fr) minmax(320px, 5fr);
    gap: 64px;
  }

  .site-footer {
    grid-column: 2;
    padding: 40px 48px 112px;
  }

  .fixed-whatsapp {
    right: 32px;
    bottom: 24px;
  }
}

@media (min-width: 1440px) {
  :root {
    --rail-width: 248px;
  }

  .section {
    padding-right: 64px;
    padding-left: 64px;
  }

  .section::after {
    right: 64px;
  }

  .hero::after {
    left: 64px;
  }

  .site-footer {
    padding-right: 64px;
    padding-left: 64px;
  }
}

@media (max-width: 420px) {
  .brand-copy small {
    max-width: 132px;
  }

  .actions,
  .actions .btn {
    width: 100%;
  }

  .btn {
    justify-content: flex-start;
  }

  .fixed-whatsapp {
    right: 16px;
    padding-right: 14px;
    padding-left: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
  }
}

@media print {
  body {
    padding: 0;
    background: #fff;
    color: #181D26;
  }

  .site-header,
  .fixed-whatsapp,
  .motif,
  .media-sequence,
  .media-frame {
    display: none !important;
  }

  .site-shell {
    display: block;
  }

  .section,
  .section-alt,
  .control-section {
    padding: 32px 0;
    border-bottom: 1px solid #8B8F95;
    background: #fff;
    color: #181D26;
  }

  h1, h2, h3, .lead, .closing-statement {
    color: #181D26;
  }

  .btn {
    border: 1px solid #181D26;
    color: #181D26;
  }
}