/* Base reset, type, and document chrome. Content is visible without JS. */

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

html {
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background-color: #ffffff;
  background-image: radial-gradient(rgba(40, 24, 72, 0.13) 1.25px, transparent 1.25px);
  background-size: 22px 22px;
  text-rendering: optimizeLegibility;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
}

[hidden] {
  display: none !important;
}

img {
  display: block;
}

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

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
blockquote,
dl {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--color-dark);
}

h1 {
  font-size: clamp(2.4rem, 7vw, 4.75rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.9rem, 4vw, 3.15rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.15;
}

p + p {
  margin-top: 0.85rem;
}

a {
  color: var(--color-link);
}

a:hover {
  color: var(--color-button-hover);
}

:focus {
  outline: none;
}

:focus-visible {
  outline: var(--focus-dark);
  outline-offset: 3px;
}

::selection {
  background: var(--color-lilac);
  color: var(--color-text);
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 1000;
  padding: 0.55rem 0.9rem;
  background: var(--color-white);
  color: var(--color-text);
  border-radius: 0.4rem;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 0.55rem;
}

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

@media (min-width: 768px) {
  .wrap {
    width: min(var(--wrap), calc(100% - 3rem));
  }
}

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

.eyebrow {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-link);
}

.lead {
  max-width: 42rem;
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

.section-intro {
  max-width: 40rem;
  margin-bottom: 2.75rem;
}

.section-intro h2 {
  margin-bottom: 0.85rem;
}

.stack {
  display: grid;
  gap: 0.85rem;
}

.cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.ph {
  display: inline-block;
  padding: 0.2rem 0.45rem;
  border: 1px dashed var(--color-deep);
  border-radius: 0.35rem;
  background: var(--color-placeholder-bg);
  color: var(--color-placeholder-text);
  font-weight: 600;
  font-size: 0.92em;
  line-height: 1.45;
}

.section-dark .ph {
  background: rgba(248, 248, 248, 0.95);
  color: var(--color-placeholder-text);
}


/* ATROBOT: Global square-corner design */
img,
video,
picture,
figure,
iframe,
canvas {
  border-radius: 0 !important;
}

.thumb,
.hero-figure,
.card,
.card .thumb,
.surveillance-hover-card,
.surveillance-image,
.dm-arch-board,
.dm-arch-item,
.dm-arch-core,
.dm-arch-core-stage {
  border-radius: 0 !important;
}

/* Remove rounded corners from media containers */
.media-frame,
.image-frame,
.video-frame,
.comparison-container,
.comparison-slider,
.comparison-slider img,
.comparison-slider video {
  border-radius: 0 !important;
}


/* Square edges for cards, panels, and media frames */
.card,
.thumb,
.hero-figure,
.dm-arch-board,
.dm-arch-col,
.dm-arch-core,
.dm-arch-item,
.dm-arch-core-stage,
.service-grid .card {
  border-radius: 0 !important;
}
