:root {
  --ink: #08111f;
  --ink-soft: #172235;
  --slate: #5c687a;
  --line: #dfe5ec;
  --surface: #f4f7fa;
  --white: #ffffff;
  --brand: #ed3042;
  --brand-dark: #c91c2d;
  --tech: #1688dc;
  --tech-soft: #e7f4ff;
  --night: #071421;
  --night-2: #0b2134;
  --shadow-sm: 0 12px 32px rgba(16, 35, 55, 0.08);
  --shadow-lg: 0 28px 72px rgba(2, 14, 26, 0.2);
  --radius-sm: 12px;
  --radius: 22px;
  --radius-lg: 34px;
  --container: 1200px;
  --header-height: 82px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family:
    Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", Inter, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}

body.menu-open,
body.modal-open {
  overflow: hidden;
}

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

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

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

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

button {
  border: 0;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  line-height: 1.2;
  letter-spacing: -0.035em;
}

p:last-child {
  margin-bottom: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 9999;
  padding: 10px 16px;
  color: var(--white);
  background: var(--ink);
  border-radius: 8px;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

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

.container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

.section {
  padding: 110px 0;
}

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

.section--night {
  color: var(--white);
  background:
    radial-gradient(
      circle at 82% 8%,
      rgba(22, 136, 220, 0.24),
      transparent 32%
    ),
    radial-gradient(circle at 4% 90%, rgba(237, 48, 66, 0.13), transparent 30%),
    var(--night);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 46px;
}

.section-heading__copy {
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  color: var(--tech);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 26px;
  height: 2px;
  content: "";
  background: currentColor;
}

.section--night .eyebrow,
.page-hero .eyebrow,
.hero .eyebrow {
  color: #74c7ff;
}

.section-title {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.45rem);
  font-weight: 800;
}

.section-lead {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--slate);
  font-size: 1.08rem;
}

.section--night .section-lead {
  color: #aebdca;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 23px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 750;
  line-height: 1;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--brand {
  color: var(--white);
  background: var(--brand);
  box-shadow: 0 12px 24px rgba(237, 48, 66, 0.25);
}

.button--brand:hover {
  background: var(--brand-dark);
}

.button--ghost {
  color: var(--ink);
  background: var(--white);
  border-color: var(--line);
}

.button--ghost:hover {
  border-color: var(--ink);
}

.button--dark-ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.25);
}

.button--dark-ghost:hover {
  background: rgba(255, 255, 255, 0.13);
}

.button svg {
  width: 18px;
  height: 18px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--tech);
  font-weight: 800;
}

.text-link::after {
  content: "→";
  transition: transform 0.2s ease;
}

.text-link:hover::after {
  transform: translateX(4px);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  height: var(--header-height);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(8, 17, 31, 0.08);
  box-shadow: 0 4px 20px rgba(8, 17, 31, 0.04);
  backdrop-filter: blur(16px);
  transition:
    height 0.25s ease,
    color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.site-header.is-scrolled,
.site-header.site-header--solid {
  height: 70px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.98);
  border-bottom-color: rgba(8, 17, 31, 0.08);
  box-shadow: 0 8px 30px rgba(8, 17, 31, 0.1);
  backdrop-filter: blur(16px);
}

.site-header__inner {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  position: relative;
  display: block;
  width: 156px;
  height: 64px;
  overflow: hidden;
  flex: 0 0 auto;
}

.brand__mark {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 156px;
  height: 64px;
  background: url("../../img/logo_infraway.png") left -5px / 182px auto
    no-repeat;
}

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

.brand__text span {
  color: inherit;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav__link {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 15px;
  font-size: 0.96rem;
  font-weight: 700;
}

.site-nav__link::after {
  position: absolute;
  right: 15px;
  bottom: 5px;
  left: 15px;
  height: 2px;
  content: "";
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.2s ease;
}

.site-nav__link:hover::after,
.site-nav__link.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-header__contact {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 18px;
  color: var(--white);
  background: var(--brand);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 800;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 50%;
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  content: "";
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.menu-toggle span {
  position: relative;
}

.menu-toggle span::before {
  position: absolute;
  top: -6px;
}

.menu-toggle span::after {
  position: absolute;
  top: 6px;
}

.menu-toggle.is-open span {
  background: transparent;
}

.menu-toggle.is-open span::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle.is-open span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Home hero */
.hero {
  position: relative;
  min-height: 780px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background: var(--night);
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(
      90deg,
      rgba(3, 13, 24, 0.96) 0%,
      rgba(3, 13, 24, 0.78) 44%,
      rgba(3, 13, 24, 0.22) 100%
    ),
    url("../../img/carousel-1.jpg") center / cover no-repeat;
}

.hero::after {
  position: absolute;
  top: -30%;
  right: -12%;
  width: 720px;
  height: 720px;
  content: "";
  border: 1px solid rgba(98, 199, 255, 0.25);
  border-radius: 50%;
  box-shadow:
    0 0 0 80px rgba(98, 199, 255, 0.025),
    0 0 0 160px rgba(98, 199, 255, 0.02);
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(310px, 0.75fr);
  align-items: end;
  gap: 80px;
  padding-top: 150px;
  padding-bottom: 90px;
}

.hero__copy {
  max-width: 790px;
}

.hero__title {
  margin-bottom: 27px;
  font-size: clamp(3.15rem, 7vw, 6.2rem);
  font-weight: 850;
  line-height: 1.02;
  letter-spacing: -0.065em;
}

.hero__title em {
  color: #72caff;
  font-style: normal;
}

.hero__lead {
  max-width: 650px;
  margin-bottom: 38px;
  color: #c5d3df;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-panel {
  position: relative;
  padding: 28px;
  background: rgba(8, 25, 39, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px);
}

.hero-panel__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #9fe3bb;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.status::before {
  width: 8px;
  height: 8px;
  content: "";
  background: #55d58a;
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(85, 213, 138, 0.1);
}

.hero-panel__label {
  color: #8ea6b8;
  font-size: 0.8rem;
}

.hero-panel__metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 18px;
}

.hero-panel__metric strong {
  display: block;
  margin-bottom: 3px;
  color: var(--white);
  font-size: 1.8rem;
  line-height: 1;
}

.hero-panel__metric span {
  color: #91a6b6;
  font-size: 0.8rem;
}

.hero-panel__bar {
  position: relative;
  height: 5px;
  margin-top: 24px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 99px;
}

.hero-panel__bar::after {
  display: block;
  width: 78%;
  height: 100%;
  content: "";
  background: linear-gradient(90deg, var(--tech), #67d5ff);
}

/* Cards and grids */
.metric-strip {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: -44px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(8, 17, 31, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.metric-strip__item {
  padding: 30px;
}

.metric-strip__item + .metric-strip__item {
  border-left: 1px solid var(--line);
}

.metric-strip__item strong {
  display: block;
  margin-bottom: 5px;
  font-size: 1.8rem;
  line-height: 1;
}

.metric-strip__item span {
  color: var(--slate);
  font-size: 0.88rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-card {
  position: relative;
  min-height: 315px;
  padding: 30px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.feature-card:hover {
  border-color: rgba(22, 136, 220, 0.35);
  box-shadow: var(--shadow-sm);
  transform: translateY(-7px);
}

.feature-card__number {
  display: block;
  margin-bottom: 50px;
  color: var(--tech);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.feature-card h3 {
  margin-bottom: 14px;
  font-size: 1.35rem;
}

.feature-card p {
  margin-bottom: 0;
  color: var(--slate);
  font-size: 0.94rem;
}

.feature-card::after {
  position: absolute;
  right: -55px;
  bottom: -65px;
  width: 145px;
  height: 145px;
  content: "";
  border: 18px solid var(--tech-soft);
  border-radius: 50%;
}

.split-visual {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  align-items: stretch;
  gap: 24px;
}

.visual-card {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.visual-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.visual-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 40%, rgba(1, 10, 18, 0.87));
}

.visual-card__caption {
  position: absolute;
  right: 35px;
  bottom: 32px;
  left: 35px;
  z-index: 1;
  color: var(--white);
}

.visual-card__caption small {
  display: block;
  margin-bottom: 7px;
  color: #8dd3ff;
  font-weight: 800;
}

.visual-card__caption h3 {
  margin-bottom: 0;
  font-size: 1.75rem;
}

.stack-cards {
  display: grid;
  gap: 18px;
}

.stack-card {
  display: grid;
  grid-template-columns: 138px 1fr;
  gap: 23px;
  align-items: center;
  min-height: 161px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.stack-card:hover {
  box-shadow: var(--shadow-sm);
  transform: translateX(5px);
}

.stack-card img {
  width: 138px;
  height: 124px;
  object-fit: cover;
  border-radius: 14px;
}

.stack-card small {
  color: var(--tech);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.stack-card h3 {
  margin: 7px 0 5px;
  font-size: 1.15rem;
}

.stack-card p {
  color: var(--slate);
  font-size: 0.86rem;
}

/* Project cards */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.project-card {
  position: relative;
  min-height: 365px;
  overflow: hidden;
  color: var(--white);
  background: var(--ink-soft);
  border-radius: var(--radius);
  isolation: isolate;
}

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

.project-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.75, 0.25, 1);
}

.project-card::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(
    180deg,
    rgba(3, 12, 21, 0.04) 15%,
    rgba(3, 12, 21, 0.9) 100%
  );
}

.project-card:hover img {
  transform: scale(1.045);
}

.project-card__body {
  position: absolute;
  right: 24px;
  bottom: 24px;
  left: 24px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.project-card__category {
  display: block;
  margin-bottom: 7px;
  color: #8cd4ff;
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-card h3 {
  margin-bottom: 0;
  font-size: 1.45rem;
}

.play-button {
  display: inline-flex;
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.play-button:hover {
  color: var(--white);
  background: var(--brand);
  transform: scale(1.07);
}

.play-button svg {
  width: 18px;
  height: 18px;
  margin-left: 2px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 34px;
}

.filter-button {
  padding: 10px 17px;
  color: var(--slate);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 750;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.filter-button:hover,
.filter-button.is-active {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}

.project-item.is-hidden {
  display: none;
}

/* Content and inner pages */
.page-hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background: var(--night);
}

.page-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(3, 13, 24, 0.94), rgba(3, 13, 24, 0.48)),
    var(--page-image, url("../../img/breadcrumb-bg.jpg")) center / cover
      no-repeat;
}

.page-hero::after {
  position: absolute;
  right: -120px;
  bottom: -240px;
  width: 520px;
  height: 520px;
  content: "";
  border: 1px solid rgba(107, 202, 255, 0.28);
  border-radius: 50%;
  box-shadow: 0 0 0 90px rgba(107, 202, 255, 0.035);
}

.page-hero__content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  padding-top: 170px;
  padding-bottom: 72px;
}

.page-hero h1 {
  margin-bottom: 20px;
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  font-weight: 850;
}

.page-hero p {
  max-width: 700px;
  margin-bottom: 0;
  color: #c2d0dc;
  font-size: 1.13rem;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  color: #91a7b7;
  font-size: 0.8rem;
}

.breadcrumb span::before {
  margin-right: 8px;
  content: "/";
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(310px, 0.8fr) minmax(0, 1.2fr);
  gap: 70px;
  align-items: center;
}

.story-visual {
  position: relative;
}

.story-visual img {
  width: 100%;
  min-height: 520px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.story-visual__badge {
  position: absolute;
  right: -25px;
  bottom: 35px;
  width: 155px;
  padding: 22px;
  color: var(--white);
  background: var(--brand);
  border-radius: var(--radius);
  box-shadow: 0 18px 35px rgba(237, 48, 66, 0.25);
}

.story-visual__badge strong {
  display: block;
  font-size: 1.6rem;
}

.story-visual__badge span {
  font-size: 0.8rem;
}

.story-copy h2 {
  margin-bottom: 24px;
  font-size: clamp(2.1rem, 4vw, 3.5rem);
}

.story-copy p {
  color: var(--slate);
}

.check-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 24px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 27px;
  font-size: 0.93rem;
  font-weight: 700;
}

.check-list li::before {
  position: absolute;
  top: 5px;
  left: 0;
  width: 17px;
  height: 17px;
  content: "✓";
  color: var(--white);
  background: var(--tech);
  border-radius: 50%;
  font-size: 0.68rem;
  line-height: 17px;
  text-align: center;
}

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

.content-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.content-card__head {
  padding: 28px 30px 23px;
}

.content-card__head small {
  display: block;
  margin-bottom: 9px;
  color: var(--tech);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.content-card__head h3 {
  margin-bottom: 9px;
  font-size: 1.4rem;
}

.content-card__head p {
  color: var(--slate);
  font-size: 0.9rem;
}

.content-card__image {
  padding: 0 18px 18px;
}

.content-card__image img {
  width: 100%;
  max-height: 540px;
  object-fit: contain;
  background: var(--white);
  border-radius: 14px;
}

.content-card--full {
  grid-column: 1 / -1;
}

.content-card--full .content-card__image img {
  max-height: none;
}

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

.certificate-card {
  display: flex;
  min-height: 390px;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.certificate-card__image {
  min-height: 250px;
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  padding: 18px;
  overflow: hidden;
  background: #f8fafc;
}

.certificate-card__image img {
  width: 100%;
  height: 250px;
  object-fit: contain;
}

.certificate-card__body {
  padding: 24px;
  border-top: 1px solid var(--line);
}

.certificate-card__body small {
  color: var(--tech);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.certificate-card__body h3 {
  margin: 7px 0 0;
  font-size: 1.1rem;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.service-item {
  position: relative;
  min-height: 260px;
  padding: 32px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.service-item:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-5px);
}

.service-item__icon {
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  color: var(--tech);
  background: var(--tech-soft);
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 900;
}

.service-item h3 {
  margin-bottom: 12px;
  font-size: 1.3rem;
}

.service-item p {
  color: var(--slate);
  font-size: 0.93rem;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
}

.process-item {
  min-height: 250px;
  padding: 30px;
  background: var(--night);
}

.process-item span {
  display: inline-flex;
  width: 37px;
  height: 37px;
  align-items: center;
  justify-content: center;
  margin-bottom: 55px;
  color: #77cbff;
  border: 1px solid rgba(119, 203, 255, 0.4);
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 800;
}

.process-item h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.process-item p {
  color: #91a6b7;
  font-size: 0.88rem;
}

.tab-list {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  padding: 7px;
  overflow-x: auto;
  background: var(--surface);
  border-radius: 999px;
}

.tab-button {
  min-height: 48px;
  flex: 1 0 auto;
  padding: 0 22px;
  color: var(--slate);
  background: transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
}

.tab-button.is-active {
  color: var(--white);
  background: var(--ink);
  box-shadow: 0 8px 20px rgba(8, 17, 31, 0.17);
}

.tab-panel[hidden] {
  display: none;
}

.product-intro {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 40px;
}

.product-intro h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.product-intro p {
  color: var(--slate);
}

.explain-image {
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.explain-image img {
  width: 100%;
  max-height: 840px;
  object-fit: contain;
}

.explain-image img[src*="flir.jpg"] {
  width: min(100%, 946px);
  max-height: none;
  height: auto;
  margin-inline: auto;
}

.explain-image + .explain-image {
  margin-top: 24px;
}

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

.slide-grid .explain-image {
  margin-top: 0;
}

[data-tab-panel] {
  padding-top: 22px;
}

.product-showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  min-height: 590px;
  margin-top: 10px;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 8% 8%, rgba(22, 136, 220, 0.2), transparent 30%),
    var(--night);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.product-showcase__copy {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  padding: 64px;
}

.product-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  color: #79cdff;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.product-label::before {
  width: 22px;
  height: 2px;
  content: "";
  background: currentColor;
}

.product-showcase h2 {
  margin-bottom: 23px;
  font-size: clamp(2.1rem, 4vw, 3.55rem);
  font-weight: 820;
}

.product-showcase__copy > p {
  max-width: 570px;
  margin-bottom: 28px;
  color: #b4c3cf;
  font-size: 1.02rem;
}

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

.product-tags span {
  padding: 8px 12px;
  color: #d3dee6;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.product-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 36px;
}

.product-actions .text-link {
  color: #79cdff;
}

.product-showcase__visual {
  position: relative;
  min-height: 590px;
  overflow: hidden;
  background: #eef4f8;
}

.product-showcase__visual img {
  width: 100%;
  height: 100%;
}

.product-showcase__visual--diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 34px;
  background: var(--white);
}

.product-showcase__visual--diagram img {
  object-fit: contain;
}

.product-showcase__visual--brochure img {
  object-fit: cover;
  object-position: center 54%;
}

.product-showcase__visual--thermal img {
  object-fit: cover;
  object-position: center top;
}

.product-showcase__visual::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.product-stat-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: -35px 34px 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.product-stat-grid > div {
  padding: 27px 24px;
}

.product-stat-grid > div + div {
  border-left: 1px solid var(--line);
}

.product-stat-grid strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.55rem;
  line-height: 1.1;
}

.product-stat-grid span {
  color: var(--slate);
  font-size: 0.8rem;
}

.product-detail-block,
.product-gallery,
.brochure-details {
  margin-top: 92px;
}

.product-detail-block--soft {
  margin-right: -40px;
  margin-left: -40px;
  padding: 58px 40px;
  background: var(--surface);
  border-radius: var(--radius-lg);
}

.product-detail-heading {
  max-width: 740px;
  margin-bottom: 38px;
}

.product-detail-heading h3 {
  margin-bottom: 14px;
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
}

.product-detail-heading p {
  color: var(--slate);
}

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

.product-feature {
  min-height: 220px;
  padding: 27px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.product-feature:hover {
  border-color: rgba(22, 136, 220, 0.35);
  box-shadow: var(--shadow-sm);
  transform: translateY(-4px);
}

.product-feature > span {
  display: inline-flex;
  width: 37px;
  height: 37px;
  align-items: center;
  justify-content: center;
  margin-bottom: 38px;
  color: var(--tech);
  background: var(--tech-soft);
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 850;
}

.product-feature h4 {
  margin-bottom: 10px;
  font-size: 1.14rem;
}

.product-feature p {
  color: var(--slate);
  font-size: 0.88rem;
}

.product-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  gap: 1px;
}

.product-flow > div {
  position: relative;
  min-height: 205px;
  padding: 28px;
  background: var(--white);
}

.product-flow > div:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: -13px;
  z-index: 1;
  display: inline-flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  content: "→";
  color: var(--tech);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 0.75rem;
  transform: translateY(-50%);
}

.product-flow span {
  display: block;
  margin-bottom: 48px;
  color: var(--tech);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.product-flow strong,
.product-flow small {
  display: block;
}

.product-flow strong {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.product-flow small {
  color: var(--slate);
  font-size: 0.78rem;
}

.product-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.product-steps li {
  display: flex;
  min-height: 84px;
  align-items: center;
  gap: 15px;
  padding: 18px;
  background: var(--surface);
  border-radius: 14px;
  font-size: 0.9rem;
  font-weight: 700;
}

.product-steps span {
  display: inline-flex;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: var(--ink);
  border-radius: 50%;
  font-size: 0.7rem;
}

.application-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.application-grid span {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-weight: 750;
  text-align: center;
}

.product-screen-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.product-screen-grid figure {
  margin: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.product-screen-grid img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.product-screen-grid figcaption {
  padding: 17px 20px;
  color: var(--slate);
  background: var(--white);
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
  font-weight: 750;
}

.brochure-details {
  padding: 0 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.brochure-details summary {
  position: relative;
  padding: 24px 38px 24px 0;
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

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

.brochure-details summary::after {
  position: absolute;
  top: 50%;
  right: 0;
  content: "+";
  color: var(--tech);
  font-size: 1.6rem;
  line-height: 1;
  transform: translateY(-50%);
}

.brochure-details[open] summary::after {
  content: "−";
}

.brochure-details > p {
  margin-bottom: 24px;
  color: var(--slate);
  font-size: 0.9rem;
}

.brochure-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding-bottom: 28px;
}

.brochure-grid img,
.brochure-long {
  width: 100%;
  height: auto;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.brochure-long {
  display: block;
  max-width: 946px;
  margin: 0 auto 28px;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 28px;
}

.contact-panel {
  padding: 42px;
  color: var(--white);
  background:
    radial-gradient(
      circle at 100% 0,
      rgba(22, 136, 220, 0.28),
      transparent 38%
    ),
    var(--night);
  border-radius: var(--radius-lg);
}

.contact-panel h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.contact-panel > p {
  margin-bottom: 45px;
  color: #aabac8;
}

.contact-list {
  display: grid;
  gap: 22px;
  margin: 0;
}

.contact-list__item {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.contact-list dt {
  margin-bottom: 5px;
  color: #79ccff;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-list dd {
  margin: 0;
  color: var(--white);
  font-weight: 650;
}

.map-card {
  min-height: 620px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.map-card iframe {
  width: 100%;
  height: 100%;
  min-height: 620px;
  border: 0;
}

.cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 55px 60px;
  color: var(--white);
  background:
    radial-gradient(
      circle at 92% 10%,
      rgba(111, 206, 255, 0.3),
      transparent 30%
    ),
    linear-gradient(115deg, #071421, #0b2a44);
  border-radius: var(--radius-lg);
}

.cta-banner h2 {
  max-width: 720px;
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
}

.cta-banner p {
  color: #aabcca;
}

/* Modal */
.media-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background: rgba(1, 8, 15, 0.86);
  backdrop-filter: blur(12px);
}

.media-modal.is-open {
  display: flex;
}

.media-modal__dialog {
  width: min(1100px, 100%);
  max-height: calc(100vh - 60px);
  overflow: auto;
  color: var(--white);
  background: #050c13;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.media-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
}

.media-modal__head h2 {
  margin: 0;
  font-size: 1.1rem;
}

.media-modal__close {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.4rem;
}

.media-modal video {
  width: 100%;
  max-height: calc(100vh - 145px);
  background: #000;
  aspect-ratio: 16 / 9;
}

.media-modal__notice {
  padding: 13px 22px 17px;
  color: #899baa;
  font-size: 0.78rem;
}

/* Footer */
.site-footer {
  color: #9cabb8;
  background: #050d15;
}

.site-footer__main {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 65px;
  padding: 70px 0 55px;
}

.site-footer .brand {
  display: none;
}

.site-footer__about {
  max-width: 440px;
  font-size: 0.9rem;
}

.site-footer h3 {
  margin-bottom: 19px;
  color: var(--white);
  font-size: 0.9rem;
  letter-spacing: 0;
}

.footer-links {
  display: grid;
  gap: 9px;
  font-size: 0.88rem;
}

.footer-links a:hover {
  color: var(--white);
}

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.78rem;
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 800;
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: var(--ink);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1050px) {
  .site-header__contact {
    display: none;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .hero-panel {
    max-width: 520px;
  }

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

  .split-visual,
  .story-grid {
    grid-template-columns: 1fr;
  }

  .story-visual {
    max-width: 720px;
  }

  .story-visual__badge {
    right: 25px;
  }

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

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

  .product-intro {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .product-showcase {
    grid-template-columns: 1fr;
  }

  .product-showcase__visual {
    min-height: 520px;
  }

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

@media (max-width: 820px) {
  :root {
    --header-height: 70px;
  }

  .container {
    width: min(calc(100% - 36px), var(--container));
  }

  .section {
    padding: 80px 0;
  }

  .site-nav {
    position: fixed;
    top: 70px;
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 14px 18px 26px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(8, 17, 31, 0.12);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav__link {
    min-height: 54px;
    padding: 0 10px;
    border-bottom: 1px solid var(--line);
  }

  .site-nav__link::after {
    display: none;
  }

  .site-nav__link.is-active {
    color: var(--brand);
  }

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

  .hero {
    min-height: 790px;
  }

  .hero::before {
    background:
      linear-gradient(90deg, rgba(3, 13, 24, 0.95), rgba(3, 13, 24, 0.62)),
      url("../../img/carousel-1.jpg") 60% center / cover no-repeat;
  }

  .hero__inner {
    padding-top: 130px;
    padding-bottom: 70px;
  }

  .hero__title {
    font-size: clamp(2.85rem, 12vw, 4.6rem);
  }

  .metric-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .metric-strip__item:nth-child(3) {
    border-left: 0;
  }

  .metric-strip__item:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .content-grid,
  .service-list,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .content-card--full {
    grid-column: auto;
  }

  .product-showcase__copy {
    padding: 50px 38px;
  }

  .product-stat-grid {
    grid-template-columns: repeat(2, 1fr);
    margin-right: 20px;
    margin-left: 20px;
  }

  .product-stat-grid > div:nth-child(3) {
    border-left: 0;
  }

  .product-stat-grid > div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .product-detail-block--soft {
    margin-right: 0;
    margin-left: 0;
    padding: 45px 30px;
  }

  .product-flow,
  .product-steps,
  .application-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-flow > div:nth-child(2)::after {
    display: none;
  }

  .contact-panel,
  .cta-banner {
    padding: 38px 30px;
  }

  .cta-banner {
    align-items: start;
    flex-direction: column;
  }

  .site-footer__main {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 15px;
  }

  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .section {
    padding: 66px 0;
  }

  .brand {
    width: 142px;
    height: 58px;
  }

  .brand__mark {
    left: 0;
    width: 142px;
    height: 58px;
    background-position-y: -4px;
    background-size: 164px auto;
  }

  .hero {
    min-height: 820px;
  }

  .hero__actions .button {
    width: 100%;
  }

  .hero-panel {
    padding: 23px;
  }

  .metric-strip {
    margin-top: -28px;
  }

  .metric-strip__item {
    padding: 22px 18px;
  }

  .metric-strip__item strong {
    font-size: 1.42rem;
  }

  .feature-grid,
  .certificate-grid,
  .project-grid,
  .slide-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

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

  .visual-card {
    min-height: 420px;
  }

  .stack-card {
    grid-template-columns: 106px 1fr;
    gap: 16px;
  }

  .stack-card img {
    width: 106px;
    height: 106px;
  }

  .page-hero {
    min-height: 430px;
  }

  .page-hero__content {
    padding-top: 135px;
    padding-bottom: 55px;
  }

  .page-hero h1 {
    font-size: clamp(2.5rem, 13vw, 3.7rem);
  }

  .story-visual img {
    min-height: 420px;
  }

  .story-visual__badge {
    right: 15px;
    bottom: 15px;
  }

  .check-list {
    grid-template-columns: 1fr;
  }

  .certificate-card__image img {
    height: 280px;
  }

  .tab-list {
    margin-right: -14px;
    margin-left: -14px;
    border-radius: 0;
  }

  .product-showcase {
    min-height: 0;
    border-radius: var(--radius);
  }

  .product-showcase__copy {
    padding: 40px 26px;
  }

  .product-showcase__visual {
    min-height: 420px;
  }

  .product-stat-grid {
    margin-top: -20px;
    margin-right: 12px;
    margin-left: 12px;
  }

  .product-stat-grid > div {
    padding: 21px 16px;
  }

  .product-stat-grid strong {
    font-size: 1.25rem;
  }

  .product-detail-block,
  .product-gallery,
  .brochure-details {
    margin-top: 65px;
  }

  .product-feature-grid,
  .product-flow,
  .product-steps,
  .application-grid,
  .product-screen-grid,
  .brochure-grid {
    grid-template-columns: 1fr;
  }

  .product-flow > div:not(:last-child)::after {
    display: none;
  }

  .product-flow > div {
    min-height: 170px;
  }

  .product-flow span {
    margin-bottom: 30px;
  }

  .product-detail-block--soft {
    padding: 36px 18px;
  }

  .media-modal {
    padding: 0;
  }

  .media-modal__dialog {
    max-height: 100vh;
    border-radius: 0;
  }

  .media-modal video {
    max-height: calc(100vh - 130px);
  }

  .map-card,
  .map-card iframe {
    min-height: 460px;
  }

  .site-footer__main {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .site-footer__brand {
    grid-column: auto;
  }

  .site-footer__bottom {
    align-items: start;
    flex-direction: column;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
