:root {
  --bg: #f3f5f7;
  --surface: #ffffff;
  --surface-muted: #e7ebef;
  --surface-dark: #111827;
  --surface-deep: #0b1220;
  --text: #17212b;
  --text-soft: #4a5a69;
  --text-inverse: #e7eef5;
  --line: #ccd6df;
  --accent: #0f8b8d;
  --accent-strong: #0d6f71;
  --copper: #b97732;
  --shadow: 0 18px 40px rgba(12, 22, 34, 0.08);
  --radius: 8px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

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

button,
input,
textarea {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: rgba(243, 245, 247, 0.88);
  border-bottom: 1px solid rgba(204, 214, 223, 0.8);
}

.header-inner,
.footer-inner,
.hero-grid,
.intro-grid,
.contact-grid,
.section-heading {
  display: grid;
  gap: 1.5rem;
}

.header-inner {
  grid-template-columns: auto auto;
  align-items: center;
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.75rem;
  aspect-ratio: 1;
  border-radius: 6px;
  background: linear-gradient(160deg, var(--surface-deep), #1a3244);
  color: var(--text-inverse);
  font-weight: 700;
}

.brand-copy {
  display: grid;
  gap: 0.1rem;
}

.brand-copy strong {
  font-size: 0.98rem;
}

.brand-copy span,
.section-label,
.card-kicker,
.eyebrow {
  color: var(--text-soft);
  font-size: 0.9rem;
}

.primary-nav {
  display: flex;
  justify-content: flex-end;
  gap: 1.5rem;
  align-items: center;
}

.primary-nav a {
  font-weight: 500;
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  justify-self: end;
}

.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 2px;
  margin: 0.27rem auto;
  background: var(--text);
}

.hero {
  padding: 4.5rem 0 3rem;
}

.hero-grid,
.intro-grid,
.contact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.hero-copy h1,
.section h2 {
  margin: 0;
  line-height: 1.1;
}

.hero-copy h1 {
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  /*max-width: 12ch;*/
}

.hero-text,
.section-heading > p,
.intro-grid p,
.notice p,
.site-footer p,
.request-form span,
.library-item p,
.services-grid p,
.design-card p,
.design-card li {
  color: var(--text-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 2rem 0 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.1rem;
  border-radius: 6px;
  border: 1px solid transparent;
  font-weight: 600;
}

.button-primary {
  background: var(--surface-deep);
  color: var(--text-inverse);
}

.button-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

.hero-points {
  display: grid;
  gap: 0.75rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-soft);
}

.hero-points li::before {
  content: "";
  width: 0.6rem;
  aspect-ratio: 1;
  border-radius: 999px;
  background: var(--accent);
  flex: none;
}

.hero-visual {
  min-height: 34rem;
}

.visual-stage {
  position: relative;
  height: 100%;
  min-height: 34rem;
  overflow: hidden;
  border: 1px solid rgba(204, 214, 223, 0.8);
  border-radius: 8px;
  background:
    radial-gradient(circle at 15% 20%, rgba(15, 139, 141, 0.12), transparent 26%),
    linear-gradient(145deg, #fdfefe, #dfe6ed);
  box-shadow: var(--shadow);
}

.visual-stage::before,
.visual-stage::after {
  content: "";
  position: absolute;
  inset: 0;
}

.visual-stage::before {
  background-image:
    linear-gradient(rgba(12, 22, 34, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12, 22, 34, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
}

.visual-stage::after {
  background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.6) 100%);
}

.board,
.spec,
.trace {
  position: absolute;
  z-index: 1;
}

.board {
  border-radius: 8px;
  border: 1px solid rgba(23, 33, 43, 0.08);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1);
}

.board span {
  display: block;
  background: linear-gradient(160deg, #d09a55, var(--copper));
  border-radius: 3px;
}

.board-large {
  top: 15%;
  right: 20%;
  width: 12rem;
  aspect-ratio: 1;
  padding: 1.5rem;
  display: grid;
  gap: 0.35rem;
  grid-template-columns: repeat(2, 1fr);
}

.board-vertical {
  top: 32%;
  right: 5%;
  width: 8rem;
  height: 11rem;
  padding: 1.5rem;
}

.board-array {
  bottom: 18%;
  right: 8%;
  width: 12rem;
  aspect-ratio: 1;
  padding: 1rem;
  display: grid;
  gap: 0.45rem;
  grid-template-columns: repeat(3, 1fr);
  background: #142230;
}

.trace {
  height: 2px;
  transform-origin: left center;
  background: linear-gradient(90deg, rgba(15, 139, 141, 0.15), rgba(15, 139, 141, 0.9));
}

.trace-one {
  top: 40%;
  left: 8%;
  width: 45%;
  transform: rotate(-12deg);
}

.trace-two {
  bottom: 25%;
  left: 12%;
  width: 42%;
  transform: rotate(8deg);
}

.spec {
  min-width: 11rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(15, 139, 141, 0.2);
  border-radius: 8px;
  background: rgba(11, 18, 32, 0.9);
  color: var(--text-inverse);
}

.spec strong,
.spec span {
  display: block;
}

.spec span {
  color: rgba(231, 238, 245, 0.78);
  font-size: 0.92rem;
}

.spec-one {
  top: 14%;
  left: 7%;
}

.spec-two {
  bottom: 14%;
  left: 10%;
}

.section {
  padding: 4.5rem 0;
}

.section-muted {
  background: var(--surface-muted);
}

.section-dark {
  background: var(--surface-dark);
  color: var(--text-inverse);
}

.section-dark .section-label,
.section-dark p,
.section-dark .services-grid p {
  color: rgba(231, 238, 245, 0.72);
}

.section-accent {
  background: linear-gradient(180deg, #e8f3f3, #f8fafb);
}

.section-heading {
  grid-template-columns: 1.2fr 0.8fr;
  align-items: end;
  margin-bottom: 2rem;
}

.section h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  /*max-width: 16ch;*/
}

.card-grid,
.services-grid,
.library-grid {
  display: grid;
  gap: 1rem;
}

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

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

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

.design-card,
.services-grid article,
.library-item,
.request-form {
  border-radius: 8px;
}

.design-card,
.library-item,
.request-form {
  background: var(--surface);
  border: 1px solid var(--line);
}

.design-card,
.services-grid article,
.library-item {
  padding: 1.4rem;
}

.design-card h3,
.services-grid h3,
.library-item h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.design-card ul {
  padding-left: 1rem;
  margin: 1rem 0 0;
}

.card-link {
  display: inline-flex;
  margin-top: 1rem;
  font-weight: 600;
  color: var(--accent-strong);
}

.section-product {
  background: #eef2f5;
}

.product-heading h2 {
  max-width: 14ch;
}

.product-summary,
.product-gallery,
.metric-grid {
  display: grid;
  gap: 1rem;
}

.product-summary {
  grid-template-columns: 0.8fr 1.2fr;
  align-items: start;
  margin-bottom: 1rem;
}

.metric-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 1.5rem 0;
}

.metric-card,
.media-card,
.gallery-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.metric-card {
  padding: 1rem;
}

.metric-label {
  display: block;
  color: var(--text-soft);
  font-size: 0.88rem;
  margin-bottom: 0.35rem;
}

.metric-card strong {
  font-size: 1.35rem;
  line-height: 1.15;
}

.product-points {
  margin: 0;
  padding-left: 1rem;
  color: var(--text-soft);
}

.product-hero-media {
  display: grid;
  gap: 0.35rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.media-card,
.gallery-card {
  overflow: hidden;
}

.media-card img,
.gallery-card img {
  width: 100%;
  display: block;
  background: #dfe6ed;
}

.media-card figcaption,
.gallery-card figcaption {
  padding: 0.9rem 1rem 1rem;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.compare-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.compare-card-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1rem 0.5rem;
}

.compare-card-header strong {
  display: block;
  font-size: 1.05rem;
}

.compare-card-header p {
  margin: 0.3rem 0 0;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.compare-labels {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--text-soft);
  font-size: 0.83rem;
  font-weight: 600;
  text-transform: uppercase;
}

.compare-labels span:last-child {
  color: var(--text);
}

.slider-compare-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.slider-compare-stage {
  position: relative;
  overflow: hidden;
  background: #dfe6ed;
}

.slider-compare-base,
.slider-compare-overlay img {
  width: 100%;
  display: block;
  background: #dfe6ed;
}

.slider-compare-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  overflow: hidden;
  clip-path: inset(0 calc(100% - var(--compare-position, 50%)) 0 0);
}

.slider-compare-overlay img {
  width: 100%;
}

.slider-compare-card.has-fixed-height .slider-compare-stage {
  min-height: var(--compare-fixed-height);
  height: var(--compare-fixed-height);
  max-height: var(--compare-fixed-height);
}

.slider-compare-card.has-fixed-width .slider-compare-stage {
  min-width: var(--compare-fixed-width);
  width: var(--compare-fixed-width);
  max-width: var(--compare-fixed-width);
}

.slider-compare-card.has-fixed-width {
  min-width: var(--compare-fixed-width);
  width: var(--compare-fixed-width);
  max-width: var(--compare-fixed-width);
}

.slider-compare-card.has-fixed-height .slider-compare-base,
.slider-compare-card.has-fixed-height .slider-compare-overlay img {
  height: 100%;
  object-fit: fill;
}

.slider-compare-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--compare-position, 50%);
  width: 0;
  border-left: 3px solid #4404f5;
  transform: translateX(-50%);
  pointer-events: none;
}

.slider-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  border: 2px solid #4404f5;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 24px rgba(12, 22, 34, 0.18);
  transform: translate(-50%, -50%);
}

.slider-handle::before,
.slider-handle::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 0.55rem;
  height: 0.55rem;
  border-top: 2px solid #4404f5;
  border-right: 2px solid #4404f5;
}

.slider-handle::before {
  left: 0.58rem;
  transform: translateY(-50%) rotate(-135deg);
}

.slider-handle::after {
  right: 0.58rem;
  transform: translateY(-50%) rotate(45deg);
}

.slider-compare-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

.compare-toggle {
  display: inline-flex;
  flex-wrap: wrap;
  padding: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f6f8fa;
  flex: none;
  gap: 0.2rem;
}

.compare-toggle-button {
  min-width: 7rem;
  min-height: 2.2rem;
  padding: 0.45rem 0.9rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-soft);
  font-weight: 600;
  cursor: pointer;
}

.compare-toggle-button.is-active {
  background: var(--surface-deep);
  color: var(--text-inverse);
}

.compare-panels {
  display: block;
}

.compare-panel img {
  width: 100%;
  display: block;
  background: #dfe6ed;
}

.compare-card.has-fixed-height .compare-panels,
.compare-card.has-fixed-height .compare-panel,
.compare-card.has-fixed-height .compare-panel img {
  min-height: var(--compare-fixed-height);
  height: var(--compare-fixed-height);
  max-height: var(--compare-fixed-height);
}

.compare-card.has-fixed-width .compare-panels,
.compare-card.has-fixed-width .compare-panel,
.compare-card.has-fixed-width .compare-panel img {
  min-width: var(--compare-fixed-width);
  width: var(--compare-fixed-width);
  max-width: var(--compare-fixed-width);
}

.compare-card.has-adaptive-height .compare-panels,
.compare-card.has-adaptive-height .compare-panel,
.compare-card.has-adaptive-height .compare-panel img {
  min-height: 0;
  height: auto;
  max-height: none;
}

.compare-card.has-fixed-width {
  min-width: var(--compare-fixed-width);
  width: var(--compare-fixed-width);
  max-width: var(--compare-fixed-width);
}

@media (max-width: 760px) {
  .compare-toggle {
    width: 100%;
  }

  .compare-toggle-button {
    min-width: 0;
  }
}

.data-card-body {
  padding: 1rem;
}

.data-card h3 {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
}

.table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}

.data-table th,
.data-table td {
  /*padding: 0.75rem 0.8rem;*/
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.data-table thead th {
  font-size: 0.83rem;
  color: var(--text-soft);
  font-weight: 600;
  background: #f6f8fa;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.product-gallery {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.gallery-card-wide {
  grid-column: span 2;
}

.gallery-mount {
  min-width: 0;
}

.gallery-mount-wide {
  grid-column: span 2;
}

.services-grid article {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.notice {
  margin-top: 2rem;
  padding: 1.25rem 1.35rem;
  border-left: 4px solid var(--copper);
  background: rgba(185, 119, 50, 0.08);
}

.about-grid,
.about-card {
  display: grid;
  gap: 1.5rem;
}

.about-grid {
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
}

.about-card {
  grid-template-columns: auto 1fr;
  padding: 1.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.profile-placeholder {
  display: block;
  width: 9rem;
  aspect-ratio: 1;
  border-radius: 999px;
  border: 1px dashed var(--line);
  background: linear-gradient(180deg, #f7f9fb, #e6edf3);
  overflow: hidden;
}

.profile-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.about-copy h3 {
  margin: 0;
  font-size: 1.95rem;
  line-height: 1.05;
}

.about-role {
  margin: 0.45rem 0 0;
  color: var(--accent-strong);
  font-weight: 600;
  font-size: 1.02rem;
}

.about-header {
  margin-bottom: 1rem;
}

.about-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1rem;
}

.about-link {
  color: var(--text);
  font-weight: 500;
}

.about-summary {
  margin: 0 0 1rem;
  max-width: 52ch;
}

.about-tools {
  margin: 0;
  color: var(--text-soft);
}

.request-form {
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.field-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.request-form label {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.request-form input,
.request-form textarea {
  width: 100%;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfd;
  color: var(--text);
}

.site-footer {
  padding: 1.5rem 0 2rem;
  border-top: 1px solid rgba(204, 214, 223, 0.8);
}

.footer-inner {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
}

@media (max-width: 1024px) {
  .hero-grid,
  .intro-grid,
  .section-heading,
  .contact-grid,
  .card-grid,
  .services-grid,
  .library-grid,
  .about-grid,
  .product-summary,
  .product-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-copy h1 {
    /*max-width: 14ch;*/
    /*max-height: 2ch;*/
  }
}

@media (max-width: 760px) {
  .header-inner {
    grid-template-columns: auto auto;
  }

  .nav-toggle {
    display: block;
  }

  .primary-nav {
    grid-column: 1 / -1;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 0.5rem;
  }

  .primary-nav.open {
    display: flex;
  }

  .hero,
  .section {
    padding: 3.5rem 0;
  }

  .hero-grid,
  .intro-grid,
  .section-heading,
  .contact-grid,
  .card-grid,
  .services-grid,
  .library-grid,
  .about-grid,
  .field-grid,
  .footer-inner,
  .product-summary,
  .product-gallery,
  .product-hero-media,
  .metric-grid,
  .about-card {
    grid-template-columns: 1fr;
  }

  .gallery-card-wide {
    grid-column: auto;
  }

  .gallery-mount-wide {
    grid-column: auto;
  }

  .compare-card-header {
    flex-direction: column;
    align-items: stretch;
  }

  .compare-toggle {
    width: 100%;
  }

  .compare-toggle-button {
    min-width: 0;
  }

  .hero-copy h1 {
    font-size: clamp(2.4rem, 14vw, 3.4rem);
  }

  .hero-visual,
  .visual-stage {
    min-height: 24rem;
  }

  .board-large {
    width: 9rem;
  }

  .board-vertical {
    width: 6rem;
    height: 9rem;
  }

  .board-array {
    width: 9rem;
  }

  .spec {
    min-width: 0;
    max-width: 10rem;
  }
}
