:root {
  --blue: #1499e8;
  --blue-dark: #087bc1;
  --ink: #252525;
  --muted: #777;
  --line: #e7e7e7;
  --paper: #fff;
  --soft: #f7f7f7;
  --font-sans: 'Raleway', Arial, sans-serif;
}

@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 400;
  src: url('/assets/fonts/raleway-regular.ttf') format('truetype');
  font-display: swap;
}

@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 700;
  src: url('/assets/fonts/raleway-bold.ttf') format('truetype');
  font-display: swap;
}

html {
  scroll-behavior: smooth;
}

body.chanadian-home {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
}

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

.chanadian-home a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 2000;
  padding: 8px 12px;
  color: #fff;
  background: var(--blue-dark);
}

.skip-link:focus {
  top: 16px;
}

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

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  background: rgba(0, 0, 0, 0.15);
}

.site-header.navigation-sticky {
  position: fixed;
  background: rgba(5, 18, 29, 0.2);
  transition: background-color 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

.site-header.navigation-sticky.is-stuck {
  border-bottom-color: rgba(255, 255, 255, 0.1);
  background: rgba(5, 18, 29, 0.94);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
}

.brand img {
  display: block;
  width: auto;
  max-width: 180px;
  max-height: 46px;
}

.site-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-menu a {
  padding: 26px 15px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease;
}

.site-menu a:hover,
.site-menu a:focus-visible {
  color: #fff;
  background: var(--blue);
  outline: none;
}

#about,
#service,
#portfolio,
#contact {
  scroll-margin-top: 84px;
}

.nav-toggle {
  display: none;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  color: #fff;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  color: #fff;
  background: #172536;
}

.hero-slides,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  display: grid;
  place-items: center;
  padding: 100px 56px 70px;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transition: opacity 700ms ease;
}

.hero-slide::before {
  position: absolute;
  inset: 0;
  content: '';
  background: linear-gradient(180deg, rgba(2, 13, 25, 0.38), rgba(2, 13, 25, 0.76));
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(880px, 100%);
  text-align: center;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.45);
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  font-size: clamp(14px, 2vw, 22px);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-content h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 92px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hero-content h1 em {
  color: var(--blue);
  font-style: normal;
}

.hero-lead {
  margin: 20px 0 34px;
  font-size: clamp(18px, 2.5vw, 30px);
  line-height: 1.35;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 14px 40px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.button-primary {
  color: #fff;
  background: var(--blue);
}

.button-primary:hover,
.button-primary:focus-visible {
  color: #fff;
  background: var(--blue-dark);
  transform: translateY(-2px);
  outline: none;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 54px;
  height: 72px;
  margin-top: -36px;
  border: 0;
  color: #fff;
  background: rgba(0, 0, 0, 0.2);
  font-size: 42px;
  font-weight: 300;
  cursor: pointer;
}

.hero-arrow:hover,
.hero-arrow:focus-visible {
  background: var(--blue);
  outline: none;
}

.hero-arrow-prev {
  left: 18px;
}

.hero-arrow-next {
  right: 18px;
}

.hero-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  z-index: 2;
  display: flex;
  gap: 9px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 1px solid #fff;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.hero-dot.is-active {
  background: var(--blue);
}

.section {
  padding: 92px 20px;
}

.section-light {
  color: var(--ink);
  background: var(--paper);
}

.content-width {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.section-heading {
  width: min(820px, 100%);
  margin: 0 auto 52px;
  text-align: center;
}

.section-heading h2 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 400;
  line-height: 1.1;
  text-transform: uppercase;
}

.section-kicker,
.section-subtitle {
  color: var(--blue);
}

.section-subtitle {
  margin: 0 0 24px;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-intro {
  margin: 0 auto;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.section-heading::after {
  display: block;
  width: 72px;
  height: 2px;
  margin: 28px auto 0;
  content: '';
  background: var(--blue);
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 650ms ease, transform 650ms cubic-bezier(0.2, 0.65, 0.3, 1);
}

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

.about-content img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

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

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

.service-card {
  display: grid;
  grid-template-columns: minmax(150px, 38%) 1fr;
  gap: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  background: #fff;
}

.service-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.service-card h3 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.2;
}

.service-card p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.text-link {
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--blue-dark);
  outline: none;
}

.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 34px;
  flex-wrap: wrap;
}

.filter-button {
  padding: 10px 15px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: #fff;
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
}

.filter-button:hover,
.filter-button:focus-visible,
.filter-button.is-active {
  border-color: var(--blue);
  color: #fff;
  background: var(--blue);
  outline: none;
}

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

.portfolio-more {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

.portfolio-item {
  position: relative;
  display: block;
  min-height: 190px;
  overflow: hidden;
  color: #fff;
  background: #1b2732;
  text-decoration: none;
}

.portfolio-item[hidden] {
  display: none;
}

.portfolio-item img {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
  transition: transform 300ms ease;
}

.portfolio-item::after {
  position: absolute;
  inset: 0;
  content: '';
  background: rgba(42, 47, 51, 0.78);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.portfolio-item span {
  position: absolute;
  right: 16px;
  bottom: 14px;
  left: 16px;
  z-index: 1;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.portfolio-item strong,
.portfolio-item small {
  display: block;
}

.portfolio-item strong {
  font-size: 14px;
  line-height: 1.35;
}

.portfolio-item small {
  margin-top: 4px;
  color: #bde8ff;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portfolio-item:hover::after,
.portfolio-item:focus-visible::after,
.portfolio-item:hover span,
.portfolio-item:focus-visible span {
  opacity: 1;
}

.portfolio-item:hover span,
.portfolio-item:focus-visible span {
  transform: translateY(0);
}

.portfolio-item:hover img,
.portfolio-item:focus-visible img {
  transform: scale(1.06);
}

.portfolio-item:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

.stats-section,
.contact-section {
  position: relative;
  overflow: hidden;
  color: #fff;
  background-position: center;
  background-size: cover;
}

.stats-section {
  background-color: #172536;
}

.contact-section {
  background-color: #172536;
}

.stats-overlay,
.contact-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
}

.stats-content,
.contact-content {
  position: relative;
  z-index: 1;
}

.stats-content {
  padding: 92px 20px;
}

.section-heading-dark {
  margin-bottom: 44px;
}

.section-heading-dark h2,
.section-heading-dark .section-subtitle {
  color: #fff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item {
  padding: 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.35);
}

.stat-item:first-child {
  border-left: 0;
}

.stat-item strong,
.stat-item span {
  display: block;
}

.stat-item strong {
  color: var(--blue);
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 400;
  line-height: 1;
}

.stat-item span {
  margin-top: 12px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-content {
  padding: 100px 20px;
  text-align: center;
}

.contact-icon {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 48px;
  line-height: 1;
}

.contact-number {
  color: #fff;
  font-size: clamp(28px, 5vw, 58px);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.contact-content > p:last-child {
  margin: 10px 0 0;
  font-size: 18px;
}

.site-footer {
  position: relative;
  padding: 36px 20px;
  color: #9b9b9b;
  background: #101010;
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.06em;
}

.back-to-top {
  position: absolute;
  top: -22px;
  left: 50%;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #fff;
  background: var(--blue);
  font-size: 24px;
  text-decoration: none;
  transform: translateX(-50%);
}

@media (max-width: 900px) {
  .service-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 700px) {
  .site-header-inner {
    min-height: 64px;
  }

  .brand img {
    max-width: 140px;
  }

  .nav-toggle {
    display: block;
  }

  .site-menu {
    position: absolute;
    top: 64px;
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(12, 24, 36, 0.96);
  }

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

  .site-menu a {
    padding: 13px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .hero {
    min-height: 600px;
  }

  .hero-slide {
    padding-right: 44px;
    padding-left: 44px;
  }

  .hero-arrow {
    width: 34px;
    font-size: 26px;
  }

  .hero-arrow-prev {
    left: 4px;
  }

  .hero-arrow-next {
    right: 4px;
  }

  .section {
    padding: 68px 16px;
  }

  .service-card {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .service-card img {
    height: 210px;
  }

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

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

  .stat-item:nth-child(3) {
    border-left: 0;
  }
}

@media (max-width: 460px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-item,
  .portfolio-item img {
    min-height: 220px;
    height: 220px;
  }
}

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

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

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

.archive-header {
  position: absolute;
}

.archive-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background-position: center;
  background-size: cover;
}

.archive-hero::before,
.detail-hero::before {
  position: absolute;
  inset: 0;
  content: '';
  background: rgba(4, 18, 31, 0.76);
}

.archive-hero .content-width,
.detail-hero .content-width {
  position: relative;
  z-index: 1;
}

.archive-hero {
  padding: 170px 20px 90px;
  text-align: center;
}

.archive-hero h1,
.detail-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(42px, 7vw, 78px);
  font-weight: 400;
  line-height: 1.1;
  text-transform: uppercase;
}

.archive-hero p:last-child {
  width: min(760px, 100%);
  margin: 0 auto;
  color: #e4f4ff;
  font-size: 17px;
}

.detail-hero {
  padding: 150px 20px 76px;
}

.detail-back-link {
  display: inline-block;
  margin-bottom: 26px;
  color: #c9edff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.detail-back-link:hover,
.detail-back-link:focus-visible {
  color: #fff;
  outline: none;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(220px, 0.8fr);
  grid-template-areas:
    "gallery sidebar"
    "description sidebar";
  gap: 42px;
}

.detail-gallery {
  display: grid;
  grid-area: gallery;
  gap: 22px;
}

.detail-gallery img {
  display: block;
  width: 100%;
  max-height: 680px;
  object-fit: contain;
  background: #f1f5f8;
}

.detail-sidebar {
  grid-area: sidebar;
  align-self: start;
  border-top: 2px solid var(--blue);
}

.detail-meta p {
  display: grid;
  gap: 5px;
  padding: 16px 0;
  margin: 0;
  border-bottom: 1px solid var(--line);
}

.detail-meta strong,
.detail-tags strong {
  color: var(--blue);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-meta span {
  color: var(--muted);
  font-size: 14px;
}

.detail-tags {
  padding-top: 22px;
}

.detail-tags > div {
  display: flex;
  gap: 7px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.detail-tags span {
  padding: 5px 8px;
  color: #fff;
  background: var(--blue);
  font-size: 11px;
}

.detail-description {
  grid-area: description;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.detail-description h2 {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: 28px;
  font-weight: 400;
  text-transform: uppercase;
}

.detail-description p {
  margin: 0;
  white-space: pre-line;
}

@media (max-width: 760px) {
  .detail-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "gallery"
      "description"
      "sidebar";
    gap: 28px;
  }

  .detail-sidebar {
    order: 3;
  }
}